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

 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 2018 Contributors (https://github.com/rrweb-io/rrweb/graphs/contributors) and SmartX Inc.
 SPDX-License-Identifier: MIT
*/
/*

 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 kIl,Ebb,Rih,Vhh,N1I,IRR,R1,ilh,mAI,NA,nl,eil,aRI,o1,g1,thi,T1e,weh,Uj,Yje,WIi,r1,obC,KIR,rhi,xAh,DAR,$Al,vbh,dAm,s11,Mh1,ST,Q1j,i4,Oli,JC,GI1,cz,wY,kYt,E2h,u4,x2,RAI,ij1,hAA,fj,mpt,eAe,b4,aCt,tTj,TYh,ZC,JCm,dY,P4i,Wdh,g2t,eI,Upe,Hjh,mT,yCm,hR,o2t,Xzm,jCm,$pC,fCj,YW,Zjm,bj1,dpt,sCm,lCh,q5R,zAb,GYR,C4j,SAR,VIt,Ixb,cRI,eYA,m2A,$W,axt,BU1,v0,WTm,gWl,yRR,U2A,oWb,ba,MTC,Zx,sA,la,HPI,q2,ARi,KTA,p0I,GG,rRh,u3C,x2j,LTI,D2e,jtA,$2h,fxm,vWR,QP,ZPt,stC,MIC,zYh,NU,OPb,kBm,ng,RsC,IFj,Cah,nJh,hsj,JJR,wUi,est,
Bkj,W$t,F$C,oJh,XUI,K$t,pUt,uoe,L$b,$Ui,vJ1,bgA,dU1,MrA,Cuj,HU,Eeh,R5t,VO1,Lg,jr,$J,MU,zB,OX,mVI,Ve,tOe,PtI,YY1,Wom,FoC,mo,yEb,ab,tE,TP,wP,Xdb,gem,UV1,HR1,Koh,AEA,rEI,u5l,xVh,jbb,Wd,Ye,DVA,$Vi,feI,bRj,veA,ZRC,dVI,sb1,pR,AE,rP,ut,jO,MOA,De,z5b,ko1,fR,Eyb,SoI,Rhi,bt,V1h,NTl,IBA,Ze,hhI,MV,mjl,ehA,qV,t1h,aBI,TT1,wH1,Pht,BTl,OY,Yo1,W7h,GP,F7A,yxm,CR,ky,S1,Rh,oym,gyR,XHj,V$,HO1,K7A,pH1,Ih,hx,cH,m7,e1,ah,Axh,rxb,xjt,L7h,Djb,$je,fBh,vyi,bO1,ZOR,PH,dj1,she,M1I,qob,zhh,Qhj,OOl,Goi,ChR,WH,kxm,y$,oh,E4I,VoI,
N7I,I7b,iuI,h2I,JPi,a7l,toe,T7I,wym,Pk1,B7I,Yah,o4I,Uo,Xyh,g4t,UTj,HuI,Kbj,pyl,rPm,sXj,l71,Moi,QXI,Ou1,LO,Gxl,EOm,V$t,Nti,IKb,nOi,ioi,hwj,JNC,cNI,ewl,aKh,Smi,t$I,Tth,wXi,PI1,BtA,Ym1,Whe,FhA,yNh,Unm,XXm,pX1,HoI,Khb,uFb,xnt,Lhl,AN1,Dni,rNC,fKA,CO,vOb,k4,So,bom,dnI,seR,qmt,Vwi,QeA,zwi,GLl,kah,Oo1,Jjb,nk1,cjC,mgm,eub,a_t,twi,wCh,T0h,P$1,B0t,Y41,WNh,yjt,XCI,gki,Ugb,KNl,HVC,bVA,IX,ZVh,s2j,l_e,Mwm,q41,zuC,OVC,Gah,C$j,aX,tP,kVm,In1,Py,By,J3h,m3j,Fz1,oX,X_I,gr1,p_1,HCb,Kz1,Ku,A3t,r3e,x3I,LzA,juI,D3R,$3C,fnt,
vrI,ZCj,d3t,lnl,su1,zIA,fu,Z7,OCi,GVA,CJh,kpA,EZt,SQi,Vvl,IJh,NvR,S$,Vg,TvC,iI,Fqi,y6e,hN,XVR,oZm,xGt,Lq1,jHh,$GR,Zxt,sHm,lJb,MvI,qQt,QHm,GpI,CXm,e$,Efj,wt,Rxt,Vlh,Ngj,nfC,Scl,kUh,Idb,tN,gfe,pvA,H21,upb,xdm,jWI,DdI,$db,fdI,gt,vfl,Z2j,b2h,ddI,ldI,Ko,GUR,V9h,n6m,Ilt,JwA,uI,eRe,j$,fo,DK,wnb,mmh,P2l,Y2I,WFI,ZK,o6j,lI,Mn,UmC,pnC,rw1,utb,xmb,qn,LFA,zL,jse,$mR,flt,v6I,bZj,dmm,GL,ss1,ll1,Sw,Ng,zRb,QsI,OZt,G2R,EFI,SJe,VXb,Nci,m6j,eGC,hGj,tXh,Tch,wkl,Ta,PC,BC,Wt1,Ftm,WC,yBt,oFe,XkI,gFR,HfC,KtC,pkm,ABI,U61,
rB1,X4,x6j,fwt,g0,$6m,vFi,unh,bfC,HC,d61,sdh,lwe,MXI,zGe,qJb,QdI,Ccm,Ofl,Eul,nuR,hPt,cIt,aZC,ePA,meh,tmi,wib,BWt,PWR,WS1,$k,yI1,oub,Xih,gu1,KSR,AIi,pie,rIR,ue1,Z_,xe1,LSR,DeI,fZI,ZIe,srb,deC,J3,lZh,$eh,CWh,EA1,Sve,RMI,TV,Vdl,Ivm,hMA,mah,cX1,Tqe,wEi,PDA,Bq1,WGh,gAA,FGC,oAl,XEI,Uam,Hzh,pE1,KGl,rX1,AXC,KC,uyA,LGR,j_h,vAt,Dn,$r,bzl,ZzA,fC,Mdt,dO,sg,lJ,Ozh,M3,kJA,Qf,Enb,Spt,Rem,ViI,CC,N8e,IEi,nnR,he1,cpl,aEj,T8m,h6,wo1,PgC,B8A,Ypj,WCR,FCA,ypI,on1,mq,UIe,Hrt,KCR,poA,Apt,rpl,ufi,xIe,LCj,j7t,DIR,$Ii,fEI,
YZ,GJA,Cgl,WV,FT,y6,klI,Elh,SxA,RW1,Vkj,NVR,IWR,cgm,myi,eWj,aW1,tkR,UQ,Kx,px,A6,xZ,Lx,jv,wTC,$Z,BVh,fx,Yx1,W5R,vV,F5h,ygj,olj,uDC,L5I,vl1,sRh,dyA,xy1,lWl,zWR,hUA,ETt,ak1,RUh,eUh,tNt,MG,wuC,zp,BJl,Y_1,Fit,yOe,oTt,gT1,Gp,HvR,Kit,put,AOi,rOm,u6I,xOh,UOh,DOA,$Oe,fkj,kf,lkb,MNA,sct,zUm,QcI,GNm,ClR,Ovt,I0h,ih1,JVj,miR,JD,BXl,wMI,PYh,oXm,gXh,Uij,Hhj,KR1,pMC,AVI,Yf,vXt,Zhl,$iC,DiC,bhR,ude,svb,S3R,qk1,zZt,Qvh,mJI,aDh,cbe,Y31,JbC,rVj,Bbm,MFC,Ev1,e8j,dih,LRb,xii,jvi,f0i,h8i,Dd,xJI,jZt,DJj,$Jh,fDj,z8b,Ehi,Sft,
qd,Vqi,nhh,c0I,J01,evl,agb,Tdt,PKb,wpR,Bdl,i2,Yfh,Wje,y0m,Fjt,hw,KjA,H5C,UBI,uXI,ppI,xBm,r0b,Ljh,jEl,vhI,$Bh,fge,Z51,lgI,Mqi,QEj,O5l,Gc1,CKh,Ezh,RBI,tw,NE1,i9C,III,hBI,eBl,aIe,wZ1,BEI,Y6,Wn,yQR,ozi,Ft,yH,XZC,Xt,gm,gzi,U2,Uht,Hn,H91,KOe,pZ,pZj,AQh,rQh,uwi,xhI,j31,LOh,$hm,b9b,vzC,Z9I,dhe,DhC,s3l,qiC,Mje,fIl,zBl,Q3R,LZ,O9t,CrI,Gbh,keC,Eqm,R_i,SBb,VHC,Dl,IOj,nqi,NyR,h_C,J9I,c9i,tHm,Pbh,y9l,UXe,$6,ptb,A9I,vn,r9I,s2,l2,$XR,Zl,O2,fOb,vql,Zmm,dXi,lOi,qBh,z_l,QOC,Omb,kn1,NFh,RQh,Cbl,Is1,n7I,EJ,VzI,iLC,Vs,
hQC,J2j,c2h,mxt,TF1,eQt,tzl,YUt,WV1,g7C,XSm,KVt,LVm,j4e,$xm,v7h,bLI,dxA,s4l,lsl,qUC,zQI,Q41,CTj,R7h,VuI,k4b,IXR,iTC,n$i,N91,h7b,cal,mMh,e7I,aX1,tuR,T9,wc,YF,Fn,PEl,B9I,WZi,o$h,ys,od,XNh,Xn,HTe,KZj,pNl,Hk,LZI,fXb,bTj,ZTh,dMl,sfb,lX1,z7h,pf,QfR,CEi,AB,kA1,VLi,rc,nsI,uc,jX,Dw,i3e,JS1,h3t,m4e,e31,a91,tLC,cSb,YFh,WL1,ySm,XsA,KLe,H31,ps1,rSm,uc1,x4t,LLb,jLt,D4h,$4A,b3i,f9h,Zw,d4m,dc,sLI,lc,M6,MLI,qFA,z3l,QLh,O3i,q6,GAI,C1e,k_h,EHm,Rph,Vyh,N$j,ImA,nHC,hpI,itC,z9,czC,epe,am1,tyb,T$I,B$C,W0R,Cf,yzI,XYm,gHl,
UwI,Hth,K01,pYe,AzI,rzj,YIR,F0i,uah,xwb,$wt,fmC,vHI,btI,RCh,Iyj,ntb,iYe,NSi,aye,wgi,t7I,P5C,Wrm,yfl,Xgm,KrI,HYC,uGI,hI,xNl,LrR,JI,jKR,ci,DNR,$Nt,fyh,bY1,vt1,ZY1,dNm,sKh,lyb,C51,Exh,Rrh,SDI,QKC,q0I,NhR,nxA,m71,erR,Thh,Fsm,oxm,tI,XDA,U7I,HFe,pDt,x7l,D7A,vxC,bFt,ZFl,d7C,zrm,s01,CGI,k6j,EDt,Rmt,Pi,V8I,ITl,nDt,iSh,hmI,J$h,c$l,mlA,aTb,t8m,yw,TBC,w71,BBl,Xe,PAi,WfI,X7I,Hi,gDC,Ul1,HS1,A$A,r$C,Kfi,xli,$lt,fTl,vDR,xu,bSI,lTt,M8j,$u,Qoi,q9R,zm1,CAI,kgI,Eje,NZh,iKh,njR,IrI,hK1,cte,mzI,wFe,eKi,P3R,Y6b,BZm,gjR,
KWh,Ati,ugi,DzR,sJm,YA,M_j,OKl,C31,PE,pz,N_m,hf1,iwI,c11,mF1,aaC,efh,tKi,T_1,AX,bcI,Iab,J1e,no1,HE,B_1,Y7A,W2j,F2e,y1m,Xqb,gom,UFm,HwI,K2h,Zv,pql,A1R,r11,uEj,xFC,Ma,L2i,$Fb,vot,bw1,zfh,Ow1,G7h,CfR,ENC,SEj,Si,VMC,Njl,I2e,nNb,iMC,hV1,cs1,eVh,tMm,Tj1,FcI,YEt,ysC,gN1,U5e,hp,HMl,Kcm,pIb,uQm,Lcl,x51,D5h,f2t,ei,bM1,ZMt,vNl,d5j,sgj,MM1,zVA,qEC,QgA,l2t,OMt,GMl,COt,kij,EB1,SNC,R1e,V61,NAb,iGt,nB1,h1C,crm,Jrj,a7,mqb,t61,BAh,e11,Fym,yrm,oB1,X5m,HGl,Lyh,jAI,$qh,fYm,Up,dql,qNe,OGC,Ho,EP1,Gii,CLA,kmt,ry1,D8b,ug,
$8C,fGI,vPt,ZXm,d8h,s81,lGj,qb1,ztC,Vfh,kFj,Szi,IVj,NRR,ngm,i6m,JUi,m1h,aVi,TRl,w3A,BRA,Kwj,rUC,x1h,Lwe,jQI,D1l,$11,vgj,b6e,sQi,lVj,MfA,qzm,zzh,QQh,O6C,GF1,E8I,Nwt,lg,MI,qI,IoI,n8b,Op,hbt,PRI,o8C,FBh,v8e,bye,ZyI,cZI,wli,aoh,sx1,lot,MEj,qVe,YVI,zb1,Oye,CRh,Shh,Rke,nc,Jg,cT,c71,J7A,tYh,TuR,XWt,UZ1,K1h,pWi,ul1,L1I,xZt,$Zi,v_R,qhI,l8l,Zs1,MYi,dZR,zkh,CiI,pc,Ag,iQb,NMh,Jve,cvm,ejj,a51,uv,t4i,PwC,BMe,YW1,FDI,WD1,DW,HQj,dV,pai,Avt,lv,rvm,uIm,xkl,LDe,jn1,Dke,$kI,f5C,vpt,bQA,ZQl,dkl,sn1,l5h,M4I,My,qWh,zjR,
Qnm,OQ1,GCb,Cwh,k1h,E0m,Sse,RHh,V2C,NQh,zl,n0C,hHI,cGi,aQI,wfb,P9h,BQj,W4h,yG1,o0h,XfI,NO,pf1,HWl,AGm,rGb,ujC,j$C,Dt1,$ti,v0R,wJ,ZWI,tO,s$b,lQm,Pu,M2I,qsh,zHh,Q$b,Wu,kOA,SOb,n9j,Ijh,hJl,JuC,Hu,cuC,mWt,aji,TN1,wm1,BNI,YOC,tpI,WAI,g9h,pmm,AuI,Kv,ruA,u_l,$WR,xWA,jFi,DWI,sFi,v9b,ljm,qOA,QFj,ObR,GOI,Cye,kyh,EG1,ROR,VaC,NIt,Ip1,nGI,hOl,cnb,apC,Pjh,W3e,yn1,gG1,jN,UDb,HEt,K3h,pje,Ant,uvi,xDe,L3C,j91,DDe,$DR,fph,vGh,bER,ZER,dDI,lpb,s91,zOj,OE1,fv,Gyl,EmC,kji,VSm,N6j,Ibl,i4h,cqC,abI,eoR,Jqe,w$I,T6R,F_h,PNh,
s_,YCj,K_b,X$b,gmb,U_C,H4l,p$h,rqe,AqR,ll,MO,fbj,x_1,$_i,D_j,L_A,jMm,Z4C,sMb,MSi,lbI,qC1,GjR,O41,kH1,S1i,Rgh,EUI,VgA,I6e,NiI,i$I,cce,Cv,m9C,egR,Tib,W6l,U9I,Ek,K6m,u0l,D9j,jih,x9t,L6i,nh,b$1,$9t,f6m,Z$h,si1,d9l,q1h,zgb,O$A,GHl,C0C,kvi,Edh,R$1,V3t,YX,IMb,ndi,cTb,mEj,Xd,e$C,t31,ode,ph,Bol,yTb,YMC,WXm,HdC,UEj,rTt,KXe,uLb,xEj,rX,jjC,DEC,$El,LX1,Lh,fMR,uY,dEb,OdR,Gvh,Coh,khI,EK1,SZj,IiI,VtA,Nnh,Rqb,iJ1,cKi,aii,ttj,wrI,YZR,PBI,Bnb,Wll,yK1,oKA,Xr1,gKl,Urj,HJe,prh,dX,rK1,Llb,xrl,Dre,jmm,$ri,fiC,bJt,ZJA,CBI,
OJb,Sli,R6C,h6C,JYI,cYA,mo1,e6A,aHh,w1I,Psi,Brm,W81,F8h,yYR,VQ,UoA,gEj,X1A,oEh,K8j,rY1,p1A,xoI,L8b,jNt,Dob,$ol,fHI,vEm,b1I,M5A,Z1t,doI,sNe,qlm,z6j,QN1,lHm,hb,Cs1,EVI,kKC,c9,Ryh,VCb,Npt,SrI,ISb,nV1,iHh,hyh,JAj,mfI,eyt,aSi,tCm,P8j,wOe,yAR,TpI,mu,oVb,Bpl,FgI,HHI,KgC,pOA,AAI,rAI,uMe,xfI,Lgj,jph,DfI,$fh,vVb,bHh,ZHI,sph,MCI,zyR,OHj,Sqi,kWR,E3l,C8I,GKl,RDt,VWC,NKC,Ich,U3,hDR,cWt,mSA,eDI,ac1,tWj,TKj,Waj,PpR,w6l,BK1,rWI,p6i,Yqt,Kab,fcl,v3h,b0C,Z0j,dSl,MWj,zDe,O0h,Cpi,kth,ELm,NxC,V0h,ILA,iAj,zZ,cdC,mHR,e9l,
aLI,O3,GZ,wKt,Pei,Y$1,ydI,Kkh,xHi,uOb,Lk1,DHl,$Hl,fLi,vLI,bA1,ZAm,NB,dHt,OAt,GtA,q$b,M0R,QzR,z9m,RNI,VJA,N51,IAm,nct,ip1,ceI,JeR,hNl,B5I,YHA,WYm,och,X8b,FY1,yeh,uZI,LYb,DKt,fAl,bpi,dKI,qHR,zNI,QUe,CSt,Gde,OpA,kre,ESt,SGR,REh,VZh,Nz1,Iu1,nS1,iiC,hEI,mbi,eEA,auh,tZi,Tz1,wLh,Bzh,YGb,Wxm,FxR,ylh,oSm,Hij,Kxh,Ale,uit,rlb,xbt,Tc,LxA,j6C,Dbt,$be,ZiC,bih,dbI,s6b,luR,MZR,Q6I,GrR,CnA,ksA,E1t,ST1,Rch,Vbm,N4m,ItA,n1e,hcI,i_I,JLj,cLA,mc1,ect,atl,tbe,T4b,w2b,oE,B4h,YTh,FmI,yLR,o1t,X21,g1R,Uch,KmR,p2t,rLj,xcI,jYR,
v1I,$cC,DcR,fte,b_1,Z_1,dcl,Mbh,qTI,zci,QYi,Gsh,CPj,kuC,SPi,ERI,RX1,VVm,N31,iql,hXj,J41,c4h,mPb,eXe,T3m,wJC,L5,y4b,oRl,gRI,KPj,Hqm,pJI,A4C,jq,$h,uql,xPb,bK,Zg,$P1,LPe,jll,bqh,ZqI,dPC,slb,zXm,OqC,Gue,CQ1,kfj,E5h,R4A,VPh,Neb,I$j,n5t,iDI,h4t,lK,JoR,coe,qB,mLb,e4j,a$A,tPh,TeI,wxe,Of,Gc,PzI,BeI,C5,YRj,WHI,FHj,yol,Xxl,g5m,HDm,uP1,ro1,Aol,xLl,LH1,ZDi,$L1,f$1,v5A,DLI,bD1,Ei,l$h,MPj,qR1,z4j,QB1,Gfh,kEh,RLl,nQj,N2I,Sj,Vej,mu1,aNe,R3,tee,T21,wPR,B2t,YKt,Wv1,FvC,oQb,XPh,gQj,Hk1,KvC,Ai1,riI,Dum,jkm,fNb,vQ1,bkh,
duC,skj,lNC,Okh,GEb,Cxi,k8A,Rnh,IUj,JQ,mO,cZ,ej,nat,ia1,hnh,J5I,c5e,enh,aUi,tsi,Tlh,PFm,BlR,Yeh,a3,WQR,FQI,XBj,gab,tQ,Tb,KQb,U0e,pBC,uV1,A5C,x01,jaR,Yz,D01,$0I,baI,d0I,WZ,lU1,Ms1,qeA,znl,QaC,Oal,G8m,CFe,Rlh,VAI,nCj,Nfh,IPb,ieA,mQI,hlh,ckt,elt,aPh,tA1,Pmh,Bfb,Yum,FUt,yk1,KU1,Heh,LU1,$QC,p9,fPi,dgj,vCI,be1,dQe,MAi,qut,Eie,Sy1,RFi,VUI,NsI,IhI,iBI,hFt,cmI,eFh,JmC,mvt,tUm,ahb,wRi,YyA,P7j,Wnj,Fne,ymA,oiC,XRI,gil,HBj,Uvb,rmi,LnA,uCI,jwt,Dvh,$vR,f9,fhe,vi1,br,ZBt,bBC,dvA,swA,MUA,qyt,QwA,OBi,G5m,C7i,SSm,VBt,
nY1,IzI,inj,h0e,mR1,F9h,TDR,oYi,Xbm,URe,Hn1,rMR,uBh,xRI,L9C,j5A,DRe,fz1,vYt,bnb,dRt,ZnA,s5h,Q51,Onl,Gqi,CHm,k0t,EwI,Sd1,VcR,nw1,i8h,haj,J8t,c8I,m$I,tch,a1h,PVj,Ydj,WpC,Fpm,y8j,owt,gwh,X4e,H81,uUA,D$1,jP1,$$b,f1I,vwi,Z8R,ct,sPb,t9,Mc1,zah,QPI,RS1,NCl,i71,JFe,cFe,eSt,afl,tRI,wc1,BCR,YwA,FK1,Xci,oIC,yFe,Wt,UCl,gIb,H7t,KKl,pc1,AFe,rFl,ux1,xCC,jIt,DCm,$Ch,ffh,vII,b7A,Z7h,dC1,sIi,MRl,qwl,SLt,RTm,VxI,I4I,nMj,iNC,c_e,Ht,whh,PUh,BaA,YLt,WeR,Km,pm,Re,A9,ub,Ke1,phl,uhm,Leh,xsm,Lm,jyI,Dst,$s1;
kIl=function(){var k,E;return typeof CSS!=="undefined"&&((E=(k=CSS).supports)==null?void 0:E.call(k,"selector(:has(*))"))};
Ebb=function(k){return k.visibility!=="hidden"&&k.display!=="none"};
Rih=function(k){if(kIl()||k.tagName!=="DETAILS"?!k.matches(Sjh):k.querySelector("summary")!==null)return-1;k=k.getAttribute("tabindex")||"0";return Number(k)};
Vhh=function(k){return k.some(function(E){return Rih(E)>0})};
N1I=function(k){if(k.textContent||k.ariaLabel)return!0;if(k instanceof HTMLInputElement){if(!k.labels)return!1;k=_.n(k.labels);for(var E=k.next();!E.done;E=k.next())if(E.value.textContent)return!0}return!1};
IRR=function(k){return k.sort(function(E,S){return Rih(S)-Rih(E)})};
_.nbC=function(k){k=Array.from(k.querySelectorAll(Sjh)).filter(function(E){return(Ebb(E.style)?Ebb(window.getComputedStyle(E)):!1)&&N1I(E)});
return Vhh(k)?IRR(k):k};
_.Sh=function(k,E){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Sh);else{var S=Error().stack;S&&(this.stack=S)}k&&(this.message=String(k));E!==void 0&&(this.cause=E)};
R1=function(){throw Error("E");};
ilh=function(k,E){E=String.fromCharCode.apply(null,E);return k==null?E:k+E};
mAI=function(k){var E=!1;E=E===void 0?!1:E;if(hi1){if(E&&(Jh1?!k.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(k)))throw Error("F");k=(chh||(chh=new TextEncoder)).encode(k)}else{for(var S=0,R=new Uint8Array(3*k.length),V=0;V<k.length;V++){var N=k.charCodeAt(V);if(N<128)R[S++]=N;else{if(N<2048)R[S++]=N>>6|192;else{if(N>=55296&&N<=57343){if(N<=56319&&V<k.length){var h=k.charCodeAt(++V);if(h>=56320&&h<=57343){N=(N-55296)*1024+h-56320+65536;R[S++]=N>>18|
240;R[S++]=N>>12&63|128;R[S++]=N>>6&63|128;R[S++]=N&63|128;continue}else V--}if(E)throw Error("F");N=65533}R[S++]=N>>12|224;R[S++]=N>>6&63|128}R[S++]=N&63|128}}k=S===R.length?R:R.subarray(0,S)}return k};
NA=function(k){_.Vt.setTimeout(function(){throw k;},0)};
_.I1=function(k,E){return k.lastIndexOf(E,0)==0};
nl=function(k,E){var S=k.length-E.length;return S>=0&&k.indexOf(E,S)==S};
_.Jh=function(k){return/^[\s\xa0]*$/.test(k)};
_.ce=function(k,E){return k.indexOf(E)!=-1};
_.mI=function(k,E){return _.ce(k.toLowerCase(),E.toLowerCase())};
_.w1=function(k,E){var S=0;k=eh(String(k)).split(".");E=eh(String(E)).split(".");for(var R=Math.max(k.length,E.length),V=0;S==0&&V<R;V++){var N=k[V]||"",h=E[V]||"";do{N=/(\d*)(\D*)(.*)/.exec(N)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(N[0].length==0&&h[0].length==0)break;S=eil(N[1].length==0?0:parseInt(N[1],10),h[1].length==0?0:parseInt(h[1],10))||eil(N[2].length==0,h[2].length==0)||eil(N[2],h[2]);N=N[3];h=h[3]}while(S==0)}return S};
eil=function(k,E){return k<E?-1:k>E?1:0};
_.Be=function(){var k=_.Vt.navigator;return k&&(k=k.userAgent)?k:""};
aRI=function(k){if(!Yb||!We)return!1;for(var E=0;E<We.brands.length;E++){var S=We.brands[E].brand;if(S&&_.ce(S,k))return!0}return!1};
o1=function(k){return _.ce(_.Be(),k)};
g1=function(){return Yb?!!We&&We.brands.length>0:!1};
thi=function(){return g1()?!1:o1("Opera")};
T1e=function(){return g1()?!1:o1("Trident")||o1("MSIE")};
weh=function(){return g1()?aRI("Microsoft Edge"):o1("Edg/")};
Uj=function(){return o1("Firefox")||o1("FxiOS")};
_.PCb=function(){return o1("Safari")&&!(_.Kl()||(g1()?0:o1("Coast"))||thi()||(g1()?0:o1("Edge"))||weh()||(g1()?aRI("Opera"):o1("OPR"))||Uj()||o1("Silk")||o1("Android"))};
_.Kl=function(){return g1()?aRI("Chromium"):(o1("Chrome")||o1("CriOS"))&&!(g1()?0:o1("Edge"))||o1("Silk")};
_.B1b=function(){return o1("Android")&&!(_.Kl()||Uj()||thi()||o1("Silk"))};
Yje=function(k){var E={};k.forEach(function(S){E[S[0]]=S[1]});
return function(S){return E[S.find(function(R){return R in E})]||""}};
WIi=function(k){var E=_.Be();if(k==="Internet Explorer"){if(T1e())if((k=/rv: *([\d\.]*)/.exec(E))&&k[1])E=k[1];else{k="";var S=/MSIE +([\d\.]+)/.exec(E);if(S&&S[1])if(E=/Trident\/(\d.\d)/.exec(E),S[1]=="7.0")if(E&&E[1])switch(E[1]){case "4.0":k="8.0";break;case "5.0":k="9.0";break;case "6.0":k="10.0";break;case "7.0":k="11.0"}else k="7.0";else k=S[1];E=k}else E="";return E}var R=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");S=[];for(var V;V=R.exec(E);)S.push([V[1],V[2],V[3]||void 0]);
E=Yje(S);switch(k){case "Opera":if(thi())return E(["Version","Opera"]);if(g1()?aRI("Opera"):o1("OPR"))return E(["OPR"]);break;case "Microsoft Edge":if(g1()?0:o1("Edge"))return E(["Edge"]);if(weh())return E(["Edg"]);break;case "Chromium":if(_.Kl())return E(["Chrome","CriOS","HeadlessChrome"])}return k==="Firefox"&&Uj()||k==="Safari"&&_.PCb()||k==="Android Browser"&&_.B1b()||k==="Silk"&&o1("Silk")?(E=S[2])&&E[1]||"":""};
_.FIR=function(k){if(g1()&&k!=="Silk"){var E=We.brands.find(function(S){return S.brand===k});
if(!E||!E.version)return NaN;E=E.version.split(".")}else{E=WIi(k);if(E==="")return NaN;E=E.split(".")}return E.length===0?NaN:Number(E[0])};
r1=function(){return Yb?!!We&&!!We.platform:!1};
_.yhh=function(){return r1()?We.platform==="Android":o1("Android")};
obC=function(){return o1("iPhone")&&!o1("iPod")&&!o1("iPad")};
_.uC=function(){return obC()||o1("iPad")||o1("iPod")};
_.Xet=function(){return r1()?We.platform==="macOS":o1("Macintosh")};
_.gbh=function(){return r1()?We.platform==="Windows":o1("Windows")};
_.UAm=function(){return r1()?We.platform==="Chrome OS":o1("CrOS")};
_.Ll=function(k){return k[k.length-1]};
_.jh=function(k,E,S){E=_.Hl1(k,E,S);return E<0?null:typeof k==="string"?k.charAt(E):k[E]};
_.Hl1=function(k,E,S){for(var R=k.length,V=typeof k==="string"?k.split(""):k,N=0;N<R;N++)if(N in V&&E.call(S,V[N],N,k))return N;return-1};
KIR=function(k){for(var E=_.DR,S=typeof k==="string"?k.split(""):k,R=k.length-1;R>=0;R--)if(R in S&&E.call(void 0,S[R],R,k))return R;return-1};
_.bC=function(k,E){return _.$b(k,E)>=0};
_.peh=function(k,E){_.bC(k,E)||k.push(E)};
_.ZR=function(k,E){E=_.$b(k,E);var S;(S=E>=0)&&_.Aht(k,E);return S};
_.Aht=function(k,E){Array.prototype.splice.call(k,E,1)};
_.d1=function(k){var E=k.length;if(E>0){for(var S=Array(E),R=0;R<E;R++)S[R]=k[R];return S}return[]};
_.lC=function(k,E){for(var S=1;S<arguments.length;S++){var R=arguments[S];if(_.sj(R)){var V=k.length||0,N=R.length||0;k.length=V+N;for(var h=0;h<N;h++)k[V+h]=R[h]}else k.push(R)}};
_.uml=function(k,E,S,R){Array.prototype.splice.apply(k,rhi(arguments,1))};
rhi=function(k,E,S){return arguments.length<=2?Array.prototype.slice.call(k,E):Array.prototype.slice.call(k,E,S)};
xAh=function(k,E){E=E||k;for(var S=0,R=0,V={};R<k.length;){var N=k[R++],h=_.qA(N)?"o"+_.Oj(N):(typeof N).charAt(0)+N;Object.prototype.hasOwnProperty.call(V,h)||(V[h]=!0,E[S++]=N)}E.length=S};
_.j1h=function(k,E,S){S=S||_.LI1;for(var R=0,V=k.length,N;R<V;){var h=R+(V-R>>>1);var J=S(E,k[h]);J>0?R=h+1:(V=h,N=!J)}return N?R:-R-1};
_.GI=function(k,E,S){if(!_.sj(k)||!_.sj(E)||k.length!=E.length)return!1;var R=k.length;S=S||DAR;for(var V=0;V<R;V++)if(!S(k[V],E[V]))return!1;return!0};
_.LI1=function(k,E){return k>E?1:k<E?-1:0};
DAR=function(k,E){return k===E};
$Al=function(k,E,S){E=Array.prototype.splice.call(k,E,1);Array.prototype.splice.call(k,S,0,E[0])};
vbh=function(k){return fRb[k]||""};
dAm=function(k){if(!ble)return _.k2(k);k=Zlh.test(k)?k.replace(Zlh,vbh):k;k=atob(k);for(var E=new Uint8Array(k.length),S=0;S<k.length;S++)E[S]=k.charCodeAt(S);return E};
s11=function(k,E){k.__closure__error__context__984382||(k.__closure__error__context__984382={});k.__closure__error__context__984382.severity=E};
_.E5=function(k){k=Error(k);s11(k,"warning");return k};
Mh1=function(k,E){if(k!=null){var S;var R=(S=lR1)!=null?S:lR1={};S=R[k]||0;S>=E||(R[k]=S+1,k=Error(),s11(k,"incident"),NA(k))}};
ST=function(k,E,S){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(S===void 0?0:S)&&Symbol.for&&k?Symbol.for(k):k!=null?Symbol(k):Symbol():E};
Q1j=function(k,E){RC||_.Vd in k||qjm(k,zi1);k[_.Vd]|=E};
i4=function(k,E){RC||_.Vd in k||qjm(k,zi1);k[_.Vd]=E};
Oli=function(k){if(4&k)return 512&k?512:1024&k?1024:0};
JC=function(k){Q1j(k,34);return k};
GI1=function(k){Q1j(k,32);return k};
cz=function(){return typeof BigInt==="function"};
wY=function(k,E){return E===void 0?k.copyOnWrite!==eT&&!!(2&(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Vd]|0)):!!(2&E)&&k.copyOnWrite!==eT};
_.AC=function(k,E){if(k!=null)if(typeof k==="string")k=k?new F8(k,Hz):_.pj();else if(k.constructor!==F8)if(CCi&&k!=null&&k instanceof Uint8Array)k=k.length?new F8(new Uint8Array(k),Hz):_.pj();else{if(!E)throw Error();k=void 0}return k};
kYt=function(k,E){if(typeof E!=="number"||E<0||E>=k.length)throw Error();};
E2h=function(k,E,S){var R=E&128?0:-1,V=k.length,N;if(N=!!V)N=k[V-1],N=N!=null&&typeof N==="object"&&N.constructor===Object;var h=V+(N?-1:0);for(E=E&128?1:0;E<h;E++)S(E-R,k[E]);if(N){k=k[V-1];for(var J in k)!isNaN(J)&&S(+J,k[J])}};
u4=function(k){return k&128?rY:void 0};
x2=function(k){k.isGuard_doNotManuallySetPrettyPlease=!0;return k};
RAI=function(){var k=S5b;return x2(function(E){for(var S in k)if(E===k[S]&&!/^[0-9]+$/.test(S))return!0;return!1})};
_.jT=function(k){var E=k;if(VT1(E)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(E))throw Error(String(E));}else if(NYb(E)&&!Number.isSafeInteger(E))throw Error(String(E));return ICm?BigInt(k):k=n2j(k)?k?"1":"0":VT1(k)?k.trim()||"0":String(k)};
ij1=function(k,E){if(k.length>E.length)return!1;if(k.length<E.length||k===E)return!0;for(var S=0;S<k.length;S++){var R=k[S],V=E[S];if(R>V)return!1;if(R<V)return!0}};
hAA=function(k){var E=k>>>0;DC=E;$2=(k-E)/4294967296>>>0};
fj=function(k){if(k<0){hAA(-k);var E=_.n(JCm(DC,$2));k=E.next().value;E=E.next().value;DC=k>>>0;$2=E>>>0}else hAA(k)};
mpt=function(k){var E=cCI||(cCI=new DataView(new ArrayBuffer(8)));E.setFloat32(0,+k,!0);$2=0;DC=E.getUint32(0,!0)};
eAe=function(k,E){var S=E*4294967296+(k>>>0);return Number.isSafeInteger(S)?S:_.vz(k,E)};
b4=function(k,E){var S=E&2147483648;S&&(k=~k+1>>>0,E=~E>>>0,k==0&&(E=E+1>>>0));k=eAe(k,E);return typeof k==="number"?S?-k:k:S?"-"+k:k};
aCt=function(k){var E=DC,S=$2,R=S>>31;S=(S<<1|E>>>31)^R;k(E<<1^R,S)};
tTj=function(k,E){var S=-(k&1);k=(k>>>1|E<<31)^S;return b4(k,E>>>1^S)};
_.vz=function(k,E){E>>>=0;k>>>=0;if(E<=2097151)var S=""+(4294967296*E+k);else cz()?S=""+(BigInt(E)<<BigInt(32)|BigInt(k)):(S=(k>>>24|E<<8)&16777215,E=E>>16&65535,k=(k&16777215)+S*6777216+E*6710656,S+=E*8147497,E*=2,k>=1E7&&(S+=k/1E7>>>0,k%=1E7),S>=1E7&&(E+=S/1E7>>>0,S%=1E7),S=E+TYh(S)+TYh(k));return S};
TYh=function(k){k=String(k);return"0000000".slice(k.length)+k};
_.wz1=function(k,E){E&2147483648?cz()?k=""+(BigInt(E|0)<<BigInt(32)|BigInt(k>>>0)):(E=_.n(JCm(k,E)),k=E.next().value,E=E.next().value,k="-"+_.vz(k,E)):k=_.vz(k,E);return k};
ZC=function(k){if(k.length<16)fj(Number(k));else if(cz())k=BigInt(k),DC=Number(k&BigInt(4294967295))>>>0,$2=Number(k>>BigInt(32)&BigInt(4294967295));else{var E=+(k[0]==="-");$2=DC=0;for(var S=k.length,R=E,V=(S-E)%6+E;V<=S;R=V,V+=6)R=Number(k.slice(R,V)),$2*=1E6,DC=DC*1E6+R,DC>=4294967296&&($2+=Math.trunc(DC/4294967296),$2>>>=0,DC>>>=0);E&&(E=_.n(JCm(DC,$2)),k=E.next().value,E=E.next().value,DC=k,$2=E)}};
JCm=function(k,E){E=~E;k?k=~k+1:E+=1;return[k,E]};
dY=function(k){return Array.prototype.slice.call(k)};
_.s5=function(k,E){throw Error(E===void 0?"unexpected value "+k+"!":E);};
_.qp=function(k){if(k!=null&&typeof k!=="number")throw Error("L`"+typeof k+"`"+k);return k};
_.O5=function(k){if(k==null||typeof k==="number")return k;if(k==="NaN"||k==="Infinity"||k==="-Infinity")return Number(k)};
P4i=function(k){if(k!=null&&typeof k!=="boolean")throw Error("M`"+_.GY(k)+"`"+k);return k};
_.BYA=function(k){if(k==null||typeof k==="boolean")return k;if(typeof k==="number")return!!k};
_.kW=function(k){switch(typeof k){case "bigint":return!0;case "number":return Cj(k);case "string":return Y5e.test(k);default:return!1}};
_.EA=function(k){if(!Cj(k))throw _.E5("enum");return k|0};
_.SI=function(k){return k==null?k:Cj(k)?k|0:void 0};
Wdh=function(k){if(typeof k!=="number")throw _.E5("int32");if(!Cj(k))throw _.E5("int32");return k|0};
_.nP=function(k){return k==null?k:Wdh(k)};
_.ia=function(k){if(k==null)return k;if(typeof k==="string"&&k)k=+k;else if(typeof k!=="number")return;return Cj(k)?k|0:void 0};
_.Fde=function(k){if(k==null)return k;if(typeof k==="string"&&k)k=+k;else if(typeof k!=="number")return;return Cj(k)?k>>>0:void 0};
g2t=function(k){var E=0;E=E===void 0?0:E;if(!_.kW(k))throw _.E5("int64");var S=typeof k;switch(E){case 512:switch(S){case "string":return hR(k);case "bigint":return String(JR(64,k));default:return yCm(k)}case 1024:switch(S){case "string":return o2t(k);case "bigint":return _.jT(JR(64,k));default:return Xzm(k)}case 0:switch(S){case "string":return hR(k);case "bigint":return _.jT(JR(64,k));default:return mT(k)}default:return _.s5(E,"Unknown format requested type for int64")}};
eI=function(k){return k==null?k:g2t(k)};
Upe=function(k){var E=k.length;if(k[0]==="-"?E<20||E===20&&k<="-9223372036854775808":E<19||E===19&&k<="9223372036854775807")return k;ZC(k);return _.wz1(DC,$2)};
Hjh=function(k){if(k[0]==="-")var E=!1;else E=k.length,E=E<20?!0:E===20&&k<="18446744073709551615";if(E)return k;ZC(k);return _.vz(DC,$2)};
mT=function(k){k=at(k);tR(k)||(fj(k),k=b4(DC,$2));return k};
_.Kdb=function(k){k=at(k);k>=0&&tR(k)||(fj(k),k=eAe(DC,$2));return k};
yCm=function(k){k=at(k);tR(k)?k=String(k):(fj(k),k=_.wz1(DC,$2));return k};
_.pzm=function(k){k=at(k);k>=0&&tR(k)?k=String(k):(fj(k),k=_.vz(DC,$2));return k};
hR=function(k){var E=at(Number(k));if(tR(E))return String(E);E=k.indexOf(".");E!==-1&&(k=k.substring(0,E));return Upe(k)};
o2t=function(k){var E=at(Number(k));if(tR(E))return _.jT(E);E=k.indexOf(".");E!==-1&&(k=k.substring(0,E));return cz()?_.jT(JR(64,BigInt(k))):_.jT(Upe(k))};
Xzm=function(k){return tR(k)?_.jT(mT(k)):_.jT(yCm(k))};
_.ACh=function(k){return tR(k)?_.jT(_.Kdb(k)):_.jT(_.pzm(k))};
_.rCI=function(k){var E=at(Number(k));if(tR(E)&&E>=0)return String(E);E=k.indexOf(".");E!==-1&&(k=k.substring(0,E));return Hjh(k)};
_.u8I=function(k){var E=at(Number(k));if(tR(E)&&E>=0)return _.jT(E);E=k.indexOf(".");E!==-1&&(k=k.substring(0,E));return cz()?_.jT((0,_.P0)(64,BigInt(k))):_.jT(Hjh(k))};
_.LdC=function(k){if(k==null)return k;if(typeof k==="bigint")return xpj(k)?k=Number(k):(k=JR(64,k),k=xpj(k)?Number(k):String(k)),k;if(_.kW(k))return typeof k==="number"?mT(k):hR(k)};
jCm=function(k,E){E=E===void 0?!1:E;var S=typeof k;if(k==null)return k;if(S==="bigint")return String(JR(64,k));if(_.kW(k))return S==="string"?hR(k):E?yCm(k):mT(k)};
_.DpI=function(k){var E=typeof k;if(k==null)return k;if(E==="bigint")return _.jT(JR(64,k));if(_.kW(k))return E==="string"?o2t(k):Xzm(k)};
$pC=function(k){if(k==null)return k;var E=typeof k;if(E==="bigint")return String(JR(64,k));if(_.kW(k)){if(E==="string")return hR(k);if(E==="number")return mT(k)}};
fCj=function(k){if(k==null)return k;var E=typeof k;if(E==="bigint")return String((0,_.P0)(64,k));if(_.kW(k)){if(E==="string")return _.rCI(k);if(E==="number")return _.Kdb(k)}};
_.B0=function(k){if(typeof k!=="string")throw Error();return k};
YW=function(k){if(k!=null&&typeof k!=="string")throw Error();return k};
_.F3=function(k){return k==null||typeof k==="string"?k:void 0};
Zjm=function(k,E,S,R){if(k!=null&&k[yP]===gU)return k;if(!Array.isArray(k))return S?R&2?E[v21]||(E[v21]=bj1(E)):new E:void 0;S=k[_.Vd]|0;R=S|R&32|R&2;R!==S&&i4(k,R);return new E(k)};
bj1=function(k){k=new k;JC(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return k};
dpt=function(k,E,S){k=E?Wdh(k):_.ia(k);return k==null?S?0:void 0:k|0};
sCm=function(k){return k};
lCh=function(k){return k};
q5R=function(k,E,S,R,V,N){k=Zjm(k,R,S,N);V&&(k=MTC(k));return k};
zAb=function(k){return[k,this.get(k)]};
GYR=function(){return QCA||(QCA=new UA(JC([]),void 0,void 0,void 0,Ojh))};
C4j=function(k){var E=KP(ua);return E?k[E]:void 0};
SAR=function(k,E){var S=S===void 0?!1:S;if(KP(kGm)&&KP(ua)&&void 0===kGm){var R=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=R[ua];if(!V)return;if(V=V.reviveUnknownFields)try{V(R,E,EWe);return}catch(N){NA(N)}}S&&(k=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(S=KP(ua))&&S in k&&(k=k[S])&&delete k[E])};
VIt=function(k,E){var S=KP(ua),R;RC&&S&&((R=k[S])==null?void 0:R[E])!=null&&Mh1(RYj,3)};
Ixb=function(k,E){E<100||Mh1(NUh,1)};
cRI=function(k,E,S,R){var V=R!==void 0;R=!!R;var N=KP(ua),h;!V&&RC&&N&&(h=k[N])&&nWb(h,Ixb);N=[];var J=k.length;h=4294967295;var m=!1,a=!!(E&64),T=a?E&128?0:-1:void 0;if(!(E&1)){var w=J&&k[J-1];w!=null&&typeof w==="object"&&w.constructor===Object?(J--,h=J):w=void 0;if(a&&!(E&128)&&!V){m=!0;var P;h=((P=iPI)!=null?P:sCm)(h-T,T,k,w,void 0)+T}}E=void 0;for(P=0;P<J;P++){var B=k[P];if(B!=null&&(B=S(B,R))!=null)if(a&&P>=h){var F=P-T,K=void 0;((K=E)!=null?K:E={})[F]=B}else N[P]=B}if(w)for(var r in w)J=w[r],
J!=null&&(J=S(J,R))!=null&&(P=+r,B=void 0,a&&!Number.isNaN(P)&&(B=P+T)<h?N[B]=J:(P=void 0,((P=E)!=null?P:E={})[r]=J));E&&(m?N.push(E):N[h]=E);V&&KP(ua)&&(k=C4j(k))&&k instanceof hYe&&(N[ua]=JRR(k));return N};
eYA=function(k){k[0]=m2A(k[0]);k[1]=m2A(k[1]);return k};
m2A=function(k){switch(typeof k){case "number":return Number.isFinite(k)?k:""+k;case "bigint":return xpj(k)?Number(k):""+k;case "boolean":return k?1:0;case "object":if(Array.isArray(k)){var E=k[_.Vd]|0;return k.length===0&&E&1?void 0:cRI(k,E,m2A)}if(k!=null&&k[yP]===gU)return axt(k);if(k instanceof F8){E=k.JSC$8815_value_;if(E==null)k="";else if(typeof E==="string")k=E;else{if(ble){for(var S="",R=0,V=E.length-10240;R<V;)S+=String.fromCharCode.apply(null,E.subarray(R,R+=10240));S+=String.fromCharCode.apply(null,
R?E.subarray(R):E);E=btoa(S)}else E=_.xW(E);k=k.JSC$8815_value_=E}return k}if(k instanceof UA)return k=k.size!==0?Array.from(jI.prototype.entries.call(k),eYA):void 0,k;return}return k};
$W=function(k,E){if(E){iPI=E==null||E===sCm||E[tIl]!==TUh?sCm:E;try{return axt(k)}finally{iPI=void 0}}return axt(k)};
axt=function(k){k=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return cRI(k,k[_.Vd]|0,m2A)};
BU1=function(k){switch(typeof k){case "boolean":return w0I||(w0I=[0,void 0,!0]);case "number":return k>0?void 0:k===0?PaC||(PaC=[0,void 0]):[-k,void 0];case "string":return[0,k];case "object":return k}};
v0=function(k,E,S){return k=_.fP(k,E[0],E[1],S?1:2)};
_.fP=function(k,E,S,R){R=R===void 0?0:R;if(k==null){var V=32;S?(k=[S],V|=128):k=[];E&&(V=V&-8380417|(E&1023)<<13)}else{if(!Array.isArray(k))throw Error("O");V=k[_.Vd]|0;if(YAR&&1&V)throw Error("P");2048&V&&!(2&V)&&WTm();if(V&256)throw Error("Q");if(V&64)return R!==0||V&2048||i4(k,V|2048),k;if(S&&(V|=128,S!==k[0]))throw Error("R");a:{S=k;V|=64;var N=S.length;if(N){var h=N-1,J=S[h];if(J!=null&&typeof J==="object"&&J.constructor===Object){E=V&128?0:-1;h-=E;if(h>=1024)throw Error("T");for(var m in J)N=
+m,N<h&&(S[N+E]=J[m],delete J[m]);V=V&-8380417|(h&1023)<<13;break a}}if(E){m=Math.max(E,N-(V&128?0:-1));if(m>1024)throw Error("U");V=V&-8380417|(m&1023)<<13}}}V|=64;R===0&&(V|=2048);i4(k,V);return k};
WTm=function(){if(YAR)throw Error("S");Mh1(FTl,5)};
gWl=function(k,E){if(typeof k!=="object")return k;if(Array.isArray(k)){var S=k[_.Vd]|0;return k.length===0&&S&1?void 0:yRR(k,S,E)}if(k!=null&&k[yP]===gU)return oWb(k);if(k instanceof UA){E=k.arrayState;if(E&2)return k;if(!k.size)return;S=JC(X0l(k));if(k.valueCtor)for(k=0;k<S.length;k++){var R=S[k],V=R[1];V==null||typeof V!=="object"?V=void 0:V!=null&&V[yP]===gU?V=oWb(V):Array.isArray(V)?V=yRR(V,V[_.Vd]|0,!!(E&32)):V=void 0;R[1]=V}return S}if(k instanceof F8)return k};
yRR=function(k,E,S){if(E&2)return k;!S||4096&E||16&E?k=ba(k,E,!1,S&&!(E&16)):(Q1j(k,34),E&4&&Object.freeze(k));return k};
U2A=function(k,E,S){k=new k.constructor(E);S&&(k.copyOnWrite=eT);k.noLegacyNull=eT;return k};
oWb=function(k){var E=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=E[_.Vd]|0;return wY(k,S)?k:HPI(k,E,S)?U2A(k,E):ba(E,S)};
ba=function(k,E,S,R){R!=null||(R=!!(34&E));k=cRI(k,E,gWl,R);R=32;S&&(R|=2);E=E&8380609|R;i4(k,E);return k};
MTC=function(k){var E=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=E[_.Vd]|0;return wY(k,S)?HPI(k,E,S)?U2A(k,E,!0):new k.constructor(ba(E,S,!1)):k};
Zx=function(k){if(k.copyOnWrite!==eT)return!1;var E=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=ba(E,E[_.Vd]|0);Q1j(E,2048);k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=E;k.copyOnWrite=void 0;k.noLegacyNull=void 0;return!0};
sA=function(k){if(!Zx(k)&&wY(k,k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Vd]|0))throw Error();};
la=function(k,E){E===void 0&&(E=k[_.Vd]|0);E&32&&!(E&4096)&&i4(k,E|4096)};
HPI=function(k,E,S){return S&2?!0:S&32&&!(S&4096)?(i4(E,S|2),k.copyOnWrite=eT,!0):!1};
q2=function(k,E,S,R,V){var N=S+(V?0:-1),h=k.length-1;if(h>=1+(V?0:-1)&&N>=h){var J=k[h];if(J!=null&&typeof J==="object"&&J.constructor===Object)return J[S]=R,E}if(N<=h)return k[N]=R,E;if(R!==void 0){var m;h=((m=E)!=null?m:E=k[_.Vd]|0)>>13&1023||536870912;S>=h?R!=null&&(N={},k[h+(V?0:-1)]=(N[S]=R,N)):k[N]=R}return E};
_.OA=function(k,E,S,R,V){var N=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=N[_.Vd]|0;R=wY(k,h)?1:R;V=!!V||R===3;R===2&&Zx(k)&&(N=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=N[_.Vd]|0);k=KTA(N,E);var J=k===zG?7:k[_.Vd]|0,m=p0I(J,h);var a=4&m?!1:!0;if(a){4&m&&(k=dY(k),J=0,m=QP(m,h),h=q2(N,h,E,k));for(var T=0,w=0;T<k.length;T++){var P=S(k[T]);P!=null&&(k[w++]=P)}w<T&&(k.length=w);S=(m|4)&-513;m=S&=-1025;m&=-4097}m!==J&&(i4(k,m),2&m&&Object.freeze(k));return k=ARi(k,m,N,
h,E,R,a,V)};
ARi=function(k,E,S,R,V,N,h,J){var m=E;N===1||(N!==4?0:2&E||!(16&E)&&32&R)?GG(E)||(E|=!k.length||h&&!(4096&E)||32&R&&!(4096&E||16&E)?2:256,E!==m&&i4(k,E),Object.freeze(k)):(N===2&&GG(E)&&(k=dY(k),m=0,E=QP(E,R),R=q2(S,R,V,k)),GG(E)||(J||(E|=16),E!==m&&i4(k,E)));2&E||!(4096&E||16&E)||la(S,R);return k};
KTA=function(k,E,S){k=CP(k,E,S);return Array.isArray(k)?k:zG};
p0I=function(k,E){2&E&&(k|=2);return k|1};
GG=function(k){return!!(2&k)&&!!(4&k)||!!(256&k)};
rRh=function(k){return _.AC(k,!0)};
u3C=function(k){k=dY(k);for(var E=0;E<k.length;E++){var S=k[E]=dY(k[E]);Array.isArray(S[1])&&(S[1]=JC(S[1]))}return k};
x2j=function(k,E){var S=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R=S[_.Vd]|0;a:{var V=R;R=wY(k,R);!R&&Zx(k)&&(S=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=S[_.Vd]|0);var N=CP(S,E);k=!1;if(N==null){if(R){E=GYR();break a}N=[]}else if(N.constructor===UA)if(N.arrayState&2&&!R)N=X0l(N);else{E=N;break a}else Array.isArray(N)?k=!!((N[_.Vd]|0)&2):N=[];if(R){if(!N.length){E=GYR();break a}k||(k=!0,JC(N))}else k&&(k=!1,N=u3C(N));!k&&V&32&&GI1(N);R=new UA(N,void 0,dpt,dpt);V=q2(S,
V,E,R);k||la(S,V);E=R}return E};
_.kJ=function(k,E,S,R){sA(k);var V=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=V[_.Vd]|0;if(S==null)return q2(V,N,E),k;var h=S===zG?7:S[_.Vd]|0,J=h,m=GG(h),a=m||Object.isFrozen(S);m||(h=0);a||(S=dY(S),J=0,h=QP(h,N),a=!1);h|=5;var T;m=(T=Oli(h))!=null?T:0;for(T=0;T<S.length;T++){var w=S[T],P=R(w,m);Object.is(w,P)||(a&&(S=dY(S),J=0,h=QP(h,N),a=!1),S[T]=P)}h!==J&&(a&&(S=dY(S),h=QP(h,N)),i4(S,h));q2(V,N,E,S);return k};
_.EX=function(k,E,S,R,V){sA(k);var N=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q2(N,N[_.Vd]|0,E,(R==="0"?Number(S)===0:S===R)?void 0:S,V);return k};
_.Sr=function(k,E,S){if(E&2)throw Error();var R=u4(E),V=KTA(k,S,R),N=V===zG?7:V[_.Vd]|0,h=p0I(N,E);if(2&h||GG(h)||16&h)V=dY(V),N=0,h=QP(h,E),q2(k,E,S,V,R);h&=-13;h!==N&&i4(V,h);return V};
LTI=function(k){if(RC){var E;return(E=k[RS])!=null?E:k[RS]=new Map}if(RS in k)return k[RS];E=new Map;Object.defineProperty(k,RS,{value:E});return E};
D2e=function(k,E,S,R,V){var N=LTI(k),h=jtA(N,k,E,S,V);h!==R&&(h&&(E=q2(k,E,h,void 0,V)),N.set(S,R));return E};
jtA=function(k,E,S,R,V){var N=k.get(R);if(N!=null)return N;for(var h=N=0;h<R.length;h++){var J=R[h];CP(E,J,V)!=null&&(N!==0&&(S=q2(E,S,N,void 0,V)),N=J)}k.set(R,N);return N};
$2h=function(k,E,S,R,V){var N=!1;R=CP(k,R,V,function(h){var J=Zjm(h,S,!1,E);N=J!==h&&J!=null;return J});
if(R!=null)return N&&!wY(R)&&la(k,E),R};
fxm=function(k,E,S,R,V,N,h,J){var m=wY(k,S);N=m?1:N;h=!!h||N===3;m=J&&!m;(N===2||m)&&Zx(k)&&(E=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S=E[_.Vd]|0);k=KTA(E,V);var a=k===zG?7:k[_.Vd]|0,T=p0I(a,S);if(J=!(4&T)){var w=k,P=S,B=!!(2&T);B&&(P|=2);for(var F=!B,K=!0,r=0,x=0;r<w.length;r++){var L=Zjm(w[r],R,!1,P);if(L instanceof R){if(!B){var q=wY(L);F&&(F=!q);K&&(K=q)}w[x++]=L}}x<r&&(w.length=x);T|=4;T=K?T&-4097:T|4096;T=F?T|8:T&-9}T!==a&&(i4(k,T),2&T&&Object.freeze(k));if(m&&!(8&T||!k.length&&
(N===1||(N!==4?0:2&T||!(16&T)&&32&S)))){GG(T)&&(k=dY(k),T=QP(T,S),S=q2(E,S,V,k));R=k;m=T;for(a=0;a<R.length;a++)w=R[a],T=MTC(w),w!==T&&(R[a]=T);m|=8;T=m=R.length?m|4096:m&-4097;i4(k,T)}return k=ARi(k,T,E,S,V,N,J,h)};
vWR=function(k){k==null&&(k=void 0);return k};
QP=function(k,E){return k=(2&E?k|2:k&-3)&-273};
_.bPI=function(k,E,S,R,V){sA(k);E=_.OA(k,E,V,2,!0);var N;V=(N=Oli(E===zG?7:E[_.Vd]|0))!=null?N:0;E.push(S(R,V));return k};
ZPt=function(k,E,S,R,V,N,h){sA(k);var J=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;k=fxm(k,J,J[_.Vd]|0,S,E,2,!0);if(N&&h)V!=null||(V=k.length-1),kYt(k,V),k.splice(V,N),k.length||(k[_.Vd]&=-4097);else{if(N){if(typeof V!=="number"||V<0||V>k.length)throw Error();}else R=R!=null?R:new S;V!=void 0?k.splice(V,N,R):k.push(R);V=S=k===zG?7:k[_.Vd]|0;(R=wY(R))?(S&=-9,k.length===1&&(S&=-4097)):S|=4096;S!==V&&i4(k,S);R||la(J)}};
stC=function(k,E){if(typeof k==="string")return new VN(dAm(k),E);if(Array.isArray(k))return new VN(new Uint8Array(k),E);if(k.constructor===Uint8Array)return new VN(k,!1);if(k.constructor===ArrayBuffer)return k=new Uint8Array(k),new VN(k,!1);if(k.constructor===F8)return E=d2m(k)||new Uint8Array(0),new VN(E,!0,k);if(k instanceof Uint8Array)return k=k.constructor===Uint8Array?k:new Uint8Array(k.buffer,k.byteOffset,k.byteLength),new VN(k,!1);throw Error();};
MIC=function(k){switch(typeof k){case "string":lxt(k)}};
zYh=function(k){switch(typeof k){case "string":qAl(k)}};
NU=function(){var k=function(){throw Error();};
Object.setPrototypeOf(k,k.prototype);return k};
OPb=function(k,E){var S=S===void 0?QtI:S;return new IS(k,E,S)};
kBm=function(k,E,S,R,V){GGC(k,S,Cah(E,R),V)};
ng=function(k,E,S,R){var V=R[k];if(V)return V;V={};V.binaryFields=R;V.messageMetadata=BU1(R[0]);var N=R[1],h=1;N&&N.constructor===Object&&(V.extensions=N,N=R[++h],typeof N==="function"&&(V.isMessageSet=!0,EJi!=null||(EJi=N),SXj!=null||(SXj=R[h+1]),N=R[h+=2]));for(var J={};N&&RsC(N);){for(var m=0;m<N.length;m++)J[N[m]]=N;N=R[++h]}for(m=1;N!==void 0;){typeof N==="number"&&(m+=N,N=R[++h]);var a=void 0;if(N instanceof IS)var T=N;else T=VrI,h--;N=void 0;if((N=T)==null?0:N.$$isMsg){N=R[++h];a=R;var w=h;
typeof N==="function"&&(N=N(),a[w]=N);a=N}N=R[++h];w=m+1;typeof N==="number"&&N<0&&(w-=N,N=R[++h]);for(;m<w;m++){var P=J[m];a?S(V,m,T,a,P):E(V,m,T,P)}}return R[k]=V};
RsC=function(k){return Array.isArray(k)&&!!k.length&&typeof k[0]==="number"&&k[0]>0};
IFj=function(k){return Array.isArray(k)?k[0]instanceof IS?k:[NkI,k]:[k,void 0]};
Cah=function(k,E){if(k instanceof _.iu)return k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(k))return v0(k,E,!1)};
nJh=function(k,E,S,R){var V=S.$$binaryReaderFn;k[E]=R?function(N,h,J){return V(N,h,J,R)}:V};
hsj=function(k,E,S,R,V){var N=S.$$binaryReaderFn,h,J;k[E]=function(m,a,T){return N(m,a,T,J||(J=ng(igl,nJh,hsj,R).messageMetadata),h||(h=JJR(R)),V)}};
JJR=function(k){var E=k[cJe];if(E!=null)return E;var S=ng(igl,nJh,hsj,k);E=S.isMessageSet?function(R,V){return EJi(R,V,S)}:function(R,V){for(;mUj(V)&&V.nextWireType_!=4;){var N=V.nextField_,h=S[N];
if(h==null){var J=S.extensions;J&&(J=J[N])&&(J=est(J),J!=null&&(h=S[N]=J))}if(h==null||!h(V,R,N)){J=V;h=J.fieldCursor_;aFI(J);if(J.discardUnknownFields)var m=void 0;else{var a=J.decoder_.cursor_-h;J.decoder_.cursor_=h;m=tr1(J.decoder_,a)}a=J=h=void 0;var T=R;m&&((h=(J=(a=T[ua])!=null?a:T[ua]=new hYe)[N])!=null?h:J[N]=[]).push(m)}}if(R=C4j(R))R.reviveUnknownFields=S.binaryFields[Tkj];return!0};
k[cJe]=E;k[Tkj]=wUi.bind(k);return E};
wUi=function(k,E,S,R){var V=this[igl],N=this[cJe],h=v0(void 0,V.messageMetadata,!1),J=C4j(k);if(J){var m=!1,a=V.extensions;if(a){V=function(F,K,r){if(r.length!==0)if(a[K])for(F=_.n(r),K=F.next();!K.done;K=F.next()){K=Pu1(K.value);try{m=!0,N(h,K)}finally{K.free()}}else R==null||R(k,K,r)};
if(E==null)nWb(J,V);else if(J!=null){var T=J[E];T&&V(J,E,T)}if(m){var w=k[_.Vd]|0;if(w&2&&w&2048&&(S==null||!S.reviveIntoImmutable))throw Error();var P=u4(w),B=function(F,K){if(CP(k,F,P)!=null)switch(S==null?void 0:S.resolutionBehavior){case 1:return;default:throw Error();}K!=null&&(w=q2(k,w,F,K,P));delete J[F]};
E==null?E2h(h,h[_.Vd]|0,function(F,K){B(F,K)}):B(E,CP(h,E,P))}}}};
est=function(k){k=IFj(k);var E=k[0].$$binaryReaderFn;if(k=k[1]){var S=JJR(k),R=ng(igl,nJh,hsj,k).messageMetadata;return function(V,N,h){return E(V,N,h,R,S)}}return E};
Bkj=function(k,E,S){k[E]=S.$$binaryWriterFn};
W$t=function(k,E,S,R){var V,N,h=S.$$binaryWriterFn;k[E]=function(J,m,a){return h(J,m,a,N||(N=ng(YXi,Bkj,W$t,R).messageMetadata),V||(V=F$C(R)))}};
F$C=function(k){var E=k[yJI];if(!E){var S=ng(YXi,Bkj,W$t,k);E=function(R,V){return oJh(R,V,S)};
k[yJI]=E}return E};
oJh=function(k,E,S){E2h(k,k[_.Vd]|0,function(R,V){if(V!=null){var N=XUI(S,R);N?N(E,V,R):R<500||Mh1(gJR,3)}});
(k=C4j(k))&&nWb(k,function(R,V,N){hJ(E,E.encoder_.end());for(R=0;R<N.length;R++)hJ(E,d2m(N[R])||new Uint8Array(0))})};
XUI=function(k,E){var S=k[E];if(S)return S;if(S=k.extensions)if(S=S[E]){S=IFj(S);var R=S[0].$$binaryWriterFn;if(S=S[1]){var V=F$C(S),N=ng(YXi,Bkj,W$t,S).messageMetadata;S=k.isMessageSet?SXj(N,V):function(h,J,m){return R(h,J,m,N,V)}}else S=R;
return k[E]=S}};
_.UUI=function(k,E,S){if(Array.isArray(E)){var R=E[_.Vd]|0;if(R&4)return E;for(var V=0,N=0;V<E.length;V++){var h=k(E[V]);h!=null&&(E[N++]=h)}N<V&&(E.length=N);S&&(i4(E,(R|5)&-1537),R&2&&Object.freeze(E));return E}};
_.cU=function(k,E,S){return new IS(k,E,S)};
_.Hge=function(k,E,S){return new IS(k,E,S)};
_.m$=function(k,E,S){q2(k,k[_.Vd]|0,E,S,u4(k[_.Vd]|0))};
K$t=function(k,E,S){E=_.O5(E);E!=null&&(_.er(k,S,1),k=k.encoder_,S=cCI||(cCI=new DataView(new ArrayBuffer(8))),S.setFloat64(0,+E,!0),DC=S.getUint32(0,!0),$2=S.getUint32(4,!0),_.aS(k,DC),_.aS(k,$2))};
pUt=function(k,E,S){E=_.O5(E);E!=null&&(_.er(k,S,5),k=k.encoder_,mpt(E),_.aS(k,DC))};
_.TB=function(k,E,S){E=$pC(E);if(E!=null&&(MIC(E),E!=null))switch(_.er(k,S,0),typeof E){case "number":k=k.encoder_;fj(E);tJ(k,DC,$2);break;case "bigint":S=BigInt.asUintN(64,E);S=new AJh(Number(S&BigInt(4294967295)),Number(S>>BigInt(32)));tJ(k.encoder_,S.JSC$8858_lo,S.JSC$8858_hi);break;default:S=lxt(E),tJ(k.encoder_,S.JSC$8858_lo,S.JSC$8858_hi)}};
uoe=function(k,E,S){E=fCj(E);if(E!=null&&(zYh(E),E!=null))switch(_.er(k,S,0),typeof E){case "number":k=k.encoder_;fj(E);tJ(k,DC,$2);break;case "bigint":S=rJI(E);tJ(k.encoder_,S.JSC$8856_lo,S.JSC$8856_hi);break;default:S=qAl(E),tJ(k.encoder_,S.JSC$8856_lo,S.JSC$8856_hi)}};
L$b=function(k,E,S){E=_.ia(E);E!=null&&E!=null&&(_.er(k,S,0),_.xUt(k.encoder_,E))};
_.DUh=function(k,E,S){jSe(k,S,fCj(E))};
$Ui=function(k,E,S){E=_.BYA(E);E!=null&&(_.er(k,S,0),k.encoder_.JSC$8860_buffer_.push(E?1:0))};
vJ1=function(k,E,S){E=_.F3(E);E!=null&&fFA(k,S,mAI(E))};
bgA=function(k,E,S,R,V){GGC(k,S,Cah(E,R),V)};
_.Zgi=function(k,E,S){E=E==null||typeof E=="string"||E instanceof F8?E:void 0;E!=null&&fFA(k,S,stC(E,!0).buffer)};
dU1=function(k,E,S){E=_.Fde(E);E!=null&&E!=null&&(_.er(k,S,0),wk(k.encoder_,E))};
_.sSj=function(k,E,S){E=_.ia(E);E!=null&&(E=parseInt(E,10),_.er(k,S,0),_.xUt(k.encoder_,E))};
_.PU=function(k,E){return function(S,R){var V={treatNewDataAsImmutable:!0};R&&Object.assign(V,R);S=Pu1(S,void 0,void 0,V);try{var N=new k,h=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;JJR(E)(h,S);var J=N}finally{S.free()}return J}};
_.BU=function(k){return function(E){return lFt(E,k)}};
MrA=function(k){return function(){return lFt(this,k)}};
_.qXI=function(k){return x2(function(E){return E instanceof k&&!wY(E)})};
_.WU=function(k){return function(E){return zsR(k,E)}};
Cuj=function(k,E){return QSC({child:k,origin:E||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:Ogb,getPayloadCase:function(S){return S.getPayloadCase()},
createInitMessage:function(S){var R=new oS,V=new GBI;S=_.Xo(V,1,S);return _.gk(R,5,UX,S)}})};
HU=function(k){return{valueOf:k}.valueOf()};
Eeh=function(){var k=null;if(!kP1)return k;try{var E=function(S){return S};
k=kP1.createPolicy("goog#html",{createHTML:E,createScript:E,createScriptURL:E})}catch(S){}return k};
R5t=function(){SYj===void 0&&(SYj=Eeh());return SYj};
_.pg=function(k){var E=R5t();k=E?E.createScriptURL(k):k;return new Kg(k)};
_.AJ=function(k){if(k instanceof Kg)return k.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.uu=function(k){return Object.isFrozen(k)&&Object.isFrozen(k.raw)};
VO1=function(k){return k.toString().indexOf("`")===-1};
Lg=function(k){return new _.xJ(NPb,k)};
jr=function(k){return k instanceof _.xJ};
_.DF=function(k){if(jr(k))return k.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
$J=function(k){return new Iej(function(E){return E.substr(0,k.length+1).toLowerCase()===k+":"})};
_.fg=function(k,E){E=E===void 0?neI:E;if(jr(k))return k;for(var S=0;S<E.length;++S){var R=E[S];if(R instanceof Iej&&R.isValid(k))return Lg(k)}};
_.ZF=function(k,E){E=E===void 0?neI:E;return _.fg(k,E)||bu};
_.dk=function(k){var E=window;if(typeof MediaSource!=="undefined"&&k instanceof MediaSource||typeof E.ManagedMediaSource!=="undefined"&&k instanceof E.ManagedMediaSource)return Lg(URL.createObjectURL(k));E=k.type;E.toLowerCase()==="application/octet-stream"?E=!0:(E=E.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),E=(E==null?void 0:E.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(E[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(E[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(E[1])||/^font\/[\w-]+$/i.test(E[1])));if(!E)throw Error("Z");return Lg(URL.createObjectURL(k))};
_.iRe=function(k){for(var E=_.sX.apply(1,arguments),S=[k[0]],R=0;R<E.length;R++)S.push(String(E[R])),S.push(k[R+1]);return Lg(S.join(""))};
_.JEI=function(k){if(!h5t){a:{var E=document.createElement("a");try{E.href=k}catch(S){k=void 0;break a}k=E.protocol;k=k===":"||k===""?"https:":k}return k}try{E=new URL(k)}catch(S){return"https:"}return E.protocol};
_.lu=function(k){k instanceof _.xJ?k=_.DF(k):k=cE1.test(k)?k:void 0;return k};
MU=function(k,E){E=_.lu(E);E!==void 0&&(k.href=E)};
zB=function(k){var E=R5t();k=E?E.createHTML(k):k;return new qU(k)};
OX=function(k){if(k instanceof qU)return k.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.GB=function(k,E){k.src=_.AJ(E).toString()};
mVI=function(k,E){k.setAttribute("sandbox","");for(var S=0;S<E.length;S++)k.sandbox.supports&&!k.sandbox.supports(E[S])||k.sandbox.add(E[S])};
_.aem=function(k,E,S){k.removeAttribute("srcdoc");switch(E){case 0:if(S instanceof Kg)throw new e51("TrustedResourceUrl",0);mVI(k,[]);E=_.lu(S);E!==void 0&&(k.src=E);break;case 1:if(!(S instanceof Kg))throw new e51(typeof S,1);mVI(k,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.GB(k,S);break;case 2:if(S instanceof Kg)throw new e51("TrustedResourceUrl",2);mVI(k,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
E=_.lu(S);E!==void 0&&(k.src=E);break;default:_.s5(E)}};
_.Cg=function(k,E,S,R){E=_.lu(E);return E!==void 0?k.open(E,S,R):null};
_.ke=function(k){k=k===void 0?document:k;var E,S;k=(S=(E=k).querySelector)==null?void 0:S.call(E,"script[nonce]");return k==null?"":k.nonce||k.getAttribute("nonce")||""};
_.Rb=function(k){var E=R5t();k=E?E.createScript(k):k;return new _.SO(k)};
Ve=function(k){if(k instanceof _.SO)return k.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
tOe=function(k){var E=_.ke(k.ownerDocument);E&&k.setAttribute("nonce",E)};
_.NV=function(k,E){k.textContent=Ve(E);tOe(k)};
_.Ib=function(k,E){k.src=_.AJ(E);tOe(k)};
_.nR=function(k,E){if(k.nodeType===1&&/^(script|style)$/i.test(k.tagName))throw Error("Z");k.innerHTML=OX(E)};
_.hE=function(k,E,S,R){if(k.length===0)throw Error("Z");k=k.map(function(N){if(N instanceof TPh)N=N.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return N});
var V=S.toLowerCase();if(k.every(function(N){return V.indexOf(N)!==0}))throw Error("aa`"+S);
E.setAttribute(S,R)};
_.JE=function(k,E,S){if(E instanceof Kg)k.href=_.AJ(E).toString(),k.rel=S;else{if(wdR.indexOf(S)===-1)throw Error("ba`"+S);E=_.lu(E);E!==void 0&&(k.href=E,k.rel=S)}};
PtI=function(k){if(k instanceof cd)return k.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.BPI=function(k,E){E=_.lu(E);E!==void 0&&(k.href=E)};
YY1=function(k){return new Worker(_.AJ(k),void 0)};
Wom=function(k){return _.pg(k)};
FoC=function(k,E){k&&(E=k.indexOf(E),0<=E&&k.splice(E,1))};
mo=function(k){return typeof k==="function"};
yEb=function(k){return k instanceof eO||k&&"closed"in k&&mo(k.remove)&&mo(k.add)&&mo(k.unsubscribe)};
ab=function(){};
tE=function(k){oel(function(){throw k;})};
TP=function(k){return k};
wP=function(){return Xdb(_.sX.apply(0,arguments))};
Xdb=function(k){return k.length===0?TP:k.length===1?k[0]:function(E){return k.reduce(function(S,R){return R(S)},E)}};
gem=function(k){var E;return(E=k!=null?k:void 0)!=null?E:Promise};
UV1=function(k,E){return new Pd(function(S){var R=0;return E.schedule(function(){R===k.length?S.complete():(S.next(k[R++]),S.closed||this.schedule())})})};
HR1=function(k,E){if(!k)throw Error("ca");return new Pd(function(S){var R=new eO;R.add(E.schedule(function(){var V=k[Symbol.asyncIterator]();R.add(E.schedule(function(){var N=this;V.next().then(function(h){h.done?S.complete():(S.next(h.value),N.schedule())})}))}));
return R})};
Koh=function(k,E,S){E=E.schedule(function(){try{S.call(this)}catch(R){k.error(R)}},0);
k.add(E)};
AEA=function(k,E){return new Pd(function(S){var R;S.add(E.schedule(function(){R=k[pdj]();Koh(S,E,function(){var V=R.next(),N=V.value;V.done?S.complete():(S.next(N),this.schedule())})}));
return function(){var V;return mo((V=R)==null?void 0:V.return)&&R.return()}})};
rEI=function(k,E){return new Pd(function(S){var R=new eO;R.add(E.schedule(function(){var V=k[Bd]();R.add(V.subscribe({next:function(N){R.add(E.schedule(function(){return S.next(N)}))},
error:function(N){R.add(E.schedule(function(){return S.error(N)}))},
complete:function(){R.add(E.schedule(function(){return S.complete()}))}}))}));
return R})};
u5l=function(k,E){return new Pd(function(S){return E.schedule(function(){return k.then(function(R){S.add(E.schedule(function(){S.next(R);S.add(E.schedule(function(){return S.complete()}))}))},function(R){S.add(E.schedule(function(){return S.error(R)}))})})})};
xVh=function(k){return new TypeError("da`"+(k!==null&&typeof k==="object"?"an invalid object":"'"+k+"'"))};
jbb=function(k,E){if(k!=null){if(mo(k[Bd]))return rEI(k,E);if(LoI(k))return UV1(k,E);if(mo(k==null?void 0:k.then))return u5l(k,E);if(Symbol.asyncIterator&&mo(k==null?void 0:k[Symbol.asyncIterator]))return HR1(k,E);if(mo(k==null?void 0:k[pdj]))return AEA(k,E)}throw xVh(k);};
Wd=function(k,E){return E?jbb(k,E):Ye(k)};
Ye=function(k){if(k instanceof Pd)return k;if(k!=null){if(mo(k[Bd]))return DVA(k);if(LoI(k))return $Vi(k);if(mo(k==null?void 0:k.then))return feI(k);if(Symbol.asyncIterator&&mo(k==null?void 0:k[Symbol.asyncIterator]))return veA(k);if(mo(k==null?void 0:k[pdj]))return bRj(k)}throw xVh(k);};
DVA=function(k){return new Pd(function(E){var S=k[Bd]();if(mo(S.subscribe))return S.subscribe(E);throw new TypeError("ea");})};
$Vi=function(k){return new Pd(function(E){for(var S=0;S<k.length&&!E.closed;S++)E.next(k[S]);E.complete()})};
feI=function(k){return new Pd(function(E){k.then(function(S){E.closed||(E.next(S),E.complete())},function(S){return E.error(S)}).then(null,tE)})};
bRj=function(k){return new Pd(function(E){for(var S=k[pdj]();!E.closed;){var R=S.next(),V=R.value;R.done?E.complete():E.next(V)}return function(){return mo(S==null?void 0:S.return)&&S.return()}})};
veA=function(k){return new Pd(function(E){ZRC(k,E).catch(function(S){return E.error(S)})})};
ZRC=function(k,E){var S,R,V,N,h,J;return _.c(function(m){switch(m.nextAddress){case 1:_.F5(m,2,3),N=_.ye(k);case 5:return m.yield(N.next(),8);case 8:R=m.yieldResult;if(R.done){m.jumpTo(3);break}h=R.value;E.next(h);m.jumpTo(5);break;case 3:_.ob(m);_.X5(m,9);if(!R||R.done||!(V=N.return)){m.jumpTo(9);break}return m.yield(V.call(N),9);case 9:_.ob(m,0,0,1);if(S)throw S.error;_.gP(m,10,1);break;case 10:_.gP(m,4);break;case 2:J=_.UY(m);S={error:J};m.jumpTo(3);break;case 4:E.complete(),_.KR(m)}})};
dVI=function(k,E){return E?UV1(k,E):$Vi(k)};
sb1=function(k){return mo(k[k.length-1])?k.pop():void 0};
pR=function(k){var E=k[k.length-1];return E&&mo(E.schedule)?k.pop():void 0};
AE=function(){var k=_.sX.apply(0,arguments),E=pR(k);return E?UV1(k,E):dVI(k)};
rP=function(k){var E=mo(k)?k:function(){return k};
return new Pd(function(S){return S.error(E())})};
ut=function(k){return function(E){if(mo(E==null?void 0:E.lift))return E.lift(function(S){try{return k(S,this)}catch(R){this.error(R)}});
throw new TypeError("fa");}};
jO=function(){return ut(function(k,E){var S=null;k._refCount++;var R=new xe(E,void 0,void 0,void 0,function(){if(!k||k._refCount<=0||0<--k._refCount)S=null;else{var V=k._connection,N=S;S=null;!V||N&&V!==N||V.unsubscribe();E.unsubscribe()}});
k.subscribe(R);R.closed||(S=k.connect())})};
MOA=function(){var k=leI;var E=E===void 0?0:E;return ut(function(S,R){R.add(k.schedule(function(){return S.subscribe(R)},E))})};
De=function(k){return ut(function(E,S){var R=0;E.subscribe(new xe(S,function(V){S.next(k.call(void 0,V,R++))}))})};
z5b=function(k){return De(function(E){return qYI(E)?k.apply(null,_.$e(E)):k(E)})};
ko1=function(k){if(k.length===1){var E=k[0];if(Qbj(E))return{args:E,keys:null};if(E&&typeof E==="object"&&ORh(E)===GPi)return k=Ctt(E),{args:k.map(function(S){return E[S]}),
keys:k}}return{args:k,keys:null}};
fR=function(){var k=_.sX.apply(0,arguments),E=pR(k),S=sb1(k);k=ko1(k);var R=k.args,V=k.keys;if(R.length===0)return Wd([],E);E=new Pd(Eyb(R,E,V?function(N){for(var h={},J=0;J<N.length;J++)h[V[J]]=N[J];return h}:TP));
return S?E.pipe(z5b(S)):E};
Eyb=function(k,E,S){S=S===void 0?TP:S;return function(R){SoI(E,function(){for(var V=k.length,N=Array(V),h=V,J=k.map(function(){return!1}),m=!0,a={i$jscomp$216:0};a.i$jscomp$216<V;a={i$jscomp$216:a.i$jscomp$216},a.i$jscomp$216++)SoI(E,function(T){return function(){Wd(k[T.i$jscomp$216],E).subscribe(new vd(R,function(w){N[T.i$jscomp$216]=w;
m&&(J[T.i$jscomp$216]=!0,m=!J.every(TP));m||R.next(S(N.slice()))},function(){return--h===0}))}}(a),R)},R)}};
SoI=function(k,E,S){k?S.add(k.schedule(E)):E()};
Rhi=function(k,E,S,R){var V=[],N=0,h=0,J=!1,m=function(a){N++;Ye(S(a,h++)).subscribe(new xe(E,function(T){E.next(T)},void 0,function(){N--;
for(var T={};V.length&&N<R;T={bufferedValue:void 0})T.bufferedValue=V.shift(),m(T.bufferedValue);!J||V.length||N||E.complete()}))};
k.subscribe(new xe(E,function(a){return N<R?m(a):V.push(a)},void 0,function(){J=!0;
!J||V.length||N||E.complete()}));
return function(){V=null}};
bt=function(k,E){var S=S===void 0?Infinity:S;if(mo(E))return bt(function(R,V){return De(function(N,h){return E(R,N,V,h)})(Ye(k(R,V)))},S);
typeof E==="number"&&(S=E);return ut(function(R,V){return Rhi(R,V,k,S)})};
V1h=function(k){k=k===void 0?Infinity:k;return bt(TP,k)};
NTl=function(){var k=_.sX.apply(0,arguments);return V1h(1)(dVI(k,pR(k)))};
IBA=function(k){return new Pd(function(E){Ye(k()).subscribe(E)})};
Ze=function(k,E,S){if(mo(S)){var R=S;S=void 0}if(R)return Ze(k,E,S).pipe(z5b(R));R=_.n(mo(k.addEventListener)&&mo(k.removeEventListener)?nyj.map(function(h){return function(J){return k[h](E,J,S)}}):mo(k.addListener)&&mo(k.removeListener)?iOR.map(hhI(k,E)):mo(k.on)&&mo(k.off)?JxI.map(hhI(k,E)):[]);
var V=R.next().value,N=R.next().value;return!V&&LoI(k)?bt(function(h){return Ze(h,E,S)})(dVI(k)):new Pd(function(h){if(!V)throw new TypeError("ga");
var J=function(){var m=_.sX.apply(0,arguments);return h.next(1<m.length?m:m[0])};
V(J);return function(){return N(J)}})};
hhI=function(k,E){return function(S){return function(R){return k[S](E,R)}}};
MV=function(){var k=_.sX.apply(0,arguments),E=pR(k);var S=typeof k[k.length-1]==="number"?k.pop():Infinity;return k.length?k.length===1?Ye(k[0]):V1h(S)(dVI(k,E)):sY};
mjl=function(k){return k.length===1&&cxi(k[0])?k[0]:k};
ehA=function(){var k=mjl(_.sX.apply(0,arguments));return ut(function(E,S){var R=[E].concat(_.$e(k)),V=function(){if(!S.closed)if(R.length>0){try{var N=Ye(R.shift())}catch(J){V();return}var h=new xe(S,void 0,ab,ab);S.add(N.subscribe(h));h.add(V)}else S.complete()};
V()})};
qV=function(k){return ut(function(E,S){var R=0;E.subscribe(new xe(S,function(V){return k.call(void 0,V,R++)&&S.next(V)}))})};
t1h=function(){var k=_.sX.apply(0,arguments);k=mjl(k);return k.length===1?Ye(k[0]):new Pd(aBI(k))};
aBI=function(k){return function(E){for(var S=[],R={i$jscomp$219:0};S&&!E.closed&&R.i$jscomp$219<k.length;R={i$jscomp$219:R.i$jscomp$219},R.i$jscomp$219++)S.push(Ye(k[R.i$jscomp$219]).subscribe(new xe(E,function(V){return function(N){if(S){for(var h=0;h<S.length;h++)h!==V.i$jscomp$219&&S[h].unsubscribe();S=null}E.next(N)}}(R))))}};
TT1=function(){var k=_.sX.apply(0,arguments),E=sb1(k),S=mjl(k);return S.length?new Pd(function(R){var V=S.map(function(){return[]}),N=S.map(function(){return!1});
R.add(function(){V=N=null});
for(var h={sourceIndex$jscomp$1:0};!R.closed&&h.sourceIndex$jscomp$1<S.length;h={sourceIndex$jscomp$1:h.sourceIndex$jscomp$1},h.sourceIndex$jscomp$1++)Ye(S[h.sourceIndex$jscomp$1]).subscribe(new xe(R,function(J){return function(m){V[J.sourceIndex$jscomp$1].push(m);V.every(function(a){return a.length})&&(m=V.map(function(a){return a.shift()}),R.next(E?E.apply(null,_.$e(m)):m),V.some(function(a,T){return!a.length&&N[T]})&&R.complete())}}(h),void 0,function(J){return function(){N[J.sourceIndex$jscomp$1]=
!0;
!V[J.sourceIndex$jscomp$1].length&&R.complete()}}(h)));
return function(){V=N=null}}):sY};
wH1=function(k){var E,S,R;return!!k&&typeof k.active==="boolean"&&typeof((E=k.clock)==null?void 0:E.now)==="function"&&((S=k.clock)==null?void 0:S.timeline)!==void 0&&!((R=k.lastMeasurement)==null||!R.timestamp)&&typeof k.equivalentTo==="function"&&typeof k.extrapolateToNow==="function"&&typeof k.extrapolateToTime==="function"&&typeof k.map==="function"&&typeof k.joinWith==="function"};
Pht=function(k){function E(S){return typeof S==="boolean"||typeof S==="string"||typeof S==="number"||S===void 0||S===null}
return E(k)?!0:Array.isArray(k)?k.every(E):typeof k==="object"?Object.keys(k).every(function(S){return typeof S==="string"})&&Object.values(k).every(function(S){return Array.isArray(S)?S.every(E):E(S)}):!1};
BTl=function(k){if(Pht(k))return k;if(wH1(k))return{lastMeasurement:{value:BTl(k.lastMeasurement.value),timestamp:zP(k.lastMeasurement.timestamp,new Qe(0,k.lastMeasurement.timestamp.timeline))},active:k.active};try{return JSON.parse(JSON.stringify(k))}catch(E){}return String(k)};
OY=function(k,E){return function(S){return new Pd(function(R){return S.subscribe(function(V){k.timeExecution(E,function(){R.next(V)})()},function(V){k.timeExecution(E,function(){R.error(V)})()},function(){k.timeExecution(E,function(){R.complete()})()})})}};
Yo1=function(k,E){var S=!1;return new Pd(function(R){var V=k.setTimeout(function(){S=!0;R.next(!0);R.complete()},E);
return function(){S||k.clearTimeout(V)}})};
W7h=function(k){k=k.global;if(k.fetchLater)return k.fetchLater.bind(k)};
GP=function(k){return ut(function(E,S){var R=null,V=!1,N;R=E.subscribe(new xe(S,void 0,function(h){N=Ye(k(h,GP(k)(E)));R?(R.unsubscribe(),R=null,N.subscribe(S)):V=!0}));
V&&(R.unsubscribe(),R=null,N.subscribe(S))})};
F7A=function(k,E,S){return function(R,V){var N=S,h=E,J=0;R.subscribe(new xe(V,function(m){var a=J++;h=N?k(h,m,a):(N=!0,m);V.next(h)},void 0,void 0))}};
yxm=function(k){k=k===void 0?null:k;return ut(function(E,S){var R=!1;E.subscribe(new xe(S,function(V){R=!0;S.next(V)},void 0,function(){R||S.next(k);
S.complete()}))})};
CR=function(){return ut(function(k,E){k.subscribe(new xe(E,ab))})};
ky=function(k){return ut(function(E,S){E.subscribe(new xe(S,function(){return S.next(k)}))})};
S1=function(k){return k<=0?function(){return sY}:ut(function(E,S){var R=0;
E.subscribe(new xe(S,function(V){++R<=k&&(S.next(V),k<=R&&S.complete())}))})};
Rh=function(k){var E=E===void 0?TP:E;var S;k=(S=k)!=null?S:oym;return ut(function(R,V){var N,h=!0;R.subscribe(new xe(V,function(J){var m=E(J);if(h||!k(N,m))h=!1,N=m,V.next(J)}))})};
oym=function(k,E){return k===E};
gyR=function(k){k=k===void 0?XHj:k;return ut(function(E,S){var R=!1;E.subscribe(new xe(S,function(V){R=!0;S.next(V)},void 0,function(){return R?S.complete():S.error(k())}))})};
XHj=function(){return new Ujj};
V$=function(){var k=_.sX.apply(0,arguments);return function(E){return NTl(E,AE.apply(null,_.$e(k)))}};
HO1=function(k){return ut(function(E,S){var R=0;E.subscribe(new xe(S,function(V){k.call(void 0,V,R++,E)||(S.next(!1),S.complete())},void 0,function(){S.next(!0);
S.complete()}))})};
K7A=function(){return ut(function(k,E){var S=[];k.subscribe(new xe(E,function(R){S.push(R);1<S.length&&S.shift()},void 0,function(){for(var R=_.n(S),V=R.next();!V.done;V=R.next())E.next(V.value);
E.complete()},function(){S=null}))})};
pH1=function(k,E){var S=arguments.length>=2;return function(R){return R.pipe(k?qV(function(V,N){return k(V,N,R)}):TP,K7A(),S?yxm(E):gyR(function(){return new Ujj}))}};
Ih=function(k){var E=mo(k)?k:function(){return k};
return mo()?ut(function(S,R){var V=E();(void 0)(V).subscribe(R).add(S.subscribe(V))}):function(S){var R=new Nj(S,E);
mo(S==null?void 0:S.lift)&&(R.lift=S.lift);R.source=S;R.subjectFactory=E;return R}};
hx=function(k){var E=new ih(k,void 0,void 0);return function(S){return Ih(function(){return E})(S)}};
cH=function(k,E){return ut(F7A(k,E,arguments.length>=2))};
m7=function(){var k=_.sX.apply(0,arguments),E=pR(k);return ut(function(S,R){(E?NTl(k,S,E):NTl(k,S)).subscribe(R)})};
e1=function(k){return ut(function(E,S){var R=null,V=0,N=!1;E.subscribe(new xe(S,function(h){var J;(J=R)==null||J.unsubscribe();J=V++;Ye(k(h,J)).subscribe(R=new xe(S,function(m){return S.next(m)},void 0,function(){R=null;
N&&!R&&S.complete()}))},void 0,function(){(N=!0,!R)&&S.complete()}))})};
ah=function(k,E){E=E===void 0?!1:E;return ut(function(S,R){var V=0;S.subscribe(new xe(R,function(N){var h=k(N,V++);(h||E)&&R.next(N);!h&&R.complete()}))})};
Axh=function(k,E,S){var R=mo(k)||E||S?{next:k,error:E,complete:S}:k;return R?ut(function(V,N){V.subscribe(new xe(N,function(h){var J;(J=R.next)==null||J.call(R,h);N.next(h)},function(h){var J;
(J=R.error)==null||J.call(R,h);N.error(h)},function(){var h;
(h=R.complete)==null||h.call(R);N.complete()}))}):TP};
rxb=function(){var k=_.sX.apply(0,arguments),E=sb1(k);return ut(function(S,R){for(var V=k.length,N=Array(V),h=k.map(function(){return!1}),J=!1,m={i$jscomp$229:0};m.i$jscomp$229<V;m={i$jscomp$229:m.i$jscomp$229},m.i$jscomp$229++)Ye(k[m.i$jscomp$229]).subscribe(new xe(R,function(a){return function(T){N[a.i$jscomp$229]=T;
J||h[a.i$jscomp$229]||(h[a.i$jscomp$229]=!0,(J=h.every(TP))&&(h=null))}}(m),void 0,ab));
S.subscribe(new xe(R,function(a){J&&(a=[a].concat(_.$e(N)),R.next(E?E.apply(null,_.$e(a)):a))}))})};
xjt=function(k){var E=u11;if(E)for(var S in E)Object.prototype.hasOwnProperty.call(E,S)&&k(E[S],S,E)};
L7h=function(){var k=[];xjt(function(E){k.push(E)});
return k};
Djb=function(k){try{return!!k&&k.location.href!=null&&jhi(k,"foo")}catch(E){return!1}};
_.To=function(k){return new TPh(k[0].toLowerCase())};
$je=function(k){for(var E=_.sX.apply(1,arguments),S=k[0],R=0;R<k.length-1;R++)S+=String(E[R]),S+=k[R+1];E=document.implementation.createHTMLDocument("");R=E.createElement("style");E.head.appendChild(R);E=R.sheet;E.insertRule(S,0);if(E.cssRules.length===1&&(S=E.cssRules[0],S instanceof CSSStyleRule))return new cd(S.cssText.replace(/</g,"\\3C "))};
fBh=function(k){try{return new URL(k,window.document.baseURI)}catch(E){return new URL("about:invalid")}};
vyi=function(k,E){var S=E.createRange();S.selectNode(E.body);k=zB(k);return S.createContextualFragment(OX(k))};
bO1=function(k){k=k.nodeName;return typeof k==="string"?k:"FORM"};
ZOR=function(k){k=k.nodeType;return k===1||typeof k!=="number"};
PH=function(k,E,S){k.setAttribute(E,S)};
dj1=function(k){return k.parts.map(function(E){var S=E.descriptor;return""+E.url+(S?" "+S:"")}).join(" , ")};
_.BH=function(k){var E=_.sX.apply(1,arguments);if(E.length===0)return _.pg(k[0]);for(var S=k[0],R=0;R<E.length;R++)S+=encodeURIComponent(E[R])+k[R+1];return _.pg(S)};
_.Yy=function(k,E){k=_.AJ(k).toString();var S=k.split(/[?#]/),R=/[?]/.test(k)?"?"+S[1]:"";return she(S[0],R,/[#]/.test(k)?"#"+(R?S[2]:S[1]):"",E)};
she=function(k,E,S,R){function V(h,J){h!=null&&(Array.isArray(h)?h.forEach(function(m){return V(m,J)}):(E+=N+encodeURIComponent(J)+"="+encodeURIComponent(h),N="&"))}
var N=E.length?"&":"?";R.constructor===Object&&(R=Object.entries(R));Array.isArray(R)?R.forEach(function(h){return V(h[1],h[0])}):R.forEach(V);
return _.pg(k+E+S)};
M1I=function(){var k=Ve(lB1).toString();return _.pg(URL.createObjectURL(new Blob([k],{type:"text/javascript"})))};
qob=function(k){var E=[],S=0,R;for(R in k)E[S++]=R;return E};
zhh=function(k,E){for(var S in k)if(k[S]==E)return!0;return!1};
Qhj=function(k,E,S){for(var R in k)if(E.call(S,k[R],R,k))return R};
OOl=function(k){if(!k||typeof k!=="object")return k;if(typeof k.clone==="function")return k.clone();if(typeof Map!=="undefined"&&k instanceof Map)return new Map(k);if(typeof Set!=="undefined"&&k instanceof Set)return new Set(k);if(k instanceof Date)return new Date(k.getTime());var E=Array.isArray(k)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(k)||k instanceof DataView?{}:new k.constructor(k.length),S;for(S in k)E[S]=OOl(k[S]);return E};
Goi=function(k){var E=arguments.length;if(E==1&&Array.isArray(arguments[0]))return Goi.apply(null,arguments[0]);if(E%2)throw Error("ma");for(var S={},R=0;R<E;R+=2)S[arguments[R]]=arguments[R+1];return S};
ChR=function(k){var E=arguments.length;if(E==1&&Array.isArray(arguments[0]))return ChR.apply(null,arguments[0]);for(var S={},R=0;R<E;R++)S[arguments[R]]=!0;return S};
WH=function(k,E,S,R){this.top=k;this.right=E;this.bottom=S;this.left=R};
kxm=function(k){k=k.global;if(k.PendingGetBeacon)return k.PendingGetBeacon};
y$=function(k){return function(E){return E.pipe(E4I(k,Ih(new F1)))}};
oh=function(k){return function(E){return E.pipe(E4I(k,hx(1)))}};
E4I=function(k,E){function S(R){return new Pd(function(V){return R.subscribe(function(N){X1(k,function(){return void V.next(N)},3)},function(N){X1(k,function(){return void V.error(N)},3)},function(){X1(k,function(){return void V.complete()},3)})})}
return wP(S,MOA(),E,jO(),S)};
VoI=function(k){var E=Sai(k);return E===null?new gT(null):E.pipe(De(function(S){S=S.serialize();if(R2j)S=_.Vt.btoa(S);else{for(var R=[],V=0,N=0;N<S.length;N++){var h=S.charCodeAt(N);h>255&&(R[V++]=h&255,h>>=8);R[V++]=h}S=_.xW(R)}return S}),S1(1),oh(k.queue))};
N7I=function(k){var E=E===void 0?{}:E;if(typeof Event==="function")return new Event(k,E);if(typeof document!=="undefined"){var S=document.createEvent("CustomEvent");S.initCustomEvent(k,E.bubbles||!1,E.cancelable||!1,E.detail);return S}throw Error();};
I7b=function(k){return typeof k==="string"?document.getElementById(k):k};
iuI=function(k){var E=!1;E=E===void 0?!1:E;if(k.tagName==="IMG"){if(k.complete&&(!k.naturalWidth||!k.naturalHeight))return!0;var S;if(E&&((S=k.style)==null?void 0:S.display)==="none")return!0}var R,V;return n4l.test((R=k.getAttribute("width"))!=null?R:"")&&n4l.test((V=k.getAttribute("height"))!=null?V:"")};
h2I=function(k,E){if(k.tagName==="IMG")return k.naturalWidth&&k.naturalHeight?!0:!1;try{if(k.readyState)var S=k.readyState;else{var R,V;S=(R=k.contentWindow)==null?void 0:(V=R.document)==null?void 0:V.readyState}return S==="complete"}catch(N){return E===void 0?!1:E}};
JPi=function(k){k||(k=function(E,S,R){E.addEventListener(S,R)});
return k};
a7l=function(k,E){var S=cPI();S=S===void 0?new mT1:S;if(k=I7b(k)){var R=JPi(R);for(var V=!1,N=function(r){V||(V=!0,E(r))},h,J=2,m=0;m<e2C.length;++m)if(e2C[m]===k.tagName){J=3;
h=[k];break}h||(h=k.querySelectorAll(e2C.join(",")));var a=0,T=0,w=!0,P=k=!1;m={};for(var B=0;B<h.length;m={isImg:void 0},B++){var F=h[B];if(!iuI(F))if(m.isImg=F.tagName==="IMG",h2I(F,S.crossDomainLoadedDefault))k=!0,m.isImg&&(w=!0);else{a++;var K=function(r){return function(x){a--;!a&&w&&N(J);r.isImg&&(x=x&&x.type==="error",T--,x||(w=!0),!T&&P&&w&&N(J))}}(m);
R(F,"load",K);m.isImg&&(T++,R(F,"error",K))}}T===0&&(w=!0);h=null;h=_.Vt.document.readyState==="complete";if(a===0&&!k&&h)J=5;else if(a||!k){R(_.Vt,"load",function(){!S.pendingImagesBlockLoad||!T&&w?N(4):P=!0});
return}N(J)}};
toe=function(k,E,S){if(k)for(var R=0;k!=null&&R<500&&!S(k);++R)k=E(k)};
T7I=function(k,E){toe(k,function(S){try{return S===S.parent?null:S.parent}catch(R){}return null},E)};
wym=function(k,E){if(k.tagName=="IFRAME")E(k);else{k=k.querySelectorAll("IFRAME");for(var S=0;S<k.length&&!E(k[S]);++S);}};
Pk1=function(k){return(k=k.ownerDocument)&&(k.parentWindow||k.defaultView)||null};
B7I=function(k,E,S){try{var R=JSON.parse(S.data)}catch(h){}if(typeof R==="object"&&R&&R.type==="creativeLoad"){var V=Pk1(k);if(S.source&&V){var N;T7I(S.source,function(h){try{if(h.parent===V)return N=h,!0}catch(J){}});
N&&wym(k,function(h){if(h.contentWindow===N)return E(R),!0})}}};
Yah=function(k){return typeof k==="string"?document.getElementById(k):k};
o4I=function(){var k={};return k[0]=_.BH(Wbi,"current"),k[1]=_.BH(FbI),k[2]=_.BH(yPt),k};
Uo=function(k,E){return k.left===E.left&&k.top===E.top&&k.width===E.width&&k.height===E.height};
Xyh=function(k,E){return{left:Math.max(k.left,E.left),top:Math.max(k.top,E.top),width:Math.max(0,Math.min(k.left+k.width,E.left+E.width)-Math.max(k.left,E.left)),height:Math.max(0,Math.min(k.top+k.height,E.top+E.height)-Math.max(k.top,E.top))}};
g4t=function(k,E){return{left:Math.round(k.left+E.x),top:Math.round(k.top+E.y),width:k.width,height:k.height}};
UTj=function(k,E,S){if(k&&E!==null&&E!=E.top){if(!E.top)return new _.KO(-12245933,-12245933);E=E.top}try{return(S===void 0?0:S)?(new _.KO(E.innerWidth,E.innerHeight)).round():_.pO(E).round()}catch(R){return new _.KO(-12245933,-12245933)}};
HuI=function(k,E,S){try{if(k){if(!E.top)return new WH(-12245933,-12245933,-12245933,-12245933);E=E.top}var R=UTj(k,E,S),V=R.height,N=R.width;if(N===-12245933)return new WH(N,N,N,N);var h=Ax(rT(E.document)),J=h.x,m=h.y;return new WH(m,J+N,m+V,J)}catch(a){return new WH(-12245933,-12245933,-12245933,-12245933)}};
Kbj=function(k){var E;return(E=k.google_tag_data)!=null?E:k.google_tag_data={}};
pyl=function(k){var E,S;return typeof((E=k.navigator)==null?void 0:(S=E.userAgentData)==null?void 0:S.getHighEntropyValues)==="function"};
rPm=function(k){if(!pyl(k))return null;var E=Kbj(k);if(E.uach_promise)return E.uach_promise;k=k.navigator.userAgentData.getHighEntropyValues(APb).then(function(S){E.uach!=null||(E.uach=S);return S});
return E.uach_promise=k};
sXj=function(k){var E;return ubh(xT1(Lbj(jX1(DTb($TI(f7C(v4C(but(new Zul,k.architecture||""),k.bitness||""),k.mobile||!1),k.model||""),k.platform||""),k.platformVersion||""),k.uaFullVersion||""),((E=k.fullVersionList)==null?void 0:E.map(function(S){var R=new dTC;R=_.uh(R,1,S.brand);return _.uh(R,2,S.version)}))||[]),k.wow64||!1)};
l71=function(k){var E,S;return(S=(E=rPm(k))==null?void 0:E.then(function(R){return sXj(R)}))!=null?S:null};
Moi=function(k,E){return new Pd(function(S){var R=!1,V=Array(E.length);V.fill(void 0);var N=new Set,h=new Set,J=function(w,P){k.running?(V[P]=w,N.add(P),R||(R=!0,X1(k,function(){R=!1;S.next(_.d1(V))},1))):S.error(new xy(P))},m=function(w,P){h.add(P);
N.add(P);X1(k,function(){S.error(w)},1)},a=function(w){h.add(w);
X1(k,function(){h.size===E.length&&S.complete()},1)},T=E.map(function(w,P){return w.subscribe(function(B){return void J(B,P)},function(B){return void m(B,P)},function(){return void a(P)})});
return function(){T.forEach(function(w){return void w.unsubscribe()})}})};
QXI=function(k,E,S){function R(){if(E.debugChannel){var r=E.debugChannel,x=r.next;var L={creativeId:E.debugNames.getName(S),requiredSignals:V,signals:Object.assign({},N),hasPrematurelyCompleted:h,errorMessage:J,erroredSignalKey:m};L={specMajor:2,specMinor:0,specPatch:0,timestamp:zP(E.timeProvider.now(),new Qe(0,E.timeProvider.timeline)),instanceId:E.debugNames.getName(E.symbol),creativeState:L};x.call(r,L)}}
for(var V=Object.keys(k),N={},h=!1,J=null,m=null,a={},T=new Set,w=[],P=[],B=_.n(V),F=B.next(),K={};!F.done;K={key$jscomp$394:void 0},F=B.next())K.key$jscomp$394=F.value,F=k[K.key$jscomp$394],F instanceof gT?(a[K.key$jscomp$394]=F.value,T.add(K.key$jscomp$394),E.debugChannel&&(N[String(K.key$jscomp$394)]=BTl(F.value))):(F=F.pipe(Rh(function(r,x){return wH1(r)||wH1(x)?!1:r===x}),De(function(r){return function(x){E.debugChannel&&(N[String(r.key$jscomp$394)]=BTl(x),R());
var L={};return L[r.key$jscomp$394]=x,L}}(K)),GP(function(r){return function(x){if(x instanceof xy)throw new qah(String(r.key$jscomp$394));
throw x;}}(K)),Axh(function(r){return function(){T.add(r.key$jscomp$394)}}(K),function(r){return function(x){m=String(r.key$jscomp$394);
J=String(x);R()}}(K),function(r){return function(){T.has(r.key$jscomp$394)||(h=!0,R())}}(K))),P.push(K.key$jscomp$394),w.push(F));
(k=Object.keys(N).length>0)&&R();B=Moi(E.queue,w).pipe(GP(function(r){if(r instanceof xy)throw new z2i(String(P[r.inputObservableIndex]));throw r;}),De(function(r){return Object.freeze(Object.assign.apply(Object,[{},
a].concat(_.$e(r))))}));
return(w=w.length>0)&&k?MV(AE(Object.freeze(a)),B):w?B:AE(Object.freeze(a))};
Ou1=function(k,E,S,R,V){return k.performanceMonitor.timeExecution.bind(k.performanceMonitor)(733,function(){var N={};try{return E.pipe(GP(function(h){R(Object.assign({},N,{error:h}));return sY}),bt(function(h){try{var J=S(k,h)}catch(a){return R(Object.assign({},N,{error:a instanceof Error?a:String(a)})),sY}var m={};
return QXI(J,k,h.symbol).pipe(Axh(function(a){m=a}),hx(1),jO()).pipe(V,GP(function(a){R(Object.assign({},m,{error:a}));
return sY}),V$(void 0),De(function(){return!0}))})).pipe(cH(function(h){return h+1},0),GP(function(h){R(Object.assign({},N,{error:h}));
return sY}))}catch(h){return R(Object.assign({},N,{error:h})),sY}})()};
LO=function(k){var E=new Map;if(typeof k!=="object"||k===null)return E;Object.values(k).forEach(function(S){S&&typeof S.extrapolateToNow==="function"&&(E.has(S.clock.timeline)||E.set(S.clock.timeline,S.clock.now()))});
return E};
Gxl=function(k,E){return typeof k==="string"?encodeURIComponent(k):typeof k==="number"?String(k):Array.isArray(k)?k.map(function(S){return Gxl(S,E)}).join(","):k instanceof Qe?k.toString():k&&typeof k.extrapolateToNow==="function"?Gxl(k.extrapolateUsingTimestampMap(E).value,E):k===!0?"1":k===!1?"0":k===void 0||k===null?null:k instanceof CkC?kL1(k):[k.top,
k.left,k.top+k.height,k.left+k.width].join()};
EOm=function(k,E){k=Object.entries(k).map(function(S){var R=_.n(S);S=R.next().value;R=R.next().value;R=Gxl(R,E);return R===null?"":S+"="+R}).filter(function(S){return S!==""});
return k.length?k.join("&"):""};
V$t=function(k,E){var S=Smi,R=RwA;E=E===void 0?.01:E;return function(V){E>0&&Math.random()<=E&&(k.global.HTMLFencedFrameElement&&k.global.fence&&typeof k.global.fence.reportEvent==="function"&&k.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),V=Object.assign({},V,{errorMessage:V.error instanceof Error&&V.error.message?V.error.message:String(V.error),errorStack:V.error instanceof Error&&V.error.stack?String(V.error.stack):null,errorName:V.error instanceof
Error&&V.error.name?String(V.error.name):null,errorContext:String(k.performanceMonitor.timedFunctionContext),errorEscapedQueryId:V.escapedQueryId}),S(Object.assign({},V,{payloadMapper:function(){return function(N){try{return R(Object.assign({},N))}catch(h){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),LO(V)).forEach(function(N){k.beaconFactory.makeBeacon(N).sendNow()}))}};
Nti=function(){var k=_.sX.apply(0,arguments);return function(E){var S=E.pipe(hx(1),jO());E=k.map(function(R){return S.pipe(R,V$(!0))});
return fR(E).pipe(S1(1),CR())}};
IKb=function(){var k=_.sX.apply(0,arguments);return function(E){var S=E.pipe(hx(1),jO());E=k.map(function(R){return S.pipe(R,V$(!0))});
return MV.apply(null,_.$e(E)).pipe(S1(1),CR())}};
nOi=function(k,E){return function(S){var R=S.pipe(hx(1),jO());S=R.pipe(k,V$(!0));R=R.pipe(wP(E,hx(),jO()),V$(!0));S=fR([S,R]);return t1h(S,R).pipe(S1(1),CR())}};
ioi=function(k,E,S){S(!0)};
hwj=function(k,E){return wP(e1(function(S){var R=k(S),V=E(S),N={};return R&&V&&N?new Pd(function(h){V(R,N,function(J){h.next(Object.assign({},S,{canEmit:J}));h.complete()});
return function(){}}):j1}),qV(function(S){return S.canEmit}))};
JNC=function(k){var E={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(S){return S.pipe(e1(function(R){return new Pd(function(V){function N(){J.disconnect();m.unsubscribe()}
var h=k.MutationObserver;if(h&&R.ref!==void 0){var J=new h(function(a){V.next(a)});
J.observe(R.ref,E);var m=R.JSC$9355_released.subscribe(N);return N}})}))}};
cNI=function(k){if(k.measurementDeferralState===3)return null;if(k.timeOnScreenReason!==void 0){var E=k.creativeFound===!1?"n":null;if(E!==null)return E}return k.geometricMeasurementErrors instanceof DB?"msf":k.contextValidationErrors instanceof $y?"c":k.contextVisibilityKnown===!1?"pv":k.geometricMeasurementErrors||k.contextValidationErrors?"x":null};
ewl=function(k,E){return k.replace(mnm,function(S,R){try{var V=_.fO.get(E,R);if(V==null||V.toString()==null)return S;V=V.toString();if(V==""||!_.Jh(V==null?"":String(V)))return encodeURIComponent(V).replace(/%2C/g,",")}catch(N){}return S})};
aKh=function(k,E){var S=Object.assign({},k),R=k.userAgentClientHints;S=(delete S.userAgentClientHints,S);S=k.payloadMapper(S);var V=EOm(S,E);return _.vH(k.urlPrefixes,function(N){var h="";typeof R==="string"&&(h="&"+EOm({uach:R},E));var J={};return ewl(N,(J.VIEWABILITY=V,J))+h})};
Smi=function(k,E){var S=k.payloadMapper(k),R=EOm(S,E);return R?_.vH(k.urlPrefixes,function(V){V=V.indexOf("?")>=0?V:V+"?";V="?&".indexOf(V.slice(-1))>=0?V:V+"&";return V+R}):k.urlPrefixes};
t$I=function(){return wP(qV(function(k){return k!==void 0}),De(function(k){return k}))};
Tth=function(k){return wP(De(function(){return!0}),m7(!1),oh(k))};
wXi=function(k){return k.length<=0?sY:fR(k.map(function(E){var S=0;return E.pipe(De(function(R){return{index:S++,value:R}}))})).pipe(qV(function(E){return E.every(function(S){return S.index===E[0].index})}),De(function(E){return E.map(function(S){return S.value})}))};
PI1=function(k,E){k.currentState&&(k.previousState=k.currentState);k.currentState=E;k.previousState&&k.previousState.value?(E=Math.max(0,zP(E.timestamp,k.previousState.timestamp)),k.totalTime+=E,k.consecutiveTime+=E):k.consecutiveTime=0;return k};
BtA=function(){return wP(cH(PI1,{totalTime:0,consecutiveTime:0}),De(function(k){return k.totalTime}))};
Ym1=function(){return wP(cH(PI1,{totalTime:0,consecutiveTime:0}),De(function(k){return k.consecutiveTime}))};
Whe=function(k,E){return function(S){return wXi(E.map(function(R){return S.pipe(k(R))}))}};
FhA=function(){var k;return wP(Axh(function(E){return void(k=E.timestamp)}),Ym1(),De(function(E){return{timestamp:k,
value:Math.round(E)}}))};
yNh=function(k,E){return Uo(k.topWindowViewportExternalGeometry,E.topWindowViewportExternalGeometry)&&Uo(k.elementGeometry,E.elementGeometry)&&Uo(k.exposedViewportLocalGeometry,E.exposedViewportLocalGeometry)&&Uo(k.intersectionGeometry,E.intersectionGeometry)&&k.elementGeometrySourceName===E.elementGeometrySourceName&&k.measurementRequests===E.measurementRequests&&k.viewportGeometrySourceName===E.viewportGeometrySourceName&&k.viewportLocalAppOffset.x===E.viewportLocalAppOffset.x&&k.viewportLocalAppOffset.y===
E.viewportLocalAppOffset.y};
Unm=function(k,E){return function(S){return function(R){var V=R.pipe(Ih(new F1),jO());R=S.element.pipe(Rh());V=V.pipe(De(function(N){return N.value}));
return fR([R,V,E]).pipe(De(function(N){var h=_.n(N);N=h.next().value;var J=h.next().value;h=h.next().value;if(N.ref===void 0)var m={top:0,left:0,width:0,height:0};else{m=N.ref.getBoundingClientRect();var a=N.ref,T=k.global,w=new _.bh(0,0),P=ZB(_.dT(a));if(jhi(P,"parent")){do{if(P==T)var B=_.so(a);else B=oOC(a),B=new _.bh(B.left,B.top);w.x+=B.x;w.y+=B.y}while(P&&P!=T&&P!=P.parent&&(a=P.frameElement)&&(P=P.parent))}m={top:w.y,left:w.x,width:m.width,height:m.height}}m=g4t(m,J.viewportLocalAppOffset);
T=Xyh(m,J.exposedViewportLocalGeometry);w=k.timeProvider.now();P=Object;a=P.assign;if(h!==2||k.inCrossDomainIframe||T.width<=0||T.height<=0)var F=!1;else try{var K=k.document.elementFromPoint(T.left+T.width/2,T.top+T.height/2);F=K?!XXm(K,N):!1}catch(r){F=!1}return{timestamp:w,value:a.call(P,{},J,{elementGeometrySourceName:"geo",intersectionGeometry:F?gO1.intersectionGeometry:T,elementGeometry:m})}}),y$(k.queue))}}};
XXm=function(k,E,S){S=S===void 0?0:S;return k.ref===void 0||E.ref===void 0?!1:k.ref===E.ref||_.lh(E.ref,function(R){return R===k.ref})?!0:E.ref.ownerDocument&&E.ref.ownerDocument.defaultView&&E.ref.ownerDocument.defaultView===E.ref.ownerDocument.defaultView.top?!1:S<10&&E.ref.ownerDocument&&E.ref.ownerDocument.defaultView&&E.ref.ownerDocument.defaultView.frameElement?XXm(k,new Mj(E.ref.ownerDocument.defaultView.frameElement),S+1):!0};
pX1=function(k){return function(E){return E.pipe(k.ResizeObserver?HoI(k):Khb(k),hx(1),jO())}};
HoI=function(k){return function(E){return E.pipe(e1(function(S){var R=k.ResizeObserver;if(!R||S.ref===void 0)return AE(gO1.elementGeometry);var V=(new Pd(function(N){function h(){S.ref!==void 0&&J.unobserve(S.ref);J.disconnect();m.unsubscribe()}
if(S.ref===void 0)return N.complete(),function(){};
var J=new R(function(a){a.forEach(function(T){N.next(T)})});
J.observe(S.ref);var m=S.JSC$9355_released.subscribe(h);return h})).pipe(OY(k.performanceMonitor,736),De(function(N){return N.contentRect}));
return MV(AE(S.ref.getBoundingClientRect()),V)}),Rh(Uo))}};
Khb=function(k){return function(E){var S=E.pipe(JNC(k)),R=k.onResize;S=MV(E.pipe(De(function(){return N7I("resize")})),S,R);
return fR(E,S).pipe(OY(k.performanceMonitor,737),De(function(V){V=_.n(V).next().value;return V.ref===void 0?void 0:V.ref.getBoundingClientRect()}),t$I(),Rh(Uo))}};
uFb=function(k,E){var S=AN1(k,E).pipe(hx(1),jO());return function(R){return function(V){V=V.pipe(e1(function(N){return N.element}),Rh());
return fR([S,V]).pipe(e1(function(N){var h=_.n(N);N=h.next().value;h=h.next().value;return rNC(k,N.intersectionObserver,pX1(k),N.observations,R,N.flushRecords,h)}),y$(k.queue))}}};
xnt=function(k){return De(function(E){return E.value.viewportGeometrySourceName!=="nio"?E:Object.assign({},E,{value:Object.assign({},E.value,{exposedViewportLocalGeometry:qj(k,!0),topWindowViewportExternalGeometry:qj(k,!0)})})})};
Lhl=function(k,E){return AE(E).pipe(k,De(function(){return E}))};
AN1=function(k,E){return k.timeProvider.timeline!==jeC?rP(new DB(2)):k.MutationObserver?typeof IntersectionObserver==="undefined"?rP(new DB(0)):(new Pd(function(S){var R=new F1,V=new Q$(R.next.bind(R),{threshold:[].concat(_.$e(E))});S.next({observations:R.pipe(OY(k.performanceMonitor,735)),intersectionObserver:V,flushRecords:function(N){N=V.takeRecords(N);N.length>0&&R.next(N)}})})).pipe(S1(1),hx(1),jO()):rP(new DB(1))};
Dni=function(k){return jbb(k.sort(function(E,S){return E.time-S.time}),leI)};
rNC=function(k,E,S,R,V,N,h){return new Pd(function(J){function m(){F||(F=!0,h.ref!==void 0&&E.unobserve(V,h.ref),T.unsubscribe(),B.unsubscribe(),P.unsubscribe(),K.unsubscribe())}
if(h.ref!==void 0){$nI(E,V);E.observe(V,h.ref);var a=new Oo({timestamp:k.timeProvider.now(),value:Object.assign({},gO1,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),T=R.pipe(bt(function(r){return Dni(r)}),qV(function(r){return r.target===h.ref}),De(function(r){return{timestamp:new Qe(r.time,jeC),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:r.rootBounds||Go,topWindowViewportExternalGeometry:r.rootBounds||qj(k,!0),measurementRequests:w,elementGeometrySourceName:"nio",intersectionGeometry:r.intersectionRect,elementGeometry:r.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:r.isIntersecting,isV2Visible:r.isVisible}}}),Ih(a),jO()).subscribe(J),w=new F1,P=w.subscribe(function(){N(V);
J.next({timestamp:k.timeProvider.now(),value:a.value.value});h.ref!==void 0&&(E.unobserve(V,h.ref),E.observe(V,h.ref))}),B=Lhl(S,h).subscribe(function(){w.next()}),F=!1,K=h.JSC$9355_released.subscribe(function(){return m()});
return m}})};
fKA=function(k,E){var S=k.getOnBackgrounded().pipe(De(function(){return"b"}));
return t1h(E,S).pipe(S1(1),oh(k.queue))};
CO=function(k){return function(E){var S;return E.pipe(Axh(function(R){return void(S=R.timestamp)}),De(function(R){return R.value}),k,De(function(R){return{timestamp:S,
value:R}}))}};
vOb=function(k){return k.intersectionGeometry.width*k.intersectionGeometry.height/(k.elementGeometry.width*k.elementGeometry.height)};
k4=function(k,E,S){S=S===void 0?function(R,V){return R===V}:S;
return k.timestamp.equals(E.timestamp)&&S(k.value,E.value)};
So=function(k,E){return E.pipe(De(function(S){return new Ea(k.timeProvider,{timestamp:k.timeProvider.now(),value:S})}))};
bom=function(k){return function(E){return E.pipe(rxb(k),De(function(S){var R=_.n(S);S=R.next().value;R=R.next().value;var V=S.value;return{timestamp:S.timestamp,value:V>=1?!0:V<=0?!1:V>=R}}))}};
dnI=function(){return wP(qV(function(k,E){return E>0}),Zom,m7(-1),Rh())};
seR=function(k,E,S){return k?fR([E,S]).pipe(qV(function(R){var V=_.n(R);R=V.next().value;V=V.next().value;return R.timestamp.equals(V.timestamp)}),De(function(R){var V=_.n(R);
R=V.next().value;V=V.next().value;return R.value>V.value?R:V})):E};
qmt=function(k){return function(E){var S=E.pipe(lK1),R=E.pipe(M$e);return k instanceof Pd?k.pipe(e1(function(V){return seR(V,S,R)})):seR(k.value,S,R)}};
Vwi=function(k,E,S,R){var V=R.geometryIsOccluded,N=R.exposureThreshold,h=R.wasLargeAdAtRender,J=R.allowLargeAdThreshold,m=R.largeAdExposureThreshold,a=R.mayUseViewportShareExposure,T=R.hasMeasurementStarted;R=R.useIntersectionObserverV2;E=zwi(k,S,E);S=QeA(k,S);R=Oo1(E,R);var w=GLl(k,V,a,E),P=w.pipe(De(function(d){return d.value}),Rh(),oh(k),cH(function(d,z){return Math.max(d,z)},0)),B=w.pipe(De(function(d){return d.value}),dnI(),oh(k)),F=E.pipe(CIe,De(function(d){return d.value}),S1(2),Rh(),oh(k));
h=kah(k,E,h,J);var K=h.pipe(m7(!1),Rh(),De(function(d){return d?m:N}));
J=w.pipe(bom(K),Rh(),oh(k));var r=fR([J,E]).pipe(qV(function(d){var z=_.n(d);d=z.next().value;z=z.next().value;return d.timestamp.equals(z.timestamp)}),De(function(d){var z=_.n(d);
d=z.next().value;z=z.next().value;return{visible:d.value,geometry:z.value.elementGeometry}}),cH(function(d,z){return!z.visible&&d.visible?d:z},{visible:!1,
geometry:Go}),De(function(d){return d.geometry}),m7(Go),oh(k),Rh(Uo));
a=a instanceof Pd?a.pipe(Rh(),ky()):j1;K=fR([a,K]).pipe(ky());var x=E.pipe(qV(function(d){return d.value.viewportGeometrySourceName!=="ns"&&d.value.elementGeometrySourceName!=="ns"}),cH(function(d){return d+1},0),m7(0),oh(k)),L=S.pipe(ky(!0),m7(!1),oh(k));
L=fR([T,L]).pipe(De(function(d){var z=_.n(d);d=z.next().value;z=z.next().value;return d&&!z}),oh(k));
var q=E.pipe(Ekl,Rh()),M=q.pipe(De(function(d){return d.value}),cH(function(d,z){return Math.max(d,z)},0),Rh(),oh(k));
k=q.pipe(De(function(d){return d.value}),dnI(),oh(k));
return{shouldResetExposureSignals:a,shouldResetViewabilitySignals:K,geometrySignals:{readyGeometryWithDefault:E,measurementStrategy:E.pipe(S41),creativePosition:r.pipe(Rh(Uo)),visible:J.pipe(Rh(k4)),timestampedExposure:w.pipe(Rh(k4)),maximumExposure:P,minimumExposure:B,browserSize:E.pipe(Rul,Rh(_.GI)),timestampedScreenShare:q,maxScreenShare:M,minScreenShare:k,geometricMeasurementErrors:S,measurementRequests:E.pipe(De(function(d){return d.value.measurementRequests})),
isLargeAd:h,geometryIsOccluded:V,hasMeasurementStarted:T,geometryMeasurable:L,validMeasurementCount:x,loadTimeExposure:F,v2VisibilityBitVector:R}}};
QeA=function(k,E){return E.pipe(qV(function(){return!1}),De(function(S){return S}),GP(function(S){return RX(new gT(S),k)}))};
zwi=function(k,E,S){return E.pipe(ehA(j1),oh(k)).pipe(Rh(function(R,V){return k4(R,V,yNh)}),m7({timestamp:S.now(),
value:gO1}),oh(k))};
GLl=function(k,E,S,R){S=R.pipe(qmt(S),CO(De(function(V){return Math.round(V*100)/100})),oh(k));
return E instanceof gT?S:fR([S,E]).pipe(De(function(V){var N=_.n(V);V=N.next().value;N=N.next().value;return{timestamp:N.timestamp.maximum(V.timestamp),value:N.value?0:V.value}}),Rh(k4),oh(k))};
kah=function(k,E,S,R){E=[E.pipe(De(function(V){return V.value.elementGeometry.width*V.value.elementGeometry.height>=242500}))];
S instanceof Pd&&E.push(S.pipe(De(function(V){return!!V})));
S=fR(E);return R?S.pipe(De(function(V){return V.some(function(N){return N})}),m7(!1),Rh(),oh(k)):RX(new gT(!1),k)};
Oo1=function(k,E){k=fR([k,E]).pipe(De(function(V){var N=_.n(V);V=N.next().value;if(N.next().value&&V.value.isIntersecting)return V.value.isV2Visible}),Rh());
var S=k.pipe(De(function(V){return V===void 0?!0:V}),cH(function(V,N){return V||!N},!1)),R=k.pipe(cH(function(V,N){return N===void 0?V:N?!1:V!=null?V:!0},void 0),De(function(V){return!!V}));
return fR([E,TT1(k,S,R)]).pipe(De(function(V){var N=_.n(V);V=N.next().value;var h=_.n(N.next().value);N=h.next().value;var J=h.next().value;h=h.next().value;var m=0;if(!V)return 0;if(N===void 0)return 16;N&&(m|=1);N||(m|=2);J&&(m|=4);h&&(m|=8);return m}))};
Jjb=function(k,E,S,R,V){var N=N0I.timeThresholdMs;var h=h===void 0?new I_j(E,R):h;return(new Pd(function(J){var m=S.pipe(m7(void 0),e1(function(){return nk1(V)})).pipe(De(function(a){var T=a.value;
a=a.timestamp;var w=T.visible;T=T.consecutiveViewTime;var P=T>=N;P||!w?iVb(h):(a=Math.max(0,zP(E.now(),a)),huj(h,Math.max(0,N-T-a)));return P}),cH(function(a,T){return T||a},!1),Rh()).subscribe(J);
return function(){h.dispose();m.unsubscribe()}})).pipe(ah(function(J){return!J},!0),oh(k))};
nk1=function(k){return wXi([k,k.pipe(FhA())]).pipe(De(function(E){var S=_.n(E);E=S.next().value;S=S.next().value;return{timestamp:E.timestamp,value:{visible:E.value,consecutiveViewTime:S.value}}}),Rh(function(E,S){return k4(E,S,function(R,V){return R.consecutiveViewTime===V.consecutiveViewTime&&R.visible===V.visible})}))};
cjC=function(){return wP(Ym1(),cH(function(k,E){return Math.max(k,E)},0),De(function(k){return Math.round(k)}))};
mgm=function(k){return wP(bom(AE(k)),cjC())};
eub=function(k,E){return E instanceof Pd?E.pipe(e1(function(S){return(S=S?15:null)?rP(new DB(S)):k})):(E=E.value?15:null)?rP(new DB(E)):k};
a_t=function(k){var E=new DB(13);if(k.length<1)return{chain:sY,capturedErrors:sY};var S=new F1,R=k[0];return{chain:k.slice(1).reduce(function(V,N){return V.pipe(GP(function(h){S.next(h);return N}))},R).pipe(GP(function(V){S.next(V);
return rP(E)}),Ih(new F1),jO()),
capturedErrors:S}};
twi=function(k,E){var S=k.pipe(Ih(new F1),jO());return e1(function(R){return S.pipe(E(R))})};
wCh=function(k,E){if(k.inCrossDomainIframe)return rP(new DB(6));var S=new F1;return MV(AE({}),E,S).pipe(De(function(){return{timestamp:k.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:T0h(k),topWindowViewportExternalGeometry:qj(k,!0),measurementRequests:S,viewportLocalAppOffset:{x:0,y:0}}}}),y$(k.queue))};
T0h=function(k){var E=qj(k,!1);if(!k.inIframe||!Djb(k.global.parent)||k.global.parent===k.global)return E;var S=new Vo(k.global.parent,k.debugChannel);S.beaconFactory=k.beaconFactory;S=T0h(S);k=k.global.frameElement.getBoundingClientRect();return Xyh(g4t(Xyh(S,k),{x:E.left-k.left,y:E.top-k.top}),E)};
P$1=function(k){if(k.prerendering)return 3;var E;return(E={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[k.visibilityState||k.webkitVisibilityState||k.mozVisibilityState||""])!=null?E:0};
B0t=function(k){return k.document.JSC$9366_onVisibilityChange.pipe(De(function(E){return E==="visible"}),Rh(),oh(k.queue))};
Y41=function(k,E,S){var R;return E.pipe(Rh(),e1(function(V){return S.pipe(De(function(){if(!R){R=!0;try{V.next()}finally{R=!1}}return!0}))}),m7(!1),oh(k.queue))};
WNh=function(k){return wP(CO(De(function(E){return E>=1?!0:E<=0?!1:E>=k})),BtA(),De(function(E){return Math.round(E)}))};
yjt=function(k,E,S,R,V){var N=FNC;if(N.length>1)for(var h=0;h<N.length-1;h++)if(N[h]<N[h+1])throw Error();h=V.pipe(m7(void 0),e1(function(){return S.pipe(FhA())}),Rh(),oh(k));
V=V.pipe(m7(void 0),e1(function(){return S.pipe(cjC())}),Rh(),oh(k));
return{totalMeasurementTime:R.pipe(m7(void 0),e1(function(){return E.pipe(De(function(J){return{timestamp:J.timestamp,value:!0}}),BtA())}),Rh(),oh(k)),
totalUnviewedTime:R.pipe(m7(void 0),e1(function(){return E.pipe(De(function(J){return{timestamp:J.timestamp,value:J.value===0}}),BtA())}),Rh(),oh(k)),
maxTimeOnScreen:R.pipe(m7(void 0),e1(function(){return E.pipe(Whe(mgm,N))}),Rh(_.GI),oh(k)),
timeOnScreen:R.pipe(m7(void 0),e1(function(){return E.pipe(Whe(WNh,N),De(function(J){return J.map(function(m,a){return a>0?m-J[a-1]:m})}))}),Rh(_.GI),oh(k)),
maxConsecutiveViewTime:V,consecutiveViewTime:h.pipe(Rh(k4),oh(k))}};
XCI=function(k){var E=!0;E=E===void 0?!1:E;return wP(e1(function(S){return okb(k.document,S,E)}),oh(k.queue))};
gki=function(k,E,S){var R=S.pipe(De(function(V){return{value:V,timestamp:k.timeProvider.now()}}),Rh(k4));
return E instanceof Pd?E.pipe(Rh(),e1(function(V){return V?RX(new gT({value:!1,timestamp:k.timeProvider.now()}),k.queue):R})):E.value===!1?R:new gT(!1)};
Ugb=function(k,E,S,R,V,N,h){var J=N0I;E=E instanceof Pd?E.pipe(m7(!1),Rh()):E;var m=!k.isMobile();S=gki(k,S,R);k=h.measurableCreative.pipe(Tth(k.queue));return Object.assign({},J,{geometryIsOccluded:S,wasLargeAdAtRender:V,allowLargeAdThreshold:m,mayUseViewportShareExposure:E,hasMeasurementStarted:k,useIntersectionObserverV2:N})};
KNl=function(k,E,S,R,V,N){var h=1;N=N===void 0?!0:N;h=h===void 0?.01:h;var J=J===void 0?k.timeProvider.intervalObservable(100).pipe(oh(k.queue)):J;return k.performanceMonitor.timeExecution(916,function(){return HVC(k,E.pipe(y$(k.queue)),S.pipe(y$(k.queue)),R,V,N,h,J)})()};
HVC=function(k,E,S,R,V,N,h,J){var m=B0t(k).pipe(De(function(T){return!T})),a=new pCI(k,[new Aji(k,FNC),
new rjt(k,J)]);J=Nti(u4I,xge);return Ou1(k,E,function(T,w){var P=RX(new gT(w.element),T.queue).pipe(XCI(T),oh(T.queue)),B={loadedElement:P,shouldMeasure:P.pipe(ky(!0)),measurableCreative:P.pipe(De(function(d){var z=z===void 0?Symbol():z;return Object.freeze({symbol:z,element:RX(new gT(d),T.queue)})})),
creativeSearchResult:RX(new gT("mue"),T.queue)},F=new gT(!1),K=new gT(!1),r=new gT(17),x=new gT(!1),L=new gT(!1),q=RX(NT,T.queue);F=a.buildGeometrySource(B,{inApp:F,useV2:!1,requestSource:RX(r,T.queue)}).geometrySource;B=Ugb(T,x,K,m,L,q,B);K=Vwi(T.queue,T.timeProvider,F,B);B=K.geometrySignals;x=K.shouldResetViewabilitySignals;K=yjt(T.queue,B.timestampedExposure,B.visible,K.shouldResetExposureSignals,x);x=Jjb(T.queue,T.timeProvider,x,B.measurementRequests,B.visible);L=S.pipe(qV(function(d){return d===
w.element.ref}),De(function(){return"ur"}));
q=Yo1(T.timeProvider,V).pipe(ky("t"));L=fKA(T,MV(L,q));q=Y41(T,B.measurementRequests,L.pipe(qV(function(d){return d!==null})));
F=L.pipe(qV(function(d){return d!==null}),De(function(){return P$1(T.global.document)===1}));
var M=LN1(T.document);return Object.assign({},{beaconFactory:new gT(T.beaconFactory),context:new gT(T),inferredPingId:new gT("lidar2"),timeOnScreenPingId:new gT("lidartos"),binaryContext:new gT(17),binaryVersion:new gT(R),requestSource:r,contextValidationErrors:new gT(T.validate()?null:new $y),contextVisibilityKnown:new gT(M),payloadMapper:new gT(RwA),endOfSessionReason:L,timeOnScreenReason:L,requestMeasurementOnEndOfSession:q,hasImpressionFired:j2e,crossDomainIframeState:new gT(T.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:NT,inFetchLaterBeaconExperiment:NT,isTurtlex:NT,turtlexReportEventData:new gT(""),reportFencedFrameEvent:j1,isViewableAttributionEnabled:NT,inViewableAttributionExperiment:new gT(0),fetchBeaconFactory:j1,supportsPendingBeacon:NT,supportsFetchLater:NT,emit:new gT(ioi),beginToRenderEvent:new gT(Symbol()),activeViewUnmeasurableEvent:new gT(Symbol()),activeViewViewableEvent:new gT(Symbol()),creativeFound:j2e,immediateUrlPrefixes:new gT(w.immediateUrls),timeOnScreenUrlPrefixes:new gT(w.timeOnScreenUrls),
cpmavUrls:j1,viewableRelayUrls:j1,measurementDeferralState:new gT(2),urlSerializer:new gT(aKh),viewUrlSerializer:new gT(Dg1),isCreativeLoaded:P.pipe(Tth(T.queue)),pageVisible:m.pipe(De(function(d){return!d})),
eosPageVisible:F,timestampedExposureHistory:B.timestampedExposure.pipe(cH(function(d,z){d.push(z);return d},[]))},B,{viewable:So(T,x),
maxTimeOnScreen:So(T,K.maxTimeOnScreen),timeOnScreen:So(T,K.timeOnScreen),maxConsecutiveViewTime:So(T,K.maxConsecutiveViewTime),consecutiveViewTime:K.consecutiveViewTime.pipe(De(function(d){return new Ea(T.timeProvider,d)})),
totalMeasurementTime:So(T,K.totalMeasurementTime),totalUnviewedTime:So(T,K.totalUnviewedTime),userAgentClientHints:VoI(T),clientOrderPingCounter:new gT(new CkC)})},V$t(k,h),IKb(N?nOi(J,$g1):nOi(J,f_C),vkj))};
bVA=function(k){var E=_.sX.apply(1,arguments).filter(Boolean).join("&");if(!E)return k;var S=k.match(/[?&]adurl=/);return S?k.slice(0,S.index+1)+E+"&"+k.slice(S.index+1):k+(k.indexOf("?")<0?"?":"&")+E};
IX=function(k,E){return E?"&"+k+"="+encodeURIComponent(E):""};
ZVh=function(){try{var k,E;return!!((k=window)==null?0:(E=k.top)==null?0:E.location.href)&&!1}catch(S){return!0}};
_.nu=function(k){k&&typeof k.dispose=="function"&&k.dispose()};
_.hP=function(k){for(var E=0,S=arguments.length;E<S;++E){var R=arguments[E];_.sj(R)?_.hP.apply(null,R):_.nu(R)}};
s2j=function(){var k=dgj();k=k===void 0?"bevasrsg":k;return new Promise(function(E){var S=window===window.top?window:ZVh()?window:window.top,R=S[k],V;((V=R)==null?0:V.bevasrs)?E(new JP(R.bevasrs)):(R||(R={},R=(R.nqfbel=[],R),S[k]=R),R.nqfbel.push(function(N){E(new JP(N))}))})};
l_e=function(k){var E={c:k.xe,e:k.ncA,mc:k.hxA,me:k.gLx};k.yk&&(E.co={c:k.yk.hCn,a:k.yk.wGl,s:k.yk.jZK});return E};
Mwm=function(k){var E,S,R={xe:k.c,ncA:k.e,hxA:(E=k.mc)!=null?E:!1,gLx:(S=k.me)!=null?S:!1};k.co&&(R.yk={hCn:k.co.c,wGl:k.co.a,jZK:k.co.s});return R};
q41=function(k){return function(){var E;return _.c(function(S){if(S.nextAddress==1)return S.yield(k(),2);E=S.yieldResult;return S.return({f:function(){return E.oZ2()},
c:function(R){return E.xB2(R)},
m:function(R){return E.tj(Mwm(R))},
mws:function(R){return E.u4n(Mwm(R))}})})}};
zuC=function(k,E){var S=dgj();S=S===void 0?"bevasrsg":S;E={s:function(N){var h;return k.snapshot(Object.assign({},N.c&&{xe:N.c},N.s&&{t2e:N.s},{c0f:(h=N.p)!=null?h:!0}))},
e:function(N){var h;return void((h=k.sx2)==null?void 0:h.call(k,N))},
c:function(N,h){return k.no2(N,h)},
p:k.rOe,l:function(){return k.bEa()},
wpc:E?q41(E):void 0};var R=window===window.top?window:ZVh()?window:window.top,V=R[S];if(V){V.bevasrs=E;if(V.nqfbel!==void 0)for(S=_.n(V.nqfbel),R=S.next();!R.done;R=S.next())R=R.value,R(E);V.nqfbel=void 0}else V={},V=(V.bevasrs=E,V.nqfbel=void 0,V),R[S]=V};
OVC=function(k){var E=E===void 0?51:E;var S=[];_.cy(k,Q2h,6,_.mb()).forEach(function(R){_.eo(R,2)<=E&&S.push(_.eo(R,1))});
return S};
Gah=function(k){var E=E===void 0?51:E;var S=[];_.cy(k,Q2h,6,_.mb()).forEach(function(R){_.eo(R,2)>E&&S.push(_.eo(R,1))});
return S};
C$j=function(k){k.then(function(){},function(){})};
aX=function(k){return{fieldType:1,fieldName:k}};
tP=function(k){return{fieldType:2,fieldName:k}};
_.Tx=function(k){return{fieldType:3,fieldName:k}};
kVm=function(){function k(){V[0]=1732584193;V[1]=4023233417;V[2]=2562383102;V[3]=271733878;V[4]=3285377520;T=a=0}
function E(w){for(var P=h,B=0;B<64;B+=4)P[B/4]=w[B]<<24|w[B+1]<<16|w[B+2]<<8|w[B+3];for(B=16;B<80;B++)w=P[B-3]^P[B-8]^P[B-14]^P[B-16],P[B]=(w<<1|w>>>31)&4294967295;w=V[0];var F=V[1],K=V[2],r=V[3],x=V[4];for(B=0;B<80;B++){if(B<40)if(B<20){var L=r^F&(K^r);var q=1518500249}else L=F^K^r,q=1859775393;else B<60?(L=F&K|r&(F|K),q=2400959708):(L=F^K^r,q=3395469782);L=((w<<5|w>>>27)&4294967295)+L+x+q+P[B]&4294967295;x=r;r=K;K=(F<<30|F>>>2)&4294967295;F=w;w=L}V[0]=V[0]+w&4294967295;V[1]=V[1]+F&4294967295;V[2]=
V[2]+K&4294967295;V[3]=V[3]+r&4294967295;V[4]=V[4]+x&4294967295}
function S(w,P){if(typeof w==="string"){w=unescape(encodeURIComponent(w));for(var B=[],F=0,K=w.length;F<K;++F)B.push(w.charCodeAt(F));w=B}P||(P=w.length);B=0;if(a==0)for(;B+64<P;)E(w.slice(B,B+64)),B+=64,T+=64;for(;B<P;)if(N[a++]=w[B++],T++,a==64)for(a=0,E(N);B+64<P;)E(w.slice(B,B+64)),B+=64,T+=64}
function R(){var w=[],P=T*8;a<56?S(J,56-a):S(J,64-(a-56));for(var B=63;B>=56;B--)N[B]=P&255,P>>>=8;E(N);for(B=P=0;B<5;B++)for(var F=24;F>=0;F-=8)w[P++]=V[B]>>F&255;return w}
for(var V=[],N=[],h=[],J=[128],m=1;m<64;++m)J[m]=0;var a,T;k();return{reset:k,update:S,digest:R,digestString:function(){for(var w=R(),P="",B=0;B<w.length;B++)P+="0123456789ABCDEF".charAt(Math.floor(w[B]/16))+"0123456789ABCDEF".charAt(w[B]%16);return P}}};
In1=function(k,E){E=E===void 0?Erh:E;if(!Sgb){var S;k=(S=k.navigator)==null?void 0:S.userAgentData;if(!k||typeof k.getHighEntropyValues!=="function"||k.brands&&typeof k.brands.map!=="function")return Promise.reject(Error("ua"));RIi((k.brands||[]).map(function(V){var N=new VnA;N=_.uh(N,1,V.brand);return _.uh(N,2,V.version)}));
typeof k.mobile==="boolean"&&_.w7(NOb,2,k.mobile);Sgb=k.getHighEntropyValues(E)}var R=new Set(E);return Sgb.then(function(V){var N=NOb.clone();R.has("platform")&&_.uh(N,3,V.platform);R.has("platformVersion")&&_.uh(N,4,V.platformVersion);R.has("architecture")&&_.uh(N,5,V.architecture);R.has("model")&&_.uh(N,6,V.model);R.has("uaFullVersion")&&_.uh(N,7,V.uaFullVersion);return N.serialize()}).catch(function(){return NOb.serialize()})};
Py=function(k,E,S,R){this.initialValue_=k;this.maxValue_=E;this.currBaseValue_=this.currValue_=k;this.randomFactor_=S||0;this.backoffFactor_=R||2};
By=function(k){this.src=k;this.listeners={};this.typeCount_=0};
J3h=function(){for(var k;k=nr1.remove();){try{k.fn.call(k.scope)}catch(E){NA(E)}iC1.put(k)}hIC=!1};
_.c3m=function(k){switch(k){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}};
m3j=function(k){switch(k){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""}};
_.eIl=function(){};
Fz1=function(k,E,S,R){k=anA(tn1(TOj(new _.Y4(1828,"0"),k),new w_i)).disableWithCredentials();E.length&&PJi(k,BO1(new Ygt,E));R!==void 0&&(k.destinationUrl=R);var V=new WzI(1828,"","",!1,"",k.build());_.Wy(V,k);var N=new yo({flush:function(h){try{V.flush(h)}catch(J){S(J)}}});
N.addOnDisposeCallback(function(){setTimeout(function(){try{N.snapshotAndFlush()}finally{V.dispose()}})});
N.invocationLimit=1E5;N.flushInterval=3E4;N.JSC$9782_flushTimer.setInterval(3E4);return N};
oX=function(){var k,E,S;return(S=(k=globalThis.performance)==null?void 0:(E=k.now)==null?void 0:E.call(k))!=null?S:Date.now()};
X_I=function(k,E){if(k.disable)return new y31;E=E?OVC(E):[];k={vc:k.vc,gE4:k.bPu,aV4:k.bHL,destinationUrl:k.destinationUrl,cJJ:k.cJJ,cs2:k.cs2};E=E===void 0?[]:E;return new or1(k,E)};
gr1=function(k){if(!k)return null;k=_.Xb(k,2);return k===null||k===void 0?null:zB(k)};
_.U3l=function(k){if(!k)return null;k=_.Xb(k,4);return k===null||k===void 0?null:_.pg(k)};
p_1=function(k,E){return E?HCb(E):k?Kz1(k):Promise.resolve()};
HCb=function(k){return new Promise(function(E,S){var R=_.g7("SCRIPT"),V=_.U3l(k);_.Ib(R,V);R.onload=function(){_.Ua(R);E()};
R.onerror=function(){_.Ua(R);S(Error("Fa"))};
(Hy("HEAD")[0]||document.documentElement).appendChild(R)})};
Kz1=function(k){return new Promise(function(E){var S=_.g7("SCRIPT");if(k){var R=_.Xb(k,6);R=R===null||R===void 0?null:_.Rb(R)}else R=null;_.NV(S,R);(Hy("HEAD")[0]||document.documentElement).appendChild(S);_.Ua(S);E()})};
Ku=function(k,E,S){var R,V=new Promise(function(N){R=setTimeout(N,E)});
return Promise.race([k.finally(function(){return void clearTimeout(R)}),
V.then(S)])};
A3t=function(k,E){try{return globalThis.sessionStorage.setItem(k,E),!0}catch(S){return!1}};
r3e=function(k,E,S,R){E=E===void 0?0:E;S=S===void 0?k.length:S;var V=0;for(R&&(V=r3e(R));E<S;E++)R=typeof k==="string"?k.charCodeAt(E):k[E],V=uuI(31,V)+R|0;return V};
x3I=function(k,E){return[r3e(k,0,k.length>>1,E),r3e(k,k.length>>1)]};
LzA=function(k){var E=_.n(x3I(k,pu));k=E.next().value;E=E.next().value;return k.toString(16)+E.toString(16)};
juI=function(k,E){var S=x3I(E);k=new Uint32Array(k.buffer);E=k[0];var R=_.n(S);S=R.next().value;R=R.next().value;for(var V=1;V<k.length;V+=2){for(var N=E,h=V,J=S,m=R,a=0;a<22;a++)h=h>>>8|h<<24,h+=N|0,h^=J+38293,N=N<<3|N>>>29,N^=h,m=m>>>8|m<<24,m+=J|0,m^=a+38293,J=J<<3|J>>>29,J^=m;N=[N,h];k[V]^=N[0];V+1<k.length&&(k[V+1]^=N[1])}};
D3R=function(k,E,S,R,V){var N=(4-(pu.length+S.length)%4)%4,h=new Uint8Array(4+N+pu.length+4+S.length),J=new DataView(h.buffer),m=0;J.setUint32(m,Math.random()*4294967295);m=m+4+N;h.set(pu,m);m+=pu.length;J.setUint32(m,V);h.set(S,m+4);juI(h,R);return k.insert(E,function(a){return void globalThis.sessionStorage.removeItem(a)})?A3t(E,_.xW(h))?"s":"t":"i"};
$3C=function(k,E){var S=globalThis.sessionStorage.getItem(k);if(!S)return["m"];try{var R=_.k2(S);juI(R,E)}catch(V){return globalThis.sessionStorage.removeItem(k),["c"]}for(E=4;E<7&&R[E]===0;)E++;for(S=0;S<pu.length;S++)if(R[E++]!==pu[S])return globalThis.sessionStorage.removeItem(k),["d"];S=(new DataView(R.buffer)).getUint32(E);return Math.floor(Date.now()/1E3)>=S?(globalThis.sessionStorage.removeItem(k),["e"]):["a",new Uint8Array(R.buffer,E+4)]};
fnt=function(k){return globalThis.TextEncoder?(new TextEncoder).encode(k):_.AP(k)};
vrI=function(k){var E=k,S;return function(){if(E){var R=E;E=void 0;S=R.apply(this,arguments)}return S}};
ZCj=function(k){return x2(function(E){if(E instanceof k)return!0;var S,R,V=E==null?void 0:(S=E.ownerDocument)==null?void 0:(R=S.defaultView)==null?void 0:R[k.name];return bCA(V)&&E instanceof V})};
_.x4=function(k,E,S){_.r7.call(this);this.JSC$9996_listener_=k;this.JSC$9996_interval_=E||0;this.handler_=S;this.callback_=(0,_.uk)(this.JSC$9998_doAction_,this)};
_.Lu=function(k){k=d3t(k);return _.pg(k)};
d3t=function(k){return k===null?"null":k===void 0?"undefined":k};
lnl=function(k){if(k&&k.focus)if(k!==document.activeElement)k.focus();else return su1(function(){return _.c(function(E){document.activeElement&&document.activeElement.blur();return E.return(su1(function(){k.focus()}))})})};
_.Mnm=function(k){var E=E===void 0?5:E;setTimeout(function(){var S;return _.c(function(R){R.nextAddress==1&&(S=document.activeElement);if(R.nextAddress!=5)return(document.activeElement===S||document.activeElement===document.body)&&E>=0&&k?R.yield(lnl(k),5):R.jumpTo(0);if(document.activeElement===k)return R.return();k=k.parentElement;--E;return R.jumpTo(2)})},15)};
su1=function(k){return new Promise(function(E){requestAnimationFrame(function(){E(k())})})};
zIA=function(k){if(_.D7)k(_.D7);else{var E;((E=qgj)!=null?E:qgj=[]).push(k)}};
fu=function(){!_.D7&&_.$4&&_.Qut(_.$4());return _.D7};
_.Qut=function(k){_.D7=k;var E;(E=qgj)==null||E.forEach(zIA);qgj=void 0};
_.vy=function(k){_.D7&&_.D7.beforeLoadModuleCode(k)};
_.bk=function(){_.D7&&_.D7.JSC$11054_setLoaded()};
Z7=function(k){return xpj(k)?Number(k):String(k)};
OCi=function(k){this.action=k;this.wfv=!1};
GVA=function(k,E){OCi.call(this,"set-drive-options");this.appId=k;this.appOrigin=E};
CJh=function(k){OCi.call(this,"visibility");this.visible=k};
kpA=function(k,E,S){d7.call(this,k,E,S)};
EZt=function(k){sa.call(this,k)};
SQi=function(k){k=k&&k.getWindow()||window;return k.gadgets&&k.gadgets.rpc};
Vvl=function(k,E){var S=E&&E.getWindow()||window;if(SQi(E))k();else if(RdI)RdI.push(k);else var R=RdI=[k],V=S.setInterval(function(){if(SQi(E)){S.clearInterval(V);for(var N=0;N<R.length;N++)R[N]();RdI=null}},100)};
IJh=function(k,E){var S=new MT(k);_.Wy(E,S);var R={passive:!1};E.listen(S,"mousewheel",function(V){return void NvR(k,V)},R).listen(k,"scroll",function(V){return void NvR(k,V)},R)};
NvR=function(k,E){var S;a:{for(S=E.target;S;){if(S.nodeType==1){var R=_.qT(S,"overflowY");if(R=="auto"||R=="scroll")break a}S=S.parentNode}S=null}if(!S||!_.zx(k,S)||S.scrollHeight==S.clientHeight||E.deltaY>0&&Math.abs(S.scrollTop-(S.scrollHeight-S.clientHeight))<=1||E.deltaY<0&&S.scrollTop==0)E.preventDefault(),E.stopPropagation()};
S$=function(k,E,S,R,V,N,h,J,m){J=J===void 0?!1:J;m=m===void 0?!1:m;d7.call(this,void 0,void 0,void 0);d7.call(this,N?N+" picker modal-dialog":"picker modal-dialog",!0,S);_.Qo(k,"protocol");this.iframeManager_=new nZm;this.targetId_=Oa();this.rpcToken_=Oa();k=_.Gx(k);_.Cu(k,"hostId");S=_.Cu(k,"parent");this.useGapi_=!m&&!0||(S==null?void 0:S.includes("onepick.corp.google.com"));J&&_.kO(k,"fv2","true");this.setUrl(k.toString());this.preferredDialogWidth_=R;this.preferredDialogHeight_=V;R!==void 0||
V!==void 0?R=!0:(R=_.Cu(_.Gx(k.toString()),"hostId"),ix1||(ix1=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),R=!ix1.has(R));this.autoSizeDialog_=R;this.JSC$10186_gadgetsDomHelper_=h||this.JSC$10137_dom_;E&&(h=this.JSC$10186_gadgetsDomHelper_,E=_.Cu(_.Gx(this.JSC$10188_url_),"grugl")=="true"?hdR:J61,SQi(h)||(h=h||rT(document),R=h.createElement("SCRIPT"),_.Ib(R,E),R.type="text/javascript",h.JSC$9321_document_.body.appendChild(R)));
k=k.toString();E=null;h=k.indexOf("/picker?");h>-1?E=k.substring(0,h+8-1):nl(k,"/picker")&&(E=k);E&&this.setRelayUrl(E+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(k=this.buttons_,k.JSC$10171_element_=this.buttonEl_,k.render()):_.nR(this.buttonEl_,c6e),_.Em(this.buttonEl_,!!this.buttons_))};
_.tvh=function(k){var E=E===void 0?mGe:E;var S=_.Oj(k),R=function(N){N=_.n(N);N.next();N=Re(N);return E(S,N)},V=function(N){var h=_.n(N);
N=h.next().value;h=Re(h);return k.apply(N,h)};
return function(){var N=_.sX.apply(0,arguments),h=this||_.Vt,J=edI.get(h);J||(J={},edI.set(h,J));return aJj(J,[this].concat(_.$e(N)),V,R)}};
Vg=function(k){var E={};k=k.replace(/\r/g,"").split("\n");for(var S=0;S<k.length;S++){var R=k[S],V=R.indexOf(":");V<0||(E[R.substring(0,V)]=R.substring(V+2,R.length))}return E};
TvC=function(k,E,S){S=S===void 0?function(){}:S;
return k?E():S()};
_.PXj=function(k){var E;return((E=wVe.documentOverride)!=null?E:k).__wizdispatcher};
_.Ie=function(k){var E=Nn;Nn=k;return E};
_.YQt=function(k){return k===Bvl||(k==null?void 0:k.name)==="\u0275NotFound"};
_.no=function(k,E){var S;if((S=k)==null?0:S.isDisposed)throw Error("jb`"+String(k.debugName));for(;k!==void 0;){S=k;if(S.retrieve)return S.retrieve(E,{optional:!0});k=k.parent}return Bvl};
iI=function(k){return{"\u0275prov":{providedIn:"root",token:Symbol(k),factory:void 0,value:void 0}}};
_.WqC=function(k){var E=Nn;if(!E){switch(k===void 0?3:k){case 0:k=Error("ib");break;case 1:k=Error("kb");break;case 2:k=Error("lb");break;default:k=Error("mb")}throw k;}return E};
Fqi=function(k){var E=_.Ie(k);k={};return k[Symbol.dispose]=function(){_.Ie(E)},k};
y6e=function(k,E){k.disposables||(k.disposables=[]);k.disposables.push(E)};
hN=function(k){var E=Nn;E&&!E.isDisposed&&(y6e(E,k),k.parent=E)};
XVR=function(k){if(k.disposables){for(var E=_.n(k.disposables),S=E.next();!S.done;S=E.next())S=S.value,typeof S==="function"?S():oZm(S);k.disposables.length=0}};
oZm=function(k){if(!k.isDisposed){k.isDisposed=!0;var E;(E=k[Symbol.dispose])==null||E.call(k);delete k.parent;XVR(k)}};
xGt=function(k){var E={retrieve:function(S){switch(S.\u0275prov.token){case gZ1.\u0275prov.token:var R=k.asyncDeps;break;case _.UG1.\u0275prov.token:R=k.rootElement;break;case Hx1.\u0275prov.token:R=k.modelRootElement;break;case Kq1.\u0275prov.token:R=k.appContext;break;case pVi.\u0275prov.token:R=k.rendererData;break;case A6t.\u0275prov.token:R=k.injectingConstructor;break;case r6j.\u0275prov.token:R=k.dispatcher}if(R)S=R;else a:{for(R=E.parent;R;){var V=R;if(V.retrieve){S=V.retrieve(S);break a}R=
R.parent}R=S.\u0275prov.token;V=uTh[R];V!==void 0?S=V:(V=S.\u0275prov.providedIn,S.\u0275prov.factory?(S=S.\u0275prov.factory(),R&&V==="root"&&(uTh[R]=S)):S=Bvl)}return S}};
hN(E);return E};
Lq1=function(){var k=_.WqC(1),E=_.no(k,Kq1);if(!_.YQt(E))return E;k=_.no(k,r6j);if(!_.YQt(k))return k.getOptionalAppContext()};
jHh=function(k){if(typeof document!=="undefined"&&document&&document.getElementById&&(k=document.getElementById(k))){var E=k.tagName.toUpperCase();if(E=="SCRIPT"||E=="LINK")return k}return null};
$GR=function(k,E){if((k=k===void 0?"":k)&&E)throw Error("sb");var S="";var R=_.Vt._F_jsUrl;(k=E||jHh(k))&&(S=k.src?k.src:k.getAttribute("href"));if(R&&S){if(R!=S)throw Error("tb`"+R+"`"+S);S=R}else S=R||S;if(!DGI(S))throw Error("ub");return S};
Zxt=function(){if(!fJh){fJh=!0;try{var k=$GR(_.Vt._F_jsUrl?"":"base-js")}catch(R){return}var E=vZi(bxI(k)),S=Object.keys(E);S.length!==0&&zIA(function(R){for(var V=_.n(S),N=V.next();!N.done;N=V.next()){N=N.value;for(var h=_.n(Object.keys(E[N])),J=h.next();!J.done;J=h.next())R.addExtraEdge(N,J.value)}})}};
sHm=function(){var k=Object.assign({},dGl);Object.getOwnPropertyNames(dGl).forEach(function(E){JN[E]!==void 0&&(k[E]=JN[E])});
return k};
lJb=function(k,E){if(JN.enablePerformanceTiming){var S,R;(R=(S=performance).mark)==null||R.call(S,k+"Start__"+E)}};
MvI=function(k,E){if(JN.enablePerformanceTiming){var S,R;(R=(S=performance).measure)==null||R.call(S,k+"__"+E,k+"Start__"+E)}};
qQt=function(k,E,S){var R;return k&&E?k+"__"+E:(R=k!=null?k:E)!=null?R:S};
QHm=function(k,E){var S=Object.create(zdh);S.debugName=E;!Nn||hN(S);E=_.Ie(S);try{k(S)}finally{_.Ie(E)}return function(){return void oZm(S)}};
GpI=function(k){return cX(k)&&OxI in k};
CXm=function(k,E){return Object.is(k,E)};
e$=function(k){var E=mh;mh=k;return E};
Efj=function(k){if(ae)throw Error("Z");if(mh!==null){var E=mh.producersTail;if(E===void 0||E.producer!==k){var S=void 0,R=mh.recomputing;if(R&&(S=E!==void 0?E.nextProducer:mh.producers,S!==void 0&&S.producer===k)){mh.producersTail=S;S.lastReadVersion=k.version;return}var V=k.consumersTail,N;if(!(N=V===void 0||V.consumer!==mh)){if(R){a:{N=mh;R=N.producersTail;if(R!==void 0){N=N.producers;do{if(N===V){R=!0;break a}if(N===R)break;N=N.nextProducer}while(N!==void 0)}R=!1}R=!R}N=R}N&&(R=tN(mh),S={producer:k,
consumer:mh,nextProducer:S,prevConsumer:V,lastReadVersion:k.version,nextConsumer:void 0},mh.producersTail=S,E!==void 0?E.nextProducer=S:mh.producers=S,R&&kUh(k,S))}}};
wt=function(k){if(!tN(k)||k.dirty)if(k.dirty||k.lastCleanEpoch!==TL)(k.producerMustRecompute(k)||Scl(k))&&k.producerRecomputeValue(k),k.dirty=!1,k.lastCleanEpoch=TL};
Rxt=function(k){if(k.consumers!==void 0){var E=ae;ae=!0;try{for(var S=k.consumers;S!==void 0;S=S.nextConsumer){var R=S.consumer;R.dirty||(k=void 0,R.dirty=!0,Rxt(R),(k=R.consumerMarkedDirty)==null||k.call(R,R))}}finally{ae=E}}};
Vlh=function(){var k;return((k=mh)==null?void 0:k.consumerAllowSignalWrites)!==!1};
Ngj=function(k){k&&(k.producersTail=void 0,k.recomputing=!0);return e$(k)};
nfC=function(k){k.recomputing=!1;var E=k.producersTail,S=E!==void 0?E.nextProducer:k.producers;if(S!==void 0){if(tN(k)){do S=Idb(S);while(S!==void 0)}E!==void 0?E.nextProducer=void 0:k.producers=void 0}};
Scl=function(k){for(k=k.producers;k!==void 0;k=k.nextProducer){var E=k.producer,S=k.lastReadVersion;if(S!==E.version)return!0;wt(E);if(S!==E.version)return!0}return!1};
kUh=function(k,E){var S=k.consumersTail,R=tN(k);S!==void 0?(E.nextConsumer=S.nextConsumer,S.nextConsumer=E):(E.nextConsumer=void 0,k.consumers=E);E.prevConsumer=S;k.consumersTail=E;if(!R)for(k=k.producers;k!==void 0;k=k.nextProducer)kUh(k.producer,k)};
Idb=function(k){var E=k.producer,S=k.nextProducer,R=k.nextConsumer,V=k.prevConsumer;k.nextConsumer=void 0;k.prevConsumer=void 0;R!==void 0?R.prevConsumer=V:E.consumersTail=V;if(V!==void 0)V.nextConsumer=R;else if(E.consumers=R,!tN(E))for(k=E.producers;k!==void 0;)k=Idb(k);return S};
tN=function(k){return k.consumerIsAlwaysLive||k.consumers!==void 0};
gfe=function(k){var E=Object.create(Xvi);E.computation=k;k=function(){wt(E);Efj(E);if(E.value===PX)throw E.error;return E.value};
k[WX]=E;return k};
pvA=function(k,E){var S=Object.create(Ud1);S.value=k;E!==void 0&&(S.equal=E);k=function(){Efj(S);return S.value};
k[WX]=S;return[k,function(R){return H21(S,R)},
function(R){Vlh()||KEm(S);H21(S,R(S.value))}]};
H21=function(k,E){Vlh()||KEm(k);if(!k.equal(k.value,E)){k.value=E;k.version++;TL++;Rxt(k);var S;(S=AD1)==null||S(k)}};
upb=function(k,E,S){var R=Object.create(rDe);R.source=k;R.computation=E;S!=void 0&&(R.equal=S);k=function(){wt(R);Efj(R);if(R.value===PX)throw R.error;return R.value};
k[WX]=R;return k};
_.FF=function(k){var E=e$(null);try{return k()}finally{e$(E)}};
_.yg=function(k,E,S){S=S===void 0?"":S;k=pvA(k,E==null?void 0:E.equals);var R=k[0],V=R[WX];V.debugName=qQt(E==null?void 0:E.debugName,S,"[signal]");if(!JN.enablePerformanceTiming)return k;var N=k[1],h=k[2];return[R,function(J){xdm(function(){return void N(J)},V)},
function(J){xdm(function(){return void h(J)},V)}]};
xdm=function(k,E){lJb("signalSet",E.debugName);try{k()}finally{MvI("signalSet",E.debugName)}};
jWI=function(k,E){var S=_.n(_.yg(k,void 0,"cPpJzc"));k=S.next().value;S=S.next().value;k[LE1]=S;k[oe]=E;return k};
DdI=function(k){return!!k&&typeof k==="object"&&Object.getPrototypeOf(k)===Object.prototype};
$db=function(k){return typeof k==="function"&&LE1 in k&&typeof k[LE1]==="function"};
fdI=function(k,E){Object.defineProperty(k,oe,{get:function(){return E}})};
gt=function(k,E){if(XF(k)){var S=k.map(function(N){return gt(N,E)});
fdI(S,E);return S}if(DdI(k)){S={};k=_.n(Object.entries(k));for(var R=k.next();!R.done;R=k.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;S[R]=gt(V,E)}fdI(S,E);return S}return jWI(k,E)};
vfl=function(k){if(XF(k))return k.map(function(V){return vfl(V)});
if(DdI(k)){var E={};k=_.n(Object.entries(k));for(var S=k.next();!S.done;S=k.next()){var R=_.n(S.value);S=R.next().value;R=R.next().value;E[S]=vfl(R)}return E}return $db(k)?k():k};
Z2j=function(){var k={height:0,width:0};if(!DdI(k))throw Error("Jb");var E=Symbol("Kb");return[gt(k,E),function(S,R){if(S[oe]===E)if(typeof R==="function"){var V=[].concat(_.$e(vfl(S)));R=R(V)||V;b2h(S,[].concat(_.$e(R)))}else b2h(S,R);else throw Error("Lb");}]};
b2h=function(k,E){if($db(k))k[LE1](E);else if(XF(k)&&XF(E))E=gt(E,k[oe]),k.length=0,k.push.apply(k,_.$e(E));else if((DdI(k)||XF(k))&&(XF(E)||typeof E==="object"&&E!==null)){E=_.n(Object.entries(E));for(var S=E.next();!S.done;S=E.next()){var R=_.n(S.value);S=R.next().value;R=R.next().value;var V=k,N=V[S];Object.hasOwn(k,S)?b2h(N,R):V[S]=gt(R,k[oe])}}else throw Error("Mb");};
ddI=function(k){return Object.create(Object.assign({},Um,k))};
ldI=function(){var k;return(k=sWI)!=null?k:sWI=ddI({consumerAllowSignalWrites:!0})};
_.HX=function(k,E,S){S=S===void 0?"":S;k=gfe(k);var R=k[WX];R.debugName=qQt(E==null?void 0:E.debugName,S,"[computed]");(E==null?void 0:E.equals)!=null&&(R.equal=E.equals);return k};
Ko=function(k){var E=e$(Mlm);try{k()}finally{e$(E)}};
GUR=function(k){switch(k.onInitType){case qch:zxI.schedule(k);break;case QWi:O2l.schedule(k);break;default:_.s5(k.onInitType)}};
V9h=function(k){if(!k.isDisposed)switch(k.effectType){case po:CMC.schedule(k);break;case k2j:E6h.schedule(k);break;case S2I:RR1.schedule(k);break;default:_.s5(k.effectType)}};
n6m=function(){if(AN>0)JN.flushRenderEffectsDuringRender&&CMC.flush();else{for(var k=_.n(Nml),E=k.next();!E.done;E=k.next())E.value.flush();Ilt()}};
Ilt=function(){_.c(function(k){if(k.nextAddress==1)return k.yield(Promise.resolve(),2);for(var E=_.n(iZC),S=E.next();!S.done;S=E.next())S.value.flush();_.KR(k)})};
JwA=function(k){rt=!0;try{for(var E=_.n(k),S=E.next();!S.done;S=E.next()){for(var R=S.value,V=[R],N=R;N.parent!==void 0;)N=N.parent,hRt(N)&&k.has(N)&&V.push(N);for(;V.length>0;){var h=V.pop();k.delete(h);h.run()}}}finally{rt=!1}};
uI=function(k){AN--;if(k){k=_.n(cwe);for(var E=k.next();!E.done;E=k.next())E.value.clear()}else AN>0||rt&&!JN.flushRenderEffectsDuringRender||n6m()};
eRe=function(k,E,S){var R=mmh(k);xO={name:S?R+" ("+S+")":R,isReactive:k.componentType!==Lo,parent:xO};k=E();xO=xO.parent;return k};
j$=function(){var k=xO;return k?k.isReactive:!1};
fo=function(k,E,S){var R=xO;E&&(xO=E);try{return S==null?k():k.call(S)}catch(N){k=N;DK(k,xO);if(k!==alC){t9m=xO;E=[];for(S=Nn;S;){var V=void 0;E.push((V=S.debugName)!=null?V:"[context]");V=void 0;S=(V=S.parent)!=null?V:null}Tm1=E.reverse()}alC=k;throw k;}finally{xO=R}};
DK=function(k,E){try{var S=wnb(E);if(S&&!k.componentStack&&(k.componentStack=S,JN.enableComponentStacksInErrorMessages)){var R=k.message+"\n\nComponent stack: "+S;k.stack&&(k.stack=k.stack.replace(k.message,R));k.message=R}}catch(V){}};
wnb=function(k){if(cX(k)&&k.name!==void 0&&k.isReactive!==void 0&&k.parent!==void 0||k===null){for(var E=0,S="";E<20&&k;)S+=k.name+" > ",k=k.parent,E++;k=S.slice(0,-3)}else if(JN.enableContextBasedComponentStacks){a:{for(k=k===void 0?Nn:k;k;){if(GpI(k))break a;E=void 0;k=(E=k.parent)!=null?E:null}k=null}k=k.getComponentStack().slice(0,20).join(" > ")}else k="";return k};
mmh=function(k){return k.debugName||k.name||"[component]"};
P2l=function(k,E,S){E=Object.create(E);k&&(E.effectFn=k);S&&(E.debugName=S);hN(E);E.componentStack=xO;return E};
_.vX=function(k,E){k=P2l(k,Bmt,E);V9h(k)};
Y2I=function(k){return k};
WFI=function(k,E){function S(){return V()}
var R=R===void 0?"":R;var V=typeof k==="function"?upb(k,Y2I,E==null?void 0:E.equals):upb(k.source,k.computation,E==null?void 0:E.equals);var N=V[WX];N.debugName=qQt(E==null?void 0:E.debugName,R,"[linkedSignal]");S[WX]=N;return[S,function(h){xdm(function(){wt(N);H21(N,h);N.dirty=!1;N.lastCleanEpoch=TL},N)},
function(h){xdm(function(){wt(N);Vlh()||KEm(N);H21(N,h(N.value));N.dirty=!1;N.lastCleanEpoch=TL},N)}]};
_.bI=function(k){var E=Nn;if(E){var S=xO;y6e(E,function(){var R=e$(ldI());try{fo(function(){return void k()},S)}catch(V){throw JN.enableContextBasedComponentStacks&&DK(V),V;
}finally{e$(R)}})}};
ZK=function(k,E){var S={};(E===void 0||E)&&hN(S);E=_.Ie(S);try{k(S)}finally{_.Ie(E)}return function(){return void oZm(S)}};
_.dt=function(k){return typeof k==="function"?k():(k==null?0:k[FFA])?k.get():k};
_.sm=function(k,E){k=P2l(k,ywI,E);V9h(k)};
o6j=function(k){if(Nn)throw Error("nb");ZK(k,!1)};
lI=function(k,E){k=_.Ie(k);try{return _.FF(E)}finally{_.Ie(k)}};
Mn=function(k,E){var S=wnb(t9m),R,V;var N=(V=(R=Tm1)==null?void 0:R.slice())!=null?V:[];E={componentStack:S,contextTrace:N,errorSeverity:3,featureFlags:sHm(),tagName:E};return[k,E]};
UmC=function(k,E,S){if(Object.hasOwnProperty.call(Xn1,k)&&(k=Xn1[k],Object.hasOwnProperty.call(k,E)&&(k=k[E],k instanceof Array))){for(var R=null,V=!1,N=0,h=k.length;N<h;++N){var J=k[N],m=J.contingentAttribute;if(!m)return J.contract;R===null&&(R={});m=Object.hasOwnProperty.call(R,m)?R[m]:R[m]=S(m);if(m===J.requiredValue)return J.contract;m==null&&(V=!0)}if(V)return null}E=g6h[E];return typeof E==="number"?E:null};
pnC=function(k,E,S){var R=null;(k=HZm[k])&&(R=k[E]);return typeof R!=="number"&&((k=HZm["*"])&&(R=k[E]),typeof R!=="number")?!1:!0===KF1[R][String(S).toLowerCase()]};
rw1=function(k,E){E=UmC(k.toLowerCase(),E,function(){var R;(R=JN.handleError)==null||R.call.apply(R,[JN].concat(_.$e(Mn(Error("Tb"),k.toLowerCase()))))});
if(E===null)return null;var S;return(S=Awh[E])!=null?S:null};
utb=function(k,E,S){if(S===null||S===void 0)return S;E=E.toLowerCase();k=rw1(k,E);return k===null?S:k(E,S)};
xmb=function(){};
qn=function(k,E){for(;k.length>E;)k.pop()};
LFA=function(k){k=Array(k);qn(k,0);return k};
zL=function(k,E,S){if(S==null)k.removeAttribute(E);else{var R;(R=E.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":E.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?k.setAttributeNS(R,E,S):k.setAttribute(E,S)}};
jse=function(k,E,S){k[E]=S};
$mR=function(k,E,S){k=k.style;if(typeof S==="string")k.cssText=S;else{k.cssText="";for(var R in S)if(Dm1.call(S,R)){E=k;var V=R,N=S[R];V.indexOf("-")>=0?E.setProperty(V,N):E[V]=N}}};
flt=function(k,E,S){var R=typeof S;R==="object"||R==="function"?k[E]=S:zL(k,E,S)};
v6I=function(){var k=new xmb;k[Qg.default]=flt;k.style=$mR;return k};
bZj=function(k,E,S,R){(R[E]||R[Qg.default])(k,E,S)};
dmm=function(k,E,S){E=new ZZ1(E,S);return k.__incrementalDOMData=E};
GL=function(k,E){if(k.__incrementalDOMData)return k.__incrementalDOMData;var S=k.nodeType===1?k.localName:k.nodeName,R=k.nodeType===1?k.getAttribute("key"):null;E=dmm(k,S,k.nodeType===1?R||E:null);if(k.nodeType===1&&(k=k.attributes,S=k.length)){R=E._attrsArr||(E._attrsArr=LFA(S*2));for(var V=0,N=0;V<S;V+=1,N+=2){var h=k[V],J=h.value;R[N]=h.name;R[N+1]=J}}return E};
ss1=function(k,E,S,R,V){return E==S&&R==V};
ll1=function(k){for(var E=Co,S=Sw();S!==k;){var R=S.nextSibling;E.removeChild(S);R2.deleted.push(S);S=R}};
Sw=function(){return Vh?Vh.nextSibling:Co.firstChild};
Ng=function(){Vh=Sw()};
zRb=function(k,E,S){Ng();var R;a:{if(R=Vh){do{var V=R,N=k,h=E,J=GL(V,h);if(M9I(V,N,J.nameOrCtor,h,J.key))break a}while(E&&(R=R.nextSibling))}R=null}R||(k==="#text"?(S=I2.createTextNode(""),dmm(S,"#text",null),k=S):(R=I2,V=Co,typeof k==="function"?R=new k:R=(V=k==="svg"?"http://www.w3.org/2000/svg":k==="math"?"http://www.w3.org/1998/Math/MathML":V==null||GL(V).nameOrCtor==="foreignObject"?null:V.namespaceURI)?R.createElementNS(V,k):R.createElement(k),dmm(R,k,E),k=R,S&&k.setAttribute("nonce",S)),R2.created.push(k),
R=k);S=R;if(S!==Vh){if(q21.indexOf(S)>=0)for(k=Co,E=S.nextSibling,R=Vh;R!==null&&R!==S;)V=R.nextSibling,k.insertBefore(R,E),R=V;else Co.insertBefore(S,Vh);Vh=S}};
QsI=function(k,E,S){zRb(k,E,S);Co=Vh;Vh=null;return Co};
OZt=function(){ll1(null);Vh=Co;Co=Co.parentNode};
G2R=function(){Vh=Co.lastChild};
EFI=function(k,E){E=E===void 0?{}:E;var S=E.matches===void 0?ss1:E.matches;return function(R,V,N){var h=R2,J=I2,m=q21,a=nV,T=i$,w=Vh,P=Co,B=M9I;I2=R.ownerDocument;R2=new C2R(R);M9I=S;nV=[];i$=[];Vh=null;var F=Co=R.parentNode,K,r=k9h.call(R);if((K=r.nodeType===11||r.nodeType===9?r.activeElement:null)&&R.contains(K)){for(r=[];K!==F;)r.push(K),K=K.parentNode||(F?K.host:null);F=r}else F=[];q21=F;try{return k(R,V,N)}finally{R=R2,hj&&R.deleted.length>0&&hj(R.deleted),I2=J,R2=h,M9I=B,nV=a,i$=T,Vh=w,Co=P,
q21=m}}};
SJe=function(k,E,S,R){Jj.push(bZj);Jj.push(k);Jj.push(E);Jj.push(S);Jj.push(R)};
VXb=function(k,E,S){var R=i$;E=E._attrsArr||(E._attrsArr=LFA(R.length));for(var V=!E.length||!1,N=0;N<R.length;N+=2){var h=R[N];if(V)E[N]=h;else if(E[N]!==h)break;var J=R[N+1];if(V||E[N+1]!==J)E[N+1]=J,SJe(k,h,J,S)}if(N<R.length||N<E.length){for(N=V=N;N<E.length;N+=2)cC[E[N]]=E[N+1];for(N=V;N<R.length;N+=2)V=R[N],h=R[N+1],cC[V]!==h&&SJe(k,V,h,S),E[N]=V,E[N+1]=h,delete cC[V];qn(E,R.length);for(var m in cC)SJe(k,m,void 0,S),delete cC[m]}k=RGh;RGh=S=Jj.length;for(m=k;m<S;m+=5)(0,Jj[m])(Jj[m+1],Jj[m+
2],Jj[m+3],Jj[m+4]);RGh=k;qn(Jj,k);qn(R,0)};
Nci=function(k){zRb("#text",null);var E=Vh;var S=GL(E);if(S.text!==k){S=S.text=k;for(var R=1;R<arguments.length;R+=1)S=(0,arguments[R])(S);E.data!==S&&(E.data=S)}};
m6j=function(k,E,S){if(S===!1&&IwC.has(E))zL(k,E,null);else if(E!=="idomKey"&&E!=="skip"&&E!=="skipchildren"&&E!=="children"&&E!=="el")if(E.startsWith("on")){if(E[2]!==":")throw Error("Sb`"+E);if(S===void 0||S===null){var R;(R=JN.handleError)==null||R.call.apply(R,[JN].concat(_.$e(Mn(Error("Xb`"+E),k.tagName))));k[E]=void 0}else{var V=E.slice(3);R=j$();if(V==="jsaction"){S=Array.isArray(S)?S:[S];S=_.n(S);for(var N=S.next();!N.done;N=S.next()){N=N.value;if(typeof N!=="object"||N===null||typeof N.selfReg!==
"function")throw Error("$b`"+E);N.selfReg(0,k,R?_.bI:function(){})}}else{if(typeof S!=="object"||S===null)throw Error("Yb`"+E+"`"+typeof S);
if(typeof S.getFn!=="function")throw Error("Zb`"+E+"`"+Object.keys(S));if(S.selfReg)S.selfReg(0,k,V,R?_.bI:function(){});
else if(R&&k["on"+V]===void 0){var h=S.getFn(0);k.addEventListener(V,h);_.bI(function(){return void k.removeEventListener(V,h)})}else if(R||!nFI.includes(V))k["on"+V]=S.getFn(0)}}}else{if(E.startsWith("data-")&&typeof S==="string")try{S=if1(S)}catch(J){S="zSoyz"}typeof S!=="function"||k._disposeEffects!=null?((R=E.startsWith("prop:"))&&(E=E.slice(5)),JN.enableAttributeSanitization&&(R&&hGj(k.tagName)||(S=utb(k.tagName,E,S))),E==="style"?("function"==typeof _.mN&&S instanceof _.mN&&(S=S.toString()),
JBl(k,E,S)):R?k[E]=S:cBA(k,E,S)):(k._signalProps||(k._signalProps=[]),k._signalValues||(k._signalValues=[]),k._signalProps.push(E))}};
eGC=function(k,E,S){S=(S===void 0?{}:S).isReactive;if(E==null?0:E.el){var R=E.el,V;(V=R.onRender)==null||V.call(R,k);k._disposeRef||(k._disposeRef=function(){var N;(N=R.onUnmount)==null||N.call(R);delete k._disposeRef},S&&_.bI(function(){var N;
(N=k._disposeRef)==null||N.call(k)}))}};
hGj=function(k){return k.length>0&&k.includes("-")&&!awI.includes(k.toLowerCase())};
tXh=function(k){return cX(k)&&ew in k};
Tch=function(k){return tXh(k)?k[ew].flattened:k};
wkl=function(k,E){var S=_.sX.apply(2,arguments),R;E=(R=E)!=null?R:{};R={};return R.type=k,R.props=E,R.children=S,R[a2]=!0,R};
_.tj=function(k){return k.children};
Ta=function(k){var E=Pc1!==wkl;Pc1=k?BcR:wkl;return E};
_.w0=function(k){return _.qA(k)?"nodeType"in k:!1};
PC=function(){return document.createTextNode("")};
BC=function(k){k=document.createTextNode(String(k));k._isSignalTextNode=!0;return k};
Wt1=function(k){return k!=null&&k.contentKind===Yk||k instanceof qU||YJI(k)};
Ftm=function(k){var E=document.createElement("div");if(YJI(k)&&gr1(k))_.nR(E,gr1(k));else if(k instanceof qU)_.nR(E,k);else if(k!=null&&k.contentKind===Yk){if(k.contentKind!==Yk)throw Error("Wb");k=zB(k.toString());_.nR(E,k)}k=_.n(E.childNodes);for(var S=k.next();!S.done;S=k.next())S.value._isSafeOrSanitizedHtmlNode=!0;return E};
WC=function(k){k=typeof k;return k==="string"||k==="number"||k==="boolean"};
yBt=function(k){return k instanceof Kg||jr(k)||k instanceof cd||"function"==typeof _.mN&&k instanceof _.mN};
oFe=function(k,E){var S=k.parentElement;if(!S)return E;S.replaceChild(E,k);return E};
XkI=function(k,E){var S=k[0].parentElement;if(S)if(k[0].previousSibling||k[k.length-1].nextSibling){S.insertBefore(E,k[0]);for(var R=k.length-1;R>=0;R--)S.removeChild(k[R])}else S.textContent="",S.appendChild(E);return E};
gFR=function(k,E){if(k[0].parentElement)for(var S=k[0].parentElement,R=E.length,V=k.length,N=R,h=0,J=0,m=k[V-1].nextSibling,a=null;h<V||J<N;)if(k[h]===E[J])h++,J++;else{for(;k[V-1]===E[N-1];)V--,N--;if(V===h)for(var T=N<R?J?E[J-1].nextSibling:E[N-J]:m;J<N;){var w=E[J++];S.insertBefore(w,T)}else if(N===J)for(;h<V;)T=k[h],a&&a.has(T)||S.removeChild(T),h++;else if(k[h]===E[N-1]&&E[J]===k[V-1])T=k[--V].nextSibling,S.insertBefore(E[J++],k[h++].nextSibling),S.insertBefore(E[--N],T),k[V]=E[N];else{if(!a)for(a=
new Map,T=J;T<N;)a.set(E[T],T++);T=a.get(k[h]);if(T==null)S.removeChild(k[h]),h++;else if(J<T&&T<N){w=h;for(var P=1,B=void 0;++w<V&&w<N&&(B=a.get(k[w]))!=null&&B===T+P;)P++;if(P>T-J)for(w=k[h];J<T;)S.insertBefore(E[J++],w);else S.replaceChild(E[J++],k[h++])}else h++}}return E};
HfC=function(k){if(Array.isArray(k)){if(k.length>1)throw Error("jc`"+k.length+"`"+k.map(U61).join(", "));k=k[0]}if(k==null)return null;if(!(k instanceof _.SO)){var E,S;if((E=window)==null?0:(S=E.trustedTypes)==null?0:S.isScript(k))throw Error("ic");if(String(k).trim().length===0)return null;throw Error("kc`"+U61(k));}return k};
KtC=function(k,E){E=HfC(E);E!==null&&_.NV(k,E)};
pkm=function(k){if(Array.isArray(k)){if(k.length>1)throw Error("lc`"+k.length+"`"+k.map(U61).join(", "));k=k[0]}if(k==null)return null;if(!(k instanceof cd)){if(String(k).trim().length===0)return null;throw Error("mc`"+U61(k));}return k};
ABI=function(k,E){E=pkm(E);E!==null&&(k.textContent=PtI(E))};
U61=function(k){return"("+typeof k+") "+(k!=null&&typeof k==="object"?k.constructor.name:typeof k)+" "+k};
rB1=function(){};
X4=function(k,E){E=E===void 0?{}:E;var S=unh(),R=!0,V,N=!!JN.legacyTriggerSoyRendererEvents;N&&(V=Lq1());_.sm(function(){var h=!R&&E.isControlFlowComponent&&N,J=h?S[ew].flattened[0].parentElement:void 0;R=!1;_.F4.setUp();E.isControlFlowComponent&&AN++;var m=S[0],a=S[ew].flattened,T=Ta(!0);try{var w=k(),P=x6j(m,w,S);Array.isArray(P)||(S[ew].flattened=[P]);var B=S[ew].flattened;if(a&&(!Array.isArray(a)||a.length!==0)){var F=Array.isArray(a)?a[0]:a,K=F[o2],r=F._disposeEffects;F._disposeEffects=void 0;
F=Array.isArray(B)?B[0]:B;F[o2]=K;F[o2]&&(F[o2].numNodes=F===B?1:B.length);F._disposeEffects=r}S[0]=P;E.isControlFlowComponent&&uI(!1)}catch(x){throw E.isControlFlowComponent&&uI(!0),x;}finally{Ta(T),_.F4.tearDown()}h&&(h=V,h!=null||(h=_.PXj(document).getAppContext()),h.get(Ltj).JSC$29290_getEventTarget().dispatchEvent(new jdC(D6C,J,Yk)))},E.debugName);
return S};
x6j=function(k,E,S){for(;typeof E==="function";)E=E();if(E!=null&&E[a2]){var R,V,N;(N=JN.handleError)==null||N.call.apply(N,[JN].concat(_.$e(Mn(Error("nc`"+((R=E.type)==null?void 0:R.TAG_NAME)),(V=E.type)==null?void 0:V.TAG_NAME))))}if(k==null)return E==null?PC():WC(E)?BC(E):yBt(E)?BC(E.toString()):_.w0(E)?E:E.length===0?PC():$6m(E,S);if(_.w0(k)){if(E==null)return oFe(k,PC());if(WC(E))return fwt(k,E);if(yBt(E))return fwt(k,E.toString());if(_.w0(E))return oFe(k,E);if(E.length===0)return oFe(k,PC());
E=$6m(E,S);gFR([k],S[ew].flattened);return E}k=g0(k);if(E==null)return XkI(k,PC());if(WC(E))return XkI(k,BC(E));if(yBt(E))return XkI(k,BC(E.toString()));if(_.w0(E))return gFR(k,[E])[0];if(E.length===0)return XkI(k,PC());E=$6m(E,S);gFR(k,S[ew].flattened);return E};
fwt=function(k,E){k.nodeType===Node.TEXT_NODE?k.textContent!==String(E)&&(k.textContent=String(E)):k=oFe(k,BC(E));return k};
g0=function(k,E,S){return vFi(k,E!=null?E:[],S===void 0?!1:S)};
$6m=function(k,E){var S=g0(k,void 0,!0);if(S.length===0)return PC();E[ew].flattened=S;return k};
vFi=function(k,E,S,R,V){E=E===void 0?[]:E;S=S===void 0?!1:S;V=V===void 0?-1:V;if(k==null)return E;if(k instanceof U4){var N=k.render();return vFi(N,E,S,R,V)}if(_.w0(E)&&E.nodeType===Node.ELEMENT_NODE)switch(E.tagName){case "SCRIPT":KtC(E,k);return;case "STYLE":ABI(E,k);return}WC(k)&&(k=BC(k),R&&S&&(R[V]=k));if(Wt1(k)){S=Ftm(k);S=Array.from(S.childNodes);S=_.n(S);for(N=S.next();!N.done;N=S.next())bfC(E,N.value);return E}yBt(k)&&(k=BC(k.toString()),R&&S&&(R[V]=k));if(_.w0(k))return bfC(E,k);if(Array.isArray(k)){for(N=
0;N<k.length;N++)vFi(k[N],E,S,k,N);return E}if(typeof k==="function"){N=X4(function(){var J=k();return J!=null&&!WC(J)&&Wt1(J)?(J=Ftm(J),Array.from(J.childNodes)):J},{debugName:"qmF2ne",
debugFn:k})[0];if(Array.isArray(N)){S=_.n(N);for(N=S.next();!N.done;N=S.next())bfC(E,N.value);return E}R&&S&&(R[V]=N);return bfC(E,N)}if(k!=null&&k[a2]){R=k;V=Ta(!0);var h=Pc1;try{N=h.apply(null,[R.type,R.props].concat(_.$e(R.children)))}finally{Ta(V)}return vFi(N,E,S)}(h=JN.handleError)==null||h.call.apply(h,[JN].concat(_.$e(Mn(Error("oc")))));return E};
unh=function(k){var E={};E=Object.assign([],(E[ew]={flattened:[]},E));if(!k)return E;E[0]=$6m(k,E);return E};
bfC=function(k,E){Array.isArray(k)?k.push(E):k.appendChild(E);return k};
HC=function(k){if(!JN.enableLazyTsx)return k;if(Array.isArray(k)){for(var E=0;E<k.length;E++)k[E]=HC(k[E]);return k}return k instanceof U4?(k=k.render(),HC(k)):k};
d61=function(k,E){var S,R,V=mmh(k),N=function(B){R=B;B=Ta(!0);var F=e$(KV);lJb("render",V);try{S=HC(k(E))}finally{MvI("render",V),e$(F),Ta(B)}};
N=JN.enableContextPerComponent?QHm(N,V):ZK(N,JN.alwaysTrackContexts||!!Nn);GpI(R);if(!E.renderedFromIdom){var h=_.Ie(R);try{return Zfj(k,E,S),S}finally{_.Ie(h)}}!tXh(S)&&Array.isArray(S)&&(S=unh(S));var J=Tch(S);h=Array.isArray(J)?J[0]:J;var m=!1;if(h){var a,T=(a=E==null?void 0:E.idomKey)!=null?a:k;a=J!==h;h._disposeEffects=N;var w=h[o2]||{},P=tXh(S)?S:w.sourceDynamicRange;Object.assign(w,{key:T,numNodes:a?J.length:1,context:R,higherOrder:!!h[o2],sourceDynamicRange:P});h[o2]=w}else m=!0;(function(){var B=
_.Ie(R);try{Zfj(k,E,J)}finally{_.Ie(B)}})();
m&&N();return S};
sdh=function(k){var E={},S;for(S in k)E={prev$jscomp$24:void 0,next$jscomp$33:void 0},E.prev$jscomp$24=pV[S],E.next$jscomp$33=k[S],pV[S]=function(R){return function(){var V=_.sX.apply(0,arguments);R.prev$jscomp$24.apply(null,_.$e(V));R.next$jscomp$33.apply(null,_.$e(V))}}(E)};
lwe=function(){if(j$())throw Error("pc");return Aj};
MXI=function(k,E){if(!k.__unmounted&&E){k.__unmounted=!0;try{k.didUnmount()}catch(V){var S,R;(R=JN.handleError)==null||R.call.apply(R,[JN].concat(_.$e(Mn(V,(S=k.__type)==null?void 0:S.TAG_NAME))))}pV.didUnmount(k);k.el=null;E.__instance&&delete E.__instance}};
zGe=function(k,E,S){k._signalProps!=null&&k._disposeEffects==null&&((S===void 0?0:S)?k._disposeEffects=ZK(function(){return void qJb(k,E)},JN.alwaysTrackContexts||!!Nn):qJb(k,E))};
qJb=function(k,E){_.sm(function(){for(var S=k._signalProps,R=k._signalValues,V=0;V<S.length;V++){var N=S[V],h=E[N]();R[V]!==h&&(R[V]=h,m6j(k,N,h))}},"e3YVbb")};
QdI=function(k,E,S){var R,V=[];k._disposeEffects=ZK(function(){_.sm(function(){var N=S();if(N===null||N===void 0)N="";if(WC(N)||N===null)R!=null||(R=document.createTextNode("")),R.parentNode!==k&&(R._isSignalTextNode=!0,k.insertBefore(R,E)),R.textContent=String(N);else if(Wt1(N)){for(var h=V.length>0?V[V.length-1].nextSibling:E,J=_.n(V),m=J.next();!m.done;m=J.next())k.removeChild(m.value);N=Ftm(N);V=Array.from(N.childNodes);N=_.n(V);for(J=N.next();!J.done;J=N.next())k.insertBefore(J.value,h)}else throw m=
(J=(h=xO)==null?void 0:h.name)!=null?J:"unknown",Error("ec`"+m+"`"+typeof N);},"VvDgC")},JN.alwaysTrackContexts||!!Nn)};
Ccm=function(k,E){var S=_.sX.apply(2,arguments);E!=null||(E={});return!JN.enableLazyTsx||xO!=null&&!j$()?Ofl(k,E,S):new G9j(k,E,S)};
Ofl=function(k,E,S){if(k===_.tj)return S;if(typeof k==="function")return xO&&!j$()&&(E.renderedFromIdom=!0),eRe(k,function(){var N=kRI(k,E,S);if(N)return N;S.length>0&&(E.children=S.length===1?S[0]:S);if(k.componentType===Lo){var h;QHm(function(){var J=E;if(k.componentType!==Lo)h=!1;else{J||(J={});var m=new r0(J,k),a=e$(KV);try{var T=m.render(J)}finally{e$(a)}T instanceof HTMLElement?(T.__instance=m,m.el=T,m.__type=k,k.TAG_NAME=T.tagName.toLowerCase(),pV.didPatch(m),h=T):h=T}},k.name);
if(h)return h}return d61(k,E)},E.debugInstance);
var R=Eul(k,E),V;for(V in E)m6j(R,V,E[V]);zGe(R,E);g0(S,R);eGC(R,E,{isReactive:!0});Sti(R,E);return R};
Eul=function(k,E){k=(RPh.has(k.toLowerCase())?0:Vml.has(k.startsWith("svg:")?k.replace("svg:",""):k))?document.createElementNS("http://www.w3.org/2000/svg",k.startsWith("svg:")?k.replace("svg:",""):k):NWm(k,E)||document.createElement(k);k[IZI]=!0;return k};
nuR=function(k){if(k){var E;(E=k._disposeRef)==null||E.call(k);var S;(S=k._disposeEffects)==null||S.call(k);k.__instance&&k.__instance instanceof u$&&(E=k.__instance,MXI(E,k),E instanceof r0&&E.disposeEffects());for(E=0;E<k.childNodes.length;E++)nuR(k.childNodes[E])}};
hPt=function(k){iIl.push(k)===1&&requestAnimationFrame(function(){setTimeout(function(){var E=[].concat(_.$e(iIl));iIl=[];E=_.n(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;try{for(var R=0;R<S.length;R++)nuR(S[R])}catch(V){R=S=void 0,(R=(S=JN).handleError)==null||R.call.apply(R,[S].concat(_.$e(Mn(V))))}}})})};
_.e=function(k,E){return Pc1.apply(null,[k,E].concat(_.$e(_.sX.apply(2,arguments))))};
_.xk=function(k){return k};
_.LV=function(k){return{isDefault:!0,children:k.children}};
_.t=function(k){var E=k.cond;if(E===void 0)return k.else&&k.else();var S=_.HX(function(){return!!E()},void 0,"JHVi8"),R=function(){var V=E();
if(!V){var N;(N=JN.handleError)==null||N.call.apply(N,[JN].concat(_.$e(Mn(JII.nonNullableCondIsNull()))))}return V};
return X4(function(){var V=S(),N;ZK(function(){var h=e$(KV);try{N=HC(V?k.then(R):k.else&&k.else())}finally{e$(h)}},!0);
return N},{debugName:k.debugInstance,
debugFn:k.then,isControlFlowComponent:!0})};
cIt=function(k){return _.t(k)};
_.jw=function(k){return k.keyBy==="INDEX"?meh(k):ePA(k)};
aZC=function(k){k=_.n(k);for(var E=k.next();!E.done;E=k.next()){var S=void 0;(S=E.value)==null||S()}};
ePA=function(k){var E=k.keyBy===void 0||k.keyBy==="REFERENCE",S=E?function(T){return T}:k.keyBy,R=[],V=[],N=[],h=[],J=[],m=[],a=!0;
_.bI(function(){aZC(h)});
return X4(function(){var T=k.each(),w=T.length;if(w===0){if(R.length===0&&!a)return N;aZC(h);R=T;V=[];for(T=0;T<R.length;T++)V.push(S(R[T]));N=[];h=[];J=[];m=[];k.fallback&&(h[0]=tmi(function(){N[0]=HC(k.fallback())}));
a=!1;return N}for(var P=new TWb,B=R.length-1;B>=0;B--)P.push(V[B],B);B=Array(w);for(var F=Array(w),K=Array(w),r=Array(w),x=Array(E?0:w),L={i$jscomp$449:0};L.i$jscomp$449<w;L={i$jscomp$449:L.i$jscomp$449,item$jscomp$104:void 0,key$jscomp$562:void 0},L.i$jscomp$449++){L.item$jscomp$104=T[L.i$jscomp$449];L.key$jscomp$562=S(L.item$jscomp$104);var q=P.pop(L.key$jscomp$562);q!=null?(K[L.i$jscomp$449]=N[q],F[L.i$jscomp$449]=V[q],B[L.i$jscomp$449]=h[q],r[L.i$jscomp$449]=J[q],E||(x[L.i$jscomp$449]=m[q]),Ko(function(M){return function(){r[M.i$jscomp$449](M.i$jscomp$449);
if(!E)x[M.i$jscomp$449](M.item$jscomp$104)}}(L)),delete h[q]):B[L.i$jscomp$449]=tmi(function(M){return function(){var d=_.n(_.yg(M.i$jscomp$449,void 0,"Fqk1zd")),z=d.next().value;
d=d.next().value;r[M.i$jscomp$449]=d;F[M.i$jscomp$449]=M.key$jscomp$562;if(E)K[M.i$jscomp$449]=HC(k.children(M.item$jscomp$104,z));else{var kb=_.n(_.yg(M.item$jscomp$104,void 0,"GBj5de"));d=kb.next().value;kb=kb.next().value;x[M.i$jscomp$449]=kb;K[M.i$jscomp$449]=HC(k.children(d,z))}}}(L))}aZC(h);
R=T;V=F;N=K;h=B;J=r;m=x;a=!1;return K},{debugName:k.debugInstance,
debugFn:k.each,isControlFlowComponent:!0})};
meh=function(k){var E=[],S=[],R=[],V=[],N=!1;_.bI(function(){for(var h=_.n(V),J=h.next();!J.done;J=h.next())J=J.value,J()});
return X4(function(){var h=k.each();N&&h.length>0&&(V.pop()(),E.pop(),N=!1);for(var J=Array(h.length),m={i$jscomp$450:0};m.i$jscomp$450<h.length;m={i$jscomp$450:m.i$jscomp$450},m.i$jscomp$450++)if(m.i$jscomp$450<E.length)E[m.i$jscomp$450]!==h[m.i$jscomp$450]&&(Ko(function(T){return function(){return void S[T.i$jscomp$450](h[T.i$jscomp$450])}}(m)),E[m.i$jscomp$450]=h[m.i$jscomp$450]),J[m.i$jscomp$450]=R[m.i$jscomp$450];
else{var a=tmi(function(T){return function(){E[T.i$jscomp$450]=h[T.i$jscomp$450];var w=_.n(_.yg(h[T.i$jscomp$450],void 0,"JMMLmd")),P=w.next().value;w=w.next().value;S[T.i$jscomp$450]=w;J[T.i$jscomp$450]=HC(k.children(P,T.i$jscomp$450))}}(m));
V[m.i$jscomp$450]=a}for(;E.length>h.length;)E.pop(),V.pop()(),S.pop();h.length===0&&!N&&k.fallback&&(m=tmi(function(){J[0]=HC(k.fallback())}),V[0]=m,N=!0);
return R=J},{debugName:k.debugInstance,
isControlFlowComponent:!0})};
tmi=function(k){var E=Nn;return ZK(function(S){var R=e$(KV);try{S.parent=E,k(S)}finally{e$(R)}},!1)};
_.D_=function(k){var E=wib(k),S=_.HX(function(){return PWR(E)},void 0,"F1PF4");
return X4(function(){var R=S(),V;ZK(function(){var N=e$(KV);try{V=HC(R())}finally{e$(N)}});
return V},{debugName:k.debugInstance,
isControlFlowComponent:!0})};
wib=function(k){k=k.children;return Array.isArray(k)?k:[k]};
BWt=function(k){var E=k.props;k=k.getChildren()[0];return E.when?{when:E.when,children:k}:{isDefault:!0,children:k}};
PWR=function(k){var E=function(){return null};
k=_.n(k);for(var S=k.next();!S.done;S=k.next())if(S=S.value,S!=null&&S[a2]&&(S=S.type===_.LV?{isDefault:!0,children:S.children[0]}:{when:S.props.when,children:S.children[0]}),S instanceof U4&&(S=BWt(S)),S.isDefault)E=S.children;else if(S.when())return S.children;return E};
WS1=function(k){var E=null,S,R={get value(){var N,h;(h=(N=V).validateGetValue)==null||h.call(N);return V.__value},set value(N){var h,J;(J=(h=V).validateSetValue)==null||J.call(h,N);V.__value=N;V.__hasBeenSet=!0}},V=(R.__value=null,R.__hasBeenSet=!1,R.__hasErrored=!1,R.onRender=function(N){if(S&&N!==S){S._disposeRef=void 0;var h;(h=E)==null||h()}S=N;E=k(N)||null},R.onUnmount=function(){var N;
(N=E)==null||N();E=V.value=null},R[_.Yt1]=!0,R);
return V};
$k=function(k){return typeof k==="symbol"};
yI1=function(k){var E=lwe();if(E==null)throw _.FSb.PRIMITIVE_INVALID_HOOK_CALL();var S=E.hookCounter++;E.hooks||(E.hooks=[]);var R=E.hooks;R[S]||(R[S]={key:k,host:E});if(k!==R[S].key){if(E.__type){var V;k=(V=E.__type)==null?void 0:V.name}else k=E instanceof r0?mmh(E.functionComponent):"<"+E.el.tagName.toLowerCase()+">";throw _.FSb.OUT_OF_ORDER_HOOK_CALL(k);}return R[S]};
oub=function(k,E){return!k||k.length!==(E==null?void 0:E.length)||k.some(function(S,R){return S!==E[R]})};
Xih=function(k,E){var S=yI1("onChange"),R=lwe();oub(S.deps,E)&&(S.deps=E,S.pendingEffect=k,R.__syncEffects||(R.__syncEffects=[]),R.__syncEffects.push(S))};
_.fV=function(k,E,S){S!=null||(S={});S=S.appContext;var R=!!JN.legacyTriggerSoyRendererEvents;_.F4.setUp();try{var V=gu1(k,E,S);R&&(E=S,E!=null||(E=_.PXj(document).getAppContext()),E.get(Ltj).JSC$29290_getEventTarget().dispatchEvent(new jdC(Uet,k,Yk)));_.F4.log(k);return V}finally{_.F4.tearDown()}};
gu1=function(k,E,S){var R=fo(function(){var V=e$(KV);try{return ZK(function(){var N=_.PXj(_.dT(k)),h;var J=xGt({rootElement:{value:k},appContext:S||(N==null?void 0:(h=N.getOptionalAppContext)==null?void 0:h.call(N)),dispatcher:N});N=_.Ie(J);J=Ta(!0);AN++;try{g0(E(),k),uI(!1)}catch(m){throw uI(!0),m;}finally{Ta(J),_.Ie(N)}},!1)}catch(N){throw JN.enableContextBasedComponentStacks&&DK(N),N;
}finally{e$(V)}});
k[HII]=!0;return function(){k.textContent="";R();k[HII]=!1}};
_.vC=function(k){if(hRt(mh)){var E;(E=JN.handleError)==null||E.call.apply(E,[JN].concat(_.$e(Mn(Error("dc")))))}var S=Nn,R=xO;GUR({onInitType:QWi,run:function(){if(S&&!S.isDisposed){var V=_.Ie(S);try{fo(function(){return void k()},R)}catch(N){throw JN.enableContextBasedComponentStacks&&DK(N),N;
}finally{_.Ie(V)}}}})};
KSR=function(k,E){Xih(function(){return _.FF(k)},E)};
_.b$=function(k){j$()?_.vC(function(){_.FF(k)}):Xih(function(){return _.FF(k)},[])};
AIi=function(k){var E=[].concat(_.$e(k));k.length=0;k=_.n(E);for(E=k.next();!E.done;E=k.next()){E=E.value;pie(E);var S=E.pendingEffect;E.pendingEffect=null;if(S=S==null?void 0:S())E.pendingCleanup=S}};
pie=function(k){var E=k.pendingCleanup;k.pendingCleanup=null;E==null||E()};
rIR=function(k,E){if(j$())return k();var S=yI1("useMemoInternal");oub(S.deps,E)&&(S.deps=E,S.value=k());return S.value};
ue1=function(k,E){return rIR(k,E)};
Z_=function(k){return rIR(k,[])};
xe1=function(k){return Z_(function(){return{value:k}})};
_.d0=function(k,E){if(!k)return null;k=Object.keys(k);k=_.n(k);for(var S=k.next();!S.done;S=k.next()){S=S.value;var R=S.toLowerCase();if(R.indexOf(E,R.length-E.length)>-1)return S}return null};
_.l$=function(){var k=arguments,E=_.s4;k.length>1?E[k[0]]=k[1]:k.length===1&&Object.assign(E,k[0])};
_.Mg=function(k,E){return k in _.s4?_.s4[k]:E};
_.qg=function(k,E){return!!_.Mg(k,E)};
LSR=function(k){var E=_.s4.EXPERIMENT_FLAGS;return E?E[k]:void 0};
DeI=function(k){jrb.forEach(function(E){return E(k)})};
_.Ga=function(k){return k&&window.yterr?function(){try{return k.apply(this,arguments)}catch(E){_.O4(E)}}:k};
_.O4=function(k){var E=_.CV("yt.logging.errors.log");E?E(k,"ERROR",void 0,void 0,void 0,void 0,void 0):(E=_.Mg("ERRORS",[]),E.push([k,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.l$("ERRORS",E));DeI(k)};
_.kr=function(k,E,S,R,V){var N=_.CV("yt.logging.errors.log");N?N(k,"WARNING",E,S,R,void 0,V):(N=_.Mg("ERRORS",[]),N.push([k,"WARNING",E,S,R,void 0,V]),_.l$("ERRORS",N))};
fZI=function(k,E){E=k.split(E);for(var S={},R=0,V=E.length;R<V;R++){var N=E[R].split("=");if(N.length===1&&N[0]||N.length===2)try{var h=$eh(N[0]||""),J=$eh(N[1]||"");if(h in S){var m=S[h];Array.isArray(m)?_.lC(m,J):S[h]=[m,J]}else S[h]=J}catch(P){var a=P,T=N[0],w=String(fZI);a.args=[{key:T,value:N[1],query:k,method:vui===w?"unchanged":w}];bIh.hasOwnProperty(T)||_.kr(a)}}return S};
ZIe=function(k){var E=[];_.fO.forEach(k,function(S,R){var V=_.Eg(R);S=Array.isArray(S)?S:[S];_.Sn(S,function(N){N==""?E.push(V):E.push(V+"="+_.Eg(N))})});
return E.join("&")};
_.Ru=function(k){k.charAt(0)==="?"&&(k=k.substring(1));return fZI(k,"&")};
_.Vf=function(k){return k.indexOf("?")!==-1?(k=(k||"").split("#")[0],k=k.split("?",2),_.Ru(k.length>1?k[1]:k[0])):{}};
_.N3=function(k,E){return deC(k,E||{},!0)};
srb=function(k,E){return deC(k,E||{},!1)};
deC=function(k,E,S){var R=k.split("#",2);k=R[0];R=R.length>1?"#"+R[1]:"";var V=k.split("?",2);k=V[0];V=_.Ru(V[1]||"");for(var N in E)if(S||!_.fO.containsKey(V,N))V[N]=E[N];return _.Iu(k,V)+R};
J3=function(k){if(!E)var E=window.location.href;var S=_.nC(k)[1]||null,R=_.iJ(k);return S&&R?h3(k,E):R?_.iJ(E)===R&&(Number(_.nC(E)[4]||null)||null)===(Number(_.nC(k)[4]||null)||null):!0};
_.Mm1=function(k){k=lZh(k);return k===null?!1:k[0]==="com"&&k[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
lZh=function(k){k=_.iJ(k);return k!==null?k.split(".").reverse():null};
$eh=function(k){return k&&k.match(qtI)?k:c_(k)};
_.mz=function(k){return new zPh(k)};
_.en=function(){Qrm||(Qrm=new OIt);return Qrm};
CWh=function(){var k=GR1;return function(){var E=_.en();if(!E.resolve(_.mz(k))){var S={};E.addProvider((S.provide=k,S.useClass=k,S[au]=void 0,S))}return E.resolve(k)}};
EA1=function(k){var E=_.t3,S,R;_.c(function(V){S=_.en();return(R=S.resolve(_.mz(E)))?(k(R),V.return(Promise.resolve(R))):V.return(S.resolve(new kXe(E)).then(function(N){k(N);return N}))})};
_.Y=function(k){k=TV(k);return typeof k==="string"&&k==="false"?!1:!!k};
_.wO=function(k,E){k=TV(k);return k===void 0&&E!==void 0?E:Number(k||0)};
Sve=function(k){k=TV(k);return Array.isArray(k)?_.vH(k,function(E){return Number(E||0)}):[Number(k||0)]};
_.P_=function(k){k=TV(k);return k!==void 0?String(k):""};
_.B_=function(k){k=TV(k);return Array.isArray(k)?_.vH(k,function(E){return String(E||"")}):[String(k||"")]};
RMI=function(){return _.Mg("EXPERIMENTS_TOKEN","")};
TV=function(k){return _.Mg("EXPERIMENT_FLAGS",{})[k]};
Vdl=function(){for(var k=[],E=_.Mg("EXPERIMENTS_FORCED_FLAGS",{}),S=_.n(Object.keys(E)),R=S.next();!R.done;R=S.next())R=R.value,k.push({key:R,value:String(E[R])});S=_.Mg("EXPERIMENT_FLAGS",{});R=_.n(Object.keys(S));for(var V=R.next();!V.done;V=R.next())V=V.value,V.startsWith("force_")&&E[V]===void 0&&k.push({key:V,value:String(S[V])});return k};
Ivm=function(){if(!Nq1)return null;var k=Nq1();return"open"in k?k:null};
_.nAC=function(k){switch(_.Yr(k)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Yr=function(k){return k&&"status"in k?k.status:-1};
_.W_=function(k,E){typeof k==="function"&&(k=_.Ga(k));return window.setTimeout(k,E)};
_.yf=function(k,E){typeof k==="function"&&(k=_.Ga(k));return window.setInterval(k,E)};
_.ou=function(k){window.clearTimeout(k)};
hMA=function(k){k=_.Vf(k);for(var E=_.n(izI),S=E.next();!S.done;S=E.next())if(k[S.value]!==void 0)return!0;return!1};
mah=function(k,E,S,R,V,N,h,J,m){S=S===void 0?"GET":S;R=R===void 0?"":R;J=J===void 0?!1:J;var a=Ivm();if(!a)return null;var T=function(){(a&&"readyState"in a?a.readyState:0)===4&&E&&_.Ga(E)(a)};
"onloadend"in a?a.addEventListener("loadend",T,!1):a.onreadystatechange=T;_.Y("debug_forward_web_query_parameters")&&(k=JXI(k,window.location.search));a.open(S,k,!0);N&&(a.responseType=N);h&&(a.withCredentials=!0);S=S==="POST"&&(window.FormData===void 0||!(R instanceof FormData));if(V=cX1(k,V))for(var w in V)a.setRequestHeader(w,V[w]),"content-type"===w.toLowerCase()&&(S=!1);S&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m&&"onprogress"in a&&(a.onprogress=function(){m(a.responseText)});
if(J&&"setAttributionReporting"in XMLHttpRequest.prototype){k={eventSourceEligible:!0,triggerEligible:!1};try{a.setAttributionReporting(k)}catch(P){_.kr(P)}}a.send(R);return a};
cX1=function(k,E){E=E===void 0?{}:E;var S=J3(k),R=_.Mg("INNERTUBE_CLIENT_NAME"),V=_.Y("web_ajax_ignore_global_headers_if_set"),N;for(N in eM1){var h=_.Mg(eM1[N]),J=N==="X-Goog-AuthUser"||N==="X-Goog-PageId";N!=="X-Goog-Visitor-Id"||h||(h=_.Mg("VISITOR_DATA"));var m;if(!(m=!h)){if(!(m=S||(_.iJ(k)?!1:!0))){m=k;var a;if(a=_.Y("add_auth_headers_to_remarketing_google_dot_com_ping")&&N==="Authorization"&&(R==="TVHTML5"||R==="TVHTML5_UNPLUGGED"||R==="TVHTML5_SIMPLY"))a=lZh(m),a=a===null?!1:a[1]==="google"?
!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1;a&&(m=_.Xu(m)||"",m=m.split("/"),m="/"+(m.length>1?m[1]:""),a=m==="/pagead");m=a?!0:!1}m=!m}m||V&&E[N]!==void 0||R==="TVHTML5_UNPLUGGED"&&J||(E[N]=h)}"X-Goog-EOM-Visitor-Id"in E&&"X-Goog-Visitor-Id"in E&&delete E["X-Goog-Visitor-Id"];if(S||!_.iJ(k))E["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(S||!_.iJ(k)){try{var T=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(w){}T&&(E["X-YouTube-Time-Zone"]=
T)}document.location.hostname.endsWith("youtubeeducation.com")||!S&&_.iJ(k)||(E["X-YouTube-Ad-Signals"]=ZIe(ave()));return E};
_.tdt=function(k,E){var S=_.iJ(k);_.Y("debug_handle_relative_url_for_query_forward_killswitch")||!S&&J3(k)&&(S=document.location.hostname);var R=_.Xu(k);R=(S=S&&(S.endsWith("youtube.com")||S.endsWith("youtube-nocookie.com")))&&R&&R.startsWith("/api/");if(!S||R)return k;var V=_.Ru(E),N={};_.Sn(izI,function(h){V[h]&&(N[h]=V[h])});
return srb(k,N)};
Tqe=function(k,E){E.method="POST";E.postParams||(E.postParams={});return _.gO(k,E)};
wEi=function(k,E){var S=_.Mg("XSRF_FIELD_NAME"),R;E.headers&&(R=E.headers["Content-Type"]);return!E.excludeXsrf&&(!_.iJ(k)||E.withCredentials||_.iJ(k)===document.location.hostname)&&E.method==="POST"&&(!R||R==="application/x-www-form-urlencoded")&&!(E.postParams&&E.postParams[S])};
_.gO=function(k,E){var S=E.format||"JSON";k=PDA(k,E);var R=Bq1(k,E),V=!1,N=Yvl(k,function(m){if(!V){V=!0;J&&_.ou(J);var a=_.nAC(m),T=null,w=400<=m.status&&m.status<500,P=500<=m.status&&m.status<600;if(a||w||P)T=WGh(k,S,m,E.convertToSafeHtml);a&&(a=FGC(S,m,T));T=T||{};w=E.context||_.Vt;a?E.onSuccess&&E.onSuccess.call(w,m,T):E.onError&&E.onError.call(w,m,T);E.onFinish&&E.onFinish.call(w,m,T)}},E.method,R,E.headers,E.responseType,E.withCredentials,!1,E.onProgress);
R=E.timeout||0;if(E.onTimeout&&R>0){var h=E.onTimeout;var J=_.W_(function(){V||(V=!0,N.abort(),_.ou(J),h.call(E.context||_.Vt,N))},R)}return N};
PDA=function(k,E){E.includeDomain&&(k=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+k);var S=_.Mg("XSRF_FIELD_NAME");if(E=E.urlParams)E[S]&&delete E[S],k=_.N3(k,E);return k};
Bq1=function(k,E){var S=_.Mg("XSRF_FIELD_NAME"),R=_.Mg("XSRF_TOKEN"),V=E.postBody||"",N=E.postParams;wEi(k,E)&&(N||(N={}),N[S]=R);(_.Y("ajax_parse_query_data_only_when_filled")&&N&&Object.keys(N).length>0||N)&&typeof V==="string"&&(V=_.Ru(V),_.fO.extend(V,N),V=E.postBodyFormat&&E.postBodyFormat==="JSON"?JSON.stringify(V):_.Ug(V));N=V||N&&!_.fO.isEmpty(N);!yXi&&N&&E.method!=="POST"&&(yXi=!0,_.O4(Error("Jc")));return V};
WGh=function(k,E,S,R){var V=null;switch(E){case "JSON":try{var N=S.responseText}catch(h){throw R=Error("Kc"),R.params=k,_.kr(R),h;}k=S.getResponseHeader("Content-Type")||"";N&&k.indexOf("json")>=0&&(N.substring(0,5)===")]}'\n"&&(N=N.substring(5)),V=JSON.parse(N));break;case "XML":if(k=(k=S.responseXML)?oAl(k):null)V={},_.Sn(k.getElementsByTagName("*"),function(h){V[h.tagName]=XEI(h)})}R&&gAA(V);
return V};
gAA=function(k){if(_.qA(k))for(var E in k)E==="html_content"||nl(E,"_html")?k[E]=zB(k[E]):gAA(k[E])};
FGC=function(k,E,S){if(E&&E.status===204)return!0;switch(k){case "JSON":return!!S;case "XML":return Number(S&&S.return_code)===0;case "RAW":return!0;default:return!!S}};
oAl=function(k){return k?(k=("responseXML"in k?k.responseXML:k).getElementsByTagName("root"))&&k.length>0?k[0]:null:null};
XEI=function(k){var E="";_.Sn(k.childNodes,function(S){E+=S.nodeValue});
return E};
Uam=function(k){if(k.name==="JavaException")return!0;k=k.stack;return k.includes("chrome://")||k.includes("-extension://")||k.includes("webkit-masked-url://")};
Hzh=function(k){if(!k.stack)return!0;var E=!k.stack.includes("\n");return E&&k.stack.includes("ErrorType: ")||E&&k.stack.includes("Anonymous function (Unknown script")||k.stack.toLowerCase()==="not available"||k.fileName==="user-script"||k.fileName.startsWith("user-script:")?!0:!1};
_.H_=function(k){_.r7.call(this);this.JSC$10518_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!k};
pE1=function(k,E){var S=k.length,R=0,V=function(){return k.charCodeAt(R++)};
do{var N=KGl(V);if(N===Infinity)break;var h=N>>3;switch(N&7){case 0:N=KGl(V);if(h===E)return N;break;case 1:if(h===E)return;R+=8;break;case 2:N=KGl(V);if(h===E)return k.substr(R,N);R+=N;break;case 5:if(h===E)return;R+=4;break;default:return}}while(R<S)};
KGl=function(k){var E=k(),S=E&127;if(E<128)return S;E=k();S|=(E&127)<<7;if(E<128)return S;E=k();S|=(E&127)<<14;if(E<128)return S;E=k();return E<128?S|(E&127)<<21:Infinity};
rX1=function(k,E,S,R){if(k)if(Array.isArray(k)){var V=R;for(R=0;R<k.length&&!(k[R]&&(V+=AXC(R,k[R],E,S),V>500));R++);R=V}else if(typeof k==="object")for(V in k){if(k[V]){var N=V;var h=k[V],J=E,m=S;N=typeof h!=="string"||N!=="clickTrackingParams"&&N!=="trackingParams"?0:(h=pE1(atob(h.replace(/-/g,"+").replace(/_/g,"/")),2))?AXC(N+".ve",h,J,m):0;R+=N;R+=AXC(V,k[V],E,S);if(R>500)break}}else S[E]=KC(k),R+=S[E].length;else S[E]=KC(k),R+=S[E].length;return R};
AXC=function(k,E,S,R){S+="."+k;k=KC(E);R[S]=k;return S.length+k.length};
KC=function(k){try{return(typeof k==="string"?k:String(JSON.stringify(k))).substr(0,500)}catch(E){return"unable to serialize "+typeof k+" ("+E.message+")"}};
uyA=function(k){switch(k){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}};
_.A3=function(k,E,S,R,V){_.pC.set(k,E,{maxAge:S,path:"/",domain:R===void 0?"youtube.com":R,secure:V===void 0?!1:V})};
_.xah=function(k,E,S){_.pC.remove(k,E===void 0?"/":E,S===void 0?"youtube.com":S)};
_.rO=function(){if(_.Y("embeds_web_enable_cookie_detection_fix")){if(!_.Vt.navigator.cookieEnabled)return!1}else if(!_.pC.isEnabled())return!1;if(!_.pC.isEmpty())return!0;_.Y("embeds_web_enable_cookie_detection_fix")?_.pC.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.pC.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.pC.get("TESTCOOKIESENABLED")!=="1")return!1;_.pC.remove("TESTCOOKIESENABLED");return!0};
LGR=function(){var k=_.Vt.navigator;return k?k.connection:void 0};
j_h=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(k){}};
_.$a1=function(){var k=LGR();if(k){var E=Da1[k.type||"unknown"]||"CONN_UNKNOWN";k=Da1[k.effectiveType||"unknown"]||"CONN_UNKNOWN";E==="CONN_CELLULAR_UNKNOWN"&&k!=="CONN_UNKNOWN"&&(E=k);if(E!=="CONN_UNKNOWN")return E;if(k!=="CONN_UNKNOWN")return k}};
vAt=function(){var k=LGR();if(k!=null&&k.effectiveType)return fvh.hasOwnProperty(k.effectiveType)?fvh[k.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.xr=function(){try{return _.uJ(),!0}catch(k){return!1}};
_.uJ=function(k){if(_.Mg("DATASYNC_ID")!==void 0)return _.Mg("DATASYNC_ID");throw new _.LC("Datasync ID not set",k===void 0?"unknown":k);};
_.jn=function(k){this.mechanism=k};
Dn=function(k){this.mechanism=k};
$r=function(k){this.storage_=k;this.cachedIsStorageAvailable_=null};
bzl=function(){var k=null;try{k=_.Vt.localStorage||null}catch(E){}$r.call(this,k)};
ZzA=function(){var k=null;try{k=_.Vt.sessionStorage||null}catch(E){}$r.call(this,k)};
fC=function(k,E){this.mechanism_=k;this.JSC$10620_prefix_=E+"::"};
_.dal=function(k){var E=new bzl;return E.isAvailable()?k?new fC(E,k):E:null};
_.s_b=function(k){var E=new ZzA;return E.isAvailable()?k?new fC(E,k):E:null};
Mdt=function(){var k;return(k=lvj())==null?void 0:k.get("LAST_RESULT_ENTRY_KEY",!0)};
_.Zn=function(k){qv1||(_.v_?_.v_.logError(k):(_.bJ.push({type:"ERROR",payload:k}),_.bJ.length>10&&_.bJ.shift()))};
dO=function(k,E){qv1||(_.v_?_.v_.logEvent(k,E):(_.bJ.push({type:"EVENT",eventType:k,payload:E}),_.bJ.length>10&&_.bJ.shift()))};
sg=function(k){if(k.indexOf(":")>=0)throw Error("Rc");};
lJ=function(k){return k.substr(0,k.indexOf(":"))||k};
Ozh=function(){return(zMb||Q_R)&&M3("applewebkit")&&!M3("version")&&(!M3("safari")||M3("gsa/"))};
M3=function(k){var E=_.Be();return E?E.toLowerCase().indexOf(k)>=0:!1};
kJA=function(k,E,S,R){E=lJ(E);var V=k instanceof Error?k:Error("Sc`"+k);if(V instanceof q3)return V;k={objectStoreNames:S,dbName:E,dbVersion:R};if(V.name==="QuotaExceededError")return new q3("QUOTA_EXCEEDED",k);if(_.zV&&V.name==="UnknownError")return new q3("QUOTA_MAYBE_EXCEEDED",k);if(V instanceof GXh)return new q3("MISSING_INDEX",Object.assign({},k,{objectStore:V.objectStore,index:V.index}));if(V.name==="InvalidStateError"&&CD1.some(function(N){return V.message.includes(N)}))return new q3("EXECUTE_TRANSACTION_ON_CLOSED_DB",
k);
if(V.name==="AbortError")return new q3("UNKNOWN_ABORT",k,V.message);V.args=[Object.assign({},k,{name:"IdbError",originalName:V.name})];V.level="WARNING";return V};
Qf=function(k,E,S){var R=Mdt();return new q3("IDB_NOT_SUPPORTED",{context:{caller:k,publicName:E,version:S,hasSucceededOnce:R==null?void 0:R.hasSucceededOnce}})};
Enb=function(k){if(!k)throw Error();throw k;};
Spt=function(k){return k};
Rem=function(k,E,S){var R=function(){try{k.removeEventListener("success",V),k.removeEventListener("error",N)}catch(h){}},V=function(){E(k.result);
R()},N=function(){S(k.error);
R()};
k.addEventListener("success",V);k.addEventListener("error",N)};
ViI=function(k){return new Promise(function(E,S){Rem(k,E,S)})};
CC=function(k){return new Og(new GV(function(E,S){Rem(k,E,S)}))};
N8e=function(k,E){return new Og(new GV(function(S,R){var V=function(){var N=k?E(k):null;N?N.then(function(h){k=h;V()},R):S()};
V()}))};
IEi=function(k,E,S){return new Promise(function(R,V){var N=E!==void 0?self.indexedDB.open(k,E):self.indexedDB.open(k);var h=S.blocked,J=S.blocking,m=S.terminated,a=S.upgrade,T=S.closed,w,P=function(){w||(w=new kZ(N.result,{closed:T}));return w};
N.addEventListener("upgradeneeded",function(B){try{if(B.newVersion===null)throw Error("Xc");if(N.transaction===null)throw Error("Yc");B.dataLoss&&B.dataLoss!=="none"&&dO("IDB_DATA_CORRUPTED",{reason:B.dataLossMessage||"unknown reason",dbName:lJ(k)});var F=P(),K=new EQ(N.transaction);a&&a(F,function(r){return B.oldVersion<r&&B.newVersion>=r},K);
K.done.catch(function(r){V(r)})}catch(r){V(r)}});
N.addEventListener("success",function(){var B=N.result;J&&B.addEventListener("versionchange",function(){J(P())});
B.addEventListener("close",function(){dO("IDB_UNEXPECTEDLY_CLOSED",{dbName:lJ(k),dbVersion:B.version});m&&m()});
R(P())});
N.addEventListener("error",function(){V(N.error)});
h&&N.addEventListener("blocked",function(){h()})})};
nnR=function(k,E,S){S=S===void 0?{}:S;return IEi(k,E,S)};
_.RH=function(k,E){E=E===void 0?{}:E;var S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return _.F5(h,2),S=self.indexedDB.deleteDatabase(k),R=E,(V=R.blocked)&&S.addEventListener("blocked",function(){V()}),h.yield(ViI(S),4);
if(h.nextAddress!=2)return _.Sv(h,0);N=_.UY(h);throw kJA(N,k,"",-1);})};
he1=function(k,E){var S;return _.c(function(R){if(R.nextAddress==1)return R.yield(_.V6(irh,E),2);S=R.yieldResult;return R.return(_.NG(S,["databases"],{enableRetries:!0,mode:"readwrite"},function(V){var N=V.objectStore("databases");return N.get(k.actualName).then(function(h){if(h?k.actualName!==h.actualName||k.publicName!==h.publicName||k.userIdentifier!==h.userIdentifier:1)return N.put(k).then(function(){})})}))})};
_.IH=function(k,E){var S;return _.c(function(R){if(R.nextAddress==1)return k?R.yield(_.V6(irh,E),2):R.return();S=R.yieldResult;return R.return(S.delete("databases",k))})};
_.Jph=function(k,E){var S,R;return _.c(function(V){return V.nextAddress==1?(S=[],V.yield(_.V6(irh,E),2)):V.nextAddress!=3?(R=V.yieldResult,V.yield(_.NG(R,["databases"],{enableRetries:!0,mode:"readonly"},function(N){S.length=0;return nx(N.objectStore("databases"),{},function(h){k(h.getValue())&&S.push(h.getValue());return h.continue()})}),3)):V.return(S)})};
cpl=function(k,E){return _.Jph(function(S){return S.publicName===k&&S.userIdentifier!==void 0},E)};
aEj=function(){var k,E,S,R;return _.c(function(V){switch(V.nextAddress){case 1:k=Mdt();if((E=k)==null?0:E.hasSucceededOnce)return V.return(!0);var N;if(N=mII)N=/WebKit\/([0-9]+)/.exec(_.Be()),N=!!(N&&parseInt(N[1],10)>=600);N&&(N=/WebKit\/([0-9]+)/.exec(_.Be()),N=!(N&&parseInt(N[1],10)>=602));if(N||iX)return V.return(!1);try{if(S=self,!(S.indexedDB&&S.IDBIndex&&S.IDBKeyRange&&S.IDBObjectStore))return V.return(!1)}catch(h){return V.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return V.return(!1);
_.F5(V,2);R={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return V.yield(he1(R,ee1),4);case 4:return V.yield(_.IH("yt-idb-test-do-not-use",ee1),5);case 5:return V.return(!0);case 2:return _.UY(V),V.return(!1)}})};
T8m=function(){if(tiI!==void 0)return tiI;qv1=!0;return tiI=aEj().then(function(k){qv1=!1;var E;if((E=lvj())!=null&&E.hasLocalStorage()){var S;E={hasSucceededOnce:((S=Mdt())==null?void 0:S.hasSucceededOnce)||k};var R;(R=lvj())==null||R.set("LAST_RESULT_ENTRY_KEY",E,2592E3,!0)}return k})};
h6=function(){return _.CV("ytglobal.idbToken_")||void 0};
_.cV=function(){var k=h6();return k?Promise.resolve(k):T8m().then(function(E){(E=E?ee1:void 0)&&_.J6("ytglobal.idbToken_",E);return E})};
wo1=function(k){if(!_.xr())throw k=new q3("AUTH_INVALID",{dbName:k}),_.Zn(k),k;var E=_.uJ();return{actualName:k+":"+E,publicName:k,userIdentifier:E}};
PgC=function(k,E,S,R){var V,N,h,J,m,a;return _.c(function(T){switch(T.nextAddress){case 1:return N=(V=Error().stack)!=null?V:"",T.yield(_.cV(),2);case 2:h=T.yieldResult;if(!h)throw J=Qf("openDbImpl",k,E),_.Y("ytidb_async_stack_killswitch")||(J.stack=J.stack+"\n"+N.substring(N.indexOf("\n")+1)),_.Zn(J),J;sg(k);m=S?{actualName:k,publicName:k,userIdentifier:void 0}:wo1(k);_.F5(T,3);return T.yield(he1(m,h),5);case 5:return T.yield(nnR(m.actualName,E,R),6);case 6:return T.return(T.yieldResult);case 3:return a=
_.UY(T),_.F5(T,7),T.yield(_.IH(m.actualName,h),9);case 9:_.Sv(T,8);break;case 7:_.UY(T);case 8:throw a;}})};
B8A=function(k,E,S){S=S===void 0?{}:S;return PgC(k,E,!1,S)};
Ypj=function(k,E,S){S=S===void 0?{}:S;return PgC(k,E,!0,S)};
WCR=function(k,E){E=E===void 0?{}:E;var S,R;return _.c(function(V){if(V.nextAddress==1)return V.yield(_.cV(),2);if(V.nextAddress!=3){S=V.yieldResult;if(!S)return V.return();sg(k);R=wo1(k);return V.yield(_.RH(R.actualName,E),3)}return V.yield(_.IH(R.actualName,S),0)})};
FCA=function(k,E,S){k=k.map(function(R){return _.c(function(V){return V.nextAddress==1?V.yield(_.RH(R.actualName,E),2):V.yield(_.IH(R.actualName,S),0)})});
return Promise.all(k).then(function(){})};
ypI=function(k){var E=E===void 0?{}:E;var S,R;return _.c(function(V){if(V.nextAddress==1)return V.yield(_.cV(),2);if(V.nextAddress!=3){S=V.yieldResult;if(!S)return V.return();sg(k);return V.yield(cpl(k,S),3)}R=V.yieldResult;return V.yield(FCA(R,E,S),0)})};
on1=function(k,E){E=E===void 0?{}:E;var S;return _.c(function(R){if(R.nextAddress==1)return R.yield(_.cV(),2);if(R.nextAddress!=3){S=R.yieldResult;if(!S)return R.return();sg(k);return R.yield(_.RH(k,E),3)}return R.yield(_.IH(k,S),0)})};
mq=function(k,E){return XoI(k,E)};
UIe=function(k){return _.V6(gne(),k)};
Hrt=function(k,E,S,R){var V,N,h;return _.c(function(J){switch(J.nextAddress){case 1:return V={config:k,hashData:E,timestamp:R!==void 0?R:(0,_.ev)()},J.yield(UIe(S),2);case 2:return N=J.yieldResult,J.yield(N.clear("hotConfigStore"),3);case 3:return J.yield(N.put("hotConfigStore",V),4);case 4:return h=J.yieldResult,J.return(h)}})};
KCR=function(k,E,S,R,V){var N,h,J;return _.c(function(m){switch(m.nextAddress){case 1:return N={config:k,hashData:E,configData:S,timestamp:V!==void 0?V:(0,_.ev)()},m.yield(UIe(R),2);case 2:return h=m.yieldResult,m.yield(h.clear("coldConfigStore"),3);case 3:return m.yield(h.put("coldConfigStore",N),4);case 4:return J=m.yieldResult,m.return(J)}})};
poA=function(k){var E,S;return _.c(function(R){return R.nextAddress==1?R.yield(UIe(k),2):R.nextAddress!=3?(E=R.yieldResult,S=void 0,R.yield(_.NG(E,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(V){return _.aH(V.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(N){S=N.getValue()})}),3)):R.return(S)})};
Apt=function(k){var E,S;return _.c(function(R){return R.nextAddress==1?R.yield(UIe(k),2):R.nextAddress!=3?(E=R.yieldResult,S=void 0,R.yield(_.NG(E,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(V){return _.aH(V.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(N){S=N.getValue()})}),3)):R.return(S)})};
rpl=function(){return _.c(function(k){return k.yield(ypI("ytGcfConfig"),0)})};
ufi=function(){return"INNERTUBE_API_KEY"in _.s4&&"INNERTUBE_API_VERSION"in _.s4};
_.t6=function(){return{innertubeApiKey:_.Mg("INNERTUBE_API_KEY"),innertubeApiVersion:_.Mg("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Mg("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Mg("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Mg("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Mg("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Mg("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.qg("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.qg("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Mg("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.vni=function(k){var E={client:{hl:k.innertubeContextHostLanguage,gl:k.innertubeContextGeoLocation,clientName:k.innertubeContextClientName,clientVersion:k.innertubeContextClientVersion,configInfo:k.innertubeContextClientConfigInfo}};navigator.userAgent&&(E.client.userAgent=String(navigator.userAgent));var S=_.Vt.devicePixelRatio;S&&S!=1&&(E.client.screenDensityFloat=String(S));S=RMI();S!==""&&(E.client.experimentsToken=S);S=Vdl();S.length>0&&(E.request={internalExperimentFlags:S});xIe(k,void 0,E);
LCj(void 0,E);j7t(void 0,E);DIR(k,void 0,E);$Ii(void 0,E);_.Y("start_client_gcf")&&fEI(void 0,E);_.Mg("DELEGATED_SESSION_ID")&&!_.Y("pageid_as_header_web")&&(E.user={onBehalfOfUser:_.Mg("DELEGATED_SESSION_ID")});!_.Y("fill_delegate_context_in_gel_killswitch")&&(k=_.Mg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(E.user=Object.assign({},E.user,{serializedDelegationContext:k}));k=_.Mg("INNERTUBE_CONTEXT");var R;if(_.Y("enable_persistent_device_token")&&(k==null?0:(R=k.client)==null?0:R.rolloutToken)){var V;
E.client.rolloutToken=k==null?void 0:(V=k.client)==null?void 0:V.rolloutToken}R=Object;V=R.assign;k=E.client;S={};for(var N=_.n(Object.entries(_.Ru(_.Mg("DEVICE","")))),h=N.next();!h.done;h=N.next()){var J=_.n(h.value);h=J.next().value;J=J.next().value;h==="cbrand"?S.deviceMake=J:h==="cmodel"?S.deviceModel=J:h==="cbr"?S.browserName=J:h==="cbrver"?S.browserVersion=J:h==="cos"?S.osName=J:h==="cosver"?S.osVersion=J:h==="cplatform"&&(S.platform=J)}E.client=V.call(R,k,S);return E};
xIe=function(k,E,S){k=k.innertubeContextClientName;if(k==="WEB"||k==="MWEB"||k===1||k===2)if(E){S=_.Tp(E,bri,96)||new bri;var R=ZrI();R=Object.keys(dIC).indexOf(R);R=R===-1?null:R;R!==null&&_.wv(S,3,R);_.Xo(E,96,S)}else S&&(S.client.mainAppWebInfo=(R=S.client.mainAppWebInfo)!=null?R:{},S.client.mainAppWebInfo.webDisplayMode=ZrI())};
LCj=function(k,E){var S=_.CV("yt.embedded_player.embed_url");S&&(k?(E=_.Tp(k,s71,7)||new s71,_.uh(E,4,S),_.Xo(k,7,E)):E&&(E.thirdParty={embedUrl:S}))};
j7t=function(k,E){var S;if(_.Y("web_log_memory_total_kbytes")&&((S=_.Vt.navigator)==null?0:S.deviceMemory)){var R;S=(R=_.Vt.navigator)==null?void 0:R.deviceMemory;k?_.PV(k,95,eI(S*1E6)):E&&(E.client.memoryTotalKbytes=""+S*1E6)}};
DIR=function(k,E,S){if(k.appInstallData)if(E){var R;S=(R=_.Tp(E,BV,62))!=null?R:new BV;_.uh(S,6,k.appInstallData);_.Xo(E,62,S)}else S&&(S.client.configInfo=S.client.configInfo||{},S.client.configInfo.appInstallData=k.appInstallData)};
$Ii=function(k,E){var S=_.$a1();S&&(k?_.wv(k,61,lEI[S]):E&&(E.client.connectionType=S));_.Y("web_log_effective_connection_type")&&(S=vAt())&&(k?_.wv(k,94,MiA[S]):E&&(E.client.effectiveConnectionType=S))};
_.Q7b=function(k,E,S){S=S===void 0?{}:S;var R={};_.Mg("EOM_VISITOR_DATA")?R={"X-Goog-EOM-Visitor-Id":_.Mg("EOM_VISITOR_DATA")}:R={"X-Goog-Visitor-Id":S.visitorData||_.Mg("VISITOR_DATA","")};if(E&&E.includes("www.youtube-nocookie.com"))return R;E=S.authorization||_.Mg("AUTHORIZATION");E||(k?E="Bearer "+_.CV("gapi.auth.getToken")().access_token:(qp1.instance||(qp1.instance=new qp1),k=zeC(),_.Y("pageid_as_header_web")||delete k["X-Goog-PageId"],R=Object.assign({},R,k)));E&&(R.Authorization=E);return R};
fEI=function(k,E){var S=OrC();if(S){var R=S.coldConfigData,V=S.coldHashData;S=S.hotHashData;if(k){var N;E=(N=_.Tp(k,BV,62))!=null?N:new BV;R=_.uh(E,1,R);_.uh(R,3,V).setHotHashData(S);_.Xo(k,62,E)}else E&&(E.client.configInfo=E.client.configInfo||{},R&&(E.client.configInfo.coldConfigData=R),V&&(E.client.configInfo.coldHashData=V),S&&(E.client.configInfo.hotHashData=S))}};
YZ=function(k){for(var E=k.length;--E>=0;)k[E]=0};
GJA=function(k,E,S,R,V){this.static_tree=k;this.extra_bits=E;this.extra_base=S;this.elems=R;this.max_length=V;this.has_stree=k&&k.length};
Cgl=function(k,E){this.dyn_tree=k;this.max_code=0;this.stat_desc=E};
WV=function(k,E){k.pending_buf[k.pending++]=E&255;k.pending_buf[k.pending++]=E>>>8&255};
FT=function(k,E,S){k.bi_valid>16-S?(k.bi_buf|=E<<k.bi_valid&65535,WV(k,k.bi_buf),k.bi_buf=E>>16-k.bi_valid,k.bi_valid+=S-16):(k.bi_buf|=E<<k.bi_valid&65535,k.bi_valid+=S)};
y6=function(k,E,S){FT(k,S[E*2],S[E*2+1])};
klI=function(k,E){var S=0;do S|=k&1,k>>>=1,S<<=1;while(--E>0);return S>>>1};
Elh=function(k,E,S){var R=Array(16),V=0,N;for(N=1;N<=15;N++)R[N]=V=V+S[N-1]<<1;for(S=0;S<=E;S++)V=k[S*2+1],V!==0&&(k[S*2]=klI(R[V]++,V))};
SxA=function(k){var E;for(E=0;E<286;E++)k.dyn_ltree[E*2]=0;for(E=0;E<30;E++)k.dyn_dtree[E*2]=0;for(E=0;E<19;E++)k.bl_tree[E*2]=0;k.dyn_ltree[512]=1;k.opt_len=k.static_len=0;k.last_lit=k.matches=0};
RW1=function(k){k.bi_valid>8?WV(k,k.bi_buf):k.bi_valid>0&&(k.pending_buf[k.pending++]=k.bi_buf);k.bi_buf=0;k.bi_valid=0};
Vkj=function(k,E,S){RW1(k);WV(k,S);WV(k,~S);oH.arraySet(k.pending_buf,k.window,E,S,k.pending);k.pending+=S};
NVR=function(k,E,S,R){var V=E*2,N=S*2;return k[V]<k[N]||k[V]===k[N]&&R[E]<=R[S]};
IWR=function(k,E,S){for(var R=k.heap[S],V=S<<1;V<=k.heap_len;){V<k.heap_len&&NVR(E,k.heap[V+1],k.heap[V],k.depth)&&V++;if(NVR(E,R,k.heap[V],k.depth))break;k.heap[S]=k.heap[V];S=V;V<<=1}k.heap[S]=R};
cgm=function(k,E,S){var R=0;if(k.last_lit!==0){do{var V=k.pending_buf[k.d_buf+R*2]<<8|k.pending_buf[k.d_buf+R*2+1];var N=k.pending_buf[k.l_buf+R];R++;if(V===0)y6(k,N,E);else{var h=XT[N];y6(k,h+256+1,E);var J=nlR[h];J!==0&&(N-=ic1[h],FT(k,N,J));V--;h=V<256?gv[V]:gv[256+(V>>>7)];y6(k,h,S);J=hWI[h];J!==0&&(V-=Jgj[h],FT(k,V,J))}}while(R<k.last_lit)}y6(k,256,E)};
myi=function(k,E){var S=E.dyn_tree,R=E.stat_desc.static_tree,V=E.stat_desc.has_stree,N=E.stat_desc.elems,h,J=-1;k.heap_len=0;k.heap_max=573;for(h=0;h<N;h++)S[h*2]!==0?(k.heap[++k.heap_len]=J=h,k.depth[h]=0):S[h*2+1]=0;for(;k.heap_len<2;){var m=k.heap[++k.heap_len]=J<2?++J:0;S[m*2]=1;k.depth[m]=0;k.opt_len--;V&&(k.static_len-=R[m*2+1])}E.max_code=J;for(h=k.heap_len>>1;h>=1;h--)IWR(k,S,h);m=N;do h=k.heap[1],k.heap[1]=k.heap[k.heap_len--],IWR(k,S,1),R=k.heap[1],k.heap[--k.heap_max]=h,k.heap[--k.heap_max]=
R,S[m*2]=S[h*2]+S[R*2],k.depth[m]=(k.depth[h]>=k.depth[R]?k.depth[h]:k.depth[R])+1,S[h*2+1]=S[R*2+1]=m,k.heap[1]=m++,IWR(k,S,1);while(k.heap_len>=2);k.heap[--k.heap_max]=k.heap[1];h=E.dyn_tree;m=E.max_code;R=E.stat_desc.static_tree;V=E.stat_desc.has_stree;N=E.stat_desc.extra_bits;var a=E.stat_desc.extra_base,T=E.stat_desc.max_length,w,P=0;for(w=0;w<=15;w++)k.bl_count[w]=0;h[k.heap[k.heap_max]*2+1]=0;for(E=k.heap_max+1;E<573;E++){var B=k.heap[E];w=h[h[B*2+1]*2+1]+1;w>T&&(w=T,P++);h[B*2+1]=w;if(!(B>
m)){k.bl_count[w]++;var F=0;B>=a&&(F=N[B-a]);var K=h[B*2];k.opt_len+=K*(w+F);V&&(k.static_len+=K*(R[B*2+1]+F))}}if(P!==0){do{for(w=T-1;k.bl_count[w]===0;)w--;k.bl_count[w]--;k.bl_count[w+1]+=2;k.bl_count[T]--;P-=2}while(P>0);for(w=T;w!==0;w--)for(B=k.bl_count[w];B!==0;)R=k.heap[--E],R>m||(h[R*2+1]!==w&&(k.opt_len+=(w-h[R*2+1])*h[R*2],h[R*2+1]=w),B--)}Elh(S,J,k.bl_count)};
eWj=function(k,E,S){var R,V=-1,N=E[1],h=0,J=7,m=4;N===0&&(J=138,m=3);E[(S+1)*2+1]=65535;for(R=0;R<=S;R++){var a=N;N=E[(R+1)*2+1];++h<J&&a===N||(h<m?k.bl_tree[a*2]+=h:a!==0?(a!==V&&k.bl_tree[a*2]++,k.bl_tree[32]++):h<=10?k.bl_tree[34]++:k.bl_tree[36]++,h=0,V=a,N===0?(J=138,m=3):a===N?(J=6,m=3):(J=7,m=4))}};
aW1=function(k,E,S){var R,V=-1,N=E[1],h=0,J=7,m=4;N===0&&(J=138,m=3);for(R=0;R<=S;R++){var a=N;N=E[(R+1)*2+1];if(!(++h<J&&a===N)){if(h<m){do y6(k,a,k.bl_tree);while(--h!==0)}else a!==0?(a!==V&&(y6(k,a,k.bl_tree),h--),y6(k,16,k.bl_tree),FT(k,h-3,2)):h<=10?(y6(k,17,k.bl_tree),FT(k,h-3,3)):(y6(k,18,k.bl_tree),FT(k,h-11,7));h=0;V=a;N===0?(J=138,m=3):a===N?(J=6,m=3):(J=7,m=4)}}};
tkR=function(k){var E=4093624447,S;for(S=0;S<=31;S++,E>>>=1)if(E&1&&k.dyn_ltree[S*2]!==0)return 0;if(k.dyn_ltree[18]!==0||k.dyn_ltree[20]!==0||k.dyn_ltree[26]!==0)return 1;for(S=32;S<256;S++)if(k.dyn_ltree[S*2]!==0)return 1;return 0};
UQ=function(k,E,S){k.pending_buf[k.d_buf+k.last_lit*2]=E>>>8&255;k.pending_buf[k.d_buf+k.last_lit*2+1]=E&255;k.pending_buf[k.l_buf+k.last_lit]=S&255;k.last_lit++;E===0?k.dyn_ltree[S*2]++:(k.matches++,E--,k.dyn_ltree[(XT[S]+256+1)*2]++,k.dyn_dtree[(E<256?gv[E]:gv[256+(E>>>7)])*2]++);return k.last_lit===k.lit_bufsize-1};
Kx=function(k,E){k.msg=HV[E];return E};
px=function(k){for(var E=k.length;--E>=0;)k[E]=0};
A6=function(k){var E=k.state,S=E.pending;S>k.avail_out&&(S=k.avail_out);S!==0&&(oH.arraySet(k.output,E.pending_buf,E.pending_out,S,k.next_out),k.next_out+=S,E.pending_out+=S,k.total_out+=S,k.avail_out-=S,E.pending-=S,E.pending===0&&(E.pending_out=0))};
xZ=function(k,E){var S=k.block_start>=0?k.block_start:-1,R=k.strstart-k.block_start,V=0;if(k.level>0){k.strm.data_type===2&&(k.strm.data_type=tkR(k));myi(k,k.l_desc);myi(k,k.d_desc);eWj(k,k.dyn_ltree,k.l_desc.max_code);eWj(k,k.dyn_dtree,k.d_desc.max_code);myi(k,k.bl_desc);for(V=18;V>=3&&k.bl_tree[TVm[V]*2+1]===0;V--);k.opt_len+=3*(V+1)+5+5+4;var N=k.opt_len+3+7>>>3;var h=k.static_len+3+7>>>3;h<=N&&(N=h)}else N=h=R+5;if(R+4<=N&&S!==-1)FT(k,E?1:0,3),Vkj(k,S,R);else if(k.strategy===4||h===N)FT(k,2+(E?
1:0),3),cgm(k,rv,uX);else{FT(k,4+(E?1:0),3);S=k.l_desc.max_code+1;R=k.d_desc.max_code+1;V+=1;FT(k,S-257,5);FT(k,R-1,5);FT(k,V-4,4);for(N=0;N<V;N++)FT(k,k.bl_tree[TVm[N]*2+1],3);aW1(k,k.dyn_ltree,S-1);aW1(k,k.dyn_dtree,R-1);cgm(k,k.dyn_ltree,k.dyn_dtree)}SxA(k);E&&RW1(k);k.block_start=k.strstart;A6(k.strm)};
Lx=function(k,E){k.pending_buf[k.pending++]=E};
jv=function(k,E){k.pending_buf[k.pending++]=E>>>8&255;k.pending_buf[k.pending++]=E&255};
wTC=function(k,E){var S=k.max_chain_length,R=k.strstart,V=k.prev_length,N=k.nice_match,h=k.strstart>k.w_size-262?k.strstart-(k.w_size-262):0,J=k.window,m=k.w_mask,a=k.prev,T=k.strstart+258,w=J[R+V-1],P=J[R+V];k.prev_length>=k.good_match&&(S>>=2);N>k.lookahead&&(N=k.lookahead);do{var B=E;if(J[B+V]===P&&J[B+V-1]===w&&J[B]===J[R]&&J[++B]===J[R+1]){R+=2;for(B++;J[++R]===J[++B]&&J[++R]===J[++B]&&J[++R]===J[++B]&&J[++R]===J[++B]&&J[++R]===J[++B]&&J[++R]===J[++B]&&J[++R]===J[++B]&&J[++R]===J[++B]&&R<T;);
B=258-(T-R);R=T-258;if(B>V){k.match_start=E;V=B;if(B>=N)break;w=J[R+V-1];P=J[R+V]}}}while((E=a[E&m])>h&&--S!==0);return V<=k.lookahead?V:k.lookahead};
$Z=function(k){var E=k.w_size,S;do{var R=k.window_size-k.lookahead-k.strstart;if(k.strstart>=E+(E-262)){oH.arraySet(k.window,k.window,E,E,0);k.match_start-=E;k.strstart-=E;k.block_start-=E;var V=S=k.hash_size;do{var N=k.head[--V];k.head[V]=N>=E?N-E:0}while(--S);V=S=E;do N=k.prev[--V],k.prev[V]=N>=E?N-E:0;while(--S);R+=E}if(k.strm.avail_in===0)break;V=k.strm;S=k.window;N=k.strstart+k.lookahead;var h=V.avail_in;h>R&&(h=R);h===0?S=0:(V.avail_in-=h,oH.arraySet(S,V.input,V.next_in,h,N),V.state.wrap===
1?V.adler=Pvi(V.adler,S,h,N):V.state.wrap===2&&(V.adler=DJ(V.adler,S,h,N)),V.next_in+=h,V.total_in+=h,S=h);k.lookahead+=S;if(k.lookahead+k.insert>=3)for(R=k.strstart-k.insert,k.ins_h=k.window[R],k.ins_h=(k.ins_h<<k.hash_shift^k.window[R+1])&k.hash_mask;k.insert&&!(k.ins_h=(k.ins_h<<k.hash_shift^k.window[R+3-1])&k.hash_mask,k.prev[R&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=R,R++,k.insert--,k.lookahead+k.insert<3););}while(k.lookahead<262&&k.strm.avail_in!==0)};
BVh=function(k,E){for(var S;;){if(k.lookahead<262){$Z(k);if(k.lookahead<262&&E===0)return 1;if(k.lookahead===0)break}S=0;k.lookahead>=3&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+3-1])&k.hash_mask,S=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart);S!==0&&k.strstart-S<=k.w_size-262&&(k.match_length=wTC(k,S));if(k.match_length>=3)if(S=UQ(k,k.strstart-k.match_start,k.match_length-3),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=3){k.match_length--;
do k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+3-1])&k.hash_mask,k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart;while(--k.match_length!==0);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else S=UQ(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(S&&(xZ(k,!1),k.strm.avail_out===0))return 1}k.insert=k.strstart<2?k.strstart:2;return E===4?(xZ(k,
!0),k.strm.avail_out===0?3:4):k.last_lit&&(xZ(k,!1),k.strm.avail_out===0)?1:2};
fx=function(k,E){for(var S,R;;){if(k.lookahead<262){$Z(k);if(k.lookahead<262&&E===0)return 1;if(k.lookahead===0)break}S=0;k.lookahead>=3&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+3-1])&k.hash_mask,S=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart);k.prev_length=k.match_length;k.prev_match=k.match_start;k.match_length=2;S!==0&&k.prev_length<k.max_lazy_match&&k.strstart-S<=k.w_size-262&&(k.match_length=wTC(k,S),k.match_length<=5&&(k.strategy===1||k.match_length===3&&
k.strstart-k.match_start>4096)&&(k.match_length=2));if(k.prev_length>=3&&k.match_length<=k.prev_length){R=k.strstart+k.lookahead-3;S=UQ(k,k.strstart-1-k.prev_match,k.prev_length-3);k.lookahead-=k.prev_length-1;k.prev_length-=2;do++k.strstart<=R&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+3-1])&k.hash_mask,k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart);while(--k.prev_length!==0);k.match_available=0;k.match_length=2;k.strstart++;if(S&&(xZ(k,!1),k.strm.avail_out===0))return 1}else if(k.match_available){if((S=
UQ(k,0,k.window[k.strstart-1]))&&xZ(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return 1}else k.match_available=1,k.strstart++,k.lookahead--}k.match_available&&(UQ(k,0,k.window[k.strstart-1]),k.match_available=0);k.insert=k.strstart<2?k.strstart:2;return E===4?(xZ(k,!0),k.strm.avail_out===0?3:4):k.last_lit&&(xZ(k,!1),k.strm.avail_out===0)?1:2};
Yx1=function(k,E){for(var S,R,V,N=k.window;;){if(k.lookahead<=258){$Z(k);if(k.lookahead<=258&&E===0)return 1;if(k.lookahead===0)break}k.match_length=0;if(k.lookahead>=3&&k.strstart>0&&(R=k.strstart-1,S=N[R],S===N[++R]&&S===N[++R]&&S===N[++R])){for(V=k.strstart+258;S===N[++R]&&S===N[++R]&&S===N[++R]&&S===N[++R]&&S===N[++R]&&S===N[++R]&&S===N[++R]&&S===N[++R]&&R<V;);k.match_length=258-(V-R);k.match_length>k.lookahead&&(k.match_length=k.lookahead)}k.match_length>=3?(S=UQ(k,1,k.match_length-3),k.lookahead-=
k.match_length,k.strstart+=k.match_length,k.match_length=0):(S=UQ(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++);if(S&&(xZ(k,!1),k.strm.avail_out===0))return 1}k.insert=0;return E===4?(xZ(k,!0),k.strm.avail_out===0?3:4):k.last_lit&&(xZ(k,!1),k.strm.avail_out===0)?1:2};
W5R=function(k,E){for(var S;;){if(k.lookahead===0&&($Z(k),k.lookahead===0)){if(E===0)return 1;break}k.match_length=0;S=UQ(k,0,k.window[k.strstart]);k.lookahead--;k.strstart++;if(S&&(xZ(k,!1),k.strm.avail_out===0))return 1}k.insert=0;return E===4?(xZ(k,!0),k.strm.avail_out===0?3:4):k.last_lit&&(xZ(k,!1),k.strm.avail_out===0)?1:2};
vV=function(k,E,S,R,V){this.good_length=k;this.max_lazy=E;this.nice_length=S;this.max_chain=R;this.func=V};
F5h=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 oH.Buf16(1146);this.dyn_dtree=new oH.Buf16(122);this.bl_tree=new oH.Buf16(78);px(this.dyn_ltree);px(this.dyn_dtree);px(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new oH.Buf16(16);this.heap=new oH.Buf16(573);px(this.heap);this.heap_max=this.heap_len=0;this.depth=new oH.Buf16(573);px(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};
ygj=function(k,E){if(!k||!k.state||E>5||E<0)return k?Kx(k,-2):-2;var S=k.state;if(!k.output||!k.input&&k.avail_in!==0||S.status===666&&E!==4)return Kx(k,k.avail_out===0?-5:-2);S.strm=k;var R=S.last_flush;S.last_flush=E;if(S.status===42)if(S.wrap===2)k.adler=0,Lx(S,31),Lx(S,139),Lx(S,8),S.gzhead?(Lx(S,(S.gzhead.text?1:0)+(S.gzhead.hcrc?2:0)+(S.gzhead.extra?4:0)+(S.gzhead.name?8:0)+(S.gzhead.comment?16:0)),Lx(S,S.gzhead.time&255),Lx(S,S.gzhead.time>>8&255),Lx(S,S.gzhead.time>>16&255),Lx(S,S.gzhead.time>>
24&255),Lx(S,S.level===9?2:S.strategy>=2||S.level<2?4:0),Lx(S,S.gzhead.os&255),S.gzhead.extra&&S.gzhead.extra.length&&(Lx(S,S.gzhead.extra.length&255),Lx(S,S.gzhead.extra.length>>8&255)),S.gzhead.hcrc&&(k.adler=DJ(k.adler,S.pending_buf,S.pending,0)),S.gzindex=0,S.status=69):(Lx(S,0),Lx(S,0),Lx(S,0),Lx(S,0),Lx(S,0),Lx(S,S.level===9?2:S.strategy>=2||S.level<2?4:0),Lx(S,3),S.status=113);else{var V=8+(S.w_bits-8<<4)<<8;V|=(S.strategy>=2||S.level<2?0:S.level<6?1:S.level===6?2:3)<<6;S.strstart!==0&&(V|=
32);S.status=113;jv(S,V+(31-V%31));S.strstart!==0&&(jv(S,k.adler>>>16),jv(S,k.adler&65535));k.adler=1}if(S.status===69)if(S.gzhead.extra){for(V=S.pending;S.gzindex<(S.gzhead.extra.length&65535)&&(S.pending!==S.pending_buf_size||(S.gzhead.hcrc&&S.pending>V&&(k.adler=DJ(k.adler,S.pending_buf,S.pending-V,V)),A6(k),V=S.pending,S.pending!==S.pending_buf_size));)Lx(S,S.gzhead.extra[S.gzindex]&255),S.gzindex++;S.gzhead.hcrc&&S.pending>V&&(k.adler=DJ(k.adler,S.pending_buf,S.pending-V,V));S.gzindex===S.gzhead.extra.length&&
(S.gzindex=0,S.status=73)}else S.status=73;if(S.status===73)if(S.gzhead.name){V=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>V&&(k.adler=DJ(k.adler,S.pending_buf,S.pending-V,V)),A6(k),V=S.pending,S.pending===S.pending_buf_size)){var N=1;break}N=S.gzindex<S.gzhead.name.length?S.gzhead.name.charCodeAt(S.gzindex++)&255:0;Lx(S,N)}while(N!==0);S.gzhead.hcrc&&S.pending>V&&(k.adler=DJ(k.adler,S.pending_buf,S.pending-V,V));N===0&&(S.gzindex=0,S.status=91)}else S.status=91;if(S.status===
91)if(S.gzhead.comment){V=S.pending;do{if(S.pending===S.pending_buf_size&&(S.gzhead.hcrc&&S.pending>V&&(k.adler=DJ(k.adler,S.pending_buf,S.pending-V,V)),A6(k),V=S.pending,S.pending===S.pending_buf_size)){N=1;break}N=S.gzindex<S.gzhead.comment.length?S.gzhead.comment.charCodeAt(S.gzindex++)&255:0;Lx(S,N)}while(N!==0);S.gzhead.hcrc&&S.pending>V&&(k.adler=DJ(k.adler,S.pending_buf,S.pending-V,V));N===0&&(S.status=103)}else S.status=103;S.status===103&&(S.gzhead.hcrc?(S.pending+2>S.pending_buf_size&&A6(k),
S.pending+2<=S.pending_buf_size&&(Lx(S,k.adler&255),Lx(S,k.adler>>8&255),k.adler=0,S.status=113)):S.status=113);if(S.pending!==0){if(A6(k),k.avail_out===0)return S.last_flush=-1,0}else if(k.avail_in===0&&(E<<1)-(E>4?9:0)<=(R<<1)-(R>4?9:0)&&E!==4)return Kx(k,-5);if(S.status===666&&k.avail_in!==0)return Kx(k,-5);if(k.avail_in!==0||S.lookahead!==0||E!==0&&S.status!==666){R=S.strategy===2?W5R(S,E):S.strategy===3?Yx1(S,E):bX[S.level].func(S,E);if(R===3||R===4)S.status=666;if(R===1||R===3)return k.avail_out===
0&&(S.last_flush=-1),0;if(R===2&&(E===1?(FT(S,2,3),y6(S,256,rv),S.bi_valid===16?(WV(S,S.bi_buf),S.bi_buf=0,S.bi_valid=0):S.bi_valid>=8&&(S.pending_buf[S.pending++]=S.bi_buf&255,S.bi_buf>>=8,S.bi_valid-=8)):E!==5&&(FT(S,0,3),Vkj(S,0,0),E===3&&(px(S.head),S.lookahead===0&&(S.strstart=0,S.block_start=0,S.insert=0))),A6(k),k.avail_out===0))return S.last_flush=-1,0}if(E!==4)return 0;if(S.wrap<=0)return 1;S.wrap===2?(Lx(S,k.adler&255),Lx(S,k.adler>>8&255),Lx(S,k.adler>>16&255),Lx(S,k.adler>>24&255),Lx(S,
k.total_in&255),Lx(S,k.total_in>>8&255),Lx(S,k.total_in>>16&255),Lx(S,k.total_in>>24&255)):(jv(S,k.adler>>>16),jv(S,k.adler&65535));A6(k);S.wrap>0&&(S.wrap=-S.wrap);return S.pending!==0?0:1};
olj=function(k){if(!(this instanceof olj))return new olj(k);k=this.options=oH.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},k||{});k.raw&&k.windowBits>0?k.windowBits=-k.windowBits:k.gzip&&k.windowBits>0&&k.windowBits<16&&(k.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new XTb;this.strm.avail_out=0;var E=this.strm;var S=k.level,R=k.method,V=k.windowBits,N=k.memLevel,h=k.strategy;if(E){var J=1;S===-1&&(S=6);V<0?(J=0,V=-V):V>15&&
(J=2,V-=16);if(N<1||N>9||R!==8||V<8||V>15||S<0||S>9||h<0||h>4)E=Kx(E,-2);else{V===8&&(V=9);var m=new F5h;E.state=m;m.strm=E;m.wrap=J;m.gzhead=null;m.w_bits=V;m.w_size=1<<m.w_bits;m.w_mask=m.w_size-1;m.hash_bits=N+7;m.hash_size=1<<m.hash_bits;m.hash_mask=m.hash_size-1;m.hash_shift=~~((m.hash_bits+3-1)/3);m.window=new oH.Buf8(m.w_size*2);m.head=new oH.Buf16(m.hash_size);m.prev=new oH.Buf16(m.w_size);m.lit_bufsize=1<<N+6;m.pending_buf_size=m.lit_bufsize*4;m.pending_buf=new oH.Buf8(m.pending_buf_size);
m.d_buf=m.lit_bufsize;m.l_buf=3*m.lit_bufsize;m.level=S;m.strategy=h;m.method=R;if(E&&E.state){E.total_in=E.total_out=0;E.data_type=2;S=E.state;S.pending=0;S.pending_out=0;S.wrap<0&&(S.wrap=-S.wrap);S.status=S.wrap?42:113;E.adler=S.wrap===2?0:1;S.last_flush=0;if(!glm){R=Array(16);for(N=h=0;N<28;N++)for(ic1[N]=h,V=0;V<1<<nlR[N];V++)XT[h++]=N;XT[h-1]=N;for(N=h=0;N<16;N++)for(Jgj[N]=h,V=0;V<1<<hWI[N];V++)gv[h++]=N;for(h>>=7;N<30;N++)for(Jgj[N]=h<<7,V=0;V<1<<hWI[N]-7;V++)gv[256+h++]=N;for(V=0;V<=15;V++)R[V]=
0;for(V=0;V<=143;)rv[V*2+1]=8,V++,R[8]++;for(;V<=255;)rv[V*2+1]=9,V++,R[9]++;for(;V<=279;)rv[V*2+1]=7,V++,R[7]++;for(;V<=287;)rv[V*2+1]=8,V++,R[8]++;Elh(rv,287,R);for(V=0;V<30;V++)uX[V*2+1]=5,uX[V*2]=klI(V,5);UyI=new GJA(rv,nlR,257,286,15);Hcl=new GJA(uX,hWI,0,30,15);K5h=new GJA([],pTm,0,19,7);glm=!0}S.l_desc=new Cgl(S.dyn_ltree,UyI);S.d_desc=new Cgl(S.dyn_dtree,Hcl);S.bl_desc=new Cgl(S.bl_tree,K5h);S.bi_buf=0;S.bi_valid=0;SxA(S);S=0}else S=Kx(E,-2);S===0&&(E=E.state,E.window_size=2*E.w_size,px(E.head),
E.max_lazy_match=bX[E.level].max_lazy,E.good_match=bX[E.level].good_length,E.nice_match=bX[E.level].nice_length,E.max_chain_length=bX[E.level].max_chain,E.strstart=0,E.block_start=0,E.lookahead=0,E.insert=0,E.match_length=E.prev_length=2,E.match_available=0,E.ins_h=0);E=S}}else E=-2;if(E!==0)throw Error(HV[E]);k.header&&(E=this.strm)&&E.state&&E.state.wrap===2&&(E.state.gzhead=k.header);if(k.dictionary){var a;typeof k.dictionary==="string"?a=Ag1(k.dictionary):rgh.call(k.dictionary)==="[object ArrayBuffer]"?
a=new Uint8Array(k.dictionary):a=k.dictionary;k=this.strm;N=a;h=N.length;if(k&&k.state)if(a=k.state,E=a.wrap,E===2||E===1&&a.status!==42||a.lookahead)E=-2;else{E===1&&(k.adler=Pvi(k.adler,N,h,0));a.wrap=0;h>=a.w_size&&(E===0&&(px(a.head),a.strstart=0,a.block_start=0,a.insert=0),S=new oH.Buf8(a.w_size),oH.arraySet(S,N,h-a.w_size,a.w_size,0),N=S,h=a.w_size);S=k.avail_in;R=k.next_in;V=k.input;k.avail_in=h;k.next_in=0;k.input=N;for($Z(a);a.lookahead>=3;){N=a.strstart;h=a.lookahead-2;do a.ins_h=(a.ins_h<<
a.hash_shift^a.window[N+3-1])&a.hash_mask,a.prev[N&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=N,N++;while(--h);a.strstart=N;a.lookahead=2;$Z(a)}a.strstart+=a.lookahead;a.block_start=a.strstart;a.insert=a.lookahead;a.lookahead=0;a.match_length=a.prev_length=2;a.match_available=0;k.next_in=R;k.input=V;k.avail_in=S;a.wrap=E;E=0}else E=-2;if(E!==0)throw Error(HV[E]);this._dict_set=!0}};
uDC=function(k,E){E=E||{};E.gzip=!0;E=new olj(E);E.push(k,!0);if(E.err)throw E.msg||HV[E.err];return E.result};
L5I=function(k,E){var S=xy1();S&&S.publish.call(S,k.toString(),k,E)};
vl1=function(k,E,S){var R=xy1();if(!R)return 0;var V=R.subscribe(k.toString(),function(N,h){var J=_.CV("ytPubsub2Pubsub2SkipSubKey");J&&J==V||(J=function(){if(jRe[V])try{if(h&&k instanceof Dyh&&k!=N)try{var m=k.dataClass,a=h;if(!a.args||!a.version)throw Error("$c");try{if(!m.version_){var T=new m;m.version_=T.version}var w=m.version_}catch(P){}if(!w||a.version!=w)throw Error("ad");try{h=Reflect.construct(m,_.d1(a.args))}catch(P){throw P.message="yt.pubsub2.Data.deserialize(): "+P.message,P;}}catch(P){throw P.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+k.toString()+": "+P.message,P;}E.call(S||window,h)}catch(P){_.O4(P)}},$yI[k.toString()]?_.CV("yt.scheduler.instance")?_.ZJ.addLowPriorityJob(J):_.W_(J,0):J())});
jRe[V]=!0;fWi[k.toString()]||(fWi[k.toString()]=[]);fWi[k.toString()].push(V);return V};
sRh=function(){var k=bcI,E=vl1(Zc1,function(S){k.apply(void 0,arguments);dyA(E)});
return E};
dyA=function(k){var E=xy1();E&&(typeof k==="number"&&(k=[k]),_.Sn(k,function(S){E.unsubscribeByKey(S);delete jRe[S]}))};
xy1=function(){return _.CV("ytPubsub2Pubsub2Instance")};
lWl=function(k,E,S){S=S===void 0?{sampleRate:.1}:S;Math.random()<Math.min(.02,S.sampleRate/100)&&L5I("meta_logging_csi_event",{timerName:k,timelineData:E})};
_.Mki=function(k){return k?(k=k.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Rb(k):null:null};
_.dv=function(k){return k?(k=k.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.pg(k):null:null};
zWR=function(){qxm||(qxm=_.dv(_.Mg("WORKER_SERIALIZATION_URL")));return qxm||void 0};
_.OcI=function(){var k=zWR();QRi||k===void 0||(QRi=YY1(k));return QRi};
_.Gll=function(){return typeof Worker==="function"&&zWR()?!0:!1};
_.S_e=function(){if(_.Gll()&&!CvC){var k=function(S){S=S.data;if(S.op==="gzippedGelBatch"){var R=kNt.get(S.key);R&&(ETt(S.gzippedBatch,R.latencyPayload,R.url,R.options,R.sendFn),kNt.delete(S.key))}},E=_.OcI();
E&&(E.addEventListener("message",k),E.onerror=function(){kNt.clear()},CvC=!0)}};
hUA=function(k,E,S,R,V){V=V===void 0?!1:V;var N={startTime:(0,_.ev)(),ticks:{},infos:{}};if(sQ)try{var h=RUh(E);if(h!=null&&(h>VNe||h<NJh))R(k,S);else{if(_.Y("gzip_gel_with_worker")&&(_.Y("initial_gzip_use_main_thread")&&!Ikb||!_.Y("initial_gzip_use_main_thread"))){CvC||_.S_e();var J=_.OcI();if(J&&!V){kNt.set(nTj,{latencyPayload:N,url:k,options:S,sendFn:R});J.postMessage({op:"gelBatchToGzip",serializedBatch:E,key:nTj});nTj++;return}}var m=uDC(ivR(E));ETt(m,N,k,S,R)}}catch(a){_.kr(a),R(k,S)}else R(k,
S)};
ETt=function(k,E,S,R,V){Ikb=!1;var N=(0,_.ev)();E.ticks.gelc=N;lX++;_.Y("disable_compression_due_to_performance_degredation")&&N-E.startTime>=JOj&&(cOj++,_.Y("abandon_compression_after_N_slow_zips")?lX===_.wO("compression_disable_point")&&cOj>mOl&&(sQ=!1):sQ=!1);eUh(E);R.headers||(R.headers={});R.headers["Content-Encoding"]="gzip";R.postBody=k;R.postParams=void 0;V(S,R)};
ak1=function(k){var E=E===void 0?!1:E;var S=S===void 0?!1:S;var R=(0,_.ev)(),V={startTime:R,ticks:{},infos:{}},N=E?_.CV("yt.logging.gzipForFetch",!1):!0;if(sQ&&N){if(!k.body)return k;try{var h=S?k.body:typeof k.body==="string"?k.body:JSON.stringify(k.body);N=h;if(!S&&typeof h==="string"){var J=RUh(h);if(J!=null&&(J>VNe||J<NJh))return k;S=E?{level:1}:void 0;N=uDC(ivR(h),S);var m=(0,_.ev)();V.ticks.gelc=m;if(E){lX++;if((_.Y("disable_compression_due_to_performance_degredation")||_.Y("disable_compression_due_to_performance_degradation_lr"))&&
m-R>=JOj)if(cOj++,_.Y("abandon_compression_after_N_slow_zips")||_.Y("abandon_compression_after_N_slow_zips_lr")){E=cOj/lX;var a=mOl/_.wO("compression_disable_point");lX>0&&lX%_.wO("compression_disable_point")===0&&E>=a&&(sQ=!1)}else sQ=!1;eUh(V)}}k.headers=Object.assign({},{"Content-Encoding":"gzip"},k.headers||{});k.body=N;return k}catch(T){return _.kr(T),k}}else return k};
RUh=function(k){try{return(new Blob(k.split(""))).size}catch(E){return _.kr(E),null}};
eUh=function(k){_.Y("gel_compression_csi_killswitch")||!_.Y("log_gel_compression_latency")&&!_.Y("log_gel_compression_latency_lr")||lWl("gel_compression",k,{sampleRate:.1})};
tNt=function(){this.blockSize=-1};
MG=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var k=1;k<this.blockSize;++k)this.pad_[k]=0;this.total_=this.inbuf_=0;this.reset()};
wuC=function(k){k=Object.assign({},k);delete k.Authorization;var E=_.TJI();if(E){var S=new MG;S.update(_.Mg("INNERTUBE_API_KEY"));S.update(E);k.hash=_.xW(S.digest(),3)}return k};
zp=function(){PlI||(PlI=new _.qG("yt.innertube"));return PlI};
BJl=function(k,E,S,R){if(R)return null;R=zp().get("nextId",!0)||1;var V=zp().get("requests",!0)||{};V[R]={method:k,request:E,authState:wuC(S),requestTime:Math.round((0,_.ev)())};zp().set("nextId",R+1,86400,!0);zp().set("requests",V,86400,!0);return R};
Y_1=function(k){var E=zp().get("requests",!0)||{};delete E[k];zp().set("requests",E,86400,!0)};
Fit=function(k){var E=zp().get("requests",!0);if(E){for(var S in E){var R=E[S];if(!(Math.round((0,_.ev)())-R.requestTime<6E4)){var V=R.authState,N=wuC(_.Q7b(!1));_.fO.equals(V,N)&&(V=R.request,"requestTimeMs"in V&&(V.requestTimeMs=Math.round((0,_.ev)())),Wie(k,R.method,V,{}));delete E[S]}}zp().set("requests",E,86400,!0)}};
yOe=function(k){var E;return(k=k==null?void 0:(E=k.error)==null?void 0:E.code)&&k>=400&&k<=599?!1:!0};
oTt=function(k){var E;k=k==null?void 0:(E=k.error)==null?void 0:E.code;return!(k!==400&&k!==415)};
gT1=function(){if(Xut)return Xut();var k={};Xut=mq("LogsDatabaseV2",{objectStores:(k.LogsRequestsStore={addedAtVersion:2},k),shared:!1,upgrade:function(E,S,R){S(2)&&Q6(E,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});S(3);S(5)&&(R=R.objectStore("LogsRequestsStore"),R.JSC$10679_wrapped.indexNames.contains("newRequest")&&R.JSC$10679_wrapped.deleteIndex("newRequest"),OQ(R,"newRequestV2",["status","interface","timestamp"]));S(7)&&E.JSC$10664_wrapped.objectStoreNames.contains("sapisid")&&E.JSC$10664_wrapped.deleteObjectStore("sapisid");
S(9)&&E.JSC$10664_wrapped.objectStoreNames.contains("SWHealthLog")&&E.JSC$10664_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Xut()};
Gp=function(k){return _.V6(gT1(),k)};
HvR=function(k,E){var S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return S={startTime:(0,_.ev)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},h.yield(Gp(E),2);if(h.nextAddress!=3)return R=h.yieldResult,V=Object.assign({},k,{options:JSON.parse(JSON.stringify(k.options)),interface:_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),h.yield(R.put("LogsRequestsStore",V),3);N=h.yieldResult;S.ticks.tc=(0,_.ev)();UOh(S);return h.return(N)})};
Kit=function(k,E){var S,R,V,N,h,J,m,a,T;return _.c(function(w){if(w.nextAddress==1)return S={startTime:(0,_.ev)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},w.yield(Gp(E),2);if(w.nextAddress!=3)return R=w.yieldResult,V=_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME",0),N=[k,V,0],h=[k,V,(0,_.ev)()],J=IDBKeyRange.bound(N,h),m="prev",_.Y("use_fifo_for_networkless")&&(m="next"),a=void 0,T=k==="NEW"?"readwrite":"readonly",_.Y("use_readonly_for_get_most_recent_by_status_killswitch")&&(T="readwrite"),
w.yield(_.NG(R,["LogsRequestsStore"],{mode:T,enableRetries:!0},function(P){return _.aH(P.objectStore("LogsRequestsStore").index("newRequestV2"),{query:J,direction:m},function(B){B.getValue()&&(a=B.getValue(),k==="NEW"&&(a.status="QUEUED",B.update(a)))})}),3);
S.ticks.tc=(0,_.ev)();UOh(S);return w.return(a)})};
put=function(k,E){var S;return _.c(function(R){if(R.nextAddress==1)return R.yield(Gp(E),2);S=R.yieldResult;return R.return(_.NG(S,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(V){var N=V.objectStore("LogsRequestsStore");return N.get(k).then(function(h){if(h)return h.status="QUEUED",N.put(h).then(function(){return h})})}))})};
AOi=function(k,E,S,R){S=S===void 0?!0:S;var V;return _.c(function(N){if(N.nextAddress==1)return N.yield(Gp(E),2);V=N.yieldResult;return N.return(_.NG(V,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(h){var J=h.objectStore("LogsRequestsStore");return J.get(k).then(function(m){return m?(m.status="NEW",S&&(m.sendCount+=1),R!==void 0&&(m.options.compress=R),J.put(m).then(function(){return m})):Og.resolve(void 0)})}))})};
rOm=function(k,E){var S;return _.c(function(R){if(R.nextAddress==1)return R.yield(Gp(E),2);S=R.yieldResult;return R.return(S.delete("LogsRequestsStore",k))})};
u6I=function(k){var E,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(Gp(k),2);E=R.yieldResult;S=(0,_.ev)()-2592E6;return R.yield(_.NG(E,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(V){return nx(V.objectStore("LogsRequestsStore"),{},function(N){if(N.getValue().timestamp<=S)return N.delete().then(function(){return N.continue()})})}),0)})};
xOh=function(){_.c(function(k){return k.yield(ypI("LogsDatabaseV2"),0)})};
UOh=function(k){_.Y("nwl_csi_killswitch")||lWl("networkless_performance",k,{sampleRate:1})};
_.jch=function(k){return _.V6(Lih(),k)};
DOA=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(_.jch(k),2);E=R.yieldResult;S=(0,_.ev)()-2592E6;return R.yield(_.NG(E,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(V){return nx(V.objectStore("SWHealthLog"),{},function(N){if(N.getValue().timestamp<=S)return N.delete().then(function(){return N.continue()})})}),0)})};
$Oe=function(k){var E;return _.c(function(S){if(S.nextAddress==1)return S.yield(_.jch(k),2);E=S.yieldResult;return S.yield(E.clear("SWHealthLog"),0)})};
_.Cx=function(k,E,S,R,V,N,h){V=V===void 0?"":V;N=N===void 0?!1:N;h=h===void 0?!1:h;if(k)if(S&&!M3("cobalt"))_.kr(new _.LC("Legacy referrer-scrubbed ping detected")),k&&fkj(k,void 0,{scrubReferrer:!0});else if(V)mah(k,E,"POST",V,R);else if(_.Mg("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||R||h)mah(k,E,"GET","",R,void 0,N,h);else{b:{try{c:{var J=new vTe({url:k});if(J.urlParamValues_.dsh==="1")var m=null;else{var a=J.urlParamValues_.ae;if(a==="1"){var T=J.urlParamValues_.adurl;if(T)try{m={version:3,directUrl:decodeURIComponent(T),
asyncUrl:bVA(J.JSC$9471_url_,"act=1","ri=1",bvt(J))};break c}catch(F){}}m=a==="2"?{version:4,directUrl:bVA(J.JSC$9471_url_,"dct=1","suid="+J.suid_,""),asyncUrl:bVA(J.JSC$9471_url_,"act=1","ri=1","suid="+J.suid_)}:null}}if(m){var w=_.Xu(k);var P=!(!w||!w.endsWith("/aclk")||_.Qo(k,"ri")!=="1");break b}}catch(F){}P=!1}if(P){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(k,"")){var B=!0;break b}}catch(F){}B=!1}B?(E&&E(),S=!0):S=!1}else S=!1;S||fkj(k,E)}};
fkj=function(k,E,S){S=S===void 0?{}:S;var R=new Image,V=""+Zvm++;dOt[V]=R;R.onload=R.onerror=function(){E&&dOt[V]&&E();delete dOt[V]};
S.scrubReferrer&&(R.referrerPolicy="no-referrer");R.src=k};
kf=function(k,E){sct(k,E==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
lkb=function(k){var E;return((E=document.featurePolicy)==null?0:E.allowedFeatures().includes("attribution-reporting"))?k+"&nis=6":k+"&nis=5"};
MNA=function(k){if(!k)return!1;try{var E;if(((E=_.Ru(k))==null?void 0:E.asm)==="4")return!0}catch(S){_.O4(S)}return!1};
sct=function(k,E){E?(k=lkb(k),_.Cx(k,void 0,void 0,void 0,"",!0,!0)):_.Cx(k)};
zUm=function(){q_b||(q_b=new _.qG("yt.offline"));return q_b};
QcI=function(k){if(_.Y("offline_error_handling")){var E=zUm().get("errors",!0)||{};E[k.message]={name:k.name,stack:k.stack};k.level&&(E[k.message].level=k.level);zUm().set("errors",E,2592E3,!0)}};
GNm=function(k,E,S,R){R=R===void 0?!1:R;E=_.Y("web_fp_via_jspb")?Object.assign({},E):E;_.Y("use_cfr_monitor")&&Ovt(k,E);if(_.Y("use_request_time_ms_header"))E.headers&&J3(k)&&(E.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.ev)())));else{var V;if((V=E.postParams)==null?0:V.requestTimeMs)E.postParams.requestTimeMs=Math.round((0,_.ev)())}S&&Object.keys(E).length===0?_.Cx(k):E.compress?E.postBody?(typeof E.postBody!=="string"&&(E.postBody=JSON.stringify(E.postBody)),hUA(k,E.postBody,
E,_.gO,R)):hUA(k,JSON.stringify(E.postParams),E,Tqe,R):_.gO(k,E)};
ClR=function(k,E){_.Y("use_event_time_ms_header")&&J3(k)&&(E.headers||(E.headers={}),E.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.ev)())));return E};
_.EXm=function(){kTI||(kTI=new _.Ec({logOfflineErrors:!0,enablePolling:!0}));return kTI};
Ovt=function(k,E){var S=E.onError?E.onError:function(){};
E.onError=function(V,N){Sl().requestComplete(k,!1);S(V,N)};
var R=E.onSuccess?E.onSuccess:function(){};
E.onSuccess=function(V,N){Sl().requestComplete(k,!0);R(V,N)}};
_.Skl=function(){return _.iJ(document.location.toString())!=="www.youtube-nocookie.com"};
_.NXm=function(){return _.CV("ytNetworklessLoggingInitializationOptions")?_.RZm.isNwlInitialized:_.VFI};
I0h=function(k,E){if(_.Y("polymer_on_demand_shady_dom")){var S;var R=(S=k.__shady_native_firstElementChild)!=null?S:k.firstElementChild}else R=k.firstElementChild;for(;R;){if(k=E(R)?R:I0h(R,E))return k;R=R.nextElementSibling}return null};
ih1=function(){var k=document;if("visibilityState"in k)return k.visibilityState;var E=nX1+"VisibilityState";if(E in k)return k[E]};
_.hZ1=function(k,E){var S;RW(k,function(R){S=E[R];return!!S});
return S};
_.Nd=function(k){var E=JVj(k);E?E.focus(void 0):_.VF(k)};
JVj=function(k){return(k=I0h(k,function(E){return _.IW(E)?cV1(E)&&!!E.offsetParent:!1}))?k:null};
_.VF=function(k,E){k.hasAttribute("tabindex")||k.setAttribute("tabindex","-1");k.focus(E)};
miR=function(k,E,S,R){R=R===void 0?{}:R;k.addEventListener&&(E!="mouseenter"||"onmouseenter"in document?E!="mouseleave"||"onmouseenter"in document?E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"):E="mouseout":E="mouseover");return _.fO.findKey(n2,function(V){var N=typeof V[4]==="boolean"&&V[4]==!!R,h=_.qA(V[4])&&_.qA(R)&&_.fO.equals(V[4],R);return!!V.length&&V[0]==k&&V[1]==E&&V[2]==S&&(N||h)})};
_.hD=function(k,E,S,R){R=R===void 0?{}:R;if(!k||!k.addEventListener&&!k.attachEvent)return"";var V=miR(k,E,S,R);if(V)return V;V=++eZl.count+"";var N=!(E!="mouseenter"&&E!="mouseleave"||!k.addEventListener||"onmouseenter"in document);var h=N?function(J){J=new iM(J);if(!_.lh(J.relatedTarget,function(m){return m==k},!0))return J.currentTarget=k,J.type=E,S.call(k,J)}:function(J){J=new iM(J);
J.currentTarget=k;return S.call(k,J)};
h=_.Ga(h);k.addEventListener?(E=="mouseenter"&&N?E="mouseover":E=="mouseleave"&&N?E="mouseout":E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"),a0j()||typeof R==="boolean"?k.addEventListener(E,h,R):k.addEventListener(E,h,!!R.capture)):k.attachEvent("on"+E,h);n2[V]=[k,E,S,h,R];return V};
_.TXi=function(k,E,S){var R=R===void 0?{}:R;var V=_.hD(k,E,function(){_.tFC(V);S.apply(k,arguments)},R)};
_.tFC=function(k){k&&(typeof k=="string"&&(k=[k]),_.Sn(k,function(E){if(E in n2){var S=n2[E],R=S[0],V=S[1],N=S[3];S=S[4];R.removeEventListener?a0j()||typeof S==="boolean"?R.removeEventListener(V,N,S):R.removeEventListener(V,N,!!S.capture):R.detachEvent&&R.detachEvent("on"+V,N);delete n2[E]}}))};
JD=function(k){this.callback_=k;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(k=0;k<4;k++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.hD(window,"mousemove",(0,_.uk)(this.onMouseMove_,this));this.timerId_=_.yf((0,_.uk)(this.checkPosition_,this),25)};
BXl=function(){var k={};var E=k.preferMobileEvents===void 0?!1:k.preferMobileEvents;k=k.enableScrollEventListener===void 0?!0:k.enableScrollEventListener;if(_.CV("_lact",window)==null){var S=parseInt(_.Mg("LACT"),10);S=isFinite(S)?Date.now()-Math.max(S,0):-1;_.J6("_lact",S,window);_.J6("_fact",S,window);S==-1&&_.cv();wMI(window,E,k);new JD(function(){PYh("mouse",100)})}};
wMI=function(k,E,S){E=E===void 0?!1:E;S=S===void 0?!0:S;_.hD(k.document,"keydown",_.cv);_.hD(k.document,"keyup",_.cv);_.hD(k.document,"mousedown",_.cv);_.hD(k.document,"mouseup",_.cv);E?_.hD(k,"touchmove",function(){PYh("touchmove",200)},{passive:!0}):(_.hD(k,"resize",function(){PYh("resize",200)}),S&&_.hD(k,"scroll",function(){PYh("scroll",200)}));
_.hD(k.document,"touchstart",_.cv,{passive:!0});_.hD(k.document,"touchend",_.cv,{passive:!0})};
PYh=function(k,E){YkI[k]||(YkI[k]=!0,_.ZJ.addLowPriorityJob(function(){_.cv();YkI[k]=!1},E))};
_.cv=function(){_.CV("_lact",window)==null&&BXl();var k=Date.now();_.J6("_lact",k,window);_.CV("_fact",window)==-1&&_.J6("_fact",k,window);(k=_.CV("ytglobal.ytUtilActivityCallback_"))&&k()};
_.mE=function(){var k=_.CV("_lact",window);return k==null?-1:Math.max(Date.now()-k,0)};
_.TU=function(k,E,S){var R=_.el();if(R&&E){var V=R.subscribe(k,function(){var N=arguments,h=function(){aW[V]&&E.apply&&typeof E.apply=="function"&&E.apply(S||window,N)};
try{_.WRC[k]?h():_.W_(h,0)}catch(J){_.O4(J)}},S);
aW[V]=!0;tD[k]||(tD[k]=[]);tD[k].push(V);return V}return 0};
_.FRA=function(k){var E=_.el();E&&(typeof k==="number"?k=[k]:typeof k==="string"&&(k=[parseInt(k,10)]),_.Sn(k,function(S){E.unsubscribeByKey(S);delete aW[S]}))};
_.yVl=function(k,E){var S=_.el();S&&S.publish.apply(S,arguments)};
_.XMh=function(k){var E=_.el();if(E)if(E.clear(k),k)oXm(k);else for(var S in tD)oXm(S)};
_.el=function(){return _.Vt.ytPubsubPubsubInstance};
oXm=function(k){tD[k]&&(k=tD[k],_.Sn(k,function(E){aW[E]&&delete aW[E]}),k.length=0)};
gXh=function(){var k,E;return"h5vcc"in Pv&&((k=Pv.h5vcc.traceEvent)==null?0:k.traceBegin)&&((E=Pv.h5vcc.traceEvent)==null?0:E.traceEnd)?1:"performance"in Pv&&Pv.performance.mark&&Pv.performance.measure?2:0};
Uij=function(k){var E=gXh();switch(E){case 1:Pv.h5vcc.traceEvent.traceBegin("YTLR",k);break;case 2:Pv.performance.mark(k+"-start");break;case 0:break;default:_.s5(E,"unknown trace type")}};
Hhj=function(k){var E=gXh();switch(E){case 1:Pv.h5vcc.traceEvent.traceEnd("YTLR",k);break;case 2:E=k+"-start";var S=k+"-end";Pv.performance.mark(S);Pv.performance.measure(k,E,S);break;case 0:break;default:_.s5(E,"unknown trace type")}};
KR1=function(k){var E,S;(S=(E=window).onerror)==null||S.call(E,k.message,"",0,0,k)};
pMC=function(k){if(_.Y("web_lifecycle_error_handling_killswitch"))return k();try{return k()}catch(E){KR1(E)}};
AVI=function(k){return[k.auth===void 0?"undefined":k.auth,k.isJspb===void 0?"undefined":k.isJspb,k.cttAuthInfo===void 0?"undefined":k.cttAuthInfo,k.tier===void 0?"undefined":k.tier].join("/")};
_.W=function(k,E){if(k)return k[E.name]};
Yf=function(){var k=_.CV("yt.logging.ims");k||(k=new Bv,_.J6("yt.logging.ims",k));return k};
vXt=function(k,E){if(k.endpoint==="log_event"){rVj(k);var S=ude(k),R=xii(k.payload)||"",V=LRb(R),N=200;if(V){if(V.enabled===!1&&!_.Y("web_payload_policy_disabled_killswitch"))return;N=jvi(V.tier);if(N===400){DiC(k,E);return}}Wv[S]=!0;S={cttAuthInfo:S,isJspb:!1,tier:N};Yf().storePayload(S,k.payload);$iC(E,!1,S,f0i(R))}};
Zhl=function(k,E,S){if(E.endpoint==="log_event"){rVj(void 0,E);var R=ude(E,!0),V=LRb(k),N=200;if(V){if(V.enabled===!1&&!_.Y("web_payload_policy_disabled_killswitch"))return;N=jvi(V.tier);if(N===400){bhR(k,E,S);return}}Wv[R]=!0;R={cttAuthInfo:R,isJspb:!0,tier:N};Yf().storePayload(R,$W(E.payload));$iC(S,!0,R,f0i(k))}};
$iC=function(k,E,S,R){E=E===void 0?!1:E;R=R===void 0?!1:R;k&&(Fp=new k);k=_.wO("tvhtml5_logging_max_batch_ads_fork")||_.wO("tvhtml5_logging_max_batch")||_.wO("web_logging_max_batch")||100;var V=(0,_.ev)(),N=dih(E,S.tier),h=N.lastDebounceQueueFromLogTimeMs;R&&(N.useVideoStatsEndPoint=!0);R=0;S&&(R=Yf().getSequenceCount(S));var J=function(){svb({writeThenSend:!0},E,S.tier)};
R>=1E3?J():R>=k?l0m||(l0m=MFC(function(){J();l0m=void 0},0)):V-h>=10&&(qk1(E,S.tier),N.lastDebounceQueueFromLogTimeMs=V)};
DiC=function(k,E){if(k.endpoint==="log_event"){_.Y("more_accurate_gel_parser")&&Yf().storePayload({isJspb:!1},k.payload);rVj(k);var S=ude(k),R=new Map;R.set(S,[k.payload]);var V=xii(k.payload)||"";E&&(Fp=new E);return new _.yF(function(N,h){Fp&&Fp.isReady()?zZt(R,Fp,N,h,{bypassNetworkless:!0},!0,f0i(V)):N()})}};
bhR=function(k,E,S){if(E.endpoint==="log_event"){rVj(void 0,E);var R=ude(E,!0),V=new Map;V.set(R,[$W(E.payload)]);S&&(Fp=new S);return new _.yF(function(N){Fp&&Fp.isReady()?Qvh(V,Fp,N,{bypassNetworkless:!0},!0,f0i(k)):N()})}};
ude=function(k,E){var S="";if(k.dangerousLogToVisitorSession)S="visitorOnlyApprovedKey";else if(k.cttAuthInfo){if(E===void 0?0:E){E=k.cttAuthInfo.token;S=k.cttAuthInfo;var R=new Oh1;S.videoId?R.setVideoId(S.videoId):S.playlistId&&oW(R,2,GTI,YW(S.playlistId));CYh[E]=R}else E=k.cttAuthInfo,S={},E.videoId?S.videoId=E.videoId:E.playlistId&&(S.playlistId=E.playlistId),kZt[k.cttAuthInfo.token]=S;S=k.cttAuthInfo.token}return S};
svb=function(k,E,S){k=k===void 0?{}:k;E=E===void 0?!1:E;new _.yF(function(R,V){var N=dih(E,S),h=N.useVideoStatsEndPoint;N.useVideoStatsEndPoint=!1;Ev1(N.queueTimer);Ev1(N.queueMaxTimer);N.queueMaxTimer=0;Fp&&Fp.isReady()?S===void 0&&_.Y("enable_web_tiered_gel")?S3R(R,V,k,E,300,h):S3R(R,V,k,E,S,h):(qk1(E,S),R())})};
S3R=function(k,E,S,R,V,N){var h=Fp;S=S===void 0?{}:S;R=R===void 0?!1:R;V=V===void 0?200:V;N=N===void 0?!1:N;var J=new Map,m=new Map,a={isJspb:R,cttAuthInfo:void 0,tier:V},T={isJspb:R,cttAuthInfo:void 0};if(R){E=_.n(Object.keys(Wv));for(V=E.next();!V.done;V=E.next())V=V.value,m=_.Y("enable_web_tiered_gel")?Yf().smartExtractMatchingEntries({keys:[a,T],sizeLimit:1E3}):Yf().extractMatchingEntries({isJspb:!0,cttAuthInfo:V}),m.length>0&&J.set(V,m),(_.Y("web_fp_via_jspb_and_json")&&S.writeThenSend||!_.Y("web_fp_via_jspb_and_json"))&&
delete Wv[V];Qvh(J,h,k,S,!1,N)}else{J=_.n(Object.keys(Wv));for(a=J.next();!a.done;a=J.next())a=a.value,T=_.Y("enable_web_tiered_gel")?Yf().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:a,tier:V},{isJspb:!1,cttAuthInfo:a}],sizeLimit:1E3}):Yf().extractMatchingEntries({isJspb:!1,cttAuthInfo:a}),T.length>0&&m.set(a,T),(_.Y("web_fp_via_jspb_and_json")&&S.writeThenSend||!_.Y("web_fp_via_jspb_and_json"))&&delete Wv[a];zZt(m,h,k,E,S,!1,N)}};
qk1=function(k,E){k=k===void 0?!1:k;E=E===void 0?200:E;var S=function(){svb({writeThenSend:!0},k,E)},R=dih(k,E),V=R===R81||R===VQe?5E3:NbI;
_.Y("web_gel_timeout_cap")&&!R.queueMaxTimer&&(V=MFC(function(){S()},V),R.queueMaxTimer=V);
Ev1(R.queueTimer);V=_.Mg("LOGGING_BATCH_TIMEOUT",_.wO("web_gel_debounce_ms",1E4));_.Y("shorten_initial_gel_batch_timeout")&&IDm&&(V=nvb);V=MFC(function(){_.wO("gel_min_batch_size")>0?Yf().getSequenceCount({cttAuthInfo:void 0,isJspb:k,tier:E})>=iUl&&S():S()},V);
R.queueTimer=V};
zZt=function(k,E,S,R,V,N,h){V=V===void 0?{}:V;var J=Math.round((0,_.ev)()),m=k.size,a=h8i(h);k=_.n(k);var T=k.next();for(h={};!T.done;h={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},T=k.next()){var w=_.n(T.value);T=w.next().value;w=w.next().value;h.batchRequest=_.fO.unsafeClone({context:_.vni(E.config_||_.t6())});if(!_.sj(w)&&!_.Y("throw_err_when_logevent_malformed_killswitch")){R();break}h.batchRequest.events=w;
(w=kZt[T])&&JbC(h.batchRequest,T,w);delete kZt[T];h.dangerousLogToVisitorSession=T==="visitorOnlyApprovedKey";cbe(h.batchRequest,J,h.dangerousLogToVisitorSession);mJI(V);h.onSuccess$jscomp$3=function(P){_.Y("start_client_gcf")&&_.ZJ.addLowPriorityJob(function(){return _.c(function(B){return B.yield(e8j(P),0)})});
m--;m||S()};
h.networkFailures=0;h.onError$jscomp$5=function(P){return function(){P.networkFailures++;if(V.bypassNetworkless&&P.networkFailures===1)try{Wie(E,a,P.batchRequest,aDh({writeThenSend:!0},P.dangerousLogToVisitorSession,P.onSuccess$jscomp$3,P.onError$jscomp$5,N)),IDm=!1}catch(B){_.O4(B),R()}m--;m||S()}}(h);
try{Wie(E,a,h.batchRequest,aDh(V,h.dangerousLogToVisitorSession,h.onSuccess$jscomp$3,h.onError$jscomp$5,N)),IDm=!1}catch(P){_.O4(P),R()}}};
Qvh=function(k,E,S,R,V,N){R=R===void 0?{}:R;var h=Math.round((0,_.ev)()),J={value:k.size},m=new Map([].concat(_.$e(k)));m=_.n(m);for(var a=m.next();!a.done;a=m.next()){var T=_.n(a.value).next().value,w=k.get(T);a=new tQh;var P=E.config_||_.t6(),B=new Xp,F=new TbA;_.uh(F,1,P.innertubeContextHostLanguage);_.uh(F,2,P.innertubeContextGeoLocation);_.wv(F,16,P.innertubeContextClientNameFieldNumber);_.uh(F,17,P.innertubeContextClientVersion);if(P.innertubeContextClientConfigInfo){var K=P.innertubeContextClientConfigInfo,
r=new BV;K.coldConfigData&&_.uh(r,1,K.coldConfigData);K.appInstallData&&_.uh(r,6,K.appInstallData);K.coldHashData&&_.uh(r,3,K.coldHashData);K.hotHashData&&r.setHotHashData(K.hotHashData);_.Xo(F,62,r)}(K=_.Vt.devicePixelRatio)&&K!=1&&_.PV(F,65,_.qp(K));K=RMI();K!==""&&_.uh(F,54,K);K=Vdl();if(K.length>0){r=new w9t;for(var x=0;x<K.length;x++){var L=new gg;L.setKey(K[x].key);oW(L,2,P_h,YW(K[x].value));Uc(r,15,gg,L)}_.Xo(B,5,r)}xIe(P,F);LCj(B);j7t(F);DIR(P,F);$Ii(F);_.Y("start_client_gcf")&&fEI(F);_.Mg("DELEGATED_SESSION_ID")&&
!_.Y("pageid_as_header_web")&&(P=new Hv,_.uh(P,3,_.Mg("DELEGATED_SESSION_ID")));!_.Y("fill_delegate_context_in_gel_killswitch")&&(K=_.Mg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(r=_.Tp(B,Hv,3)||new Hv,P=B,K=_.uh(r,18,K),_.Xo(P,3,K));P=F;K=_.n(Object.entries(_.Ru(_.Mg("DEVICE",""))));for(r=K.next();!r.done;r=K.next())x=_.n(r.value),r=x.next().value,x=x.next().value,r==="cbrand"?_.uh(P,12,x):r==="cmodel"?_.uh(P,13,x):r==="cbr"?_.uh(P,87,x):r==="cbrver"?_.uh(P,88,x):r==="cos"?_.uh(P,18,
x):r==="cosver"?_.uh(P,19,x):r==="cplatform"&&_.wv(P,42,uyA(x));B.setClient(F);_.Xo(a,1,B);if(F=CYh[T])a:{if(_.Xb(F,K2(F,GTI,1)))B=1;else if(F.getPlaylistId())B=2;else break a;_.Xo(a,4,F);F=a.getContext()||new Xp;P=_.Tp(F,Hv,3)||new Hv;K=new p2;K.setToken(T);_.wv(K,1,B);Uc(P,12,p2,K);_.Xo(F,3,P)}delete CYh[T];T=T==="visitorOnlyApprovedKey";Bbm()||_.AD(a,2,h);!T&&(B=_.Mg("EVENT_ID"))&&(F=Y31(),P=new Wue,_.uh(P,1,B),_.AD(P,2,F),_.Xo(a,5,P));mJI(R);if(_.Y("jspb_serialize_with_worker")&&(B=_.OcI())&&
R.writeThenSend){_.Fui.set(ybj,{client:E,resolve:S,networklessOptions:R,isIsolated:V,useVSSEndpoint:N,dangerousLogToVisitorSession:T,requestsOutstanding:J});B.postMessage({op:"gelBatchToSerialize",batchRequest:$W(a),clientEvents:w,key:ybj});ybj++;break}if(w){B=[];for(F=0;F<w.length;F++)try{B.push(new rg(w[F]))}catch(q){_.O4(new _.LC("Transport failed to deserialize "+String(w[F])))}w=B}else w=[];w=_.n(w);for(B=w.next();!B.done;B=w.next())Uc(a,3,rg,B.value);w={startTime:(0,_.ev)(),ticks:{},infos:{}};
a=a.serialize();w.ticks.geljspc=(0,_.ev)();_.Y("log_jspb_serialize_latency")&&lWl("gel_jspb_serialize",w,{sampleRate:.1});_.ovl(a,E,S,R,V,N,T,J)}};
_.ovl=function(k,E,S,R,V,N,h,J){R=R===void 0?{}:R;J=J===void 0?{value:0}:J;N=h8i(N);R=aDh(R,h,function(m){_.Y("start_client_gcf")&&_.ZJ.addLowPriorityJob(function(){return _.c(function(a){return a.yield(e8j(m),0)})});
J.value--;J.value||S()},function(){J.value--;
J.value||S()},V);
R.headers["Content-Type"]="application/json+protobuf";R.postBodyFormat="JSPB";R.postBody=k;Wie(E,N,"",R);IDm=!1};
mJI=function(k){_.Y("always_send_and_write")&&(k.writeThenSend=!1)};
aDh=function(k,E,S,R,V){k={retry:!0,onSuccess:S,onError:R,networklessOptions:k,dangerousLogToVisitorSession:E,bypassMonitoring:!!V,headers:{},postBodyFormat:"",postBody:"",compress:_.Y("compress_gel")||_.Y("compress_gel_lr")};Bbm()&&(k.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.ev)())));return k};
cbe=function(k,E,S){Bbm()||(k.requestTimeMs=String(E));_.Y("unsplit_gel_payloads_in_logs")&&(k.unsplitGelPayloadsInLogs=!0);!S&&(E=_.Mg("EVENT_ID"))&&(S=Y31(),k.serializedClientEventId={serializedEventId:E,clientCounter:String(S)})};
Y31=function(){var k=_.Mg("BATCH_CLIENT_COUNTER")||0;k||(k=Math.floor(Math.random()*65535/2));k++;k>65535&&(k=1);_.l$("BATCH_CLIENT_COUNTER",k);return k};
JbC=function(k,E,S){if(S.videoId)var R="VIDEO";else if(S.playlistId)R="PLAYLIST";else return;k.credentialTransferTokenTargetId=S;k.context=k.context||{};k.context.user=k.context.user||{};k.context.user.credentialTransferTokens=[{token:E,scope:R}]};
rVj=function(k,E){var S=_.P_("il_payload_scraping")==="enable_il_payload_scraping";if(!_.CV("yt.logging.transport.enableScrapingForTest"))if(S)X9h=[],_.J6("yt.logging.transport.enableScrapingForTest",!0),_.J6("yt.logging.transport.scrapedPayloadsForTesting",X9h),_.J6("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.J6("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.J6("yt.logging.transport.scrapeClientEvent",!0);else return;S=_.CV("yt.logging.transport.scrapedPayloadsForTesting");var R=_.CV("yt.logging.transport.payloadToScrape");E&&(E=_.CV("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(E.payload)())&&S.push(E);E=_.CV("yt.logging.transport.scrapeClientEvent");if(R&&R.length>=1)for(var V=0;V<R.length;V++)if(k&&k.payload[R[V]])if(E)S.push(k.payload);else{var N=void 0;S.push(((N=k)==null?void 0:N.payload)[R[V]])}_.J6("yt.logging.transport.scrapedPayloadsForTesting",
S)};
Bbm=function(){return _.Y("use_request_time_ms_header")||_.Y("lr_use_request_time_ms_header")};
MFC=function(k,E){return _.Y("transport_use_scheduler")===!1?_.W_(k,E):_.Y("logging_avoid_blocking_during_navigation")||_.Y("lr_logging_avoid_blocking_during_navigation")?_.uM(_.ZJ,function(){if(_.gvj().currentState==="none")k();else{var S={};_.gvj().install((S.none={callback:k},S))}},E):_.uM(_.ZJ,k,E)};
Ev1=function(k){_.Y("transport_use_scheduler")?_.ZJ.cancelJob(k):_.ou(k)};
e8j=function(k){var E,S,R,V,N,h,J,m,a,T;return _.c(function(w){return w.nextAddress==1?(R=(E=k)==null?void 0:(S=E.responseContext)==null?void 0:S.globalConfigGroup,V=_.W(R,UJA),h=(N=R)==null?void 0:N.hotHashData,J=_.W(R,HUh),a=(m=R)==null?void 0:m.coldHashData,(T=_.en().resolve(_.mz(xf)))?h?V?w.yield(Kut(T,h,V),2):w.yield(Kut(T,h),2):w.jumpTo(2):w.return()):a?J?w.yield(p9C(T,a,J),0):w.yield(p9C(T,a),0):w.jumpTo(0)})};
dih=function(k,E){E=E===void 0?200:E;return k?E===300?R81:AbI:E===300?VQe:rbA};
LRb=function(k){if(_.Y("enable_web_tiered_gel")){k=uSl[k||""];var E,S,R,V=_.en().resolve(_.mz(xf))==null?void 0:(E=L2())==null?void 0:(S=E.loggingHotConfig)==null?void 0:(R=S.eventLoggingConfig)==null?void 0:R.payloadPolicies;if(V)for(E=0;E<V.length;E++)if(V[E].payloadNumber===k)return V[E]}};
xii=function(k){k=Object.keys(k);k=_.n(k);for(var E=k.next();!E.done;E=k.next())if(E=E.value,uSl[E])return E};
jvi=function(k){switch(k){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}};
f0i=function(k){return k==="gelDebuggingEvent"};
h8i=function(k){return(k===void 0?0:k)&&_.Y("vss_through_gel_video_stats")?"video_stats":"log_event"};
Dd=function(k,E,S,R){R=R===void 0?{}:R;var V={},N=Math.round(R.timestamp||(0,_.ev)());V.eventTimeMs=N<Number.MAX_SAFE_INTEGER?N:0;V[k]=E;k=_.mE();V.context={lastActivityMs:String(R.timestamp||!isFinite(k)?-1:k)};R.sequenceGroup&&!_.Y("web_gel_sequence_info_killswitch")&&(k=V.context,E=R.sequenceGroup,E={index:xJI(E),groupKey:E},k.sequence=E,R.endOfSequence&&delete jl[R.sequenceGroup]);_.Y("web_tag_automated_log_events")&&(V.context.automatedLogEventSource=R.automatedLogEventSource);(R.sendIsolatedPayload?
DiC:vXt)({endpoint:"log_event",payload:V,cttAuthInfo:R.cttAuthInfo,dangerousLogToVisitorSession:R.dangerousLogToVisitorSession},S)};
xJI=function(k){jl[k]=k in jl?jl[k]+1:0;return jl[k]};
_.f2=function(k,E,S){S=S===void 0?{}:S;var R=$f;_.qg("ytLoggingEventsDefaultDisabled",!1)&&$f===$f&&(R=null);Dd(k,E,R,S)};
_.vv=function(){if(_.Y("web_fp_via_jspb")){var k=!0;k=k===void 0?!1:k;var E=LuR;LuR=[];if(E){E=_.n(E);for(var S=E.next();!S.done;S=E.next())S=S.value,k?Dd(S.payloadName,S.payload,$f,S.options):_.f2(S.payloadName,S.payload,S.options)}svb(void 0,!0);if(!_.Y("web_fp_via_jspb_and_json"))return}svb(void 0,!1)};
jZt=function(k,E){var S;if((S=E)==null?0:S.componentStack)return E;if(k=k.componentStack)E||(E={}),E.componentStack=k;return E};
DJj=function(){_.Sn(_.Mg("ERRORS")||[],function(k){_.bM.apply(null,k)});
_.l$("ERRORS",[])};
_.Zd=function(k){_.bM(k)};
_.dg=function(k){_.bM(k,"WARNING")};
$Jh=function(k){k instanceof Error?_.bM(k):(k=_.qA(k)?JSON.stringify(k):String(k),k=new _.LC(k),k.name="RejectedPromiseError",_.dg(k))};
fDj=function(k,E,S,R,V,N){E=E===void 0?"Unknown file":E;S=S===void 0?0:S;var h=!1,J=LSR("log_window_onerror_fraction");if(J&&Math.random()<J)h=!0;else{J=document.getElementsByTagName("script");for(var m=0,a=J.length;m<a;m++)if(J[m].src.indexOf("/debug-")>0){h=!0;break}}h&&(h=!1,V?h=!0:(typeof k==="string"?J=k:ErrorEvent&&k instanceof ErrorEvent?(h=!0,J=k.message,E=k.filename,S=k.lineno,R=k.colno):(J="Unknown error",E="Unknown file",S=0),V=new _.LC(J),V.name="UnhandledWindowError",V.message=J,V.fileName=
E,V.lineNumber=S,isNaN(R)?delete V.columnNumber:V.columnNumber=R),_.Y("wiz_enable_component_stack_propagation_killswitch")||(N=jZt(V,N)),N&&_.sc(V,N),h?_.bM(V):_.dg(V))};
_.bM=function(k,E,S,R,V,N,h,J){N=N===void 0?{}:N;N.name=S||_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME",1);N.version=R||_.Mg("INNERTUBE_CONTEXT_CLIENT_VERSION");S=N;E=E===void 0?"ERROR":E;h=h===void 0?!1:h;E=E===void 0?"ERROR":E;h=h===void 0?!1:h;if(k&&(k.hasOwnProperty("level")&&k.level&&(E=k.level),_.Y("console_log_js_exceptions")&&(R=[],R.push("Name: "+k.name),R.push("Message: "+k.message),k.hasOwnProperty("params")&&R.push("Error Params: "+JSON.stringify(k.params)),k.hasOwnProperty("args")&&R.push("Error args: "+
JSON.stringify(k.args)),R.push("File name: "+k.fileName),R.push("Stacktrace: "+k.stack),R=R.join("\n"),window.console.log(R,k)),!(vvh>=5))){R=[];V=_.n(bUh);for(N=V.next();!N.done;N=V.next()){N=N.value;try{N()&&R.push(N())}catch(r){}}R=[].concat(_.$e(ZU1),_.$e(R));var m=dJh(k);V=m.message||"Unknown Error";N=m.name||"UnknownError";var a=m.stack||k.stacktrace||"Not available";if(a.startsWith(N+": "+V)){var T=a.split("\n");T.shift();a=T.join("\n")}T=m.lineNumber||"Not available";m=m.fileName||"Not available";
var w=0;if(k.hasOwnProperty("args")&&k.args&&k.args.length)for(var P=0;P<k.args.length&&!(w=rX1(k.args[P],"params."+P,S,w),w>=500);P++);else if(k.hasOwnProperty("params")&&k.params){var B=k.params;if(typeof k.params==="object")for(P in B){if(B[P]){var F="params."+P,K=KC(B[P]);S[F]=K;w+=F.length+K.length;if(w>500)break}}else S.params=KC(B)}if(R.length)for(P=0;P<R.length&&!(w=rX1(R[P],"params.context."+P,S,w),w>=500);P++);navigator.vendor&&!S.hasOwnProperty("vendor")&&(S["device.vendor"]=navigator.vendor);
P={message:V,name:N,lineNumber:T,fileName:m,stack:a,params:S,sampleWeight:1};S=Number(k.columnNumber);isNaN(S)||(P.lineNumber=P.lineNumber+":"+S);if(k.level==="IGNORED")k=0;else a:{k=sZC();S=_.n(k.messageWeights);for(R=S.next();!R.done;R=S.next())if(R=R.value,P.message&&P.message.match(R.messageRegExp)){k=R.weight;break a}k=_.n(k.callbackWeights);for(S=k.next();!S.done;S=k.next())if(S=S.value,S.callback(P)){k=S.weight;break a}k=1}P.sampleWeight=k;k=_.n(lDC);for(S=k.next();!S.done;S=k.next())if(S=
S.value,S.patternsForType[P.name])for(V=_.n(S.patternsForType[P.name]),R=V.next();!R.done;R=V.next())if(N=R.value,R=P.message.match(N.regexp)){P.params["params.error.original"]=R[0];V=N.groups;N={};for(T=0;T<V.length;T++)N[V[T]]=R[T+1],P.params["params.error."+V[T]]=R[T+1];P.message=S.messageFn(N);break}P.params||(P.params={});k=sZC();P.params["params.errorServiceSignature"]="msg="+k.messageWeights.length+"&cb="+k.callbackWeights.length;P.params["params.serviceWorker"]="false";_.Vt.document&&_.Vt.document.querySelectorAll&&
(P.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new lM(MQj,"sample")).constructor!==lM&&(P.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(P);if(P.sampleWeight!==0&&!q3e.has(P.message)){if(h&&_.Y("web_enable_error_204"))z8b(E===void 0?"ERROR":E,P);else{E=E===void 0?"ERROR":E;E==="ERROR"?(QZm.publish("handleError",P),_.Y("record_app_crashed_web")&&OUm===0&&P.sampleWeight===1&&(OUm++,h={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.Y("report_client_error_with_app_crash_ks")||(h.systemHealth={crashData:{clientError:{logMessage:{message:P.message}}}}),_.f2("appCrashed",h)),GZC++):E==="WARNING"&&QZm.publish("handleWarning",P);if(_.Y("kevlar_gel_error_routing")){h=E;J=J===void 0?{}:J;b:{k=_.n(C_R);for(S=k.next();!S.done;S=k.next())if(M3(S.value.toLowerCase())){k=!0;break b}k=!1}if(k)J=void 0;else{S={stackTrace:P.stack};P.fileName&&(S.filename=P.fileName);k=P.lineNumber&&P.lineNumber.split?P.lineNumber.split(":"):[];k.length!==
0&&(k.length!==1||isNaN(Number(k[0]))?k.length!==2||isNaN(Number(k[0]))||isNaN(Number(k[1]))||(S.lineNumber=Number(k[0]),S.columnNumber=Number(k[1])):S.lineNumber=Number(k[0]));k={level:"ERROR_LEVEL_UNKNOWN",message:P.message,errorClassName:P.name,sampleWeight:P.sampleWeight};h==="ERROR"?k.level="ERROR_LEVEL_ERROR":h==="WARNING"&&(k.level="ERROR_LEVEL_WARNNING");S={isObfuscated:!0,browserStackInfo:S};J.pageUrl=window.location.href;J.kvPairs=[];_.Mg("FEXP_EXPERIMENTS")&&(J.experimentIds=_.Mg("FEXP_EXPERIMENTS"));
R=_.Mg("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!LSR("web_disable_gel_stp_ecatcher_killswitch")&&R)for(V=_.n(Object.keys(R)),N=V.next();!N.done;N=V.next())N=N.value,J.kvPairs.push({key:N,value:String(R[N])});if(R=P.params)for(V=_.n(Object.keys(R)),N=V.next();!N.done;N=V.next())N=N.value,J.kvPairs.push({key:"client."+N,value:String(R[N])});R=_.Mg("SERVER_NAME");V=_.Mg("SERVER_VERSION");R&&V&&(J.kvPairs.push({key:"server.name",value:R}),J.kvPairs.push({key:"server.version",value:V}));J={errorMetadata:J,
stackTrace:S,logMessage:k}}J&&(_.f2("clientError",J),(h==="ERROR"||_.Y("errors_flush_gel_always_killswitch"))&&_.vv())}_.Y("suppress_error_204_logging")||z8b(E,P)}try{q3e.add(P.message)}catch(r){}vvh++}}};
z8b=function(k,E){var S=E.params||{};k={urlParams:{a:"logerror",t:"jserror",type:E.name,msg:E.message.substr(0,250),line:E.lineNumber,level:k,"client.name":S.name},postParams:{url:_.Mg("PAGE_NAME",window.location.href),file:E.fileName},method:"POST"};S.version&&(k["client.version"]=S.version);if(k.postParams){E.stack&&(k.postParams.stack=E.stack);E=_.n(Object.keys(S));for(var R=E.next();!R.done;R=E.next())R=R.value,k.postParams["client."+R]=S[R];if(S=_.Mg("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(E=
_.n(Object.keys(S)),R=E.next();!R.done;R=E.next())R=R.value,k.postParams[R]=S[R];(S=_.Mg("LAVA_VERSION"))&&(k.postParams["lava.version"]=S);S=_.Mg("SERVER_NAME");E=_.Mg("SERVER_VERSION");S&&E&&(k.postParams["server.name"]=S,k.postParams["server.version"]=E)}_.gO(_.Mg("ECATCHER_REPORT_HOST","")+"/error_204",k)};
_.kcm=function(k,E){E=E===void 0?"ERROR":E;var S=S===void 0?{}:S;var R=_.CV("ytbin.polymer.shared.lib.tampering.info");R&&(R=R())&&(S["params.tamperingInfo"]=R.sort().join(","));_.bM(k,E,void 0,void 0,!0,S)};
_.sc=function(k){var E=_.sX.apply(1,arguments);k.args||(k.args=[]);Array.isArray(k.args)&&k.args.push.apply(k.args,_.$e(E))};
Ehi=function(k){k.level="IGNORED"};
Sft=function(k,E){ZU1.push(k);E();ZU1.pop()};
qd=function(k,E){for(var S in E)E.hasOwnProperty(S)&&(k=_.Md(k,S,E[S]));return k};
_.Rve=function(k,E,S){S=S===void 0?!1:S;if(!k)return null;if(k.adInfoDialogEndpoint||k.backstageImageUploadEndpoint||k.confirmDialogEndpoint||k.clientActionEndpoint||k.createBackstagePostDialogEndpoint||k.createCommentReplyDialogEndpoint||k.flowEndpoint||k.guideBuilderEndpoint||k.liveChatDialogEndpoint||k.modalEndpoint||k.openPopupAction||k.shareEndpoint||k.shareEntityEndpoint||k.showLiveChatItemEndpoint||k.subscriptionManagerEndpoint||k.unlimitedCreateFamilyEndpoint||k.unlimitedFamilyFlowEndpoint||
k.updateCommentDialogEndpoint||k.updateCommentReplyDialogEndpoint||k.userFeedbackEndpoint||k.videoEditorEndpoint||k.ypcCancelSurveyEndpoint)return E=_.wO("polymer_report_client_url_requested_rate"),!S&&Math.random()<E&&_.dg(new _.LC("urlForEndpoint used on client endpoint",k)),null;var R=_.wO("polymer_report_missing_web_navigation_endpoint_rate");if(k.liveChatEndpoint||k.liveChatReplayEndpoint)R=0;if(!k.commandMetadata&&!k.clickTrackingParams&&Math.random()<R){var V={},N;for(N in k)V[N]="1";_.dg(new _.LC("Missing navigation data",
V))}V="";if(k.commandMetadata&&k.commandMetadata.webCommandMetadata&&k.commandMetadata.webCommandMetadata.url)V=k.commandMetadata.webCommandMetadata.url;else if(k.searchEndpoint)Math.random()<R&&_.dg(new _.LC("Should not manually handle search",k)),V="/results?search_query="+encodeURIComponent(k.searchEndpoint.query).replace(/%20/g,"+"),k.searchEndpoint.params&&(V+="&sp="+k.searchEndpoint.params);else if(k.watchEndpoint)Math.random()<R&&_.dg(new _.LC("Should not manually handle watch",k)),V="/watch?v="+
k.watchEndpoint.videoId,k.watchEndpoint.playlistId&&(V+="&list="+k.watchEndpoint.playlistId),k.watchEndpoint.index&&(V+="&index="+k.watchEndpoint.index),k.watchEndpoint.startTimeSeconds&&(V+="&t="+k.watchEndpoint.startTimeSeconds);else if(k.browseEndpoint)R=k.browseEndpoint.browseId,(N=k.browseEndpoint.canonicalBaseUrl)?V=N:R&&(V=R.substr(0,2),V=V==="FE"?R==="FEwhat_to_watch"?"/":R==="FEmy_videos"?"/my_videos":"/feed/"+R.substr(2):V==="VL"?"/playlist?list="+R.substr(2):"/channel/"+R),V&&k.browseEndpoint.query&&
(V=qd(V+"/search",{query:k.browseEndpoint.query})),V&&k.browseEndpoint.params&&(V=qd(V,{params:k.browseEndpoint.params}));else{if(k.urlEndpoint)return k.urlEndpoint.url;k.signInEndpoint?(V="https://accounts.google.com/ServiceLogin",R={},_.fO.extend(R,E||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),E=R):k.uploadEndpoint?V="//www.youtube.com/upload":k.liveChatEndpoint?(V=k.liveChatEndpoint,R=_.fO.clone(V),_.qA(V.continuation)&&(N=Object.keys(V.continuation)[0],
R.continuation=V.continuation[N].continuation),V=qd("/youtubei/v1/live_chat/get_live_chat",R)):k.liveChatReplayEndpoint?(V=_.fO.clone(k.liveChatReplayEndpoint),V.currentPlayerState&&(_.fO.extend(V,V.currentPlayerState),delete V.currentPlayerState),V=qd("/youtubei/v1/live_chat/get_live_chat_replay",V)):k.liveChatItemContextMenuEndpoint?V=qd("/youtubei/v1/live_chat/get_item_context_menu",k.liveChatItemContextMenuEndpoint):k.liveChatPurchaseMessageEndpoint?V=qd("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
k.liveChatPurchaseMessageEndpoint):k.openSuperStickerBuyFlowCommand?V=qd("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",k.openSuperStickerBuyFlowCommand):k.videoEditEndpoint?V=qd("/edit",{video_id:k.videoEditEndpoint.videoId}):k.liveDashboardEndpoint?V=k.liveDashboardEndpoint.videoId?qd("/live_dashboard",{v:k.liveDashboardEndpoint.videoId}):"/live_dashboard":k.signalNavigationEndpoint&&k.signalNavigationEndpoint.signal&&k.signalNavigationEndpoint.signal==="WEBCAM"?V="/webcam":k.getPdgBuyFlowCommand&&
(V=qd(k.getPdgBuyFlowCommand.buyflowApiPath,{params:k.getPdgBuyFlowCommand.params}))}return V||S?qd(V,E||{}):(_.dg(new _.LC("Error: Can't construct url for endpoint","keys:"+Object.keys(k).sort().join(","),k)),null)};
Vqi=function(k){if(k){if(k.browseEndpoint)return!!k.browseEndpoint.nofollow;if(k.watchEndpoint)return!!k.watchEndpoint.nofollow;if(k.urlEndpoint)return!!k.urlEndpoint.nofollow}return!1};
_.IgR=function(k,E){var S=E+k,R=NdI.get(S);if(R)return R;k=E+"-"+k.replace(/([A-Z])/g,"-$1").toLowerCase();NdI.set(S,k);return k};
nhh=function(k){var E=_.d0(k,"action")||_.d0(k,"command")||_.d0(k,"endpoint");if(!E)return null;E=_.IgR(E,"yt");_.W(k,_.zU)&&(E+="-"+_.W(k,_.zU).signal.toLowerCase().replace(/_/g,"-"));return E};
c0I=function(k){try{var E=Object.keys(k)}catch(V){return[]}for(var S=0;S<E.length;S++){var R=E[S];if(i5m.test(R)||hv1.test(R))return J01(k[R])}return[]};
J01=function(k){return k.command?[k.command]:k.onExecutionAction?[k.onExecutionAction]:k.onResponseReceivedCommand?[k.onResponseReceivedCommand]:k.updateFlowCommand?[k.updateFlowCommand]:k.clientActions?k.clientActions:k.action?[k.action]:k.actions||k.commands||k.onResponseReceivedActions||k.onResponseReceivedCommands||k.onResponseReceivedEndpoints||[]};
evl=function(k,E){E=E===void 0?!1:E;var S=_.en().resolve(_.mz(QF));S||(S=new mBI,_.en().addProvider({provide:QF,useValue:S}));return S&&k&&!_.fO.isEmpty(k)?S.getUrl(k,E):""};
agb=function(k,E,S){S=S===void 0?"":S;if(E){k.data=E;var R=evl(E);R?(MU(k,R),Vqi(E)||!J3(R)?k.rel="nofollow":k.removeAttribute("rel"),_.W(E,_.Oc)&&_.W(E,_.Oc).target==="TARGET_NEW_WINDOW"?k.target="_blank":S?k.target=S:k.removeAttribute("target")):(k.removeAttribute("href"),k.removeAttribute("rel"),k.removeAttribute("target"))}};
_.Rs=function(k,E){var S=Nn;if(j$())tql(k,function(){var N=_.sX.apply(0,arguments);lI(S,function(){E.apply(null,_.$e(N))})});
else{var R=_.GU.getInstance(),V=xe1(E);Xih(function(){V.value=E});
_.b$(function(){var N={},h=_.E2(R,(N[k]=function(){var J=_.sX.apply(0,arguments);lI(S,function(){V.value.apply(V,_.$e(J))})},N));
return function(){var J={};_.S9(R,(J[k]="",J),h)}})}};
_.VH=function(k,E){return Tdt(k,!1,E)};
_.Nm=function(k,E){return Tdt(k,!0,E)};
Tdt=function(k,E,S){return j$()?wpR(k,E,S):PKb(k,E,S)};
PKb=function(k,E,S){return Z_(function(){return wpR(k,E,S)})};
wpR=function(k,E,S){var R=WS1(function(V){R.value=V;var N=function(){var h=e$(null);try{return S==null?void 0:S(V)}finally{e$(h)}}();
return function(){N==null||N()}});
R.__expectedTagName=k;R.__optional=E;R.isIdom=!j$();return R};
Bdl=function(k){var E=Nn,S=xO;return{getFn:function(){return function(R){E.isDisposed||fo(function(){return _.FF(function(){return k(R)})},S)!==!0&&R.stopPropagation()}}}};
i2=function(k){if(typeof k.children==="function")return k.children(),null;k=_.n(k.children);for(var E=k.next();!E.done;E=k.next())E=E.value,E();return null};
Yfh=function(k){var E;return((E=k.prototype)==null?void 0:E.render)===void 0};
Wje=function(k){return k.items.map(k.children)};
y0m=function(k,E,S){S=S===void 0?!1:S;fo(function(){return Fjt(k,E,S)})};
Fjt=function(k,E,S){var R=null;AN++;S=(S===void 0?0:S)?ohI:Xpm;try{R=S(k,function(){hw(E)}),uI(!1)}catch(V){throw uI(!0),V;
}return R===null?k:R};
hw=function(k){if(k!==void 0&&k!==null)if(k instanceof U4)for(var E=Co;Sw()!=null&&IZI in Sw()&&E.contains(Sw());)Ng();else if(Array.isArray(k))for(E=_.n(k),k=E.next();!k.done;k=E.next())hw(k.value);else if(k instanceof Kg||k instanceof cd||"function"==typeof _.mN&&k instanceof _.mN)Nci(k.toString());else if(_.w0(k)){if(Sw()!==k){var S,R;E=(R=(S=xO)==null?void 0:S.name)!=null?R:"unknown";throw Error("hc`"+k.tagName+"`"+E);}Ng()}else if(k!=null&&k.contentKind===Yk||k instanceof qU||YJI(k))for(E=Ftm(k),
E=Array.from(E.childNodes),E=_.n(E),k=E.next();!k.done;k=E.next())Co.appendChild(k.value),Ng();else if(jr(k)&&(k=k.toString()),S=typeof k,S==="boolean"||S==="number"||S==="string")Nci(k);else if(typeof k==="function"){E=Co;var V=Sw();V&&(V._isSignalTextNode||V._isSafeOrSanitizedHtmlNode)||QdI(E,V,k);Ng()}else if(k.type===Wje)hw(k.type(Object.assign({},k.props,{children:k.children[0]})));else{pV.beforeVisit(k);if(typeof k.type==="string"){a:{k.__open||QsI(k.type,k.props.idomKey);V=Co;for(E in k.props)if(k.props[E]!==
ghe){var N=k.props[E];S=i$;S.push(E);S.push(N)}E=JN.attributes;E=E===void 0?Jw:E;N=Co;S=GL(N);VXb(N,S,E);zGe(V,k.props,!0);if((k.props.skip||k.props.skipchildren)&&Co.hasChildNodes())G2R();else{if(k.type==="style"&&pkm(k.children)===null){G2R();E=void 0;break a}hw(k.children)}OZt();k.__open&&(k.__open=!1);eGC(V,k.props);E=V}return E}if(k.type===_.tj)hw(k.children);else if(!UBI(k)){E=k;try{H5C(E)}catch(h){k=h,(N=JN.handleError)==null||N.call.apply(N,[JN].concat(_.$e(Mn(k,(V=E.type)==null?void 0:V.TAG_NAME))))}E.__open&&
(OZt(),E.__open=!1)}}};
KjA=function(k,E){var S;Yfh(k)?S=new r0(E,k):S=new k(E);S.__type=k;S.__updateContext={nextState:S.state,isForced:!1};return S};
H5C=function(k){var E=k.type,S=E.TAG_NAME;if(E===i2)k.props.children=k.children,E(k.props);else{k.children.length>0&&(k.props.children=k.children);var R;(R=k.props).idomKey||(R.idomKey=E);if(S){var V=QsI(S,k.props.idomKey);k.__open=!0;var N=V.__instance}N||(N=KjA(E,k.props),N.props=null,V&&(V.__instance=N,N.el=V));var h;S=((h=N.__updateContext)!=null?h:{nextState:N.state,isForced:!1}).nextState;N.__updateContext=void 0;E.getDerivedStateFromProps&&(S=E.getDerivedStateFromProps(k.props,S));N.props=
k.props;N.state=S;h=function(){var J=N;pV.beforeRender(J);var m=J.render(J.props);pV.afterRender(J,m);m?(J.props.idomKey&&(m.props.idomKey=J.props.idomKey),J=m):J=void 0;if(m=J)if(m.__open=k.__open,J=hw(m),k.__open=m.__open,!E.TAG_NAME)if(J)E.TAG_NAME=J.tagName.toLowerCase(),J.__instance=N,N.el=J;else{var a;if((a=N.hooks)==null?0:a.length){var T;(T=JN.handleError)==null||T.call.apply(T,[JN].concat(_.$e(Mn(Error("nd")))))}}N.didPatch();pV.didPatch(N)};
(S=N.functionComponent)?eRe(S,h,N.props.debugInstance):h()}};
UBI=function(k){var E=k.type;if(!Yfh(E)||E===i2||E.componentType===Lo)return!1;k.props.children=k.children.length>1?k.children:k.children[0];var S,R=(S=k.props.idomKey)!=null?S:k.type,V;if(Sw()&&((V=Sw()[o2])==null?void 0:V.key)===R){var N=Sw(),h=N[o2];if(!h)throw Error("gc`"+N.tagName);var J;(J=h.updateSignalsFromIdomProps)==null||J.call(h,k.props);ppI(h);return!0}if(A0t.has(E.name))throw J=E.name,E=(h=(N=xO)==null?void 0:N.name)!=null?h:"unknown",Error("fc`"+J+"`"+E);kRI(k.type,k.props,k.children);
k.props.renderedFromIdom=!0;(J=eRe(k.type,function(){return d61(k.type,k.props)},k.props.debugInstance))&&r0b(J);
return!0};
uXI=function(k){for(var E=0;E<g0(k).length;E++)Ng()};
ppI=function(k){var E=xBm();if(E)uXI(E);else for(var S=0;S<k.numNodes;S++)(E=xBm())?uXI(E):Ng()};
xBm=function(){var k;return(k=Sw()[o2])==null?void 0:k.sourceDynamicRange};
r0b=function(k){k=Tch(k);k=Array.isArray(k)?k:[k];k=_.n(k);for(var E=k.next();!E.done;E=k.next())Co.insertBefore(E.value,Sw()),Ng()};
Ljh=function(){var k=lwe(),E=Z_(function(){return{value:0}});
return[E.value,function(S){if(Aj!==null){var R;(R=JN.handleError)==null||R.call.apply(R,[JN].concat(_.$e(Mn(Error("od")))))}E.value=typeof S==="function"?S(E.value):S;k.__updateContext={nextState:k.state,isForced:!0};S=_.Ie(k.effectContext);R=Ta(!1);try{if(k.el){var V,N={},h=(N.props=k.props,N.type=k.__type,N.children=(V=k.props.children)!=null?V:[],N[a2]=!0,N);try{y0m(k.el,h,!0)}catch(a){var J,m;(m=JN.handleError)==null||m.call.apply(m,[JN].concat(_.$e(Mn(a,(J=k.__type)==null?void 0:J.TAG_NAME))))}}}finally{Ta(R),
_.Ie(S)}}]};
_.cn=function(k,E){var S=Nn,R=function(V){lI(S,function(){E(V)})};
window.addEventListener(k,R,void 0);_.bI(function(){window.removeEventListener(k,R,void 0)})};
_.e9=function(k){var E=Nn;return function(S){var R,V=(R=k.observer)!=null?R:_.en().resolve(mF);R=jEl(S);var N=[];k.showOption&&N.push(V.observe(S,function(){lI(E,function(){k.visibilityCallback(!0,S)})},k.showOption));
k.hideOption&&N.push(V.observe(S,function(){lI(E,function(){k.visibilityCallback(!1,S)})},k.hideOption));
k.prescanOption&&k.prescanCallback&&N.push(V.observe(S,function(){lI(E,function(){k.prescanCallback()})},k.prescanOption));
var h;R.visibilityMonitorKeys=((h=R.visibilityMonitorKeys)!=null?h:[]).concat(N)}};
jEl=function(k){var E;return(E=k.polymerController)!=null?E:k};
vhI=function(k,E){var S=DBA;return _.e(_.tj,null,TvC(JN.enableLazyTsx,function(){return _.e($Bh,{id:S,value:k,children:E})},function(){var R=fge(S,k);
hN(R);R=_.Ie(R);try{return E()}finally{_.Ie(R)}}))};
$Bh=function(k){var E=k.children;k=fge(k.id,k.value);hN(k);k=_.Ie(k);try{return _.e(_.tj,null,HC(E()))}finally{_.Ie(k)}};
fge=function(k,E){return Object.assign(Object.create(b5l),{id:k,contextValue:E})};
Z51=function(k){var E,S=Nn;_.sm(function(){var R=_.Ie(S),V=Ta(!E);try{if(E)y0m(E,k.children(),!0);else if(E=HC(k.children()),!(E instanceof Element))throw Error("pd");}finally{Ta(V),_.Ie(R)}},"f");
return E};
_.dBm=function(k,E){var S;E=ZK(function(){var R=Ta(!0);AN++;try{S=g0(k()),uI(!1)}catch(V){throw uI(!0),V;}finally{Ta(R)}},E===void 0?!1:E);
return[S,E]};
lgI=function(k){var E=new sEe;E.abort(k);return E.signal};
Mqi=function(){if(this.aborted){var k;throw(k=this.reason)!=null?k:new DOMException("signal is aborted without reason","AbortError");}};
QEj=function(k){var E=new sEe;k=_.n(k);for(var S=k.next();!S.done;S=k.next())if(S=S.value,S.aborted){E.abort(S.reason);break}else qfI.set(E.signal,E),zvb.add(S,E.signal);return E.signal};
O5l=function(){for(var k=_.n(zvb.get(this)),E=k.next();!E.done;E=k.next())qfI.get(E.value).abort(this.reason)};
Gc1=function(k){var E=new sEe;setTimeout(function(){E.abort(new DOMException("signal timed out","TimeoutError"))},k);
return E.signal};
CKh=function(){var k,E;return{promise:new Promise(function(S,R){k=S;E=R}),
resolve:k,reject:E}};
Ezh=function(k){var E=CKh(),S=E.promise;kbl.set(k,{promise:S,resolve:E.resolve,reject:E.reject});as||(as=[],queueMicrotask(function(){var R=[].concat(_.$e(as));as=null;var V=fu().loadMultiple(R);R=_.n(R);for(var N=R.next();!N.done;N=R.next())N=N.value,V[N].then(kbl.get(N).resolve,kbl.get(N).reject)}));
as.push(k);return S};
RBI=function(k){k=k.buf.charCodeAt(k.pos++);return Sim[k]};
tw=function(k){var E=0,S=0;do{var R=RBI(k);E|=(R&31)<<S;S+=5}while(R&32);return E<0?E+4294967296:E};
NE1=function(){var k=!0;k=k===void 0?!1:k;var E=E===void 0?!1:E;var S=S===void 0?{}:S;var R=S.cssRowKey||"",V=S.combinedSignature||"";!R&&window&&window._F_cssRowKey&&(R=window._F_cssRowKey,!V&&window._F_combinedSignature&&(V=window._F_combinedSignature));if(R&&typeof window._F_installCss!=="function")throw Error("zd");var N=S.loaderClass||_.T2,h=jHh("base-js");k=new N(Wom($GR("",h)),R,V,k,E);E=S.useCors||h&&h.hasAttribute("crossorigin");h=S.corsMode||h&&h.getAttribute("crossorigin");E&&(k.useCors_=
E);h&&(k.corsMode_=h);S.urlMaxLength&&(k.urlMaxLength=S.urlMaxLength);S.fetchPriority&&(k.fetchPriority=S.fetchPriority);var J=fu();J.JSC$10049_loader_=k;J.setBatchModeEnabled(!0);_.Vjl=S.batchingStrategy==="BATCH"?Ezh:function(m){return Promise.resolve(J.load(m))}};
i9C=function(k,E,S){III(k,E);k[E][nzI].unshift(S)};
III=function(k,E){if(!k[E]||!k[E][nzI]){var S=k[E],R=S?[S]:[];k[E]=function(){for(var V=_.n(R),N=V.next();!N.done;N=V.next())N.value.apply(this,arguments)};
k[E][nzI]=R}};
hBI=function(k){if(!k)return[];var E=[];k=_.n(k);for(var S=k.next();!S.done;S=k.next())S=S.value,Array.isArray(S)?E.push.apply(E,_.$e(hBI(S))):E.push(S);return E};
_.Pn=function(k,E){if(k&&JQR.test(k)||k==="//")return k;if(cQm===void 0){cQm=!1;try{var S=new URL("b","http://a");S.pathname="c%20d";cQm=S.href==="http://a/c%20d"}catch(R){}}E||(E=document.baseURI||window.location.href);if(cQm)try{return(new URL(k,E)).href}catch(R){return k}wm||(wm=document.implementation.createHTMLDocument("temp"),wm.base=wm.createElement("base"),wm.head.appendChild(wm.base),wm.anchor=wm.createElement("a"),wm.body.appendChild(wm.anchor));wm.base.href=E;wm.anchor.href=k;return wm.anchor.href||
k};
eBl=function(k,E){return k.replace(mhj,function(S,R,V,N){return R+"'"+_.Pn(V.replace(/["']/g,""),E)+"'"+N})};
aIe=function(k){return k.substring(0,k.lastIndexOf("/")+1)};
wZ1=function(){tjh=!1;for(var k=Bn.length,E=0;E<k;E++){var S=Bn[E];if(S)try{S()}catch(R){setTimeout(function(){throw R;})}}Bn.splice(0,k);
TEb+=k};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(k){console.log("["+k.is+"]: registered")};
BEI=function(k){Prh.push(k)};
Y6=function(k){return Yit[k]||(Yit[k]=k.indexOf("-")<0?k:k.replace(WOi,function(E){return E[1].toUpperCase()}))};
Wn=function(k){return Yit[k]||(Yit[k]=k.replace(FOl,"-$1").toLowerCase())};
yQR=function(k,E){var S=E.parentInfo&&yQR(k,E.parentInfo);if(S)for(k=S.firstChild,S=0;k;k=k.nextSibling){if(E.parentIndex===S++)return k}else return k};
ozi=function(k,E){k=k._methodHost||k;return function(S){if(k[E])k[E](S,S.detail);else console.warn("listener method `"+E+"` not defined")}};
Ft=function(k){return k.indexOf(".")>=0};
yH=function(k){var E=k.indexOf(".");return E===-1?k:k.slice(0,E)};
XZC=function(k,E){return k.indexOf(E+".")===0};
Xt=function(k,E){return E.indexOf(k+".")===0};
gm=function(k,E,S){return E+S.slice(k.length)};
gzi=function(k,E){return k===E||XZC(k,E)||Xt(k,E)};
U2=function(k){if(Array.isArray(k)){for(var E=[],S=0;S<k.length;S++)for(var R=k[S].toString().split("."),V=0;V<R.length;V++)E.push(R[V]);return E.join(".")}return k};
Uht=function(k){return Array.isArray(k)?U2(k).split("."):k.toString().split(".")};
Hn=function(k,E,S){E=Uht(E);for(var R=0;R<E.length;R++){if(!k)return;k=k[E[R]]}S&&(S.path=E.join("."));return k};
H91=function(k,E,S){var R=Uht(E),V=R[R.length-1];if(R.length>1){for(E=0;E<R.length-1;E++)if(k=k[R[E]],!k)return;k[V]=S}else k[E]=S;return R.join(".")};
KOe=function(k,E,S){var R=k[E];if(!R)R=k[E]={};else if(!k.hasOwnProperty(E)&&(R=k[E]=Object.create(k[E]),S))for(var V in R)for(k=R[V],E=R[V]=Array(k.length),S=0;S<k.length;S++)E[S]=k[S];return R};
pZ=function(k,E,S,R,V,N){if(E){var h=!1,J=KZ++,m;for(m in S){var a=V?yH(m):m;if(a=E[a])for(var T=0,w=a.length,P=void 0;T<w&&(P=a[T]);T++)P.info&&P.info.lastRun===J||V&&!pZj(m,P.trigger)||(P.info&&(P.info.lastRun=J),P.fn(k,m,S,R,P.info,V,N),h=!0)}return h}return!1};
pZj=function(k,E){if(E){var S=E.name;return S==k||!(!E.structured||!XZC(S,k))||!(!E.wildcard||!Xt(S,k))}return!0};
AQh=function(k,E,S,R,V){E=typeof V.method==="string"?k[V.method]:V.method;S=V.property;E?E.call(k,k.__data[S],R[S]):V.dynamicFn||console.warn("observer method `"+V.method+"` not defined")};
rQh=function(k,E,S,R){S={value:S,queueProperty:!0};R&&(S.path=R);(0,_.Aw)(k).dispatchEvent(new CustomEvent(E,{detail:S}))};
uwi=function(k,E,S,R,V,N){N=(R=(N?yH(E):E)!=E?E:null)?Hn(k,R):k.__data[E];R&&N===void 0&&(N=S[E]);rQh(k,V.eventName,N,R)};
xhI=function(k,E,S,R,V){S=k.__data[E];rm&&(S=rm(S,V.attrName,"attribute",k));k._propertyToAttribute(E,V.attrName,S)};
j31=function(k){var E=k.constructor.__orderedComputedDeps;if(!E){E=new Map;for(var S=k.__computeEffects,R=LOh(k),V=R.counts,N=R.ready,h=R.total;R=N.shift();)E.set(R,E.size),(R=S[R])&&R.forEach(function(J){J=J.info.methodInfo;--h;--V[J]===0&&N.push(J)});
h!==0&&console.warn("Computed graph for "+k.localName+" incomplete; circular?");k.constructor.__orderedComputedDeps=E}return E};
LOh=function(k){var E=k.__computeInfo,S={};k=k.__computeEffects;var R=[],V=0,N;for(N in E){var h=E[N];V+=S[N]=h.args.filter(function(m){return!m.literal}).length+(h.dynamicFn?1:0)}for(var J in k)E[J]||R.push(J);
return{counts:S,ready:R,total:V}};
$hm=function(k,E,S,R,V){E=DhC(k,E,S,R,V);if(E===u2)return!1;V=V.methodInfo;if(k.__dataHasAccessor&&k.__dataHasAccessor[V])return k._setPendingProperty(V,E,!0);k[V]=E;return!1};
b9b=function(k,E,S,R,V,N,h){S.bindings=S.bindings||[];R={kind:R,target:V,parts:N,literal:h,isCompound:N.length!==1};S.bindings.push(R);R.target&&R.kind!="attribute"&&R.kind!="text"&&!R.isCompound&&R.parts[0].mode==="{"&&(S=R.parts[0],N=S.negate,R.listenerEvent=S.event||Wn(V)+"-changed",R.listenerNegate=N);V=E.nodeInfoList.length;for(S=0;S<R.parts.length;S++){var J=R.parts[S];J.compoundIndex=S;N=k;h=E;var m=R,a=J,T=V;if(!a.literal)if(m.kind==="attribute"&&m.target[0]==="-")console.warn("Cannot set attribute "+
m.target+' because "-" is not a valid attribute starting character');else for(J=a.dependencies,m={index:T,binding:m,part:a,evaluator:N},a=0;a<J.length;a++)T=J[a],typeof T=="string"&&(T=fIl(T),T.wildcard=!0),N._addTemplatePropertyEffect(h,T.rootProperty,{fn:vzC,info:m,trigger:T})}};
vzC=function(k,E,S,R,V,N,h){h=h[V.index];var J=V.binding,m=V.part;N&&m.source&&E.length>m.source.length&&J.kind=="property"&&!J.isCompound&&h.__isPropertyEffectsClient&&h.__dataHasAccessor&&h.__dataHasAccessor[J.target]?(S=S[E],E=gm(m.source,J.target,E),h._setPendingPropertyOrPath(E,S,!1,!0)&&k._enqueueClient(h)):(E=V.evaluator._evaluateBinding(k,m,E,S,R,N),E!==u2&&(J.isCompound&&(S=h.__dataCompoundStorage[J.target],S[m.compoundIndex]=E,E=S.join("")),J.kind==="attribute"||J.target!=="textContent"&&
(J.target!=="value"||h.localName!=="input"&&h.localName!=="textarea")||(E=E==void 0?"":E),m=E,rm&&(m=rm(m,J.target,J.kind,h)),J.kind=="attribute"?k._valueToNodeAttribute(h,m,J.target):(J=J.target,h.__isPropertyEffectsClient&&h.__dataHasAccessor&&h.__dataHasAccessor[J]?h.__readOnly&&h.__readOnly[J]||h._setPendingProperty(J,m)&&k._enqueueClient(h):k._setUnmanagedPropertyToNode(h,J,m))))};
Z9I=function(k,E,S){if(S.listenerEvent){var R=S.parts[0];k.addEventListener(S.listenerEvent,function(V){var N=S.target,h=R.source,J=R.negate,m=V.detail,a=m&&m.path;a?(h=gm(N,h,a),V=m&&m.value):V=V.currentTarget[N];E.__readOnly&&E.__readOnly[h]||!E._setPendingPropertyOrPath(h,J?!V:V,!0,!!a)||m&&m.queueProperty||E._invalidateProperties()})}};
dhe=function(k,E,S,R,V,N){N=E.static||N&&(typeof N!=="object"||N[E.methodName]);V={methodName:E.methodName,args:E.args,methodInfo:V,dynamicFn:N};for(var h=0,J=void 0;h<E.args.length&&(J=E.args[h]);h++)J.literal||k._addPropertyEffect(J.rootProperty,S,{fn:R,info:V,trigger:J});N&&k._addPropertyEffect(E.methodName,S,{fn:R,info:V});return V};
DhC=function(k,E,S,R,V){R=k._methodHost||k;var N=R[V.methodName];if(N)return k=k._marshalArgs(V.args,E,S),k===u2?u2:N.apply(R,k);V.dynamicFn||console.warn("method `"+V.methodName+"` not defined")};
s3l=function(k){for(var E="",S=0;S<k.length;S++)E+=k[S].literal||"";return E};
qiC=function(k){if(k=k.match(/([^\s]+?)\(([\s\S]*)\)/)){var E={methodName:k[1],static:!0,args:lII};return k[2].trim()?Mje(k[2].replace(/\\,/g,"&comma;").split(","),E):E}return null};
Mje=function(k,E){E.args=k.map(function(S){S=fIl(S);S.literal||(E.static=!1);return S},this);
return E};
fIl=function(k){k=k.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var E={name:k,value:"",literal:!1},S=k[0];S==="-"&&(S=k[1]);S>="0"&&S<="9"&&(S="#");switch(S){case "'":case '"':E.value=k.slice(1,-1);E.literal=!0;break;case "#":E.value=Number(k),E.literal=!0}E.literal||(E.rootProperty=yH(k),E.structured=Ft(k),E.structured&&(E.wildcard=k.slice(-2)==".*",E.wildcard&&(E.name=k.slice(0,-2))));return E};
zBl=function(k,E,S){k=Hn(k,S);k===void 0&&(k=E[S]);return k};
Q3R=function(k,E,S,R){R={indexSplices:R};x6&&!k._overrideLegacyUndefined&&(E.splices=R);k.notifyPath(S+".splices",R);k.notifyPath(S+".length",E.length);x6&&!k._overrideLegacyUndefined&&(R.indexSplices=[])};
LZ=function(k,E,S,R,V,N){Q3R(k,E,S,[{index:R,addedCount:V,removed:N,object:E,type:"splice"}])};
O9t=function(k){k=eBl((k.body?k.body:k).textContent,k.baseURI);var E=document.createElement("style");E.textContent=k;return E};
CrI=function(k){k=k.trim().split(/\s+/);for(var E=[],S=0;S<k.length;S++)E.push.apply(E,_.$e(Gbh(k[S])));return E};
Gbh=function(k){var E=j9.import(k);if(!E)return console.warn("Could not find style data in module named",k),[];if(E._styles===void 0){k=[];k.push.apply(k,_.$e(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E)));var S=E.querySelector("template");S&&k.push.apply(k,_.$e(keC(S,E.assetpath)));E._styles=k}return E._styles};
keC=function(k,E){if(!k._styles){for(var S=[],R=k.content.querySelectorAll("style"),V=0;V<R.length;V++){var N=R[V],h=N.getAttribute("include");h&&S.push.apply(S,_.$e(CrI(h).filter(function(J,m,a){return a.indexOf(J)===m})));
E&&(N.textContent=eBl(N.textContent,E));S.push(N)}k._styles=S}return k._styles};
Eqm=function(k){return(k=j9.import(k))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(k):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(k){var E=[];k=k.querySelectorAll("link[rel=import][type~=css]");for(var S=0;S<k.length;S++){var R=k[S];if(R.import){var V=R.import;if((R=R.hasAttribute("shady-unscoped"))&&!V._unscopedStyle){var N=O9t(V);N.setAttribute("shady-unscoped","");V._unscopedStyle=N}else V._style||(V._style=O9t(V));E.push(R?V._unscopedStyle:V._style)}}return E};
R_i=function(k){k=k.trim().split(/\s+/);for(var E="",S=0;S<k.length;S++)E+=SBb(k[S]);return E};
SBb=function(k){var E=j9.import(k);if(E&&E._cssText===void 0){var S=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(E),R=E.querySelector("template");R&&(S+=VHC(R,E.assetpath));E._cssText=S||null}E||console.warn("Could not find style data in module named",k);return E&&E._cssText||""};
VHC=function(k,E){var S="";k=keC(k,E);for(E=0;E<k.length;E++){var R=k[E];R.parentNode&&R.parentNode.removeChild(R);S+=R.textContent}return S};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(k){var E="";k=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(k);for(var S=0;S<k.length;S++)E+=k[S].textContent;return E};
Dl=function(k,E){return{index:k,removed:[],addedCount:E}};
IOj=function(k,E,S,R){var V=0,N=0,h=0,J=0,m=Math.min(E-V,R-N);if(V==0&&N==0)a:{for(h=0;h<m;h++)if(k[h]!==S[h])break a;h=m}if(E==k.length&&R==S.length){J=k.length;for(var a=S.length,T=0;T<m-h&&NyR(k[--J],S[--a]);)T++;J=T}V+=h;N+=h;E-=J;R-=J;if(E-V==0&&R-N==0)return[];if(V==E){for(E=Dl(V,0);N<R;)E.removed.push(S[N++]);return[E]}if(N==R)return[Dl(V,E-V)];m=V;h=N;R=R-h+1;J=E-m+1;E=Array(R);for(a=0;a<R;a++)E[a]=Array(J),E[a][0]=a;for(a=0;a<J;a++)E[0][a]=a;for(a=1;a<R;a++)for(T=1;T<J;T++)if(k[m+T-1]===
S[h+a-1])E[a][T]=E[a-1][T-1];else{var w=E[a-1][T]+1,P=E[a][T-1]+1;E[a][T]=w<P?w:P}m=E.length-1;h=E[0].length-1;R=E[m][h];for(k=[];m>0||h>0;)m==0?(k.push(2),h--):h==0?(k.push(3),m--):(J=E[m-1][h-1],a=E[m-1][h],T=E[m][h-1],w=a<T?a<J?a:J:T<J?T:J,w==J?(J==R?k.push(0):(k.push(1),R=J),m--,h--):w==a?(k.push(3),m--,R=a):(k.push(2),h--,R=T));k.reverse();E=void 0;m=[];for(h=0;h<k.length;h++)switch(k[h]){case 0:E&&(m.push(E),E=void 0);V++;N++;break;case 1:E||(E=Dl(V,0));E.addedCount++;V++;E.removed.push(S[N]);
N++;break;case 2:E||(E=Dl(V,0));E.addedCount++;V++;break;case 3:E||(E=Dl(V,0)),E.removed.push(S[N]),N++}E&&m.push(E);return m};
nqi=function(k,E){return IOj(k,k.length,E,E.length)};
NyR=function(k,E){return k===E};
h_C=function(k){if(k instanceof im1)return k.value;throw Error("Hd`"+k);};
J9I=function(k,E){for(var S in E)S===null?k.style.removeProperty(S):k.style.setProperty(S,E[S])};
c9i=function(k,E){return(k=window.getComputedStyle(k).getPropertyValue(E))?k.trim():""};
tHm=function(k){requestAnimationFrame(function(){mXI?mXI(k):(e_j||(e_j=new Promise(function(E){aOR=E}),document.readyState==="complete"?aOR():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&aOR()})),e_j.then(function(){k&&k()}))})};
Pbh=function(k){Tyj=k&&k.shimcssproperties?!1:wtI||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
y9l=function(k){if(!(Byh.indexOf(k)>-1)&&k!=="touchend"&&YBA&&WJI&&FJj)return{passive:!0}};
UXe=function(k){for(var E=oqR?["click"]:Byh,S=0,R;S<E.length;S++)R=E[S],k?(Xth.length=0,document.addEventListener(R,gqe,!0)):document.removeEventListener(R,gqe,!0)};
$6=function(k){var E=k.type;return Byh.indexOf(E)>-1?E==="mousemove"?(E=k.buttons===void 0?1:k.buttons,k instanceof window.MouseEvent&&!HmI&&(E=KJC[k.which]||0),!!(E&1)):(k.button===void 0?0:k.button)===0:!1};
ptb=function(k){if(k.type==="click"){if(k.detail===0)return!0;var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k);if(!E.nodeType||E.nodeType!==Node.ELEMENT_NODE)return!0;E=E.getBoundingClientRect();var S=k.pageX;k=k.pageY;return!(S>=E.left&&S<=E.right&&k>=E.top&&k<=E.bottom)}return!1};
A9I=function(k,E,S){k.movefn=E;k.upfn=S;document.addEventListener("mousemove",E);document.addEventListener("mouseup",S)};
vn=function(k){document.removeEventListener("mousemove",k.movefn);document.removeEventListener("mouseup",k.upfn);k.movefn=null;k.upfn=null};
r9I=function(k,E){for(var S=document.elementFromPoint(k,E),R=S;R&&R.shadowRoot&&!window.ShadyDOM;){var V=R;R=R.shadowRoot.elementFromPoint(k,E);if(V===R)break;R&&(S=R)}return S};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(k){var E=urt(k);return E.length>0?E[0]:k.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(k){var E=k.type,S=k.currentTarget.__polymerGestures;if(S&&(S=S[E])){if(!k.__polymerGesturesHandled&&(k.__polymerGesturesHandled={},E.slice(0,5)==="touch")){var R=k.changedTouches[0];E==="touchstart"&&k.touches.length===1&&(xX1=R.identifier);if(xX1!==R.identifier)return;YBA||(E==="touchstart"||E==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k)}R=
k.__polymerGesturesHandled;if(!R.skip){for(var V=0,N;V<b2.length;V++)N=b2[V],S[N.name]&&!R[N.name]&&N.flow&&N.flow.start.indexOf(k.type)>-1&&N.reset&&N.reset();for(V=0;V<b2.length;V++)N=b2[V],S[N.name]&&!R[N.name]&&(R[N.name]=!0,N[E](k))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(k){var E=k.changedTouches[0],S=k.type;if(S==="touchstart")LJi=E.clientX,jOh=E.clientY,DXb=!1;else if(S==="touchmove"&&!DXb){DXb=!0;S="auto";for(var R=urt(k),V=0,N;V<R.length;V++)if(N=R[V],N.__polymerGesturesTouchAction){S=N.__polymerGesturesTouchAction;break}R=!1;V=Math.abs(LJi-E.clientX);E=Math.abs(jOh-E.clientY);k.cancelable&&(S==="none"?R=!0:S==="pan-x"?R=E>V:S==="pan-y"&&(R=V>E));R?k.preventDefault():
Zl("track")}};
s2=function(k,E,S){return dm[E]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k,E,S),!0):!1};
l2=function(k,E,S){return dm[E]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k,E,S),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(k,E,S){var R=dm[E],V=R.deps,N=R.name,h=k.__polymerGestures;h||(k.__polymerGestures=h={});for(var J=0,m,a;J<V.length;J++)m=V[J],oqR&&Byh.indexOf(m)>-1&&m!=="click"||((a=h[m])||(h[m]=a={_count:0}),a._count===0&&k.addEventListener(m,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,y9l(m)),a[N]=(a[N]||0)+1,a._count=(a._count||0)+1);k.addEventListener(E,S);R.touchAction&&_.Mm(k,R.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(k,E,S){var R=dm[E],V=R.deps;R=R.name;var N=k.__polymerGestures;if(N)for(var h=0,J,m;h<V.length;h++)J=V[h],(m=N[J])&&m[R]&&(m[R]=(m[R]||1)-1,m._count=(m._count||1)-1,m._count===0&&k.removeEventListener(J,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,y9l(J)));k.removeEventListener(E,S)};
$XR=function(k){b2.push(k);for(var E=0;E<k.emits.length;E++)dm[k.emits[E]]=k};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(k){for(var E=0,S;E<b2.length;E++){S=b2[E];for(var R=0,V;R<S.emits.length;R++)if(V=S.emits[R],V===k)return S}return null};
_.Mm=function(k,E){YBA&&k instanceof HTMLElement&&QH.run(function(){k.style.touchAction=E});
k.__polymerGesturesTouchAction=E};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(k,E,S){E=new Event(E,{bubbles:!0,cancelable:!0,composed:!0});E.detail=S;(0,_.Aw)(k).dispatchEvent(E);E.defaultPrevented&&(k=S.preventer||S.sourceEvent)&&k.preventDefault&&k.preventDefault()};
Zl=function(k){k=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k);k.info&&(k.info.prevent=!0)};
O2=function(k,E,S,R){E&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,k,{x:S.clientX,y:S.clientY,sourceEvent:S,preventer:R,prevent:function(V){return Zl(V)}})};
fOb=function(k,E,S){if(k.prevent)return!1;if(k.started)return!0;S=Math.abs(k.y-S);return Math.abs(k.x-E)>=5||S>=5};
vql=function(k,E,S){if(E){var R=k.moves[k.moves.length-2],V=k.moves[k.moves.length-1],N=V.x-k.x,h=V.y-k.y,J=0;if(R){var m=V.x-R.x;J=V.y-R.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,"track",{state:k.state,x:S.clientX,y:S.clientY,dx:N,dy:h,ddx:m,ddy:J,sourceEvent:S,hover:function(){return r9I(S.clientX,S.clientY)}})}};
Zmm=function(k,E,S){var R=Math.abs(E.clientX-k.x),V=Math.abs(E.clientY-k.y),N=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S||E);!N||bmm[N.localName]&&N.hasAttribute("disabled")||!(isNaN(R)||isNaN(V)||R<=25&&V<=25||ptb(E))||k.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(N,"tap",{x:E.clientX,y:E.clientY,sourceEvent:E,preventer:S})};
dXi=function(k,E,S,R,V){var N;V&&(N=typeof S==="object"&&S!==null)&&(R=k.__dataTemp[E]);R=R!==S&&(R===R||S===S);N&&R&&(k.__dataTemp[E]=S);return R};
lOi=function(){if(G2&&!CZ){if(!sOi){sOi=!0;var k=document.createElement("style");k.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(k)}return!0}return!1};
qBh=function(){return MHe};
z_l=function(k,E){MHe=k;Object.setPrototypeOf(k,E.prototype);new E;MHe=null};
QOC=function(k,E){for(var S=0;S<E.length;S++){var R=E[S];if(!!k!=!!R.__hideTemplateChildren__)if(R.nodeType===Node.TEXT_NODE)k?(R.__polymerTextContent__=R.textContent,R.textContent=""):R.textContent=R.__polymerTextContent__;else if(R.localName==="slot")if(k)R.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Aw)((0,_.Aw)(R).parentNode).replaceChild(R.__polymerReplaced__,R);else{var V=R.__polymerReplaced__;V&&(0,_.Aw)((0,_.Aw)(V).parentNode).replaceChild(R,V)}else R.style&&(k?(R.__polymerDisplay__=
R.style.display,R.style.display="none"):R.style.display=R.__polymerDisplay__);R.__hideTemplateChildren__=k;R._showHideChildren&&R._showHideChildren(k)}};
Omb=function(k){return(k=k.__dataHost)&&k._methodHost||k};
kn1=function(k,E,S){var R=S.mutableData?Geb:kF;EJ.mixin&&(R=EJ.mixin(R));var V=function(){return R.apply(this,arguments)||this};
_.y(V,R);V.prototype.__templatizeOptions=S;V.prototype._bindTemplate(k);Cbl(V,k,E,S);return V};
NFh=function(k,E,S,R){var V=S.forwardHostProp;if(V&&E.hasHostProps){var N=k.localName=="template",h=E.templatizeTemplateClass;if(!h){if(N){var J=S.mutableData?E71:SU1;h=function(){return J.apply(this,arguments)||this};
_.y(h,J);h=E.templatizeTemplateClass=h}else{var m=k.constructor;h=function(){return m.apply(this,arguments)||this};
_.y(h,m);h=E.templatizeTemplateClass=h}var a=E.hostProps,T;for(T in a)h.prototype._addPropertyEffect("_host_"+T,h.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:RQh(V)}),h.prototype._createNotifyingProperty("_host_"+T);SX&&R&&VzI(E,S,R)}k.__dataProto&&Object.assign(k.__data,k.__dataProto);if(N)z_l(k,h),k.__dataTemp={},k.__dataPending=null,k.__dataOld=null,k._enableProperties();else{Object.setPrototypeOf(k,h.prototype);E=E.hostProps;for(var w in E)w="_host_"+w,w in k&&(E=k[w],delete k[w],k.__data[w]=
E)}}};
RQh=function(k){return function(E,S,R){k.call(E.__templatizeOwner,S.substring(6),R[S])}};
Cbl=function(k,E,S,R){var V=S.hostProps||{},N;for(N in R.instanceProps){delete V[N];var h=R.notifyInstanceProp;h&&k.prototype._addPropertyEffect(N,k.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Is1(h)})}if(R.forwardHostProp&&E.__dataHost)for(var J in V)S.hasHostProps||(S.hasHostProps=!0),k.prototype._addPropertyEffect(J,k.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:n7I()})};
Is1=function(k){return function(E,S,R){k.call(E.__templatizeOwner,E,S,R[S])}};
n7I=function(){return function(k,E,S){k.__dataHost._setPendingPropertyOrPath("_host_"+E,S[E],!0,!0)}};
EJ=function(k,E,S){if(Rd&&!Omb(k))throw Error("Nd");S=S||{};if(k.__templatizeOwner)throw Error("Od");k.__templatizeOwner=E;var R=(E?E.constructor:kF)._parseTemplate(k),V=R.templatizeInstanceClass;V||(V=kn1(k,R,S),R.templatizeInstanceClass=V);var N=Omb(k);NFh(k,R,S,N);S=function(){return V.apply(this,arguments)||this};
_.y(S,V);S.prototype._methodHost=N;S.prototype.__dataHost=k;S.prototype.__templatizeOwner=E;S.prototype.__hostProps=R.hostProps;return S};
VzI=function(k,E,S){S=S.constructor._properties;k=k.propertyEffects;E=E.instanceProps;for(var R in k)if(!(S[R]||E&&E[R]))for(var V=k[R],N=0;N<V.length;N++){var h=V[N].info.part;if(!h.signature||!h.signature.static){console.warn("Property '"+R+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
iLC=function(k,E){for(var S;E;)if(S=E.__dataHost?E:E.__templatizeInstance)if(S.__dataHost!=k)E=S.__dataHost;else return S;else E=(0,_.Aw)(E).parentNode;return null};
Vs=function(k){return k.localName==="slot"};
hQC=function(){for(var k=N6.prototype,E="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),S={},R=0;R<E.length;S={method$jscomp$33:void 0},R++)S.method$jscomp$33=E[R],k[S.method$jscomp$33]=function(V){return function(){return this.node[V.method$jscomp$33].apply(this.node,arguments)}}(S)};
J2j=function(k,E){for(var S={},R=0;R<E.length;S={name$jscomp$448:void 0},R++)S.name$jscomp$448=E[R],Object.defineProperty(k,S.name$jscomp$448,{get:function(V){return function(){return this.node[V.name$jscomp$448]}}(S),
configurable:!0})};
c2h=function(){for(var k=N6.prototype,E=["textContent","innerHTML","className"],S={},R=0;R<E.length;S={name$jscomp$449:void 0},R++)S.name$jscomp$449=E[R],Object.defineProperty(k,S.name$jscomp$449,{get:function(V){return function(){return this.node[V.name$jscomp$449]}}(S),
set:function(V){return function(N){this.node[V.name$jscomp$449]=N}}(S),
configurable:!0})};
mxt=function(){Id=document.documentElement.getAttribute("dir");Id=document.documentElement.getAttribute("dir");for(var k=0;k<nf.length;k++){var E=nf[k];E.__autoDirOptOut||E.setAttribute("dir",Id)}};
TF1=function(){ic=!0;requestAnimationFrame(function(){ic=!1;eQt(ase);setTimeout(function(){for(var k=0,E=hB.length;k<E;k++)tzl(hB.shift())})})};
eQt=function(k){for(;k.length;)tzl(k.shift())};
tzl=function(k){var E=k[0],S=k[1];k=k[2];try{S.apply(E,k)}catch(R){setTimeout(function(){throw R;})}};
_.wSh=function(k,E,S){ic||TF1();ase.push([k,E,S])};
_.JB=function(k,E,S){ic||TF1();hB.push([k,E,S])};
YUt=function(k,E){E=E===void 0?!1:E;if(!PTC||!BFl||!PTC.handlesDynamicScoping)return null;var S=BFl.ScopingShim;if(!S)return null;var R=S.scopeForNode(k),V=(0,_.Aw)(k).getRootNode(),N=function(h){if((0,_.Aw)(h).getRootNode()===V){var J=Array.from(PTC.nativeMethods.querySelectorAll.call(h,"*"));J.push(h);for(h=0;h<J.length;h++){var m=J[h];if((0,_.Aw)(m).getRootNode()===V){var a=S.currentScopeForNode(m);a!==R&&(a!==""&&S.unscopeNode(m,a),S.scopeNode(m,R))}}}};
N(k);return E?(E=new MutationObserver(function(h){for(var J=0;J<h.length;J++)for(var m=h[J],a=0;a<m.addedNodes.length;a++){var T=m.addedNodes[a];T.nodeType===Node.ELEMENT_NODE&&N(T)}}),E.observe(k,{childList:!0,
subtree:!0}),E):null};
WV1=function(){document.body.removeAttribute("unresolved")};
g7C=function(k){var E=k=k.replace(FVh,"").replace(y2I,""),S=new o7m;S.start=0;S.end=E.length;for(var R=S,V=0,N=E.length;V<N;V++)if(E[V]==="{"){R.rules||(R.rules=[]);var h=R,J=h.rules[h.rules.length-1]||null;R=new o7m;R.start=V+1;R.parent=h;R.previous=J;h.rules.push(R)}else E[V]==="}"&&(R.end=V+1,R=R.parent||S);return XSm(S,k)};
XSm=function(k,E){var S=E.substring(k.start,k.end-1);k.parsedCssText=k.cssText=S.trim();k.parent&&(S=E.substring(k.previous?k.previous.end:k.parent.start,k.start-1),S=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(S),S=S.replace(Uxt," "),S=S.substring(S.lastIndexOf(";")+1),S=k.parsedSelector=k.selector=S.trim(),k.atRule=S.indexOf("@")===0,k.atRule?S.indexOf("@media")===0?k.type=4:S.match(HLj)&&(k.type=7,k.keyframesName=k.selector.split(Uxt).pop()):S.indexOf("--")===
0?k.type=1E3:k.type=1);if(S=k.rules)for(var R=0,V=S.length,N=void 0;R<V&&(N=S[R]);R++)XSm(N,E);return k};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(k){return k.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var E=arguments[1],S=6-E.length;S--;)E="0"+E;return"\\"+E})};
KVt=function(k,E,S){S=S===void 0?"":S;var R="";if(k.cssText||k.rules){var V=k.rules;if(V&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(V))for(var N=0,h=V.length,J=void 0;N<h&&(J=V[N]);N++)R=KVt(J,E,R);else E?E=k.cssText:(E=k.cssText,E=E.replace(pSI,"").replace(A21,""),E=E.replace(r2C,"").replace(u9h,"")),(R=E.trim())&&(R="  "+R+"\n")}R&&(k.selector&&(S+=k.selector+" {\n"),S+=R,k.selector&&(S+="}\n\n"));return S};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(k){k=k[0];return!!k&&!!k.selector&&k.selector.indexOf("--")===0};
LVm=function(k){if(k=xxt[k])k._applyShimCurrentVersion=k._applyShimCurrentVersion||0,k._applyShimValidatingVersion=k._applyShimValidatingVersion||0,k._applyShimNextVersion=(k._applyShimNextVersion||0)+1};
j4e=function(k){return k._applyShimCurrentVersion===k._applyShimNextVersion};
$xm=function(k){k._applyShimValidatingVersion=k._applyShimNextVersion;k._validating||(k._validating=!0,DxI.then(function(){k._applyShimCurrentVersion=k._applyShimNextVersion;k._validating=!1}))};
v7h=function(k){if(!k)return"";typeof k==="string"&&(k=g7C(k));return KVt(k,fsj)};
bLI=function(k){!k.__cssRules&&k.textContent&&(k.__cssRules=g7C(k.textContent));return k.__cssRules||null};
dxA=function(k,E,S,R){if(k){var V=!1,N=k.type;if(R&&N===4){var h=k.selector.match(ZL1);h&&(window.matchMedia(h[1]).matches||(V=!0))}N===1?E(k):S&&N===7?S(k):N===1E3&&(V=!0);if((k=k.rules)&&!V)for(V=0,N=k.length,h=void 0;V<N&&(h=k[V]);V++)dxA(h,E,S,R)}};
s4l=function(k,E){var S=k.indexOf("var(");if(S===-1)return E(k,"","","");a:{var R=0;var V=S+3;for(var N=k.length;V<N;V++)if(k[V]==="(")R++;else if(k[V]===")"&&--R===0)break a;V=-1}R=k.substring(S+4,V);S=k.substring(0,S);k=s4l(k.substring(V+1),E);N=R.indexOf(",");if(N===-1)return E(S,R.trim(),"",k);V=R.substring(0,N).trim();R=R.substring(N+1).trim();return E(S,V,R,k)};
lsl=function(k){if(ck!==void 0)return ck;if(k.__cssBuild===void 0){var E=k.getAttribute("css-build");if(E)k.__cssBuild=E;else{a:{E=k.localName==="template"?k.content.firstChild:k.firstChild;if(E instanceof Comment&&(E=E.textContent.trim().split(":"),E[0]==="css-build")){E=E[1];break a}E=""}if(E!==""){var S=k.localName==="template"?k.content.firstChild:k.firstChild;S.parentNode.removeChild(S)}k.__cssBuild=E}}return k.__cssBuild||""};
qUC=function(k,E,S,R){for(var V=E._noAccessors,N=Object.getOwnPropertyNames(E),h=0;h<N.length;h++){var J=N[h];if(!(J in R))if(V)k[J]=E[J];else{var m=Object.getOwnPropertyDescriptor(E,J);m&&(m.configurable=!0,Object.defineProperty(k,J,m))}}for(var a in Mzh)E[a]&&(S[a]=S[a]||[],S[a].push(E[a]))};
zQI=function(k,E,S){E=E||[];for(var R=k.length-1;R>=0;R--){var V=k[R];V?Array.isArray(V)?zQI(V,E):E.indexOf(V)<0&&(!S||S.indexOf(V)<0)&&E.unshift(V):console.warn("behavior is null, check for missing or 404 import")}return E};
Q41=function(k,E){for(var S in E){var R=k[S],V=E[S];k[S]=!("value"in V)&&R&&"value"in R?Object.assign({value:R.value},V):V}};
CTj=function(k,E,S){var R={},V=function(){return E.apply(this,arguments)||this};
_.y(V,E);V._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(h)for(var m=0,a;m<h.length;m++)a=h[m],a.properties&&this.createProperties(a.properties),a.observers&&this.createObservers(a.observers,a.properties);k.properties&&this.createProperties(k.properties);k.observers&&this.createObservers(k.observers,k.properties);this._prepareTemplate()}else E._finalizeClass.call(this)};
V.prototype.created=function(){E.prototype.created.call(this);var m=R.created;if(m)for(var a=0;a<m.length;a++)m[a].call(this)};
V.prototype._registered=function(){var m=V.prototype;if(!m.hasOwnProperty("__hasRegisterFinished")){m.__hasRegisterFinished=!0;E.prototype._registered.call(this);G2&&J(m);m=Object.getPrototypeOf(this);var a=R.beforeRegister;if(a)for(var T=0;T<a.length;T++)a[T].call(m);if(a=R.registered)for(T=0;T<a.length;T++)a[T].call(m)}};
V.prototype._applyListeners=function(){E.prototype._applyListeners.call(this);var m=R.listeners;if(m)for(var a=0;a<m.length;a++){var T=m[a];if(T)for(var w in T)this._addMethodEventListenerToNode(this,w,T[w])}};
V.prototype._ensureAttributes=function(){var m=R.hostAttributes;if(m)for(var a=m.length-1;a>=0;a--){var T=m[a],w;for(w in T)this._ensureAttribute(w,T[w])}E.prototype._ensureAttributes.call(this)};
V.prototype.ready=function(){E.prototype.ready.call(this);var m=R.ready;if(m)for(var a=0;a<m.length;a++)m[a].call(this)};
V.prototype.attached=function(){E.prototype.attached.call(this);var m=R.attached;if(m)for(var a=0;a<m.length;a++)m[a].call(this)};
V.prototype.detached=function(){E.prototype.detached.call(this);var m=R.detached;if(m)for(var a=0;a<m.length;a++)m[a].call(this)};
V.prototype.attributeChanged=function(m,a,T){E.prototype.attributeChanged.call(this);var w=R.attributeChanged;if(w)for(var P=0;P<w.length;P++)w[P].call(this,m,a,T)};
_.mt.Object.defineProperties(V,{properties:{configurable:!0,enumerable:!0,get:function(){var m={};if(h)for(var a=0;a<h.length;a++)Q41(m,h[a].properties);Q41(m,k.properties);return m}},
observers:{configurable:!0,enumerable:!0,get:function(){var m=[];if(h)for(var a=0,T;a<h.length;a++)T=h[a],T.observers&&(m=m.concat(T.observers));k.observers&&(m=m.concat(k.observers));return m}}});
if(S){Array.isArray(S)||(S=[S]);var N=E.prototype.behaviors;var h=zQI(S,null,N);V.prototype.behaviors=N?N.concat(S):h}var J=function(m){if(h)for(var a=h,T=0;T<a.length;T++)qUC(m,a[T],R,OLl);qUC(m,k,R,Gnj)};
G2||J(V.prototype);V.generatedFrom=k;return V};
R7h=function(k){var E=typeof k!=="string"?k:{is:k,notifyObserversOnUndefined:!0};E.fastInit===void 0&&(E.fastInit=!0);return function(S){if(!E.disableInheritanceCheck&&Object.getPrototypeOf(S.prototype).constructor!==_.eX)throw Error("Sd");var R=S.prototype;R.is=E.is;i9C(R,"created",function(){this.hostElement=this;this.polymerController=this});
k4b(R,S,E.fastInit);E.notifyObserversOnUndefined&&(R._overrideLegacyUndefined=!0);if(E$i)for(var V=_.n(Object.getOwnPropertyNames(R)),N=V.next();!N.done;N=V.next()){N=N.value;var h=Object.getOwnPropertyDescriptor(R,N);h.enumerable===!1&&(h.enumerable=!0,Object.defineProperty(R,N,h))}if("template"in S)var J=function(){return S.template};
else E.template!==void 0&&(J=E.template);if(J!==void 0){var m;Object.defineProperty(R,"_template",{get:function(){m===void 0&&(m=J());return m},
set:function(a){m=a},
configurable:!0,enumerable:!0})}Polymer(R);S[S8A]=R}};
VuI=function(k){k=k===void 0?{}:k;k.fastInit===void 0&&(k.fastInit=!0);return function(E){if(!k.disableInheritanceCheck&&Object.getPrototypeOf(E.prototype).constructor!==ad)throw Error("Td");k4b(E.prototype,E,k.fastInit)}};
k4b=function(k,E,S){S=S===void 0?!1:S;N91(E);S?i9C(k,"created",function(){this.disableEnforceFastDefaultValuesCheck||IXR(E,this)}):i9C(k,"ready",function(){for(var R={},V=_.n(hBI(this.behaviors)),N=V.next();!N.done;N=V.next())N=N.value,N.properties&&Object.assign(R,n$i(this,N.properties));
Object.assign(R,n$i(this,this.properties));IXR(E,this);V=_.n(Object.keys(R));for(N=V.next();!N.done;N=V.next())N=N.value,this[N]=R[N]})};
IXR=function(k,E){if(E$i){k=new k;for(var S=_.n(Object.getOwnPropertyNames(k)),R=S.next();!R.done;R=S.next())R=R.value,E[R]=k[R];for(S=E;S&&S!==Object.prototype;S=Object.getPrototypeOf(S)){R=_.n(Object.getOwnPropertyNames(S));for(var V=R.next();!V.done;V=R.next())V=V.value,k.hasOwnProperty(V)||Object.defineProperty(k,V,iTC(E,V))}}else k.apply(E)};
iTC=function(k,E){return{get:function(){var S=k[E];return S instanceof Function?S.bind(k):S},
set:function(S){k[E]=S}}};
n$i=function(k,E){if(!E)return{};for(var S={},R=_.n(Object.keys(E)),V=R.next();!V.done;V=R.next())if(V=V.value,!E[V].readOnly){var N=k[V];N!==void 0&&(S[V]=N)}return S};
N91=function(k){var E=new k;k=k.prototype.properties||{};for(var S=_.n(Object.keys(k)),R=S.next();!R.done;R=S.next())if(R=R.value,E.hasOwnProperty(R)){var V=k[R];typeof V==="function"&&(k[R]=V={type:V});E[R]!=null&&V.type===Object&&(V.type=h7b(E[R].constructor))}};
h7b=function(k){for(var E=_.n(Jah),S=E.next();!S.done;S=E.next())if(S=S.value,k===S)return S;return Object};
cal=function(k){return function(E,S){E.behaviors=E.behaviors||[];E.behaviors.push(k||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",E,S).prototype:void 0));Object.defineProperty(E,S,{get:function(){return this},
enumerable:!0,configurable:!0})}};
mMh=function(k){k=k===void 0?{}:k;return function(E,S){E.properties=E.properties||{};k.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?k.type=h7b(Reflect.getMetadata("design:type",E,S)):k.type=String);var R=k,V=E.properties[S];E.properties[S]=V?Object.assign({},V,R):R}};
e7I=function(k){return function(E,S){E.listeners=E.listeners||{};E.listeners[k]=S}};
aX1=function(){var k=_.sX.apply(0,arguments);if(k.length===0)throw Error("Ud");return function(E,S){E.observers=E.observers||[];E.observers.push(S+"("+k.join(",")+")")}};
tuR=function(){var k=_.sX.apply(0,arguments);return function(E,S,R){var V=Object.getOwnPropertyDescriptor(E,S).get,N="__compute__"+S;Object.defineProperty(E,N,{value:V,enumerable:!0});E.properties=E.properties||{};V=E.properties[S];V||(V={},E.properties[S]=V);V.computed=N+"("+k.join(",")+")";R.get=void 0}};
_.tB=function(k,E,S){_.r7.call(this);this.JSC$11310_id_=null;this.usingListeners_=!1;this.JSC$11310_listener_=k;this.handler_=S;this.JSC$11310_win_=E||window;this.callback_=(0,_.uk)(this.JSC$11312_doAction_,this)};
T9=function(k){this.range_=k};
wc=function(k){this.range_=k};
YF=function(k,E,S){_.r7.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=k;this.scrollTimer_=new _.Pk(50);this.JSC$11389_eventHandler_=new _.Bk(this);this.scrollDelta_=new _.bh;this.containerIsActuallyContent_=k.tagName==="BODY"||k.tagName==="HTML";this.containerBounds_=T9j(k);this.containerIsActuallyContent_&&(k=_.pO(),this.containerBounds_.height=k.height,this.containerBounds_.width=k.width);this.margin_=E||0;if(E){if(E=this.containerBounds_.clone(),k=this.margin_){var R=
Math.min(k,E.height*.25);E.top+=R;E.height-=2*R;k=Math.min(k,E.width*.25);E.left+=k;E.width-=2*k}}else E=this.containerBounds_;this.scrollBounds_=E;S||this.JSC$11389_eventHandler_.listen(_.dT(this.containerNode_),"mousemove",this.JSC$11391_onMouseMove);this.JSC$11389_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11391_onTick_)};
_.Wk=function(k){this.mechanism=k};
Fn=function(k,E){this.JSC$11487_key_=k;this.JSC$11487_value_=E};
PEl=function(k){if(k>=55296&&k<=57343||k>1114111)return"\ufffd";k in wNb&&(k=wNb[k]);var E="";k>65535&&(k-=65536,E+=String.fromCharCode(k>>>10&1023|55296),k=56320|k&1023);return E+=String.fromCharCode(k)};
B9I=function(k,E){return k<E?1:-1};
WZi=function(){return function(k){return k.charAt(1)==="#"?k.charAt(2)==="X"||k.charAt(2)==="x"?PEl(parseInt(k.substr(3),16)):PEl(parseInt(k.substr(2),10)):Y8b[k.slice(1,-1)]}};
o$h=function(k){return k.slice(1,k.length-1).trim().replace(FZR,function(E){return yat[E]||" "})};
ys=function(k){return k===32||k===9};
od=function(k,E){return E<k.length?k.charCodeAt(E):-1};
XNh=function(k){for(;k;){if(k._lastLineBlank)return!0;var E=k.type;if(E==="list"||E==="item")k=k._lastChild;else break}return!1};
Xn=function(k){if(g$I.test(k)){var E=1,S=0,R=0;for(k[S]=="|"&&S++;S<k.length;){switch(k[S]){case "|":R=1;break;case " ":break;case "\t":break;default:R&&(R=0,E++)}S++}return UMj.test(k)?-E:E}return 0};
HTe=function(k){return k=="table"||k=="row"||k=="cell"};
KZj=function(){return new UJ("document",[[1,1],[0,0]])};
pNl=function(){};
Hk=function(){var k={safe:!1};k=k||{};k.softbreak=k.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=k};
LZI=function(k,E){var S="";if(k)if(k=k.toLowerCase(),k===" "||Aab.test(k))S="space";else if(rah.test(k))S="esc";else if(k.length==1){if(!E||u$1.test(k))S=k}else S=xMh.test(k)?k.replace("arrow",""):k=="multiply"?"*":k;return S};
fXb=function(k,E){var S=k.hasModifiers;if(E.key)S=LZI(E.key,S);else if(E.detail&&E.detail.key)S=LZI(E.detail.key,S);else{S=E.keyIdentifier;var R="";S&&(S in jfj?R=jfj[S]:DM1.test(S)?(S=parseInt(S.replace("U+","0x"),16),R=String.fromCharCode(S).toLowerCase()):R=S.toLowerCase());(S=R)||(S=E.keyCode,R="",Number(S)&&(S>=65&&S<=90?R=String.fromCharCode(32+S):S>=112&&S<=123?R="f"+(S-112+1):S>=48&&S<=57?R=String(S-48):S>=96&&S<=105?R=String(S-96):R=$MI[S]),S=R);S=S||""}return S===k.key&&(!k.hasModifiers||
!!E.shiftKey===!!k.shiftKey&&!!E.ctrlKey===!!k.ctrlKey&&!!E.altKey===!!k.altKey&&!!E.metaKey===!!k.metaKey)};
bTj=function(k){return k.length===1?{combo:k,key:k,event:"keydown"}:k.split("+").reduce(function(E,S){var R=S.split(":");S=R[0];R=R[1];S in v$m?(E[v$m[S]]=!0,E.hasModifiers=!0):(E.key=S,E.event=R||"keydown");return E},{combo:k.split(":").shift()})};
ZTh=function(k){return k.trim().split(" ").map(function(E){return bTj(E)})};
dMl=function(k,E){if(k&&k.fn){var S=k.fn;k.fn=function(){try{S.apply(this,arguments)}catch(R){if(R instanceof Kf)console.warn("Argument '"+R.arg+"'"+(E?" for method '"+E+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw R;}}}return k};
sfb=function(){var k=_.sX.apply(0,arguments);return k.length===0?function(E){return E}:k.length===1?k[0]:k.reduce(function(E,S){return function(){return E(S.apply(null,_.$e(_.sX.apply(0,arguments))))}})};
lX1=function(){var k=_.sX.apply(0,arguments);return function(E){return function(S,R){S=E(S,R);var V=function(){throw Error("Ee");},N={getState:S.getState,
dispatch:function(h){return V.apply(null,[h].concat(_.$e(_.sX.apply(1,arguments))))}};
R=k.map(function(h){return h(N)});
V=sfb.apply(null,_.$e(R))(S.dispatch);return Object.assign({},S,{dispatch:V})}}};
z7h=function(k){Object.keys(k).forEach(function(E){var S=k[E];if(typeof S(void 0,{type:Mu1})==="undefined")throw Error("Fe`"+E);if(typeof S(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+q81()})==="undefined")throw Error("Ge`"+E+"`"+Mu1);})};
pf=function(k){for(var E=Object.keys(k),S={},R=0;R<E.length;R++){var V=E[R];typeof k[V]==="function"&&(S[V]=k[V])}var N=Object.keys(S);try{z7h(S)}catch(J){var h=J}return function(J,m){J=J===void 0?{}:J;if(h)throw h;for(var a=!1,T={},w=0;w<N.length;w++){var P=N[w],B=J[P],F=(0,S[P])(B,m);if(typeof F==="undefined")throw J=m&&m.type,Error("He`"+(J?'"'+String(J)+'"':"(unknown type)")+"`"+P);T[P]=F;a=a||F!==B}return(a=a||N.length!==Object.keys(J).length)?T:J}};
QfR=function(k,E,S){function R(){if(T)throw Error("Ie");return J}
function V(B){if(typeof B!=="function")throw Error("Je`"+typeof B);if(T)throw Error("Ke");var F=!0;a===m&&(a=m.slice());a.push(B);return function(){if(F){if(T)throw Error("Le");F=!1;a===m&&(a=m.slice());var K=a.indexOf(B);a.splice(K,1);m=null}}}
function N(B){if(typeof B!=="object"||B===null)var F=!1;else{for(F=B;Object.getPrototypeOf(F)!==null;)F=Object.getPrototypeOf(F);F=Object.getPrototypeOf(B)===F}if(!F)throw Error("Me`"+typeof B);if(typeof B.type==="undefined")throw Error("Ne");if(T)throw Error("Oe");try{T=!0,J=h(J,B)}finally{T=!1}F=m=a;for(var K=0;K<F.length;K++)(0,F[K])();return B}
if(typeof E==="function"&&typeof S==="function"||typeof S==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof E==="function"&&typeof S==="undefined"&&(S=E,E=void 0);if(typeof S!=="undefined"){if(typeof S!=="function")throw Error("Qe`"+typeof S);return S(QfR)(k,E)}if(typeof k!=="function")throw Error("Re`"+typeof k);var h=k,J=E,m=[],a=m,T=!1;N({type:Mu1});var w={},P=(w.dispatch=N,w.subscribe=V,w.getState=R,w.replaceReducer=function(B){if(typeof B!=="function")throw Error("Se`"+
typeof B);h=B;N({type:OTI});return P},w[G4I]=function(){var B={};
return B.subscribe=function(F){function K(){F.next&&F.next(R())}
if(typeof F!=="object"||F===null)throw new TypeError("Te`"+typeof F);K();return{unsubscribe:V(K)}},B[G4I]=function(){return this},B},w);
return P};
CEi=function(k){function E(){V&&(V=!1,k());N&&R()}
function S(){requestAnimationFrame(E)}
function R(){var J=Date.now();if(V){if(J-h<2)return;N=!0}else V=!0,N=!1,setTimeout(S,20);h=J}
var V=!1,N=!1,h=0;return R};
AB=function(k){return typeof k==="number"?k:parseFloat(k)||0};
kA1=function(k){return _.sX.apply(1,arguments).reduce(function(E,S){return E+AB(k["border-"+S+"-width"])},0)};
VLi=function(k){if(Ese[k])return Ese[k];var E=globalThis[k],S=E.prototype,R=k in SFR?SFR[k]:void 0;R=!(!R||!R.every(function(m){var a,T;return!!((a=Object.getOwnPropertyDescriptor(S,m))==null?0:(T=a.get)==null?0:T.toString().includes("[native code]"))}));
var V=k in R3I?R3I[k]:void 0;V=!(!V||!V.every(function(m){var a;return typeof S[m]==="function"&&((a=S[m])==null?void 0:a.toString().includes("[native code]"))}));
if(R&&V&&!globalThis.Zone)return Ese[k]=E.prototype;try{var N=document.createElement("iframe");document.body.appendChild(N);var h=N.contentWindow;if(!h)return E.prototype;var J=h[k].prototype;document.body.removeChild(N);return J?Ese[k]=J:S}catch(m){return S}};
rc=function(k,E,S){var R=k+"."+String(S);if(NGj[R])return NGj[R].call(E);k=VLi(k);var V;k=(V=Object.getOwnPropertyDescriptor(k,S))==null?void 0:V.get;if(!k)return E[S];NGj[R]=k;return k.call(E)};
nsI=function(k,E){var S="Node."+String(E);if(I9b[S])return I9b[S].bind(k);var R=VLi("Node")[E];if(typeof R!=="function")return k[E];I9b[S]=R;return R.bind(k)};
uc=function(k,E,S){try{if(!(E in k))return function(){};
var R=k[E],V=S(R);typeof V==="function"&&(V.prototype=V.prototype||{},Object.defineProperties(V,{__rrweb_original__:{enumerable:!1,value:R}}));k[E]=V;return function(){k[E]=R}}catch(N){return function(){}}};
jX=function(k){var E=k&&"host"in k&&"mode"in k&&xF(k)||null;return!!(E&&"shadowRoot"in E&&Lf(E)===k)};
Dw=function(k){return Object.prototype.toString.call(k)==="[object ShadowRoot]"};
i3e=function(k){k.includes(" background-clip: text;")&&!k.includes(" -webkit-background-clip: text;")&&(k=k.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return k};
JS1=function(k){try{var E=k.rules||k.cssRules;if(!E)return null;var S=k.href;!S&&k.ownerNode&&k.ownerNode.ownerDocument&&(S=k.ownerNode.ownerDocument.location.href);var R=Array.from(E,function(V){return h3t(V,S)}).join("");
return i3e(R)}catch(V){return null}};
h3t=function(k,E){if("styleSheet"in k){try{var S;if(!(S=JS1(k.styleSheet))){var R=k.cssText;if(R.split('"').length<3)S=R;else{var V=["@import","url("+JSON.stringify(k.href)+")"];k.layerName===""?V.push("layer"):k.layerName&&V.push("layer("+k.layerName+")");k.supportsText&&V.push("supports("+k.supportsText+")");k.media.length&&V.push(k.media.mediaText);S=V.join(" ")+";"}}var N=S}catch(h){N=k.cssText}return k.styleSheet.href?cSb(N,k.styleSheet.href):N}N=k.cssText;"selectorText"in k&&k.selectorText.includes(":")&&
(N=N.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return E?cSb(N,E):N};
m4e=function(k){var E=k.element;var S=k.maskInputOptions;var R=k.tagName;var V=k.type;var N=k.value;k=k.maskInputFn;N=N||"";V=V&&V.toLowerCase();if(S[R.toLowerCase()]||V&&S[V])N=k?k(N,E):"*".repeat(N.length);return N};
e31=function(k){var E=k.getContext("2d");if(!E)return!0;for(var S=0;S<k.width;S+=50)for(var R=0;R<k.height;R+=50){var V=E.getImageData;if((new Uint32Array(("__rrweb_original__"in V?V.__rrweb_original__:V).call(E,S,R,Math.min(50,k.width-S),Math.min(50,k.height-R)).data.buffer)).some(function(N){return N!==0}))return!1}return!0};
a91=function(k){var E=k.type;return k.hasAttribute("data-rr-is-password")?"password":E?E.toLowerCase():null};
tLC=function(k){try{var E=new URL(k,window.location.href)}catch(V){return null}var S,R;return(R=(S=E.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:S[1])!=null?R:null};
cSb=function(k,E){return(k||"").replace(TGm,function(S,R,V,N,h,J){V=V||h||J;R=R||N||"";if(!V)return S;if(wsh.test(V)||P1C.test(V)||BGi.test(V))return"url("+R+V+R+")";if(V[0]==="/")return S=E.indexOf("//")>-1?E.split("/").slice(0,3).join("/"):E.split("/")[0],S=S.split("?")[0],"url("+R+(S+V)+R+")";S=E.split("/");N=V.split("/");S.pop();N=_.n(N);for(V=N.next();!V.done;V=N.next())V=V.value,V!=="."&&(V===".."?S.pop():S.push(V));return"url("+R+S.join("/")+R+")"})};
YFh=function(k,E){return(E=E===void 0?!1:E)?k.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):k.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
WL1=function(k,E){var S=S===void 0?!1:S;E=Array.from(E.childNodes);var R=[],V=0;if(E.length>1&&k&&typeof k==="string")for(var N=YFh(k,S),h=N.length/k.length,J=1;J<E.length;J++)if(E[J].textContent&&typeof E[J].textContent==="string"){for(var m=YFh(E[J].textContent,S),a=3;a<m.length&&(m[a].match(/[a-zA-Z0-9]/)||m.indexOf(m.substring(0,a),1)!==-1);a++);for(;a<m.length;a++){var T=m.substring(0,a),w=N.split(T),P=-1;if(w.length===2)P=w[0].length;else if(w.length>2&&w[0]===""&&E[J-1].textContent!=="")P=
N.indexOf(T,1);else if(w.length===1){T=T.substring(0,T.length-1);w=N.split(T);if(w.length<=1)return R.push(k),R;a=101}else a===m.length-1&&(P=N.indexOf(T));if(w.length>=2&&a>100){var B=E[J-1].textContent;B&&typeof B==="string"&&(P=N.indexOf(T,YFh(B).length));P===-1&&(P=w[0].length)}if(P!==-1){for(m=Math.floor(P/h);m>0&&m<k.length;){V+=1;if(V>50*E.length)return R.push(k),R;a=YFh(k.substring(0,m),S);if(a.length===P){R.push(k.substring(0,m));k=k.substring(m);N=N.substring(P);break}else m=a.length<P?
m+Math.max(1,Math.floor((P-a.length)/h)):m-Math.max(1,Math.floor((a.length-P)*h))}break}}}R.push(k);return R};
ySm=function(){return FLh++};
XsA=function(k){if(k instanceof HTMLFormElement)return"form";k=k.tagName.toLowerCase();return osh.test(k)?"div":k};
KLe=function(k,E){function S(a){return(a=a.exec(E.substring(R)))?(a=a[0],R+=a.length,a):""}
if(E.trim()==="")return E;for(var R=0,V=[];;){S(gsI);if(R>=E.length)break;var N=S(U4C);if(N.slice(-1)===",")N=H31(k,N.substring(0,N.length-1)),V.push(N);else{var h="";N=H31(k,N);for(var J=!1;;){var m=E.charAt(R);if(m===""){V.push((N+h).trim());break}else if(J)m===")"&&(J=!1);else if(m===","){R+=1;V.push((N+h).trim());break}else m==="("&&(J=!0);h+=m;R+=1}}}return V.join(", ")};
H31=function(k,E){return E&&E.trim()!==""?ps1(k,E):E};
ps1=function(k,E){var S=ASC.get(k);S||(S=k.createElement("a"),ASC.set(k,S));if(!E)E="";else if(E.startsWith("blob:")||E.startsWith("data:"))return E;MU(S,E);return S.href};
rSm=function(k,E,S,R){return R?S==="src"||S==="href"&&(E!=="use"||R[0]!=="#")||S==="xlink:href"&&R[0]!=="#"||S==="background"&&(E==="table"||E==="td"||E==="th")?H31(k,R):S==="srcset"?KLe(k,R):S==="style"?cSb(R,ps1(k)):E==="object"&&S==="data"?H31(k,R):R:R};
uc1=function(k,E){return(k==="video"||k==="audio")&&E==="autoplay"};
x4t=function(k,E,S){try{if(typeof E==="string"){if(k.classList.contains(E))return!0}else for(var R=k.classList.length;R--;)if(E.test(k.classList[R]))return!0;if(S)return k.matches(S)}catch(V){}return!1};
LLb=function(k,E,S){if(!k)return!1;if(k.nodeType!==k.ELEMENT_NODE)return S?LLb($F(k),E,S):!1;for(var R=k.classList.length;R--;)if(E.test(k.classList[R]))return!0;return S?LLb($F(k),E,S):!1};
jLt=function(k,E,S,R){if(k.nodeType===k.ELEMENT_NODE){if(!ff(k).length)return!1}else{if(vk(k)===null)return!1;k=vk(k)}try{if(typeof E==="string")if(R){if(k.closest("."+E))return!0}else{if(k.classList.contains(E))return!0}else if(LLb(k,E,R))return!0;if(S)if(R){if(k.closest(S))return!0}else if(k.matches(S))return!0}catch(V){}return!1};
D4h=function(k,E,S){var R=k.contentWindow;if(R){var V=!1;try{var N=R.document.readyState}catch(J){return}if(N!=="complete"){var h=setTimeout(function(){V||(E(),V=!0)},S);
k.addEventListener("load",function(){clearTimeout(h);V=!0;E()})}else R.location.href==="about:blank"&&k.src!=="about:blank"&&k.src!==""||setTimeout(E,0),k.addEventListener("load",E)}};
$4A=function(k,E,S){var R=!1;try{var V=k.sheet}catch(h){return}if(!V){var N=setTimeout(function(){R||(E(),R=!0)},S);
k.addEventListener("load",function(){clearTimeout(N);R=!0;E()})}};
b3i=function(k,E){var S=E.doc,R=E.blockClass,V=E.blockSelector,N=E.needsMask,h=E.inlineStylesheet,J=E.maskInputOptions===void 0?{}:E.maskInputOptions,m=E.maskTextFn,a=E.maskInputFn,T=E.dataURLOptions===void 0?{}:E.dataURLOptions,w=E.inlineImages,P=E.recordCanvas,B=E.keepIframeSrcFn,F=E.newlyAddedElement===void 0?!1:E.newlyAddedElement,K=E.cssCaptured===void 0?!1:E.cssCaptured;E=E.mirror;E.nodeMetaMap.has(S)?(E=E.getId(S),E=E===1?void 0:E):E=void 0;switch(k.nodeType){case k.DOCUMENT_NODE:return k.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:k.compatMode}:{type:0,childNodes:[]};case k.DOCUMENT_TYPE_NODE:return{type:1,name:k.name,publicId:k.publicId,systemId:k.systemId,rootId:E};case k.ELEMENT_NODE:return f9h(k,{doc:S,blockClass:R,blockSelector:V,inlineStylesheet:h,maskInputOptions:J,maskInputFn:a,dataURLOptions:T,inlineImages:w,recordCanvas:P,keepIframeSrcFn:B,newlyAddedElement:F,rootId:E});case k.TEXT_NODE:return h=(R=$F(k))&&R.tagName,R="",V=h==="STYLE"?!0:void 0,(h=h==="SCRIPT"?!0:void 0)?
R="SCRIPT_PLACEHOLDER":K||(R=vst(k),V&&R&&(R=cSb(R,ps1(S)))),!V&&!h&&R&&N&&(R=m?m(R,vk(k)):R.replace(/[\S]/g,"*")),{type:3,textContent:R||"",rootId:E};case k.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:E};case k.COMMENT_NODE:return{type:5,textContent:vst(k)||"",rootId:E};default:return!1}};
f9h=function(k,E){var S=E.doc,R=E.inlineStylesheet,V=E.maskInputOptions===void 0?{}:E.maskInputOptions,N=E.maskInputFn,h=E.dataURLOptions===void 0?{}:E.dataURLOptions,J=E.inlineImages,m=E.recordCanvas,a=E.keepIframeSrcFn,T=E.newlyAddedElement===void 0?!1:E.newlyAddedElement,w=E.rootId;E=x4t(k,E.blockClass,E.blockSelector);for(var P=XsA(k),B={},F=k.attributes.length,K=0;K<F;K++){var r=k.attributes[K];uc1(P,r.name)||(B[r.name]=rSm(S,P,r.name.toLowerCase(),r.value))}P==="link"&&R&&(R=Array.from(S.styleSheets).find(function(d){return d.href===
k.href}),F=null,R&&(F=JS1(R)),F&&(delete B.rel,delete B.href,B._cssText=F));
P==="style"&&k.sheet&&(R=JS1(k.sheet))&&(k.childNodes.length>1&&(R=WL1(R,k).join("/* rr_split */")),B._cssText=R);if(P==="input"||P==="textarea"||P==="select")R=k.value,F=k.checked,B.type!=="radio"&&B.type!=="checkbox"&&B.type!=="submit"&&B.type!=="button"&&R?B.value=m4e({element:k,type:a91(k),tagName:P,value:R,maskInputOptions:V,maskInputFn:N}):F&&(B.checked=F);P==="option"&&(k.selected&&!V.select?B.selected=!0:delete B.selected);P==="dialog"&&k.open&&(B.rr_open_mode=k.matches("dialog:modal")?"modal":
"non-modal");P==="canvas"&&m&&(k.__context==="2d"?e31(k)||(B.rr_dataURL=k.toDataURL(h.type,h.quality)):"__context"in k||(V=k.toDataURL(h.type,h.quality),N=S.createElement("canvas"),N.width=k.width,N.height=k.height,N=N.toDataURL(h.type,h.quality),V!==N&&(B.rr_dataURL=V)));if(P==="img"&&J){bc||(bc=S.createElement("canvas"),Z3h=bc.getContext("2d"));var x=k.currentSrc||k.getAttribute("src")||"<unknown-src>",L=k.crossOrigin,q=function(){k.removeEventListener("load",q);try{bc.width=k.naturalWidth,bc.height=
k.naturalHeight,Z3h.drawImage(k,0,0),B.rr_dataURL=bc.toDataURL(h.type,h.quality)}catch(d){if(k.crossOrigin!=="anonymous"){k.crossOrigin="anonymous";k.complete&&k.naturalWidth!==0?q():k.addEventListener("load",q);return}console.warn("Cannot inline img src="+x+"! Error: "+d)}k.crossOrigin==="anonymous"&&(L?B.crossOrigin=L:k.removeAttribute("crossorigin"))};
k.complete&&k.naturalWidth!==0?q():k.addEventListener("load",q)}if(P==="audio"||P==="video")S=B,S.rr_mediaState=k.paused?"paused":"played",S.rr_mediaCurrentTime=k.currentTime,S.rr_mediaPlaybackRate=k.playbackRate,S.rr_mediaMuted=k.muted,S.rr_mediaLoop=k.loop,S.rr_mediaVolume=k.volume;T||(k.scrollLeft&&(B.rr_scrollLeft=k.scrollLeft),k.scrollTop&&(B.rr_scrollTop=k.scrollTop));E&&(T=k.getBoundingClientRect(),B={class:B.class,rr_width:T.width+"px",rr_height:T.height+"px"});P!=="iframe"||a(B.src)||(k.contentDocument||
(B.rr_src=B.src),delete B.src);var M;try{customElements.get(P)&&(M=!0)}catch(d){}return{type:2,tagName:P,attributes:B,childNodes:[],isSVG:!(k.tagName!=="svg"&&!k.ownerSVGElement)||void 0,needBlock:E,rootId:w,isCustom:M}};
Zw=function(k){return k===void 0||k===null?"":k.toLowerCase()};
d4m=function(k,E){return E.comment&&k.type===5||k.type===2&&(E.script&&(k.tagName==="script"||k.tagName==="link"&&(k.attributes.rel==="preload"&&k.attributes.as==="script"||k.attributes.rel==="modulepreload")||k.tagName==="link"&&k.attributes.rel==="prefetch"&&typeof k.attributes.href==="string"&&tLC(k.attributes.href)==="js")||E.headFavicon&&(k.tagName==="link"&&k.attributes.rel==="shortcut icon"||k.tagName==="meta"&&(Zw(k.attributes.name).match(/^msapplication-tile(image|color)$/)||Zw(k.attributes.name)===
"application-name"||Zw(k.attributes.rel)==="icon"||Zw(k.attributes.rel)==="apple-touch-icon"||Zw(k.attributes.rel)==="shortcut icon"))||k.tagName==="meta"&&(E.headMetaDescKeywords&&Zw(k.attributes.name).match(/^description|keywords$/)||E.headMetaSocial&&(Zw(k.attributes.property).match(/^(og|twitter|fb):/)||Zw(k.attributes.name).match(/^(og|twitter):/)||Zw(k.attributes.name)==="pinterest")||E.headMetaRobots&&(Zw(k.attributes.name)==="robots"||Zw(k.attributes.name)==="googlebot"||Zw(k.attributes.name)===
"bingbot")||E.headMetaHttpEquiv&&k.attributes["http-equiv"]!==void 0||E.headMetaAuthorship&&(Zw(k.attributes.name)==="author"||Zw(k.attributes.name)==="generator"||Zw(k.attributes.name)==="framework"||Zw(k.attributes.name)==="publisher"||Zw(k.attributes.name)==="progid"||Zw(k.attributes.property).match(/^article:/)||Zw(k.attributes.property).match(/^product:/))||E.headMetaVerification&&(Zw(k.attributes.name)==="google-site-verification"||Zw(k.attributes.name)==="yandex-verification"||Zw(k.attributes.name)===
"csrf-token"||Zw(k.attributes.name)==="p:domain_verify"||Zw(k.attributes.name)==="verify-v1"||Zw(k.attributes.name)==="verification"||Zw(k.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
dc=function(k,E){var S=E.doc,R=E.mirror,V=E.blockClass,N=E.blockSelector,h=E.maskTextClass,J=E.maskTextSelector,m=E.skipChild===void 0?!1:E.skipChild,a=E.inlineStylesheet===void 0?!0:E.inlineStylesheet,T=E.maskInputOptions===void 0?{}:E.maskInputOptions,w=E.maskTextFn,P=E.maskInputFn,B=E.slimDOMOptions,F=E.dataURLOptions===void 0?{}:E.dataURLOptions,K=E.inlineImages===void 0?!1:E.inlineImages,r=E.recordCanvas===void 0?!1:E.recordCanvas,x=E.onSerialize,L=E.onIframeLoad,q=E.iframeLoadTimeout===void 0?
5E3:E.iframeLoadTimeout,M=E.onStylesheetLoad,d=E.stylesheetLoadTimeout===void 0?5E3:E.stylesheetLoadTimeout,z=E.keepIframeSrcFn===void 0?function(){return!1}:E.keepIframeSrcFn,kb=E.newlyAddedElement===void 0?!1:E.newlyAddedElement,TI=E.cssCaptured===void 0?!1:E.cssCaptured,a1=E.needsMask,Ah=E.preserveWhiteSpace===void 0?!0:E.preserveWhiteSpace;
a1||(a1=jLt(k,h,J,a1===void 0));var th=b3i(k,{doc:S,mirror:R,blockClass:V,blockSelector:N,needsMask:a1,inlineStylesheet:a,maskInputOptions:T,maskTextFn:w,maskInputFn:P,dataURLOptions:F,inlineImages:K,recordCanvas:r,keepIframeSrcFn:z,newlyAddedElement:kb,cssCaptured:TI});if(!th)return console.warn(k,"not serialized"),null;kb=R.nodeMetaMap.has(k)?R.getId(k):d4m(th,B)||!Ah&&th.type===3&&!th.textContent.replace(/^\s+|\s+$/gm,"").length?-2:FLh++;E=Object.assign(th,{id:kb});R.add(k,E);if(kb===-2)return null;
x&&x(k);kb=!m;E.type===2&&(kb=kb&&!E.needBlock,delete E.needBlock,(TI=Lf(k))&&Dw(TI)&&(E.isShadowHost=!0));if((E.type===0||E.type===2)&&kb){B.headWhitespace&&E.type===2&&E.tagName==="head"&&(Ah=!1);m={doc:S,mirror:R,blockClass:V,blockSelector:N,needsMask:a1,maskTextClass:h,maskTextSelector:J,skipChild:m,inlineStylesheet:a,maskInputOptions:T,maskTextFn:w,maskInputFn:P,slimDOMOptions:B,dataURLOptions:F,inlineImages:K,recordCanvas:r,preserveWhiteSpace:Ah,onSerialize:x,onIframeLoad:L,iframeLoadTimeout:q,
onStylesheetLoad:M,stylesheetLoadTimeout:d,keepIframeSrcFn:z,cssCaptured:!1};if(E.type!==2||E.tagName!=="textarea"||E.attributes.value===void 0)for(E.type===2&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==="string"&&(m.cssCaptured=!0),kb=_.n(Array.from(ff(k))),TI=kb.next();!TI.done;TI=kb.next())(TI=dc(TI.value,m))&&E.childNodes.push(TI);kb=null;if(k.nodeType===k.ELEMENT_NODE&&(kb=Lf(k))){TI=_.n(Array.from(ff(kb)));for(var He=TI.next();!He.done;He=TI.next())if(He=dc(He.value,m))Dw(kb)&&
(He.isShadow=!0),E.childNodes.push(He)}}(m=$F(k))&&jX(m)&&Dw(m)&&(E.isShadow=!0);E.type===2&&E.tagName==="iframe"&&D4h(k,function(){var ve=k.contentDocument;ve&&L&&(ve=dc(ve,{doc:ve,mirror:R,blockClass:V,blockSelector:N,needsMask:a1,maskTextClass:h,maskTextSelector:J,skipChild:!1,inlineStylesheet:a,maskInputOptions:T,maskTextFn:w,maskInputFn:P,slimDOMOptions:B,dataURLOptions:F,inlineImages:K,recordCanvas:r,preserveWhiteSpace:Ah,onSerialize:x,onIframeLoad:L,iframeLoadTimeout:q,onStylesheetLoad:M,stylesheetLoadTimeout:d,
keepIframeSrcFn:z}))&&L(k,ve)},q);
E.type===2&&E.tagName==="link"&&typeof E.attributes.rel==="string"&&(E.attributes.rel==="stylesheet"||E.attributes.rel==="preload"&&typeof E.attributes.href==="string"&&tLC(E.attributes.href)==="css")&&$4A(k,function(){if(M){var ve=dc(k,{doc:S,mirror:R,blockClass:V,blockSelector:N,needsMask:a1,maskTextClass:h,maskTextSelector:J,skipChild:!1,inlineStylesheet:a,maskInputOptions:T,maskTextFn:w,maskInputFn:P,slimDOMOptions:B,dataURLOptions:F,inlineImages:K,recordCanvas:r,preserveWhiteSpace:Ah,onSerialize:x,
onIframeLoad:L,iframeLoadTimeout:q,onStylesheetLoad:M,stylesheetLoadTimeout:d,keepIframeSrcFn:z});ve&&M(k,ve)}},d);
return E};
sLI=function(k){var E=document;k=k||{};var S=k.maskAllInputs===void 0?!1:k.maskAllInputs,R=k.slimDOM===void 0?!1:k.slimDOM;return dc(E,{doc:E,mirror:k.mirror===void 0?new sJ:k.mirror,blockClass:k.blockClass===void 0?"rr-block":k.blockClass,blockSelector:k.blockSelector===void 0?null:k.blockSelector,maskTextClass:k.maskTextClass===void 0?"rr-mask":k.maskTextClass,maskTextSelector:k.maskTextSelector===void 0?null:k.maskTextSelector,skipChild:!1,inlineStylesheet:k.inlineStylesheet===void 0?!0:k.inlineStylesheet,
maskInputOptions:S===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:S===!1?{password:!0}:S,maskTextFn:k.maskTextFn,maskInputFn:k.maskInputFn,slimDOMOptions:R===!0||R==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:R==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:R===!1?{}:R,dataURLOptions:k.dataURLOptions,
inlineImages:k.inlineImages===void 0?!1:k.inlineImages,recordCanvas:k.recordCanvas===void 0?!1:k.recordCanvas,preserveWhiteSpace:k.preserveWhiteSpace,onSerialize:k.onSerialize,onIframeLoad:k.onIframeLoad,iframeLoadTimeout:k.iframeLoadTimeout,onStylesheetLoad:k.onStylesheetLoad,stylesheetLoadTimeout:k.stylesheetLoadTimeout,keepIframeSrcFn:k.keepIframeSrcFn===void 0?function(){return!1}:k.keepIframeSrcFn,
newlyAddedElement:!1})};
lc=function(k,E,S){S=S===void 0?document:S;var R={capture:!0,passive:!0};S.addEventListener(k,E,R);return function(){return S.removeEventListener(k,E,R)}};
M6=function(k,E,S){S=S===void 0?{}:S;var R=null,V=0;return function(){var N=_.sX.apply(0,arguments),h=Date.now();V||S.leading!==!1||(V=h);var J=E-(h-V),m=this;J<=0||J>E?(R&&(clearTimeout(R),R=null),V=h,k.apply(m,N)):R||S.trailing===!1||(R=setTimeout(function(){V=S.leading===!1?0:Date.now();R=null;k.apply(m,N)},J))}};
MLI=function(k,E,S,R,V){V=V===void 0?window:V;var N=V.Object.getOwnPropertyDescriptor(k,E);V.Object.defineProperty(k,E,R?S:{set:function(h){var J=this;setTimeout(function(){S.set.call(J,h)},0);
N&&N.set&&N.set.call(this,h)}});
return function(){return MLI(k,E,N||{},!0)}};
qFA=function(k){var E=k.document,S,R,V,N;return{left:E.scrollingElement?E.scrollingElement.scrollLeft:k.pageXOffset!==void 0?k.pageXOffset:E.documentElement.scrollLeft||(E==null?void 0:E.body)&&((S=vk(E.body))==null?void 0:S.scrollLeft)||(E==null?void 0:(R=E.body)==null?void 0:R.scrollLeft)||0,top:E.scrollingElement?E.scrollingElement.scrollTop:k.pageYOffset!==void 0?k.pageYOffset:(E==null?void 0:E.documentElement.scrollTop)||(E==null?void 0:E.body)&&((V=vk(E.body))==null?void 0:V.scrollTop)||(E==
null?void 0:(N=E.body)==null?void 0:N.scrollTop)||0}};
z3l=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
QLh=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
O3i=function(k){return k?k.nodeType===k.ELEMENT_NODE?k:vk(k):null};
q6=function(k,E,S,R){if(!k)return!1;k=O3i(k);if(!k)return!1;try{if(typeof E==="string"){if(k.classList.contains(E)||R&&k.closest("."+E)!==null)return!0}else if(LLb(k,E,R))return!0}catch(V){}return S&&(k.matches(S)||R&&k.closest(S)!==null)?!0:!1};
GAI=function(k,E,S){return k.tagName==="TITLE"&&S.headTitleMutations?!0:E.getId(k)===-2};
C1e=function(k,E){if(jX(k))return!1;var S=E.getId(k);return E.has(S)?(S=$F(k))&&S.nodeType===k.DOCUMENT_NODE?!1:S?C1e(S,E):!0:!0};
k_h=function(){var k=k===void 0?window:k;"NodeList"in k&&!k.NodeList.prototype.forEach&&(k.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in k&&!k.DOMTokenList.prototype.forEach&&(k.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
EHm=function(k,E){return!(k.nodeName!=="LINK"||k.nodeType!==k.ELEMENT_NODE||!k.getAttribute||k.getAttribute("rel")!=="stylesheet"||!E.nodeMetaMap.get(k))};
Rph=function(k){var E=null,S;"getRootNode"in k&&((S=SIe(k))==null?void 0:S.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&xF(SIe(k))&&(E=xF(SIe(k)));return E};
Vyh=function(k){var E=k.ownerDocument;if(E){if(!(E=nsI(E,"contains")(k)))if(E=k.ownerDocument){for(var S;S=Rph(k);)k=S;E=nsI(E,"contains")(k)}else E=!1}else E=!1;return E};
N$j=function(k,E){k.delete(E);ff(E).forEach(function(S){return N$j(k,S)})};
ImA=function(k,E){for(var S=[k];S.length;)k=S.pop(),E.has(k)||(E.add(k),ff(k).forEach(function(R){return S.push(R)}))};
nHC=function(k,E){k.size===0?k=!1:k=(E=$F(E))?k.has(E):!1;return k};
hpI=function(k,E){return k.size===0?!1:itC(k,E)};
itC=function(k,E){return(E=$F(E))?k.has(E)?!0:itC(k,E):!1};
z9=function(k){try{if("composedPath"in k){var E=k.composedPath();if(E.length)return E[0]}else if("path"in k&&k.path.length)return k.path[0]}catch(S){}return k&&k.target};
czC=function(k,E){var S=new Jz1;Qs.push(S);S.init(k);k=new (VLi("MutationObserver").constructor)(OJ(S.processMutations.bind(S)));k.observe(E,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return k};
epe=function(k){var E=k.mousemoveCb;var S=k.sampling;var R=k.doc;var V=k.mirror;if(S.mousemove===!1)return function(){};
var N=[],h,J=M6(OJ(function(a){var T=Date.now()-h;E(N.map(function(w){w.timeOffset-=T;return w}),a);
N=[];h=null}),typeof S.mousemoveCallback==="number"?S.mousemoveCallback:500);
k=OJ(M6(OJ(function(a){var T=z9(a),w=a.changedTouches?a.changedTouches[0]:a,P=w.clientX;w=w.clientY;h||(h=mw1());N.push({x:P,y:w,id:V.getId(T),timeOffset:mw1()-h});J(typeof DragEvent!=="undefined"&&a instanceof DragEvent?12:a instanceof MouseEvent?1:6)}),typeof S.mousemove==="number"?S.mousemove:50,{trailing:!1}));
var m=[lc("mousemove",k,R),lc("touchmove",k,R),lc("drag",k,R)];return OJ(function(){m.forEach(function(a){return a()})})};
am1=function(k){var E=k.mouseInteractionCb;var S=k.doc;var R=k.mirror;var V=k.blockClass;var N=k.blockSelector;k=k.sampling;if(k.mouseInteraction===!1)return function(){};
var h=k.mouseInteraction===!0||k.mouseInteraction===void 0?{}:k.mouseInteraction,J=[],m=null,a=function(T){return function(w){var P=z9(w);if(!q6(P,V,N,!0)){var B=null,F=T;if("pointerType"in w){switch(w.pointerType){case "mouse":B=0;break;case "touch":B=2;break;case "pen":B=1}B===2&&(G9[T]===1?F="TouchStart":G9[T]===0&&(F="TouchEnd"))}else w.changedTouches&&(B=2);if(B!==null){if(m=B,F.startsWith("Touch")&&B===2||F.startsWith("Mouse")&&B===0)B=null}else G9[T]===2&&(B=m,m=null);if(w=w.changedTouches?
w.changedTouches[0]:w)P=R.getId(P),OJ(E)(Object.assign({},{type:G9[F],id:P,x:w.clientX,y:w.clientY},B!==null&&{pointerType:B}))}}};
Object.keys(G9).filter(function(T){return Number.isNaN(Number(T))&&!T.endsWith("_Departed")&&h[T]!==!1}).forEach(function(T){var w=T.toLowerCase(),P=a(T);
if(window.PointerEvent)switch(G9[T]){case 1:case 0:w=w.replace("mouse","pointer");break;case 7:case 9:return}J.push(lc(w,P,S))});
return OJ(function(){J.forEach(function(T){return T()})})};
tyb=function(k){var E=k.scrollCb;var S=k.doc;var R=k.mirror;var V=k.blockClass;var N=k.blockSelector;return lc("scroll",OJ(M6(OJ(function(h){var J=z9(h);J&&!q6(J,V,N,!0)&&(h=R.getId(J),J===S&&S.defaultView?(J=qFA(S.defaultView),E({id:h,x:J.left,y:J.top})):E({id:h,x:J.scrollLeft,y:J.scrollTop}))}),k.sampling.scroll||100)),S)};
T$I=function(k,E){var S=k.viewportResizeCb;var R=-1,V=-1;return lc("resize",OJ(M6(OJ(function(){var N=z3l(),h=QLh();if(R!==N||V!==h)S({width:Number(h),height:Number(N)}),R=N,V=h}),200)),E.win)};
B$C=function(k){function E(r){var x=z9(r),L=r.isTrusted,q=x&&x.tagName;x&&q==="OPTION"&&(x=vk(x));if(!(!x||!q||wYe.indexOf(q)<0||q6(x,h,J,!0)||x.classList.contains(m)||a&&x.matches(a))){var M=x.value,d=!1;r=a91(x)||"";if(r==="radio"||r==="checkbox")d=x.checked;else if(T[q.toLowerCase()]||T[r])M=m4e({element:x,maskInputOptions:T,tagName:q,type:r,value:M,maskInputFn:w});S(x,B?{text:M,isChecked:d,userTriggered:L}:{text:M,isChecked:d});L=x.name;r==="radio"&&L&&d&&V.querySelectorAll('input[type="radio"][name="'+
L+'"]').forEach(function(z){if(z!==x){var kb=z.value;S(z,B?{text:kb,isChecked:!d,userTriggered:!1}:{text:kb,isChecked:!d})}})}}
function S(r,x){var L=Pde.get(r);L&&L.text===x.text&&L.isChecked===x.isChecked||(Pde.set(r,x),r=N.getId(r),OJ(R)(Object.assign({},x,{id:r})))}
var R=k.inputCb;var V=k.doc;var N=k.mirror;var h=k.blockClass;var J=k.blockSelector;var m=k.ignoreClass;var a=k.ignoreSelector;var T=k.maskInputOptions;var w=k.maskInputFn;var P=k.sampling;var B=k.userTriggeredOnInput;var F=(P.input==="last"?["change"]:["input","change"]).map(function(r){return lc(r,OJ(E),V)}),K=V.defaultView;
if(!K)return function(){F.forEach(function(r){return r()})};
k=K.Object.getOwnPropertyDescriptor(K.HTMLInputElement.prototype,"value");P=[[K.HTMLInputElement.prototype,"value"],[K.HTMLInputElement.prototype,"checked"],[K.HTMLSelectElement.prototype,"value"],[K.HTMLTextAreaElement.prototype,"value"],[K.HTMLSelectElement.prototype,"selectedIndex"],[K.HTMLOptionElement.prototype,"selected"]];k&&k.set&&F.push.apply(F,_.$e(P.map(function(r){return MLI(r[0],r[1],{set:function(){OJ(E)({target:this,isTrusted:!1})}},!1,K)})));
return OJ(function(){F.forEach(function(r){return r()})})};
W0R=function(k){var E=[],S,R,V,N;YIR("CSSGroupingRule")&&((S=k.parentRule)==null?void 0:(R=S.constructor)==null?void 0:R.name)==="CSSGroupingRule"||YIR("CSSMediaRule")&&k.parentRule instanceof CSSMediaRule||YIR("CSSSupportsRule")&&k.parentRule instanceof CSSSupportsRule||YIR("CSSConditionRule")&&((V=k.parentRule)==null?void 0:(N=V.constructor)==null?void 0:N.name)==="CSSConditionRule"?(k=Array.from(k.parentRule.cssRules).indexOf(k),E.unshift(k)):k.parentStyleSheet&&(k=Array.from(k.parentStyleSheet.cssRules).indexOf(k),
E.unshift(k));return E};
Cf=function(k,E,S){var R,V;if(!k)return{};k.ownerNode?R=E.getId(k.ownerNode):V=S.getId(k);return{styleId:V,id:R}};
yzI=function(k,E){var S=k.styleSheetRuleCb;var R=k.mirror;var V=k.stylesheetManager;var N=E.win;if(!N.CSSStyleSheet||!N.CSSStyleSheet.prototype)return function(){};
var h=N.CSSStyleSheet.prototype.insertRule;N.CSSStyleSheet.prototype.insertRule=new ku(h,{apply:OJ(function(P,B,F){var K=_.n(F),r=K.next().value;K=K.next().value;var x=Cf(B,R,V.styleMirror),L=x.id;x=x.styleId;(L&&L!==-1||x&&x!==-1)&&S({id:L,styleId:x,adds:[{rule:r,index:K}]});return P.apply(B,F)})});
N.CSSStyleSheet.prototype.addRule=function(P,B,F){F=F===void 0?this.cssRules.length:F;return N.CSSStyleSheet.prototype.insertRule.apply(this,[P+" { "+B+" }",F])};
var J=N.CSSStyleSheet.prototype.deleteRule;N.CSSStyleSheet.prototype.deleteRule=new ku(J,{apply:OJ(function(P,B,F){var K=_.n(F).next().value,r=Cf(B,R,V.styleMirror),x=r.id;r=r.styleId;(x&&x!==-1||r&&r!==-1)&&S({id:x,styleId:r,removes:[{index:K}]});return P.apply(B,F)})});
N.CSSStyleSheet.prototype.removeRule=function(P){return N.CSSStyleSheet.prototype.deleteRule.apply(this,[P])};
if(N.CSSStyleSheet.prototype.replace){var m=N.CSSStyleSheet.prototype.replace;N.CSSStyleSheet.prototype.replace=new ku(m,{apply:OJ(function(P,B,F){var K=_.n(F).next().value,r=Cf(B,R,V.styleMirror),x=r.id;r=r.styleId;(x&&x!==-1||r&&r!==-1)&&S({id:x,styleId:r,replace:K});return P.apply(B,F)})})}if(N.CSSStyleSheet.prototype.replaceSync){var a=N.CSSStyleSheet.prototype.replaceSync;
N.CSSStyleSheet.prototype.replaceSync=new ku(a,{apply:OJ(function(P,B,F){var K=_.n(F).next().value,r=Cf(B,R,V.styleMirror),x=r.id;r=r.styleId;(x&&x!==-1||r&&r!==-1)&&S({id:x,styleId:r,replaceSync:K});return P.apply(B,F)})})}var T={};
F0i("CSSGroupingRule")?T.CSSGroupingRule=N.CSSGroupingRule:(F0i("CSSMediaRule")&&(T.CSSMediaRule=N.CSSMediaRule),F0i("CSSConditionRule")&&(T.CSSConditionRule=N.CSSConditionRule),F0i("CSSSupportsRule")&&(T.CSSSupportsRule=N.CSSSupportsRule));var w={};Object.entries(T).forEach(function(P){var B=_.n(P);P=B.next().value;B=B.next().value;w[P]={insertRule:B.prototype.insertRule,deleteRule:B.prototype.deleteRule};B.prototype.insertRule=new ku(w[P].insertRule,{apply:OJ(function(F,K,r){var x=_.n(r),L=x.next().value;
x=x.next().value;var q=Cf(K.parentStyleSheet,R,V.styleMirror),M=q.id;q=q.styleId;(M&&M!==-1||q&&q!==-1)&&S({id:M,styleId:q,adds:[{rule:L,index:[].concat(_.$e(W0R(K)),[x||0])}]});return F.apply(K,r)})});
B.prototype.deleteRule=new ku(w[P].deleteRule,{apply:OJ(function(F,K,r){var x=_.n(r).next().value,L=Cf(K.parentStyleSheet,R,V.styleMirror),q=L.id;L=L.styleId;(q&&q!==-1||L&&L!==-1)&&S({id:q,styleId:L,removes:[{index:[].concat(_.$e(W0R(K)),[x])}]});return F.apply(K,r)})})});
return OJ(function(){N.CSSStyleSheet.prototype.insertRule=h;N.CSSStyleSheet.prototype.deleteRule=J;m&&(N.CSSStyleSheet.prototype.replace=m);a&&(N.CSSStyleSheet.prototype.replaceSync=a);Object.entries(T).forEach(function(P){var B=_.n(P);P=B.next().value;B=B.next().value;B.prototype.insertRule=w[P].insertRule;B.prototype.deleteRule=w[P].deleteRule})})};
XYm=function(k,E){var S=k.mirror;var R=k.stylesheetManager;var V=null;V=E.nodeName==="#document"?S.getId(E):S.getId(xF(E));var N,h,J;k=E.nodeName==="#document"?(N=E.defaultView)==null?void 0:N.Document:(h=E.ownerDocument)==null?void 0:(J=h.defaultView)==null?void 0:J.ShadowRoot;var m=(k==null?0:k.prototype)?Object.getOwnPropertyDescriptor(k==null?void 0:k.prototype,"adoptedStyleSheets"):void 0;if(V===null||V===-1||!k||!m)return function(){};
Object.defineProperty(E,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get:function(){var a;return(a=m.get)==null?void 0:a.call(this)},
set:function(a){var T,w=(T=m.set)==null?void 0:T.call(this,a);if(V!==null&&V!==-1)try{oHe(R,a,V)}catch(P){}return w}});
return OJ(function(){Object.defineProperty(E,"adoptedStyleSheets",{configurable:m.configurable,enumerable:m.enumerable,get:m.get,set:m.set})})};
gHl=function(k,E){var S=k.styleDeclarationCb;var R=k.mirror;var V=k.ignoreCSSAttributes;var N=k.stylesheetManager;var h=E.win;var J=h.CSSStyleDeclaration.prototype.setProperty;h.CSSStyleDeclaration.prototype.setProperty=new ku(J,{apply:OJ(function(a,T,w){var P=_.n(w),B=P.next().value,F=P.next().value;P=P.next().value;if(V.has(B))return J.apply(T,[B,F,P]);var K,r=Cf((K=T.parentRule)==null?void 0:K.parentStyleSheet,R,N.styleMirror);K=r.id;r=r.styleId;(K&&K!==-1||r&&r!==-1)&&S({id:K,styleId:r,set:{property:B,
value:F,priority:P},index:W0R(T.parentRule)});return a.apply(T,w)})});
var m=h.CSSStyleDeclaration.prototype.removeProperty;h.CSSStyleDeclaration.prototype.removeProperty=new ku(m,{apply:OJ(function(a,T,w){var P=_.n(w).next().value;if(V.has(P))return m.apply(T,[P]);var B,F=Cf((B=T.parentRule)==null?void 0:B.parentStyleSheet,R,N.styleMirror);B=F.id;F=F.styleId;(B&&B!==-1||F&&F!==-1)&&S({id:B,styleId:F,remove:{property:P},index:W0R(T.parentRule)});return a.apply(T,w)})});
return OJ(function(){h.CSSStyleDeclaration.prototype.setProperty=J;h.CSSStyleDeclaration.prototype.removeProperty=m})};
UwI=function(k){var E=k.mediaInteractionCb;var S=k.blockClass;var R=k.blockSelector;var V=k.mirror;var N=k.sampling;k=k.doc;var h=OJ(function(m){return M6(OJ(function(a){if((a=z9(a))&&!q6(a,S,R,!0)){var T=a.currentTime,w=a.volume,P=a.muted,B=a.playbackRate,F=a.loop;E({type:m,id:V.getId(a),currentTime:T,volume:w,muted:P,playbackRate:B,loop:F})}}),N.media||500)}),J=[lc("play",h(0),k),
lc("pause",h(1),k),lc("seeked",h(2),k),lc("volumechange",h(3),k),lc("ratechange",h(4),k)];return OJ(function(){J.forEach(function(m){return m()})})};
Hth=function(k){var E=k.fontCb;k=k.doc;var S=k.defaultView;if(!S)return function(){};
var R=[],V=new WeakMap,N=S.FontFace;S.FontFace=function(h,J,m){var a=new N(h,J,m);V.set(a,{family:h,buffer:typeof J!=="string",descriptors:m,fontSource:typeof J==="string"?J:JSON.stringify(Array.from(new Uint8Array(J)))});return a};
k=uc(k.fonts,"add",function(h){return function(J){setTimeout(OJ(function(){var m=V.get(J);m&&(E(m),V.delete(J))}),0);
return h.apply(this,[J])}});
R.push(function(){S.FontFace=N});
R.push(k);return OJ(function(){R.forEach(function(h){return h()})})};
K01=function(k){var E=k.doc,S=k.mirror,R=k.blockClass,V=k.blockSelector,N=k.selectionCb,h=!0;k=OJ(function(){var J=E.getSelection();if(J&&!(h&&(J==null?0:J.isCollapsed))){h=J.isCollapsed||!1;for(var m=[],a=J.rangeCount||0,T=0;T<a;T++){var w=J.getRangeAt(T),P=w.startContainer,B=w.startOffset,F=w.endContainer;w=w.endOffset;q6(P,R,V,!0)||q6(F,R,V,!0)||m.push({start:S.getId(P),startOffset:B,end:S.getId(F),endOffset:w})}N({ranges:m})}});
k();return lc("selectionchange",k)};
pYe=function(k){var E=k.doc;var S=k.customElementCb;return(k=E.defaultView)&&k.customElements?uc(k.customElements,"define",function(R){return function(V,N,h){try{S({define:{name:V}})}catch(J){console.warn("Custom element callback failed for "+V)}return R.apply(this,[V,N,h])}}):function(){}};
AzI=function(k,E){var S=k.mutationCb,R=k.mousemoveCb,V=k.mouseInteractionCb,N=k.scrollCb,h=k.viewportResizeCb,J=k.inputCb,m=k.mediaInteractionCb,a=k.styleSheetRuleCb,T=k.styleDeclarationCb,w=k.canvasMutationCb,P=k.fontCb,B=k.selectionCb,F=k.customElementCb;k.mutationCb=function(){var K=_.sX.apply(0,arguments);E.mutation&&E.mutation.apply(E,_.$e(K));S.apply(null,_.$e(K))};
k.mousemoveCb=function(){var K=_.sX.apply(0,arguments);E.mousemove&&E.mousemove.apply(E,_.$e(K));R.apply(null,_.$e(K))};
k.mouseInteractionCb=function(){var K=_.sX.apply(0,arguments);E.mouseInteraction&&E.mouseInteraction.apply(E,_.$e(K));V.apply(null,_.$e(K))};
k.scrollCb=function(){var K=_.sX.apply(0,arguments);E.scroll&&E.scroll.apply(E,_.$e(K));N.apply(null,_.$e(K))};
k.viewportResizeCb=function(){var K=_.sX.apply(0,arguments);E.viewportResize&&E.viewportResize.apply(E,_.$e(K));h.apply(null,_.$e(K))};
k.inputCb=function(){var K=_.sX.apply(0,arguments);E.input&&E.input.apply(E,_.$e(K));J.apply(null,_.$e(K))};
k.mediaInteractionCb=function(){var K=_.sX.apply(0,arguments);E.mediaInteaction&&E.mediaInteaction.apply(E,_.$e(K));m.apply(null,_.$e(K))};
k.styleSheetRuleCb=function(){var K=_.sX.apply(0,arguments);E.styleSheetRule&&E.styleSheetRule.apply(E,_.$e(K));a.apply(null,_.$e(K))};
k.styleDeclarationCb=function(){var K=_.sX.apply(0,arguments);E.styleDeclaration&&E.styleDeclaration.apply(E,_.$e(K));T.apply(null,_.$e(K))};
k.canvasMutationCb=function(){var K=_.sX.apply(0,arguments);E.canvasMutation&&E.canvasMutation.apply(E,_.$e(K));w.apply(null,_.$e(K))};
k.fontCb=function(){var K=_.sX.apply(0,arguments);E.font&&E.font.apply(E,_.$e(K));P.apply(null,_.$e(K))};
k.selectionCb=function(){var K=_.sX.apply(0,arguments);E.selection&&E.selection.apply(E,_.$e(K));B.apply(null,_.$e(K))};
k.customElementCb=function(){var K=_.sX.apply(0,arguments);E.customElement&&E.customElement.apply(E,_.$e(K));F.apply(null,_.$e(K))}};
rzj=function(k,E){E=E===void 0?{}:E;var S=k.doc.defaultView;if(!S)return function(){};
AzI(k,E);var R;k.recordDOM&&(R=czC(k,k.doc));var V=epe(k),N=am1(k),h=tyb(k),J=T$I(k,{win:S}),m=B$C(k),a=UwI(k),T=function(){},w=function(){},P=function(){},B=function(){};
k.recordDOM&&(T=yzI(k,{win:S}),w=XYm(k,k.doc),P=gHl(k,{win:S}),k.collectFonts&&(B=Hth(k)));var F=K01(k),K=pYe(k),r=[];k=_.n(k.plugins);for(E=k.next();!E.done;E=k.next())E=E.value,r.push(E.observer(E.callback,S,E.options));return OJ(function(){Qs.forEach(function(L){return L.reset()});
var x;(x=R)==null||x.disconnect();V();N();h();J();m();a();T();w();P();B();F();K();r.forEach(function(L){return L()})})};
YIR=function(k){return typeof window[k]!=="undefined"};
F0i=function(k){return!!(typeof window[k]!=="undefined"&&window[k].prototype&&"insertRule"in window[k].prototype&&"deleteRule"in window[k].prototype)};
uah=function(k){k=new Uint8Array(k);for(var E="",S=0;S<k.byteLength;S++)E+=String.fromCharCode(k[S]);return btoa(E)};
xwb=function(k,E,S){if(k instanceof Array)return k.map(function(V){return xwb(V,E,S)});
if(k!==null){if(k instanceof Float32Array||k instanceof Float64Array||k instanceof Int32Array||k instanceof Uint32Array||k instanceof Uint8Array||k instanceof Uint16Array||k instanceof Int16Array||k instanceof Int8Array||k instanceof Uint8ClampedArray)return{rr_type:k.constructor.name,args:[Object.values(k)]};if(k instanceof ArrayBuffer){var R=k.constructor.name;k=uah(k);return{rr_type:R,base64:k}}if(k instanceof DataView)return{rr_type:k.constructor.name,args:[xwb(k.buffer,E,S),k.byteOffset,k.byteLength]};
if(k instanceof HTMLImageElement)return{rr_type:k.constructor.name,src:k.src};if(k instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:k.toDataURL()};if(k instanceof ImageData)return{rr_type:k.constructor.name,args:[xwb(k.data,E,S),k.width,k.height]};if(L0h(k,E)||typeof k==="object")return R=k.constructor.name,k=jVR(k,E,S),{rr_type:R,index:k}}return k};
$wt=function(k,E,S,R){for(var V=[],N=_.n(Object.getOwnPropertyNames(E.CanvasRenderingContext2D.prototype)),h=N.next(),J={};!h.done;J={prop$jscomp$58:void 0},h=N.next()){J.prop$jscomp$58=h.value;try{if(typeof E.CanvasRenderingContext2D.prototype[J.prop$jscomp$58]==="function"){var m=uc(E.CanvasRenderingContext2D.prototype,J.prop$jscomp$58,function(a){return function(T){return function(){var w=_.sX.apply(0,arguments),P=this;q6(this.canvas,S,R,!0)||setTimeout(function(){var B=Dwh(w,E,P);k(P.canvas,{type:Et["2D"],
property:a.prop$jscomp$58,args:B})},0);
return T.apply(this,w)}}}(J));
V.push(m)}}catch(a){h=MLI(E.CanvasRenderingContext2D.prototype,J.prop$jscomp$58,{set:function(T){return function(w){k(this.canvas,{type:Et["2D"],property:T.prop$jscomp$58,args:[w],setter:!0})}}(J)}),V.push(h)}}return function(){V.forEach(function(a){return a()})}};
fmC=function(k,E,S,R){var V=[];try{var N=uc(k.HTMLCanvasElement.prototype,"getContext",function(h){return function(J){var m=_.sX.apply(1,arguments);if(!q6(this,E,S,!0)){var a=J==="experimental-webgl"?"webgl":J;"__context"in this||(this.__context=a);R&&["webgl","webgl2"].includes(a)&&(m[0]&&typeof m[0]==="object"?(a=m[0],a.preserveDrawingBuffer||(a.preserveDrawingBuffer=!0)):m.splice(0,1,{preserveDrawingBuffer:!0}))}return h.apply(this,[J].concat(_.$e(m)))}});
V.push(N)}catch(h){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){V.forEach(function(h){return h()})}};
vHI=function(k,E,S,R,V,N){for(var h=[],J=_.n(Object.getOwnPropertyNames(k)),m=J.next(),a={};!m.done;a={prop$jscomp$59:void 0},m=J.next())if(a.prop$jscomp$59=m.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(a.prop$jscomp$59))try{if(typeof k[a.prop$jscomp$59]==="function"){var T=uc(k,a.prop$jscomp$59,function(w){return function(P){return function(){var B=_.sX.apply(0,arguments),F=P.apply(this,B);jVR(F,N,this);"tagName"in this.canvas&&!q6(this.canvas,R,V,!0)&&(B=
Dwh(B,N,this),S(this.canvas,{type:E,property:w.prop$jscomp$59,args:B}));return F}}}(a));
h.push(T)}}catch(w){m=MLI(k,a.prop$jscomp$59,{set:function(P){return function(B){S(this.canvas,{type:E,property:P.prop$jscomp$59,args:[B],setter:!0})}}(a)}),h.push(m)}return h};
btI=function(k,E,S,R){var V=[];V.push.apply(V,_.$e(vHI(E.WebGLRenderingContext.prototype,1,k,S,R,E)));typeof E.WebGL2RenderingContext!=="undefined"&&V.push.apply(V,_.$e(vHI(E.WebGL2RenderingContext.prototype,2,k,S,R,E)));return function(){V.forEach(function(N){return N()})}};
RCh=function(k){var E=k=k===void 0?{}:k,S=E.emit,R=E.checkoutEveryNms,V=E.checkoutEveryNth,N=E.blockClass===void 0?"rr-block":E.blockClass,h=E.blockSelector===void 0?null:E.blockSelector,J=E.ignoreClass===void 0?"rr-ignore":E.ignoreClass,m=E.ignoreSelector===void 0?null:E.ignoreSelector,a=E.maskTextClass===void 0?"rr-mask":E.maskTextClass,T=E.maskTextSelector===void 0?null:E.maskTextSelector,w=E.inlineStylesheet===void 0?!0:E.inlineStylesheet,P=E.maskAllInputs,B=E.maskInputOptions,F=E.slimDOMOptions,
K=E.maskInputFn,r=E.maskTextFn,x=E.hooks,L=E.packFn,q=E.sampling===void 0?{}:E.sampling,M=E.dataURLOptions===void 0?{}:E.dataURLOptions,d=E.mousemoveWait,z=E.recordDOM===void 0?!0:E.recordDOM,kb=E.recordCanvas===void 0?!1:E.recordCanvas,TI=E.recordCrossOriginIframes===void 0?!1:E.recordCrossOriginIframes,a1=E.recordAfter===void 0?k.recordAfter==="DOMContentLoaded"?k.recordAfter:"load":E.recordAfter,Ah=E.userTriggeredOnInput===void 0?!1:E.userTriggeredOnInput,th=E.collectFonts===void 0?!1:E.collectFonts,
He=E.inlineImages===void 0?!1:E.inlineImages,ve=E.plugins,Xm=E.keepIframeSrcFn===void 0?function(){return!1}:E.keepIframeSrcFn,U5=E.ignoreCSSAttributes===void 0?new Set([]):E.ignoreCSSAttributes;
Sm=E.errorHandler;var l4=TI?window.parent===window:!0,gY=!1;if(!l4)try{window.parent.document&&(gY=!1)}catch(aC){gY=!0}if(l4&&!S)throw Error("Ze");if(!l4&&!gY)return function(){};
d!==void 0&&q.mousemove===void 0&&(q.mousemove=d);Rr.reset();var IC=P===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:B!==void 0?B:{password:!0},md=F===!0||F==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:F==="all",headMetaDescKeywords:F==="all",headTitleMutations:F==="all"}:
F?F:{};k_h();var Kj,Lj=0,H0=function(aC){for(var Rt=_.n(ve||[]),zI=Rt.next();!zI.done;zI=Rt.next())zI=zI.value,zI.eventProcessor&&(aC=zI.eventProcessor(aC));L&&!gY&&(aC=L(aC));return aC};
Vw=function(aC,Rt){aC.timestamp=mw1();var zI;((zI=Qs[0])==null?0:zI.isFrozen())&&aC.type!==2&&(aC.type!==3||aC.data.source!==0)&&Qs.forEach(function(Bz){return Bz.unfreeze()});
l4?S==null||S(H0(aC),Rt):gY&&(Rt={type:"rrweb",event:H0(aC),origin:window.location.origin,isCheckout:Rt},window.parent.postMessage(Rt,"*"));aC.type===2?(Kj=aC,Lj=0):aC.type!==3||aC.data.source===0&&aC.data.isAttachIframe||(Lj++,aC=R&&aC.timestamp-Kj.timestamp>R,(V&&Lj>=V||aC)&&Zte(!0))};
var TG=function(aC){Vw({type:3,data:Object.assign({},{source:0},aC)})},iC=function(aC){return Vw({type:3,
data:Object.assign({},{source:3},aC)})},hC=function(aC){return Vw({type:3,
data:Object.assign({},{source:9},aC)})},Y2=new dwl({mutationCb:TG,
adoptedStyleSheetCb:function(aC){return Vw({type:3,data:Object.assign({},{source:15},aC)})}}),It=new sVe({mirror:Rr,
mutationCb:TG,stylesheetManager:Y2,recordCrossOriginIframes:TI,wrappedEmit:Vw});k=_.n(ve||[]);for(E=k.next();!E.done;E=k.next())E=E.value,E.getMirror&&E.getMirror({nodeMirror:Rr,crossOriginIframeMirror:It.crossOriginIframeMirror,crossOriginIframeStyleMirror:It.crossOriginIframeStyleMirror});var Wz=new lmh;MyC=new qIj({recordCanvas:kb,mutationCb:hC,win:window,blockClass:N,blockSelector:h,mirror:Rr,sampling:q.canvas,dataURLOptions:M});var VP=new zph({mutationCb:TG,scrollCb:iC,bypassOptions:{blockClass:N,
blockSelector:h,maskTextClass:a,maskTextSelector:T,inlineStylesheet:w,maskInputOptions:IC,dataURLOptions:M,maskTextFn:r,maskInputFn:K,recordCanvas:kb,inlineImages:He,sampling:q,slimDOMOptions:md,iframeManager:It,stylesheetManager:Y2,canvasManager:MyC,keepIframeSrcFn:Xm,processedNodeManager:Wz},mirror:Rr});Zte=function(aC){aC=aC===void 0?!1:aC;if(z){Vw({type:4,data:{href:window.location.href,width:QLh(),height:z3l()}},aC);Y2.reset();VP.init();Qs.forEach(function(zI){return zI.lock()});
var Rt=sLI({mirror:Rr,blockClass:N,blockSelector:h,maskTextClass:a,maskTextSelector:T,inlineStylesheet:w,maskAllInputs:IC,maskTextFn:r,maskInputFn:K,slimDOM:md,dataURLOptions:M,recordCanvas:kb,inlineImages:He,onSerialize:function(zI){zI.nodeName==="IFRAME"&&Rr.nodeMetaMap.get(zI)&&QVm(It,zI);EHm(zI,Rr)&&OtA(Y2,zI);zI&&Lf(zI)&&G_1(VP,Lf(zI),document)},
onIframeLoad:function(zI,Bz){Cdt(It,zI,Bz);zI.contentWindow&&zI.contentDocument&&kkj(VP,zI.contentWindow.Element,zI.contentDocument)},
onStylesheetLoad:function(zI,Bz){Ett(Y2,zI,Bz)},
keepIframeSrcFn:Xm});Rt?(Vw({type:2,data:{node:Rt,initialOffset:qFA(window)}},aC),Qs.forEach(function(zI){return zI.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&oHe(Y2,document.adoptedStyleSheets,Rr.getId(document))):console.warn("Failed to snapshot the document")}};
try{var LR=[],Mp=function(aC){var Rt;return OJ(rzj)({mutationCb:TG,mousemoveCb:function(zI,Bz){return Vw({type:3,data:{source:Bz,positions:zI}})},
mouseInteractionCb:function(zI){return Vw({type:3,data:Object.assign({},{source:2},zI)})},
scrollCb:iC,viewportResizeCb:function(zI){return Vw({type:3,data:Object.assign({},{source:4},zI)})},
inputCb:function(zI){return Vw({type:3,data:Object.assign({},{source:5},zI)})},
mediaInteractionCb:function(zI){return Vw({type:3,data:Object.assign({},{source:7},zI)})},
styleSheetRuleCb:function(zI){return Vw({type:3,data:Object.assign({},{source:8},zI)})},
styleDeclarationCb:function(zI){return Vw({type:3,data:Object.assign({},{source:13},zI)})},
canvasMutationCb:hC,fontCb:function(zI){return Vw({type:3,data:Object.assign({},{source:10},zI)})},
selectionCb:function(zI){Vw({type:3,data:Object.assign({},{source:14},zI)})},
customElementCb:function(zI){Vw({type:3,data:Object.assign({},{source:16},zI)})},
blockClass:N,ignoreClass:J,ignoreSelector:m,maskTextClass:a,maskTextSelector:T,maskInputOptions:IC,inlineStylesheet:w,sampling:q,recordDOM:z,recordCanvas:kb,inlineImages:He,userTriggeredOnInput:Ah,collectFonts:th,doc:aC,maskInputFn:K,maskTextFn:r,keepIframeSrcFn:Xm,blockSelector:h,slimDOMOptions:md,dataURLOptions:M,mirror:Rr,iframeManager:It,stylesheetManager:Y2,shadowDomManager:VP,processedNodeManager:Wz,canvasManager:MyC,ignoreCSSAttributes:U5,plugins:(ve==null?void 0:(Rt=ve.filter(function(zI){return zI.observer}))==
null?void 0:Rt.map(function(zI){return{observer:zI.observer,
options:zI.options,callback:function(Bz){return Vw({type:6,data:{plugin:zI.name,payload:Bz}})}}}))||[]},x)};
S0j(It,function(aC){try{LR.push(Mp(aC.contentDocument))}catch(Rt){console.warn(Rt)}});
var tC=function(){Zte();LR.push(Mp(document))};
document.readyState==="interactive"||document.readyState==="complete"?tC():(LR.push(lc("DOMContentLoaded",function(){Vw({type:0,data:{}});a1==="DOMContentLoaded"&&tC()})),LR.push(lc("load",function(){Vw({type:1,
data:{}});a1==="load"&&tC()},window)));
return function(){LR.forEach(function(aC){return aC()});
Wz.destroy();Sm=void 0}}catch(aC){console.warn(aC)}};
_.X=function(k,E){E=OX(zB(E));k.innerHTML=E};
Iyj=function(k){var E=V7I;E||(E=NSi(),E=V7I=_.fO.transpose(E));E=E[k];return typeof E==="string"?E:_.Ne(k)};
ntb=function(k){k=String(k).toLowerCase();var E=NSi()[k];return typeof E==="string"?E:_.Ir(k)};
iYe=function(k){k=k.toLowerCase();k=NSi()[k];return typeof k==="string"?k:null};
NSi=function(){if(!hCC){for(var k=Object.assign({},JfI),E=_.n(cf1),S=E.next();!S.done;S=E.next())S=S.value,k[S.toLowerCase()]=S;hCC=k}return hCC};
aye=function(k,E){var S=window.customElements;return S&&S.get(k)||mN1[k]===!0?2:E.name==="HTMLUnknownElement"?1:E.name==="HTMLElement"&&eCh.test(k)?3:0};
wgi=function(k,E){switch(E){case "innerHTML":return t7I(k)===1?2:null;case "textContent":return k=t7I(k),k===1||k===6?1:null;default:var S,R;return(R=(S=TSj[k.localName])==null?void 0:S[E])!=null?R:null}};
t7I=function(k){var E=k.localName,S=aye(E,k.constructor);switch(S){case 0:case 1:return P5C(E,k);case 3:case 2:return 1;default:_.s5(S,"got an unknown element classification")}};
P5C=function(k,E){var S=Object.hasOwnProperty.call(BSR,k)?BSR[k]:null;return S!==null?S:Object.hasOwnProperty.call(Y0h,k)&&E instanceof SVGElement?Y0h[k]:null};
Wrm=function(k,E){return E};
yfl=function(k){return(k=k.split(Fri,2))?{url:k[0],metadata:k[1]}:null};
Xgm=function(k){var E=String(k.url).replace(otl,encodeURIComponent);if(k=k.metadata){otl.lastIndex=0;if(otl.test(k))return null;E+=" "+k}return E};
KrI=function(k){function E(a){var T=a.localName;if(!a.getAttribute("is")&&aye(T,a.constructor)===2){var w;return(w=m)!=null?w:m=document.createElement("polyresinuncustomized")}(a=J[T])||(a=J[T]=document.createElement(T));return a}
var S=k.reportHandler||void 0,R=k.safeTypesBridge||gtt,V=/^$/;if(k=k.allowedIdentifierPrefixes){k=_.n(k);for(var N=k.next();!N.done;N=k.next())V=new RegExp(V.source+"|^"+_.UNm(N.value))}S&&S(!1,"initResin",null);var h=HYC(V,R,S),J={},m=null;return function(a,T,w){var P=a.nodeType;if(P!==Node.ELEMENT_NODE){if(P===Node.TEXT_NODE){T=a.parentElement;w=!T;if(T&&T.nodeType===Node.ELEMENT_NODE){P=T.localName;var B=aye(P,T.constructor);switch(B){case 0:case 1:T=P5C(P,T);w=T===1||T===6;break;case 3:case 2:w=
!0;break;default:_.s5(B,"got an unknown element classification")}}if(w)return function(x){return""+R(x,"STRING",x)}}return function(x){if(!x&&x!==document.all)return x;
S&&S(!0,"Failed to sanitize "+(a.parentElement&&a.parentElement.nodeName)+" #text node to value "+x,a.parentElement);return nI}}var F=a.localName;
P=E(a);var K=null;switch(w){case "attribute":if(ntb(T)in P)break;return function(x){return x};
case "property":if(T in P){K=wgi(P,T);break}if((B=iYe(T))&&B in P)break;return function(x){return x};
default:_.s5(w,"got an unknown resin type, expected either 'property' or 'attribute'")}var r=w==="attribute"?T.toLowerCase():Iyj(T);K||(K=UmC(F,r,function(x){var L=a.getAttribute(x);return!L||/[\[\{]/.test(x)?null:L}));
return function(x){var L=iW,q=null;if(!x&&x!==document.all)return x;if(K!=null){var M=h[K],d=M.safeType;q=M.safeReplacement;d&&(L=R(x,d,iW));L===iW&&(M.filterString?(L=String(R(x,"STRING",x)),L=M.filterString(F,r,L)):M.filterRaw&&(L=M.filterRaw(F,r,x,a)),L===q&&(L=iW))}L===iW&&(L=q||nI,S&&S(!0,"Failed to sanitize attribute of <"+F+">: <"+F+" "+r+'="'+x+'">',a));return L}}};
HYC=function(k,E,S){return[,{filterRaw:function(R,V,N){return N},
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:pg1,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:pg1,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:nI,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:AfI,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(R,V,N){N=
String(N).toLowerCase();return pnC(R,V,N)?N:nI},
safeReplacement:nI,safeType:void 0},,{filterRaw:void 0,filterString:function(R,V,N){return k.test(N)?N:nI},
safeReplacement:nI,safeType:"CONSTANT"},{filterRaw:function(R,V,N,h){if(typeof N==="string")var J=(J=N.match(rfC))?J.map(yfl).filter(Boolean):[];else if(Array.isArray(N))J=N;else return pg1;var m=J;J=[];var a=[],T={};if(Array.isArray(m))for(var w=0,P=m.length;w<P;++w){var B=m[w],F=B&&B.url;if(F){var K=E(F,"URL",T);if(K){var r=K!==T;(r?J:a).push({url:r?K:F,metadata:B.metadata})}}}else a.push(m);m=a.length?JSON.stringify(a):null;a=iW;if(J.length){if(!Array.isArray(J))throw Error();a=J.map(Xgm).filter(Boolean).join(" , ")||
iW}m&&S&&S(!0,"Failed to sanitize attribute value of <"+R+">: <"+R+" "+V+'="'+N+'">: '+m,h);return a===iW?pg1:a},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
uGI=function(k){var E=KrI(k);return function(S,R,V,N){return N||N===document.all?E(S,R,V)(N):N}};
hI=function(k,E){function S(){function V(J,m,a){for(m=Reflect.getMetadata("parameters",J)||[];m.length<=a;)m.push(null);m[a]=m[a]||[];m[a].push(h);Reflect.defineMetadata(m,J);return J}
var N=_.sX.apply(0,arguments);if(this instanceof S)return R.apply(this,N),this;var h=new (Function.prototype.bind.apply(S,[null].concat(_.$e(N))));V.annotation=h;return V}
var R=xNl(E);S.prototype.toString=function(){return"@"+k};
return S.annotationCls=S};
xNl=function(k){return function(){var E=_.sX.apply(0,arguments),S=this;k.forEach(function(R,V){V=E[V];if(Array.isArray(R))S[R[0]]=V&&V!==void 0?V:R[1];else for(var N in R)S[N]=V&&V[N]!==void 0?V[N]:R[N]})}};
LrR=function(k){return k!==void 0&&k!==null};
JI=function(k){if(typeof k==="string")return k;if(k===void 0||k===null)return""+k;if(k.overriddenName)return k.overriddenName;if(k.name)return k.name;k=k.toString();var E=k.indexOf("\n");return E===-1?k:k.substring(0,E)};
jKR=function(k){k.__forward_ref__=jKR;k.toString=function(){return JI(this())};
return k};
ci=function(k){return typeof k==="function"&&k.hasOwnProperty("__forward_ref__")&&k.__forward_ref__===jKR?k():k};
DNR=function(k){return k?k.map(function(E){return new (Function.prototype.bind.apply(E.type.annotationCls,[null].concat(_.$e(E.args?E.args:[]))))}):[]};
$Nt=function(k){for(var E=[],S=0;S<k.length;++S){if(E.indexOf(k[S])>-1){E.push(k[S]);break}E.push(k[S])}return E};
fyh=function(k){return k.length>1?" ("+$Nt(k.slice().reverse()).map(function(E){return JI(E.token)}).join(" -> ")+")":""};
bY1=function(k,E,S,R){if(R){var V=Error("bf``"+(R instanceof Error?R.message:R));V.ngOriginalError=R}else V=Error();V.addKey=vt1;V.keys=[E];V.injectors=[k];V.constructResolvingMessage=S;V.message=V.constructResolvingMessage();V.ngOriginalError=R;return V};
vt1=function(k,E){this.injectors.push(k);this.keys.push(E);this.message=this.constructResolvingMessage()};
ZY1=function(k,E){return bY1(k,E,function(){return"No provider for "+JI(this.keys[0].token)+"!"+fyh(this.keys)})};
dNm=function(k,E){return bY1(k,E,function(){return"Cannot instantiate cyclic dependency!"+fyh(this.keys)})};
sKh=function(k,E,S){return bY1(k,S,function(){var R=JI(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+R+"!"+fyh(this.keys)+"."},E)};
lyb=function(k,E){for(var S=[],R=0,V=E.length;R<V;R++){var N=E[R];N&&N.length!=0?S.push(N.map(JI).join(" ")):S.push("?")}return Error("ff`"+JI(k)+"`"+S.join(", ")+"`"+JI(k))};
C51=function(k){var E=void 0,S=void 0;if(k&&k.useClass!==void 0){E=k.useClass;var R=ci(k.useClass);var V=M7l.factory(R);R=q0I(R)}else k&&k.useExisting!==void 0?(V=function(N){return N},R=[zCj(mS.get(ci(k.useExisting)))]):k&&k.useFactory!==void 0?(V=k.useFactory,R=QKC(k.useFactory,k.deps)):(S=k.useValue,V=function(){return k.useValue},R=OYt);
return new GkA(V,R,E,S)};
Exh=function(k){return new kzh(mS.get(ci(k.provide)),[C51(k)],k.multi)};
Rrh=function(k){k=SDI(k,[]).map(Exh);for(var E=new Map,S=0;S<k.length;S++){var R=k[S],V=E.get(R.key.id);if(V){if(R.multiProvider!==V.multiProvider)throw Error("hf`"+V+"`"+R);if(R.multiProvider)for(var N=0;N<R.resolvedFactories.length;N++)V.resolvedFactories.push(R.resolvedFactories[N]);else E.set(R.key.id,R)}else V=void 0,R.multiProvider?V=new kzh(R.key,R.resolvedFactories.slice(),R.multiProvider):V=R,E.set(R.key.id,V)}return Array.from(E.values())};
SDI=function(k,E){k.forEach(function(S){if(S instanceof VGm)E.push({provide:S,useClass:S});else if(S&&typeof S=="object"&&S.provide!==void 0)E.push(S);else if(S instanceof Array)SDI(S,E);else throw Error("ef`"+S);});
return E};
QKC=function(k,E){if(E){var S=E.map(function(R){return[R]});
return E.map(function(R){return NhR(k,R,S)})}return q0I(k)};
q0I=function(k){var E=M7l.parameters(k);if(!E)return[];if(E.some(function(S){return S==null}))throw lyb(k,E);
return E.map(function(S){return NhR(k,S,E)})};
NhR=function(k,E,S){var R=null,V=!1;if(!Array.isArray(E))return E instanceof Iqt?nxA(E.token,V,null):nxA(E,V,null);for(var N=null,h=0;h<E.length;++h){var J=E[h];if(J instanceof VGm)R=J;else if(J instanceof Iqt)R=J.token;else if(J instanceof iFh)V=!0;else if(J instanceof hrb||J instanceof JH1)N=J}R=ci(R);if(R!=null)return nxA(R,V,N);throw lyb(k,S);};
nxA=function(k,E,S){return new cHt(mS.get(ci(k)),E,S)};
m71=function(k,E){for(var S=Array(k.providers.length),R=0;R<k.providers.length;++R){var V=R;if(R<0||R>=k.providers.length)throw Error("gf`"+R);S[V]=E(k.providers[R])}return S};
erR=function(k){return typeof k==="function"&&M7l.parameters(k).every(function(E){return!!E})};
Thh=function(k){var E=aqb;tGl.get(k)||tGl.set(k,new E);return tGl.get(k)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(k){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(k)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(k){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(k)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(k,E){var S,R;if(k.contains(E))return!0;k=_.em(k).querySelectorAll("content,slot");for(S=0;S<k.length;++S){var V=_.em(k[S]).getDistributedNodes();for(R=0;R<V.length;++R)if(V[R].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(V[R],E))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(k){k.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(k)&&k.preventDefault();k.targetTouches&&(k=k.targetTouches[0],wDA=k.pageX,PGC=k.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 k=0,E=ar.length;k<E;k++)document.addEventListener(ar[k],_._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 k=0,E=ar.length;k<E;k++)document.removeEventListener(ar[k],_._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(k){var E=_.em(k).rootTarget;k.type!=="touchmove"&&Bhm!==E&&(Bhm=E,YDe=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.em(k).path));if(!YDe.length)return!0;if(k.type==="touchstart")return!1;k=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(k);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(YDe,k.deltaX,k.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(k){for(var E=[],S=k.indexOf(WsI),R=0;R<=S;R++)if(k[R].nodeType===Node.ELEMENT_NODE){var V=k[R],N=V.style;N.overflow!=="scroll"&&N.overflow!=="auto"&&(N=window.getComputedStyle(V));N.overflow!=="scroll"&&N.overflow!=="auto"||E.push(V)}return E};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(k,E,S){if(E||S)for(var R=Math.abs(S)>=Math.abs(E),V=0;V<k.length;V++){var N=k[V];if(R?S<0?N.scrollTop>0:N.scrollTop<N.scrollHeight-N.clientHeight:E<0?N.scrollLeft>0:N.scrollLeft<N.scrollWidth-N.clientWidth)return N}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(k){var E={deltaX:k.deltaX,deltaY:k.deltaY};"deltaX"in k||("wheelDeltaX"in k&&"wheelDeltaY"in k?(E.deltaX=-k.wheelDeltaX,E.deltaY=-k.wheelDeltaY):"wheelDelta"in k?(E.deltaX=0,E.deltaY=-k.wheelDelta):"axis"in k?(E.deltaX=k.axis===1?k.detail:0,E.deltaY=k.axis===2?k.detail:0):k.targetTouches&&(k=k.targetTouches[0],E.deltaX=wDA-k.pageX,E.deltaY=PGC-k.pageY));return E};
Fsm=function(k){this.element=k;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
oxm=function(k){this.element=k;this.color=window.getComputedStyle(k).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");_.em(this.waveContainer).appendChild(this.wave);yH1(this)};
tI=function(k,E){for(var S in k)if(S.toLowerCase()===E.toLowerCase())return k[S]};
XDA=function(k,E){for(var S in k)if(S.toLowerCase()===E.toLowerCase()){delete k[S];break}};
U7I=function(k){k=_.fO.clone(k);for(var E=0;E<gxl.length;++E){var S=gxl[E],R=tI(k,S);R&&(k["X-Goog-Upload-Header-"+S]=R,XDA(k,S))}return k};
HFe=function(k){k=_.fO.clone(k);XDA(k,"X-Goog-Upload-Status")};
pDt=function(k){return KsI.some(function(E){return E.test(k)})};
x7l=function(k,E){var S;var R=(S=k.formContent)==null?void 0:S.locale;S=R==null?void 0:R.split("-")[0];R=R&&AHI.includes(R)?R:S&&AHI.includes(S)?S:void 0;R=(R!=null?R:"en").replaceAll("-","_").toLowerCase();var V;k=((V=k.initializationData)==null?0:V.useNightlyRelease)?"nightly":"live";var N;return(E==null?0:(N=E.getEnableAlohaBinarySplit)==null?0:N.call(E))?_.BH(rHh,k):_.BH(u2e,k,R)};
D7A=function(k,E,S,R){if(Lsm&&j0C===E)return Lsm;j0C=E;var V=x7l(k,R);return Lsm=E.feedbackV2GlobalObject?Promise.resolve(E.feedbackV2GlobalObject):new Promise(function(N,h){var J=_.g7("SCRIPT");_.Ib(J,V);J.onload=function(){E.feedbackV2GlobalObject?N(E.feedbackV2GlobalObject):h(Error("lf"))};
J.onerror=function(){h(Error("mf`"+V.toString()))};
S.body.appendChild(J)})};
vxC=function(k,E,S,R){if($7A&&fqj===E)return $7A;fqj=E;var V=x7l(k,R);return $7A=E.feedbackV2GlobalObject?Promise.resolve(E.feedbackV2GlobalObject):new Promise(function(N,h){var J=_.g7("SCRIPT");_.Ib(J,V);J.onload=function(){E.feedbackV2GlobalObject?N(E.feedbackV2GlobalObject):h(Error("lf"))};
J.onerror=function(){h(Error("mf`"+V.toString()))};
S.body.appendChild(J)})};
bFt=function(k,E,S,R,V){V=V===void 0?!0:V;var N,h,J,m,a;return _.c(function(T){switch(T.nextAddress){case 1:return N=Date.now(),T.yield(D7A(k,S,R,E),2);case 2:h=T.yieldResult;if(!(V||((m=k.initializationData)==null?0:m.useNightlyRelease)||((a=k.initializationData)==null?0:a.isLocalServer))){J=h.initializeFeedbackClient(k,N,E);T.jumpTo(3);break}return T.yield(h.initializeFeedbackClientAsync(k,N,E),4);case 4:J=T.yieldResult;case 3:return J.initiateAloha(),T.return(J)}})};
ZFl=function(k,E,S,R){var V,N,h;return _.c(function(J){if(J.nextAddress==1)return V=Date.now(),J.yield(vxC(k,S,R.document,E),2);if(J.nextAddress!=3)return N=J.yieldResult,J.yield(N.initializeFeedbackClientAsync(k,V,E,R),3);h=J.yieldResult;h.initiateAloha();return J.return(h)})};
d7C=function(k,E,S){var R=!0;R=R===void 0?!0:R;var V,N,h,J,m,a,T,w,P,B;return _.c(function(F){V=S||_.Vt;if((N=E)==null?0:(J=(h=N).getEnableAlohaBinarySplit)==null?0:J.call(h)){m=V;if(m.isFormOpened)throw a=Error("nf"),a.name="DuplicateFormError",a;m.isFormOpened=!0;k.callbacks=k.callbacks||{};T=k.callbacks.onClose||function(){};
k.callbacks.onClose=function(K){m.isFormOpened=!1;T(K)};
try{return F.return(ZFl(k,E,m,V))}catch(K){throw m.isFormOpened=!1,K;}}else{w=V;if(w.isFormOpened)throw P=Error("nf"),P.name="DuplicateFormError",P;w.isFormOpened=!0;k.callbacks=k.callbacks||{};B=k.callbacks.onClose||function(){};
k.callbacks.onClose=function(K){w.isFormOpened=!1;B(K)};
try{return F.return(bFt(k,E,w,V.document,R))}catch(K){throw w.isFormOpened=!1,K;}}_.KR(F)})};
zrm=function(k,E){return _.c(function(S){return S.return(new Promise(function(R,V){Number.isInteger(Number(k))&&Number(k)>0?(V=s01(E!=null?E:"")+"/aloha_form_properties?productId="+k,lql(V,function(N){N=N.target;var h=null;try{var J=JSON,m=J.stringify;if(N.JSC$9791_xhr_){var a=N.JSC$9791_xhr_.responseText;a.indexOf(")]}'\n")==0&&(a=a.substring(5));var T=(0,_.TR)(a)}else T=void 0;h=zsR(MGI,m.call(J,T))}catch(w){m=new MGI,T=qDI(),T=_.wW(T,13,!1),T=_.wW(T,14,!0),T=_.wW(T,15,!0),T=_.wW(T,20,!1),h=_.Xo(m,
1,T)}R(h)},"GET","",{},2E3,!0)):V(Error("of`"+k))}))})};
s01=function(k){return pDt(k)?k:"https://www.google.com/tools/feedback"};
CGI=function(k){k=k.match(new RegExp(Q0I,"gi"))||[];k=_.n(k);for(var E=k.next();!E.done;E=k.next()){E=E.value;a:{var S=_.n(OF1);for(var R=S.next();!R.done;R=S.next())if(R.value.test(E)){S=!1;break a}S=!0}if(!S)a:{S=_.n(Gzm);for(R=S.next();!R.done;R=S.next())if(R.value.test(E)){S=!0;break a}S=!1}if(S)return!0}return!1};
k6j=function(k,E){var S={},R=Object.keys(k);R=_.n(R);for(var V=R.next();!V.done;V=R.next())V=V.value,S[V]=E(V,k[V]);return S};
EDt=function(k){switch(k){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"}};
Rmt=function(k){if(window.crypto&&window.crypto.getRandomValues)try{var E=Array(k),S=new Uint8Array(k);window.crypto.getRandomValues(S);for(var R=0;R<E.length;R++)E[R]=S[R];return E}catch(N){}E=Array(k);for(S=0;S<k;S++){R=Date.now();for(var V=0;V<R%23;V++)E[S]=Math.random();E[S]=Math.floor(Math.random()*256)}if(S9I)for(S=1,R=0;R<S9I.length;R++)E[S%k]^=E[(S-1)%k]/4^S9I.charCodeAt(R),S++;return E};
Pi=function(k){k=Rmt(k);for(var E=[],S=0;S<k.length;S++)E.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(k[S]&63));return E.join("")};
V8I=function(){var k=_.Vt.ytLoggingDocDocumentNonce_;k||(k=Pi(16),_.J6("ytLoggingDocDocumentNonce_",k));return k};
ITl=function(k){k&&_.f2("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:NBm,clientScreenNonce:k})};
nDt=function(k){return _.Mg("client-screen-nonce-store",{})[k===void 0?0:k]};
iSh=function(k,E){E=E===void 0?0:E;var S=_.Mg("client-screen-nonce-store");S||(S={},_.l$("client-screen-nonce-store",S));S[E]=k};
hmI=function(k){k=k===void 0?0:k;return k===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+k};
J$h=function(k){return _.Mg(hmI(k===void 0?0:k))};
_.Wi=function(k){return(k=J$h(k===void 0?0:k))?new Yu({veType:k,youtubeData:void 0,jspbYoutubeData:void 0}):null};
c$l=function(){var k=_.Mg("csn-to-ctt-auth-info");k||(k={},_.l$("csn-to-ctt-auth-info",k));return k};
mlA=function(){return Object.values(_.Mg("client-screen-nonce-store",{})).filter(function(k){return k!==void 0})};
_.Fe=function(k){k=nDt(k===void 0?0:k);if(!k&&!_.qg("USE_CSN_FALLBACK",!0))return null;k||(k="UNDEFINED_CSN");return k?k:null};
aTb=function(k){for(var E=_.n(Object.values(emI)),S=E.next();!S.done;S=E.next())if(_.Fe(S.value)===k)return!0;return!1};
t8m=function(k,E,S){var R=c$l();(S=_.Fe(S))&&delete R[S];E&&(R[k]=E)};
yw=function(k){return c$l()[k]};
_.or=function(k,E,S,R){S=S===void 0?0:S;if(k!==nDt(S)||E!==_.Mg(hmI(S)))if(t8m(k,R,S),iSh(k,S),_.l$(hmI(S),E),E=function(){setTimeout(function(){ITl(k)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(E)}catch(V){E()}else E()};
TBC=function(k,E){E=E===void 0?"":E;var S=[],R;for(R in k)if(k.hasOwnProperty(R)){var V=E!==""?E+"."+R:R;typeof k[R]==="object"?S.push.apply(S,_.$e(TBC(k[R],V))):S.push([V,k[R]])}S.sort();return S};
_.gW=function(k){var E=_.sX.apply(1,arguments);if(!Xe(k)||E.some(function(R){return!Xe(R)}))throw Error("pf");
E=_.n(E);for(var S=E.next();!S.done;S=E.next())w71(k,S.value)};
w71=function(k,E){for(var S in E)if(Xe(E[S])){if(S in k&&!Xe(k[S]))throw Error("qf");S in k||(k[S]={});w71(k[S],E[S])}else if(PAi(E[S])){if(S in k&&!PAi(k[S]))throw Error("rf");S in k||(k[S]=[]);BBl(k[S],E[S])}else k[S]=E[S];return k};
BBl=function(k,E){E=_.n(E);for(var S=E.next();!S.done;S=E.next())S=S.value,Xe(S)?k.push(w71({},S)):PAi(S)?k.push(BBl([],S)):k.push(S);return k};
Xe=function(k){return typeof k==="object"&&!Array.isArray(k)};
PAi=function(k){return typeof k==="object"&&Array.isArray(k)};
WfI=function(k){for(var E=_.n(Object.entries(Y9I)),S=E.next();!S.done;S=E.next())if(S=_.n(S.value),S.next(),S=S.next().value,S==="SLI_STATUS_"+k)return S;return"SLI_STATUS_UNKNOWN"};
_.Ut=function(k,E,S,R){return Ff1(k,E,function(){return new _.y$t(k,E,S,R)})};
_.oDI=function(){return _.Ut("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
X7I=function(){return _.Ut("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Hi=function(){return _.Ut("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
gDC=function(){return _.Ut("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
Ul1=function(){return _.Ut("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
HS1=function(){return _.Ut("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
A$A=function(k){k&&(k.dataset?k.dataset[Kfi()]="true":_.hE([_.To(p7b)],k,"data-loaded","true".toString()))};
r$C=function(k){return k?k.dataset?k.dataset[Kfi()]:k.getAttribute("data-loaded"):null};
Kfi=function(){return uYC.loaded||(uYC.loaded="loaded".replace(/\-([a-z])/g,function(k,E){return E.toUpperCase()}))};
_.KI=function(k,E,S){xli(k,E,S===void 0?null:S)};
_.joh=function(k,E){k&&E&&(k=""+_.Oj(E),(k=LfC[k])&&_.FRA(k))};
xli=function(k,E,S){S=S===void 0?null:S;var R=_.Dlh(typeof k==="string"?k:k.toString()),V=document.getElementById(R),N=V&&r$C(V),h=V&&!N;N?E&&E():(E&&(N=_.TU(R,E),E=""+_.Oj(E),LfC[E]=N),h||(V=$lt(k,R,function(){r$C(V)||(A$A(V),_.yVl(R),_.W_(function(){_.XMh(R)},0))},S)))};
$lt=function(k,E,S,R){R=R===void 0?null:R;var V=_.g7("SCRIPT");V.id=E;V.onload=function(){S&&setTimeout(S,0)};
V.onreadystatechange=function(){switch(V.readyState){case "loaded":case "complete":V.onload()}};
R&&V.setAttribute("nonce",R);_.Ib(V,typeof k==="string"?_.Lu(k):k);k=document.getElementsByTagName("head")[0]||document.body;k.insertBefore(V,k.firstChild);return V};
_.Dlh=function(k){var E=document.createElement("a");MU(E,k);return"js-"+pI(E.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
fTl=function(k){var E=_.Mg("INNERTUBE_HOST_OVERRIDE");E&&(k=String(E)+String(_.AI(k)));return k};
vDR=function(k){var E={};_.Y("json_condensed_response")&&(E.prettyPrint="false");return k=srb(k,E)};
_.rW=function(k){return J3(k)?"same-origin":"include"};
_.uW=function(k){return J3(k)?"same-origin":"cors"};
xu=function(k,E,S){S=S===void 0?{}:S;k={method:E===void 0?"POST":E,mode:_.uW(k),credentials:_.rW(k)};E={};for(var R=_.n(Object.keys(S)),V=R.next();!V.done;V=R.next())V=V.value,S[V]&&(E[V]=S[V]);Object.keys(E).length>0&&(k.headers=E);return k};
_.LI=function(k,E){E=E===void 0?{}:E;return"service:"+k+"/"+Object.keys(E).sort().map(function(S){return S+":"+E[S]}).join("/")};
bSI=function(k){var E,S,R,V;k=(E=_.W(k,_.jm))==null?void 0:(S=E.watchEndpointSupportedOnesieConfig)==null?void 0:(R=S.html5PlaybackOnesieConfig)==null?void 0:(V=R.commonConfig)==null?void 0:V.url;if(!k)return[];E=new _.DZ(k);return E.JSC$10027_domain_?["https://"+E.JSC$10027_domain_+"/generate_204"]:[]};
_.soI=function(){return ZSI()||Ozh()||dle&&M3("version/")?!0:_.Mg("EOM_VISITOR_DATA")?!1:!0};
lTt=function(k){var E=k.docid||k.video_id||k.videoId||k.id;if(E)return E;E=k.raw_player_response;E||(k=k.player_response)&&(E=JSON.parse(k));return E&&E.videoDetails&&E.videoDetails.videoId||null};
M8j=function(k){return k.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
$u=function(k){return!isNaN(Number(k))&&!_.Jh(k)};
_.vi=function(k,E,S,R){R=R===void 0?!0:R;var V=_.Mg("VALID_SESSION_TEMPDATA_DOMAINS",[]),N=_.iJ(window.location.href);N&&V.push(N);N=_.iJ(k);if(_.bC(V,N)||!N&&_.I1(k,"/"))if(V=document.createElement("a"),MU(V,k),k=V.href)if(k=_.AI(k),k=_.fI(k))R&&!E.csn&&(E.itct||E.ved)&&(E=Object.assign({csn:_.Fe()},E)),S?(S=parseInt(S,10),isFinite(S)&&S>0&&q9R(k,E,S)):q9R(k,E)};
Qoi=function(k){var E=_.Mg("VALID_SESSION_TEMPDATA_DOMAINS",[]),S=_.iJ(window.location.href);S&&E.push(S);S=_.iJ(k);if(!(_.bC(E,S)||!S&&_.I1(k,"/")))return null;k=_.AI(k);(k=_.fI(k))?(k=zm1(k),k=(k=_.pC.get(k,void 0)||null)?_.Ru(k):{}):k=null;return k};
q9R=function(k,E,S){k=zm1(k);E=E?_.Ug(E):"";S=S||5;_.soI()&&_.A3(k,E,S)};
zm1=function(k){for(var E=_.n(OSj),S=E.next();!S.done;S=E.next())k=_.bW(k,S.value);return"ST-"+pI(k).toString(36)};
_.G6b=function(k){if(k.requestFullscreen)k=k.requestFullscreen(void 0);else if(k.webkitRequestFullscreen)k=k.webkitRequestFullscreen();else if(k.mozRequestFullScreen)k=k.mozRequestFullScreen();else if(k.msRequestFullscreen)k=k.msRequestFullscreen();else if(k.webkitEnterFullscreen)k=k.webkitEnterFullscreen();else return Promise.reject(Error("Af"));return k instanceof Promise?k:Promise.resolve()};
_.dW=function(k){var E;_.hZ1(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.ZZ()==k&&(E=document):E=k;if(E&&(k=_.hZ1(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],E))){k.call(E)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.ZZ=function(){var k=k===void 0?!1:k;var E=_.hZ1(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(k)for(;E&&E.shadowRoot;)E=E.shadowRoot.fullscreenElement;return E?E:null};
_.st=function(k,E){E=E===void 0?!0:E;k.addEventListener("wheel",CAI);k.overscrollConfig={cooldown:E}};
_.lW=function(k){k.overscrollConfig=void 0;k.removeEventListener("wheel",CAI)};
CAI=function(k){var E=k.deltaY,S=k.target,R=null;if(window.Polymer&&window.Polymer.Element){if(S=k.path||k.composedPath&&k.composedPath()){S=_.n(S);for(var V=S.next();!V.done&&(V=V.value,!kgI(V,E));V=S.next())if(V.overscrollConfig){R=V;break}}}else for(;S&&!kgI(S,E);){if(S.overscrollConfig){R=S;break}S=S.parentElement}R&&(E=R.overscrollConfig,E.cooldown?(R=k.deltaY,S=E.lastDeltaY||0,E.lastDeltaY=R,V=E.lastStopped||0,S&&V&&S>0==R>0?Math.abs(S)>=Math.abs(R)?(R=V+1200,S=!1):(R=V+600,S=!0):(R=Date.now()+
600,S=!0),R>Date.now()&&(k.preventDefault(),S&&(E.lastStopped=Date.now()))):k.preventDefault())};
kgI=function(k,E){return E<0&&k.scrollTop>0||E>0&&k.scrollTop<k.scrollHeight-k.clientHeight-1?(k=getComputedStyle(k).overflowY,k=="auto"||k=="scroll"):!1};
_.Me=function(k,E,S,R){R||(R={bubbles:!0,cancelable:!1,composed:!0});S!==null&&S!==void 0&&(R.detail=S);var V=new CustomEvent(E,R);_.Y("untrack_fire_custom_event_killswitch")?k.dispatchEvent(V):_.FF(function(){return void k.dispatchEvent(V)});
return V};
Eje=function(k){var E=window,S=function(R){E.removeEventListener("yt-navigate-start",S);return k.call(E,R)};
E.addEventListener("yt-navigate-start",S,void 0)};
_.qe=function(k,E,S,R){E=new S6h(E,!(R===void 0||!R),S);_.Me(k,"yt-action",E);return E.returnValue};
_.zR=function(k,E,S){return _.qe(k,E,S,!0)};
_.Ot=function(k,E,S,R){E&&E.length&&E.forEach(function(V){var N=nhh(V);N&&(_.Y("handle_service_request_actions")&&V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.sendPost?_.Qw(S?S:k,[V]):_.zR(k,N,[V,S,R]))})};
_.Qw=function(k,E){var S=[k];E&&S.push.apply(S,E);E=_.qe(k,"yt-service-request",S);return E.length>0&&(E=E[0],_.Me(k,"yt-service-request-sent",E),E&&E.ajaxPromise)?(E.ajaxPromise.then(function(R){_.Me(k,"yt-service-request-completed",R)},function(R){_.Me(k,"yt-service-request-error",{error:R,
params:S})},k),E.ajaxPromise):_.GR()};
_.kA=function(k,E){if(_.Y("handle_service_request_actions"))_.Ot(E,k,E);else{k=_.n(k);for(var S=k.next();!S.done;S=k.next()){S=S.value;var R=void 0;((R=_.W(S,_.CI))==null?0:R.commands)?_.kA(_.W(S,_.CI).commands,E):(R=void 0,((R=_.W(S,_.Ev))==null?0:R.actions)?_.kA(_.W(S,_.Ev).actions,E):(R=void 0,((R=_.W(S.commandMetadata,_.Sd))==null?0:R.sendPost)?_.Qw(E,[S]):_.Ot(E,[S],E)))}}};
_.V_b=function(k,E,S){E=E===void 0?{}:E;typeof E==="function"&&(E={callback:E});S||E._c&&E._c.jsl&&E._c.jsl.h||_.fO.extend(E,{_c:{jsl:{h:_.Mg("GAPI_HINT_PARAMS")}}});(E.gapiHintOverride||_.Mg("GAPI_HINT_OVERRIDE"))&&(S=_.Vf(document.location.href).gapi_jsh)&&_.fO.extend(E,{_c:{jsl:{h:S}}});RKj(k,E)};
_.Vi=function(k,E,S){E=E===void 0?{}:E;k=(k=k in R_?R_[k]:S)||"";S={};for(var R in E){S={key$jscomp$843:S.key$jscomp$843};S.key$jscomp$843=R;var V=function(N){return function(){return String(E[N.key$jscomp$843])}}(S);
k=k.replace(new RegExp("\\$\\{"+S.key$jscomp$843+"\\}","gi"),V);k=k.replace(new RegExp("\\$"+S.key$jscomp$843,"gi"),V)}return k};
_.Na=function(k,E){return NZh(k in R_?R_[k]:{},E)};
NZh=function(k,E){var S=_.Mg("I18N_PLURAL_RULES");S||(S=function(R){return R==1?"one":"other"});
return(k=k["case"+E]||k[S(E)])?k.replace("#",E.toString()):E+""};
iKh=function(k){var E=IrI(k),S=document.getElementById(E),R=S&&r$C(S);R||S&&!R||(S=njR(k,E,function(){if(!r$C(S)){A$A(S);_.yVl(E);var V=_.I_(_.XMh,E);_.W_(V,0)}}))};
njR=function(k,E,S){var R=document.createElement("link");R.id=E;R.onload=function(){S&&setTimeout(S,0)};
k=_.Lu(k);_.JE(R,k,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(R);return R};
IrI=function(k){var E=_.g7("A");MU(E,Lg(k));return"css-"+pI(E.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.Jtt=function(k){var E=hK1();k!==E&&(E=_.nz(),!_.Y("web_autonav_allow_off_by_default")&&k||_.iD(0,141,!0),_.iD(0,140,!k),E.save())};
hK1=function(){var k=_.nz();return _.Y("web_autonav_allow_off_by_default")&&!k.getFlag(141)&&_.Mg("AUTONAV_OFF_BY_DEFAULT")?!1:!k.getFlag(140)};
cte=function(k,E){var S,R;k=((S=k.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(R=S.videoAuthorizationToken)==null?void 0:R.credentialTransferTokens)||[];for(S=0;S<k.length;++S)if(k[S].scope===E)return k[S].token||void 0};
mzI=function(k){for(var E=0,S=0;S<k.length;S++)E=E*31+k.charCodeAt(S),S<k.length-1&&(E%=0x800000000000);return E%1E5};
_.hX=function(k){return _.CV("ytcsi."+(k||"")+"data_")||eKi(k)};
_.arC=function(k){k=_.hX(k);k.metadata||(k.metadata={});return k.metadata};
_.t_m=function(k){k=_.hX(k);k.tick||(k.tick={});return k.tick};
_.JX=function(k){k=_.hX(k);if(k.gel){var E=k.gel;E.gelInfos||(E.gelInfos={});E.gelTicks||(E.gelTicks={})}else k.gel={gelTicks:{},gelInfos:{}};return k.gel};
_.TZt=function(k){k=_.JX(k);k.gelInfos||(k.gelInfos={});return k.gelInfos};
wFe=function(k){var E=_.hX(k).nonce;E||(E=Pi(16),_.hX(k).nonce=E);return E};
eKi=function(k){var E={tick:{},info:{}};_.J6("ytcsi."+(k||"")+"data_",E);return E};
P3R=function(){var k=_.CV("ytcsi.debug");k||(k=[],_.J6("ytcsi.debug",k),_.J6("ytcsi.reference",{}));return k};
_.cE=function(k){k=k||"";var E=BZm();if(E[k])return E[k];var S=P3R(),R={timerName:k,info:{},tick:{},span:{},jspbInfo:[]};S.push(R);return E[k]=R};
Y6b=function(k){k=k||"";var E=BZm();E[k]&&delete E[k];var S=P3R(),R={timerName:k,info:{},tick:{},span:{},jspbInfo:[]};S.push(R);E[k]=R};
BZm=function(){var k=_.CV("ytcsi.reference");if(k)return k;P3R();return _.CV("ytcsi.reference")};
_.FWe=function(k){return WW1[k]||"LATENCY_ACTION_UNKNOWN"};
gjR=function(k,E,S){S=S===void 0?{}:S;var R=!1;_.qg("ytLoggingEventsDefaultDisabled",!1)&&(R=!0);R=R?null:$f;S=S===void 0?{}:S;var V=Math.round(S.timestamp||(0,_.ev)());_.AD(E,1,V<Number.MAX_SAFE_INTEGER?V:0);V=new ytm;if(S.lact)_.AD(V,1,isFinite(S.lact)?S.lact:-1);else if(S.timestamp)_.AD(V,1,-1);else{var N=_.mE();_.AD(V,1,isFinite(N)?N:-1)}if(S.sequenceGroup&&!_.Y("web_gel_sequence_info_killswitch")){N=S.sequenceGroup;var h=xJI(N),J=new ojj;_.AD(J,2,h);_.uh(J,1,N);_.Xo(V,3,J);S.endOfSequence&&delete XFl[S.sequenceGroup]}_.Xo(E,
33,V);(S.sendIsolatedPayload?bhR:Zhl)(k,{endpoint:"log_event",payload:E,cttAuthInfo:S.cttAuthInfo,dangerousLogToVisitorSession:S.dangerousLogToVisitorSession},R)};
_.a_=function(){return(_.Y("csi_use_time_origin")||_.Y("csi_use_time_origin_tvhtml5"))&&_.ed.timeOrigin?Math.floor(_.ed.timeOrigin):_.ed.timing.navigationStart};
_.UzC=function(k,E){_.tX("_start",k,E)};
_.TX=function(k,E){if(!_.Y("web_csi_action_sampling_enabled")||!_.hX(E).actionDisabled){var S=_.cE(E||"");_.gW(S.info,k);k.loadType&&(S=k.loadType,_.arC(E).loadType=S);_.gW(_.TZt(E),k);S=wFe(E);E=_.hX(E).cttAuthInfo;HKh().info(k,S,E)}};
KWh=function(){var k,E,S,R;return((R=_.en().resolve(_.mz(xf))==null?void 0:(k=L2())==null?void 0:(E=k.loggingHotConfig)==null?void 0:(S=E.csiConfig)==null?void 0:S.debugTicks)!=null?R:[]).map(function(V){return Object.values(V)[0]})};
_.tX=function(k,E,S){if(!_.Y("web_csi_action_sampling_enabled")||!_.hX(S).actionDisabled){var R=wFe(S),V;if(V=_.Y("web_csi_debug_sample_enabled")&&R){(_.en().resolve(_.mz(xf))==null?0:L2())&&!pFh&&(pFh=!0,_.tX("gcfl",(0,_.ev)(),S));var N,h,J;V=(_.en().resolve(_.mz(xf))==null?void 0:(N=L2())==null?void 0:(h=N.loggingHotConfig)==null?void 0:(J=h.csiConfig)==null?void 0:J.debugSampleWeight)||0;if(N=V!==0)b:{N=KWh();if(N.length>0)for(h=0;h<N.length;h++)if(k===N[h]){N=!0;break b}N=!1}N?(V=mzI(R)%V!==0,
_.hX(S).debugTicksExcludedLogged||(N={},N.debugTicksExcluded=V,_.TX(N,S)),_.hX(S).debugTicksExcludedLogged=!0):V=!1}if(!V){k[0]!=="_"&&Ati(k,S,E);V=_.cE(S||"");V.tick[k]=E||(0,_.ev)();if(V.callback&&V.callback[k])for(V=_.n(V.callback[k]),N=V.next();!N.done;N=V.next())N=N.value,N();V=_.JX(S);V.gelTicks&&(V.gelTicks[k]=!0);N=_.t_m(S);V=E||(0,_.ev)();_.Y("log_repeated_ytcsi_ticks")?k in N||(N[k]=V):N[k]=V;N=_.hX(S).cttAuthInfo;k==="_start"?HKh().baseline(R,E,N):HKh().tick(k,R,E,N);_.rth(S);return V}}};
Ati=function(k,E,S){if(_.ed.mark)if(k.startsWith("mark_")||(k="mark_"+k),E&&(k+=" ("+E+")"),S===void 0||_.Y("web_csi_disable_alt_time_performance_mark"))_.ed.mark(k);else{S=_.Y("csi_use_performance_navigation_timing")?S-_.ed.timeOrigin:S-(_.ed.timeOrigin||_.ed.timing.navigationStart);try{_.ed.mark(k,{startTime:S})}catch(R){}}};
ugi=function(){var k,E=(k=_.ed.getEntriesByType)==null?void 0:k.call(_.ed,"mark");E&&E.forEach(function(S){if(S.name.startsWith("mark_")){var R;(R=_.ed.clearMarks)==null||R.call(_.ed,S.name)}})};
_.xz1=function(){switch(ih1()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.LWb=function(k){var E={},S=function(N,h,J){h=h.match("_rid")?h.split("_rid")[0]:h;typeof J==="number"&&(J=JSON.stringify(J));N.requestIds?N.requestIds.push({endpoint:h,id:J}):N.requestIds=[{endpoint:h,id:J}]};
k=_.n(Object.entries(k));for(var R=k.next();!R.done;R=k.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;switch(R){case "GetBrowse_rid":S(E,R,V);break;case "GetGuide_rid":S(E,R,V);break;case "GetHome_rid":S(E,R,V);break;case "GetPlayer_rid":S(E,R,V);break;case "GetSearch_rid":S(E,R,V);break;case "GetSettings_rid":S(E,R,V);break;case "GetTrending_rid":S(E,R,V);break;case "GetWatchNext_rid":S(E,R,V);break;case "yt_red":E.isRedSubscriber=!!V;break;case "yt_ad":E.isMonetized=!!V}}return E};
DzR=function(k,E,S,R,V,N){if(!_.Y("web_csi_action_sampling_enabled")||!_.hX(N).actionDisabled){var h=_.JX(N);if(h.gelSpans)h.gelSpans[k]=!0;else{var J={};h.gelSpans=(J[k]=!0,J)}jJe++;k={spanName:k,spanLengthUsec:String(Math.round(E*1E3)),spanNonce:jJe};R&&(k.spanInfo=R);V&&(k.parentSpanNonce=V);S&&(k.spanStartTimeUsec=String(Math.round(S*1E3)));_.cE(N||"").span[String(k.spanName)]=k;S=_.JX(N);S.gelSpans||(S.gelSpans={});_.gW(S.gelSpans,k);S=wFe(N);N=_.hX(N).cttAuthInfo;HKh().span(k,S,N);return k.spanNonce}};
_.$zb=function(k){var E=_.wq("aft",k);if(E)return E;E=_.Mg((k||"")+"TIMING_AFT_KEYS",["ol"]);for(var S=E.length,R=0;R<S;R++){var V=_.wq(E[R],k);if(V)return V}return NaN};
_.fr1=function(k,E){_.J6("ytglobal.timing"+(E||"")+"ready_",k)};
_.wq=function(k,E){if(k=_.t_m(E)[k])return typeof k==="number"?k:k[k.length-1]};
_.rth=function(k){var E=_.wq("_start",k),S=_.$zb(k),R=!vjj;E&&S&&R&&(L5I(bKe,new ZKe(Math.round(S-E),k)),vjj=!0)};
sJm=function(k){eKi(k);dzh();ugi();k||(_.Mg("TIMING_ACTION")&&_.l$("PREVIOUS_ACTION",_.Mg("TIMING_ACTION")),_.l$("TIMING_ACTION",""))};
_.lrb=function(k){k=k===void 0?{}:k;_.Ga(function(){PE();Y6b();sJm();_.fr1(!1);k.cttAuthInfo&&(_.hX().cttAuthInfo=k.cttAuthInfo);_.l$("TIMING_AFT_KEYS",[]);k.isHot?_.BE({loadType:"hot"}):_.BE({loadType:"warm"});_.l$("TIMING_ACTION","");delete _.Mg("TIMING_INFO",{}).yt_lt;_.Ga(_.UzC)(k.startTime,void 0)})()};
_.yi=function(k,E,S,R){E=E===void 0?{}:E;_.Ga(function(){var V=S?S:k;YA(V);var N=E.sampleRate;if(!_.Y("web_csi_action_sampling_enabled")||N===void 0||N<=1)N=!1;else{var h=wFe(V);N=mzI(h)%N!==0}N&&(_.hX(V).actionDisabled=!0);_.cE(V||"").info.actionType=k;E.cttAuthInfo&&(_.hX(V).cttAuthInfo=E.cttAuthInfo);_.l$(V+"TIMING_ACTION",k);_.Ga(_.UzC)(E.startTime,V);N={actionType:R||_.FWe(k)};E.logPreviousAction&&(N.previousAction=_.FWe(_.Mg("TIMING_ACTION")));(h=_.Fe())&&h!=="UNDEFINED_CSN"&&(N.clientScreenNonce=
h);_.BE(N,V);_.fr1(!0,V)})()};
YA=function(k){_.Ga(function(){PE(k);Y6b(k);sJm(k)})()};
M_j=function(){_.Ga(function(){var k=[],E;for(E in _.CV("ytcsi.".slice(0,-1)))E.endsWith("data_")&&k.push(E.slice(0,-5));k=_.n(k);for(E=k.next();!E.done;E=k.next())YA(E.value);PE()})()};
_.zKI=function(k){return _.Ga(function(){return _.q6C("_start",k)})()};
_.BE=function(k,E,S){_.Ga(_.TX)(k,E,S===void 0?!1:S)};
_.o_=function(k,E,S){return _.Ga(_.tX)(k,E,S)};
_.q6C=function(k,E){return _.Ga(function(){var S=_.t_m(E);return k in S})()};
OKl=function(k){if(!_.Y("universal_csi_network_ticks"))return"";k=_.Xu(k)||"";for(var E=Object.keys(QJj),S=0;S<E.length;S++){var R=E[S];if(k.includes(R))return R}return""};
C31=function(k){if(!_.Y("universal_csi_network_ticks"))return function(){};
var E=QJj[k];return E?(_.Xy(E),function(){var S=_.Y("universal_csi_network_ticks")?(S=Ggi[k])?_.Xy(S):!1:!1;return S}):function(){}};
_.Xy=function(k,E,S){return _.Ga(function(){if(_.q6C(k,S))return!1;_.o_(k,E,S);return!0})()};
_.gq=function(k,E,S){_.Ga(function(){if(!_.zKI(S)||_.q6C(k,S))return!1;_.o_(k,E,S);return!0})()};
_.Uv=function(k){return _.Ga(_.wq)(k,void 0)};
PE=function(k){_.zKI(k)&&_.o_("aa",void 0,k)};
_.VK1=function(k,E,S,R,V,N,h,J,m){var a=k71();J=new Yu({veType:E,youtubeData:N,jspbYoutubeData:J});N=HE({},a);V&&(N.cttAuthInfo=V);V={csn:a,pageVe:J.getAsJson()};_.Y("expectation_logging")&&m&&m.screenCreatedLoggingExpectations&&(V.screenCreatedLoggingExpectations=m.screenCreatedLoggingExpectations);S&&S.visualElement?(V.implicitGesture={parentCsn:S.clientScreenNonce,gesturedVe:S.visualElement.getAsJson()},h&&(V.implicitGesture.gestureType=h)):S&&_.dg(new _.LC("newScreen() parent element does not have a VE - rootVe",
E));R&&(V.cloneCsn=R);k?Dd("screenCreated",V,k,N):_.f2("screenCreated",V,N);L5I(Zc1,new EoA(a));Kz.clear();S7t.clear();Rf1.clear();return a};
pz=function(k,E,S,R,V,N){N=N===void 0?{}:N;N_m(k,E,S,[R],V===void 0?!1:V,N)};
N_m=function(k,E,S,R,V,N){V=V===void 0?!1:V;N=N===void 0?{}:N;Object.assign(N,HE({cttAuthInfo:yw(E)||void 0},E));for(var h=_.n(R),J=h.next();!J.done;J=h.next()){J=J.value;var m=J.getAsJson();(_.fO.isEmpty(m)||!m.trackingParams&&!m.veType)&&_.dg(Error("Bf"));if(_.Y("no_client_ve_attach_unless_shown")){var a=Iab(J,E);if(m.veType&&!S7t.has(a)&&!Rf1.has(a)&&!V){if(!_.Y("il_attach_cache_limit")||Kz.size<1E3){Kz.set(a,[k,E,S,J]);return}_.Y("il_attach_cache_limit")&&Kz.size>1E3&&_.dg(new _.LC("IL Attach cache exceeded limit"))}J=
Iab(S,E);Kz.has(J)?no1(S,E):Rf1.set(J,!0)}}R=R.filter(function(T){T.csn!==E?(T.csn=E,T=!0):T=!1;return T});
S={csn:E,parentVe:S.getAsJson(),childVes:_.vH(R,function(T){return T.getAsJson()})};
E==="UNDEFINED_CSN"?AX("visualElementAttached",N,S):k?Dd("visualElementAttached",S,k,N):_.f2("visualElementAttached",S,N)};
hf1=function(k,E,S,R,V){iwI(k,E,S,V)};
iwI=function(k,E,S,R){J1e(S,E);var V=HE({cttAuthInfo:yw(E)||void 0},E);S={csn:E,ve:S.getAsJson(),eventType:1};R&&(S.clientData=R);E==="UNDEFINED_CSN"?AX("visualElementShown",V,S):k?Dd("visualElementShown",S,k,V):_.f2("visualElementShown",S,V)};
c11=function(k,E,S,R){J1e(S,E);var V=HE({cttAuthInfo:yw(E)||void 0},E);S={csn:E,ve:S.getAsJson(),eventType:4};R&&(S.clientData=R);E==="UNDEFINED_CSN"?AX("visualElementShown",V,S):k?Dd("visualElementShown",S,k,V):_.f2("visualElementShown",S,V)};
mF1=function(k,E,S,R,V){var N=(R=R===void 0?!1:R)?16:8;R=HE({cttAuthInfo:yw(E)||void 0,endOfSequence:R},E);S={csn:E,ve:S.getAsJson(),eventType:N};V&&(S.clientData=V);E==="UNDEFINED_CSN"?AX("visualElementHidden",R,S):k?Dd("visualElementHidden",S,k,R):_.f2("visualElementHidden",S,R)};
aaC=function(k,E,S,R,V){efh(k,E,S,void 0,R,V)};
efh=function(k,E,S,R,V){J1e(S,E);R=R||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var N=HE({cttAuthInfo:yw(E)||void 0},E);S={csn:E,ve:S.getAsJson(),gestureType:R};V&&(S.clientData=V);E==="UNDEFINED_CSN"?AX("visualElementGestured",N,S):k?Dd("visualElementGestured",S,k,N):_.f2("visualElementGestured",S,N)};
tKi=function(k,E,S,R){var V=HE({cttAuthInfo:yw(E)||void 0},E);S={csn:E,ve:S.getAsJson(),clientData:R};E==="UNDEFINED_CSN"?AX("visualElementStateChanged",V,S):k?Dd("visualElementStateChanged",S,k,V):_.f2("visualElementStateChanged",S,V)};
T_1=function(){var k=Rmt(16);for(var E=[],S=0;S<k.length;S++)E.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(k[S]&63));return E.join("")};
AX=function(k,E,S){wqC.push({payloadName:k,payload:S,jspbPayload:void 0,options:E});Pfb||(Pfb=sRh())};
bcI=function(k){if(wqC){for(var E=_.n(wqC),S=E.next();!S.done;S=E.next())S=S.value,S.payload&&(S.payload.csn=k.csn,_.f2(S.payloadName,S.payload,S.options));wqC.length=0}Pfb=0};
Iab=function(k,E){return""+k.getAsJson().veType+k.getAsJson().veCounter+E};
J1e=function(k,E){if(_.Y("no_client_ve_attach_unless_shown")){var S=Iab(k,E);S7t.set(S,!0);no1(k,E)}};
no1=function(k,E){k=Iab(k,E);Kz.has(k)&&(E=Kz.get(k)||[],pz(E[0],E[1],E[2],E[3],!0),Kz.delete(k))};
HE=function(k,E){_.Y("log_sequence_info_on_gel_web")&&(k.sequenceGroup=E);return k};
_.rq=function(k,E,S){_.Ga(pz)(void 0,k,E,S)};
_.uD=function(k,E,S){_.Ga(N_m)(void 0,k,E,S)};
_.xA=function(k,E){_.Ga(hf1)(void 0,k,E,void 0,void 0,void 0)};
_.Lz=function(k,E,S){_.Ga(function(){_.Sn(E,function(R){c11(void 0,k,R,S)})})()};
_.jd=function(k,E,S,R){_.Ga(function(){_.Sn(E,function(V){mF1(void 0,k,V,S,R)})})()};
_.Dv=function(k,E,S){_.Ga(aaC)(void 0,k,E,S,void 0)};
_.$A=function(k,E,S,R){_.Ga(efh)(void 0,k,E,S,R,void 0)};
_.fz=function(k,E,S){_.Ga(tKi)(void 0,k,E,S,void 0)};
B_1=function(k,E){vE.set(k,E)};
Y7A=function(k){bD.initialized=!0;bD.sessionId=k.sessionId||"";bD.enabledSpans=k.enabledSpans;k.shouldSampleFn!=null&&(bD.shouldSampleFn=k.shouldSampleFn)};
W2j=function(k){bD.processors.push(k)};
F2e=function(k){return bD.initialized?bD.enabledSpans?bD.enabledSpans[k]:!0:!1};
y1m=function(k,E){if(k){E=E===void 0?1:E;if(k){k.endTime=(0,_.ev)();E&&(k.status=E);E=_.n(bD.processors);for(var S=E.next();!S.done;S=E.next()){var R=void 0,V=void 0;(V=(R=S.value).onSpanEnd)==null||V.call(R,k)}}k!==bD.stack[bD.stack.length-1]&&_.dg(Error("Ef`"+k.name));bD.stack.pop()}};
Xqb=function(k,E,S){if(F2e(k)&&bD.shouldSampleFn(k,E,ooC)){var R=bD.nextSpanId++,V=bD.stack[bD.stack.length-1];k={id:R,parentId:V==null?void 0:V.id,name:k,attributes:E,traceId:V?V.traceId:R,sessionId:bD.sessionId,startTime:(0,_.ev)(),status:0};V&&(V.children||(V.children=[]),V.children.push(k));V=_.n(bD.processors);for(E=V.next();!E.done;E=V.next()){var N=R=void 0;(N=(R=E.value).onSpanStart)==null||N.call(R,k)}}else k=void 0;k?bD.stack.push(k):k=void 0;if(!k)return S();try{var h=S(k);y1m(k);return h}catch(J){throw y1m(k,
2),J;}};
gom=function(){};
UFm=function(k,E){var S=Object.keys(k);k=new _.LC("[Command Handler] "+E,{filteredCommandNames:S,originalCommand:k});_.bM(k)};
HwI=function(k,E){UFm(k,E+" was called but not set")};
K2h=function(k){return function(){return new k}};
Zv=function(k){return function(){return _.en().resolve(k)}};
pql=function(k,E){var S=_.W(k,_.zU);if(S&&(S=E[S.signal]))return S();k=_.n(Object.keys(k));for(S=k.next();!S.done;S=k.next())if(S=S.value,E[S]&&(S=E[S]))return S()};
_.dq=function(k,E,S,R){return{browseEndpoint:{browseId:k},commandMetadata:{webCommandMetadata:{url:E,rootVe:S,webPageType:R===void 0?"WEB_PAGE_TYPE_BROWSE":R}}}};
A1R=function(k,E,S){var R=E=E===void 0?0:E;S=S===void 0?0:S;var V=S-R;return _.sv(k,"PPSV",void 0,void 0,(V>600?0:V<60||S<=0||R/S>.9)?0:E)};
_.sv=function(k,E,S,R,V){var N="/watch?v="+k;k={videoId:k};E&&(k.playlistId=E,N+="&list="+E);R&&(N+="&pp="+R);V&&(k.startTimeSeconds=V,N+="&t="+V+"s");E={watchEndpoint:k,commandMetadata:{webCommandMetadata:{url:N,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};S&&(E.clickTrackingParams=S);R&&(_.W(E,_.jm).playerParams=R);return E};
r11=function(k){return{browseEndpoint:{browseId:"VL"+k},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+k,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
uEj=function(k){if(k){var E;if(k){var S=(E=_.W(k.commandMetadata,_.Sd))==null?void 0:E.url;E=!(!S||S==="/service_ajax")}else E=!1;if(E)return k;var R;if(k=(R=_.W(k,_.CI))==null?void 0:R.commands)for(R=_.n(k),k=R.next();!k.done;k=R.next())if(k=uEj(k.value))return k}};
_.lD=function(k){return{runs:[{text:k}]}};
xFC=function(k,E){return k&&E?{runs:[{text:k,navigationEndpoint:E}]}:void 0};
Ma=function(k){return k?_.lD(k):void 0};
_.qa=function(k){return k?{simpleText:k}:void 0};
_.zX=function(k){var E=k.type;k=k.payload;E={type:E};k!==void 0&&(E.payload=k);return E};
L2i=function(k,E,S){for(var R=Object.assign({},k),V=_.n(Object.keys(E)),N=V.next();!N.done;N=V.next()){N=N.value;var h=k[N],J=E[N];if(J===void 0)delete R[N];else if(h===void 0)R[N]=J;else if(Array.isArray(J)&&Array.isArray(h))R[N]=S?[].concat(_.$e(h),_.$e(J)):J;else if(!Array.isArray(J)&&_.qA(J)&&!Array.isArray(h)&&_.qA(h))R[N]=L2i(h,J,S);else if(typeof J===typeof h)R[N]=J;else return E=new _.LC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:N,originalValue:h,updateValue:J}),
_.bM(E),k}return R};
$Fb=function(k){if(!k.length)return"";try{if(jqe)return jqe.decode(k);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(k)}catch(h){}for(var E=0,S=[],R=k.length;E<R;){for(var V=0;V<1024&&E<R;){var N=k[E++];if(N<128)DFC[V++]=N;else{if(N<224)N=(N&31)<<6|k[E++]&63;else if(N<240)N=(N&15)<<12|(k[E++]&63)<<6|k[E++]&63;else{if(V+1===1024){--E;break}N=(N&7)<<18|(k[E++]&63)<<12|(k[E++]&63)<<6|k[E++]&63;N-=65536;DFC[V++]=55296|N>>10;N=56320|N&1023}DFC[V++]=N}}N=String.fromCharCode.apply(String,
DFC);V<1024&&(N=N.substring(0,V));S.push(N)}return S.join("")};
vot=function(k,E){var S;if((S=fah)==null?0:S.encodeInto)return E=fah.encodeInto(k,E),E.read<k.length?k.length*4:E.written;for(var R=S=0;R<k.length;R++){var V=k.charCodeAt(R);V<128?E[S++]=V:(V<2048?E[S++]=V>>6|192:((V&64512)===55296&&R+1<k.length&&(k.charCodeAt(R+1)&64512)===56320?(V=65536+((V&1023)<<10)+(k.charCodeAt(++R)&1023),E[S++]=V>>18|240,E[S++]=V>>12&63|128):E[S++]=V>>12|224,E[S++]=V>>6&63|128),E[S++]=V&63|128)}return S};
bw1=function(k,E,S){if(E&&S&&S.buffer===E.exports.memory.buffer){var R=E.realloc(S.byteOffset,k);if(R)return new Uint8Array(E.exports.memory.buffer,R,k)}k=E?new Uint8Array(E.exports.memory.buffer,E.malloc(k),k):new Uint8Array(k);S&&k.set(S);return k};
_.Ov=function(k){k=new ZwI(new dFt([_.k2(decodeURIComponent(k))]));if(sqh(k,2)){var E=Qi(k);var S=k.pos;var R=k.arrayView;S=S===void 0?0:S;var V=E===void 0?-1:E;S=S===void 0?0:S;V=V===void 0?-1:V;if(R.totalLength&&V){V<0&&(V=R.totalLength-S);R.focus(S);if(!(S-R.arrayPos+V<=R.arrays[R.arrayIdx].length)){var N=R.arrayIdx,h=R.arrayPos;R.focus(S+V-1);h=new Uint8Array(R.arrayPos+R.arrays[R.arrayIdx].length-h);for(var J=0,m=N;m<=R.arrayIdx;m++)h.set(R.arrays[m],J),J+=R.arrays[m].length;R.arrays.splice(N,
R.arrayIdx-N+1,h);R.arrayIdx=0;R.arrayPos=0;R.focus(S)}N=R.arrays[R.arrayIdx];R=new DataView(N.buffer,N.byteOffset+S-R.arrayPos,V)}else R=new DataView(new ArrayBuffer(0));R=new Uint8Array(R.buffer,R.byteOffset,R.byteLength);k.pos+=E;E=R}else E=void 0;E=E?$Fb(E):void 0;k=sqh(k,4)?Qi(k):void 0;R=laI[k];if(typeof R==="undefined")throw k=new _.LC("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:k}),_.bM(k),k;return{entityTypeFieldNumber:k,entityType:R,entityId:E}};
_.kn=function(k,E,S){S=S===void 0?0:S;var R=new MKt;if(fah)k=fah.encode(k);else{var V=new Uint8Array(Math.ceil(k.length*1.2)),N=vot(k,V);V.length<N&&(V=new Uint8Array(N),N=vot(k,V));V.length>N&&(V=V.subarray(0,N));k=V}k!==void 0&&(GX(R,18),V=k.length,GX(R,V),Cz(R,V),R.buf.set(k,R.pos),R.pos+=V);k=q7I[E];if(typeof k==="undefined")throw S=new _.LC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:E}),_.bM(S),S;k!==void 0&&(GX(R,32),GX(R,k));GX(R,40);GX(R,1);E=new Uint8Array(R.buf.buffer,
R.buf.byteOffset,R.pos);return encodeURIComponent(_.xW(E,S))};
zfh=function(k){k=k.key||k.id;if(!k)throw Error("Gf");return k};
Ow1=function(k,E){k=k===void 0?{}:k;return Qqi(k,E)};
G7h=function(k,E,S,R){if(R===void 0)return R=Object.assign({},k[E]||{}),S=(delete R[S],R),R={},Object.assign({},k,(R[E]=S,R));var V={},N={};return Object.assign({},k,(N[E]=Object.assign({},k[E],(V[S]=R,V)),N))};
CfR=function(k,E,S,R,V){var N=k[E];if(N==null||!N[S])return k;R=L2i(N[S],R,V==="REPEATED_FIELDS_MERGE_OPTION_APPEND");V={};N={};return Object.assign({},k,(N[E]=Object.assign({},k[E],(V[S]=R,V)),N))};
_.Ep=function(k,E,S){return k[E]?k[E][S]||null:null};
ENC=function(){if(kMi)return kMi();var k={};kMi=mq("PersistentEntityStoreDb",{objectStores:(k.EntityStore={addedAtVersion:1},k.EntityAssociationStore={addedAtVersion:2},k),shared:!1,upgrade:function(E,S){S(1)&&OQ(Q6(E,"EntityStore",{keyPath:"key"}),"entityType","entityType");S(2)&&(E=Q6(E,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),OQ(E,"byParentEntityKey","parentEntityKey"),OQ(E,"byChildEntityKey","childEntityKey"))},
version:3});return kMi()};
SEj=function(k){return _.V6(ENC(),k)};
Si=function(k){return window.Int32Array?new Int32Array(k):Array(k)};
VMC=function(k){return _.V6(RVI(),k)};
Njl=function(k){return new R7("WRONG_DATA_TYPE",{encoderVersion:k})};
I2e=function(k){return k instanceof Error?new R7("UNKNOWN_ENCODE_ERROR",{originalMessage:k.message}):new R7("UNKNOWN_ENCODE_ERROR")};
nNb=function(k){return k instanceof Error?new R7("UNKNOWN_DECODE_ERROR",{originalMessage:k.message}):new R7("UNKNOWN_DECODE_ERROR")};
iMC=function(k,E){k=k instanceof R7?k:E(k);_.bM(k);throw k;};
hV1=function(k){k=(new TextEncoder).encode(k).subarray(0,16);var E=new Uint8Array(16);E.set(k);return E};
cs1=function(k){var E=Jst[k];if(E)return E;_.dg(new _.LC("Entity model not found.",{entityType:k}))};
_.VV=function(){m5t||(m5t=eVh());return m5t};
eVh=function(){var k,E,S;return _.c(function(R){if(R.nextAddress==1)return _.F5(R,2),R.yield(_.cV(),4);if(R.nextAddress!=2){k=R.yieldResult;if(!k||!_.xr()||typeof _.Vt.BroadcastChannel==="undefined")return R.return();E=new a2b;return R.return(new NI(k,E))}S=_.UY(R);S instanceof Error&&_.bM(S);return R.return()})};
_.I7=function(k,E){var S;return _.c(function(R){if(R.nextAddress==1){S=k.mutations;if(!S||S.length<=0)return R.return();E&&E.dispatch(_.zX({type:"ENTITY_LOADED",payload:S}));return R.yield(tMm(S),2)}S.length=0;_.KR(R)})};
tMm=function(k){var E;return _.c(function(S){return S.nextAddress==1?S.yield(_.VV(),2):(E=S.yieldResult)?S.yield(_.nr(E,"readwrite",function(R){for(var V={},N=_.n(k),h=N.next(),J={};!h.done;J={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},h=N.next())J.mutation$jscomp$8=h.value,J.mutation$jscomp$8.entityKey&&Tj1(J.mutation$jscomp$8)&&(J.mutationEntityType$jscomp$3=(0,_.fO.getAnyKey)(J.mutation$jscomp$8.payload),h=void 0,J.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(h=function(m){return function(){return _.wIR(R,
m.mutation$jscomp$8.payload[m.mutationEntityType$jscomp$3],m.mutationEntityType$jscomp$3)}}(J)),J.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(h=function(m){return function(){return POl(R,m.mutation$jscomp$8.entityKey)}}(J)),J.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(h=function(m){return function(){return Bjh(R,m.mutation$jscomp$8.entityKey,m.mutation$jscomp$8.payload[m.mutationEntityType$jscomp$3],m.mutationEntityType$jscomp$3)}}(J)),h&&(V[J.mutation$jscomp$8.entityKey]=
V[J.mutation$jscomp$8.entityKey]?V[J.mutation$jscomp$8.entityKey].then(h):h()));
return Og.all(Object.values(V))}),0):S.return()})};
Tj1=function(k){var E;k=(E=k.options)==null?void 0:E.persistenceOption;return k==="ENTITY_PERSISTENCE_OPTION_PERSIST"||k==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
FcI=function(k,E){var S,R;_.c(function(V){if(V.nextAddress==1)return V.yield(_.VV(),2);if(V.nextAddress!=3)return(S=V.yieldResult)?V.yield(_.nr(S,"readonly",function(N){var h={},J=Object.keys(E).map(function(m){var a=E[m]?[].concat(_.$e(E[m])):[];return YEt(N,m,a,h)});
return Og.all(J).then(function(){return h})}),3):V.return();
R=V.yieldResult;Object.keys(R).length>0&&k.dispatch(Wc1(R));_.KR(V)})};
YEt=function(k,E,S,R){return ig(k,E,S).then(function(V){R[E]=ysC(S,V)})};
ysC=function(k,E){if(E.length!==k.length)throw Error("Jf");return E.reduce(function(S,R,V){S[k[V]]=R;return S},{})};
gN1=function(k){var E=k.filter(function(V){var N;return(V==null?void 0:(N=V.transferEntity)==null?void 0:N.transferState)==="TRANSFER_STATE_COMPLETE"}).length,S=k.filter(function(V){var N;
return(V==null?void 0:(N=V.transferEntity)==null?void 0:N.transferState)==="TRANSFER_STATE_FAILED"}).length,R=k.filter(function(V){var N;
return(V==null?void 0:(N=V.transferEntity)==null?void 0:N.transferState)&&oNA.includes(V.transferEntity.transferState)});
if(!(E||R!=null&&R.length))return 0;E=_.XIe(R)+E;k=k.length-S;return k===0?0:Math.round(E*100/k)/100};
_.XIe=function(k){var E=[];E=E.concat.apply(E,_.$e(k.filter(function(N){return N.streamEntity}).map(function(N){var h=Object.assign({},N.streamEntity),J,m=(J=N.transferEntity)==null?void 0:J.transferState;
h.streamsProgress=h.streamsProgress||[];h.streamsProgress=h.streamsProgress.map(function(a){var T=Object.assign({},a);T.numBytesDownloaded=m==="TRANSFER_STATE_COMPLETE"?a.numTotalBytes:a.numBytesDownloaded;return T});
return h}).map(function(N){return N.streamsProgress})));
var S=k=0;E=_.n(E);for(var R=E.next();!R.done;R=E.next()){var V=R.value;R=Number(V.numBytesDownloaded);V=Number(V.numTotalBytes);S+=isNaN(R)?0:R;k+=isNaN(V)?0:V}return k===0?0:Math.round(S*100/k)/100};
U5e=function(k){if(!k||!k.expirationTimestamp||!k.action)return!1;var E=(0,_.ev)()/1E3;return Number(k.expirationTimestamp)>=E};
hp=function(k){return k&&k.expirationTimestamp&&k.action?U5e(k)&&k.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.Jp=function(k){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(k||"TRANSFER_STATE_UNKNOWN")};
HMl=function(k){var E=new MKt;if(k!==void 0){var S=Math.ceil(Math.log2(k.length*4+2)/7);S=S===void 0?2:S;GX(E,10);E.submessagePosStack.push(E.pos);E.submessagePosStack.push(S);E.pos+=S;Cz(E,k.length*1.2);S=vot(k,E.buf.subarray(E.pos));E.pos+S>E.buf.length&&(Cz(E,S),S=vot(k,E.buf.subarray(E.pos)));E.pos+=S;k=E.submessagePosStack.pop();S=E.submessagePosStack.pop();for(var R=E.pos-S-k;k--;){var V=k?128:0;E.view.setUint8(S++,R&127|V);R>>=7}}E=new Uint8Array(E.buf.buffer,E.buf.byteOffset,E.pos);return(new TextDecoder("utf-8")).decode(E)};
_.co=function(k){var E=0;k=_.n(k);for(var S=k.next(),R={};!S.done;R={transferState$jscomp$3:void 0},S=k.next()){var V=S.value,N=void 0;S=(N=V.streamEntity)!=null?N:{};N=void 0;R.transferState$jscomp$3=(N=V.transferEntity)==null?void 0:N.transferState;N=V=void 0;((V=S)==null?0:(N=V.streamsProgress)==null?0:N.length)&&S.streamsProgress.forEach(function(h){return function(J){J=Number(h.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?J.numTotalBytes:J.numBytesDownloaded);isFinite(J)&&(E+=J)}}(R))}return E};
Kcm=function(k){return k.some(function(E){var S;if(!(E==null?0:(S=E.transferEntity)==null?0:S.transferState)){var R;return!(E==null?0:(R=E.policyEntity)==null?0:R.action)||E.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return oNA.includes(E.transferEntity.transferState)})};
pIb=function(k,E){if(!E)return!1;if(_.Y("of_pb_en_po_ks"))return!0;var S;k=(S=_.Ep(k,"offlineVideoPolicy",_.kn(E,"offlineVideoPolicy")))!=null?S:void 0;return!!k&&hp(k)};
_.rsj=function(k){var E=["TRANSFER_STATE_COMPLETE"];E=E===void 0?Ash:E;return k.filter(function(S){var R,V;return E.includes((V=(R=S.transferEntity)==null?void 0:R.transferState)!=null?V:"TRANSFER_STATE_UNKNOWN")})};
uQm=function(k,E){if(E){var S,R=(S=_.Ep(k,"playbackData",_.kn(E,"playbackData")))!=null?S:null,V;S=(V=_.Ep(k,"transfer",_.kn(E,"transfer")))!=null?V:null;var N;V=(N=_.Ep(k,"offlineVideoStreams",_.kn(E,"offlineVideoStreams")))!=null?N:null;var h;k=(h=_.Ep(k,"offlineVideoPolicy",_.kn(E,"offlineVideoPolicy")))!=null?h:null;if(R||S||V||k)return{playbackDataEntity:R,transferEntity:S,streamEntity:V,policyEntity:k}}};
_.mC=function(k){var E=k.playbackData;if(!E)return[];var S=[];E=_.n(Object.keys(E));for(var R=E.next();!R.done;R=E.next()){var V=R.value;if(!x51(k,_.Ov(V).entityId)&&(R=uQm(k,_.Ov(V).entityId))){var N=void 0,h=void 0;V=(h=Number((N=_.Ep(k,"playbackData",V))==null?void 0:N.streamDownloadTimestampSeconds))!=null?h:(0,_.ev)();S.push({entity:R,streamDownloadTimestamp:V})}}return S.sort(function(J,m){var a=J.streamDownloadTimestamp,T=m.streamDownloadTimestamp;return T===a?J.entity.streamEntity&&!m.entity.streamEntity?
1:-1:T-a}).map(function(J){return J.entity})};
Lcl=function(k){return _.rsj(_.mC(k))};
_.jgm=function(k){return _.mC(k).filter(function(E){var S;if(((S=E.policyEntity)==null?0:S.action)&&E.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var R;if((R=E.transferEntity)==null?0:R.transferState){var V;return oNA.includes((V=E.transferEntity)==null?void 0:V.transferState)}return!0})};
x51=function(k,E){var S;return((S=_.Ep(k,"downloadStatusEntity",_.kn(E,"downloadStatusEntity")))==null?void 0:S.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
D5h=function(k){var E;if(k==null?0:(E=k.playbackDataEntity)==null?0:E.key)return _.Ov(k.playbackDataEntity.key).entityId;var S;if(k==null?0:(S=k.transferEntity)==null?0:S.key)return _.Ov(k.transferEntity.key).entityId;var R;if(k==null?0:(R=k.streamEntity)==null?0:R.key)return _.Ov(k.streamEntity.key).entityId;var V;if(k==null?0:(V=k.policyEntity)==null?0:V.key)return _.Ov(k.policyEntity.key).entityId};
f2t=function(k){var E=new Set,S;k=(S=k.mainDownloadsListEntity)==null?void 0:S[$51];var R;if(!(k==null?0:(R=k.downloads)==null?0:R.length))return E;var V;k==null||(V=k.downloads)==null||V.forEach(function(N){(N==null?0:N.videoItem)&&E.add(N.videoItem)});
return E};
ei=function(k,E){if(E){var S=_.Ep(k,"mainVideoEntity",_.kn(E,"mainVideoEntity")),R=_.Ep(k,"downloadStatusEntity",_.kn(E,"downloadStatusEntity")),V=_.Ep(k,"ytMainChannelEntity",_.kn(E,"ytMainChannelEntity")),N={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};k=uQm(k,E);R=(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.Y("woffle_render_failed_download_state_ks")&&(R==null?void 0:R.downloadState)==="DOWNLOAD_STATE_FAILED";!k&&R&&(k=N);if(k&&S&&
V)return Object.assign({},{videoEntity:S,channelEntity:V},k)}};
bM1=function(k,E){return vNl(k,E)==="TRANSFER_STATE_COMPLETE"&&pIb(k,E)};
ZMt=function(k,E){if(!E)return!1;var S;k=(S=_.Ep(k,"playbackData",_.kn(E,"playbackData")))!=null?S:void 0;return!!k&&!!k.playerResponseJson};
vNl=function(k,E){if(!E)return"TRANSFER_STATE_UNKNOWN";var S=_.Ep(k,"transfer",_.kn(E,"transfer"));if(S){var R;return(R=S.transferState)!=null?R:"TRANSFER_STATE_UNKNOWN"}S=_.Ep(k,"offlineOrchestrationActionWrapperEntity",_.kn(E,"offlineOrchestrationActionWrapperEntity"));k=_.Ep(k,"mainVideoEntity",_.kn(E,"mainVideoEntity"));return S||k?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
d5j=function(k,E){if(!E)return"TRANSFER_STATE_UNKNOWN";if(k=_.Ep(k,"transfer",_.kn(E,"transfer"))){var S;return(S=k.transferState)!=null?S:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
sgj=function(k,E){return E&&(k=_.Ep(k,"videoPlaybackPositionEntity",_.kn(E,"videoPlaybackPositionEntity")),k==null?0:k.lastPlaybackPositionSeconds)?Number(k.lastPlaybackPositionSeconds):0};
MM1=function(k,E){return l2t(k).some(function(S){var R;return(S==null?void 0:(R=S.mainPlaylistEntity)==null?void 0:R.playlistId)===E})};
zVA=function(k,E,S){var R=qEC(k,E);if(!R.length)return[];E=[];R=_.n(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;var N=ei(k,V);S&&vNl(k,V)!=="TRANSFER_STATE_COMPLETE"||N&&E.push(N)}return E};
qEC=function(k,E){if(!E)return[];var S=_.kn(E,"mainPlaylistEntity"),R;E=(R=k.mainPlaylistEntity)==null?void 0:R[S];R=[];if(E==null||!E.videos)return R;E=_.n(E.videos);for(S=E.next();!S.done;S=E.next()){S=S.value;var V=void 0,N=void 0,h=void 0,J=(V=k)==null?void 0:(N=V.mainPlaylistVideoEntity)==null?void 0:(h=N[S])==null?void 0:h.video;J&&(S=_.Ov(J).entityId)&&R.push(S)}return R};
QgA=function(k,E){if(E){var S=_.Ep(k,"mainPlaylistEntity",_.kn(E,"mainPlaylistEntity")),R=_.Ep(k,"mainPlaylistDownloadStateEntity",_.kn(E,"mainPlaylistDownloadStateEntity"));k=_.Ep(k,"ytMainChannelEntity",_.kn(E,"ytMainChannelEntity"));if(R&&S)return Object.assign({},{mainPlaylistEntity:S,mainPlaylistDownloadStateEntity:R},!!k&&{channelEntity:k})}};
l2t=function(k){return OMt(k).sort(function(E,S){return S.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return E.downloadedPlaylistEntities})};
OMt=function(k){var E=k.mainPlaylistDownloadStateEntity,S=[];if(!E)return S;for(var R=_.n(Object.keys(E)),V=R.next();!V.done;V=R.next()){var N=V.value;V=QgA(k,_.Ov(N).entityId);var h=void 0;N=Number((h=E[N])==null?void 0:h.addedTimestampMillis);h=isNaN(N)?(0,_.ev)():N;V!==void 0&&S.push({downloadedPlaylistEntities:V,addedTimestampMillis:h})}return S};
GMl=function(k){var E,S=(E=k.mainPlaylistVideoEntity)!=null?E:{};return new Set(l2t(k).reduce(function(R,V){R=R===void 0?[]:R;var N,h;V==null||(N=V.mainPlaylistEntity)==null||(h=N.videos)==null||h.forEach(function(J){var m;(J=(m=S[J])==null?void 0:m.video)&&R.push(J)});
return R},[]))};
COt=function(k){return"downloadedMusicPlaylistEntities"in k};
kij=function(k){return"mainPlaylistEntity"in k&&"mainPlaylistDownloadStateEntity"in k};
EB1=function(k){return"videoEntity"in k&&"channelEntity"in k};
SNC=function(k){var E=k.musicPlaylistDownloadMetadataEntity,S=[];if(!E)return S;for(var R=_.n(Object.keys(E)),V=R.next();!V.done;V=R.next()){V=V.value;a:{var N=k,h=_.Ov(V).entityId;if(h){var J=_.Ep(N,"musicPlaylist",_.kn(h,"musicPlaylist"));N=_.Ep(N,"musicPlaylistDownloadMetadataEntity",_.kn(h,"musicPlaylistDownloadMetadataEntity"));if(J&&N){J={musicPlaylistEntity:J,musicPlaylistDownloadStateEntity:N};break a}}J=void 0}N=void 0;V=Number((N=E[V])==null?void 0:N.addedTimestampMillis);V=isNaN(V)?(0,_.ev)():
V;J!==void 0&&S.push({downloadedMusicPlaylistEntities:J,addedTimestampMillis:V})}return S};
R1e=function(k){var E=new Set;k=_.n(k);for(var S=k.next();!S.done;S=k.next())if(S=S.value,"musicPlaylistEntity"in S&&"musicPlaylistDownloadStateEntity"in S){S=_.n(S.musicPlaylistEntity.tracks);for(var R=S.next();!R.done;R=S.next())E.add(R.value)}return E};
V61=function(k,E){if(E){var S=_.Ep(k,"musicTrack",_.kn(E,"musicTrack")),R=_.Ep(k,"musicArtist",_.kn(E,"musicArtist"))||{};if((k=uQm(k,E))&&S&&R)return Object.assign({},{musicTrackEntity:S,musicArtistEntity:R},k)}};
NAb=function(k){var E=k.musicTrackDownloadMetadataEntity,S=[];if(!E)return[];E=_.n(Object.keys(E));for(var R=E.next();!R.done;R=E.next()){var V=R.value;R=V61(k,_.Ov(V).entityId);var N=void 0;V=Number((N=_.Ep(k,"musicTrackDownloadMetadataEntity",V))==null?void 0:N.addedTimestampMillis);N=isNaN(V)?(0,_.ev)():V;R!==void 0&&S.push({downloadedMusicEntities:R,addedTimestampMillis:N})}return S};
iGt=function(k,E){if(!E)return[];if(Object.values(IYh).includes(E))return nB1(k,E);E=_.kn(E,"musicPlaylist");var S;k=(S=k.musicPlaylist)==null?void 0:S[E];S=[];if(k==null||!k.tracks)return S;k=_.n(k.tracks);for(E=k.next();!E.done;E=k.next())(E=_.Ov(E.value).entityId)&&S.push(E);return S};
nB1=function(k,E){var S=new Set,R=SNC(k).map(function(N){return N.downloadedMusicPlaylistEntities});
R=R1e(R);R=_.n(R);for(var V=R.next();!V.done;V=R.next())(V=_.Ov(V.value).entityId)&&S.add(V);return h1C(k).downloadedMusicEntities.filter(function(N){var h;if((h=N.musicTrackEntity)!=null&&h.videoId){N=N.musicTrackEntity;if(h=E==="PPOM"?!0:!S.has(N.videoId))b:switch(N=N.musicVideoType,E){case "PPSE":h=N==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:h=N!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}N=h}else N=!1;return N}).map(function(N){var h;
return(h=N.musicTrackEntity)==null?void 0:h.videoId})};
h1C=function(k){var E=NAb(k).sort(function(S,R){return R.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return"downloadedMusicEntities"in S?S.downloadedMusicEntities:COt(S)?S.downloadedMusicPlaylistEntities:{}});
k=SNC(k).sort(function(S,R){return R.addedTimestampMillis-S.addedTimestampMillis}).map(function(S){return"downloadedMusicEntities"in S?S.downloadedMusicEntities:COt(S)?S.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:E,downloadedMusicPlaylistEntities:k}};
crm=function(k,E){E=_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?iGt(k,E):qEC(k,E);if(!E.length)return"TRANSFER_STATE_UNKNOWN";E=E.map(function(S){return d5j(k,S)});
return Jrj(E)};
Jrj=function(k){var E=new Set(k);if(E.has("TRANSFER_STATE_FAILED")&&E.size===1)return"TRANSFER_STATE_FAILED";E.delete("TRANSFER_STATE_FAILED");if(E.has("TRANSFER_STATE_UNKNOWN")&&E.size===1)return"TRANSFER_STATE_PRE_TRANSFER";E.delete("TRANSFER_STATE_UNKNOWN");if(E.has("TRANSFER_STATE_PRE_TRANSFER")&&E.size===1||E.size===0)return"TRANSFER_STATE_PRE_TRANSFER";k=E.has("TRANSFER_STATE_TRANSFERRING");E=E.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return k||E?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
a7=function(k){var E=k.mainVideoDownloadStateEntity,S=[];if(!E)return[];E=_.n(Object.keys(E));for(var R=E.next();!R.done;R=E.next()){var V=R.value;if(!x51(k,_.Ov(V).entityId)){R=ei(k,_.Ov(V).entityId);var N=void 0,h=void 0;V=(h=Number((N=_.Ep(k,"mainVideoDownloadStateEntity",V))==null?void 0:N.addedTimestampMillis))!=null?h:(0,_.ev)();R!==void 0&&S.push({downloadedVideoEntities:R,addedTimestampMillis:V})}}return S};
mqb=function(k){return a7(k).sort(function(E,S){return S.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return E.downloadedVideoEntities})};
_.aYC=function(k){var E=GMl(k),S=_.tp(k),R=f2t(k),V=a7(k).filter(function(h){var J,m;if((h==null?void 0:(J=h.downloadedVideoEntities)==null?void 0:(m=J.transferEntity)==null?void 0:m.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var a,T;h=h==null?void 0:(a=h.downloadedVideoEntities)==null?void 0:(T=a.videoEntity)==null?void 0:T.key;return _.Y("kevlar_use_library_entity")?h&&(R.has(h)||S[h]):h&&!E.has(h)}),N=OMt(k).filter(function(h){return crm(k,h.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.$e(V),_.$e(N)).sort(function(h,J){return J.addedTimestampMillis-h.addedTimestampMillis}).map(function(h){return e11(h)})};
t61=function(k,E){if(E&&pIb(k,E)){var S,R,V=(R=(S=_.Ep(k,"playbackData",_.kn(E,"playbackData")))!=null?S:void 0)==null?void 0:R.playerResponseJson;if(V){try{var N=JSON.parse(V);var h=_.Ep(k,"transfer",_.kn(E,"transfer")),J=sgj(k,E);J&&(N=Object.assign({},N,{playerConfig:Object.assign({},N.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+J*1E3}}})}));N.cotn=h==null?void 0:h.cotn}catch(m){}return N}}};
_.w5I=function(k){var E,S,R;k=(R=(S=((E=k.downloadsPageViewConfigurationEntity)!=null?E:{})[_.TJ])==null?void 0:S.smartDownloadsOptInBannerVisibility)!=null?R:{};var V;return(V=_.W(k,TAR))!=null?V:{}};
_.tp=function(k){var E,S,R;k=(R=(S=((E=k.mainDownloadsListEntity)!=null?E:{})[_.PL1])==null?void 0:S.downloads)!=null?R:[];E={};S=_.n(k);for(R=S.next();!R.done;R=S.next())k=void 0,E[(k=R.value.videoItem)!=null?k:""]=!0;return E};
BAh=function(k){var E=_.tp(k);if(Object.keys(E).length===0)return!1;var S=k.mainVideoEntity;if(!S)return!0;S=_.n(Object.keys(S));for(var R=S.next();!R.done;R=S.next()){R=R.value;var V=_.Ov(R).entityId;if(E[R]&&!x51(k,V))return!1}return!0};
_.w8=function(k){var E=_.tp(k);return a7(k).sort(function(S,R){return S.addedTimestampMillis-R.addedTimestampMillis}).map(function(S){return S.downloadedVideoEntities}).filter(function(S){var R;
return(S=S==null?void 0:(R=S.videoEntity)==null?void 0:R.key)&&!!E[S]})};
_.Wyt=function(k){var E,S,R;k=(R=(S=((E=k.downloadsPageViewConfigurationEntity)!=null?E:{})[_.TJ])==null?void 0:S.downloadsUpsellBannerVisibility)!=null?R:{};var V;return(V=_.W(k,YNe))!=null?V:{}};
e11=function(k){return"downloadedVideoEntities"in k?k.downloadedVideoEntities:"downloadedPlaylistEntities"in k?k.downloadedPlaylistEntities:{}};
Fym=function(k){var E=_.tp(k),S=GMl(k),R=a7(k).filter(function(V){var N,h;return(V=V==null?void 0:(N=V.downloadedVideoEntities)==null?void 0:(h=N.videoEntity)==null?void 0:h.key)&&!E[V]&&!S.has(V)});
k=OMt(k);return[].concat(_.$e(R),_.$e(k)).sort(function(V,N){return N.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return e11(V)})};
_.Po=function(k){if(!_.Y("kevlar_use_library_entity"))return Fym(k);var E=a7(k).filter(function(R){var V,N;if(V=R=R==null?void 0:(V=R.downloadedVideoEntities)==null?void 0:(N=V.videoEntity)==null?void 0:N.key){var h,J,m;V=((J=(h=k.mainDownloadsListEntity)==null?void 0:h[$51])==null?0:(m=J.downloads)==null?0:m.length)?f2t(k).has(R):!1}return V}),S=OMt(k);
return[].concat(_.$e(E),_.$e(S)).sort(function(R,V){return V.addedTimestampMillis-R.addedTimestampMillis}).map(function(R){return e11(R)})};
yrm=function(k){var E=_.tp(k),S=GMl(k);return mqb(k).filter(function(R){var V;return(R=R==null?void 0:(V=R.videoEntity)==null?void 0:V.key)&&!E[R]&&!S.has(R)})};
oB1=function(k){if(!_.Y("kevlar_use_library_entity"))return yrm(k);var E=_.tp(k),S=f2t(k);return mqb(k).filter(function(R){var V;return(R=R==null?void 0:(V=R.videoEntity)==null?void 0:V.key)&&!E[R]&&S.has(R)})};
X5m=function(k,E){E=_.kn(E,"settingEntity");var S,R,V;return!!((V=(R=((S=k.settingEntity)!=null?S:{})[E])==null?void 0:R.settingOptionValue)!=null?V:{}).boolValue};
_.Bo=function(k){var E=_.w8(k);if(Kcm(E))return 0;var S=[];E=_.n(E);for(var R=E.next();!R.done;R=E.next()){R=R.value;var V=void 0,N=void 0;if((V=R)==null?0:(N=V.videoEntity)==null?0:N.key)V=_.Ov(R.videoEntity.key).entityId,R=k,V=_.kn(V,"mainVideoDownloadStateEntity"),R=_.Ep(R,"mainVideoDownloadStateEntity",V),(R=Number(R==null?void 0:R.addedTimestampMillis))&&S.push(R)}return Math.max.apply(Math,_.$e(S))};
_.Yn=function(k){return k.ui.richGridMiniMode};
_.Wo=function(k){return k.ui.richGridItemsPerRow};
_.gB1=function(k){return k.ui.richGridSlimItemsPerRow};
_.Uqh=function(k){return k.ui.guideIsExpanded};
_.Ff=function(k){return k.ui.miniplayerIsActive};
HGl=function(k){return k.ui.singleOptionSurveyIsActive};
_.yV=function(k){var E;return((E=k.ui)==null?void 0:E.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.Ky1=function(k){return _.yV(k)==="WEB_PAGE_TYPE_WATCH"};
_.p5j=function(k){return _.yV(k)==="WEB_PAGE_TYPE_SHORTS"};
_.ArI=function(k){return k.ui.inlinePreviewIsActive};
_.rre=function(k){return k.ui.inlinePreviewIsEnabled};
_.uAl=function(k){return k.ui.miniplayerPlaybackState};
_.o7=function(k){return k.ui.isOnline};
_.xqh=function(k){return k.ui.frostedGlassMode};
_.Xf=function(k,E){return vNl(k.entities,E)};
_.g8=function(k,E){return crm(k.entities,E)};
Lyh=function(k,E){var S;if(E){var R;k=(R=_.Ep(k.entities,"offlineVideoPolicy",_.kn(E,"offlineVideoPolicy")))==null?void 0:R.action}else k=void 0;return(S=k)!=null?S:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
jAI=function(k,E){var S;E?(k=_.Ep(k.entities,"offlineVideoPolicy",_.kn(E,"offlineVideoPolicy")),k=Number(k==null?void 0:k.expirationTimestamp)):k=void 0;return(S=k)!=null?S:0};
_.Dq1=function(k){return _.mC(k.entities).length};
$qh=function(k,E){return ei(k.entities,E)};
fYm=function(k,E){return QgA(k.entities,E)};
Up=function(k,E){return(k=ei(k.entities,E))?_.XIe([k]):0};
_.vBb=function(k,E){var S=_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(S){var R=k.entities;var V=iGt(R,E);if(V.length){var N=[];V=_.n(V);for(var h=V.next();!h.done;h=V.next())(h=V61(R,h.value))&&N.push(h);R=N}else R=[]}else R=zVA(k.entities,E);var J;if(S){var m=k.entities;E?(E=_.kn(E,"musicPlaylist"),m=(J=m.musicPlaylist)==null?void 0:J[E],J=m!=null&&m.tracks?m.tracks.length:0):J=0}else J=k.entities,E?(E=_.kn(E,"mainPlaylistEntity"),J=(m=J.mainPlaylistEntity)==null?void 0:m[E],J=J!=null&&J.videos?
J.videos.length:0):J=0;return R.length!==J?0:R?gN1(R):0};
_.bG1=function(k){return k.download.isLeaderTab};
_.ZGe=function(k,E,S){if(!E&&S){var R=k.entities;if(S){var V=HMl(S),N,h;E=(h=(N=_.Ep(R,"offlineabilityEntity",_.kn(V,"offlineabilityEntity")))==null?void 0:N.addToOfflineButtonState)!=null?h:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else E="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else N=k.entities,E?(h=HMl(E),E=(V=(R=_.Ep(N,"offlineabilityEntity",_.kn(h,"offlineabilityEntity")))==null?void 0:R.addToOfflineButtonState)!=null?V:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):E="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return E};
dql=function(k,E){k=k.entities;if(E){E=HMl(E);var S,R;E=(R=(S=_.Ep(k,"offlineabilityEntity",_.kn(E,"offlineabilityEntity")))==null?void 0:S.addToOfflineButtonState)!=null?R:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else E="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return E};
_.sAR=function(k){var E=k.entities;k=_.o7(k);var S=X5m(E,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.Y("kevlar_modern_downloads_page")&&S)var R=!1;else{var V,N;E=(N=(V=((R=E.downloadsPageViewConfigurationEntity)!=null?R:{})[_.TJ])==null?void 0:V.smartDownloadsOptInBannerVisibility)!=null?N:{};R=k?!!E.visibleWithConnection:!!E.visibleWithoutConnection}return R};
_.lYm=function(k){return X5m(k.entities,"SMART_DOWNLOADS_ENABLED")};
_.M6h=function(k){return BAh(k.entities)};
qNe=function(k){return _.w8(k.entities).every(function(E){var S;return(E==null?void 0:(S=E.transferEntity)==null?void 0:S.transferState)&&!oNA.includes(E.transferEntity.transferState)})};
_.z1l=function(k){var E,S,R,V=(R=(S=((E=k.entities.downloadsPageViewConfigurationEntity)!=null?E:{})[_.TJ])==null?void 0:S.downloadsUpsellBannerVisibility)!=null?R:{};return _.o7(k)?!!V.visibleWithConnection:!!V.visibleWithoutConnection};
_.QAh=function(k,E){return x51(k.entities,E)};
OGC=function(k,E){if(E){var S,R;k=(R=(S=_.Ep(k.entities,"downloadStatusEntity",_.kn(E,"downloadStatusEntity")))==null?void 0:S.downloadState)!=null?R:"DOWNLOAD_STATE_UNKNOWN"}else k="DOWNLOAD_STATE_UNKNOWN";return k};
Ho=function(k,E){return sgj(k.entities,E)};
EP1=function(k){k=Gii(k);var E=k.hours===void 0?0:k.hours,S=k.minutes===void 0?0:k.minutes,R=k.seconds===void 0?0:k.seconds,V=E>0;k=[];V&&(E=CLA(E),k.push(E));E=V;E=E===void 0?!1:E;S=(["af","be","lt"].includes(Kr)||E)&&S<10?kmt().format(S):(new Intl.NumberFormat("en-u-nu-latn")).format(S);k.push(S);S=kmt().format(R);k.push(S);S=":";"da fi id si sr sr-Latn".split(" ").includes(Kr)&&(S=".");return k.join(S)};
_.uR1=function(k){k=Gii(k);var E=k.hours===void 0?0:k.hours,S=k.minutes===void 0?0:k.minutes,R=k.seconds===void 0?0:k.seconds;k=[];if(E>0){var V=ry1().format({hours:E});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Kr)||E>9999)V=V.replace(E.toString(),CLA(E)),Kr==="km"&&(V=V.replace(".",","));k.push(V)}S>0&&k.push(ry1().format({minutes:S}));R>0&&k.push(ry1().format({seconds:R}));E="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");S=Kr=="am"?"{0}\u1363 ":Kr=="fa"?"{0}\u060c\u200f ":
Kr=="my"?"{0} - ":Kr=="ne"?"{0},":Kr=="th"?"{0} ":Kr=="ur"?"{0}\u060c ":Kr=="ar"||Kr=="ar-XB"?"{0} \u0648":Kr=="ja"||Kr=="zh-CN"||Kr=="zh-HK"||Kr=="zh-TW"?"{0}\u3001":"{0}, ";R=Kr=="am"?"\u1363 ":Kr=="fa"?"\u060c\u200f ":Kr=="my"?" - ":Kr=="th"?" ":Kr=="ur"?"\u060c ":Kr=="ar"||Kr=="ar-XB"?" \u0648":Kr=="ja"||Kr=="zh-CN"||Kr=="zh-HK"||Kr=="zh-TW"?"\u3001":", ";V=Kr=="am"?" \u12a5\u1293 {0}":Kr=="as"?" \u0986\u09f0\u09c1 {0}":Kr=="az"?" v\u0259 {0}":Kr=="bn"?" \u098f\u09ac\u0982 {0}":Kr=="cs"?" a\u00a0{0}":
Kr=="de"?" und {0}":Kr=="el"?" \u03ba\u03b1\u03b9 {0}":Kr=="eu"?" eta {0}":Kr=="fa"?"\u060c \u0648 {0}":Kr=="fil"?", at {0}":Kr=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Kr=="hi"?", \u0914\u0930 {0}":Kr=="hu"?" \u00e9s {0}":Kr=="hy"?" \u0587 {0}":Kr=="id"?", dan {0}":Kr=="iw"?" \u05d5-{0}":Kr=="ja"?"\u3001{0}":Kr=="ka"?" \u10d3\u10d0 {0}":Kr=="km"?" \u1793\u17b7\u1784 {0}":Kr=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Kr=="ko"?" \ubc0f {0}":Kr=="ky"?" \u0436\u0430\u043d\u0430 {0}":Kr=="lt"?" ir {0}":Kr==
"lv"?" un {0}":Kr=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Kr=="mr"?" \u0906\u0923\u093f {0}":Kr=="ms"?" dan {0}":Kr=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Kr=="ne"?" \u0930 {0}":Kr=="or"?", \u0b13 {0}":Kr=="pa"?" \u0a05\u0a24\u0a47 {0}":Kr=="ro"?" \u0219i {0}":Kr=="si"?", \u0dc3\u0dc4 {0}":Kr=="sk"?" a {0}":Kr=="sl"?" in {0}":Kr=="sq"?" dhe {0}":Kr=="sv"?" och {0}":Kr=="sw"?" na {0}":Kr=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Kr=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Kr=="th"?" \u0e41\u0e25\u0e30{0}":Kr=="tr"?" ve {0}":Kr=="ur"?"\u060c \u0627\u0648\u0631 {0}":Kr=="uz"?" va {0}":Kr=="vi"?" v\u00e0 {0}":Kr=="zh-HK"?"\u53ca{0}":Kr=="zu"?", ne-{0}":Kr=="af"||Kr=="nl"?" en {0}":Kr=="ar"||Kr=="ar-XB"?" \u0648{0}":Kr=="be"||Kr=="uk"?" \u0456 {0}":Kr=="en-GB"||Kr=="en-IN"?" and {0}":Kr=="en"||Kr=="en-XA"?", and {0}":Kr=="et"||Kr=="fi"?" ja {0}":Kr=="fr"||Kr=="fr-CA"?" et {0}":Kr=="zh-CN"||Kr=="zh-TW"?"\u548c{0}":Kr=="da"||Kr=="is"||Kr=="no"?" og {0}":Kr=="es"||Kr=="es-419"||
Kr=="es-US"?" y {0}":Kr=="kk"||Kr=="lo"||Kr=="mn"?", {0}":Kr=="bg"||Kr=="mk"||Kr=="ru"||Kr=="sr"?" \u0438 {0}":Kr=="gl"||Kr=="it"||Kr=="pt-BR"||Kr=="pt-PT"?" e {0}":" i {0}";var N=Kr=="am"?"{0} \u12a5\u1293 {1}":Kr=="as"?"{0} \u0986\u09f0\u09c1 {1}":Kr=="az"?"{0} v\u0259 {1}":Kr=="bn"?"{0} \u098f\u09ac\u0982 {1}":Kr=="de"?"{0} und {1}":Kr=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Kr=="eu"?"{0} eta {1}":Kr=="fa"?"{0} \u0648 {1}":Kr=="fil"?"{0} at {1}":Kr=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Kr=="hi"?"{0} \u0914\u0930 {1}":
Kr=="hu"?"{0} \u00e9s {1}":Kr=="hy"?"{0} \u0587 {1}":Kr=="iw"?"{0} \u05d5-{1}":Kr=="ja"?"{0}\u3001{1}":Kr=="ka"?"{0} \u10d3\u10d0 {1}":Kr=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Kr=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Kr=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Kr=="ko"?"{0} \ubc0f {1}":Kr=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Kr=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Kr=="lt"?"{0} ir {1}":Kr=="lv"?"{0} un {1}":Kr=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Kr=="mn"?"{0}, {1}":Kr==
"mr"?"{0} \u0906\u0923\u093f {1}":Kr=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Kr=="ne"?"{0} \u0930 {1}":Kr=="or"?"{0} \u0b13 {1}":Kr=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Kr=="ro"?"{0} \u0219i {1}":Kr=="si"?"{0} \u0dc3\u0dc4 {1}":Kr=="sl"?"{0} in {1}":Kr=="sq"?"{0} dhe {1}":Kr=="sv"?"{0} och {1}":Kr=="sw"?"{0} na {1}":Kr=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Kr=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Kr=="th"?"{0}\u0e41\u0e25\u0e30{1}":Kr=="tr"?"{0} ve {1}":Kr=="ur"?
"{0} \u0627\u0648\u0631 {1}":Kr=="uz"?"{0} va {1}":Kr=="vi"?"{0} v\u00e0 {1}":Kr=="zh-HK"?"{0}\u53ca{1}":Kr=="zu"?"{0} ne-{1}":Kr=="af"||Kr=="nl"?"{0} en {1}":Kr=="ar"||Kr=="ar-XB"?"{0} \u0648{1}":Kr=="be"||Kr=="uk"?"{0} \u0456 {1}":Kr=="cs"||Kr=="sk"?"{0} a\u00a0{1}":Kr=="et"||Kr=="fi"?"{0} ja {1}":Kr=="fr"||Kr=="fr-CA"?"{0} et {1}":Kr=="id"||Kr=="ms"?"{0} dan {1}":Kr=="zh-CN"||Kr=="zh-TW"?"{0}\u548c{1}":Kr=="da"||Kr=="is"||Kr=="no"?"{0} og {1}":Kr=="es"||Kr=="es-419"||Kr=="es-US"?"{0} y {1}":Kr==
"bg"||Kr=="mk"||Kr=="ru"||Kr=="sr"?"{0} \u0438 {1}":Kr=="en"||Kr=="en-GB"||Kr=="en-IN"||Kr=="en-XA"?"{0} and {1}":Kr=="gl"||Kr=="it"||Kr=="pt-BR"||Kr=="pt-PT"?"{0} e {1}":"{0} i {1}";Kr==="sq"?(V=V.replace("dhe","e"),N=N.replace("dhe","e")):Kr==="th"?(R=R.replace("{0}"," {0}"),N=N.replace("{0}","{0} "),N=N.replace("{1}"," {1}")):Kr==="ne"?R=",":Kr==="zh-CN"?R="":E.includes(Kr)&&(R=" ");return k.length<2?k.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(Kr)?
k.length===2?N.replace("{0}",k[0]).replace("{1}",k[1]):S.replace("{0}",k[0])+k.slice(1,-1).join(R)+V.replace("{0}",k[k.length-1]):k.join(R)};
Gii=function(k){var E=k.hours||0,S=k.minutes||0,R=k.seconds||0;E=R+S*60+E*3600+(k.days||0)*86400+(k.weeks||0)*604800+(k.months||0)*2629800+(k.years||0)*31557600;if(E<=0)return{hours:0,minutes:0,seconds:0};k=E;E=Math.floor(k/3600);k%=3600;S=Math.floor(k/60);R=Math.floor(k%60);return{hours:E,minutes:S,seconds:R}};
CLA=function(k){k=(new Intl.NumberFormat("en-u-nu-latn")).format(k);var E=["fr"],S="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(Kr)?k.replace(",","\u00a0"):E.includes(Kr)?k.replace(",","\u202f"):S.includes(Kr)?k.replace(",","."):k};
kmt=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
ry1=function(){x8t||(pr=LMj,x8t=new j8b);return x8t};
D8b=function(k){try{return(new _.r8(5)).format(k)}catch(E){}};
ug=function(k){return{thumbnailOverlayDownloadingRenderer:{state:k}}};
$8C=function(k){if(k=D8b(k))return{thumbnailOverlaySidePanelRenderer:{text:_.lD(k),icon:{iconType:"PLAYLISTS"}}}};
fGI=function(){var k=_.Vi("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.lD(k),icon:{iconType:"PLAY_ALL"}}}};
vPt=function(k){k=_.xn(k,2);return Kr!=="ru"&&Kr!=="es_419"&&Kr!=="es-419"&&Kr!=="es"&&Kr!=="es_US"&&Kr!=="es-US"&&Kr!=="fr"&&Kr!=="pl"&&Kr!=="it"&&Kr!=="nl"&&Kr!=="uk"&&Kr!=="fr_CA"&&Kr!=="fr-CA"||k===""?k:k[0].toLocaleUpperCase()+k.substring(1)};
ZXm=function(k){return function(E){var S=k(),R=_.xn(E,S.dateFormat);E=_.xn(E,S.timeFormat);var V=bXl.DATETIMEFORMATS[S.joinerStyle];V=V.replace(/'(?!')/g,"");V=V.replace("{0}",E);V=V.replace("{1}",R);return S.capitalize(V)}};
d8h=function(k){return k?typeof k.seconds==="string"&&(k.nanos===void 0||typeof k.nanos==="number"):!1};
s81=function(k){return new Date(Number(k.seconds)*1E3+(k.nanos||0)*1E-6)};
_.xn=function(k,E){if(typeof k.getTime==="function")k={date:k};else if(d8h(k))k={date:s81(k)};else if(typeof d8h(k.timestamp)&&typeof k.i18nInternalSecondsEastOfUtc==="number")k={date:s81(k.timestamp),timeZone:Lr(-k.i18nInternalSecondsEastOfUtc/60)};else throw Error("Kf`"+JSON.stringify(k));var S=k;k=S.date;S=S.timeZone;E=lGj(E).format(k,S);Kr==="zh-TW"&&(k=S?Number(lGj("H").format(k,S)):k.getHours(),E=k<5?E.replace("\u4e0a\u5348","\u51cc\u6668"):k<8?E.replace("\u4e0a\u5348","\u65e9\u4e0a"):k<12?
E.replace("\u4e0a\u5348","\u4e0a\u5348"):k<13?E.replace("\u4e0b\u5348","\u4e2d\u5348"):k<19?E.replace("\u4e0b\u5348","\u4e0b\u5348"):E.replace("\u4e0b\u5348","\u665a\u4e0a"));return E};
lGj=function(k){if(MDt.has(k))return MDt.get(k);var E=qb1(k);E=ztC(E);Q8C!==!0&&(Q8C=!0);OXb=!0;OXb=!1;E=new ji(E,bXl);MDt.set(k,E);return E};
qb1=function(k){return(new ji(k,bXl)).patternParts_.map(function(E){return E.type===0?"'"+E.text+"'":E.text}).join("")};
ztC=function(k){return Kr==="en"||Kr==="es_US"||Kr==="es-US"?k:k.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(E,S,R){return"H".repeat(S.length)+R})};
Vfh=function(k,E){Gmt||(pr=LMj,Gmt=new CZm);var S=Gmt;a:if(k=kFj(k),E=kFj(E||new Date),k>E)S=k.getTime()-E.getTime()>6048E5?_.xn(k,1):EgI(k);else{for(var R=0;Szi(k,12*(R+1))<E;)++R;if(R>0)S=S.format(-R,0);else{for(R=0;Szi(k,R+1)<E;)++R;if(R>0)S=S.format(-R,2);else{k=E.getTime()-k.getTime();E=_.n(Rzj);for(R=E.next();!R.done;R=E.next()){R=R.value;var V=R.unit,N=Math.floor(k/R.unitDuration);if(N>=(R.threshold===void 0?1:R.threshold)){S=S.format(-N,V);break a}}S=S.format(-0,7)}}}return S};
kFj=function(k){if(typeof k.getTime==="function")return k;if(d8h(k))return s81(k);throw Error("Lf`"+JSON.stringify(k));};
Szi=function(k,E){for(var S=0,R;;++S)if(R=new Date(k.getFullYear(),k.getMonth()+E,k.getDate()-S,k.getHours(),k.getMinutes(),k.getSeconds()),R.getMonth()===(k.getMonth()+E)%12)return R};
_.DE=function(k){return{runs:[{text:k}]}};
_.$n=function(k){if(k&&k.simpleText)return k.simpleText;var E="";if(k&&k.runs)for(var S=0;S<k.runs.length;S++)k.runs[S].text&&(E+=k.runs[S].text);return E};
IVj=function(k,E,S,R){return k.videoEntity&&!k.policyEntity&&S!=="DOWNLOAD_STATE_FAILED"?[ug("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:hp(k.policyEntity)&&E!=="TRANSFER_STATE_FAILED"&&E!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?E==="TRANSFER_STATE_PAUSED_BY_USER"?[ug("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.Jp(E)?[ug("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:k.videoEntity.lengthSeconds?NRR(k.videoEntity.lengthSeconds,R):[]:
[ug("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
NRR=function(k,E){var S=[{thumbnailOverlayTimeStatusRenderer:{text:_.lD(EP1({seconds:k})),style:"DEFAULT"}}];E&&(k=E<=0||k<=0?0:E>=k?100:Math.ceil(E*100/k),k>0&&S.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:k}}));return S};
ngm=function(k,E,S,R,V){if(E==="TRANSFER_STATE_UNKNOWN"||!k)return{};if(_.Jp(E)||E==="TRANSFER_STATE_PRE_TRANSFER")var N=[ug("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var h,J;if(E==="TRANSFER_STATE_COMPLETE"&&((h=k.mainPlaylistEntity)==null?0:(J=h.videos)==null?0:J.length)){if(_.Y("web_modern_collections_v2")){var m;var a=(N=k.mainPlaylistEntity)==null?void 0:(m=N.videos)==null?void 0:m.length;N=(N=D8b(a))?{thumbnailOverlayBottomPanelRenderer:{text:_.lD(N),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var T;N=$8C((a=k.mainPlaylistEntity)==null?void 0:(T=a.videos)==null?void 0:T.length)}var w;N=[fGI(),Object.assign({},(w=N)!=null?w:{})]}else N=[]}w=N;a:if(E==="TRANSFER_STATE_PRE_TRANSFER")S=Ma(_.Vi("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(E==="TRANSFER_STATE_TRANSFER_IN_QUEUE")S=Ma(_.Vi("WAITING_TO_DOWNLOAD"));else if(_.Jp(E))S=Math.floor(S*100).toString(),S=Ma(_.Vi("DOWNLOADING_PERCENT",{percent:S},"Downloading... "+S+"%"));else{if(R&&(_.Y("playlist_is_offline_selector_killswitch")&&
(V=_.en().resolve(_.Ec).isNetworkAvailable()),V)){S=xFC(_.Vi("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),r11(R));break a}S=void 0}E=E==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Vi("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},w.length?{thumbnailOverlays:w}:{},S?{viewPlaylistText:S}:{viewPlaylistText:_.DE("")},E.length?{badges:E}:{})};
i6m=function(k,E,S,R,V,N){if(E==="TRANSFER_STATE_UNKNOWN"||!k)return{};if(R==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var h=IVj(k,E,R);if(k.videoEntity&&!k.policyEntity&&R!=="DOWNLOAD_STATE_FAILED"){var J=_.Vi("WAITING_TO_DOWNLOAD");if(J)return{shortViewCountText:_.DE(J),publishedTimeText:void 0,thumbnailOverlays:h}}if(!hp(k.policyEntity)){N=k.policyEntity&&!U5e(k.policyEntity)?_.Vi("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Vi("TRANSFER_FAILED",{},"Download failed");var m;if((m=k.policyEntity)==null?0:m.shortMessageForDisabledAction)N=k.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Ma(N),publishedTimeText:void 0,thumbnailOverlays:h}}if(E==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.DE(_.Vi("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:h};if(E==="TRANSFER_STATE_FAILED"||E==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.DE(_.Vi("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:h};if(E==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(m=_.Vi("WAITING_TO_DOWNLOAD"),R==="DOWNLOAD_STATE_PAUSED"&&(m=_.Vi("DOWNLOAD_PAUSED",{},"Download paused")),m))return{shortViewCountText:_.DE(m),publishedTimeText:void 0,thumbnailOverlays:h};if(_.Jp(E))return k=Math.floor(S*100).toString(),{shortViewCountText:_.DE(_.Vi("DOWNLOADING_PERCENT",{percent:k},"Downloading... "+k+"%")),publishedTimeText:void 0,thumbnailOverlays:h};E=void 0;k.videoEntity.publishedTimestampMillis&&
(E=new Date,V&&(E=new Date(V)),E=Ma(Vfh(new Date(Number(k.videoEntity.publishedTimestampMillis)),E)));V=[];_.Y("kevlar_woffle_badge_killswitch")||(V=[{metadataBadgeRenderer:{label:_.Vi("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var a;k=Ma((a=k.videoEntity.localizedStrings)==null?void 0:a.viewCount);return Object.assign({},N?{shortViewCountText:void 0}:{shortViewCountText:k},N?{}:{publishedTimeText:E},{badges:V,thumbnailOverlays:h})};
JUi=function(k,E){k=k===void 0?_.hzt:k;switch(E.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:E.payload.playlistId,inviteLinkURL:E.payload.inviteLinkUrl};default:return k}};
m1h=function(k,E){k=k===void 0?_.cUI:k;switch(E.type){case "SET_CURRENT_FORM_ID":return E=E.payload.formId,k.currentFormId===E?k:{currentFormId:E,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var S=E.payload;E=S.groupId;S=S.command;if(k.currentFormId){var R=Object.assign({},k.commandsMap);R[E]=S;k=Object.assign({},k,{commandsMap:R})}return k;case "RESET_COMMAND_MAP":return Object.assign({},k,{commandsMap:{}});default:return k}};
aVi=function(k,E){k=k===void 0?_.ezj:k;switch(E.type){case "UPDATE_CANVAS_MODE":return Object.assign({},k,{currentMode:E.payload.currentMode});default:return k}};
TRl=function(k,E){k=k===void 0?_.tfA:k;switch(E.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},k,{guideIsExpanded:E.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},k,{scrollAtTop:E.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},k,{guideIsVisibleButNotPersistent:E.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},k,{miniplayerIsActive:E.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},k,{singleOptionSurveyIsActive:E.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},k,{slimlineSurveyRatingSelectedIndex:E.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},k,{richGridMiniMode:E.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},k,{richGridItemsPerRow:E.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},k,{richGridSlimItemsPerRow:E.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},k,{richGridContainerWidth:E.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},k,{richGridStyle:E.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},k,{currentPageType:E.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},k,{inlinePreviewIsActive:E.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},k,{inlinePreviewIsEnabled:E.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},k,{darkModeIsEnabled:E.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
k,{miniplayerPlaybackState:E.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},k,{tabGesturesIsActive:E.payload});case "SET_ONLINE_STATUS":return Object.assign({},k,{isOnline:E.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},k,{chipBarIsSticky:E.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},k,{frostedGlassMode:E.payload});default:return k}};
w3A=function(){return _.Y("kevlar_disable_theater_mode_persistence")?!1:_.qg("START_IN_THEATER_MODE")};
BRA=function(k,E){k=k===void 0?_.P6I:k;switch(E.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},k,{transcription:E.payload});case "SET_OVERLAY_STATE":return Object.assign({},k,{overlay:E.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return k}};
Kwj=function(){return pf(Object.assign({},{continuation:YzA,download:WwR,canvas:aVi,reportChannelAbuse:Fwh,share:yUI,talkToRecs:ogb,ui:TRl,voiceSearch:BRA,watch:X3I,ypc:ggR,shorts:U1A,radioButtonGroup:m1h,collabInviteLink:JUi},H6l))};
rUC=function(){return _.Y("web_player_entities_middleware")?new fr(Kwj(),[p3i,AUb]):new fr(Kwj(),[p3i])};
_.vo=function(){ukm||(ukm=rUC());return ukm};
x1h=function(k,E,S){if(k.length)return{titleText:_.lD(E!=null?E:_.Vi("DOWNLOADS",void 0,"Downloads")),contents:k.map(function(R){var V=R.videoEntity;R={videoId:V.videoId,title:Ma(V.title),shortBylineText:Ma(R.channelEntity.title),thumbnail:V.thumbnail};var N=V.videoId?Ho(_.vo().getState(),V.videoId):0;V.videoId&&S?R.navigationEndpoint=_.sv(V.videoId,S,void 0,void 0,N):V.videoId&&(R.navigationEndpoint=A1R(V.videoId,N,V.lengthSeconds));V.lengthSeconds&&(R.thumbnailOverlays=NRR(V.lengthSeconds,N));return{playlistPanelVideoRenderer:R}}),
totalVideos:k.length}};
Lwe=function(k){return(k=(0,_.fO.getValueByKeys)(k,"playlistId"))?{playlistId:k}:null};
jQI=function(){return{}};
D1l=function(k,E){return new _.yF(function(S,R){k.then(function(V){if(V){if(V=E(V))return S(V);R()}},R)})};
$11=function(k){var E,S,R,V=(E=k.contents)==null?void 0:(S=E.twoColumnWatchNextResults)==null?void 0:(R=S.autoplay)==null?void 0:R.autoplay,N,h,J;E=(N=k.contents)==null?void 0:(h=N.twoColumnWatchNextResults)==null?void 0:(J=h.playlist)==null?void 0:J.playlist;return V&&E&&E.playlistId?{rawResponse:k,autoplayRenderer:V,playlistPanelRenderer:E,playlistId:E.playlistId}:null};
vgj=function(k){var E=E===void 0?"UNKNOWN_INTERFACE":E;if(k.length===1)return k[0];var S=fVi[E];if(S){S=new RegExp(S);for(var R=_.n(k),V=R.next();!V.done;V=R.next())if(V=V.value,S.exec(V))return V}var N=[];Object.entries(fVi).forEach(function(h){var J=_.n(h);h=J.next().value;J=J.next().value;E!==h&&N.push(J)});
S=new RegExp(N.join("|"));k.sort(function(h,J){return h.length-J.length});
R=_.n(k);for(V=R.next();!V.done;V=R.next())if(V=V.value,!S.exec(V))return V;return k[0]};
_.bg=function(k){return"/youtubei/v1/"+vgj(k)};
_.ZE=function(k,E){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:k}}},E!==void 0?{durationHintMs:E}:{})}};
_.d8=function(k,E){return _.ZE(_.DE(k),E)};
b6e=function(k,E){var S={mode:"NORMAL"};k&&(S.autoplayVideo=k.navigationEndpoint,S.nextButtonVideo=k.navigationEndpoint);E&&(S.previousButtonVideo=E.navigationEndpoint);return S};
sQi=function(k,E,S){if(!S||!S.sets)return{sets:[b6e(k,E)]};var R=S.sets.find(function(h){return h.mode==="NORMAL"}),V=(0,_.fO.unsafeClone)(S);
if(!R)return V.sets.push(b6e(k,E)),V;if(!k)return S;R=_.fO.getValueByKeys.apply(null,[R].concat(_.$e(Z6t)));var N=_.fO.getValueByKeys.apply(null,[k].concat(_.$e(d1b)));if(R===N)return S;V.sets=V.sets.filter(function(h){return h.mode!=="NORMAL"});
V.sets.push(b6e(k,E));return V};
lVj=function(k){return!!k.playlistPanelVideoRenderer&&!k.playlistPanelVideoRenderer.unplayableText};
MfA=function(k){return!!k.playlistPanelVideoRenderer&&!!k.playlistPanelVideoRenderer.title};
qzm=function(k,E){if(E.contents&&!(k>=E.contents.length)&&(k=E.contents.slice(k).find(lVj)))return k.playlistPanelVideoRenderer};
zzh=function(k,E){if(E.contents)return(E=E.contents.find(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId===k}))?E.playlistPanelVideoRenderer:void 0};
QQh=function(k,E){return E.contents?E.contents.findIndex(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId===k}):-1};
O6C=function(k,E){return E.contents?E.contents.findIndex(function(S){return!!S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.playlistSetVideoId===k}):-1};
GF1=function(k,E){k.contents&&E!==-1&&k.contents.splice(E,1).length===1&&k.totalVideos!==void 0&&(--k.totalVideos,delete k.videoCountText)};
_.C6h=function(k){var E=[];if(!k||!k.contents)return E;k=_.n(k.contents);for(var S=k.next();!S.done;S=k.next())S=S.value,S.playlistPanelVideoRenderer&&S.playlistPanelVideoRenderer.videoId&&E.push(S.playlistPanelVideoRenderer.videoId);return E};
_.kDA=function(k){if(k&&k.contents)return(k=k.contents.find(function(E){return!!E.playlistPanelVideoRenderer&&!!E.playlistPanelVideoRenderer.selected})||k.contents[k.currentIndex])?k.playlistPanelVideoRenderer:void 0};
E8I=function(k,E,S,R,V,N,h){V=V===void 0?!1:V;N=N===void 0?!1:N;h=h===void 0?!1:h;if(k.contents&&k.contents.length!==0){R&&(k.contents=k.contents.filter(R));R=k.contents.length;for(var J=0;J<R;J++){var m=k.contents[J].playlistPanelVideoRenderer;m&&(J===E?(N&&delete m.menu,m.indexText=_.DE("\u25b6")):V||k.isInfinite||m.indexText===void 0?delete m.indexText:m.indexText=_.DE((J+1+S).toString()))}k.currentIndex=E+S;h&&(delete k.videoCountText,k.totalVideos=R)}};
_.sp=function(k){k=SVR(k);if(k){var E=k.length;var S=-23%E;S<0&&(S=E+S);k=k.slice(E-S)+k.slice(0,E-S)}else k="";S="";for(E=0;E<k.length&&k[E]!==RbC;E++)S+=k[E];return S};
_.VEb=function(k,E){var S=document.body;E=E===void 0?function(J){return J}:E;
var R,V=null;k=_.n(k);for(R=k.next();!R.done;R=k.next()){var N=R.value;R="div";N[2]&&(R=E(N[2]));R=document.createElement(R);V||(V=R);var h=N[0];N=N[1];h&&(R.id=E(h));if(N)for(N=_.n(N),h=N.next();!h.done;h=N.next())R.classList.add(E(h.value));S.appendChild(R);S=R}return[V,S]};
Nwt=function(k,E){for(var S="",R=0;R<E;R++)S+=k.charAt(Math.floor(Math.random()*k.length));return S};
lg=function(k){return Nwt("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",k)};
MI=function(k){return Nwt("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",k)};
qI=function(k){return Nwt("0123456789",k)};
IoI=function(){var k=performance.now(),E=new Date;var S="2."+E.getFullYear()+String(E.getMonth()+1).padStart(2,"0")+String(E.getDate()).padStart(2,"0");for(var R,V=Math.floor(Math.random()*11)+15,N=[],h=0;h<V;h++)N.push(Math.floor(Math.random()*26476865)+24547720);R=N.join(",");var J=lg(10),m=lg(100),a=lg(102),T=lg(106),w=lg(108),P=lg(11),B=lg(1140),F=lg(123),K=lg(14),r=lg(16),x=lg(1900),L=lg(23),q=lg(26),M=lg(34),d=lg(397),z=lg(44),kb=lg(5),TI=lg(72),a1=lg(74),Ah=lg(75),th=lg(88),He=lg(91),ve="rr2---sn-q4fl6n6r rr3---sn-q4fzene7 rr2---sn-hgn7ynek rr1---sn-q4flrnsl rr5---sn-q4fl6ndz rr4---sn-q4fl6ns6 rr4---sn-q4flrnlz rr4---sn-q4fl6ndl rr3---sn-hgn7yn7e rr3---sn-q4fl6nsd rr1---sn-5hne6nzs rr5---sn-q4fzen7y rr5---sn-ntqe6nee rr2---sn-t0a7lnee rr1---sn-aigl6nsd rr2---sn-4g5edn6r rr3---sn-q4fzen7l rr2---sn-q4flrnsd rr2---sn-5hne6n6e rr1---sn-q4flrnlz".split(" ");
var Xm=ve[Math.floor(Math.random()*ve.length)];var U5=(new Date("2010-01-01")).getTime();var l4=(new Date(U5+Math.random()*((new Date).getTime()-U5))).toISOString().split("T")[0];for(var gY,IC=[],md=0;md<4;md++)IC.push(Math.floor(Math.random()*100));gY=IC.join(".");var Kj=Number(qI(5)),Lj=Number(qI(6)),H0=Number(qI(7)),TG=Number(qI(9)),iC=qI(1),hC=qI(10),Y2=qI(16),It=qI(19),Wz=qI(2),VP=qI(20),LR=qI(21),Mp=qI(3),tC=qI(4),aC=qI(5),Rt=qI(6),zI=qI(7),Bz=qI(8),W0=qI(9);var EY=Nwt("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var pP=[MI(5),MI(5),MI(5)].join("%2C"),dP=[qI(3),qI(5),qI(5)].join("%2C"),C2=MI(0),Jx=MI(1),Qd=MI(10),ot=MI(108),N2=MI(11),BX=MI(12),ik=MI(13),jo=MI(14),YO=MI(15),nO=MI(16),mG=MI(17),pl=MI(18),fl=MI(19),MA=MI(2),yd=MI(20),wU=MI(22),rk=MI(23),AR=MI(24),X8=MI(266),oC=MI(3),Dx=MI(30),YJ=MI(34),Pz=MI(35),HH=MI(36),$O=MI(4),vU=MI(40),Om=MI(43),k6=MI(47),fZ=MI(5),Eo=MI(6),Lc=MI(7),EM=MI(75),Qt=MI(8),X3=MI(80),dU=MI(9),c0="https://www."+MI(12)+".com",tx={},zo={},lk={},Iv={},jQ={},oB={},XP={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:R}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:S},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+MI(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:S},{key:"client.name",value:"WEB"},{key:"client.fexp",value:R}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:LR+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+MI(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:vU,ypcGetOfflineUpsellEndpoint:{params:X3}},trackingParams:Pz+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&cnr="+Wz+"&ratebypass=yes&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&c=WEB&txp="+zI+"&n="+r+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Lj,width:640,height:360,lastModified:Y2,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:zI,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+dP+"&mn="+
pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&cnr="+Wz+"&ratebypass=yes&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&c=WEB&txp="+zI+"&n="+r+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+ot+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Lj,width:1280,
height:720,lastModified:Y2,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:zI,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+dP+"&mn="+pP+"&ms="+
pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+W0+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:H0,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:W0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:H0,approxDurationMs:zI},{itag:248,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+dP+"&mn="+pP+"&ms="+pP+"&mv="+
Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fwebm&ns="+AR+"&gir="+oC+"&clen="+W0+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:H0,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:W0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:H0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:399,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+W0+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:H0,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:W0,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:H0,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:136,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+W0+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:H0,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:W0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Lj,approxDurationMs:zI},{itag:247,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+dP+"&mn="+
pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fwebm&ns="+AR+"&gir="+oC+"&clen="+W0+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:H0,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:W0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Lj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:398,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+W0+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:H0,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:W0,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Lj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:135,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Lj,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Lj,approxDurationMs:zI},{itag:244,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+dP+"&mn="+
pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fwebm&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+ot+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:Lj,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Lj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:397,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Lj,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Lj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:134,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Lj,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Lj,highReplication:!0,approxDurationMs:zI},{itag:243,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fwebm&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:Lj,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Lj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:396,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Lj,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Lj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:133,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Lj,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Lj,approxDurationMs:zI},{itag:242,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+dP+"&mn="+
pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fwebm&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:Lj,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Lj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:395,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Lj,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Lj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:160,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Lj,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Kj,approxDurationMs:zI},{itag:278,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+dP+"&mn="+
pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fwebm&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/webm; codecs="vp9"',bitrate:Lj,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Kj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:394,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&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="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=video%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Kj,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Kj,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:zI},{itag:140,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=audio%2Fmp4&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Lj,
initRange:{start:"0",end:"631"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Lj,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:zI,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+
Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=audio%2Fwebm&ns="+AR+"&gir="+oC+"&clen="+zI+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:Kj,initRange:{start:"0",end:"265"},indexRange:{start:Mp,
end:tC},lastModified:Y2,contentLength:zI,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Kj,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:zI,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=audio%2Fwebm&ns="+
AR+"&gir="+oC+"&clen="+zI+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:Kj,initRange:{start:"0",end:"265"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:zI,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Kj,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:zI,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Xm+".googlevideo.com/videoplayback?expire="+hC+"&ei="+L+"&ip="+gY+"&id=o-AF"+Om+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+dP+"&mn="+pP+"&ms="+pP+"&mv="+Jx+"&mvi="+iC+"&pl="+Wz+"&initcwndbps="+zI+"&siu="+iC+"&spc="+z+"&vprv="+iC+"&svpuc="+iC+"&mime=audio%2Fwebm&ns="+AR+"&gir="+oC+"&clen="+Bz+"&dur="+Bz+"&lmt="+Y2+"&mt="+hC+"&fvip=3&keepalive="+oC+"&c=WEB&txp="+
zI+"&n="+nO+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+w,mimeType:'audio/webm; codecs="opus"',bitrate:Lj,initRange:{start:"0",end:"265"},indexRange:{start:Mp,end:tC},lastModified:Y2,contentLength:Bz,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Lj,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:zI,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="+W0+"&docid="+P+"&ei="+L+"&feature="+J+"&fexp="+C2+"&ns="+MA+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Jx+"&el="+Qd+"&len="+tC+"&of="+wU+
"&uga="+Wz+"&vm="+X8},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+W0+"&docid="+P+"&ei="+L+"&feature="+J+"&fexp="+C2+"&ns="+MA+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Jx+"&el="+Qd+"&len="+tC+"&of="+wU+"&uga="+Wz+"&vm="+X8},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+W0+"&docid="+P+"&ei="+L+"&feature="+J+"&fexp="+C2+"&ns="+MA+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Jx+"&el="+Qd+"&len="+tC+"&of="+wU+"&uga="+Wz+"&vm="+X8},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+L+"&m="+th+"&oid="+wU+"&plid="+r+"&pltype="+Lc+"&ptchn="+wU+"&ptk="+K+"&video_id="+P},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+W0+"&docid="+P+"&ei="+L+"&event="+jo+"&feature="+J+"&fexp="+C2+"&ns="+MA+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Jx},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
nO+"&ver=2&cmt=1."+Mp+"&fmt="+Mp+"&fs=0&rt="+aC+"&euri&lact="+Mp+"&cl="+W0+"&mos="+iC+"&volume=100&cbrand="+fZ+"&cbr="+Eo+"&cbrver="+gY+"&c=WEB&cver="+S+"&cplayer=UNIPLAYER&cos="+dU+"&cosver="+zI+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+Wz+"&len="+Bz+"&fexp="+pP+"&feature=g-high-rec&afmt="+Mp+"&muted=0&conn=1&docid="+P+"&ei="+L+"&plid="+r+"&vm="+MI(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
P+"&caps="+oC+"&opi="+W0+"&xoaf="+iC+"&hl="+MA+"&ip="+gY+"&ipbits="+iC+"&expire="+hC+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+gY+"&key="+oC+"&lang="+kb,name:{simpleText:$O},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+P+"&caps="+oC+"&opi="+W0+"&xoaf="+iC+"&hl="+MA+"&ip="+gY+"&ipbits="+iC+"&expire="+hC+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+gY+"&key="+oC+"&kind="+oC+"&lang="+MA,name:{simpleText:pl},
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:N2,title:YO,lengthSeconds:"1155",keywords:[pl,mG,Lc,YO],channelId:AR,isOwnerViewing:!1,shortDescription:fZ,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+HH+"G&rs="+YJ,width:168,height:94},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+HH+
"G&rs="+YJ,width:196,height:110},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+HH+"G&rs="+M,width:246,height:138},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+HH+"G&rs="+M,width:336,height:188},{url:"https://i.ytimg.com/vi/"+P+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:zI,author:ik,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:zI,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
wU+"/featured_channel.jpg?v="+Qt,width:40,height:40}]},trackingParams:Pz+"=",navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"/channel/"+AR,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:AR}},channelName:ik,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:yd}]},subscribed:!1,enabled:!0,type:"FREE",channelId:AR,showPreferences:!1,subscribedButtonText:{runs:[{text:mG}]},unsubscribedButtonText:{runs:[{text:N2}]},
trackingParams:Pz+"=",unsubscribeButtonText:{runs:[{text:fZ}]},serviceEndpoints:[{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[AR],params:Qt}},{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:vU,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Pz+"=",dialogMessages:[{runs:[{text:Qt},
{text:dU},{text:Lc}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:fZ}]},serviceEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[AR],params:Qt}},accessibility:{label:Eo},trackingParams:Pz+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Eo}]},accessibility:{label:$O},
trackingParams:Pz+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:fl}},unsubscribeAccessibility:{accessibilityData:{label:fZ}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Bz},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[AR],
params:Qt}},unsubscribeCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[AR],params:Qt}},addToWatchLaterCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:N2,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:N2}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+P+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+HH+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+P+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+N2,width:1280,
height:720},title:{simpleText:jo},description:{simpleText:$O},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Lc,externalChannelId:AR,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:zI,category:"Travel & Events",publishDate:l4,ownerChannelName:ik,uploadDate:l4}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:yd},trackingParams:Pz+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:vU,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:Pz+"="}}],headerText:{simpleText:$O},icon:{infoCardIconRenderer:{trackingParams:Pz+"="}},closeButton:{infoCardIconRenderer:{trackingParams:Pz+"="}},trackingParams:Pz+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:Pz+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+N2+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:EY,interpreterSafeUrl:(tx.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+Dx+".js",tx),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:dU},{text:fl,bold:!0}]},endpoint:{clickTrackingParams:vU,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:Pz+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:Qt}]},actionButton:{buttonRenderer:{text:{runs:[{text:nO}]},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+P,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
P,target:"TARGET_NEW_WINDOW"}},trackingParams:Pz+"="}},trackingParams:Pz+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+TI+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+TI+"=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:zI,endMs:zI,title:{accessibility:{accessibilityData:{label:pl}},simpleText:Lc},metadata:{simpleText:Lc},callToAction:{simpleText:fZ},dismiss:{simpleText:Qt},endpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"/channel/"+AR,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:AR}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Qt}]},subscribed:!1,enabled:!0,type:"FREE",channelId:AR,showPreferences:!1,
subscribedButtonText:{runs:[{text:YO}]},unsubscribedButtonText:{runs:[{text:Eo}]},trackingParams:Pz+"=",unsubscribeButtonText:{runs:[{text:mG}]},serviceEndpoints:[{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[AR],params:Qt}},{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:vU,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:Pz+
"=",dialogMessages:[{runs:[{text:yd},{text:Qt},{text:YO}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Qd}]},serviceEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[AR],params:Qt}},accessibility:{label:Qd},trackingParams:Pz+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:jo}]},
accessibility:{label:N2},trackingParams:Pz+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:fZ}},unsubscribeAccessibility:{accessibilityData:{label:yd}}}},trackingParams:Pz+"=",isSubscribe:!0,id:VP}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+HH+"G&rs="+M,width:168,height:94},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+HH+"G&rs="+YJ,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+HH+"G&rs="+M,width:246,height:138},{url:"https://i.ytimg.com/vi/"+P+"/hqdefault.jpg?sqp=-oaymwE"+HH+"G&rs="+M,width:336,height:188},{url:"https://i.ytimg.com/vi/"+P+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:zI,endMs:zI,title:{accessibility:{accessibilityData:{label:fZ}},simpleText:Qd},metadata:{simpleText:YO},endpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
N2,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:N2,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Xm+".googlevideo.com/videoplayback?source=youtube&oeis="+iC+"&c=WEB&oad="+tC+"&ovd="+tC+"&oaad="+aC+"&oavd="+aC+"&ocs="+Mp+"&oewis="+iC+"&oputc="+iC+"&ofpcc="+iC+"&siu="+iC+"&msp="+iC+"&odepv="+iC+
"&id=o-AF"+Om+"&ip="+gY+"&initcwndbps="+zI+"&mt="+hC+"&oweuc="+C2}}}}},trackingParams:Pz+"=",id:VP,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:fZ}},simpleText:Qd},style:"DEFAULT"}}]}}],startMs:zI,trackingParams:Pz+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:iC,offsetEndMilliseconds:aC},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W0+";dc_trk_cid="+W0+";dc_dbm_token="+w+";ord="+hC+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";dc_rui="+iC+";dc_exteid="+VP+";dc_av="+Mp+";dc_sk="+iC+";dc_ctype="+Wz+";dc_ref=http://www.youtube.com/video/"+N2+";dc_pubid="+iC+";dc_btype=23?gclid="+He+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+iC+"&ns="+iC+"&event="+iC+"&device="+iC+"&content_v="+P+"&el="+Qd+"&ei="+L+"&devicever="+S+"&bti="+zI+"&format="+Rt+"&break_type="+iC+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+iC+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+gY+"&slot_pos="+iC+"&slot_len="+iC+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+dP+"&ad_len="+aC+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
N2+"&aqi="+L+"&ad_rmp="+iC+"&sli="+iC}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+
";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Rt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+zI+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&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"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&ctype="+Mp+"&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"+
B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_engaged_view&ctype="+Mp+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Rt+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
W0+";dc_trk_cid="+W0+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";ord="+W0+";dc_rui="+iC+";dc_exteid="+It+";dc_av="+iC+";dc_sk="+iC+";dc_ctype="+Wz+";dc_pubid="+iC+";dc_btype=3?gclid="+He+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+rk+"&ad_cpn=[AD_CPN]&id="+Eo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Eo+"&dc_pubid="+iC+"&dc_exteid="+VP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+rk+"&ad_cpn=[AD_CPN]&id="+Eo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+iC},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Eo+"&avm="+iC+"&dc_pubid="+iC+"&dc_exteid="+
VP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&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="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
a+"&sig="+rk+"&ad_cpn=[AD_CPN]&id="+Eo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+iC},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Eo+"&dc_pubid="+iC+"&dc_exteid="+VP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Rt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Rt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:vU,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+
Mp+"&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/"+P+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Pz+"="},trackingParams:Pz+
"=",templatedCountdown:{templatedAdText:{text:fl,isTemplated:!0,trackingParams:Pz+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:mG,isTemplated:!1,trackingParams:Pz+"="},trackingParams:Pz+"="}},trackingParams:Pz+"=",skipOffsetMilliseconds:5E3}},trackingParams:Pz+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:yd},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pz+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:BX,isTemplated:!1,trackingParams:Pz+"="},trackingParams:Pz+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Lc,isTemplated:!0,trackingParams:Pz+"="}},trackingParams:Pz+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(zo.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+MA+"&origin=www.youtube.com&ata_theme="+$O,zo),trackingParams:Pz+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:Pz+"="}},hoverText:{runs:[{text:YO}]},trackingParams:Pz+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+k6+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Pz+"="},headline:{text:fl,isTemplated:!1,trackingParams:Pz+"="},description:{text:Qt,
trackingParams:Pz+"="},actionButton:{buttonRenderer:{text:{simpleText:YO},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W0+";dc_trk_cid="+W0+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";ord="+W0+";dc_rui="+iC+";dc_exteid="+VP+";dc_av="+iC+";dc_sk="+iC+";dc_ctype="+Wz+";dc_pubid="+iC+";dc_btype=3?gclid="+He+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pz+"="}},startMs:iC,trackingParams:Pz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:ik},elementId:Qd}},elementId:Eo,trackingParams:Pz+"=",legacyInfoCardVastExtension:jo,sodarExtensionData:{siub:ik,bgub:yd,scs:yd,bgp:BX},externalVideoId:N2,adLayoutLoggingData:{serializedAdServingDataEntry:Qd},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+k6+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Pz+"="},
headline:{text:fZ,isTemplated:!1,trackingParams:Pz+"="},description:{text:BX,isTemplated:!1,trackingParams:Pz+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Lc},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W0+";dc_trk_cid="+W0+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";ord="+W0+";dc_rui="+iC+";dc_exteid="+
VP+";dc_av="+iC+";dc_sk="+iC+";dc_ctype="+Wz+";dc_pubid="+iC+";dc_btype=3?gclid="+He+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+
iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pz+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Pz+"="}},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W0+";dc_trk_cid="+
W0+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";ord="+W0+";dc_rui="+iC+";dc_exteid="+VP+";dc_av="+iC+";dc_sk="+iC+";dc_ctype="+Wz+";dc_pubid="+iC+";dc_btype=3?gclid="+He+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pz+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Pz+"="},abandonCommands:{commands:[{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&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="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+
iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:vU,commandExecutorCommand:{commands:[{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:BX,isTemplated:!1,trackingParams:Pz+
"="},trackingParams:Pz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:N2},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+zI+";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="+W0+";dc_trk_cid="+W0+";ord="+hC+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";dc_rui="+iC+";dc_exteid="+VP+";dc_av="+Mp+";dc_sk="+iC+";dc_ctype="+Wz+";dc_ref=http://www.youtube.com/video/"+N2+";dc_pubid="+iC+";dc_btype=23?gclid="+He+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+iC+"&ns="+iC+"&event="+iC+"&device="+iC+"&content_v="+P+"&el="+Qd+"&ei="+L+"&devicever="+S+"&bti="+zI+"&format="+Rt+"&break_type="+iC+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+iC+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+gY+"&slot_pos="+iC+"&slot_len="+iC+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
dP+"&ad_len="+aC+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+N2+"&aqi="+L+"&ad_rmp="+iC+"&sli="+iC}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Rt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+
q+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+zI+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&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"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&ctype="+Mp+"&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"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_engaged_view&ctype="+Mp+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Rt+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+rk+"&ad_cpn=[AD_CPN]&id="+
Eo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Eo+"&dc_pubid="+iC+"&dc_exteid="+VP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+
"&sig="+rk+"&ad_cpn=[AD_CPN]&id="+Eo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+iC},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Eo+"&avm="+iC+"&dc_pubid="+iC+"&dc_exteid="+VP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&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="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+a+"&sig="+rk+"&ad_cpn=[AD_CPN]&id="+Eo+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+iC},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+Eo+"&dc_pubid="+iC+"&dc_exteid="+VP+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Rt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Rt+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+
Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&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/"+P+"/mqdefault.jpg",width:320,height:180}]},trackingParams:Pz+"="},trackingParams:Pz+"=",templatedCountdown:{templatedAdText:{text:fZ,isTemplated:!0,trackingParams:Pz+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:jo,isTemplated:!1,trackingParams:Pz+"="},trackingParams:Pz+"="}},
trackingParams:Pz+"=",skipOffsetMilliseconds:5E3}},trackingParams:Pz+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ik},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pz+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:fl,isTemplated:!1,trackingParams:Pz+"="},trackingParams:Pz+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:$O,
isTemplated:!0,trackingParams:Pz+"="}},trackingParams:Pz+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(lk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+MA+"&origin=www.youtube.com&ata_theme="+$O,lk),trackingParams:Pz+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:Pz+"="}},hoverText:{runs:[{text:nO}]},trackingParams:Pz+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+a1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Pz+"="},headline:{text:ik,isTemplated:!1,trackingParams:Pz+"="},description:{text:N2,trackingParams:Pz+"="},actionButton:{buttonRenderer:{text:{simpleText:N2},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pz+"="}},startMs:iC,trackingParams:Pz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:YO},elementId:Qt}},elementId:BX,trackingParams:Pz+"=",legacyInfoCardVastExtension:fZ,sodarExtensionData:{siub:fZ,bgub:mG,scs:Eo,bgp:nO},externalVideoId:N2,adLayoutLoggingData:{serializedAdServingDataEntry:jo},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+a1+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:Pz+"="},headline:{text:Eo,
isTemplated:!1,trackingParams:Pz+"="},description:{text:$O,isTemplated:!1,trackingParams:Pz+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:N2},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pz+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:Pz+"="}},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+
iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pz+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:Pz+"="},abandonCommands:{commands:[{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&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="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+Wz+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:vU,commandExecutorCommand:{commands:[{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:pl,isTemplated:!1,trackingParams:Pz+"="},trackingParams:Pz+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:pl},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+iC+";dc_exteid="+VP+";met="+iC+";ecn"+iC+"="+iC+";etm1="+iC+";eid1="+
zI+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:fl}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Lc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:aC,offsetEndMilliseconds:Rt},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+L+"&m_pos="+Wz+"&token=ALHj"+d+"&index="+iC+"&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="+S+"&m_pos_ms="+aC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:mG}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:Rt,offsetEndMilliseconds:Rt},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+L+"&m_pos="+Mp+"&token=ALHj"+d+"&index="+iC+"&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="+
S+"&m_pos_ms="+Rt}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Rt,offsetEndMilliseconds:Rt},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+L+"&m_pos="+Mp+"&token=ALHj"+d+"&index="+iC+"&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="+
S+"&m_pos_ms="+Rt}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Rt,offsetEndMilliseconds:Rt},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+L+"&m_pos="+Mp+"&token=ALHj"+d+"&index="+iC+"&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="+
S+"&m_pos_ms="+Rt}},adSlotLoggingData:{serializedSlotAdServingDataEntry:dU}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Rt,offsetEndMilliseconds:Wz},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+L+"&m_pos="+Mp+"&token=ALHj"+d+"&index="+iC+"&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="+
S+"&m_pos_ms="+Rt}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nO}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Wz,offsetEndMilliseconds:Wz},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+L+"&m_pos="+Wz+"&token=ALHj"+d+"&index="+iC+"&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="+
S+"&m_pos_ms="+Wz}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Eo}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:fZ,isTemplated:!1,trackingParams:Pz+"="},description:{text:$O,isTemplated:!1,trackingParams:Pz+"="},actionButton:{buttonRenderer:{text:{simpleText:$O},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
W0+";dc_trk_cid="+W0+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";ord="+W0+";dc_rui="+iC+";dc_exteid="+VP+";dc_av="+iC+";dc_sk="+iC+";dc_ctype="+Wz+";dc_pubid="+iC+";dc_btype=3?gclid="+He+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pz+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+k6+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:Pz+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ah+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Pz+"="},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W0+";dc_trk_cid="+W0+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";ord="+W0+
";dc_rui="+iC+";dc_exteid="+VP+";dc_av="+iC+";dc_sk="+iC+";dc_ctype="+Wz+";dc_pubid="+iC+";dc_btype=3?gclid="+He+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pz+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Iv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+MA+"&origin=www.youtube.com&ata_theme="+$O,Iv),trackingParams:Pz+"="}},popupType:"DIALOG"}},trackingParams:Pz+"="}},hoverText:{runs:[{text:ik}]},trackingParams:Pz+"="}},adVideoId:N2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Eo},associatedCompositePlayerBytesLayoutId:nO}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:Eo}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:N2,isTemplated:!1,trackingParams:Pz+"="},description:{text:Lc,isTemplated:!1,trackingParams:Pz+"="},actionButton:{buttonRenderer:{text:{simpleText:fZ},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+
F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pz+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+a1+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Pz+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+EM+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Pz+"="},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+
iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pz+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jQ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+MA+"&origin=www.youtube.com&ata_theme="+$O,jQ),trackingParams:Pz+"="}},popupType:"DIALOG"}},trackingParams:Pz+"="}},
hoverText:{runs:[{text:Eo}]},trackingParams:Pz+"="}},adVideoId:N2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+N2+"&cid="+q+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Qd},associatedCompositePlayerBytesLayoutId:nO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pl}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Qt,
isTemplated:!1,trackingParams:Pz+"="},description:{text:$O,isTemplated:!1,trackingParams:Pz+"="},actionButton:{buttonRenderer:{text:{simpleText:BX},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W0+";dc_trk_cid="+W0+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";ord="+W0+";dc_rui="+iC+";dc_exteid="+VP+";dc_av="+iC+";dc_sk="+iC+";dc_ctype="+
Wz+";dc_pubid="+iC+";dc_btype=3?gclid="+He+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+
M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:Pz+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+k6+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:Pz+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ah+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:Pz+
"="},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+W0+";dc_trk_cid="+W0+";dc_dbm_token="+w+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+iC+";ord="+W0+";dc_rui="+iC+";dc_exteid="+VP+";dc_av="+iC+";dc_sk="+iC+";dc_ctype="+Wz+";dc_pubid="+iC+";dc_btype=3?gclid="+He+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+B+"____________"+F+"AxAA&ase=2&num="+iC+"&cid="+q+"&ad_cpn=%5BAD_CPN%5D&sig="+M+"&adurl="+c0+"&label=video_click_to_advertiser_site&ctype="+Mp+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:Pz+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(oB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+MA+"&origin=www.youtube.com&ata_theme="+$O,oB),trackingParams:Pz+"="}},popupType:"DIALOG"}},trackingParams:Pz+
"="}},hoverText:{runs:[{text:fl}]},trackingParams:Pz+"="}},adVideoId:N2,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+B+"____________"+F+"AxAA&sigh="+P+"&cid="+q+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:ik},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:nO}},adSlotLoggingData:{serializedSlotAdServingDataEntry:BX}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:Dx,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:Dx,command:{innertubeCommand:{clickTrackingParams:vU,ypcGetOfflineUpsellEndpoint:{params:X3}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:Pz+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:hC,nanos:TG}}}},l9A=JSON.stringify(XP),ge=performance.now()-k;return{objectRepresentation:XP,jsonRepresentation:l9A,generationTime:ge}};
n8b=function(k,E){if(k===E)return!0;if(!k||!E||typeof k!==typeof E)return!1;if(k instanceof Array&&E instanceof Array){if(k.length!==E.length)return!1;for(var S=0;S<k.length;S++)if(!n8b(k[S],E[S]))return!1;return!0}if(typeof k==="object"&&typeof E==="object"&&k&&E){for(S in k)if(!(S in E&&n8b(k[S],E[S])))return!1;for(var R in E)if(!(R in k))return!1;return!0}return!1};
_.QV=function(){if(!zJ){zJ=new yo(new iyA);var k=_.wO("client_streamz_web_flush_count",-1);k!==-1&&(zJ.invocationLimit=k)}return zJ};
Op=function(k,E,S,R){if(k===E)return!0;if(Array.isArray(k)&&Array.isArray(E)){if(k.length!==E.length)return!1;for(var V=0;V<k.length;V++)if(!Op(k[V],E[V],S,R))return!1;return!0}if(k instanceof Set||E instanceof Set){if(k instanceof Set&&E instanceof Set){if(k.size!==E.size)return!1;R=_.n(k.values());for(V=R.next();!V.done;V=R.next())if(!E.has(V.value))return!1;return!0}return!1}if(k instanceof Function){if(R)return!0;k.name===""&&_.bM(Error("Pf"),"ERROR");return!1}if(k instanceof Date&&E instanceof
Date)return k.getTime()===E.getTime();if(k instanceof Object&&E instanceof Object){if(hbt(k)&&hbt(E))try{return k.equals(E)}catch(h){_.bM(Error("Qf`"+h),"ERROR")}V=Object.getOwnPropertyNames(k).filter(function(h){return S?k[h]!==void 0:!0});
var N=Object.getOwnPropertyNames(E).filter(function(h){return S?E[h]!==void 0:!0});
if(V.length!==N.length)return!1;V=_.n(V);for(N=V.next();!N.done;N=V.next())if(N=N.value,!Op(k[N],E[N],S,R))return!1;return!0}return!1};
hbt=function(k){k=Object.getPrototypeOf(k).equals;return k instanceof Function&&k.length===1};
_.mYj=function(){return _.c(function(k){if(k.nextAddress==1)return JZ1!==2?k.jumpTo(2):k.yield(cZI(),3);k.nextAddress!=2&&(JZ1=k.yieldResult);return k.return(JZ1)})};
_.tEC=function(){return _.c(function(k){if(k.nextAddress==1)return _.Y("ab_pl_man")?eb1!==2?k.jumpTo(2):k.yield(aoh(),3):k.return(1);k.nextAddress!=2&&(eb1=k.yieldResult);return k.return(eb1)})};
PRI=function(){return _.c(function(k){if(k.nextAddress==1)return _.Y("ab_fk_sk_cl")?TwA!==2?k.jumpTo(2):k.yield(wli(),3):k.return(1);k.nextAddress!=2&&(TwA=k.yieldResult);return k.return(TwA)})};
_.WBt=function(){return _.c(function(k){if(k.nextAddress==1)return _.Y("ab_det_apb_b")?Bw1!==2?k.jumpTo(2):k.yield(YVI(),3):k.return(1);k.nextAddress!=2&&(Bw1=k.yieldResult);return k.return(Bw1)})};
o8C=function(){var k;return _.c(function(E){if(E.nextAddress==1)return E.yield(Promise.all([_.mYj(),_.WBt(),_.tEC(),PRI()]),2);if(E.nextAddress!=3)return FBh()?E.return(!0):E.yield(_.yZm(),3);k=E.yieldResult;return E.return(k===0)})};
FBh=function(){var k=!1,E=function(S,R){Xlj.increment(R,S);S===0&&(k=!0)};
E(_.g8h(),"j.s_");E(JZ1,"f.i_");E(Bw1,"a.b_");E(eb1,"p.m_");E(TwA,"i.f_");UYm===2&&(UYm=_.Hyh(KBi));E(UYm,"e.h_");_.Y("ks_det_gpbl")||E(_.plA(),"p.i_");_.Y("ks_get_o_pp")||E(_.AZe(),"g.o_");_.Y("ab_deg_unex_thr")||E(_.rZm(),"a.o_");E(u7l,"s.t_");_.Y("ab_det_sc_inj_enf")&&E(_.xYI(),"s.i_");E(LBh,"d.p_");E(_.jxI(_.GJ),"o.p_");E(_.DY1()===0?0:_.$Yt(),"o.a_");return _.Y("debug_sk_em_precheck")?!0:k};
v8e=function(){var k=[].concat(_.$e(foh));try{var E=IoI();k.push({jsonRepresentation:E.jsonRepresentation,objectRepresentation:E.objectRepresentation})}catch(S){k=[].concat(_.$e(foh))}return k};
bye=function(){var k=["adPlacements","adSlots"];try{return k.filter(function(){return!0}).length!==k.length?0:1}catch(E){return 0}};
_.AZe=function(){if(bye()===0)return 0;var k=IoI(),E=k.objectRepresentation,S=(0,_.fO.unsafeClone)(E),R=[];if(E&&typeof E==="object")for(var V in E)R.push(V);else return 4;k=k.objectRepresentation.adPlacements;if(!(k&&k.length>0))return 4;try{if(!n8b(R,Object.getOwnPropertyNames(E)))return 0}catch(N){return 0}return n8b(S,E)?1:0};
_.jxI=function(k){if(!k||!k.length||typeof k==="string")return 0;for(var E=Object.getOwnPropertyNames(Object.prototype),S=0;S<k.length;S++)for(var R=_.sp(k[S]),V=_.n(E),N=V.next();!N.done;N=V.next())if(R===N.value)return 0;return 1};
ZyI=function(k){var E=_.sp(k[1]);if(k[0]===null)return E;k=k[0];for(var S={},R=0;R<k.length;R++){var V=_.sp(k[R]);if(R===0)S[V]=E;else{var N={};N[V]=S;S=N}}return S};
_.DY1=function(){for(var k=_.Cr,E=0;E<k.length;E++){var S=ZyI(k[E]),R=[];R.push(S);if(R.length===0)return 0}return 1};
_.$Yt=function(){for(var k=_.Cr,E={},S=0;S<k.length;E={xmU:void 0},S++){var R=[ZyI(k[S])];E.xmU=[];R.forEach(function(V){return function(N){V.xmU[V.xmU.length]=N}}(E));
if(E.xmU.length===0)return 0}return 1};
_.g8h=function(){for(var k=_.n(v8e()),E=k.next();!E.done;E=k.next()){var S=E.value;E=S.jsonRepresentation;S=S.objectRepresentation;try{var R=JSON.parse(E);if(!Op(R,S,!1,!1))return 0}catch(V){return 0}}return 1};
_.xYI=function(){try{var k=_.B_("ab_det_sc_inj_val");k.length===1&&k[0]===""&&(k=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var E=document.querySelectorAll("script"),S=_.n(E),R=S.next();!R.done;R=S.next())for(var V=R.value,N=_.n(k),h=N.next();!h.done;h=N.next()){var J=h.value;E=void 0;if((E=V.textContent)==null?0:E.includes(J))return 0}}catch(m){return 4}return 1};
_.yZm=function(){var k,E,S,R,V,N,h;return _.c(function(J){switch(J.nextAddress){case 1:_.F5(J,2),k=_.n(foh),E=k.next();case 4:if(E.done)return J.return(1);R=S=E.value;V=R.jsonRepresentation;N=R.objectRepresentation;return J.yield((new Response(V,{status:200})).json(),7);case 7:h=J.yieldResult;if(!Op(h,N,!1,!1))return J.return(0);E=k.next();J.jumpTo(4);break;case 2:return _.UY(J),J.return(4)}})};
_.rZm=function(){try{btoa("abc")}catch(k){return 0}return 1};
cZI=function(){var k,E,S,R,V,N,h,J,m,a,T;return _.c(function(w){switch(w.nextAddress){case 1:_.F5(w,2),k=_.n(v8e()),E=k.next();case 4:if(E.done)return w.return(1);R=S=E.value;V=R.jsonRepresentation;N=R.objectRepresentation;h=btoa(V);J="data:application/json;base64,"+h;m=new Request(J);Object.defineProperty(m,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(m,"method",{get:function(){return"POST"}});
Object.defineProperty(m,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(m,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(m,"body",{get:function(){return new ReadableStream}});
return w.yield(fetch(m),7);case 7:return a=w.yieldResult,w.yield(a.json(),8);case 8:T=w.yieldResult;if(!Op(T,N,!1,!1))return w.return(0);E=k.next();w.jumpTo(4);break;case 2:return _.UY(w),w.return(4)}})};
_.Hyh=function(k){if(!k||!k.length||typeof k==="string")return 0;for(var E=function(V){return _.sp(V)},S=2,R=0;R<k.length&&(S=_.dYi(_.VEb(k[R],E)),S!==0);R++);
return S};
_.dYi=function(k){var E=_.n(k);k=E.next().value;E=E.next().value;try{var S=document.createElement("div");document.body.appendChild(S);var R=getComputedStyle(S).display;document.body.removeChild(S);if(R==="none")return 4;var V=getComputedStyle(E).display==="none"?0:1;document.body.removeChild(k);return V}catch(N){return 4}};
wli=function(){var k,E,S;return _.c(function(R){k=new _.kl;E=document.createElement("button");E.classList.add("ytp-ad-skip-button");E.style.opacity="0";E.style.height="0px";E.style.width="0px";E.style.padding="0px";E.style.border="none";S=function(){E.parentElement&&E.parentElement.removeChild(E)};
E.onclick=function(){k.resolve(0);S()};
document.body.appendChild(E);setTimeout(function(){S();k.resolve(1)},50);
return R.return(k.promise)})};
aoh=function(){var k,E,S,R,V,N,h;return _.c(function(J){k=new _.kl;E=document.createElement("ytd-player");try{document.body.prepend(E)}catch(m){return J.return(4)}S=function(){E.parentElement&&E.parentElement.removeChild(E)};
E.getElementsByTagName("div").length>0?R=E.getElementsByTagName("div")[0]:(R=document.createElement("div"),E.appendChild(R));V=document.createElement("div");R.appendChild(V);N=document.createElement("video");h=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"});N.src=_.DF(_.dk(h));N.ontimeupdate=function(){S();k.resolve(0)};
V.appendChild(N);N.classList.add("html5-main-video");setTimeout(function(){V.classList.add("ad-interrupting")},200);
setTimeout(function(){S();k.resolve(1)},5E3);
return J.return(k.promise)})};
sx1=function(k){var E=IoI().objectRepresentation.playbackTracking;if(E){var S=[],R;S.push(E==null?void 0:(R=E.videostatsPlaybackUrl)==null?void 0:R.baseUrl);var V;S.push(E==null?void 0:(V=E.videostatsDelayplayUrl)==null?void 0:V.baseUrl);var N;S.push(E==null?void 0:(N=E.videostatsWatchtimeUrl)==null?void 0:N.baseUrl);var h;S.push(E==null?void 0:(h=E.ptrackingUrl)==null?void 0:h.baseUrl);var J;S.push(E==null?void 0:(J=E.qoeUrl)==null?void 0:J.baseUrl);var m;S.push(E==null?void 0:(m=E.atrUrl)==null?
void 0:m.baseUrl);E=_.n(S);for(S=E.next();!S.done;S=E.next())if((S=S.value)&&k.test(S))return S.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
lot=function(k,E){var S,R;return _.c(function(V){switch(V.nextAddress){case 1:S=[],R=0;case 2:if(!(R<3)){V.jumpTo(4);break}return V.yield(fetch(k,{cache:"no-store",method:E}).then(function(N){S.push(N.status)}).catch(function(){S.push(-1)}),3);
case 3:R++;V.jumpTo(2);break;case 4:return V.return(S)}})};
MEj=function(k){return k.domainLookupStart===0&&k.domainLookupEnd===0&&k.connectStart===0&&k.connectEnd===0};
qVe=function(k,E,S){S=S===void 0?"GET":S;var R,V,N,h,J,m,a,T,w,P;return _.c(function(B){if(B.nextAddress==1)return B.yield(Promise.all([lot(k,S),lot(E,S)]),2);R=B.yieldResult;V=_.n(R);N=V.next().value;h=V.next().value;J=N;m=h;if(Math.min.apply(Math,_.$e(m))!==Math.max.apply(Math,_.$e(m))||Math.min.apply(Math,_.$e(J))!==Math.max.apply(Math,_.$e(J)))return B.return(2);if(Math.min.apply(Math,_.$e(m))===Math.min.apply(Math,_.$e(J)))return B.return(1);T=(a=performance.getEntriesByName(k))==null?void 0:
a[0];P=(w=performance.getEntriesByName(E))==null?void 0:w[0];return T&&P?MEj(P)?B.return(1):MEj(T)?B.return(0):B.return(1):B.return(2)})};
YVI=function(){var k;return _.c(function(E){var S=[];var R;var V,N,h;(V=R=(V=IoI().objectRepresentation.streamingData)==null?void 0:(N=V.formats)==null?void 0:(h=N[0])==null?void 0:h.url)&&V&&!R.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(V=V.replace("initcwndbps","ctier=L&initcwndbps"),V=V.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),R={testUrl:V,baseUrl:R,method:"GET"}):R=void 0;R&&S.push(R);_.Y("ab_net_tp_e")&&S.push({testUrl:_.Vt.location.origin+"/ad_companion",baseUrl:_.Vt.location.origin+
"/generate_204",method:"OPTIONS"});_.Y("ab_fix_creator_view_cnt")&&(S.length=0,(R=sx1(/api\/stats\/atr/))&&S.push({testUrl:_.Vt.location.origin+R,baseUrl:_.Vt.location.origin+"/generate_204",method:"OPTIONS"}));_.Y("ad_net_pb_pbp")&&(R=sx1(/api\/stats\/qoe/))&&S.push({testUrl:_.Vt.location.origin+R,baseUrl:_.Vt.location.origin+"/feed/download",method:"GET"});S=S.length!==0?S[Math.floor(Math.random()*S.length)]:void 0;return(k=S)?E.return(qVe(k.testUrl,k.baseUrl,k.method)):E.return(4)})};
_.plA=function(){if(_.Vt.haA===void 0||_.Vt.haA===null||typeof _.Vt.haA!=="function")return 2;try{return _.Vt.haA()===!0?0:1}catch(k){return 0}};
zb1=function(k){switch(k){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.s5(k,"unknown result type")}};
_.Qxi=function(k,E){var S=Number(_.Mg("CATSTAT",0));if(E.cGc===void 0)return S;E=E.cGc;k=zb1(k);return S&~(3<<E)|k<<E};
Oye=function(k){var E,S;if((k=(E=k.auxiliaryUi)==null?void 0:(S=E.messageRenderers)==null?void 0:S.bkaEnforcementMessageViewModel)&&k.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return k};
CRh=function(){for(var k=_.n(Object.values(_.GDI)),E=k.next();!E.done;E=k.next())E=E.value,E.isAsync&&E.cGc&&_.l$("CATSTAT",_.Qxi(2,E))};
_.RR=function(k,E){k=_.Ex("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",k);(E===void 0?0:E)?_.kQj(k,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Sk().logFlowEvent(k,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
Shh=function(){if(!E_h){if(Polymer.Base){var k=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{k.apply(this,arguments)}catch(w){_.O4(w)}};
var E=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{E.apply(this,arguments)}catch(w){_.O4(w)}};
var S=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{S.apply(this,arguments)}catch(w){_.O4(w)}};
var R=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{R.apply(this,arguments)}catch(w){_.O4(w)}};
var V=Polymer.Base._listen,N=new WeakMap;Polymer.Base._listen=function(w,P,B){var F=function(){try{B.apply(this,arguments)}catch(K){_.O4(K)}};
N.set(B,F);V.call(this,w,P,F)};
var h=Polymer.Base._unlisten;Polymer.Base._unlisten=function(w,P,B){h.call(this,w,P,N.get(B))}}if(Polymer.Async){var J=Polymer.Async,m=J._atEndOfMicrotask;
J._atEndOfMicrotask=function(){try{m.apply(J,arguments)}catch(w){_.O4(w)}}}if(Polymer.RenderStatus){var a=Polymer.RenderStatus,T=a.afterNextRender;
a.afterNextRender=function(w,P,B){T.call(a,w,function(){try{P.apply(this,arguments)}catch(F){_.O4(F)}},B)}}E_h=!0}};
_.VYC=function(k){var E=k?_.Xu(k):"";if(E){if(E.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(E.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(E.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(E.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(E.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.Y("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(E.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";E=E.toLowerCase();if(E==="/")return"home";if(E==="/channel_memberships")return"channel-memberships-shopfront";if(E.indexOf("/feed/trending")===0)return"trending";if(E.indexOf("/feed/explore")===0)return"explore";if(E.indexOf("/live")===0)return"live";if(E.indexOf("/results")===0)return"search";if(E.indexOf("/sports")===0)return"sports";if(E.indexOf("/fashion")===0||E.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(E))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(E))return _.Y("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(E.indexOf("/channel/")===0||E.indexOf("/user/")===0||E.indexOf("/gaming")===0||E.indexOf("/post/")===0)return"channel";if(Rke(k))return"show";if(E==="/playlist"||E.indexOf("/playlist/")===0||E==="/view_play_list"||E.indexOf("/view_play_list/")===0||E.indexOf("/show/")===0)return"playlist";if(E==="/companion_canvas")return"companion-canvas";if(E==="/feed/history"||
E.indexOf("/feed/history/")===0)return"history";if(E==="/new")return"labs";if(E==="/feed/subscriptions")return"subscriptions";if(E.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(E==="/history_controls")return"standalone";if(E.indexOf("/account")===0||E==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(E.indexOf("/paid_memberships")===0||E.indexOf("/refund")===0||E.indexOf("/purchases")===0||E.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(E.indexOf("/product")===
0)return"yts-products";if(E.indexOf("/premium")===0||E.indexOf("/musicpremium")===0)return E.indexOf("/premium/offers")===0||E.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(E==="/cart/checkout"||E==="/cart")return"ypc-checkout";if(E.indexOf("/feed/downloads")===0||E.indexOf("/redeem")===0||E.indexOf("/reporthistory")===0)return"browse";if(E.indexOf("/hashtag")===0)return"hashtag-landing-page";if(E.indexOf("/handle")===0)return"handle";if(E.indexOf("/source")===0)return"audio-pivot";if(E.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(E.indexOf("/playables")===0)return"playables";if(E.indexOf("/create/live/join")===0)return"open-in-app";if(E.indexOf("/shorts")===0)return"shorts";if(E.indexOf("/feed/channels")===0)return"subscriptions-channels";(E=k?_.Xu(k):"")&&E.indexOf("/watch")===0&&_.Y("web_watch_enable_learning_journey")?(k=_.Vf(k),k=!!k.list&&k.list.indexOf("LJPP")===0):k=!1;if(k)return"learning_journey_watch"}};
_.VS=function(k){var E,S;(k=(S=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null?void 0:S.url)&&(E=_.VYC(k));return E};
Rke=function(k){var E=k?_.Xu(k):"";if(!E)return!1;E=E.toLowerCase();return E.indexOf("/show/")===0||E.indexOf("/playlist")===0&&(k=_.Vf(k),k.list&&k.list.indexOf("EL")===0)?!0:!1};
nc=function(k){var E="unknown",S;var R=((S=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null?void 0:S.webPageType)||"";R?(S=R.toLowerCase(),S.startsWith("web_page_type_")&&(S=S.slice(14))):S=R;S&&Nu1[S.toUpperCase()]?E=Nu1[S.toUpperCase()]:_.W(k,_.Ny)||_.W(k,I8t)?E="browse":_.W(k,_.IR)?E="search":_.W(k,_.jm)&&(E="watch");E==="watch"&&_.VS(k||null)==="learning_journey_watch"&&(E="learning_journey_watch");E==="unknown"&&_.dg(Error("Sf`"+JSON.stringify({clickTrackingParams:k==null?void 0:k.clickTrackingParams,
commandMetadata:k==null?void 0:k.commandMetadata,allEndpointKeys:Object.keys(k||[])})));return E};
_.iv=function(k){if(!_.n_t||k)_.n_t=_.pO();return _.n_t};
_.ise=function(k){return!!_.W(k,_.jm)||!!_.W(k,_.hg)&&_.Y("kevlar_enable_shorts_prefetch")};
_.hkb=function(k,E){k=_.W(k,_.jm)||_.W(k,_.hg);return"v"+k.videoId+(k.playlistId?"-pl"+k.playlistId:"")+(E?"-an1":"")+(k.params?"-pr"+k.params:"")};
Jg=function(k){return function(){return new k}};
cT=function(k){var E=_.en();return function(){return E.resolve(k)}};
c71=function(k){var E=_.wO("web_pbj_log_warning_rate",0);E=E>0&&Math.random()<E;if(!_.W(k,_.hg))return E&&_.dg(Error("Vf")),!1;var S;return _.Y("shorts_controller_retrieve_seedless_sequence_v2")&&((S=_.W(k,_.hg))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:J7A(k)?!0:(E&&_.dg(Error("Wf")),!1)};
J7A=function(k){var E=(_.W(k,_.jm)||_.W(k,_.hg)).videoId;if(!E||!mZI.test(E))return!1;var S;return(k=(S=_.W(k.commandMetadata,_.Sd))==null?void 0:S.url)&&(k.includes(E)||k.startsWith("/clip"))?!0:!1};
_.a8b=function(){var k=_.nz();return k.getFlag(192)?k.getFlag(190):!(_.Y("web_watch_cinematics_disabled_by_default")||_.Y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&ekl())};
_.m5=function(k,E,S){var R={};R.currentUrl=E;R.vis=k.vis!==void 0?k.vis:0;R.splay=!1;E=_.nz();R.autoCaptionsDefaultOn=E.getFlag(66);E.getFlag(141)?E.getFlag(140)?R.autonavState="STATE_OFF":R.autonavState="STATE_ON":R.autonavState="STATE_NONE";R.html5Preference="HTML5_PREF_WANTS";isNaN(_.Mg("STS"))||(R.signatureTimestamp=_.Mg("STS"));k.autonav&&(R.autoplay=!0,R.autonav=!0);k.mutedAutoplay&&(R.autoplay=!0,R.mutedAutoplay=!0);k.inlinePlayback&&(R.autoplay=!0,R.autonav=!1,R.isInlineUnmutedPlayback=!!k.inlineUnmuted);
R.referer=S;R.lactMilliseconds=k.lact!==void 0?k.lact.toString():"-1";_.Y("enable_unknown_lact_fix_on_html5")&&R.lactMilliseconds==="-1"&&_.dg(new _.LC("Unknown LACT is set in playbackContext.",{"lact in tempData":k.lact||"undefined",autonav:k.autonav||"undefined"}));k={};E.getFlag(194)&&(k.hasShownAmbientMode=!0);E.getFlag(192)&&(k.hasToggledOffAmbientMode=!0);_.a8b()&&(k.watchAmbientModeEnabled=!0);R.watchAmbientModeContext=k;return R};
tYh=function(k){var E={},S=k.pbis||0;S&&(E.playbackBeginsInSeconds=S);k.prefetch_reason&&k.prefetch_reason==="hc_pbis"&&(E.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return E};
_.aR=function(k){k=k===void 0?!1:k;var E=_.nz(),S="USER_INTERFACE_THEME_LIGHT";E.getFlag(165)?S="USER_INTERFACE_THEME_DARK":E.getFlag(174)?S="USER_INTERFACE_THEME_LIGHT":_.ek()&&(S="USER_INTERFACE_THEME_DARK");return k?S:TuR()||S};
_.wWt=function(){return!_.Y("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.ek=function(){return _.wWt()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.tg=function(){var k=_.nz();return _.wWt()&&!k.getFlag(165)&&!k.getFlag(174)};
TuR=function(){var k=k===void 0?window.location.href:k;if(_.Y("kevlar_disable_theme_param"))return null;var E=_.Xu(k);if(_.PiR(E))return"USER_INTERFACE_THEME_DARK";try{var S=_.Vf(k).theme;return But.get(S)||null}catch(R){}return null};
_.PiR=function(k){return _.Y("enable_dark_theme_only_on_shorts")?!(k==null||!k.startsWith("/shorts/")):!1};
_.F1j=function(k,E,S,R,V){E=E===void 0?!1:E;S=S===void 0?!1:S;var N=_.Mg("INNERTUBE_CONTEXT");if(!N)return _.bM(Error("Zf")),{};N=(0,_.fO.unsafeClone)(N);_.Y("web_no_tracking_params_in_shell_killswitch")||delete N.clickTracking;N.client||(N.client={});var h=N.client;h.clientName==="MWEB"&&h.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(h.clientFormFactor=_.Mg("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");h.screenWidthPoints=window.innerWidth;h.screenHeightPoints=window.innerHeight;h.screenPixelDensity=
Math.round(window.devicePixelRatio||1);h.screenDensityFloat=window.devicePixelRatio||1;h.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());h.userInterfaceTheme=_.aR();if(!E){var J=_.$a1();J&&(h.connectionType=J);_.Y("web_log_effective_connection_type")&&(J=vAt())&&(N.client.effectiveConnectionType=J)}var m;if(_.Y("web_log_memory_total_kbytes")&&((m=_.Vt.navigator)==null?0:m.deviceMemory)){var a;m=(a=_.Vt.navigator)==null?void 0:a.deviceMemory;N.client.memoryTotalKbytes=""+m*1E6}E&&R&&!_.Y("web_it_context_set_original_url_ks")&&
(h.originalUrl=YhA(_.Vt.location.href,R).toString());_.Y("web_gcf_hashes_innertube")&&(J=OrC())&&(a=J.coldConfigData,m=J.coldHashData,J=J.hotHashData,N.client.configInfo=N.client.configInfo||{},a&&(N.client.configInfo.coldConfigData=a),m&&(N.client.configInfo.coldHashData=m),J&&(N.client.configInfo.hotHashData=J));a=_.Vf(_.Vt.location.href);!_.Y("web_populate_internal_geo_killswitch")&&a.internalcountrycode&&(h.internalGeo=a.internalcountrycode);!_.Y("web_populate_client_screen_killswitch")&&V&&(h.clientScreen=
V);h.clientName==="MWEB"||h.clientName==="WEB"?(h.mainAppWebInfo||(h.mainAppWebInfo={}),h.mainAppWebInfo.graftUrl=R||_.Vt.location.href,_.Y("kevlar_woffle")&&_.Tl.instance&&(R=_.Tl.instance,h.mainAppWebInfo.pwaInstallabilityStatus=!R.appInstalledEventFired&&R.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),h.mainAppWebInfo.webDisplayMode=ZrI(),h.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):h.clientName==="TVHTML5"&&
(!_.Y("web_lr_app_quality_killswitch")&&(R=_.Mg("LIVING_ROOM_APP_QUALITY"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{appQuality:R})),R=_.Mg("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(h.tvAppInfo=Object.assign(h.tvAppInfo||{},{certificationScope:R}));!_.Y("web_populate_time_zone_itc_killswitch")&&(R=j_h())&&(h.timeZone=R);(R=RMI())?h.experimentsToken=R:delete h.experimentsToken;h=Vdl();R=_.W1h();R=(0,_.fO.getValues)(R.tokenJars);N.request=Object.assign({},N.request,{internalExperimentFlags:h,consistencyTokenJars:R});
!_.Y("web_prequest_context_killswitch")&&(h=_.Mg("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(N.request.externalPrequestContext=h);R=_.nz();h=R.getFlag(58);R=R.get("gsml","");N.user=Object.assign({},N.user);h&&(N.user.enableSafetyMode=h);R&&(N.user.lockedSafetyMode=!0);_.Y("warm_op_csn_cleanup")?S&&(E=_.Fe())&&(N.clientScreenNonce=E):!E&&(E=_.Fe())&&(N.clientScreenNonce=E);k&&(N.clickTracking={clickTrackingParams:k});if(k=_.CV("yt.mdx.remote.remoteClient_"))N.remoteClient=k;_.wV.getInstance().setLocationOnInnerTubeContext(N);
try{var T=ave(),w=T.bid;delete T.bid;N.adSignalsInfo={params:[],bid:w};for(var P=_.n(Object.entries(T)),B=P.next();!B.done;B=P.next()){var F=_.n(B.value),K=F.next().value,r=F.next().value;T=K;w=r;k=void 0;(k=N.adSignalsInfo.params)==null||k.push({key:T,value:""+w})}var x,L;if(((x=N.client)==null?void 0:x.clientName)==="TVHTML5"||((L=N.client)==null?void 0:L.clientName)==="TVHTML5_UNPLUGGED"){var q=_.Mg("INNERTUBE_CONTEXT");q.adSignalsInfo&&(N.adSignalsInfo.advertisingId=q.adSignalsInfo.advertisingId,
N.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",N.adSignalsInfo.limitAdTracking=q.adSignalsInfo.limitAdTracking)}}catch(M){_.bM(M)}return N};
_.BT=function(k,E,S){var R=S&&S>0?S:0;S=R?Date.now()+R*1E3:0;if((R=R?_.PT.getLocalStorage():_.PT.getSessionStorage())&&window.JSON){typeof E!=="string"&&(E=JSON.stringify(E,void 0));try{R.set(k,E,S)}catch(V){R.remove(k)}}};
_.Yl=function(k){var E=_.PT.getSessionStorage(),S=_.PT.getLocalStorage();if(!E&&!S||!window.JSON)return null;try{var R=E.get(k)}catch(V){}if(typeof R!=="string")try{R=S.get(k)}catch(V){}if(typeof R!=="string")return null;try{R=JSON.parse(R,void 0)}catch(V){}return R};
_.WT=function(k){try{var E=_.PT.getSessionStorage(),S=_.PT.getLocalStorage();E&&E.remove(k);S&&S.remove(k)}catch(R){}};
_.y7h=function(k){var E=new FD(_.Mg("ONE_PICK_URL",""));E.urlParamMap_.set("hostId",k);(k=_.Mg("GAPI_LOCALE"))&&E.urlParamMap_.set("hl",k);(k=_.Mg("SESSION_INDEX"))&&E.urlParamMap_.set("authuser",k);(k=_.Mg("DELEGATED_SESSION_ID"))&&E.urlParamMap_.set("groupId",k);return E};
XWt=function(){var k=_.en(),E=k.resolve(_.yS);k=k.resolve(_.oR);return new o_m(E,k)};
UZ1=function(k){if(window.IntersectionObserver)return new g_m(k,400);throw new TypeError("fg");};
K1h=function(){var k=Hammer.TouchAction,E=k.prototype.preventDefaults;k.prototype.preventDefaults=function(S){var R=this.actions.indexOf("pan-down")>-1;if(!R)return E.call(this,S);if(!Hsm){var V=S.srcEvent;S=S.direction;var N;if((N=this.manager)==null?0:N.session.prevented)V.preventDefault();else if(R&&S&Hammer.DIRECTION_DOWN)return this.preventSrc(V)}}};
pWi=function(k){if(!k||k.size===0)return Hammer.DIRECTION_ALL;if(k.size===2){if(k.has("up")&&k.has("down"))return Hammer.DIRECTION_VERTICAL;if(k.has("right")&&k.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(k.size===1){if(k.has("up"))return Hammer.DIRECTION_UP;if(k.has("down"))return Hammer.DIRECTION_DOWN;if(k.has("right"))return Hammer.DIRECTION_RIGHT;if(k.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.r7m=function(){return A7C?Promise.resolve(A7C):new Promise(function(k,E){var S=self.indexedDB.open("swpushnotificationsdb");S.onerror=E;S.onsuccess=function(){var R=S.result;if(R.objectStoreNames.contains("swpushnotificationsstore"))A7C=R,k(A7C);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.r7m()};
S.onupgradeneeded=ul1})};
ul1=function(k){k=k.target.result;k.objectStoreNames.contains("swpushnotificationsstore")&&k.deleteObjectStore("swpushnotificationsstore");k.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
L1I=function(k){var E=xZt(),S;return _.c(function(R){switch(R.nextAddress){case 1:return _.F5(R,2),R.yield(k.match(E,{cacheName:"yt-appshell-assets"}),4);case 4:S=R.yieldResult;_.Sv(R,3);break;case 2:_.UY(R);case 3:return R.return(S)}})};
xZt=function(){var k=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?jTI.registration.scope:DZ1;k.endsWith("/")&&(k=k.slice(0,-1));return k+"/app_shell_home"};
$Zi=function(k){k.map(function(E){return E.source}).join("|")};
_.f81=function(k){return _.c(function(E){return E.return(L1I(k))})};
v_R=function(){var k=window.caches,E;return _.c(function(S){if(S.nextAddress==1)return S.yield(_.f81(k),2);E=S.yieldResult;return S.return(!!E)})};
qhI=function(){_.c(function(k){if(k.nextAddress==1){if(bsl)return k.jumpTo(0);bsl=!0;if(_.Y("enable_system_health_primes_monitoring"))return _.yf(Zs1,3E4),dZR(),k.return();if(!(Math.random()<_.wO("web_system_health_fraction")))return k.jumpTo(0);sTI={heightPixels:screen.height,widthPixels:screen.width};XD&&!isNaN(XD.jsHeapSizeLimit)&&(sTI.memoryTotalKbytes=String(Math.round(XD.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(sTI.devicePixelRatio=window.devicePixelRatio);return k.yield(l8l(),4)}_.yf(Zs1,
3E4);return k.yield(MYi(),0)})};
l8l=function(){return _.c(function(k){if(k.nextAddress==1)return gV.intersectionObserverPresent="IntersectionObserver"in window,gV.serviceWorkerPresent="serviceWorker"in navigator,gV.webSharePresent="share"in navigator,gV.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,gV.cacheStoragePresent="caches"in window,gV.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,gV.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
gV.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Ux&&Ux.webkitTemporaryStorage&&"queryUsageAndQuota"in Ux.webkitTemporaryStorage,gV.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",k.yield(T8m(),2);gV.indexedDbPresent=k.yieldResult;gV.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;gV.broadcastChannelPresent="BroadcastChannel"in window;gV.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(gV.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,gV.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.KR(k)})};
Zs1=function(){var k=9E4+Math.random()*2E3;_.mE()>k||(_.Y("enable_system_health_primes_monitoring")?dZR():MYi())};
MYi=function(){var k;return _.c(function(E){if(E.nextAddress==1)return E.yield(zkh(),2);k=E.yieldResult;_.f2("systemHealthCaptured",k);_.KR(E)})};
dZR=function(){var k={metric:{}},E=QTm();E.networkEvents.length&&(k.metric.networkEvents=Osh(E));_.f2("systemHealthCaptured",k)};
zkh=function(){var k,E,S,R,V,N,h,J,m,a;return _.c(function(T){switch(T.nextAddress){case 1:k={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)};E=window.screen;_.Y("enable_is_extended_monitoring")&&E&&"isExtended"in E&&(k.isExtended=!!E.isExtended);S={metric:{staticContext:sTI,dynamicContext:k,webMetric:GQI,webApiSupport:gV}};
if(R=_.Fe())S.csn=R;XD&&(S.metric.webMetric.currentHeapKbytes=Math.round(XD.usedJSHeapSize/1E3));window.matchMedia&&(S.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,S.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,S.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Ux&&typeof Ux.getBattery==="function")){T.jumpTo(2);break}return T.yield(Ux.getBattery(),3);case 3:if(V=
T.yieldResult)S.metric.dynamicContext.chargingStatus=V.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(S.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(gV.storageEstimatePresent)return T.yield(navigator.storage.estimate(),8);if(!gV.webkitTemporaryStoragePresent){T.jumpTo(5);break}return T.yield(CiI(),7);case 7:N=T.yieldResult;T.jumpTo(5);break;case 8:N=T.yieldResult;case 5:return S.metric.dynamicContext.deviceStorageQuotaMbytes=((h=N)==null?0:h.quota)?String(Math.round(N.quota/
1048576/10)*10):"-1",S.metric.dynamicContext.deviceStorageUsageMbytes=((J=N)==null?0:J.usage)?String(Math.round(N.usage/1048576/10)*10):"-1",m=S.metric.dynamicContext,T.yield(v_R(),9);case 9:return m.hasAppShell=T.yieldResult,a=QTm(),a.networkEvents.length&&(S.metric.networkEvents=Osh(a)),T.return(S)}})};
CiI=function(){return new Promise(function(k){var E;gV.webkitTemporaryStoragePresent&&(E=Ux.webkitTemporaryStorage)!=null&&E.queryUsageAndQuota?Ux.webkitTemporaryStorage.queryUsageAndQuota(function(S,R){k({usage:S,quota:R})}):k(void 0)})};
_.HT=function(k){k&=16777215;k=[(k&16711680)>>16,(k&65280)>>8,k&255];return kCC(k[0],k[1],k[2])};
_.Kc=function(k){k=[(k&16711680)>>>16,(k&65280)>>>8,k&255,(k&4278190080)>>>24];if(!_.Epi(k,function(E){return E===(E&255)}))throw Error("gg`"+k.join(","));
return"rgba("+k[0]+","+k[1]+","+k[2]+","+(k[3]/255).toFixed(3)+")"};
_.SWm=function(k){return[(k&16711680)>>>16,(k&65280)>>>8,k&255]};
_.Rjh=function(k){k=k.map(function(E){E/=255;return E<=.03928?E/12.92:Math.pow((E+.05)/1.05,2.4)});
return k[0]*.2126+k[1]*.7152+k[2]*.0722};
pc=function(k,E){k=_.SWm(k);return"rgba("+k[0]+", "+k[1]+", "+k[2]+", "+E+")"};
Ag=function(k){return(k&4278190080)>>>24===0?pc(k,"1"):_.Kc(k)};
_.V4A=function(){try{return!!self.localStorage}catch(k){return!1}};
iQb=function(){if(NMh())_.dg(Error("hg"));else{var k=document.createElement("iframe");k.style.display="none";var E=E===void 0?window.location.href:E;var S=_.dv(_.Mg("PERSIST_IDENTITY_IFRAME_URL"));E=S?S:(new URL(E)).host.indexOf("studio")===0?_.BH(I5b,"persist_identity"):_.BH(npb,"persist_identity");_.aem(k,1,E);k.id="persist_identity";var R;(R=document.body)==null||R.appendChild(k)}};
NMh=function(){var k=hjl;k||(k=document.querySelector("#persist_identity"));return k};
Jve=function(){var k=!1;try{k=!!window.sessionStorage.getItem("session_logininfo")}catch(E){k=!0}return(_.Mg("INNERTUBE_CLIENT_NAME")==="WEB"||_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&k};
cvm=function(k,E){if(!Jve())return!1;E||(E=_.Mg("LOGIN_INFO"));return E?(k.session_logininfo=E,!0):!1};
ejj=function(k,E){k=k===void 0?!1:k;if((E===void 0||!E)&&mkm!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.qg("LOG_STICKINESS",!1)){E=_.Fe();var S=_.Wi(),R={identityStickinessData:{initialState:mkm}};E&&S&&_.fz(E,S,R)}if(E=NMh())if(S=E.src?(new URL(E.src)).origin:"*",k){var V;(V=E.contentWindow)==null||V.postMessage({action:"clear"},S)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(k=window.sessionStorage.getItem("session_logininfo"))){var N;(N=E.contentWindow)==null||N.postMessage({loginInfo:k},S)}};
_.rV=function(k){k=k===void 0?!0:k;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.l$("LOGIN_INFO",""),k&&window.sessionStorage.setItem("from_switch_account","1"),ejj(!0,k)}catch(E){}};
a51=function(k){k&&(k.startsWith("https://accounts.google.com/AddSession")?_.rV():k.startsWith("https://accounts.google.com/ServiceLogin")?_.rV():k.startsWith("https://myaccount.google.com")&&_.Gx(k).getPath().endsWith("/youtubeoptions")&&_.rV())};
uv=function(k,E){a51(k);if(_.qg("LOGGED_IN",!0)&&Jve()){var S=Qoi(k);S==null&&(S={});cvm(S,E)&&_.vi(k,S)}};
t4i=function(){function k(E){for(E=E.target;E&&E.nodeName!=="A";)if(E=E.parentNode,!(E&&E instanceof HTMLElement))return;if(E&&!E.hasAttribute("download")&&E.getAttribute("rel")!=="external"&&E.href)return E.href}
document.addEventListener("mousedown",function(E){E.button!==0&&(E=k(E))&&uv(E)});
document.addEventListener("click",function(E){(E=k(E))&&uv(E)})};
PwC=function(){var k=new TM1;try{if(_.qg("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(J){k.increment(5,!1);return}if(_.Mg("LOGIN_INFO")){var E=waI?waI:window.location;_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&iQb();var S=Qoi(E.href);S==null&&(S={});var R=S.session_logininfo,V=Number(window.sessionStorage.getItem("stickiness_reload")),N=R===_.Mg("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
V>=2||N)V>=2?k.increment(2,N):N?k.increment(7,N):window.sessionStorage.getItem("session_logininfo")||(k.increment(3,N),mkm="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Mg("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Mg("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))k.increment(4,N),window.sessionStorage.removeItem("stickiness_reload");
else if(V<2){window.sessionStorage.setItem("stickiness_reload",String(V+1));var h=E.href;h=_.bW(h,"sttick");uv(h,window.sessionStorage.getItem("session_logininfo"));h=_.N3(h,{sttick:V});k.increment(V,N);_.BPI(E,h)}}else k.increment(6,!1)}else _.rV(!1)}catch(J){}};
_.xl=function(k,E,S,R,V){E=E===void 0?{}:E;S=S===void 0?"":S;R=R===void 0?window:R;k=_.Iu(k,E);uv(k);S=_.ZF(k+S,V);_.BPI(R.location,S)};
BMe=function(k){if(k.urlEndpoint){if(k=_.Vf(k.urlEndpoint.url),k.adurl)return c_(k.adurl)}else if(k.watchEndpoint)return"//www.youtube.com/watch?v="+k.watchEndpoint.videoId;return null};
YW1=function(k){if(!k||!k.reportingPings)return null;var E={};k.reportingPings.forEach(function(S){S.pingType in E?E[S.pingType].push(S.url):E[S.pingType]=[S.url]});
return{adpings:ZIe(E)}};
_.jk=function(){return{isShellLoad:_.qg("IS_SHELL_LOAD",!1)}};
FDI=function(){navigator.serviceWorker.getRegistrations().then(function(k){k.forEach(WD1)})};
WD1=function(k){k&&_.yvI(oph,k.scope)};
_.yvI=function(k,E){E={scope:E||_.P_("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.AJ(k),E)};
DW=function(k,E,S,R){if(E&&E.serializedYpcCujLoggingParams){if(S){var V={};V.transactionErrorType=S;R&&(V.errorMessage=R);E.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:V}}}S={};S.ypcCujContext=E;k=_.Ex("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",k,S);_.Sk().logFlowEvent(k,"FLOW_TYPE_YPC_ACQUISITION")}};
_.XaI=function(k,E,S,R){var V={};V.serializedTransactionFlowLoggingParams=E;S&&(V.errorType=S);R&&(V.errorMessage=R);_.f2(k,V);_.vv()};
_.gpj=function(k){k&&_.XaI("transactionFlowStarted",k)};
_.Uk1=function(k){k&&_.XaI("transactionFlowCancelled",k)};
_.$l=function(k,E,S){E&&_.XaI("transactionFlowFailed",E,k,S)};
HQj=function(k){var E=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");E&&(E.inert=k)};
_.fc=function(){this.megabloxUrl_=null};
_.vT=function(k){try{var E=KDR==null?void 0:KDR.composedPath(k)}catch(S){E=k.composedPath?k.composedPath():[]}return E&&E.length>0?E:k.composedPath?k.composedPath():[]};
_.bv=function(k){return _.vT(k)[0]};
_.ZW=function(k){if(!(k instanceof Element))return null;k=k.classList?Array.from(k.classList):void 0;if(!k)return null;var E=k.indexOf("style-scope");return E>-1&&E+1<k.length?k[E+1]:null};
dV=function(k){if(!(k instanceof HTMLElement))return null;var E=k&&(k.$$||k.polymerController)?k.tagName.toLowerCase():null;return E?E:_.ZW(k)};
pai=function(k,E){return k.replace(/[^a-z]*[^\s]+/g,function(S){return S+".style-scope."+E})};
Avt=function(k,E){return E?k.split(",").map(function(S){return pai(S.trim(),E)}).join(", "):k};
_.sx=function(k){var E,S,R,V;return(V=(R=(S=(E=k.root)!=null?E:k.shadowRoot)!=null?S:k.__shady_native_shadowRoot)!=null?R:k.__shady_shadowRoot)!=null?V:k};
lv=function(k){return k instanceof ShadowRoot?ShadowRoot:k instanceof DocumentFragment?DocumentFragment:k instanceof Document?Document:HTMLElement};
rvm=function(k){var E,S,R;return(R=(S=(E=k.parentElement)!=null?E:k.__shady_native_parentElement)!=null?S:k.__shady_parentElement)!=null?R:null};
uIm=function(k){var E,S,R;return(R=(S=(E=k.parentNode)!=null?E:k.__shady_native_parentNode)!=null?S:k.__shady_parentNode)!=null?R:null};
xkl=function(k){var E,S,R;return(R=(S=(E=k.__shady_parentNode)!=null?E:k.__shady_native_parentNode)!=null?S:k.parentNode)!=null?R:null};
LDe=function(k){var E,S;return(S=(E=uIm(k))!=null?E:k.host)!=null?S:null};
jn1=function(k){var E,S,R;return(R=(S=(E=k.nextSibling)!=null?E:k.__shady_native_nextSibling)!=null?S:k.__shady_nextSibling)!=null?R:null};
Dke=function(k){var E,S,R;return(R=(S=(E=k.previousSibling)!=null?E:k.__shady_native_previousSibling)!=null?S:k.__shady_previousSibling)!=null?R:null};
$kI=function(k){var E,S,R;return(R=(S=(E=k.nextElementSibling)!=null?E:k.__shady_native_nextElementSibling)!=null?S:k.__shady_nextElementSibling)!=null?R:null};
f5C=function(k){var E,S,R;return(R=(S=(E=k.previousElementSibling)!=null?E:k.__shady_native_previousElementSibling)!=null?S:k.__shady_previousElementSibling)!=null?R:null};
vpt=function(k){var E,S,R;return new Set([].concat(_.$e((E=k.children)!=null?E:[]),_.$e((S=k.__shady_native_children)!=null?S:[]),_.$e((R=k.__shady_children)!=null?R:[])))};
bQA=function(k){var E,S,R;return new Set([].concat(_.$e((E=k.childNodes)!=null?E:[]),_.$e((S=k.__shady_native_childNodes)!=null?S:[]),_.$e((R=k.__shady_childNodes)!=null?R:[])))};
ZQl=function(k){if(!k)return null;var E=_.ZW(k);if(!E){var S;return(S=Node.prototype.getRootNode)==null?void 0:S.call(k)}E=E.toUpperCase();for(k=rvm(k);k&&k.tagName!==E;)k=rvm(k);return k?_.sx(k):null};
dkl=function(k){for(;k&&!(k instanceof HTMLElement);)k=LDe(k);return k};
sn1=function(k){var E=dkl(k);return k===E?_.ZW(k):E?dV(E):null};
l5h=function(k){return(k=dkl(k))?dV(k):null};
M4I=function(k){if(k instanceof Comment)return!1;if(k instanceof Text){var E,S;if(((S=(E=k.textContent)==null?void 0:E.trim())!=null?S:"")==="")return!1}return!0};
My=function(k,E,S){var R=E(k);for(S=S===void 0?l5h(k):S;R&&(sn1(R)!==S||!M4I(R));)k=R,R=E(k);return R};
qWh=function(k,E,S){if(!E)return null;k=l5h(k);return sn1(E)===k&&M4I(E)?E:My(E,S,k)};
zjR=function(k){return My(k,xkl,_.ZW(k))};
Qnm=function(k){return My(k,$kI)};
OQ1=function(k){return My(k,jn1)};
GCb=function(k){return My(k,f5C)};
Cwh=function(k){return My(k,Dke)};
k1h=function(k){return qWh(k,k.firstChild||k.__shady_native_firstChild||k.__shady_firstChild||null,jn1)};
E0m=function(k){var E,S,R;var V=(R=(S=(E=k.firstElementChild)!=null?E:k.__shady_native_firstElementChild)!=null?S:k.__shady_firstElementChild)!=null?R:null;return qWh(k,V,$kI)};
Sse=function(k){var E,S,R;var V=(R=(S=(E=k.lastChild)!=null?E:k.__shady_native_lastChild)!=null?S:k.__shady_lastChild)!=null?R:null;return qWh(k,V,Dke)};
RHh=function(k){var E,S,R;var V=(R=(S=(E=k.lastElementChild)!=null?E:k.__shady_native_lastElementChild)!=null?S:k.__shady_lastElementChild)!=null?R:null;return qWh(k,V,f5C)};
V2C=function(k){var E=l5h(k);return Array.from(bQA(k)).filter(function(S){return sn1(S)===E})};
NQh=function(k){var E=dV(k);return Array.from(vpt(k)).filter(function(S){return _.ZW(S)===E})};
_.qy=function(k,E,S){if(k instanceof HTMLElement&&_.ZW(k)===S){var R=Array.from(k.classList).indexOf("style-scope");if(R===-1)k.classList.add("style-scope"),k.classList.add(E);else if(!(R+1>=k.classList.length)){R=k.classList[R+1];var V,N;k==null||(V=k.classList)==null||(N=V.replace)==null||N.call(V,R,E)}}if(k instanceof HTMLElement||k instanceof DocumentFragment)for(V=_.n(vpt(k)),N=V.next();!N.done;N=V.next())_.qy(N.value,E,S);return k};
zl=function(k,E){if(k instanceof HTMLElement&&_.ZW(k)===E){var S=Array.from(k.classList).indexOf("style-scope");S===-1||S+1>=k.classList.length||k.classList.remove("style-scope",k.classList[S+1])}if(k instanceof HTMLElement||k instanceof DocumentFragment){S=_.n(k.children);for(var R=S.next();!R.done;R=S.next())zl(R.value,E)}return k};
_.IQR=function(k,E){return lv(k).prototype.appendChild.call(k,E)};
n0C=function(k,E){if(k===E)return!0;k=bQA(k);return Array.from(k).some(function(S){return n0C(S,E)})};
_.Cc=function(k,E){if(k instanceof Gl)return k;(E==null?0:E.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(k,"ownerDocument")&&Object.defineProperty(k,"ownerDocument",{get:function(){return window.document}});
return new Gl(k)};
hHI=function(){var k=Gl.prototype,E=[].concat(_.$e(iWI?[]:["getRootNode"]),["setAttribute","removeAttribute"]);E=_.n(E);for(var S=E.next(),R={};!S.done;R={method$jscomp$53:void 0},S=E.next())R.method$jscomp$53=S.value,k[R.method$jscomp$53]=function(V){return function(){return this.host[V.method$jscomp$53].apply(this.host,arguments)}}(R)};
cGi=function(){var k=Gl.prototype,E=[].concat(_.$e(iWI?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.$e(JGC?[]:["querySelector","querySelectorAll"]));E=_.n(E);for(var S=E.next(),R={};!S.done;R={method$jscomp$54:void 0},S=E.next())R.method$jscomp$54=S.value,k[R.method$jscomp$54]=function(V){return function(){return this.root[V.method$jscomp$54].apply(this.root,arguments)}}(R)};
aQI=function(){var k=Gl.prototype,E=[].concat(_.$e(mtC?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.$e(eHm?[]:["parentNode"]));E=_.n(E);for(var S=E.next(),R={};!S.done;R={prop$jscomp$67:void 0},S=E.next())R.prop$jscomp$67=S.value,Object.defineProperty(k,R.prop$jscomp$67,{get:function(V){return function(){return this.host[V.prop$jscomp$67]}}(R),
configurable:!0})};
wfb=function(){var k=Gl.prototype,E=["activeElement"].concat(_.$e(mtC?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.$e(t2m?[]:["children"]),_.$e(TQi?[]:["lastChild"]));E=_.n(E);for(var S=E.next(),R={};!S.done;R={prop$jscomp$68:void 0},S=E.next())R.prop$jscomp$68=S.value,Object.defineProperty(k,R.prop$jscomp$68,{get:function(V){return function(){return this.root[V.prop$jscomp$68]}}(R),
configurable:!0})};
P9h=function(){for(var k=Gl.prototype,E=_.n(["innerHTML","textContent"]),S=E.next(),R={};!S.done;R={prop$jscomp$69:void 0},S=E.next())R.prop$jscomp$69=S.value,Object.defineProperty(k,R.prop$jscomp$69,{get:function(V){return function(){return this.root[V.prop$jscomp$69]}}(R),
set:function(V){return function(N){this.root[V.prop$jscomp$69]=N}}(R),
configurable:!0})};
BQj=function(k){var E=Gl.prototype;k=_.n(Object.entries(k));for(var S=k.next(),R={};!S.done;R={fn$jscomp$403:void 0},S=k.next()){var V=_.n(S.value);S=V.next().value;V=V.next().value;R.fn$jscomp$403=V;E[S]=function(N){return function(){return N.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.$e(arguments)))}}(R)}};
W4h=function(){for(var k=Gl.prototype,E=_.n(Object.entries(Ysi)),S=E.next(),R={};!S.done;R={fn$jscomp$404:void 0},S=E.next()){var V=_.n(S.value);S=V.next().value;V=V.next().value;R.fn$jscomp$404=V;Object.defineProperty(k,S,{get:function(N){return function(){return N.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.$e(arguments)))}}(R),
configurable:!0})}};
_.kT=function(k){return k instanceof F4I||k instanceof Document?k:new F4I(k)};
yG1=function(){for(var k=F4I.prototype,E=_.n("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),S=E.next(),R={};!S.done;R={method$jscomp$55:void 0},S=E.next())R.method$jscomp$55=S.value,k[R.method$jscomp$55]=function(V){return function(){return HTMLElement.prototype[V.method$jscomp$55].call.apply(HTMLElement.prototype[V.method$jscomp$55],[this.node].concat(_.$e(arguments)))}}(R)};
o0h=function(){for(var k=F4I.prototype,E=_.n("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),S=E.next(),R={};!S.done;R={prop$jscomp$70:void 0},S=E.next())R.prop$jscomp$70=S.value,Object.defineProperty(k,R.prop$jscomp$70,{get:function(V){return function(){var N;return(N=this.node["__shady_native_"+V.prop$jscomp$70])!=null?N:this.node[V.prop$jscomp$70]}}(R),
configurable:!0})};
_.E_=function(k,E,S){S===void 0&&(S=!k.classList.contains(E));S?k.classList.add(E):k.classList.remove(E)};
_.SN=function(k,E,S){S===void 0&&(S=!k.hasAttribute(E));if(E==="class")throw Error("mg");S?_.kT(k).setAttribute(E,""):_.kT(k).removeAttribute(E)};
XfI=function(k){return(k.localName!=="slot"?[]:(0,_.Rc)(k).assignedNodes({flatten:!0})).filter(function(E){return E.nodeType===Node.ELEMENT_NODE})};
_.g0m=function(k){return(k=_.Cc(k).querySelector("slot"))&&k.localName==="slot"?XfI(k):[]};
_.VO=function(k,E){window.ShadyCSS&&window.ShadyCSS.styleSubtree(k,E)};
NO=function(k,E){var S=E.bind(k);return function(R){S(R,R.detail)}};
_.Ic=function(k,E){var S=Uti.get(k);S||(S=new WeakMap,Uti.set(k,S));if(S.has(E))return S.get(E);if(_.Y("web_fi_listen_disable_bound_fn_helper")){var R=E.bind(k);k=function(V){R(V,V==null?void 0:V.detail)}}else k=NO(k,E);
S.set(E,k);return k};
pf1=function(k,E){HWl(k);k.created[K4h].push(E)};
HWl=function(k){if(!k.created||!k.created[K4h]){var E=k.created,S=E?[E]:[];k.created=function(){for(var R=_.n(S),V=R.next();!V.done;V=R.next())V.value.apply(this)};
k.created[K4h]=S}};
AGm=function(k){return function(){var E=_.sX.apply(0,arguments);return function(S,R,V){k.apply(null,_.$e(E))(S,R,V)}}};
rGb=function(){return function(){var k=_.sX.apply(0,arguments);return function(E,S,R){cal.apply(null,_.$e(k))(E,S,R)}}};
_.g=function(k){return rGb()(k)};
_.U=function(){return AGm(tuR).apply(null,_.$e(_.sX.apply(0,arguments)))};
_.nv=function(k){return _.Y("pbcm_fi_listen_decorators")?ujC(k):AGm(e7I)(k)};
ujC=function(k){return function(E,S){pf1(E,function(){var R=this[S],V=_.Y("web_fi_listen_disable_bound_fn_helper")?function(N){R(N,N.detail)}.bind(this):NO(this,R);
xti.has(k)?s2(this.hostElement,k,V):this.hostElement.addEventListener(k,V)})}};
_.il=function(){return AGm(aX1).apply(null,_.$e(_.sX.apply(0,arguments)))};
_.H=function(k){k=k===void 0?{}:k;return AGm(mMh)(k)};
_.hO=function(k){if(k.hostElement&&k!==k.hostElement){var E=_.em(k.hostElement);E=k.renderIdom?E:E.shadowRoot}E||(k=k.root,E=k instanceof Node?_.em(k):null);return E};
_.JO=function(k){return L4e?j$C(k):function(E,S){Object.defineProperty(E,S,{get:function(){var R;return(R=_.hO(this))==null?void 0:R.querySelector(k)},
enumerable:!0,configurable:!0})}};
j$C=function(k){return function(E,S){Object.defineProperty(E,S,{get:function(){var R,V=(R=_.Cc(this.hostElement))==null?void 0:R.querySelector(k);if(V)return V;var N;return(N=_.hO(this))==null?void 0:N.querySelector(k)},
enumerable:!0,configurable:!0})}};
_.cu=function(k){return L4e?Dt1(k):function(E,S){Object.defineProperty(E,S,{get:function(){var R;return(R=_.hO(this))==null?void 0:R.querySelectorAll(k)},
enumerable:!0,configurable:!0})}};
Dt1=function(k){return function(E,S){Object.defineProperty(E,S,{get:function(){var R,V=(R=_.Cc(this.hostElement))==null?void 0:R.querySelectorAll(k);if(V==null?0:V.length)return V;var N;return(N=_.hO(this))==null?void 0:N.querySelectorAll(k)},
enumerable:!0,configurable:!0})}};
$ti=function(k){return function(E){if(![_.eX,_.p].includes(Object.getPrototypeOf(E.prototype).constructor))throw Error("ng");R7h(Object.assign({},typeof k!=="string"?k:{is:k,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(E)}};
_.eN=function(){var k=k===void 0?{}:k;return function(E){if(![ad,_.mi].includes(Object.getPrototypeOf(E.prototype).constructor))throw Error("og");VuI(Object.assign({},k,{disableInheritanceCheck:!0}))(E)}};
v0R=function(k,E){fQm[k]!=null||(fQm[k]=new Set);fQm[k].add(E)};
_.ac=function(){var k=_.il.apply(null,_.$e(_.sX.apply(0,arguments)));return function(E,S){v0R(E.is,S);k(E,S)}};
wJ=function(k,E,S){if(tO(k)&&!bWe.has(E)){E=E.replace(/^JSC\$[\d]+_/,"");E=E.replace(/\.\d+(\.|$)/g,function(N,h){return".#"+h});
TN[k]!=null||(TN[k]={});var R,V;(R=TN[k])[V=E]!=null||(R[V]=new Set);TN[k][E].has(S)||(TN[k][E].add(S),_.f2("polymerPropertyAccessEvent",{componentName:k,propertyName:E,accessType:S}))}};
ZWI=function(){return _.Y("polymer_property_access_logging_debug")||_.Y("polymer_enable_property_access_logging")};
tO=function(k){if(_.Y("polymer_property_access_logging_debug"))return!0;if(!_.Y("polymer_enable_property_access_logging"))return!1;dtR||(dtR=Date.now());return(pI(k)+dtR)%100<_.wO("polymer_property_access_logging_percent")};
s$b=function(k,E){return tO(E)&&k.hostElement.loggingStatus?new Proxy(k,{get:function(S,R,V){if(S.hostElement.loggingStatus.bypassProxyController)return S[R];S.hostElement.loggingStatus.isExternalGet=!0;var N=S[R];S.hostElement.loggingStatus.isExternalGet=!1;if(N instanceof Function)return function(){var h=_.sX.apply(0,arguments);try{return S.hostElement.loggingStatus.currentExternalCall=R,wJ(E,R,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),N.apply(this===V?S:this,h)}finally{S.hostElement.loggingStatus.currentExternalCall=
void 0}};
wJ(E,R,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return N},
set:function(S,R,V){if(S.hostElement.loggingStatus.bypassProxyController)return S[R]=V,!0;S.hostElement.loggingStatus.isRendererStamper?wJ(E,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):S.hostElement.loggingStatus.isDeclarativeExternal||wJ(E,R,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{S.hostElement.loggingStatus.currentExternalSet=R,S[R]=V}finally{S.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):k};
lQm=function(k,E){k&&k.loggingStatus&&!k.loggingStatus.isDeclarativeExternal&&!k.loggingStatus.isExternalGet&&k.loggingStatus.currentExternalSet!==E&&wJ(k.tagName.toLowerCase(),E,"PROPERTY_ACCESS_GET_INTERNAL")};
Pu=function(k,E,S){k&&(S||k.loggingStatus&&!k.loggingStatus.isInitializing&&!k.loggingStatus.isDefiningPropertyAccessor&&k.loggingStatus.currentExternalSet!==E)&&wJ(k.tagName.toLowerCase(),E,"PROPERTY_ACCESS_SET_INTERNAL")};
M2I=function(){return{_definePropertyAccessor:function(k,E){var S=this,R=S.hostElement.loggingStatus;R&&(R.isDefiningPropertyAccessor=!0);var V=S[k];V!==void 0&&(S.__data?S._setPendingProperty(k,V):(S.__dataProto!=null||(S.__dataProto={}),S.__dataProto[k]=V));R&&(R.isDefiningPropertyAccessor=!1);Object.defineProperty(this,k,{get:function(){lQm(S.hostElement,k);return this.__data[k]},
set:function(N){E||this._setPendingProperty(k,N,!0)&&this._invalidateProperties()}})},
created:function(){var k=this._setPendingProperty.bind(this);this._setPendingProperty=function(E,S,R){Pu(this.hostElement,E);return k.apply(this,[E,S,R])}}}};
qsh=function(k){ZWI()&&_.g(Bu.prototype)(k.prototype,"__templateBindingLoggingBehavior")};
zHh=function(k,E){if(E.resolvedFactories.length!==k.resolvedFactories.length)return!0;E=_.n(E.resolvedFactories.entries());for(var S=E.next();!S.done;S=E.next()){var R=_.n(S.value);S=R.next().value;R=R.next().value;if(R.providerClass){if(R.providerClass!==k.resolvedFactories[S].providerClass)return!0}else if(R.providerValue){if(R.providerValue!==k.resolvedFactories[S].providerValue)return!0}else if(R.factory!==k.resolvedFactories[S].factory)return!0}return!1};
Q$b=function(k,E){k=_.n(k);for(var S=k.next();!S.done;S=k.next())if(S=S.value,S.constructor===Array)Q$b(S,E);else{var R=E;R.has(S)||(S.inject&&R.add(S),S.behaviors&&Q$b(S.behaviors,R))}};
Wu=function(k,E){var S=k[E];k[E]=function(){var R=_.sX.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(S)return S.apply(this,R)}};
kOA=function(){_.F6.Class=function(S,R){S=OWl(S,R);Wu(S.prototype,"created");return S};
Wu(yO.prototype,"_initializeProperties");Wu(_.oc.prototype,"_initializeProperties");if(G1I)Wu(C9C,"created");else{var k=function(){Wu(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))k();else{var E=customElements.define;customElements.define=function(S,R,V){E.call(customElements,S,R,V);S==="tp-yt-iron-list"&&(k(),customElements.define=E)}}}};
SOb=function(k,E){k.prototype.behaviors=k.prototype.behaviors||[];k.prototype.behaviors.unshift(E9I.InjectBehavior);k.prototype.provide=E};
_.U_=function(k){return function(E){if(!k.disableElementRegistration){k.noInjection||SOb(E,k.providers);var S=E.prototype;S.__templateHelpers||cal(X6.prototype)(S,"__templateHelpers");S=k.is;RJ1||(RJ1=Date.now());(pI(S)+RJ1)%100<_.wO("polymer_log_prop_change_observer_percent")&&cal(gJ.prototype)(E.prototype,"__propertyObserverObserver");E.prototype.behaviors=E.prototype.behaviors||[];E.prototype.behaviors.unshift(_.Vp1.YtHostElementBehavior);qsh(E);$ti({is:k.is,notifyObserversOnUndefined:k.notifyObserversOnUndefined!==
!1,fastInit:k.fastInit,template:k.template,disableEnforceFastDefaultValuesCheck:!0})(E)}}};
_.D=function(k){return _.U_({is:k.is,template:k.template,disableElementRegistration:k.disableElementRegistration,cssBuildOptOut:k.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
n9j=function(k,E){if(NNj){k=new k;for(var S=_.n(Object.getOwnPropertyNames(k)),R=S.next();!R.done;R=S.next())R=R.value,E[R]=k[R];for(S=E;S&&S!==Object.prototype;S=Object.getPrototypeOf(S)){R=_.n(Object.getOwnPropertyNames(S));for(var V=R.next();!V.done;V=R.next())V=V.value,k.hasOwnProperty(V)||Object.defineProperty(k,V,Ijh(E,V))}}else k.apply(E)};
Ijh=function(k,E){return{get:function(){var S=k[E];return S instanceof Function?S.bind(k):S},
set:function(S){k[E]=S}}};
hJl=function(k,E){for(var S=k._noAccessors,R=_.n(Object.getOwnPropertyNames(k)),V=R.next();!V.done;V=R.next())if(V=V.value,!ibh.has(V))if(S)E[V]=k[V];else{var N=Object.getOwnPropertyDescriptor(k,V);N&&(N.configurable=!0,Object.defineProperty(E,V,N))}};
JuC=function(k,E,S){return function(R){if(S){var V=S();R.model=V}if(k[E])k[E](R,R.detail)}};
Hu=function(k){var E=[];if(typeof k==="string")k.length>0&&E.push.apply(E,_.$e(k.split(".")));else{k=_.n(k);for(var S=k.next();!S.done;S=k.next())S=S.value,typeof S==="string"?E.push.apply(E,_.$e(S.split("."))):E.push(S)}return E};
cuC=function(k,E){if(E[E.length-1]!=="*"&&E[E.length-1]!=="splices"){for(var S=0;S<E.length;S++){if(!k)return;k=k[E[S]]}return k}};
mWt=function(k,E){if(k.length>E.length)return!1;for(var S=0;S<k.length;S++)if(k[S]!==E[S])return!1;return!0};
aji=function(k,E,S){if(E.type==="compute"){var R=E.getter.bind(S);var V=E.args}else R=function(){return S[E.method.methodName].apply(S,_.$e(_.sX.apply(0,arguments)))},V=E.method.args;
eJm(k,E.propertyKey,R,V,E.value)};
TN1=function(k,E){if(E.readOnly){var S=Object.getOwnPropertyDescriptor(k.model,E.propertyKey);Object.defineProperty(k.model,E.propertyKey,{get:S.get,set:function(){}});
k.model[tpI(E.propertyKey)]=S.set}};
wm1=function(k,E,S){if(S){var R=E.propertyKey,V=E.selector;E=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.$e(E.selectorArgs.map(function(N){return{type:"path",path:N}})));
eJm(k,R,function(N){var h=_.sX.apply(1,arguments);return V.apply(null,[S.getState()].concat(_.$e(h)))},E)}};
BNI=function(k,E,S){var R=_.Ne(E.propertyKey)+"-changed";Py1(k,function(V){var N={value:V.value,queueProperty:!0};V.path.split(".").length>1&&(N.path=V.path);S.dispatchEvent(new CustomEvent(R,{detail:N}))},[{type:"wildcard",
path:E.propertyKey}])};
YOC=function(k,E,S){Py1(k,function(){S[E.method.methodName].apply(S,_.$e(_.sX.apply(0,arguments)))},E.method.args)};
tpI=function(k){return"_set"+(k.charAt(0).toUpperCase()+k.slice(1))};
WAI=function(){var k,E=ZK(function(S){k=S},!1);
return[k,E]};
g9h=function(k){k=k.trim().replace(FAj,",").replace(yuh,"$1");var E=k[0];E==="-"&&(E=k[1]);if(E>="0"&&E<="9")return{type:"literal",value:Number(k)};if(E==="'"||E==='"')return{type:"literal",value:k.slice(1,-1)};if(E=k.match(o9t)){E=E[1];var S=Xml[E];if(S)return{type:S,path:k.slice(0,-(E.length+1))}}return{type:"path",path:k}};
pmm=function(k){var E=k.match(UWm);if(E)return k={methodName:E[1],args:HbI},E[2].trim()&&(E=E[2].replace(KAA,"&comma;").split(","),k.args=E.map(g9h)),k};
AuI=function(k,E,S,R){R=R===void 0?!1:R;E=_.Ne(E);var V=rm;V&&(S=V(S,E,"attribute",k));Kv(k,S,E,R)};
Kv=function(k,E,S,R){E=ruA(E,R===void 0?!1:R);E===void 0?k.removeAttribute(S):k.setAttribute(S,E)};
ruA=function(k,E){switch(typeof k){case "object":case "function":if(k instanceof Date)return k.toString();if(k){if((E===void 0?0:E)&&!_.Y("polymer_reflect_objects_as_boolean_killswitch"))return k?"":void 0;E=window.trustedTypes?window.trustedTypes.isHTML(k)||window.trustedTypes.isScript(k)||window.trustedTypes.isScriptURL(k):void 0;if(E)return k;try{return JSON.stringify(k)}catch(S){_.dg(Error("Kg`"+k))}}break;case "boolean":return k?"":void 0;default:return k!==null&&k!==void 0?k.toString():void 0}};
u_l=function(k){if(k===void 0)throw Error("Lg");return k};
$WR=function(k,E,S,R){var V=xWA(R);if(V.length){R=S;var N="property";LAe.test(S)?N="attribute":S[S.length-1]==="$"&&(S=S.slice(0,-1),N="attribute");var h=jFi(V);h&&N==="attribute"&&(S==="class"&&k.hasAttribute("class")&&(h+=" "+k.getAttribute(S)),Kv(k,h,S));N==="attribute"&&R==="disable-upgrade$"&&k.setAttribute("disable-upgrade","");k.localName==="input"&&R==="value"&&k.setAttribute("value","");k.removeAttribute(R);N==="property"&&(S=_.Ir(S));E=u_l(E);DWI(E,N,S,V);return!0}return S.slice(0,3)===
"on-"?(k.removeAttribute(S),(N=E).events!=null||(N.events=[]),E.events.push({name:S.slice(3),value:R}),!0):S==="id"?(E.id=R,!0):!1};
xWA=function(k){for(var E=[],S=0,R;(R=fjm.exec(k))!==null;){R.index>S&&E.push({type:"literal",value:k.slice(S,R.index)});var V=R[1][0];S=!!R[2];R=R[3].trim();if(V==="{")throw Error("Mg");(V=pmm(R))?E.push({type:"method",negate:S,signature:V}):E.push({type:"path",negate:S,path:R});S=fjm.lastIndex}S&&S<k.length&&(k=k.substring(S))&&E.push({type:"literal",value:k});return E};
jFi=function(k){for(var E="",S=0;S<k.length;S++){var R=k[S];R.type==="literal"&&(E+=R.value)}return E};
DWI=function(k,E,S,R){k.bindings!=null||(k.bindings=[]);k.bindings.push({kind:E,target:S,parts:R})};
sFi=function(k,E,S){var R=!1;if(k.localName==="template"){R=S;var V=E.stripWhitespace;V=v9b(k,V===void 0?!1:V);var N=k.content.ownerDocument.createDocumentFragment();V.content=N;N.appendChild(k.content);R&&(R.templateInfo=V);R=!0}else k.localName==="slot"&&(E.hasInsertionPoint=!0);if(k.firstChild&&(V=S,k.localName!=="script"&&k.localName!=="style")){N=0;for(var h=k.firstChild;h;){var J=h;if(J.localName==="template"){var m=J.getAttribute("is");if((h=m==="dom-if")||m==="dom-repeat"){J.removeAttribute("is");
m=J.ownerDocument.createElement("ps-"+m);J.parentNode.replaceChild(m,J);m.appendChild(J);var a=Array.from(J.attributes);a=_.n(a);for(var T=a.next();!T.done;T=a.next())T=T.value,h?bbe.has(T.name)&&Kv(m,T.value,T.name):Zbm.has(T.name)?Kv(m,T.value,T.name):dWi.has(T.name),J.removeAttribute(T.name);h=m}else h=J}if(h.nodeType===Node.TEXT_NODE){J=void 0;m=k;for(a=h;((J=a.nextSibling)==null?void 0:J.nodeType)===Node.TEXT_NODE;)T=void 0,(T=a).textContent!=null||(T.textContent=""),a.nextSibling.textContent&&
(a.textContent+=a.nextSibling.textContent),m.removeChild(a.nextSibling);if(E.stripWhitespace&&h.textContent&&!h.textContent.trim()){k.removeChild(h);h=h.nextSibling;continue}}sFi(h,E,{parentIndex:N,parentInfo:V});h.parentNode&&N++;h=h.nextSibling}}var w;if((w=k.hasAttributes)==null?0:w.call(k)){w=S=u_l(S);V=!1;N=Array.from(k.attributes);N=_.n(N);for(J=N.next();!J.done;J=N.next())J=J.value,V=$WR(k,w,J.name,J.value)||V;R=V||R}k.nodeType===Node.TEXT_NODE&&(w=xWA(k.textContent),w.length&&(k.textContent=
jFi(w)||" ",S=u_l(S),DWI(S,"text","textContent",w),R=!0));S&&R&&(S.infoIndex=E.nodeInfoList.push(S)-1)};
v9b=function(k,E){E={nodeInfoList:[],stripWhitespace:(E===void 0?!1:E)||k.hasAttribute("strip-whitespace")};sFi(k.content,E);return E};
ljm=function(k){Object.assign(k,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
qOA=function(k,E,S){E.signalCache!=null||(E.signalCache={});var R=E.signalCache[S];if(!R){var V=S.split(".");R=!Mp1(k,V[0]);if(V.length>1&&R){var N=k.getPathMutationSignal(V);R=function(){var h=lI(k.owner,function(){return k.getWithPath([V[0]])}),J,m=(J=N())==null?void 0:J.value;
return{rootWasDefined:h!==void 0,value:m}}}else R=function(){var h=k.getWithPath(V);
return{rootWasDefined:h!==void 0,value:h}};
E.signalCache[S]=R}return R()};
QFj=function(k,E,S,R,V){E=E.parts.map(function(h,J){if(h.type==="literal"){S.partWasDefined!=null||(S.partWasDefined=[]);var m;(m=S.partWasDefined)[J]||(m[J]=h.value!==void 0);return h.value}var a;if(h.type==="method"){var T,w=(T=(a=S.partWasDefined)==null?void 0:a[J])!=null?T:!1;w||(w=h.signature.args.every(function(F){return F.type==="literal"}));
var P=!1,B=!0;a=h.signature.args.map(function(F){if(F.type==="literal")return F.value;if(F.type!=="path")throw Error("Ng`"+F.type);var K=qOA(k,S,F.path);F=K.value;K=K.rootWasDefined;P||(P=K);B&&(B=K);return F});
w||(w=V===1?B:P);S.partWasDefined!=null||(S.partWasDefined={});S.partWasDefined[J]=w;if(!w)return;a=(J=qOA(k,S,h.signature.methodName).value)&&typeof J==="function"?J.apply(R,a):void 0}else T=qOA(k,S,h.path),a=T.value,S.partWasDefined!=null||(S.partWasDefined={}),(w=S.partWasDefined)[J]||(w[J]=a!==void 0||T.rootWasDefined);h.negate&&(a=!a);return a});
if(E.length===1){var N;return((N=S.partWasDefined)==null?0:N[0])?E[0]:zJI}return E.join("")};
ObR=function(k){return typeof k==="object"&&!!k&&"notifyPath"in k&&"canNotifyPath"in k};
GOI=function(k){return typeof k==="object"&&!!k&&"notifyPath"in k};
Cye=function(k){return"polymerController"in k};
kyh=function(k,E){E=""+Hu(E)[0];if(ObR(k))return k.canNotifyPath(E);if(Cye(k)&&ObR(k.polymerController))return k.polymerController.canNotifyPath(E);if(GOI(k)){var S;return!((S=k.properties)==null||!S[E])}if(Cye(k)&&GOI(k.polymerController)){var R;return!((R=k.polymerController.properties)==null||!R[E])}return!1};
EG1=function(k,E,S){ObR(k)||GOI(k)?k.notifyPath(E,S):Cye(k)&&(ObR(k.polymerController)||GOI(k.polymerController))&&k.polymerController.notifyPath(E,S)};
ROR=function(k,E,S){if(S!==zJI){k.kind==="attribute"||k.target!=="textContent"&&(k.target!=="value"||E.localName!=="input"&&E.localName!=="textarea")||(S=S===void 0?"":S);var R,V=(R=Snt.Polymer)==null?void 0:R.sanitizeDOMValue;V&&(S=V(S,k.target,k.kind,E));if(k.kind==="attribute"){k=k.target;if(k==="class"||k==="name"||k==="slot")E=(0,_.Rc)(E);Kv(E,S,k)}else if(k=k.target,S!==E[k]||typeof S==="object")E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!0,wJ(E.localName,k,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
E[k]=S,E.loggingStatus&&(E.loggingStatus.isDeclarativeExternal=!1)}};
VaC=function(k,E,S,R){var V=E.parts[0];if(E.parts.length!==1||V.type!=="path"||!kyh(S,E.target))return!1;var N=_.n(V.path.split(".")),h=N.next().value,J=Re(N);if(Mp1(k,h))return!1;R.signalCache!=null||(R.signalCache={});N=R.signalCache[V.path];var m;N=(m=N)==null?void 0:m().value;if((N==null?void 0:N.path)!==void 0){R=Hu(N.path);var a=Hu(V.path);R=[E.target].concat(_.$e(R.slice(a.length-1)));EG1(S,R,V.negate?!N.value:N.value);return!0}var T=pv(k,h);var w=T.getChangeRecordSignal(J),P=!1;N=function(){if(!P){var F=
lI(k.owner,function(){return T.getWithPath([])});
P||(P=F!==void 0)}return{value:w(),rootWasDefined:P}};
R.signalCache[V.path]=N;R.partWasDefined!=null||(R.partWasDefined={});N=N();(a=R.partWasDefined)[0]||(a[0]=N.rootWasDefined);var B=lI(k.owner,function(){return T.getWithPath(J)});
R.partWasDefined[0]&&lI(k.owner,function(){return void ROR(E,S,V.negate?!B:B)});
return!0};
NIt=function(k,E,S,R,V,N){if(!VaC(k,E,S,R)){var h=QFj(k,E,R,V,N);lI(k.owner,function(){return void ROR(E,S,h)})}};
Ip1=function(k,E,S,R,V,N){S=_.n(S);for(var h=S.next(),J={};!h.done;J={infoIndex:void 0},h=S.next()){h=h.value;var m=h.bindings;J.infoIndex=h.infoIndex;h=h.parentInfo;if(m){m=_.n(m);for(var a=m.next(),T={};!a.done;T={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},a=m.next()){T.b$jscomp$256=a.value;if(J.infoIndex===void 0)throw Error("Og");T.bindingCtx$jscomp$4={};k.effect(function(w,P){return function(){V&&!V()||NIt(k,w.b$jscomp$256,E[P.infoIndex],w.bindingCtx$jscomp$4,R,N)}}(T,J))}}h&&Ip1(k,E,[h],
R,V,N)}};
nGI=function(k,E){k=(E.parentInfo?nGI(k,E.parentInfo):k).firstChild;for(var S=0;k;k=k.nextSibling)if(E.parentIndex===S++)return k;throw Error("Pg");};
hOl=function(k,E,S,R){k=document.importNode(k.content,!0);k.__noInsertionPoint=!(R==null?0:R.hasInsertionPoint);for(var V=Array(E.length),N={},h=0;h<E.length;h++){var J=E[h],m=nGI(k,J);V[h]=m;J.id&&(N[J.id]=m);if(J.templateInfo){var a=m.parentElement;a&&(a.templateInfo=J.templateInfo,a.parentSignalProxy=S,a.eventListenerHost=R.eventListenerHost,a.stampingEnabled=R.enabledSignal)}a=void 0;if((a=J.events)==null?0:a.length)for(a=0;a<J.events.length;a++){var T=J.events[a];iE1(R.eventListenerHost,m,T.name,
T.value,R.getModel)}}Ip1(S,V,E,R.thisCtx,R.enabledSignal,R.methodInvocationRequirement);return{root:k,nodes:V,nodesById:N}};
cnb=function(k,E){k=k();var S;(S=JnI.ShadyCSS)==null||S.prepareTemplate(k,E);E=v9b(k);return{template:k,nodeInfoList:E.nodeInfoList,hasInsertionPoint:E.hasInsertionPoint}};
apC=function(){mDm=!1;for(var k=AO.length,E=0;E<k;E++){var S=AO[E];if(S)try{S()}catch(R){Promise.resolve().then(function(){throw R;})}}AO.splice(0,k);
eO1+=k};
Pjh=function(k){mDm||(mDm=!0,ta1.textContent=(TIm++).toString());AO.push(k);return wji++};
_.xT=function(k,E,S){rJ++;k=E?new BIt(rJ,k,E,S):new Yni(rJ,k);ul.set(rJ,k);return rJ};
W3e=function(k){(k=ul.get(k))&&k.cancel()};
yn1=function(k,E){k=F3I.get(k);return k?(E=k.get(E))?E:null:null};
_.Lv=function(k,E,S,R){var V=yn1(k,E);if(!V){V=new oGj;var N=F3I.get(k);N||(N=new Map,F3I.set(k,N));N.set(E,V)}k=S.bind(k);V.run(k,R,void 0)};
_.XjC=function(k,E){var S;(S=yn1(k,E))==null||S.cancel()};
gG1=function(k){var E;(E=yn1(k,"doRender"))==null||E.flush()};
jN=function(k){var E;return(E=k.hostElement)!=null?E:k};
UDb=function(k){var E=k.indexOf(".");return E===-1?k:k.slice(0,E)};
HEt=function(k,E,S,R,V,N){N=(V=(R=N?UDb(E):E)?E:null)?k.get(V):k.__data[E];V&&N===void 0&&(N=S[E]);_.Me(k.hostElement,M8j(R)+"-changed",{value:N,queueProperty:!0,path:V!=null?V:void 0},{bubbles:!1,composed:!1})};
K3h=function(k,E){k.__isReflecting=!0;AuI(k.hostElement,E,k.__data[E]);k.__isReflecting=!1};
pje=function(k){if(k._onIronRequestResizeNotifications){var E=k._onIronRequestResizeNotifications.bind(k);k._onIronRequestResizeNotifications=function(S){_.bv(S)!==k.hostElement&&E(S)}}k._ariaActiveAttributeChanged&&(k._ariaActiveAttributeChanged=k._ariaActiveAttributeChanged.bind(k.hostElement));
k._activeChanged&&(k._activeChanged=function(S){k.toggles?Kv(k.hostElement,S?"true":"false",k.ariaActiveAttribute):k.hostElement.removeAttribute(k.ariaActiveAttribute);k._changedButtonState()});
k._asyncClick&&(k._asyncClick=function(){_.xT(function(){k.hostElement.click()},1)});
!k.keyEventTarget||k.keyEventTarget instanceof EventTarget||(k.keyEventTarget=jN(k.keyEventTarget));k._disabledChanged&&(k._disabledChanged=k._disabledChanged.bind(k.hostElement));k._observeItems&&(k._observeItems=function(S){var R=jN(S);return _.em(R).observeNodes(function(V){k._updateItems();k._updateSelected();_.Me(R,"iron-items-changed",V,{bubbles:!1,cancelable:!1})})});
k._updateItems&&k._updateItems===_.Dk._updateItems&&(k._updateItems=function(){var S=_.em(k.hostElement).queryDistributedElements(k.selectable||"*");S=Array.prototype.filter.call(S,k._bindFilterItem);k._setItems(S)});
k._computeKeyboardClass&&(k._computeKeyboardClass=function(S){_.E_(k.hostElement,"keyboard-focus",S)});
k.ensureRipple&&(k.ensureRipple=function(S){if(k.hasRipple&&!k.hasRipple()){if(!k._createRipple)return;k._ripple=k._createRipple();k._ripple.noink=k.noink;var R=k._rippleContainer||k.hostElement;R&&_.Cc(R).appendChild(k._ripple)}var V;if(S&&((V=k._ripple)==null?0:V.uiDownAction)){R=_.Cc(k._rippleContainer||k.hostElement);var N;V=(N=S.composedPath())==null?void 0:N[0];R.contains(V)&&k._ripple.uiDownAction(S)}});
k._updateMultiselectable&&(k._updateMultiselectable=function(S){S?k.hostElement.setAttribute("aria-multiselectable","true"):k.hostElement.removeAttribute("aria-multiselectable")})};
Ant=function(k,E,S){S=_.n(S);for(var R=S.next();!R.done;R=S.next())n9j(R.value.constructor,k);n9j(E.constructor,k)};
uvi=function(k,E){k=_.n(k);for(var S=k.next();!S.done;S=k.next())if(S=S.value,S.type==="signal"){var R=S.propertyKey;if(E.hasOwnProperty(R)&&E[R]!=null&&S.attributeType===Object){a:{R=E[R].constructor;for(var V=_.n(rnj),N=V.next();!N.done;N=V.next())if(N=N.value,R===N){R=N;break a}R=Object}S.attributeType=R}}};
xDe=function(){};
L3C=function(k){var E;return(E=k.hostElement)!=null?E:k};
j91=function(){throw Error("Tg");};
DDe=function(k,E){k.constructor.prototype.useSignals=!0;var S=new k.constructor;Ant(S,k,E.behaviors);uvi(E.reactiveSchemas,S);S={};for(var R=_.n(E.reactiveSchemas),V=R.next();!V.done;V=R.next())V=V.value,V.type==="signal"&&(S[V.propertyKey]=V.attributeType);var N={copyPropertiesToProto:j91,didRegister:!1,typesForSignals:S},h=["disable-upgrade"].concat(_.$e(E.observedAttributes)),J=function(m){$T.call(this,k,E,N,m)};
_.y(J,$T);_.mt.Object.defineProperties(J,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return h}}});
N.copyPropertiesToProto=function(){for(var m=0;m<E.behaviors.length;m++)hJl(E.behaviors[m],J.prototype);hJl(k,J.prototype)};
E.legacyOptimizations||N.copyPropertiesToProto();J.prototype.is=k.is;return J};
$DR=function(k,E){if(Object.getPrototypeOf(E.prototype).constructor!==_.p)throw Error("Ug");E.prototype.is=k.is;return DDe(E.prototype,k)};
fph=function(k){return k.type==="compute"||k.type==="computeWithMethod"};
vGh=function(k){for(var E=k.reactiveSchemas.filter(fph),S=new Map,R=new Map,V=new Map,N=_.n(E),h=N.next();!h.done;h=N.next())h=h.value,S.set(h.propertyKey,h),R.set(h.propertyKey,[]),V.set(h.propertyKey,0);N=0;E=_.n(E);for(h=E.next();!h.done;h=E.next()){h=h.value;for(var J=_.n(h.type==="computeWithMethod"?h.method.args:h.args),m=J.next();!m.done;m=J.next())m=m.value,m.type!=="literal"&&(m=m.path.split(".")[0],R.has(m)&&(R.get(m).push(h.propertyKey),V.set(h.propertyKey,V.get(h.propertyKey)+1),N++))}h=
[].concat(_.$e(R.keys())).filter(function(a){return V.get(a)===0});
for(E=[];h.length;)for(J=h.shift(),E.push(S.get(J)),J=_.n(R.get(J)),m=J.next();!m.done;m=J.next())m=m.value,V.set(m,V.get(m)-1),N--,V.get(m)===0&&h.push(m);S=k.reactiveSchemas.filter(function(a){return!fph(a)});
k.reactiveSchemas=[].concat(_.$e(S),_.$e(E))};
bER=function(k,E){if(E.properties)for(var S=_.n(Object.entries(E.properties)),R=S.next();!R.done;R=S.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;k.properties[R]=typeof V==="function"?{type:V}:V}E.observers&&k.observers.push.apply(k.observers,_.$e(E.observers));E.disabledPolySiReactions&&k.disabledPolySiReactions.push.apply(k.disabledPolySiReactions,_.$e(E.disabledPolySiReactions))};
ZER=function(k,E){for(var S=E.length-1;S>=0;S--){var R=E[S];Array.isArray(R)?ZER(k,R):k.indexOf(R)<0&&k.unshift(R)}};
dDI=function(k,E){k.reactiveSchemas=k.reactiveSchemas.filter(function(S){return S.type==="observe"&&E.includes(S.method.methodName)||fph(S)&&E.includes(S.propertyKey)?!1:!0})};
lpb=function(k,E){var S=E.prototype,R,V,N={is:k.is,reactiveSchemas:[],observedAttributes:[],behaviors:[E9I.InjectBehavior,X6.prototype],disableElementRegistration:k.disableElementRegistration,provide:(R=k.providers)!=null?R:[],reactivityMode:k.reactivityMode,signalProperties:(V=S.signalProperties)!=null?V:[]};"template"in E?N.templateGetter=function(){return E.template}:k.getTemplate&&(N.templateGetter=k.getTemplate);
S.behaviors&&ZER(N.behaviors,S.behaviors);s91(N,E);return N};
s91=function(k,E){for(var S=E.prototype,R={properties:{},observers:[],disabledPolySiReactions:[]},V=_.n(k.behaviors),N=V.next();!N.done;N=V.next())bER(R,N.value);bER(R,S);if(k.signalProperties)for(S=_.n(k.signalProperties),V=S.next();!V.done;V=S.next())delete R.properties[V.value];S=_.n(Object.entries(R.properties));for(V=S.next();!V.done;V=S.next()){N=_.n(V.value);V=N.next().value;N=N.next().value;var h=void 0;if((h=k.signalProperties)==null||!h.includes(V)){h=void 0;var J=k,m=N.type;if(!m)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{m=Reflect.getMetadata("design:type",E,V);for(var a=_.n(Maj),T=a.next();!T.done;T=a.next())if(T=T.value,m===T){m=T;break a}m=Object}else m=String;N.computed||N.selector||(J.reactiveSchemas.push({type:"signal",propertyKey:V,value:N.value,attributeType:m,readOnly:N.readOnly}),J.observedAttributes.push(_.Ne(V)));N.reflectToAttribute&&J.reactiveSchemas.push({type:"reflect",propertyKey:V});if(N.computed){m=pmm(N.computed);if(!m)throw Error("Vg");J.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:V,method:m,value:N.value})}N.observer&&J.reactiveSchemas.push({type:"observe",method:{methodName:N.observer,args:[{type:"path",path:V}]}});N.notify&&J.reactiveSchemas.push({type:"notify",propertyKey:V});N.selector&&J.reactiveSchemas.push({type:"redux",propertyKey:V,selector:N.selector,selectorArgs:(h=N.selectorArgs)!=null?h:[]})}}qnh&&vGh(k);E=_.n(R.observers);for(V=E.next();!V.done;V=E.next())S=k,V=V.value,(N=pmm(V))?S.reactiveSchemas.push({type:"observe",method:N}):console.log('Warning: unable to parse observe declaration: "'+
V+'"');dDI(k,R.disabledPolySiReactions)};
zOj=function(k,E){for(var S=0;S<E.length;S++){var R=E[S],V=void 0;(V=R).showHideApi!=null||(V.showHideApi={});V=void 0;!!k!==!((V=R.showHideApi)==null||!V.hideTemplateChildren)&&(R.nodeType===Node.TEXT_NODE?k?(R.showHideApi.polymerTextContent=R.textContent,R.textContent=""):(V=void 0,R.textContent=(V=R.showHideApi.polymerTextContent)!=null?V:null):R instanceof Element&&R.localName==="slot"?k?(R.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Rc)((0,_.Rc)(R).parentNode).replaceChild(R.showHideApi.polymerReplaced,
R)):(V=R.showHideApi.polymerReplaced)&&(0,_.Rc)((0,_.Rc)(V).parentNode).replaceChild(R,V):R instanceof HTMLElement&&R.style&&(k?(R.showHideApi.polymerDisplay=R.style.display,R.style.display="none"):R.style.display=R.showHideApi.polymerDisplay));R.showHideApi.hideTemplateChildren=k;R.showHideChildren&&R.showHideChildren(k)}};
OE1=function(){if(!Q9I){var k=document.createElement("style");k.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(k);Q9I=!0}};
fv=function(){return _.Y("disable_hidden_dom_if_using_stamper")};
Gyl=function(k,E){var S=_.vu().getState();return E?k.apply(null,[S].concat(_.$e(E))):k(S)};
EmC=function(){if(Cjb)return Cjb;var k=_.n(_.yg(0,void 0,"MB1Hb")),E=k.next().value;k.next();var S=k.next().value;_.vu().subscribe(function(){kji(S)});
return Cjb=E};
kji=function(k){SCh||(SCh=!0,Promise.resolve().then(function(){k(function(E){return E+1});
SCh=!1}))};
_.vu=function(){return RoI.getAppStore()};
VSm=function(k,E){return RoI.getSelectFn()(k,E)};
_.bl=function(k){RoI.getDispatchFn()(k)};
N6j=function(k,E){var S={},R;for(R in k)S[R]=E(k[R],R);return S};
_.Zk=function(k,E){return function(){var S;return(S=_.dt(k))!=null?S:E}};
_.dJ=function(k,E){var S=Object.assign({},k),R;for(R in E)E.hasOwnProperty(R)&&(S[R]=_.Zk(k[R],E[R]));return S};
Ibl=function(k,E,S){k instanceof Element&&(S.debugName||(S.debugName="<"+k.tagName.toLowerCase()+(k.tagName.includes("-")?">":"."+k.className+">")),_.Y("ytwiz_enable_debug_component_props")&&(k.debugProps||(k.debugProps=N6j(E,function(R){return function(){return R()}}))))};
i4h=function(k){var E;return nmm.value.traceAllComponents||((E=bD.stack[bD.stack.length-1])==null?void 0:E.name)!=="ytComponent"?Xqb("ytComponent",{},k):k()};
_.f=function(k,E){var S=function(R){return i4h(function(V){var N=hoI={};var h;if(((h=S)==null?0:h.idomCompat)&&R.renderedFromIdom){var J;h=typeof S.idomCompat==="object"?(J=S)==null?void 0:J.idomCompat.callbacks:{};h=_.n(Jqe(R,h,S.debugName));J=h.next().value;h.next();h=h.next().value;var m=cqC(k,J);N.privateValue=m;hoI=void 0;Ibl(m,J,S);N={debugName:S.debugName};V&&N&&Object.assign(V.attributes,N);V=Tch(m);V=Array.isArray(V)?V[0]:V;V[o2]||(V[o2]={});V[o2].updateSignalsFromIdomProps=h;m_h(J,m);return m}h=
N6j(R,eoR);J=cqC(k,h);N.privateValue=J;hoI=void 0;Ibl(J,h,S);N={debugName:S.debugName};V&&N&&Object.assign(V.attributes,N);m_h(h,J);return J})};
S.debugName=E===void 0?"":E;return S};
cqC=function(k,E){k=k(E);return HC(k)};
abI=function(k,E){k[E]||(k=new _.LC("IDOM interop setter undefined. Key:",E),_.bM(k))};
eoR=function(k,E){return E==="children"||E==="ref"||typeof k==="function"||k===void 0?k:function(){return _.dt(k)}};
Jqe=function(k,E,S){var R={},V={},N={},h={},J;for(J in k){h={key$jscomp$952:h.key$jscomp$952};h.key$jscomp$952=J;var m=k[h.key$jscomp$952];if(h.key$jscomp$952==="children"||h.key$jscomp$952==="ref")R[h.key$jscomp$952]=m;else if(typeof m==="function")h.key$jscomp$952 in E||m.length>0?(N[h.key$jscomp$952]=m,R[h.key$jscomp$952]=function(T){return function(){return N[T.key$jscomp$952].apply(N,_.$e(_.sX.apply(0,arguments)))}}(h)):R[h.key$jscomp$952]=m;
else if(!(k[h.key$jscomp$952]===void 0&&h.key$jscomp$952 in E)){var a=_.n(_.yg(k[h.key$jscomp$952],{debugName:h.key$jscomp$952+":cwis:"+S},"rvrjQe"));m=a.next().value;a=a.next().value;R[h.key$jscomp$952]=m;V[h.key$jscomp$952]=a}}return[R,V,function(T){var w={},P;for(P in T)w={key$jscomp$953:w.key$jscomp$953,val$jscomp$122:void 0},w.key$jscomp$953=P,w.val$jscomp$122=T[w.key$jscomp$953],w.key$jscomp$953!=="children"&&w.key$jscomp$953!=="ref"&&(typeof w.val$jscomp$122==="function"?w.key$jscomp$953 in
E?N[w.key$jscomp$953]=w.val$jscomp$122:w.val$jscomp$122.length>0&&(N[w.key$jscomp$953]=w.val$jscomp$122,_.dg(new _.LC("Callback detected that was not set in the idomCompat callbacks map. Key:",w.key$jscomp$953))):w.key$jscomp$953 in E&&w.val$jscomp$122===void 0||(abI(V,w.key$jscomp$953),Ko(function(B){return function(){V[B.key$jscomp$953](B.val$jscomp$122)}}(w))))}]};
w$I=function(k,E,S){var R=CTj(k.prototype,tSb,k.prototype.behaviors);R.prototype.is=E;R.prototype.localName=E;S&&T6R(R,S);return function(V){V&&(R.prototype.hostElement=V);var N=new R;N.root=N;N.hostElement=V;return N}};
T6R=function(k,E){var S;Object.defineProperty(k.prototype,"_template",{get:function(){S===void 0&&(S=E());return S},
set:function(R){S=R},
configurable:!0,enumerable:!0})};
F_h=function(k,E,S,R){function V(){if(!B){for(var F=new Set,K=_.n(T),r=K.next();!r.done;r=K.next()){r=r.value;for(var x=_.n(Object.getOwnPropertyNames(r)),L=x.next();!L.done;L=x.next()){L=L.value;var q=void 0,M=(q=Object.getOwnPropertyDescriptor(r,L))==null?void 0:q.value;M&&M instanceof Function&&!s_(L)&&(!J[L]||_.Y("polymer_forward_method_killswitch"))&&F.add(L)}}K=_.n(Object.entries(Object.getOwnPropertyDescriptors(k.prototype)));for(r=K.next();!r.done;r=K.next())x=_.n(r.value),r=x.next().value,
x=x.next().value,x.value instanceof Function&&!s_(r)&&F.add(r);B=F}return B}
PNh(k,E,R==null?void 0:R.providers);k4b(k.prototype,k,!0);var N=w$I(k,E,S),h,J=(h=k.prototype.properties)!=null?h:{},m,a,T=(a=(m=k.prototype.behaviors)==null?void 0:m.flat(Infinity))!=null?a:[];S=_.n(T);for(h=S.next();!h.done;h=S.next())J=Object.assign({},h.value.properties,J);var w=[].concat(_.$e(B6m),_.$e(Object.keys(J).map(function(F){return _.Ne(F)}))),P=!1,B;
return{ctor:function(F,K){var r=N(F),x,L;F=[].concat(_.$e((x=R==null?void 0:R.allowedProps)!=null?x:[]),_.$e((L=R==null?void 0:R.allowedPropsFromBehaviors)!=null?L:[]));r.allowedProps=F.length>0?F:void 0;x={};L=_.n(w);for(F=L.next();!F.done;F=L.next())F=F.value,x[F]=_.Ir(F);r.__dataAttributes=x;var q=r.ready.bind(r);r.ready=function(){K.beforeReady();q();if(tO(E)&&!P){var M=r.__templateInfo;if(M==null?0:M.hostProps){M=_.n(Object.keys(M.hostProps));for(var d=M.next();!d.done;d=M.next())wJ(E,d.value,
"PROPERTY_ACCESS_GET_INTERNAL")}P=!0}};
r._overrideLegacyUndefined=!0;return r},
props:J,observedAttributes:w,getInitialMethods:V,getPropsToForwardBeforeRegister:function(){for(var F=[],K=new Set,r=_.n(Object.keys(J)),x=r.next();!x.done;x=r.next())x=x.value,F.push([x,J[x].readOnly]),K.add(x);r=V();x=_.n(Object.keys(Object.getOwnPropertyDescriptors(k.prototype)));for(var L=x.next();!L.done;L=x.next())L=L.value,!YCj(L)||r.has(L)||K.has(L)||(F.push([L,!1]),K.add(L));K=_.n(W_1);for(r=K.next();!r.done;r=K.next())F.push([r.value,!0]);return F},
getPropsToForwardBeforeReady:function(F){for(var K=[],r=_.n(Object.entries(F)),x=r.next();!x.done;x=r.next()){var L=_.n(x.value);x=L.next().value;L=L.next().value;if(YCj(x)&&!(L instanceof Function)&&(K.push([x,!1]),tO(E))){var q=L=void 0;(q=(L=F)._createPropertyAccessor)==null||q.call(L,x)}}return K},
shouldForwardProp:YCj,shouldLog:tO}};
PNh=function(k,E,S){SOb(k,S);k.prototype.behaviors.unshift(yqR);if(ZWI()){if(tO(E)){var R;(R=k.prototype).behaviors!=null||(R.behaviors=[]);k.prototype.behaviors.unshift(M2I())}qsh(k)}_.g(X6.prototype)(k.prototype,"__templateHelpers")};
s_=function(k){return omi.has(k)||k.startsWith("__compute__")};
YCj=function(k){return!s_(k)&&!k.startsWith("_")&&!k.endsWith("_")};
K_b=function(k,E){function S(){var P=m();P=_.n(P);for(var B=P.next();!B.done;B=P.next()){var F=_.n(B.value);B=F.next().value;F=F.next().value;X$b(w.prototype,B,F)}R=!0}
var R=!1,V=k.ctor,N=k.getInitialMethods,h=k.observedAttributes,J=k.getPropsToForwardBeforeReady,m=k.getPropsToForwardBeforeRegister,a=k.shouldForwardProp,T=k.shouldLog,w=function(){var P=HTMLElement.call(this)||this;P.didForwardDynamicProps=!1;P.loggingStatus={};R||S();P.inst=V(P,{beforeReady:function(){P.didForwardDynamicProps||(P.forwardDynamicProps(),P.didForwardDynamicProps=!0)}});
P.controllerProxy=s$b(P.inst,E);P.forwardMethods();return P};
_.y(w,HTMLElement);w.prototype.forwardMethods=function(){for(var P=this,B=_.n(this.inst.getExtraMethodsToForward()),F=B.next(),K={};!F.done;K={method$jscomp$65:void 0},F=B.next()){var r=_.n(F.value);F=r.next().value;r=r.next().value;K.method$jscomp$65=r;this[F]=function(x){return function(){return x.method$jscomp$65.call.apply(x.method$jscomp$65,[P.inst].concat(_.$e(_.sX.apply(0,arguments))))}}(K)}B=_.n(N());
for(K=B.next();!K.done;K=B.next())K=K.value,a(K)&&gmb(this,K),T(E)&&!s_(K)&&U_C(this.inst,K)};
w.prototype.forwardDynamicProps=function(){var P=J(this.inst);P=_.n(P);for(var B=P.next();!B.done;B=P.next()){var F=_.n(B.value);B=F.next().value;F=F.next().value;X$b(this,B,F);T(E)&&!s_(B)&&H4l(this.inst,B)}};
w.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
w.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
w.prototype.attributeChangedCallback=function(P,B,F){this.inst.attributeChangedCallbackWrapper(P,B,F)};
_.mt.Object.defineProperties(w.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return E}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.mt.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return h}}});
customElements.define(E,w)};
X$b=function(k,E,S){k.hasOwnProperty(E)||Object.defineProperty(k,E,{get:function(){var R,V=((R=k.is)!=null?R:k.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||wJ(V,E,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,R=this.polymerController[E],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,R},
set:function(R){if(!S){var V,N=((V=k.is)!=null?V:k.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||wJ(N,E,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=E,this.loggingStatus.bypassProxyController=!0,this.polymerController[E]!==R&&(V={},this.polymerController.setProperties((V[E]=R,V)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
gmb=function(k,E,S){var R=k.polymerController;k[E]=function(){var V=_.sX.apply(0,arguments);k.loggingStatus.currentExternalCall=E;k.loggingStatus.bypassProxyController=!0;var N,h=((N=k.is)!=null?N:k.tagName).toLowerCase();wJ(h,E,"PROPERTY_ACCESS_CALL_EXTERNAL");var J;N=(J=S!=null?S:R[E])==null?void 0:J.call.apply(J,[R].concat(_.$e(V)));k.loggingStatus.currentExternalCall=void 0;k.loggingStatus.bypassProxyController=!1;return N}};
U_C=function(k,E){var S=k.hostElement,R=k[E];k[E]=function(){var V=_.sX.apply(0,arguments);if(S.loggingStatus.currentExternalCall!==E){var N,h=((N=S.is)!=null?N:S.tagName).toLowerCase();wJ(h,E,"PROPERTY_ACCESS_CALL_INTERNAL")}return R==null?void 0:R.apply(k,V)}};
H4l=function(k,E){var S=Object.getOwnPropertyDescriptor(k,E);S&&!S.get&&Object.defineProperty(k,E,{get:function(){lQm(k.hostElement,E);return S.value},
set:function(R){Pu(k.hostElement,E);S.value=R}})};
p$h=function(k){return _.Y("poly_si_dom_repeat_detached_fix_killswitch")||k.tagName!=="PS-DOM-REPEAT"?k.tagName==="DOM-REPEAT":!0};
rqe=function(k,E){var S=AqR(k);k instanceof Element&&S.unshift(k);k=_.n(S.filter(p$h));for(var R=k.next();!R.done;R=k.next()){var V=void 0;R=_.n((V=R.value.__instances)!=null?V:[]);for(V=R.next();!V.done;V=R.next())if(V=V.value,V.root){V=Array.from(V.root.children);V=_.n(V);for(var N=V.next();!N.done;N=V.next())S.push.apply(S,_.$e(rqe(N.value,E)))}}return S.filter(function(h){return h.usePatchedLifecycles&&h.lifecycleIsConnected===E})};
AqR=function(k){var E=null;k instanceof Element?E=Element.prototype.querySelectorAll:k instanceof DocumentFragment&&(E=DocumentFragment.prototype.querySelectorAll);return E?Array.from(E.call(k,"*")):[]};
ll=function(k){_.FF(function(){for(var E=_.n(rqe(k,!1)),S=E.next();!S.done;S=E.next()){S=S.value;S.lifecycleIsConnected=!0;try{var R=void 0,V=void 0,N=void 0,h=void 0;(R=(h=S.polymerController)!=null?h:S)==null||(N=(V=R).connectedCallback)==null||N.call(V)}catch(J){_.bM(J)}}})};
MO=function(k){_.FF(function(){for(var E=_.n(rqe(k,!0)),S=E.next();!S.done;S=E.next()){S=S.value;S.lifecycleIsConnected=!1;try{var R=void 0,V=void 0,N=void 0,h=void 0;(R=(h=S.polymerController)!=null?h:S)==null||(N=(V=R).disconnectedCallback)==null||N.call(V)}catch(J){_.bM(J)}}})};
fbj=function(){if(!uJ1){uJ1=!0;var k=[Node];qO&&k.push(qO.Wrapper);var E=Node.prototype.insertBefore,S=Node.prototype.removeChild;k=_.n(k);for(var R=k.next(),V={};!R.done;V={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},R=k.next())R=R.value,V.nativeInsertBefore=R.prototype.insertBefore,R.prototype.insertBefore=function(h){return function(J,m){if(J instanceof DocumentFragment){var a=Array.from(J.children);J=h.nativeInsertBefore.call(this,J,m);
if(this.isConnected&&h.nativeInsertBefore===E)for(m=_.n(a),a=m.next();!a.done;a=m.next())ll(a.value);return J}a=J instanceof Element&&J.isConnected;m=h.nativeInsertBefore.call(this,J,m);a&&MO(J);this.isConnected&&ll(J);return m}}(V),V.nativeAppendChild=R.prototype.appendChild,R.prototype.appendChild=function(h){return function(J){if(J instanceof DocumentFragment){var m=Array.from(J.children);
J=h.nativeAppendChild.call(this,J);if(this.isConnected){m=_.n(m);for(var a=m.next();!a.done;a=m.next())ll(a.value)}return J}m=J instanceof Element&&J.isConnected;a=h.nativeAppendChild.call(this,J);m&&MO(J);this.isConnected&&ll(J);return a}}(V),V.nativeRemoveChild=R.prototype.removeChild,R.prototype.removeChild=function(h){return function(J){var m=J instanceof Element&&J.isConnected,a=h.nativeRemoveChild.call(this,J);
m&&S===h.nativeRemoveChild&&MO(J);return a}}(V),V.nativeReplaceChild=R.prototype.replaceChild,R.prototype.replaceChild=function(h){return function(J,m){if(J instanceof DocumentFragment){var a=Array.from(J.children);
J=h.nativeReplaceChild.call(this,J,m);if(this.isConnected)for(MO(m),m=_.n(a),a=m.next();!a.done;a=m.next())ll(a.value);return J}a=J instanceof Element&&J.isConnected;var T=this.isConnected,w=h.nativeReplaceChild.call(this,J,m);T&&MO(m);a&&MO(J);T&&ll(J);return w}}(V);
k=[Element];qO&&k.push(qO.Wrapper);k=_.n(k);R=k.next();for(V={};!R.done;V={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},R=k.next())R=R.value,R.prototype.before=x_1(R.prototype.before),R.prototype.after=x_1(R.prototype.after),V.nativeReplaceWith=R.prototype.replaceWith,R.prototype.replaceWith=function(h){return function(){var J=_.sX.apply(0,arguments),m=_.n(L_A(J)),a=m.next().value,
T=m.next().value;m=this.isConnected;h.nativeReplaceWith.apply(this,J);J=_.n(T);for(T=J.next();!T.done;T=J.next())MO(T.value);if(m)for(MO(this),a=_.n(a),m=a.next();!m.done;m=a.next())m=m.value,m instanceof Element&&ll(m)}}(V),V.nativeRemove=R.prototype.remove,R.prototype.remove=function(h){return function(){var J=this.isConnected;
h.nativeRemove.call(this);J&&MO(this)}}(V),V.nativeInsertAdjacentElement=R.prototype.insertAdjacentElement,R.prototype.insertAdjacentElement=function(h){return function(J,m){var a=m.isConnected;
J=h.nativeInsertAdjacentElement.call(this,J,m);a&&MO(m);J.isConnected&&ll(J);return J}}(V),V.nativeSetAttribute=R.prototype.setAttribute,R.prototype.setAttribute=function(h){return function(J,m){var a=jMm(this);
if(!a.usePatchedLifecycles)return h.nativeSetAttribute.call(this,J,m);var T=this.getAttribute(J);h.nativeSetAttribute.call(this,J,m);m=this.getAttribute(J);D_j(a,J,T,m)}}(V),V.nativeRemoveAttribute=R.prototype.removeAttribute,R.prototype.removeAttribute=function(h){return function(J){var m=jMm(this);
if(!m.usePatchedLifecycles)return h.nativeRemoveAttribute.call(this,J);var a=this.getAttribute(J);h.nativeRemoveAttribute.call(this,J);a!==null&&D_j(m,J,a,null)}}(V),V.nativeToggleAttribute=R.prototype.toggleAttribute,R.prototype.toggleAttribute=function(h){return function(J,m){var a=jMm(this);
if(!this.usePatchedLifecycles)return h.nativeToggleAttribute.call(this,J,m);var T=this.getAttribute(J),w=T!==null;m=h.nativeToggleAttribute.call(this,J,m);m!==w&&D_j(a,J,T,m?"":null);return m}}(V);
k=[Document,DocumentFragment,Element,ShadowRoot];qO&&k.push(qO.Wrapper);k=_.n(k);for(V=k.next();!V.done;V=k.next())V=V.value,V.prototype.prepend=x_1(V.prototype.prepend),V.prototype.append=x_1(V.prototype.append);(qO==null?void 0:qO.noPatch)===!0&&$_i();document.readyState==="complete"?ll(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&ll(document.body)});
var N=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");N&&N.get&&N.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:N.enumerable,configurable:!0,get:N.get,set:function(h){h||MO(this);N.set.call(this,h);return h}})}};
x_1=function(k){return function(){var E=_.sX.apply(0,arguments),S=_.n(L_A(E)),R=S.next().value;S=S.next().value;k.apply(this,E);E=_.n(S);for(S=E.next();!S.done;S=E.next())MO(S.value);if(this.isConnected)for(R=_.n(R),E=R.next();!E.done;E=R.next())E=E.value,E instanceof Element&&ll(E)}};
$_i=function(){for(var k=_.n(vmh),E=k.next();!E.done;E=k.next()){E=E.value.prototype;for(var S=_.n(b4l),R=S.next();!R.done;R=S.next()){R=R.value;var V=Object.getOwnPropertyDescriptor(E,R);V&&Object.defineProperty(E,"__shady_native_"+R,V)}}};
D_j=function(k,E,S,R){var V,N;if((V=k.polymerController)==null?0:(N=V.observedAttributes)==null?0:N.includes(E))if(k=k.polymerController,k.attributeChangedCallbackWrapper)k.attributeChangedCallbackWrapper.call(k,E,S,R);else{var h;(h=k.attributeChangedCallback)==null||h.call(k,E,S,R)}};
L_A=function(k){var E=[],S=[];k=_.n(k);for(var R=k.next();!R.done;R=k.next())R=R.value,R instanceof Element&&R.isConnected&&S.push(R),R instanceof DocumentFragment?E.push.apply(E,_.$e(Array.from(R.children))):E.push(R);return[E,S]};
jMm=function(k){return!(k instanceof Element)&&k.node instanceof Element?k.node:k};
Z4C=function(k,E){var S=E?["children"].concat(_.$e(E)):["children"];E=[];S=_.n(S);for(var R=S.next();!R.done;R=S.next()){var V=R.value;if(k.hasOwnProperty(V)){R=k[V];R=typeof R==="function"?R():R;R=Array.isArray(R)?R:[R];R=HC(R).flat();if(V!=="children"){V=M8j(V);for(var N=_.n(R),h=N.next();!h.done;h=N.next())h=h.value,h instanceof Element&&h.setAttribute("slot",V)}E.push(R)}}E.length===0?k=[]:(k=HC(_.e("div",null,E)),k=Array.from(k.childNodes));return k};
sMb=function(k,E,S){var R={};_.sm(function(){var V={},N;for(N in E)if(E.hasOwnProperty(N)){var h=void 0,J=void 0;if(!(((h=S.slotProps)==null?0:h.includes(N))||N==="children"||((J=S.callbackProps)==null?0:J.includes(N))||N==="ref")&&(h=_.dt(E[N]),R[N]!==h)){R[N]=h;J=void 0;var m=(J=k.hostElement)!=null?J:k;!S.skipHostForwardedProps&&d_i.has(N)&&(m[N]=h);V[N]=h}}Ko(function(){if(k.setProperties)k.setProperties(V);else for(var a=_.n(Object.entries(V)),T=a.next();!T.done;T=a.next()){var w=_.n(T.value);
T=w.next().value;w=w.next().value;k[T]=w}})},"i")};
MSi=function(k,E,S,R){var V=Z4C(S,R.slotProps),N=(0,_.Rc)(k);V=_.n(V);for(var h=V.next();!h.done;h=V.next())N.appendChild(h.value);sMb(E,S,R);R=_.n(R.callbackProps||[]);V=R.next();for(N={};!V.done;N={kebabEventName:void 0,eventListener:void 0},V=R.next())h=V=V.value,String(V).substring(0,2)==="on"&&S[h]?(N.kebabEventName=M8j(String(V).substring(2)),N.eventListener=S[h],k.addEventListener(N.kebabEventName,N.eventListener),_.bI(function(T){return function(){k.removeEventListener(T.kebabEventName,T.eventListener)}}(N))):
E[h]=S[h];
if(S.ref){S=_.n(lbI(S.ref));var J=S.next().value,m=S.next().value,a=E.attached.bind(E);E.attached=function(){J(k);a()};
_.bI(function(){m()})}};
lbI=function(k){if(typeof k==="function"){var E;return[function(S){E=k(S)},
function(){var S;(S=E)==null||S()}]}if(!k.onRender||!k.onUnmount)throw Error("Zg");
return[k.onRender,k.onUnmount]};
qC1=function(k,E){E=E===void 0?{}:E;var S=function(R){var V=document.createElement(k),N;var h=(N=V.polymerController)!=null?N:V;MSi(V,h,R,E);return V};
S.debugName=k+" (CoW wrapped)";return S};
GjR=function(k,E,S,R,V){R=R===void 0?{}:R;var N=zoh,h=!1;N?(h=!0,zoh=void 0):(QMh=E,N=document.createElement(E),QMh=void 0);var J=N;J.usePatchedLifecycles=!0;J.lifecycleIsConnected=!1;N.loggingStatus={};var m=O41(k,E,N,R,V);_.bI(function(){J.lifecycleIsConnected&&(J.lifecycleIsConnected=!1,m.disconnectedCallback())});
h||(N.__noInsertionPoint=!0,MSi(N,m,S,R));return N};
O41=function(k,E,S,R,V){V=V===void 0?F_h:V;CNC[E]!=null||(CNC[E]=V(k,E,R==null?void 0:R.getTemplate,R));var N=CNC[E],h=N.ctor;V=N.getInitialMethods;var J=N.getPropsToForwardBeforeReady;k=N.getPropsToForwardBeforeRegister;R=N.shouldForwardProp;var m=N.observedAttributes,a=N.shouldLog,T=h(S,{beforeReady:function(){var w=T;w._takeAttributes?w._takeAttributes():w.setPropertiesFromInitialAttributeValues&&w.setPropertiesFromInitialAttributeValues();w=_.n(J(S.polymerController));for(var P=w.next();!P.done;P=
w.next()){var B=_.n(P.value);P=B.next().value;B=B.next().value;X$b(S,P,B);a(E)&&!s_(P)&&H4l(S.polymerController,P)}S.polymerController=s$b(T,E)}});
S.polymerController=T;S.polymerController.observedAttributes=m;N=_.n(T.getExtraMethodsToForward());for(h=N.next();!h.done;h=N.next())m=_.n(h.value),h=m.next().value,m=m.next().value,gmb(S,h,m);V=_.n(V());for(N=V.next();!N.done;N=V.next())N=N.value,R(N)&&gmb(S,N),a(E)&&!s_(N)&&U_C(T,N);k=_.n(k());for(R=k.next();!R.done;R=k.next())V=_.n(R.value),R=V.next().value,V=V.next().value,X$b(S,R,V);return T};
kH1=function(k){var E=zN;zN=k;return E};
S1i=function(k){if(QO.has(k)&&zN&&EUI(zN)===k){var E;(E=zN)._numRenders!=null||(E._numRenders=0);zN._numRenders++;if(zN._numRenders>1)throw Error("$g");return zN}};
Rgh=function(k){QO.has(EUI(k))&&zN!==k&&(k._isInert=!0)};
EUI=function(k){var E;return(E=k==null?void 0:k.tagName.toLowerCase())!=null?E:""};
VgA=function(k,E){if(k.componentType===Lo)throw Error("ah");QO.add(E);var S=function(){var R=HTMLElement.call(this)||this;R.is=E;if(QMh===E)return R.isInert=!0,R;R.createElement();return R};
_.y(S,HTMLElement);S.prototype.createElement=function(){if(!this.isInert){zoh=this;var R=_.n(_.dBm(function(){return _.e(k,null)})).next().value;
zoh=void 0;ljm(this);return R}};
customElements.define(E,S)};
I6e=function(k,E,S,R,V){k.prototype.is=E;(R==null?0:R.useSink)?NiI(k,E,S,R,V):(S=F_h(k,E,S,R),K_b(S,E));return k};
NiI=function(k,E,S,R,V){fbj();var N=_.f(function(h){return GjR(k,E,h,Object.assign({},R,{getTemplate:S}),V)},"j");
N.debugName=E+" (CoW wrapped)";VgA(N,E);return N};
i$I=function(k){return!nUj.has(k)};
cce=function(k,E,S,R){function V(){if(!w){for(var P=new Set(hgI),B=_.n(N.behaviors),F=B.next();!F.done;F=B.next()){F=F.value;for(var K=_.n(Object.getOwnPropertyNames(F)),r=K.next();!r.done;r=K.next()){r=r.value;var x=void 0,L=(x=Object.getOwnPropertyDescriptor(F,r))==null?void 0:x.value;L&&L instanceof Function&&(!a[r]||_.Y("polymer_forward_method_killswitch"))&&P.add(r)}}B=_.n(Object.entries(Object.getOwnPropertyDescriptors(k.prototype)));for(F=B.next();!F.done;F=B.next())K=_.n(F.value),F=K.next().value,
K=K.next().value,K.value instanceof Function&&P.add(F);w=P}return w}
var N=lpb({is:E,disableElementRegistration:!1,getTemplate:S,providers:R==null?void 0:R.providers,reactivityMode:R==null?void 0:R.reactivityMode},k);if((R==null?0:R.allowedProps)||(R==null?0:R.allowedPropsFromBehaviors)){var h,J;N.allowedProps=[].concat(_.$e((h=R.allowedProps)!=null?h:[]),_.$e((J=R.allowedPropsFromBehaviors)!=null?J:[]))}var m=$DR(N,k);E=m.observedAttributes;var a={};S=_.n(N.reactiveSchemas);for(R=S.next();!R.done;R=S.next())if(R=R.value,R.type==="signal")a[R.propertyKey]={readOnly:R.readOnly},
R.readOnly&&(a[tpI(R.propertyKey)]={readOnly:!0});else if(R.type==="compute"||R.type==="computeWithMethod"||R.type==="redux")a[R.propertyKey]={readOnly:!0};var T=N.reactiveSchemas.length,w;return{ctor:function(P,B){P=new m(P);P.beforeReady=B.beforeReady;return P},
props:a,observedAttributes:E,getInitialMethods:V,getPropsToForwardBeforeRegister:function(){for(var P=[],B=new Set,F=_.n(JcI),K=F.next();!K.done;K=F.next())K=K.value,P.push([K,K!=="observers"&&K!=="properties"]),B.add(K);F=_.n(Object.keys(a));for(K=F.next();!K.done;K=F.next())K=K.value,P.push([K,a[K].readOnly]),B.add(K);F=V();K=_.n(Object.keys(Object.getOwnPropertyDescriptors(k.prototype)));for(var r=K.next();!r.done;r=K.next())r=r.value,!i$I(r)||F.has(r)||B.has(r)||(P.push([r,!1]),B.add(r));P.push(["allowedProps",
!0]);return P},
getPropsToForwardBeforeReady:function(P){var B=[];P=_.n(Object.keys(P));for(var F=P.next();!F.done;F=P.next()){F=F.value;var K=V();i$I(F)&&!K.has(F)&&B.push([F,!1])}P=_.n(N.reactiveSchemas.slice(T));for(F=P.next();!F.done;F=P.next())F=F.value,F.type!=="compute"&&F.type!=="computeWithMethod"&&F.type!=="redux"&&F.type!=="signal"||B.push([F.propertyKey,F.type==="signal"?F.readOnly:!0]);return B},
shouldForwardProp:i$I,shouldLog:tO}};
_.b=function(k,E,S,R){var V,N,h=(N=(V=R)==null?void 0:V.mode)!=null?N:0;R!=null||(R={});var J;(J=R).reactivityMode!=null||(J.reactivityMode=0);h===1&&_.B_("creator_poly_si_disable_list").includes(E)&&(h=2);return h===1?I6e(k,E,S,Object.assign({},R,{useSink:!0}),cce):I6e(k,E,S,Object.assign({},R,{useSink:h===2}))};
_.O_=function(){return function(k,E,S,R){var V,N,h=(N=(V=R)==null?void 0:V.mode)!=null?N:2;R!=null||(R={});var J;(J=R).reactivityMode!=null||(J.reactivityMode=0);if(h===0)throw Error("bh`"+h);return NiI(k,E,S,R,h===1?cce:void 0)}};
_.GN=function(k){return _.Y("creator_poly_si_killswitch")?!1:_.Y("force_all_poly_si_batches")&&(k==="poly_si_all_on_test_check"||k==="creator_poly_si_batch_050"?0:k)||document.documentElement.hasAttribute("use-signals")?!0:!k||_.Y(k+"_holdback_enabled")&&_.Y("kevlar_polysi_holdback")?!1:_.Y(k)};
Cv=function(k){return k?k.icon?k.icon.iconType.toLowerCase():k.customThumbnail?"member":"":""};
m9C=function(k){if(!k)return"";k=_.n(k);for(var E=k.next();!E.done;E=k.next())if((E=E.value)&&E.liveChatAuthorBadgeRenderer&&(E=Cv(E.liveChatAuthorBadgeRenderer))&&E!=="verified")return E;return""};
egR=function(k,E){if(!k)return null;var S;return((S=k.find(function(R){return R&&R.liveChatAuthorBadgeRenderer?Cv(R.liveChatAuthorBadgeRenderer)===E:!1}))==null?void 0:S.liveChatAuthorBadgeRenderer)||null};
_.Bi1=function(k){var E=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;k=a6j(k);E=a6j(E);var S=tgm(k.hex);E=tgm(E.hex);var R=E[0]/255;var V=E[1]/255,N=E[2]/255,h=Math.max(R,V,N),J=Math.min(R,V,N),m=0,a=0,T=.5*(h+J);h!=J&&(h==R?m=60*(V-N)/(h-J):h==V?m=60*(N-R)/(h-J)+120:h==N&&(m=60*(R-V)/(h-J)+240),a=0<T&&T<=.5?(h-J)/(2*T):(h-J)/(2-2*T));R=[Math.round(m+360)%360,a,T];S=Tib(S,E);for(k=wAA(k.hex);S<4.5;){k=R[2]>=.5?k.darker((4.5-S)/2):k.brighter((4.5-S)/2);S=k.toString();
V=P0l(S);if(!V.length)throw Error("Wd`"+S);S=V;S=Tib(S,E)}return k.hex()};
Tib=function(k,E){k=_.Rjh(k);E=_.Rjh(E);return(Math.max(k,E)+.05)/(Math.min(k,E)+.05)};
_.kX=function(k){return"#"+("000000"+(k&16777215).toString(16)).slice(-6)};
_.Y1h=function(k){for(var E=0,S=0;S<k.length;S++)E=k.charCodeAt(S)+((E<<5)-E);k="#";for(S=0;S<3;S++)k+=("00"+(E>>S*8&255).toString(16)).slice(-2);return k};
W6l=function(k){k=(k||"").split(":");k.length===1&&k.unshift("yt-icons");k[1]=k[1].toLowerCase();return k};
U9I=function(k,E){var S=(E=E===void 0?!1:E)?F6m:ycb,R=E?oUt:XAi;k.getIconNames().forEach(function(V){V=E?V:V.substring(V.indexOf(":")+1);k.name==="yt-icons"?gU1.add(V):V.includes("-filled")?S.add(V):R.add(V)})};
Ek=function(k,E,S,R){S=S===void 0?!1:S;R=R===void 0?!1:R;var V,N,h;return _.c(function(J){if(J.nextAddress==1)return J.yield(H$m,2);if(R)return J.return(gU1.has(k));V=S?F6m:ycb;N=S?oUt:XAi;return E?(h=k.includes("-filled")?k:k.concat("-filled"),J.return(V.has(h))):J.return(N.has(k))})};
_.Ace=function(k){if(K6m(k))return k;var E=k=k.toLowerCase();(k=pAl.get(k))&&(E=k);return E};
_.SF=function(k){if(K6m(k))return k.toString();var E=rcb.get(k);if(E)return E;E=k.toLowerCase();var S="yt-icons",R=E.replace(/_/g,"-");switch(k){case "MY_CHANNEL":E="account_circle";break;case "ADD_TO_LIBRARY":E="add";break;case "ALERT_WARN_RED":E="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":E="person_music";break;case "BLOCK_USER":E="block";break;case "CAPTIONS":E="closed_caption";break;case "CLOSED_CAPTION":S="av";E="closed-caption";break;case "COLLECTION":S="maps";E="layers";break;case "CONTACT":S=
"icons";E="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":S="yt-studio-system-icons";E=R.split("creator-studio-")[1];break;case "DISMISSAL":E="close";break;case "DO_NOT_DISTURB":E="block";break;case "DOGFOOD":S="icons";E="pets";break;case "DRAFT":E="paper_corner_folded";
break;case "EMPTY_LIKE":E="like_outline";break;case "EXIT_APP":E="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":E=R;break;case "GAMES":S="ytg";E="my-games";break;case "GO_TO_PAGE":E="arrow-forward";break;case "GROUP":S="social";break;case "HIDE":E="not_interested";break;case "INPUT_COMPONENT":S="icons";E="settings-input-component";break;case "KIDS_BLOCK":E="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":S="ytg";E="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":S=
"ytg";E="membership-post-purchase";break;case "MULTIVIEW":E="screen_multi_view";break;case "MY_LOCATION":S="maps";E=R;break;case "NOTIFICATIONS_INBOX":E="NOTIFICATIONS";break;case "NEXT":E="chevron_right";break;case "OFFLINE":E="power-settings-new";break;case "PAUSE":S="miniplayer";break;case "PAYMENT":S="icons";break;case "PHONE_DOWNLOAD":E="phone_download";break;case "PREMIUM_STANDALONE":S="yt-logos";E="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":S="yt-logos";E="premium_standalone_cairo";
break;case "QUESTION_ANSWER":E="question_answer";break;case "REDEEM":S="icons";E="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":E="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":E="library_add";break;case "SCHOOL":S="yt-sys-icons";E="creator_academy";break;case "SETTINGS_LIGHT":E="settings_applications";break;case "SETTINGS_MATERIAL":E="settings";break;case "SEARCH_HISTORY":E="watch_history";break;case "SHOPPING_BAG":E="bag";break;case "SOCIAL":case "PEOPLE":S=
"yt-icons";E="people";break;case "STAFF_PICK":S="ytg";E="spotlight";break;case "START_DVR":E="add";break;case "STOP_DVR":S="av";E="stop";break;case "TAB_LIKED":E="like";break;case "TAB_INBOX":E="mail";break;case "TERMS_OF_SERVICE":S="icons";E="description";break;case "TRENDING":E="fire";break;case "UNBLOCK_USER":E="remove";break;case "UNPLUGGED_DARK_THEME":S="image";E="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":E="live";break;case "UNPLUGGED_SPORTS":S="ytu";E="visibility-off";break;
case "VIDEOS":S="av";E="play-circle-filled";break;case "YOUTUBE":S="yt-logos";E="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":S="yt-logos-ext";E="yt-logo-red-updated";break;case "YOUTUBE_LOGO":S="yt-logos-ext";E="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":S="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":S="shorts";E=R;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":S="yt-sys-icons";E="youtube_improve_tv";break;case "OUTLINE_BAG":S=
"yt-sys-icons";E="bag";break;case "QUEUE_PLAY_LAST":S="yt-sys-icons";E="list_queue_last";break;case "SLASH_CIRCLE_LEFT":E="slash_circle_left";break;case "SPEED_1_POINT_2X":E="1_point_2x";break;case "SPEED_1_POINT_5X":E="1_point_5x";break;case "SPEED_1_POINT_8X":E="1_point_8x";break;case "SPEED_POINT_2X":E="point_2x";break;case "SPEED_POINT_5X":E="point_5x";break;case "SPEED_POINT_8X":E="point_8x";break;case "SPEED_1X":E="1x";break;case "SPEED_2X":E="2x";break;case "TAB_BOOKMARK":E="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":S="yt-sys-icons";E="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":S="yt-sys-icons";E="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":S="yt-sys-icons",E="tic_tac_toe"}E=S+":"+E;rcb.set(k,E);return E};
K6m=function(k){var E;_.Y("kevlar_use_wil_icons")?E=!!_.en().resolve(_.Rv).resolveIcon({iconName:k.toString()}):E=!1;return E};
_.Ni=function(k,E,S,R){S=S===void 0?{}:S;R=R===void 0?!1:R;S===null&&(S={});var V=_.B_("kevlar_command_handler_command_banlist");V=_.n(V);for(var N=V.next();!N.done;N=V.next())if(N=k?k.hasOwnProperty(N.value):void 0,N)return!1;V=_.W(k.commandMetadata,_.Sd);return R&&V!=null&&V.url?!1:!E.disableCommandHandlerOverride&&_.V_.instance?(R=_.V_.instance,S.form||(S.form={element:E}),S.form.element||(S.form.element=E),!S.clickedVisualElement&&E.visualElement&&(S.clickedVisualElement=E.visualElement),R.resolveCommand(k,
S),!0):!1};
u0l=function(k,E){k=nh(k);for(var S=_.n(k.visibilityMonitorKeys||[]),R=S.next();!R.done;R=S.next())E.unobserveByKey(R.value);k.visibilityMonitorKeys=void 0};
D9j=function(k,E){if(_.Fe()){if(_.Y("kevlar_vimio_use_shared_monitor"))x9t(k,E.data);else if(!x9t(k,E.data))return;var S=E.data,R=L6i(S);if(_.Y("enable_client_ve_spec_logging"))u0l(k,E.observer);else{var V=nh(k);V.trackedParams&&V.trackedParams!==R&&u0l(k,E.observer)}V=nh(k);!S||V.data&&V.data===S||(V.data=S);jih(k,E);V.trackedParams=R}};
jih=function(k,E){var S=E.observer;if(!S&&_.Y("web_skip_missing_vimio_observer")){var R,V;_.dg(new _.LC("VisibilityObserver is not defined.",k.tagName,k.trackedParams,(R=E.data)==null?void 0:R.trackingParams,(V=E.data)==null?void 0:V.loggingDirectives))}else{var N=E.layer,h=E.visibilityCallback||function(){},J=E.prescanCallback,m=nh(k);
R=[];E.showOption&&R.push(S.observe(k,function(){E.skipLogging&&E.skipLogging()||_.iY().reportShown(m,void 0,N);h(!0)},E.showOption));
E.hideOption&&R.push(S.observe(k,function(){_.iY().reportHidden(m,void 0,N);h(!1)},E.hideOption));
E.prescanOption&&J&&R.push(S.observe(k,function(){J()},E.prescanOption));
m.visibilityMonitorKeys=R}};
x9t=function(k,E){k=nh(k);if(k.visualElement&&!E)return!0;if(!E)return!1;var S=!1;if(_.Y("enable_client_ve_spec_logging")){var R,V;S=!!((R=E.loggingDirectives)==null?0:(V=R.clientVeSpec)==null?0:V.uiType)}R=L6i(E);if(!R&&!S)return!1;_.Y("mweb_component_visibility_logging")&&(k.veContainer||(k.veContainer={}),k.veContainer.trackingParams=R);if(k.trackedParams&&k.trackedParams===R)return!1;var N;if(_.Y("enable_client_ve_spec_logging")&&((N=k.visualElement)==null?0:N.isClientVe())){var h;N=(h=k.visualElement)==
null?void 0:h.getAsJspb();var J,m,a,T;if(_.eo(N,2)===((J=E.loggingDirectives)==null?void 0:(m=J.clientVeSpec)==null?void 0:m.uiType)&&_.eo(N,3,-1)===((a=E.loggingDirectives)==null?void 0:(T=a.clientVeSpec)==null?void 0:T.elementIndex))return!1}if(_.Y("enable_client_ve_spec_logging")){var w,P;!k.visualElement&&((w=E.loggingDirectives)==null?0:(P=w.clientVeSpec)==null?0:P.uiType)&&(J=E.loggingDirectives.clientVeSpec,E=J.uiType,h=J.elementIndex,J=J.clientYoutubeData,k.visualElement=_.hV(_.JV(),{veType:E,
elementIndex:h,clientYouTubeData:J}))}return!0};
L6i=function(k){if(k==null?0:k.rendererContext){var E=_.W(k.rendererContext,_.cM);if(E==null?0:E.loggingDirectives)return E.loggingDirectives.trackingParams}return(k==null?0:k.loggingDirectives)?k.loggingDirectives.trackingParams:k==null?void 0:k.trackingParams};
nh=function(k){var E;return(E=k.polymerController)!=null?E:k};
b$1=function(k){_.iY();if(_.Ga(mR().JSC$12719_elementShouldLogGesture).bind(mR())(k,4)){$9t(k);var E=f6m(k);vUR.set(k,E)}};
$9t=function(k){vUR.has(k)&&(vUR.get(k).cancel("untrack hover element"),vUR.delete(k))};
f6m=function(k){var E,S=[],R=!1,V=new _.yF(function(N,h){eF(k,"mouseenter",_.Ga(function(){var J,m,a;return _.c(function(T){if(T.nextAddress==1)return E=(0,_.ev)(),J=Z$h(k),S.push(J),m=d9l(k,function(){R=!0;h(Error("ch"))}),T.yield(J,2);
if(T.nextAddress!=3)return m&&av(m),a=si1(k),S.push(a),T.yield(a,3);N();_.KR(T)})}))});
V.then(function(){var N=(0,_.ev)()-E;N=Math.round(N);if(!(500>N||6E5<=N)){var h=k.getScreenLayer?k.getScreenLayer():void 0;h=_.Fe(h)||"";var J=l61(_.iY(),k);_.$A(h,k.visualElement?k.visualElement:_.tV(J),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:N}})}b$1(k)},function(){TT&&(TT(),TT=null);
R&&($9t(k),b$1(k))});
return V};
Z$h=function(k){var E;return(new _.yF(function(S,R){TT=function(){R(Error("dh"))};
E=_.ZJ.debounce(_.Ga(function(){av(V);S()}),1,100);
var V=_.wX(k,"mousemove",E)})).thenCatch(function(){var S=_.ZJ.cancelDebouncedJobMap.get(E);
S&&_.ZJ.cancelJob(S)})};
si1=function(k){var E;return(new _.yF(function(S,R){TT=function(){R(Error("eh"))};
E=eF(k,"mouseleave",_.Ga(function(){S()}))})).thenCatch(function(){av(E)})};
d9l=function(k,E){return eF(k,"mouseleave",_.Ga(E))};
q1h=function(k){Mgi&&_.PM.cancel(Mgi);Mgi=_.PM.run(function(){_.Me(k,"yt-visibility-refresh");Mgi=0})};
zgb=function(k){k=Number(k);return"rgba("+[k>>16&255,k>>8&255,k&255,(k>>24&255)/255].join()+")"};
O$A=function(k){if(!k)return!1;if(_.W(k,_.Qib))return!0;var E;if(k=(E=_.W(k,_.CI))==null?void 0:E.commands)for(E=_.n(k),k=E.next();!k.done;k=E.next())if(_.W(k.value,_.Qib))return!0;return!1};
GHl=function(k){var E=!0;E=E===void 0?!0:E;if(!k.useSignals&&!k.experimentalPropertiesChanged||_.Y("experimental_templating_behavior_nopatch_killswitch")){var S=k._propertiesChanged;k._propertiesChanged=function(R,V,N){E?k.debounceRender():k.doRender();S&&S.call(k,R,V,N)}}};
C0C=function(k,E){if(k.useSignals||k.experimentalPropertiesChanged)if(_.Y("experimental_templating_behavior_nopatch_killswitch"))k.experimentalPropertiesChanged=function(){};
else return;var S=new Set,R=[k].concat(_.$e(k.behaviors));R=_.n(R);for(var V=R.next();!V.done;V=R.next()){V=V.value;for(var N in V.properties)S.has(N)||(k._addPropertyEffect(N,"function",E),S.add(N))}};
kvi=function(){var k=Polymer.Element,E=k._prepareTemplate;k._prepareTemplate=function(){E.call(this);var S=this.prototype;if(S.experimentalTemplatingInUse&&S.experimentalTemplatingInUse()&&S.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.bM(Error("fh"));else{S=this.template.content.childNodes;for(var R=S.length-1;R>=0;R--){var V=S[R];V.nodeName!=="STYLE"&&V.nodeName!=="LINK"&&V.nodeName!=="SCRIPT"&&V.nodeName!=="#comment"&&V.remove()}}}};
Edh=function(k){var E=!0;E=E===void 0?!0:E;kvi();var S=k.ready;k.ready=function(){this._template=null;S.call(this)};
C0C(k,E?k.debounceRender:k.doRender)};
R$1=function(k,E,S){if(S===null||S===void 0)return S;var R=UmC(k.tagName.toLowerCase(),E,function(){throw Error("Tb");});
if(R===null)return S;R=SMI[R];var V;if((V=R.isUnwrappable)==null?0:V.call(R,S)){if(R.unwrap)return R.unwrap(S);throw Error("ih");}return R.filterString?R.filterString(k.tagName,E,String(S)):S};
V3t=function(k,E,S){var R=E[E.length-1]!=="$",V=R$1(k,E,S);if(R)if(typeof V==="function"&&E.startsWith("reactiveon")&&E===E.toLowerCase()){var N=Nn;jse(k,E.slice(8),function(h){lI(N,function(){V(h)})})}else k[E]=V;
else S=V==null?null:String(V),zL(k,E.slice(0,-1),S)};
YX=function(k){No1.length===0&&requestAnimationFrame(function(){setTimeout(function(){var E=No1.slice();No1.length=0;E=_.n(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;try{S()}catch(R){_.BM(R)}}})});
No1.push(k)};
IMb=function(k){if(k){var E=k.component;if(E){var S;E==null||(S=E.events)==null||S.publish("DISCONNECTED");var R;E==null||(R=E.onDisconnected)==null||R.call(E)}var V,N;(V=k.__spec)==null||(N=V.didUnmount)==null||N.call(V);for(E=0;E<k.childNodes.length;E++)IMb(k.childNodes[E])}};
ndi=function(k,E,S){var R=E&&E.key,V=nV;V[0]=k;V[1]=R;V[2]=void 0;for(var N in E)E.hasOwnProperty(N)&&(k=E[N],R=i$,R.push(N),R.push(k));E=nV;a:{if(N=nV[2])for(k=0;k<N.length;k+=2)if(N[k]==="nonce"){N=N[k+1];break a}N=""}N=QsI(E[0],E[1],N);k=GL(N);R=E[2];if(!k.staticsApplied&&(k.staticsApplied=!0,R&&R.length))if((V=k._attrsArr)&&V.length){for(V=0;V<R.length;V+=2)WM[R[V]]=V+1;V=k._attrsArr||(k._attrsArr=LFA(0));for(var h=0,J=0;J<V.length;J+=2){var m=V[J],a=V[J+1],T=WM[m];T?R[T]===a&&delete WM[m]:(V[h]=
m,V[h+1]=a,h+=2)}qn(V,h);for(var w in WM)bZj(N,w,R[WM[w]],Jw),delete WM[w]}else for(w=0;w<R.length;w+=2)bZj(N,R[w],R[w+1],Jw);VXb(N,k,Jw);qn(E,0);S&&S(Co);OZt()};
_.Fd=function(k,E,S){S===void 0?delete k[E.name]:k[E.name]=S};
_.y_=function(k){var E={androidIncludeFontPadding:!1},S=0,R=[],V=[],N=[];if(k.simpleText)return E.content=k.simpleText,E;if(k.runs===void 0)return E.content="",E;k=_.n(k.runs);for(var h=k.next();!h.done;h=k.next()){h=h.value;var J=h.text,m=void 0,a=(m=J)==null?void 0:m.length;if(J&&a){R.push(J);if(h.bold||h.italics||h.strikethrough||h.underline||h.textColor!=null&&h.textColor!==0||h.deemphasize){J=V;m=J.push;var T={startIndex:S,length:a};h.bold&&(T.weightLabel="FONT_WEIGHT_MEDIUM");h.italics&&(T.italic=
!0);h.strikethrough&&(T.strikethrough="LINE_STYLE_SINGLE");h.underline&&(T.underline="LINE_STYLE_SINGLE");h.textColor!=null&&h.textColor!==0?document.documentElement.hasAttribute("dark")?T.fontColor=h.darkModeTextColor||h.textColor:T.fontColor=h.textColor:h.deemphasize&&(document.documentElement.hasAttribute("dark")?T.fontColor=parseInt("ff"+idl("#aaa").substring(1),16):T.fontColor=parseInt("ff"+idl("#606060").substring(1),16));m.call(J,T)}h.navigationEndpoint&&(J=N,m=J.push,T={startIndex:S,length:a,
onTap:{innertubeCommand:h.navigationEndpoint}},h.loggingDirectives&&_.Fd(T,h$I,h.loggingDirectives),m.call(J,T));S+=a}}E.content=R.join("");E.styleRuns=V.length?V:void 0;E.commandRuns=N.length?N:void 0;return E};
cTb=function(k){if(k==null||!k.runs)return!0;k=_.n(k.runs);for(var E=k.next();!E.done;E=k.next())if(E=E.value,E.bracket||E.errorUnderline||E.deemphasize||_.W(E,ov)||_.W(E,JTC))return!1;return!0};
mEj=function(k,E){return function(S){var R=E.unit;if(R!==S)throw Error("lh`"+k+"`"+R+"`"+S);return E}};
Xd=function(k){if(!((k==null?0:k.value)&&(k==null?0:k.unit)))return"";switch(k.unit){case "DIMENSION_UNIT_FRACTION":var E="%";break;default:E="px"}k=k.value;E==="%"&&(k*=100);return""+k+E};
e$C=function(k){try{return k()}catch(E){_.dg(E)}};
_.Uk=function(k){var E=_.W(k,_.gX);if(E)return E;if((E=_.W(k,aMh))&&E.commands)return t31(E.commands);if((E=_.W(k,Toh))&&E.commands)return t31(E.commands);if((k=_.W(k,wGR))&&k.identifier&&k.command&&(Pom||(Pom=[]),!Pom.includes(k.identifier)))return Pom.push(k.identifier),_.W(k.command,_.gX)};
t31=function(k){if(k.length!==0){var E=[];k=_.n(k);for(var S=k.next();!S.done;S=k.next())(S=_.Uk(S.value))&&E.push(S);return{commandExecutorCommand:{commands:E}}}};
_.Kh=function(k){var E=k.defaultTarget,S=k.elementConfig,R=k.elementsCommand,V=k.skipOnClick,N=k.forceNewState,h=k.additionalCommandArgs,J=k.innertubeCommand||_.Uk(R);if(J){k={};var m=Bol(J);R=m.navigatingCommand;m=m.href;R&&m?(k.href$=m,YMC(k,R,m,E),_.Y("web_atagconfig_pointerdown")&&WXm(k,R),N&&(k["force-new-state$"]=!0)):(k.role$="button",k.href$="javascript:void(0);");_.W(J,FXb)&&(k["aria-haspopup$"]=!0);V||(k.onclick=function(a){var T={};if(yTb(a)){var w=(h==null?void 0:h.clickedVisualElement)||
(h==null?void 0:h.getClickedVisualElement)&&h.getClickedVisualElement();w&&(T={clickedVisualElement:w});T=Object.assign({},{form:{element:a.target,event:a,createScreenConfig:T}},h);a.preventDefault();_.HM(J,T)}});
return Object.assign({},S,k)}};
ode=function(k){if(k.length){if(k.length===1)return k[0];var E={};_.Fd(E,_.CI,{commands:k});return E}};
ph=function(k){return k&&k.href$!=="javascript:void(0);"};
Bol=function(k){var E,S=((E=_.W(k,_.CI))==null?void 0:E.commands)||[k];k=_.n(S);for(E=k.next();!E.done;E=k.next()){E=E.value;var R=void 0,V=void 0;S=(V=_.W((R=E)==null?void 0:R.commandMetadata,_.Sd))==null?void 0:V.url;_.Y("web_remove_web_navigation_endpoint_data")||(R=void 0,S=S||((R=_.W(E,XGh))==null?void 0:R.url));if(S&&S!=="/service_ajax"){if(R=_.fg(S,gdl))return k=_.DF(R),{navigatingCommand:E,href:k};_.dg(new _.LC("AttributedString URL could not be sanitized",S))}}return{}};
yTb=function(k){return k.button!==void 0?k.button===0&&!(k.shiftKey||k.altKey||k.metaKey||k.ctrlKey):!(k.shiftKey||k.altKey||k.metaKey||k.ctrlKey)};
YMC=function(k,E,S,R){S=!J3(S);var V,N,h;if((V=_.W(E,_.Ny))!=null&&V.nofollow||(N=_.W(E,_.jm))!=null&&N.nofollow||(h=_.W(E,_.Oc))!=null&&h.nofollow||S)k.rel$="nofollow";var J;E=((J=_.W(E,_.Oc))==null?void 0:J.target)==="TARGET_NEW_WINDOW"?"_blank":R===void 0?"":R;k.target$=E};
WXm=function(k,E){E.clickTrackingParams&&(k.params={itct:E.clickTrackingParams});k.onpointerdown=function(S){UEj(S)};
k._data=E};
HdC=function(k){(k.loggingUrls||[]).forEach(function(E){kf(E.baseUrl,E.attributionSrcMode)})};
UEj=function(k){var E=k.currentTarget;k=e$C(function(){return E.href});
var S=E.params;k&&_.vi(k,S||{},8,!0)};
_.AV=function(k,E){(k=_.Uk(k))&&_.HM(k,E)};
_.HM=function(k,E){EA1(function(S){E?S.resolveCommand(k,E):S.resolveCommand(k)})};
rTt=function(k,E){var S=["yt-core-attributed-string__link"];E!=null&&E.noLinkColor||((E==null?0:E.isOverlay)?S.push("yt-core-attributed-string__link--overlay-call-to-action-color"):S.push("yt-core-attributed-string__link--call-to-action-color"),(E==null?0:E.linkInheritColor)&&S.push("yt-core-attributed-string--link-inherit-color"));S={className:S.join(" "),tabindex$:"0"};var R=k.onTap||k.onLongPress;if(!R)return S;var V=KXe(k);V&&(S["aria-label$"]=V);E=_.Kh({elementsCommand:R,elementConfig:S,skipOnClick:!(E==
null||!E.skipOnClick),forceNewState:!0});k.onLongPress&&(R=new pGR(function(){var N=_.Uk(k.onLongPress);N&&_.en().resolve(_.t3).resolveCommand(N)}),E&&ATe(R,E));
return E||S};
KXe=function(k){var E,S;return(E=k.onTapOptions)==null?void 0:(S=E.accessibilityInfo)==null?void 0:S.accessibilityLabel};
uLb=function(k){var E=k;k<=16777215&&(E+=parseInt("ff000000",16));return _.Kc(E)};
xEj=function(k){var E=k.isDarkTheme;var S=k.extension;k=k.runColor;var R=void 0;if(S=S==null?void 0:S.colorMap){E=E?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";S=_.n(S);for(var V=S.next();!V.done;V=S.next())if(V=V.value,E===V.key){R=V.value;break}}R==null&&k&&(R=k);if(R)return uLb(R)};
rX=function(k){var E=k.config;var S=k.image;var R=k.imageConfig;var V=k.imageWrapperConfig;var N=k.run;var h=k.tag;var J=k.textLength;var m=k.startIndex===void 0?0:k.startIndex;k=k.length;m===void 0&&(m=0);N={run:N,startIndex:m,endIndex:k!==void 0?m+k:J,tag:h};S&&(N.image=S);R&&(N.imageConfig=R);V&&(N.imageWrapperConfig=V);E&&(N.config=E);return N};
jjC=function(k,E){var S=[];S.push("yt-core-attributed-string");(E==null?0:E.className)&&S.push(E==null?void 0:E.className);(E==null?0:E.ellipsisTruncate)?S.push("yt-core-attributed-string--ellipsis-truncate"):(E==null?0:E.noWrap)?S.push("yt-core-attributed-string--white-space-no-wrap"):(E==null?0:E.noPreWrap)||S.push("yt-core-attributed-string--white-space-pre-wrap");(E==null?0:E.linkInheritColor)&&S.push("yt-core-attributed-string--link-inherit-color");k.alignment&&S.push(LX1(k.alignment));k.lineBreakMode&&
S.push("yt-core-attributed-string--word-wrapping");return S.join(" ")};
DEC=function(k,E){if(k.weight)return k.weight;switch(k.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 E?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
$El=function(k){switch(k){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"}};
LX1=function(k){switch(k){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"}};
Lh=function(k,E,S){var R=E;k.content&&S&&(S=k.content.indexOf("\n"),S!==-1&&(R=Math.min(E,S)));if(!k.content||k.content.length<=R)E=k;else if(k.attachmentRuns||k.commandRuns||k.decorationRuns||k.styleRuns||k.paragraphStyleRuns){E=uY(k.content,R);S=R;var V=k.attachmentRuns;if(V){var N=[];V=_.n(V);for(var h=V.next();!h.done;h=V.next())h=Object.assign({},h.value),h.startIndex===void 0||h.startIndex>=S||(h.length||(h.length=0),h.length+h.startIndex>S&&(h.length=S-h.startIndex),N.push(h));S=N}else S=void 0;
N=fMR(R,k.commandRuns);V=R;var J=k.decorationRuns;if(J){h=[];J=_.n(J);for(var m=J.next();!m.done;m=J.next()){m=m.value;var a=_.W(m.textDecorator,xX);if(a&&a.startIndex!==void 0&&!(a.startIndex>=V)){m=Object.assign({},m,{textDecorator:{highlightTextDecorator:Object.assign({},a)}});a=_.W(m.textDecorator,xX);if(!a.length||a.length+a.startIndex>V)a.length=V-a.startIndex;h.push(m)}}V=h}else V=void 0;h=fMR(R,k.styleRuns);if(J=k.paragraphStyleRuns)for(k=[],J=_.n(J),m=J.next();!m.done;m=J.next()){var T=m.value;
m=Object.assign({},T);if(!(m.startIndex===void 0||m.startIndex>=R)){if(!m.length||m.length+m.startIndex>R)m.length=R-m.startIndex;a=[];var w=void 0,P=void 0;if((w=T)==null?0:(P=w.listGroup)==null?0:P.listItems)for(T=_.n(T.listGroup.listItems),w=T.next();!w.done;w=T.next())if(w=Object.assign({},w.value),!(w.startIndex===void 0||w.startIndex>=R)){if(!w.length||w.length+w.startIndex>R)w.length=R-w.startIndex;a.push(w)}a.length>0&&(m.listGroup||(m.listGroup={}),m.listGroup=Object.assign({},m.listGroup,
{listItems:a}));k.push(m)}}else k=void 0;E={content:E,attachmentRuns:S,commandRuns:N,decorationRuns:V,styleRuns:h,paragraphStyleRuns:k}}else E=Object.assign({},k,{content:uY(k.content,R)});return E};
fMR=function(k,E){if(E){var S=[];E=_.n(E);for(var R=E.next();!R.done;R=E.next())if(R=Object.assign({},R.value),!(R.startIndex===void 0||R.startIndex>=k)){if(!R.length||R.length+R.startIndex>k)R.length=k-R.startIndex;S.push(R)}return S}};
uY=function(k,E){var S=E,R;if(R=S>0)R=k.charCodeAt(S-1),R=R>=55296&&R<=56319;R&&(S=k.charCodeAt(S),R=S>=56320&&S<=57343);R&&--E;return k.substring(0,E)};
dEb=function(k,E,S){S=S===void 0?vdI:S;if(k){var R=_.en().resolve(mF);R||_.Y("mweb_no_observer_killswitch")?D9j(k,{data:E,observer:R,visibilityCallback:S,hideOption:bdt,showOption:Zd1,layer:k.layer}):_.dg(new _.LC("Warning: monitorVisibility called with null observer",k.tagName,E==null?void 0:E.loggingDirectives,E==null?void 0:E.trackingParams))}else _.dg(new _.LC("Warning: monitorVisibility called with null element",E==null?void 0:E.loggingDirectives,E==null?void 0:E.trackingParams,E==null?void 0:
E.rendererContext))};
OdR=function(k,E){var S=[],R=k.content.length,V,N=(V=_.en().resolve(_.mz(_.jF)))==null?void 0:V();if(k.paragraphStyleRuns){V=_.n(k.paragraphStyleRuns);for(var h=V.next();!h.done;h=V.next()){var J=S.push,m=J.apply;var a=void 0;h=h.value;if((a=h.listGroup)!=null&&a.listItems){a=[];b:switch(h.listGroup.listType){case "LIST_TYPE_BULLET":var T="ul";break b;default:T="span"}a.push(rX({run:h,textLength:R,tag:T,config:{className:"yt-core-attributed-string__list-group"},startIndex:h.startIndex,length:h.length}));
T=_.n(h.listGroup.listItems);for(var w=T.next();!w.done;w=T.next()){w=w.value;b:switch(h.listGroup.listType){case "LIST_TYPE_BULLET":var P="li";break b;default:P="span"}a.push(rX({run:h,textLength:R,tag:P,startIndex:w.startIndex,length:w.length}))}h=a}else h=[];m.call(J,S,_.$e(h))}}if(k.styleRuns&&(E==null||!E.noStyleRuns))for(V=_.n(k.styleRuns),J=V.next();!J.done;J=V.next()){h=J=J.value;a=N;m=E;a=xEj({extension:_.W(h.styleRunExtensions,sjI),isDarkTheme:a===void 0?!1:a,runColor:h.fontColor});w=h;
T=[];a&&T.push("yt-core-attributed-string--link-inherit-color");w.italic&&T.push("yt-core-attributed-string--italicized");w.underline&&w.strikethrough?T.push("yt-core-attributed-string--underline-strikethrough",$El(w.underline)):w.underline?T.push("yt-core-attributed-string--underlined",$El(w.underline)):w.strikethrough&&T.push("yt-core-attributed-string--strikethrough",$El(w.strikethrough));if(w.baselineOffset){a:switch(w.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":w="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":w="yt-core-attributed-string--baseline-offset-superscript";break a;default:w="yt-core-attributed-string--baseline-offset-unknown"}T.push(w)}T=T.join(" ");w={};if(h.weight||h.weightLabel)w.fontWeight=DEC(h,m==null?void 0:m.isHeadline).toString();a&&(w.color=a);S.push(rX({run:J,textLength:R,tag:"span",config:{className:T,style:w},startIndex:J.startIndex,length:J.length}))}if(k.decorationRuns)for(V=_.n(k.decorationRuns),J=V.next();!J.done;J=V.next())J=J.value,
m={},J.textDecorator&&(T=J.textDecorator,h=N===void 0?!1:N,w=[],a=_.W(T,xX),T=_.W(T,lMh),a?(T=w,w=T.concat,P=[],(h=xEj({extension:_.W(a.highlightTextDecoratorExtensions,M3C),isDarkTheme:h,runColor:a.backgroundColor}))&&P.push("background-color: "+h+";"),a.backgroundCornerRadius!==void 0&&P.push("border-radius: "+a.backgroundCornerRadius+"px;"),a.leftPadding!==void 0&&P.push("padding-left: "+a.leftPadding+"px;"),a.rightPadding!==void 0&&P.push("padding-right: "+a.rightPadding+"px;"),a.topPadding!==
void 0&&P.push("padding-top: "+a.topPadding+"px;"),a.bottomPadding!==void 0&&P.push("padding-bottom: "+a.bottomPadding+"px;"),w=w.call(T,P)):T&&(a=w,w=a.concat,h=h?"#2ba640":"#107516",h=T.color?uLb(T.color):h,h=["padding: 2px;","border-top: solid "+h+" 2px;","border-bottom: solid "+h+" 2px;","background: linear-gradient(135deg, "+h+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+h+" 3px, rgba(0, 0, 0, 0) 3px);"],w=w.call(a,h)),h=w.join(" "),m.style$=h,h=J.textDecorator,a=[],T=_.W(h,
lMh),_.W(h,xX)?a.push("yt-core-attributed-string--highlight-text-decorator"):T&&a.push("yt-core-attributed-string--bracket-text-decorator"),h=a.join(" "),m.className=h,m.dir="auto"),h=_.W(J.textDecorator,xX),a=_.W(J.textDecorator,lMh),T=_.W(J.textDecorator,xX),w=_.W(J.textDecorator,lMh),S.push(rX({run:J,textLength:R,tag:"span",config:m,startIndex:(h==null?void 0:h.startIndex)||(a==null?void 0:a.startIndex)||0,length:(T==null?void 0:T.length)||(w==null?void 0:w.length)||0}));if(k.commandRuns&&(E==
null||!E.noEndpoints))for(N=_.n(k.commandRuns),V=N.next();!V.done;V=N.next())V=V.value,J=rTt(V,E),S.push(rX({run:V,textLength:R,tag:"a",config:J,startIndex:V.startIndex,length:V.length}));if(k.attachmentRuns)for(k=_.n(k.attachmentRuns),N=k.next();!N.done;N=k.next()){N=N.value;m=J=void 0;V={className:"yt-core-attributed-string--inline-block-mod"};if((m=N.element)==null?0:m.properties){m=(J=N.element)==null?void 0:J.properties;J=[];m=_.W(m,qMi);if(m==null?0:m.margin)m=m.margin,m.left&&J.push("margin-left: "+
Xd(m.left)+";"),m.right&&J.push("margin-right: "+Xd(m.right)+";"),m.top&&J.push("margin-top: "+Xd(m.top)+";"),m.bottom&&J.push("margin-bottom: "+Xd(m.bottom)+";");J=J.length!==0?J.join(" "):void 0;V.style$=J}h=void 0;J={alt:"",preserveHeight:!0,preserveWidth:!0};m=["yt-core-attributed-string__image-element"];if(N.alignment){a:switch(N.alignment){case "ALIGNMENT_BASELINE":a="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":a="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:a="yt-core-attributed-string__image-element--image-alignment-bottom"}m.push(a)}if((h=N.element)==null?0:h.properties)h=[],a=_.W(N.element.properties,qMi),(a==null?0:a.height)&&h.push("height: "+Xd(a.height)+";"),(a==null?0:a.width)&&h.push("width: "+Xd(a.width)+";"),h=h.length!==0?h.join(" "):void 0,J.style$=h,a=void 0,h=((a=_.W(N.element.properties,z$I))==null?void 0:a.label)||"",J.alt=h;J.className=m.join(" ");m=void 0;T=a=void 0;h=((T=N.element)==null?0:T.type)?(a=_.W(N.element.type,
Qje))==null?void 0:a.image:void 0;S.push(rX({run:N,textLength:R,tag:"img",image:h,imageConfig:J,imageWrapperConfig:V,startIndex:N.startIndex,length:(m=N.length)!=null?m:0}))}if(E==null?0:E.headerRuns)for(E=_.n(E.headerRuns),k=E.next();!k.done;k=E.next())if(k=k.value,k.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(k.headerMapping)){a:{switch(k.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":N=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":N="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":N="yt-core-attributed-string--heading-3";break a}N=void 0}S.push(rX({run:k,textLength:R,tag:"span",config:N?{className:N}:void 0,startIndex:k.startIndex,length:k.length}))}return S};
_.D0=function(k){return(k==null?void 0:k.content)!==void 0};
Gvh=function(k){return _.D0(k)?k:_.y_(k)};
Coh=function(k){return k.image!==void 0&&k.imageConfig!==void 0};
khI=function(k,E){if(E==null?0:E.userInput)for(k=_.n(k),E=k.next();!E.done;E=k.next())if(E=E.value,E.tag!=="a"&&E.tag!=="li"){var S=void 0;(S=E).config||(S.config={});E.config.dir=E.tag==="ul"?_.en().resolve(_.$X):"auto"}};
EK1=function(k){return function(E){var S=k.run;(S.onTap!==void 0||S.onLongPress!==void 0)&&_.W(S,h$I)&&dEb(E,{loggingDirectives:_.W(S,h$I)})}};
SZj=function(k){return function(E){for(var S in k)(Jw[S]||Jw[Qg["default"]])(E,S,k[S])}};
IiI=function(k,E){Rqb(E);var S={data:null,start:0,end:k.length,parts:[]};E=_.n(E);for(var R=E.next();!R.done;R=E.next())R=R.value,VtA(S,R.startIndex,R.endIndex,R);Nnh(k,S);return S};
VtA=function(k,E,S,R){for(var V=_.n(k.parts),N=V.next();!N.done;N=V.next()){N=N.value;if(typeof N==="string")throw Error("nh");if(N.start<=E&&S<=N.end){VtA(N,E,S,R);return}}k.parts.push({data:R,parts:[],start:E,end:S})};
Nnh=function(k,E){for(var S=E.parts.length;S>=0;S--){var R=E.parts[S],V=E.parts[S-1],N=S===E.parts.length?E.end:R.start;V=S===0?E.start:V.end;N!==V&&E.parts.splice(S,0,k.slice(V,N));R&&Nnh(k,R)}};
Rqb=function(k){k.sort(function(E,S){if(E.startIndex<S.startIndex)return-1;if(S.startIndex<E.startIndex)return 1;E=E.endIndex-E.startIndex;S=S.endIndex-S.startIndex;return E>S?-1:S>E?1:0})};
_.nKA=function(k){var E=k.thumbnails;if(E){k={sources:[]};E=_.n(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;var R={};R.url=S.url;R.width=S.width;R.height=S.height;k.sources.push(R)}return k}};
iJ1=function(k,E,S,R){if(!E)return k.length>=1?k[k.length-1]:null;if(R)for(var V=_.n(k),N=V.next();!N.done;N=V.next()){N=N.value;var h=void 0,J=(h=N.url)==null?void 0:h.indexOf(R);if(J!==void 0&&J>=0)return N}R=_.n(k);for(V=R.next();!V.done;V=R.next())if(V=V.value,V.width&&V.height&&(S&&V.width>=E||!S&&V.height>=E))return V;for(E=k.length-1;E>=0;E--)if(S&&k[E].width||!S&&k[E].height)return k[E];return k[0]};
_.hqm=function(k){var E;return(k=(E=k.sources)==null?void 0:E[0])?k.width/k.height:0};
_.JKt=function(k){if(k.sources){k=_.n(k.sources);for(var E=k.next();!E.done;E=k.next()){E=E.value;var S=void 0;if((S=E.clientResource)==null?0:S.imageName)return E}}};
cKi=function(k){var E;if((E=k.clientResource)!=null&&E.imageColor)return _.Kc(k.clientResource.imageColor)};
_.eqR=function(k,E,S,R,V,N,h){if(!E||E.length===0||E[0].clientResource)return null;if(S&&E[0].url)return E[0].url;R===void 0&&(R=!0);if(R){var J;k=mrt*(V||(k==null?void 0:(J=k.getBoundingClientRect())==null?void 0:J.width)||0)}else{var m;k=mrt*(N||(k==null?void 0:(m=k.getBoundingClientRect())==null?void 0:m.height)||0)}E=iJ1(E,k,R,h);return(E==null?0:E.url)?E.url:(E==null?0:E.imageData)?E.imageData:null};
aii=function(k,E,S){S=S?[S]:[];k.opacity&&S.push("opacity: "+k.opacity+";");E&&k.placeholderColor?(k=_.Kc(k.placeholderColor),S.push("background-color: "+k+";")):S.push("background-color: transparent;");return S.join(" ")};
ttj=function(k,E,S,R,V){var N=["ytCoreImageHost"];E&&N.push(E);S||N.push("ytCoreImageFillParentHeight");R||N.push("ytCoreImageFillParentWidth");switch(k.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":N.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":N.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":N.push("ytCoreImageContentModeCenter");break;default:N.push("ytCoreImageContentModeScaleToFill")}k.flipForRtlLayout&&N.push("ytCoreImageFlipRtl");
switch(V){case "TOP_START":var h;N.push(((h=document.body)==null?void 0:h.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return N.join(" ")};
wrI=function(k){var E;if(k==null?0:(E=k.clientResource)==null?0:E.imageName){var S;k=(S=k.clientResource)==null?void 0:S.imageName;a:{switch(k){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":S="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":S="yt-logos-ext:yt-logo-updated";break a}S=void 0}return S||TnA.get(k)||k}};
YZR=function(k){return _.Y("mweb_wiz_skip_render")?PBI(k):Bnb(k)};
PBI=function(k){return function(E){var S=QsI("wink-root");G2R();OZt();y0m(S,_.e(k,E))}};
Bnb=function(k){var E=E===void 0?!1:E;return function(S){if(!E||!_.Y("mweb_skip_keto_to_c3_if_no_data")||S.data!==void 0){var R=Ta(!1);try{var V=S.children;_.Y("mweb_render_outside_patch_killswitch")||Co?V?hw(_.e(k,S,V)):hw(_.e(k,S)):_.dg(new _.LC("ketoToC3 called outside of a patch",{tagName:k.TAG_NAME}))}finally{Ta(R)}}}};
Wll=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
yK1=function(k,E){k.onViewportEntered=E;FlC.observe(k)};
oKA=function(){var k={rootMargin:"10%",threshold:.01};_.Y("mweb_enable_set_io_root_to_null_safari")?k.root=null:_.Y("mweb_enable_set_io_root_to_body_safari")&&(k.root=document.body);return new IntersectionObserver(function(E,S){E.filter(function(R){return R.intersectionRect.height>0}).forEach(function(R){R=R.target;
if(!_.Y("mweb_enable_only_update_image_when_connected")||R.isConnected!==!1){var V;(V=R.onViewportEntered)==null||V.call(R);S.unobserve(R)}})},k)};
Xr1=function(k,E,S,R,V){function N(){if(R){var J=R.loadedClass,m=R.notifyOnUnloaded;J&&_.fh(k,J);m&&k.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function h(){var J=S(E,k);J&&k.getAttribute("src")!==J&&(_.Y("mweb_enable_only_update_image_when_connected")&&k.isConnected===!1||J===k.src||(k.src=J),N())}
V=V===void 0?!0:V;k.removeAttribute("src");N();E&&(V?yK1(k,h):h())};
gKl=function(k,E,S){if(!E)return!1;E=S(E,k);S=k.getAttribute("src");return E&&E===S&&k.complete};
Urj=function(k,E){for(var S in E)S==="className"?k.className=E[S]:(Jw[S]||Jw[Qg.default])(k,S,E[S])};
HJe=function(k,E,S,R){YZR(_.vM)({contentMode:E.contentMode,loadedClass:E.loadedClass,isPreloaded:E.isPreloaded,notifyOnLoaded:E.notifyOnLoaded,notifyOnUnloaded:E.notifyOnUnloaded,preferredThumbnail:E.preferredThumbnail,preserveHeight:E.preserveHeight,preserveWidth:E.preserveWidth,objectPosition:E.objectPosition,targetWidth:E.targetWidth,targetHeight:E.targetHeight,shouldShowPlaceholder:E.shouldShowPlaceholder,useWidth:E.useWidth,isToggled:E.isToggled,alt:E.alt,className:E.className,onerror:E.onerror,
onload:E.onload,style$:E.style$,color:E.color,width:E.width,height:E.height,"aria-hidden$":E["aria-hidden$"],draggable:E.draggable,"data-disabled$":E["data-disabled$"],data:k,callback:S,renderLazy:R===void 0?!0:R,hideOn404:!1})};
prh=function(k,E,S){S=S===void 0?!1:S;var R=k.sources!==void 0?k:_.nKA(k);if(R){var V=E.onload;E.onload=function(m){var a=m.target;S&&a.naturalWidth===120||_.bY(a,"ytCoreImageLoaded");E.notifyOnLoaded&&a.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));V==null||V(m)};
E.targetWidth&&E.preserveWidth&&(E.width=E.targetWidth);E.targetHeight&&E.preserveHeight&&(E.height=E.targetHeight);var N=_.JKt(R),h=N&&wrI(N);if(h)return(k=cKi(N))&&(E.color=k),{type:"icon",iconName:h,config:Object.assign({},E,E.alt?{}:{"aria-hidden$":"true"},{"aria-label$":E.alt,role:"img"})};if(k.sources===void 0){E.alt=k.accessibility&&k.accessibility.accessibilityData&&k.accessibility.accessibilityData.label||E.alt;E.style$=aii(k,E.shouldShowPlaceholder,E.style$);var J;E.isPreloaded=!((J=_.W(k,
Klh))==null||!J.isPreloaded)}E.contentMode&&!R.contentMode&&(R.contentMode=E.contentMode);E.className=ttj(R,E.className,E.preserveHeight,E.preserveWidth,E.objectPosition);E.loadedClass="ytCoreImageLoaded";return{type:"image",image:R,config:E}}};
_.Z0=function(){var k=_.sX.apply(0,arguments);return _.Nm(AK1,function(E){var S=k.map(function(R){return R==null?void 0:R(E)});
return function(){return void S.forEach(function(R){return void(R==null?void 0:R())})}})};
dX=function(k,E){var S=E==null?void 0:E.initial;return _.HX(function(){_.dt(!0);return S=k(S)},{equals:E==null?void 0:E.isEqual},"rSlKsc")};
rK1=function(k,E){if(k===E)return!0;if(k===void 0||E===void 0)return!1;var S,R,V,N,h,J,m,a;return k.content===E.content&&((S=k.styleRuns)==null?void 0:S.length)===((R=E.styleRuns)==null?void 0:R.length)&&((V=k.commandRuns)==null?void 0:V.length)===((N=E.commandRuns)==null?void 0:N.length)&&((h=k.attachmentRuns)==null?void 0:h.length)===((J=E.attachmentRuns)==null?void 0:J.length)&&((m=k.decorationRuns)==null?void 0:m.length)===((a=E.decorationRuns)==null?void 0:a.length)};
Llb=function(k,E){if(k){var S=Gvh(k);if(S!=null&&S.content)if(_.Y("attr_string_reactive"))YZR(uHi)({text:k,config:E});else{var R=!(E==null||!E.ariaLabel)||!(S.commandRuns&&S.commandRuns.length!==0||S.paragraphStyleRuns&&S.paragraphStyleRuns.length!==0);k=R?E==null?void 0:E.ariaLabel:null;R=R?"text":null;ndi("span",{className:jjC(S,E),dir$:(E==null?0:E.userInput)?"auto":void 0,"aria-label$":k,role$:R},function(){if(S.styleRuns||S.commandRuns||S.attachmentRuns||S.decorationRuns||S.paragraphStyleRuns){var V=
OdR(S,E);khI(V,E);V=IiI(S.content,V);V=_.n(V.parts);for(var N=V.next();!N.done;N=V.next())xrl(N.value)}else Nci(S.content)})}}};
xrl=function(k){typeof k==="string"?Nci(k):Coh(k.data)?ndi("span",k.data.imageWrapperConfig,function(){HJe(k.data.image,k.data.imageConfig)}):ndi(k.data.tag,k.data.config,function(E){EK1(k.data)(E);
E=_.n(k.parts);for(var S=E.next();!S.done;S=E.next())xrl(S.value)})};
Dre=function(k){return k.parts.map(jmm)};
jmm=function(k){if(typeof k==="string")return k;k=Coh(k.data)?_.e("span",{el:_.Z0(SZj(k.data.imageWrapperConfig))},_.e(_.vM,Object.assign({},{data:k.data.image},k.data.imageConfig))):_.e(k.data.tag,{el:_.Z0(EK1(k.data),SZj(k.data.config))},k.parts.map(jmm));return HC(k)};
$ri=function(k,E){return k===E?!0:k===void 0||E===void 0?!1:k.noStyleRuns===E.noStyleRuns&&k.noLinkColor===E.noLinkColor&&k.noEndpoints===E.noEndpoints&&k.headerRuns===E.headerRuns&&k.isOverlay===E.isOverlay&&k.linkInheritColor===E.linkInheritColor&&k.userInput===E.userInput&&k.isHeadline===E.isHeadline};
fiC=function(k){return function(){var E,S,R,V,N,h,J,m,a,T,w,P,B,F;return{ariaLabel:(E=k.ariaLabel)==null?void 0:E.call(k),className:(S=k.className)==null?void 0:S.call(k),ellipsisTruncate:(R=k.ellipsisTruncate)==null?void 0:R.call(k),isOverlay:(V=k.isOverlay)==null?void 0:V.call(k),linkInheritColor:(N=k.linkInheritColor)==null?void 0:N.call(k),noEndpoints:(h=k.noEndpoints)==null?void 0:h.call(k),noStyleRuns:(J=k.noStyleRuns)==null?void 0:J.call(k),noLinkColor:(m=k.noLinkColor)==null?void 0:m.call(k),
noPreWrap:(a=k.noPreWrap)==null?void 0:a.call(k),noWrap:(T=k.noWrap)==null?void 0:T.call(k),skipOnClick:(w=k.skipOnClick)==null?void 0:w.call(k),userInput:(P=k.userInput)==null?void 0:P.call(k),headerRuns:(B=k.headerRuns)==null?void 0:B.call(k),isHeadline:(F=k.isHeadline)==null?void 0:F.call(k)}}};
bJt=function(k,E){k=new vKI(k,E);_.bM(k);throw k;};
ZJA=function(k,E,S){var R=kH1(k);k._numRenders=0;try{var V=_.dBm(function(){return _.e(E,Object.assign({},S))})}catch(h){var N=function(J){J.args||(J.args=[]);
J.args.push("Error in web component wrapper");J.args.push(k.tagName.toLowerCase());return J};
_.Zd(h instanceof Error?N(h):new vKI("Wiz rendering error",k.tagName.toLowerCase()));throw h;}finally{kH1(R)}return V};
_.qi=function(k,E,S){function R(T){var w={};T=_.n(T);for(var P=T.next();!P.done;P=T.next()){P=P.value;var B=void 0,F=void 0,K=void 0,r=_.Ir((K=(F=(B=P).getAttribute)==null?void 0:F.call(B,"slot"))!=null?K:"children");if(B=w[r])B.push(P);else if(r in N||r==="children")w[r]=[P]}T=_.n(Object.keys(w));r=T.next();for(P={};!r.done;P={content$jscomp$59:void 0},r=T.next())r=r.value,r!=="children"&&(P.content$jscomp$59=w[r],w[r]=function(x){return function(){return x.content$jscomp$59}}(P));
return w}
S=S===void 0?{}:S;k.componentType!==Lo||bJt("Components must be marked reactive to be used from web component wrapper.",E);var V,N=(V=S.props)!=null?V:{};QO.add(E);var h=dri();V=function(){var T=h.apply(this,arguments)||this;T.rawProps={};T.queuingRender=!1;T.dispose=function(){};
T.isWebComponentWrapper=!0;T.isReparenting=!1;T.hasRendered=!1;return T};
_.y(V,h);V.prototype.render=function(){this.hasRendered=!0;for(var T=_.n([].concat(_.$e(this.attributes))),w=T.next();!w.done;w=T.next())w=w.value,w.name!=="slot"&&w.name!=="hidden"&&this.removeAttribute(w.name);T=Object.assign({},this.componentProps,this.slotProps);w=_.n(ZJA(this,k,T));T=w.next().value;w=w.next().value;!(T[0]instanceof Element)||T.length>1?bJt("Wrapped Wiz components must return a single root element.",E):(T=T[0].tagName.toLowerCase(),T!==E&&bJt("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(T+" !== '"+E),E),this.dispose=w)};
V.prototype.setUpProps=function(){for(var T=this.rawProps,w=this.attributes,P=_.n(Object.keys(N)),B=P.next();!B.done;B=P.next()){B=B.value;var F=void 0;((F=this)==null?0:F[B])&&this[B]!==smC&&T[B]===void 0&&(T[B]=this[B],(F=Object.getOwnPropertyDescriptor(this.constructor.prototype,B))&&Object.defineProperty(this,B,F))}P=_.n(w);for(B=P.next();!B.done;B=P.next()){F=B.value;B=_.Ir(F.name);var K=B==="class"&&!w.getNamedItem("class-name");if(B in N||K)F=F.value===""||F.value==="true"?!0:F.value==="false"?
!1:isNaN(Number(F.value))?F.value:Number(F.value),B!=="class"||T.className?T[B]=F:T.className=F}w={};for(var r in N)N[r]!==_.sk&&N[r]!==lie&&(T[r]instanceof Function&&bJt("Function props must be configured as STATIC, not SIGNAL.",E),B=_.n(_.yg(T[r],void 0,"q4ZVff")),P=B.next().value,B=B.next().value,w[r]=B,T[r]=P);T=_.n([T,w]);this.componentProps=T.next().value;this.setters=T.next().value;this.slotProps=R(this.childNodes)};
V.prototype.connectedCallback=function(){MtR===E&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in N&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
V.prototype.disconnectedCallback=function(){if(!this._isInert){var T;a:{if(_.lY)for(T=this;T;){if(_.Mi.has(T)){T=!0;break a}T=T.parentElement}T=!1}if(T)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){T=_.n([].concat(_.$e(this.attributes)));for(var w=T.next();!w.done;w=T.next()){w=w.value;var P=void 0;w.name==="slot"||w.name==="hidden"&&((P=S.unsafeExternallySettableAttributes)==null?0:P.has("hidden"))||this.removeAttribute(w.name)}}this.innerText="";ljm(this)}}};
V.prototype._setPendingPropertyOrPath=function(){};
V.prototype.notifyPath=function(){};
_.mt.Object.defineProperties(V.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var J=_.n(Object.keys(N)),m=J.next(),a={};!m.done;a={prop$jscomp$109:void 0},m=J.next())a.prop$jscomp$109=m.value,m=void 0,((m=S.legacyPolymer)==null?0:m.forwardHostProps)&&d_i.has(a.prop$jscomp$109)||Object.defineProperty(V.prototype,a.prop$jscomp$109,{set:function(T){return function(w){var P=this;this._isInert||(this.setters?Ko(function(){var B,F;return void((F=(B=P.setters)[T.prop$jscomp$109])==null?void 0:F.call(B,w))}):(this.rawProps[T.prop$jscomp$109]=w,this.queuingRender&&T.prop$jscomp$109===
"data"&&w!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(a),
get:qZl.has(a.prop$jscomp$109)?void 0:function(){return smC}});
customElements.define(E,V)};
_.zqj=function(k,E){return(k=_.zT(k,E))?_.DF(_.ZF(k)):null};
_.Q_=function(k){if(k=_.zT(k,Number.MAX_VALUE,void 0,"width"))return _.ZF(k)};
_.zT=function(k,E,S,R){R=R===void 0?"width":R;if(!k||!k.length)return null;if(_.Y("kevlar_tuner_should_always_use_device_pixel_ratio")){var V=window.devicePixelRatio;_.Y("kevlar_tuner_should_clamp_device_pixel_ratio")?V=Math.min(V,_.wO("kevlar_tuner_clamp_device_pixel_ratio")):_.Y("kevlar_tuner_should_use_thumbnail_factor")&&(V=_.wO("kevlar_tuner_thumbnail_factor"));Qmi=V}else Qmi||(Qmi=window.devicePixelRatio);V=Qmi;_.Y("kevlar_tuner_should_always_use_device_pixel_ratio")?E*=V:V>1&&(E*=V);if(_.Y("kevlar_tuner_min_thumbnail_quality"))return k[0].url||
null;V=k.length;if(_.Y("kevlar_tuner_max_thumbnail_quality"))return k[V-1].url||null;if(S)for(var N=0;N<V;N++)if(k[N].url.indexOf(S)>=0)return k[N].url||null;for(S=0;S<V;S++)if(k[S][R]>=E)return k[S].url||null;for(E=V-1;E>0;E--)if(k[E][R])return k[E].url||null;return k[0].url||null};
CBI=function(){Ok.size?setTimeout(function(){GT(OJb)},0):GhA=0};
OJb=function(){var k=(0,_.ev)(),E=null,S=!1;Ok.forEach(function(V){V.loaded=!0;V.loadTime=k;V.pendingPaint=!1;var N=k$I.get(V);N&&N.resolve(k);E=V;S||!V.ftlEligible&&V.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(S=!0)});
var R;((R=E)==null?0:R.markDirty)&&E.markDirty();Ok.clear();GhA=0;S&&EEe(k)};
Sli=function(k){Ok.add(k);k.pendingPaint=!0;GhA||(GhA=_.Ch(_.ZJ,CBI))};
R6C=function(k){k.loaded=!1;k.loadTime=Infinity;var E=k$I.get(k);E&&(E.reject(Error("th")),k$I.delete(k));k.pendingPaint&&(Ok.delete(k),k.pendingPaint=!1)};
_.V5m=function(k){var E=k.indexOf(":");return E===-1?{originalName:k}:{originalName:k.substring(0,E),datasyncId:k.substring(E+1)}};
_.IHh=function(){return _.c(function(k){if(Nrm!==void 0)return k.return(Nrm);Nrm=new Promise(function(E){var S;return _.c(function(R){switch(R.nextAddress){case 1:return _.F5(R,2),R.yield(_.kv.open("test-only"),4);case 4:return R.yield(_.kv.delete("test-only"),5);case 5:_.Sv(R,3);break;case 2:if(S=_.UY(R),S instanceof Error&&S.name==="SecurityError")return E(!1),R.return();case 3:E("caches"in window),_.KR(R)}})});
return k.return(Nrm)})};
h6C=function(){return _.c(function(k){if(k.nextAddress==1)return k.yield(_.IHh(),2);if(!k.yieldResult)return k.return(void 0);nEj||(nEj=new i1h);return k.return(nEj)})};
JYI=function(k){var E,S,R,V;return _.c(function(N){switch(N.nextAddress){case 1:return N.yield(h6C(),2);case 2:E=N.yieldResult;if(!E)throw Error("vh");return N.yield(E.open("yt-player-local-img"),3);case 3:return S=N.yieldResult,N.yield(S.match(k),4);case 4:R=N.yieldResult;if(!R)throw Error("wh");return N.yield(R.blob(),5);case 5:return V=N.yieldResult,N.return(V)}})};
cYA=function(k,E){for(var S in k)if(k.hasOwnProperty(S)&&E[S])return S;return null};
mo1=function(k){return"stamp"+k.replace("-","_")+"_"};
e6A=function(k){var E=k.match(/\[\[([\w\.]+)\]\]/);if(E&&E.length>1)return E[1];_.bM(Error("yh`"+k));return null};
aHh=function(k){return k===void 0?_.qg("REUSE_COMPONENTS",!1):k||!1};
w1I=function(k,E,S){S&&(E.is?(t5A.has(E)&&(k=t5A.get(E),S=k.listener,delete E[k.property],S.type==="element"&&E.removeEventListener(S.eventName,S.handler),t5A.delete(E)),Trj(E)):E.__proto__==HTMLElement.prototype&&(E=new _.LC("Rendererstamper removed a non custom element","Stamper: "+k+" element: "+(E&&E.nodeName)),_.dg(E)))};
Psi=function(k,E,S,R){var V=E.node?E.node:E;_.Cc(S).parentNode===V&&(E.removeChild(S),w1I(k,S,R));if(k=E3.get(S))E3.delete(S),_.ZJ.cancelJob(k);S.hidden=!1};
Brm=function(k,E,S,R){if(E&&E.children&&(S=E.children[S]))if(_.qg("DEFERRED_DETACH"))for(;S&&!E3.has(S);){var V=k,N=E,h=S,J=R;h.hidden=!0;V=_.uM(_.ZJ,Psi.bind(null,V,N,h,J),0);E3.set(h,V);S=S.nextElementSibling}else for(;(h=E.lastElementChild)&&(E.removeChild(h),w1I(k,h,R),h!=S););};
_.SQ=function(){for(var k=_.sX.apply(0,arguments),E=!0,S=_.n(k),R=S.next();!R.done;R=S.next())if(typeof R.value!=="string"){E=!1;break}return E?k.join(" ").trim()||void 0:function(){for(var V="",N=_.n(k),h=N.next();!h.done;h=N.next())if(h=h.value,typeof h==="function"&&(h=h()),h)if(typeof h==="string")V+=" "+h;else for(var J in h)if(h.hasOwnProperty(J)){var m=h[J];typeof m==="function"&&(m=m());m&&(V+=" "+J)}V=V.trim()||void 0;return _.dt(V)}};
W81=function(k){var E;return(E=Ylj[k])!=null?E:"EVENT_SPAN_TYPE_UNKNOWN"};
F8h=function(k){var E=k.nodeName;if(k.id)return E+="#"+k.id;if(k.classList)for(var S=_.n(k.classList),R=S.next();!R.done;R=S.next())E+="."+R.value;k.parentElement&&(E=F8h(k.parentElement)+" > "+E);return E};
yYR=function(k){return function(E){var S=W81(E.type);return S==="EVENT_SPAN_TYPE_UNKNOWN"?k(E):Xqb("event",{type:S,nodepath:E.target instanceof Element?F8h(E.target):void 0},function(){return k(E)})}};
_.RZ=function(k){k&&F2e("event")&&(k=yYR(k));return Bdl(function(E){var S,R=(S=k)==null?void 0:S(E);return typeof R==="boolean"?R:!0})};
VQ=function(k){return function(){return k()?k():void 0}};
UoA=function(k){var E=_.VH("animated-rolling-character"),S=xe1(),R=$u(k.character)||$u(k.previousCharacter),V=_.n(Ljh()),N=V.next().value,h=V.next().value;_.b$(function(){if(window.ResizeObserver&&_.Y("web_fix_rolling_numbers_zoom_safari")){var J=new _.NJ(function(){var a,T,w=Math.round(((T=(a=E.value.querySelector("div"))==null?void 0:a.getBoundingClientRect().height)!=null?T:0)*100)/100;w&&h(w)},500),m=new ResizeObserver(function(){J.fire()});
m.observe(E.value);return function(){m.disconnect();J.dispose()}}});
Xih(function(){var J=_.Y("web_fix_rolling_numbers_zoom_safari")?N:k.marginMultiplier;if(J){var m;(m=S.value)==null||m.cancel();R?(m=k.previousCharacter?Number(k.previousCharacter)+10:k.rollUp?0:30,k.shouldAnimate||(m-=oEh(k,m))):(m=k.rollUp?0:2,k.shouldAnimate||(m-=k.rollUp?-1:1));E.value.style.marginTop="-"+m*J+"px";k.shouldAnimate?S.value=X1A(E.value,k,m,R,J):E.value.style.display=k.character?"":"none"}});
return _.e("animated-rolling-character",{el:E,class:"animatedRollingCharacterHost"},TvC(R,function(){for(var J=[],m=1;m<30;m++)J.push(_.e("div",null,m%10));return _.e(_.tj,null,_.e("div",null,"\u00a0"),J,_.e("div",null,"\u00a0"))},function(){return gEj(k.character)}))};
gEj=function(k){return _.e(_.tj,null,_.e("div",null,"\u00a0"),_.e(_.tj,null,TvC(!k||_.Jh(k),function(){return _.e("div",null,"\u00a0")},function(){return _.e("div",null,k)})),_.e("div",null,"\u00a0"))};
X1A=function(k,E,S,R,V){S=new Animation(new KeyframeEffect(k,[{transform:"translateY(0px)"},{transform:"translateY("+(R?oEh(E,S):E.rollUp?-1:1)*V+"px)"}],H11),document.timeline);E.character?(k.style.display="",S.onfinish=null):S.onfinish=function(){k.style.display="none"};
S.play();return S};
oEh=function(k,E){var S=Number(k.character)+10;if(k.previousCharacter)if(k.character){var R=Number(k.character),V=Number(k.previousCharacter);k=k.rollUp?V<R?S:S+10:V<R?S-10:S}else k=k.rollUp?30:0;else k=k.character==="0"?S:k.rollUp?S-10:S+10;return E-k};
K8j=function(k){return function(E){var S={},R;for(R in E){var V=void 0,N=void 0;((V=void 0)==null?0:(N=V.callbacks)==null?0:N[R])||(S[R]=E[R])}return _.e(Z51,null,function(){for(var h in S)E[h]=_.dt(S[h]);E.disableReactiveLogging=!0;return _.e(k,Object.assign({},E))})}};
rY1=function(k,E,S,R,V,N,h){S=new Animation(new KeyframeEffect(k,[{transform:"translateY(0px)"},{transform:"translateY("+(N?p1A(E,S,R,V):R?-1:1)*h+"px)"}],AYC),document.timeline);E?(k.style.display="",S.onfinish=null):S.onfinish=function(){k.style.display="none"};
S.play();return S};
p1A=function(k,E,S,R){var V=Number(k)+10;E?k?(k=Number(k),E=Number(E),S=S?E<k?V:V+10:E<k?V-10:V):S=S?30:0:S=k==="0"?V:S?V-10:V+10;return R-S};
xoI=function(k){var E=xe1(),S=xe1();KSR(function(){E.value=k.numberText;S.value=k.numberValue},[k.numberText]);
var R=k.fontSizeMultiplier?k.heightPx*k.fontSizeMultiplier:k.heightPx,V=ue1(function(){if(k.numberText){var h=k.numberText;var J=k.forceRollUp||!S.value||!k.numberValue||S.value<k.numberValue;var m=!!k.shouldAnimate,a=E.value,T=[],w=0,P=0,B=(a?a.replace(/\D/g,"").length:0)-(h?h.replace(/\D/g,"").length:0);a=a?a.split(/(\d)/).filter(Boolean):[];for(h=h.split(/(\d)/).filter(Boolean);B<0;){var F=h[P];T.push({character:F,rollUp:J,marginMultiplier:R,shouldAnimate:m});P++;$u(F)&&B++}for(;w<B;)F=a[w],T.push({previousCharacter:F,
rollUp:J,marginMultiplier:R,shouldAnimate:m}),w++,$u(F)||B++;for(;P<h.length;)B=h[P],F=a[w],$u(B)===$u(F)?(P++,w++):$u(B)?(w++,B=void 0):$u(F)&&(P++,F=void 0),T.push({character:B,previousCharacter:F,rollUp:J,marginMultiplier:R,shouldAnimate:m});J=T}else J=[];return J},[k.numberText]),N=k.numberText?["height: "+R+"px;",
"line-height: "+k.heightPx+"px;"].join(" "):"";return _.e("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:N,dir:"ltr","aria-hidden":"true"},V.map(function(h){return _.e(uKh,Object.assign({},h))}))};
L8b=function(k){switch(k){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}};
jNt=function(k,E){if(!k&&!E)return"medium";k=Math.max(k||0,E||0);return k>=256?"large":k>=96?"medium":"small"};
Dob=function(k){switch(k){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
$ol=function(k){return new KeyframeEffect(k,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
fHI=function(k){return new KeyframeEffect(k,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.IZ=function(k){if(k.length===0)return WFI(k,"D");var E=_.n(WFI({source:function(){return k()},
computation:function(V,N){return(N==null?0:N.value)?k(N.value):V}},"E")),S=E.next().value,R=E.next().value;
E=E.next().value;return[S,R,E]};
_.nU=function(k){return function(){var E="",S;for(S in k){for(var R=k[S];typeof R==="function";)R=R();R!==void 0&&R!==null&&(E+="; "+S+": "+R)}return E.length>0?_.dt(E.slice(2)):_.dt()}};
vEm=function(k){switch(k){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"}};
b1I=function(k,E){if(E)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(k)switch(k){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"}};
M5A=function(k,E,S,R,V,N,h){var J=Z1t(k),m=J.disabled,a=J.iconPosition,T=J.style,w=J.focused,P=function(){return!!K()&&a()==="icon-only"},B=function(){return!!K()&&a()==="icon-only-40"},F=function(){return!!K()&&a()==="icon-with-label"},K=function(){return!!E||!(R==null||!R())};
return{type:function(){return T()==="call-to-action-inverse"?"text":T()==="overlay-dark"&&k().type!=="filled"&&k().type!=="tonal"?"tonal":k().type},
shouldFocus:function(){return(w()||(N==null?void 0:N()))&&!m()},
hasIconLeading:function(){return!!K()&&a()==="leading"},
hasIconTrailing:function(){return!!K()&&a()==="trailing"},
hasIconLeadingTrailing:function(){return!!K()&&!!(S||V!=null&&V())&&a()==="leading-trailing"},
hasIconOnly:P,hasIconOnly40:B,hasIconWithLabel:F,iconButton:function(){return P()||B()||F()},
visiblyDisabled:function(){return(m()?"disabled":k().state)==="disabled"||m()},
overrideSmallSizeIcon:function(){return!k().ignoreIconSizeOverride&&doI(k(),K())},
iconToRender:E?E:function(){return _.e(_.i_,{icon:R,gradientColor:function(){var r;return(r=k().customColors)==null?void 0:r.iconGradientColor},
size:function(){return sNe(k(),!0,k().ignoreIconSizeOverride)},
active:function(){return k().toggled},
iconFilter:function(){return lHm(k())},
animateIcon:h})},
secondaryIconToRender:S?S:function(){return _.e(_.i_,{icon:V,size:function(){return sNe(k(),!0,k().ignoreIconSizeOverride)},
active:function(){return k().toggled},
iconFilter:function(){return lHm(k())}})}}};
Z1t=function(k){return{size:function(){return k().size},
style:function(){return k().style},
focused:function(){return k().focused},
disabled:function(){return k().disabled},
onTap:function(E){var S,R;return(R=(S=k()).onTap)==null?void 0:R.call(S,E)},
alignByText:function(){return k().alignByText},
aTagConfig:function(){return k().aTagConfig},
customColors:function(){return k().customColors},
segmentedPosition:function(){return k().segmentedPosition},
toggled:function(){return k().toggled},
toggleable:function(){return k().toggleable},
accessibilityLabel:function(){return k().accessibilityLabel},
onToggle:function(E){var S,R;return(R=(S=k()).onToggle)==null?void 0:R.call(S,E)},
iconPosition:function(){return k().iconPosition},
oneOffCustomTextWrap:function(){return k().oneOffCustomTextWrap},
disableTextEllipsis:function(){return k().disableTextEllipsis},
disableBackdropFilter:function(){return k().disableBackdropFilter},
tooltipText:function(){return k().tooltipText},
ariaHidden:function(){return k().ariaHidden},
tabIndex:function(){return k().tabIndex},
buttonText:function(){return k().buttonText},
formattedButtonText:function(){return k().formattedButtonText},
animatedTextProps:function(){return k().animatedTextProps},
onClickRateLimitMs:function(){return k().onClickRateLimitMs}}};
doI=function(k,E){E=(k.iconPosition==="icon-only"||k.iconPosition==="icon-only-40"||k.iconPosition==="icon-with-label")&&E;return!k.segmentedPosition&&E&&k.size==="S"};
sNe=function(k,E,S){switch(k.size){case "XS":return 16;case "S":return!S&&doI(k,E)?24:16;default:return 24}};
qlm=function(k){switch(k){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"}};
z6j=function(k){switch(k){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"}};
QN1=function(k){switch(k){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"}};
lHm=function(k){if(k.style==="overlay-dark"&&k.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
hb=function(k){return k&&k.endsWith("px")?Number(k.slice(0,-2)):0};
Cs1=function(k){var E=E===void 0?{}:E;k=_.n(_.IZ(k));var S=k.next().value;return[function(R){var V=_.HX(function(){var J,m,a,T;return{text:(J=S())!=null?J:"",location:(m=E.location)!=null?m:"bottom",offset:(a=E.offset)!=null?a:16,delay:(T=E.delay)!=null?T:1}},void 0,"MgTrkc");
_.vX(function(){var J=V();_.FF(function(){_.ZJ.addJob(function(){Jb.notify(R,J)},4)})},"WlsgZc");
var N=function(){O1h(R,V())},h=function(){G$t()};
R.addEventListener("mouseenter",N);R.addEventListener("focus",N);R.addEventListener("mouseleave",h);R.addEventListener("blur",h);R.addEventListener("tap",h);_.bI(function(){R.removeEventListener("mouseenter",N);R.removeEventListener("mouseleave",h);R.removeEventListener("focus",N);R.removeEventListener("blur",h);R.removeEventListener("tap",h);G$t()})},
k.next().value]};
EVI=function(k,E){if(!Nn){var S;o6j(function(){return S=vhI(k,E)});
return S}k.parent=kKC();return vhI(k,E)};
kKC=function(){var k=_.no(Nn||void 0,DBA);return _.YQt(k)?void 0:k};
c9=function(k,E){_.HM(k,Object.assign({},E,{forceClickLogging:!0}))};
Ryh=function(k,E){var S=_.Uk(k==null?void 0:k.onTap),R={};S&&(R.getClickedVisualElement=function(){var V;return SrI(k,S,E==null?void 0:(V=E.value)==null?void 0:V.visualElement)});
R=_.Kh({elementsCommand:k.onTap,forceNewState:!0,additionalCommandArgs:R});return ph(R)?R:void 0};
VCb=function(k,E,S,R){c9(k,Object.assign({},{form:{element:E,event:S}},R))};
Npt=function(k,E,S,R,V){var N=void 0;return function(h){var J=_.Uk(S?k==null?void 0:k.onDisabledTap:k==null?void 0:k.onTap);if(J){var m;N=(m=N)!=null?m:E==null?void 0:E.value;if(J)if(_.Y("web_button_vm_click_client_ve_killswitch"))VCb(J,N,h);else{var a;m=SrI(k,J,(a=N)==null?void 0:a.visualElement);if(V){VCb(J,V,h,{clickedVisualElement:m,form:{element:V}});return}VCb(J,N,h,{clickedVisualElement:m})}}R&&R(h)}};
SrI=function(k,E,S){E=E==null?void 0:E.clickTrackingParams;var R,V;k=k==null?void 0:(R=k.loggingDirectives)==null?void 0:(V=R.clientVeSpec)==null?void 0:V.uiType;if(S&&k&&!E)return S};
ISb=function(k){switch(k){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"}};
nV1=function(k){switch(k){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"}};
iHh=function(k){switch(k){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"}};
hyh=function(k){switch(k){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"}};
JAj=function(k,E){return _.Ep(k.entities,"engagementToolbarStateEntityPayload",E)};
mfI=function(k){(k=_.tV(k))&&_.cAh(k)};
_.cAh=function(k){var E=_.Fe();E&&_.xA(E,k)};
eyt=function(k,E,S){_.qe(k,"yt-open-popup-action",[E,S||k])};
aSi=function(k,E){var S=_.d0(k,"endpoint"),R=_.d0(k,"action");return(S=R?R:S)&&E&&(S=E.navigationEndpointPopupMap[S])&&(k=_.CV(S,k),(S=_.d0(k,"renderer"))&&E.supportedPopups.hasOwnProperty(S))?{openPopupAction:{popupType:E.popupTypeMap[S],popup:k}}:null};
tCm=function(k,E,S,R){if(R){var V;S=S==null?void 0:(V=S.data)==null?void 0:V.contents;(V=S instanceof Array&&S.length?S[0]:S)&&(S=_.d0(V,"renderer"))&&R.supportedPopups.hasOwnProperty(S)&&(E.stopPropagation(),eyt(k,{openPopupAction:{popupType:R.popupTypeMap[S],popup:V}}))}};
P8j=function(k,E,S,R){R=R===void 0?!1:R;var V=TpI(E);if(V){V.href&&uv(V.href);var N=E.button;N=N!==void 0?N===0&&!mu(E):!mu(E);V.data&&N&&wOe(k,V,E,S,R)}};
wOe=function(k,E,S,R,V){V=V===void 0?!1:V;var N=_.wO("pbj_navigate_limit",-1)===0;Bpl(E);_.en().resolve(_.mz(QF));var h=E.data;if(Object.keys(h).length!==0)if(!_.Y("unplugged_web_disable_actions_for_cec_endpoint")&&_.W(h,_.CI))_.Y("endpoint_behavior_command_executor_fix_killswitch")||(S.preventDefault(),S.stopPropagation()),_.Ot(k,[h],k);else if(R=aSi(h,R))h.loggingUrls&&h.loggingUrls.forEach(function(m){m.baseUrl&&_.Cx(m.baseUrl)}),S.preventDefault(),S.stopPropagation(),eyt(k,R,E);
else{var J=Yr1(0,E.data,S);if(k=E.getForm)k=k(),J.tempData=J.tempData||{},J.tempData=Object.assign({},J.tempData,k);k=_.vT(S);if(R=k.find(function(m){return!!m.visualElement}))J.createScreenConfig=J.createScreenConfig||{},J.createScreenConfig.clickedVisualElement=R.visualElement;
if(!N)if(S.preventDefault(),S.stopPropagation(),_.W(h,_.Wgb)&&!V&&_.V_.instance)_.V_.instance.resolveCommand(h,J);else if(_.Y("kevlar_command_handler_formatted_string")&&!V&&_.V_.instance&&FgI(h))V=k.find(function(m){return!!m.is})||S.target,S={form:Object.assign({},J,{event:S,
element:V,originatingNode:E})},_.V_.instance.resolveCommand(h,S);else{h=_.vT(S);S=[];for(V=0;V<h.length;V++)(N=h[V].is)&&S.push(N);Sft({parents:S.join(","),text:E.innerText},function(){_.Me(E,"yt-navigate",J)})}}};
yAR=function(k){if(k=TpI(k))Bpl(k),a51(k.href)};
TpI=function(k){k=_.vT(k);for(var E,S=0;S<k.length;S++)if(E=k[S],E.tagName==="A"&&E.classList.contains("yt-simple-endpoint")){if(!E.data)break;return E}return null};
mu=function(k){return k.shiftKey||k.altKey||k.metaKey||k.ctrlKey};
oVb=function(k,E){var S={itct:E.clickTrackingParams};_.Y("kevlar_client_side_screens")&&(!_.W(E,_.hg)||_.Y("kevlar_exclude_endpoint_killswitch"))&&(S.endpoint=JSON.stringify(E));_.Y("enable_unknown_lact_fix_on_html5")&&_.en().resolve(_.mz(_.eQ))&&(S.lact=_.mE());cvm(S);_.vi(k,S)};
Bpl=function(k){k.href&&Object.keys(k.data).length!==0&&oVb(k.href,k.data)};
FgI=function(k){for(var E=_.n(XOI),S=E.next();!S.done;S=E.next())if(k[S.value])return!1;return!0};
_.gVm=function(k,E){return _.Ep(k.entities,"markersEngagementPanelSyncEntity",E)};
_.Ufe=function(k,E){return _.Ep(k.entities,"playerStateEntity",E)};
HHI=function(k,E){return _.Ep(k.entities,"fantasyWinProbabilityEntity",E)};
KgC=function(k,E){return _.Ep(k.entities,"fantasyTeamEntity",E)};
pOA=function(k,E){return _.Ep(k.entities,"fantasyPlayerEntity",E)};
AAI=function(k,E){return _.Ep(k.entities,"booleanEntity",E)};
rAI=function(k,E){return _.Ep(k.entities,"qrCodeEntity",E)};
uMe=function(k){return _.Ep(k.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
xfI=function(){if(aZ)return aZ;if(window.lottie)return aZ=Promise.resolve(window.lottie);var k=_.dv(_.Mg("LOTTIE_URL"));return k?aZ=new Promise(function(E,S){var R=document.createElement("script");R.addEventListener("load",function(){E(lottie)});
R.addEventListener("error",function(V){var N="Lottie library failed to load.";V?V.message&&(N+=" Original description: "+V.message,_.sc(V,N)):V=Error(N);_.dg(V);S(V)});
R.setAttribute("async","");_.Ib(R,k);document.head.appendChild(R)}):Promise.reject(Error("zh"))};
Lgj=function(){return aZ?aZ:xfI()};
jph=function(k){if(k)switch(k){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.Y("kevlar_use_wil_icons"))return k=(k=uMe(_.vo().getState()))&&k.animationLightUrl&&k.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:k.animationLightUrl,pathDarkTheme:k.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,k?k:tb.get("LIKE");break;case "LIKE_DELHI_PLAYER":return tb.get("LIKE_DELHI_PLAYER")}};
DfI=function(k){var E=jph(k);if(E)return E;switch(k){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return tb.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return tb.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return tb.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return tb.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return tb.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return tb.get("NOTIFICATION_BELL")}};
$fh=function(k,E){if(!k.closest)return!1;E=!!jph(E);return _.Mg("ID_TOKEN")&&E?!!k.closest("segmented-like-dislike-button-view-model")||!!k.closest("yt-player-quick-action-buttons"):!1};
vVb=function(k,E){if(!k||fSR)E=!1;else{var S;if(!(S=$fh(k,E)))if(k.closest)if(S=!_.Mg("ID_TOKEN"),k=k.closest("ytd-subscription-notification-toggle-button-renderer-next"),S||!k)S=!1;else{var R;S=((R=k.data)==null?void 0:R.targetId)==="notification-bell"&&E!=="EXPAND_MORE"}else S=!1;E=S}return E};
bHh=function(k){var E,S;return _.c(function(R){switch(R.nextAddress){case 1:return _.F5(R,2),R.yield(fetch(k),4);case 4:return E=R.yieldResult,R.yield(E.json(),5);case 5:return R.return(R.yieldResult);case 2:S=_.UY(R),_.dg(S),_.KR(R)}})};
ZHI=function(k,E){var S,R,V;return _.c(function(N){if(N.nextAddress==1)return(S=E?k.pathDarkTheme:k.path)?N.yield(Promise.all([bHh(S),xfI()]),2):N.return();R=N.yieldResult;V=R[0];TZ.set(S,V);_.KR(N)})};
sph=function(k,E,S,R){function V(h,J){if(E.value===J&&!E.cancelled&&k!=null&&k.value){for(;k.value.firstChild;)k.value.removeChild(k.value.firstChild);k.value.classList.add("ytSpecIconShapeHost");h(k.value,R)}}
var N=_.dfb(_.en().resolve(_.Rv),S);typeof N==="function"?(E.value=null,V(N,null)):(E.value=N,N.then(function(h){V(h,N)}))};
MCI=function(k,E){var S=document.createElement("div"),R=_.fV(S,function(){return _.e(_.t,{cond:k,then:function(V){return _.e(lSh,{data:V,options:E})}})},"ba");
return[S,R]};
_.wb=function(k,E){if(E){var S={};qrj.forEach(function(R){R=zyR(E,R,"--yt-lightsource-");Object.assign(S,R)});
Qph.forEach(function(R){R=zyR(E,R,"--yt-basic-");Object.assign(S,R)});
_.VO(k,S)}};
zyR=function(k,E,S){var R={};R[S+_.Ne(E)]=k&&k[E]?_.Kc(k[E]):"";return R};
_.B9=function(k,E,S){P9[k]||(P9[k]={});P9[k][E]=S};
_.Yv=function(k){P9[k]||(P9[k]={});return P9[k]};
OHj=function(k){if(!k)return{};var E=k.foregroundTitleColor,S=k.backgroundColor;k=k.borderColor;var R="text";k?R="outline":S&&(R="filled");return{type:R,customColors:{color:E?_.Kc(E):void 0,backgroundColor:S?_.Kc(S):void 0,borderColor:k?_.Kc(k):void 0}}};
Sqi=function(k){var E=k.renderer;var S=k.element;var R=k.commandController;var V=k.onTapCallback;var N=k.skipCommandHandling;var h=k.overrides;var J=k.forceIcon;var m=k.forceModernIconButton;var a=k.forceDisabled;var T=k.isSubscribe===void 0?!1:k.isSubscribe;var w=k.isPressed===void 0?!1:k.isPressed;var P=k.useButtonSize===void 0?!1:k.useButtonSize;k=GKl(E);T&&(k.style="mono",k.type="filled");J=!E.icon||!J&&E.text?E.icon?E.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:m?"icon-only":"icon-only-40";J==="icon-only-40"&&(k.type="text");var B;m=Object;T=m.assign;P=C8I(E,P);w=!!E.isSelected||!_.Y("web_propagate_is_pressed_killswitch")&&!!w;var F=E.isSelected!==void 0;a=a===void 0?E.isDisabled:a;var K=E.text?_.y_(E.text):void 0;var r,x,L,q=((r=E.accessibilityData)==null?void 0:(x=r.accessibilityData)==null?void 0:x.label)||((L=E.accessibility)==null?void 0:L.label);r=q?q:_.$n(E.text);S=kWR(E,S,R,V,N);R=E3l(E);R!=null&&R.length?(R=_.Kh({innertubeCommand:ode(R),
forceNewState:!0}),R=ph(R)?R:void 0):R=void 0;return T.call(m,{},k,P,{iconPosition:J},h,{focused:!1,toggled:w,toggleable:F,disabled:a,formattedButtonText:K,accessibilityLabel:r,onTap:S,aTagConfig:R},OHj((B=E.colorData)==null?void 0:B.basicColorPaletteData),{oneOffCustomTextWrap:E.oneOffCustomTextWrap})};
kWR=function(k,E,S,R,V){return function(N){var h=E3l(k);R(h,N);if(!V){h=_.n(h);for(var J=h.next();!J.done;J=h.next())c9(J.value,{form:{element:E,event:N},commandController:S})}}};
E3l=function(k){var E=[];k.command&&E.push(k.command);k.serviceEndpoint&&E.push(k.serviceEndpoint);k.navigationEndpoint&&E.push(k.navigationEndpoint);return E};
C8I=function(k,E){if(E)switch(k.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(k.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
GKl=function(k){switch(k.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"}}};
RDt=function(k,E){return typeof k!=="object"||k===null?!1:Object.keys(E).every(function(S){return S in k})};
_.W9=function(k){return Object.fromEntries(Object.keys(k).map(function(E){return[E,E]}))};
VWC=function(k,E,S){return k6j(S,function(R,V){return function(N){var h=_.sX.apply(1,arguments);return RDt(N,k)?V.apply(null,[N[E]].concat(_.$e(h))):V.apply(null,[N].concat(_.$e(h)))}})};
_.FS=function(k){return function(E,S){return VWC(k,E,S)}};
NKC=function(k,E){var S;return(S=_.Ep(k,"playlistLoopStateEntity",E))!=null?S:void 0};
Ich=function(k,E){var S;return(S=_.Ep(k,"toggleMenuServiceItemEntity",E))!=null?S:void 0};
_.yQ=function(k){return k!=null&&k.watch?k.watch.isTheaterMode:!1};
_.oZ=function(k){return k!=null&&k.watch?k.watch.isWatchFullscreen:!1};
_.XS=function(k){if(k.watch.isSwatcherooActive)return!0;k=_.n3b(k);return _.Y("web_watch_enable_single_column_grid_view")?k:!1};
_.n3b=function(k){return k.watch.isWatchNarrowWidth};
_.i0I=function(k){return k.watch.openEngagementPanels};
_.gb=function(k){return _.HX(function(){EmC()();return VSm(k)},{debugName:"d8B62c"},"DEXkhd")};
U3=function(k,E){return _.Ep(k.entities,"likeStatusEntity",E)};
hDR=function(k,E){return _.Ep(k.entities,"likeCountEntity",E)};
_.JWA=function(k,E){return _.Ep(k.entities,"stringEntity",E)};
cWt=function(k,E){return _.Ep(k.entities,"dataFreshnessEntity",E)};
mSA=function(k,E){if(!k)return!1;var S,R=(S=_.W(k,_.Ev))==null?void 0:S.signal;if(R&&E.signalEndpointMap)return!!E.signalEndpointMap[R];var V;if((S=(V=_.W(k,_.H9))==null?void 0:V.request)&&E.continuationEndpointMap)return!!E.continuationEndpointMap[S];for(var N in k)if(E.commandEndpointMap[N])return!0;return!1};
eDI=function(k,E){if(E.streamingEndpointMap)for(var S in k)if(E.streamingEndpointMap[S]&&(k=E.streamingEndpointMap[S]))return k()};
ac1=function(k,E){var S,R=(S=_.W(k,_.Ev))==null?void 0:S.signal;if(R&&E.signalEndpointMap&&(S=E.signalEndpointMap[R]))return S();var V;if((S=(V=_.W(k,_.H9))==null?void 0:V.request)&&E.continuationEndpointMap&&(V=E.continuationEndpointMap[S]))return V();for(var N in k)if(E.commandEndpointMap[N]&&(k=E.commandEndpointMap[N]))return k()};
tWj=function(k){var E={"Content-Type":"application/json"};_.Mg("EOM_VISITOR_DATA")?E["X-Goog-EOM-Visitor-Id"]=_.Mg("EOM_VISITOR_DATA"):_.Mg("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=_.Mg("VISITOR_DATA"));E["X-Youtube-Bootstrap-Logged-In"]=_.Mg("LOGGED_IN",!1);_.Mg("DEBUG_SETTINGS_METADATA")&&(E["X-Debug-Settings-Metadata"]=_.Mg("DEBUG_SETTINGS_METADATA"));if(k!=="cors"){var S=_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME");S&&(E["X-Youtube-Client-Name"]=S);(S=_.Mg("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(E["X-Youtube-Client-Version"]=
S);(S=_.Mg("CHROME_CONNECTED_HEADER"))&&(E["X-Youtube-Chrome-Connected"]=S);(S=_.Mg("DOMAIN_ADMIN_STATE"))&&(E["X-Youtube-Domain-Admin-State"]=S)}_.qg("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(k=_.Mg("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(E["X-YouTube-Lava-Device-Context"]=k):k!=="cors"&&_.qg("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(k=_.Mg("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(E["X-YouTube-Lava-Device-Context"]=k);return E};
TKj=function(k,E){E.watchNextResponse||E.reelItemWatchResponse?E.watchNextResponse?k.content=E.watchNextResponse:k.content=E.reelItemWatchResponse:E.playerResponse?k.player=E.playerResponse:E.reelWatchSequenceResponse&&(k.reelSequence=E.reelWatchSequenceResponse)};
_.KU=function(k){if(!k)return null;for(var E=[],S=0;S<k.textSegments.length;S++){var R=k.textSegments[S];R.text?E.push(R):R.emojiId&&E.push({emoji_id:R.emojiId})}return{text_segments:E}};
Waj=function(k,E,S,R,V,N,h){N=N===void 0?[]:N;var J=new _.pU;J.endpoint=S;if(!S)return _.Zd(new _.LC("handle undefined endpoint",E.tagName)),J;var m=c0I(S);m.length&&(_.Ot(k,m,E,R),J.actions=m);S.loggingUrls&&S.loggingUrls.forEach(function(T){T.baseUrl&&kf(T.baseUrl,T.attributionSrcMode)});
m=!_.Y("web_skip_impression_click_killswitch")&&R&&R.impression;if(S.clickTrackingParams&&!w6l(S)&&!PpR(E)&&!m&&(m=_.JV(),!_.Ab(m,E))){var a=E.getScreenLayer&&E.getScreenLayer();a?m.clickCommand(S,null,a):m.clickCommand(S,null)}m=!1;for(a=0;a<N.length;a++)if((0,N[a])(E,S,R)){m=!0;break}!m&&BK1(S)&&(J.ajaxPromise=Yqt(k,E,S,R,V,h));return J};
PpR=function(k){var E;return(k=(E=k.data)==null?void 0:E.navigationEndpoint)&&!!k.clickTrackingParams};
w6l=function(k){var E=_.W(k,_.Ev);if(E&&(E=E.signal)&&Fai.indexOf(E)>=0)return!0;for(var S in k)if(yWi.indexOf(S)>=0)return!0;return!1};
BK1=function(k){var E;if(((E=_.W(k,_.Ev))==null?void 0:E.signal)==="CLIENT_SIGNAL")return!1;for(var S in k)if(o3I.indexOf(S)>=0)return!1;k=Object.keys(k);return k.length===1&&k[0]==="loggingUrls"?!1:!0};
rWI=function(k,E,S,R,V,N,h){var J=_.rb.instance;if(J&&_.u_(J,R))var m=_.xv(J,R,V).then(function(T){return(T==null?0:T.data)?T:{data:T}});
else m=k.requestDataForServiceEndpoint(R,V),_.W(R,X6i)||_.W(R,g3h)||_.W(R,_.USm)||_.W(R,H0h)||_.dg(new _.LC("No RequestBuilder for endpoint",R));var a=_.LU();a.promise.thenCatch(function(){var T=_.d0(R,"action")||_.d0(R,"command")||_.d0(R,"endpoint");T&&(T=R[T],T.hasOwnProperty("onFailureAction")?_.Ot(E,[T.onFailureAction],S):T.hasOwnProperty("onFailureCommand")&&_.Ot(E,T.onFailureCommand,S));m.cancel("Resolver promise rejected")});
m.then(function(T){if(T){var w=T.error;if(w){if(N&&N.onServerError)N.onServerError(R,T);a.reject(new _.LC("Response error",R,w))}else if(T=T.data)if(w=T.error){if(N&&N.onServerError)N.onServerError(R,T);a.reject(new _.LC("Returned error",R,w))}else{Kab(E,S,T,R);p6i(T);if(w=J01(T))for(var P=_.n(w),B=P.next();!B.done;B=P.next()){B=B.value;var F=_.en().resolve(_.mz(AWm))||DD;if(!_.rb.instance||!F.some(function(r){return!!_.W(R,r)})||_.Y("kevlar_response_processor_allowlist_killswitch")){var K=F=void 0;
((K=_.W((F=B)==null?void 0:F.commandMetadata,_.Sd))==null?0:K.sendPost)?_.Qw(E,[B]):_.Ot(E,[B],S)}}(P=_.W(T==null?void 0:T.frameworkUpdates,$v))&&h&&h(P);if(N&&N.onSuccess)N.onSuccess(R,T);a.resolve(new _.fU(T,w))}}else a.reject(new _.LC("Invalid service endpoint provided",R))},function(T){a.reject(T)});
return a.promise};
p6i=function(k){var E;(k=(E=_.W(k==null?void 0:k.onResponseReceivedCommand,_.uNI))==null?void 0:E.continuationItems)&&(k==null?void 0:k.length)===1&&_.W(k[0],xSh)&&_.o_("so_r",void 0,"search_overview_answer")};
Yqt=function(k,E,S,R,V,N){var h;return(h=E.getNetworkManager&&E.getNetworkManager()?E.getNetworkManager():_.en().resolve(_.mz(_.yS)))?rWI(h,k,E,S,R,V,N):_.BM("No network manager.")};
Kab=function(k,E,S,R){if(S=S.trackingParams||S.loggingDirectives&&S.loggingDirectives.trackingParams){var V;(_.W(R,LaC)||_.W(R,jDb)||_.W(R,DSA))&&R.clickTrackingParams?V=_.tV(R.clickTrackingParams):_.Y("web_graft_to_parent_command")&&R.clickTrackingParams&&(V=_.tV(R.clickTrackingParams));var N;R=(N=E.getScreenLayer)==null?void 0:N.call(E);E=_.JV().graftServerVe(S,V,R);_.zR(k,"yt-store-grafted-ve-action",[E])}};
_.$S1=function(k){var E=new Image;return new _.yF(function(S,R){E.addEventListener("load",function(){S()});
E.addEventListener("error",function(){R()});
E.src=k})};
fcl=function(k){return!!k};
v3h=function(k){return!!k};
b0C=function(k,E,S){var R=k.rowIndex;R!==void 0&&_.zR(k.hostElement,"yt-section-reactive-dismissal",[R,E,S])};
_.v9=function(k,E,S){k=_.n(k);for(var R=k.next();!R.done;R=k.next()){R=R.value;if(R===E)break;for(var V=_.n(S),N=V.next();!N.done;N=V.next())if(N=N.value,R.tagName===N||!_.Y("web_event_button_role_check_killswitch")&&R.role==="button"&&N==="BUTTON")return!0}return!1};
_.b_=function(k,E,S){k=_.n(k);for(var R=k.next();!R.done;R=k.next()){R=R.value;if(R===E)break;for(var V=_.n(S),N=V.next();!N.done;N=V.next())if(R.id===N.value)return!0}return!1};
_.s3=function(){var k=_.en().resolve(_.mz(_.ZD));return k?(k=k.getCurrentPage())?_.db(k):null:null};
_.l_=function(){var k=_.s3();if(!k){var E=_.en().resolve(_.mz(_.ZD)),S=E?typeof E:"no page manager";E=E?E.getCurrentPage():null;S=new _.LC("Player is missing when requested.",S,E?E.tagName:"no page");_.bM(S)}return k};
_.db=function(k){return k&&k.getPlayer?k.getPlayer():null};
Z0j=function(k,E){k={args:{raw_player_response:k}};E&&(k.args=Object.assign({},k.args,E));return k};
dSl=function(k){if(k.args){if(k.args.raw_player_response)return k.args.raw_player_response;if(k.args.player_response)return JSON.parse(k.args.player_response)}};
_.sDh=function(k,E){var S={url:"/watch?v="+k.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};k.playlistId&&(S.url+="&list="+k.playlistId);k.playerParams&&(S.url+="&pp="+k.playerParams);k={watchEndpoint:k,commandMetadata:{webCommandMetadata:S}};E&&(k.clickTrackingParams=E);return k};
MWj=function(){return lc1||!!_.CV("yt.player.Application")};
zDe=function(){return qqe||!!document.querySelector("link#player-css")};
O0h=function(){function k(){lc1=!0;QDI.resolve()}
var E,S;return _.c(function(R){QDI||(QDI=new _.kl,MWj()?k():(E=document.createElement("script"),E.addEventListener("load",k),S=_.Lu(_.Mg("PLAYER_JS_URL")),_.Ib(E,S),document.head.appendChild(E)));return R.return(QDI.promise)})};
Cpi=function(){function k(){qqe=!0;GWI.resolve()}
if(!GWI)if(GWI=new _.kl,zDe())k();else{var E=document.createElement("link");E.id="player-css";E.addEventListener("load",k);var S=_.Lu(_.Mg("PLAYER_CSS_URL"));_.JE(E,S,"stylesheet");document.head.appendChild(E)}return GWI.promise};
kth=function(){return MWj()&&zDe()?Promise.resolve([]):Promise.all([O0h(),Cpi()])};
ELm=function(k,E,S){var R={args:{}};k&&(R.args.raw_player_response=k);E&&(R.args.raw_watch_next_response=E);S&&(R.args=Object.assign({},R.args,S));return R};
NxC=function(k,E,S){var R=!1;R=R===void 0?!0:R;k=typeof k==="string"?_.MJ(document,k):k;var V=S$m+"_"+_.Oj(k),N=R9l[V];if(N&&R)return V0h(E,S)?N.api.loadVideoByPlayerVars(E.args||null):N.loadNewVideoConfig(E),N.api;N=new qJ(k,V,E,S,void 0);R9l[V]=N;N.addOnDisposeCallback(function(){delete R9l[N.getId()]});
return N.api};
V0h=function(k,E){return E&&E.serializedExperimentFlags?E.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):k&&k.args&&k.args.fflags?k.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
ILA=function(){var k=new _.kl;k.resolved=!1;var E=k.resolve;k.resolve=function(S){k.resolved=!0;E(S)};
return k};
iAj=function(k){var E={};nLh().install((E.document_disposed={callback:k},E))};
zZ=function(k,E){if(!k&&Math.random()<=_.wO("kevlar_unified_player_logging_threshold")){k=Error("Bh`"+(E?E:"Unspecified error"));if(_.Y("kevlar_unified_player_throw_errors"))throw k;_.dg(k)}};
_.h9b=function(){var k=_.CV("ytDebugData.callbacks");k||(k={},_.J6("ytDebugData.callbacks",k));return k};
cdC=function(k,E){var S=_.h9b();if(_.Y("web_dd_iu")||JdI.includes(k))S[k]=E};
mHR=function(){return _.c(function(k){return k.return({isLeader:_.bG1(_.vo().getState()),c:_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Mg("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
e9l=function(){var k;_.c(function(E){if(E.nextAddress==1)return cdC("APP_STATE",mHR),E.yield(_.en().resolve(_.QQ),2);k=E.yieldResult;cdC("PI",function(){return _.c(function(S){return S.return(k.getVideoStats())})});
_.KR(E)})};
aLI=function(k){var E=_.fI(_.AI(_.Vt.location.href));k=_.fI(_.AI(k));return _.Y("kevlar_clear_non_displayable_url_params")?E==O3(k):O3(E)==O3(k)};
O3=function(k){var E=_.t0I(k);k=k.slice(0);var S=["frags"];_.Y("kevlar_hide_pp_url_param")&&S.push("pp");_.Y("kevlar_hide_time_continue_url_param")&&S.push("time_continue");S=_.n(S);for(var R=S.next();!R.done;R=S.next())R=R.value,k=_.bW(_.fI(k),R);return _.fI(k)+(E?"#"+E:"")};
GZ=function(k,E){E=Number(E)*1E3;var S=Math.round((0,_.ev)()),R=S.toString();k={innertubeResponse:k,serverDateTimestampMs:R,lastModifiedTimestampMs:R,expireTimestampMs:(S+E).toString()};if(E=_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME"))k.clientName=E;return k};
wKt=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++Txl};
Pei=function(k){return!isNaN(k)&&k>0};
Y$1=function(){_.Y("web_adaptive_repeat_ase")&&Bxh&&_.f2("applicationStarted",Bxh)};
_.Wkl=function(){var k=_.Wi(),E=_.Fe();E&&k&&_.jd(E,[k],!0)};
ydI=function(k){return k&&Fkt.some(function(E){return k.includes(E)})};
Kkh=function(k){var E=_.W(k,_.Oc);if(!E)return!1;var S=E.url,R=E.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!S)return _.bM(Error("Gh")),!1;if(E.target==="TARGET_NEW_WINDOW"){E={};_.Y("resolve_url_parent_tracking_params")&&(!_.iJ(S)||h3(window.location.href,S))&&(E={endpoint:k,itct:k.clickTrackingParams});cvm(E);k=null;try{if(R){a:{var V=S,N=E;R=R===void 0?!1:R;N&&_.vi(V,N);var h=_.ZF(V),J=_.DF(h);V!=J&&_.kr(Error("ig`"+V));V=J;try{if(R){J=V;J=lkb(J);uv(J);k=_.Cg(window,J,"_blank",
"attributionsrc");break a}}catch(P){_.O4(P)}uv(V);k=_.Cg(window,h,"_blank")}oL1(_.en().resolve(XKb),k,S);return!0}}catch(P){_.bM(P)}_.vi(S,E);E={target:"_blank",noopener:!1};h=window;J=jr(S)?S:_.ZF(typeof S.href!="undefined"?S.href:String(S));R=self.crossOriginIsolated!==void 0;k="strict-origin-when-cross-origin";window.Request&&(k=(new Request("/")).referrerPolicy);V=E.noreferrer;if(R&&V&&k==="unsafe-url")throw Error("ue");k=V&&!R;V=E.target||S.target;N=[];var m=[],a=!1;for(w in E){var T=E[w];switch(w){case "width":case "height":case "top":case "left":N.push(w+
"="+T);break;case "target":break;case "noopener":case "noreferrer":T?m.push(w):(a=!0,m.push(w+"=false"));break;case "attributionsrc":N.push(w+(T?"="+T:""));break;default:N.push(w+"="+(T?1:0))}}var w=V!==void 0&&!["_blank","_self","_top","_parent",""].includes(V);w=Uj()&&w;gLe&&R&&N.length===0&&m.length>0&&!w&&!a?(m.length===2&&(m=["noreferrer"]),_.Cg(h,J,V,m[0]),k=UHi()):(w=N.join(","),_.uC()&&h.navigator&&h.navigator.standalone&&V&&V!="_self"?(w=_.g7("A"),MU(w,J),w.target=V,k&&(w.rel="noreferrer"),
((E=E.attributionsrc)||E==="")&&w.setAttribute("attributionsrc",E),E=document.createEvent("MouseEvent"),E.initMouseEvent("click",!0,!0,h,1),w.dispatchEvent(E),w=UHi()):k?(w=_.Cg(h,"",V,w),h=_.DF(J),w&&(w.opener=null,h===""&&(h="javascript:''"),h='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+CU(h)+'">',h=zB(h),(E=w.document)&&E.write&&(E.write(OX(h)),E.close()))):((w=_.Cg(h,J,V,w))&&E.noopener&&(w.opener=null),w&&E.noreferrer&&(w.opener=null)),k=w);oL1(_.en().resolve(XKb),
k,S);return!0}w=_.Xu(S);w=ydI(w)||S==="https://studio.youtube.com/";if(_.iJ(S)&&!h3(window.location.href,S)||w)uv(S),PE(),_.xl(S,void 0,void 0,window.top,HAl);else return _.dg(new _.LC("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",k)),!1;return!0};
_.rd1=function(k,E){E=E===void 0?0:E;if(!(_.W(k,pK1)||_.W(k,Adh)||_.W(k,_.Oc)&&_.W(k,_.Oc).url))return!1;var S,R=(S=_.W(k,_.Oc))==null?void 0:S.url;S=R?{externalLinkData:{url:R}}:null;return _.JV().clickCommand(k,S,E)};
xHi=function(k,E,S,R,V){V=V===void 0?{}:V;return function(N){var h,J;var m=((h=k.loggingDirectives)==null?0:(J=h.clientVeSpec)==null?0:J.uiType)?_.kh(k.loggingDirectives.clientVeSpec.uiType):void 0;V.clickedVisualElement||(V.clickedVisualElement=m);m=uOb(k,E);S(m,N);m=_.n(m);for(h=m.next();!h.done;h=m.next()){h=h.value;J=R;var a=N,T=V;T.form?T.form.event=a:T.form={element:J,event:a};c9(h,T)}}};
uOb=function(k,E){var S=[];E?(k.toggledCommand&&S.push(k.toggledCommand),k.toggledServiceEndpoint&&S.push(k.toggledServiceEndpoint)):(k.defaultCommand&&S.push(k.defaultCommand),k.defaultServiceEndpoint&&S.push(k.defaultServiceEndpoint),k.defaultNavigationEndpoint&&S.push(k.defaultNavigationEndpoint));return S};
Lk1=function(k,E){var S=k.toggledStyle||k.style,R;switch((R=E?S:k.style)==null?void 0:R.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"}}};
_.Ef=function(){return _.c(function(k){return k.nextAddress==1?k.yield(_.en().resolve(_.QQ),2):k.return(_.en().resolve(jze)())})};
_.Sq=function(){return _.en().resolve(jze)()};
_.RE=function(){return Z_(function(){return{lottieEl:void 0}})};
DHl=function(k,E){return k.startsWith(E.uniqueId)};
$Hl=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(_.Ef(),2);E=R.yieldResult;if((S=E)==null||!S.addEventListener)return NB(),R.return();E.addEventListener("onCueRangeEnter",k);_.KR(R)})};
fLi=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(_.Ef(),2);E=R.yieldResult;if((S=E)==null||!S.removeEventListener)return NB(),R.return();E.removeEventListener("onCueRangeEnter",k);_.KR(R)})};
vLI=function(k){var E,S,R,V,N;_.c(function(h){if(h.nextAddress==1)return h.yield(_.Ef(),2);E=h.yieldResult;if((S=E)==null||!S.addCueRange)return NB(),h.return();R=_.n(k.timings);for(V=R.next();!V.done;V=R.next())N=V.value,E.addCueRange(k.uniqueId+"-"+N,N/1E3,(N+100)/1E3);_.KR(h)})};
bA1=function(k){var E,S,R,V,N;_.c(function(h){if(h.nextAddress==1)return h.yield(_.Ef(),2);E=h.yieldResult;if((S=E)==null||!S.removeCueRange)return NB(),h.return();R=_.n(k.timings);for(V=R.next();!V.done;V=R.next())N=V.value,E.removeCueRange(k.uniqueId+"-"+N);_.KR(h)})};
ZAm=function(){var k,E,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(_.Ef(),2);k=R.yieldResult;if((E=k)==null||!E.getPlayerState)return NB(),R.return();S=k.getPlayerState();return R.return(S===2)})};
NB=function(){_.dg(new _.LC("Smartimation player does not exist or is corrupted"))};
dHt=function(){try{var k;return(k=window.CSS)!=null&&k.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(E){return _.dg(new _.LC("Smartimation CSS.supports threw an error")),!1}};
OAt=function(k,E,S,R,V){var N=k.playlistId?szI:lLm;E=E();S=S();V=!!k.videoId&&V()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.Jp(E))return M0R({data:k,actionType:N,disabled:V},S);if(k.videoId&&R())return q$b({data:k,actionType:N,disabled:V});switch(E){case "TRANSFER_STATE_UNKNOWN":return q$b({data:k,actionType:N,disabled:V});case "TRANSFER_STATE_FAILED":return k.videoId?z9m({data:k,actionType:N,disabled:V}):QzR({data:k,actionType:N,disabled:V});case "TRANSFER_STATE_COMPLETE":return QzR({data:k,
actionType:N,disabled:V});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return M0R({data:k,actionType:N,disabled:V},S);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return k.videoId?z9m({data:k,actionType:N,disabled:V}):q$b({data:k,actionType:N,disabled:V});default:return q$b({data:k,actionType:N,disabled:V})}};
GtA=function(k,E){var S=k.onTapCommand,R=_.Uk(S);if(k.videoId&&_.W(R,_.IE))return _.W(R,_.IE).action=E,S;k.playlistId&&_.W(R,_.n5)&&(_.W(R,_.n5).action=E);return S};
q$b=function(k){var E=k.data;var S=k.actionType;k=k.disabled;return{text:Ceh,iconType:"OFFLINE_DOWNLOAD",onTap:GtA(E,S.ACTION_ADD),disabled:k}};
M0R=function(k,E){var S=k.data;var R=k.actionType;k=k.disabled;var V="OFFLINE_DOWNLOAD";E>=0&&E<=.1?V="OFFLINE_DOWNLOADING_ZERO":E>.1&&E<=.3?V="OFFLINE_DOWNLOADING_TWENTY":E>.3&&E<=.5?V="OFFLINE_DOWNLOADING_FORTY":E>.5&&E<=.7?V="OFFLINE_DOWNLOADING_SIXTY":E>.7&&E<1?V="OFFLINE_DOWNLOADING_EIGHTY":E===1&&(V="OFFLINE_PIN");return{text:kdh,iconType:V,onTap:GtA(S,R.ACTION_REMOVE_WITH_PROMPT),disabled:k}};
QzR=function(k){var E=k.data;var S=k.actionType;k=k.disabled;return{text:Eci,iconType:"OFFLINE_PIN",onTap:GtA(E,S.ACTION_REMOVE_WITH_PROMPT),disabled:k}};
z9m=function(k){var E=k.data;var S=k.actionType;k=k.disabled;return{text:SHA,iconType:"OFFLINE_DOWNLOAD",onTap:GtA(E,S.ACTION_RETRY),disabled:k}};
_.iK=function(k,E){var S=EmC();return _.HX(function(){S();return VSm(k,[_.dt(E)||""])},{debugName:"LUZslf"},"Z105t")};
RNI=function(k){var E=_.iK(_.Xf,function(){return k().videoId}),S=_.iK(_.g8,function(){return k().playlistId});
return function(){return k().videoId?E:k().playlistId?S:_.n(_.yg("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
VJA=function(k){var E=_.iK(Up,function(){return k().videoId}),S=_.iK(_.vBb,function(){return k().playlistId});
return function(){return k().videoId?E:k().playlistId?S:_.n(_.yg(0,void 0,"K4tgOc")).next().value}};
N51=function(k){var E=_.iK(_.QAh,function(){return k().videoId});
return function(){return k().videoId?E:_.n(_.yg(!1,void 0,"Oaxwcf")).next().value}};
IAm=function(k){var E=_.iK(dql,function(){return k().videoId});
return function(){return k().videoId?E:_.n(_.yg("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
nct=function(){return{}};
_.mKi=function(k,E,S){return{submitForm:function(){var R,V,N,h;return _.c(function(J){if(J.nextAddress==1){R=ip1(k());if(!R)return J.return();if(R.onSubmit)return hNl(E),R.onSubmit(),hNl(S),J.return();if(!R.submitConfig||!R.formData)return J.jumpTo(0);R.disableDuringSubmission&&JeR(k(),!0);hNl(E);return J.yield(ceI(R.submitConfig,R.formData()),3)}V=J.yieldResult;hNl(S);if(((N=V)==null?0:N.submitResult)&&((h=R)==null?0:h.onSubmitResult))R.onSubmitResult(V.submitResult);R.disableDuringSubmission&&JeR(k(),
!1);return J.return()})},
isValid:function(){var R=ip1(k());if(R){var V;return!((V=R.isValid)==null||!V.call(R))}return!0},
isSubmitting:function(){var R,V;return!!((R=ip1(k()))==null?0:(V=R.isSubmitting)==null?0:V.call(R))}}};
_.h0=function(){if(!eNl){var k=_.n(_.yg(new Map,void 0,"Y1XnBc"));eNl=k.next().value;aAj=k.next().value}return eNl};
_.tJI=function(k){aAj(new Map(k))};
ip1=function(k){if(k)return _.h0()().get(k)};
ceI=function(k,E){var S;return _.c(function(R){return R.nextAddress==1?E?(S=_.en().resolve(_.mz(T5t)))&&k.submitId?R.yield(S.submitForm(k.submitId,E,w81,k.params,k.clickTrackingParams),2):R.return(Promise.reject(Error("Ih"))):R.return(Promise.reject(Error("Hh"))):R.return(R.yieldResult)})};
JeR=function(k,E){if(k){var S=_.h0();S().set(k,Object.assign({},S().get(k),{isSubmitting:function(){return E}}));
_.tJI(S())}};
hNl=function(k){if(k){var E=_.en().resolve(_.t3);E&&(k=_.Uk(k()))&&E.resolveCommand(k)}};
B5I=function(k,E){E=E===void 0?{shouldPersist:!0}:E;return{useUpdatableData:function(S,R){var V=[],N=_.n(_.IZ(function(){var a=S();if(R!=null&&R.length&&V){var T=V.length>0;for(var w=!1,P=0;P<R.length;P++){var B=R[P]();T&&B!==V[P]&&(w=!0);V[P]=B}T=w}else T=!1;if(T)_.J0.remove(m());else if(T=_.J0.get(m()))return T;return a})),h=N.next().value,J=N.next().value,m=_.HX(function(){return k(S())},void 0,"mX326");
_.vX(function(){if(m()!=null){PSb.set(m(),[h,J]);var a=m();_.bI(function(){PSb.delete(a)})}},"MgKPjb");
return[h,function(a){J(a);E.shouldPersist&&_.J0.set(m(),a)}]},
getData:function(S){var R;return(R=PSb.get(k(S)))==null?void 0:R[0]()},
updateData:function(S,R){S=k(S);var V=PSb.get(S);if(!V)return!1;var N=_.n(V);V=N.next().value;N=N.next().value;R=R(V());N(R);E.shouldPersist&&_.J0.set(S,R);return!0}}};
YHA=function(k){var E=_.n(_.yg(!0,void 0,"bKtO6d")),S=E.next().value;E.next();return function(){var R=HC(k.children());return _.e(_.t,{cond:S,then:function(){return R},
else:k.fallback})}()};
_.cp=function(k){var E=WYm(k),S=E.data,R=E.mapping,V=E.wrapper;E=E.pendingFallback;var N=function(){return FY1(_.dt(S))},h=function(){var J=N(),m=[];
J=_.n(J);for(var a=J.next();!a.done;a=J.next()){var T=void 0;a=a.value;var w=void 0;for(T in a)if(!(!a).hasOwnProperty(T)){w=T;break}(T=w)&&m.push(T)}return m};
return k.data?_.e(YHA,{fallback:E},function(){return _.e(_.jw,{each:h},function(J,m){var a=V?function(w){return V(function(){return R[J](w,m)},T,m)}:function(w){return R[J](w,m)};
a.debugName||(a.debugName=String(J));if(!R[String(J)])return document.createComment("");a.componentType!==Lo&&yeh(String(J));var T=och(N,J,m);return _.e(a,{data:T})})}):_.e(_.tj,null)};
WYm=function(k){var E=k.targetId||X8b(k.children);if(!k.data||!E||_.Y("mweb_new_replaceables_killswitch"))return Object.assign({},k,{mapping:k.children,wrapper:void 0});var S="stamper-"+gcl++,R=function(){var J;return(J=typeof k.targetId==="function"?k.targetId(S):k.targetId)!=null?J:S};
E=_.n(UKC(function(){var J=FY1(k.data());J.targetId=R;return J})).next().value;
var V=Object.assign({},(_.en().resolve(_.mz(Hph))||{}).replaceableMapping,k.children);if(k.replacementWrapper){var N=V.notificationTextRenderer,h=V.notificationMultiActionRenderer;N&&(V.notificationTextRenderer=function(J,m){return k.replacementWrapper(N({data:J.data},m))});
h&&(V.notificationMultiActionRenderer=function(J,m){return k.replacementWrapper(h({data:J.data},m))})}return Object.assign({},k,{data:E,
mapping:V,wrapper:function(J,m,a){return EVI({targetId:R,stamperIndex:a},J)}})};
och=function(k,E,S){var R;return _.HX(function(){var V=k()[S()];if(V)R=V[E];else return _.dg(new _.LC("Stamper failed to find "+String(E)+" at index "+S()+" of data array of length "+(k().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),R;return V[E]},void 0,"wgRPHd")};
X8b=function(k){k=_.n(Object.keys(k));for(var E=k.next();!E.done;E=k.next())if(E=E.value,KYC.includes(E)||p8j.includes(E)||Ael.includes(E))return!0;return!1};
FY1=function(k){return k?Array.isArray(k)?k:[k]:[]};
yeh=function(k){if(_.Y("web_enable_renderer_logger")){var E;(E=_.en().resolve(_.mz(reI)))!=null&&E.loggingEnabled&&!E.ids.has(k)&&E.ids.add(k)}};
uZI=function(){var k,E;return(E=(k=_.en().resolve(_.mz(_.jF)))==null?void 0:k())!=null?E:!1};
LYb=function(k,E){k=k===void 0?xKR:k;switch(E.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},k,{isOpen:E.payload});default:return k}};
DKt=function(k,E){k=k===void 0?jUh:k;switch(E.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},k,{isAllowed:E.payload});default:return k}};
fAl=function(k,E){k=k===void 0?$Kb:k;switch(E.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},k,{errorMessage:E.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},k,{title:E.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},k,{privacy:E.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},k,{isDisabled:E.payload});default:return k}};
bpi=function(k,E){k=k===void 0?vcI:k;switch(E.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},k,{isOpen:E.payload});default:return k}};
dKI=function(k,E){k=k===void 0?Zpl:k;switch(E.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},k,{isFullscreen:E.payload});case "SET_NAVIGATION_BUTTON":var S=E.payload.targetId,R=Object.assign({},k.navigationButtons);R[S]=E.payload.button;return Object.assign({},k,{navigationButtons:R});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},k,{topPanelId:E.payload});case "SET_SECONDARY_HEADER":return S=E.payload.panelId,R=Object.assign({},k.secondaryHeader),R[S]=E.payload.secondaryHeader,
Object.assign({},k,{secondaryHeader:R});default:return k}};
qHR=function(){return pf(Object.assign({},{voiceSearch:BRA,engagementPanel:dKI,bottomSheet:LYb,cinematicSetting:DKt,shorts:U1A,drawerLayout:bpi,createPlaylist:fAl,locationCollection:sUI,reportChannel:lAl,reportForm:MJA},H6l))};
zNI=function(k,E){_.ZJ.addLowPriorityJob(function(){var S,R,V;return _.c(function(N){switch(N.nextAddress){case 1:return _.F5(N,2),N.yield(xfI(),4);case 4:return N.yield(fetch(k),5);case 5:return S=N.yieldResult,N.yield(S.json(),6);case 6:R=N.yieldResult;TZ.set(k,R);requestAnimationFrame(function(){E(R)});
_.Sv(N,0);break;case 2:V=_.UY(N),_.dg(V),_.KR(N)}})})};
QUe=function(k){var E={animationConfig:{},listeners:{}},S=function(){k(!0)};
E.listeners.data_failed=S;E.listeners.error=S;E.listeners.data_ready=function(){k(!1)};
return E};
CSt=function(k){var E=k.model;var S=k.subscribed;var R=k.isOverlay;var V=k.element;var N=k.commandController;var h=k.notificationState;if(S){var J,m;var a=(E==null?void 0:(J=E.buttonStyle)==null?void 0:J.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:E==null?void 0:(m=E.unsubscribeButtonContent)==null?void 0:m.buttonText}else{var T;a=E==null?void 0:(T=E.subscribeButtonContent)==null?void 0:T.buttonText}a:{var w;switch(E==null?void 0:(w=E.buttonStyle)==
null?void 0:w.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":J="S";break a;default:J="M"}}a:if(R)R="overlay";else switch(E.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":R="overlay";break a;default:R="mono"}a:if(S)var P="tonal";else switch((P=E.buttonStyle)==
null?void 0:P.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":P="tonal";break a;default:P="filled"}return{style:R,type:P,state:E.disableSubscribeButton?"disabled":"active",size:J,focused:k.focused,toggled:S,accessibilityLabel:OpA(E,S,h),buttonText:a,iconPosition:E.disableNotificationBell?"none":"leading-trailing",onTap:Gde(E,S,V,N),disableTextEllipsis:!!k.disableTextEllipsis}};
Gde=function(k,E,S,R){return function(V){if(E){var N;var h=k.disableNotificationBell?_.Uk(k==null?void 0:(N=k.unsubscribeButtonContent)==null?void 0:N.onTapCommand):_.Uk(k==null?void 0:k.onShowSubscriptionOptions)}else{var J;h=_.Uk(k==null?void 0:(J=k.subscribeButtonContent)==null?void 0:J.onTapCommand)}h&&c9(h,{form:{element:S==null?void 0:S.value},commandController:R});V.stopPropagation()}};
OpA=function(k,E,S){if(E){if(k==null?0:k.disableNotificationBell){var R;return k==null?void 0:(R=k.unsubscribeButtonContent)==null?void 0:R.accessibilityText}switch(S){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var V;return k==null?void 0:(V=k.bellAccessibilityData)==null?void 0:V.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var N;return k==null?void 0:(N=k.bellAccessibilityData)==null?void 0:N.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var h;return k==null?void 0:(h=
k.bellAccessibilityData)==null?void 0:h.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var J;return k==null?void 0:(J=k.bellAccessibilityData)==null?void 0:J.disabledLabel;default:var m;return k==null?void 0:(m=k.unsubscribeButtonContent)==null?void 0:m.accessibilityText}}else{var a;return k==null?void 0:(a=k.subscribeButtonContent)==null?void 0:a.accessibilityText}};
kre=function(k,E){return _.Ep(k.entities,"subscriptionStateEntity",E)};
ESt=function(k,E){return _.Ep(k.entities,"subscriptionNotificationStateEntity",E)};
SGR=function(k,E){return _.Ep(k.entities,"upcomingEventReminderStateEntity",E)};
REh=function(k,E){return _.Ep(k.entities,"commentEntityPayload",E)};
VZh=function(k,E){return _.Ep(k.entities,"engagementToolbarSurfaceEntityPayload",E)};
Nz1=function(k,E){return _.Ep(k.entities,"triStateButtonStateEntityPayload",E)};
Iu1=function(k,E){return _.Ep(k.entities,"commerceCartCheckoutButtonEntity",E)};
nS1=function(k,E){return _.Ep(k.entities,"commandEntity",E)};
iiC=function(k){if(k){switch(k){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":k="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":k="NOTIFICATIONS_OFF";break;default:k="NOTIFICATIONS_NONE"}return k}};
hEI=function(k,E,S){S.subscribed!==E&&((S=S.key)&&_.bl(_.mj("subscriptionStateEntity",S,{key:S,subscribed:E})),k.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:E})),E||_.qe(k,"yt-unsubscribe-action"))};
mbi=function(k){k=_.W(_.Uk(k),_.Jl1);var E,S,R,V;return(V=_.W(k==null?void 0:(E=k.panelLoadingStrategy)==null?void 0:(S=E.inlineContent)==null?void 0:(R=S.sheetViewModel)==null?void 0:R.content,clt))==null?void 0:V.listItems};
eEA=function(k,E){if(k.onShowSubscriptionOptions&&E&&(k=mbi(k.onShowSubscriptionOptions),k!=null&&k.length)){var S=iiC(E);k.forEach(function(R){R=_.W(R,_.eq);var V,N,h,J,m=R==null?void 0:(V=R.leadingImage)==null?void 0:(N=V.sources)==null?void 0:(h=N[0])==null?void 0:(J=h.clientResource)==null?void 0:J.imageName;R&&m&&(R.isSelected=m===S)})}};
auh=function(k,E,S,R){E&&S?k.style.width=S+"px":!E&&R&&(k.style.width=R+"px")};
tZi=function(k,E,S){var R;(R=k.lottieEl)==null||R.goToAndPlay(0);var V;(V=E.lottieEl)==null||V.goToAndPlay(0);_.aE(_.ZJ,function(){var N;(N=S.lottieEl)==null||N.goToAndPlay(0)},300)};
Tz1=function(k){return!(k==null||!k.iconName||(k==null?0:k.title))};
wLh=function(k,E,S,R){S&&_.ZJ.cancelJob(S);S=_.ZJ.addLowPriorityJob(function(){R(void 0)},5E3);
R(S);E&&k!==(E.likeStatus==="LIKE")&&E.key&&_.bl(_.mj("likeStatusEntity",E.key,{key:E.key,likeStatus:k?"LIKE":"INDIFFERENT",hadUserInteraction:k}))};
_.PnR=function(k,E){return _.Ep(k.entities,"accountLinkStatusEntity",E)};
Bzh=function(k,E){return _.Ep(k.entities,"hatsSurveyEntity",E)};
YGb=function(k,E){return _.Ep(k.entities,"hatsSurveyStateEntity",E)};
Wxm=function(k,E){return _.Ep(k.entities,"quantityIncrementerEntity",E)};
FxR=function(k){switch(k){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}};
ylh=function(k){switch(k){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}};
oSm=function(k){switch(k){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"}};
_.gSj=function(k){var E=_.wO("web_generic_client_event_wait_period ",0);E||(E=3E5);var S=XLI.get(k);!_.Y("enable_web_client_experiment_event_timeout_killswitch")&&S&&(0,_.ev)()-S<E||(XLI.set(k,(0,_.ev)()),_.f2("genericClientExperimentEvent",{eventType:k}))};
_.UbI=function(k,E){var S,R,V,N;a:{var h=k.style;if(h===void 0)h=17;else switch(h){case "LIVE":h=18;break a;default:h=17}}return{type:h,text:E?EP1({seconds:E}):_.$n(k.text),accessibilityText:(S=k.text)==null?void 0:(R=S.accessibility)==null?void 0:(V=R.accessibilityData)==null?void 0:V.label,icon:(N=k.icon)==null?void 0:N.iconType}};
Hij=function(k){switch(k){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
Kxh=function(k){if(!k)return"";var E,S=(E=_.en().resolve(_.mz(_.jF)))==null?void 0:E(),R;if(!S&&((R=k.vibrantColorPalette)==null?0:R.iconInactiveColor))return pc(k.vibrantColorPalette.iconInactiveColor,"1");var V;return S&&((V=k.darkColorPalette)==null?0:V.iconInactiveColor)?pc(k.darkColorPalette.iconInactiveColor,"1"):k.color?pc(k.color,"1"):k.sampledThumbnailColor?(k=k.sampledThumbnailColor,"rgba("+k.red+","+k.green+","+k.blue+");"):""};
_.t0=function(k,E){if(!k.includes("DATE_PLACEHOLDER"))return k;var S=new Date(0);S.setUTCSeconds(E);return k.replace("DATE_PLACEHOLDER",pLt(S))};
Ale=function(k,E,S){return function(R){var V=k.command;V&&(c9(V,{form:{element:S}}),E([V],R))}};
uit=function(k,E,S,R,V){return function(N){var h=rlb(k,E);h&&c9(h,{form:{element:S},commandController:R});V&&N.stopPropagation()}};
rlb=function(k,E){if(k.signInEndpoint&&!_.Y("web_subscribe_sign_in_endpoint_killswitch"))return k.signInEndpoint;if(E){if(k.serviceEndpoints)return k.serviceEndpoints[1];if(k.onUnsubscribeEndpoints)return k.onUnsubscribeEndpoints[0]}else{if(k.serviceEndpoints)return k.serviceEndpoints[0];if(k.onSubscribeEndpoints)return k.onSubscribeEndpoints[0]}};
xbt=function(k,E){var S,R,V,N;E=E&&((S=k.unsubscribeAccessibility)==null?void 0:(R=S.accessibilityData)==null?void 0:R.label)||((V=k.subscribeAccessibility)==null?void 0:(N=V.accessibilityData)==null?void 0:N.label);return k.longSubscriberCountText?[E,_.$n(k.longSubscriberCountText)].filter(function(h){return h}).join(" "):E};
Tc=function(k,E){return E||(k==null?0:k.isChannelDelegate)?"disabled":"active"};
LxA=function(k,E){var S;switch((S=k.style)==null?void 0:S.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Tc(k)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Tc(k)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Tc(k,!0)};case "OVERLAY":return E?{style:"overlay",type:"tonal",state:Tc(k)}:{style:"overlay",type:"filled",state:Tc(k)};default:return E?{style:"mono",type:"tonal",state:Tc(k)}:{style:"mono",type:"filled",state:Tc(k)}}};
_.wd=function(){for(var k=[],E=_.n(_.sX.apply(0,arguments)),S=E.next();!S.done;S=E.next())if(S=S.value)if(typeof S==="string")k.push(S);else{S=_.n(Object.entries(S));for(var R=S.next();!R.done;R=S.next()){var V=_.n(R.value);R=V.next().value;(V=V.next().value)&&k.push(R)}}return k.join(" ")};
j6C=function(k){switch(k){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
Dbt=function(k){switch(k){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
$be=function(k,E){var S=k.map(function(R){return R.toString()});
return _.RZ(function(R){if(S.includes(R.key)){E&&R.preventDefault();var V;(V=R.currentTarget)==null||V.click()}})};
_.fub=function(){return $be(["Enter"])};
_.vSl=function(){return $be(["Enter"," "],!0)};
_.Pp=function(k){if(k.composedPath)return k.composedPath();if(!k.__composedPath){for(var E=[],S=k.target;S;)E.push(S),S=S.parentNode;E.push(window);k.__composedPath=E}return k.__composedPath};
_.Bp=function(k,E,S){k=_.n(k);for(var R=k.next();!R.done;R=k.next()){R=R.value;if(R===E)break;for(var V=_.n(S),N=V.next();!N.done;N=V.next())if(N=N.value,R.tagName===N||R.role==="button"&&N==="BUTTON")return!0}return!1};
ZiC=function(k,E){var S,R=(S=E.observer)!=null?S:_.en().resolve(mF);if(k){S=bih(k);var V=[];E.showOption&&V.push(R.observe(k,function(){E.visibilityCallback(!0,k)},E.showOption));
E.hideOption&&V.push(R.observe(k,function(){E.visibilityCallback(!1,k)},E.hideOption));
E.prescanOption&&E.prescanCallback&&V.push(R.observe(k,function(){E.prescanCallback()},E.prescanOption));
var N;S.visibilityMonitorKeys=((N=S.visibilityMonitorKeys)!=null?N:[]).concat(V)}};
bih=function(k){var E;return(E=k.polymerController)!=null?E:k};
_.Wp=function(k){return!!_.Yh(k)};
_.FX=function(k,E,S,R,V){return function(N){var h=kKC();_.vX(function(){if(N){dbI(N,k(),V);var J=s6b(N,k(),E,S,R,h);_.bI(J)}},"nr377e")}};
dbI=function(k,E,S){var R=luR(E),V=MZR(E);E=R&&qGh;var N=V&&zEI;(R||V)&&ZiC(k,{visibilityCallback:function(h){var J=_.en().resolve(_.t3);h&&R?J.resolveCommand(R,{form:{element:S?k:void 0},disableClickTracking:!0}):!h&&V&&J.resolveCommand(V,{form:{element:S?k:void 0},disableClickTracking:!0})},
showOption:E,hideOption:N})};
s6b=function(k,E,S,R,V,N){var h=new Map;if(E=_.Yh(E)){var J;k=(R==null?void 0:(J=R.onTap)==null?void 0:J.value)||k;S=Q6I(E,k,S==null?void 0:S.onTap,V,N);k.addEventListener("click",S);h.set("click",S)}return function(){for(var m=_.n(h),a=m.next();!a.done;a=m.next()){var T=_.n(a.value);a=T.next().value;T=T.next().value;k.removeEventListener(a,T)}}};
_.Yh=function(k){var E;return(k=(E=_.W(k,OiC))==null?void 0:E.onTap)&&_.Uk(k)};
luR=function(k){var E;return(k=(E=_.W(k,OiC))==null?void 0:E.onVisible)&&_.Uk(k)};
MZR=function(k){var E;return(k=(E=_.W(k,OiC))==null?void 0:E.onHidden)&&_.Uk(k)};
Q6I=function(k,E,S,R,V){var N=function(J){_.en().resolve(_.t3).resolveCommand(k,J)},h=function(J){R&&_.Bp(_.Pp(J),E,R)||N(J.target?{form:{element:J.target,
sourceData:k,mutationContext:V}}:void 0)};
S&&(h=function(J){S(J,N)});
return h};
GrR=function(k){switch(k){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}};
CnA=function(k){var E=k.numAvatarsInCluster;switch(k.clusterSize){case "small":return E===2?22:18;case "40":return E===2?24:22;default:return E===2?24:20}};
ksA=function(k,E){return function(S){var R=Object.keys(E);_.vX(function(){if(k!=null&&k()){for(var V=_.n(R),N=V.next();!N.done;N=V.next())N=N.value,S.addEventListener(N,E[N]);_.bI(function(){for(var h=_.n(R),J=h.next();!J.done;J=h.next())J=J.value,S.removeEventListener(J,E[J])})}},"bXZGfe")}};
E1t=function(k){switch(CnA(k)){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""}};
ST1=function(k){switch(k){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""}};
Rch=function(k){switch(CnA(k)){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""}};
Vbm=function(k){switch(k){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""}};
N4m=function(k){switch(k){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}};
ItA=function(k){return k==="medium"||k==="48"||k==="large"||k==="extra-large"||k==="extra-extra-large"||k==="giant"};
n1e=function(k){return!!((k==null?0:k.includes(3))||(k==null?0:k.includes(5)))};
hcI=function(k){var E=k.data;return{size:i_I(E.avatarImageSize),type:E.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:k.onTap,decorations:k.decorations||[],badgeText:k.badgeText,accessibilityText:k.accessibilityText,avatarButtonCustomClassName:k.avatarButtonCustomClassName,clusterLayoutConfig:k.clusterLayoutConfig}};
i_I=function(k){switch(k){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"}};
JLj=function(k){switch(k){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}};
cLA=function(k){switch(k){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""}};
mc1=function(k){var E=k.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",S,R=k.avatars&&k.avatars.length>0?(S=_.W(k.avatars[0],_.y3))==null?void 0:S.avatarImageSize:"AVATAR_SIZE_UNKNOWN";S=JLj(R)||0;if(E){var V,N=(V=k.avatarClusterSize)!=null?V:"AVATAR_SIZE_M";E=JLj(N);var h,J,m=Math.min((J=(h=k.avatars)==null?void 0:h.length)!=null?J:0,4),a;return{avatars:((a=k.avatars)==null?void 0:a.slice(0,4))||[],avatarSizeInPx:S,avatarStackStyle:{width:E+"px",height:E+"px",position:"relative"},avatarStyle:function(w){var P=
CnA({clusterSize:i_I(N),numAvatarsInCluster:m,avatarIndex:w});var B=JLj(N);m===3&&w===2?(B=(B-P)/2,B=(_.Mg("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*B):B=void 0;return{position:"absolute",top:m===2&&w===1||m===3&&w===2||m===4&&w>=2?"0":void 0,bottom:m===2&&w===0||m>2&&w<2?"0":void 0,left:m===2&&w===1||m>2&&(w===1||w===3)?"0":void 0,right:m<=3&&w===0||m===4&&(w===0||w===2)?"0":void 0,transform:B?"translateX("+B+"px)":void 0,width:P+"px",height:P+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(w){return{clusterSize:i_I(k.avatarClusterSize),numAvatarsInCluster:m,avatarIndex:w}},
avatarButtonCustomClassName:void 0}}var T;return{avatars:((T=k.avatars)==null?void 0:T.slice())||[],avatarSizeInPx:S,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:cLA(R),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
ect=function(k,E,S){return function(){c9(k,{form:{element:E},commandController:S})}};
atl=function(k){switch(k){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
tbe=function(k){switch(k){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"}};
T4b=function(k){if("accessibilityText"in k)return k.accessibilityText||"";if("title"in k){var E,S,R;return((E=k.title)==null?void 0:(S=E.accessibility)==null?void 0:(R=S.accessibilityData)==null?void 0:R.label)||""}if("accessibility"in k){var V,N;return((V=k.accessibility)==null?void 0:(N=V.accessibilityData)==null?void 0:N.label)||""}return""};
w2b=function(k){return"inlinePlayerData"in k};
oE=function(k){return new PPR(k)};
B4h=function(k){return function(E){k&&(k.thumbnailElRef=E.thumbnailElRef,k.thumbnail=E.thumbnail,k.thumbnailOverlays=E.thumbnailOverlays,k.thumbnailSize=E.thumbnailSize)}};
YTh=function(k){switch(k){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
FmI=function(k){var E=_.n(_.yg(!1,void 0,"E6wDDe")),S=E.next().value,R=E.next().value;_.b$(function(){var V=k==null?void 0:k();if(V){var N=_.en().resolve(_.mz(WmI));if(N){var h={triggeringElement:V,onDwellTriggeredFn:function(){R(!0)},
onDwellEndFn:function(){R(!1)}};
N.registerElement(h);_.bI(function(){_.XX(N,h)})}}});
return S};
yLR=function(k,E,S){S?S(E):_.AV(E,k.target?{form:{element:k.target}}:void 0)};
_.gd=function(k,E,S,R){return function(V){_.vX(function(){function N(T){T=T.composedPath();T=_.n(T);for(var w=T.next();!w.done;w=T.next()){w=w.value;if(w===V)break;if(w.className.indexOf("HostIsClickableAdComponent")>=0||w.tagName==="A".toString()||w.tagName==="BUTTON".toString())return!0}return!1}
var h=new Map,J,m=(J=k())==null?void 0:J.onTap;if(m){J=function(T){N(T)||yLR(T,m,E)};
var a=function(T){N(T)||T.key!=="Enter"||yLR(T,m,E)};
(S==null?0:S())||_.Y("enable_web_home_top_landscape_image_layout_level_click")?(V.addEventListener("tap",J),h.set("tap",J)):(V.addEventListener("click",J),h.set("click",J));if(R==null?0:R())V.addEventListener("keydown",a),h.set("keydown",a)}_.bI(function(){for(var T=_.n(h),w=T.next();!w.done;w=T.next()){var P=_.n(w.value);w=P.next().value;P=P.next().value;V.removeEventListener(w,P)}})},"D7XqOc")}};
o1t=function(k,E){var S,R=(S=k.interaction)==null?void 0:S.onTap;if(k=_.Kh({elementsCommand:R,forceNewState:!0,skipOnClick:!0}))return k.onclick=function(V){yTb(V)&&(V.preventDefault(),R&&yLR(V,R,E))},ph(k)?k:void 0};
X21=function(k){switch(k){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
g1R=function(k){switch(k){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"}};
Uch=function(k){switch(k){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"}};
_.H_h=function(k){return _.Y("rich_grid_enable_dynamic_offset")&&k?Math.max(Math.round((k-_.wO("rich_grid_dynamic_offset_anchor_width",1300))/100*_.wO("rich_grid_dynamic_offset_offset_per_100",10)),_.wO("rich_grid_dynamic_offset_lower_bound",-60)):0};
KmR=function(k,E){switch(E){case 4:return 16;case 1:return k<528?16:k<1024?32:48;case 2:return(k>=528?16:8)/2;case 3:return(k<528?16:k<1024?32:48)+(k>=528?16:8)/2;default:return 0}};
p2t=function(k){var E=k.originalContainerWidth;var S=k.sizing;var R=k.standardUnit;if(k.isCompactList&&E<528)return 1;switch(S){case "STANDARD":return R;case "COMPACT":return R+1;case "EXTRA_COMPACT":return _.Y("web_responsive_extra_compact_2x")?R*2:_.Y("web_responsive_current")?R===1?2:R%2===0?R/2*3:R+2:R<4?R*2:Math.ceil(R*3/2);case "MINI":return R>1?R*2:3;default:return R}};
rLj=function(k){var E=k.containerWidth;var S=k.peek;var R=k.gutter;var V=k.numItems;k=k.ignoreMaxWidthLimit;E=S?Math.max((E-S-R*V)/V,0):Math.max((E-R*(V-1))/V,0);return k?E:Math.min(E,AL1)};
_.Uf=function(k){var E=k.containerWidth;var S=k.hasPeek;var R=k.sizing;var V=k.marginSettings;var N=k.isCompactList;var h=k.enableFullBleedForSingleCol;var J=k.standardUnitMinWidth;R=R||"STANDARD";S=!!S;k=E>=528?16:8;var m=S?E>=528?48:24:0;V=KmR(E,V);var a=Math.max(E-V*2,0);J=_.Y("kevlar_disable_min_width_override")?void 0:J;J=Math.min(Math.max(Math.floor((a-m+k)/((J!=null?J:usI)+_.H_h(E)+k)),1),6);var T=(h=!!h&&J===1)||J===1&&R!=="STANDARD";S=S||T?a:Math.min(a,(AL1+k)*J-k);R=p2t({originalContainerWidth:E,
sizing:R,standardUnit:J,isCompactList:N});return{itemWidth:rLj({containerWidth:S,peek:m,gutter:k,numItems:R,ignoreMaxWidthLimit:T}),gutter:k,maxContainerWidth:S,numItems:R,margin:h?0:V,contentMargin:KmR(E,1),typographyBump:rLj({containerWidth:S,peek:m,gutter:k,numItems:J,ignoreMaxWidthLimit:T})>400&&!(N&&E<528),standardUnit:J}};
xcI=function(k){switch(k){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.Lmi=function(k){if(k){var E;if((E=k.responsiveContainerConfiguration)==null?0:E.responsiveSize)return xcI(k.responsiveContainerConfiguration.responsiveSize);if(k.layoutSizing)switch(k.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"}}};
jYR=function(k){if(k.fullbleed)return 1;switch(k.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
v1I=function(k,E,S,R,V,N,h,J){a:if(k===4&&R==="LOCKUP_CONTENT_TYPE_SOURCE")var m=1;else switch(k){case 3:m=1;break a;default:m=0}a:switch(k){case 4:N=!!(N&&N<100);break a;default:N=!1}a:switch(k){case 3:case 4:var a=R==="LOCKUP_CONTENT_TYPE_CHANNEL"||R==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:a=!1}a:switch(k){case 5:var T=!0;break a;case 4:T=!1;break a;default:T=!1}return{isOverlay:T,isCard:DcR(R,h),sizing:E!=null?E:"STANDARD",typographyBump:S!=null?S:!1,isTiny:N,isCentered:a,isCollection:$cC(R),
arrangement:m,addMarginForFullbleed:k===1&&R!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:k===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:fte(R,V,J),disableRounding:k===5||DcR(R,h)||k===1&&R==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:$cC(R)?2:0,useLegacyTypography:!(J==null||!J.useLegacyTypography),useRichGridLegacyTypography:!(J==null||!J.useRichGridLegacyTypography)&&!_.Y("web_enable_typography_bump"),compactMetadata:m===0&&R==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:J==null?void 0:J.onFocusEffect}};
$cC=function(k){switch(k){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}};
DcR=function(k,E){if(E&&k==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(k){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
fte=function(k,E,S){if(E&&(S==null||!S.alwaysRespectPodcastShowAspectRatio||k!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(k){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}};
b_1=function(k){switch(k){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"}};
Z_1=function(k){switch(k){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}};
dcl=function(k){switch(k){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}};
_.Hp=function(k){if(k){var E;return((E=_.en().resolve(_.mz(_.jF)))==null?0:E())?k.darkThemeImage:k.image}};
Mbh=function(k,E,S,R,V,N){if(V&&N&&E==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:V,height:N};if(!S)return{};V=S.size;S=S.allowFullWidth;if(E==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&S)return{fullWidth:!0};if(V===void 0)return{};switch(k){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:V,height:V};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:V,height:1/sYh*V};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:V*
ltI,height:V};default:return(R==null?0:R.height)&&(R==null?0:R.width)?R.width/R.height>1?{maxWidth:V*ltI}:{maxWidth:V}:{maxWidth:V}}};
qTI=function(k){var E;return k&&((E=_.Hp(k.themedImage))!=null?E:k.image)};
zci=function(k){var E;return k==null?void 0:(E=k.sources)==null?void 0:E[0]};
QYi=function(k){switch(k){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"}};
_.O_1=function(k){if(k)return"content-id-"+k};
Gsh=function(k){switch(k.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"}}};
CPj=function(k){var E=_.K5.currentPageSubTypeSelector(_.vu().getState())||"";return k?k+E:""};
kuC=function(k){switch(k){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
SPi=function(k){var E=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],S=_.n(_.yg(void 0,void 0,"JrqNsb")),R=S.next().value,V=S.next().value,N=_.n(_.yg(void 0,void 0,"rWytse"));S=N.next().value;var h=N.next().value;N=_.n(_.yg(void 0,void 0,"DHRqxe"));var J=N.next().value,m=N.next().value;return{touchFeedbackEvents:{pointerUpEvent:R,pointerDownEvent:S,pointerLeaveEvent:J},touchFeedbackOnPointerUp:_.RZ(function(a){ERI(_.Pp(a),E)||(V(a),h(void 0),m(void 0))}),
touchFeedbackOnPointerDown:_.RZ(function(a){k==null||k(a);ERI(_.Pp(a),E)||(h(a),V(void 0),m(void 0))}),
touchFeedbackOnPointerLeave:_.RZ(function(a){ERI(_.Pp(a),E)||(m(a),h(void 0),V(void 0))})}};
ERI=function(k,E){E=E===void 0?[]:E;E=[].concat(_.$e(E),["BUTTON".toString()]);k=_.n(k);for(var S=k.next();!S.done;S=k.next()){S=S.value;for(var R=_.n(E),V=R.next();!V.done;V=R.next())if(S.tagName===V.value)return!0}return!1};
RX1=function(k){switch(k){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"}};
VVm=function(k){return k.scrollHeight-k.offsetHeight>1};
N31=function(k,E){var S;return Lh(k,((S=k.content)==null?void 0:S.length)||0,!E)};
iql=function(k,E,S,R,V,N){if(!E||I31){var h;return Lh(k,((h=k.content)==null?void 0:h.length)||0,!0)}E=R.value;if(!S.value||!E||!k.content)return k;S=0;R=k.content.length;h=0;nRl||(nRl=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var J=nRl;for(V=V*N*J;S<=R;)N=Math.floor(S+(R-S)/2),J=Lh(k,N)||k,E.firstChild&&(E.firstChild.textContent=J.content),E.scrollHeight>V?R=N-1:(h=N,S=N+1);return Lh(k,h)};
hXj=function(k,E){var S,R;return(((S=k.content)==null?void 0:S.length)||0)>(((R=E.content)==null?void 0:R.length)||0)};
J41=function(k,E,S,R,V,N){var h=_.VH("truncated-text-content"),J=_.VH("truncated-text-content"),m=_.VH("button"),a=_.VH("button"),T=_.VH("button"),w=_.en().resolve(_.$X),P=_.n(_.IZ(function(){return N31(k(),V())})),B=P.next().value,F=P.next().value;
P=_.n(_.IZ(function(){return hXj(k(),B())}));
var K=P.next().value,r=P.next().value,x=null;_.vX(function(){function L(){if(h.value&&m.value&&T.value){var d=N()?k():iql(k(),V(),h,J,E(),S());F(d);requestAnimationFrame(function(){if(h.value&&m.value&&T.value){var z=VVm(h.value)||hXj(k(),d);r(z);if(!R()){var kb=VVm(h.value),TI=S(),a1=h.value,Ah=m.value,th=T.value,He=w==="rtl";if(a1&&Ah){var ve=Ah.offsetLeft;He&&(ve=a1.offsetWidth-Ah.offsetWidth-Ah.offsetLeft);if(z){z=Ah.offsetWidth;Ah=a1.offsetWidth;var Xm=kb?Ah-z-70:ve-70;TI="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
TI+"rem,\n      #000 "+TI+"rem,\n      #000 100%), linear-gradient(\n      to "+((He?"left":"right")+",\n      #000 0px,\n      #000 "+Xm+"px,\n      transparent "+(kb?Ah-z:Xm+70)+"px)");a1.style.setProperty("-webkit-mask-image",TI);a1.style.setProperty("mask-image",TI)}else a1.style.setProperty("-webkit-mask-image",""),a1.style.setProperty("mask-image","");kb?He?(th.style.setProperty("left","0"),th.style.setProperty("right","unset")):(th.style.setProperty("left",""),th.style.setProperty("right",
"0")):He?(th.style.setProperty("left","unset"),th.style.setProperty("right",ve+"px")):(th.style.setProperty("left",ve+"px"),th.style.setProperty("right","unset"))}}}})}}
var q,M;(q=x)==null||(M=q.stop)==null||M.call(q);q=new _.NJ(L,17);L();x=q},"KjwIxd");
_.b$(function(){F(N31(k(),V()));r(hXj(k(),B()));var L=function(){nRl=void 0;var M,d;(M=x)==null||(d=M.fire)==null||d.call(M)};
if(window.ResizeObserver){var q=new ResizeObserver(L);q.observe(h.value);_.bI(function(){var M,d;(M=x)==null||(d=M.stop)==null||d.call(M);q.disconnect()})}else window.addEventListener("resize",L),_.bI(function(){var M,d;
(M=x)==null||(d=M.stop)==null||d.call(M);window.removeEventListener("resize",L)})});
return{isTruncated:K,displayText:B,contentRef:h,hiddenRef:J,placeholderTruncationTextRef:m,hiddenTruncationTextRef:a,truncationTextRef:T}};
c4h=function(k){return{content:k!=null?k:""}};
mPb=function(k){return _.Uk(k.onTap)||_.Yh(k.rendererContext)};
eXe=function(k){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:k.overflowMenuA11yLabel,onTap:function(E){E.preventDefault();E.stopPropagation();if(k.overflowMenuOnTap){var S=_.Kh({elementsCommand:k.overflowMenuOnTap,forceNewState:!0});if(S==null?0:S.onclick)S.onclick(E)}}}};
_.p5=function(k,E,S,R,V){R=R===void 0?{}:R;if(!V||Math.random()<5E-4){E=E||null;S=S||null;k=k instanceof Error?k:new _.LC(k);if(k.args)for(var N=_.n(k.args),h=N.next();!h.done;h=N.next())h=h.value,h instanceof Object&&(R=Object.assign({},h,R));R.category="H5 Ads Control Flow";E&&(R.slot=E?"slot:  "+E.slotType:"");S&&(R.layout=S?"layout:  "+S.layoutType:"",R.layoutId=S.layoutId);V&&(R.known_error_aggressively_sampled=!0);k.args=[R];_.dg(k)}};
_.a3j=function(k,E){E=_.ZE(E);_.qe(k,"yt-open-popup-action",[E,k])};
_.A0=function(k,E){_.a3j(k,_.DE(E))};
T3m=function(k){if(!k)return"";if(tVi[k])return tVi[k];rd||(rd=_.g7("A"));rd.href!==k&&MU(rd,k);var E=rd.pathname;tVi[k]=E.startsWith("/")?E:"/"+E;return tVi[k]};
wJC=function(){var k=T3m(window.location.href);if(k==="/")return"home";if(k.startsWith("/results"))return"search";if(k.startsWith("/watch"))return"watch";if(k.startsWith("/shorts"))return"shorts";if(k.startsWith("/hashtag"))return"hashtag";if(k.startsWith("/create_channel"))return"create_channel";if(k.startsWith("/@")||k.startsWith("/user/")||k.startsWith("/channel/"))return"channel";if(k.startsWith("/experiments"))return"experiments";if(k.startsWith("/sponsor_channel"))return"sponsorship";if(k.startsWith("/select_site"))return"settings";
if(k.startsWith("/locate"))return"locate";if(k.startsWith("/redeem"))return"redeem";if(k.startsWith("/musicpremium")||k.startsWith("/premium")||k.startsWith("/red"))return"premium";if(k.startsWith("/paid_memberships"))return"paid_memberships";if(k.startsWith("/oops"))return"oops";if(k.startsWith("/clip"))return"clip";var E;return(uK==null?void 0:(E=uK.response)==null?void 0:E.page)==="404"?"404":k.startsWith("/feed/history")?"history":k.startsWith("/feed/library")?"library":k.startsWith("/feed/subscriptions")?
"subscriptions":k.startsWith("/feed/trending")?"trending":k.startsWith("/feed/news_destination")?"news":k.startsWith("/playlist")?"playlist":k.startsWith("/minor_moment")?"minor_moment":k.startsWith("/playable/")||k.match("^/playables/(?!saved).")?"mini_app":k.startsWith("/playables")?"playables":k.startsWith("/create/live/join")?"open_in_app":k.startsWith("/feed/explore")?"explore":"browse"};
_.WP1=function(){var k=uK==null?void 0:uK.response,E=k==null?void 0:k.endpoint;if(!E)return(k==null?void 0:k.page)==="watch"?"watch":wJC();var S;k=(S=_.W(E==null?void 0:E.commandMetadata,_.Sd))==null?void 0:S.webPageType;S=!1;if(k&&!PQ1.includes(k))switch(k){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 R;return((R=_.W(E==null?void 0:E.commandMetadata,_.Sd))==null?0:R.url)&&T3m(_.W(E.commandMetadata,_.Sd).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var V;return(E=(V=_.W(E,_.Ny))==null?void 0:V.browseId)?B3C[E]||"browse":"browse";default:S=!0}if(_.W(E,_.xh)||_.W(E,YPi))return"sponsorship";V=T3m(window.location.href);if(V.startsWith("/experiments"))return"experiments";if(V.startsWith("/create_channel"))return"create_channel";
if(_.W(E,_.Oc)&&V.startsWith("/shorts"))return"shorts";if(_.W(E,_.Oc)&&V.startsWith("/watch"))return"watch";S&&(E=new _.LC("Unsupported mWeb page type",{pathname:V,webPageType:k}),_.bM(E));return"browse"};
L5=function(k,E,S,R){return k&&E?k!==S||E!==R?(_.p5(Error("Rh"),void 0,void 0,{"stored-slot":k,"stored-layout":E,"latest-slot":S,"latest-layout":R}),!1):!0:!1};
y4b=function(k,E,S){return k({targetId:E},function(R){return S.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},R,{contents:[S.continuationItems?_.W(S.continuationItems[0],FPe):{}]}):S.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},R,{header:S.continuationItems?S.continuationItems[0]:void 0}):Object.assign({},R,{contents:S.continuationItems?S.continuationItems:[]})})};
oRl=function(k,E,S,R){if(E=E.trackingParams){var V,N=(V=S.getScreenLayer)==null?void 0:V.call(S);S=_.Fe(N);V=_.Wi(N);if(S&&V){var h=_.tV(E);_.Y("combine_ve_grafts")?k.graftServerVe(E,V,N):_.rq(S,V,h);R==null||R(h)}}};
gRI=function(k){var E;return((E=XJh.get(k))==null?void 0:E.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
KPj=function(k,E){var S={type:E.slotType,controlFlowManagerLayer:UPe.get(E.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};E.slotEntryTrigger&&(S.entryTriggerType=E.slotEntryTrigger.triggerType);E.slotPhysicalPosition!==1&&(S.slotPhysicalPosition=E.slotPhysicalPosition);if(k){S.debugData={slotId:E.slotId};if(k=E.slotEntryTrigger)S.debugData.slotEntryTriggerData=Hqm(k);k=E.slotFulfillmentTriggers;S.debugData.fulfillmentTriggerData=[];k=_.n(k);for(var R=k.next();!R.done;R=k.next())S.debugData.fulfillmentTriggerData.push(Hqm(R.value));
E=E.slotExpirationTriggers;S.debugData.expirationTriggerData=[];E=_.n(E);for(k=E.next();!k.done;k=E.next())S.debugData.expirationTriggerData.push(Hqm(k.value))}return S};
Hqm=function(k,E){var S={type:k.triggerType};E!=null&&(S.category=E);k.triggeringSlotId!=null&&(S.triggerSourceData||(S.triggerSourceData={}),S.triggerSourceData.associatedSlotId=k.triggeringSlotId);k.triggeringLayoutId!=null&&(S.triggerSourceData||(S.triggerSourceData={}),S.triggerSourceData.associatedLayoutId=k.triggeringLayoutId);return S};
pJI=function(k,E,S,R){E={opportunityType:E};k&&(R||S)&&(R=_.vH(R||[],function(V){return KPj(k,V)}),E.debugData=Object.assign({},S&&S.length>0?{associatedSlotId:S}:{},R.length>0?{slots:R}:{}));
return E};
A4C=function(k){return jq(k.opportunityAdapterMap).concat(jq(k.triggerAdapterMap)).concat(jq(k.fulfillmentAdapterFactoryMap)).concat(jq(k.slotAdapterFactoryMap)).concat(jq(k.layoutRenderingAdapterFactoryMap))};
jq=function(k){var E=[];k=_.n(k.values());for(var S=k.next();!S.done;S=k.next())S=S.value,S.isAdsControlFlowEventListener&&E.push(S);return E};
$h=function(k){var E=k.slotId,S=k.slotType,R=k.slotPhysicalPosition;return E===void 0?new Dg("Cannot construct a slot due to the missing id.",{adSlotMetadata:k}):S===void 0?new Dg("Cannot construct a slot due to the missing type.",{adSlotMetadata:k}):R===void 0?new Dg("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:k}):{slotId:E,slotType:S,slotPhysicalPosition:R,managerLayer:"external",adSlotLoggingData:k.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new r4b}};
uql=function(k){var E=k.layoutId,S=k.layoutType;return E===void 0?new f5("Cannot construct a layout due to the missing id.",{adLayoutMetadata:k}):S===void 0?new f5("Cannot construct a layout due to the missing type.",{adLayoutMetadata:k}):{layoutId:E,layoutType:S,managerLayer:"external",adLayoutLoggingData:k.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new r4b,interactionLoggingAdsClientData:{}}};
xPb=function(k){if(k.querySelector("img")){var E=k.querySelector("img");E.addEventListener("error",function(){JYI(E.src).then(function(S){(S=_.dk(S).toString())?E.src=S:E.removeAttribute("src")}).catch(function(){E.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
bK=function(k,E){if(E&&(LPe(E.viewableCommand)||LPe(E.endOfSessionCommand))){var S=jll(E==null?void 0:E.viewableCommand);E=jll(E==null?void 0:E.endOfSessionCommand);if(!vp){var R=_.wO("custom_active_view_tos_timeout_ms");vp=R>0&&R!==36E5?new DPR($P1(),R):new DPR($P1())}f3j(vp,k);vRj(vp,k,S,E)}};
Zg=function(k){vp&&f3j(vp,k)};
$P1=function(){var k=_.Mg("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(k==null?void 0:k.length)===2?k[1]:null};
LPe=function(k){k=_.Uk(k);return!(k==null||!k.loggingUrls)&&k.loggingUrls.length>0};
jll=function(k){if(!k)return[];var E=[],S,R;((R=(S=_.Uk(k))==null?void 0:S.loggingUrls)!=null?R:[]).forEach(function(V){V.baseUrl&&E.push(V.baseUrl)});
return E};
bqh=function(k){if(_.Y("stop_av_measurement_on_detach"))return function(){Zg(k)}};
ZqI=function(k){return function(){_.Y("stop_av_measurement_on_detach")&&Zg(k)}};
dPC=function(k){if(_.Y("stop_av_measurement_on_detach"))return function(){Zg(k)}};
slb=function(k){return k.shorts.isDesktopSmallWidth};
_.l3b=function(k){return k.shorts.isShortsActive};
_.MVm=function(k){return k.shorts.isWatchWhileMode};
_.dd=function(k){return k.shorts.isFullscreen};
_.sf=function(k){return k.shorts.isShortsPipActive};
zXm=function(k){var E,S;if(k=(E=_.W(k.reelsAdCardButtoned,qPA))==null?void 0:(S=E.animatedRenderingConfig)==null?void 0:S.easeOutSeconds)return k+"s"};
OqC=function(k,E,S){return _.c(function(R){return R.return(new Promise(function(V){var N=new Image;N.onload=function(){V(new Qlj(k,E,S,N.naturalWidth,N.naturalHeight))};
N.src=S.toString()}))})};
Gue=function(k,E){return Math.round(k/1E-5)===Math.round(E/1E-5)};
CQ1=function(k,E){return Math.round(k/1E-5)===Math.round(E/1E-5)};
kfj=function(k,E){return k.year===E.year&&k.month===E.month&&k.day===E.day};
E5h=function(k,E){return k.year!==E.year?k.year<E.year:k.month!==E.month?k.month<E.month:k.day<E.day};
R4A=function(k){return k.day===SRl(k.year,k.month)?k.month===11?{year:k.year+1,month:0,day:1}:{year:k.year,month:k.month+1,day:1}:{year:k.year,month:k.month,day:k.day+1}};
VPh=function(){var k=new Date,E={year:k.getFullYear(),month:k.getMonth(),day:k.getDate()};return{start:E,end:{year:k.getFullYear()+2,month:k.getMonth(),day:k.getDate()},selectedDate:R4A(E)}};
Neb=function(k){return(new ji(2)).format(new Date(k.year,k.month,k.day))};
I$j=function(k){return{year:k.getFullYear(),month:k.getMonth(),day:k.getDate()}};
n5t=function(k,E){k=(k+(Number(E.utcOffsetSec)+(new Date(k*1E3)).getTimezoneOffset()*60))*1E3;E=I$j(new Date(k));return{date:E,secondsSinceMidnight:Math.floor((k-(new Date(E.year,E.month,E.day)).getTime())/1E3)}};
iDI=function(k,E){E=E.months.findIndex(function(S){return S.year===k.year&&S.month===k.month});
return E>=0?E:void 0};
h4t=function(k){if(!k)return!1;try{if(k.host&&k.host.tagName==="YT-FORMATTED-STRING"&&k.host.id==="contenteditable-textarea"||k.nodeType===Node.ELEMENT_NODE&&k.tagName==="YTD-COMMENTBOX")return!0}catch(E){return!1}return h4t(k.parentNode)};
lK=function(k){return k?!(k.tagName!=="A"||!k.href||!k.classList.contains("yt-simple-endpoint")):!1};
JoR=function(k){return k?k.tagName==="IMG"&&k.classList.contains("emoji"):!1};
coe=function(k,E,S){if(!k)return null;var R=lK(k);if(R&&S)return E=k.pathname.substring(k.pathname.indexOf("/channel/")+9),document.createTextNode("@"+E);if(R&&!S)return document.createTextNode("");if(JoR(k))return S=k.alt,k=k.dataset.emojiId,!k&&E&&(E=_.MB(E,S))&&E.isCustomEmoji&&(k=E.emojiId),k?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+k+">"):document.createTextNode(S);R=k.cloneNode(!1);for(var V=0;V<k.childNodes.length;++V){var N=coe(k.childNodes[V],E,S);N&&R.appendChild(N)}return R};
qB=function(k){return k?lK(k)?k:qB(k.lastChild):null};
mLb=function(k){return k?lK(k)?k:mLb(k.firstChild):null};
e4j=function(k){if(!k)return null;for(var E=k.previousSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.previousSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.previousSibling;else break;(E=qB(E))?k=E:k=(k=k.parentNode)?qB(k.previousElementSibling):null;return k};
a$A=function(k){if(!k)return null;for(var E=k.nextSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.nextSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.nextSibling;else break;return(E=mLb(E))?E:a$A(k.parentNode)};
tPh=function(k){var E=_.zc(),S=E.JSC$11343_getStartNode();if(!h4t(S.parentNode))return null;E=E.JSC$11343_getStartOffset();if(S.nodeType===Node.TEXT_NODE){var R=_.lh(S,lK);if(R){if(k&&E===0||!k&&E===S.length)return R}else{if(k&&E===S.length)return!S||S.nodeName==="BR"||S.nextElementSibling&&_.Q3(S.nextElementSibling,"display")==="block"?null:mLb(S.nextElementSibling);if(!k&&E===0)return S?qB(S.previousElementSibling):null}}if(S.nodeType===Node.ELEMENT_NODE)if(k){if(0<=E&&E<S.childNodes.length)return mLb(S.childNodes[E])}else if(0<
E&&E<=S.childNodes.length)return qB(S.childNodes[E-1]);return null};
TeI=function(k,E,S){if(!k)return null;if(k.nodeType===Node.TEXT_NODE)if(S){var R=e4j(k);if(R&&!/^\s+\S/.test(k.wholeText.substr(0,E)))return R}else if((R=a$A(k))&&!/\S\s+/.test(k.wholeText.substr(E,k.wholeText.length)))return R;return k.nodeType===Node.ELEMENT_NODE?S?e4j(k.childNodes[E]):a$A(k.childNodes[E]):TeI(k.parentNode,E,S)};
wxe=function(k){if(k.hasChildNodes())switch(k.tagName){case "DIV":case "A":case "SPAN":var E="";for(k=k.firstChild;k;k=k.nextSibling)E+=wxe(k);return E;default:return""}else switch(k.nodeType){case 3:return k.textContent;default:return""}};
Of=function(k,E){return k.year===E.year&&k.month===E.month&&k.day===E.day};
Gc=function(k,E){return k.year!==E.year?k.year<E.year:k.month!==E.month?k.month<E.month:k.day<E.day};
PzI=function(k){return{year:k.getFullYear(),month:k.getMonth(),day:k.getDate()}};
BeI=function(k){var E=vPt;E=E===void 0?vPt:E;E(new Date(k.year,k.month,k.day))};
C5=function(k){return PzI(new Date(Number(k.seconds)*1E3))};
YRj=function(k){return k.year!==void 0&&k.month!==void 0&&k.day!==void 0};
WHI=function(k){return k.start!==void 0&&k.end!==void 0};
FHj=function(k){return WHI(k)?k.start:k};
yol=function(k){return WHI(k)?k.end:void 0};
Xxl=function(k,E){for(var S=[],R=new Date(k.start.year,k.start.month);R.getFullYear()<k.end.year||R.getFullYear()===k.end.year&&R.getMonth()<=k.end.month;){var V=S,N=V.push,h=R.getFullYear(),J=R.getMonth(),m=k,a=E,T=void 0,w=[],P=Object.freeze({extraCssClass:"invisible"}),B=new Date(h,J),F=PzI(B);B=B.getDay();for(var K=PzI(new Date);F.month===J;){B!==o5j&&T||(T=Array.from({length:7}).fill(P),w.push(T));var r={date:{year:h,month:J,day:F.day},extraCssClass:"",debugClass:""};r.extraCssClass=a(r.date,
F,K,m).trim();T[(B-o5j+7)%7]=r;F=F.day===SRl(F.year,F.month)?F.month===11?{year:F.year+1,month:0,day:1}:{year:F.year,month:F.month+1,day:1}:{year:F.year,month:F.month,day:F.day+1};B=(B+1)%7}N.call(V,{weeks:w,monthLabel:kz.SHORTMONTHS[J]+" "+h,year:h,month:J,monthLabelExtraCssClass:w[0][2]===P?"shift-down-label":""});R.setMonth(R.getMonth()+1)}return S};
g5m=function(k,E){E=E.months.findIndex(function(S){return S.year===k.year&&S.month===k.month});
return E>=0?E:void 0};
HDm=function(k,E){a:{var S=S===void 0?[2,3]:S;S=_.n(S);for(var R=S.next();!R.done;R=S.next()){var V=new Date;if((new ULb(R.value)).parse(E,V,{validate:!0})){V.setHours(0,0,0,0);E=V;break a}}E=null}if(!E)return{isValid:!1,value:void 0};E=PzI(E);S=k.end;return Gc(E,k.start)||Gc(S,E)?{isValid:!1,value:void 0}:{isValid:!0,value:E}};
uP1=function(k){var E=KHI;E=E===void 0?pxA:E;var S=k.columnsToShow||[],R=Aol(k.columnDimensions,k.columnsToShow,k.leftFloatingColumns,E);return S.map(function(V,N){var h=k.columns[V];if(h===void 0)throw Error("Xh");var J=R?R[N]:"";var m=k.getCustomTooltip?k.getCustomTooltip(V,h.headerTooltipParagraphs):h.headerTooltipParagraphs;var a=ro1(k,V);return{type:V,index:N,style:J,classes:a,headerName:h.headerName||"",headerIcon:h.headerIcon,headerTooltipParagraphs:m||[],headerTooltipHelpContext:h.headerTooltipHelpContext,
sortOrders:h.sortOrders||[],selectionState:h.isSelectionCheckbox?k.selectionState:void 0}})};
ro1=function(k,E){var S=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],R=k.columns[E];if(R===void 0)return"";var V=S.includes("DEFAULTS")&&R.cssClass?[R.cssClass]:[];if(S.includes("SORTING")){R.sortOrders&&R.sortOrders.length&&V.push("sortable");if(k.sorting&&k.sorting.columnType===E)a:switch(k.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var N="column-sorted";break a;default:N=""}else N="";N&&V.push(N)}S.includes("FLOATING")&&(E=k.columnsToShow.indexOf(E),k.leftFloatingColumns&&E<k.leftFloatingColumns&&
V.push("floating-column"),k.leftFloatingColumns&&E===k.leftFloatingColumns-1&&V.push("last-floating-column"));S.includes("RIGHT_ALIGN")&&R.rightAlignHeader&&V.push("right-align");return V.filter(function(h){return h}).join(" ")};
Aol=function(k,E,S,R){S=S===void 0?0:S;R=R===void 0?pxA:R;if(k){var V=[],N=0;xLl(k,E,R).forEach(function(h,J){var m="min-width:"+h.minWidth+"px;padding-left:"+h.paddingLeft+"px;padding-right:"+h.paddingRight+"px;flex:"+h.flexGrow+" 0 "+h.minWidth+"px;";h.maxWidth!==Infinity&&(m=[m,"max-width:"+h.maxWidth+"px;"].join(""));N>0&&J<S&&(m=[m,"left:"+N+"px;"].join(""));V.push(m);N+=h.minWidth+h.paddingLeft+h.paddingRight});
return V}};
xLl=function(k,E,S){S=S===void 0?pxA:S;return E.map(function(R,V){R=k&&k[R]||{};var N=V===0?S.paddingLeftFirstColumn:S.padding;R.paddingLeft!==void 0&&(N=R.paddingLeft);V=V===E.length-1?S.paddingRightLastColumn:S.padding;R.paddingRight!==void 0&&(V=R.paddingRight);return{paddingLeft:N,paddingRight:V,minWidth:R.minWidth!==void 0?R.minWidth:S.minWidth,maxWidth:R.maxWidth!==void 0?R.maxWidth:S.maxWidth,flexGrow:R.flexGrow!==void 0?R.flexGrow:S.flexGrow}})};
LH1=function(k){var E=k.reduce(function(R,V){var N=V.columnId,h={};V.headerText&&(h.headerName=_.$n(V.headerText));V.rightAlignHeader&&(h.rightAlignHeader=V.rightAlignHeader);var J;if((J=V.headerIcon)==null?0:J.iconType)h.headerIcon=_.SF(V.headerIcon.iconType);R[N]=h;return R},{}),S=k.filter(function(R){return!R.hideColumn}).map(function(R){return R.columnId});
k=k.filter(function(R){return!!R.dimensions}).reduce(function(R,V){R[V.columnId]=V.dimensions;
return R},{});
return{columns:E,columnsToShow:S,columnDimensions:k}};
_.jBh=function(k){return k?k.simpleText?k.simpleText:k.runs?k.runs.map(function(E){return E.text}).join(""):"":""};
ZDi=function(k){var E=k.data;var S=k.onTap;var R=k.isSelected;var V=k.onFocusIn;if(!E)return{};k=DLI(E);R===void 0&&(R=E==null?void 0:E.isSelected);var N;return{text:$L1(E,k),startIcon:(N=E.icon)==null?void 0:N.iconType,state:R?0:2,type:0,style:f$1(E),onTap:v5A(E,S),accessibilityLabel:bD1(E,k),onFocusIn:function(){return V==null?void 0:V()}}};
$L1=function(k,E){if(!E)return k.text?_.jBh(k.text):void 0};
f$1=function(k){var E;switch((E=k.style)==null?void 0:E.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
v5A=function(k,E){return function(S){E==null||E(S,k)}};
DLI=function(k){k=k.style&&k.style.styleType;return!I31&&k==="STYLE_EXPLORE_LAUNCHER_CHIP"};
bD1=function(k,E){if(E){var S,R,V;return(V=(S=k.accessibilityData)==null?void 0:(R=S.accessibilityData)==null?void 0:R.label)!=null?V:$L1(k,!1)}};
Ei=function(k){return{signalAction:{signal:k}}};
l$h=function(){return _.Mg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?dLh:_.sBC};
MPj=function(k,E){k=k===void 0?"SOFT_RELOAD_PAGE":k;E=E===void 0?49504:E;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.lD(_.Vi("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:E}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:k}}]}}}};
qR1=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.lD(_.Vi("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:l$h()}};
z4j=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.lD(_.Vi("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:l$h()}};
QB1=function(k,E){var S=_.lD(_.Vi("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),R=_.lD(_.Vi("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),V={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.lD(_.Vi("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};V.serviceEndpoint=k?k:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Ei("SOFT_RELOAD_PAGE")]}};return{title:S,bodyText:R,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:V},
style:{value:E!=null?E:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
Gfh=function(k){k=k===void 0?{}:k;return{title:_.lD(k.localizedZeroStateTitleText===void 0?"":k.localizedZeroStateTitleText),bodyText:_.lD(k.localizedZeroStateMessage===void 0?"":k.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lD(k.localizedZeroStateButtonText===void 0?"":k.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[ODC]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
kEh=function(k){k=k===void 0?{}:k;return{title:_.lD(k.localizedOptInBannerTitleText===void 0?"":k.localizedOptInBannerTitleText),titleLength:19,subtitle:_.lD(k.localizedOptInMessage===void 0?"":k.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lD(_.Vi("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:_.lD(_.Vi("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:[Cze]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
RLl=function(k,E){var S=E=E===void 0?{}:E;E=S.offlineTitleText===void 0?"":S.offlineTitleText;var R=S.offlineDescriptionText===void 0?"":S.offlineDescriptionText,V=S.formattedSupplementalText,N=S.actionButtonText===void 0?"":S.actionButtonText,h=S.titleText===void 0?"":S.titleText;S=S.descriptionText===void 0?"":S.descriptionText;var J={title:N,accessibilityText:N,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"}}}}};k||(h=E,S=R,J={title:N,accessibilityText:N,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:_.lD(h),titleLength:h.length,overrideTitleMaxFontSize:30,subtitle:_.lD(S),supplementalText:V,primaryButton:{buttonViewModel:J},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[EQi]},darkTileImage:{thumbnails:[SK1]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.INI=function(k,E,S,R,V,N,h,J,m,a,T){V=V===void 0?!1:V;N=N===void 0?!1:N;h=h===void 0?0:h;J=J===void 0?-Infinity:J;m=m===void 0?!1:m;a=a===void 0?!1:a;T=T===void 0?!1:T;var w=[],P=_.lD(_.Vi("SMART_DOWNLOADS",void 0,"Smart downloads")),B=_.lD(Vej(h,J,k.length));J=h=void 0;a?h={statementBannerRenderer:RLl(T,R)}:V?k.length>0?J=N2I(k,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.Y("kevlar_manual_downloads_above"),P,B):m?J={alertBannerViewModel:{heading:{content:S.localizedOptInBannerTitleText===
void 0?"":S.localizedOptInBannerTitleText},body:{content:S.localizedPromptMessage===void 0?"":S.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Vi("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Vi("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:_.PL1}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:N&&(J={backgroundPromoRenderer:{bodyText:_.lD(_.Vi("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"}}}):
N&&(J={alertBannerViewModel:{heading:{content:S.localizedOptInBannerTitleText===void 0?"":S.localizedOptInBannerTitleText},body:{content:S.localizedOptInMessage===void 0?"":S.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Vi("TURN_ON",void 0,"Turn on"),accessibilityText:_.Vi("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}}}}}});S=_.lD(_.Vi("YOUR_DOWNLOADS",void 0,"Your downloads"));R=void 0;E.length>0?(R=void 0,_.Y("kevlar_display_downloads_numbers")&&(R=_.lD(_.Na("VIDEO_COUNT",E.length))),R=N2I(E,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,S,R)):V||k.length||
a||(R={backgroundPromoRenderer:{bodyText:_.lD(_.Vi("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}}}});h?w.push({richSectionRenderer:{content:h}}):J&&!_.Y("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:J,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
R&&w.push({richSectionRenderer:{content:R,loggingDirectives:{clientVeSpec:{uiType:51721}}}});J&&_.Y("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:J,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(E.length>0||V&&k.length>0&&!a)&&w.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.lD(_.Vi("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:w}};
_.ike=function(k){return nQj(k,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.hLe=function(k){return nQj(k,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
nQj=function(k,E){var S=[];k=N2I(k,E,!0);S.push({richSectionRenderer:{content:k}});return{contents:S}};
N2I=function(k,E,S,R,V){S=S===void 0?!1:S;var N="RESPONSIVE_SIZE_STANDARD";_.Y("kevlar_standard_rich_grid_on_offline_home")&&E==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?N="RESPONSIVE_SIZE_STANDARD":_.Y("kevlar_modern_downloads_compact")?N="RESPONSIVE_SIZE_COMPACT":_.Y("kevlar_modern_downloads_extra_compact")?N="RESPONSIVE_SIZE_EXTRA_COMPACT":_.Y("kevlar_modern_downloads_tiny")&&(N="RESPONSIVE_SIZE_TINY");k={isExpanded:S,contents:Sj(k),entitySelectorType:E,responsiveContainerConfiguration:{responsiveSize:N}};
R&&(k.title=R);V&&(k.subtitle=V);S||(_.Y("kevlar_smart_downloads_show_more_button")?(k.showMoreButton={buttonRenderer:{accessibility:{label:_.Vi("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.lD(_.Vi("SHOW_MORE",void 0,"Show more"))}},k.showLessButton={buttonRenderer:{accessibility:{label:_.Vi("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.lD(_.Vi("SHOW_LESS",void 0,"Show less"))}}):(k.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Vi("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}}}},k.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Vi("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}}}},k.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Vi("VIEW_ALL",void 0,"View all"),accessibilityText:_.Vi("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:_.dq("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:k}};
Sj=function(k){var E=[];k=_.n(k);for(var S=k.next();!S.done;S=k.next())if(S=S.value,EB1(S)){var R=E,V=R.push;var N=void 0;if(S==null?0:(N=S.videoEntity)==null?0:N.videoId){N=Ho(_.vo().getState(),S.videoEntity.videoId);var h=_.vo().getState();var J=_.kn(S.videoEntity.videoId,"mainVideoEntity");h=!!_.tp(h.entities)[J];h={videoId:S.videoEntity.videoId,title:Ma(S.videoEntity.title),shortBylineText:Ma(S.channelEntity.title),thumbnail:S.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:h&&_.Y("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:A1R(S.videoEntity.videoId,N,S.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Vi("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};S.videoEntity.lengthSeconds&&(h.thumbnailOverlays=NRR(S.videoEntity.lengthSeconds,N));h.isWatched=N>0;_.Y("kevlar_modern_downloads_page")&&(h.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:S.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Vi("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},h.badges=void 0);S=h}else S={};V.call(R,{richItemRenderer:{content:{videoRenderer:S},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(kij(S)){R=E;V=R.push;var m=J=N=void 0,a=void 0,T=void 0,w=void 0,P=void 0,B=void 0,F=void 0,K=void 0,r=void 0,x=void 0;h=S.mainPlaylistEntity.playlistId;var L=S==null?void 0:(x=S.mainPlaylistEntity)==null?void 0:(r=x.thumbnailStyleData)==null?void 0:(K=r[0])==null?void 0:(F=K.value)==null?void 0:(B=F.collageThumbnail)==
null?void 0:B.coverThumbnail;if(h&&L){B=r11(h);!_.Y("enable_offline_playlist_page")&&(S==null?0:(P=S.mainPlaylistEntity)==null?0:P.videos)&&(P=S==null?void 0:(w=S.mainPlaylistEntity)==null?void 0:(T=w.videos)==null?void 0:T[0],T=_.Ov(P).entityId,T=JSON.parse(T).videoId,T!==void 0&&(w=Ho(_.vo().getState(),T),B=_.sv(T,h,void 0,void 0,w)));T=[];if(S==null?0:(a=S.mainPlaylistEntity)==null?0:(m=a.videos)==null?0:m.length)T=[fGI(),Object.assign({},(J=$8C(S==null?void 0:S.mainPlaylistEntity.videos.length))!=
null?J:{})];S={playlistId:h,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:L}},navigationEndpoint:B,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:T,title:Ma(S.mainPlaylistEntity.title),shortBylineText:Ma(S==null?void 0:(N=S.channelEntity)==null?void 0:N.title),badges:[{metadataBadgeRenderer:{label:_.Vi("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.Y("kevlar_modern_downloads_page")&&(S.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:Jie,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:h,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Vi("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},S.badges=void 0)}else S=void 0;V.call(R,{richItemRenderer:{content:{playlistRenderer:S},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return E};
Vej=function(k,E,S){k=k?cih(k):"";E!==void 0&&isFinite(E)?E===0?E=_.Vi("UPDATING",void 0,"Updating..."):(E=Vfh(new Date(E),new Date),E=_.Vi("UPDATED_TIME",{relative_time:E},"Updated "+E)):E="";var R="";k&&E&&(R=" \u2022 ");if(S&&_.Y("kevlar_display_downloads_numbers")){S=_.Na("VIDEO_COUNT",S);if(k||E)R=" \u2022 ";return S+R+k+R+E}return k+R+E};
mu1=function(k){return l2t(k.entities).length};
_.eLm=function(k,E){var S=xcI(k.responsiveSize),R;k=!((R=k.responsiveMap)==null||!R.some(function(V){return V.containerSize==="CONTAINER_SIZE_NARROW"&&V.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:E,sizing:S,enableFullBleedForSingleCol:!1,isCompactList:S==="COMPACT"&&k}};
aNe=function(k,E){return _.Ep(k.entities,"votingEntity",E)};
R3=function(k){if(k){var E;return((E=_.en().resolve(_.mz(_.jF)))==null?0:E())?k.darkTheme:k.lightTheme}};
tee=function(k,E){if(k.simpleText)return Object.assign({},k,{simpleText:uY(k.simpleText,E)});if(!k.runs)return k;for(var S=Object.assign({},k,{runs:[]}),R=0,V=_.n(k.runs),N=V.next();!N.done;N=V.next())if(N=N.value,N.text)if(R+N.text.length<=E)S.runs.push(N),R+=N.text.length;else return S.runs.push(Object.assign({},N,{text:uY(N.text,E-R)})),S;return k};
T21=function(k,E){return _.Ep(k.entities,"chipBarStateEntity",E)};
wPR=function(k,E){return _.Ep(k.entities,"chipEntity",E)};
B2t=function(k,E,S,R){return function(){var V=PxI.has(k.displayType)&&k.selected,N=V&&k.deselectCommand?k.deselectCommand:k.tapCommand;!N||V&&R||_.AV(N,{form:{element:E==null?void 0:E.value}});S==null||S()}};
YKt=function(k){switch(k){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""}};
Wv1=function(k,E){return{triggeringElement:k,onDwellTriggeredFn:function(){var S={triggeringElement:k,loadVideoPreviewEventData:E},R=document.querySelector(".video-preview");R&&R.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:S}))},
onDwellEndFn:function(){var S=document.querySelector(".video-preview");S&&S.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
FvC=function(k,E){var S=_.en().resolve(_.mz(WmI)),R=function(){var V=E();return S&&V?Wv1(k.value,V):null};
_.vX(function(){var V=R();S&&V&&Promise.resolve().then(function(){S.registerElement(V)});
_.bI(function(){S&&V&&Promise.resolve().then(function(){_.XX(S,V)})})},"csPUge")};
oQb=function(k){var E=k.dataset.resizeObserverId;if(E)return E;E=""+yil++;return k.dataset.resizeObserverId=E};
XPh=function(k,E){var S=oQb(k);Vx.has(S)||Vx.set(S,new Set);Vx.get(S).add(E);Nh.has(S)&&E(Object.assign({},{target:k},Nh.get(S)))};
gQj=function(k){k=_.n(k);for(var E=k.next();!E.done;E=k.next()){E=E.value;var S=oQb(E.target),R=Object.assign({},{target:E.target},Nh.get(S));if(R!=null&&R.contentRect?R.contentRect.width!==E.contentRect.width||R.contentRect.height!==E.contentRect.height:1)for(Nh.set(S,{borderBoxSize:E.borderBoxSize,contentBoxSize:E.contentBoxSize,contentRect:E.contentRect,devicePixelContentBoxSize:E.devicePixelContentBoxSize}),S=_.n(Vx.get(S)||[]),R=S.next();!R.done;R=S.next())R=R.value,R(E)}};
Hk1=function(){return I3?I3:I3=new Uum(gQj)};
KvC=function(k,E){var S=oQb(k);Vx.has(S)&&(Vx.get(S).delete(E),Vx.get(S).size===0&&(Vx.delete(S),Nh.delete(S),I3.unobserve(k),delete k.dataset.resizeObserverId));Vx.size===0&&I3&&(I3.disconnect(),I3=void 0)};
Ai1=function(k,E){var S=_.en().resolve(mF);return pPt.map(function(R){return S.observe(k,E,R)})};
riI=function(k){var E=_.en().resolve(mF);k.forEach(function(S){E.unobserveByKey(S)})};
_.Lvi=function(k,E){var S=Object.assign({},uW1,E);E=_.n(Z2j());var R=E.next().value,V=E.next().value,N=function(h){var J=h.contentRect.height;if((h=h.contentRect.width)||J||S.canHaveZeroSize)R.width()===h&&R.height()===J||V(R,{height:J,width:h})};
_.b$(function(){var h=k instanceof HTMLElement?k:k.value,J=xuA(N,S.throttleMs),m=[];S.useVisibilityObserver&&(m=Ai1(h,function(a,T){requestAnimationFrame(function(){T==="visible"?(XPh(h,J),Hk1().observe(h)):KvC(h,J)})}));
m.length||(XPh(h,J),Hk1().observe(h));_.bI(function(){m.length&&(riI(m),m.length=0);KvC(h,J)})});
return R};
Dum=function(k,E,S,R,V){k=E?k.switchOffCommand:k.switchOnCommand;if(R&&V)jkm(k,S,V);else{var N,h;(N=_.Kh({elementsCommand:k}))==null||(h=N.onclick)==null||h.call(N,S)}};
jkm=function(k,E,S){k=_.Kh({elementsCommand:k,additionalCommandArgs:{commandController:{onSuccess:function(){S(!1)},
onServerError:function(){S(!1)}}}});
if(k==null?0:k.onclick)k.onclick(E),S(!0)};
fNb=function(k){if(k)return _.W(k,$um)};
vQ1=function(k,E){if(!((k==null?0:k.entitySelectorType)&&(k==null?0:k.entityKey)))return{};switch(k.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.Y("enable_web_shorts_captions_language_command")){var S;var R=(S=_.Sq())==null?void 0:S.getOption("captions","track");var V,N=typeof(R==null?void 0:R.translationLanguage)==="object"&&((V=R.translationLanguage)==null?void 0:V.languageName)||(R==null?void 0:R.displayName)||"";R={data:Object.assign({},
!!N&&{selectionText:{content:N}},!!N&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof R==="undefined"})}}else R={};return R;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.Y("web_shorts_audio_track_picker")){var h;V=((h=_.Sq())==null?void 0:h.getAudioTrack())||void 0;S=V==null?void 0:(N=V.getLanguageInfo())==null?void 0:N.getName();V={data:Object.assign({},{selectionText:{content:S}},S&&!(V==null?0:(R=V.getLanguageInfo())==
null?0:R.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else V={};return V;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return R=k!=null&&k.entityKey?(R=_.Ufe(E,k.entityKey))?{isHidden:(R==null?void 0:R.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},R;default:return{}}};
bkh=function(k){var E=["A".toString(),"BUTTON".toString()];return function(S){var R=function(V){_.Bp(_.Pp(V),S,E)||k(V)};
S.addEventListener("click",R);return function(){S.removeEventListener("click",R)}}};
_.ZkI=function(k){return function(){return _.W(k(),_.n9)}};
duC=function(k){switch(k){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
skj=function(k){switch(k){case "JUSTIFY_CONTENT_CENTER":return"ytLinearLayoutViewModelJustifyContentCenter";case "JUSTIFY_CONTENT_FLEX_END":return"ytLinearLayoutViewModelJustifyContentFlexEnd";case "JUSTIFY_CONTENT_SPACE_AROUND":return"ytLinearLayoutViewModelJustifyContentSpaceAround";case "JUSTIFY_CONTENT_BETWEEN":return"ytLinearLayoutViewModelJustifyContentBetween";case "JUSTIFY_CONTENT_SPACE_EVENLY":return"ytLinearLayoutViewModelJustifyContentSpaceEvenly";default:return"ytLinearLayoutViewModelJustifyContentFlexStart"}};
lNC=function(k){switch(k){case "ALIGN_ITEMS_START":return"ytLinearLayoutViewModelAlignItemsStart";case "ALIGN_ITEMS_END":return"ytLinearLayoutViewModelAlignItemsEnd";case "ALIGN_ITEMS_CENTER":return"ytLinearLayoutViewModelAlignItemsCenter";case "ALIGN_ITEMS_BASELINE_FIRST":return"ytLinearLayoutViewModelAlignItemsBaselineFirst";case "ALIGN_ITEMS_BASELINE_LAST":return"ytLinearLayoutViewModelAlignItemsBaselineLast";default:return"ytLinearLayoutViewModelAlignItemsStretch"}};
Okh=function(k,E,S){if(E)return[Meh];switch(k){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[ir];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return S?[ir]:[qKj,ir];case "TRANSFER_STATE_PAUSED_BY_USER":return[zLe,ir];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[QkI,ir];default:return[Meh]}};
GEb=function(k,E,S,R){return Okh(k,E,R).map(function(V){var N=V.text,h=V.iconType,J=V.videoAction;V=V.playlistAction;N=N?{content:N}:void 0;h=h&&{sources:[{clientResource:{imageName:h}}]};var m=(0,_.fO.unsafeClone)(S);if(m){var a=_.W(m,_.IE),T=_.W(m,_.n5);a&&J?a.action=J:T&&V&&(T.action=V)}return{title:N,leadingImage:h,rendererContext:m&&{commandContext:{onTap:{innertubeCommand:m}}}}})};
Cxi=function(k){k=_.Yh(k.rendererContext);var E;return(E=_.W(k,_.n5))==null?void 0:E.playlistId};
k8A=function(k){var E;return(E=k.listItems)==null?void 0:E.some(function(S){var R;return _.Wp((R=_.W(S,_.eq))==null?void 0:R.rendererContext)})};
Rnh=function(k){var E;return(E=k.listItems)==null?void 0:E.some(function(S){var R,V,N=(V=(R=_.W(S,Eal))==null?void 0:R.defaultListItem)!=null?V:S;S=_.W(N,_.eq);return!!_.W(S==null?void 0:S.leadingAccessory,SeR)})};
IUj=function(k){var E=k.element;var S=k.veType;var R=k.storedVisualElement===void 0?null:k.storedVisualElement;var V=k.elementIndex===void 0?0:k.elementIndex;k=k.clientYouTubeData;var N=_.Fe();N!==Vs1&&(Nlm.clear(),Vs1=N);if(E.visualElement&&Nlm.has(E.visualElement))return null;if(R&&Nlm.has(R))return E.visualElement=R,null;S=_.hV(_.JV(),{veType:S,elementIndex:V,clientYouTubeData:k});if(!S)return null;E.visualElement=S;Nlm.add(S);return S};
_.hQ=function(k,E,S,R){S=S===void 0?null:S;R=R===void 0?vdI:R;var V=V===void 0?null:V;YX(function(){if(E){S instanceof Function&&(S=S());var N=IUj({element:E,veType:k,storedVisualElement:S,clientYouTubeData:void 0});N&&(dEb(E,V),R(N))}})};
JQ=function(k){var E=_.en().resolve(_.mz(_.jF));return E!=null&&E()?k.darkThemeColorPalette:k.lightThemeColorPalette};
mO=function(k){return{primaryTextColor:cZ(k,0),secondaryTextColor:cZ(k,1),optionColor:cZ(k,2),backgroundColor:cZ(k,3),videoBackgroundColor:cZ(k,4)}};
cZ=function(k,E){if(k){switch(E){case 0:k=k.primaryTitleColor;break;case 1:k=k.secondaryTitleColor;break;case 2:k=k.surgeColor;break;case 3:k=k.section2Color;break;case 4:k=k.section3Color;break;default:return}if(k)return _.HT(k)}};
ej=function(k,E){if(k){switch(E){case 0:k=k.primaryTitleColor;break;case 1:k=k.secondaryTitleColor;break;case 2:k=k.surgeColor;break;case 3:k=k.section2Color;break;case 4:k=k.section3Color;break;default:return}if(k)return _.HT(k)}};
nat=function(k){return k?_.Kc(k):""};
ia1=function(k){return(k==null?void 0:k.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
hnh=function(k,E){return _.Ep(k.entities,"videoOverviewAsyncDataEntity",E)};
J5I=function(k,E){var S;return"linear-gradient(to bottom, "+((S=E==null?void 0:E.map(function(R){var V=k?R.darkThemeColor:R.lightThemeColor;return V?_.Kc(V)+" "+((R==null?void 0:R.startLocation)||0)*100+"%":"transparent"}))==null?void 0:S.join(", "))+")"};
c5e=function(k,E,S,R,V){if(!((R==null?0:R.height)&&(R==null?0:R.width)))return{size:0};var N=R.width;R=R.height;if(V)return E==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||E==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&N>R?{size:312/ltI}:E==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(S!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||k!==1&&k!==2||E!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&E!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&E!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(E==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||E==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||R===N)switch(k){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(E==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||R>N)switch(k){case 1:case 3:return{size:240*sYh};default:return{size:360*sYh}}switch(k){case 1:case 2:return{size:1/ltI*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.m0i=function(k){if(!("matchMedia"in window))return _.kr(Error("Yh")),function(){return!1};
var E=window.matchMedia(k);k=_.n(_.yg(E.matches,void 0,"jLJc8e"));var S=k.next().value,R=k.next().value,V=function(N){R(N.matches)};
E.addEventListener?(E.addEventListener("change",V),_.bI(function(){E.removeEventListener("change",V)})):E.addListener&&(E.addListener(V),_.bI(function(){E.removeListener(V)}));
return S};
enh=function(k){return k==="IMAGE_BANNER_STYLE_INSET"||k==="IMAGE_BANNER_STYLE_UNKNOWN"};
aUi=function(){if(!("matchMedia"in window))return _.kr(Error("Yh")),function(){return 0};
var k=Z_(function(){return window.matchMedia("(max-width: 527.9px)")}),E=Z_(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),S=Z_(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),R=Z_(function(){return window.matchMedia("(min-width: 1024px)")}),V=_.n(_.yg(k.matches,void 0,"og9kEc")),N=V.next().value,h=V.next().value;
V=_.n(_.yg(E.matches,void 0,"ybDWCb"));var J=V.next().value,m=V.next().value;V=_.n(_.yg(S.matches,void 0,"o0Gfh"));var a=V.next().value,T=V.next().value;V=_.n(_.yg(R.matches,void 0,"yqUUgd"));var w=V.next().value,P=V.next().value,B=Z_(function(){return function(x){h(x.matches)}}),F=Z_(function(){return function(x){m(x.matches)}}),K=Z_(function(){return function(x){T(x.matches)}}),r=Z_(function(){return function(x){P(x.matches)}});
_.b$(function(){k.addEventListener?(k.addEventListener("change",B),E.addEventListener("change",F),S.addEventListener("change",K),R.addEventListener("change",r)):k.addListener&&(k.addListener(B),E.addListener(F),S.addListener(K),R.addListener(r));_.bI(function(){k.removeEventListener?(k.removeEventListener("change",B),E.removeEventListener("change",F),S.removeEventListener("change",K),R.removeEventListener("change",r)):k.removeListener&&(k.removeListener(B),E.removeListener(F),S.removeListener(K),
R.removeListener(r))})});
return function(){return N()?1:J()?2:a()?3:w()?4:0}};
tsi=function(k){var E=0;k=_.n([k.title,k.metadata,k.actions,k.description,k.attribution]);for(var S=k.next();!S.done;S=k.next())S.value&&E++;return E};
Tlh=function(k){return k===1||k===2?1:0};
PFm=function(k){k=(new wBC).parse(k);return(new Hk).render(k).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(E){var S=E.split(":").map(Number),R=0,V=0;if(S.length===3)S=_.n(S),R=S.next().value,V=S.next().value,S=S.next().value;else if(S.length===2)S=_.n(S),V=S.next().value,S=S.next().value;else if(S.length===1)S=_.n(S).next().value;else throw Error("Zh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(R*3600+V*60+S)+'" role="button">'+E+"</span>"})};
BlR=function(k){k=_.n(k.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var E=k.next(),S={};!E.done;S={clickHandler$jscomp$5:void 0},E=k.next()){E=E.value;S.clickHandler$jscomp$5=function(V){V=Number(V.target.getAttribute("data-time"));if(isNaN(V))throw Error("$h");var N;(N=_.Sq())==null||N.seekTo(V,!0)};
var R=function(V){return function(N){N.key!=="Enter"&&N.key!=="Space"||(0,V.clickHandler$jscomp$5)(N)}}(S);
E.setAttribute("tabindex","0");E.removeEventListener("click",S.clickHandler$jscomp$5);E.removeEventListener("keydown",R);E.addEventListener("click",S.clickHandler$jscomp$5);E.addEventListener("keydown",R)}};
Yeh=function(){return _.e("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.e(a3,{percentWidth:100}),_.e(a3,{animationDelay:200}),_.e(a3,{animationDelay:400}),_.e(a3,{animationDelay:600}),_.e(a3,{animationDelay:800,percentWidth:60}),_.e("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.e(a3,{percentWidth:100}),_.e(a3,{animationDelay:200}),_.e(a3,{animationDelay:400}),_.e(a3,{animationDelay:600,percentWidth:50}))};
a3=function(k){return _.e("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(k.percentWidth===void 0?100:k.percentWidth)+"%"},_.e("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(k.animationDelay===void 0?0:k.animationDelay)+"ms"}))};
WQR=function(){var k=_.n(_.yg(function(){return""},void 0,"dXJHWc")),E=k.next().value;
return[function(){return E()()},
k.next().value]};
FQI=function(k,E){k=k?cih(k):"";E!==void 0&&isFinite(E)?E===0?E=_.Vi("UPDATING",void 0,"Updating..."):(E=Vfh(new Date(E),new Date),E=_.Vi("UPDATED_TIME",{relative_time:E},"Updated "+E)):E="";var S="";k&&E&&(S=" \u2022 ");return _.lD(k+S+E)};
XBj=function(k,E,S,R,V,N){E=E===void 0?0:E;var h=y5l[E],J=h.title,m=h.iconType,a=h.topButtonRenderer,T=h.sectionClientVE;h=h.videoClientVE;var w;if(E!==1||k.length){S=[];k=_.n(k);for(R=k.next();!R.done;R=k.next()){var P=R.value;if(EB1(P))S.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:P.videoEntity.videoId,title:Ma(P.videoEntity.title),shortBylineText:Ma(P.channelEntity.title),thumbnail:P.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:P.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Vi("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:h}}}}}});else if(kij(P)){R=S;var B=R.push;var F=void 0,K=void 0,r=void 0,x=void 0,L=void 0,q=void 0,M=void 0,d=void 0,z=P.mainPlaylistEntity.playlistId,kb=P==null?void 0:(d=P.mainPlaylistEntity)==null?void 0:(M=d.thumbnailStyleData)==null?void 0:(q=M[0])==null?void 0:(L=q.value)==null?void 0:(x=L.collageThumbnail)==null?void 0:x.coverThumbnail;x=r11(z);if(!_.Y("enable_offline_playlist_page")&&
(P==null?0:(r=P.mainPlaylistEntity)==null?0:r.videos)){b:{r=P==null?void 0:(K=P.mainPlaylistEntity)==null?void 0:K.videos;K=_.vo().getState().entities;if(r!=null&&r.length&&K)for(r=_.n(r),L=r.next();!L.done;L=r.next())if(L=_.Ov(L.value).entityId,(L=JSON.parse(L).videoId)&&d5j(K,L)==="TRANSFER_STATE_COMPLETE"){K=L;break b}K=""}K!==void 0&&(x=Ho(_.vo().getState(),K),x=_.sv(K,z,void 0,void 0,x))}K=xFC(_.Vi("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),r11(z));P=z&&kb&&K?{playlistId:z,navigationEndpoint:x,
viewPlaylistText:K,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:kb}},title:Ma(P.mainPlaylistEntity.title),shortBylineText:Ma(P==null?void 0:(F=P.channelEntity)==null?void 0:F.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:oal,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Vi("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:h}}}:
void 0;B.call(R,{gridPlaylistRenderer:P})}}h={gridRenderer:{items:S}};E===1&&(w=FQI(V,N))}else if(R){var TI=_.lD((B=S==null?void 0:S.localizedPromptMessage)!=null?B:"");h={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lD(_.Vi("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.PL1}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.lD(_.Vi("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};w=FQI(V,N)}else TI=_.lD(_.Vi("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
h={};return{contents:[{shelfRenderer:{title:J,titleAnnotation:w,icon:{iconType:m},subtitle:TI,content:h,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:a}]}}}}],loggingDirectives:{clientVeSpec:{uiType:T}}}};
gab=function(k,E,S,R,V,N,h,J,m,a,T){S=S===void 0?{}:S;R=R===void 0?{}:R;V=V===void 0?!1:V;N=N===void 0?!1:N;h=h===void 0?!1:h;J=J===void 0?!1:J;m=m===void 0?!1:m;a=a===void 0?0:a;T=T===void 0?-Infinity:T;if(!(E.length||k.length||V||J))return N?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:Gfh(S)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.lD(_.Vi("DO_NOT_HAVE_DOWNLOADS",void 0,"You do not have any downloads")),icon:{iconType:"OFFLINE_NO_CONTENT"},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},
loggingDirectives:{clientVeSpec:{uiType:21411}}}}]}}];var w=[];k.length&&w.push(XBj(k,0));J?w.push({contents:[{statementBannerRenderer:RLl(m,R)}]}):V?w.push(XBj(E,1,S,h,a,T)):N&&w.push({contents:[{statementBannerRenderer:kEh(S)}]});(V&&E.length||k.length)&&w.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.lD(_.Vi("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}}}}]});
return w.map(function(P){return{itemSectionRenderer:P}})};
tQ=function(k,E){if(typeof k!=="object")return null;k=_.n(Object.entries(k));for(var S=k.next();!S.done;S=k.next()){var R=_.n(S.value);S=R.next().value;R=R.next().value;if(S===E)return S;if(R=tQ(R,E))return S+"."+R}return null};
Tb=function(k){var E=k.content;return(k=k.styleRuns)&&E?{runs:k.map(function(S){var R={text:E.slice(S.startIndex,S.startIndex+S.length)};S.fontColor&&(R.textColor=S.fontColor);return R})}:{simpleText:E}};
KQb=function(k,E,S,R){var V=U0e;R&&(k.quantity=R);if(!k.quantity||!k.maxQuantity)return{};R=k.minusButton;var N=k.plusButton,h,J,m,a;return{value:k.quantity,maxValue:k.maxQuantity,onChangeCallback:function(T){V(k,T)},
minusLabel:(h=_.W(R,HaC))==null?void 0:h.label,minimumReachedLabel:(J=_.W(R,HaC))==null?void 0:J.limitReachedLabel,plusLabel:(m=_.W(N,HaC))==null?void 0:m.label,maximumReachedLabel:(a=_.W(N,HaC))==null?void 0:a.limitReachedLabel,disabled:E,onRemoveCommand:S}};
U0e=function(k,E){var S=k.quantityIncrementerEntityKey;if(S){var R={};R.quantity=E;_.bl(_.wE("quantityIncrementerEntity",S,R));k.onChangeCommand&&_.AV(k.onChangeCommand)}};
pBC=function(k){if(k)return k===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(k).overflowY)?k:pBC(k.parentElement)};
uV1=function(k,E){(k=A5C(k))&&((_.Y("enable_mini_app_command_handler_mweb_fix")?0:E)?r5C.push({command:k,sourceData:{},commandContext:void 0}):_.en().resolve(_.t3).resolveCommand(k))};
A5C=function(k){return _.W(k,_.gX)};
x01=function(){var k=window.performance.timeOrigin+window.performance.now(),E=(new _.PZ).setSeconds(k/1E9);return _.EX(E,2,_.nP(k%1E9),0)};
jaR=function(k,E){var S;k=(S=_.W(_.W(k,_.gX),LQb))==null?void 0:S.methodName;var R,V;(S=window.youtubewebview||((R=window.webkit)==null?void 0:(V=R.messageHandlers)==null?void 0:V.youtubewebview))&&k&&(R=new BZ,k=_.uh(R,1,k),k=_.xW(k.JSC$12545_serializeBinary()),E=_.xW(E),S.postMessage(k+","+E))};
Yz=function(k,E){var S=_.W(_.W(k,_.gX),LQb);S&&(E&&(S.serializedAdditionalMetadata=_.xW(E)),uV1(k,!0))};
D01=function(k){switch(k){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"}};
$0I=function(){return!!_.Mg("ID_TOKEN")};
baI=function(k){return k instanceof Error&&k.cause instanceof fUI&&k.cause.rpcErrorCode!==void 0?!vab.includes(k.cause.rpcErrorCode):!0};
d0I=function(){return _.Iu(Za1,{authuser:""+(_.Mg("SESSION_INDEX")||0)})};
WZ=function(k,E,S,R){S=S===void 0?"MINI_APP_SDK_API_UNSPECIFIED":S;R=R===void 0?"":R;var V=new _.LC;S={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:R,sdkApi:S};k instanceof Error&&(V.message=k.message,V.name=k.name,k.cause instanceof fUI&&k.cause.rpcErrorCode!==void 0&&(S.rpcErrorCode=k.cause.rpcErrorCode));var N;(N=E.onError)==null||N.call(E,{loggingError:V,metadata:S})};
lU1=function(k,E,S,R){switch(k){case "MINI_APP_SOURCE_GAMESNACKS":return new Fw(E,S,R);default:return new sah(E,S,R)}};
Ms1=function(k){switch(k){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"}};
qeA=function(k){switch(k){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"}};
znl=function(k){switch(k){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"}};
QaC=function(){return Math.floor(Math.random()*4)+1};
Oal=function(k,E,S,R){k=_.n(Object.entries(k));for(var V=k.next(),N={};!V.done;N={message$jscomp$996:void 0},V=k.next()){var h=_.n(V.value);V=h.next().value;h=h.next().value;N.message$jscomp$996=h;E.push(setTimeout(function(J){return function(){R(!1);S(J.message$jscomp$996.text)}}(N),N.message$jscomp$996.delayMs));
Number(V)>0&&E.push(setTimeout(function(){R(!0)},N.message$jscomp$996.delayMs-400))}};
G8m=function(k,E){var S=S===void 0?vdI:S;_.Y("mweb_fix_monitor_visibility_after_render")?k&&YX(function(){dEb(k,E,S)}):YX(function(){dEb(k,E,S)})};
CFe=function(k,E){var S=document.createElement("ytd-engagement-panel-section-list-renderer");S.data=k;if(E==null?0:E.isPersistentPanel)S.isPersistentPanel=!0;return S};
Rlh=function(k){kSt||(kSt=ECC(new _.r8(1,void 0,void 0,SuC),0));var E=kSt.format(Math.floor(k));E=Kr==="be"||Kr==="bg"||Kr==="es"||Kr==="et"||Kr==="hu"||Kr==="ka"||Kr==="lv"||Kr==="pl"||Kr==="pt-PT"||Kr==="sq"?E.replace(new RegExp("^(\\d)"+SuC.GROUP_SEP.replace(".","\\.")+"(\\d+("+SuC.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):E;return k>=1E3&&k<=9999&&E[1]==="."&&(Kr==="sl"||Kr==="it")?E.replace(".",""):E};
VAI=function(k,E){ndi("ytd-button-renderer",{data:k,className:E?E.className:"",overrides:E==null?void 0:E.buttonOverrides},G2R)};
nCj=function(k,E,S,R){if(k)return R=R||k.likeStatus,E?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="LIKE",isDisabled:!k.likesAllowed,defaultIcon:{iconType:S},defaultText:R==="LIKE"?k.likeCountWithUnlikeText:k.likeCountText,toggledText:R==="LIKE"?k.likeCountText:k.likeCountWithLikeText,defaultNavigationEndpoint:Nfh(k,"LIKE"),defaultServiceEndpoint:IPb(k,"LIKE"),toggledServiceEndpoint:IPb(k,"INDIFFERENT"),defaultTooltip:_.$n(k.likeCountTooltipText),toggledTooltip:_.$n(k.likeCountTooltipText),
targetId:k.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:R==="DISLIKE",isDisabled:!k.likesAllowed,defaultIcon:{iconType:S},defaultText:R==="DISLIKE"?k.dislikeCountWithUndislikeText:k.dislikeCountText,toggledText:R==="DISLIKE"?k.dislikeCountText:k.dislikeCountWithDislikeText,defaultNavigationEndpoint:Nfh(k,"DISLIKE"),defaultServiceEndpoint:IPb(k,"DISLIKE"),toggledServiceEndpoint:IPb(k,"INDIFFERENT"),defaultTooltip:_.$n(k.dislikeCountTooltipText),
toggledTooltip:_.$n(k.dislikeCountTooltipText)}};
Nfh=function(k,E){if(E==="LIKE")return k.likeCommand;if(E==="DISLIKE")return k.dislikeNavigationEndpoint};
IPb=function(k,E){var S;return(S=k.serviceEndpoints)==null?void 0:S.find(function(R){var V;return((V=_.W(R,_.yx))==null?void 0:V.status)===E})};
_.Jk1=function(k,E,S){return window.spf&&!_.Y("web_disable_spfjs_client")?ieA(k,E,S):hlh(k,E)};
ieA=function(k,E,S){var R=null,V=(new _.yF(function(N,h){var J={};if(E){J.method=E.method;var m=E.postParams||{};wEi(k,E)&&(m[_.Mg("XSRF_FIELD_NAME")]=_.Mg("XSRF_TOKEN"));J.postData=_.Ug(m);E.type&&(J.type=E.type);m=E.headers}J.headers=cX1(k,m);_.Y("debug_forward_web_query_parameters")&&(k=_.tdt(k,window.location.search));J.experimental_headers=J.headers;J.onError=function(a){a.err&&a.xhr&&(a.err.params={url:a.xhr.responseURL,response:a.xhr.responseText.substr(0,64)});h(a.err)};
J.onPartDone=function(a){S&&S.call(null,a.part)};
J.onDone=function(a){var T=ckt(a.response,"xsrf_token");h3(window.location.href,k)&&T&&_.l$("XSRF_TOKEN",T);if(T=ckt(a.response,"service_worker_killswitch"))_.l$("SERVICE_WORKER_KILLSWITCH",T),FDI();N(a.response)};
R=spf.request(k,J)})).then(mQI);
V.thenCatch(function(N){var h=N instanceof _.o3,J=N&&N.hasOwnProperty("params")&&N.params.response?N.params.response:"";N instanceof Error&&(J?h?Ehi(N):J===')]}\'\n{"reload":"now"}'?Ehi(N):(elt(N,k,J),aPh(N,J)?_.dg(N):_.bM(N)):Ehi(N));R&&R.abort()});
return V};
mQI=function(k){if(k.type==="multipart"){var E=k.timing;k=k.parts.reduce(function(S,R){Object.assign(S,R);return S},{});
k.timing=k.timing||{};Object.assign(k.timing,E);k.type="reduced"}return k};
hlh=function(k,E){E=E===void 0?{}:E;var S=null,R=new _.yF(function(V,N){E.onFinish=function(h){if(h.readyState===XMLHttpRequest.DONE)if(h.status===200){if(h.responseType!=="json"){var J=h.response;J.substring(0,5)===")]}'\n"&&(J=J.substring(5));try{var m=JSON.parse(J)}catch(a){m=a}}else m=h.response;m instanceof Error?N(m):(J=ckt(m,"xsrf_token"),h3(window.location.href,k)&&J&&_.l$("XSRF_TOKEN",J),h=h.responseURL,window.performance&&window.performance.getEntriesByName?(J=window.performance.getEntriesByName(h).pop())?
h={responseStart:(0,_.ev)()-(J.responseEnd-J.responseStart)}:(Math.random()<.01&&(J=Error("li"),J.params=h,_.dg(J)),h={responseStart:-1}):h={responseStart:0},m.timing=m.timing||{},Object.assign(m.timing,h),V(m))}else N(Error("ki`"+h.status))};
(S=_.gO(k,E))||N(Error("ki`"+S.status))});
R.thenCatch(function(V){V instanceof Error&&(elt(V,k),aPh(V)&&(V.level="WARNING"))});
_.Y("cancel_pending_navs")&&R.thenCatch(function(){S.abort()});
return R};
ckt=function(k,E){var S=k[E],R=k.parts;k.type==="multipart"&&R&&(S=(k=R.find(function(V){return E in V}))&&k[E]);
return S};
elt=function(k,E,S){var R=k.message||"";E={original:R,url:E};if(S)if(R=R.match(/position:?\s*(\d+)/)){R=R&&Number(R[1])?Number(R[1]):0;var V=Math.max(R-25,0);E.position=R;E.response=S.substring(V,R+25)}else E.response=S.substring(0,50);_.sc(k,E);try{k.message="JSON parse error"}catch(N){}};
aPh=function(k,E){k=k.message||"";k=!!(k.indexOf("<")>=0||k.indexOf("end of ")>=0||k.indexOf("Unterminated string")>=0||k.indexOf("Unexpected EOF"));if(!k&&E)for(var S=E.length,R=!1,V=0;V<S;V++)if(R&&E[V]==="\\")V++;else if(E[V]==='"')R=!R;else if(E[V]==="<"&&!R){k=!0;break}return k};
tA1=function(){return document.documentElement.hasAttribute("dark")};
_.Tf1=function(k,E){if(k!=="GFEEDBACK"&&k!=="GUIDED_HELP")_.O4(Error("mi`"+k));else{var S=_.en().resolve(_.mz(_.ZD));if(S&&(S=S.getCurrentPage())&&S.getServiceTrackingParams&&(S=S.getServiceTrackingParams()))for(var R=0,V;V=S[R++];)if(V.service===k){if(k=V.params)for(S=0;R=k[S++];)E[R.key]=R.value;break}}};
_.wQ1=function(k){var E=_.s3();E&&(E=E.getPlayer())&&(E.pauseVideo(),k.playback_id=E.getVideoData().cpn,k.eid=E.getVideoData().eventId,Object.assign(k,E.getFeedbackProductData()))};
Pmh=function(){var k={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Mg("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(k.enableAnonymousFeedback=!0);_.Mg("SESSION_INDEX")&&(k.authuser=String(_.Mg("SESSION_INDEX")));_.Y("enable_pageid_for_feedback")&&_.Mg("DELEGATED_SESSION_ID")&&(k.pageId=String(_.Mg("DELEGATED_SESSION_ID")));return k};
_.Xw=function(k){_.Y("enable_ypc_spinners")&&_.qe(k,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},k])};
_.gE=function(k){_.Y("enable_ypc_spinners")&&_.qe(k,"yt-close-popup-action",["yt-loading-renderer"])};
Bfb=function(k){return new Promise(function(E,S){_.HM({verifyCommand:{recaptchaToken:k.recaptchaResponse}},{commandController:{onSuccess:function(R,V){V||S("ChallengeService did not return a response.");var N;E({challengeCompleted:(N=V.verified)!=null?N:!1})},
onServerError:function(R,V){S(V)}}})})};
Yum=function(k,E,S,R){E({recaptchaResponse:R}).then(function(V){V.challengeCompleted?_.rO()?(S(3),_.en().resolve(_.t3).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:k}})):S(2):S(4)},function(){S(4)})};
FUt=function(k,E,S){_.KI(_.BH(WUe,_.Mg("HL")),function(){var R;(R=window.grecaptcha)==null||R.ready(function(){var V=window.grecaptcha;V?(S(V.render(k,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:Yum.bind(null,k,Bfb,E)})),E(1)):E(4)})})};
yk1=function(k,E){return function(){switch(E()){case 0:return k().captchaLoadingMessage;case 1:return k().challengeReason;case 3:return k().captchaSuccessfulMessage;case 2:return k().captchaCookieSetFailureMessage;case 4:return k().captchaFailedMessage;default:return k().challengeReason}}()};
_.Ui=function(){if(!oCb){var k=document.querySelector("#player.skeleton");k&&(_.Ua(k),oCb=!0)}};
_.gCh=function(){return XQC=FBh()};
KU1=function(){return _.c(function(k){return UQA!==void 0?k.return():k.yield(Heh(),0)})};
Heh=function(){return _.c(function(k){if(k.nextAddress==1)return k.yield(o8C(),2);XQC=k.yieldResult;UQA=_.ZJ.addLowPriorityJob(Heh,5E3);_.KR(k)})};
LU1=function(k){var E=E===void 0?pQt:E;var S,R,V=(S=k.responseContext)==null?void 0:(R=S.mainAppWebResponseContext)==null?void 0:R.trackingParam;if(!V){E.increment("MISSING");var N,h,J,m,a,T;_.dg(new _.LC("282054944_a",{abZ:!!((N=k.responseContext)==null?0:(h=N.mainAppWebResponseContext)==null?0:h.loggedOut),xyO:((J=k.responseContext)==null?void 0:J.mainAppWebResponseContext)===void 0,cRM:k.responseContext===void 0,cp:(m=k.playabilityStatus)==null?void 0:m.contextParams,ueg:(((a=k.streamingData)==
null?void 0:a.formats)||[]).length>0,laZ:(((T=k.streamingData)==null?void 0:T.adaptiveFormats)||[]).length>0,os:!!k.offlineState,cotn:k.cotn}));return 2}S="";try{S=Aki(V)}catch(B){return E.increment("C_ERROR"),_.bM(B),2}try{var w=_.rkt(S);var P=uzC(w)}catch(B){return E.increment("P_ERROR"),_.bM(B),2}P=_.cy(P,xQj,1,_.mb());V=[];P=_.n(P);for(w=P.next();!w.done;w=P.next())R=w.value,w=R.getPath(),S=(0,_.fO.getValueByKeys)(k,w.split(".")),S=String(S===void 0||S===null?"":S),R=R.getValue()||"",N=/[+\-\/_]/g,
S.replace(N,"")!==R.replace(N,"")&&(E.increment("MISMATCH"),_.Y("ab_mis_log_err")&&(S=new _.LC("282054944_p",{k8A:w,g:String(S),e:String(R)}),_.bM(S)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(w)||(w.match(/enforcementMessageViewModel/i)?V.push(3):V.push(2)));if(V.length>0)return Math.max.apply(Math,_.$e(V));E.increment("SUCCESS");return 1};
$QC=function(k){var E=new HZ;if(k.interpreterJavascript){var S=_.Mki(k.interpreterJavascript);S=Ve(S).toString();var R=new jGe;_.uh(R,6,S);_.Xo(E,1,R,rY)}else k.interpreterUrl&&(S=_.dv(k.interpreterUrl),S=_.AJ(S).toString(),R=new _.DQi,_.uh(R,4,S),_.Xo(E,2,R,rY));k.interpreterHash&&_.K9(E,3,k.interpreterHash,rY);k.program&&_.K9(E,4,k.program,rY);k.globalName&&_.K9(E,5,k.globalName,rY);k.clientExperimentsStateBlob&&_.K9(E,7,k.clientExperimentsStateBlob,rY);return E};
p9=function(k){var E={};k=_.n(k.split("&"));for(var S=k.next();!S.done;S=k.next())S=S.value.split("="),S.length===2&&(E[S[0]]=S[1]);return E};
fPi=function(k){return Number(k.t)||7200};
dgj=function(){if(_.Y("bg_st_hr"))return"havuokmhhs-0";var k,E=((k=globalThis.performance)==null?void 0:k.timeOrigin)||0;return"havuokmhhs-"+Math.floor(E)};
vCI=function(){return new Promise(function(k){var E=window;E.ntpevasrs!==void 0?k(new AQ(E.ntpevasrs)):(E.ntpqfbel===void 0&&(E.ntpqfbel=[]),E.ntpqfbel.push(function(S){k(new AQ(S))}))})};
be1=function(k){var E=k.hQn.bind(k);_.J6("yt.aba.att",E);k=k.jiY.bind(k);_.J6("yt.aba.att2",k)};
dQe=function(k){switch(_.Xu(k.input)){case _.bg(Zej):var E={};return E.encryptedVideoId=k.innerTubeRequest.externalVideoId,E}return{}};
MAi=function(k){switch(_.Xu(k.input)){case _.bg(Zej):if(_.Y("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.bg(sGh):if(_.Y("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.bg(rE):if(_.Y("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&k.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.bg(lP1):var E,S;if(_.Y("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((S=_.W((E=k.config)==null?void 0:E.command,LaC))==null?0:S.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.zl1=function(k){var E;if(k.playlistVideoRenderer&&((E=k.playlistVideoRenderer)==null?0:E.engagementBar))return qut(k.playlistVideoRenderer.engagementBar);if(_.W(k,ur)){var S;if(k=(S=_.W(k,ur))==null?void 0:S.engagementBar)return qut(k)}return""};
qut=function(k){if(!k)return"";k=_.W(k,_.QGe);if(k==null||!k.actions)return"";k=_.n(k.actions);for(k=k.next();!k.done;k=k.next()){k=_.W(k.value,_.OeA);var E=void 0;if((E=k)==null||!E.itemId)break;return k.itemId}return""};
_.GSj=function(k){var E;if(k.playlistVideoRenderer&&((E=k.playlistVideoRenderer)==null?0:E.videoId))return k.playlistVideoRenderer.videoId;if(_.W(k,ur)){var S,R;if(k=(S=_.W(k,ur))==null?void 0:(R=S.playlistItemData)==null?void 0:R.videoId)return k}return""};
_.CmA=function(k){var E;if(k.playlistVideoRenderer&&((E=k.playlistVideoRenderer)==null?0:E.voteCount))return k.playlistVideoRenderer.voteCount;if(_.W(k,ur)){var S,R;if(k=(S=_.W(k,ur))==null?void 0:(R=S.playlistItemData)==null?void 0:R.voteCount)return k}return 0};
_.xz=function(k,E){return _.Ep(k.entities,"flowStateEntity",E)};
Eie=function(k,E,S,R){var V=void 0;k=_.n(k[E.iconName]||[]);for(var N=k.next();!N.done;N=k.next()){N=N.value;var h=E.iconSize;var J=E.iconStyle;h=!h||h===N[2];var m=k5e[N[0]];R&&R!==N[1]||!h||J&&J!==m?J=!1:V?(J=k5e[N[0]],J=!!E.iconStyle||J==="youtube_outline",h=V.version<=N[1],J=(!!E.iconSize||N[2]===24)&&J&&h):J=!0;J&&(V={name:E.iconName,style:k5e[N[0]],size:N[2],version:N[1],allowMirroring:!!N[3],url:S(E.iconName,N)})}return V};
Sy1=function(k,E,S,R){return k+(""+k5e[S[0]]+((R===void 0?0:R)?"_experimental":"")+"/"+E+"/v"+S[1]+"/")+(S[2]+"px.svg")};
RFi=function(k){return _.Mg("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.Mg("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":k};
VUI=function(k,E){return Sy1("https://fonts.gstatic.com/s/i/",k,E)};
NsI=function(k,E){return Sy1("https://fonts.gstatic.com/s/i/",k,E,!0)};
IhI=function(k,E){return Sy1("https://www.gstatic.com/youtube/img/icons/web/",k,E)};
iBI=function(k){var E=k.enabled;var S=k.itemPlaybackModel;var R=k.thumbnailElRef;var V=k.containerElRef;var N=k.options;var h;_.vX(function(){var J=V==null?void 0:V.value;var m,a=(m=R())==null?void 0:m.value;m=S();var T=N();if(E&&m&&J&&a&&(T==null?0:T.thumbnail)){var w={data:m,hostElement:J},P,B,F=[].concat(_.$e((P=T.thumbnailOverlays)!=null?P:[]),_.$e((B=m.overlays)!=null?B:[]));B=m.itemPlaybackOptions;P=(B==null?void 0:B.enableRoundedPlayer)||T.enableRounding;B=B==null?void 0:B.disableTimeStatusOverlay;
var K,r;J={mediaRenderer:w,lockupElement:J,thumbnailElement:a,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Uk((K=m.inlinePlayerData)==null?void 0:K.onVisible),navigationEndpoint:_.Uk((r=m.inlinePlayerData)==null?void 0:r.onSelect),thumbnail:T.thumbnail,thumbnailOverlays:F,accessibilityText:T.accessibilityText||""},thumbnailSize:T.thumbnailSize,enableRounding:P,mouseleaveCallback:T.mouseleaveCallback,hideTimeDisplay:B}}}else J=void 0;if(K=J){var x;(x=h)==null||L9(x);h=oE(K);var L,q;
((L=S())==null?0:(q=L.inlinePlayerData)==null?0:q.forceImpAutoplay)&&nil(h)}},"BLiQOd");
_.bI(function(){var J;(J=h)==null||L9(J)})};
hFt=function(k){k=atob(k);for(var E=[],S=0;S<k.length;S++)E.push(k.charCodeAt(S));return new Blob([new Uint8Array(E)],{type:"image/png"})};
cmI=function(k,E,S,R){R=R===void 0?"INSERTION_POSITION_UNSPECIFIED":R;return k({targetId:E},function(V){var N,h=(N=V.contents)!=null?N:[];N=S!=null?S:[];var J=JmC(h);switch(R){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},V,{contents:[].concat(_.$e(h.slice(0,J)),_.$e(N),_.$e(h.slice(J+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},V,{contents:[].concat(_.$e(N),_.$e(h))});case "INSERTION_POSITION_LAST":return Object.assign({},V,{contents:[].concat(_.$e(h),_.$e(N))});
default:return V}})};
eFh=function(k,E,S,R,V){V=V===void 0?"RELATIVE_INSERTION_POSITION_AFTER":V;return k({targetId:E},function(N){var h,J=(h=N.contents)!=null?h:[];h=mvt(J,S);if(h<0)return N;h=V==="RELATIVE_INSERTION_POSITION_BEFORE"?h:h+1;return Object.assign({},N,{contents:[].concat(_.$e(J.slice(0,h)),_.$e(R),_.$e(J.slice(h)))})})};
JmC=function(k){var E=k.findIndex(function(S){return _.W(S,_.jj)});
return E>=0?E:k.length};
mvt=function(k,E){return k.findIndex(function(S){a:{S=_.n(Object.values(S));for(var R=S.next();!R.done;R=S.next())if((R=R.value)&&R.targetId){S=R.targetId;break a}S=""}return S===E})};
tUm=function(k,E,S){return k({targetId:E},function(R){var V,N=(V=R.contents)!=null?V:[];return Object.assign({},R,{contents:ahb(N,S)})})};
ahb=function(k,E){return k.filter(function(S){var R=E.includes;a:{S=_.n(Object.values(S));for(var V=S.next();!V.done;V=S.next())if((V=V.value)&&V.targetId){S=V.targetId;break a}S=""}return!R.call(E,S||"")})};
_.Tsl=function(k,E){return{engagementPanelSectionListRenderer:{panelIdentifier:k,identifier:E,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
wRi=function(k,E){k=k.getAvailableAudioTracks();if(k.length)return k==null?void 0:k.find(function(S){var R;return(S==null?void 0:(R=S.getLanguageInfo())==null?void 0:R.getId())===E})};
_.Bsl=function(k){var E,S=(E=k.getOption("captions","tracklist",{includeAsr:!0}))!=null?E:[];return S=P7j(S,k)};
YyA=function(k){return k.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
P7j=function(k,E){E=YyA(E);if(E==null||!E.length)return k;var S=E.filter(function(h){return h});
E=k.filter(function(h){return h.languageCode.startsWith("en")});
S=_.n(S);for(var R=S.next();!R.done;R=S.next())if(R=R.value,E.length){var V=E[0],N=Object.assign({},V);V.languageCode!==R.languageCode&&(N.displayName=V.languageName+" >> "+R.languageName,N.translationLanguage=R,k.push(N))}return k};
Wnj=function(k,E,S){k=_.Bsl(k);if(k.length)return S?k.find(function(R){if(typeof(R==null?void 0:R.translationLanguage)==="object"){var V;return((V=R.translationLanguage)==null?void 0:V.languageCode)===E}return!1}):k==null?void 0:k.find(function(R){return R.languageCode===E})};
Fne=function(k){return k.getOption("captions","tracklist",{includeAsr:!0})};
ymA=function(k){var E=k.getAvailableAudioTracks();if(E!=null&&E.length){var S=k.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.$e(E.map(function(R){return{listItemViewModel:{title:{content:R.getLanguageInfo().getName()},isSelected:R.getLanguageInfo().getId()===(S==null?void 0:S.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:R.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
oiC=function(k){return k.getOption("captions","tracklist",{includeAsr:!0})};
XRI=function(k){var E=oiC(k);if(E==null?0:E.length)return E;k.loadModule("captions");return oiC(k)};
gil=function(k){var E=k.getOption("captions","track");if(E)return E;k.loadModule("captions");return k.getOption("captions","track")};
HBj=function(k){var E=XRI(k);if(E!=null&&E.length){var S=gil(k),R;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Vi("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(S==null?0:S.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.$e(E.map(function(V){return{listItemViewModel:{title:{content:V.displayName},
isSelected:V.displayName===(S==null?void 0:S.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:V.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Vi("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!S.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!S.translationLanguage&&{selectionText:{content:(S==null?void 0:(R=S.translationLanguage)==null?void 0:R.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Uvb(k)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
Uvb=function(k){var E=YyA(k);if(E==null||!E.length)throw Error("Li");var S=gil(k);k=E.filter(function(R){return!R.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.$e(k.map(function(R){var V;return{listItemViewModel:{title:{content:R.languageName},isSelected:R.languageName===(S==null?void 0:(V=S.translationLanguage)==null?void 0:V.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:R.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
rmi=function(k){return new Promise(function(E,S){if(k===void 0)_.bM(Error("Pi"),"ERROR"),S(Error("Pi"));else{S=new _.Knl;var R=_.pRl();S=S.init();var V=_.Aml(_.Mg("YPC_MB_URL"),!0);Promise.all([S,V]).then(function(){var N=_.DI.payments.business.integration.ClientTokenFactory.createClientToken(k,R);E(N)})}})};
LnA=function(k,E,S,R,V,N,h){var J=_.LU();S=S.replace(/-/g,"+").replace(/_/g,"/");var m=_.nz().get("hl"),a=_.$z(_.fc),T=E==null?void 0:E.element;T&&_.Xw(T);uCI(E,!0);_.xvh(a,S,J.resolve,function(){T&&_.gE(T)},function(w){T&&_.gE(T);
J.reject(w)},m,R?function(w){R&&_.xv(k,R,{backend_analytics:w})}:void 0,J.resolve,V,N,h);
return J.promise};
uCI=function(k,E){!(k=k==null?void 0:k.element)||k.tagName!=="YT-BUTTON-RENDERER"&&k.tagName!=="YTD-BUTTON-RENDERER"||(k.disabled=E)};
jwt=function(){var k=_.Vi("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.lD(k),actionButton:{buttonRenderer:z4j()}}},popupType:"TOAST"}};
Dvh=function(){var k=_.Vi("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.lD(k),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
$vR=function(k){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:k}]}}};
f9=function(k,E,S,R){var V;return _.c(function(N){if(N.nextAddress==1)return _.F5(N,2),N.yield(k,4);if(N.nextAddress!=2)return(V=_.mC(E.getState().entities).length>0)?N.return({title:_.lD(_.Vi("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.lD(_.Vi("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:qR1()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
N.return(QB1(S,R));_.UY(N);return N.return(QB1(S,R))})};
fhe=function(k,E){return E?E==="PPSV"||MM1(k,E):!1};
vi1=function(k){k.responseContext||(k.responseContext={});k.responseContext.maxAgeSeconds=0;return k};
br=function(k){var E;return _.c(function(S){return S.nextAddress==1?S.yield(bBC(k,"service:topbar:fallback"),2):(E=S.yieldResult)&&_.vZ(E)?S.return(vi1(_.vZ(E))):S.return()})};
ZBt=function(k){var E;return _.c(function(S){return S.nextAddress==1?S.yield(bBC(k,"service:downloads_settings:fallback"),2):(E=S.yieldResult)&&_.vZ(E)?S.return(E):S.return()})};
bBC=function(k,E){var S;return _.c(function(R){if(R.nextAddress==1)return k?R.yield(k.get(E),2):R.return();S=R.yieldResult;return!S||!_.vZ(S)||!isNaN(Number(S.data.expireTimestampMs))&&S.isExpired()?R.return():R.return(S)})};
dvA=function(k){var E=_.en().resolve(ZI).getState().entities;return k.playlistId?fhe(E,k.playlistId):!1};
swA=function(k,E){var S;if(E==null?0:(S=E.requestTemplate)==null?0:S.panelId)k.panelId=E.requestTemplate.panelId;var R;if(E==null?0:(R=E.requestTemplate)==null?0:R.params)k.params=E.requestTemplate.params};
MUA=function(){if(lh1)return lh1();var k=!_.Y("idb_response_store_auth_killswitch"),E={};lh1=mq("yt-it-response-store",{objectStores:(E.ResponseStore={addedAtVersion:1},E),shared:!k,upgrade:function(S,R){R(1)&&(S=Q6(S,"ResponseStore",{keyPath:["key","clientName"]}),OQ(S,"byExpiration","expireTimestampMs"),OQ(S,"byInterface","clientName"))},
version:1});return lh1()};
qyt=function(k){return _.V6(MUA(),k)};
QwA=function(k,E){var S;return _.c(function(R){return R.nextAddress==1?R.yield(_.cV(),2):(S=R.yieldResult)?R.return(new zFh(k,E,S)):R.return()})};
OBi=function(k){var E=Object.keys(k)[0];if(E)return k.screenExit&&(E=E+";"+k.screenExit.screen),E};
G5m=function(k){var E=new Map;k=_.n(k);for(var S=k.next();!S.done;S=k.next())S=S.value,S!=null&&(E.has(S.taskType)||E.set(S.taskType,[]),E.get(S.taskType).push(S));return E};
C7i=function(k){k=[].concat(_.$e(k)).sort(function(S,R){return S-R});
var E=Math.floor(k.length/2);return k.length%2?k[E]:(k[E-1]+k[E])/2};
SSm=function(k,E){k=k===void 0?fDj:k;E=E===void 0?{}:E;_.J6("yt.logging.errors.log",_.bM);DJj();kqi(sZC(),E);window.onerror=k;EYR=$Jh;window.addEventListener("unhandledrejection",function(S){if(S.reason instanceof Error){var R=S.reason;_.sc(R,{source:"unhandledrejection"});R.name==="AbortError"&&(R.level="WARNING")}$Jh(S.reason);S.preventDefault()})};
_.R0A=function(k){var E,S,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z,kb,TI,a1,Ah,th,He,ve,Xm,U5,l4,gY,IC,md,Kj,Lj,H0,TG,iC;return _.c(function(hC){if(hC.nextAddress==1)return hC.yield(_.nr(k,{mode:"readonly",enableRetries:!0},function(Y2){return ig(Y2,"playbackData").then(function(It){var Wz=It.map(function(tC){return tC.transfer}).filter(function(tC){return!!tC}),VP=It.map(function(tC){return tC.offlineVideoPolicy}).filter(function(tC){return!!tC}),LR=It.filter(function(tC){return!!tC.key}).map(function(tC){return _.kn(_.Ov(tC.key).entityId,
"downloadStatusEntity")});
Wz=ig(Y2,"transfer",Wz);VP=ig(Y2,"offlineVideoPolicy",VP);LR=ig(Y2,"downloadStatusEntity",LR);var Mp=Wz.then(function(tC){tC=tC.reduce(function(aC,Rt){(Rt==null?0:Rt.offlineVideoStreams)&&aC.push.apply(aC,_.$e(Rt.offlineVideoStreams));return aC},[]).filter(function(aC){return!!aC});
return ig(Y2,"offlineVideoStreams",tC)});
return Og.all([Wz,VP,Mp,LR]).then(function(tC){var aC=_.n(tC);tC=aC.next().value;var Rt=aC.next().value;var zI=aC.next().value;aC=aC.next().value;return[It,tC,Rt,zI,aC]})})}),2);
if(hC.nextAddress!=3)return E=hC.yieldResult,hC.yield(_.nr(k,{mode:"readonly",enableRetries:!0},function(Y2){return ig(Y2,"mainDownloadsListEntity").then(function(It){var Wz,VP;return(VP=(Wz=It[0])==null?void 0:Wz.downloads)!=null?VP:[]})}),3);
S=hC.yieldResult;R=_.n(E);V=R.next().value;N=R.next().value;h=R.next().value;J=R.next().value;m=R.next().value;a=V;T=N;w=h;P=J;B=m;F={};K={};r={};x={};L={};q=[];M=_.n(T);for(d=M.next();!d.done;d=M.next())(z=d.value)&&(F[z.key]=z);kb=_.n(w);for(TI=kb.next();!TI.done;TI=kb.next())(a1=TI.value)&&(K[a1.key]=a1);Ah=_.n(B);for(th=Ah.next();!th.done;th=Ah.next())(He=th.value)&&(r[He.key]=He);ve=_.n(P);for(Xm=ve.next();!Xm.done;Xm=ve.next())(U5=Xm.value)&&(x[U5.key]=U5);l4=_.n(S);for(gY=l4.next();!gY.done;gY=
l4.next())IC=gY.value,md=void 0,L[(md=IC.videoItem)!=null?md:""]=!0,IC.videoItem&&(Lj=Kj=void 0,H0=(Lj=(Kj=_.Ov(IC.videoItem))==null?void 0:Kj.entityId)!=null?Lj:"",q.push({externalVideoId:H0}));TG=a.filter(function(Y2){if(!Y2||!Y2.key||!Y2.offlineVideoPolicy)return!1;Y2=_.Ov(Y2.key).entityId;Y2=_.kn(Y2,"downloadStatusEntity");var It;return!(Y2&&((It=r[Y2])==null?void 0:It.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
iC=TG.map(function(Y2){var It=F[Y2.transfer],Wz=[];if(It==null?0:It.offlineVideoStreams)for(var VP=_.n(It.offlineVideoStreams),LR=VP.next();!LR.done;LR=VP.next())(LR=x[LR.value])&&Wz.push(LR);VP=K[Y2.offlineVideoPolicy];LR=L;var Mp=Y2==null?void 0:Y2.playerResponseTimestamp,tC=_.Ov(VP.key).entityId;Y2=_.kn(tC,"mainVideoEntity");if(VP.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var aC="OFFLINE_VIDEO_STATE_DISABLED";VP.expirationTimestamp&&Number(VP.expirationTimestamp)<Date.now()/1E3&&(aC="OFFLINE_VIDEO_STATE_EXPIRED")}else if(VP.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")aC="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(It==null?void 0:It.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":aC="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":aC="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":aC="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":aC="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":aC="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":aC="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:aC="OFFLINE_VIDEO_STATE_UNKNOWN"}if(aC==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(It==null?void 0:It.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":aC="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":aC="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":aC=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}tC={id:tC,videoState:aC};if(It==null?0:It.cotn)tC.cotn=It.cotn;if(It==null?0:It.maximumDownloadQuality)tC.selectedVideoQuality=It==null?void 0:It.maximumDownloadQuality;if(It==null?0:It.lastProgressTimeMs)tC.lastProgressTimeMs=It.lastProgressTimeMs;Mp&&(tC.playerResponseSavedTimeMs=String(Number(Mp)*1E3));It=String;Mp=0;Wz=_.n(Wz);for(aC=Wz.next();!aC.done;aC=Wz.next())if(aC=aC.value,aC.streamsProgress){aC=_.n(aC.streamsProgress);for(var Rt=aC.next();!Rt.done;Rt=
aC.next()){var zI=void 0;Mp+=Number((zI=Rt.value.numBytesDownloaded)!=null?zI:0)}}tC.downloadedBytes=It(Mp);tC.selectedOfflineMode=LR[Y2]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";VP.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(tC.offlinePlaybackDisabledReason=VP.offlinePlaybackDisabledReason);return tC});
return hC.return({offlineVideos:iC,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:q}}})})};
VBt=function(){var k;return _.c(function(E){return E.nextAddress==1?E.yield(_.VV(),2):(k=E.yieldResult)?E.return(_.R0A(k)):E.return({state:"PES Unavailable"})})};
nY1=function(){var k,E,S,R;return _.c(function(V){if(V.nextAddress==1)return V.yield(_.VV(),2);if(V.nextAddress!=3)return(k=V.yieldResult)?V.yield(NDI(k),3):V.return({state:"PES Unavailable"});E=V.yieldResult;S={};R=E.reduce(function(N,h){N[h.key]=h;return N},S);
return V.return(IzI(R))})};
IzI=function(k){for(var E={},S=[],R=_.n(Object.keys(k)),V=R.next();!V.done;V=R.next()){var N=V.value;V=k[N];var h=void 0;if(((h=V)==null?void 0:h.entityType)==="mainVideoEntity"){delete k[N];var J=V.data;V={};if(J){var m=void 0;h=(m=J.videoId)!=null?m:"vid-"+N;N=k;V.video=J;delete V.video.formattedDescription;delete V.video.thumbnail;J.owner&&(m=N[J.owner],m==null?0:m.data)&&(delete N[m.key],V.video.owner=m.data,delete V.video.owner.avatar);if(J=J.downloadState)if(m=N[J],m==null?0:m.data)if(delete N[J],
J=m.data.playbackData)if(m=N[J],m!=null&&m.data){delete N[J];J=m.data;delete J.playerResponseJson;V.playbackData=J;if(J.transfer&&(m=N[J.transfer],m==null?0:m.data)){delete N[m.key];var a=m.data;V.transfer=a;m=[];a=_.n(a.offlineVideoStreams||[]);for(var T=a.next();!T.done;T=a.next())if(T=N[T.value])delete N[T.key],m.push(T.data);m&&(V.streams=m)}(J=J.offlineVideoPolicy)&&(J=N[J])&&J.data&&(delete N[J.key],V.offlineVideoPolicy=J.data)}E[h]=V}}else V&&V.entityType==="offlineOrchestrationActionWrapperEntity"&&
V.data&&(delete k[V.key],h=V.data,N=void 0,S.push({id:h.rootActionId,type:((N=h.actionProto)==null?void 0:N.actionType)||"",entity:V}))}E.wrapperEntities=S;Object.keys(k).length>0&&(E.unknownKeys=k);return E};
inj=function(){var k,E,S,R,V,N,h,J,m;return _.c(function(a){if(a.nextAddress==1)return k=(new _.qG("")).hasLocalStorage(),R=!!((E=_.Vt.crypto)==null?0:(S=E.subtle)==null?0:S.importKey),V=!!_.Vt.BroadcastChannel,N=!!_.Vt.navigator.locks,a.yield(T8m(),2);h=a.yieldResult;J=k&&R&&V&&N&&h;m={isSupported:J};if(J)return a.return(m);m.missingBrowserFeatures=[];h||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");k||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
R||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");V||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");N||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return a.return(m)})};
h0e=function(){var k;return!((k=dE?dE:null)==null||!k.window)};
_.cMR=function(k){if(_.Kl()&&_.FIR("Chromium")>=120){var E=_.JMb().mediaSession;try{E.setActionHandler("enterpictureinpicture",function(){k()})}catch(S){}}};
mR1=function(k){for(var E=[],S=_.n(document.styleSheets),R=S.next(),V={};!R.done;V={node$jscomp$769:void 0},R=S.next())V.node$jscomp$769=R.value.ownerNode,V.node$jscomp$769&&(V.node$jscomp$769 instanceof HTMLStyleElement||V.node$jscomp$769 instanceof HTMLLinkElement)&&E.push(new Promise(function(N){return function(h){var J=N.node$jscomp$769.cloneNode(!0);J.onload=function(){h()};
J.onerror=function(){_.dg(Error("rj"));h()};
k.document.head.appendChild(J)}}(V)));
return Promise.all(E)};
F9h=function(k){var E=[_.To(e01),_.To(az1),_.To(tB1)];TDR(window.document.documentElement,k.document.documentElement,[_.To(wbI),_.To(PHt),_.To(BDt),_.To(YSI),_.To(W9e)]);TDR(window.document.body,k.document.body,E)};
TDR=function(k,E,S){k=_.n(k.attributes);for(var R=k.next();!R.done;R=k.next())if(R=R.value)try{_.hE(S,E,R.name,R.value)}catch(V){}};
oYi=function(k,E){k=new _.si(k.document.documentElement);k.start(yMI,E);return k};
Xbm=function(k){var E=k.document.documentElement;E.addEventListener("click",function(S){P8j(E,S)});
E.addEventListener("touchstart",function(S){yAR(S)});
E.addEventListener("mousedown",function(S){yAR(S)})};
URe=function(k,E,S,R){R=R===void 0?!1:R;E=new gYe(E||k,S||k);return{x:k.x+((R===void 0?0:R)?E.lengthX*-1:E.lengthX)*.2,y:k.y+((R===void 0?0:R)?E.lengthY*-1:E.lengthY)*.2}};
Hn1=function(k){if(!k)return!1;var E=k.status==="OK"||k.status==="LIVE_STREAM_OFFLINE",S,R,V,N=(V=(S=k.errorScreen)==null?void 0:S.playerLegacyDesktopYpcTrailerRenderer)!=null?V:(R=k.errorScreen)==null?void 0:R.ypcTrailerRenderer;return!!E||!!N};
_.K91=function(k,E){if(!k)return!1;var S,R=(S=k.errorScreen)==null?void 0:S.playerLegacyDesktopYpcOfferRenderer,V;E=!!(E==null?0:(V=E.playerOverlayRenderer)==null?0:V.gatedActionsOverlayRenderer);return!!Hn1(k)||!!R||!!E};
rMR=function(k){return pbi(k,0,"gclid",k.search(AMC))>=0||pbi(k,0,"gad_source",k.search(AMC))>=0};
uBh=function(k){var E=[],S=0;return{clear:function(){S=E.length=0},
push:function(R){E[S]=R;S=(S+1)%k},
iterate:function(){return function V(){var N,h,J,m;return _.lr(V,function(a){switch(a.nextAddress){case 1:_.X5(a,2),N=E.length,h=0;case 4:if(!(h<N)){a.jumpTo(2);break}J=S+h;m=_.Mh;return a.yield(E[J%N],7);case 7:m(a.yieldResult);h++;a.jumpTo(4);break;case 2:_.ob(a),_.gP(a,0)}})}()}}};
xRI=function(k){k.eventsToIgnore||(k.eventsToIgnore=[]);var E=k.eventsToIgnore.map(W81),S=new Set(E),R=uBh(k.bufferSize);return{flush:function(){var V=Array.from(R.iterate());R.clear();V=V.map(function(N){return{name:N.name,timestamp:N.startTime,attributes:N.attributes}});
return JSON.stringify(V)},
onSpanStart:function(V){V.name==="event"&&S.has(V.attributes.type)||R.push(V)}}};
L9C=function(k){k=xRI(k);var E=k.flush;W2j({onSpanStart:k.onSpanStart});QZm.subscribe("handleError",function(S){try{S.params.breadcrumbs=E()}catch(R){_.bM(R,"WARNING")}})};
j5A=function(){YA("web_tracing_action");_.yi("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
DRe=function(){YA("web_tracing_action");_.yi("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
fz1=function(k,E,S){if(E===void 0){$Rh||(DRe(),setInterval(DRe,6E5),$Rh=!0);var R="web_tracing_action"}else R=E;var V,N=((V=k.endTime)!=null?V:k.startTime)-k.startTime,h={};V=k.name;var J=k.startTime;h={webTracing:(h[k.name]=k.attributes,h)};S=_.Ga(DzR)(V,N,J,h,S,R);if(k.children)for(k=_.n(k.children),R=k.next();!R.done;R=k.next())fz1(R.value,E,S)};
vYt=function(k){var E=gom.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(S){S.data&&typeof S.data==="object"&&(S=S.data,S.from==="extension"&&S.app==="yt.telemetry"&&(E("Received message from extension",S),k.onMessage(S)))});
return function(S,R){S={app:"yt.telemetry",from:"app",key:S,payload:R};E("Sending message to extension",S);window.postMessage(S,"*")}};
bnb=function(){var k=k===void 0?3E3:k;var E=vYt({onMessage:function(){}}),S=[];
return{onSpanEnd:function(R){R.parentId==null&&S.push(R)===1&&setTimeout(function(){var V=[].concat(_.$e(S));S.length=0;E("spansReported",{spans:V})},k)}}};
dRt=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var k=window.performance.getEntriesByType("navigation");if(k.length>0){var E=k[0];Xqb("pageLoad",{navigationType:ZnA(E.type),unloadEventStart:Math.round(E.unloadEventStart),unloadEventEnd:Math.round(E.unloadEventEnd),domInteractive:Math.round(E.domInteractive),domContentLoadedEventStart:Math.round(E.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(E.domContentLoadedEventEnd),
domComplete:Math.round(E.domComplete),loadEventStart:Math.round(E.loadEventStart),loadEventEnd:Math.round(E.loadEventEnd),redirectCount:E.redirectCount},function(){})}}catch(S){}})};
ZnA=function(k){switch(k){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"}};
s5h=function(k){k=k===void 0?400:k;var E=[],S=[];return{start:function(){return RCh({checkoutEveryNth:k,emit:function(R,V){V&&(E=S,S=[]);S.push(R)}})},
getRecording:function(){return[].concat(_.$e(E),_.$e(S))}}};
Q51=function(){for(var k=nmm.value,E={},S=_.n(k.enabledSpansArray),R=S.next();!R.done;R=S.next())E[R.value]=!0;if(k.exportToCsi||k.exportBreadcrumbs)Y7A({sessionId:V8I(),enabledSpans:E}),F2e("pageLoad")&&dRt();k.exportBreadcrumbs&&L9C({eventsToIgnore:lzI,bufferSize:k.bufferSize});k.exportToCsi&&W2j(MBj);k.exportToDevTools&&W2j(bnb());if(k.sessionReplayEvents>0){var V=s5h(k.sessionReplayEvents);V.start();_.Y("web_tracing_session_replay_demo")&&(window.exportSessionReplay=function(){var N=JSON.stringify(V.getRecording(),
null,2);N=qSj(new Blob([N],{type:"text/plain"}));var h=document.createElement("a");h.download="session_replay.json";h.dataset.downloadurl=["application/json",h.download,h.href].join(":");h.style.display="none";h.href=N;h.click();URL.revokeObjectURL(N);z0A("View replay at go/yt-session-replay-viewer")})}};
Onl=function(k){return new Promise(function(E){window.setTimeout(E,k)})};
Gqi=function(k){var E={bicf:function(N){k.qW4=N},
blc:function(){return k.getLatestChallengeResponse()},
bcr:function(N){k.qmK.push(N)}},S=window;
S.ntpevasrs=E;if(S.ntpqfbel!==void 0)for(var R=_.n(S.ntpqfbel),V=R.next();!V.done;V=R.next())V=V.value,V(E);S.ntpqfbel=void 0};
CHm=function(k){return _.c(function(E){if(E.nextAddress==1)return _.F5(E,2),E.yield(k.oZ2(),4);if(E.nextAddress!=2)return _.Sv(E,0);_.UY(E);_.KR(E)})};
k0t=function(k){var E,S;(E=k.ytcsi)==null||(S=E.tick)==null||S.call(E,"pot_ist")};
EwI=function(k){if(k instanceof Error){var E=_.CV("yt.logging.errors.log");E&&E(k,"WARNING")}};
Sd1=function(k){try{var E=JSON.parse(k);if(E.bgChallenge)return E}catch(S){}};
VcR=function(){var k=window,E={networkStatusManagerPromise:_.en().resolve(new kXe(_.Ec)),initialChallengeSli:_.Y("wpo_att_sli")?new _.y$t("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};k=k===void 0?window:k;var S=k.ytAtR,R;E==null||(R=E.initialChallengeSli)==null||_.qh(R);if(S){if(S=Sd1(S)){var V;E==null||(V=E.initialChallengeSli)==null||_.Gb(V,"SUCCESS");RaI(S,E)}k.ytAtR=void 0}else k.ytAtRC=function(N){if(N=Sd1(N)){var h;E==null||(h=E.initialChallengeSli)==null||
_.Gb(h,"SUCCESS");RaI(N,E);k.ytAtRC=void 0}}};
nw1=function(){if(NLl)return NLl;try{var k=_.g7("IFRAME");_.GB(k,_.BH(I1h));k.sandbox.add("allow-same-origin");k.style.display="none";document.body.appendChild(k);return NLl=k}catch(E){k=new _.LC("Failed to create sandbox iframe"),_.bM(k)}};
i8h=function(k){var E,S;return(S=k==null?void 0:(E=k.contentWindow)==null?void 0:E.fetch)!=null?S:window.fetch};
haj=function(k){var E,S;return(S=k==null?void 0:(E=k.contentWindow)==null?void 0:E.Request)!=null?S:window.Request};
J8t=function(k){var E,S;return(S=k==null?void 0:(E=k.contentWindow)==null?void 0:E.TextDecoder)!=null?S:window.TextDecoder};
c8I=function(){return function(k,E){_.Mg("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[k]=E}};
m$I=function(){return function(k,E){var S={};S[k]=E;k=_.Ga(_.LWb)(S);Object.keys(k).length>0&&_.BE(k)}};
tch=function(){if(ih1()==="hidden")var k="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else ih1()==="visible"&&(k="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",eah=null);k&&a1h(k)};
a1h=function(k){if(k==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||k==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(TLj===k)return;TLj=k}var E=9E4+Math.random()*2E3;if(k!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.mE()>E)&&ih1()==="visible"){E=-1;eah&&(E=Math.round((0,_.ev)()-eah));var S=String;var R=_.CV("_fact",window);R=R==null||R==-1?-1:Math.max(Date.now()-R,0);_.f2("foregroundHeartbeat",{firstActivityMs:S(R),clientDocumentNonce:NBm,index:String(w41),lastEventDeltaMs:String(E),trigger:k});
_.J6("_fact",-1,window);w41++;eah=(0,_.ev)()}};
PVj=function(k,E,S,R,V,N){E=new Uint8Array(E);if(k.length===0)return E;var h=0;V=V!=null?V:k.length-1;for(var J=S;J<=V;J++){var m=k[J],a=J===S?R:0,T=void 0,w=J===V?(T=N)!=null?T:m.length:m.length;m=m.subarray(a,w);E.set(m,h);h+=m.length}return E};
_.BLe=function(){try{return!!self.sessionStorage}catch(k){return!1}};
Ydj=function(){var k=navigator;return new Promise(function(E,S){var R;(R=k.webkitTemporaryStorage)!=null&&R.queryUsageAndQuota?k.webkitTemporaryStorage.queryUsageAndQuota(function(V,N){E({usage:V,quota:N})},function(V){S(V)}):S(Error("Bj"))})};
WpC=function(k,E){var S={errorSeverity:E.errorSeverity.toString(),wizFeatureFlags:Object.entries(E.featureFlags).join("\n")};jZt(E,S);E=E.errorSeverity;E===3?_.bM(k,"ERROR",void 0,void 0,void 0,S):E===2&&_.bM(k,"WARNING",void 0,void 0,void 0,S);_.Y("cow_if_errors_in_popup")&&E===3&&k.message.indexOf("<If>")!==-1&&window.alert(k.message)};
Fpm=function(k,E){var S=vE.get(k)||{layerNode:E};S.layerNode=E;B_1(k,S);k.getScreenLayer=function(){return C9(S.layerNode)}};
y8j=function(k){var E;k=k.parentNode;for(var S;k&&((E=vE.get(k))==null||!E.isRenderer)&&!((S=k.polymerController)!=null?S:k).isRenderer_;)k=k.parentNode||k.host;if(E=k)return vE.get(E)};
owt=function(k){if(k){vE.delete(k);var E=_.en().resolve(mF);u0l(k,E)}};
gwh=function(k,E,S){if(S===void 0?0:S){if(S=k.getAttribute("client-ve-type"),E.data&&!E.disableReactiveLogging||S)_.sm(function(){X4e(k,_.dt(E.data))},"og"),_.bI(function(){return void owt(k)})}else typeof E.data!=="function"&&X4e(k,E.data)};
X4e=function(k,E){U$h++;H81(k,E)&&_.ZJ.addJob(function(){_.kq(_.ZJ,function(){if(H81(k,E)&&k.ownerDocument.documentElement===document.documentElement&&k){var S;if(k.getAttribute("layer")){var R=S=Number(k.getAttribute("layer")),V=vE.get(k);V?V.layerNode.layer=R:Fpm(k,new Kph(R));(R=y8j(k))&&(V=vE.get(k))!=null&&(V.layerNode.parent=R.layerNode)}else if(S=vE.get(k))S=C9(S.layerNode);else{S=C9;R=new Kph;if(V=y8j(k))R.parent=V.layerNode;Fpm(k,R);S=S(R)}S!=null||(S=0);R=k.getAttribute("client-ve-type");
V=Number(R);var N=!1;R=!1;var h=vE.get(k),J;if((J=h)&&!(J=h[p4h]!==E)&&(J=V)){var m;J=((m=vE.get(k))==null?void 0:m.clientVeType)===void 0}J&&(h[p4h]=E,N=R=h.isRenderer=!0);vE.has(k)&&(vE.get(k).clientVeType=V);k.visualElement&&(R=!0);if(_.Y("wiz_next_ld_fix_client_ve_spec")){var a;m=((a=_.W(E==null?void 0:E.rendererContext,_.cM))==null?void 0:a.loggingDirectives)||(E==null?void 0:E.loggingDirectives)}else m=E==null?void 0:E.loggingDirectives;m&&m.clientVeSpec&&(a=A8h(_.iY(),k),a=_.r8l(_.JV(),m,a||
void 0,S))&&(k.visualElement=a);!k.visualElement&&V&&N&&(k.veType=V,a=void 0,_.Y("wiz_next_client_ve_parent_fix")&&(a=A8h(_.iY(),k)),a=_.hV(_.JV(),k,a,S),k.visualElement=a);R&&(a=_.en().resolve(mF),D9j(k,{data:E,observer:a,layer:S,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
H81=function(k,E){return(E==null?0:E.trackingParams)||(E==null?0:E.loggingDirectives)||_.W(E==null?void 0:E.rendererContext,_.cM)||k.getAttribute("client-ve-type")?!0:!1};
uUA=function(k,E,S){k.componentType!==Lo&&S instanceof HTMLElement&&E&&!_.Y("cow_logging_in_component_wrapper")&&gwh(S,E,!0)};
D$1=function(){if(!x$e){x$e=!0;var k=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.Y("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:WpC,enableComponentStacksInErrorMessages:!1});Object.assign(JN,k);kRI=Lpt;jP1();NWm=S1i;Sti=Rgh}};
jP1=function(){_.Y("cow_logging_in_component_wrapper")?(m_h=function(k,E){E instanceof HTMLElement&&gwh(E,k,!0)},Zfj=function(){}):(m_h=function(){},Zfj=uUA)};
$$b=function(k,E,S){E=E===void 0?{}:E;var R,V=(R=_.W(k.commandMetadata,_.Sd))==null?void 0:R.url;R=E.form||{};!S||R.element||R.skipDefaultElement||(E.form=E.form||{},E.form.element=S);if(V&&V!=="/service_ajax")return{type:0,command:k,form:E.form};if(_.Y("kevlar_service_command_check")){if(_.u_(_.en().resolve(_.oR),k))return Object.assign({},{type:1,command:k},E)}else{var N;if((N=_.W(k.commandMetadata,_.Sd))==null?0:N.apiUrl)return Object.assign({},{type:1,command:k},E)}return{type:2,command:k,form:E.form}};
f1I=function(k){if(k.form){var E=k.form,S=Object.assign({},E);E=E.element;S=(delete S.element,S);if(E)return[_.Qw(E,[k.command,S,k.commandController])]}return[]};
vwi=function(k){if(k.form){var E=k.form,S=Object.assign({},E);E=E.element;S=(delete S.element,S);E&&_.Ot(E,[k.command],E,S)}};
Z8R=function(k,E,S){var R=new b8I(k,E),V=new EB(k,E,S);k={"/youtubei/v1/browse":new SH(k,E,S),"/youtubei/v1/player":R,"/youtubei/v1/navigation/resolve_url":new RO,"/youtubei/v1/next":V,"/youtubei/v1/guide":new Vb(S),"/youtubei/v1/search":new NX(k,E,S),"/youtubei/v1/reel/reel_item_watch":new IO(k,E,S),"/youtubei/v1/get_watch":new nm(R,V)};k["/youtubei/v1/account/account_menu"]=new ib;k["/youtubei/v1/notification/get_notification_menu"]=new h9;return k};
ct=function(){var k=_.en().resolve(J9);return Promise.resolve(d$I(k,_.Vt.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
sPb=function(k){return k&&(k=_.mJ(_.t0I(k)))?(new URLSearchParams(k)).get("service"):null};
t9=function(k,E){_.Ch(_.eH(),function(){_.o_("adl")});
_.en().resolve(l1b)(E);k=k.root;k.loadData&&k.loadData(E);(E==null?0:E.response)?_.Gb(gDC(),"SUCCESS"):_.dg(new _.LC("Lifecycle: No response in data",_.qg("IS_SHELL_LOAD"),E?E.page:"NO_PAGE",E?E.endpoint:"NO_ENDPOINT"));k.polymerController.$["page-manager"].lazyPrepareCriticalPages((E==null?void 0:E.page)||"",E.endpoint);var S,R;((R=_.W(E==null?void 0:(S=E.endpoint)==null?void 0:S.commandMetadata,_.Sd))==null?0:R.webPageType)&&_.vo().dispatch(_.aO(_.W(E.endpoint.commandMetadata,_.Sd).webPageType))};
Mc1=function(){var k,E;return _.c(function(S){switch(S.nextAddress){case 1:k=window;if(!k.getDataPromise){S.jumpTo(2);break}_.F5(S,3);return S.yield(k.getDataPromise(),5);case 5:return S.return(S.yieldResult);case 3:return _.UY(S),S.yield(ct(),6);case 6:return S.return(S.yieldResult);case 2:if(k.getInitialData)return E=k.getInitialData(),k.getInitialData=void 0,S.return(E);throw Error("Dj`"+_.Vt.location.href);}})};
zah=function(){_.l$("CSI_SERVICE_NAME","youtube");_.BE({loadType:"cold"});_.Y("kevlar_log_lcp")&&qd1(function(k){_.o_("lcp",k.value)})};
QPI=function(){var k=_.Qo(document.location.href,"enable");k&&k.indexOf("scraper")>-1&&_.l$("ADD_SCRAPER_ATTRIBUTES",!0)};
RS1=function(k){var E=k.root;k=[O8i,G0t,_.Te];_.Y("web_feedback_endpoint_autolog_allowlist_killswitch")&&k.push(_.wy,CVe);var S=[];_.Y("web_talk_to_recs_double_click_fix")&&S.push(_.k31,EIj);Swm(function(R,V){return $$b(R,V,E)},function(R){if(!R.command)return[];
var V;((V=R.form)==null?0:V.element)?R.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},R.form,{endpoint:R.command})})):E.handleNavigate(R);return[]},k,S);
_.en().addProvider({provide:_.t3,useValue:_.V_.instance})};
NCl=function(){var k={},E={},S;for(S in VRt){var R=_.n(_.yg(VRt[S],void 0,"IAtZ7"));k[S]=R.next().value;E[S]=R.next().value}return[k,function(V){for(var N in V){var h=void 0;(h=E[N])==null||h(V[N])}}]};
_.Pt=function(k,E,S){E=E===void 0?!1:E;var R=_.fO.getValueByKeys(k,"contents","twoColumnWatchNextResults","results","results","contents"),V=_.fO.getValueByKeys(k,"contents","twoColumnWatchNextResults","playlist","playlist")||null;E&&(V=null);var N=E=null;if(V)E=_.fO.getValueByKeys(V,"titleText"),N=_.fO.unsafeClone(_.fO.getValueByKeys(V,"longBylineText")),R="",N&&(R=_.$n(N)),N=_.DE(R);else if(R){R=_.n(R);for(var h=R.next();!h.done;h=R.next())h=h.value,h.videoPrimaryInfoRenderer&&(E=_.fO.getValueByKeys.apply(_.fO,
[h].concat(_.$e(Ifh)))),h.videoSecondaryInfoRenderer&&(N=_.fO.getValueByKeys.apply(_.fO,[h].concat(_.$e(nIh))))}else _.kr(Error("Ij"));var J;k.currentVideoEndpoint?J=k.currentVideoEndpoint:_.kr(Error("Jj"));var m;S&&(m=_.fO.getValueByKeys(S,"playabilityStatus","miniplayer","miniplayerRenderer"));k={miniplayerTitle:E,miniplayerSubtitle:N,watchEndpoint:J,playlistData:V};m&&(k.miniplayerRenderer=m);return k};
i71=function(k){if(k)return _.y_(k)};
_.hSR=function(){return{isFullscreen:function(){throw Error("Kj");},
toggleFullscreen:function(){throw Error("Lj");},
exitFullscreen:function(){throw Error("Mj");},
isAutonavEnabled:function(){throw Error("Nj");},
setAutonavEnabled:function(){throw Error("Oj");},
isAutoplaySetExplicitly:function(){throw Error("Pj");}}};
JFe=function(k){return k.videoDuration?k.numTaps>1&&k.tapDirection!==0?_.Bt(k.draggedTime/k.videoDuration,0,1):_.Bt((k.playedTime||0)/k.videoDuration,0,1):0};
cFe=function(k){return k.videoDuration?k.isDragging||k.numTaps>1&&k.tapDirection!==0?_.Bt(k.draggedTime/k.videoDuration,0,1):_.Bt((k.playedTime||0)/k.videoDuration,0,1):0};
eSt=function(k){var E,S,R;return _.W(k==null?void 0:(E=k.markersMap)==null?void 0:(S=E.find(function(V){return V.key==="HEATSEEKER"}))==null?void 0:(R=S.value)==null?void 0:R.heatmap,mCA)};
afl=function(k){var E,S;return(S=(E=eSt(k))==null?void 0:E.heatMarkersDecorations)!=null?S:[]};
tRI=function(k){if(_.Y("mweb_supported_chapters_killswitch"))return!0;var E;return!!(k==null?0:(E=k.markersMap)==null?0:E.find(function(S){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(S.key)}))};
_.TC1=function(k){var E=Object,S=E.assign,R;k={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(R=k==null?void 0:k.getPlayerState())!=null?R:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return S.call(E,{},{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},k,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
wc1=function(k){return function(E){var S=k(),R,V=(R=S.playerApi)==null?void 0:R.getPlayerState();E&&E!==S.playerState&&(E===1||E===2)&&S.setState({playerState:V})}};
BCR=function(k){return function(E){var S=k(),R=S.playerApi;R&&(E==null?void 0:E.type)==="newdata"&&(Pqm&&(clearTimeout(Pqm),Pqm=void 0),_.Y("web_shorts_use_progress_state_for_gapless")?(E=R==null?void 0:R.getProgressState(E==null?void 0:E.playertype),E=E.seekableEnd-E.seekableStart):E=R==null?void 0:R.getDuration(E==null?void 0:E.playertype),S.setState({playedTime:0,videoDuration:E}))}};
YwA=function(k){return function(E){var S=k(),R=S.playerApi;if(R){var V=R.getPresentingPlayerType();_.Y("web_shorts_use_progress_state_for_gapless")?(R=R.getProgressState(V),R=R.seekableEnd-R.seekableStart):R=R.getDuration(V);S.setState({playedTime:E,videoDuration:R})}}};
FK1=function(k){_.hQ(112394,k,function(){return WKj},function(E){WKj=E})};
Xci=function(k,E){if(!k)return[];var S,R,V;k=((S=k.markersMap)==null?void 0:(R=S.find(function(N){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(N.key)}))==null?void 0:(V=R.value)==null?void 0:V.chapters)||[];
!yFe(k)||(E==null?0:E.ignoreStub)||(k=[oIC()].concat(_.$e(k)));return k};
oIC=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
yFe=function(k){if(k.length===0)return!1;var E;return((E=_.W(k[0],Yq))==null?void 0:E.timeRangeStartMillis)!==0};
Wt=function(k){return k?k.timeRangeStartMillis||0:0};
UCl=function(k,E){if(k.isDragging&&E)return k=gIb(k,E),k===-1?oIC():Xci(E)[k]};
gIb=function(k,E){return k.isDragging&&E?Xci(E,{ignoreStub:!0}).findIndex(function(S,R,V){S=H7t(k);return KKl(S,V,R).scrubberHovering}):-1};
H7t=function(k){return Object.assign({},k,{videoDuration:k.videoDuration*1E3,playedTime:k.playedTime*1E3,draggedTime:k.draggedTime*1E3})};
KKl=function(k,E,S){var R=Wt(_.W(E[S],Yq));E=Wt(_.W(E[S+1],Yq))||k.videoDuration;S=k.isDragging;var V;if(V=k.isDragging)V=k.draggedTime,V=V!==null&&V>=R&&V<E;var N=k.playedTime;return N!==null&&N>=R&&N<E?{videoPosition:"active",isScrubbing:S,scrubberHovering:V}:k.playedTime<R?{videoPosition:"pending",isScrubbing:S,scrubberHovering:V}:{videoPosition:"seen",isScrubbing:S,scrubberHovering:V}};
pc1=function(k,E){return k.videoPosition==="seen"||(E===void 0?0:E)>0};
AFe=function(k,E,S){E=k/E.storyboardInterval;var R=Xci(S);if(!R.length)return-E*72;S=0;R=_.n(R);for(var V=R.next();!V.done;V=R.next())if(Wt(_.W(V.value,Yq))/1E3<k)S++;else break;return-(E*72)-S*56};
rFl=function(k){return k?k.width/k.columns:0};
ux1=function(k){return k.isHovering?k.hoveredTime:k.draggedTime};
xCC=function(k,E){k=k.draggedTime*1E3;return k>=E.visibleTimeRangeStartMillis&&k<=E.visibleTimeRangeEndMillis};
_.LKh=function(k){if(k===void 0||Number.isNaN(k))return"--:--";var E=Math.abs(Math.floor(k)),S=Math.floor(E/86400),R=Math.floor(E%86400/3600),V=Math.floor(E%3600/60);E=Math.floor(E%60);var N="";S>0&&(N+=S+":",R<10&&(N+="0"));if(S>0||R>0)N+=R+":",V<10&&(N+="0");N+=V+":";E<10&&(N+="0");N+=E;return k>=0?N:"-"+N};
jIt=function(k,E){return function(){var S=ux1(k());var R=E();var V=k().playerApi;if(V&&V.getNumberOfStoryboardLevels()!==0){var N=V.getStoryboardFrameIndex(S,1);N!==-1?R=V.getStoryboardFrame(N,1):(S=V.getStoryboardFrameIndex(S,0),V=V.getStoryboardFrame(S,0),R&&V&&(V.height*=3,V.width*=3),R=V)}else R=null;if(!R)return null;E()&&(R.width=90*R.columns,R.height=160*R.rows);return R}};
_.Fr=function(k){if(!k||k.getVideoData)return k};
DCm=function(){var k;return{playerApi:(k=_.Sq())!=null?k:void 0}};
$Ch=function(k){var E;_.c(function(S){if(S.nextAddress==1)return S.yield(_.Ef(),2);if(E=S.yieldResult)E.unMute(!0),E.setVolume(k,!0);_.KR(S)})};
ffh=function(k,E){k&&(k.value=""+E,k.style.setProperty("--gradient-percent",E+"%"))};
vII=function(k){var E;return(E=k==null?void 0:k.value)!=null?E:0};
b7A=function(){var k;_.c(function(E){if(E.nextAddress==1)return E.yield(_.Ef(),2);k=E.yieldResult;if(!k)return E.return();k.isMuted()?k.unMute(!0):k.mute(!0);_.KR(E)})};
Z7h=function(k){var E=_.en().resolve(_.yb).getPlayerElement();E&&k&&(k===1?E.pause():E.play())};
dC1=function(k){_.zR(k,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
sIi=function(k){_.zR(k,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
MRl=function(k){return _.fV(k.document.body,function(){return _.e(lfb,null)},"ch")};
qwl=function(){var k=window.performance.getEntriesByType("navigation");return k?k.map(function(E){return E.type}).includes("reload"):!1};
SLt=function(){oO(oO(oO(oO(oO(oO(oO(_.en().resolve(_.Xr),_.zSb),_.QII),_.O7R),_.G31),_.Cqm),_.kwj),_.EMi)};
RTm=function(k,E){E=E===void 0?!1:E;var S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return E||!_.Y("kevlar_shorts_seedless_retry_initial_load")||(S=window,R=!(!S.getDataPromise&&!S.getInitialData),R)?h.yield(Mc1(),2):(setTimeout(RTm.bind(window,k,!0),1E3),h.return());if(h.nextAddress!=3)return V=h.yieldResult,h.yield(VxI(V),3);N=h.yieldResult;t9(k,N);_.KR(h)})};
VxI=function(k){var E;if((E=k.response)==null||!E.replacementEndpoint)return _.GR(k);E=_.en().resolve(J9);k=k.response;_.W(k.replacementEndpoint,_.hg)&&k.sequenceContinuation&&(_.W(k.replacementEndpoint,_.hg).sequenceParams=k.sequenceContinuation);return gy(E,k.replacementEndpoint,{},_.Vt.location.href,"shorts",function(){},function(){return!1})};
I4I=function(k){var E=_.en().resolve(NaI);k.playerResponse&&E.handleResponse(k.playerResponse);k.response&&E.handleResponse(k.response)};
nMj=function(k){var E=_.vo(),S,R=_.W((S=k.response)==null?void 0:S.frameworkUpdates,$v),V;S=_.W((V=k.playerResponse)==null?void 0:V.frameworkUpdates,$v);var N;k=_.W((N=k.reelWatchSequenceResponse)==null?void 0:N.frameworkUpdates,$v);R&&_.I7(R,E);S&&_.I7(S,E);k&&_.I7(k,E)};
iNC=function(k){var E;_.Y("enable_redirect_linking_for_desktop_web_client")&&((E=window.location.hash)==null?0:E.includes("redirect_state"))&&k.url&&(k.url=k.url.toString()+window.location.hash)};
c_e=function(k){var E=_.en(),S=E.resolve(J9);E=E.resolve(_.hTI);k.endpoint&&(S=J_b(S,k.endpoint),S.content&&k.response&&_.UB(E,k.response,S.content),S.player&&k.playerResponse&&_.UB(E,k.playerResponse,S.player),S.reelSequence&&k.reelWatchSequenceResponse&&_.UB(E,k.reelWatchSequenceResponse,S.reelSequence))};
Ht=function(k,E){I4I(E);nMj(E);var S;(E==null?0:E.url)&&((S=window.location.hash)==null?0:S.includes("redirect_state"))&&(iNC(E),(S=sPb(E.url))&&_.qe(k.root,"yt-initialize-third-party",[S,E]));c_e(E);S=_.en();var R=S.resolve(mse);E.playerResponse&&S.resolve(eTm).handleResponse(E.playerResponse);if(E.playerResponse){S=void 0;if(_.Y("ab_v_vid_sig")&&E.endpoint){var V,N=(V=_.W(E.endpoint,_.jm))!=null?V:_.W(E.endpoint,_.hg);N&&(S=N.videoId)}a4t(R,E.playerResponse,S)}E.playerResponse&&Oye(E.playerResponse)&&
_.Y("web_enable_ab_rsp_cl")?KU1().then(function(){txt(R,E.playerResponse);t9(k,E)}):t9(k,E)};
whh=function(k){if(k=k.root.data){var E=_.en().resolve(TaC);k.endpoint&&(k.response&&E.handleResponse(k.response,void 0,document.querySelector("ytd-app")),k.playerResponse&&E.handleResponse(k.playerResponse),k.reelWatchSequenceResponse&&E.handleResponse(k.reelWatchSequenceResponse))}};
PUh=function(k){var E,S,R,V,N,h;return _.c(function(J){switch(J.nextAddress){case 1:E=window;if(!E.getDataPromise){J.jumpTo(2);break}_.F5(J,3);return J.yield(E.getDataPromise(),5);case 5:S=J.yieldResult;Ht(k,S);_.Sv(J,4);break;case 3:return _.UY(J),J.yield(ct(),6);case 6:R=J.yieldResult,t9(k,R);case 4:return J.return();case 2:if(!_.Y("sw_nav_preload_pbj")){J.jumpTo(7);break}E.fetchInitialData=function(){var m;return _.c(function(a){if(a.nextAddress==1)return a.yield(ct(),2);m=a.yieldResult;t9(k,m);
_.KR(a)})};
if(E.getInitialData){E.loadInitialData=function(m){Ht(k,m)};
V=E.getInitialData();E.getInitialData=void 0;Ht(k,V);J.jumpTo(8);break}E.fetchInitialData=void 0;return J.yield(ct(),9);case 9:N=J.yieldResult,t9(k,N);case 8:return J.return();case 7:E.getInitialData?(h=E.getInitialData(),E.getInitialData=void 0,Ht(k,h)):E.loadInitialData=function(m){Ht(k,m)},_.KR(J)}})};
BaA=function(k){var E=0;return function(){return E<k.length?{done:!1,value:k[E++]}:{done:!0}}};
YLt=typeof Object.defineProperties=="function"?Object.defineProperty:function(k,E,S){if(k==Array.prototype||k==Object.prototype)return k;k[E]=S.value;return k};
WeR=function(k){k=["object"==typeof globalThis&&globalThis,k,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var E=0;E<k.length;++E){var S=k[E];if(S&&S.Math==Math)return S}throw Error("a");};
_.mt=WeR(this);Km=function(k,E){if(E)a:{var S=_.mt;k=k.split(".");for(var R=0;R<k.length-1;R++){var V=k[R];if(!(V in S))break a;S=S[V]}k=k[k.length-1];R=S[k];E=E(R);E!=R&&E!=null&&YLt(S,k,{configurable:!0,writable:!0,value:E})}};
Km("Symbol",function(k){if(k)return k;var E=function(N,h){this.$jscomp$symbol$id_=N;YLt(this,"description",{configurable:!0,writable:!0,value:h})};
E.prototype.toString=function(){return this.$jscomp$symbol$id_};
var S="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",R=0,V=function(N){if(this instanceof V)throw new TypeError("b");return new E(S+(N||"")+"_"+R++,N)};
return V});
Km("Symbol.iterator",function(k){if(k)return k;k=Symbol("c");YLt(Array.prototype,k,{configurable:!0,writable:!0,value:function(){return FeC(BaA(this))}});
return k});
Km("Symbol.asyncIterator",function(k){return k?k:Symbol("d")});
var FeC=function(k){k={next:k};k[Symbol.iterator]=function(){return this};
return k},y_1=typeof Object.create=="function"?Object.create:function(k){var E=function(){};
E.prototype=k;return new E},oMm=function(){function k(){function S(){}
new S;Reflect.construct(S,[],function(){});
return new S instanceof S}
if(typeof Reflect!="undefined"&&Reflect.construct){if(k())return Reflect.construct;var E=Reflect.construct;return function(S,R,V){S=E(S,R);V&&Reflect.setPrototypeOf(S,V.prototype);return S}}return function(S,R,V){V===void 0&&(V=S);
V=y_1(V.prototype||Object.prototype);return Function.prototype.apply.call(S,V,R)||V}}(),XhI;
if(typeof Object.setPrototypeOf=="function")XhI=Object.setPrototypeOf;else{var gMC;a:{var UsI={a:!0},HNe={};try{HNe.__proto__=UsI;gMC=HNe.a;break a}catch(k){}gMC=!1}XhI=gMC?function(k,E){k.__proto__=E;if(k.__proto__!==E)throw new TypeError("e`"+k);return k}:null}pm=XhI;
_.y=function(k,E){k.prototype=y_1(E.prototype);k.prototype.constructor=k;if(pm)pm(k,E);else for(var S in E)if(S!="prototype")if(Object.defineProperties){var R=Object.getOwnPropertyDescriptor(E,S);R&&Object.defineProperty(k,S,R)}else k[S]=E[S];k.superClass_=E.prototype};
_.n=function(k){var E=typeof Symbol!="undefined"&&Symbol.iterator&&k[Symbol.iterator];if(E)return E.call(k);if(typeof k.length=="number")return{next:BaA(k)};throw Error("f`"+String(k));};
Re=function(k){for(var E,S=[];!(E=k.next()).done;)S.push(E.value);return S};
_.$e=function(k){return k instanceof Array?k:Re(_.n(k))};
_.ry=function(k){return A9(k,k)};
A9=function(k,E){k.raw=E;Object.freeze&&(Object.freeze(k),Object.freeze(E));return k};
ub=function(k,E){return Object.prototype.hasOwnProperty.call(k,E)};
Ke1=function(k){if(k==null)throw new TypeError("g");return Object(k)};
phl=typeof Object.assign=="function"?Object.assign:function(k,E){k=Ke1(k);for(var S=1;S<arguments.length;S++){var R=arguments[S];if(R)for(var V in R)ub(R,V)&&(k[V]=R[V])}return k};
Km("Object.assign",function(k){return k||phl});
var xq=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},A_1=function(k){if(k.isRunning_)throw new TypeError("i");
k.isRunning_=!0};
xq.prototype.JSC$8715_next_=function(k){this.yieldResult=k};
var r_t=function(k,E){k.abruptCompletion_={exception:E,isException:!0};k.nextAddress=k.catchAddress_||k.finallyAddress_};
xq.prototype.return=function(k){this.abruptCompletion_={return:k};this.nextAddress=this.finallyAddress_};
xq.prototype.yield=function(k,E){this.nextAddress=E;return{value:k}};
xq.prototype.jumpTo=function(k){this.nextAddress=k};
_.KR=function(k){k.nextAddress=0};
_.F5=function(k,E,S){k.catchAddress_=E;S!=void 0&&(k.finallyAddress_=S)};
_.X5=function(k,E){k.catchAddress_=0;k.finallyAddress_=E||0};
_.Sv=function(k,E,S){k.nextAddress=E;k.catchAddress_=S||0};
_.UY=function(k,E){k.catchAddress_=E||0;E=k.abruptCompletion_.exception;k.abruptCompletion_=null;return E};
_.ob=function(k,E,S,R){R?k.finallyContexts_[R]=k.abruptCompletion_:k.finallyContexts_=[k.abruptCompletion_];k.catchAddress_=E||0;k.finallyAddress_=S||0};
_.gP=function(k,E,S){S=k.finallyContexts_.splice(S||0)[0];(S=k.abruptCompletion_=k.abruptCompletion_||S)?S.isException?k.nextAddress=k.catchAddress_||k.finallyAddress_:S.jumpTo!=void 0&&k.finallyAddress_<S.jumpTo?(k.nextAddress=S.jumpTo,k.abruptCompletion_=null):k.nextAddress=k.finallyAddress_:k.nextAddress=E};
uhm=function(k){this.JSC$8720_context_=new xq;this.program_=k};
Leh=function(k,E){A_1(k.JSC$8720_context_);var S=k.JSC$8720_context_.yieldAllIterator_;if(S)return xsm(k,"return"in S?S["return"]:function(R){return{value:R,done:!0}},E,k.JSC$8720_context_.return);
k.JSC$8720_context_.return(E);return Lm(k)};
xsm=function(k,E,S,R){try{var V=E.call(k.JSC$8720_context_.yieldAllIterator_,S);if(!(V instanceof Object))throw new TypeError("h`"+V);if(!V.done)return k.JSC$8720_context_.isRunning_=!1,V;var N=V.value}catch(h){return k.JSC$8720_context_.yieldAllIterator_=null,r_t(k.JSC$8720_context_,h),Lm(k)}k.JSC$8720_context_.yieldAllIterator_=null;R.call(k.JSC$8720_context_,N);return Lm(k)};
Lm=function(k){for(;k.JSC$8720_context_.nextAddress;)try{var E=k.program_(k.JSC$8720_context_);if(E)return k.JSC$8720_context_.isRunning_=!1,{value:E.value,done:!1}}catch(S){k.JSC$8720_context_.yieldResult=void 0,r_t(k.JSC$8720_context_,S)}k.JSC$8720_context_.isRunning_=!1;if(k.JSC$8720_context_.abruptCompletion_){E=k.JSC$8720_context_.abruptCompletion_;k.JSC$8720_context_.abruptCompletion_=null;if(E.isException)throw E.exception;return{value:E.return,done:!0}}return{value:void 0,done:!0}};
jyI=function(k){this.next=function(E){A_1(k.JSC$8720_context_);k.JSC$8720_context_.yieldAllIterator_?E=xsm(k,k.JSC$8720_context_.yieldAllIterator_.next,E,k.JSC$8720_context_.JSC$8715_next_):(k.JSC$8720_context_.JSC$8715_next_(E),E=Lm(k));return E};
this.throw=function(E){A_1(k.JSC$8720_context_);k.JSC$8720_context_.yieldAllIterator_?E=xsm(k,k.JSC$8720_context_.yieldAllIterator_["throw"],E,k.JSC$8720_context_.JSC$8715_next_):(r_t(k.JSC$8720_context_,E),E=Lm(k));return E};
this.return=function(E){return Leh(k,E)};
this[Symbol.iterator]=function(){return this}};
_.lr=function(k,E){E=new jyI(new uhm(E));pm&&k.prototype&&pm(E,k.prototype);return E};
Dst=function(k){function E(R){return k.next(R)}
function S(R){return k.throw(R)}
return new Promise(function(R,V){function N(h){h.done?R(h.value):Promise.resolve(h.value).then(E,S).then(N,V)}
N(k.next())})};
_.c=function(k){return Dst(new jyI(new uhm(k)))};
_.ye=function(k){var E=k[Symbol.asyncIterator];return E!==void 0?E.call(k):new $s1(_.n(k))};
$s1=function(k){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return k};
this.next=function(E){return Promise.resolve(k.next(E))};
this["throw"]=function(E){return new Promise(function(S,R){var V=k["throw"];V!==void 0?S(V.call(k,E)):(S=k["return"],S!==void 0&&S.call(k),R(new TypeError("j")))})};
k["return"]!==void 0&&(this["return"]=function(E){return Promise.resolve(k["return"](E))})};
_.sX=function(){for(var k=Number(this),E=[],S=k;S<arguments.length;S++)E[S-k]=arguments[S];return E};
_.Mh=function(k){return k};
Km("globalThis",function(k){return k||_.mt});
Km("Reflect",function(k){return k?k:{}});
Km("Reflect.construct",function(){return oMm});
Km("Reflect.setPrototypeOf",function(k){return k?k:pm?function(E,S){try{return pm(E,S),!0}catch(R){return!1}}:null});
Km("Promise",function(k){function E(){this.batch_=null}
function S(h){return h instanceof V?h:new V(function(J){J(h)})}
if(k&&(typeof _.mt.PromiseRejectionEvent!=="undefined"||!_.mt.Promise||_.mt.Promise.toString().indexOf("[native code]")===-1))return k;E.prototype.asyncExecute=function(h){if(this.batch_==null){this.batch_=[];var J=this;this.asyncExecuteFunction(function(){J.executeBatch_()})}this.batch_.push(h)};
var R=_.mt.setTimeout;E.prototype.asyncExecuteFunction=function(h){R(h,0)};
E.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var h=this.batch_;this.batch_=[];for(var J=0;J<h.length;++J){var m=h[J];h[J]=null;try{m()}catch(a){this.asyncThrow_(a)}}}this.batch_=null};
E.prototype.asyncThrow_=function(h){this.asyncExecuteFunction(function(){throw h;})};
var V=function(h){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var J=this.createResolveAndReject_();try{h(J.resolve,J.reject)}catch(m){J.reject(m)}};
V.prototype.createResolveAndReject_=function(){function h(a){return function(T){m||(m=!0,a.call(J,T))}}
var J=this,m=!1;return{resolve:h(this.resolveTo_),reject:h(this.JSC$8748_reject_)}};
V.prototype.resolveTo_=function(h){if(h===this)this.JSC$8748_reject_(new TypeError("n"));else if(h instanceof V)this.settleSameAsPromise_(h);else{a:switch(typeof h){case "object":var J=h!=null;break a;case "function":J=!0;break a;default:J=!1}J?this.resolveToNonPromiseObj_(h):this.fulfill_(h)}};
V.prototype.resolveToNonPromiseObj_=function(h){var J=void 0;try{J=h.then}catch(m){this.JSC$8748_reject_(m);return}typeof J=="function"?this.settleSameAsThenable_(J,h):this.fulfill_(h)};
V.prototype.JSC$8748_reject_=function(h){this.settle_(2,h)};
V.prototype.fulfill_=function(h){this.settle_(1,h)};
V.prototype.settle_=function(h,J){if(this.state_!=0)throw Error("o`"+h+"`"+J+"`"+this.state_);this.state_=h;this.result_=J;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
V.prototype.scheduleUnhandledRejectionCheck_=function(){var h=this;R(function(){if(h.notifyUnhandledRejection_()){var J=_.mt.console;typeof J!=="undefined"&&J.error(h.result_)}},1)};
V.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var h=_.mt.CustomEvent,J=_.mt.Event,m=_.mt.dispatchEvent;if(typeof m==="undefined")return!0;typeof h==="function"?h=new h("unhandledrejection",{cancelable:!0}):typeof J==="function"?h=new J("unhandledrejection",{cancelable:!0}):(h=_.mt.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.result_;return m(h)};
V.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var h=0;h<this.onSettledCallbacks_.length;++h)N.asyncExecute(this.onSettledCallbacks_[h]);this.onSettledCallbacks_=null}};
var N=new E;V.prototype.settleSameAsPromise_=function(h){var J=this.createResolveAndReject_();h.callWhenSettled_(J.resolve,J.reject)};
V.prototype.settleSameAsThenable_=function(h,J){var m=this.createResolveAndReject_();try{h.call(J,m.resolve,m.reject)}catch(a){m.reject(a)}};
V.prototype.then=function(h,J){function m(P,B){return typeof P=="function"?function(F){try{a(P(F))}catch(K){T(K)}}:B}
var a,T,w=new V(function(P,B){a=P;T=B});
this.callWhenSettled_(m(h,a),m(J,T));return w};
V.prototype.catch=function(h){return this.then(void 0,h)};
V.prototype.callWhenSettled_=function(h,J){function m(){switch(a.state_){case 1:h(a.result_);break;case 2:J(a.result_);break;default:throw Error("p`"+a.state_);}}
var a=this;this.onSettledCallbacks_==null?N.asyncExecute(m):this.onSettledCallbacks_.push(m);this.isRejectionHandled_=!0};
V.resolve=S;V.reject=function(h){return new V(function(J,m){m(h)})};
V.race=function(h){return new V(function(J,m){for(var a=_.n(h),T=a.next();!T.done;T=a.next())S(T.value).callWhenSettled_(J,m)})};
V.all=function(h){var J=_.n(h),m=J.next();return m.done?S([]):new V(function(a,T){function w(F){return function(K){P[F]=K;B--;B==0&&a(P)}}
var P=[],B=0;do P.push(void 0),B++,S(m.value).callWhenSettled_(w(P.length-1),T),m=J.next();while(!m.done)})};
return V});
var jH=function(k,E,S){if(k==null)throw new TypeError("q`"+S);if(E instanceof RegExp)throw new TypeError("r`"+S);return k+""};
Km("String.prototype.startsWith",function(k){return k?k:function(E,S){var R=jH(this,E,"startsWith"),V=R.length,N=E.length;S=Math.max(0,Math.min(S|0,R.length));for(var h=0;h<N&&S<V;)if(R[S++]!=E[h++])return!1;return h>=N}});
Km("Object.setPrototypeOf",function(k){return k||pm});
Km("Symbol.dispose",function(k){return k?k:Symbol("s")});
Km("SuppressedError",function(k){function E(S,R,V){if(!(this instanceof E))return new E(S,R,V);V=Error(V);"stack"in V&&(this.stack=V.stack);this.message=V.message;this.error=S;this.suppressed=R}
if(k)return k;_.y(E,Error);E.prototype.name="SuppressedError";return E});
Km("Array.from",function(k){return k?k:function(E,S,R){S=S!=null?S:function(J){return J};
var V=[],N=typeof Symbol!="undefined"&&Symbol.iterator&&E[Symbol.iterator];if(typeof N=="function"){E=N.call(E);for(var h=0;!(N=E.next()).done;)V.push(S.call(R,N.value,h++))}else for(N=E.length,h=0;h<N;h++)V.push(S.call(R,E[h],h));return V}});
var f4b=function(k,E,S){k instanceof String&&(k=String(k));for(var R=k.length,V=0;V<R;V++){var N=k[V];if(E.call(S,N,V,k))return{i:V,v:N}}return{i:-1,v:void 0}};
Km("Array.prototype.find",function(k){return k?k:function(E,S){return f4b(this,E,S).v}});
Km("WeakMap",function(k){function E(){}
function S(m){var a=typeof m;return a==="object"&&m!==null||a==="function"}
function R(m){if(!ub(m,N)){var a=new E;YLt(m,N,{value:a})}}
function V(m){var a=Object[m];a&&(Object[m]=function(T){if(T instanceof E)return T;Object.isExtensible(T)&&R(T);return a(T)})}
if(function(){if(!k||!Object.seal)return!1;try{var m=Object.seal({}),a=Object.seal({}),T=new k([[m,2],[a,3]]);if(T.get(m)!=2||T.get(a)!=3)return!1;T.delete(m);T.set(a,4);return!T.has(m)&&T.get(a)==4}catch(w){return!1}}())return k;
var N="$jscomp_hidden_"+Math.random();V("freeze");V("preventExtensions");V("seal");var h=0,J=function(m){this.JSC$8756_id_=(h+=Math.random()+1).toString();if(m){m=_.n(m);for(var a;!(a=m.next()).done;)a=a.value,this.set(a[0],a[1])}};
J.prototype.set=function(m,a){if(!S(m))throw Error("t");R(m);if(!ub(m,N))throw Error("u`"+m);m[N][this.JSC$8756_id_]=a;return this};
J.prototype.get=function(m){return S(m)&&ub(m,N)?m[N][this.JSC$8756_id_]:void 0};
J.prototype.has=function(m){return S(m)&&ub(m,N)&&ub(m[N],this.JSC$8756_id_)};
J.prototype.delete=function(m){return S(m)&&ub(m,N)&&ub(m[N],this.JSC$8756_id_)?delete m[N][this.JSC$8756_id_]:!1};
return J});
Km("Map",function(k){if(function(){if(!k||typeof k!="function"||!k.prototype.entries||typeof Object.seal!="function")return!1;try{var J=Object.seal({x:4}),m=new k(_.n([[J,"s"]]));if(m.get(J)!="s"||m.size!=1||m.get({x:4})||m.set({x:4},"t")!=m||m.size!=2)return!1;var a=m.entries(),T=a.next();if(T.done||T.value[0]!=J||T.value[1]!="s")return!1;T=a.next();return T.done||T.value[0].x!=4||T.value[1]!="t"||!a.next().done?!1:!0}catch(w){return!1}}())return k;
var E=new WeakMap,S=function(J){this[0]={};this[1]=N();this.size=0;if(J){J=_.n(J);for(var m;!(m=J.next()).done;)m=m.value,this.set(m[0],m[1])}};
S.prototype.set=function(J,m){J=J===0?0:J;var a=R(this,J);a.list||(a.list=this[0][a.id]=[]);a.entry?a.entry.value=m:(a.entry={next:this[1],previous:this[1].previous,head:this[1],key:J,value:m},a.list.push(a.entry),this[1].previous.next=a.entry,this[1].previous=a.entry,this.size++);return this};
S.prototype.delete=function(J){J=R(this,J);return J.entry&&J.list?(J.list.splice(J.index,1),J.list.length||delete this[0][J.id],J.entry.previous.next=J.entry.next,J.entry.next.previous=J.entry.previous,J.entry.head=null,this.size--,!0):!1};
S.prototype.clear=function(){this[0]={};this[1]=this[1].previous=N();this.size=0};
S.prototype.has=function(J){return!!R(this,J).entry};
S.prototype.get=function(J){return(J=R(this,J).entry)&&J.value};
S.prototype.entries=function(){return V(this,function(J){return[J.key,J.value]})};
S.prototype.keys=function(){return V(this,function(J){return J.key})};
S.prototype.values=function(){return V(this,function(J){return J.value})};
S.prototype.forEach=function(J,m){for(var a=this.entries(),T;!(T=a.next()).done;)T=T.value,J.call(m,T[1],T[0],this)};
S.prototype[Symbol.iterator]=S.prototype.entries;var R=function(J,m){var a=m&&typeof m;a=="object"||a=="function"?E.has(m)?a=E.get(m):(a=""+ ++h,E.set(m,a)):a="p_"+m;var T=J[0][a];if(T&&ub(J[0],a))for(J=0;J<T.length;J++){var w=T[J];if(m!==m&&w.key!==w.key||m===w.key)return{id:a,list:T,index:J,entry:w}}return{id:a,list:T,index:-1,entry:void 0}},V=function(J,m){var a=J[1];
return FeC(function(){if(a){for(;a.head!=J[1];)a=a.previous;for(;a.next!=a.head;)return a=a.next,{done:!1,value:m(a)};a=null}return{done:!0,value:void 0}})},N=function(){var J={};
return J.previous=J.next=J.head=J},h=0;
return S});
Km("Set",function(k){if(function(){if(!k||typeof k!="function"||!k.prototype.entries||typeof Object.seal!="function")return!1;try{var S=Object.seal({x:4}),R=new k(_.n([S]));if(!R.has(S)||R.size!=1||R.add(S)!=R||R.size!=1||R.add({x:4})!=R||R.size!=2)return!1;var V=R.entries(),N=V.next();if(N.done||N.value[0]!=S||N.value[1]!=S)return!1;N=V.next();return N.done||N.value[0]==S||N.value[0].x!=4||N.value[1]!=N.value[0]?!1:V.next().done}catch(h){return!1}}())return k;
var E=function(S){this.JSC$8770_map_=new Map;if(S){S=_.n(S);for(var R;!(R=S.next()).done;)this.add(R.value)}this.size=this.JSC$8770_map_.size};
E.prototype.add=function(S){S=S===0?0:S;this.JSC$8770_map_.set(S,S);this.size=this.JSC$8770_map_.size;return this};
E.prototype.delete=function(S){S=this.JSC$8770_map_.delete(S);this.size=this.JSC$8770_map_.size;return S};
E.prototype.clear=function(){this.JSC$8770_map_.clear();this.size=0};
E.prototype.has=function(S){return this.JSC$8770_map_.has(S)};
E.prototype.entries=function(){return this.JSC$8770_map_.entries()};
E.prototype.values=function(){return this.JSC$8770_map_.values()};
E.prototype.keys=E.prototype.values;E.prototype[Symbol.iterator]=E.prototype.values;E.prototype.forEach=function(S,R){var V=this;this.JSC$8770_map_.forEach(function(N){return S.call(R,N,N,V)})};
return E});
Km("Math.log2",function(k){return k?k:function(E){return Math.log(E)/Math.LN2}});
Km("Object.values",function(k){return k?k:function(E){var S=[],R;for(R in E)ub(E,R)&&S.push(E[R]);return S}});
Km("Object.is",function(k){return k?k:function(E,S){return E===S?E!==0||1/E===1/S:E!==E&&S!==S}});
Km("Array.prototype.includes",function(k){return k?k:function(E,S){var R=this;R instanceof String&&(R=String(R));var V=R.length;S=S||0;for(S<0&&(S=Math.max(S+V,0));S<V;S++){var N=R[S];if(N===E||Object.is(N,E))return!0}return!1}});
Km("String.prototype.includes",function(k){return k?k:function(E,S){return jH(this,E,"includes").indexOf(E,S||0)!==-1}});
Km("Object.entries",function(k){return k?k:function(E){var S=[],R;for(R in E)ub(E,R)&&S.push([R,E[R]]);return S}});
Km("Number.isFinite",function(k){return k?k:function(E){return typeof E!=="number"?!1:!isNaN(E)&&E!==Infinity&&E!==-Infinity}});
Km("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Km("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Km("Number.isInteger",function(k){return k?k:function(E){return Number.isFinite(E)?E===Math.floor(E):!1}});
Km("Number.isSafeInteger",function(k){return k?k:function(E){return Number.isInteger(E)&&Math.abs(E)<=Number.MAX_SAFE_INTEGER}});
Km("String.prototype.endsWith",function(k){return k?k:function(E,S){var R=jH(this,E,"endsWith");S===void 0&&(S=R.length);S=Math.max(0,Math.min(S|0,R.length));for(var V=E.length;V>0&&S>0;)if(R[--S]!=E[--V])return!1;return V<=0}});
var vMI=function(k,E){k instanceof String&&(k+="");var S=0,R=!1,V={next:function(){if(!R&&S<k.length){var N=S++;return{value:E(N,k[N]),done:!1}}R=!0;return{done:!0,value:void 0}}};
V[Symbol.iterator]=function(){return V};
return V};
Km("Array.prototype.entries",function(k){return k?k:function(){return vMI(this,function(E,S){return[E,S]})}});
Km("Math.trunc",function(k){return k?k:function(E){E=Number(E);if(isNaN(E)||E===Infinity||E===-Infinity||E===0)return E;var S=Math.floor(Math.abs(E));return E<0?-S:S}});
Km("Number.isNaN",function(k){return k?k:function(E){return typeof E==="number"&&isNaN(E)}});
Km("Array.prototype.keys",function(k){return k?k:function(){return vMI(this,function(E){return E})}});
Km("Array.prototype.values",function(k){return k?k:function(){return vMI(this,function(E,S){return S})}});
Km("Array.prototype.fill",function(k){return k?k:function(E,S,R){var V=this.length||0;S<0&&(S=Math.max(0,V+S));if(R==null||R>V)R=V;R=Number(R);R<0&&(R=Math.max(0,V+R));for(S=Number(S||0);S<R;S++)this[S]=E;return this}});
var DO=function(k){return k?k:Array.prototype.fill};
Km("Int8Array.prototype.fill",DO);Km("Uint8Array.prototype.fill",DO);Km("Uint8ClampedArray.prototype.fill",DO);Km("Int16Array.prototype.fill",DO);Km("Uint16Array.prototype.fill",DO);Km("Int32Array.prototype.fill",DO);Km("Uint32Array.prototype.fill",DO);Km("Float32Array.prototype.fill",DO);Km("Float64Array.prototype.fill",DO);
Km("Object.fromEntries",function(k){return k?k:function(E){var S={};if(!(Symbol.iterator in E))throw new TypeError("v`"+E);E=E[Symbol.iterator].call(E);for(var R=E.next();!R.done;R=E.next()){R=R.value;if(Object(R)!==R)throw new TypeError("w");S[R[0]]=R[1]}return S}});
Km("String.prototype.replaceAll",function(k){return k?k:function(E,S){if(E instanceof RegExp&&!E.global)throw new TypeError("x");return E instanceof RegExp?this.replace(E,S):this.replace(new RegExp(String(E).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),S)}});
Km("Object.getOwnPropertySymbols",function(k){return k?k:function(){return[]}});
Km("String.prototype.repeat",function(k){return k?k:function(E){var S=jH(this,null,"repeat");if(E<0||E>1342177279)throw new RangeError("y");E|=0;for(var R="";E;)if(E&1&&(R+=S),E>>>=1)S+=S;return R}});
Km("Array.prototype.findIndex",function(k){return k?k:function(E,S){return f4b(this,E,S).i}});
Km("Array.prototype.flatMap",function(k){return k?k:function(E,S){var R=[];Array.prototype.forEach.call(this,function(V,N){V=E.call(S,V,N,this);Array.isArray(V)?R.push.apply(R,V):R.push(V)});
return R}});
Km("String.prototype.codePointAt",function(k){return k?k:function(E){var S=jH(this,null,"codePointAt"),R=S.length;E=Number(E)||0;if(E>=0&&E<R){E|=0;var V=S.charCodeAt(E);if(V<55296||V>56319||E+1===R)return V;E=S.charCodeAt(E+1);return E<56320||E>57343?V:(V-55296)*1024+E+9216}}});
Km("String.fromCodePoint",function(k){return k?k:function(E){for(var S="",R=0;R<arguments.length;R++){var V=Number(arguments[R]);if(V<0||V>1114111||V!==Math.floor(V))throw new RangeError("z`"+V);V<=65535?S+=String.fromCharCode(V):(V-=65536,S+=String.fromCharCode(V>>>10&1023|55296),S+=String.fromCharCode(V&1023|56320))}return S}});
Km("String.prototype.trimLeft",function(k){function E(){return this.replace(/^[\s\xa0]+/,"")}
return k||E});
Km("String.prototype.trimStart",function(k){return k||String.prototype.trimLeft});
Km("String.prototype.padStart",function(k){return k?k:function(E,S){var R=jH(this,null,"padStart");E-=R.length;S=S!==void 0?String(S):" ";return(E>0&&S?S.repeat(Math.ceil(E/S.length)).substring(0,E):"")+R}});
Km("Promise.prototype.finally",function(k){return k?k:function(E){return this.then(function(S){return Promise.resolve(E()).then(function(){return S})},function(S){return Promise.resolve(E()).then(function(){throw S;
})})}});
Km("Math.imul",function(k){return k?k:function(E,S){E=Number(E);S=Number(S);var R=E&65535,V=S&65535;return R*V+((E>>>16&65535)*V+R*(S>>>16&65535)<<16>>>0)|0}});
Km("Object.hasOwn",function(k){return k?k:function(E,S){return Object.prototype.hasOwnProperty.call(E,S)}});
Km("Math.sign",function(k){return k?k:function(E){E=Number(E);return E===0||isNaN(E)?E:E>0?1:-1}});
Km("Array.prototype.flat",function(k){return k?k:function(E){E=E===void 0?1:E;var S=[];Array.prototype.forEach.call(this,function(R){Array.isArray(R)&&E>0?(R=Array.prototype.flat.call(R,E-1),S.push.apply(S,R)):S.push(R)});
return S}});
Km("String.raw",function(k){return k?k:function(E,S){E=Ke1(E);for(var R=E.raw,V=R.length,N="",h=0;h<V;++h)N+=R[h],h+1<V&&h+1<arguments.length&&(N+=String(arguments[h+1]));return N}});
Km("WeakSet",function(k){if(function(){if(!k||!Object.seal)return!1;try{var S=Object.seal({}),R=Object.seal({}),V=new k([S]);if(!V.has(S)||V.has(R))return!1;V.delete(S);V.add(R);return!V.has(S)&&V.has(R)}catch(N){return!1}}())return k;
var E=function(S){this.JSC$8781_map_=new WeakMap;if(S){S=_.n(S);for(var R;!(R=S.next()).done;)this.add(R.value)}};
E.prototype.add=function(S){this.JSC$8781_map_.set(S,!0);return this};
E.prototype.has=function(S){return this.JSC$8781_map_.has(S)};
E.prototype.delete=function(S){return this.JSC$8781_map_.delete(S)};
return E});
Km("Reflect.ownKeys",function(k){return k?k:function(E){var S=[],R=Object.getOwnPropertyNames(E);E=Object.getOwnPropertySymbols(E);for(var V=0;V<R.length;V++)(R[V].substring(0,14)=="jscomp_symbol_"?E:S).push(R[V]);return S.concat(E)}});
Km("Object.getOwnPropertyDescriptors",function(k){return k?k:function(E){for(var S={},R=Reflect.ownKeys(E),V=0;V<R.length;V++)S[R[V]]=Object.getOwnPropertyDescriptor(E,R[V]);return S}});
Km("Promise.allSettled",function(k){function E(R){return{status:"fulfilled",value:R}}
function S(R){return{status:"rejected",reason:R}}
return k?k:function(R){var V=this;R=Array.from(R,function(N){return V.resolve(N).then(E,S)});
return V.all(R)}});
Km("Number.parseInt",function(k){return k||parseInt});
_._DumpException=window._DumpException||function(k){throw k;};
window._DumpException=_._DumpException;var bNh=window.ytcsi;bNh&&typeof bNh.tick==="function"&&bNh.tick("rses_dpj");var ZNh,$q,fm,vt,dst,sy1,l4t,MxI,KP,qLj;ZNh=ZNh||{};_.Vt=this||self;_.J6=function(k,E,S){k=k.split(".");S=S||_.Vt;for(var R;k.length&&(R=k.shift());)k.length||E===void 0?S[R]&&S[R]!==Object.prototype[R]?S=S[R]:S=S[R]={}:S[R]=E};
$q=function(k,E){var S=_.CV("WIZ_global_data.oxN3nb");k=S&&S[k];return k!=null?k:E};
fm=_.Vt._F_toggles_default_kevlar_base||[];vt=function(){};
vt.get=function(){return null};
_.Vjl=null;_.CV=function(k,E){k=k.split(".");E=E||_.Vt;for(var S=0;S<k.length;S++)if(E=E[k[S]],E==null)return null;return E};
_.bb=function(k){k.instance_=void 0;k.getInstance=function(){return k.instance_?k.instance_:k.instance_=new k}};
_.GY=function(k){var E=typeof k;return E!="object"?E:k?Array.isArray(k)?"array":E:"null"};
_.sj=function(k){var E=_.GY(k);return E=="array"||E=="object"&&typeof k.length=="number"};
_.qA=function(k){var E=typeof k;return E=="object"&&k!=null||E=="function"};
_.Oj=function(k){return Object.prototype.hasOwnProperty.call(k,dst)&&k[dst]||(k[dst]=++sy1)};
dst="closure_uid_"+(Math.random()*1E9>>>0);sy1=0;l4t=function(k,E,S){return k.call.apply(k.bind,arguments)};
MxI=function(k,E,S){if(!k)throw Error();if(arguments.length>2){var R=Array.prototype.slice.call(arguments,2);return function(){var V=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(V,R);return k.apply(E,V)}}return function(){return k.apply(E,arguments)}};
_.uk=function(k,E,S){_.uk=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?l4t:MxI;return _.uk.apply(null,arguments)};
_.I_=function(k,E){var S=Array.prototype.slice.call(arguments,1);return function(){var R=S.slice();R.push.apply(R,arguments);return k.apply(this,R)}};
_.ZO=function(){return Date.now()};
KP=function(k){return k};
_.dy=function(k,E){function S(){}
S.prototype=E.prototype;k.superClass_=E.prototype;k.prototype=new S;k.prototype.constructor=k;k.base=function(R,V,N){for(var h=Array(arguments.length-2),J=2;J<arguments.length;J++)h[J-2]=arguments[J];return E.prototype[V].apply(R,h)}};
qLj=function(k){return k};var zTt,Qyh;_.Z=function(k,E,S,R){var V=arguments.length,N=V<3?E:R===null?R=Object.getOwnPropertyDescriptor(E,S):R,h;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")N=Reflect.decorate(k,E,S,R);else for(var J=k.length-1;J>=0;J--)if(h=k[J])N=(V<3?h(N):V>3?h(E,S,N):h(E,S))||N;V>3&&N&&Object.defineProperty(E,S,N)};
_.l=function(k,E){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(k,E)};
zTt=function(k,E){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("A");if(S===void 0){if(!Symbol.dispose)throw new TypeError("C");var S=E[Symbol.dispose]}if(typeof S!=="function")throw new TypeError("D");k.stack.push({value:E,dispose:S,async:!1})}return E};
Qyh=function(k){function E(N){k.error=k.hasError?new SuppressedError(N,k.error,"An error was suppressed during disposal."):N;k.hasError=!0}
function S(){for(;R=k.stack.pop();)try{if(!R.async&&V===1)return V=0,k.stack.push(R),Promise.resolve().then(S);if(R.dispose){var N=R.dispose.call(R.value);if(R.async)return V|=2,Promise.resolve(N).then(S,function(h){E(h);return S()})}else V|=1}catch(h){E(h)}if(V===1)return k.hasError?Promise.reject(k.error):Promise.resolve();
if(k.hasError)throw k.error;}
var R,V=0;S()};var ONh="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(" ");kIl()&&ONh.push("details:not(:has(summary))");var Sjh=ONh.join(",");_.dy(_.Sh,Error);_.Sh.prototype.name="CustomError";var Gwh;var CUb=void 0,kIj,Eb2=typeof TextDecoder!=="undefined",chh,Jh1=typeof String.prototype.isWellFormed==="function",hi1=typeof TextEncoder!=="undefined";var SjT;_.AP=function(k){for(var E=[],S=0,R=0;R<k.length;R++){var V=k.charCodeAt(R);V<128?E[S++]=V:(V<2048?E[S++]=V>>6|192:((V&64512)==55296&&R+1<k.length&&(k.charCodeAt(R+1)&64512)==56320?(V=65536+((V&1023)<<10)+(k.charCodeAt(++R)&1023),E[S++]=V>>18|240,E[S++]=V>>12&63|128):E[S++]=V>>12|224,E[S++]=V>>6&63|128),E[S++]=V&63|128)}return E};
SjT=function(k){for(var E=[],S=0,R=0;S<k.length;){var V=k[S++];if(V<128)E[R++]=String.fromCharCode(V);else if(V>191&&V<224){var N=k[S++];E[R++]=String.fromCharCode((V&31)<<6|N&63)}else if(V>239&&V<365){N=k[S++];var h=k[S++],J=k[S++];V=((V&7)<<18|(N&63)<<12|(h&63)<<6|J&63)-65536;E[R++]=String.fromCharCode(55296+(V>>10));E[R++]=String.fromCharCode(56320+(V&1023))}else N=k[S++],h=k[S++],E[R++]=String.fromCharCode((V&15)<<12|(N&63)<<6|h&63)}return E.join("")};var eh=String.prototype.trim?function(k){return k.trim()}:function(k){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(k)[1]},RiT=/&/g,VhT=/</g,N1Y=/>/g,IRC=/"/g,nb4=/'/g,ilC=/\x00/g,hiY=/[\x00&<>"']/;var sB=!!(fm[0]>>15&1),JhY=!!(fm[0]&1024),chC=!!(fm[0]>>16&1),mAd=!!(fm[0]&8),eij=!!(fm[0]&2),aRd=!!(fm[0]&4),thA=!!(fm[0]&16),T1z=!!(fm[0]&128);var weT=$q(1,!0),Yb=sB?chC:$q(610401301,!1),PC2=sB?mAd:$q(772657768,!1),B12=sB?eij:$q(513659523,!1),Yjz=sB?JhY||!aRd:$q(568333945,!0),gLe=sB?thA:$q(1331761403,!1),YAR=sB?JhY||!T1z:$q(748402147,weT);var We,WIA=_.Vt.navigator;We=WIA?WIA.userAgentData||null:null;var RW;_.$b=function(k,E){return Array.prototype.indexOf.call(k,E,void 0)};
_.Sn=function(k,E,S){Array.prototype.forEach.call(k,E,S)};
_.lb=function(k,E,S){return Array.prototype.filter.call(k,E,S)};
_.vH=function(k,E,S){return Array.prototype.map.call(k,E,S)};
RW=function(k,E,S){return Array.prototype.some.call(k,E,S)};
_.Epi=function(k,E,S){return Array.prototype.every.call(k,E,S)};var MX=function(k){MX[" "](k);return k};
MX[" "]=function(){};
var jhi=function(k,E){try{return MX(k[E]),!0}catch(S){}return!1},aJj=function(k,E,S,R){R=R?R(E):E;
return Object.prototype.hasOwnProperty.call(k,R)?k[R]:k[R]=S(E)};var FIC,iX,yhC,ob4,gbT,UA8,dle,HlC,KIC,peT,I31,rhA,umj,DAC,$Aj,fR2;_.JMb=function(){return _.Vt.navigator||null};
FIC=thi();_.qX=T1e();iX=o1("Edge");yhC=iX||_.qX;_.ze=o1("Gecko")&&!(_.mI(_.Be(),"WebKit")&&!o1("Edge"))&&!(o1("Trident")||o1("MSIE"))&&!o1("Edge");_.Qb=_.mI(_.Be(),"WebKit")&&!o1("Edge");ob4=_.Qb&&o1("Mobile");_.Xed=_.Xet();gbT=_.gbh();UA8=(r1()?We.platform==="Linux":o1("Linux"))||_.UAm();dle=_.yhh();HlC=obC();KIC=o1("iPad");peT=o1("iPod");_.Ahd=_.uC();I31=_.mI(_.Be(),"KaiOS");rhA=function(){var k=_.Vt.document;return k?k.documentMode:void 0};
a:{var xAC="",LIC=function(){var k=_.Be();if(_.ze)return/rv:([^\);]+)(\)|;)/.exec(k);if(iX)return/Edge\/([\d\.]+)/.exec(k);if(_.qX)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(k);if(_.Qb)return/WebKit\/(\S+)/.exec(k);if(FIC)return/(?:Version)[ \/]?(\S+)/.exec(k)}();
LIC&&(xAC=LIC?LIC[1]:"");if(_.qX){var j1C=rhA();if(j1C!=null&&j1C>parseFloat(xAC)){umj=String(j1C);break a}}umj=xAC}DAC=umj;$Aj={};_.OB=function(k){return aJj($Aj,k,function(){return _.w1(DAC,k)>=0})};
if(_.Vt.document&&_.qX){var vbC=rhA();fR2=vbC?vbC:parseInt(DAC,10)||void 0}else fR2=void 0;_.blz=fR2;var zMb,Q_R,ZlC;_.Ge=Uj();zMb=obC()||o1("iPod");Q_R=o1("iPad");ZlC=_.B1b();_.Cm=_.Kl();_.zV=_.PCb()&&!_.uC();var dA8,k7,R2j,SVR,lRC,s1Y;dA8={};k7=null;R2j=_.ze||_.Qb||typeof _.Vt.btoa=="function";_.xW=function(k,E){E===void 0&&(E=0);s1Y();E=dA8[E];for(var S=Array(Math.floor(k.length/3)),R=E[64]||"",V=0,N=0;V<k.length-2;V+=3){var h=k[V],J=k[V+1],m=k[V+2],a=E[h>>2];h=E[(h&3)<<4|J>>4];J=E[(J&15)<<2|m>>6];m=E[m&63];S[N++]=a+h+J+m}a=0;m=R;switch(k.length-V){case 2:a=k[V+1],m=E[(a&15)<<2]||R;case 1:k=k[V],S[N]=E[k>>2]+E[(k&3)<<4|a>>4]+m+R}return S.join("")};
SVR=function(k){var E="";lRC(k,function(S){E+=String.fromCharCode(S)});
return E};
_.rkt=function(k){var E=[];lRC(k,function(S){E.push(S)});
return E};
_.k2=function(k){var E=k.length,S=E*3/4;S%3?S=Math.floor(S):_.ce("=.",k[E-1])&&(S=_.ce("=.",k[E-2])?S-2:S-1);var R=new Uint8Array(S),V=0;lRC(k,function(N){R[V++]=N});
return V!==S?R.subarray(0,V):R};
lRC=function(k,E){function S(m){for(;R<k.length;){var a=k.charAt(R++),T=k7[a];if(T!=null)return T;if(!_.Jh(a))throw Error("H`"+a);}return m}
s1Y();for(var R=0;;){var V=S(-1),N=S(0),h=S(64),J=S(64);if(J===64&&V===-1)break;E(V<<2|N>>4);h!=64&&(E(N<<4&240|h>>2),J!=64&&E(h<<6&192|J))}};
s1Y=function(){if(!k7){k7={};for(var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),E=["+/=","+/","-_=","-_.","-_"],S=0;S<5;S++){var R=k.concat(E[S].split(""));dA8[S]=R;for(var V=0;V<R.length;V++){var N=R[V];k7[N]===void 0&&(k7[N]=V)}}}};var CCi=typeof Uint8Array!=="undefined",ble=!_.qX&&typeof btoa==="function",Zlh=/[-_.]/g,fRb={"-":"+",_:"/",".":"="},Hz={};var F8,qj8;F8=function(k,E){if(E!==Hz)throw Error("J");this.JSC$8815_value_=k;if(k!=null&&k.length===0)throw Error("I");};
_.pj=function(){return MhC||(MhC=new F8(null,Hz))};
qj8=function(k){return new Uint8Array(d2m(k)||0)};
F8.prototype.isEmpty=function(){return this.JSC$8815_value_==null};
F8.prototype.sizeBytes=function(){var k=d2m(this);return k?k.length:0};
var d2m=function(k){if(Hz!==Hz)throw Error("J");var E=k.JSC$8815_value_;E==null||CCi&&E!=null&&E instanceof Uint8Array||(typeof E==="string"?E=dAm(E):(_.GY(E),E=null));return E==null?E:k.JSC$8815_value_=E},MhC;var lR1=void 0;var RC=typeof Symbol==="function"&&typeof Symbol()==="symbol",ziC=ST("jas",void 0,!0),v21=ST(void 0,"0di"),RS=ST(void 0,"1oa"),ua=ST(void 0,Symbol()),RYj=ST(void 0,"0ub"),NUh=ST(void 0,"0ubs"),gJR=ST(void 0,"0ubsb"),FTl=ST(void 0,"0actk"),yP=ST("m_m","messagePrototypeMarker",!0),tIl=ST(void 0,"vps"),kGm=ST();var zi1,qjm,zG,Q15;zi1={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};qjm=Object.defineProperties;_.Vd=RC?ziC:"internalArrayState";Q15=[];i4(Q15,7);zG=Object.freeze(Q15);var gU={},eT={},OlA=function(k,E,S){this.iterable=k;this.mapper=E;this.thisArg=S};
OlA.prototype.next=function(){var k=this.iterable.next();k.done||(k.value=this.mapper.call(this.thisArg,k.value));return k};
OlA.prototype[Symbol.iterator]=function(){return this};
var GIC=Object.freeze({}),rY={};_.CCA=x2(function(k){return k!==null&&k!==void 0});var NYb=x2(function(k){return typeof k==="number"}),VT1=x2(function(k){return typeof k==="string"}),n2j=x2(function(k){return typeof k==="boolean"}),kYd=x2(function(k){return k!=null&&typeof k==="object"&&typeof k.then==="function"}),bCA=x2(function(k){return typeof k==="function"}),cX=x2(function(k){return!!k&&(typeof k==="object"||typeof k==="function")});var ICm=typeof _.Vt.BigInt==="function"&&typeof _.Vt.BigInt(0)==="bigint";var xpj=x2(function(k){return ICm?k>=E2T&&k<=S52:k[0]==="-"?ij1(k,RAd):ij1(k,VTC)}),RAd=Number.MIN_SAFE_INTEGER.toString(),E2T=ICm?BigInt(Number.MIN_SAFE_INTEGER):void 0,VTC=Number.MAX_SAFE_INTEGER.toString(),S52=ICm?BigInt(Number.MAX_SAFE_INTEGER):void 0;var NY2=typeof Uint8Array.prototype.slice==="function",DC=0,$2=0,cCI;var JR,tR,Cj,at,Y5e;JR=typeof BigInt==="function"?BigInt.asIntN:void 0;_.P0=typeof BigInt==="function"?BigInt.asUintN:void 0;tR=Number.isSafeInteger;Cj=Number.isFinite;at=Math.trunc;Y5e=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var TUh={};var Ojh={},IC8=function(){try{var k=function(){return oMm(Map,[],this.constructor)};
_.y(k,Map);MX(new k);return!1}catch(E){return!0}}(),EU=function(){this.JSC$8834_map_=new Map};
_.I=EU.prototype;_.I.get=function(k){return this.JSC$8834_map_.get(k)};
_.I.set=function(k,E){this.JSC$8834_map_.set(k,E);this.size=this.JSC$8834_map_.size;return this};
_.I.delete=function(k){k=this.JSC$8834_map_.delete(k);this.size=this.JSC$8834_map_.size;return k};
_.I.clear=function(){this.JSC$8834_map_.clear();this.size=this.JSC$8834_map_.size};
_.I.has=function(k){return this.JSC$8834_map_.has(k)};
_.I.entries=function(){return this.JSC$8834_map_.entries()};
_.I.keys=function(){return this.JSC$8834_map_.keys()};
_.I.values=function(){return this.JSC$8834_map_.values()};
_.I.forEach=function(k,E){return this.JSC$8834_map_.forEach(k,E)};
EU.prototype[Symbol.iterator]=function(){return this.entries()};
var jI=function(){if(IC8)return Object.setPrototypeOf(EU.prototype,Map.prototype),Object.defineProperties(EU.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),EU;var k=function(){return oMm(Map,[],this.constructor)};
_.y(k,Map);return k}(),UA=function(k,E,S,R){S=S===void 0?lCh:S;
R=R===void 0?lCh:R;var V=jI.call(this)||this;V.arrayState=k[_.Vd]|0;V.valueCtor=E;V.keyToApi=S;V.valueToApi=V.valueCtor?q5R:R;for(var N=0;N<k.length;N++){var h=k[N],J=S(h[0],!1,!0),m=h[1];E?m===void 0&&(m=null):m=R(h[1],!1,!0,void 0,void 0,V.arrayState);jI.prototype.set.call(V,J,m)}return V};
_.y(UA,jI);var n25=function(k){if(k.arrayState&2)throw Error("N");},X0l=function(k){return Array.from(jI.prototype.entries.call(k))};
_.I=UA.prototype;_.I.clear=function(){n25(this);jI.prototype.clear.call(this)};
_.I.delete=function(k){n25(this);return jI.prototype.delete.call(this,this.keyToApi(k,!0,!1))};
_.I.entries=function(){if(this.valueCtor){var k=jI.prototype.keys.call(this);k=new OlA(k,zAb,this)}else k=jI.prototype.entries.call(this);return k};
_.I.values=function(){if(this.valueCtor){var k=jI.prototype.keys.call(this);k=new OlA(k,UA.prototype.get,this)}else k=jI.prototype.values.call(this);return k};
_.I.forEach=function(k,E){this.valueCtor?jI.prototype.forEach.call(this,function(S,R,V){k.call(E,V.get(R),R,V)}):jI.prototype.forEach.call(this,k,E)};
_.I.set=function(k,E){n25(this);k=this.keyToApi(k,!0,!1);return k==null?this:E==null?(jI.prototype.delete.call(this,k),this):jI.prototype.set.call(this,k,this.valueToApi(E,!0,!0,this.valueCtor,!1,this.arrayState))};
_.I.has=function(k){return jI.prototype.has.call(this,this.keyToApi(k,!1,!1))};
_.I.get=function(k){k=this.keyToApi(k,!1,!1);var E=jI.prototype.get.call(this,k);if(E!==void 0){var S=this.valueCtor;return S?(S=this.valueToApi(E,!1,!0,S,this.callToMutableOnAccess,this.arrayState),S!==E&&jI.prototype.set.call(this,k,S),S):E}};
UA.prototype[Symbol.iterator]=function(){return this.entries()};
UA.prototype.toJSON=void 0;var QCA;var hYe=function(){},nWb=function(k,E){for(var S in k)!isNaN(S)&&E(k,+S,k[S])},JRR=function(k){var E=new hYe;
nWb(k,function(S,R,V){E[R]=dY(V)});
E.reviveUnknownFields=k.reviveUnknownFields;return E},EWe={reviveIntoImmutable:!0};var iPI;var w0I,PaC;var ijC,CP,oW,K2,hAp,h2,Uc,JC8,cCd,ez,mpd,a4,wF,PS;ijC=_.jT(0);_.Sz={};_.R4=function(k,E,S,R,V){E=CP(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E,S,V);if(E!==null||R&&k.noLegacyNull!==eT)return E};
CP=function(k,E,S,R){if(E===-1)return null;var V=E+(S?0:-1),N=k.length-1;if(!(N<1+(S?0:-1))){if(V>=N){var h=k[N];if(h!=null&&typeof h==="object"&&h.constructor===Object){S=h[E];var J=!0}else if(V===N)S=h;else return}else S=k[V];if(R&&S!=null){R=R(S);if(R==null)return R;if(!Object.is(R,S))return J?h[E]=R:k[V]=R,R}return S}};
_.PV=function(k,E,S,R){sA(k);var V=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q2(V,V[_.Vd]|0,E,S,R);return k};
_.Vk=function(k,E,S){k=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $2h(k,k[_.Vd]|0,E,S)!==void 0};
_.Nx=function(k,E,S,R){var V=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return $2h(V,V[_.Vd]|0,E,K2(k,R,S))!==void 0};
_.mb=function(k){return k===GIC?2:4};
_.I4=function(k,E){k=_.R4(k,E,void 0,void 0,rRh);return k==null?_.pj():k};
oW=function(k,E,S,R){sA(k);var V=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=V[_.Vd]|0;if(R==null){var h=LTI(V);if(jtA(h,V,N,S)===E)h.set(S,0);else return k}else N=D2e(V,N,S,E);q2(V,N,E,R);return k};
_.nL=function(k,E,S,R){var V=k[_.Vd]|0,N=u4(V);V=D2e(k,V,S,E,N);q2(k,V,E,R,N)};
K2=function(k,E,S){return _.iT(k,E)===S?S:-1};
_.iT=function(k,E){k=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jtA(LTI(k),k,void 0,E,void 0)};
hAp=function(k,E,S){var R=k[_.Vd]|0,V=u4(R),N=CP(k,S,V);if(N!=null&&N[yP]===gU){if(!wY(N))return Zx(N),N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var h=N.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(N)&&(h=N);if(h){var J=h[_.Vd]|0;J&2&&(h=ba(h,J))}h=v0(h,E,!0);h!==N&&q2(k,R,S,h,V);return h};
_.Tp=function(k,E,S,R){var V=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=V[_.Vd]|0;E=$2h(V,N,E,S,R);if(E==null)return E;N=V[_.Vd]|0;if(!wY(k,N)){var h=MTC(E);h!==E&&(Zx(k)&&(V=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,N=V[_.Vd]|0),E=h,N=q2(V,N,S,E,R),la(V,N))}return E};
_.cy=function(k,E,S,R){var V=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return fxm(k,V,V[_.Vd]|0,E,S,R,!1,!0)};
_.Xo=function(k,E,S,R){S=vWR(S);_.PV(k,E,S,R);S&&!wY(S)&&la(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return k};
_.gk=function(k,E,S,R){R=vWR(R);oW(k,E,S,R);R&&!wY(R)&&la(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return k};
h2=function(k,E,S){sA(k);var R=k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=R[_.Vd]|0;if(S==null)return q2(R,V,E),k;for(var N=S===zG?7:S[_.Vd]|0,h=N,J=GG(N),m=J||Object.isFrozen(S),a=!0,T=!0,w=0;w<S.length;w++){var P=S[w];J||(P=wY(P),a&&(a=!P),T&&(T=P))}J||(N=a?13:5,N=T?N&-4097:N|4096);m&&N===h||(S=dY(S),h=0,N=QP(N,V));N!==h&&i4(S,N);V=q2(R,V,E,S);2&N||!(4096&N||16&N)||la(R,V);return k};
Uc=function(k,E,S,R){ZPt(k,E,S,R);return k};
JC8=function(k,E,S){ZPt(k,E,J2,void 0,S,1,!0);return k};
_.cS=function(k,E,S){k=_.R4(k,E,void 0,S);E=typeof k;k=k==null?k:E==="bigint"?_.jT((0,_.P0)(64,k)):_.kW(k)?E==="string"?_.u8I(k):_.ACh(k):void 0;return k};
_.mV=function(k,E){var S=S===void 0?!1:S;var R;return(R=_.BYA(_.R4(k,E)))!=null?R:S};
_.eo=function(k,E,S){S=S===void 0?0:S;var R;return(R=_.ia(_.R4(k,E)))!=null?R:S};
cCd=function(k,E){var S=S===void 0?0:S;k=_.Fde(_.R4(k,E));return k!=null?k:S};
ez=function(k,E,S){S=S===void 0?ijC:S;var R;return(R=_.DpI(_.R4(k,E)))!=null?R:S};
mpd=function(k){var E=E===void 0?ijC:E;var S;return(S=_.cS(k,23))!=null?S:E};
a4=function(k,E){var S=S===void 0?0:S;var R;return(R=_.R4(k,E,void 0,void 0,_.O5))!=null?R:S};
_.t2=function(k,E,S,R){S=S===void 0?"":S;var V;return(V=_.F3(_.R4(k,E,R)))!=null?V:S};
_.Tn=function(k,E){var S=S===void 0?0:S;var R;return(R=_.SI(_.R4(k,E)))!=null?R:S};
wF=function(k,E){var S=S===void 0?"0":S;k=jCm(_.R4(k,E),!0);return k!=null?k:S};
PS=function(k,E,S){return _.t2(k,K2(k,S,E))};
_.BS=function(k,E,S,R){return _.Tp(k,E,K2(k,R,S),void 0)};
_.Xb=function(k,E){return _.F3(_.R4(k,E,void 0,_.Sz))};
_.w7=function(k,E,S){return _.PV(k,E,P4i(S))};
_.wW=function(k,E,S){return _.EX(k,E,P4i(S),!1)};
_.Y7=function(k,E,S){return _.PV(k,E,_.nP(S))};
_.AD=function(k,E,S){return _.PV(k,E,eI(S))};
_.uh=function(k,E,S){return _.PV(k,E,YW(S))};
_.K9=function(k,E,S,R){return _.EX(k,E,YW(S),"",R)};
_.wv=function(k,E,S){return _.PV(k,E,S==null?S:_.EA(S))};
_.WS=function(k,E,S){return _.EX(k,E,S==null?S:_.EA(S),0)};var VN=function(k,E,S){this.buffer=k;if(S&&!E)throw Error();this.JSC$8846_isImmutable=E};var eAz=function(k,E,S,R){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8849_start_=0;this.init(k,E,S,R)},F9,tT5,TYC,wzY,P4A,BYp,tr1,aCd;
_.I=eAz.prototype;_.I.init=function(k,E,S,R){var V=R===void 0?{}:R;R=V.aliasBytesFields===void 0?!1:V.aliasBytesFields;V=V.treatNewDataAsImmutable===void 0?!1:V.treatNewDataAsImmutable;this.aliasBytesFields=R;this.treatNewDataAsImmutable=V;k&&(k=stC(k,this.treatNewDataAsImmutable),this.bytes_=k.buffer,this.bytesAreImmutable_=k.JSC$8846_isImmutable,this.JSC$8849_start_=E||0,this.end_=S!==void 0?this.JSC$8849_start_+S:this.bytes_.length,this.cursor_=this.JSC$8849_start_)};
_.I.free=function(){this.clear();aCd.length<100&&aCd.push(this)};
_.I.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8849_start_=0;this.aliasBytesFields=!1};
_.I.reset=function(){this.cursor_=this.JSC$8849_start_};
_.I.atEnd=function(){return this.cursor_==this.end_};
_.yk=function(k,E){var S=0,R=0,V=0,N=k.bytes_,h=k.cursor_;do{var J=N[h++];S|=(J&127)<<V;V+=7}while(V<32&&J&128);if(V>32)for(R|=(J&127)>>4,V=3;V<32&&J&128;V+=7)J=N[h++],R|=(J&127)<<V;F9(k,h);if(!(J&128))return E(S>>>0,R>>>0);throw Error();};
F9=function(k,E){k.cursor_=E;if(E>k.end_)throw Error();};
_.o4=function(k){var E=k.bytes_,S=k.cursor_,R=E[S++],V=R&127;if(R&128&&(R=E[S++],V|=(R&127)<<7,R&128&&(R=E[S++],V|=(R&127)<<14,R&128&&(R=E[S++],V|=(R&127)<<21,R&128&&(R=E[S++],V|=R<<28,R&128&&E[S++]&128&&E[S++]&128&&E[S++]&128&&E[S++]&128&&E[S++]&128)))))throw Error();F9(k,S);return V};
_.X9=function(k){var E=k.bytes_,S=k.cursor_,R=E[S],V=E[S+1],N=E[S+2];E=E[S+3];F9(k,k.cursor_+4);return(R<<0|V<<8|N<<16|E<<24)>>>0};
tT5=function(k){var E=_.X9(k);k=_.X9(k);return eAe(E,k)};
TYC=function(k){var E=_.X9(k);k=(E>>31)*2+1;var S=E>>>23&255;E&=8388607;return S==255?E?NaN:k*Infinity:S==0?k*1.401298464324817E-45*E:k*Math.pow(2,S-150)*(E+8388608)};
wzY=function(k){var E=_.X9(k),S=_.X9(k);k=(S>>31)*2+1;var R=S>>>20&2047;E=4294967296*(S&1048575)+E;return R==2047?E?NaN:k*Infinity:R==0?k*4.9E-324*E:k*Math.pow(2,R-1075)*(E+4503599627370496)};
P4A=function(k){for(var E=0,S=k.cursor_,R=S+10,V=k.bytes_;S<R;){var N=V[S++];E|=N;if((N&128)===0)return F9(k,S),!!(E&127)}throw Error();};
BYp=function(k,E){if(E<0)throw Error();var S=k.cursor_;E=S+E;if(E>k.end_)throw Error();k.cursor_=E;return S};
tr1=function(k,E){if(E==0)return _.pj();var S=BYp(k,E);k.aliasBytesFields&&k.bytesAreImmutable_?S=k.bytes_.subarray(S,S+E):(k=k.bytes_,E=S+E,S=S===E?new Uint8Array(0):NY2?k.slice(S,E):new Uint8Array(k.subarray(S,E)));return S.length==0?_.pj():new F8(S,Hz)};
aCd=[];var WdC=function(k,E,S,R){if(aCd.length){var V=aCd.pop();V.init(k,E,S,R);k=V}else k=new eAz(k,E,S,R);this.decoder_=k;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Y5z(this,R)},Y5z=function(k,E){E=E===void 0?{}:E;
k.discardUnknownFields=E.discardUnknownFields===void 0?!1:E.discardUnknownFields},Pu1=function(k,E,S,R){if(Fdz.length){var V=Fdz.pop();
Y5z(V,R);V.decoder_.init(k,E,S,R);return V}return new WdC(k,E,S,R)},mUj,aFI,gF,yC8,Fdz;
WdC.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;Fdz.length<100&&Fdz.push(this)};
WdC.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
mUj=function(k){if(k.decoder_.atEnd())return!1;k.fieldCursor_=k.decoder_.cursor_;var E=_.o4(k.decoder_)>>>0,S=E>>>3;E&=7;if(!(E>=0&&E<=5))throw Error();if(S<1)throw Error();k.nextField_=S;k.nextWireType_=E;return!0};
aFI=function(k){switch(k.nextWireType_){case 0:k.nextWireType_!=0?aFI(k):P4A(k.decoder_);break;case 1:k=k.decoder_;F9(k,k.cursor_+8);break;case 2:if(k.nextWireType_!=2)aFI(k);else{var E=_.o4(k.decoder_)>>>0;k=k.decoder_;F9(k,k.cursor_+E)}break;case 5:k=k.decoder_;F9(k,k.cursor_+4);break;case 3:E=k.nextField_;do{if(!mUj(k))throw Error();if(k.nextWireType_==4){if(k.nextField_!=E)throw Error();break}aFI(k)}while(1);break;default:throw Error();}};
gF=function(k,E,S){var R=k.decoder_.end_,V=_.o4(k.decoder_)>>>0;V=k.decoder_.cursor_+V;var N=V-R;N<=0&&(k.decoder_.end_=V,S(E,k,void 0,void 0,void 0),N=V-k.decoder_.cursor_);if(N)throw Error();k.decoder_.cursor_=V;k.decoder_.end_=R;return E};
yC8=function(k){var E=_.o4(k.decoder_)>>>0;k=k.decoder_;var S=BYp(k,E);k=k.bytes_;if(Eb2){var R=k,V;(V=kIj)||(V=kIj=new TextDecoder("utf-8",{fatal:!0}));E=S+E;R=S===0&&E===R.length?R:R.subarray(S,E);try{var N=V.decode(R)}catch(a){if(CUb===void 0){try{V.decode(new Uint8Array([128]))}catch(T){}try{V.decode(new Uint8Array([97])),CUb=!0}catch(T){CUb=!1}}!CUb&&(kIj=void 0);throw a;}}else{N=S;E=N+E;S=[];for(var h=null,J,m;N<E;)J=k[N++],J<128?S.push(J):J<224?N>=E?R1():(m=k[N++],J<194||(m&192)!==128?(N--,
R1()):S.push((J&31)<<6|m&63)):J<240?N>=E-1?R1():(m=k[N++],(m&192)!==128||J===224&&m<160||J===237&&m>=160||((V=k[N++])&192)!==128?(N--,R1()):S.push((J&15)<<12|(m&63)<<6|V&63)):J<=244?N>=E-2?R1():(m=k[N++],(m&192)!==128||(J<<28)+(m-144)>>30!==0||((V=k[N++])&192)!==128||((R=k[N++])&192)!==128?(N--,R1()):(J=(J&7)<<18|(m&63)<<12|(V&63)<<6|R&63,J-=65536,S.push((J>>10&1023)+55296,(J&1023)+56320))):R1(),S.length>=8192&&(h=ilh(h,S),S.length=0);N=ilh(h,S)}return N};
_.o2d=function(k){var E=_.o4(k.decoder_)>>>0;return tr1(k.decoder_,E)};
_.Xz8=function(k,E,S){var R=_.o4(k.decoder_)>>>0;for(R=k.decoder_.cursor_+R;k.decoder_.cursor_<R;)S.push(E(k.decoder_))};
Fdz=[];var g2d=function(k,E){this.JSC$8856_lo=k>>>0;this.JSC$8856_hi=E>>>0},rJI=function(k){k=BigInt.asUintN(64,k);
return new g2d(Number(k&BigInt(4294967295)),Number(k>>BigInt(32)))},qAl=function(k){if(!k)return Upz||(Upz=new g2d(0,0));
if(!/^\d+$/.test(k))return null;ZC(k);return new g2d(DC,$2)},Upz,AJh=function(k,E){this.JSC$8858_lo=k>>>0;
this.JSC$8858_hi=E>>>0},lxt=function(k){if(!k)return HjC||(HjC=new AJh(0,0));
if(!/^-?\d+$/.test(k))return null;ZC(k);return new AJh(DC,$2)},HjC;var UU=function(){this.JSC$8860_buffer_=[]},tJ,wk,Kd2;
UU.prototype.length=function(){return this.JSC$8860_buffer_.length};
UU.prototype.end=function(){var k=this.JSC$8860_buffer_;this.JSC$8860_buffer_=[];return k};
tJ=function(k,E,S){for(;S>0||E>127;)k.JSC$8860_buffer_.push(E&127|128),E=(E>>>7|S<<25)>>>0,S>>>=7;k.JSC$8860_buffer_.push(E)};
wk=function(k,E){for(;E>127;)k.JSC$8860_buffer_.push(E&127|128),E>>>=7;k.JSC$8860_buffer_.push(E)};
_.xUt=function(k,E){if(E>=0)wk(k,E);else{for(var S=0;S<9;S++)k.JSC$8860_buffer_.push(E&127|128),E>>=7;k.JSC$8860_buffer_.push(1)}};
Kd2=function(k,E){ZC(E);aCt(function(S,R){tJ(k,S>>>0,R>>>0)})};
UU.prototype.writeUint8=function(k){this.JSC$8860_buffer_.push(k>>>0&255)};
_.aS=function(k,E){k.JSC$8860_buffer_.push(E>>>0&255);k.JSC$8860_buffer_.push(E>>>8&255);k.JSC$8860_buffer_.push(E>>>16&255);k.JSC$8860_buffer_.push(E>>>24&255)};
UU.prototype.writeInt8=function(k){this.JSC$8860_buffer_.push(k>>>0&255)};var pz8,hJ,jSe,fFA,GGC;pz8=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new UU};
hJ=function(k,E){E.length!==0&&(k.blocks_.push(E),k.totalLength_+=E.length)};
_.ACT=function(k,E){_.er(k,E,2);E=k.encoder_.end();hJ(k,E);E.push(k.totalLength_);return E};
_.rCd=function(k,E){var S=E.pop();for(S=k.totalLength_+k.encoder_.length()-S;S>127;)E.push(S&127|128),S>>>=7,k.totalLength_++;E.push(S);k.totalLength_++};
_.er=function(k,E,S){wk(k.encoder_,E*8+S)};
jSe=function(k,E,S){if(S!=null)switch(zYh(S),_.er(k,E,1),typeof S){case "number":k=k.encoder_;hAA(S);_.aS(k,DC);_.aS(k,$2);break;case "bigint":S=rJI(S);k=k.encoder_;E=S.JSC$8856_hi;_.aS(k,S.JSC$8856_lo);_.aS(k,E);break;default:S=qAl(S),k=k.encoder_,E=S.JSC$8856_hi,_.aS(k,S.JSC$8856_lo),_.aS(k,E)}};
fFA=function(k,E,S){_.er(k,E,2);wk(k.encoder_,S.length);hJ(k,k.encoder_.end());hJ(k,S)};
GGC=function(k,E,S,R){S!=null&&(E=_.ACT(k,E),R(S,k),_.rCd(k,E))};var QtI,u8Y,xp5,Ld4,jC8,$p4,fC5,bjY,Zj8;QtI=NU();u8Y=NU();xp5=NU();Ld4=NU();jC8=NU();_.DpY=NU();_.HS=NU();$p4=NU();fC5=NU();_.v2C=NU();bjY=NU();Zj8=NU();_.dpd=NU();_.sC8=NU();_.iu=function(k,E,S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k,E,S)};
_.iu.prototype.toJSON=function(){return $W(this)};
_.iu.prototype.serialize=function(k){return JSON.stringify($W(this,k))};
var zsR=function(k,E){if(E==null||E=="")return new k;E=JSON.parse(E);if(!Array.isArray(E))throw Error("V");return new k(GI1(E))};
_.iu.prototype.getExtension=function(k){VIt(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k.fieldIndex);SAR(this,k.fieldIndex);return k.ctor?k.isRepeated?k.getExtensionFn(this,k.ctor,k.fieldIndex,_.mb(),k.JSC$8871_hasMessageId):k.getExtensionFn(this,k.ctor,k.fieldIndex,k.JSC$8871_hasMessageId):k.isRepeated?k.getExtensionFn(this,k.fieldIndex,_.mb(),k.JSC$8871_hasMessageId):k.getExtensionFn(this,k.fieldIndex,k.defaultValue,k.JSC$8871_hasMessageId)};
_.iu.prototype.clone=function(){var k=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=k[_.Vd]|0;return HPI(this,k,E)?U2A(this,k,!0):new this.constructor(ba(k,E,!1))};
_.iu.prototype[yP]=gU;_.iu.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var IS=function(k,E,S){this.$$binaryReaderFn=k;this.$$binaryWriterFn=E;k=KP(QtI);this.$$isMsg=!!k&&S===k||!1},VrI=OPb(function(k,E,S,R,V){if(k.nextWireType_!==2)return!1;
gF(k,hAp(E,R,S),V);return!0},kBm),NkI=OPb(function(k,E,S,R,V){if(k.nextWireType_!==2)return!1;
gF(k,hAp(E,R,S),V);return!0},kBm),YXi=Symbol(),igl=Symbol(),cJe=Symbol(),yJI=Symbol(),Tkj=Symbol(),EJi,SXj;var lFt,lCT,KL,MT4,q5C,zA2,QCp,A2,GYC,C45,rF,kG8,EWz,SAC,RY5,VId,NUT,Ix2,nW2,dF,iPd,hYz;lFt=function(k,E){var S=new pz8;oJh(k.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S,ng(YXi,Bkj,W$t,E));hJ(S,S.encoder_.end());k=new Uint8Array(S.totalLength_);E=S.blocks_;for(var R=E.length,V=0,N=0;N<R;N++){var h=E[N];k.set(h,V);V+=h.length}S.blocks_=[k];return k};
lCT=OPb(function(k,E,S,R,V){if(k.nextWireType_!==2)return!1;k=gF(k,v0([void 0,void 0],R,!0),V);k=dY(k);R=E[_.Vd]|0;V=u4(R);if(R&2)throw Error();var N=CP(E,S,V);N instanceof UA?(N.arrayState&2)!=0?(N=X0l(N),N.push(k),q2(E,R,S,N,V)):(E=N,S=E.keyToApi(k[0],!1,!0),k=k[1],k=E.valueCtor?k===void 0?null:k:E.valueToApi(k,!1,!0,void 0,!1,E.arrayState),jI.prototype.set.call(E,S,k)):Array.isArray(N)?((N[_.Vd]|0)&2&&(N=u3C(N),q2(E,R,S,N,V)),N.push(k)):q2(E,R,S,[k],V);return!0},function(k,E,S,R,V){if(E instanceof
UA)E.forEach(function(J,m){GGC(k,S,v0([m,
J],R,!1),V)});
else if(Array.isArray(E))for(var N=0;N<E.length;N++){var h=E[N];Array.isArray(h)&&GGC(k,S,v0(h,R,!1),V)}});
KL=_.cU(function(k,E,S){if(k.nextWireType_!==1)return!1;_.m$(E,S,wzY(k.decoder_));return!0},K$t,Zj8);
MT4=_.cU(function(k,E,S,R){if(k.nextWireType_!==1)return!1;_.nL(E,S,R,wzY(k.decoder_));return!0},K$t,Zj8);
q5C=_.cU(function(k,E,S){if(k.nextWireType_!==5)return!1;_.m$(E,S,TYC(k.decoder_));return!0},pUt,bjY);
zA2=_.Hge(function(k,E,S){if(k.nextWireType_!==5&&k.nextWireType_!==2)return!1;E=_.Sr(E,E[_.Vd]|0,S);k.nextWireType_==2?_.Xz8(k,TYC,E):E.push(TYC(k.decoder_));return!0},function(k,E,S){E=_.UUI(_.O5,E,!0);
if(E!=null&&E.length)for(_.er(k,S,2),wk(k.encoder_,E.length*4),S=0;S<E.length;S++){var R=k.encoder_;mpt(E[S]);_.aS(R,DC)}},bjY);
QCp=_.cU(function(k,E,S,R){if(k.nextWireType_!==5)return!1;_.nL(E,S,R,TYC(k.decoder_));return!0},pUt,bjY);
_.OjC=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;_.m$(E,S,_.yk(k.decoder_,_.wz1));return!0},_.TB,_.HS);
_.pL=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;_.m$(E,S,_.yk(k.decoder_,b4));return!0},_.TB,_.HS);
A2=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;k=_.yk(k.decoder_,b4);_.m$(E,S,k===0?void 0:k);return!0},_.TB,_.HS);
GYC=_.cU(function(k,E,S,R){if(k.nextWireType_!==0)return!1;_.nL(E,S,R,_.yk(k.decoder_,b4));return!0},_.TB,_.HS);
C45=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;_.m$(E,S,_.yk(k.decoder_,_.vz));return!0},uoe,$p4);
rF=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;_.m$(E,S,_.yk(k.decoder_,eAe));return!0},uoe,$p4);
_.uT=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;_.m$(E,S,_.o4(k.decoder_));return!0},L$b,Ld4);
kG8=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;k=_.o4(k.decoder_);_.m$(E,S,k===0?void 0:k);return!0},L$b,Ld4);
EWz=_.cU(function(k,E,S,R){if(k.nextWireType_!==0)return!1;_.nL(E,S,R,_.o4(k.decoder_));return!0},L$b,Ld4);
SAC=_.cU(function(k,E,S){if(k.nextWireType_!==1)return!1;_.m$(E,S,tT5(k.decoder_));return!0},_.DUh,_.v2C);
RY5=_.Hge(function(k,E,S){if(k.nextWireType_!==1&&k.nextWireType_!==2)return!1;E=_.Sr(E,E[_.Vd]|0,S);k.nextWireType_==2?_.Xz8(k,tT5,E):E.push(tT5(k.decoder_));return!0},function(k,E,S){E=_.UUI(fCj,E,!1);
if(E!=null)for(var R=0;R<E.length;R++)jSe(k,S,E[R])},_.v2C);
_.x7=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;_.m$(E,S,P4A(k.decoder_));return!0},$Ui,u8Y);
_.LL=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;k=P4A(k.decoder_);_.m$(E,S,k===!1?void 0:k);return!0},$Ui,u8Y);
VId=_.cU(function(k,E,S,R){if(k.nextWireType_!==0)return!1;_.nL(E,S,R,P4A(k.decoder_));return!0},$Ui,u8Y);
_.Ds=_.cU(function(k,E,S){if(k.nextWireType_!==2)return!1;_.m$(E,S,yC8(k));return!0},vJ1,xp5);
_.$7=_.cU(function(k,E,S){if(k.nextWireType_!==2)return!1;k=yC8(k);_.m$(E,S,k===""?void 0:k);return!0},vJ1,xp5);
_.fL=_.cU(function(k,E,S,R){if(k.nextWireType_!==2)return!1;_.nL(E,S,R,yC8(k));return!0},vJ1,xp5);
NUT=_.Hge(function(k,E,S){if(k.nextWireType_!==2)return!1;k=yC8(k);_.Sr(E,E[_.Vd]|0,S).push(k);return!0},function(k,E,S){E=_.UUI(_.F3,E,!0);
if(E!=null)for(var R=0;R<E.length;R++){var V=k,N=S,h=E[R];h!=null&&fFA(V,N,mAI(h))}},xp5);
Ix2=void 0;Ix2=Ix2===void 0?QtI:Ix2;_.vS=new IS(function(k,E,S,R,V){if(k.nextWireType_!==2)return!1;R=v0(void 0,R,!0);_.Sr(E,E[_.Vd]|0,S).push(R);gF(k,R,V);return!0},function(k,E,S,R,V){if(Array.isArray(E))for(var N=0;N<E.length;N++)bgA(k,E[N],S,R,V)},Ix2);
_.bT=OPb(function(k,E,S,R,V,N){if(k.nextWireType_!==2)return!1;var h=E[_.Vd]|0;D2e(E,h,N,S,u4(h));E=hAp(E,R,S);gF(k,E,V);return!0},bgA);
_.Zs=_.cU(function(k,E,S){if(k.nextWireType_!==2)return!1;_.m$(E,S,_.o2d(k));return!0},_.Zgi,_.dpd);
nW2=_.cU(function(k,E,S,R){if(k.nextWireType_!==2)return!1;_.nL(E,S,R,_.o2d(k));return!0},_.Zgi,_.dpd);
dF=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;_.m$(E,S,_.o4(k.decoder_)>>>0);return!0},dU1,jC8);
iPd=_.cU(function(k,E,S,R){if(k.nextWireType_!==0)return!1;_.nL(E,S,R,_.o4(k.decoder_)>>>0);return!0},dU1,jC8);
_.sU=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;_.m$(E,S,_.o4(k.decoder_));return!0},_.sSj,_.sC8);
_.lT=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;k=_.o4(k.decoder_);_.m$(E,S,k===0?void 0:k);return!0},_.sSj,_.sC8);
hYz=_.cU(function(k,E,S){if(k.nextWireType_!==0)return!1;_.m$(E,S,_.yk(k.decoder_,tTj));return!0},function(k,E,S){E=$pC(E);
if(E!=null&&(MIC(E),E!=null))switch(_.er(k,S,0),typeof E){case "number":k=k.encoder_;S=E;E=S<0;S=Math.abs(S)*2;hAA(S);S=DC;var R=$2;E&&(S==0?R==0?R=S=4294967295:(R--,S=4294967295):S--);DC=S;$2=R;tJ(k,DC,$2);break;case "bigint":k=k.encoder_;E=E<<BigInt(1)^E>>BigInt(63);DC=Number(BigInt.asUintN(32,E));$2=Number(BigInt.asUintN(32,E>>BigInt(32)));tJ(k,DC,$2);break;default:Kd2(k.encoder_,E)}},fC5);var m2p=function(){var k=JRC,E=cRY;this.fieldIndex=175237375;this.ctor=E;this.isRepeated=0;this.getExtensionFn=_.Tp;this.defaultValue=void 0;this.JSC$8871_hasMessageId=k.messageId!=null?rY:void 0};
m2p.prototype.register=function(){MX(this)};var eYp=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(eYp,_.iu);var axd=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(axd,_.iu);var GBI=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(GBI,_.iu);var tIj=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(tIj,_.iu);var TUT=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(TUT,_.iu);var w0Y=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(w0Y,_.iu);var Pa4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Pa4,_.iu);Pa4.prototype.getData=function(){return _.I4(this,2)};var BUY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(BUY,_.iu);var YAC=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(YAC,_.iu);YAC.prototype.getStyle=function(){return _.Tp(this,eYp,1)};var oS=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(oS,_.iu);oS.prototype.getPayloadCase=function(){return _.iT(this,UX)};
oS.prototype.getStyle=function(){return _.BS(this,YAC,6,UX)};
var WT8=function(){var k=new oS,E=new TUT;return _.gk(k,7,UX,E)},FTj=function(){var k=new oS,E=new w0Y;
return _.gk(k,8,UX,E)},UX=[1,
2,3,4,5,6,7,8];var yRC=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(yRC,_.iu);var oW2=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(oW2,_.iu);var X0j=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(X0j,_.iu);var gWj=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(gWj,_.iu);var U2p=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(U2p,_.iu);var HPY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(HPY,_.iu);var KTp=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(KTp,_.iu);var p0Y=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(p0Y,_.iu);p0Y.prototype.getData=function(){return _.I4(this,2)};var ARA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(ARA,_.iu);var Ogb=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Ogb,_.iu);Ogb.prototype.getPayloadCase=function(){return _.iT(this,Mx)};
var Mx=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var qx=function(k,E){k=Error.call(this,k);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.code=E===void 0?2:E};
_.y(qx,Error);var rRC=Promise;var u34=function(k){this.channelPromise=k};
u34.prototype.send=function(k,E,S){this.channelPromise.then(function(R){R.send(k,E,S)})};var x25=function(k,E){this.data=k;this.channel=E};
x25.prototype.reply=function(k,E,S){this.channel.send(k,E,S)};var LTY=function(k){this.JSC$8937_port_=k};
LTY.prototype.send=function(k,E,S){S=S===void 0?[]:S;var R=new MessageChannel;jtp(R.port1,E);this.JSC$8937_port_.postMessage(k,[R.port2].concat(S))};
var D2z=function(k,E){jtp(k,E);return new LTY(k)},jtp=function(k,E){E&&(k.onmessage=function(S){E(new x25(S.data,D2z(S.ports[0])))})};var $2C=function(k){this.verifier_=k};
$2C.prototype.verify=function(k){return this.verifier_(k)};
var fx8=function(k){var E=Object.create(null);(typeof k==="string"?[k]:k).forEach(function(S){if(S==="null")throw Error("X");E[S]=!0});
return function(S){return E[S]===!0}};_.vWC=function(){if(!_.Vt.addEventListener||!Object.defineProperty)return!1;var k=!1,E=Object.defineProperty({},"passive",{get:function(){k=!0}});
try{var S=function(){};
_.Vt.addEventListener("test",S,E);_.Vt.removeEventListener("test",S,E)}catch(R){}return k}();var bPd;_.zn=function(k){var E=k.destination;var S=k.iframe;var R=k.origin;var V=k.channelName===void 0?"ZNWN1d":k.channelName;var N=k.onMessage===void 0?void 0:k.onMessage;k=k.onEstablished===void 0?void 0:k.onEstablished;return bPd({destination:E,getSource:function(){return S.contentWindow},
originVerifier:R instanceof $2C?R:typeof R==="function"?new $2C(R):new $2C(fx8(R)),channelName:V,onMessage:N,onEstablished:k})};
bPd=function(k){var E=k.destination;var S=k.getSource;var R=k.originVerifier;var V=k.token===void 0?void 0:k.token;var N=k.channelName;var h=k.onMessage===void 0?void 0:k.onMessage;var J=k.onEstablished===void 0?void 0:k.onEstablished;return new u34(new rRC(function(m,a){var T=function(w){w.source&&w.source===S()&&R.verify(w.origin)&&(w.data.n||w.data)===N&&(E.removeEventListener("message",T,!1),V&&w.data.t!==V?a(Error("Y`"+N+"`"+V+"`"+w.data.t)):(m(D2z(w.ports[0],h)),J&&J(w)))};
E.addEventListener("message",T,!1)}))};var ZPd=function(k){try{k()}catch(E){NA(E)}};var st4=function(k){var E=this;var S=k.getMessageType;var R=k.onUnregisteredMessage===void 0?function(){}:k.onUnregisteredMessage;
var V=k.onBeforeRegisteredMessage===void 0?function(){}:k.onBeforeRegisteredMessage;
k=k.onAfterRegisteredMessage===void 0?function(){}:k.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=S;this.onUnregisteredMessage_=R;this.onBeforeRegisteredMessage_=V;this.onAfterRegisteredMessage_=k;this.onMessage=function(N){return d28(E,N)}};
st4.prototype.register=function(k,E){this.registry_.set(k,E);return this};
var d28=function(k,E){var S=k.getMessageType_(E.data),R=k.registry_.get(S);R?(ZPd(function(){return k.onBeforeRegisteredMessage_(E,S)}),ZPd(function(){return R(E)}),ZPd(function(){return k.onAfterRegisteredMessage_(E,S)})):ZPd(function(){return k.onUnregisteredMessage_(E,S)})};var lxd=function(k){this.JSC$8954_channel_=k},qAj,zYC;
lxd.prototype.send=function(k,E,S){this.JSC$8954_channel_.send($W(k),E,S)};
_.MI4=function(k,E){return function(S){var R=new k(S.data);return E(new x25(R,S.channel))}};
qAj=function(k){return function(E){return k(new x25(E.data,new lxd(E.channel)))}};
zYC=function(k,E){return qAj(_.MI4(k,E))};var QtY=function(k,E,S,R){this.registry=k;this.delegate=E;this.receiveMessageConstructor=S;this.createInitMessage=R;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},QSC=function(k){var E=new st4({getMessageType:k.getPayloadCase});
return new QtY(E,new lxd(_.zn({iframe:k.child,destination:window,origin:k.origin,channelName:k.channelName,onMessage:zYC(k.receiveMessageConstructor,E.onMessage)})),k.receiveMessageConstructor,k.createInitMessage)},OP2=function(k,E){k.createInitMessage=E};
QtY.prototype.send=function(k){if(!this.initialised)throw new qx("Attempted to send a message before initialisation.");this.delegate.send(k)};
var GG4=function(k,E){return _.c(function(S){if(!k.initialised)throw new qx("Attempted to send a message before initialisation.");return S.return(new Promise(function(R){k.delegate.send(E,zYC(k.receiveMessageConstructor,R))}))})};
QtY.prototype.init=function(){var k=this;return _.c(function(E){if(k.initialised)throw new qx("Attempted to initialise twice. The SDK can only be initialised once.");if(k.createInitMessage!==void 0){var S=k.delegate,R=S.send,V=k.createInitMessage;var N=new axd;var h=[].concat(_.$e(k.features));N=_.kJ(N,1,h,_.EA);R.call(S,V.call(k,N))}k.initialised=!0;_.KR(E)})};
var Qk=function(k,E){if(k.initialised)throw new qx('Attempted to set up API "'+E+'" after initialisation. All APIs must be set up before initialising the SDK.');k.features.add(E);return k.registry};
_.mt.Object.defineProperties(QtY.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var CaT=function(k){this.channel=k;this.registered=!1};
CaT.prototype.update=function(k){if(this.channel.isInitialised){if(!this.registered)throw new qx("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var E=new oS;var S=new tIj;S=_.w7(S,1,k);E=_.gk(E,2,UX,S);this.channel.send(E)}else this.register();this.JSC$8968_audioEnabled=k};
CaT.prototype.register=function(){Qk(this.channel,1);this.registered=!0};
CaT.prototype.isAudioEnabled=function(){return this.JSC$8968_audioEnabled};var kB8=function(k){this.channel=k};
_.I=kB8.prototype;_.I.onFirstFrameReady=function(k){Qk(this.channel,2).register(11,function(E){E=_.BS(E.data,yRC,11,Mx);if(!E)throw new qx("Unexpectedly nonexistent GameFirstFrameReadyEvent");k(_.t2(E,1))})};
_.I.onReady=function(k){Qk(this.channel,2).register(4,function(E){E=_.BS(E.data,X0j,4,Mx);if(!E)throw new qx("Unexpectedly nonexistent GameReadyEvent");k(_.t2(E,1))})};
_.I.onLevelComplete=function(k){Qk(this.channel,2).register(5,function(E){E=_.BS(E.data,gWj,5,Mx);if(!E)throw new qx("Unexpectedly nonexistent LevelCompleteEvent");k(_.t2(E,1),_.eo(E,2))})};
_.I.onGameOver=function(k){Qk(this.channel,2).register(6,function(E){E=_.BS(E.data,oW2,6,Mx);if(!E)throw new qx("Unexpectedly nonexistent GameOverEvent");k(_.t2(E,1))})};
_.I.pause=function(){var k=this;if(!this.channel.isInitialised)return Qk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new qx("Using unregistered Game Feature: pause.");var E=WT8();return new Promise(function(S){return _.c(function(R){if(R.nextAddress==1)return R.yield(GG4(k.channel,E),2);S();_.KR(R)})})};
_.I.resume=function(){var k=this;if(!this.channel.isInitialised)return Qk(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new qx("Using unregistered Game Feature: resume.");var E=FTj();return new Promise(function(S){return _.c(function(R){if(R.nextAddress==1)return R.yield(GG4(k.channel,E),2);S();_.KR(R)})})};var EJA=function(k){this.channel=k};
EJA.prototype.onReady=function(k){Qk(this.channel,5).register(8,function(E){if(!_.BS(E.data,U2p,8,Mx))throw new qx("Unexpectedly nonexistent PageReadyEvent");k()})};var SX5=function(k){this.channel=k};
SX5.prototype.onChange=function(k){Qk(this.channel,3).register(7,function(E){E=_.BS(E.data,HPY,7,Mx);if(!E)throw new qx("Unexpectedly nonexistent ScoreEvent");k(_.t2(E,1),_.eo(E,2))})};var Rs4={load:function(){throw new qx("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new qx("Storage used, but storage.onSave() listener not set!");}},Vrd=function(k){this.channel=k;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Nkd=function(k){Qk(k.channel,4).register(2,Rs4.load).register(3,Rs4.save);
k.initialSetupDone=!0};
Vrd.prototype.onLoad=function(k){this.initialSetupDone||Nkd(this);this.loadRegistered||(this.loadRegistered=!0,Qk(this.channel,4).register(2,function(E){var S,R,V;return _.c(function(N){if(N.nextAddress==1){S=_.BS(E.data,KTp,2,Mx);if(!S)throw new qx("Unexpectedly nonexistent StorageLoad");R=_.t2(S,1);return N.yield(k(R),2)}V=N.yieldResult;var h=E.reply,J=new oS;var m=new Pa4;m=_.uh(m,1,R);m=_.PV(m,2,_.AC(V,!1));J=_.gk(J,3,UX,m);h.call(E,J);_.KR(N)})}))};
Vrd.prototype.onSave=function(k){this.initialSetupDone||Nkd(this);this.saveRegistered||(this.saveRegistered=!0,Qk(this.channel,4).register(3,function(E){var S,R,V;return _.c(function(N){if(N.nextAddress==1){S=_.BS(E.data,p0Y,3,Mx);if(!S)throw new qx("Unexpectedly nonexistent StorageSave");R=_.t2(S,1);V=qj8(S.getData());return N.yield(k(R,V),2)}var h=E.reply,J=new oS;var m=new BUY;m=_.uh(m,1,R);J=_.gk(J,4,UX,m);h.call(E,J);_.KR(N)})}))};var IF5=function(k){this.channel=k};
IF5.prototype.update=function(k){if(!this.channel.features.has(6))throw new qx("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var E=new oS,S=new YAC;k=_.Xo(S,1,k);E=_.gk(E,6,UX,k);this.channel.send(E)};
IF5.prototype.register=function(){Qk(this.channel,6)};var nJC=function(k){this.channel=k;this.userActivityLoggingIntervalMs=0};
nJC.prototype.onUserActivity=function(k,E){this.userActivityLoggingIntervalMs=E;Qk(this.channel,7).register(9,function(S){if(!_.BS(S.data,ARA,9,Mx))throw new qx("Unexpectedly nonexistent ClickEvent");k()})};var igj=function(k){var E=this;this.channel=k;this.init=this.channel.init.bind(this.channel);this.page=new EJA(this.channel);this.game=new kB8(this.channel);this.audio=new CaT(this.channel);this.score=new SX5(this.channel);this.storage=new Vrd(this.channel);this.style=new IF5(this.channel);this.userActivity=new nJC(this.channel);OP2(this.channel,function(S){var R=new GBI;S=_.Xo(R,1,S);S=_.Y7(S,3,E.userActivity.userActivityLoggingIntervalMs);R=E.audio.isAudioEnabled();R!==void 0&&_.w7(S,2,R);R=new oS;
return _.gk(R,5,UX,S)})};var hs5=function(){this.timedFunctionContext=0};
hs5.prototype.timeExecution=function(k,E){var S=this;return function(){var R=_.sX.apply(0,arguments);S.timedFunctionContext=k;return E.apply(null,_.$e(R))}};var JJC=function(){var k={};this.priorityTasks=(k[3]=[],k[2]=[],k[1]=[],k);this.isFlushing=!1},X1=function(k,E,S){var R=cJz(k,S);
k.priorityTasks[S].push(E);R&&k.priorityTasks[S].length===1&&k.flush()},cJz=function(k,E){return Object.keys(k.priorityTasks).map(function(S){return Number(S)}).filter(function(S){return!isNaN(S)&&S>E}).every(function(S){return k.priorityTasks[S].length===0})};
JJC.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(k){return k.length>0});)mU5(this,3),mU5(this,2),mU5(this,1)}catch(k){throw Object.values(this.priorityTasks).forEach(function(E){return void E.splice(0,E.length)}),k;
}finally{this.isFlushing=!1}}};
var mU5=function(k,E){for(;cJz(k,E)&&k.priorityTasks[E].length>0;)k.priorityTasks[E][0](),k.priorityTasks[E].shift()};
_.mt.Object.defineProperties(JJC.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(k){return k.length>0})}}});var NPb={};var esd=globalThis.trustedTypes,kP1=esd,SYj;var Kg=function(k){this.privateDoNotAccessOrElseWrappedResourceUrl=k};
Kg.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var aFY,trC,Tk5,wUA,PuC,Bk5,YXA,W$d;aFY=_.ry([""]);trC=A9(["\x00"],["\\0"]);Tk5=A9(["\n"],["\\n"]);wUA=A9(["\x00"],["\\u0000"]);PuC=_.ry([""]);Bk5=A9(["\x00"],["\\0"]);YXA=A9(["\n"],["\\n"]);W$d=A9(["\x00"],["\\u0000"]);_.F$4=VO1(function(k){return k(aFY)})||VO1(function(k){return k(trC)})||VO1(function(k){return k(Tk5)})||VO1(function(k){return k(wUA)});
_.yJd=_.uu(PuC)&&_.uu(Bk5)&&_.uu(YXA)&&_.uu(W$d);var bu;_.xJ=function(k,E){this.privateDoNotAccessOrElseWrappedUrl=E};
_.xJ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.oJT=Lg("about:blank");bu=Lg("about:invalid#zClosurez");var Iej=function(k){this.isValid=k},XUd=new Iej(function(k){return/^[^:]*([/?#]|$)/.test(k)}),gJC=$J("data"),UUY=$J("http"),Hgz=$J("https"),K$d=$J("ftp"),pUd=$J("mailto"),AJC=$J("intent"),rJY=$J("vnd.youtube"),neI=[gJC,
UUY,Hgz,pUd,K$d,XUd],h5t=HU(function(){return typeof URL==="function"}),uoz=["data:",
"http:","https:","mailto:","ftp:"],cE1=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var qU=function(k){this.privateDoNotAccessOrElseWrappedHtml=k};
qU.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var c6e=HU(function(){return new qU(esd?esd.emptyHTML:"")});var xUd={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"},e51=function(k,E){var S=Error.call(this,k+" cannot be used with intent "+xUd[E]);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.type=k;this.intent=E;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.y(e51,Error);_.SO=function(k){this.privateDoNotAccessOrElseWrappedScript=k};
_.SO.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var TPh=function(k){this.privateDoNotAccessOrElseWrappedAttributePrefix=k};
TPh.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var wdR="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var cd=function(k){this.privateDoNotAccessOrElseWrappedStyleSheet=k};
cd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var dJh=function(k){var E=_.CV("window.location.href");k==null&&(k='Unknown Error of type "null/undefined"');if(typeof k==="string")return{message:k,name:"Unknown error",lineNumber:"Not available",fileName:E,stack:"Not available"};var S=!1;try{var R=k.lineNumber||k.line||"Not available"}catch(h){R="Not available",S=!0}try{var V=k.fileName||k.filename||k.sourceURL||_.Vt.$googDebugFname||E}catch(h){V="Not available",S=!0}E=L$2(k);if(!(!S&&k.lineNumber&&k.fileName&&k.stack&&k.message&&k.name)){S=k.message;
if(S==null){if(k.constructor&&k.constructor instanceof Function){if(k.constructor.name)S=k.constructor.name;else if(S=k.constructor,OU[S])S=OU[S];else{S=String(S);if(!OU[S]){var N=/function\s+([^\(]+)/m.exec(S);OU[S]=N?N[1]:"[Anonymous]"}S=OU[S]}S='Unknown Error of type "'+S+'"'}else S="Unknown Error of unknown type";typeof k.toString==="function"&&Object.prototype.toString!==k.toString&&(S+=": "+k.toString())}return{message:S,name:k.name||"UnknownError",lineNumber:R,fileName:V,stack:E||"Not available"}}return{message:k.message,
name:k.name,lineNumber:k.lineNumber,fileName:k.fileName,stack:E}},L$2=function(k,E){E||(E={});
E[jSz(k)]=!0;var S=k.stack||"",R=k.cause;R&&!E[jSz(R)]&&(S+="\nCaused by: ",R.stack&&R.stack.indexOf(R.toString())==0||(S+=typeof R==="string"?R:R.message+"\n"),S+=L$2(R,E));k=k.errors;if(Array.isArray(k)){R=1;var V;for(V=0;V<k.length&&!(R>4);V++)E[jSz(k[V])]||(S+="\nInner error "+R++ +": ",k[V].stack&&k[V].stack.indexOf(k[V].toString())==0||(S+=typeof k[V]==="string"?k[V]:k[V].message+"\n"),S+=L$2(k[V],E));V<k.length&&(S+="\n... "+(k.length-V)+" more inner errors")}return S},jSz=function(k){var E=
"";
typeof k.toString==="function"&&(E=""+k);return E+k.stack},OU={};var DUC,c_,CU,fFp,vJC,$UA,Oa,pI,ZgA;DUC=function(k,E){for(var S=k.split("%s"),R="",V=Array.prototype.slice.call(arguments,1);V.length&&S.length>1;)R+=S.shift()+V.shift();return R+S.join("%s")};
_.Eg=function(k){return encodeURIComponent(String(k))};
c_=function(k){return decodeURIComponent(k.replace(/\+/g," "))};
CU=function(k){hiY.test(k)&&(k.indexOf("&")!=-1&&(k=k.replace(RiT,"&amp;")),k.indexOf("<")!=-1&&(k=k.replace(VhT,"&lt;")),k.indexOf(">")!=-1&&(k=k.replace(N1Y,"&gt;")),k.indexOf('"')!=-1&&(k=k.replace(IRC,"&quot;")),k.indexOf("'")!=-1&&(k=k.replace(nb4,"&#39;")),k.indexOf("\x00")!=-1&&(k=k.replace(ilC,"&#0;")));return k};
fFp=function(k){var E={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var S=_.Vt.document.createElement("div");return k.replace($UA,function(R,V){var N=E[R];if(N)return N;V.charAt(0)=="#"&&(V=Number("0"+V.slice(1)),isNaN(V)||(N=String.fromCharCode(V)));N||(_.nR(S,zB(R+" ")),N=S.firstChild.nodeValue.slice(0,-1));return E[R]=N})};
vJC=function(k){return k.replace(/&([^;]+);/g,function(E,S){switch(S){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return S.charAt(0)!="#"||(S=Number("0"+S.slice(1)),isNaN(S))?E:String.fromCharCode(S)}})};
$UA=/&([^;\s<&]+);?/g;_.UNm=function(k){return String(k).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.bgp=String.prototype.repeat?function(k,E){return k.repeat(E)}:function(k,E){return Array(E+1).join(k)};
_.Gn=function(k,E){if(!Number.isFinite(k))return String(k);k=String(k);var S=k.indexOf(".");S===-1&&(S=k.length);var R=k[0]==="-"?"-":"";R&&(k=k.substring(1));return R+(0,_.bgp)("0",Math.max(0,E-S))+k};
Oa=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.ZO()).toString(36)};
pI=function(k){for(var E=0,S=0;S<k.length;++S)E=31*E+k.charCodeAt(S)>>>0;return E};
_.Ir=function(k){return String(k).replace(/\-([a-z])/g,function(E,S){return S.toUpperCase()})};
_.Ne=function(k){return String(k).replace(/([A-Z])/g,"-$1").toLowerCase()};
ZgA=function(k){return k.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(E,S,R){return S+R.toUpperCase()})};var dUY=function(){this.names=new Map};
dUY.prototype.getName=function(k){var E=this.names.get(k);if(E)return E;var S;E=(S=k.description)!=null?S:Oa();this.names.set(k,E);return E};var sS5=function(k){var E=Error.call(this,k?k.length+" errors occurred during unsubscription:\n"+k.map(function(S,R){return R+1+") "+S.toString()}).join("\n  "):"");
this.message=E.message;"stack"in E&&(this.stack=E.stack);this.errors=k;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.y(sS5,Error);var eO=function(k){this.initialTeardown=k;this.closed=!1;this._teardowns=this._parentage=null};
_.I=eO.prototype;
_.I.unsubscribe=function(){if(!this.closed){this.closed=!0;var k=this._parentage;if(Array.isArray(k))for(var E=_.n(k),S=E.next();!S.done;S=E.next())S.value.remove(this);else k==null||k.remove(this);E=this.initialTeardown;if(mo(E))try{E()}catch(N){var R=N instanceof sS5?N.errors:[N]}var V=this._teardowns;if(V)for(this._teardowns=null,E=_.n(V),S=E.next();!S.done;S=E.next()){S=S.value;try{mo(S)?S():S.unsubscribe()}catch(N){S=void 0,R=(S=R)!=null?S:[],N instanceof sS5?R=[].concat(_.$e(R),_.$e(N.errors)):
R.push(N)}}if(R)throw new sS5(R);}};
_.I.add=function(k){if(k&&k!==this)if(this.closed)mo(k)?k():k.unsubscribe();else{if(k instanceof eO){if(k.closed||k._hasParent(this))return;k._addParent(this)}var E;(this._teardowns=(E=this._teardowns)!=null?E:[]).push(k)}};
_.I._hasParent=function(k){var E=this._parentage;return E===k||Array.isArray(E)&&E.includes(k)};
_.I._addParent=function(k){var E=this._parentage;this._parentage=Array.isArray(E)?(E.push(k),E):E?[E,k]:k};
_.I._removeParent=function(k){var E=this._parentage;E===k?this._parentage=null:Array.isArray(E)&&FoC(E,k)};
_.I.remove=function(k){var E=this._teardowns;E&&FoC(E,k);k instanceof eO&&k._removeParent(this)};
var lFd=new eO;lFd.closed=!0;eO.JSC$9064_EMPTY=lFd;var oel=function(){setTimeout.apply(null,_.$e(_.sX.apply(0,arguments)))};var CL=function(k){eO.call(this);this.JSC$9069_isStopped=!1;this.destination=k instanceof CL?k:new k$(!k||mo(k)?{next:k!=null?k:void 0}:k);yEb(k)&&k.add(this)};
_.y(CL,eO);CL.JSC$9064_EMPTY=eO.JSC$9064_EMPTY;CL.create=function(k,E,S){return new E8(k,E,S)};
_.I=CL.prototype;_.I.next=function(k){this.JSC$9069_isStopped||this._next(k)};
_.I.error=function(k){this.JSC$9069_isStopped||(this.JSC$9069_isStopped=!0,this._error(k))};
_.I.complete=function(){this.JSC$9069_isStopped||(this.JSC$9069_isStopped=!0,this._complete())};
_.I.unsubscribe=function(){this.closed||(this.JSC$9069_isStopped=!0,eO.prototype.unsubscribe.call(this))};
_.I._next=function(k){this.destination.next(k)};
_.I._error=function(k){this.destination.error(k);this.unsubscribe()};
_.I._complete=function(){this.destination.complete();this.unsubscribe()};
var k$=function(k){this.partialObserver=k};
k$.prototype.next=function(k){var E=this.partialObserver;if(E.next)try{E.next(k)}catch(S){tE(S)}};
k$.prototype.error=function(k){var E=this.partialObserver;if(E.error)try{E.error(k)}catch(S){tE(S)}else tE(k)};
k$.prototype.complete=function(){var k=this.partialObserver;if(k.complete)try{k.complete()}catch(E){tE(E)}};
var E8=function(k,E,S){CL.call(this);var R;mo(k)||!k?R={next:k!=null?k:void 0,error:E!=null?E:void 0,complete:S!=null?S:void 0}:R=k;this.destination=new k$(R)};
_.y(E8,CL);E8.JSC$9064_EMPTY=CL.JSC$9064_EMPTY;E8.create=CL.create;var Bd=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Pd=function(k){k&&(this._subscribe=k)};
_.I=Pd.prototype;_.I.lift=function(k){var E=new Pd;E.source=this;E.operator=k;return E};
_.I.subscribe=function(k,E,S){k=k&&k instanceof CL||k&&mo(k.next)&&mo(k.error)&&mo(k.complete)&&yEb(k)?k:new E8(k,E,S);E=this.operator;S=this.source;k.add(E?E.call(k,S):S?this._subscribe(k):this._trySubscribe(k));return k};
_.I._trySubscribe=function(k){try{return this._subscribe(k)}catch(E){k.error(E)}};
_.I.forEach=function(k,E){var S=this;E=gem(E);return new E(function(R,V){var N=S.subscribe(function(h){try{k(h)}catch(J){V(J),N==null||N.unsubscribe()}},V,R)})};
_.I._subscribe=function(k){var E;return(E=this.source)==null?void 0:E.subscribe(k)};
Pd.prototype[Bd]=function(){return this};
Pd.prototype.pipe=function(){var k=_.sX.apply(0,arguments);return k.length?Xdb(k)(this):this};
Pd.create=function(k){return new Pd(k)};var Mrp=function(){var k=Error.call(this,"object unsubscribed");this.message=k.message;"stack"in k&&(this.stack=k.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.y(Mrp,Error);var F1=function(){this.observers=[];this.hasError=this.JSC$9085_isStopped=this.closed=!1;this.thrownError=null};
_.y(F1,Pd);_.I=F1.prototype;_.I.lift=function(k){var E=new Su(this,this);E.operator=k;return E};
_.I._throwIfClosed=function(){if(this.closed)throw new Mrp;};
_.I.next=function(k){this._throwIfClosed();if(!this.JSC$9085_isStopped){var E=this.observers.slice();E=_.n(E);for(var S=E.next();!S.done;S=E.next())S.value.next(k)}};
_.I.error=function(k){this._throwIfClosed();if(!this.JSC$9085_isStopped){this.hasError=this.JSC$9085_isStopped=!0;this.thrownError=k;for(var E=this.observers;E.length;)E.shift().error(k)}};
_.I.complete=function(){this._throwIfClosed();if(!this.JSC$9085_isStopped){this.JSC$9085_isStopped=!0;for(var k=this.observers;k.length;)k.shift().complete()}};
_.I.unsubscribe=function(){this.JSC$9085_isStopped=this.closed=!0;this.observers=null};
_.I._trySubscribe=function(k){this._throwIfClosed();return Pd.prototype._trySubscribe.call(this,k)};
_.I._subscribe=function(k){this._throwIfClosed();this._checkFinalizedStatuses(k);return this._innerSubscribe(k)};
_.I._innerSubscribe=function(k){var E=this,S=this.JSC$9085_isStopped,R=this.observers;return this.hasError||S?eO.JSC$9064_EMPTY:(R.push(k),new eO(function(){return FoC(E.observers,k)}))};
_.I._checkFinalizedStatuses=function(k){var E=this.thrownError,S=this.JSC$9085_isStopped;this.hasError?k.error(E):S&&k.complete()};
F1.create=function(k,E){return new Su(k,E)};
var Su=function(k,E){F1.call(this);this.destination=k;this.source=E};
_.y(Su,F1);Su.create=F1.create;Su.prototype.next=function(k){var E,S;(E=this.destination)==null||(S=E.next)==null||S.call(E,k)};
Su.prototype.error=function(k){var E,S;(E=this.destination)==null||(S=E.error)==null||S.call(E,k)};
Su.prototype.complete=function(){var k,E;(k=this.destination)==null||(E=k.complete)==null||E.call(k)};
Su.prototype._subscribe=function(k){var E,S;return(S=(E=this.source)==null?void 0:E.subscribe(k))!=null?S:eO.JSC$9064_EMPTY};var Oo=function(k){F1.call(this);this._value=k};
_.y(Oo,F1);Oo.create=F1.create;Oo.prototype._subscribe=function(k){var E=F1.prototype._subscribe.call(this,k);!E.closed&&k.next(this._value);return E};
Oo.prototype.getValue=function(){var k=this.thrownError,E=this._value;if(this.hasError)throw k;this._throwIfClosed();return E};
Oo.prototype.next=function(k){F1.prototype.next.call(this,this._value=k)};
_.mt.Object.defineProperties(Oo.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var sY=new Pd(function(k){return k.complete()});var pdj=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var LoI=function(k){return k&&typeof k.length==="number"&&typeof k!=="function"};var qXd={now:function(){return(qXd.delegate||Date).now()},
delegate:void 0};var ih=function(k,E,S){k=k===void 0?Infinity:k;E=E===void 0?Infinity:E;S=S===void 0?qXd:S;F1.call(this);this.bufferSize=k;this.windowTime=E;this.timestampProvider=S;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=E===Infinity;this.bufferSize=Math.max(1,k);this.windowTime=Math.max(1,E)};
_.y(ih,F1);ih.create=F1.create;ih.prototype.next=function(k){var E=this.buffer,S=this.infiniteTimeWindow,R=this.timestampProvider,V=this.windowTime;this.JSC$9085_isStopped||(E.push(k),!S&&E.push(R.now()+V));zsC(this);F1.prototype.next.call(this,k)};
ih.prototype._subscribe=function(k){this._throwIfClosed();zsC(this);for(var E=this._innerSubscribe(k),S=this.infiniteTimeWindow,R=this.buffer.slice(),V=0;V<R.length&&!k.closed;V+=S?1:2)k.next(R[V]);this._checkFinalizedStatuses(k);return E};
var zsC=function(k){var E=k.bufferSize,S=k.timestampProvider,R=k.buffer;k=k.infiniteTimeWindow;var V=(k?1:2)*E;E<Infinity&&V<R.length&&R.splice(0,R.length-V);if(!k){E=S.now();S=0;for(k=1;k<R.length&&R[k]<=E;k+=2)S=k;S&&R.splice(0,S+1)}};var Og2=function(k,E){E=E===void 0?QS4:E;this.schedulerActionCtor=k;this.now=E};
Og2.prototype.schedule=function(k,E,S){E=E===void 0?0:E;return(new this.schedulerActionCtor(this,k)).schedule(S,E)};
var QS4=qXd.now;var Ujj=function(){var k=Error.call(this,"no elements in sequence");this.message=k.message;"stack"in k&&(this.stack=k.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.y(Ujj,Error);var xe=function(k,E,S,R,V){CL.call(this,k);this.onUnsubscribe=V;E&&(this._next=function(N){try{E(N)}catch(h){this.destination.error(h)}});
S&&(this._error=function(N){try{S(N)}catch(h){this.destination.error(h)}this.unsubscribe()});
R&&(this._complete=function(){try{R()}catch(N){this.destination.error(N)}this.unsubscribe()})};
_.y(xe,CL);xe.JSC$9064_EMPTY=CL.JSC$9064_EMPTY;xe.create=CL.create;xe.prototype.unsubscribe=function(){var k;this.closed||(k=this.onUnsubscribe)!=null&&k.call(this);CL.prototype.unsubscribe.call(this)};var Nj=function(k,E){this.source=k;this.subjectFactory=E;this._subject=null;this._refCount=0;this._connection=null};
_.y(Nj,Pd);Nj.create=Pd.create;Nj.prototype._subscribe=function(k){return GBY(this).subscribe(k)};
var GBY=function(k){var E=k._subject;if(!E||E.JSC$9085_isStopped)k._subject=k.subjectFactory();return k._subject};
Nj.prototype._teardown=function(){this._refCount=0;var k=this._connection;this._subject=this._connection=null;k==null||k.unsubscribe()};
Nj.prototype.connect=function(){var k=this,E=this._connection;if(!E){E=this._connection=new eO;var S=GBY(this);E.add(this.source.subscribe(new xe(S,void 0,function(R){k._teardown();S.error(R)},function(){k._teardown();
S.complete()},function(){return k._teardown()})));
E.closed&&(this._connection=null,E=eO.JSC$9064_EMPTY)}return E};var qYI=Array.isArray;var Qbj=Array.isArray,Cu5=Object,ORh=Cu5.getPrototypeOf,GPi=Cu5.prototype,Ctt=Cu5.keys;var vd=function(k,E,S){CL.call(this,k);this._next=E;this.shouldComplete=S};
_.y(vd,CL);vd.JSC$9064_EMPTY=CL.JSC$9064_EMPTY;vd.create=CL.create;vd.prototype._complete=function(){this.shouldComplete()?CL.prototype._complete.call(this):this.unsubscribe()};var iOR=["addListener","removeListener"],nyj=["addEventListener","removeEventListener"],JxI=["on","off"];var Rf=function(){eO.call(this)};
_.y(Rf,eO);Rf.JSC$9064_EMPTY=eO.JSC$9064_EMPTY;Rf.prototype.schedule=function(){return this};var kPY=function(k,E){return setInterval.apply(null,[k,E].concat(_.$e(_.sX.apply(2,arguments))))};var VM=function(k,E){eO.call(this);this.scheduler=k;this.work=E;this.pending=!1};
_.y(VM,Rf);VM.JSC$9064_EMPTY=Rf.JSC$9064_EMPTY;VM.prototype.schedule=function(k,E){E=E===void 0?0:E;if(this.closed)return this;this.state=k;k=this.id;var S=this.scheduler;k!=null&&(this.id=EeC(this,k,E));this.pending=!0;this.delay=E;this.id=this.id||this.requestAsyncId(S,this.id,E);return this};
VM.prototype.requestAsyncId=function(k,E,S){S=S===void 0?0:S;return kPY(k.flush.bind(k,this),S)};
var EeC=function(k,E,S){S=S===void 0?0:S;if(S!=null&&k.delay===S&&k.pending===!1)return E;clearInterval(E)};
VM.prototype.execute=function(k,E){if(this.closed)return Error("ha");this.pending=!1;if(k=this._execute(k,E))return k;this.pending===!1&&this.id!=null&&(this.id=EeC(this,this.id,null))};
VM.prototype._execute=function(k){var E=!1;try{this.work(k)}catch(R){E=!0;var S=!!R&&R||Error(R)}if(E)return this.unsubscribe(),S};
VM.prototype.unsubscribe=function(){if(!this.closed){var k=this.id,E=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;FoC(E,this);k!=null&&(this.id=EeC(this,k,null));this.delay=null;Rf.prototype.unsubscribe.call(this)}};var SY5=function(k,E){E=E===void 0?QS4:E;Og2.call(this,k,E);this.actions=[];this.active=!1;this.scheduled=void 0};
_.y(SY5,Og2);SY5.prototype.flush=function(k){var E=this.actions;if(this.active)E.push(k);else{var S;this.active=!0;do if(S=k.execute(k.state,k.delay))break;while(k=E.shift());this.active=!1;if(S){for(;k=E.shift();)k.unsubscribe();throw S;}}};var j1=new Pd(ab);var cxi=Array.isArray;var NM=function(k,E){VM.call(this,k,E);this.scheduler=k;this.work=E};
_.y(NM,VM);NM.JSC$9064_EMPTY=VM.JSC$9064_EMPTY;NM.prototype.schedule=function(k,E){E=E===void 0?0:E;if(E>0)return VM.prototype.schedule.call(this,k,E);this.delay=E;this.state=k;this.scheduler.flush(this);return this};
NM.prototype.execute=function(k,E){return E>0||this.closed?VM.prototype.execute.call(this,k,E):this._execute(k,E)};
NM.prototype.requestAsyncId=function(k,E,S){S=S===void 0?0:S;return S!=null&&S>0||S==null&&this.delay>0?VM.prototype.requestAsyncId.call(this,k,E,S):k.flush(this)};var R5d=function(){SY5.apply(this,arguments)};
_.y(R5d,SY5);var leI=new R5d(NM);var VOY=function(){this.performanceMonitor=new hs5;this.queue=new JJC;this.internalSymbol=Symbol();this.debugNames=new dUY};
VOY.prototype.getOnBackgrounded=function(){return j1};
_.mt.Object.defineProperties(VOY.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var If=function(k,E){E=Error.call(this,E?k+": "+E:String(k));this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=k;this.__proto__=If.prototype;this.name=String(k)};
_.y(If,Error);var DB=function(k){If.call(this,1E3,'sfr:"'+k+'"');this.measurementStrategyFailureReason=k;this.__proto__=DB.prototype};
_.y(DB,If);var $y=function(){If.call(this,1003);this.__proto__=$y.prototype};
_.y($y,If);var nT=function(){If.call(this,1009);this.__proto__=nT.prototype};
_.y(nT,If);var NP2=function(){If.call(this,1011);this.__proto__=NP2.prototype};
_.y(NP2,If);var Ie5=function(){If.call(this,1007);this.__proto__=$y.prototype};
_.y(Ie5,If);var xy=function(k){If.call(this,1004,String(k));this.inputObservableIndex=k;this.__proto__=xy.prototype};
_.y(xy,If);var qah=function(k){If.call(this,1010,k);this.__proto__=z2i.prototype};
_.y(qah,If);var z2i=function(k){If.call(this,1005,k);this.__proto__=z2i.prototype};
_.y(z2i,If);var ned=function(k){var E=_.sX.apply(1,arguments),S=this;this.orderedFactories=[];this.orderedFactories.push(k);E.forEach(function(R){S.orderedFactories.push(R)})};
ned.prototype.isSupported=function(k){return this.orderedFactories.some(function(E){return E.isSupported(k)})};
ned.prototype.makeBeacon=function(k,E){for(var S=0;S<this.orderedFactories.length;S++)if(this.orderedFactories[S].isSupported(E))return this.orderedFactories[S].makeBeacon(k,E);throw new nT;};var jeC=Symbol("ia"),iRz=Symbol("ja"),Qe=function(k,E){this.value=k;this.timeline=E},zP=function(k,E){if(E.timeline!==k.timeline)throw new Ie5;
return k.value-E.value};
_.I=Qe.prototype;_.I.equals=function(k){return zP(this,k)===0};
_.I.maximum=function(k){if(k.timeline!==this.timeline)throw new Ie5;return this.value>=k.value?this:k};
_.I.round=function(){return new Qe(Math.round(this.value),this.timeline)};
_.I.add=function(k){return new Qe(this.value+k,this.timeline)};
_.I.toString=function(){return String(this.value)};var iE=function(k,E){this.context=k;this.JSC$9191_pinger=E};
iE.prototype.isSupported=function(k){return this.JSC$9191_pinger.isSupported(k)};
iE.prototype.makeBeacon=function(k,E){if(!this.isSupported(E))throw new nT;return new ha(this.context,this.JSC$9191_pinger,E!=null?E:void 0,k)};
var ha=function(k,E,S,R){var V=this;this.JSC$9197_pinger=E;this.properties=S;this.url=R;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var N;this.method=(N=S==null?void 0:S.beaconMethod)!=null?N:"GET";this.backgroundedSubscription=k.getOnBackgrounded().subscribe(function(){V.sendNow()})};
ha.prototype.deactivate=function(){this.internalIsPending=!1};
ha.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9197_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var k,E;this.JSC$9197_pinger.pingWithHeadersAndBody((k=this.properties)!=null?k:{},this.customHeaders,(E=this.body)!=null?E:"",this.url)}else this.JSC$9197_pinger.ping(this.url);this.internalIsPending=!1}catch(S){}else this.internalIsPending=!1};
ha.prototype.setHeader=function(k,E){this.customHeaders.set(k,E)};
_.mt.Object.defineProperties(ha.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var JEY=function(){for(var k=_.n(_.sX.apply(0,arguments)),E=k.next();!E.done;E=k.next())if(E=E.value,E.available()){this.timeProvider=E;return}this.timeProvider=new h5d};
_.I=JEY.prototype;_.I.available=function(){return this.timeProvider.available()};
_.I.now=function(){return this.timeProvider.now()};
_.I.setTimeout=function(k,E){return this.timeProvider.setTimeout(k,E)};
_.I.clearTimeout=function(k){this.timeProvider.clearTimeout(k)};
_.I.interval=function(k,E){var S=this.intervalObservable(k).subscribe(E);return function(){return void S.unsubscribe()}};
_.I.intervalObservable=function(k){return this.timeProvider.intervalObservable(k)};
_.mt.Object.defineProperties(JEY.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var h5d=function(){this.timeline=Symbol()};
_.I=h5d.prototype;_.I.available=function(){return!1};
_.I.now=function(){return new Qe(0,this.timeline)};
_.I.setTimeout=function(){return 0};
_.I.clearTimeout=function(){};
_.I.interval=function(){return function(){}};
_.I.intervalObservable=function(){return j1};var Ja=function(k,E){this.intrinsicFunctionNamespace=k;this.performanceMonitor=E};
_.I=Ja.prototype;_.I.setTimeout=function(k,E){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,k),E)};
_.I.clearTimeout=function(k){this.intrinsicFunctionNamespace.clearTimeout(k)};
_.I.interval=function(k,E){var S=this.intervalObservable(k).subscribe(E);return function(){return void S.unsubscribe()}};
_.I.intervalObservable=function(k){var E=this;return new Pd(function(S){var R=0,V=E.intrinsicFunctionNamespace.setInterval(function(){S.next(R++)},k);
return function(){E.intrinsicFunctionNamespace.clearInterval(V)}})};
_.I.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var cEY=function(k,E){Ja.call(this,k,E);this.timeline=iRz};
_.y(cEY,Ja);cEY.prototype.now=function(){return new Qe(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
cEY.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Ja.prototype.available.call(this)};var mVd=function(k,E){Ja.call(this,k,E);this.timeline=jeC};
_.y(mVd,Ja);mVd.prototype.now=function(){return new Qe(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
mVd.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Ja.prototype.available.call(this)};var ae8=function(k){this.context=k;if(e5C===void 0)a:{var E,S,R=(E=k.global)==null?void 0:(S=E.document)==null?void 0:S.createElement("meta");if(R)try{R.httpEquiv="origin-trial";R.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";k.global.document.head.append(R);e5C=R;break a}catch(V){}e5C=void 0}},
e5C;
ae8.prototype.isSupported=function(k){return W7h(this.context)!==void 0&&!(k==null||!k.endOfSession)&&!cN(this.context)&&!(k==null?0:k.attributionEnabled)&&!(k==null?0:k.customHeaders)&&!(k==null?0:k.customBody)};
ae8.prototype.makeBeacon=function(k,E){if(!this.isSupported(E))throw new nT;return new mZ(this.context,k,E)};
var mZ=function(k,E,S){this.context=k;this.properties=S;this.JSC$9224_urlWithoutToken=E;var R;this.beaconMethod=(R=S==null?void 0:S.beaconMethod)!=null?R:"GET";k=W7h(this.context);if(k===void 0)throw Error();this.fetchLater=k;tOz(this,TPT(this))},tOz=function(k,E){k.beaconResult&&k.beaconResult.activated||(k.beaconAbort=new AbortController,k.beaconResult=k.fetchLater(E,{method:k.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:k.beaconAbort.signal,activateAfter:96E4}))},TPT=function(k){k=k.JSC$9224_urlWithoutToken;
return(k.slice(-1)[0]==="&"?k:k+"&")+"flapi=1"};
mZ.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
mZ.prototype.sendNow=function(){};
mZ.prototype.setHeader=function(){};
_.mt.Object.defineProperties(mZ.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9224_urlWithoutToken},
set:function(k){this.JSC$9224_urlWithoutToken=k;k=TPT(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);tOz(this,k)}},
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 wdC=function(k){this.context=k};
wdC.prototype.isSupported=function(){return!cN(this.context)&&!!this.context.global.fetch};
wdC.prototype.ping=function(){var k=this;return MV.apply(null,_.$e(_.sX.apply(0,arguments).map(function(E){return Wd(k.context.global.fetch(E,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(De(function(S){return S.status===200}))}))).pipe(HO1(function(E){return E}),pH1())};
wdC.prototype.pingWithHeadersAndBody=function(k,E,S){for(var R=_.sX.apply(3,arguments),V=this,N=new Headers,h=_.n(E.entries()),J=h.next();!J.done;J=h.next()){var m=_.n(J.value);J=m.next().value;m=m.next().value;N.set(J,m)}var a,T=(a=k.keepAlive)!=null?a:!1;MV.apply(null,_.$e(R.map(function(w){return Wd(V.context.global.fetch(w,Object.assign({},{method:String(k.beaconMethod),cache:"no-cache"},T?{keepalive:!0}:{},{mode:"no-cors",headers:N,body:S}))).pipe(De(function(P){return P.status===200}))}))).pipe(HO1(function(w){return w}),
pH1())};var Ptd,xuA,BPd;_.eu=function(){};
_.DR=function(k){return k};
Ptd=function(k){var E=E||0;return function(){return k.apply(this,Array.prototype.slice.call(arguments,0,E))}};
_.af=function(k){var E=!1,S;return function(){E||(S=k(),E=!0);return S}};
_.ta=function(k,E){var S=0;return function(R){_.Vt.clearTimeout(S);var V=arguments;S=_.Vt.setTimeout(function(){k.apply(void 0,V)},E)}};
xuA=function(k,E){var S=0,R=!1,V=[],N=function(){S=0;R&&(R=!1,h())},h=function(){S=_.Vt.setTimeout(N,E);
var J=V;V=[];k.apply(void 0,J)};
return function(J){V=arguments;S?R=!0:h()}};
BPd=function(k,E){var S=0,R=function(){S=0};
return function(V){S||(S=_.Vt.setTimeout(R,E),k.apply(void 0,arguments))}};var Wo8=function(){return Yb&&We?We.mobile:!YYY()&&(o1("iPod")||o1("iPhone")||o1("Android")||o1("IEMobile"))},YYY=function(){return Yb&&We?!We.mobile&&(o1("iPad")||o1("Android")||o1("Silk")):o1("iPad")||o1("Android")&&!o1("Mobile")||o1("Silk")};var T4=function(k,E,S,R,V){this.allowedElements=k;this.elementPolicies=E;this.allowedGlobalAttributes=S;this.globalAttributePolicies=R;this.globallyAllowedAttributePrefixes=V},Fo4=function(k,E,S){S=k.elementPolicies.get(S);
return(S==null?0:S.has(E))?S.get(E):k.allowedGlobalAttributes.has(E)?{policyAction:1}:(S=k.globalAttributePolicies.get(E))?S:k.globallyAllowedAttributePrefixes&&[].concat(_.$e(k.globallyAllowedAttributePrefixes)).some(function(R){return E.indexOf(R)===0})?{policyAction:1}:{policyAction:0}};var yE2="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(" "),
oej=[["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}]])]],Xd2="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(" "),
ge8=[["dir",{policyAction:3,conditions:HU(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:HU(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:HU(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:HU(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],UVC=new T4(new Set(yE2),new Map(oej),new Set(Xd2),new Map(ge8)),HRY=new T4(new Set(yE2.concat(["BUTTON",
"INPUT"])),new Map(oej),new Set(HU(function(){return Xd2.concat(["class","id","name"])})),new Map(HU(function(){return ge8.concat([["style",
{policyAction:1}]])})));var KoT,pd5,rEd;KoT=function(k,E,S,R,V){this.JSC$9281_sanitizerTable=k;this.styleElementSanitizer=E;this.styleAttributeSanitizer=S;this.JSC$9281_resourceUrlPolicy=R;this.JSC$9281_navigationUrlPolicy=V;this.changes=[]};
_.AEp=function(k,E){var S=document.implementation.createHTMLDocument("");k=pd5(k,E,S);S=S.body;S.appendChild(k);S=(new XMLSerializer).serializeToString(S);S=S.slice(S.indexOf(">")+1,S.lastIndexOf("</"));return zB(S)};
pd5=function(k,E,S){E=vyi(E,S);E=document.createTreeWalker(E,5,function(J){if(J.nodeType===3)J=1;else if(ZOR(J))if(J=bO1(J),J===null)J=2;else{var m=k.JSC$9281_sanitizerTable;J=J!=="FORM"&&(m.allowedElements.has(J)||m.elementPolicies.has(J))?1:2}else J=2;return J});
for(var R=E.nextNode(),V=S.createDocumentFragment(),N=V;R!==null;){var h=void 0;if(R.nodeType===3)k.styleElementSanitizer&&N.nodeName==="STYLE"?(R=k.styleElementSanitizer(R.data),h=k.createTextNode(R)):h=k.createTextNode(R.data);else if(ZOR(R))h=rEd(k,R,S);else throw Error("Z");N.appendChild(h);if(R=E.firstChild())N=h;else for(;!(R=E.nextSibling())&&(R=E.parentNode());)N=N.parentNode}return V};
KoT.prototype.createTextNode=function(k){return document.createTextNode(k)};
rEd=function(k,E,S){var R,V=bO1(E);S=S.createElement(V);E=E.attributes;for(var N=_.n(E),h=N.next();!h.done;h=N.next()){var J=h.value;h=J.name;J=J.value;var m=Fo4(k.JSC$9281_sanitizerTable,h,V);a:{if(R=m.conditions){R=_.n(R);for(var a=R.next();!a.done;a=R.next()){var T=_.n(a.value);a=T.next().value;T=T.next().value;var w=void 0;if((a=(w=E.getNamedItem(a))==null?void 0:w.value)&&!T.has(a)){R=!1;break a}}}R=!0}if(R)switch(m.policyAction){case 1:PH(S,h,J);break;case 2:throw Error();case 3:PH(S,h,J.toLowerCase());
break;case 4:k.styleAttributeSanitizer?(J=k.styleAttributeSanitizer(J),PH(S,h,J)):PH(S,h,J);break;case 5:k.JSC$9281_resourceUrlPolicy?(m={type:2,attributeName:h,elementName:V},J=fBh(J),(J=k.JSC$9281_resourceUrlPolicy(J,m))&&PH(S,h,J.toString())):PH(S,h,J);break;case 6:if(k.JSC$9281_resourceUrlPolicy){m={type:2,attributeName:h,elementName:V};R=[];J=_.n(J.split(","));for(a=J.next();!a.done;a=J.next())T=_.n(a.value.trim().split(/\s+/,2)),a=T.next().value,T=T.next().value,R.push({url:a,descriptor:T});
J={parts:[]};R=_.n(R);for(a=R.next();!a.done;a=R.next())a=a.value,T=fBh(a.url),(T=k.JSC$9281_resourceUrlPolicy(T,m))&&J.parts.push({url:T.toString(),descriptor:a.descriptor});PH(S,h,dj1(J))}else PH(S,h,J);break;case 7:m=J;if(k.JSC$9281_navigationUrlPolicy){m={type:2,attributeName:h,elementName:V};J=fBh(J);J=k.JSC$9281_navigationUrlPolicy(J,m);if(J===null)break;m=J.toString()}J=m;m=_.JEI(J);m=m!==void 0&&uoz.indexOf(m.toLowerCase())!==-1?J:"about:invalid#zClosurez";PH(S,h,m)}}return S};
_.u5j=HU(function(){return new KoT(UVC)});
_.xVC=HU(function(){return new KoT(HRY)});var Lod=function(){this.calledBuild=!1;this.JSC$9293_sanitizerTable=UVC},jb2=function(){Lod.apply(this,arguments)};
_.y(jb2,Lod);jb2.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new KoT(this.JSC$9293_sanitizerTable,void 0,void 0,this.JSC$9293_resourceUrlPolicy,this.JSC$9293_navigationUrlPolicy)};var DVp=/[^#]*/;var u11={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"},$VA=_.af(function(){return L7h()}),
vep=function(){var k=feY("IFRAME"),E={};
_.Sn($VA(),function(S){k.sandbox&&k.sandbox.supports&&k.sandbox.supports(S)&&(E[S]=!0)});
return E},feY=function(k,E){E=E===void 0?document:E;
return E.createElement(String(k).toLowerCase())};var w9;_.Bt=function(k,E,S){return Math.min(Math.max(k,E),S)};
w9=function(k,E,S){return k+S*(E-k)};_.bh=function(k,E){this.x=k!==void 0?k:0;this.y=E!==void 0?E:0};
_.I=_.bh.prototype;_.I.clone=function(){return new _.bh(this.x,this.y)};
_.I.equals=function(k){return k instanceof _.bh&&(this==k?!0:this&&k?this.x==k.x&&this.y==k.y:!1)};
_.I.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.I.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.I.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.I.translate=function(k,E){k instanceof _.bh?(this.x+=k.x,this.y+=k.y):(this.x+=Number(k),typeof E==="number"&&(this.y+=E));return this};
_.I.scale=function(k,E){this.x*=k;this.y*=typeof E==="number"?E:k;return this};_.KO=function(k,E){this.width=k;this.height=E};
_.I=_.KO.prototype;_.I.clone=function(){return new _.KO(this.width,this.height)};
_.I.area=function(){return this.width*this.height};
_.I.aspectRatio=function(){return this.width/this.height};
_.I.isEmpty=function(){return!this.area()};
_.I.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.I.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.I.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.I.scale=function(k,E){this.width*=k;this.height*=typeof E==="number"?E:k;return this};var bR5;_.fO={};bR5="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.fO.add=function(k,E,S){if(k!==null&&E in k)throw Error("na`"+E);k[E]=S};
_.fO.clear=function(k){for(var E in k)delete k[E]};
_.fO.clone=function(k){var E={},S;for(S in k)E[S]=k[S];return E};
_.fO.contains=function(k,E){return zhh(k,E)};
_.fO.containsKey=function(k,E){return k!==null&&E in k};
_.fO.containsValue=zhh;_.fO.create=Goi;_.fO.createImmutableView=function(k){var E=k;Object.isFrozen&&!Object.isFrozen(k)&&(E=Object.create(k),Object.freeze(E));return E};
_.fO.createSet=ChR;_.fO.equals=function(k,E){for(var S in k)if(!(S in E)||k[S]!==E[S])return!1;for(var R in E)if(!(R in k))return!1;return!0};
_.fO.every=function(k,E,S){for(var R in k)if(!E.call(S,k[R],R,k))return!1;return!0};
_.fO.extend=function(k,E){for(var S,R,V=1;V<arguments.length;V++){R=arguments[V];for(S in R)k[S]=R[S];for(var N=0;N<bR5.length;N++)S=bR5[N],Object.prototype.hasOwnProperty.call(R,S)&&(k[S]=R[S])}};
_.fO.filter=function(k,E,S){var R={},V;for(V in k)E.call(S,k[V],V,k)&&(R[V]=k[V]);return R};
_.fO.findKey=Qhj;_.fO.findValue=function(k,E,S){return(E=Qhj(k,E,S))&&k[E]};
_.fO.forEach=function(k,E,S){for(var R in k)E.call(S,k[R],R,k)};
_.fO.get=function(k,E,S){return k!==null&&E in k?k[E]:S};
_.fO.getAllPropertyNames=function(k,E,S){if(!k)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return qob(k);for(var R={};k&&(k!==Object.prototype||E)&&(k!==Function.prototype||S);){for(var V=Object.getOwnPropertyNames(k),N=0;N<V.length;N++)R[V[N]]=!0;k=Object.getPrototypeOf(k)}return qob(R)};
_.fO.getAnyKey=function(k){for(var E in k)return E};
_.fO.getAnyValue=function(k){for(var E in k)return k[E]};
_.fO.getCount=function(k){var E=0,S;for(S in k)E++;return E};
_.fO.getKeys=qob;_.fO.getSuperClass=function(k){return(k=Object.getPrototypeOf(k.prototype))&&k.constructor};
_.fO.getValueByKeys=function(k,E){var S=_.sj(E),R=S?E:arguments;for(S=S?0:1;S<R.length;S++){if(k==null)return;k=k[R[S]]}return k};
_.fO.getValues=function(k){var E=[],S=0,R;for(R in k)E[S++]=k[R];return E};
_.fO.isEmpty=function(k){for(var E in k)return!1;return!0};
_.fO.isImmutableView=function(k){return!!Object.isFrozen&&Object.isFrozen(k)};
_.fO.map=function(k,E,S){var R={},V;for(V in k)R[V]=E.call(S,k[V],V,k);return R};
_.fO.remove=function(k,E){var S;(S=E in k)&&delete k[E];return S};
_.fO.set=function(k,E,S){k[E]=S};
_.fO.setIfUndefined=function(k,E,S){return E in k?k[E]:k[E]=S};
_.fO.setWithReturnValueIfNotSet=function(k,E,S){if(E in k)return k[E];S=S();return k[E]=S};
_.fO.some=function(k,E,S){for(var R in k)if(E.call(S,k[R],R,k))return!0;return!1};
_.fO.transpose=function(k){var E={},S;for(S in k)E[k[S]]=S;return E};
_.fO.unsafeClone=OOl;var lM=function(k,E){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=k===MQj&&E||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=ZR4};
lM.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var dVd=function(k){return k instanceof lM&&k.constructor===lM&&k.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===ZR4?k.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},ZR4={},MQj={};
new lM(MQj,"");var rT,Hy,BN,sbY,qYd,MOp,ZB,Qb5,GPA,ORT,yM,Ctd,IBp,NTj,V1T,ny5,iOC,hhY,JxY,cV1,cxA,ehp,aBd,mjj,PN;rT=function(k){return k?new PN(_.dT(k)):Gwh||(Gwh=new PN)};
_.MJ=function(k,E){return typeof E==="string"?k.getElementById(E):E};
Hy=function(k,E){return(E||document).getElementsByTagName(String(k))};
_.led=function(k){return sbY("yt-formatted-string","paper-input-input",k)};
BN=function(k,E,S,R){k=R||k;return(E=E&&E!="*"?String(E).toUpperCase():"")||S?k.querySelectorAll(E+(S?"."+S:"")):k.getElementsByTagName("*")};
sbY=function(k,E,S){var R=document,V=k&&k!="*"?String(k).toUpperCase():"";return V||E?(S||R).querySelector(V+(E?"."+E:"")):BN(R,k,E,S)[0]||null};
qYd=function(k,E){_.fO.forEach(E,function(S,R){R=="style"?k.style.cssText=S:R=="class"?k.className=S:R=="for"?k.htmlFor=S:MOp.hasOwnProperty(R)?k.setAttribute(MOp[R],S):_.I1(R,"aria-")||_.I1(R,"data-")?k.setAttribute(R,S):k[R]=S})};
MOp={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"};_.pO=function(k){k=(k||window).document;k=k.compatMode=="CSS1Compat"?k.documentElement:k.body;return new _.KO(k.clientWidth,k.clientHeight)};
_.z52=function(k){var E=_.Y$(k);k=k.defaultView;return new _.bh((k==null?void 0:k.pageXOffset)||E.scrollLeft,(k==null?void 0:k.pageYOffset)||E.scrollTop)};
_.Y$=function(k){return k.scrollingElement?k.scrollingElement:_.Qb||k.compatMode!="CSS1Compat"?k.body||k.documentElement:k.documentElement};
ZB=function(k){return k?k.defaultView:window};
_.WN=function(k,E,S){return Qb5(document,arguments)};
Qb5=function(k,E){var S=E[1],R=ORT(k,String(E[0]));S&&(typeof S==="string"?R.className=S:Array.isArray(S)?R.className=S.join(" "):qYd(R,S));E.length>2&&GPA(k,R,E,2);return R};
GPA=function(k,E,S,R){function V(J){J&&E.appendChild(typeof J==="string"?k.createTextNode(J):J)}
for(;R<S.length;R++){var N=S[R];if(!_.sj(N)||_.qA(N)&&N.nodeType>0)V(N);else{a:{if(N&&typeof N.length=="number"){if(_.qA(N)){var h=typeof N.item=="function"||typeof N.item=="string";break a}if(typeof N==="function"){h=typeof N.item=="function";break a}}h=!1}_.Sn(h?_.d1(N):N,V)}}};
_.g7=function(k){return ORT(document,k)};
ORT=function(k,E){E=String(E);k.contentType==="application/xhtml+xml"&&(E=E.toLowerCase());return k.createElement(E)};
_.F$=function(){return document.createTextNode("\n")};
yM=function(k){if(k.nodeType!=1)return!1;switch(k.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};
Ctd=function(k,E){GPA(_.dT(k),k,arguments,1)};
_.of=function(k){for(var E;E=k.firstChild;)k.removeChild(E)};
_.X$=function(k,E){E.parentNode&&E.parentNode.insertBefore(k,E)};
_.g9=function(k,E){E.parentNode&&E.parentNode.insertBefore(k,E.nextSibling)};
_.Ua=function(k){return k&&k.parentNode?k.parentNode.removeChild(k):null};
_.koY=function(k,E){var S=E.parentNode;S&&S.replaceChild(k,E)};
_.Ey2=function(k){var E,S=k.parentNode;if(S&&S.nodeType!=11)if(k.removeNode)k.removeNode(!1);else{for(;E=k.firstChild;)S.insertBefore(E,k);_.Ua(k)}};
_.U8=function(k){return k.children!=void 0?k.children:Array.prototype.filter.call(k.childNodes,function(E){return E.nodeType==1})};
_.RhA=function(k){return k.nextElementSibling!==void 0?k.nextElementSibling:_.Sod(k.nextSibling,!0)};
_.Sod=function(k,E){for(;k&&k.nodeType!=1;)k=E?k.nextSibling:k.previousSibling;return k};
_.IW=function(k){return _.qA(k)&&k.nodeType==1};
_.zx=function(k,E){if(!k||!E)return!1;if(k.contains&&E.nodeType==1)return k==E||k.contains(E);if(typeof k.compareDocumentPosition!="undefined")return k==E||!!(k.compareDocumentPosition(E)&16);for(;E&&k!=E;)E=E.parentNode;return E==k};
IBp=function(k,E){if(k==E)return 0;if(k.compareDocumentPosition)return k.compareDocumentPosition(E)&2?1:-1;if("sourceIndex"in k||k.parentNode&&"sourceIndex"in k.parentNode){var S=k.nodeType==1,R=E.nodeType==1;if(S&&R)return k.sourceIndex-E.sourceIndex;var V=k.parentNode,N=E.parentNode;return V==N?V1T(k,E):!S&&_.zx(V,E)?-1*NTj(k,E):!R&&_.zx(N,k)?NTj(E,k):(S?k.sourceIndex:V.sourceIndex)-(R?E.sourceIndex:N.sourceIndex)}R=_.dT(k);S=R.createRange();S.selectNode(k);S.collapse(!0);k=R.createRange();k.selectNode(E);
k.collapse(!0);return S.compareBoundaryPoints(_.Vt.Range.START_TO_END,k)};
NTj=function(k,E){var S=k.parentNode;if(S==E)return-1;for(;E.parentNode!=S;)E=E.parentNode;return V1T(E,k)};
V1T=function(k,E){for(;E=E.previousSibling;)if(E==k)return-1;return 1};
ny5=function(k){var E,S=arguments.length;if(!S)return null;if(S==1)return arguments[0];var R=[],V=Infinity;for(E=0;E<S;E++){for(var N=[],h=arguments[E];h;)N.unshift(h),h=h.parentNode;R.push(N);V=Math.min(V,N.length)}N=null;for(E=0;E<V;E++){h=R[0][E];for(var J=1;J<S;J++)if(h!=R[J][E])return N;N=h}return N};
_.dT=function(k){return k.nodeType==9?k:k.ownerDocument||k.document};
iOC=function(k){return k.contentDocument||k.contentWindow.document};
_.HN=function(k,E){if("textContent"in k)k.textContent=E;else if(k.nodeType==3)k.data=String(E);else if(k.firstChild&&k.firstChild.nodeType==3){for(;k.lastChild!=k.firstChild;)k.removeChild(k.lastChild);k.firstChild.data=String(E)}else _.of(k),k.appendChild(_.dT(k).createTextNode(String(E)))};
hhY={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};JxY={IMG:" ",BR:"\n"};cV1=function(k){var E;k.tagName=="A"&&k.hasAttribute("href")||k.tagName=="INPUT"||k.tagName=="TEXTAREA"||k.tagName=="SELECT"||k.tagName=="BUTTON"?E=!k.disabled&&(!k.hasAttribute("tabindex")||cxA(k)):E=k.hasAttribute("tabindex")&&cxA(k);return E};
cxA=function(k){k=k.tabIndex;return typeof k==="number"&&k>=0&&k<32768};
ehp=function(k){var E=[];mjj(k,E,!0);k=E.join("");k=k.replace(/ \xAD /g," ").replace(/\xAD/g,"");k=k.replace(/\u200B/g,"");k=k.replace(/ +/g," ");k!=" "&&(k=k.replace(/^\s*/,""));return k};
aBd=function(k){var E=[];mjj(k,E,!1);return E.join("")};
mjj=function(k,E,S){if(!(k.nodeName in hhY))if(k.nodeType==3)S?E.push(String(k.nodeValue).replace(/(\r\n|\r|\n)/g,"")):E.push(k.nodeValue);else if(k.nodeName in JxY)E.push(JxY[k.nodeName]);else for(k=k.firstChild;k;)mjj(k,E,S),k=k.nextSibling};
_.t1T=function(k,E,S){if(!E&&!S)return null;var R=E?String(E).toUpperCase():null;return _.lh(k,function(V){return(!R||V.nodeName==R)&&(!S||typeof V.className==="string"&&_.bC(V.className.split(/\s+/),S))},!0)};
_.lh=function(k,E,S){k&&!S&&(k=k.parentNode);for(S=0;k;){if(E(k))return k;k=k.parentNode;S++}return null};
PN=function(k){this.JSC$9321_document_=k||_.Vt.document||document};
_.I=PN.prototype;_.I.getElement=function(k){return _.MJ(this.JSC$9321_document_,k)};
_.I.$=PN.prototype.getElement;_.I.getElementsByTagName=function(k,E){return(E||this.JSC$9321_document_).getElementsByTagName(String(k))};
_.I.getElementsByTagNameAndClass=function(k,E,S){return BN(this.JSC$9321_document_,k,E,S)};
_.I.$$=PN.prototype.getElementsByTagNameAndClass;_.I.setProperties=qYd;_.I.JSC$9323_createDom=function(k,E,S){return Qb5(this.JSC$9321_document_,arguments)};
_.I.createElement=function(k){return ORT(this.JSC$9321_document_,k)};
_.I.createTextNode=function(k){return this.JSC$9321_document_.createTextNode(String(k))};
_.I.getWindow=function(){return this.JSC$9321_document_.defaultView};
var Ax=function(k){return _.z52(k.JSC$9321_document_)};
_.I=PN.prototype;_.I.appendChild=function(k,E){k.appendChild(E)};
_.I.append=Ctd;_.I.canHaveChildren=yM;_.I.removeNode=_.Ua;_.I.getChildren=_.U8;_.I.contains=_.zx;_.I.isFocusable=cV1;_.I=WH.prototype;_.I.getWidth=function(){return this.right-this.left};
_.I.getHeight=function(){return this.bottom-this.top};
_.I.clone=function(){return new WH(this.top,this.right,this.bottom,this.left)};
_.I.contains=function(k){return this&&k?k instanceof WH?k.left>=this.left&&k.right<=this.right&&k.top>=this.top&&k.bottom<=this.bottom:k.x>=this.left&&k.x<=this.right&&k.y>=this.top&&k.y<=this.bottom:!1};
_.I.expand=function(k,E,S,R){_.qA(k)?(this.top-=k.top,this.right+=k.right,this.bottom+=k.bottom,this.left-=k.left):(this.top-=k,this.right+=Number(E),this.bottom+=Number(S),this.left-=Number(R));return this};
_.I.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};
_.I.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};
_.I.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};
_.I.translate=function(k,E){k instanceof _.bh?(this.left+=k.x,this.right+=k.x,this.top+=k.y,this.bottom+=k.y):(this.left+=k,this.right+=k,typeof E==="number"&&(this.top+=E,this.bottom+=E));return this};
_.I.scale=function(k,E){E=typeof E==="number"?E:k;this.left*=k;this.right*=k;this.top*=E;this.bottom*=E;return this};var KT=function(k,E,S,R){this.left=k;this.top=E;this.width=S;this.height=R};
_.I=KT.prototype;_.I.clone=function(){return new KT(this.left,this.top,this.width,this.height)};
_.I.boundingRect=function(k){var E=Math.max(this.left+this.width,k.left+k.width),S=Math.max(this.top+this.height,k.top+k.height);this.left=Math.min(this.left,k.left);this.top=Math.min(this.top,k.top);this.width=E-this.left;this.height=S-this.top};
_.I.contains=function(k){return k instanceof _.bh?k.x>=this.left&&k.x<=this.left+this.width&&k.y>=this.top&&k.y<=this.top+this.height:this.left<=k.left&&this.left+this.width>=k.left+k.width&&this.top<=k.top&&this.top+this.height>=k.top+k.height};
_.I.distance=function(k){var E=k.x<this.left?this.left-k.x:Math.max(k.x-(this.left+this.width),0);k=k.y<this.top?this.top-k.y:Math.max(k.y-(this.top+this.height),0);return Math.sqrt(E*E+k*k)};
_.I.getSize=function(){return new _.KO(this.width,this.height)};
_.I.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};
_.I.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};
_.I.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};
_.I.translate=function(k,E){k instanceof _.bh?(this.left+=k.x,this.top+=k.y):(this.left+=k,typeof E==="number"&&(this.top+=E));return this};
_.I.scale=function(k,E){E=typeof E==="number"?E:k;this.left*=k;this.width*=k;this.top*=E;this.height*=E;return this};var wHC,r9,oOC,Aa,W7T,YoC,F7p,T9j,yx8,XH5;_.pT=function(k,E,S){if(typeof E==="string")(E=_.TTY(k,E))&&(k.style[E]=S);else for(var R in E){S=k;var V=E[R],N=_.TTY(S,R);N&&(S.style[N]=V)}};
wHC={};_.TTY=function(k,E){var S=wHC[E];if(!S){var R=_.Ir(E);S=R;k.style[R]===void 0&&(R=(_.Qb?"Webkit":_.ze?"Moz":null)+ZgA(R),k.style[R]!==void 0&&(S=R));wHC[E]=S}return S};
_.Q3=function(k,E){var S=_.dT(k);return S.defaultView&&S.defaultView.getComputedStyle&&(k=S.defaultView.getComputedStyle(k,null))?k[E]||k.getPropertyValue(E)||"":""};
_.qT=function(k,E){return _.Q3(k,E)||(k.currentStyle?k.currentStyle[E]:null)||k.style&&k.style[E]};
_.Phd=function(k){return _.qT(k,"position")};
r9=function(k,E,S){if(E instanceof _.bh){var R=E.x;E=E.y}else R=E,E=S;k.style.left=Aa(R,!1);k.style.top=Aa(E,!1)};
oOC=function(k){try{return k.getBoundingClientRect()}catch(E){return{left:0,top:0,right:0,bottom:0}}};
_.so=function(k){var E=_.dT(k),S=new _.bh(0,0);if(k==(E?_.dT(E):document).documentElement)return S;k=oOC(k);E=Ax(rT(E));S.x=k.left+E.x;S.y=k.top+E.y;return S};
_.BTj=function(k,E,S){if(E instanceof _.KO)S=E.height,E=E.width;else if(S==void 0)throw Error("oa");k.style.width=Aa(E,!0);k.style.height=Aa(S,!0)};
Aa=function(k,E){typeof k=="number"&&(k=(E?Math.round(k):k)+"px");return k};
W7T=function(k){return YoC(k)};
YoC=function(k){var E=F7p;if(_.qT(k,"display")!="none")return E(k);var S=k.style,R=S.display,V=S.visibility,N=S.position;S.visibility="hidden";S.position="absolute";S.display="inline";k=E(k);S.display=R;S.position=N;S.visibility=V;return k};
F7p=function(k){var E=k.offsetWidth,S=k.offsetHeight,R=_.Qb&&!E&&!S;return(E===void 0||R)&&k.getBoundingClientRect?(k=oOC(k),new _.KO(k.right-k.left,k.bottom-k.top)):new _.KO(E,S)};
T9j=function(k){var E=_.so(k);k=YoC(k);return new KT(E.x,E.y,k.width,k.height)};
yx8=function(k,E){k=k.style;"opacity"in k?k.opacity=E:"MozOpacity"in k?k.MozOpacity=E:"filter"in k&&(k.filter=E===""?"":"alpha(opacity="+Number(E)*100+")")};
_.Em=function(k,E){k.style.display=E?"":"none"};
_.oy8=function(k){return"rtl"==_.qT(k,"direction")};
XH5=function(k){var E=_.Q3(k,"marginLeft"),S=_.Q3(k,"marginRight"),R=_.Q3(k,"marginTop");k=_.Q3(k,"marginBottom");return new WH(parseFloat(R),parseFloat(S),parseFloat(k),parseFloat(E))};
_.gyC=function(k){var E=_.Q3(k,"borderLeftWidth"),S=_.Q3(k,"borderRightWidth"),R=_.Q3(k,"borderTopWidth");k=_.Q3(k,"borderBottomWidth");return new WH(parseFloat(R),parseFloat(S),parseFloat(k),parseFloat(E))};var uE=function(k){this.context=k};
uE.prototype.isSupported=function(k){return(k==null?0:k.attributionEnabled)||(k==null?void 0:k.beaconMethod)==="POST"||(k==null?0:k.customHeaders)||(k==null?0:k.customBody)||(k==null?0:k.keepAlive)?!1:!cN(this.context)};
uE.prototype.ping=function(){var k=this;return AE(_.sX.apply(0,arguments).map(function(E){try{var S=k.context.global,R=!1;R=R===void 0?!1:R;S.google_image_requests||(S.google_image_requests=[]);var V=feY("IMG",S.document);R&&(V.attributionSrc="");V.src=E;S.google_image_requests.push(V);return!0}catch(N){return!1}}).every(function(E){return E}))};
uE.prototype.pingWithHeadersAndBody=function(k,E,S){this.ping.apply(this,_.$e(_.sX.apply(3,arguments)))};var Uj5=function(k){this.context=k};
Uj5.prototype.isSupported=function(k){return HOY&&!cN(this.context)&&kxm(this.context)!==void 0&&!(k==null?0:k.attributionEnabled)&&(k==null?void 0:k.beaconMethod)!=="POST"&&!(k==null?0:k.customHeaders)&&!(k==null?0:k.customBody)};
Uj5.prototype.makeBeacon=function(k,E){if(!this.isSupported(E))throw new nT;return new x$(this.context,k)};
var HOY=!1,x$=function(k,E){this.context=k;this.JSC$9342_urlWithoutToken=E;k=kxm(this.context);if(k===void 0)throw Error();this.wrappedBeacon=new k(K7p(this),{})},K7p=function(k){k=k.JSC$9342_urlWithoutToken;
return(k.slice(-1)[0]==="&"?k:k+"&")+"pbapi=1"};
x$.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
x$.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
x$.prototype.setHeader=function(){};
_.mt.Object.defineProperties(x$.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9342_urlWithoutToken},
set:function(k){this.JSC$9342_urlWithoutToken=k;this.wrappedBeacon.setURL(K7p(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(k){if(k!=="GET")throw new nT;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var pHY=function(k){this.context=k};
pHY.prototype.isSupported=function(k){if((k==null?0:k.attributionEnabled)||(k==null?void 0:k.beaconMethod)==="GET"||(k==null?0:k.customHeaders)||(k==null?0:k.customBody)||(k==null?0:k.keepAlive))return!1;var E;return!cN(this.context)&&((E=this.context.global.navigator)==null?void 0:E.sendBeacon)!==void 0};
pHY.prototype.ping=function(){var k=this;return AE(_.sX.apply(0,arguments).map(function(E){var S;return(S=k.context.global.navigator)==null?void 0:S.sendBeacon(E)}).every(function(E){return E}))};
pHY.prototype.pingWithHeadersAndBody=function(k,E,S){this.ping.apply(this,_.$e(_.sX.apply(3,arguments)))};var gT=function(k){this.value=k},RX=function(k,E){return AE(k.value).pipe(oh(E))},NT=new gT(!1),j2e=new gT(!0);var Mj=function(k){this.value=k;this.releasedSubject=new F1};
Mj.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.mt.Object.defineProperties(Mj.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9355_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var e2C=["FRAME","IMG","IFRAME"],n4l=/^[01](px)?$/,mT1=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},cPI=function(){var k=new mT1;
k.crossDomainLoadedDefault=!0;k.pendingImagesBlockLoad=!0;return k};var AxT=function(k,E){var S=Yah(k);if(S)if(S.onCreativeLoad)S.onCreativeLoad(E);else{var R=E?[E]:[],V=function(N){for(var h=0;h<R.length;++h)try{R[h](1,N)}catch(J){}R={push:function(J){J(1,N)}}};
S.onCreativeLoad=function(N){R.push(N)};
S.setAttribute("data-creative-load-listener","");S.addEventListener("creativeLoad",function(N){V(N.detail)});
_.Vt.addEventListener("message",function(N){B7I(S,V,N)})}};var LT=function(k,E){var S=this;this.global=k;this.parentContext=E;this.JSC$9366_onVisibilityChange=this.document?MV(AE(!0),Ze(this.document,"visibilitychange")).pipe(OY(this.parentContext.performanceMonitor,748),De(function(){return S.getVisibilityState()}),Rh()):AE("visible");
this.document?Ze(this.document,"DOMContentLoaded").pipe(OY(this.parentContext.performanceMonitor,739),S1(1)):AE(N7I("DOMContentLoaded"))},LN1=function(k){return k.document!==null&&k.document.visibilityState!==void 0};
LT.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
LT.prototype.querySelector=function(k){return this.document?this.document.querySelector(k):null};
LT.prototype.querySelectorAll=function(k){return this.document?_.d1(this.document.querySelectorAll(k)):[]};
LT.prototype.elementFromPoint=function(k,E){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;k=this.document.elementFromPoint(k,E);return k===null?null:new Mj(k)};
var okb=function(k,E,S){S=S===void 0?!1:S;if(E.ref===void 0||!k.document)return AE(E).pipe(OY(k.parentContext.performanceMonitor,749));var R=new ih(1),V=function(){R.next(E)};
S||AxT(E.ref,V);a7l(E.ref,V);return R.pipe(OY(k.parentContext.performanceMonitor,749),S1(1))};
_.mt.Object.defineProperties(LT.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return jhi(this.global,"document")?this.global.document||null:null}}});var Wbi=_.ry(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),FbI=_.ry(["./reach_worklet.js"]),yPt=_.ry(["./reach_worklet.js"]),rx2=_.ry(["./reach_worklet.html"]),u1Y=_.ry(["./reach_worklet.js"]),xjd=_.ry(["./reach_worklet.js"]);_.BH(rx2);_.BH(u1Y);_.BH(xjd);var Go={left:0,top:0,width:0,height:0};var L7C,jhA,Dj2,$jz,h3,vyA,bOC,ZOC,pbi,AMC,lBY,M1Y;L7C=function(k,E,S,R,V,N,h){var J="";k&&(J+=k+":");S&&(J+="//",E&&(J+=E+"@"),J+=S,R&&(J+=":"+R));V&&(J+=V);N&&(J+="?"+N);h&&(J+="#"+h);return J};
jhA=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.nC=function(k){return k.match(jhA)};
_.mJ=function(k,E){return k?E?decodeURI(k):decodeURIComponent(k):k};
Dj2=function(k){k=_.nC(k)[1]||null;!k&&_.Vt.self&&_.Vt.self.location&&(k=_.Vt.self.location.protocol.slice(0,-1));return k?k.toLowerCase():""};
_.iJ=function(k){return _.mJ(_.nC(k)[3]||null,!0)};
_.Xu=function(k){return _.mJ(_.nC(k)[5]||null,!0)};
_.t0I=function(k){var E=k.indexOf("#");return E<0?null:k.slice(E+1)};
$jz=function(k){k=_.nC(k);return L7C(k[1],k[2],k[3],k[4])};
_.fBT=function(k){k=_.nC(k);return L7C(k[1],null,k[3],k[4])};
_.AI=function(k){k=_.nC(k);return L7C(null,null,null,null,k[5],k[6],k[7])};
_.fI=function(k){var E=k.indexOf("#");return E<0?k:k.slice(0,E)};
h3=function(k,E){k=_.nC(k);E=_.nC(E);return k[3]==E[3]&&k[1]==E[1]&&k[4]==E[4]};
vyA=function(k,E){if(k){k=k.split("&");for(var S=0;S<k.length;S++){var R=k[S].indexOf("="),V=null;if(R>=0){var N=k[S].substring(0,R);V=k[S].substring(R+1)}else N=k[S];E(N,V?c_(V):"")}}};
bOC=function(k){var E=k.indexOf("#");E<0&&(E=k.length);var S=k.indexOf("?");if(S<0||S>E){S=E;var R=""}else R=k.substring(S+1,E);return[k.slice(0,S),R,k.slice(E)]};
ZOC=function(k,E){return E?k?k+"&"+E:E:k};
_.djY=function(k,E){if(!E)return k;k=bOC(k);k[1]=ZOC(k[1],E);return k[0]+(k[1]?"?"+k[1]:"")+k[2]};
_.shz=function(k,E,S){if(Array.isArray(E))for(var R=0;R<E.length;R++)_.shz(k,String(E[R]),S);else E!=null&&S.push(k+(E===""?"":"="+_.Eg(E)))};
_.Ug=function(k){var E=[],S;for(S in k)_.shz(S,k[S],E);return E.join("&")};
_.Iu=function(k,E){E=_.Ug(E);return _.djY(k,E)};
_.ju=function(k,E,S){S=S!=null?"="+_.Eg(S):"";return _.djY(k,E+S)};
pbi=function(k,E,S,R){for(var V=S.length;(E=k.indexOf(S,E))>=0&&E<R;){var N=k.charCodeAt(E-1);if(N==38||N==63)if(N=k.charCodeAt(E+V),!N||N==61||N==38||N==35)return E;E+=V+1}return-1};
AMC=/#|$/;_.Qo=function(k,E){var S=k.search(AMC),R=pbi(k,0,E,S);if(R<0)return null;var V=k.indexOf("&",R);if(V<0||V>S)V=S;R+=E.length+1;return c_(k.slice(R,V!==-1?V:0))};
lBY=/[?&]($|#)/;_.bW=function(k,E){for(var S=k.search(AMC),R=0,V,N=[];(V=pbi(k,R,E,S))>=0;)N.push(k.substring(R,V)),R=Math.min(k.indexOf("&",V)+1||S,S);N.push(k.slice(R));return N.join("").replace(lBY,"$1")};
_.Md=function(k,E,S){return _.ju(_.bW(k,E),E,S)};
M1Y=function(k){var E=bOC(window.location.href),S=E[1],R=[];S&&S.split("&").forEach(function(V){var N=V.indexOf("=");N=N>=0?V.slice(0,N):V;k.hasOwnProperty(N)||R.push(V)});
E[1]=ZOC(R.join("&"),_.Ug(k));return E[0]+(E[1]?"?"+E[1]:"")+E[2]};var dTC=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(dTC,_.iu);dTC.prototype.getVersion=function(){return _.t2(this,2)};var Zul=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Zul,_.iu);var jX1=function(k,E){return _.uh(k,2,E)},but=function(k,E){return _.uh(k,3,E)};
Zul.prototype.getModel=function(){return _.t2(this,4)};
var $TI=function(k,E){return _.uh(k,4,E)},Lbj=function(k,E){return _.uh(k,5,E)},v4C=function(k,E){return _.uh(k,9,E)},xT1=function(k,E){return h2(k,10,E)},ubh=function(k,E){return _.w7(k,11,E)},DTb=function(k,E){return _.uh(k,1,E)},f7C=function(k,E){return _.w7(k,7,E)};var APb="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Vo=function(k,E,S,R){k=k===void 0?window:k;E=E===void 0?null:E;S=S===void 0?new hs5:S;R=R===void 0?o4I():R;VOY.call(this);var V=this;this.global=k;this.debugChannel=E;this.performanceMonitor=S;this.onPageHide=IBA(function(){return Ze(V.global,"pagehide")}).pipe(OY(this.performanceMonitor,941));
this.onLoad=IBA(function(){return Ze(V.global,"load")}).pipe(OY(this.performanceMonitor,738),S1(1));
this.onResize=IBA(function(){return Ze(V.global,"resize")}).pipe(OY(this.performanceMonitor,741));
this.onMessage=IBA(function(){return Ze(V.global,"message")}).pipe(OY(this.performanceMonitor,740));
this.document=new LT(this.global,this);this.timeProvider=new JEY(new mVd(this.intrinsicFunctionNamespace,this.performanceMonitor),new cEY(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new ned(new ae8(this),new Uj5(this),new iE(this,new wdC(this)),new iE(this,new pHY(this)),new iE(this,new uE(this)))};
_.y(Vo,VOY);Vo.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(k){return k}};
var cN=function(k){var E=k.global;return!!k.global.HTMLFencedFrameElement&&!!E.fence&&typeof E.fence.reportEvent==="function"};
_.I=Vo.prototype;_.I.reportFencedFrameEvent=function(k){cN(this)&&this.global.fence.reportEvent(k)};
_.I.getOnBackgrounded=function(){return this.onPageHide.pipe(OY(this.performanceMonitor,942),oh(this.queue),De(function(){}))};
_.I.postMessage=function(k,E,S){S=S===void 0?[]:S;this.global.postMessage(k,E,S)};
_.I.getWidth=function(){return Djb(this.global)?this.global.width:0};
_.I.getHeight=function(){return Djb(this.global)?this.global.height:0};
_.I.isMobile=function(){return YYY()||Wo8()};
var qj=function(k,E){try{var S=HuI(E,k.global,k.isMobile());return{left:S.left,top:S.top,width:S.getWidth(),height:S.getHeight()}}catch(R){return Go}};
Vo.prototype.validate=function(){var k=this.beaconFactory.isSupported()||cN(this);return this.global&&this.timeProvider.available()&&k};
var Sai=function(k){return(k=l71(k.global))?Wd(k):null};
_.mt.Object.defineProperties(Vo.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(k){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(k){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Djb(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}}});_.qo2=!_.qX&&!_.PCb();var Dg1=function(k){return k};var f_C=function(k){return k.pipe(qV(function(E){var S=E.endOfSessionReason;var R;return((R=E.viewable)==null?void 0:R.extrapolateToNow().value)||S!=void 0}),S1(1),CR())};var CkC=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},kL1=function(k){var E=k.sequenceNumber.toString(10).padStart(2,"0");
E=""+k.startTime+E;k.sequenceNumber<99&&k.sequenceNumber++;return E};var xge=wP(ah(function(k){return k.endOfSessionReason===void 0}),De(function(k){return Object.assign({},k,{timestamps:LO(k)})}),qV(function(k){var E=k.viewable;
k=k.timestamps;var S;return(S=E==null?void 0:E.extrapolateUsingTimestampMap(k).value)!=null?S:!1}),De(function(k){var E=k.beaconFactory;
var S=k.timestampedExposureHistory;var R=k.timeOnScreen;var V=k.binaryContext;k=k.timestamps;if(E===void 0||S===void 0||R===void 0||V===void 0)return!1;if(R.extrapolateUsingTimestampMap(k).value.every(function(N){return N>=0}))return!0;
S=S.map(function(N){return N.timestamp+":"+N.value}).join(",");
R=EOm({bin:V,tos:R},k);E.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+R+("&eh="+S)).sendNow();return!0}),ah(function(k){return!k}),CR());var RwA=function(k){return{id:k.pingId,mcvt:k.maxConsecutiveViewTime,p:k.creativePosition,asp:k.adSpeedPosition,tm:k.totalMeasurementTime,tu:k.totalUnviewedTime,mtos:k.maxTimeOnScreen,tos:k.timeOnScreen,v:k.binaryVersion,bin:k.binaryContext,avms:k.measurementStrategy,bs:k.browserSize,mc:k.maximumExposure,"if":k.crossDomainIframeState,vu:k.delayedImpressionJsState,app:k.inApp,mse:k.mraidError,mtop:k.mraidSituation,itpl:k.injectedTemplateId,adk:k.adKey,exk:k.awbidKey,rs:k.requestSource,la:k.isLargeAd,
cr:k.isContentRecommendationAd,uach:k.userAgentClientHints,vs:k.viewState,r:k.reasonCode,pay:k.hasCpmavUrl,co:k.clientPingOrderCounter,rst:k.adRenderStartTime,rpt:k.adRenderPeriodTime,isd:k.initialScrollDepth,lsd:k.loadedScrollDepth,context:k.errorContext,msg:k.errorMessage,stack:k.errorStack,name:k.errorName,ec:k.hasElementChanged,sfr:k.strategyFailureReasons,met:k.creativeSearchResult,wmsd:k.webMeasurementStartDiagnostic,pv:k.pageVisible,epv:k.eosPageVisible,pbe:k.inStatefulBeaconExperiment,fle:k.inFetchLaterBeaconExperiment,
vae:k.inViewableAttributionExperiment,spb:k.supportsPendingBeacon,sfl:k.supportsFetchLater,ffslot:k.isFencedFrameSlotTurtlex,reach:k.sharedStorageReachMode,io2:k.v2VisibilityBitVector,rxdbg:k.rxDebugger,omida:k.omidAppId,omidp:k.omidPartner,omidpv:k.omidPartnerVersion,omidor:k.omidOcclusionReasons,omidv:k.omidVersion,omids:k.omidSessionType,omidam:k.omidAccessMode,omidct:k.omidCreativeType,omidia:k.omidInApp,omiddc:k.omidDeviceCategory,omidlat:k.omidLastActivity,omiddit:k.omidDeviceIdleTime,qid:k.errorEscapedQueryId}};var $g1=function(k){var E=[];return k.pipe(De(function(S){var R=S.beaconFactory,V=S.fetchBeaconFactory,N=S.timeOnScreen,h=S.timeOnScreenUrlPrefixes,J=S.payloadMapper,m=S.timeOnScreenPingId,a=S.timeOnScreenReason,T=S.urlSerializer,w=S.viewable,P=S.hasImpressionFired,B=S.inStatefulBeaconExperiment,F=S.supportsPendingBeacon,K=S.supportsFetchLater,r=S.turtlexReportEventData;if(!S.geometryMeasurable||!P||S.maxTimeOnScreen===void 0||N===void 0||h===void 0||J===void 0||m===void 0||T===void 0||R===void 0)return!1;
if(S.isTurtlex){if(a===void 0)return!1;h=S.reportFencedFrameEvent;if(!h)return!1;h({eventType:"active-view-time-on-screen",eventData:r!=null?r:"",destination:["buyer"]});return!0}if(!(B||K||a))return!1;r=LO(S);var x;w=(x=w==null?void 0:w.extrapolateUsingTimestampMap(r).value)!=null?x:!1;x=T(Object.assign({},S,{pingId:m,viewState:w?4:3,reasonCode:a!=null?a:"u",payloadMapper:J,urlPrefixes:h}),r);if(B){for(;E.length>h.length;)S=void 0,(S=E.shift())==null||S.deactivate();x.forEach(function(q,M){M>=E.length?
E.push(R.makeBeacon(q)):E[M].url=q});
return F&&V&&a!==void 0?(x.forEach(function(q){V.makeBeacon(q).sendNow()}),!0):a!==void 0}if(F&&V&&a!==void 0)return x.forEach(function(q){V.makeBeacon(q).sendNow()}),!0;
if(K&&V){for(;E.length>h.length;)F=void 0,(F=E.shift())==null||F.deactivate();var L=T(Object.assign({},S,{pingId:m,viewState:w?4:3,reasonCode:a!=null?a:"u",payloadMapper:J,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),r)[0];x.forEach(function(q,M){M>=E.length?E.push(R.makeBeacon(L,{endOfSession:!0})):E[M].url=L});
return a!==void 0?(x.forEach(function(q){V.makeBeacon(q).sendNow()}),!0):a!==void 0}return a!==void 0?(x.forEach(function(q){R.makeBeacon(q).sendNow()}),!0):!1}),ah(function(S){return!S}),CR())};var vkj=wP(qV(function(k){return k.immediateUrlPrefixes!==void 0&&k.payloadMapper!==void 0&&k.urlSerializer!==void 0&&k.inferredPingId!==void 0&&k.beaconFactory!==void 0}),qV(function(k){return cNI(k)!==null}),hwj(function(k){return k.activeViewUnmeasurableEvent},function(k){return k.emit}),De(function(k){if(k.isTurtlex){var E=k.reportFencedFrameEvent;
if(E){var S;E({eventType:"active-view-unmeasurable",eventData:(S=k.turtlexReportEventData)!=null?S:"",destination:["buyer"]})}}else{S=void 0;var R=cNI(k);if(R==="x"){var V,N=(V=k.geometricMeasurementErrors)!=null?V:k.contextValidationErrors;N&&(E=N.stack,S=N.message)}k.urlSerializer(Object.assign({},k,{urlPrefixes:k.immediateUrlPrefixes,payloadMapper:k.payloadMapper,pingId:k.inferredPingId,viewState:2,reasonCode:R,errorMessage:S,errorStack:E}),LO(k)).forEach(function(h){k.beaconFactory.makeBeacon(h).sendNow()})}}),
S1(1),CR());var mnm=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var u4I=wP(qV(function(k){return k.payloadMapper!==void 0&&k.immediateUrlPrefixes!==void 0&&k.urlSerializer!==void 0&&k.inferredPingId!==void 0&&k.beaconFactory!==void 0}),De(function(k){return Object.assign({},k,{timestamps:LO(k)})}),qV(function(k){var E=k.viewable;
var S=k.hasImpressionFired;k=k.timestamps;var R;return!!S&&((R=E==null?void 0:E.extrapolateUsingTimestampMap(k).value)!=null?R:!1)}),hwj(function(k){return k.activeViewViewableEvent},function(k){return k.emit}),De(function(k){var E=k.beaconFactory,S=k.turtlexReportEventData;
if(k.isTurtlex){var R=k.reportFencedFrameEvent;if(!R)return!1;R({eventType:"active-view-viewable",eventData:S!=null?S:"",destination:["buyer"]});return!0}S=k.urlSerializer(Object.assign({},k,{urlPrefixes:k.immediateUrlPrefixes,payloadMapper:k.payloadMapper,pingId:k.inferredPingId,viewState:4,reasonCode:"v"}),k.timestamps);(R=k.cpmavUrls)&&R.length>0&&k.viewUrlSerializer&&k.viewUrlSerializer(R,k).forEach(function(V){E.makeBeacon(V).sendNow()});
(R=k.viewableRelayUrls)&&R.length>0&&k.viewUrlSerializer&&k.viewUrlSerializer(R,k).forEach(function(V){E.makeBeacon(V).sendNow()});
S.forEach(function(V){E.makeBeacon(V,{attributionEnabled:k.isViewableAttributionEnabled}).sendNow()});
return!0}),ah(function(k){return!k}),CR());var Rul=De(function(k){return[k.value.topWindowViewportExternalGeometry.width,k.value.topWindowViewportExternalGeometry.height]});var Q$=function(k,E){this.callback=k;this.options=E;this.intersectionObserverV2=this.intersectionObserverV1=null},$nI=function(k,E){E?k.intersectionObserverV2||(E=Object.assign({},k.options,{delay:100,
trackVisibility:!0}),k.intersectionObserverV2=new IntersectionObserver(k.callback,E)):k.intersectionObserverV1||(k.intersectionObserverV1=new IntersectionObserver(k.callback,k.options))},zhC=function(k,E){k=E?k.intersectionObserverV2:k.intersectionObserverV1;
if(!k)throw new NP2;return k};
Q$.prototype.observe=function(k,E){zhC(this,k).observe(E)};
Q$.prototype.unobserve=function(k,E){zhC(this,k).unobserve(E)};
Q$.prototype.disconnect=function(k){zhC(this,k).disconnect()};
Q$.prototype.takeRecords=function(k){return zhC(this,k).takeRecords()};var gO1={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Go,topWindowViewportExternalGeometry:Go,measurementRequests:new F1,elementGeometrySourceName:"ns",elementGeometry:Go,intersectionGeometry:Go,viewportLocalAppOffset:{x:0,y:0}};var lK1=CO(wP(De(function(k){var E;return(E=k.exposureOverride)!=null?E:vOb(k)}),De(function(k){return isFinite(k)?k:0}))),CIe=CO(wP(De(function(k){var E;
return(E=k.exposureOverride)!=null?E:vOb(k)}),De(function(k){return isFinite(k)?k:-1})));var DX=function(k,E){this.a=k;this.b=E;if(k.clock.timeline!==E.clock.timeline)throw Error();};
DX.prototype.equivalentTo=function(k){return k instanceof DX?this.a.equivalentTo(k.a)&&this.b.equivalentTo(k.b):!1};
DX.prototype.extrapolateToTime=function(k){var E=this.a.extrapolateToTime(k).value,S=this.b.extrapolateToTime(k).value;return{timestamp:k,value:[E,S]}};
_.mt.Object.defineProperties(DX.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 k=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),E=this.a.lastMeasurement.timestamp.equals(k)?this.a.lastMeasurement.value:this.a.extrapolateToTime(k).value,S=this.b.lastMeasurement.timestamp.equals(k)?this.b.lastMeasurement.value:this.b.extrapolateToTime(k).value;return{timestamp:k,value:[E,S]}}}});var $$=function(k,E){this.input=k;this.mapFunction=E;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
$$.prototype.equivalentTo=function(k){return k instanceof $$?this.input.equivalentTo(k.input)&&this.mapFunction===k.mapFunction:!1};
$$.prototype.extrapolateToTime=function(k){k=this.input.extrapolateToTime(k);return{timestamp:k.timestamp,value:this.mapFunction(k.value)}};
_.mt.Object.defineProperties($$.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var fT=function(){};
fT.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
fT.prototype.extrapolateUsingTimestampMap=function(k){var E=this.clock.timeline,S,R=(S=k.get(E))!=null?S:this.clock.now();k.set(E,R);return this.extrapolateToTime(R)};
fT.prototype.map=function(k){return new Qh5(this,k)};
fT.prototype.joinWith=function(k){return new OOj(this,k)};
var OOj=function(){DX.apply(this,arguments);this.map=fT.prototype.map;this.joinWith=fT.prototype.joinWith;this.extrapolateToNow=fT.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=fT.prototype.extrapolateUsingTimestampMap};
_.y(OOj,DX);var Qh5=function(){$$.apply(this,arguments);this.map=fT.prototype.map;this.joinWith=fT.prototype.joinWith;this.extrapolateToNow=fT.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=fT.prototype.extrapolateUsingTimestampMap};
_.y(Qh5,$$);var Ea=function(k,E){this.lastMeasurement=E;this.extrapolateToNow=fT.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=fT.prototype.extrapolateUsingTimestampMap;this.map=fT.prototype.map;this.joinWith=fT.prototype.joinWith;this.clock=k};
Ea.prototype.equivalentTo=function(k){return k.active};
Ea.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.mt.Object.defineProperties(Ea.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var S41=De(function(k){if(k.value.viewportGeometrySourceName==="omid"){if(k.value.elementGeometrySourceName==="nio")return"omio";if(k.value.elementGeometrySourceName==="geo")return"omgeo"}return k.value.elementGeometrySourceName==="geo"||k.value.elementGeometrySourceName==="nio"?k.value.viewportGeometrySourceName:k.value.elementGeometrySourceName});var Zom=wP(qV(function(k){return!isNaN(k)}),cH(function(k,E){return isNaN(k)?E:Math.min(k,E)},NaN),Rh());var M$e=CO(wP(De(function(k){return k.intersectionGeometry.width*k.intersectionGeometry.height/(k.exposedViewportLocalGeometry.width*k.exposedViewportLocalGeometry.height)}),De(function(k){return isFinite(k)?Math.min(1,k):0})));var Ekl=wP(CO(De(function(k){k=k.exposureOverride?k.elementGeometry.width*k.elementGeometry.height*k.exposureOverride/(k.topWindowViewportExternalGeometry.width*k.topWindowViewportExternalGeometry.height):k.intersectionGeometry.width*k.intersectionGeometry.height/(k.topWindowViewportExternalGeometry.width*k.topWindowViewportExternalGeometry.height);return isFinite(k)?k:0})));var I_j=function(k,E){var S=this;this.timeProvider=k;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=E.pipe(Rh()).subscribe(function(R){iVb(S);S.measurementRequestObserver=R})},huj=function(k,E){iVb(k);
k.lastMeasurementRequest=k.timeProvider.setTimeout(function(){var S;return void((S=k.measurementRequestObserver)==null?void 0:S.next())},E)},iVb=function(k){k.lastMeasurementRequest!==null&&k.timeProvider.clearTimeout(k.lastMeasurementRequest);
k.lastMeasurementRequest=null};
I_j.prototype.dispose=function(){iVb(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var GoA=function(){};var pCI=function(k,E){this.context=k;this.strategies=E};
_.y(pCI,GoA);pCI.prototype.buildGeometrySource=function(k,E){var S=this.strategies.map(function(N){return N.buildGeometrySource(k,E)}),R=a_t(S.map(function(N){return N.geometrySource})),V=R.capturedErrors.pipe(ChC());
return{geometrySource:R.chain.pipe(oh(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:V,strategyErrors:R.capturedErrors}].concat(_.$e(S.map(function(N){return N.additionalOutputs}))))}};
var ChC=function(){return cH(function(k,E){E instanceof DB?k.push(E.measurementStrategyFailureReason):k.push(-1);return k},[])};var rjt=function(k,E){this.context=k;this.poller=E};
_.y(rjt,GoA);rjt.prototype.buildGeometrySource=function(k,E){var S=twi(wCh(this.context,this.poller),Unm(this.context,E.requestSource));return{geometrySource:eub(k.measurableCreative.pipe(S),E.inApp),additionalOutputs:{}}};var Aji=function(k,E,S){S=S===void 0?uFb(k,E):S;this.context=k;this.intersectionObserverStrategy=S};
_.y(Aji,GoA);Aji.prototype.buildGeometrySource=function(k,E){var S=this.intersectionObserverStrategy(E.useV2);return{geometrySource:eub(k.measurableCreative.pipe(S,xnt(this.context)),E.inApp),additionalOutputs:{}}};var kx8=function(k,E,S){var R=R===void 0?Symbol():R;this.element=k;this.immediateUrls=E;this.timeOnScreenUrls=S;this.symbol=R};var N0I=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),FNC=Object.freeze([1,.75,N0I.exposureThreshold,N0I.largeAdExposureThreshold,0]);var DPR=function(k,E){E=E===void 0?36E5:E;var S=S===void 0?!0:S;this.creatives=new F1;this.elementsToUnregister=new F1;this.elementMap=new Map;var R=new Vo(window,null);R.beaconFactory=new iE(R,new uE(R));KNl(R,this.creatives,this.elementsToUnregister,k,E,S).subscribe()},vRj=function(k,E,S,R){if(!k.elementMap.has(E)){var V=new Mj(E);
k.elementMap.set(E,V);k.creatives.next(new kx8(V,S,R))}},f3j=function(k,E){k.elementsToUnregister.next(E);
var S=k.elementMap.get(E);S!==void 0&&(S.release(),k.elementMap.delete(E))};var vTe=function(k){var E=k.url;k=k.uaDataValues;this.JSC$9471_url_=E;this.uaDataValues_=k;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var S=/[?&]([^&=]+)=([^&]*)/g;k=S.exec(E);)this.urlParamValues_[k[1]]=k[2]},bvt=function(k){k=k.uaDataValues_;
if(!k)return"";var E=IX("uap",k.platform)+IX("uapv",k.platformVersion)+IX("uafv",k.uaFullVersion)+IX("uaa",k.architecture)+IX("uam",k.model)+IX("uab",k.bitness);k.fullVersionList&&(E+="&uafvl="+encodeURIComponent(k.fullVersionList.map(function(S){return encodeURIComponent(S.brand)+";"+encodeURIComponent(S.version)}).join("|")));
k.wow64!=null&&(E+="&uaw="+Number(k.wow64));return E.slice(1)};var E4Y=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(E4Y,_.iu);E4Y.prototype.getId=function(){return _.t2(this,1)};var vN=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(vN,_.iu);vN.prototype.getSeconds=function(){return ez(this,1)};
vN.prototype.setSeconds=function(k){return _.EX(this,1,eI(k),"0")};_.PZ=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(_.PZ,_.iu);_.PZ.prototype.getSeconds=function(){return ez(this,1)};
_.PZ.prototype.setSeconds=function(k){return _.EX(this,1,eI(k),"0")};
_.SaA=function(k){var E=Number(wF(k,1));k=_.eo(k,2);return new Date(E*1E3+k/1E6)};var bE=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(bE,_.iu);bE.prototype.getUrl=function(){return _.t2(this,1)};
bE.prototype.setUrl=function(k){return _.K9(this,1,k)};
bE.prototype.getHeight=function(){return _.eo(this,2)};
bE.prototype.getWidth=function(){return _.eo(this,3)};var ZX=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(ZX,_.iu);ZX.prototype.getAspectRatio=function(){return a4(this,1)};
ZX.prototype.getDuration=function(){return _.Tp(this,vN,2)};var R25=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(R25,_.iu);var Vod=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Vod,_.iu);var N7d=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(N7d,_.iu);var I72=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(I72,_.iu);var n4j=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(n4j,_.iu);var iuY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(iuY,_.iu);var h2d=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(h2d,_.iu);var JPA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(JPA,_.iu);var cPY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(cPY,_.iu);var d9=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(d9,_.iu);var s8=[2,4,5,6,7];var mTC=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(mTC,_.iu);var J2=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(J2,_.iu);_.I=J2.prototype;_.I.getId=function(){return _.Tp(this,E4Y,1)};
_.I.getName=function(){return _.t2(this,2)};
_.I.setDescription=function(k){return _.K9(this,3,k)};
_.I.getUrl=function(){return _.t2(this,8)};
_.I.setUrl=function(k){return _.K9(this,8,k)};
var lE=function(k){return _.cy(k,bE,10,_.mb())};
J2.prototype.getOwner=function(k){var E=_.OA(this,40,_.F3,3,!0);kYt(E,k);return E[k]};
J2.prototype.getVersion=function(){return ez(this,45)};
var MM=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(MM,_.iu);_.qM=[0,A2,kG8];_.z4=[0,A2,kG8];var e24=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(e24,_.iu);var QM=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(QM,_.iu);QM.prototype.getStatus=function(){return _.Tn(this,1)};
QM.prototype.removeItem=function(k){return JC8(this,2,k)};var a7j=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(a7j,_.iu);a7j.prototype.getName=function(){return _.t2(this,8)};var O8=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(O8,_.iu);O8.prototype.getCommand=function(){return _.Tn(this,1)};
O8.prototype.getSource=function(){return _.Tp(this,a7j,2)};
O8.prototype.setVisible=function(k){return _.wW(this,5,k)};
O8.prototype.removeItem=function(k){return JC8(this,7,k)};var toz=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(toz,_.iu);toz.prototype.getCommand=function(){return _.Tn(this,1)};
toz.prototype.removeItem=function(k){return JC8(this,4,k)};
var T7Y=_.WU(toz);var G4=function(k,E,S){S=S===void 0?Error():S;var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=k;E+=":";S instanceof Error?(this.message=E+S.message,this.stack=S.stack||""):(this.message=E+String(S),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(G4,Error);_.r7=function(){this.JSC$9529_disposed_=this.JSC$9529_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.r7.prototype.JSC$9529_disposed_=!1;_.r7.prototype.isDisposed=function(){return this.JSC$9529_disposed_};
_.r7.prototype.dispose=function(){this.JSC$9529_disposed_||(this.JSC$9529_disposed_=!0,this.disposeInternal())};
_.r7.prototype[Symbol.dispose]=function(){this.dispose()};
_.Wy=function(k,E){k.addOnDisposeCallback(_.I_(_.nu,E))};
_.r7.prototype.addOnDisposeCallback=function(k,E){this.JSC$9529_disposed_?E!==void 0?k.call(E):k():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),E&&(k=k.bind(E)),this.onDisposeCallbacks_.push(k))};
_.r7.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var CT=function(k){_.r7.call(this);this.wpc=k};
_.y(CT,_.r7);CT.prototype.oZ2=function(){return this.wpc.f()};
CT.prototype.xB2=function(k){return this.wpc.c(k)};
CT.prototype.tj=function(k){return this.wpc.m(l_e(k))};
CT.prototype.u4n=function(k){return this.wpc.mws(l_e(k))};
var JP=function(k){_.r7.call(this);var E=this;this.vm=k;this.ylq="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.ef0=void 0;this.rOe=this.vm.p;this.y8m=this.sx2.bind(this);this.addOnDisposeCallback(function(){return void wy8(E)})};
_.y(JP,_.r7);var PkC=function(k){var E;return _.c(function(S){if(S.nextAddress==1){if(!k.vm.wpc)throw new G4(30,"NWA");return k.gCK?S.return(k.gCK):S.yield(k.vm.wpc(),2)}E=S.yieldResult;k.gCK=new CT(E);return S.return(k.gCK)})};
JP.prototype.snapshot=function(k){return this.vm.s(Object.assign({},k.xe&&{c:k.xe},k.t2e&&{s:k.t2e},k.fhx!==void 0&&{p:k.fhx}))};
JP.prototype.sx2=function(k){this.vm.e(k)};
JP.prototype.no2=function(k,E){return this.vm.c(k,E,!1)};
var wy8=function(k){k.ef0!==void 0&&(k.ylq.forEach(function(E){var S;(S=k.ef0)==null||S.removeEventListener(E,k.y8m)}),k.ef0=void 0)};
JP.prototype.bEa=function(){return this.vm.l()};var ks=function(){_.r7.apply(this,arguments);this.mGe=1};
_.y(ks,_.r7);ks.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.mGe++;return this};
ks.prototype.dispose=function(){--this.mGe||_.r7.prototype.dispose.call(this)};var B7Y=function(k){this.ywu=k;k.addNewEventMetric("/client_streamz/bg/frs",_.Tx("mk"))};
B7Y.prototype.record=function(k,E){this.ywu.record("/client_streamz/bg/frs",k,E)};
var YaT=function(k){this.qte=k;k.addNewEventMetric("/client_streamz/bg/wrl",_.Tx("mn"),tP("ac"),tP("sc"),_.Tx("rk"),_.Tx("mk"))};
YaT.prototype.record=function(k,E,S,R,V,N){this.qte.record("/client_streamz/bg/wrl",k,E,S,R,V,N)};
var WbA=function(k){this.dxR=k;k.addNewCounter("/client_streamz/bg/ec",_.Tx("en"),_.Tx("mk"))};
WbA.prototype.increment=function(k,E){this.dxR.JSC$9782_incrementCounter("/client_streamz/bg/ec",k,E)};
var FbY=function(k){this.mxK=k;k.addNewEventMetric("/client_streamz/bg/el",_.Tx("en"),_.Tx("mk"))};
FbY.prototype.record=function(k,E,S){this.mxK.record("/client_streamz/bg/el",k,E,S)};
var yPd=function(k){this.jnb=k;k.addNewCounter("/client_streamz/bg/cec",tP("ec"),_.Tx("mk"))};
yPd.prototype.increment=function(k,E){this.jnb.JSC$9782_incrementCounter("/client_streamz/bg/cec",k,E)};
var o4d=function(k){this.z7Y=k;k.addNewCounter("/client_streamz/bg/po/csc",tP("cs"),_.Tx("mk"))};
o4d.prototype.increment=function(k,E){this.z7Y.JSC$9782_incrementCounter("/client_streamz/bg/po/csc",k,E)};
var XyT=function(k){this.h7Y=k;k.addNewCounter("/client_streamz/bg/po/ctav",_.Tx("av"),_.Tx("mk"))};
XyT.prototype.increment=function(k,E){this.h7Y.JSC$9782_incrementCounter("/client_streamz/bg/po/ctav",k,E)};
var g4d=function(k){this.gi0=k;k.addNewCounter("/client_streamz/bg/po/cwsc",_.Tx("su"),_.Tx("mk"))};
g4d.prototype.increment=function(k,E){this.gi0.JSC$9782_incrementCounter("/client_streamz/bg/po/cwsc",k,E)};var Ygt=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Ygt,_.iu);var BO1=function(k,E){return _.kJ(k,3,E,Wdh)};var UT5=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(UT5,_.iu);var HuY=[1,2,3];var Kb5=[0,HuY,_.fL,EWz,VId];var pyj=[0,_.vS,[0,KL,_.pL]];var AP2=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(AP2,_.iu);var rP8=[1,2,3];var ubC=[0,rP8,GYC,MT4,_.bT,pyj];var xTY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(xTY,_.iu);var Lb5=[0,_.vS,Kb5,ubC];var jXC=[0,_.Ds];var DT2=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(DT2,_.iu);var $TY=[0,_.Ds,-1,_.x7];var f74=[0,_.Ds,-1,_.uT,_.x7];var v44=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(v44,_.iu);var bud=[1,2,3];var Zuj=[0,bud,_.bT,$TY,_.bT,f74,_.bT,jXC];var dT4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(dT4,_.iu);dT4.prototype.JSC$9602_serializeBinary=MrA([0,_.Ds,Zuj,NUT,_.vS,Lb5,SAC,RY5]);var sX5=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(sX5,_.iu);var qaT=function(k){var E=new dT4;E=_.uh(E,1,k.JSC$9718_metricName);var S=l7Y(k);E=_.kJ(E,3,S,_.B0);S=[];for(var R=[],V=_.n(k.cellMap.keys()),N=V.next();!N.done;N=V.next())R.push(N.value.split(","));for(V=0;V<R.length;V++){N=R[V];for(var h=k.cellType,J=k.getCells(N)||[],m=[],a=0;a<J.length;a++){var T=J[a],w=T&&T.cellValue;T=new AP2;switch(h){case 3:w=Number(w);Number.isFinite(w)&&oW(T,1,rP8,eI(w));break;case 2:oW(T,2,rP8,_.qp(Number(w)))}m.push(T)}h=m;for(J=0;J<h.length;J++){m=h[J];a=new xTY;m=_.Xo(a,
2,m);a=[];T=MoA(k);for(w=0;w<T.length;w++){var P=T[w],B=N[w],F=new UT5;switch(P){case 3:oW(F,1,HuY,YW(String(B)));break;case 2:P=Number(B);Number.isFinite(P)&&oW(F,2,HuY,_.nP(P));break;case 1:oW(F,3,HuY,P4i(B==="true"))}a.push(F)}h2(m,1,a);S.push(m)}}h2(E,4,S);return E};var z2A=function(k){if(!k)return"";if(/^about:(?:blank|srcdoc)$/.test(k))return window.origin||"";k.indexOf("blob:")===0&&(k=k.substring(5));k=k.split("#")[0].split("?")[0];k=k.toLowerCase();k.indexOf("//")==0&&(k=window.location.protocol+k);/^[\w\-]*:\/\//.test(k)||(k=window.location.href);var E=k.substring(k.indexOf("://")+3),S=E.indexOf("/");S!=-1&&(E=E.substring(0,S));S=k.substring(0,k.indexOf("://"));if(!S)throw Error("qa`"+k);if(S!=="http"&&S!=="https"&&S!=="chrome-extension"&&S!=="moz-extension"&&
S!=="file"&&S!=="android-app"&&S!=="chrome-search"&&S!=="chrome-untrusted"&&S!=="chrome"&&S!=="app"&&S!=="devtools")throw Error("ra`"+S);k="";var R=E.indexOf(":");if(R!=-1){var V=E.substring(R+1);E=E.substring(0,R);if(S==="http"&&V!=="80"||S==="https"&&V!=="443")k=":"+V}return S+"://"+E+k};var OuY=function(k,E,S){var R=String(_.Vt.location.href);return R&&k&&E?[E,QXd(z2A(R),k,S||null)].join(" "):null},QXd=function(k,E,S){var R=[],V=[];
if((Array.isArray(S)?2:1)==1)return V=[E,k],_.Sn(R,function(J){V.push(J)}),Gxj(V.join(" "));
var N=[],h=[];_.Sn(S,function(J){h.push(J.key);N.push(J.value)});
S=Math.floor((new Date).getTime()/1E3);V=N.length==0?[S,E,k]:[N.join(":"),S,E,k];_.Sn(R,function(J){V.push(J)});
k=Gxj(V.join(" "));k=[S,k];h.length==0||k.push(h.join(""));return k.join("_")},Gxj=function(k){var E=kVm();
E.update(k);return E.digestString().toLowerCase()};var EF=function(k){this.JSC$9613_document_=k||{cookie:""}},Ck4;
_.I=EF.prototype;_.I.isEnabled=function(){if(!_.Vt.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};
_.I.set=function(k,E,S){var R=!1;if(typeof S==="object"){var V=S.sameSite;R=S.secure||!1;var N=S.domain||void 0;var h=S.path||void 0;var J=S.maxAge}if(/[;=\s]/.test(k))throw Error("sa`"+k);if(/[;\r\n]/.test(E))throw Error("ta`"+E);J===void 0&&(J=-1);S=N?";domain="+N:"";h=h?";path="+h:"";R=R?";secure":"";J=J<0?"":J==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+J*1E3)).toUTCString();this.JSC$9613_document_.cookie=k+"="+E+S+h+J+R+(V!=null?";samesite="+V:"")};
_.I.get=function(k,E){for(var S=k+"=",R=(this.JSC$9613_document_.cookie||"").split(";"),V=0,N;V<R.length;V++){N=eh(R[V]);if(N.lastIndexOf(S,0)==0)return N.slice(S.length);if(N==k)return""}return E};
_.I.remove=function(k,E,S){var R=this.containsKey(k);this.set(k,"",{maxAge:0,path:E,domain:S});return R};
_.I.getKeys=function(){return Ck4(this).keys};
_.I.getValues=function(){return Ck4(this).values};
_.I.isEmpty=function(){return!this.JSC$9613_document_.cookie};
_.I.getCount=function(){return this.JSC$9613_document_.cookie?(this.JSC$9613_document_.cookie||"").split(";").length:0};
_.I.containsKey=function(k){return this.get(k)!==void 0};
_.I.containsValue=function(k){for(var E=Ck4(this).values,S=0;S<E.length;S++)if(E[S]==k)return!0;return!1};
_.I.clear=function(){for(var k=Ck4(this).keys,E=k.length-1;E>=0;E--)this.remove(k[E])};
Ck4=function(k){k=(k.JSC$9613_document_.cookie||"").split(";");for(var E=[],S=[],R,V,N=0;N<k.length;N++)V=eh(k[N]),R=V.indexOf("="),R==-1?(E.push(""),S.push(V)):(E.push(V.substring(0,R)),S.push(V.substring(R+1)));return{keys:E,values:S}};
_.pC=new EF(typeof document=="undefined"?null:document);var ZSI,kLC;ZSI=function(){var k=_.Vt.__SAPISID||_.Vt.__APISID||_.Vt.__3PSAPISID||_.Vt.__1PSAPISID||_.Vt.__OVERRIDE_SID;if(k)return!0;typeof document!=="undefined"&&(k=new EF(document),k=k.get("SAPISID")||k.get("APISID")||k.get("__Secure-3PAPISID")||k.get("__Secure-1PAPISID"));return!!k};
kLC=function(k,E,S,R){(k=_.Vt[k])||typeof document==="undefined"||(k=(new EF(document)).get(E));return k?OuY(k,S,R):null};
_.TJI=function(k){var E=z2A(_.Vt==null?void 0:_.Vt.location.href),S=[];if(ZSI()){E=E.indexOf("https:")==0||E.indexOf("chrome-extension:")==0||E.indexOf("chrome-untrusted://new-tab-page")==0||E.indexOf("moz-extension:")==0;var R=E?_.Vt.__SAPISID:_.Vt.__APISID;R||typeof document==="undefined"||(R=new EF(document),R=R.get(E?"SAPISID":"APISID")||R.get("__Secure-3PAPISID"));(R=R?OuY(R,E?"SAPISIDHASH":"APISIDHASH",k):null)&&S.push(R);E&&((E=kLC("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",k))&&S.push(E),
(k=kLC("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",k))&&S.push(k))}return S.length==0?null:S.join(" ")};var EO8=function(){this.minSize=1024};
EO8.prototype.compress=function(k){var E,S,R,V;return _.c(function(N){switch(N.nextAddress){case 1:return E=new CompressionStream("gzip"),S=(new Response(E.readable)).arrayBuffer(),R=E.writable.getWriter(),N.yield(R.write((new TextEncoder).encode(k)),2);case 2:return N.yield(R.close(),3);case 3:return V=Uint8Array,N.yield(S,4);case 4:return N.return(new V(N.yieldResult))}})};
EO8.prototype.isSupported=function(k){return k<this.minSize?!1:typeof CompressionStream!=="undefined"};var SmA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(SmA,_.iu);var SL=function(k,E){this.intervalMs=k;this.callback=E;this.enabled=!1;this.nowFn=function(){return _.ZO()};
this.lastTimeMs=this.nowFn()};
SL.prototype.setInterval=function(k){this.intervalMs=k;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
SL.prototype.start=function(){var k=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){k.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
SL.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
SL.prototype.tick=function(){var k=this;if(this.enabled){var E=Math.max(this.nowFn()-this.lastTimeMs,0);E<this.intervalMs*.8?this.timer=setTimeout(function(){k.tick()},this.intervalMs-E):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var Rwp=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Rwp,_.iu);var V$d=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(V$d,_.iu);var NtA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(NtA,_.iu);NtA.prototype.getTransmissionType=function(){return _.Tn(this,1)};var VnA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(VnA,_.iu);VnA.prototype.getVersion=function(){return _.t2(this,2)};var RL=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(RL,_.iu);var RIi=function(k){h2(NOb,1,k)};
RL.prototype.getModel=function(){return _.t2(this,6)};
var IK2=_.WU(RL);var nOA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(nOA,_.iu);var Erh=["platform","platformVersion","architecture","model","uaFullVersion"],NOb=new RL,Sgb=null;var V4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(V4,_.iu);var ioA=function(k){return _.wv(k,1,1)};var hw5=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k,4)};
_.y(hw5,_.iu);_.N4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k,36)};
_.y(_.N4,_.iu);_.N4.prototype.getExperimentIds=function(){return _.Tp(this,SmA,16)};var JN4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k,19)};
_.y(JN4,_.iu);JN4.prototype.setLogSource=function(k){return _.wv(this,2,k)};
JN4.prototype.setScheduler=function(k){return _.wv(this,10,k)};var mn8=function(k,E){this.isServiceWorkerScope=E=E===void 0?!1:E;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new JN4;Number.isInteger(k)&&this.logRequest.setLogSource(k);E||(this.locale=document.documentElement.getAttribute("lang"));cNY(this,new V4)};
mn8.prototype.setLogSource=function(k){this.logRequest.setLogSource(k);return this};
var cNY=function(k,E){_.Xo(k.logRequest,1,E);_.Tn(E,1)||ioA(E);k.isServiceWorkerScope||(E=IL(k),_.t2(E,5)||_.uh(E,5,k.locale));k.uach&&(E=IL(k),_.Tp(E,RL,9)||_.Xo(E,9,k.uach))},ewj=function(k,E){k.transmissionType=E},aKT=function(k){var E=E===void 0?Erh:E;
var S=k.isServiceWorkerScope?void 0:ZB();S?In1(S,E).then(function(R){k.uach=IK2(R!=null?R:"[]");R=IL(k);_.Xo(R,9,k.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},IL=function(k){var E=_.Tp(k.logRequest,V4,1);
E||(E=new V4,cNY(k,E));k=E;E=_.Tp(k,nOA,11);E||(E=new nOA,_.Xo(k,11,E));return E};
mn8.prototype.build=function(k,E,S,R,V,N){E=E===void 0?0:E;S=S===void 0?0:S;R=R===void 0?null:R;V=V===void 0?0:V;N=N===void 0?0:N;if(!this.isServiceWorkerScope){var h=IL(this);var J=new NtA;J=_.wv(J,1,this.transmissionType);J=_.w7(J,2,this.isFinal);S=_.Y7(J,3,S>0?S:void 0);S=_.Y7(S,4,V>0?V:void 0);S=_.Y7(S,5,N>0?N:void 0);V=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;N=V[_.Vd]|0;S=wY(S,N)?S:HPI(S,V,N)?U2A(S,V):new S.constructor(ba(V,N,!0));_.Xo(h,10,S)}h=this.logRequest.clone();S=Date.now().toString();
h=_.PV(h,4,eI(S));k=k.slice();k=h2(h,3,k);R&&(h=new Rwp,R=_.Y7(h,13,R),h=new V$d,R=_.Xo(h,2,R),h=new hw5,R=_.Xo(h,1,R),R=_.wv(R,2,9),_.Xo(k,18,R));E&&_.AD(k,14,E);return k};Py.prototype.currBackoffCount_=0;Py.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Py.prototype.getValue=function(){return this.currValue_};
var t$Y=function(k){k.currBaseValue_=Math.min(k.maxValue_,k.currBaseValue_*k.backoffFactor_);k.currValue_=Math.min(k.maxValue_,k.currBaseValue_+(k.randomFactor_?Math.round(k.randomFactor_*(Math.random()-.5)*2*k.currBaseValue_):0));k.currBackoffCount_++};var JRC=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k,8)};
_.y(JRC,_.iu);var TtC=_.WU(JRC);var cRY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(cRY,_.iu);var n3;n3=new m2p;var i1=function(k){_.r7.call(this);var E=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9691_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$9691_sendBeaconApiEnabled=!1;this.logSource=k.logSource;this.getAuthHeaderValue=
k.getAuthHeaderValue||function(){};
this.logRequestBuilder=new mn8(k.logSource,k.isServiceWorkerScope);this.network=k.network||null;this.productID=k.productID||null;this.bufferSize=1E3;this.clearcutUrl=k.urlOverride||null;this.sessionIndex=k.sessionIndex||null;this.disableAutomaticFlush=k.disableAutomaticFlush||!1;this.withCredentials=!k.disableWithCredentials;this.isServiceWorkerScope=k.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!ZB()&&!!ZB().navigator&&ZB().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(wXA())).searchParams&&!!(new URL(wXA())).searchParams.set;var S=ioA(new V4);cNY(this.logRequestBuilder,S);this.flushBackoff=new Py(1E4,3E5,.1);k=PIC(this,k.backgroundJobDeferrer);this.JSC$9691_flushTimer=new SL(this.flushBackoff.getValue(),k);this.backupTimer=new SL(6E5,k);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Btp(E);
var R;(R=E.metalogService)==null||R.flush()}}),document.addEventListener("pagehide",function(){Btp(E);
var R;(R=E.metalogService)==null||R.flush()}))};
_.y(i1,_.r7);var PIC=function(k,E){return k.isBrowserSupported?E?function(){E().then(function(){k.flush()})}:function(){k.flush()}:function(){}};
i1.prototype.disposeInternal=function(){Btp(this);this.JSC$9691_flushTimer.stop();this.backupTimer.stop();_.r7.prototype.disposeInternal.call(this)};
var YmC=function(k){k.clearcutUrl||(k.clearcutUrl=wXA());try{return(new URL(k.clearcutUrl)).toString()}catch(E){return(new URL(k.clearcutUrl,ZB().location.origin)).toString()}};
i1.prototype.dispatch=function(k){if(k instanceof _.N4)this.log(k);else try{var E=new _.N4,S=k.serialize();var R=_.uh(E,8,S);this.log(R)}catch(V){hS(this,4,1)}};
var hS=function(k,E,S){k.metalogService&&k.metalogService.increment(E,S)};
i1.prototype.log=function(k){hS(this,2,1);if(this.isBrowserSupported){k=k.clone();var E=this.sequencePosition++;k=_.AD(k,21,E);this.componentId&&_.uh(k,26,this.componentId);E=k;if(jCm(_.R4(E,1))==null){var S=Date.now();S=Number.isFinite(S)?S.toString():"0";_.PV(E,1,eI(S))}_.LdC(_.R4(E,15))!=null||_.AD(E,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(S=this.experimentIds.clone(),_.Xo(E,16,S));hS(this,1,1);E=this.pendingEvents.length-this.bufferSize+1;E>0&&(this.pendingEvents.splice(0,E),
this.numLogsDroppedSinceLastFlush+=E,hS(this,3,E));this.pendingEvents.push(k);this.disableAutomaticFlush||this.JSC$9691_flushTimer.enabled||this.JSC$9691_flushTimer.start()}};
i1.prototype.flush=function(k,E){var S=this;if(this.pendingEvents.length===0)k&&k();else if(this.JSC$9691_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Whz(this);else{var R=Date.now();if(this.noFlushUntilMs>R&&this.startWaitingMs<R)E&&E("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?ewj(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var V=this.pendingEvents.length,
N=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),h=this.getAuthHeaderValue();if(h&&this.lastFailedAuth===h)E&&E("stale-auth-token");else{this.pendingEvents=[];this.JSC$9691_flushTimer.enabled&&this.JSC$9691_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;R=N.serialize();var J;this.JSC$9691_compressor&&this.JSC$9691_compressor.isSupported(R.length)&&
(J=this.JSC$9691_compressor.compress(R));var m=Fhp(this,R,h),a=function(P){S.flushBackoff.reset();S.JSC$9691_flushTimer.setInterval(S.flushBackoff.getValue());if(P){var B=null;try{var F=JSON.stringify(JSON.parse(P.replace(")]}'\n","")));B=TtC(F)}catch(K){}B&&(P=Number(ez(B,1,_.jT("-1"))),P>0&&(S.startWaitingMs=Date.now(),S.noFlushUntilMs=S.startWaitingMs+P),VIt(B.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n3.fieldIndex),SAR(B,n3.fieldIndex),B=n3.ctor?n3.getExtensionFn(B,n3.ctor,n3.fieldIndex,
n3.JSC$8871_hasMessageId):n3.getExtensionFn(B,n3.fieldIndex,null,n3.JSC$8871_hasMessageId),B=B===null?void 0:B)&&(B=_.eo(B,1,-1),B!==-1&&(S.flushBackoff=new Py(B<1?1:B,3E5,.1),S.JSC$9691_flushTimer.setInterval(S.flushBackoff.getValue())))}k&&k();S.numRetriesSinceLastSuccessfulFlush=0},T=function(P,B){var F=_.cy(N,_.N4,3,_.mb());
var K=Number(ez(N,14));t$Y(S.flushBackoff);S.JSC$9691_flushTimer.setInterval(S.flushBackoff.getValue());P===401&&h&&(S.lastFailedAuth=h);K&&(S.numLogsDroppedSinceLastFlush+=K);B===void 0&&(B=S.isRetryable(P));B&&(S.pendingEvents=F.concat(S.pendingEvents),S.disableAutomaticFlush||S.JSC$9691_flushTimer.enabled||S.JSC$9691_flushTimer.start());hS(S,7,1);E&&E("net-send-failed",P);++S.numRetriesSinceLastSuccessfulFlush},w=function(){S.network&&S.network.send(m,a,T)};
J?J.then(function(P){hS(S,5,V);m.requestHeaders["Content-Encoding"]="gzip";m.requestHeaders["Content-Type"]="application/binary";m.body=P;m.bodyType=2;w()},function(){hS(S,6,V);
w()}):w()}}}};
var Fhp=function(k,E,S){S=S===void 0?null:S;var R=R===void 0?k.withCredentials:R;var V={},N=new URL(YmC(k));S&&(V.Authorization=S);k.sessionIndex&&(V["X-Goog-AuthUser"]=k.sessionIndex,N.searchParams.set("authuser",k.sessionIndex));k.pageId&&(Object.defineProperty(V,"X-Goog-PageId",{value:k.pageId}),N.searchParams.set("pageId",k.pageId));return{url:N.toString(),body:E,bodyType:1,requestHeaders:V,requestType:"POST",withCredentials:R,timeoutMillis:k.timeoutMillis}},Btp=function(k){k.logRequestBuilder.isFinal=
!0;
k.flush();k.logRequestBuilder.isFinal=!1},Whz=function(k){yNT(k,function(E,S){E=new URL(E);
E.searchParams.set("format","json");var R=!1;try{R=ZB().navigator.sendBeacon(E.toString(),S.serialize())}catch(V){}R||(k.isSendBeaconSupported=!1);return R})},yNT=function(k,E){if(k.pendingEvents.length!==0){var S=new URL(YmC(k));
S.searchParams.delete("format");var R=k.getAuthHeaderValue();R&&S.searchParams.set("auth",R);S.searchParams.set("authuser",k.sessionIndex||"0");for(R=0;R<10&&k.pendingEvents.length;++R){var V=k.pendingEvents.slice(0,32),N=k.logRequestBuilder.build(V,k.numLogsDroppedSinceLastFlush,k.numRetriesSinceLastSuccessfulFlush,k.productID,k.persistedLogRecoveredCount,k.persistedLogExpiredCount);if(!E(S.toString(),N)){++k.numRetriesSinceLastSuccessfulFlush;break}k.numLogsDroppedSinceLastFlush=0;k.numRetriesSinceLastSuccessfulFlush=
0;k.persistedLogRecoveredCount=0;k.persistedLogExpiredCount=0;k.pendingEvents=k.pendingEvents.slice(V.length)}k.JSC$9691_flushTimer.enabled&&k.JSC$9691_flushTimer.stop()}};
i1.prototype.isRetryable=function(k){return 500<=k&&k<600||k===401||k===0};
var wXA=function(){return"https://play.google.com/log?format=json&hasfast=true"};var oO4=function(){this.abortSupported=typeof AbortController!=="undefined"};
oO4.prototype.send=function(k,E,S){var R=this,V,N,h,J,m,a,T,w,P,B;return _.c(function(F){switch(F.nextAddress){case 1:return N=(V=R.abortSupported?new AbortController:void 0)?setTimeout(function(){V.abort()},k.timeoutMillis):void 0,_.F5(F,2,3),h=Object.assign({},{method:k.requestType,
headers:Object.assign({},k.requestHeaders)},k.body&&{body:k.body},k.withCredentials&&{credentials:"include"},{signal:k.timeoutMillis&&V?V.signal:null}),F.yield(fetch(k.url,h),5);case 5:J=F.yieldResult;if(J.status!==200){(m=S)==null||m(J.status);F.jumpTo(3);break}if((a=E)==null){F.jumpTo(7);break}return F.yield(J.text(),8);case 8:a(F.yieldResult);case 7:case 3:_.ob(F);clearTimeout(N);_.gP(F,0);break;case 2:T=_.UY(F);switch((w=T)==null?void 0:w.name){case "AbortError":(P=S)==null||P(408);break;default:(B=
S)==null||B(400)}F.jumpTo(3)}})};
oO4.prototype.getTransmissionType=function(){return 4};_.Y4=function(k,E){E=E===void 0?"0":E;_.r7.call(this);this.logSource=k;this.sessionIndex=E;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9709_clearExperimentIds=this.productID=null;this.JSC$9709_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.y(_.Y4,_.r7);var TOj=function(k,E){k.buildLabel=E;return k},tn1=function(k,E){k.network=E;
return k},PJi=function(k,E){k.JSC$9709_clearExperimentIds=E},anA=function(k){k.JSC$9709_sendBeaconApiEnabled=!0;
return k};
_.Y4.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Y4.prototype.build=function(){this.network||(this.network=new oO4);var k=new i1({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.TJI,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.Wy(this,k);if(this.buildLabel){var E=this.buildLabel,S=
IL(k.logRequestBuilder);_.uh(S,7,E)}k.JSC$9691_compressor=new EO8;this.componentId&&(k.componentId=this.componentId);this.productID&&(k.productID=this.productID);this.pageId&&(k.pageId=this.pageId);this.JSC$9709_clearExperimentIds&&((S=this.JSC$9709_clearExperimentIds)?(k.experimentIds||(k.experimentIds=new SmA),E=k.experimentIds,S=S.serialize(),_.uh(E,4,S)):k.experimentIds&&_.PV(k.experimentIds,4));this.JSC$9709_sendBeaconApiEnabled&&(k.JSC$9691_sendBeaconApiEnabled=k.isSendBeaconSupported);aKT(k.logRequestBuilder);
this.bufferSize&&(k.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(k);return k};var WzI=function(k,E,S,R,V,N,h){k=k===void 0?-1:k;E=E===void 0?"":E;S=S===void 0?"":S;R=R===void 0?!1:R;V=V===void 0?"":V;_.r7.call(this);this.logSource=k;this.componentId=E;N?E=N:(k=new _.Y4(k,"0"),k.componentId=E,_.Wy(this,k),S!==""&&(k.destinationUrl=S),R&&(k.serviceWorkerScopeEnabled=!0),V&&TOj(k,V),h&&tn1(k,h),E=k.build());this.JSC$9713_transport=E};
_.y(WzI,_.r7);WzI.prototype.flush=function(k){k=k||[];if(k.length){for(var E=new sX5,S=[],R=0;R<k.length;R++){var V=k[R],N=qaT(V);S.push(N);V.clear()}h2(E,1,S);this.JSC$9713_transport.dispatch(E);this.JSC$9713_transport.flush()}};var XX8=function(k){this.cellValue=k};var JS=function(k,E,S){this.JSC$9718_metricName=k;this.cellType=E;this.fields=S||[];this.cellMap=new Map},MoA=function(k){return k.fields.map(function(E){return E.fieldType})},l7Y=function(k){return k.fields.map(function(E){return E.fieldName})};
_.I=JS.prototype;_.I.addCell=function(k){var E=_.sX.apply(1,arguments),S=this.getCells(E);S?S.push(new XX8(k)):this.JSC$9718_setCell(k,E)};
_.I.JSC$9718_setCell=function(k){var E=this.JSC$9718_getKey(_.sX.apply(1,arguments));this.cellMap.set(E,[new XX8(k)])};
_.I.getCells=function(){var k=this.JSC$9718_getKey(_.sX.apply(0,arguments));return this.cellMap.has(k)?this.cellMap.get(k):void 0};
_.I.getCell=function(){var k=this.getCells(_.sX.apply(0,arguments));return k&&k.length?k[0]:void 0};
_.I.clear=function(){this.cellMap.clear()};
_.I.JSC$9718_getKey=function(){var k=_.sX.apply(0,arguments);return k?k.join(","):"key"};var gOC=function(k,E){JS.call(this,k,3,E)};
_.y(gOC,JS);gOC.prototype.JSC$9721_incrementCounterBy=function(k){var E=_.sX.apply(1,arguments),S=0,R=this.getCell(E);R&&(S=R.cellValue);this.JSC$9718_setCell(S+k,E)};var Un8=function(k,E){JS.call(this,k,2,E)};
_.y(Un8,JS);Un8.prototype.record=function(k){this.addCell(k,_.sX.apply(1,arguments))};_.cs=function(k){this.id=k};
_.cs.prototype.toString=function(){return this.id};_.mL=function(k,E){this.type=k instanceof _.cs?String(k):k;this.currentTarget=this.target=E;this.defaultPrevented=this.propagationStopped_=!1};
_.mL.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.mL.prototype.preventDefault=function(){this.defaultPrevented=!0};_.eL=function(k,E){_.mL.call(this,k?k.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;k&&this.init(k,E)};
_.dy(_.eL,_.mL);
_.eL.prototype.init=function(k,E){var S=this.type=k.type,R=k.changedTouches&&k.changedTouches.length?k.changedTouches[0]:null;this.target=k.target||k.srcElement;this.currentTarget=E;E=k.relatedTarget;E||(S=="mouseover"?E=k.fromElement:S=="mouseout"&&(E=k.toElement));this.relatedTarget=E;R?(this.clientX=R.clientX!==void 0?R.clientX:R.pageX,this.clientY=R.clientY!==void 0?R.clientY:R.pageY,this.screenX=R.screenX||0,this.screenY=R.screenY||0):(this.offsetX=_.Qb||k.offsetX!==void 0?k.offsetX:k.layerX,
this.offsetY=_.Qb||k.offsetY!==void 0?k.offsetY:k.layerY,this.clientX=k.clientX!==void 0?k.clientX:k.pageX,this.clientY=k.clientY!==void 0?k.clientY:k.pageY,this.screenX=k.screenX||0,this.screenY=k.screenY||0);this.button=k.button;this.keyCode=k.keyCode||0;this.key=k.key||"";this.charCode=k.charCode||(S=="keypress"?k.keyCode:0);this.ctrlKey=k.ctrlKey;this.altKey=k.altKey;this.shiftKey=k.shiftKey;this.metaKey=k.metaKey;this.pointerId=k.pointerId||0;this.pointerType=k.pointerType;this.state=k.state;
this.timeStamp=k.timeStamp;this.event_=k;k.defaultPrevented&&_.eL.superClass_.preventDefault.call(this)};
_.eL.prototype.isButton=function(k){return this.event_.button==k};
_.eL.prototype.stopPropagation=function(){_.eL.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.eL.prototype.preventDefault=function(){_.eL.superClass_.preventDefault.call(this);var k=this.event_;k.preventDefault?k.preventDefault():k.returnValue=!1};var Hod="closure_listenable_"+(Math.random()*1E6|0),aL=function(k){return!(!k||!k[Hod])};var Kh2=0;var pXY=function(k,E,S,R,V){this.listener=k;this.proxy=null;this.src=E;this.type=S;this.capture=!!R;this.handler=V;this.key=++Kh2;this.removed=this.callOnce=!1},ANC=function(k){k.removed=!0;
k.listener=null;k.proxy=null;k.src=null;k.handler=null};By.prototype.add=function(k,E,S,R,V){var N=k.toString();k=this.listeners[N];k||(k=this.listeners[N]=[],this.typeCount_++);var h=rN4(k,E,R,V);h>-1?(E=k[h],S||(E.callOnce=!1)):(E=new pXY(E,this.src,N,!!R,V),E.callOnce=S,k.push(E));return E};
By.prototype.remove=function(k,E,S,R){k=k.toString();if(!(k in this.listeners))return!1;var V=this.listeners[k];E=rN4(V,E,S,R);return E>-1?(ANC(V[E]),_.Aht(V,E),V.length==0&&(delete this.listeners[k],this.typeCount_--),!0):!1};
var uF2=function(k,E){var S=E.type;if(!(S in k.listeners))return!1;var R=_.ZR(k.listeners[S],E);R&&(ANC(E),k.listeners[S].length==0&&(delete k.listeners[S],k.typeCount_--));return R};
By.prototype.removeAll=function(k){k=k&&k.toString();var E=0,S;for(S in this.listeners)if(!k||S==k){for(var R=this.listeners[S],V=0;V<R.length;V++)++E,ANC(R[V]);delete this.listeners[S];this.typeCount_--}return E};
By.prototype.getListener=function(k,E,S,R){k=this.listeners[k.toString()];var V=-1;k&&(V=rN4(k,E,S,R));return V>-1?k[V]:null};
By.prototype.hasListener=function(k,E){var S=k!==void 0,R=S?k.toString():"",V=E!==void 0;return _.fO.some(this.listeners,function(N){for(var h=0;h<N.length;++h)if(!(S&&N[h].type!=R||V&&N[h].capture!=E))return!0;return!1})};
var rN4=function(k,E,S,R){for(var V=0;V<k.length;++V){var N=k[V];if(!N.removed&&N.listener==E&&N.capture==!!S&&N.handler==R)return V}return-1};var xnd,Lhj,je4,$nY,fKp,eF,av,Zo8,vO2,bo8,tS,dnd,DnA;xnd="closure_lm_"+(Math.random()*1E6|0);Lhj={};je4=0;_.wX=function(k,E,S,R,V){if(R&&R.once)return eF(k,E,S,R,V);if(Array.isArray(E)){for(var N=0;N<E.length;N++)_.wX(k,E[N],S,R,V);return null}S=DnA(S);return aL(k)?k.listen(E,S,_.qA(R)?!!R.capture:!!R,V):$nY(k,E,S,!1,R,V)};
$nY=function(k,E,S,R,V,N){if(!E)throw Error("va");var h=_.qA(V)?!!V.capture:!!V,J=tS(k);J||(k[xnd]=J=new By(k));S=J.add(E,S,R,h,N);if(S.proxy)return S;R=fKp();S.proxy=R;R.src=k;R.listener=S;if(k.addEventListener)_.vWC||(V=h),V===void 0&&(V=!1),k.addEventListener(E.toString(),R,V);else if(k.attachEvent)k.attachEvent(vO2(E.toString()),R);else if(k.addListener&&k.removeListener)k.addListener(R);else throw Error("wa");je4++;return S};
fKp=function(){var k=bo8,E=function(S){return k.call(E.src,E.listener,S)};
return E};
eF=function(k,E,S,R,V){if(Array.isArray(E)){for(var N=0;N<E.length;N++)eF(k,E[N],S,R,V);return null}S=DnA(S);return aL(k)?k.listenOnce(E,S,_.qA(R)?!!R.capture:!!R,V):$nY(k,E,S,!0,R,V)};
_.TA=function(k,E,S,R,V){if(Array.isArray(E))for(var N=0;N<E.length;N++)_.TA(k,E[N],S,R,V);else R=_.qA(R)?!!R.capture:!!R,S=DnA(S),aL(k)?k.unlisten(E,S,R,V):k&&(k=tS(k))&&(E=k.getListener(E,S,R,V))&&av(E)};
av=function(k){if(typeof k==="number"||!k||k.removed)return!1;var E=k.src;if(aL(E))return uF2(E.eventTargetListeners_,k);var S=k.type,R=k.proxy;E.removeEventListener?E.removeEventListener(S,R,k.capture):E.detachEvent?E.detachEvent(vO2(S),R):E.addListener&&E.removeListener&&E.removeListener(R);je4--;(S=tS(E))?(uF2(S,k),S.typeCount_==0&&(S.src=null,E[xnd]=null)):ANC(k);return!0};
Zo8=function(k,E,S,R,V){S=DnA(S);R=!!R;return aL(k)?k.getListener(E,S,R,V):k?(k=tS(k))?k.getListener(E,S,R,V):null:null};
vO2=function(k){return k in Lhj?Lhj[k]:Lhj[k]="on"+k};
bo8=function(k,E){if(k.removed)k=!0;else{E=new _.eL(E,this);var S=k.listener,R=k.handler||k.src;k.callOnce&&av(k);k=S.call(R,E)}return k};
tS=function(k){k=k[xnd];return k instanceof By?k:null};
dnd="__closure_events_fn_"+(Math.random()*1E9>>>0);DnA=function(k){if(typeof k==="function")return k;k[dnd]||(k[dnd]=function(E){return k.handleEvent(E)});
return k[dnd]};_.wG=function(){_.r7.call(this);this.eventTargetListeners_=new By(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.dy(_.wG,_.r7);_.wG.prototype[Hod]=!0;_.I=_.wG.prototype;_.I.setParentEventTarget=function(k){this.parentEventTarget_=k};
_.I.addEventListener=function(k,E,S,R){_.wX(this,k,E,S,R)};
_.I.removeEventListener=function(k,E,S,R){_.TA(this,k,E,S,R)};
_.I.dispatchEvent=function(k){var E,S=this.parentEventTarget_;if(S)for(E=[];S;S=S.parentEventTarget_)E.push(S);S=this.actualEventTarget_;var R=k.type||k;if(typeof k==="string")k=new _.mL(k,S);else if(k instanceof _.mL)k.target=k.target||S;else{var V=k;k=new _.mL(R,S);_.fO.extend(k,V)}V=!0;var N;if(E)for(N=E.length-1;!k.propagationStopped_&&N>=0;N--){var h=k.currentTarget=E[N];V=seC(h,R,!0,k)&&V}k.propagationStopped_||(h=k.currentTarget=S,V=seC(h,R,!0,k)&&V,k.propagationStopped_||(V=seC(h,R,!1,k)&&
V));if(E)for(N=0;!k.propagationStopped_&&N<E.length;N++)h=k.currentTarget=E[N],V=seC(h,R,!1,k)&&V;return V};
_.I.disposeInternal=function(){_.wG.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.I.listen=function(k,E,S,R){return this.eventTargetListeners_.add(String(k),E,!1,S,R)};
_.I.listenOnce=function(k,E,S,R){return this.eventTargetListeners_.add(String(k),E,!0,S,R)};
_.I.unlisten=function(k,E,S,R){return this.eventTargetListeners_.remove(String(k),E,S,R)};
_.I.removeAllListeners=function(k){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(k):0};
var seC=function(k,E,S,R){E=k.eventTargetListeners_.listeners[String(E)];if(!E)return!0;E=E.concat();for(var V=!0,N=0;N<E.length;++N){var h=E[N];if(h&&!h.removed&&h.capture==S){var J=h.listener,m=h.handler||h.src;h.callOnce&&uF2(k.eventTargetListeners_,h);V=J.call(m,R)!==!1&&V}}return V&&!R.defaultPrevented};
_.wG.prototype.getListener=function(k,E,S,R){return this.eventTargetListeners_.getListener(String(k),E,S,R)};
_.wG.prototype.hasListener=function(k,E){return this.eventTargetListeners_.hasListener(k!==void 0?String(k):void 0,E)};var Ps=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(k){return k&&AsyncContext.Snapshot.wrap(k)}:function(k){return k};var lKY=function(k,E){this.create_=k;this.reset_=E;this.occupants_=0;this.JSC$9753_head_=null};
lKY.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var k=this.JSC$9753_head_;this.JSC$9753_head_=k.next;k.next=null}else k=this.create_();return k};
lKY.prototype.put=function(k){this.reset_(k);this.occupants_<100&&(this.occupants_++,k.next=this.JSC$9753_head_,this.JSC$9753_head_=k)};var M$z=function(){this.workTail_=this.workHead_=null};
M$z.prototype.add=function(k,E){var S=iC1.get();S.set(k,E);this.workTail_?this.workTail_.next=S:this.workHead_=S;this.workTail_=S};
M$z.prototype.remove=function(){var k=null;this.workHead_&&(k=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),k.next=null);return k};
var iC1=new lKY(function(){return new qmd},function(k){return k.reset()}),qmd=function(){this.next=this.scope=this.fn=null};
qmd.prototype.set=function(k,E){this.fn=k;this.scope=E;this.next=null};
qmd.prototype.reset=function(){this.next=this.scope=this.fn=null};var zwA,hIC,nr1,Qep;hIC=!1;nr1=new M$z;_.Bs=function(k,E){zwA||Qep();hIC||(zwA(),hIC=!0);nr1.add(k,E)};
Qep=function(){var k=Promise.resolve(void 0);zwA=function(){k.then(J3h)}};var OoC=function(k){k.prototype.$goog_Thenable=!0},GLj=function(k){if(!k)return!1;
try{return!!k.$goog_Thenable}catch(E){return!1}};var CIz,kaC,Ekj,Ruj,VwA,N0d,hu5,mg8,T0T,a_d,EYR;_.yF=function(k,E){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(k!=_.eu)try{var S=this;k.call(E,function(R){S.resolve_(2,R)},function(R){S.resolve_(3,R)})}catch(R){this.resolve_(3,R)}};
CIz=function(){this.next=this.context=this.JSC$9764_onRejected=this.JSC$9764_onFulfilled=this.child=null;this.always=!1};
CIz.prototype.reset=function(){this.context=this.JSC$9764_onRejected=this.JSC$9764_onFulfilled=this.child=null;this.always=!1};
kaC=new lKY(function(){return new CIz},function(k){k.reset()});
Ekj=function(k,E,S){var R=kaC.get();R.JSC$9764_onFulfilled=k;R.JSC$9764_onRejected=E;R.context=S;return R};
_.GR=function(k){if(k instanceof _.yF)return k;var E=new _.yF(_.eu);E.resolve_(2,k);return E};
_.BM=function(k){return new _.yF(function(E,S){S(k)})};
Ruj=function(k,E,S){S4C(k,E,S,null)||_.Bs(_.I_(E,k))};
_.Ys=function(k){return new _.yF(function(E,S){var R=k.length,V=[];if(R)for(var N=function(a,T){R--;V[a]=T;R==0&&E(V)},h=function(a){S(a)},J,m=0;m<k.length;m++)J=k[m],Ruj(J,_.I_(N,m),h);
else E(V)})};
VwA=function(k){return new _.yF(function(E){var S=k.length,R=[];if(S)for(var V=function(J,m,a){S--;R[J]=m?{fulfilled:!0,value:a}:{fulfilled:!1,reason:a};S==0&&E(R)},N,h=0;h<k.length;h++)N=k[h],Ruj(N,_.I_(V,h,!0),_.I_(V,h,!1));
else E(R)})};
N0d=function(k){return new _.yF(function(E,S){var R=k.length,V=[];if(R)for(var N=function(a){E(a)},h=function(a,T){R--;
V[a]=T;R==0&&S(V)},J,m=0;m<k.length;m++)J=k[m],Ruj(J,N,_.I_(h,m));
else E(void 0)})};
_.LU=function(){var k,E,S=new _.yF(function(R,V){k=R;E=V});
return new I_5(S,k,E)};
_.yF.prototype.then=function(k,E,S){return nkY(this,Ps(typeof k==="function"?k:null),Ps(typeof E==="function"?E:null),S)};
OoC(_.yF);hu5=function(k,E,S,R){iV2(k,Ekj(E||_.eu,S||null,R))};
_.Ws=function(k,E){E=Ps(E);E=Ekj(E,E);E.always=!0;iV2(k,E);return k};
_.yF.prototype.finally=function(k){var E=this;k=Ps(k);return new _.yF(function(S,R){hu5(E,function(V){k();S(V)},function(V){k();
R(V)})})};
_.yF.prototype.thenCatch=function(k,E){return nkY(this,null,Ps(k),E)};
_.yF.prototype.catch=_.yF.prototype.thenCatch;_.yF.prototype.cancel=function(k){if(this.state_==0){var E=new _.o3(k);_.Bs(function(){Jj2(this,E)},this)}};
var Jj2=function(k,E){if(k.state_==0)if(k.parent_){var S=k.parent_;if(S.callbackEntries_){for(var R=0,V=null,N=null,h=S.callbackEntries_;h&&(h.always||(R++,h.child==k&&(V=h),!(V&&R>1)));h=h.next)V||(N=h);V&&(S.state_==0&&R==1?Jj2(S,E):(N?(R=N,R.next==S.callbackEntriesTail_&&(S.callbackEntriesTail_=R),R.next=R.next.next):cj4(S),mg8(S,V,3,E)))}k.parent_=null}else k.resolve_(3,E)},iV2=function(k,E){k.callbackEntries_||k.state_!=2&&k.state_!=3||eu2(k);
k.callbackEntriesTail_?k.callbackEntriesTail_.next=E:k.callbackEntries_=E;k.callbackEntriesTail_=E},nkY=function(k,E,S,R){var V=Ekj(null,null,null);
V.child=new _.yF(function(N,h){V.JSC$9764_onFulfilled=E?function(J){try{var m=E.call(R,J);N(m)}catch(a){h(a)}}:N;
V.JSC$9764_onRejected=S?function(J){try{var m=S.call(R,J);m===void 0&&J instanceof _.o3?h(J):N(m)}catch(a){h(a)}}:h});
V.child.parent_=k;iV2(k,V);return V.child};
_.yF.prototype.unblockAndFulfill_=function(k){this.state_=0;this.resolve_(2,k)};
_.yF.prototype.unblockAndReject_=function(k){this.state_=0;this.resolve_(3,k)};
_.yF.prototype.resolve_=function(k,E){this.state_==0&&(this===E&&(k=3,E=new TypeError("xa")),this.state_=1,S4C(E,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=E,this.state_=k,this.parent_=null,eu2(this),k!=3||E instanceof _.o3||a_d(this,E)))};
var S4C=function(k,E,S,R){if(k instanceof _.yF)return hu5(k,E,S,R),!0;if(GLj(k))return k.then(E,S,R),!0;if(_.qA(k))try{var V=k.then;if(typeof V==="function")return twA(k,V,E,S,R),!0}catch(N){return S.call(R,N),!0}return!1},twA=function(k,E,S,R,V){var N=!1,h=function(m){N||(N=!0,S.call(V,m))},J=function(m){N||(N=!0,R.call(V,m))};
try{E.call(k,h,J)}catch(m){J(m)}},eu2=function(k){k.executing_||(k.executing_=!0,_.Bs(k.executeCallbacks_,k))},cj4=function(k){var E=null;
k.callbackEntries_&&(E=k.callbackEntries_,k.callbackEntries_=E.next,E.next=null);k.callbackEntries_||(k.callbackEntriesTail_=null);return E};
_.yF.prototype.executeCallbacks_=function(){for(var k;k=cj4(this);)mg8(this,k,this.state_,this.result_);this.executing_=!1};
mg8=function(k,E,S,R){if(S==3&&E.JSC$9764_onRejected&&!E.always)for(;k&&k.hadUnhandledRejection_;k=k.parent_)k.hadUnhandledRejection_=!1;if(E.child)E.child.parent_=null,T0T(E,S,R);else try{E.always?E.JSC$9764_onFulfilled.call(E.context):T0T(E,S,R)}catch(V){EYR.call(null,V)}kaC.put(E)};
T0T=function(k,E,S){E==2?k.JSC$9764_onFulfilled.call(k.context,S):k.JSC$9764_onRejected&&k.JSC$9764_onRejected.call(k.context,S)};
a_d=function(k,E){k.hadUnhandledRejection_=!0;_.Bs(function(){k.hadUnhandledRejection_&&EYR.call(null,E)})};
EYR=NA;_.o3=function(k){_.Sh.call(this,k)};
_.dy(_.o3,_.Sh);_.o3.prototype.name="cancel";var I_5=function(k,E,S){this.promise=k;this.resolve=E;this.reject=S};var Fc;_.Pk=function(k,E){_.wG.call(this);this.JSC$9776_interval_=k||1;this.timerObject_=E||_.Vt;this.boundTick_=(0,_.uk)(this.tick_,this);this.last_=_.ZO()};
_.dy(_.Pk,_.wG);_.I=_.Pk.prototype;_.I.enabled=!1;_.I.JSC$9778_timer_=null;_.I.setInterval=function(k){this.JSC$9776_interval_=k;this.JSC$9778_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9778_timer_&&this.stop()};
_.I.tick_=function(){if(this.enabled){var k=_.ZO()-this.last_;k>0&&k<this.JSC$9776_interval_*.8?this.JSC$9778_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9776_interval_-k):(this.JSC$9778_timer_&&(this.timerObject_.clearTimeout(this.JSC$9778_timer_),this.JSC$9778_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.I.start=function(){this.enabled=!0;this.JSC$9778_timer_||(this.JSC$9778_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9776_interval_),this.last_=_.ZO())};
_.I.stop=function(){this.enabled=!1;this.JSC$9778_timer_&&(this.timerObject_.clearTimeout(this.JSC$9778_timer_),this.JSC$9778_timer_=null)};
_.I.disposeInternal=function(){_.Pk.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Fc=function(k,E,S){if(typeof k==="function")S&&(k=(0,_.uk)(k,S));else if(k&&typeof k.handleEvent=="function")k=(0,_.uk)(k.handleEvent,k);else throw Error("ya");return Number(E)>2147483647?-1:_.Vt.setTimeout(k,E||0)};
_.wCC=function(k){var E=null;return(new _.yF(function(S,R){E=Fc(function(){S(void 0)},k);
E==-1&&R(Error("za"))})).thenCatch(function(S){_.Vt.clearTimeout(E);
throw S;})};var yo=function(k){_.r7.call(this);this.streamzLogger=k;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9782_flushTimer=new _.Pk(this.flushInterval);this.JSC$9782_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.Wy(this,this.JSC$9782_flushTimer)};
_.y(yo,_.r7);yo.prototype.sendIsolatedPayload=function(k){this.shouldSendIsolatedPayload=k;this.invocationLimit=1};
var P$C=function(k){k.JSC$9782_flushTimer.enabled||k.JSC$9782_flushTimer.start();k.invocationCount++;k.invocationCount>=k.invocationLimit&&k.snapshotAndFlush()};
yo.prototype.snapshotAndFlush=function(){var k=this.metricMap.values();k=[].concat(_.$e(k)).filter(function(E){return E.cellMap.size});
k.length&&this.streamzLogger.flush(k,this.shouldSendIsolatedPayload);B0d(k);this.invocationCount=0;this.JSC$9782_flushTimer.enabled&&this.JSC$9782_flushTimer.stop()};
yo.prototype.addNewCounter=function(k){var E=_.sX.apply(1,arguments);this.metricMap.has(k)||this.metricMap.set(k,new gOC(k,E))};
yo.prototype.addNewEventMetric=function(k){var E=_.sX.apply(1,arguments);this.metricMap.has(k)||this.metricMap.set(k,new Un8(k,E))};
var Y4C=function(k,E){return k.disabledMetrics.has(E)?void 0:k.metricMap.get(E)};
yo.prototype.JSC$9782_incrementCounter=function(k){this.JSC$9782_incrementCounterBy(k,1,_.sX.apply(1,arguments))};
yo.prototype.JSC$9782_incrementCounterBy=function(k,E){var S=_.sX.apply(2,arguments),R=Y4C(this,k);R&&R instanceof gOC&&(R.JSC$9721_incrementCounterBy(E,S),P$C(this))};
yo.prototype.record=function(k,E){var S=_.sX.apply(2,arguments),R=Y4C(this,k);R&&R instanceof Un8&&(R.record(E,S),P$C(this))};
var B0d=function(k){for(var E=0;E<k.length;E++)k[E].clear()};_.y4=function(k,E,S){S=S===void 0?{}:S;E=Error.call(this,E);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=k;this.metadata=S;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(_.y4,Error);_.y4.prototype.toString=function(){var k="RpcError("+(m3j(this.code)||String(this.code))+")";this.message&&(k+=": "+this.message);return k};_.WNT=_.Vt.JSON.parse;_.oL=_.Vt.JSON.stringify;_.TR=_.Vt.JSON.parse;_.FN4=function(k){switch(k){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 yjd=function(k){switch(k){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var ok2,XCd=function(){};
_.dy(XCd,_.eIl);XCd.prototype.createInstance=function(){return new XMLHttpRequest};
ok2=new XCd;_.Xc=function(k){_.wG.call(this);this.headers=new Map;this.JSC$9791_xmlHttpFactory_=k||null;this.JSC$9791_active_=!1;this.JSC$9791_xhr_=null;this.JSC$9791_lastUri_="";this.JSC$9791_lastErrorCode_=0;this.JSC$9791_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9791_timeoutId_=null;this.responseType_="";this.JSC$9791_withCredentials_=!1};
_.dy(_.Xc,_.wG);var gkA=/^https?$/i,Ug2=["POST","PUT"],HV4=[],lql=function(k,E,S,R,V,N,h){var J=new _.Xc;HV4.push(J);E&&J.listen("complete",E);J.listenOnce("ready",J.cleanupSend_);N&&(J.timeoutInterval_=Math.max(0,N));h&&(J.JSC$9791_withCredentials_=h);J.send(k,S,R,V)};
_.Xc.prototype.cleanupSend_=function(){this.dispose();_.ZR(HV4,this)};
_.Xc.prototype.send=function(k,E,S,R){if(this.JSC$9791_xhr_)throw Error("Aa`"+this.JSC$9791_lastUri_+"`"+k);E=E?E.toUpperCase():"GET";this.JSC$9791_lastUri_=k;this.JSC$9791_lastError_="";this.JSC$9791_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9791_active_=!0;this.JSC$9791_xhr_=this.createXhr();this.JSC$9791_xhr_.onreadystatechange=Ps((0,_.uk)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9791_xhr_.open(E,String(k),!0),this.inOpen_=!1}catch(h){KNj(this,h);return}k=S||"";S=new Map(this.headers);
if(R)if(Object.getPrototypeOf(R)===Object.prototype)for(var V in R)S.set(V,R[V]);else if(typeof R.keys==="function"&&typeof R.get==="function"){V=_.n(R.keys());for(var N=V.next();!N.done;N=V.next())N=N.value,S.set(N,R.get(N))}else throw Error("Ba`"+String(R));R=Array.from(S.keys()).find(function(h){return"content-type"==h.toLowerCase()});
V=_.Vt.FormData&&k instanceof _.Vt.FormData;!_.bC(Ug2,E)||R||V||S.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");E=_.n(S);for(R=E.next();!R.done;R=E.next())S=_.n(R.value),R=S.next().value,S=S.next().value,this.JSC$9791_xhr_.setRequestHeader(R,S);this.responseType_&&(this.JSC$9791_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9791_xhr_&&this.JSC$9791_xhr_.withCredentials!==this.JSC$9791_withCredentials_&&(this.JSC$9791_xhr_.withCredentials=this.JSC$9791_withCredentials_);
try{this.JSC$9791_timeoutId_&&(clearTimeout(this.JSC$9791_timeoutId_),this.JSC$9791_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9791_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9791_xhr_.send(k),this.inSend_=!1}catch(h){KNj(this,h)}};
_.Xc.prototype.createXhr=function(){return this.JSC$9791_xmlHttpFactory_?this.JSC$9791_xmlHttpFactory_.createInstance():ok2.createInstance()};
_.Xc.prototype.timeout_=function(){typeof ZNh!="undefined"&&this.JSC$9791_xhr_&&(this.JSC$9791_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9791_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var KNj=function(k,E){k.JSC$9791_active_=!1;k.JSC$9791_xhr_&&(k.inAbort_=!0,k.JSC$9791_xhr_.abort(),k.inAbort_=!1);k.JSC$9791_lastError_=E;k.JSC$9791_lastErrorCode_=5;pCY(k);AjA(k)},pCY=function(k){k.errorDispatched_||(k.errorDispatched_=!0,k.dispatchEvent("complete"),k.dispatchEvent("error"))};
_.Xc.prototype.abort=function(k){this.JSC$9791_xhr_&&this.JSC$9791_active_&&(this.JSC$9791_active_=!1,this.inAbort_=!0,this.JSC$9791_xhr_.abort(),this.inAbort_=!1,this.JSC$9791_lastErrorCode_=k||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),AjA(this))};
_.Xc.prototype.disposeInternal=function(){this.JSC$9791_xhr_&&(this.JSC$9791_active_&&(this.JSC$9791_active_=!1,this.inAbort_=!0,this.JSC$9791_xhr_.abort(),this.inAbort_=!1),AjA(this,!0));_.Xc.superClass_.disposeInternal.call(this)};
_.Xc.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)rjd(this);else this.onReadyStateChangeEntryPoint_()};
_.Xc.prototype.onReadyStateChangeEntryPoint_=function(){rjd(this)};
var rjd=function(k){if(k.JSC$9791_active_&&typeof ZNh!="undefined")if(k.inSend_&&_.gG(k)==4)setTimeout(k.onReadyStateChange_.bind(k),0);else if(k.dispatchEvent("readystatechange"),k.isComplete()){k.JSC$9791_active_=!1;try{if(k.isSuccess())k.dispatchEvent("complete"),k.dispatchEvent("success");else{k.JSC$9791_lastErrorCode_=6;try{var E=_.gG(k)>2?k.JSC$9791_xhr_.statusText:""}catch(S){E=""}k.JSC$9791_lastError_=E+" ["+k.getStatus()+"]";pCY(k)}}finally{AjA(k)}}},AjA=function(k,E){if(k.JSC$9791_xhr_){k.JSC$9791_timeoutId_&&
(clearTimeout(k.JSC$9791_timeoutId_),k.JSC$9791_timeoutId_=null);
var S=k.JSC$9791_xhr_;k.JSC$9791_xhr_=null;E||k.dispatchEvent("ready");try{S.onreadystatechange=null}catch(R){}}};
_.Xc.prototype.isActive=function(){return!!this.JSC$9791_xhr_};
_.Xc.prototype.isComplete=function(){return _.gG(this)==4};
_.Xc.prototype.isSuccess=function(){var k=this.getStatus(),E;if(!(E=yjd(k))){if(k=k===0)k=Dj2(String(this.JSC$9791_lastUri_)),k=!gkA.test(k);E=k}return E};
_.gG=function(k){return k.JSC$9791_xhr_?k.JSC$9791_xhr_.readyState:0};
_.I=_.Xc.prototype;_.I.getStatus=function(){try{return _.gG(this)>2?this.JSC$9791_xhr_.status:-1}catch(k){return-1}};
_.I.getResponseText=function(){try{return this.JSC$9791_xhr_?this.JSC$9791_xhr_.responseText:""}catch(k){return""}};
_.I.getResponse=function(){try{if(!this.JSC$9791_xhr_)return null;if("response"in this.JSC$9791_xhr_)return this.JSC$9791_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9791_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9791_xhr_)return this.JSC$9791_xhr_.mozResponseArrayBuffer}return null}catch(k){return null}};
_.I.getAllResponseHeaders=function(){return this.JSC$9791_xhr_&&_.gG(this)>=2?this.JSC$9791_xhr_.getAllResponseHeaders()||"":""};
_.I.getLastError=function(){return typeof this.JSC$9791_lastError_==="string"?this.JSC$9791_lastError_:String(this.JSC$9791_lastError_)};var w_i=function(){};
w_i.prototype.send=function(k,E,S){E=E===void 0?function(){}:E;
S=S===void 0?function(){}:S;
lql(k.url,function(R){R=R.target;R.isSuccess()?E(R.getResponseText()):S(R.getStatus())},k.requestType,k.body,k.requestHeaders,k.timeoutMillis,k.withCredentials)};
w_i.prototype.getTransmissionType=function(){return 1};var u4Y=function(k,E){this.l7b=k;this.event=E;this.startTime=oX()},y31;
u4Y.prototype.done=function(){this.l7b.dh(this.event,oX()-this.startTime)};
var UF=function(){ks.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.y(UF,ks);_.Hs=function(k,E,S){var R=oX();E=E();k.dh(S,oX()-R);return E};
y31=function(){UF.apply(this,arguments)};
_.y(y31,UF);_.I=y31.prototype;_.I.uJ2=function(){};
_.I.o6=function(){};
_.I.dh=function(){};
_.I.logError=function(){};
_.I.po=function(){};
_.I.vOU=function(){};
_.I.gOK=function(){};
_.I.stn=function(){};
var xgz=function(k){UF.call(this);var E=this;this.rV=k;this.TEST_ONLY={ms8:function(){return E.rV},
getExperimentIds:function(){return E.rV.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void E.rV.dispose()})};
_.y(xgz,UF);_.I=xgz.prototype;_.I.update=function(k){this.rV.dispose();this.rV=k};
_.I.o6=function(k){this.rV.o6(k)};
_.I.dh=function(k,E){this.rV.dh(k,E)};
_.I.logError=function(k){this.rV.logError(k)};
_.I.po=function(){this.rV.po()};
_.I.vOU=function(k){this.rV.vOU(k)};
_.I.gOK=function(k){this.rV.gOK(k)};
_.I.stn=function(k){this.rV.stn(k)};
_.I.uJ2=function(k){this.rV.uJ2(k)};
var LNC=function(k,E){_.r7.call(this);var S=this;this.callback=k;this.nBO=E;this.j10=-E;this.addOnDisposeCallback(function(){return void clearTimeout(S.timer)})};
_.y(LNC,_.r7);var j2z=function(k){if(k.timer===void 0){var E=Math.max(0,k.j10+k.nBO-oX());k.timer=setTimeout(function(){try{k.callback()}finally{k.j10=oX(),k.timer=void 0}},E)}},DgC=function(k,E){UF.call(this);
this.metrics=k;this.vc=E};
_.y(DgC,UF);_.I=DgC.prototype;_.I.uJ2=function(k){this.metrics.mU8.record(k,this.vc)};
_.I.o6=function(k){this.metrics.eventCount.increment(k,this.vc)};
_.I.dh=function(k,E){this.metrics.xi0.record(E,k,this.vc)};
_.I.logError=function(k){this.metrics.errorCount.increment(k,this.vc)};
_.I.vOU=function(k){this.metrics.hOp.increment(k,this.vc)};
_.I.gOK=function(k){this.metrics.uQ4.increment(k,this.vc)};
_.I.stn=function(k){this.metrics.zO8.increment(k,this.vc)};
var or1=function(k,E){E=E===void 0?[]:E;var S={vc:k.vc||"_",gE4:k.gE4||[],aV4:k.aV4|0,destinationUrl:k.destinationUrl,cJJ:k.cJJ||function(){},
cs2:k.cs2||function(N,h){return Fz1(N,h,S.cJJ,S.destinationUrl)}},R=S.cs2("51",S.gE4.concat(E));
DgC.call(this,{mU8:new B7Y(R),errorCount:new yPd(R),eventCount:new WbA(R),xi0:new FbY(R),zgZ:new YaT(R),hOp:new o4d(R),uQ4:new XyT(R),zO8:new g4d(R)},S.vc);var V=this;this.TEST_ONLY={getExperimentIds:function(){return V.options.gE4.concat(V.kdY).sort(function(N,h){return N-h})}};
this.options=S;this.service=R;this.jUY=!k.cs2;this.flushDebouncer=new LNC(function(){return void V.service.snapshotAndFlush()},S.aV4);
this.addOnDisposeCallback(function(){V.flushDebouncer.dispose();V.jUY&&V.service.dispose()});
(this.kdY=E.slice()).sort(_.LI1)};
_.y(or1,DgC);or1.prototype.po=function(){j2z(this.flushDebouncer)};var jGe=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(jGe,_.iu);_.DQi=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(_.DQi,_.iu);var HZ=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k,0,HZ.messageId)};
_.y(HZ,_.iu);var $gC=_.qXI(HZ);HZ.messageId="bfkj";var Q2h=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Q2h,_.iu);var f_4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(f_4,_.iu);var vk5=_.WU(f_4);_.kl=function(){var k=this;this.promise=new Promise(function(E,S){k.resolve=E;k.reject=S})};_.K3=function(k){_.r7.call(this);var E=this;this.dz0=Math.floor(Math.random()*200);this.pNx=new f_4;if("challenge"in k&&$gC(k.challenge)){var S=_.t2(k.challenge,4,void 0,rY);var R=_.t2(k.challenge,5,void 0,rY);_.t2(k.challenge,7,void 0,rY)&&(this.pNx=vk5(_.t2(k.challenge,7,void 0,rY)))}else S=k.program,R=k.globalName;this.addOnDisposeCallback(function(){var F,K,r;return _.c(function(x){if(x.nextAddress==1)return x.yield(E.l1U,2);F=x.yieldResult;K=F.a08;(r=K)==null||r();_.KR(x)})});
this.hZ=X_I(k.lM3||{},this.pNx);_.Wy(this,this.hZ);var V=new _.kl;this.l1U=V.promise;this.hZ.o6("t");var N=this.hZ.share(),h=new u4Y(N,"t"),J=function(F,K,r,x){if(!E.hZ.isDisposed()){var L="k";K?L="h":r&&(L="u");L!=="k"?x!==0&&(E.hZ.o6(L),E.hZ.dh(L,F)):E.dz0<=0?(E.hZ.o6(L),E.hZ.dh(L,F),E.dz0=Math.floor(Math.random()*200)):E.dz0--}},m=function(F,K,r,x){Promise.resolve().then(function(){h.done();
N.po();N.dispose();V.resolve({vkm:F,a08:K,zfL:r,szu:x})})};
if(!_.Vt[R])throw this.hZ.logError(25),Error("Ca");if(!_.Vt[R].a)throw this.hZ.logError(26),Error("Da");try{var a=_.Vt[R].a;R=[];for(var T=[],w=OVC(this.pNx),P=0;P<w.length;P++)R.push(w[P]),T.push(1);var B=Gah(this.pNx);for(w=0;w<B.length;w++)R.push(B[w]),T.push(2);this.pCM=_.n(a(S,m,!0,k.i1q,J,[R,T],_.t2(this.pNx,5),!1)).next().value;this.rOe=V.promise.then(function(){})}catch(F){throw this.hZ.logError(28),F;
}};
_.y(_.K3,_.r7);_.K3.prototype.snapshot=function(k){if(this.isDisposed())throw Error("Ea");this.hZ.o6("n");var E=this.hZ.share();return this.l1U.then(function(S){var R=S.vkm;return new Promise(function(V){var N=new u4Y(E,"n");R(function(h){N.done();E.uJ2(h.length);E.po();E.dispose();V(h)},[k.xe,
k.t2e,k.l04,k.fhx])})})};
_.K3.prototype.sx2=function(k){this.l1U.then(function(E){var S;(S=E.zfL)==null||S(k)})};
_.K3.prototype.no2=function(k,E){return this.l1U.then(function(S){var R;return(R=S.szu)==null?void 0:R(k,E,!1)})};
_.K3.prototype.bEa=function(){return this.hZ.share()};var bVp=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(bVp,_.iu);var YJI=_.qXI(bVp);var ZVC=function(){this.promises={};this.rcB=null},dg5=function(){ZVC.instance||(ZVC.instance=new ZVC);
return ZVC.instance},l_z=function(k,E){return s25(k,_.Tp(E,jGe,1,rY),_.Tp(E,_.DQi,2,rY),_.t2(E,3,void 0,rY))},s25=function(k,E,S,R){if(!E&&!S)return Promise.resolve();
if(!R)return p_1(E,S);var V;(V=k.promises)[R]||(V[R]=new Promise(function(N,h){p_1(E,S).then(function(){k.rcB=R;N()},function(J){delete k.promises[R];
h(J)})}));
return k.promises[R]};var Mw8=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Mw8,_.iu);var q4Y=function(k,E){return _.K9(k,1,E)},zu4=function(k,E){return _.K9(k,2,E)};var p3=function(k){_.r7.call(this);var E=this;this.options=k;this.hX4=new _.kl;this.rOe=this.hX4.promise;this.fy3=new _.kl;this.kKO=1;this.s82=new _.kl;this.dcx=[];this.op3=k.op3||function(){};
this.xXK=new xgz(X_I(k.lM3||{}));Q2C(this,k.kc,k.tJu,k.vU8,k.dFm,Object.assign({},OV4,k.hK2||{}));this.addOnDisposeCallback(function(){return void GaT(E)})};
_.y(p3,_.r7);p3.prototype.snapshot=function(k){var E=this;return _.c(function(S){switch(S.nextAddress){case 1:if(E.isDisposed())throw Error("Ea");if(E.b5||E.bi4){S.jumpTo(2);break}return S.yield(E.fy3.promise,2);case 2:if(!E.b5){S.jumpTo(4);break}return S.yield(E.b5.snapshot(k),5);case 5:return S.return(S.yieldResult);case 4:throw E.bi4;}})};
var C$5=function(k){var E;return _.c(function(S){if(k.isDisposed())throw Error("Ea");(E=k.y6)!=null&&(E.endTimeMs=0,E.resolver(1));return S.yield(k.s82.promise,0)})},GaT=function(k){k.bi4=Error("Ga");
k.fy3.resolve();C$j(k.hX4.promise);k.hX4.reject(Error("Ga"));k.xXK.dispose();Promise.all(k.dcx).then(function(){var S;return _.c(function(R){(S=k.b5)==null||S.dispose();k.b5=void 0;_.KR(R)})});
k.dcx=[];var E;(E=k.y6)!=null&&(E.endTimeMs=0,E.resolver(1));C$j(k.s82.promise);k.s82.reject(Error("Ga"))};
p3.prototype.sx2=function(k){var E,S;(E=this.b5)==null||(S=E.sx2)==null||S.call(E,k)};
p3.prototype.no2=function(k,E){var S,R,V;return(V=(S=this.b5)==null?void 0:(R=S.no2)==null?void 0:R.call(S,k,E))!=null?V:Promise.resolve()};
var kV8=function(k,E){var S=k.op3;k.op3=function(){S();E()}},ErC=function(k,E){k.isDisposed()||(k.b5=E,k.xXK.update(E.bEa()),k.fy3.resolve(),k.hX4.resolve(void 0),k.op3())};
p3.prototype.handleError=function(k){if(!this.isDisposed()){this.bi4=k;this.fy3.resolve();var E,S;(S=(E=this.options).zsb)==null||S.call(E,k)}};
var Sg2=function(k,E){E&&(Promise.all(k.dcx).then(function(){return void E.dispose()}),k.dcx=[])},AS=function(k,E){k.kKO=E;
var S,R;(R=(S=k.options).ehA)==null||R.call(S,E)},RIA=function(k){k.isDisposed()||(k.s82.resolve(),k.s82=new _.kl)},Q2C=function(k,E,S,R,V,N){R=R===void 0?dg5():R;
V=V===void 0?Promise.resolve(void 0):V;var h,J,m,a,T,w,P,B,F,K,r,x;_.c(function(L){switch(L.nextAddress){case 1:return L.yield(0,3);case 3:J=null;if(!h){L.jumpTo(6);break}AS(k,7);_.F5(L,7);return L.yield(Ku(h.snapshot({}),N.m5K,function(){return Promise.resolve("E:CTO")}),9);
case 9:J=L.yieldResult;_.Sv(L,6);break;case 7:_.UY(L),J="E:UCE";case 6:m=void 0,a=h?N.miM:N.jbY,T=new Py(a,N.zX4,N.hXm,N.diY),w=1;case 10:if(!(w<=N.maxAttempts)){L.jumpTo(12);break}if(w===1){L.jumpTo(13);break}AS(k,0);k.y6=new Vnp(T.getValue(),N.lge,N.agY);return L.yield(k.y6.promise,14);case 14:P=L.yieldResult,k.y6=void 0,P===1?(w=1,T.reset()):t$Y(T);case 13:_.F5(L,15);B=void 0;if(S){B=S;L.jumpTo(17);break}AS(k,5);F=R.rcB;return L.yield(Ku(NO2(E,F,J),N.zn0,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:B=L.yieldResult;case 17:return AS(k,3),L.yield(Ku(l_z(R,B),N.iFY,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return AS(k,8),L.yield(V,20);case 20:return K=new _.K3({challenge:B,lM3:k.options.lM3,i1q:k.options.i1q}),L.yield(Ku(K.rOe,N.pi8,function(){return Promise.reject(Error("Ja"))}),21);
case 21:m=K;L.jumpTo(12);break;case 15:r=_.UY(L),k.handleError(r),RIA(k);case 11:w++;L.jumpTo(10);break;case 12:if(k.isDisposed()){L.jumpTo(5);break}m&&(S=void 0,Sg2(k,h),h=m,ErC(k,m),RIA(k));AS(k,2);k.y6=new Vnp(N.jBq,N.lge,N.agY);return L.yield(k.y6.promise,22);case 22:k.y6=void 0;if(k.isDisposed()){L.jumpTo(5);break}L.jumpTo(3);break;case 5:(x=h)==null||x.dispose(),_.KR(L)}})};
p3.prototype.bEa=function(){return this.xXK.share()};
var OV4={jBq:432E5,lge:3E5,agY:10,m5K:1E4,zn0:3E4,iFY:3E4,pi8:6E4,jbY:1E3,miM:6E4,zX4:6E5,hXm:.25,diY:2,maxAttempts:10},Vnp=function(k,E,S){var R=this;this.endTimeMs=Date.now()+k;this.promise=new Promise(function(N){R.resolver=N});
var V=function(){var N=R.endTimeMs-Date.now();N<=S?R.resolver(0):setTimeout(V,Math.min(N,E))};
V()};var InC,uuI=(InC=Math.imul)!=null?InC:function(k,E){return k*E|0},pu=[196,
200,224,18],rG=function(k,E,S){S=S===void 0?[]:S;this.maxItems=k;this.jo=E===void 0?0:E;this.aY=S},nrC=function(k){var E=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!E)return new rG(k);var S=E.split(",");if(S.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rG(k);E=S.slice(1);E.length===1&&E[0]===""&&(E=[]);S=Number(S[0]);return isNaN(S)||S<0||S>E.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rG(k)):new rG(k,S,E)};
rG.prototype.serialize=function(){return String(this.jo)+","+this.aY.join()};
rG.prototype.insert=function(k,E){var S=void 0;if(this.aY[this.jo]!==k){var R=this.aY.indexOf(k);R!==-1?(this.aY.splice(R,1),R<this.jo&&this.jo--,this.aY.splice(this.jo,0,k)):(S=this.aY[this.jo],this.aY[this.jo]=k)}this.jo=(this.jo+1)%this.maxItems;k=A3t("iU5q-!O9@$",this.serialize());S&&k&&E(S);return k};
var iCY=function(k,E){this.oDn=E;try{var S=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(R){S=!1}S&&(this.index=nrC(k))},hI4=function(k,E,S,R,V){var N=k.index?_.Hs(k.oDn,function(){return D3R(k.index,LzA(E),S,R,V)},"W"):"u";
k.oDn.stn(N)},J3C=function(k,E,S){var R=_.n(k.index?_.Hs(k.oDn,function(){return $3C(LzA(E),S)},"R"):["u"]),V=R.next().value;
R=R.next().value;k.oDn.gOK(V);return R};var c38={toString:function(k){var E=[],S=0;k-=-2147483648;E[S++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(k%52);for(k=Math.floor(k/52);k>0;)E[S++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(k%62),k=Math.floor(k/62);return E.join("")}};var anp=function(k){k=m35(k);for(var E=2654435769,S=2654435769,R=314159265,V=k.length,N=V,h=0,J=function(){E-=S;E-=R;E^=R>>>13;S-=R;S-=E;S^=E<<8;R-=E;R-=S;R^=S>>>13;E-=S;E-=R;E^=R>>>12;S-=R;S-=E;S^=E<<16;R-=E;R-=S;R^=S>>>5;E-=S;E-=R;E^=R>>>3;S-=R;S-=E;S^=E<<10;R-=E;R-=S;R^=S>>>15};N>=12;N-=12,h+=12)E+=eIj(k,h),S+=eIj(k,h+4),R+=eIj(k,h+8),J();
R+=V;switch(N){case 11:R+=k[h+10]<<24;case 10:R+=k[h+9]<<16;case 9:R+=k[h+8]<<8;case 8:S+=k[h+7]<<24;case 7:S+=k[h+6]<<16;case 6:S+=k[h+5]<<8;case 5:S+=k[h+4];case 4:E+=k[h+3]<<24;case 3:E+=k[h+2]<<16;case 2:E+=k[h+1]<<8;case 1:E+=k[h]}J();return c38.toString(R)},m35=function(k){for(var E=[],S=0;S<k.length;S++)E.push(k.charCodeAt(S));
return E},eIj=function(k,E){return k[E]+(k[E+1]<<8)+(k[E+2]<<16)+(k[E+3]<<24)};var u1=function(k){_.r7.call(this);this.eD=k;this.aU4=new _.kl};
_.y(u1,_.r7);var tnY=function(k,E){var S=setTimeout(function(){k.aU4.resolve()},E);
k.addOnDisposeCallback(function(){return void clearTimeout(S)})};
u1.prototype.u4n=function(k,E){var S=this.tj(k);E==null||E(S);return _.Hs(this.eD,function(){return _.xW(S,2)},this.vPA)};
var TO5=function(k,E,S,R){return _.Hs(k.eD,function(){return S?k.u4n(E,R):k.tj(E,R)},k.cqn)},w_A=function(k,E,S,R){u1.call(this,k);
this.qAp=E;this.mR9=S;this.cqn="m";this.vPA="x";this.dRN=0;tnY(this,R)};
_.y(w_A,u1);w_A.prototype.tj=function(k,E){var S=this;this.eD.o6(this.cqn);++this.dRN>=this.mR9&&this.aU4.resolve();var R=k();k=_.Hs(this.eD,function(){return S.qAp(R)},"C");
if(k===void 0)throw new G4(17,"YNJ:Undefined");if(!(k instanceof Uint8Array))throw new G4(18,"ODM:Invalid");E==null||E(k);return k};
var PJA=function(k,E,S){u1.call(this,k);this.dB4=E;this.cqn="f";this.vPA="z";tnY(this,S)};
_.y(PJA,u1);PJA.prototype.tj=function(){return this.dB4};
var BOY=function(k,E,S){u1.call(this,k);this.cUe=E;this.cqn="w";this.vPA="z";tnY(this,S)};
_.y(BOY,u1);BOY.prototype.tj=function(){var k=this;return _.Hs(this.eD,function(){return _.k2(k.cUe)},"d")};
BOY.prototype.u4n=function(){return this.cUe};
var Ygd=function(k,E){u1.call(this,k);this.error=E;this.cqn="e";this.vPA="y"};
_.y(Ygd,u1);var WzY=function(k,E){var S=(E(k.error.message)+":"+E(k.error.stack)).substring(0,2048);E=S.length+1;S=fnt(S);var R=new Uint8Array(4+S.length);R.set([42,E&127|128,E>>7,k.error.code]);R.set(S,4);return R};
Ygd.prototype.tj=function(){if(this.nV4)return this.nV4;this.nV4=WzY(this,function(k){return"_"+anp(k)});
return WzY(this,function(k){return k})};
var FzY=function(k,E,S){u1.call(this,k);this.bz0=E;this.clientState=S;this.cqn="S";this.vPA="q"};
_.y(FzY,u1);FzY.prototype.tj=function(){var k=Math.floor(Date.now()/1E3),E=[Math.random()*255,Math.random()*255],S=E.concat([this.bz0&255,this.clientState],[k>>24&255,k>>16&255,k>>8&255,k&255]);k=new Uint8Array(2+S.length);k[0]=34;k[1]=S.length;k.set(S,2);S=k.subarray(2);for(var R=E=E.length;R<S.length;++R)S[R]^=S[R%E];this.eD.vOU(this.clientState);return k};var y3Y={gtK:3E4,jd3:2E4},xs=function(k){_.r7.call(this);var E=this;this.zgU=new _.kl;this.oB4=0;this.pw=void 0;this.state=2;this.vm=k.vm;this.kc=k.kc;this.hK2=Object.assign({},y3Y,k.hK2||{});this.su=k.vm.bEa();var S;this.onError=(S=k.onError)!=null?S:function(){};
this.m3A=k.m3A||!1;if(orY(k)){var R=this.vm;this.iUH=function(){return C$5(R).catch(function(h){h=E.reportError(new G4(E.bW?20:32,"TRG:Disposed",h));E.pw=h;var J;(J=E.bW)==null||J.dispose();E.bW=void 0;E.zgU.reject(h)})};
kV8(R,function(){return void X_d(E)});
R.kKO===2&&X_d(this)}else this.iUH=k.cpp,X_d(this);var V=this.su.share();V.o6("o");var N=new u4Y(V,"o");this.zgU.promise.then(function(){N.done();V.po();V.dispose()},function(){return void V.dispose()});
this.addOnDisposeCallback(function(){E.bW?(E.bW.dispose(),E.bW=void 0):E.pw?E.su.po():(E.pw=E.reportError(new G4(32,"TNP:Disposed")),E.su.po(),E.zgU.reject(E.pw))});
_.Wy(this,this.su)};
_.y(xs,_.r7);xs.prototype.oZ2=function(){return this.zgU.promise};
var grC=function(k,E){if(!(E instanceof G4))if(E instanceof _.y4){var S=Error(E.toString());S.stack=E.stack;E=new G4(11,"EBH:Error",S)}else E=new G4(12,"BSO:Unknown",E);return k.reportError(E)},X_d=function(k){var E,S,R,V,N,h,J,m,a,T,w,P,B,F,K;
return _.c(function(r){switch(r.nextAddress){case 1:E=void 0;k.oB4++;S=new _.kl;k.vm instanceof p3&&k.vm.dcx.push(S.promise);if(!k.m3A){r.jumpTo(2);break}R=new _.kl;setTimeout(function(){return void R.resolve()});
return r.yield(R.promise,2);case 2:return V=k.su.share(),_.F5(r,4,5),k.state=5,N={},h=[],r.yield(Ku(k.vm.snapshot({xe:N,l04:h}),k.hK2.jd3,function(){return Promise.reject(new G4(15,"MDA:Timeout"))}),7);
case 7:J=r.yieldResult;if(k.isDisposed())throw new G4(k.bW?20:32,"MDA:Disposed");m=h[0];k.state=6;return r.yield(Ku(U3j(k.kc,J),k.hK2.gtK,function(){return Promise.reject(new G4(10,"BWB:Timeout"))}),8);
case 8:a=r.yieldResult;if(k.isDisposed())throw new G4(k.bW?20:32,"BWB:Disposed");k.state=7;E=_.Hs(V,function(){var L=HC2(k,a,S,m);L.aU4.promise.then(function(){return void k.iUH()});
return L},"i");
case 5:_.ob(r);V.dispose();_.gP(r,6);break;case 4:T=_.UY(r);(w=E)==null||w.dispose();if(!k.pw){P=grC(k,T);S.resolve();var x;if(x=k.vm instanceof p3&&k.oB4<2)a:if(T instanceof G4)x=T.code!==32&&T.code!==20&&T.code!==10;else{if(T instanceof _.y4)switch(T.code){case 2:case 13:case 14:case 4:break;default:x=!1;break a}x=!0}if(x)return B=(1+Math.random()*.25)*(k.bW?6E4:1E3),F=setTimeout(function(){return void k.iUH()},B),k.addOnDisposeCallback(function(){return void clearTimeout(F)}),r.return();
k.pw=P}V.logError(k.bW?13:14);k.zgU.reject(k.pw);return r.return();case 6:k.state=8,k.oB4=0,(K=k.bW)==null||K.dispose(),k.bW=E,k.zgU.resolve(),_.KR(r)}})},HC2=function(k,E,S,R){var V=cCd(E,2)*1E3;
if(V<=0)throw new G4(31,"TTM:Invalid");if(_.t2(E,4))return new BOY(k.su,_.t2(E,4),V);if(!cCd(E,3))return new PJA(k.su,qj8(_.I4(E,1)),V);if(!R)throw new G4(4,"PMD:Undefined");R=R(qj8(_.I4(E,1)));if(!(R instanceof Function))throw new G4(16,"APF:Failed");k.xPY=Math.floor((Date.now()+V)/1E3);k=new w_A(k.su,R,cCd(E,3),V);k.addOnDisposeCallback(function(){return void S.resolve()});
return k};
xs.prototype.tj=function(k){return KzC(this,Object.assign({},k),!1)};
xs.prototype.u4n=function(k){return KzC(this,Object.assign({},k),!0)};
xs.prototype.xB2=function(k){if(k>150)return!1;try{return this.cache=new iCY(k,this.su),!0}catch(E){return this.reportError(new G4(22,"GBJ:init",E)),!1}};
xs.prototype.reportError=function(k){this.su.logError(k.code);this.onError(k);return k};
var p_Y=function(k,E){E=E instanceof G4?E:new G4(5,"TVD:error",E);return k.reportError(E)},KzC=function(k,E,S){try{if(k.isDisposed())throw new G4(21,"BNT:disposed");
if(!k.bW&&k.pw)throw k.pw;var R,V;return(V=(R=A3d(k,E,S))!=null?R:r3z(k,E,S))!=null?V:uuY(k,E,S)}catch(N){if(!E.gLx)throw p_Y(k,N);return x3Y(k,S,N)}},A3d=function(k,E,S){var R;
return(R=k.bW)==null?void 0:TO5(R,function(){return Lzp(k,E)},S,function(V){var N;
if(k.bW instanceof w_A&&((N=E.yk)==null?0:N.jZK))try{var h;(h=k.cache)==null||hI4(h,Lzp(k,E),V,E.yk.hCn,k.xPY-120)}catch(J){k.reportError(new G4(24,"ELX:write",J))}})},r3z=function(k,E,S){var R;
if((R=E.yk)!=null&&R.wGl)try{var V,N=(V=k.cache)==null?void 0:J3C(V,Lzp(k,E),E.yk.hCn);return N?S?_.Hs(k.su,function(){return _.xW(N,2)},"a"):N:void 0}catch(h){k.reportError(new G4(23,"RXO:read",h))}},uuY=function(k,E,S){var R={stack:[],
error:void 0,hasError:!1};try{if(!E.hxA)throw new G4(29,"SDF:notready");return TO5(zTt(R,new FzY(k.su,0,k.state)),function(){return Lzp(k,E)},S)}catch(V){R.error=V,R.hasError=!0}finally{Qyh(R)}},x3Y=function(k,E,S){var R={stack:[],
error:void 0,hasError:!1};try{var V=p_Y(k,S);return TO5(zTt(R,new Ygd(k.su,V)),function(){return[]},E)}catch(N){R.error=N,R.hasError=!0}finally{Qyh(R)}},Lzp=function(k,E){return E.ncA?E.ncA:E.xe?_.Hs(k.su,function(){return E.ncA=fnt(E.xe)},"c"):[]},orY=function(k){return x2(function(E){if(!cX(E))return!1;
for(var S=_.n(Object.entries(k)),R=S.next();!R.done;R=S.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;if(!(R in E)){if(V.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!V(E[R]))return!1}return!0})}({vm:function(k){return x2(function(E){return E instanceof k})}(p3)},"");var jud=function(){var k=_.QV();this.JSC$9909_streamzService=k;k.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",aX("cookie_enabled"),aX("cookie_3p_enabled"),_.Tx("browser"))};
jud.prototype.increment=function(k,E,S){this.JSC$9909_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",k,E,S)};
var TM1=function(){var k=_.QV();this.JSC$9933_streamzService=k;k.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",tP("tick"),aX("from_st_cookie"))};
TM1.prototype.increment=function(k,E){this.JSC$9933_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",k,E)};
var D3C=function(){var k=_.QV();this.JSC$9939_streamzService=k;k.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Tx("status"))};
D3C.prototype.increment=function(k){this.JSC$9939_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",k)};
var $34=function(){var k=_.QV();this.JSC$9942_streamzService=k;k.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Tx("stage"),aX("is_using_ytd_player"),aX("has_expandable_tiles"))};
$34.prototype.increment=function(k,E,S){this.JSC$9942_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",k,E,S)};
var fnd=function(){var k=_.QV();this.JSC$9945_streamzService=k;k.addNewCounter("/client_streamz/youtube/web/response_signature",_.Tx("check_status"))};
fnd.prototype.increment=function(k){this.JSC$9945_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/response_signature",k)};
var vrd=function(){var k=_.QV();this.JSC$9948_streamzService=k;k.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Tx("sig"),tP("de"))};
vrd.prototype.increment=function(k,E){this.JSC$9948_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/e_sig_log",k,E)};
var bCp=function(){var k=_.QV();this.JSC$9951_streamzService=k;k.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Tx("sig"),tP("de"))};
bCp.prototype.increment=function(k,E){this.JSC$9951_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/e_sig_en",k,E)};
_.ZC5=function(){var k=_.QV();this.JSC$9954_streamzService=k;k.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Tx("action"))};
_.ZC5.prototype.increment=function(k){this.JSC$9954_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/web/enforcement_intent",k)};var L3=window;var d3d=(new Date).getTime();_.fO.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.fO.createSet("action","cite","data","formaction","href","manifest","poster","src");var suC=function(k){this.servicePromise_=k;k.then((0,_.uk)(function(){},this),function(){},this)},lnj=function(k,E,S){k.servicePromise_.then(function(R){var V=R[E];
if(!V)throw Error("Ka`"+E);return V.apply(R,S)})},zIp=function(k,E,S){for(var R=Array(arguments.length-2),V=2;V<arguments.length;V++)R[V-2]=arguments[V];
V=Mn8(k,E).then(function(N){return N.apply(null,R)},function(N){N=Error("La`"+E+"`"+k+"`"+N,{cause:N});
delete qg5[E];return _.BM(N)});
return new suC(V)},qg5={},Mn8=function(k,E){var S=qg5[E];
if(S)return S;S=(S=_.CV(E))?_.GR(S):(new _.yF(function(R,V){var N=(new PN(document)).createElement("SCRIPT");N.async=!0;_.Ib(N,_.pg(dVd(k)));N.onload=N.onreadystatechange=function(){N.readyState&&N.readyState!="loaded"&&N.readyState!="complete"||R()};
N.onerror=function(h){V(Error("Ma`"+E+"`"+k,{cause:h}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(N)})).then(function(){var R=_.CV(E);
if(!R)throw Error("Na`"+E+"`"+k);return R});
return qg5[E]=S};var Qud={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},GVp=function(){var k=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=vrI(function(){return _.c(function(E){if(E.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?E.return(Promise.resolve()):E.yield(OCA(k),2);k.rsaForList.length>
0&&document.addEventListener("click",k.requestAccessForHelpPanel);_.KR(E)})});
this.requestAccessForHelpPanel=function(){if(!(k.rsaForPromises.length>0)){for(var E=_.n(k.rsaForList),S=E.next();!S.done;S=E.next()){S=S.value;try{k.rsaForPromises.push(document.requestStorageAccessFor(S))}catch(R){}}Promise.all(k.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){k.reset()})}}};
GVp.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var OCA=function(k){var E,S,R,V;return _.c(function(N){switch(N.nextAddress){case 1:E=_.n(Object.values(Qud)),S=E.next();case 2:if(S.done){N.jumpTo(0);break}R=S.value;_.F5(N,5);return N.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:R}),7);case 7:V=N.yieldResult;V.state!=="granted"&&k.rsaForList.push(R);_.Sv(N,3);break;case 5:_.UY(N);N.jumpTo(0);break;case 3:S=E.next(),N.jumpTo(2)}})};(new GVp).initialize();var CJC=function(k){this.JSC$9968_loader_=k};
CJC.prototype.startHelp=function(k){lnj(this.JSC$9968_loader_,"startHelp",arguments)};
CJC.prototype.JSC$9970_loadChatSupport=function(k){lnj(this.JSC$9968_loader_,"loadChatSupport",arguments)};
var EZd=function(k,E){E=E||{};k=zIp(kpp,"help.service.Lazy.create",k,{apiKey:E.apiKey||E.apiKey,asxUiUri:E.asxUiUri||E.asxUiUri,environment:E.environment||E.environment,flow:E.flow||E.flow,frdProductData:E.frdProductData||E.frdProductData,frdProductDataSerializedJspb:E.frdProductDataSerializedJspb||E.frdProductDataSerializedJspb,helpCenterPath:E.helpCenterPath||E.helpCenterPath,locale:E.locale||E.locale||"en-US".replace(/-/g,"_"),nonce:E.nonce||E.nonce,productData:E.productData||E.productData,receiverUri:E.receiverUri||
E.receiverUri,renderApiUri:E.renderApiUri||E.renderApiUri,theme:E.theme||E.theme,window:E.window||E.window});return new CJC(k)},kpp=new lM(MQj,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var SQA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(SQA,_.iu);var RdY=_.WU(SQA);var Vvj=[0,_.$7,A2,kG8];_.NvC=new function(k,E,S,R){this.configType=k;this.flagName=S;this.defaultValue=R;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 nZ8=function(){this.retriever=_.en().resolve(IJT)};_.DI={get payments(){return window.payments}};ZCj(Node);ZCj(Element);var ixY=ZCj(HTMLElement);ZCj(SVGElement);var hdC,J6Y,$s,c6z;hdC=function(k){return typeof k.className=="string"?k.className:k.getAttribute&&k.getAttribute("class")||""};
J6Y=function(k){return k.classList?k.classList:hdC(k).match(/\S+/g)||[]};
_.jL=function(k,E){typeof k.className=="string"?k.className=E:k.setAttribute&&k.setAttribute("class",E)};
_.D9=function(k,E){return k.classList?k.classList.contains(E):_.bC(J6Y(k),E)};
_.bY=function(k,E){if(k.classList)k.classList.add(E);else if(!_.D9(k,E)){var S=hdC(k);_.jL(k,S+(S.length>0?" "+E:E))}};
$s=function(k,E){if(k.classList)Array.prototype.forEach.call(E,function(V){_.bY(k,V)});
else{var S={};Array.prototype.forEach.call(J6Y(k),function(V){S[V]=!0});
Array.prototype.forEach.call(E,function(V){S[V]=!0});
E="";for(var R in S)E+=E.length>0?" "+R:R;_.jL(k,E)}};
_.fh=function(k,E){k.classList?k.classList.remove(E):_.D9(k,E)&&_.jL(k,Array.prototype.filter.call(J6Y(k),function(S){return S!=E}).join(" "))};
c6z=function(k,E){k.classList?Array.prototype.forEach.call(E,function(S){_.fh(k,S)}):_.jL(k,Array.prototype.filter.call(J6Y(k),function(S){return!_.bC(E,S)}).join(" "))};var mGz=function(k){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=k.document},tvC=function(k,E){edd(k);
var S=document.createElement("div"),R;(R=E.parentNode)==null||R.insertBefore(S,E);S.tabIndex=0;S.id="fc-focus-trap-pre-div";S=document.createElement("div");var V;(V=E.parentNode)==null||V.insertBefore(S,E.nextSibling);S.tabIndex=0;S.id="fc-focus-trap-post-div";var N=aJ5(k,E),h=aJ5(k,E,!0);N&&h&&(k.focusChangeHandler=function(){var J=k.document.activeElement;if(J)if(_.zx(E,J))k.previouslyFocusedElement=J;else if(J===k.document.activeElement)switch(k.previouslyFocusedElement){case N:h.focus();k.previouslyFocusedElement=
h;break;default:N.focus(),k.previouslyFocusedElement=N}},k.document.addEventListener("focus",k.focusChangeHandler,!0),k.document.addEventListener("focusin",k.focusChangeHandler))},edd=function(k){k.focusChangeHandler&&(document.removeEventListener("focus",k.focusChangeHandler,!0),document.removeEventListener("focusin",k.focusChangeHandler),k.focusChangeHandler=null);
var E;(E=document.getElementById("fc-focus-trap-pre-div"))==null||E.remove();var S;(S=document.getElementById("fc-focus-trap-post-div"))==null||S.remove()},Tv4=function(k,E,S,R,V){S=S===void 0?!0:S;
var N;V=(N=V===void 0?null:V)!=null?N:aJ5(k,E,R===void 0?!1:R);V!==null&&(V.focus(),S&&tvC(k,E))};
mGz.prototype.disableButton=function(k,E){E=E===void 0?null:E;k.disabled=!0;E&&_.bY(k,E)};
var aJ5=function(k,E,S){S=S===void 0?!1:S;if(cV1(E)&&!S)return E;var R=S?[].slice.call(E.children,0).reverse():E.children;R=_.n(R);for(var V=R.next();!V.done;V=R.next())if(V=V.value,ixY(V)&&(V=aJ5(k,V,S)))return V;return cV1(E)&&S?E:null};var wVz=function(k){this.originalBodyOverflow="";this.JSC$9995_domHelper=rT(k)};
wVz.prototype.enableScrolling=function(){this.JSC$9995_domHelper.JSC$9321_document_.body.style.overflow=this.originalBodyOverflow};_.dy(_.x4,_.r7);_.I=_.x4.prototype;_.I.JSC$9998_id_=0;_.I.disposeInternal=function(){_.x4.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9996_listener_;delete this.handler_};
_.I.start=function(k){this.stop();this.JSC$9998_id_=Fc(this.callback_,k!==void 0?k:this.JSC$9996_interval_)};
_.I.stop=function(){this.isActive()&&_.Vt.clearTimeout(this.JSC$9998_id_);this.JSC$9998_id_=0};
_.I.fire=function(){this.stop();this.JSC$9998_doAction_()};
_.I.isActive=function(){return this.JSC$9998_id_!=0};
_.I.JSC$9998_doAction_=function(){this.JSC$9998_id_=0;this.JSC$9996_listener_&&this.JSC$9996_listener_.call(this.handler_)};_.Bk=function(k){_.r7.call(this);this.handler_=k;this.JSC$9999_keys_={}};
_.dy(_.Bk,_.r7);var PX5=[];_.Bk.prototype.listen=function(k,E,S,R){Array.isArray(E)||(E&&(PX5[0]=E.toString()),E=PX5);for(var V=0;V<E.length;V++){var N=_.wX(k,E[V],S||this.handleEvent,R||!1,this.handler_||this);if(!N)break;this.JSC$9999_keys_[N.key]=N}return this};
_.Bk.prototype.listenOnce=function(k,E,S,R){return Bvj(this,k,E,S,R)};
var Bvj=function(k,E,S,R,V,N){if(Array.isArray(S))for(var h=0;h<S.length;h++)Bvj(k,E,S[h],R,V,N);else{E=eF(E,S,R||k.handleEvent,V,N||k.handler_||k);if(!E)return k;k.JSC$9999_keys_[E.key]=E}return k};
_.Bk.prototype.unlisten=function(k,E,S,R,V){if(Array.isArray(E))for(var N=0;N<E.length;N++)this.unlisten(k,E[N],S,R,V);else if(k=Zo8(k,E,S||this.handleEvent,_.qA(R)?!!R.capture:!!R,V||this.handler_||this))av(k),delete this.JSC$9999_keys_[k.key];return this};
_.Bk.prototype.removeAll=function(){_.fO.forEach(this.JSC$9999_keys_,function(k,E){this.JSC$9999_keys_.hasOwnProperty(E)&&av(k)},this);
this.JSC$9999_keys_={}};
_.Bk.prototype.disposeInternal=function(){_.Bk.superClass_.disposeInternal.call(this);this.removeAll()};
_.Bk.prototype.handleEvent=function(){throw Error("Oa");};var f3=function(){_.r7.call(this);this.services_={}};
_.dy(f3,_.r7);f3.prototype.connect=function(k){k&&k()};
f3.prototype.isConnected=function(){return!0};
f3.prototype.registerService=function(k,E,S){this.services_[k]={callback:E,objectPayload:!!S}};
f3.prototype.getService=function(k,E){var S=this.services_[k];return S?S:this.defaultService_?{callback:_.I_(this.defaultService_,k),objectPayload:_.qA(E)}:null};
var YQd=function(k,E){if(E&&typeof k==="string")try{return JSON.parse(k)}catch(S){return null}else if(!E&&typeof k!=="string")return(0,_.oL)(k);return k};
f3.prototype.disposeInternal=function(){f3.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 b1=function(k,E){this.sequence_=[];this.onCancelFunction_=k;this.defaultScope_=E||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};
b1.prototype.cancel=function(k){if(this.fired_)this.result_ instanceof b1&&this.result_.cancel();else{if(this.parent_){var E=this.parent_;delete this.parent_;k?E.cancel(k):(E.branches_--,E.branches_<=0&&E.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new Z9(this))}};
b1.prototype.continue_=function(k,E){this.blocked_=!1;Wq4(this,k,E)};
var Wq4=function(k,E,S){k.fired_=!0;k.result_=S;k.hadError_=!E;FqA(k)},oZ8=function(k){if(k.fired_){if(!k.silentlyCanceled_)throw new y6z(k);
k.silentlyCanceled_=!1}};
b1.prototype.callback=function(k){oZ8(this);Wq4(this,!0,k)};
b1.prototype.errback=function(k){oZ8(this);Wq4(this,!1,k)};
var XVC=function(k,E,S){dG(k,E,null,S)};
b1.prototype.finally=function(k){var E=this;return gZY(new Promise(function(S,R){dG(E,function(V){k();S(V)},function(V){k();
R(V)})}))};
var dG=function(k,E,S,R){var V=k.fired_;V||(E===S?E=S=Ps(E):(E=Ps(E),S=Ps(S)));k.sequence_.push([E,S,R]);V&&FqA(k)};
b1.prototype.then=function(k,E,S){var R,V,N=new _.yF(function(h,J){V=h;R=J});
dG(this,V,function(h){h instanceof Z9?N.cancel():R(h);return UGC},this);
return N.then(k,E,S)};
OoC(b1);var HxY=function(k,E){E instanceof b1?XVC(k,(0,_.uk)(E.branch,E)):XVC(k,function(){return E})};
b1.prototype.branch=function(k){var E=new b1;dG(this,E.callback,E.errback,E);k&&(E.parent_=this,this.branches_++);return E};
b1.prototype.isError=function(k){return k instanceof Error};
var KqY=function(k){return RW(k.sequence_,function(E){return typeof E[1]==="function"})},UGC={},FqA=function(k){if(k.unhandledErrorId_&&k.fired_&&KqY(k)){var E=k.unhandledErrorId_,S=pVA[E];
S&&(_.Vt.clearTimeout(S.JSC$10016_id_),delete pVA[E]);k.unhandledErrorId_=0}k.parent_&&(k.parent_.branches_--,delete k.parent_);E=k.result_;for(var R=S=!1;k.sequence_.length&&!k.blocked_;){var V=k.sequence_.shift(),N=V[0],h=V[1];V=V[2];if(N=k.hadError_?h:N)try{var J=N.call(V||k.defaultScope_,E);J===UGC&&(J=void 0);J!==void 0&&(k.hadError_=k.hadError_&&(J==E||k.isError(J)),k.result_=E=J);if(GLj(E)||typeof _.Vt.Promise==="function"&&E instanceof _.Vt.Promise)R=!0,k.blocked_=!0}catch(m){E=m,k.hadError_=
!0,KqY(k)||(S=!0)}}k.result_=E;R&&(J=(0,_.uk)(k.continue_,k,!0),R=(0,_.uk)(k.continue_,k,!1),E instanceof b1?(dG(E,J,R),E.blocking_=!0):E.then(J,R));S&&(E=new A6d(E),pVA[E.JSC$10016_id_]=E,k.unhandledErrorId_=E.JSC$10016_id_)},gZY=function(k){var E=new b1;
k.then(function(S){E.callback(S)},function(S){E.errback(S)});
return E},y6z=function(){_.Sh.call(this)};
_.dy(y6z,_.Sh);y6z.prototype.message="Deferred has already fired";y6z.prototype.name="AlreadyCalledError";var Z9=function(){_.Sh.call(this)};
_.dy(Z9,_.Sh);Z9.prototype.message="Deferred was canceled";Z9.prototype.name="CanceledError";var A6d=function(k){this.JSC$10016_id_=_.Vt.setTimeout((0,_.uk)(this.throwError,this),0);this.JSC$10016_error_=k};
A6d.prototype.throwError=function(){delete pVA[this.JSC$10016_id_];throw this.JSC$10016_error_;};
var pVA={};var r65={1:"NativeMessagingTransport"},uTC=["pu","lru","pru","lpu","ppu"],LqC=function(){for(var k=10,E=xGd,S=E.length,R="";k-- >0;)R+=E.charAt(Math.floor(Math.random()*S));return R},xGd="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var sF=function(k){_.r7.call(this);this.JSC$10019_domHelper_=k||rT()};
_.dy(sF,_.r7);sF.prototype.transportType=0;sF.prototype.getWindow=function(){return this.JSC$10019_domHelper_.getWindow()};
sF.prototype.getName=function(){return r65[String(this.transportType)]||""};var l1=function(k,E,S,R,V){sF.call(this,S);this.JSC$10022_channel_=k;this.protocolVersion_=V||2;this.peerHostname_=E||"*";this.JSC$10022_eventHandler_=new _.Bk(this);this.maybeAttemptToConnectTimer_=new _.Pk(100,this.getWindow());this.oneSidedHandshake_=!!R;this.setupAckReceived_=new b1;this.setupAckSent_=new b1;this.JSC$10022_connected_=new b1;this.endpointId_=LqC();this.peerEndpointId_=null;this.oneSidedHandshake_?jHC(this.JSC$10022_channel_)==1?HxY(this.JSC$10022_connected_,this.setupAckReceived_):
HxY(this.JSC$10022_connected_,this.setupAckSent_):(HxY(this.JSC$10022_connected_,this.setupAckReceived_),this.protocolVersion_==2&&HxY(this.JSC$10022_connected_,this.setupAckSent_));XVC(this.JSC$10022_connected_,this.notifyConnected_,this);this.JSC$10022_connected_.callback(!0);this.JSC$10022_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.dy(l1,sF);l1.prototype.peerProtocolVersion_=null;l1.prototype.initialized_=!1;l1.prototype.transportType=1;var DGd={};l1.prototype.sendTimerId_=0;
var vZA=function(k){var E=k.event_.data;if(typeof E!=="string")return!1;var S=E.indexOf("|"),R=E.indexOf(":");if(S==-1||R==-1)return!1;var V=E.substring(0,S);S=E.substring(S+1,R);E=E.substring(R+1);if(R=M4[V])return R.xpcDeliver(S,E,k.event_.origin),!0;R=$GC(E)[0];for(var N in M4){var h=M4[N];if(jHC(h)==1&&!h.isConnected()&&S=="tp"&&(R=="SETUP"||R=="SETUP_NTPV2")&&fJT(h,k.event_.origin))return delete M4[h.name],h.name=V,M4[V]=h,h.xpcDeliver(S,E),!0}return!1},bxd=function(k){k.protocolVersion_!=2||
k.peerProtocolVersion_!=null&&k.peerProtocolVersion_!=2||k.send("tp","SETUP_NTPV2,"+k.endpointId_);
k.peerProtocolVersion_!=null&&k.peerProtocolVersion_!=1||k.send("tp","SETUP")},Zxd=function(k,E){if(k.protocolVersion_!=2||k.peerProtocolVersion_!=null&&k.peerProtocolVersion_!=2||E!=2){if(k.peerProtocolVersion_!=null&&k.peerProtocolVersion_!=1||E!=1)return;
k.send("tp","SETUP_ACK")}else k.send("tp","SETUP_ACK_NTPV2");k.setupAckSent_.fired_||k.setupAckSent_.callback(!0)},dGj=function(k,E){E>k.peerProtocolVersion_&&(k.peerProtocolVersion_=E);
k.peerProtocolVersion_==1&&(k.setupAckSent_.fired_||k.oneSidedHandshake_||k.setupAckSent_.callback(!0),k.peerEndpointId_=null)};
_.I=l1.prototype;_.I.connect=function(){var k=this.getWindow(),E=_.Oj(k),S=DGd[E];typeof S!=="number"&&(S=0);S==0&&_.wX(k.postMessage?k:k.document,"message",vZA,!1,l1);DGd[E]=S+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.I.maybeAttemptToConnect_=function(){var k=jHC(this.JSC$10022_channel_)==0;this.oneSidedHandshake_&&k||this.JSC$10022_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),bxd(this))};
_.I.send=function(k,E){var S=this.JSC$10022_channel_.peerWindowObject_;S&&(this.send=function(R,V){var N=this,h=this.JSC$10022_channel_.name;this.sendTimerId_=Fc(function(){N.sendTimerId_=0;try{var J=S.postMessage?S:S.document;J.postMessage&&J.postMessage(h+"|"+R+":"+V,N.peerHostname_)}catch(m){}},0)},this.send(k,E))};
_.I.notifyConnected_=function(){var k=this.JSC$10022_channel_,E=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;k.isConnected()||k.connectionDelay_&&k.connectionDelay_.isActive()||(k.state_=2,_.nu(k.connectionDelay_),E!==void 0?(k.connectionDelay_=new _.x4(k.connectCb_,E),k.connectionDelay_.start()):(k.connectionDelay_=null,k.connectCb_()))};
_.I.disposeInternal=function(){if(this.initialized_){var k=this.getWindow(),E=_.Oj(k),S=DGd[E];DGd[E]=S-1;S==1&&_.TA(k.postMessage?k:k.document,"message",vZA,!1,l1)}this.sendTimerId_&&(_.Vt.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.nu(this.JSC$10022_eventHandler_);delete this.JSC$10022_eventHandler_;_.nu(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10022_connected_.cancel();delete this.JSC$10022_connected_;delete this.send;l1.superClass_.disposeInternal.call(this)};
var $GC=function(k){k=k.split(",");k[1]=k[1]||null;return k};var lJ2;_.q4=function(k){if(k.getValues&&typeof k.getValues=="function")return k.getValues();if(typeof Map!=="undefined"&&k instanceof Map||typeof Set!=="undefined"&&k instanceof Set)return Array.from(k.values());if(typeof k==="string")return k.split("");if(_.sj(k)){for(var E=[],S=k.length,R=0;R<S;R++)E.push(k[R]);return E}return _.fO.getValues(k)};
_.sH8=function(k){if(k.getKeys&&typeof k.getKeys=="function")return k.getKeys();if(!k.getValues||typeof k.getValues!="function"){if(typeof Map!=="undefined"&&k instanceof Map)return Array.from(k.keys());if(!(typeof Set!=="undefined"&&k instanceof Set)){if(_.sj(k)||typeof k==="string"){var E=[];k=k.length;for(var S=0;S<k;S++)E.push(S);return E}return _.fO.getKeys(k)}}};
lJ2=function(k,E,S){if(k.forEach&&typeof k.forEach=="function")k.forEach(E,S);else if(_.sj(k)||typeof k==="string")Array.prototype.forEach.call(k,E,S);else for(var R=_.sH8(k),V=_.q4(k),N=V.length,h=0;h<N;h++)E.call(S,V[h],R&&R[h],k)};var YhA,EI,RV,CX8,Mvd,zdT,qQd,GpY,QH8;
_.DZ=function(k,E){this.JSC$10027_domain_=this.userInfo_=this.scheme_="";this.JSC$10027_port_=null;this.fragment_=this.JSC$10027_path_="";this.JSC$10027_ignoreCase_=!1;var S;k instanceof _.DZ?(this.JSC$10027_ignoreCase_=E!==void 0?E:k.JSC$10027_ignoreCase_,_.zA(this,k.scheme_),this.userInfo_=k.userInfo_,_.Q4(this,k.JSC$10027_domain_),_.OF(this,k.JSC$10027_port_),_.GA(this,k.getPath()),_.C3(this,k.JSC$10027_queryData_.clone()),_.kH(this,k.fragment_)):k&&(S=_.nC(String(k)))?(this.JSC$10027_ignoreCase_=
!!E,_.zA(this,S[1]||"",!0),this.userInfo_=EI(S[2]||""),_.Q4(this,S[3]||"",!0),_.OF(this,S[4]),_.GA(this,S[5]||"",!0),_.C3(this,S[6]||"",!0),_.kH(this,S[7]||"",!0)):(this.JSC$10027_ignoreCase_=!!E,this.JSC$10027_queryData_=new _.Sy(null,this.JSC$10027_ignoreCase_))};
_.DZ.prototype.toString=function(){var k=[],E=this.scheme_;E&&k.push(RV(E,Mvd,!0),":");var S=this.JSC$10027_domain_;if(S||E=="file")k.push("//"),(E=this.userInfo_)&&k.push(RV(E,Mvd,!0),"@"),k.push(_.Eg(S).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),S=this.JSC$10027_port_,S!=null&&k.push(":",String(S));if(S=this.getPath())this.JSC$10027_domain_&&S.charAt(0)!="/"&&k.push("/"),k.push(RV(S,S.charAt(0)=="/"?qQd:zdT,!0));(S=this.JSC$10027_queryData_.toString())&&k.push("?",S);(S=this.fragment_)&&k.push("#",
RV(S,QH8));return k.join("")};
_.DZ.prototype.resolve=function(k){var E=this.clone(),S=!!k.scheme_;S?_.zA(E,k.scheme_):S=!!k.userInfo_;S?E.userInfo_=k.userInfo_:S=!!k.JSC$10027_domain_;S?_.Q4(E,k.JSC$10027_domain_):S=k.JSC$10027_port_!=null;var R=k.getPath();if(S)_.OF(E,k.JSC$10027_port_);else if(S=!!k.JSC$10027_path_){if(R.charAt(0)!="/")if(this.JSC$10027_domain_&&!this.JSC$10027_path_)R="/"+R;else{var V=E.getPath().lastIndexOf("/");V!=-1&&(R=E.getPath().slice(0,V+1)+R)}V=R;if(V==".."||V==".")R="";else if(_.ce(V,"./")||_.ce(V,
"/.")){R=_.I1(V,"/");V=V.split("/");for(var N=[],h=0;h<V.length;){var J=V[h++];J=="."?R&&h==V.length&&N.push(""):J==".."?((N.length>1||N.length==1&&N[0]!="")&&N.pop(),R&&h==V.length&&N.push("")):(N.push(J),R=!0)}R=N.join("/")}else R=V}S?_.GA(E,R):S=k.JSC$10027_queryData_.toString()!=="";S?_.C3(E,k.JSC$10027_queryData_.clone()):S=!!k.fragment_;S&&_.kH(E,k.fragment_);return E};
_.DZ.prototype.clone=function(){return new _.DZ(this)};
_.zA=function(k,E,S){k.scheme_=S?EI(E,!0):E;k.scheme_&&(k.scheme_=k.scheme_.replace(/:$/,""));return k};
_.Q4=function(k,E,S){k.JSC$10027_domain_=S?EI(E,!0):E;return k};
_.OF=function(k,E){if(E){E=Number(E);if(isNaN(E)||E<0)throw Error("Pa`"+E);k.JSC$10027_port_=E}else k.JSC$10027_port_=null;return k};
_.DZ.prototype.getPath=function(){return this.JSC$10027_path_};
_.GA=function(k,E,S){k.JSC$10027_path_=S?EI(E,!0):E;return k};
_.C3=function(k,E,S){E instanceof _.Sy?(k.JSC$10027_queryData_=E,OxY(k.JSC$10027_queryData_,k.JSC$10027_ignoreCase_)):(S||(E=RV(E,GpY)),k.JSC$10027_queryData_=new _.Sy(E,k.JSC$10027_ignoreCase_));return k};
_.kO=function(k,E,S){k.JSC$10027_queryData_.set(E,S);return k};
_.Cu=function(k,E){return k.JSC$10027_queryData_.get(E)};
_.kH=function(k,E,S){k.fragment_=S?EI(E):E;return k};
_.VE=function(k){_.kO(k,"zx",Oa());return k};
_.Gx=function(k,E){return k instanceof _.DZ?k.clone():new _.DZ(k,E)};
YhA=function(k,E){k instanceof _.DZ||(k=_.Gx(k));E instanceof _.DZ||(E=_.Gx(E));return k.resolve(E)};
EI=function(k,E){return k?E?decodeURI(k.replace(/%25/g,"%2525")):decodeURIComponent(k):""};
RV=function(k,E,S){return typeof k==="string"?(k=encodeURI(k).replace(E,CX8),S&&(k=k.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),k):null};
CX8=function(k){k=k.charCodeAt(0);return"%"+(k>>4&15).toString(16)+(k&15).toString(16)};
Mvd=/[#\/\?@]/g;zdT=/[#\?:]/g;qQd=/[#\?]/g;GpY=/[#\?@]/g;QH8=/#/g;_.Sy=function(k,E){this.count_=this.keyMap_=null;this.encodedQuery_=k||null;this.JSC$10028_ignoreCase_=!!E};
_.Nw=function(k){k.keyMap_||(k.keyMap_=new Map,k.count_=0,k.encodedQuery_&&vyA(k.encodedQuery_,function(E,S){k.add(c_(E),S)}))};
_.I=_.Sy.prototype;_.I.getCount=function(){_.Nw(this);return this.count_};
_.I.add=function(k,E){_.Nw(this);this.encodedQuery_=null;k=IV(this,k);var S=this.keyMap_.get(k);S||this.keyMap_.set(k,S=[]);S.push(E);this.count_+=1;return this};
_.I.remove=function(k){_.Nw(this);k=IV(this,k);return this.keyMap_.has(k)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(k).length,this.keyMap_.delete(k)):!1};
_.I.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.I.isEmpty=function(){_.Nw(this);return this.count_==0};
_.I.containsKey=function(k){_.Nw(this);k=IV(this,k);return this.keyMap_.has(k)};
_.I.containsValue=function(k){var E=this.getValues();return _.bC(E,k)};
_.I.forEach=function(k,E){_.Nw(this);this.keyMap_.forEach(function(S,R){S.forEach(function(V){k.call(E,V,R,this)},this)},this)};
_.I.getKeys=function(){_.Nw(this);for(var k=Array.from(this.keyMap_.values()),E=Array.from(this.keyMap_.keys()),S=[],R=0;R<E.length;R++)for(var V=k[R],N=0;N<V.length;N++)S.push(E[R]);return S};
_.I.getValues=function(k){_.Nw(this);var E=[];if(typeof k==="string")this.containsKey(k)&&(E=E.concat(this.keyMap_.get(IV(this,k))));else{k=Array.from(this.keyMap_.values());for(var S=0;S<k.length;S++)E=E.concat(k[S])}return E};
_.I.set=function(k,E){_.Nw(this);this.encodedQuery_=null;k=IV(this,k);this.containsKey(k)&&(this.count_-=this.keyMap_.get(k).length);this.keyMap_.set(k,[E]);this.count_+=1;return this};
_.I.get=function(k,E){if(!k)return E;k=this.getValues(k);return k.length>0?String(k[0]):E};
_.kUC=function(k,E,S){k.remove(E);S.length>0&&(k.encodedQuery_=null,k.keyMap_.set(IV(k,E),_.d1(S)),k.count_+=S.length)};
_.Sy.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var k=[],E=Array.from(this.keyMap_.keys()),S=0;S<E.length;S++){var R=E[S],V=_.Eg(R);R=this.getValues(R);for(var N=0;N<R.length;N++){var h=V;R[N]!==""&&(h+="="+_.Eg(R[N]));k.push(h)}}return this.encodedQuery_=k.join("&")};
_.Sy.prototype.clone=function(){var k=new _.Sy;k.encodedQuery_=this.encodedQuery_;this.keyMap_&&(k.keyMap_=new Map(this.keyMap_),k.count_=this.count_);return k};
var IV=function(k,E){E=String(E);k.JSC$10028_ignoreCase_&&(E=E.toLowerCase());return E},OxY=function(k,E){E&&!k.JSC$10028_ignoreCase_&&(_.Nw(k),k.encodedQuery_=null,k.keyMap_.forEach(function(S,R){var V=R.toLowerCase();
R!=V&&(this.remove(R),_.kUC(this,V,S))},k));
k.JSC$10028_ignoreCase_=E};
_.Sy.prototype.extend=function(k){for(var E=0;E<arguments.length;E++)lJ2(arguments[E],function(S,R){this.add(R,S)},this)};var nt=function(k,E){f3.call(this);for(var S=0,R;R=uTC[S];S++)if(R in k&&!/^https?:\/\//.test(k[R]))throw Error("Ra`"+k[R]+"`"+R);this.cfg_=k;this.name=this.cfg_.cn||LqC();this.JSC$10023_domHelper_=E||rT();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Bk(this);k.lpu=k.lpu||$jz(this.JSC$10023_domHelper_.getWindow().location.href)+"/robots.txt";k.ppu=k.ppu||$jz(k.pu||"")+"/robots.txt";M4[this.name]=this;Zo8(window,"unload",Ef5)||eF(window,"unload",Ef5)};
_.dy(nt,f3);var Scj=RegExp("^%*tp$"),Rxd=RegExp("^%+tp$");_.I=nt.prototype;_.I.connectionDelay_=null;_.I.peerWindowDeferred_=null;_.I.transport_=null;_.I.state_=1;_.I.isConnected=function(){return this.state_==2};
_.I.peerWindowObject_=null;_.I.iframeElement_=null;_.I.getConfig=function(){return this.cfg_};
_.I.connect=function(k){this.connectCb_=k||_.eu;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?XVC(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.I.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10023_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var k=this.iframeElement_.contentWindow;k||(k=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=k}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$10023_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new l1(this,this.cfg_.ph,this.JSC$10023_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()()};
_.I.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.nu(this.transport_);this.connectCb_=this.transport_=null;_.nu(this.connectionDelay_);this.connectionDelay_=null};
_.I.send=function(k,E){if(this.isConnected()){try{var S=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(V){S=!1}if(S){_.qA(E)&&(E=(0,_.oL)(E));S=this.transport_;var R=S.send;Scj.test(k)&&(k="%"+k);k=k.replace(/[%:|]/g,encodeURIComponent);R.call(S,k,E)}else this.close()}};
_.I.xpcDeliver=function(k,E,S){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.uk)(this.xpcDeliver,this,k,E,S));else if(fJT(this,S)&&!this.isDisposed()&&this.state_!=3)if(k&&k!="tp")this.isConnected()&&(k=k.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),k=Rxd.test(k)?k.substring(1):k,k=this.getService(k,E))&&(E=YQd(E,k.objectPayload),E!=null&&k.callback(E));else switch(k=this.transport_,S=$GC(E),E=S[1],S[0]){case "SETUP_ACK":dGj(k,1);k.setupAckReceived_.fired_||k.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":k.protocolVersion_==2&&(dGj(k,2),k.setupAckReceived_.fired_||k.setupAckReceived_.callback(!0));break;case "SETUP":dGj(k,1);Zxd(k,1);break;case "SETUP_NTPV2":k.protocolVersion_==2&&(S=k.peerProtocolVersion_,dGj(k,2),Zxd(k,2),S!=1&&k.peerEndpointId_==null||k.peerEndpointId_==E||bxd(k),k.peerEndpointId_=E)}};
var jHC=function(k){var E=k.cfg_.role;return typeof E==="number"?E:window.parent==k.peerWindowObject_?1:0},fJT=function(k,E){var S=k.cfg_.ph;
return _.Jh(E==null?"":String(E))||_.Jh(S==null?"":String(S))||E==k.cfg_.ph};
nt.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete M4[this.name];_.nu(this.peerLoadHandler_);delete this.peerLoadHandler_;nt.superClass_.disposeInternal.call(this)};
var Ef5=function(){for(var k in M4)_.nu(M4[k])},M4={};var Ng5=function(k,E){this.win=k;this.allowAdsHttpEndpoint=E;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10037_domHelper=rT(k);this.scrollManager=new wVz(k);this.accessibilityManager=new mGz(k);VlT(this)},VlT=function(k){var E=function(){k.allowAdsPopup&&k.allowAdsPopup.style.setProperty("display","none","important");
k.wallElement.style.setProperty("display","","important");edd(k.accessibilityManager);Tv4(k.accessibilityManager,k.wallElement.querySelector(".fc-dialog-container"),!1,!1,k.wallElement.querySelector(".fc-button-whitelist"));k.scrollManager.enableScrolling()};
k.allowAdsPopup=k.JSC$10037_domHelper.JSC$9323_createDom("DIV",{"class":"fc-whitelist-root"});k.allowAdsPopup.style.setProperty("display","none","important");k.JSC$10037_domHelper.appendChild(k.JSC$10037_domHelper.JSC$9321_document_.body,k.allowAdsPopup);var S=k.JSC$10037_domHelper.JSC$9323_createDom("DIV",{"class":"fc-dialog-overlay"});k.JSC$10037_domHelper.appendChild(k.allowAdsPopup,S);var R=k.JSC$10037_domHelper.JSC$9323_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:E});k.JSC$10037_domHelper.appendChild(k.allowAdsPopup,
R);S=k.JSC$10037_domHelper.JSC$9323_createDom("IFRAME");S.className="fc-whitelist-dialog";S.frameBorder="0";S.id="fc-whitelist-iframe";S.tabIndex="0";_.GB(S,k.allowAdsHttpEndpoint);k.JSC$10037_domHelper.appendChild(R,S);R={};R.pu=_.AJ(k.allowAdsHttpEndpoint).toString();R.tp=1;R.cn="fc-whitelist-channel";R.ifrid=S.id;R.osh=!0;k.allowAdsCrossPageChannel=new nt(R);k.allowAdsCrossPageChannel.registerService("close",E);k.allowAdsCrossPageChannel.registerService("refresh",function(){k.win.location.reload()});
k.allowAdsCrossPageChannel.registerService("resize",function(V){if(V){var N=k.allowAdsPopup.querySelector(".fc-whitelist-dialog");V.width&&N.style.setProperty("width",V.width,"important");V.height&&N.style.setProperty("height",V.height,"important")}},!0);
k.allowAdsCrossPageChannel.connect()};
Ng5.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10037_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var id=window,hz=document,Id2=id.location,nf4=function(){},i28=/\[native code\]/,Jz=function(k,E,S){return k[E]=k[E]||S},hx5=function(k){k=k.sort();
for(var E=[],S=void 0,R=0;R<k.length;R++){var V=k[R];V!=S&&E.push(V);S=V}return E},cY=function(){var k;
if((k=Object.create)&&i28.test(k))k=k(null);else{k={};for(var E in k)k[E]=void 0}return k},m0=Jz(id,"gapi",{});var ey={};ey=Jz(id,"___jsl",cY());Jz(ey,"I",0);Jz(ey,"hel",10);var JDT=function(){var k=Id2.href;if(ey.dpo)var E=ey.h;else{E=ey.h;var S=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),R=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(k=k&&(S.exec(k)||R.exec(k)))try{E=decodeURIComponent(k[2])}catch(V){}}return E},cD5=function(k){var E=Jz(ey,"PQ",[]);
ey.PQ=[];var S=E.length;if(S===0)k();else for(var R=0,V=function(){++R===S&&k()},N=0;N<S;N++)E[N](V)},md5=function(k){return Jz(Jz(ey,"H",cY()),k,cY())};var aV=function(k){this.JSC$10039_obj_=k};
aV.prototype.value=function(){return this.JSC$10039_obj_};
aV.prototype.getWidth=function(){return this.JSC$10039_obj_.width};
aV.prototype.getHeight=function(){return this.JSC$10039_obj_.height};
aV.prototype.getStyle=function(){return this.JSC$10039_obj_.style};var ex4=function(k){this.JSC$10042_obj_=k||{}};
_.I=ex4.prototype;_.I.value=function(){return this.JSC$10042_obj_};
_.I.setUrl=function(k){this.JSC$10042_obj_.url=k;return this};
_.I.getUrl=function(){return this.JSC$10042_obj_.url};
_.I.getStyle=function(){return this.JSC$10042_obj_.style};
_.I.getId=function(){return this.JSC$10042_obj_.id};
_.I.getContext=function(){return this.JSC$10042_obj_.context};
var adC=function(k){k.JSC$10042_obj_.attributes=k.JSC$10042_obj_.attributes||{};return new aV(k.JSC$10042_obj_.attributes)};var tlC=function(){ex4.apply(this,arguments)};
_.y(tlC,ex4);var TgC=Jz(ey,"perf",cY());Jz(TgC,"g",cY());var wv8=Jz(TgC,"i",cY());Jz(TgC,"r",[]);cY();cY();var BgY=function(k,E,S){E&&E.length>0&&(E=PMd(E),S&&S.length>0&&(E+="___"+PMd(S)),E.length>28&&(E=E.substr(0,28)+(E.length-28)),S=E,E=Jz(wv8,"_p",cY()),Jz(E,S,cY())[k]=(new Date).getTime(),E=TgC.r,typeof E==="function"?E(k,"_p",S):E.push([k,"_p",S]))},PMd=function(k){return k.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var YcC=cY(),WEp=[],tz=function(k){throw Error("Ua`"+k);};
WEp.push(["jsl",function(k){for(var E in k)if(Object.prototype.hasOwnProperty.call(k,E)){var S=k[E];typeof S=="object"?ey[E]=Jz(ey,E,[]).concat(S):Jz(ey,E,S)}if(E=k.u)k=Jz(ey,"us",[]),k.push(E),(E=/^https:(.*)$/.exec(E))&&k.push("http:"+E[1])}]);
var FEz=/^(\/[a-zA-Z0-9_\-]+)+$/,yDj=[/\/amp\//,/\/amp$/,/^\/amp$/],ofd=/^[a-zA-Z0-9\-_\.,!]+$/,XvA=/^gapi\.loaded_[0-9]+$/,gfz=/^[a-zA-Z0-9,._-]+$/,pvp=function(k,E,S,R,V){var N=k.split(";"),h=N.shift(),J=YcC[h],m=null;J?m=J(N,E,S,R):tz("no hint processor for: "+h);m||tz("failed to generate load url");E=m;S=E.match(UdC);(R=E.match(H2Y))&&R.length===1&&KE8.test(E)&&S&&S.length===1||tz("failed sanity: "+k);try{k="?";if(V&&V.length>0){xAh(V);var a=V.join(",");m=m+"?le="+a;k="&"}if(ey.rol){var T=ey.ol;
T&&T.length&&(m=""+m+k+"ol="+T.length)}}catch(w){}return m},up2=function(k,E,S,R){k=ADC(k);
XvA.test(S)||tz("invalid_callback");E=rDz(E);R=R&&R.length?rDz(R):null;var V=function(N){return encodeURIComponent(N).replace(/%2C/g,",")};
return[encodeURIComponent(k.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",V(k.version),"/m=",V(E),R?"/exm="+V(R):"","/rt=j/sv=1/d=1/ed=1",k.activeMods?"/am="+V(k.activeMods):"",k.resourceSig?"/rs="+V(k.resourceSig):"",k.zcms?"/t="+V(k.zcms):"","/cb=",V(S)].join("")},ADC=function(k){k.charAt(0)!=="/"&&tz("relative path");
for(var E=k.substring(1).split("/"),S=[];E.length;){k=E.shift();if(!k.length||k.indexOf(".")==0)tz("empty/relative directory");else if(k.indexOf("=")>0){E.unshift(k);break}S.push(k)}k={};for(var R=0,V=E.length;R<V;++R){var N=E[R].split("="),h=decodeURIComponent(N[0]),J=decodeURIComponent(N[1]);N.length==2&&h&&J&&(k[h]=k[h]||J)}E="/"+S.join("/");FEz.test(E)||tz("invalid_prefix");S=0;for(R=yDj.length;S<R;++S)yDj[S].test(E)&&tz("invalid_prefix");S=xd8(k,"k",!0);R=xd8(k,"am");V=xd8(k,"rs");k=xd8(k,"t");
return{pathPrefix:E,version:S,activeMods:R,resourceSig:V,zcms:k}},rDz=function(k){for(var E=[],S=0,R=k.length;S<R;++S){var V=k[S].replace(/\./g,"_").replace(/-/g,"_");
gfz.test(V)&&E.push(V)}return E.join(",")},xd8=function(k,E,S){k=k[E];
!k&&S&&tz("missing: "+E);if(k){if(ofd.test(k))return k;tz("invalid: "+E)}return null},KE8=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,H2Y=/\/cb=/g,UdC=/\/\//g;
YcC.m=function(k,E,S,R){(k=k[0])||tz("missing_hint");return"https://apis.google.com"+up2(k,E,S,R)};
var LEY=decodeURI("%73cript"),jWd=/^[-+_0-9\/A-Za-z]+={0,2}$/,Ddd=function(k,E){for(var S=[],R=0;R<k.length;++R){var V=k[R],N;if(N=V){a:{for(N=0;N<E.length;N++)if(E[N]===V)break a;N=-1}N=N<0}N&&S.push(V)}return S},$d2=function(){var k=ey.nonce;
return k!==void 0?k&&k===String(k)&&k.match(jWd)?k:ey.nonce=null:hz.querySelector?(k=hz.querySelector("script[nonce]"))?(k=k.nonce||k.getAttribute("nonce")||"",k&&k===String(k)&&k.match(jWd)?ey.nonce=k:ey.nonce=null):null:null},b2C=function(k){if(hz.readyState!="loading")fdY(k);
else{var E=$d2(),S="";E!==null&&(S=' nonce="'+E+'"');k="<"+LEY+' src="'+encodeURI(k)+'"'+S+"></"+LEY+">";hz.write(vfj?vfj.createHTML(k):k)}},fdY=function(k){var E=hz.createElement(LEY);
E.setAttribute("src",vfj?vfj.createScriptURL(k):k);k=$d2();k!==null&&E.setAttribute("nonce",k);E.async="true";(k=hz.getElementsByTagName(LEY)[0])?k.parentNode.insertBefore(E,k):(hz.head||hz.body||hz.documentElement).appendChild(E)},ddd=function(k,E,S){Z25(function(){var R=E===JDT()?Jz(m0,"_",cY()):cY();
R=Jz(md5(E),"_",R);k(R)},S)},RKj=function(k,E){var S=E||{};
typeof E=="function"&&(S={},S.callback=E);var R=(E=S)&&E._c;if(R)for(var V=0;V<WEp.length;V++){var N=WEp[V][0],h=WEp[V][1];h&&Object.prototype.hasOwnProperty.call(R,N)&&h(R[N],k,E)}E=[];k?E=k.split(":"):S.features&&(E=S.features);if(!(k=S.h)&&(k=JDT(),!k))throw Error("Va");sWY(E||[],S,k)},sWY=function(k,E,S){k=hx5(k)||[];
var R=E.callback,V=E.config,N=E.timeout,h=E.ontimeout,J=E.onerror,m=void 0;typeof J=="function"&&(m=J);var a=null,T=!1;if(N&&!h||!N&&h)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";J=Jz(md5(S),"r",[]).sort();var w=Jz(md5(S),"L",[]).sort(),P=ey.le||[],B=[].concat(J),F=function(q,M){if(T)return 0;id.clearTimeout(a);w.push.apply(w,K);var d=((m0||{}).config||{}).update;d?d(V):V&&Jz(ey,"cu",[]).push(V);if(M){BgY("me0",q,B);try{ddd(M,S,m)}finally{BgY("me1",q,B)}}return 1};
N>0&&(a=id.setTimeout(function(){T=!0;h()},N));
var K=Ddd(k,w);if(K.length){K=Ddd(k,J);var r=Jz(ey,"CP",[]),x=r.length;r[x]=function(q){if(!q)return 0;BgY("ml1",K,B);var M=function(z){r[x]=null;F(K,q)&&cD5(function(){R&&R();z()})},d=function(){var z=r[x+1];
z&&z()};
x>0&&r[x-1]?r[x]=function(){M(d)}:M(d)};
if(K.length){var L="loaded_"+ey.I++;m0[L]=function(q){r[x](q);m0[L]=null};
k=pvp(S,K,"gapi."+L,J,P);J.push.apply(J,K);BgY("ml0",K,B);E.sync||id.___gapisync?b2C(k):fdY(k)}else r[x](nf4)}else F(K)&&R&&R()},ldY;
var Ml8=null,qcT=_.Vt.trustedTypes;if(qcT&&qcT.createPolicy){try{Ml8=qcT.createPolicy("goog#gapi",{createHTML:qLj,createScript:qLj,createScriptURL:qLj})}catch(k){_.Vt.console&&_.Vt.console.error(k.message)}ldY=Ml8}else ldY=Ml8;var vfj=ldY,Z25=function(k,E){if(ey.hee&&ey.hel>0)try{return k()}catch(S){E&&E(S),ey.hel--,RKj("debug_error",function(){try{window.___jsl.hefn(S)}catch(R){throw S;}})}else try{return k()}catch(S){throw E&&E(S),S;
}},zxd=m0.load;
zxd&&Jz(ey,"ol",[]).push(zxd);m0.load=function(k,E){return Z25(function(){return RKj(k,E)})};var qgj;var O2j=function(k,E){var S=S||[];this.serviceId_=k;this.moduleId_=E||null;this.dependencies_=[];QWA(this,S)};
O2j.prototype.toString=function(){return this.serviceId_};
O2j.prototype.getModuleId=function(){return this.moduleId_};
var QWA=function(k,E){var S=!1;S=S===void 0?!1:S;k.dependencies_=k.dependencies_.concat(E);if(S){if(!k.moduleId_)throw Error("Wa`"+k.serviceId_);E.map(function(R){return R.getModuleId()}).forEach(function(R){zIA(function(V){V.addExtraEdge(k.moduleId_,R)})})}};var Ltj=new O2j("MpJwZc","MpJwZc");var Uet=new _.cs("a"),D6C=new _.cs("c"),jdC=function(k,E,S){_.mL.call(this,k,E);this.node=E;this.kind=S};
_.y(jdC,_.mL);var GUC=function(){this.JSC$10055_keys_={};this.urlPrefix_="";this.JSC$10055_queryData_={}};
GUC.prototype.toString=function(){var k=this.urlPrefix_+CM4(this),E=_.Ug(this.JSC$10055_queryData_),S="";E!=""&&(S="?"+E);return k+S};
var k25=function(k){k=T_(k,"md");return!!k&&k!=="0"},CM4=function(k){var E=[],S=function(R){k.JSC$10055_keys_[R]!==void 0&&E.push(R+"="+k.JSC$10055_keys_[R])};
k25(k)?(S("md"),S("k"),S("ck"),S("am"),S("rs"),S("gssmodulesetproto"),S("slk"),S("dti")):(S("sdch"),S("k"),S("ck"),S("am"),S("rt"),"d"in k.JSC$10055_keys_||w$(k,"d","0"),S("d"),S("exm"),S("excm"),(k.JSC$10055_keys_.excm||k.JSC$10055_keys_.exm)&&E.push("ed=1"),S("im"),S("dg"),S("sm"),T_(k,"br")!="1"&&T_(k,"br")!="0"||S("br"),S("br-d"),T_(k,"rb")=="1"&&S("rb"),T_(k,"zs")!=="0"&&S("zs"),E6C(k)!==""&&S("wt"),S("gssmodulesetproto"),S("ujg"),S("sp"),S("rs"),S("cb"),S("ee"),S("slk"),S("dti"),S("m"));return E.join("/")},
T_=function(k,E){return k.JSC$10055_keys_[E]?k.JSC$10055_keys_[E]:null},w$=function(k,E,S){S?k.JSC$10055_keys_[E]=S:delete k.JSC$10055_keys_[E]},S2Y=function(k,E){k.urlPrefix_=E},RRY=function(k,E){E&&E.length>0?(E.sort(),w$(k,"exm",E.join(","))):w$(k,"exm",null)},V9C=function(k,E){E&&E.length>0?(E.sort(),w$(k,"excm",E.join(","))):w$(k,"excm",null)},Nmj=function(k){return(k=T_(k,"m"))?k.split(","):[]},E6C=function(k){switch(T_(k,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},Ild=function(k,E){var S=Object.keys(E).filter(function(R){return!!Object.keys(E[R]).length}).map(function(R){var V=Object.keys(E[R]);
V.length>1&&V.sort();return R+":"+V.join(",")});
S.sort();w$(k,"ee",S.join(";"))},vZi=function(k){var E=T_(k,"ee");
if(!E)return{};k={};E=_.n(E.split(";"));for(var S=E.next();!S.done;S=E.next()){var R=_.n(S.value.split(":"));S=R.next().value;R=R.next().value;k[S]={};R=_.n(R.split(","));for(var V=R.next();!V.done;V=R.next())k[S][V.value]=!0}return k},n68=function(k){delete k.JSC$10055_keys_.m;
delete k.JSC$10055_keys_.exm;delete k.JSC$10055_keys_.ed};
GUC.prototype.clone=function(){var k=new GUC;k.JSC$10055_keys_=Object.assign({},this.JSC$10055_keys_);k.urlPrefix_=this.urlPrefix_;k.JSC$10055_queryData_=Object.assign({},this.JSC$10055_queryData_);return k};
var bxI=function(k,E){E=E===void 0?!0:E;var S=iZ4(k),R=new GUC,V=_.nC(S)[5];_.fO.forEach(hRd,function(h){var J=V.match("/"+h+"=([^/]+)");J&&w$(R,h,J[1])});
var N="";N=k.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";S2Y(R,k.substr(0,k.indexOf(N)+N.length));if(!E)return R;(k=_.nC(S)[6]||null)&&vyA(k,function(h,J){R.JSC$10055_queryData_[h]=J});
return R},DGI=function(k){k=_.Xu(iZ4(k));
return k===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(k)?/\/k=/.test(k):!1},iZ4=function(k){return k.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?k.substr(65):k},hRd={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"},Jwp=RegExp("^loaded_(g|h)?[_\\d]+$");_.PY=function(k){this.JSC$10067_id_=k;this.opts={}};
_.PY.prototype.JSC$10069_setLabel=function(k){this.label_=k||void 0;return this};
_.PY.prototype.addUploadMetadata=function(k,E){var S=this.opts.data||{};S[k]=E;this.opts.data=S;return this};
var cwz=function(k){var E=_.fO.filter(k.opts,function(S){return S!==null});
E=_.fO.isEmpty(E)?null:E;k=[k.JSC$10067_id_,k.label_,E];E=KIR(k);return k=k.slice(0,E+1)};
_.PY.prototype.toString=function(){var k=cwz(this);return"("+_.vH(k,function(E){return JSON.stringify(E)}).join(",")+")"};
_.PY.prototype.getId=function(){return this.JSC$10067_id_};
_.PY.prototype.getOptions=function(){return _.fO.clone(this.opts)};var BY=function(){_.PY.call(this,"image-search")};
_.y(BY,_.PY);BY.prototype.setSize=function(k){this.opts.imgsz=k;return this};
BY.prototype.JSC$10069_setLabel=function(k){_.PY.prototype.JSC$10069_setLabel.call(this,k);return this};
BY.prototype.addUploadMetadata=function(k,E){_.PY.prototype.addUploadMetadata.call(this,k,E);return this};var YH=function(){_.PY.call(this,"maps")};
_.y(YH,_.PY);YH.prototype.setZoom=function(k){this.opts.zoom=k;return this};
YH.prototype.JSC$10069_setLabel=function(k){_.PY.prototype.JSC$10069_setLabel.call(this,k);return this};
YH.prototype.addUploadMetadata=function(k,E){_.PY.prototype.addUploadMetadata.call(this,k,E);return this};_.WY=function(){_.PY.call(this,"photos")};
_.y(_.WY,_.PY);_.WY.prototype.JSC$10069_setLabel=function(k){_.PY.prototype.JSC$10069_setLabel.call(this,k);return this};
_.WY.prototype.addUploadMetadata=function(k,E){_.PY.prototype.addUploadMetadata.call(this,k,E);return this};var Fa=function(){_.PY.call(this,"url")};
_.y(Fa,_.PY);var mmT=function(){var k=new Fa;k.opts.type="video";k.opts.site="youtube.com";return k};
Fa.prototype.JSC$10069_setLabel=function(k){_.PY.prototype.JSC$10069_setLabel.call(this,k);return this};
Fa.prototype.addUploadMetadata=function(k,E){_.PY.prototype.addUploadMetadata.call(this,k,E);return this};var yE=function(){_.PY.call(this,"video-search")};
_.y(yE,_.PY);var eRz=function(){var k=new yE;k.opts.site="youtube.com";return k};
yE.prototype.JSC$10069_setLabel=function(k){_.PY.prototype.JSC$10069_setLabel.call(this,k);return this};
yE.prototype.addUploadMetadata=function(k,E){_.PY.prototype.addUploadMetadata.call(this,k,E);return this};var al4=function(){_.PY.call(this,"web")};
_.y(al4,_.PY);al4.prototype.JSC$10069_setLabel=function(k){_.PY.prototype.JSC$10069_setLabel.call(this,k);return this};
al4.prototype.addUploadMetadata=function(k,E){_.PY.prototype.addUploadMetadata.call(this,k,E);return this};var oV=function(){this.items_=[];this.opts={}},t98=function(k){switch(k){case "image-search":return new BY;
case "maps":return new YH;case "photos":return new _.WY;case "url":return new Fa;case "video-search":return new yE;case "web":return new al4}return new _.PY(k)};
oV.prototype.addView=function(k){this.items_.push(typeof k==="string"?t98(k):k);return this};
var TmY=function(k){return"("+_.vH(k.items_,function(E){return E.toString()}).join(",")+")"};
oV.prototype.toString=function(){return TmY(this)};
oV.prototype.getViews=function(k,E){E=E===void 0?[]:E;for(var S=this.items_,R=0;R<S.length;R++){var V=S[R];V instanceof oV?V.getViews(k,E):V.getId()==k&&E.push(V)}return E};
oV.prototype.getOptions=function(){return _.fO.clone(this.opts)};var sa=function(k){this.basePickerUrl_=k||"https://docs.google.com/picker";this.nav_=new oV};
sa.prototype.nav_=null;sa.prototype.addView=function(k){this.nav_.addView(k);return this};
sa.prototype.getBaseUrl=function(){return this.basePickerUrl_};
sa.prototype.getViews=function(k){return this.nav_.getViews(k)};
_.wn2=function(k,E){k.callback_=E;return k};var P2j=new Map;P2j.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");P2j.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");P2j.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Bmd=new Set;Bmd.add("application/vnd.google-apps.kix");Bmd.add("application/vnd.google-apps.ritz");Bmd.add("application/vnd.google-apps.punch");var AwT=function(k,E,S){var R=S&&_.t2(S,1);S=Y2d(S);var V=k[0].getId();switch(_.Tn(V,2)){case 13:return WFd(k,E,R,S);case 3:return FFp(k,E,R,S);case 10:return ywd(k,E,R,S);case 27:return ywd(k,E,R,S);case 12:return o65(k,E);case 2:return XnC(k,E,R,S);case 5:return g6T(k,E,R,S);case 9:return Um4(k,E,R,S);case 6:return HZ8(k,E,R,S);case 25:return KFY(k,E,R,S);case 1:return _.Vk(k[0],R25,26)?pn4(k,E,R,S):ywd(k,E,R,S);default:return{}}},HZ8=function(k,E,S,R){k=k.map(function(V){return{id:V.getId().getId(),
serviceId:"youtube",name:V.getName(),description:_.t2(V,3),type:Xa(V),lastEditedUtc:_.SaA(_.Tp(V,_.PZ,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:V.getUrl(),embedUrl:_.t2(V,13),thumbnails:g$(lE(V))}});
return{action:E,docs:k,viewToken:R,view:S||"youtube",v2Translated:!0}},XnC=function(k,E,S,R){var V=k.map(function(N){var h=N.getId().getId(),J=_.t2(N,7),m=N.getName(),a=Xa(N),T=_.SaA(_.Tp(N,_.PZ,12)).getTime(),w=N.getUrl(),P=Number(mpd(N)),B=_.t2(N,3),F=_.t2(N,11),K=g$(lE(N));
var r=_.Tp(N,MM,21);r=_.mV(r,1);var x=_.Tp(N,MM,21);x=_.t2(x,10);var L=_.t2(N,13);var q=_.Tp(N,MM,21);q=_.mV(q,9);var M=_.Tp(N,MM,21);M=_.t2(M,11);h={id:h,serviceId:"docs",mimeType:J,name:m,type:a,lastEditedUtc:T,url:w,sizeBytes:P,description:B,iconUrl:F,thumbnails:K,isShared:r,downloadUrl:x,embedUrl:L,copyable:q,resourceKey:M};J=_.Tp(N,MM,21);_.mV(J,12)&&(h.uploadState="success",h.isNew=!0);J=_.Tp(N,MM,21);_.Vk(J,ZX,3)&&(N=_.Tp(N,MM,21),N=_.Tp(N,ZX,3),_.Vk(N,vN,2)&&(J=Z7(N.getDuration().getSeconds()),
m=N.getDuration(),m=_.eo(m,2),h.duration=J+m/1E9),h.aspectRatio=N.getAspectRatio());return h});
return{action:E,docs:V,viewToken:R,view:S||"all",extraUserInputs:rwC(k),v2Translated:!0}},g6T=function(k,E,S,R){k=k.map(function(V){var N=_.Tp(V,mTC,15);
N=_.Tp(N,bE,1);Uc(V,10,bE,N);return{id:V.getId().getId(),serviceId:"web",mimeType:_.t2(V,7),name:V.getName(),type:Xa(V),url:V.getUrl(),description:_.t2(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:g$(lE(V))}});
return{action:E,docs:k,viewToken:R,view:S||"image-search",v2Translated:!0}},Um4=function(k,E,S,R){k=k.map(function(V){return{serviceId:"url",
name:lE(V)[0].getUrl().split("/").pop(),type:Xa(V),mimeType:_.t2(V,7),url:V.getUrl(),description:_.t2(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:g$(lE(V))}});
return{action:E,docs:k,viewToken:R,view:S||"url",v2Translated:!0}},pn4=function(k,E,S,R){k=k.map(function(V){return{id:V.getId().getId(),
serviceId:"picasa",name:V.getName(),type:Xa(V),description:_.t2(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:g$(lE(V))}});
return{action:E,docs:k,viewToken:R,view:S||"webcam",v2Translated:!0}},ywd=function(k,E,S,R){return{action:E,
docs:k.map(ut2),viewToken:R,view:xm2(S||"upload",k),extraUserInputs:rwC(k),v2Translated:!0}},xm2=function(k,E){return E.some(function(S){var R;
return((R=_.Tp(S,d9,30))==null?void 0:_.Tn(R,3))===9})?k+"/gmailphotos":k},FFp=function(k,E,S,R){var V=k.map(function(N){var h={id:N.getId().getId(),
serviceId:"picasa",mimeType:_.t2(N,7),name:N.getName(),type:Xa(N),lastEditedUtc:_.SaA(_.Tp(N,_.PZ,12)).getTime(),url:N.getUrl(),sizeBytes:Number(mpd(N)),description:_.t2(N,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:g$(lE(N)),mediaKey:N.getId().getId(),parentId:_.t2(N,4)},J,m=(J=_.Tp(N,I72,18))==null?void 0:_.Tp(J,N7d,3);m&&(h.latitude=a4(m,1),h.longitude=a4(m,2));var a;N=(a=_.Tp(N,I72,18))==null?void 0:ez(a,6);a=N!=null?Z7(N):void 0;a&&(h.version=
a);return h});
return{action:E,docs:V,viewToken:R,view:S||"photos",extraUserInputs:rwC(k),v2Translated:!0}},WFd=function(k,E,S,R){k=k.map(function(V){return{id:V.getId().getId(),
serviceId:"et",name:lE(V)[0].getUrl().split("/").pop(),description:_.t2(V,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:g$(lE(V),"etjpg")}});
return{action:E,docs:k,viewToken:R,view:S||"et",v2Translated:!0}},KFY=function(k,E,S,R){k=k.map(function(V){var N=V.getId().getId(),h=R["2"];
return{id:N,serviceId:h.type!=="gmail_themes"&&h.parent==="6226252643674576769"?"picasa":"static_themes",name:V.getName(),mimeType:_.t2(V,7),type:Xa(V),description:_.t2(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:V.getUrl(),embedUrl:V.getUrl(),thumbnails:g$(lE(V))}});
return{action:E,docs:k,viewToken:R,view:S||"photos",v2Translated:!0}},o65=function(k,E){k=k.map(function(S){var R=_.Tp(S,Vod,27);
R=_.OA(R,1,_.F3,_.mb())[0];return{id:S.getId().getId(),serviceId:"contacts",mimeType:_.t2(S,7),name:S.getName(),description:_.t2(S,3),url:"mailto:"+R,thumbnail:[{url:_.t2(S,11)}],email:R}});
return{action:E,docs:k,view:"contacts",v2Translated:!0}},Y2d=function(k){if(!k)return{};
var E=_.t2(k,3);E=E&&JSON.parse(E)||{};return{0:_.t2(k,1),1:_.t2(k,2),2:E}},g$=function(k,E){E=E===void 0?"":E;
if(!k.length)return null;E=="etjpg"&&(k=k.filter(function(S){return S.getUrl().includes("w1200-h300")}));
return k.map(function(S){return{url:S.getUrl(),height:S.getHeight(),width:S.getWidth(),type:E}})},rwC=function(k){return{isAttachment:k.some(function(E){return _.mV(E,31)})}},ut2=function(k){var E,S={id:(E=k.getId())==null?void 0:E.getId(),
serviceId:LFp(k),mimeType:_.t2(k,7),name:k.getName(),type:Xa(k),sizeBytes:Number(mpd(k)),description:_.t2(k,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:g$(lE(k)),isNew:!0};if(E=_.Tp(k,d9,30)){S.dataUrl=_.t2(E,1)||null;a:{var R=_.Tp(k,d9,30);switch(_.Tn(R,3)){case 9:R=_.BS(R,JPA,2,s8);R={remoteRefs:R&&_.t2(R,1)};break a;case 10:case 15:R=_.BS(R,h2d,4,s8);var V=lE(k);R={photo_id:R&&_.t2(R,1),media_key:k.getId().getId(),media_type:_.Tn(k,6)===1?1:2,image_url:V&&
V[0].getUrl(),width:V&&String(V[0].getWidth()),height:V&&String(V[0].getHeight())};break a}R=null}S.uploadMetadata=R;S.uploadId=_.t2(E,9)||null;S.uploadState=jsz(E)||null}(R=E&&_.BS(E,h2d,4,s8))&&(S.id=_.t2(R,1));(R=E&&_.BS(E,cPY,5,s8))&&(S.contentId=_.t2(R,1));(R=E&&_.BS(E,n4j,7,s8))&&(S.contentId=_.t2(R,1));(R=E&&_.BS(E,iuY,6,s8))&&(S.contentId=_.t2(R,1));(E==null?void 0:_.Tn(E,3))===1&&(S.mediaKey=k.getId().getId());return S},LFp=function(k){var E;
switch(((E=_.Tp(k,d9,30))==null?void 0:_.Tn(E,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},Xa=function(k){switch(_.Tn(k,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 _.t2(k,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},jsz=function(k){switch(k==null?void 0:_.Tn(k,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 v6d,DmC,$mC,fld;_.bZ5=function(k,E){var S=E||{};E=S.document||document;var R=_.AJ(k).toString(),V=(new PN(E)).createElement("SCRIPT"),N={script_:V,timeout_:void 0},h=new b1(DmC,N),J=null,m=S.timeout!=null?S.timeout:5E3;m>0&&(J=window.setTimeout(function(){$mC(V,!0);h.errback(new fld(1,"Timeout reached for loading script "+R))},m),N.timeout_=J);
V.onload=V.onreadystatechange=function(){V.readyState&&V.readyState!="loaded"&&V.readyState!="complete"||($mC(V,S.cleanupWhenDone||!1,J),h.callback(null))};
V.onerror=function(){$mC(V,!0,J);h.errback(new fld(0,"Error while loading script "+R))};
N=S.attributes||{};_.fO.extend(N,{type:"text/javascript",charset:"UTF-8"});qYd(V,N);_.Ib(V,k);v6d(E).appendChild(V);return h};
v6d=function(k){var E=Hy("HEAD",k);return E&&E.length!==0?E[0]:k.documentElement};
DmC=function(){if(this&&this.script_){var k=this.script_;k&&k.tagName=="SCRIPT"&&$mC(k,!0,this.timeout_)}};
$mC=function(k,E,S){S!=null&&_.Vt.clearTimeout(S);k.onload=function(){};
k.onerror=function(){};
k.onreadystatechange=function(){};
E&&window.setTimeout(function(){_.Ua(k)},0)};
fld=function(k,E){var S="Jsloader error (code #"+k+")";E&&(S+=": "+E);_.Sh.call(this,S);this.code=k};
_.dy(fld,_.Sh);var ZZY=_.ry(["https://apis.google.com/js/api.js"]),dm8=_.BH(ZZY),q2C=function(k,E,S){S=S===void 0?{}:S;var R=!1,V=ssC(k,E,S).then(function(h){R=!0;return h}),N=_.wCC(5E3).then(function(){return R?ssC(k,E,S):llY(E,S).then(function(h){return M9Y(h,k)})});
return N0d([V,N])},ssC=function(k,E,S){S=S===void 0?{}:S;
return zR2(E,S).then(function(R){return M9Y(R,k)})},M9Y=function(k,E){var S=_.I1(E,"gapi.")?E.slice(5):E;
return k[S]?_.GR(k[S]):new _.yF(function(R,V){var N=Fc(function(){V(Error("Ya"))},3E4);
k.load(E,{callback:function(){_.Vt.clearTimeout(N);R(k[S])},
onerror:function(h){_.Vt.clearTimeout(N);V(h)}})})},zR2=function(k,E){E=E===void 0?{}:E;
return k.gapi&&k.gapi.load?_.GR(k.gapi):llY(k,E)},llY=function(k,E){E=E===void 0?{}:E;
return _.bZ5(dm8,{document:k.document,attributes:E}).then(function(){return k.gapi})},Qsd=function(){};
Qsd.prototype.load=function(k,E,S){E=E===void 0?window:E;S=S===void 0?{}:S;var R=Date.now();return q2C(k,E,S).then(function(V){var N=Date.now();return{library:V,loadStartMs:R,loadEndMs:N}},function(V){throw V instanceof Error?V:Error(String(V));
})};var nZm=function(){_.r7.call(this);this.gapiLoader_=new Qsd;this.origin_=null;this.gapiPickerIframeResolver_=_.LU();this.gapiIframesResolver_=_.LU();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.y(nZm,_.r7);var OZd=function(k,E){var S=S===void 0?{}:S;var R=_.CV("gapi.iframes",E);return R?(k=Date.now(),_.GR({library:R,loadStartMs:k,loadEndMs:k})):k.gapiLoader_.load("gapi.iframes",E,S)},G2C=function(k,E,S,R,V,N){var h=!1;
h=h===void 0?!1:h;OZd(k,ZB(E.ownerDocument)).then(function(J){var m=J.library;k.gapiIframesResolver_.resolve(m);J=k.gapiPickerIframeResolver_;var a=J.resolve,T=h;T=T===void 0?!1:T;var w={};w["host-message-handler"]=S;k.hostMessageHandlerInternal_=w;var P=_.Gx(R);P=_.Gx(P);P=_.OF(_.Q4(_.zA(new _.DZ,P.scheme_),P.JSC$10027_domain_),P.JSC$10027_port_).toString();k.origin_=P;P=(new tlC).setUrl(R);P.JSC$10042_obj_.where=E;P.JSC$10042_obj_.allowPost=T;P.JSC$10042_obj_.messageHandlers=w;T=_.CV("makeWhiteListIframesFilter",
m)([k.origin_]);P.JSC$10042_obj_.messageHandlersFilter=T;V!=null&&(P.JSC$10042_obj_.id=V);N!=null&&(P.JSC$10042_obj_.rpctoken=N);T=adC(P);T.JSC$10039_obj_.style={display:"block","min-width":"100%",width:"1px"};T.JSC$10039_obj_.height="100%";adC(P).value().allow="camera 'src' "+k.origin_;m=m.getContext().openChild(P.value());a.call(J,m)},function(J){k.gapiIframesResolver_.reject(J);
k.gapiPickerIframeResolver_.reject(J)});
return k.gapiPickerIframeResolver_.promise},C2C=function(k,E){return _.Ys([k.gapiIframesResolver_.promise,
k.gapiPickerIframeResolver_.promise]).then(function(S){var R=_.n(S);S=R.next().value;return(R=R.next().value)?R.send("picker-message-handler",E,void 0,_.CV("makeWhiteListIframesFilter",S)([k.origin_])):_.BM(Error("Za"))})};
nZm.prototype.disposeInternal=function(){k9C(this);_.r7.prototype.disposeInternal.call(this)};
var k9C=function(k){k.gapiPickerIframeResolver_.promise.then(function(E){E&&(E.unregister("host-message-handler"),delete k.hostMessageHandlerInternal_["host-message-handler"])})};var EFY=function(){this.nextId=0};var RGT=function(k,E){switch(k.action){case "select-contacts":k=SJz(k.contacts);break;case "visibility":k=k.visible;var S=new O8;k=_.WS(S,1,7).setVisible(k);S={};S["iframe-command"]=k.serialize();k=S;break;default:k=null}return k?C2C(E,k):_.GR()},SJz=function(k){if(!k||k.length==0)return null;
var E=new O8;_.WS(E,1,11);var S=new EFY;k.forEach(function(R){if(R.email){var V=new J2;V=_.K9(V,2,R.name?R.name:R.email);var N=new Vod;R=_.bPI(N,1,_.B0,R.email,_.F3);R=_.Xo(V,27,R);V=new E4Y;N=":"+(S.nextId++).toString(36);V=_.K9(V,1,N);V=_.WS(V,2,12);R=_.Xo(R,1,V)}else R=null;R&&Uc(E,7,J2,R)});
k={};k["iframe-command"]=E.serialize();return k};_.VX2=function(){if(gbT){var k=/Windows NT ([0-9.]+)/;return(k=k.exec(_.Be()))?k[1]:"0"}return _.Xed?(k=/1[0|1][_.][0-9_.]+/,(k=k.exec(_.Be()))?k[0].replace(/_/g,"."):"10"):dle?(k=/Android\s+([^\);]+)(\)|;)/,(k=k.exec(_.Be()))?k[1]:""):HlC||KIC||peT?(k=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(k=k.exec(_.Be()))?k[1].replace(/_/g,"."):""):""}();var UI;UI=function(k){return(k=k.exec(_.Be()))?k[1]:""};
_.NcA=function(){if(_.Ge)return UI(/Firefox\/([0-9.]+)/);if(_.qX||iX||FIC)return DAC;if(_.Cm){if(_.uC()||_.Xet()){var k=UI(/CriOS\/([0-9.]+)/);if(k)return k}return UI(/Chrome\/([0-9.]+)/)}if(_.zV&&!_.uC())return UI(/Version\/([0-9.]+)/);if(zMb||Q_R){if(k=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Be()))return k[1]+"."+k[2]}else if(ZlC)return(k=UI(/Android\s+([0-9.]+)/))?k:UI(/Version\/([0-9.]+)/);return""}();var Iw4=function(){};
_.bb(Iw4);Iw4.prototype.nextId_=0;_.HY=function(k){return":"+(k.nextId_++).toString(36)};var Kt=function(k){_.wG.call(this);this.JSC$10137_dom_=k||rT();this.JSC$10137_id_=null;this.inDocument_=!1;this.JSC$10137_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.dy(Kt,_.wG);Kt.prototype.idGenerator_=Iw4.getInstance();Kt.prototype.getId=function(){return this.JSC$10137_id_||(this.JSC$10137_id_=_.HY(this.idGenerator_))};
Kt.prototype.getElement=function(){return this.JSC$10137_element_};
var pt=function(k){k.googUiComponentHandler_||(k.googUiComponentHandler_=new _.Bk(k));return k.googUiComponentHandler_},nFd=function(k,E){if(k==E)throw Error("$a");
var S;if(S=E&&k.parent_&&k.JSC$10137_id_){S=k.parent_;var R=k.JSC$10137_id_;S=S.childIndex_&&R?_.fO.get(S.childIndex_,R)||null:null}if(S&&k.parent_!=E)throw Error("$a");k.parent_=E;Kt.superClass_.setParentEventTarget.call(k,E)};
Kt.prototype.setParentEventTarget=function(k){if(this.parent_&&this.parent_!=k)throw Error("ab");Kt.superClass_.setParentEventTarget.call(this,k)};
Kt.prototype.JSC$10139_createDom=function(){this.JSC$10137_element_=this.JSC$10137_dom_.createElement("DIV")};
Kt.prototype.render=function(k){ifC(this,k)};
var ifC=function(k,E,S){if(k.inDocument_)throw Error("bb");k.JSC$10137_element_||k.JSC$10139_createDom();E?E.insertBefore(k.JSC$10137_element_,S||null):k.JSC$10137_dom_.JSC$9321_document_.body.appendChild(k.JSC$10137_element_);k.parent_&&!k.parent_.inDocument_||k.enterDocument()};
_.I=Kt.prototype;_.I.decorate=function(k){if(this.inDocument_)throw Error("bb");if(k&&this.canDecorate(k)){this.wasDecorated_=!0;var E=_.dT(k);this.JSC$10137_dom_&&this.JSC$10137_dom_.JSC$9321_document_==E||(this.JSC$10137_dom_=rT(k));this.decorateInternal(k);this.enterDocument()}else throw Error("cb");};
_.I.canDecorate=function(){return!0};
_.I.decorateInternal=function(k){this.JSC$10137_element_=k};
_.I.enterDocument=function(){this.inDocument_=!0;hG5(this,function(k){!k.inDocument_&&k.getElement()&&k.enterDocument()})};
_.I.exitDocument=function(){hG5(this,function(k){k.inDocument_&&k.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.I.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);hG5(this,function(k){k.dispose()});
!this.wasDecorated_&&this.JSC$10137_element_&&_.Ua(this.JSC$10137_element_);this.parent_=this.model_=this.JSC$10137_element_=this.childIndex_=this.children_=null;Kt.superClass_.disposeInternal.call(this)};
_.I.getModel=function(){return this.model_};
_.I.addChild=function(k,E){var S=this.children_?this.children_.length:0;if(k.inDocument_&&(E||!this.inDocument_))throw Error("bb");if(S<0||S>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);k.parent_==this?(_.fO.set(this.childIndex_,k.getId(),k),_.ZR(this.children_,k)):_.fO.add(this.childIndex_,k.getId(),k);nFd(k,this);_.uml(this.children_,S,0,k);k.inDocument_&&this.inDocument_&&k.parent_==this?(E=this.getContentElement(),
(E.childNodes[S]||null)!=k.getElement()&&(k.getElement().parentElement==E&&E.removeChild(k.getElement()),S=E.childNodes[S]||null,E.insertBefore(k.getElement(),S))):E?(this.JSC$10137_element_||this.JSC$10139_createDom(),S=this.children_?this.children_[S+1]||null:null,ifC(k,this.getContentElement(),S?S.JSC$10137_element_:null)):this.inDocument_&&!k.inDocument_&&k.JSC$10137_element_&&k.JSC$10137_element_.parentNode&&k.JSC$10137_element_.parentNode.nodeType==1&&k.enterDocument()};
_.I.getContentElement=function(){return this.JSC$10137_element_};
var hG5=function(k,E){k.children_&&k.children_.forEach(E,void 0)};
Kt.prototype.removeChild=function(k,E){if(k){var S=typeof k==="string"?k:k.getId();k=this.childIndex_&&S?_.fO.get(this.childIndex_,S)||null:null;S&&k&&(_.fO.remove(this.childIndex_,S),_.ZR(this.children_,k),E&&(k.exitDocument(),k.JSC$10137_element_&&_.Ua(k.JSC$10137_element_)),nFd(k,null))}if(!k)throw Error("eb");return k};_.dy(GVA,OCi);_.dy(CJh,OCi);var JBj;_.fO.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var cBp=function(k,E){E?k.setAttribute("role",E):k.removeAttribute("role")},Az=function(k,E,S){Array.isArray(S)&&(S=S.join(" "));
var R="aria-"+E;S===""||S==void 0?(JBj||(S={},JBj=(S.atomic=!1,S.autocomplete="none",S.dropeffect="none",S.haspopup=!1,S.live="off",S.multiline=!1,S.multiselectable=!1,S.orientation="vertical",S.readonly=!1,S.relevant="additions text",S.required=!1,S.sort="none",S.busy=!1,S.disabled=!1,S.hidden=!1,S.invalid="false",S)),S=JBj,E in S?k.setAttribute(R,S[E]):k.removeAttribute(R)):k.setAttribute(R,S)};var m65;_.r$=function(k,E,S){_.wG.call(this);this.target=k;this.handle=E||k;this.limits=S||new KT(NaN,NaN,NaN,NaN);this.JSC$10142_document_=_.dT(k);this.JSC$10142_eventHandler_=new _.Bk(this);_.Wy(this,this.JSC$10142_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;_.wX(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=m65};
_.dy(_.r$,_.wG);m65=_.Vt.document&&_.Vt.document.documentElement&&!!_.Vt.document.documentElement.setCapture&&!!_.Vt.document.releaseCapture;_.eG4=function(k,E){k.hysteresisDistanceSquared_=Math.pow(E,2)};
_.I=_.r$.prototype;_.I.setEnabled=function(k){this.enabled_=k};
_.I.disposeInternal=function(){_.r$.superClass_.disposeInternal.call(this);_.TA(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10142_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10142_document_.releaseCapture();this.handle=this.target=null};
_.I.startDrag=function(k){var E=k.type=="mousedown";if(!this.enabled_||this.dragging_||E&&(!k.isButton(0)||_.Xed&&k.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new ud("start",this,k.clientX,k.clientY,k)))this.dragging_=!0,E&&k.preventDefault();else return;else E&&k.preventDefault();E=this.JSC$10142_document_;var S=E.documentElement,R=!this.useSetCapture_;this.JSC$10142_eventHandler_.listen(E,["touchmove","mousemove"],this.handleMove_,
{capture:R,passive:!1});this.JSC$10142_eventHandler_.listen(E,["touchend","mouseup"],this.endDrag,R);this.useSetCapture_?(S.setCapture(!1),this.JSC$10142_eventHandler_.listen(S,"losecapture",this.endDrag)):this.JSC$10142_eventHandler_.listen(ZB(E),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10142_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,R);this.clientX=this.startX=k.clientX;this.clientY=this.startY=k.clientY;this.screenX=k.screenX;this.screenY=k.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Ax(rT(this.JSC$10142_document_))}};
_.I.endDrag=function(k,E){this.JSC$10142_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10142_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new ud("end",this,k.clientX,k.clientY,k,awd(this,this.deltaX),tXT(this,this.deltaY),E||k.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.I.handleMove_=function(k){if(this.enabled_){var E=k.clientX-this.clientX,S=k.clientY-this.clientY;this.clientX=k.clientX;this.clientY=k.clientY;this.screenX=k.screenX;this.screenY=k.screenY;if(!this.dragging_){var R=this.startX-this.clientX,V=this.startY-this.clientY;if(R*R+V*V>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new ud("start",this,k.clientX,k.clientY,k)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(k);return}}S=TcC(this,E,S);E=S.x;S=S.y;this.dragging_&&this.dispatchEvent(new ud("beforedrag",
this,k.clientX,k.clientY,k,E,S))&&(wkj(this,k,E,S),k.preventDefault())}};
var TcC=function(k,E,S){var R=Ax(rT(k.JSC$10142_document_));E+=R.x-k.pageScroll.x;S+=R.y-k.pageScroll.y;k.pageScroll=R;k.deltaX+=E;k.deltaY+=S;return new _.bh(awd(k,k.deltaX),tXT(k,k.deltaY))};
_.r$.prototype.onScroll_=function(k){var E=TcC(this,0,0);k.clientX=this.clientX;k.clientY=this.clientY;wkj(this,k,E.x,E.y)};
var wkj=function(k,E,S,R){k.target.style.left=S+"px";k.target.style.top=R+"px";k.dispatchEvent(new ud("drag",k,E.clientX,E.clientY,E,S,R))},awd=function(k,E){var S=k.limits;
k=isNaN(S.left)?null:S.left;S=isNaN(S.width)?0:S.width;return Math.min(k!=null?k+S:Infinity,Math.max(k!=null?k:-Infinity,E))},tXT=function(k,E){var S=k.limits;
k=isNaN(S.top)?null:S.top;S=isNaN(S.height)?0:S.height;return Math.min(k!=null?k+S:Infinity,Math.max(k!=null?k:-Infinity,E))};
_.r$.prototype.isDragging=function(){return this.dragging_};
var ud=function(k,E,S,R,V,N,h){_.mL.call(this,k);this.clientX=S;this.clientY=R;this.browserEvent=V;this.left=N!==void 0?N:E.deltaX;this.top=h!==void 0?h:E.deltaY};
_.dy(ud,_.mL);var xH=function(k){this.JSC$10149_map_=new Map;var E=arguments.length;if(E>1){if(E%2)throw Error("ma");for(var S=0;S<E;S+=2)this.set(arguments[S],arguments[S+1])}else k&&this.addAll(k)};
_.I=xH.prototype;_.I.getCount=function(){return this.JSC$10149_map_.size};
_.I.getValues=function(){return Array.from(this.JSC$10149_map_.values())};
_.I.getKeys=function(){return Array.from(this.JSC$10149_map_.keys())};
_.I.containsKey=function(k){return this.JSC$10149_map_.has(k)};
_.I.containsValue=function(k){return this.getValues().some(function(E){return E==k})};
_.I.equals=function(k,E){var S=this;E=E===void 0?function(R,V){return R===V}:E;
return this===k?!0:this.JSC$10149_map_.size!=k.getCount()?!1:this.getKeys().every(function(R){return E(S.JSC$10149_map_.get(R),k.get(R))})};
_.I.isEmpty=function(){return this.JSC$10149_map_.size==0};
_.I.clear=function(){this.JSC$10149_map_.clear()};
_.I.remove=function(k){return this.JSC$10149_map_.delete(k)};
_.I.get=function(k,E){return this.JSC$10149_map_.has(k)?this.JSC$10149_map_.get(k):E};
_.I.set=function(k,E){this.JSC$10149_map_.set(k,E);return this};
_.I.addAll=function(k){if(k instanceof xH){k=_.n(k.JSC$10149_map_);for(var E=k.next();!E.done;E=k.next()){var S=_.n(E.value);E=S.next().value;S=S.next().value;this.JSC$10149_map_.set(E,S)}}else if(k)for(k=_.n(Object.entries(k)),E=k.next();!E.done;E=k.next())S=_.n(E.value),E=S.next().value,S=S.next().value,this.JSC$10149_map_.set(E,S)};
_.I.forEach=function(k,E){var S=this;E=E===void 0?this:E;this.JSC$10149_map_.forEach(function(R,V){return k.call(E,R,V,S)})};
_.I.clone=function(){return new xH(this)};(function(){for(var k=["ms","moz","webkit","o"],E,S=0;E=k[S]&&!_.Vt.requestAnimationFrame;++S)_.Vt.requestAnimationFrame=_.Vt[E+"RequestAnimationFrame"],_.Vt.cancelAnimationFrame=_.Vt[E+"CancelAnimationFrame"]||_.Vt[E+"CancelRequestAnimationFrame"];if(!_.Vt.requestAnimationFrame){var R=0;_.Vt.requestAnimationFrame=function(V){var N=(new Date).getTime(),h=Math.max(0,16-(N-R));R=N+h;return _.Vt.setTimeout(function(){V(N+h)},h)};
_.Vt.cancelAnimationFrame||(_.Vt.cancelAnimationFrame=function(V){clearTimeout(V)})}})();
var PcY=[[],[]],BcC=0,YJY=!1,WtY=0,yBd=function(k,E){var S=WtY++,R={measureTask:{id:S,fn:k.measure,context:E},mutateTask:{id:S,fn:k.mutate,context:E},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(R.args||(R.args=[]),R.args.length=0,R.args.push.apply(R.args,arguments),R.args.push(R.state)):R.args&&R.args.length!=0?(R.args[0]=R.state,R.args.length=1):R.args=[R.state];R.isScheduled||(R.isScheduled=!0,PcY[BcC].push(R));YJY||(YJY=!0,window.requestAnimationFrame(Ft8))}},Ft8=
function(){YJY=!1;
var k=PcY[BcC],E=k.length;BcC=(BcC+1)%2;for(var S,R=0;R<E;++R){S=k[R];var V=S.measureTask;S.isScheduled=!1;V.fn&&V.fn.apply(V.context,S.args)}for(R=0;R<E;++R)S=k[R],V=S.mutateTask,S.isScheduled=!1,V.fn&&V.fn.apply(V.context,S.args),S.state={};k.length=0};var oFz=_.ry(["about:blank"]),XkY=_.ry(["javascript:undefined"]),gFC=_.BH(oFz);_.AJ(gFC);var U6C=_.BH(XkY);_.AJ(U6C);var Lt=function(k){_.wG.call(this);this.JSC$10155_element_=k;this.listenKeyIn_=_.wX(this.JSC$10155_element_,"focus",this,!0);this.listenKeyOut_=_.wX(this.JSC$10155_element_,"blur",this,!0)};
_.dy(Lt,_.wG);Lt.prototype.handleEvent=function(k){var E=new _.eL(k.event_);E.type=k.type=="focusin"||k.type=="focus"?"focusin":"focusout";this.dispatchEvent(E)};
Lt.prototype.disposeInternal=function(){Lt.superClass_.disposeInternal.call(this);av(this.listenKeyIn_);av(this.listenKeyOut_);delete this.JSC$10155_element_};var Hf4=function(k,E){this.JSC$10158_element_=k;this.JSC$10158_dom_=E};var jy=function(k,E){Kt.call(this,E);this.useIframeMask_=!!k;this.lastFocus_=null;this.resizeBackgroundTask_=yBd({mutate:this.resizeBackground_},this);yBd({mutate:this.updateModalAndBackground_},this)};
_.dy(jy,Kt);_.I=jy.prototype;_.I.focusHandler_=null;_.I.visible_=!1;_.I.bgEl_=null;_.I.bgIframeEl_=null;_.I.tabCatcherElement_=null;_.I.backwardTabWrapInProgress_=!1;_.I.getCssClass=function(){return"goog-modalpopup"};
_.I.getBackgroundElement=function(){return this.bgEl_};
_.I.JSC$10139_createDom=function(){jy.superClass_.JSC$10139_createDom.call(this);var k=this.getElement(),E=eh(this.getCssClass()).split(" ");$s(k,E);k.tabIndex=0;_.Em(k,!1);Kt4(this);pk8(this)};
var Kt4=function(k){if(k.useIframeMask_&&!k.bgIframeEl_){var E=k.JSC$10137_dom_.JSC$9323_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.GB(E,gFC);k.bgIframeEl_=E;k.bgIframeEl_.className=k.getCssClass()+"-bg";_.Em(k.bgIframeEl_,!1);yx8(k.bgIframeEl_,0)}k.bgEl_||(k.bgEl_=k.JSC$10137_dom_.JSC$9323_createDom("DIV",k.getCssClass()+"-bg"),_.Em(k.bgEl_,!1))},pk8=function(k){k.tabCatcherElement_||(k.tabCatcherElement_=k.JSC$10137_dom_.createElement("SPAN"),_.Em(k.tabCatcherElement_,
!1),k.tabCatcherElement_.tabIndex=0,k.tabCatcherElement_.style.position="absolute")};
_.I=jy.prototype;_.I.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.I.canDecorate=function(k){return!!k&&k.tagName=="DIV"};
_.I.decorateInternal=function(k){jy.superClass_.decorateInternal.call(this,k);k=eh(this.getCssClass()).split(" ");$s(this.getElement(),k);Kt4(this);pk8(this);this.getElement().tabIndex=0;_.Em(this.getElement(),!1)};
_.I.enterDocument=function(){this.bgIframeEl_&&_.X$(this.bgIframeEl_,this.getElement());_.X$(this.bgEl_,this.getElement());jy.superClass_.enterDocument.call(this);_.g9(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Lt(this.JSC$10137_dom_.JSC$9321_document_);pt(this).listen(this.focusHandler_,"focusin",this.onFocus);ABY(this,!1)};
_.I.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.nu(this.focusHandler_);jy.superClass_.exitDocument.call(this);_.Ua(this.bgIframeEl_);_.Ua(this.bgEl_);_.Ua(this.tabCatcherElement_)};
_.I.setVisible=function(k){if(k!=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_&&ABY(this,k),k){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10137_dom_.JSC$9321_document_.activeElement}catch(V){}this.updateModalAndBackground_();pt(this).listen(this.JSC$10137_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10137_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);rBY(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)eF(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){pt(this).unlisten(this.JSC$10137_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10137_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)eF(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var E=this.JSC$10137_dom_,S=E.JSC$9321_document_.body,R=E.JSC$9321_document_.activeElement||S;if(!this.lastFocus_||this.lastFocus_==S){this.lastFocus_=null;break a}(R==S||E.contains(this.getElement(),R))&&this.lastFocus_.focus()}catch(V){}this.lastFocus_=
null}}};
var ABY=function(k,E){k.modalAriaVisibilityHelper_||(k.modalAriaVisibilityHelper_=new Hf4(k.JSC$10137_element_,k.JSC$10137_dom_));k=k.modalAriaVisibilityHelper_;if(E){k.hiddenElements_||(k.hiddenElements_=[]);E=k.JSC$10158_dom_.getChildren(k.JSC$10158_dom_.JSC$9321_document_.body);for(var S=0;S<E.length;S++){var R=E[S],V;if(V=R!=k.JSC$10158_element_)V=R.getAttribute("aria-hidden"),V=!(V==null||V==void 0?0:String(V));V&&(Az(R,"hidden",!0),k.hiddenElements_.push(R))}}else if(k.hiddenElements_){for(E=
0;E<k.hiddenElements_.length;E++)k.hiddenElements_[E].removeAttribute("aria-hidden");k.hiddenElements_=null}};
jy.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var rBY=function(k,E){k.bgIframeEl_&&_.Em(k.bgIframeEl_,E);k.bgEl_&&_.Em(k.bgEl_,E);_.Em(k.getElement(),E);_.Em(k.tabCatcherElement_,E)};
_.I=jy.prototype;_.I.onShow=function(){this.dispatchEvent("show")};
_.I.onHide=function(){rBY(this,!1);this.dispatchEvent("hide")};
_.I.isVisible=function(){return this.visible_};
_.I.focus=function(){this.focusElement_()};
_.I.resizeBackground_=function(){this.bgIframeEl_&&_.Em(this.bgIframeEl_,!1);this.bgEl_&&_.Em(this.bgEl_,!1);var k=this.JSC$10137_dom_.JSC$9321_document_;var E=_.pO(ZB(this.JSC$10137_dom_.JSC$9321_document_)||window);var S=Math.max(E.width,Math.max(k.body.scrollWidth,k.documentElement.scrollWidth));k=Math.max(E.height,Math.max(k.body.scrollHeight,k.documentElement.scrollHeight));this.bgIframeEl_&&(_.Em(this.bgIframeEl_,!0),_.BTj(this.bgIframeEl_,S,k));this.bgEl_&&(_.Em(this.bgEl_,!0),_.BTj(this.bgEl_,
S,k))};
_.I.reposition=function(){var k;if(_.Phd(this.getElement())=="fixed")var E=k=0;else E=Ax(this.JSC$10137_dom_),k=E.x,E=E.y;var S=W7T(this.getElement());var R=_.pO(ZB(this.JSC$10137_dom_.JSC$9321_document_)||window);k=Math.max(k+R.width/2-S.width/2,0);E=Math.max(E+R.height/2-S.height/2,0);r9(this.getElement(),k,E);r9(this.tabCatcherElement_,k,E)};
_.I.onFocus=function(k){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():k.target==this.tabCatcherElement_&&Fc(this.focusElement_,0,this)};
_.I.focusElement_=function(){try{this.getElement().focus()}catch(k){}};
_.I.disposeInternal=function(){_.nu(this.popupShowTransition_);this.popupShowTransition_=null;_.nu(this.popupHideTransition_);this.popupHideTransition_=null;_.nu(this.bgShowTransition_);this.bgShowTransition_=null;_.nu(this.bgHideTransition_);this.bgHideTransition_=null;jy.superClass_.disposeInternal.call(this)};var d7=function(k,E,S){jy.call(this,E,S);this.JSC$10168_class_=k||"modal-dialog";this.buttons_=(new Dm).addButton(unT,!0).addButton(x65,!1,!0)};
_.dy(d7,jy);_.I=d7.prototype;_.I.escapeToCancel_=!0;_.I.hasTitleCloseButton_=!0;_.I.modal_=!0;_.I.draggable_=!0;_.I.backgroundElementOpacity_=.5;_.I.title_="";_.I.JSC$10170_dragger_=null;_.I.JSC$10170_disposeOnHide_=!1;_.I.titleEl_=null;_.I.titleTextEl_=null;_.I.titleTextId_=null;_.I.titleCloseEl_=null;_.I.contentEl_=null;_.I.buttonEl_=null;_.I.getCssClass=function(){return this.JSC$10168_class_};
_.I.setTitle=function(k){this.title_=k;this.titleTextEl_&&_.HN(this.titleTextEl_,k)};
_.I.getTitle=function(){return this.title_};
_.I.getContent=function(){return""};
_.I.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Lt5=function(k){k.getElement()||k.render();return k.getElement()};
d7.prototype.getBackgroundElement=function(){this.getElement()||this.render();return d7.superClass_.getBackgroundElement.call(this)};
var jd4=function(k,E){k.backgroundElementOpacity_=E;k.getElement()&&(E=k.getBackgroundElement())&&yx8(E,k.backgroundElementOpacity_)};
d7.prototype.setDraggable=function(k){this.draggable_=k;D64(this,k&&this.inDocument_)};
d7.prototype.handleDrag=function(){};
var D64=function(k,E){var S=eh(k.JSC$10168_class_+"-title-draggable").split(" ");k.getElement()&&(E?$s(k.titleEl_,S):c6z(k.titleEl_,S));E&&!k.JSC$10170_dragger_?(E=new _.r$(k.getElement(),k.titleEl_),k.JSC$10170_dragger_=E,$s(k.titleEl_,S),_.wX(k.JSC$10170_dragger_,"start",k.setDraggerLimits_,!1,k),_.wX(k.JSC$10170_dragger_,"drag",k.handleDrag,!1,k)):!E&&k.JSC$10170_dragger_&&(k.JSC$10170_dragger_.dispose(),k.JSC$10170_dragger_=null)};
_.I=d7.prototype;
_.I.JSC$10139_createDom=function(){d7.superClass_.JSC$10139_createDom.call(this);var k=this.getElement(),E=this.JSC$10137_dom_;this.titleTextId_=this.getId();var S=this.getId()+".contentEl";this.titleEl_=E.JSC$9323_createDom("DIV",this.JSC$10168_class_+"-title",this.titleTextEl_=E.JSC$9323_createDom("SPAN",{className:this.JSC$10168_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=E.JSC$9323_createDom("SPAN",this.JSC$10168_class_+"-title-close"));Ctd(k,this.titleEl_,this.contentEl_=
E.JSC$9323_createDom("DIV",{className:this.JSC$10168_class_+"-content",id:S}),this.buttonEl_=E.JSC$9323_createDom("DIV",this.JSC$10168_class_+"-buttons"));cBp(this.titleTextEl_,"heading");cBp(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Az(this.titleCloseEl_,"label","Close");cBp(k,"dialog");Az(k,"labelledby",this.titleTextId_||"");_.Em(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(k=this.buttons_,k.JSC$10171_element_=this.buttonEl_,k.render());_.Em(this.buttonEl_,!!this.buttons_);
jd4(this,this.backgroundElementOpacity_)};
_.I.decorateInternal=function(k){d7.superClass_.decorateInternal.call(this,k);k=this.getElement();var E=this.JSC$10168_class_+"-content";this.contentEl_=BN(document,null,E,k)[0];this.contentEl_||(this.contentEl_=this.JSC$10137_dom_.JSC$9323_createDom("DIV",E),k.appendChild(this.contentEl_));E=this.JSC$10168_class_+"-title";var S=this.JSC$10168_class_+"-title-text",R=this.JSC$10168_class_+"-title-close";(this.titleEl_=BN(document,null,E,k)[0])?(this.titleTextEl_=BN(document,null,S,this.titleEl_)[0],
this.titleCloseEl_=BN(document,null,R,this.titleEl_)[0]):(this.titleEl_=this.JSC$10137_dom_.JSC$9323_createDom("DIV",E),k.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=ehp(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.WN("SPAN",{className:S,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Az(k,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10137_dom_.JSC$9323_createDom("SPAN",R),this.titleEl_.appendChild(this.titleCloseEl_));_.Em(this.titleCloseEl_,this.hasTitleCloseButton_);E=this.JSC$10168_class_+"-buttons";(this.buttonEl_=BN(document,null,E,k)[0])?(this.buttons_=new Dm(this.JSC$10137_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10137_dom_.JSC$9323_createDom("DIV",E),k.appendChild(this.buttonEl_),this.buttons_&&(k=this.buttons_,k.JSC$10171_element_=this.buttonEl_,k.render()),_.Em(this.buttonEl_,
!!this.buttons_));jd4(this,this.backgroundElementOpacity_)};
_.I.enterDocument=function(){d7.superClass_.enterDocument.call(this);pt(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);pt(this).listen(this.buttonEl_,"click",this.onButtonClick_);D64(this,this.draggable_);pt(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var k=this.getElement();cBp(k,"dialog");this.titleTextEl_.id!==""&&Az(k,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){k=this.JSC$10137_dom_;
var E=this.getBackgroundElement();k.removeNode(this.bgIframeEl_);k.removeNode(E)}this.isVisible()&&ABY(this,!1)}};
_.I.exitDocument=function(){this.isVisible()&&this.setVisible(!1);D64(this,!1);d7.superClass_.exitDocument.call(this)};
_.I.setVisible=function(k){k!=this.isVisible()&&(this.inDocument_||this.render(),d7.superClass_.setVisible.call(this,k))};
_.I.onShow=function(){d7.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.I.onHide=function(){d7.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10170_disposeOnHide_&&this.dispose()};
_.I.setDraggerLimits_=function(){var k=this.JSC$10137_dom_.JSC$9321_document_,E=_.pO(ZB(k)||window),S=Math.max(k.body.scrollWidth,E.width);k=Math.max(k.body.scrollHeight,E.height);var R=W7T(this.getElement());_.Phd(this.getElement())=="fixed"?this.JSC$10170_dragger_.limits=new KT(0,0,Math.max(0,E.width-R.width),Math.max(0,E.height-R.height)):this.JSC$10170_dragger_.limits=new KT(0,0,S-R.width,k-R.height)};
_.I.onTitleCloseClick_=function(){$68(this)};
var $68=function(k){if(k.hasTitleCloseButton_){var E=k.buttons_,S=E&&E.cancelButton_;S?(E=E.get(S),k.dispatchEvent(new $H(S,E))&&k.setVisible(!1)):k.setVisible(!1)}},fwd=function(k){k.hasTitleCloseButton_=!1;
k.titleCloseEl_&&_.Em(k.titleCloseEl_,k.hasTitleCloseButton_)};
d7.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;d7.superClass_.disposeInternal.call(this)};
d7.prototype.onButtonClick_=function(k){a:{for(k=k.target;k!=null&&k!=this.buttonEl_;){if(k.tagName=="BUTTON")break a;k=k.parentNode}k=null}if(k&&!k.disabled){k=k.name;var E=this.buttons_.get(k);this.dispatchEvent(new $H(k,E))&&this.setVisible(!1)}};
d7.prototype.onKey_=function(k){var E=!1,S=!1,R=this.buttons_,V=k.target;if(k.type=="keydown")if(this.escapeToCancel_&&k.keyCode==27){var N=R&&R.cancelButton_;V=V.tagName=="SELECT"&&!V.disabled;N&&!V?(S=!0,E=R.get(N),E=this.dispatchEvent(new $H(N,E))):V||(E=!0)}else{if(k.keyCode==9&&k.shiftKey&&V==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(T){}Fc(this.resetBackwardTabWrap_,0,this)}}else if(k.keyCode==13){if(V.tagName=="BUTTON"&&!V.disabled)N=V.name;
else if(V==this.titleCloseEl_)$68(this);else if(R){var h=R.defaultButton_,J;if(J=h)a:{J=Hy("BUTTON",R.JSC$10171_element_);for(var m,a=0;m=J[a];a++)if(m.name==h||m.id==h){J=m;break a}J=null}V=(V.tagName=="TEXTAREA"||V.tagName=="SELECT"||V.tagName=="A")&&!V.disabled;!J||J.disabled||V||(N=h)}N&&R&&(S=!0,E=this.dispatchEvent(new $H(N,String(R.get(N)))))}else V!=this.titleCloseEl_||k.keyCode!=32&&k.key!=" "||$68(this);if(E||S)k.stopPropagation(),k.preventDefault();E&&this.setVisible(!1)};
var $H=function(k,E){this.type="dialogselect";this.key=k;this.caption=E};
_.dy($H,_.mL);var Dm=function(k){xH.call(this);k||rT();this.cancelButton_=this.JSC$10171_element_=this.defaultButton_=null};
_.dy(Dm,xH);_.I=Dm.prototype;_.I.clear=function(){xH.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.I.set=function(k,E,S,R){xH.prototype.set.call(this,k,E);S&&(this.defaultButton_=k);R&&(this.cancelButton_=k);return this};
_.I.addButton=function(k,E,S){return this.set(k.key,k.caption,E,S)};
_.I.render=function(){if(this.JSC$10171_element_){_.nR(this.JSC$10171_element_,c6e);var k=rT(this.JSC$10171_element_);this.forEach(function(E,S){E=k.JSC$9323_createDom("BUTTON",{name:S},E);S==this.defaultButton_&&(E.className="goog-buttonset-default");this.JSC$10171_element_.appendChild(E)},this)}};
_.I.decorate=function(k){if(k&&k.nodeType==1){this.JSC$10171_element_=k;k=Hy("BUTTON",this.JSC$10171_element_);for(var E,S,R,V=0;E=k[V];V++)if(S=E.name||E.id,R=ehp(E)||E.value,S){var N=V==0;this.set(S,R,N,E.name=="cancel");N&&_.bY(E,"goog-buttonset-default")}}};
_.I.getElement=function(){return this.JSC$10171_element_};
var unT={key:"ok",caption:"OK"},x65={key:"cancel",caption:"Cancel"},vFA={key:"yes",caption:"Yes"},bf4={key:"no",caption:"No"},Zf5={key:"save",caption:"Save"},d6Y={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new Dm).addButton(unT,!0,!0),(new Dm).addButton(unT,!0).addButton(x65,!1,!0),(new Dm).addButton(vFA,!0).addButton(bf4,!1,!0),(new Dm).addButton(vFA).addButton(bf4,!0).addButton(x65,!1,!0),(new Dm).addButton(d6Y).addButton(Zf5).addButton(x65,!0,!0));_.dy(kpA,d7);_.dy(EZt,sa);var sdC=_.ry(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),lwz=_.ry(["//apis.google.com/js/rpc.js"]),J61=_.BH(sdC),hdR=_.BH(lwz),RdI=null;var MT=function(k,E){_.wG.call(this);this.JSC$10180_element_=k;k=_.IW(this.JSC$10180_element_)?this.JSC$10180_element_:this.JSC$10180_element_?this.JSC$10180_element_.body:null;this.isRtl_=!!k&&_.oy8(k);this.listenKey_=_.wX(this.JSC$10180_element_,_.ze?"DOMMouseScroll":"mousewheel",this,E)};
_.dy(MT,_.wG);MT.prototype.handleEvent=function(k){var E=0,S=0,R=k.event_;R.type=="mousewheel"?(k=MXd(-R.wheelDelta),R.wheelDeltaX!==void 0?(E=MXd(-R.wheelDeltaX),S=MXd(-R.wheelDeltaY)):S=k):(k=R.detail,k>100?k=3:k<-100&&(k=-3),R.axis!==void 0&&R.axis===R.HORIZONTAL_AXIS?E=k:S=k);typeof this.maxDeltaX_==="number"&&(E=_.Bt(E,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(S=_.Bt(S,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(E=-E);E=new qJ2(k,R,E,S);this.dispatchEvent(E)};
var MXd=function(k){return _.Qb&&(_.Xed||UA8)&&k%40!=0?k:k/40};
MT.prototype.disposeInternal=function(){MT.superClass_.disposeInternal.call(this);av(this.listenKey_);this.listenKey_=null};
var qJ2=function(k,E,S,R){_.eL.call(this,E);this.type="mousewheel";this.detail=k;this.deltaX=S;this.deltaY=R};
_.dy(qJ2,_.eL);_.$z=function(k){var E="instance_";if(k.instance_&&k.hasOwnProperty(E))return k.instance_;E=new k;return k.instance_=E};var ix1;var zGz=_.ry(["https://about:blank"]),Qdd=_.ry(['javascript:""']),Ofj=_.ry(["about:blank"]);_.dy(S$,kpA);_.I=S$.prototype;_.I.JSC$10188_url_="";_.I.JSC$10188_iframe_=null;_.I.iframeLoaded_=!1;_.I.loadedFired_=!1;_.I.callback_=function(){};
_.I.enterDocument=function(){S$.superClass_.enterDocument.call(this);IJh(this.getBackgroundElement(),pt(this))};
_.I.render=function(k){var E=this;S$.superClass_.render.call(this,k);this.useGapi_?OZd(this.iframeManager_,window).then(function(){return G95(E)}).then(null,function(){E.callback_({action:"error"})}):Cc8(this)};
var G95=function(k){var E=k.JSC$10137_dom_.JSC$9323_createDom("div",["picker-dialog-content","picker-frame"]);_.Em(E,!1);k.getContentElement().appendChild(E);return G2C(k.iframeManager_,E,function(S){var R=T7Y(S["iframe-command"]);switch(R.getCommand()){case 1:S=k.callback_;R=_.Tp(R,QM,2);var V="";switch(R.getStatus()){case 2:V="cancel";break;case 1:V="picked";break;case 3:V="error"}var N=_.cy(R,J2,2,_.mb(GIC));R=N.length===0?{action:V}:AwT(N,V,_.Tp(R,e24,7));S.call(k,R);k.setVisible(!1);break;case 4:fwd(k);
k.callback_({action:"loaded"});break;case 7:case 8:S=k.callback_;a:{V=R.getCommand();N=_.Tp(R,QM,2);switch(V){case 7:V="uploadScheduled";break;case 8:V="uploadStateChange";break;default:R={};break a}R=_.cy(N,J2,2,_.mb(GIC));if(R.length===0)R={action:V};else{var h=_.Tp(N,e24,7);N=h&&_.t2(h,1);h=Y2d(h);R=ywd(R,V,N,h)}}S.call(k,R)}},k.JSC$10188_url_,k.targetId_,k.rpcToken_).then(function(S){k.JSC$10188_iframe_=S.getIframeEl();
kRd(k);_.Em(k.JSC$10188_iframe_.parentElement,!0);_.bY(k.getElement(),"picker-dialog");Euj(k);return S})},Cc8=function(k){k.JSC$10188_iframe_=k.JSC$10137_dom_.JSC$9323_createDom("IFRAME",{id:k.targetId_,
name:k.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.GB(k.JSC$10188_iframe_,StA(k));_.bY(k.getElement(),"picker-dialog");k.getContentElement().appendChild(k.JSC$10188_iframe_);pt(k).listen(k.JSC$10188_iframe_,"load",function(){return void kRd(k)});
k.JSC$10188_iframe_.src=k.JSC$10188_url_;Euj(k)},Vmj=function(k){RPC(k,(0,_.uk)(function(E){E.setAuthToken(this.targetId_,this.rpcToken_)},k))},Euj=function(k){var E=_.Cu(_.Gx(k.JSC$10188_url_),"title");
E&&k.setTitle(E)},StA=function(k){return _.FIR("Internet Explorer")>=7&&_.I1(k.JSC$10188_url_,"https")?_.BH(zGz):_.qX?_.BH(Qdd):_.BH(Ofj)},kRd=function(k){Vmj(k);
k.iframeLoaded_=!0;k.JSC$10188_iframe_.tabIndex=0;k.isVisible()&&k.focus()};
S$.prototype.handleKeydown_=function(k){k.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),k.stopPropagation(),k.preventDefault())};
var RPC=function(k,E){var S=k.JSC$10186_gadgetsDomHelper_;Vvl(function(){E(S.getWindow().gadgets.rpc)},S)};
S$.prototype.setUrl=function(k){k=_.kO(new _.DZ(k),"rpcService",this.targetId_);_.kO(k,"rpctoken",this.rpcToken_);_.kH(k,"rpctoken="+this.rpcToken_);_.zA(k,"https");this.JSC$10188_url_=k.toString();this.JSC$10188_iframe_&&(this.JSC$10188_iframe_.src=this.JSC$10188_url_)};
var NW8=function(k,E){k.callback_=E;RPC(k,(0,_.uk)(function(S){S.register(this.targetId_,(0,_.uk)(this.handlePickerAction_,this))},k))};
S$.prototype.handlePickerAction_=function(k){var E=k.action;E=="loaded"&&(this.loadedFired_=!0,IZY(this,new CJh(this.isVisible())),nuC(this),fwd(this),pt(this).unlisten(this.JSC$10137_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10188_iframe_.tabIndex=0);E!="picked"&&E!="cancel"||this.setVisible(!1);this.callback_(k)};
var nuC=function(k){k.JSC$10188_appId_&&IZY(k,new GVA(k.JSC$10188_appId_,window.location.protocol+"//"+window.location.host))};
S$.prototype.setRelayUrl=function(k){RPC(this,(0,_.uk)(function(E){E.setRelayUrl(this.targetId_,k)},this))};
var IZY=function(k,E){k.useGapi_&&RGT(E,k.iframeManager_).then(null,function(){k.callback_({action:"error"})});
RPC(k,(0,_.uk)(function(S){S.call(this.targetId_,"picker",null,E)},k))};
S$.prototype.resizePicker_=function(){var k=ZB(this.JSC$10137_dom_.JSC$9321_document_)||window;if(_.Cu(_.Gx(this.JSC$10188_url_),"ignoreLimits")=="true")k=new _.KO(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Cu(_.Gx(this.JSC$10188_url_),"shadeDialog")=="true"){var E=Lt5(this);E=XH5(E);var S=_.pO(k);k=S.width-80;S=S.height-40;E&&(k-=E.left?E.left:0,k-=E.right?E.right:0,S-=E.top?E.top:0,S-=E.bottom?E.bottom:0);k=new _.KO(k>0?k:0,S>0?S:0)}else(E=this.preferredDialogWidth_)?(E=Math.max(320,
Math.min(1051,E)),(S=this.preferredDialogHeight_)||(S=_.pO(k).height*.85),S=Math.max(480,Math.min(650,S))):(E=_.pO(k),S=E.width*.618,S=S<E.height?Math.round(Math.max(480,Math.min(650,S*.85))):Math.round(Math.max(480,Math.min(650,E.height*.85))),E=Math.round(S/.618)),k=_.pO(k),E=Math.min(E,Math.max(k.width,320)),S=Math.min(S,Math.max(k.height,480)),k=new _.KO(E,S);_.BTj(this.getContentElement(),k);this.reposition()};
S$.prototype.reposition=function(){if(_.Cu(_.Gx(this.JSC$10188_url_),"shadeDialog")=="true"){var k=W7T(this.getElement()),E=_.pO(this.JSC$10137_dom_.getWindow());k=Math.floor(E.width/2-k.width/2);E=Lt5(this);if(E=XH5(E)){var S=E.left?E.left:0;S+=E.right?E.right:0;k=Math.floor(k-S/2)}k=k>0?k:0;E=Ax(this.JSC$10137_dom_).y;r9(this.getElement(),k,E)}else S$.superClass_.reposition.call(this)};
S$.prototype.setVisible=function(k){if(k!=this.isVisible()&&this.autoSizeDialog_){var E=this.JSC$10137_dom_.getWindow();k?(this.resizePicker_(),pt(this).listen(E,"resize",this.resizePicker_),this.iframeLoaded_||pt(this).listen(E,"keydown",this.handleKeydown_)):(pt(this).unlisten(E,"resize",this.resizePicker_),this.iframeLoaded_||pt(this).unlisten(E,"keydown",this.handleKeydown_))}S$.superClass_.setVisible.call(this,k);IZY(this,new CJh(k))};
S$.prototype.focus=function(){S$.superClass_.focus.call(this);if(this.JSC$10188_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10188_iframe_.focus()}catch(k){}};var FD=function(k,E){E=E===void 0?S$:E;sa.call(this,k);this.pickerConstructor=E;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(k=window.location.origin)||(k=window.location.protocol+"//"+window.location.host);k&&this.urlParamMap_.set("origin",k);this.postProcessors_=[]};
_.y(FD,EZt);FD.prototype.JSC$10193_disposeOnHide_=!1;
FD.prototype.build=function(){this.JSC$10094_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10094_appId_);this.getRelayUrl()||this.setRelayUrl(_.GA(_.kH(_.C3(_.Gx(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var k=new this.pickerConstructor(iIj(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);k.JSC$10170_disposeOnHide_=this.JSC$10193_disposeOnHide_;
k.JSC$10188_appId_=this.JSC$10094_appId_;k.loadedFired_&&nuC(k);NW8(k,this.callback_);return k};
var hPd=function(k){k.urlParamMap_.set("multiselectEnabled","true");return k};
_.I=FD.prototype;_.I.getHeight=function(){return this.dialogHeight_};
_.I.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.I.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.I.getTitle=function(){return this.urlParamMap_.get("title")};
_.I.getWidth=function(){return this.dialogWidth_};
var JIY=function(k){k.JSC$10193_disposeOnHide_=void 0;return k};
FD.prototype.setRelayUrl=function(k){this.urlParamMap_.set("parent",k);return this};
var cId=function(k,E){k.urlParamMap_.set("selectButtonLabel",E);return k};
FD.prototype.setSize=function(k,E){this.dialogWidth_=k;this.dialogHeight_=E;return this};
FD.prototype.setTitle=function(k){this.urlParamMap_.set("title",k);return this};
var iIj=function(k){k.postProcessors_.length&&k.urlParamMap_.set("pp",JSON.stringify(k.postProcessors_));k.urlParamMap_.set("nav",TmY(k.nav_));var E=new _.DZ(k.getBaseUrl());k.urlParamMap_.forEach(function(S,R){_.kO(E,R,S)});
return E};var aZ4=function(k,E){k.name!==void 0?(this.name=k.name,this.code=meT[k.name]):(this.code=k=k.code,this.name=ePp(k));_.Sh.call(this,DUC("%s %s",this.name,E))};
_.dy(aZ4,_.Sh);var ePp=function(k){var E=_.fO.findKey(meT,function(S){return k==S});
if(E===void 0)throw Error("hb`"+k);return E},ft={},meT=(ft.AbortError=3,ft.EncodingError=5,ft.InvalidModificationError=9,ft.InvalidStateError=7,ft.NotFoundError=1,ft.NotReadableError=4,ft.NoModificationAllowedError=6,ft.PathExistsError=12,ft.QuotaExceededError=10,ft.SecurityError=2,ft.SyntaxError=8,ft.TypeMismatchError=11,ft);var tmA=function(k,E){_.mL.call(this,k.type,E);this.event_=k};
_.dy(tmA,_.mL);var TW2=function(k,E,S){S===void 0&&(S=k.size);return k.slice?k.slice(E,S):null};var edI=new WeakMap,mGe=function(k,E){k=[k];for(var S=E.length-1;S>=0;--S)k.push(typeof E[S],E[S]);return k.join("\v")};_.tvh(function(){if(!_.Vt.Blob)return!1;var k=new Uint8Array(100);try{var E=new Blob([k])}catch(S){return!1}return E.size!=100?!1:!0});
var wi2=_.tvh(function(){if(!_.Vt.Blob)return!1;var k=new Uint8Array(100);try{var E=new Blob([k])}catch(S){return!1}return TW2(E,0,1)===null?!1:!0});_.Vt.U3bHHf!=null||(_.Vt.U3bHHf=0);_.Vt.U3bHHf++;_.PWC=new WeakMap;_.BWd=new WeakMap;var wVe={};var Nn=void 0;var Bvl=Symbol("pb");var r6j=iI("WizInjectionContext_Dispatcher");var a2=Symbol("qb");var U4,u$;U4=function(){this.afterRenderCallbacks=null};
_.Yt1=Symbol("rb");u$=function(k){this.props=k;this.__unmounted=!1};
u$.prototype.didPatch=function(){};
u$.prototype.didMount=function(){};
u$.prototype.didUnmount=function(){};
u$.prototype.didUpdate=function(){};_.UG1=iI("WizInjectionContext_RootElement");var Kq1=iI("WizInjectionContext_AppContext"),Hx1=iI("WizInjectionContext_ModelRootElement"),pVi=iI("WizInjectionContext_RendererData"),A6t=iI("WizInjectionContext_InjectingConstructor"),gZ1=iI("WizInjectionContext_AsyncDeps"),uTh={};var fJh=!1;var dGl={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:B12,enableLazyTsx:Yjz,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:PC2,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var JN=Object.assign({},{attributes:{},handleError:function(k){throw k;}},dGl);var YtY=Symbol("vb"),po=Symbol("wb"),S2I=Symbol("xb"),k2j=Symbol("yb"),hRt=x2(function(k){return cX(k)&&YtY in k});var OxI=Symbol("zb"),vY={},zdh=(vY[OxI]=!0,vY.debugName="[component]",vY.getComponentStack=function(){for(var k=[],E=this;E;)GpI(E)&&k.push(E.debugName),E=E.parent;return k},vY.registerSignal=function(){},vY.registerEffect=function(){},vY);var mh=null,ae=!1,TL=1,WX=Symbol("Db"),Um={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 bd=Symbol("Eb"),Zm=Symbol("Fb"),PX=Symbol("Gb"),Xvi=Object.assign({},Um,{value:bd,dirty:!0,error:null,equal:CXm,kind:"computed",producerMustRecompute:function(k){return k.value===bd||k.value===Zm},
producerRecomputeValue:function(k){if(k.value===Zm)throw Error("Z");var E=k.value;k.value=Zm;var S=Ngj(k),R=!1;try{var V=k.computation();e$(null);R=E!==bd&&E!==PX&&V!==PX&&k.equal(E,V)}catch(N){V=PX,k.error=N}finally{e$(S),k&&nfC(k)}R?k.value=E:(k.value=V,k.version++)}});Object.assign({},Um,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var KEm=function(){throw Error();};var AD1=null,Ud1=Object.assign({},Um,{equal:CXm,value:void 0,kind:"signal"});var rDe=Object.assign({},Um,{value:bd,dirty:!0,error:null,equal:CXm,kind:"linkedSignal",producerMustRecompute:function(k){return k.value===bd||k.value===Zm},
producerRecomputeValue:function(k){if(k.value===Zm)throw Error("Z");var E=k.value;k.value=Zm;var S=Ngj(k);try{var R=k.source();var V=k.computation(R,E===bd||E===PX?void 0:{source:k.sourceValue,value:E});k.sourceValue=R}catch(N){V=PX,k.error=N}finally{e$(S),k&&nfC(k)}E!==bd&&V!==PX&&k.equal(E,V)?k.value=E:(k.value=V,k.version++)}});Object.assign({},Um,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(k){k.schedule!==null&&k.schedule(k.ref)},
cleanupFn:function(){}});var LE1=Symbol("Hb"),oe=Symbol("Ib");var XF=Array.isArray;var sWI;var WSC={},Mlm=ddI(Object.assign({},{consumerAllowSignalWrites:!0},WSC)),KV=ddI(Object.assign({},{consumerAllowSignalWrites:!0},WSC));var AN=0,rt=!1,d$=function(){this.queue=new Set};
d$.prototype.schedule=function(k){this.queue.add(k)};
d$.prototype.remove=function(k){this.queue.delete(k)};
d$.prototype.clear=function(){this.queue.clear()};
var QWi=Symbol("Nb"),qch=Symbol("Ob"),sI=function(){d$.apply(this,arguments)};
_.y(sI,d$);sI.prototype.flush=function(){if(this.queue.size){rt=!0;for(var k=_.n(this.queue),E=k.next();!E.done;E=k.next()){E=E.value;this.queue.delete(E);try{E.run()}catch(S){FS2(S)}}rt=!1}};
var yIY=function(){sI.apply(this,arguments)};
_.y(yIY,sI);var zxI=new yIY,ou2=function(){sI.apply(this,arguments)};
_.y(ou2,sI);ou2.prototype.schedule=function(k){var E=this;return _.c(function(S){if(S.nextAddress==1)return JN.enableQueueEffectAndOnInitInitialRuns?S.jumpTo(2):S.yield(Promise.resolve(),3);if(S.nextAddress!=2)return k.run(),S.return();E.queue.add(k);_.KR(S)})};
var O2l=new ou2,ld=function(){d$.apply(this,arguments)};
_.y(ld,d$);ld.prototype.flush=function(){this.queue.size&&JwA(this.queue)};
var XiC=function(){ld.apply(this,arguments)};
_.y(XiC,ld);XiC.prototype.schedule=function(k){k.hasRun?this.queue.add(k):k.run()};
XiC.prototype.flush=function(){if(this.queue.size)if(JN.flushRenderEffectsDuringRender){var k=this.queue;this.queue=new Set;JwA(k)}else JwA(this.queue)};
var CMC=new XiC,guC=function(){ld.apply(this,arguments)};
_.y(guC,ld);guC.prototype.schedule=function(k){var E=this;return _.c(function(S){if(S.nextAddress==1)return JN.enableQueueEffectAndOnInitInitialRuns||k.hasRun?S.jumpTo(2):S.yield(Promise.resolve(),3);if(S.nextAddress!=2)return k.run(),S.return();E.queue.add(k);_.KR(S)})};
var RR1=new guC,Ued=function(){ld.apply(this,arguments)};
_.y(Ued,ld);var E6h=new Ued,Nml=[CMC,zxI,E6h],iZC=[O2l,RR1],HId=[CMC,E6h,RR1],cwe=[].concat(_.$e(Nml),_.$e(iZC)),KSC=[];AD1=function(){n6m();for(var k=_.n(KSC),E=k.next();!E.done;E=k.next())E=E.value,E()};
var FS2=NA;var Lo=Symbol("Pb");var xO=null,alC,t9m=null,Tm1;var Mw={},piz=Object.assign({},Um,(Mw[YtY]=!0,Mw.effectType=po,Mw.isResettableContext=!0,Mw.hasRun=!1,Mw.effectFn=null,Mw.consumerIsAlwaysLive=!0,Mw.consumerAllowSignalWrites=!0,Mw.consumerMarkedDirty=V9h,Mw.kind="effect",Mw.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(ae)throw Error("Qb");this.dirty=!1;if(!this.hasRun||Scl(this)){this.hasRun=!0;XVR(this);var k=_.Ie(this),E=Ngj(this);lJb("effectRun",this.debugName);try{fo(this.effectFn,this.componentStack,this)}catch(S){throw JN.enableContextBasedComponentStacks&&
DK(S),S;}finally{MvI("effectRun",this.debugName),e$(E),this&&nfC(this),_.Ie(k)}}}},Mw.componentStack=void 0,Mw.debugName="[effect]",Mw[Symbol.dispose]=function(){if(tN(this))for(var k=this.producers;k!==void 0;)k=Idb(k);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;k=_.n(HId);for(var E=k.next();!E.done;E=k.next())E.value.remove(this);oZm(this)},Mw));var Bmt=Object.assign({},piz,{effectType:S2I});var FFA=Symbol("Rb");var ywI=Object.assign({},piz,{effectType:po});var IwC=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 g6h={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},Xn1=
{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}]}},BSR={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},KF1=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],HZm={"*":{async:1,dir:0,loading:2,target:3}};var AIA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,qw={},Awh=(qw[1]=null,qw[2]=function(k,E){return E instanceof qU?OX(E):bu.toString()},qw[3]=function(k,E){return jr(E)?_.DF(E):AIA.test(String(E))?String(E):bu.toString()},qw[4]=function(k,E){return E instanceof Kg?_.AJ(E):bu.toString()},qw[5]=function(k,E){return String(E)},qw[7]=null,qw[8]=null,qw[10]=null,qw);var ghe=Symbol("Ub");var cih=function(k){var E=rIC,S=k,R="",V="",N=1;k<0&&(k=-k);if(k===Infinity)k=(Infinity*Math.sign(S)).toString();else{for(var h=0;h<ueC.length;h++){var J=ueC[h];N=E[J];if(k>=N||N<=1&&k>.1*N){R=J;break}}R?(R+="B",V=" "):N=1;k=Math.round(S/N*10)/10+V+R}return k},ueC="Y Z E P T G M K  m u n".split(" "),rIC={"":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};_.xeY=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 Yk={};RegExp.prototype.hasOwnProperty("sticky");var if1=function(k){k=String(k);for(var E=function(R,V,N){for(var h=Math.min(V.length-N,R.length),J=0;J<h;J++){var m=V[N+J];if(R[J]!==("A"<=m&&m<="Z"?m.toLowerCase():m))return!1}return!0},S=0;(S=k.indexOf("<",S))!=-1;){if(E("\x3c/script",k,S)||E("\x3c!--",k,S))return"zSoyz";
S+=1}return k};var Qg={default:"__default"};var Dm1=Object.prototype.hasOwnProperty;xmb.prototype=Object.create(null);var Jw=v6I();var hj=null;var C2R=function(k){this.created=[];this.deleted=[];this.node=k};var k9h=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var k=this,E=k;k;)E=k,k=k.parentNode;return E};var ZZ1=function(k,E){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=k;this.key=E;this.text=void 0};var R2=null,Vh=null,Co=null,I2=null,q21=[],M9I=ss1,nV=[],i$=[],Xpm=function(k){return EFI(function(E,S,R){Co=Vh=E;Vh=null;S(R);ll1(null);Vh=Co;Co=Co.parentNode;return E},k)}(),ohI=function(k){return EFI(function(E,S,R){var V={nextSibling:E};
Vh=V;S(R);Co&&ll1(E.nextSibling);return V===Vh?null:Vh},k)}();var Jj=[],RGh=0;var cC=new xmb;var WM=new xmb;var LSC=v6I(),cBA=LSC[Qg.default],JBl=LSC.style,nFI=["focusin","focusout"],awI="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var kRI=function(){},Zfj=function(){},NWm=function(){},Sti=function(){};var ew=Symbol("bc");var BcR,Pc1=wkl;var o2=Symbol("cc");var Vml=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(" ")),
RPh=new Set(["a","font","script","style","title"]);_.F4={setUp:rB1,tearDown:rB1,log:rB1,logNodeRange:rB1,graft:function(k,E){E()}};var pV={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var Aj=null,r0=function(k,E){u$.call(this,k);var S=this;this.functionComponent=E;this.hooks=[];this.hookCounter=0;this.disposeEffects=ZK(function(R){S.effectContext=R;_.bI(function(){MXI(S,S.el)})},JN.alwaysTrackContexts||!!Nn)};
_.y(r0,u$);r0.prototype.render=function(k){var E=Aj;Aj=this;this.hookCounter=0;var S=e$(KV),R=_.Ie(this.effectContext);try{return lJb("render",this.componentName),this.functionComponent(k)}finally{MvI("render",this.componentName),_.Ie(R),e$(S),Aj=E}};
_.mt.Object.defineProperties(r0.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return mmh(this.functionComponent)}}});var IZI=Symbol("qc"),G9j=function(k,E,S){this.afterRenderCallbacks=null;this.kind=k;this.props=E;this.children=S};
_.y(G9j,U4);G9j.prototype.render=function(){var k=Ofl(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var E=_.n(this.afterRenderCallbacks),S=E.next();!S.done;S=E.next())S=S.value,k=S(k);return k};
G9j.prototype.getChildren=function(){return this.children};var iIl=[];KEm=function(k){throw Error("ob`"+k.debugName);};
(function(){var k=hj;hj=function(E){k==null||k(E);hPt(E)}})();Object.assign({},piz,{effectType:po,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var k=this.elementRef;var E;k.element!=null||(k.element=(E=k.document.getElementById(k.value))!=null?E:void 0);k=k.element;for(E=this.attributes;E;){var S=E.signal();S!==E.prevValue&&(E.prevValue=S,E.namespace===1?k[E.name]=S:IwC.has(E.name)?zL(k,E.name,S?"":null):zL(k,E.name,S));E=E.next}}});_.xk.debugName="tbhMcf";_.LV.debugName="zyMFzb";Object.assign({},piz,{effectType:po,hasRun:!0});_.t.debugName="RlDudd";var JII={nonNullableCondIsNull:function(){return Error("uc")}};var TWb=function(){this.map=new Map};
TWb.prototype.push=function(k,E){var S=this.map;S.has(k)&&(this.multi||(this.multi=new Map),this.multi.set(E,S.get(k)));S.set(k,E)};
TWb.prototype.pop=function(k){var E=this.map,S=E.get(k),R;S!==void 0&&((R=this.multi)==null?0:R.has(S))?(E.set(k,this.multi.get(S)),this.multi.delete(S)):E.delete(k);return S};_.jw.debugName="nsTGHd";_.D_.debugName="vI1rtf";_.FSb={OUT_OF_ORDER_HOOK_CALL:function(k){return Error("vc`"+k)},
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(k,E){return Error("zc`"+((E===void 0?0:E)?"IDOM":"Reactive")+"`"+($k(k)?k.description:k))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(k,E){return Error("Ac`"+($k(k)?k.description:k)+"`"+E)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(k){return Error("Bc`"+($k(k)?k.description:k))},
USE_ELEMENT_NOT_ASSIGNED:function(k){return Error("Cc`"+($k(k)?k.description:k))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(k){return Error("Dc`"+($k(k)?k.description:k))}};BcR=Ccm;var HII=Symbol("Ec");sdh({beforeRender:function(k){var E=_.Ie(k.effectContext);try{var S;((S=k.__syncEffects)==null?0:S.length)&&AIi(k.__syncEffects)}finally{_.Ie(E)}},
didPatch:function(k){var E=_.Ie(k.effectContext);try{var S;((S=k.__syncEffects)==null?0:S.length)&&AIi(k.__syncEffects)}finally{_.Ie(E)}},
didUnmount:function(k){var E;((E=k.hooks)==null?0:E.length)&&k.hooks.forEach(pie)}});var jr2,DeY,$eT;jr2=_.Vt.window;_.s4=(jr2==null?void 0:(DeY=jr2.yt)==null?void 0:DeY.config_)||(jr2==null?void 0:($eT=jr2.ytcfg)==null?void 0:$eT.data_)||{};_.J6("yt.config_",_.s4);var fZY={},jrb=[];_.LC=function(k){var E=_.sX.apply(1,arguments);var S=Error.call(this,k);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.args=[].concat(_.$e(E));Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(_.LC,Error);var S6h=function(k,E,S){this.actionName=k;this.optionalAction=E===void 0?!1:E;this.args=S===void 0?null:S;this.returnValue=[]};_.z_=function(k){this.name=k};_.zU=new _.z_("signalAction");var qtI=/^[\w.]*$/,bIh={q:!0,search_query:!0},vui=String(fZI);var au;au=Symbol("Fc");_.QE=function(k){this.name=k};
_.QE.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var zPh=function(k){this.key=k},kXe=function(k){this.deferredKey=k},OIt=function(){var k=this;
this.providers=new Map;this.JSC$10488_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(k.providers)}}};
OIt.prototype.addProvider=function(k){this.providers.set(k.provide,k);var E=this.JSC$10488_deferred.get(k.provide);if(E)try{E.resolver(this.resolve(k.provide))}catch(S){E.rejector(S)}};
OIt.prototype.resolve=function(k){return k instanceof kXe?vuA(this,k):k instanceof zPh?bIT(this,k.key,[],!0):bIT(this,k,[])};
var vuA=function(k,E){E=E.deferredKey;if(k.JSC$10488_deferred.has(E))return k.JSC$10488_deferred.get(E).promise;var S={};S.promise=new Promise(function(R,V){S.resolver=R;S.rejector=V});
k.JSC$10488_deferred.set(E,S);return S.promise},bIT=function(k,E,S,R){R=R===void 0?!1:R;
if(S.indexOf(E)>-1)throw Error("Gc`"+E);if(k.cachedValues.has(E))return k.cachedValues.get(E);if(!k.providers.has(E)){if(R)return;throw Error("Hc`"+E);}R=k.providers.get(E);S.push(E);if(R.useValue!==void 0)var V=R.useValue;else if(R.useFactory)V=R[au]?ZIz(k,R[au],S):[],V=R.useFactory.apply(R,_.$e(V));else if(R.useClass){V=R.useClass;var N=V[au]?ZIz(k,V[au],S):[];V=new (Function.prototype.bind.apply(V,[null].concat(_.$e(N))))}else throw Error("Ic`"+E);S.pop();R.skipCache||k.cachedValues.set(E,V);return V},
ZIz=function(k,E,S){return E?E.map(function(R){return R instanceof zPh?bIT(k,R.key,S,!0):bIT(k,R,S)}):[]};var Qrm;var QF=new _.QE("ENDPOINT_HANDLER_TOKEN");_.Oc=new _.z_("urlEndpoint");var de4=function(){this.data=[];this.cachedPackedInt52=-1};
de4.prototype.set=function(k,E){E=E===void 0?!0:E;0<=k&&k<52&&Number.isInteger(k)&&this.data[k]!==E&&(this.data[k]=E,this.cachedPackedInt52=-1)};
de4.prototype.get=function(k){return!!this.data[k]};
var sr2=function(k){k.cachedPackedInt52===-1&&(k.cachedPackedInt52=k.data.reduce(function(E,S,R){return E+(S?Math.pow(2,R):0)},0));
return k.cachedPackedInt52};var ave=function(k){var E=lZC;k=k===void 0?_.CV("yt.ads.biscotti.lastId_")||"":k;var S=Object,R=S.assign,V={};V.dt=d3d;V.flash="0";a:{try{var N=E.JSC$10494_win_.top.location.href}catch(kb){N=2;break a}N=N?N===E.doc_.location.href?0:1:2}V=(V.frm=N,V);try{V.u_tz=-(new Date).getTimezoneOffset();try{var h=L3.history.length}catch(kb){h=0}V.u_his=h;var J;V.u_h=(J=L3.screen)==null?void 0:J.height;var m;V.u_w=(m=L3.screen)==null?void 0:m.width;var a;V.u_ah=(a=L3.screen)==null?void 0:a.availHeight;var T;V.u_aw=
(T=L3.screen)==null?void 0:T.availWidth;var w;V.u_cd=(w=L3.screen)==null?void 0:w.colorDepth}catch(kb){}h=E.JSC$10494_win_;try{var P=h.screenX;var B=h.screenY}catch(kb){}try{var F=h.outerWidth;var K=h.outerHeight}catch(kb){}try{var r=h.innerWidth;var x=h.innerHeight}catch(kb){}try{var L=h.screenLeft;var q=h.screenTop}catch(kb){}try{r=h.innerWidth,x=h.innerHeight}catch(kb){}try{var M=h.screen.availWidth;var d=h.screen.availTop}catch(kb){}P=[L,q,P,B,M,d,F,K,r,x];B=UTj(!1,E.JSC$10494_win_.top);F={};
var z=z===void 0?_.Vt:z;K=new de4;"SVGElement"in z&&"createElementNS"in z.document&&K.set(0);r=vep();r["allow-top-navigation-by-user-activation"]&&K.set(1);r["allow-popups-to-escape-sandbox"]&&K.set(2);z.crypto&&z.crypto.subtle&&K.set(3);"TextDecoder"in z&&"TextEncoder"in z&&K.set(4);z=sr2(K);E=(F.bc=z,F.bih=B.height,F.biw=B.width,F.brdim=P.join(),F.vis=P$1(E.doc_),F.wgl=!!L3.WebGLRenderingContext,F);S=R.call(S,V,E);S.ca_type="image";k&&(S.bid=k);return S},lZC=new function(){var k=window.document;
this.JSC$10494_win_=window;this.doc_=k};
_.J6("yt.ads_.signals_.getAdSignalsString",function(k){return ZIe(ave(k))});_.ZO();navigator.userAgent.indexOf(" (CrKey ");var Nq1="XMLHttpRequest"in _.Vt?function(){return new XMLHttpRequest}:null;var MmC="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),qtY=[].concat(_.$e(MmC),["client_dev_set_cookie"]);var eM1={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"},izI="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(_.$e(MmC)),yXi=!1,JXI=_.tdt,Yvl=mah;var lDC=[{messageFn:function(k){return"Cannot read property '"+k.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(k){return"Cannot call '"+k.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(k){return k.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var zPT={messageWeights:[],callbackWeights:[{callback:Uam,weight:500},{callback:Hzh,weight:500}]};var Qr8=function(){this.callbackWeights=[];this.messageWeights=[]},OId,sZC=function(){if(!OId){var k=OId=new Qr8;
k.messageWeights.length=0;k.callbackWeights.length=0;kqi(k,zPT)}return OId},kqi=function(k,E){E.messageWeights&&k.messageWeights.push.apply(k.messageWeights,E.messageWeights);
E.callbackWeights&&k.callbackWeights.push.apply(k.callbackWeights,E.callbackWeights)};_.dy(_.H_,_.r7);_.H_.prototype.subscribe=function(k,E,S){var R=this.topics_[k];R||(R=this.topics_[k]=[]);var V=this.JSC$10518_key_;this.subscriptions_[V]=k;this.subscriptions_[V+1]=E;this.subscriptions_[V+2]=S;this.JSC$10518_key_=V+3;R.push(V);return V};
var GRC=function(k){var E=QZm,S=!1,R=E.subscribe("handleError",function(V){S||(S=!0,this.unsubscribeByKey(R),k.apply(void 0,arguments))},E)};
_.H_.prototype.unsubscribe=function(k,E,S){if(k=this.topics_[k]){var R=this.subscriptions_;if(k=k.find(function(V){return R[V+1]==E&&R[V+2]==S}))return this.unsubscribeByKey(k)}return!1};
_.H_.prototype.unsubscribeByKey=function(k){var E=this.subscriptions_[k];if(E){var S=this.topics_[E];this.publishDepth_!=0?(this.pendingKeys_.push(k),this.subscriptions_[k+1]=function(){}):(S&&_.ZR(S,k),delete this.subscriptions_[k],delete this.subscriptions_[k+1],delete this.subscriptions_[k+2])}return!!E};
_.H_.prototype.publish=function(k,E){var S=this.topics_[k];if(S){var R=Array(arguments.length-1),V=arguments.length,N;for(N=1;N<V;N++)R[N-1]=arguments[N];if(this.async_)for(N=0;N<S.length;N++)V=S[N],CWC(this.subscriptions_[V+1],this.subscriptions_[V+2],R);else{this.publishDepth_++;try{for(N=0,V=S.length;N<V&&!this.isDisposed();N++){var h=S[N];this.subscriptions_[h+1].apply(this.subscriptions_[h+2],R)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;S=this.pendingKeys_.pop();)this.unsubscribeByKey(S)}}return N!=
0}return!1};
var CWC=function(k,E,S){_.Bs(function(){k.apply(E,S)})};
_.H_.prototype.clear=function(k){if(k){var E=this.topics_[k];E&&(E.forEach(this.unsubscribeByKey,this),delete this.topics_[k])}else this.subscriptions_.length=0,this.topics_={}};
_.H_.prototype.getCount=function(k){if(k){var E=this.topics_[k];return E?E.length:0}k=0;for(E in this.topics_)k+=this.getCount(E);return k};
_.H_.prototype.disposeInternal=function(){_.H_.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var QZm=new _.H_;var BV=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(BV,_.iu);BV.prototype.getColdHashData=function(){return _.t2(this,3)};
BV.prototype.getHotHashData=function(){return _.t2(this,5)};
BV.prototype.setHotHashData=function(k){return _.uh(this,5,k)};var bri=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(bri,_.iu);var TbA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(TbA,_.iu);_.I=TbA.prototype;_.I.getDeviceId=function(){return _.t2(this,6)};
_.I.getExperimentIds=function(k){var E=_.OA(this,9,_.ia,3,!0);kYt(E,k);return E[k]};
_.I.getPlayerType=function(){return _.Tn(this,36)};
_.I.setHomeGroupInfo=function(k){return _.Xo(this,81,k)};
_.I.clearLocationPlayabilityToken=function(){return _.PV(this,89)};var gg=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(gg,_.iu);gg.prototype.setKey=function(k){return _.uh(this,1,k)};
gg.prototype.getValue=function(){return PS(this,2,P_h)};
var P_h=[2,3,4,5,6];var kXz=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(kXz,_.iu);kXz.prototype.setTrackingParams=function(k){return _.PV(this,1,_.AC(k,!1))};var w9t=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(w9t,_.iu);var s71=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(s71,_.iu);s71.prototype.getExperimentIds=function(k){var E=_.OA(this,5,_.Fde,3,!0);kYt(E,k);return E[k]};var p2=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(p2,_.iu);p2.prototype.getToken=function(){return _.Xb(this,2)};
p2.prototype.setToken=function(k){return _.uh(this,2,k)};var Hv=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Hv,_.iu);Hv.prototype.setSafetyMode=function(k){return _.wv(this,5,k)};var Xp=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Xp,_.iu);Xp.prototype.setClient=function(k){return _.Xo(this,1,k)};var dIC={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 ZrI;_.Tl=function(){var k=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Vt.addEventListener("beforeinstallprompt",function(E){E.preventDefault();k.deferredInstallPrompt=E});
_.Vt.addEventListener("appinstalled",function(){k.appInstalledEventFired=!0},{once:!0})};
ZrI=function(){if(!_.Vt.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Vt.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Vt.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Vt.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Vt.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(k){return"WEB_DISPLAY_MODE_UNKNOWN"}};var qp1=function(){this.syncHeaders=!0},zeC=function(k){var E={},S=[];
"USER_SESSION_ID"in _.s4&&S.push({key:"u",value:_.Mg("USER_SESSION_ID")});if(S=_.TJI(S))E.Authorization=S,S=k=k==null?void 0:k.sessionIndex,S===void 0&&(S=Number(_.Mg("SESSION_INDEX",0)),S=isNaN(S)?0:S),_.Y("voice_search_auth_header_removal")||(E["X-Goog-AuthUser"]=S.toString()),"INNERTUBE_HOST_OVERRIDE"in _.s4||(E["X-Origin"]=window.location.origin),k===void 0&&"DELEGATED_SESSION_ID"in _.s4&&(E["X-Goog-PageId"]=_.Mg("DELEGATED_SESSION_ID"));return E};var EAC={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var OI=_.CV("ytglobal.prefsUserPrefsPrefs_")||{},Svz;_.J6("ytglobal.prefsUserPrefsPrefs_",OI);_.G_=function(){this.cookieName=_.Mg("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Mg("ALT_PREF_COOKIE_DOMAIN","youtube.com");var k=_.pC.get(this.cookieName,void 0);k&&this.parse(k)};
_.nz=function(){Svz||(Svz=new _.G_);return Svz};
_.G_.prototype.get=function(k,E){RMY(k);Vdj(k);k=OI[k]!==void 0?OI[k].toString():null;return k!=null?k:E?E:""};
_.G_.prototype.set=function(k,E){RMY(k);Vdj(k);if(E==null)throw Error("Lc");OI[k]=E.toString()};
_.G_.prototype.getFlag=function(k){return!!((NqC("f"+(Math.floor(k/31)+1))||0)&1<<k%31)};
_.iD=function(k,E,S){k="f"+(Math.floor(E/31)+1);E=1<<E%31;var R=NqC(k)||0;R=S?R|E:R&~E;R===0?delete OI[k]:(S=R.toString(16),OI[k]=S.toString())};
_.G_.prototype.remove=function(k){RMY(k);Vdj(k);delete OI[k]};
_.G_.prototype.save=function(){var k=!0;_.Y("web_secure_pref_cookie_killswitch")&&(k=!1);_.A3(this.cookieName,this.dump(),63072E3,this.cookieDomain,k)};
_.G_.prototype.clear=function(){_.fO.clear(OI)};
_.G_.prototype.dump=function(){var k=[],E;for(E in OI)OI.hasOwnProperty(E)&&k.push(E+"="+encodeURIComponent(String(OI[E])));return k.join("&")};
var Vdj=function(k){if(/^f([1-9][0-9]*)$/.test(k))throw Error("Mc`"+k);},RMY=function(k){if(!/^\w+$/.test(k))throw Error("Nc`"+k);
},NqC=function(k){k=OI[k]!==void 0?OI[k].toString():null;
return k!=null&&/^[A-Fa-f0-9]+$/.test(k)?parseInt(k,16):null};
_.G_.prototype.parse=function(k){k=decodeURIComponent(k).split("&");for(var E=0;E<k.length;E++){var S=k[E].split("="),R=S[0];(S=S[1])&&(OI[R]=S.toString())}};var Da1={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"},lEI={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},MiA={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},fvh={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var GT;_.Ct=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.uM=function(k,E,S){return k.addJob(E,0,S)};
_.Ct.prototype.addLowPriorityJob=function(k,E){return this.addJob(k,1,E)};
_.aE=function(k,E,S){return k.addJob(E,2,S)};
_.kq=function(k,E,S){return k.addJob(E,3,S)};
_.Ch=function(k,E,S){return k.addJob(E,4,S)};
GT=function(k){var E=_.CV("yt.scheduler.instance.addImmediateJob");E?E(k):k()};
_.Ct.prototype.debounce=function(k,E,S){var R=this,V=0,N=function(){V&&R.cancelJob(V);V=R.addJob(k,E,S);R.cancelDebouncedJobMap.set(N,V)};
return N};
_.Ct.prototype.cancelThrottle=function(k){(k=this.cancelThrottledJobMap.get(k))&&k()};var kt=function(){_.Ct.apply(this,arguments)};
_.y(kt,_.Ct);_.eH=function(){kt.instance||(kt.instance=new kt);return kt.instance};
kt.prototype.addJob=function(k,E,S){S!==void 0&&Number.isNaN(Number(S))&&(S=void 0);var R=_.CV("yt.scheduler.instance.addJob");return R?R(k,E,S):S===void 0?(k(),NaN):_.W_(k,S||0)};
kt.prototype.cancelJob=function(k){if(k===void 0||!Number.isNaN(Number(k))){var E=_.CV("yt.scheduler.instance.cancelJob");E?E(k):_.ou(k)}};
kt.prototype.start=function(){var k=_.CV("yt.scheduler.instance.start");k&&k()};
kt.prototype.pause=function(){var k=_.CV("yt.scheduler.instance.pause");k&&k()};
_.ZJ=_.eH();_.jn.prototype.set=function(k,E){E===void 0?this.mechanism.remove(k):this.mechanism.set(k,(0,_.oL)(E))};
_.jn.prototype.get=function(k){try{var E=this.mechanism.get(k)}catch(S){return}if(E!==null)try{return JSON.parse(E)}catch(S){throw"Storage: Invalid value was encountered";}};
_.jn.prototype.remove=function(k){this.mechanism.remove(k)};var E0=function(k){this.mechanism=k};
_.dy(E0,_.jn);var Iv8=function(k){this.data=k},nA4=function(k){return k===void 0||k instanceof Iv8?k:new Iv8(k)};
E0.prototype.set=function(k,E){E0.superClass_.set.call(this,k,nA4(E))};
E0.prototype.getWrapper=function(k){k=E0.superClass_.get.call(this,k);if(k===void 0||k instanceof Object)return k;throw"Storage: Invalid value was encountered";};
E0.prototype.get=function(k){if(k=this.getWrapper(k)){if(k=k.data,k===void 0)throw"Storage: Invalid value was encountered";}else k=void 0;return k};_.dy(Dn,E0);_.izd=function(k){var E=k.creation;k=k.expiration;return!!k&&k<_.ZO()||!!E&&E>_.ZO()};
Dn.prototype.set=function(k,E,S){if(E=nA4(E)){if(S){if(S<_.ZO()){Dn.prototype.remove.call(this,k);return}E.expiration=S}E.creation=_.ZO()}Dn.superClass_.set.call(this,k,E)};
Dn.prototype.getWrapper=function(k,E){var S=Dn.superClass_.getWrapper.call(this,k);if(S)if(!E&&_.izd(S))Dn.prototype.remove.call(this,k);else return S};var S7=function(){};
S7.prototype.next=function(){return RK};
var RK={done:!0,value:void 0},VA=function(k){return{value:k,done:!1}};
S7.prototype.__iterator__=function(){return this};
_.hMp=function(k){if(k instanceof S7)return k;if(typeof k.__iterator__=="function")return k.__iterator__(!1);if(_.sj(k)){var E=0,S=new S7;S.next=function(){for(;;){if(E>=k.length)return RK;if(E in k)return VA(k[E++]);E++}};
return S}throw Error("Oc");};var JXd=function(k){if(k instanceof NN||k instanceof IK||k instanceof nY)return k;if(typeof k.next=="function")return new NN(function(){return k});
if(typeof k[Symbol.iterator]=="function")return new NN(function(){return k[Symbol.iterator]()});
if(typeof k.__iterator__=="function")return new NN(function(){return k.__iterator__()});
throw Error("Pc");},NN=function(k){this.func_=k};
NN.prototype.__iterator__=function(){return new IK(this.func_())};
NN.prototype[Symbol.iterator]=function(){return new nY(this.func_())};
NN.prototype.toEs6=function(){return new nY(this.func_())};
var IK=function(k){this.JSC$10602_iter_=k};
_.y(IK,S7);IK.prototype.next=function(){return this.JSC$10602_iter_.next()};
IK.prototype[Symbol.iterator]=function(){return new nY(this.JSC$10602_iter_)};
IK.prototype.toEs6=function(){return new nY(this.JSC$10602_iter_)};
var nY=function(k){NN.call(this,function(){return k});
this.JSC$10605_iter_=k};
_.y(nY,NN);nY.prototype.next=function(){return this.JSC$10605_iter_.next()};var cXC=function(){};var i5=function(){};
_.dy(i5,cXC);i5.prototype.getCount=function(){for(var k=0,E=_.n(this),S=E.next();!S.done;S=E.next())k++;return k};
i5.prototype[Symbol.iterator]=function(){return JXd(this.__iterator__(!0)).toEs6()};
i5.prototype.clear=function(){var k=Array.from(this);k=_.n(k);for(var E=k.next();!E.done;E=k.next())this.remove(E.value)};_.dy($r,i5);_.I=$r.prototype;_.I.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var k=this.storage_;if(k)try{k.setItem("__sak","1");k.removeItem("__sak");var E=!0}catch(S){E=S instanceof DOMException&&(S.name==="QuotaExceededError"||S.code===22||S.code===1014||S.name==="NS_ERROR_DOM_QUOTA_REACHED")&&k&&k.length!==0}else E=!1;this.cachedIsStorageAvailable_=E}return this.cachedIsStorageAvailable_};
_.I.set=function(k,E){hf(this);try{this.storage_.setItem(k,E)}catch(S){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.I.get=function(k){hf(this);k=this.storage_.getItem(k);if(typeof k!=="string"&&k!==null)throw"Storage mechanism: Invalid value was encountered";return k};
_.I.remove=function(k){hf(this);this.storage_.removeItem(k)};
_.I.getCount=function(){hf(this);return this.storage_.length};
_.I.__iterator__=function(k){hf(this);var E=0,S=this.storage_,R=new S7;R.next=function(){if(E>=S.length)return RK;var V=S.key(E++);if(k)return VA(V);V=S.getItem(V);if(typeof V!=="string")throw"Storage mechanism: Invalid value was encountered";return VA(V)};
return R};
_.I.clear=function(){hf(this);this.storage_.clear()};
_.I.key=function(k){hf(this);return this.storage_.key(k)};
var hf=function(k){if(k.storage_==null)throw Error("Qc");k.isAvailable()||NA(Error("Qc"))};_.dy(bzl,$r);_.dy(ZzA,$r);_.dy(fC,i5);fC.prototype.set=function(k,E){this.mechanism_.set(this.JSC$10620_prefix_+k,E)};
fC.prototype.get=function(k){return this.mechanism_.get(this.JSC$10620_prefix_+k)};
fC.prototype.remove=function(k){this.mechanism_.remove(this.JSC$10620_prefix_+k)};
fC.prototype.__iterator__=function(k){var E=this.mechanism_[Symbol.iterator](),S=this,R=new S7;R.next=function(){var V=E.next();if(V.done)return V;for(V=V.value;V.slice(0,S.JSC$10620_prefix_.length)!=S.JSC$10620_prefix_;){V=E.next();if(V.done)return V;V=V.value}return VA(k?V.slice(S.JSC$10620_prefix_.length):S.mechanism_.get(V))};
return R};_.qG=function(k){this.expiringStorage_=(k=_.dal(k))?new Dn(k):null;this.JSC$10624_domain_=document.domain||window.location.hostname};
_.I=_.qG.prototype;_.I.hasLocalStorage=function(){return!!this.expiringStorage_};
_.I.set=function(k,E,S,R){S=S||31104E3;this.remove(k);if(this.hasLocalStorage())try{this.expiringStorage_.set(k,E,Date.now()+S*1E3);return}catch(N){}var V="";if(R)try{V=escape((0,_.oL)(E))}catch(N){return}else V=escape(E);_.A3(k,V,S,this.JSC$10624_domain_)};
_.I.get=function(k,E){var S=void 0,R=!this.hasLocalStorage();if(!R)try{S=this.expiringStorage_.get(k)}catch(V){R=!0}if(R&&(S=_.pC.get(k,void 0))&&(S=unescape(S),E))try{S=JSON.parse(S)}catch(V){this.remove(k),S=void 0}return S};
_.I.remove=function(k){this.hasLocalStorage()&&this.expiringStorage_.remove(k);_.xah(k,"/",this.JSC$10624_domain_)};
_.I.getCreationTime=function(k){return this.hasLocalStorage()&&(k=(this.expiringStorage_.getWrapper(k)||{}).creation,typeof k==="number")?k:null};var lvj=function(){var k;return function(){k||(k=new _.qG("ytidb"));return k}}();var qv1;_.bJ=[];qv1=!1;var mII=zMb||Q_R;var Jf={},maT=(Jf.AUTH_INVALID="No user identifier specified.",Jf.EXPLICIT_ABORT="Transaction was explicitly aborted.",Jf.IDB_NOT_SUPPORTED="IndexedDB is not supported.",Jf.MISSING_INDEX="Index not created.",Jf.MISSING_OBJECT_STORES="Object stores not created.",Jf.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",Jf.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",Jf.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",Jf.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",Jf.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",Jf.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",Jf.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",Jf),cg={},eMY=(cg.AUTH_INVALID="ERROR",cg.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",cg.EXPLICIT_ABORT="IGNORED",
cg.IDB_NOT_SUPPORTED="ERROR",cg.MISSING_INDEX="WARNING",cg.MISSING_OBJECT_STORES="ERROR",cg.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",cg.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",cg.QUOTA_EXCEEDED="WARNING",cg.QUOTA_MAYBE_EXCEEDED="WARNING",cg.UNKNOWN_ABORT="WARNING",cg.INCOMPATIBLE_DB_VERSION="WARNING",cg),mr={},avz=(mr.AUTH_INVALID=!1,mr.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,mr.EXPLICIT_ABORT=!1,mr.IDB_NOT_SUPPORTED=!1,mr.MISSING_INDEX=!1,mr.MISSING_OBJECT_STORES=!1,mr.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,mr.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,mr.QUOTA_EXCEEDED=!1,mr.QUOTA_MAYBE_EXCEEDED=!0,mr.UNKNOWN_ABORT=!0,mr.INCOMPATIBLE_DB_VERSION=!1,mr),q3=function(k,E,S,R,V){E=E===void 0?{}:E;S=S===void 0?maT[k]:S;R=R===void 0?eMY[k]:R;V=V===void 0?avz[k]:V;_.LC.call(this,S,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:k},E));this.type=k;this.message=S;this.level=R;this.retryable=V;Object.setPrototypeOf(this,q3.prototype)};
_.y(q3,_.LC);var tdd=function(k,E){q3.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:E,foundObjectStores:k},maT.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,tdd.prototype)};
_.y(tdd,q3);var GXh=function(k,E){var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.index=k;this.objectStore=E;Object.setPrototypeOf(this,GXh.prototype)};
_.y(GXh,Error);var CD1=["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 GV=function(k){this.executor=k},Og=function(k){var E=this;
this.state={status:"PENDING"};this.JSC$10652_onFulfilled=[];this.JSC$10652_onRejected=[];k=k.executor;var S=function(V){if(E.state.status==="PENDING"){E.state={status:"FULFILLED",value:V};V=_.n(E.JSC$10652_onFulfilled);for(var N=V.next();!N.done;N=V.next())N=N.value,N()}},R=function(V){if(E.state.status==="PENDING"){E.state={status:"REJECTED",
reason:V};V=_.n(E.JSC$10652_onRejected);for(var N=V.next();!N.done;N=V.next())N=N.value,N()}};
try{k(S,R)}catch(V){R(V)}};
Og.all=function(k){return new Og(new GV(function(E,S){var R=[],V=k.length;V===0&&E(R);for(var N={i$jscomp$467:0};N.i$jscomp$467<k.length;N={i$jscomp$467:N.i$jscomp$467},++N.i$jscomp$467)Og.resolve(k[N.i$jscomp$467]).then(function(h){return function(J){R[h.i$jscomp$467]=J;V--;V===0&&E(R)}}(N)).catch(function(h){S(h)})}))};
Og.resolve=function(k){return new Og(new GV(function(E,S){k instanceof Og?k.then(E,S):E(k)}))};
Og.reject=function(k){return new Og(new GV(function(E,S){S(k)}))};
Og.prototype.then=function(k,E){var S=this,R=k!=null?k:Spt,V=E!=null?E:Enb;return new Og(new GV(function(N,h){S.state.status==="PENDING"?(S.JSC$10652_onFulfilled.push(function(){Tqz(S,S,R,N,h)}),S.JSC$10652_onRejected.push(function(){wEA(S,S,V,N,h)})):S.state.status==="FULFILLED"?Tqz(S,S,R,N,h):S.state.status==="REJECTED"&&wEA(S,S,V,N,h)}))};
Og.prototype.catch=function(k){return this.then(void 0,k)};
var Tqz=function(k,E,S,R,V){try{if(k.state.status!=="FULFILLED")throw Error("Tc");var N=S(k.state.value);N instanceof Og?PDp(k,E,N,R,V):R(N)}catch(h){V(h)}},wEA=function(k,E,S,R,V){try{if(k.state.status!=="REJECTED")throw Error("Uc");
var N=S(k.state.reason);N instanceof Og?PDp(k,E,N,R,V):R(N)}catch(h){V(h)}},PDp=function(k,E,S,R,V){E===S?V(new TypeError("Vc")):S.then(function(N){N instanceof Og?PDp(k,E,N,R,V):R(N)},function(N){V(N)})};var e7;e7=window;_.ev=e7.ytcsi&&e7.ytcsi.now?e7.ytcsi.now:e7.performance&&e7.performance.timing&&e7.performance.now&&e7.performance.timing.navigationStart?function(){return e7.performance.timing.navigationStart+e7.performance.now()}:function(){return(new Date).getTime()};var kZ=function(k,E){this.JSC$10664_wrapped=k;this.options=E;this.transactionCount=0;this.startedMs=Math.round((0,_.ev)());this.hasUnknownAbortedTransaction=!1},aK=function(){return _.Y("idb_immediate_commit")},WGC,FG4,wS,XEY;
kZ.prototype.add=function(k,E,S){return _.NG(this,[k],{mode:"readwrite",enableRetries:!0,commit:aK()},function(R){return R.objectStore(k).add(E,S)})};
kZ.prototype.clear=function(k){return _.NG(this,[k],{mode:"readwrite",enableRetries:!0},function(E){return E.objectStore(k).clear()})};
kZ.prototype.close=function(){this.JSC$10664_wrapped.close();var k;((k=this.options)==null?0:k.closed)&&this.options.closed()};
kZ.prototype.count=function(k,E){return _.NG(this,[k],{mode:"readonly",enableRetries:!0,commit:aK()},function(S){return S.objectStore(k).count(E)})};
var Q6=function(k,E,S){k=k.JSC$10664_wrapped.createObjectStore(E,S);return new tf(k)};
kZ.prototype.delete=function(k,E){return _.NG(this,[k],{mode:"readwrite",enableRetries:!0,commit:aK()&&!(E instanceof IDBKeyRange)},function(S){return S.objectStore(k).delete(E)})};
var BqY=function(k,E){return _.NG(k,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(S){return S.objectStore("ResponseStore").index("byInterface").delete(E)})};
kZ.prototype.get=function(k,E){return _.NG(this,[k],{mode:"readonly",enableRetries:!0,commit:aK()},function(S){return S.objectStore(k).get(E)})};
kZ.prototype.getAll=function(k,E,S){return _.NG(this,[k],{mode:"readonly",enableRetries:!0},function(R){return R.objectStore(k).getAll(E,S)})};
kZ.prototype.put=function(k,E,S){return _.NG(this,[k],{mode:"readwrite",enableRetries:!0,commit:aK()},function(R){return R.objectStore(k).put(E,S)})};
kZ.prototype.objectStoreNames=function(){return Array.from(this.JSC$10664_wrapped.objectStoreNames)};
_.NG=function(k,E,S,R){var V,N,h,J,m,a,T,w,P,B,F,K;return _.c(function(r){switch(r.nextAddress){case 1:var x={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof S==="string"?x.mode=S:Object.assign(x,S);V=x;k.transactionCount++;N=V.enableRetries?3:1;h=0;case 2:if(J){r.jumpTo(4);break}h++;m=Math.round((0,_.ev)());_.F5(r,5);a=k.JSC$10664_wrapped.transaction(E,V.mode);x=r.yield;var L=!!V.commit;var q=new EQ(a);L=Yvj(q,R,L);return x.call(r,L,7);case 7:return T=r.yieldResult,w=Math.round((0,_.ev)()),
WGC(k,m,w,h,void 0,E.join(),V),r.return(T);case 5:P=_.UY(r);B=Math.round((0,_.ev)());F=kJA(P,k.JSC$10664_wrapped.name,E.join(),k.JSC$10664_wrapped.version);if((K=F instanceof q3&&!F.retryable)||h>=N)WGC(k,m,B,h,F,E.join(),V),J=F;r.jumpTo(2);break;case 4:return r.return(Promise.reject(J))}})};
WGC=function(k,E,S,R,V,N,h){E=S-E;V?(V instanceof q3&&(V.type==="QUOTA_EXCEEDED"||V.type==="QUOTA_MAYBE_EXCEEDED")&&dO("QUOTA_EXCEEDED",{dbName:lJ(k.JSC$10664_wrapped.name),objectStoreNames:N,transactionCount:k.transactionCount,transactionMode:h.mode}),V instanceof q3&&V.type==="UNKNOWN_ABORT"&&(S-=k.startedMs,S<0&&S>=2147483648&&(S=0),dO("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:N,transactionDuration:E,transactionCount:k.transactionCount,dbDuration:S}),k.hasUnknownAbortedTransaction=!0),
FG4(k,!1,R,N,E,h.tag),_.Zn(V)):FG4(k,!0,R,N,E,h.tag)};
FG4=function(k,E,S,R,V,N){dO("TRANSACTION_ENDED",{objectStoreNames:R,connectionHasUnknownAbortedTransaction:k.hasUnknownAbortedTransaction,duration:V,isSuccessful:E,tryCount:S,tag:N===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":N})};
kZ.prototype.getVersion=function(){return this.JSC$10664_wrapped.version};
kZ.prototype.getName=function(){return this.JSC$10664_wrapped.name};
var tf=function(k){this.JSC$10679_wrapped=k};
tf.prototype.add=function(k,E){return CC(this.JSC$10679_wrapped.add(k,E))};
tf.prototype.autoIncrement=function(){return this.JSC$10679_wrapped.autoIncrement};
tf.prototype.clear=function(){return CC(this.JSC$10679_wrapped.clear()).then(function(){})};
var OQ=function(k,E,S){k.JSC$10679_wrapped.createIndex(E,S,{unique:!1})};
tf.prototype.count=function(k){return CC(this.JSC$10679_wrapped.count(k))};
var yXA=function(k,E){return nx(k,{query:E},function(S){return S.delete().then(function(){return S.continue()})}).then(function(){})};
tf.prototype.delete=function(k){return k instanceof IDBKeyRange?yXA(this,k):CC(this.JSC$10679_wrapped.delete(k))};
tf.prototype.get=function(k){return CC(this.JSC$10679_wrapped.get(k))};
tf.prototype.getAll=function(k,E){return"getAll"in IDBObjectStore.prototype?CC(this.JSC$10679_wrapped.getAll(k,E)):oAj(this,k,E)};
var oAj=function(k,E,S){var R=[];return nx(k,{query:E},function(V){if(!(S!==void 0&&R.length>=S))return R.push(V.getValue()),V.continue()}).then(function(){return R})};
tf.prototype.index=function(k){try{return new Tk(this.JSC$10679_wrapped.index(k))}catch(E){if(E instanceof Error&&E.name==="NotFoundError")throw new GXh(k,this.JSC$10679_wrapped.name);throw E;}};
tf.prototype.getName=function(){return this.JSC$10679_wrapped.name};
tf.prototype.keyPath=function(){return this.JSC$10679_wrapped.keyPath};
tf.prototype.put=function(k,E){return CC(this.JSC$10679_wrapped.put(k,E))};
var nx=function(k,E,S){k=k.JSC$10679_wrapped.openCursor(E.query,E.direction);return XEY(k).then(function(R){return N8e(R,S)})},EQ=function(k){var E=this;
this.JSC$10687_wrapped=k;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(S,R){E.JSC$10687_wrapped.addEventListener("complete",function(){S()});
E.JSC$10687_wrapped.addEventListener("error",function(V){V.currentTarget===V.target&&R(E.JSC$10687_wrapped.error)});
E.JSC$10687_wrapped.addEventListener("abort",function(){var V=E.JSC$10687_wrapped.error;if(V)R(V);else if(!E.aborted){V=q3;for(var N=E.JSC$10687_wrapped.objectStoreNames,h=[],J=0;J<N.length;J++){var m=N.item(J);if(m===null)throw Error("Wc");h.push(m)}V=new V("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:E.JSC$10687_wrapped.db.name,mode:E.JSC$10687_wrapped.mode});R(V)}})})},Yvj=function(k,E,S){var R=new Promise(function(V,N){try{var h=E(k);
S&&k.commit();h.then(function(J){V(J)}).catch(N)}catch(J){N(J),k.abort()}});
return Promise.all([R,k.done]).then(function(V){return _.n(V).next().value})};
EQ.prototype.abort=function(){this.JSC$10687_wrapped.abort();this.aborted=!0;throw new q3("EXPLICIT_ABORT");};
EQ.prototype.commit=function(){if(!this.aborted){var k,E;(E=(k=this.JSC$10687_wrapped).commit)==null||E.call(k)}};
EQ.prototype.objectStore=function(k){k=this.JSC$10687_wrapped.objectStore(k);var E=this.objectStoreCache.get(k);E||(E=new tf(k),this.objectStoreCache.set(k,E));return E};
var Tk=function(k){this.JSC$10689_wrapped=k};
Tk.prototype.count=function(k){return CC(this.JSC$10689_wrapped.count(k))};
Tk.prototype.delete=function(k){return _.aH(this,{query:k},function(E){return E.delete().then(function(){return E.continue()})})};
Tk.prototype.get=function(k){return CC(this.JSC$10689_wrapped.get(k))};
Tk.prototype.getAll=function(k,E){return"getAll"in IDBIndex.prototype?CC(this.JSC$10689_wrapped.getAll(k,E)):gAp(this,k,E)};
var gAp=function(k,E,S){var R=[];return _.aH(k,{query:E},function(V){if(!(S!==void 0&&R.length>=S))return R.push(V.getValue()),V.continue()}).then(function(){return R})};
Tk.prototype.keyPath=function(){return this.JSC$10689_wrapped.keyPath};
Tk.prototype.unique=function(){return this.JSC$10689_wrapped.unique};
_.aH=function(k,E,S){k=k.JSC$10689_wrapped.openCursor(E.query===void 0?null:E.query,E.direction===void 0?"next":E.direction);return XEY(k).then(function(R){return N8e(R,S)})};
wS=function(k,E){this.request=k;this.cursor=E};
XEY=function(k){return CC(k).then(function(E){return E?new wS(k,E):null})};
wS.prototype.continue=function(k){this.cursor.continue(k);return XEY(this.request)};
wS.prototype.delete=function(){return CC(this.cursor.delete()).then(function(){})};
wS.prototype.getValue=function(){return this.cursor.value};
wS.prototype.update=function(k){return CC(this.cursor.update(k))};var Pg=function(k,E){this.name=k;this.options=E;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Ua8;
Pg.prototype.openDb=function(k,E,S){S=S===void 0?{}:S;return nnR(k,E,S)};
Pg.prototype.delete=function(k){k=k===void 0?{}:k;return _.RH(this.name,k)};
Ua8=function(k,E){return new q3("INCOMPATIBLE_DB_VERSION",{dbName:k.name,oldVersion:k.options.version,newVersion:E})};
_.V6=function(k,E){if(!E)throw Qf("openWithToken",lJ(k.name));return k.open()};
Pg.prototype.open=function(){var k=this;if(!this.isCompatible)throw Ua8(this);if(this.connectionPromise)return this.connectionPromise;var E,S=function(){k.connectionPromise===E&&(k.connectionPromise=void 0)},R={blocking:function(N){N.close()},
closed:S,terminated:S,upgrade:this.options.upgrade},V=function(){var N,h,J,m,a,T,w,P,B,F;return _.c(function(K){switch(K.nextAddress){case 1:return h=(N=Error().stack)!=null?N:"",_.F5(K,2),K.yield(k.openDb(k.name,k.options.version,R),4);case 4:for(var r=J=K.yieldResult,x=k.options,L=[],q=_.n(Object.keys(x.objectStores)),M=q.next();!M.done;M=q.next()){M=M.value;var d=x.objectStores[M],z=d.removedAtVersion===void 0?Number.MAX_VALUE:d.removedAtVersion;!(r.JSC$10664_wrapped.version>=d.addedAtVersion)||
r.JSC$10664_wrapped.version>=z||r.JSC$10664_wrapped.objectStoreNames.contains(M)||L.push(M)}m=L;if(m.length===0){K.jumpTo(5);break}a=Object.keys(k.options.objectStores);T=J.objectStoreNames();if(k.timesReopenedToFixMissingObjectStore<_.wO("ytidb_reopen_db_retries",0))return k.timesReopenedToFixMissingObjectStore++,J.close(),_.Zn(new q3("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:k.name,expectedObjectStores:a,foundObjectStores:T})),K.return(V());if(!(k.timesDeletedToFixMissingObjectStore<_.wO("ytidb_remake_db_retries",
1))){K.jumpTo(6);break}k.timesDeletedToFixMissingObjectStore++;return K.yield(k.delete(),7);case 7:return _.Zn(new q3("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:k.name,expectedObjectStores:a,foundObjectStores:T})),K.return(V());case 6:throw new tdd(T,a);case 5:return K.return(J);case 2:w=_.UY(K);if(w instanceof DOMException?w.name!=="VersionError":"DOMError"in self&&w instanceof DOMError?w.name!=="VersionError":!(w instanceof Object&&"message"in w)||w.message!=="An attempt was made to open a database using a lower version than the existing version."){K.jumpTo(8);
break}return K.yield(k.openDb(k.name,void 0,Object.assign({},R,{upgrade:void 0})),9);case 9:P=K.yieldResult;B=P.getVersion();if(k.options.version!==void 0&&B>k.options.version+1)throw P.close(),k.isCompatible=!1,Ua8(k,B);return K.return(P);case 8:throw S(),w instanceof Error&&!_.Y("ytidb_async_stack_killswitch")&&(w.stack=w.stack+"\n"+h.substring(h.indexOf("\n")+1)),kJA(w,k.name,"",(F=k.options.version)!=null?F:-1);}})};
return this.connectionPromise=E=V()};var irh=new Pg("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(k,E){E(1)&&Q6(k,"databases",{keyPath:"actualName"})}});var tiI,ee1=new function(){}(new function(){});new _.kl;var HzC=function(k,E){Pg.call(this,k,E);this.options=E;sg(k)};
_.y(HzC,Pg);var XoI=function(k,E){var S;return function(){S||(S=new HzC(k,E));return S}};
HzC.prototype.openDb=function(k,E,S){S=S===void 0?{}:S;return(this.options.shared?Ypj:B8A)(k,E,Object.assign({},S))};
HzC.prototype.delete=function(k){k=k===void 0?{}:k;return(this.options.shared?on1:WCR)(this.name,k)};var KGj={},gne=mq("ytGcfConfig",{objectStores:(KGj.coldConfigStore={addedAtVersion:1},KGj.hotConfigStore={addedAtVersion:1},KGj),shared:!1,upgrade:function(k,E){E(1)&&(OQ(Q6(k,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),OQ(Q6(k,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var pEC=function(){_.r7.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var k=_.CV("yt.gcf.config.hotUpdateCallbacks");k?(this.localHotConfigJobQueue=[].concat(_.$e(k)),this.sharedHotConfigJobQueue=k):(this.sharedHotConfigJobQueue=[],_.J6("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.y(pEC,_.r7);pEC.prototype.disposeInternal=function(){for(var k=_.n(this.localHotConfigJobQueue),E=k.next();!E.done;E=k.next()){var S=this.sharedHotConfigJobQueue;E=S.indexOf(E.value);E>=0&&S.splice(E,1)}this.localHotConfigJobQueue.length=0;_.r7.prototype.disposeInternal.call(this)};var xf=function(){var k=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new pEC;this.TEST_ONLY={initializeConfigDb:function(){k.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return k.coldGlobalConfigGroup},
setHotConfigGroup:function(E){AX4(k,E)},
setHotHashData:function(E){k.setHotHashData(E)},
setColdConfigGroup:function(E){rXC(k,E)},
getColdHashData:function(){return k.coldHashData},
getHotHashData:function(){return k.hotHashData},
getHotConfigGroup:function(){return k.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return uyp()},
getExportedHotConfigGroup:function(){return Bg()},
getExportedColdHashData:function(){return _.CV("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.CV("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){xaC(k)},
resetInstance:function(){k.setHotHashData(void 0);LGC(k);delete xf.instance},
setDebounceTimer:function(E){k.debounceTimer=E},
getDebounceTimer:function(){return k.debounceTimer}}},j_T=function(){if(!xf.instance){var k=new xf;
xf.instance=k}return xf.instance},fvC=function(k){var E;
_.c(function(S){if(S.nextAddress==1)return _.Y("start_client_gcf")||_.Y("delete_gcf_config_db")?_.Y("start_client_gcf")?S.yield(_.cV(),3):S.jumpTo(2):S.return();S.nextAddress!=2&&((E=S.yieldResult)&&_.xr()&&!_.Y("delete_gcf_config_db")?(k.isConfigDbInitialized=!0,xaC(k)):(DaY(k),$aY(k)));return _.Y("delete_gcf_config_db")?S.yield(rpl(),0):S.jumpTo(0)})},L2=function(){var k;
return(k=Bg())!=null?k:_.Mg("RAW_HOT_CONFIG_GROUP")},vAd=function(k){var E,S,R,V,N,h;
return _.c(function(J){switch(J.nextAddress){case 1:if(k.hotGlobalConfigGroup)return J.return(Bg());if(!k.isConfigDbInitialized)return E=Qf("getHotConfig IDB not initialized"),_.kr(E),J.return(Promise.reject(E));S=h6();R=_.Mg("TIME_CREATED_MS");if(!S){V=Qf("getHotConfig token error");_.kr(V);J.jumpTo(2);break}return J.yield(Apt(S),3);case 3:if((N=J.yieldResult)&&N.timestamp>R)return AX4(k,N.config),k.setHotHashData(N.hashData),J.return(Bg());case 2:$aY(k);if(!(S&&k.hotGlobalConfigGroup&&k.hotHashData)){J.jumpTo(4);
break}return J.yield(Hrt(k.hotGlobalConfigGroup,k.hotHashData,S,R),4);case 4:return k.hotGlobalConfigGroup?J.return(Bg()):(h=new _.LC("Config not available in ytConfig"),_.kr(h),J.return(Promise.reject(h)))}})},Zzp=function(k){var E,S,R,V,N,h;
return _.c(function(J){switch(J.nextAddress){case 1:if(k.coldGlobalConfigGroup)return J.return(uyp());if(!k.isConfigDbInitialized)return E=Qf("getColdConfig IDB not initialized"),_.kr(E),J.return(Promise.reject(E));S=h6();R=_.Mg("TIME_CREATED_MS");if(!S){V=Qf("getColdConfig");_.kr(V);J.jumpTo(2);break}return J.yield(poA(S),3);case 3:if((N=J.yieldResult)&&N.timestamp>R)return rXC(k,N.config),bzj(k,N.configData),LGC(k,N.hashData),J.return(uyp());case 2:DaY(k);if(!(S&&k.coldGlobalConfigGroup&&k.coldHashData&&
k.configData)){J.jumpTo(4);break}return J.yield(KCR(k.coldGlobalConfigGroup,k.coldHashData,k.configData,S,R),4);case 4:return k.coldGlobalConfigGroup?J.return(uyp()):(h=new _.LC("Config not available in ytConfig"),_.kr(h),J.return(Promise.reject(h)))}})},xaC=function(k){if(!k.hotGlobalConfigGroup||!k.coldGlobalConfigGroup){if(!h6()){var E=Qf("scheduleGetConfigs");
_.kr(E)}k.initJob||(k.initJob=_.ZJ.addLowPriorityJob(function(){return _.c(function(S){switch(S.nextAddress){case 1:return _.F5(S,2),S.yield(vAd(k),4);case 4:_.Sv(S,3);break;case 2:_.UY(S);case 3:return _.F5(S,5),S.yield(Zzp(k),7);case 7:_.Sv(S,6);break;case 5:_.UY(S);case 6:k.initJob&&(k.initJob=0),_.KR(S)}})},100))}},Kut=function(k,E,S){var R,V,N;
return _.c(function(h){switch(h.nextAddress){case 1:if(!_.Y("start_client_gcf")){h.jumpTo(0);break}S&&AX4(k,S);k.setHotHashData(E);R=h6();if(!R){h.jumpTo(3);break}if(S){h.jumpTo(4);break}return h.yield(Apt(R),5);case 5:V=h.yieldResult,S=(N=V)==null?void 0:N.config;case 4:return h.yield(Hrt(S,E,R),3);case 3:if(S)for(var J=S,m=_.n(k.configUpdateService.sharedHotConfigJobQueue),a=m.next();!a.done;a=m.next())a=a.value,a(J);_.KR(h)}})},p9C=function(k,E,S){var R,V,N,h;
return _.c(function(J){if(J.nextAddress==1){if(!_.Y("start_client_gcf"))return J.jumpTo(0);LGC(k,E);return(R=h6())?S?J.jumpTo(4):J.yield(poA(R),5):J.jumpTo(0)}J.nextAddress!=4&&(V=J.yieldResult,S=(N=V)==null?void 0:N.config);if(!S)return J.jumpTo(0);h=S.configData;return J.yield(KCR(S,E,h,R),0)})},OrC=function(){var k=j_T(),E=(0,_.ev)()-k.debounceTimer;
if(!(k.debounceTimer!==0&&E<_.wO("send_config_hash_timer"))){E=_.CV("yt.gcf.config.coldConfigData");var S=_.CV("yt.gcf.config.hotHashData"),R=_.CV("yt.gcf.config.coldHashData");E&&S&&R&&(k.debounceTimer=(0,_.ev)());return{coldConfigData:E,hotHashData:S,coldHashData:R}}},DaY=function(k){rXC(k,_.Mg("RAW_COLD_CONFIG_GROUP"));
LGC(k,_.Mg("SERIALIZED_COLD_HASH_DATA"));var E;bzj(k,(E=k.coldGlobalConfigGroup)==null?void 0:E.configData)},$aY=function(k){AX4(k,_.Mg("RAW_HOT_CONFIG_GROUP"));
k.setHotHashData(_.Mg("SERIALIZED_HOT_HASH_DATA"))},AX4=function(k,E){k.hotGlobalConfigGroup=E;
_.J6("yt.gcf.config.hotConfigGroup",k.hotGlobalConfigGroup||null)},rXC=function(k,E){k.coldGlobalConfigGroup=E;
_.J6("yt.gcf.config.coldConfigGroup",k.coldGlobalConfigGroup||null)};
xf.prototype.setHotHashData=function(k){this.hotHashData=k;_.J6("yt.gcf.config.hotHashData",this.hotHashData||null)};
var LGC=function(k,E){k.coldHashData=E;_.J6("yt.gcf.config.coldHashData",k.coldHashData||null)},bzj=function(k,E){k.configData=E;
_.J6("yt.gcf.config.coldConfigData",k.configData||null)},Bg=function(){return _.CV("yt.gcf.config.hotConfigGroup")},uyp=function(){return _.CV("yt.gcf.config.coldConfigGroup")};var oH={},daj=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";oH.assign=function(k){for(var E=Array.prototype.slice.call(arguments,1);E.length;){var S=E.shift();if(S){if(typeof S!=="object")throw new TypeError("Zc`"+S);for(var R in S)Object.prototype.hasOwnProperty.call(S,R)&&(k[R]=S[R])}}return k};
oH.shrinkBuf=function(k,E){if(k.length===E)return k;if(k.subarray)return k.subarray(0,E);k.length=E;return k};
var s_2={arraySet:function(k,E,S,R,V){if(E.subarray&&k.subarray)k.set(E.subarray(S,S+R),V);else for(var N=0;N<R;N++)k[V+N]=E[S+N]},
flattenChunks:function(k){var E,S;var R=S=0;for(E=k.length;R<E;R++)S+=k[R].length;var V=new Uint8Array(S);R=S=0;for(E=k.length;R<E;R++){var N=k[R];V.set(N,S);S+=N.length}return V}},lv5={arraySet:function(k,E,S,R,V){for(var N=0;N<R;N++)k[V+N]=E[S+N]},
flattenChunks:function(k){return[].concat.apply([],k)}};
oH.setTyped=function(){daj?(oH.Buf8=Uint8Array,oH.Buf16=Uint16Array,oH.Buf32=Int32Array,oH.assign(oH,s_2)):(oH.Buf8=Array,oH.Buf16=Array,oH.Buf32=Array,oH.assign(oH,lv5))};
oH.setTyped();var Mdd=!0;try{new Uint8Array(1)}catch(k){Mdd=!1}
var Ag1=function(k){var E,S,R=k.length,V=0;for(E=0;E<R;E++){var N=k.charCodeAt(E);if((N&64512)===55296&&E+1<R){var h=k.charCodeAt(E+1);(h&64512)===56320&&(N=65536+(N-55296<<10)+(h-56320),E++)}V+=N<128?1:N<2048?2:N<65536?3:4}var J=new oH.Buf8(V);for(E=S=0;S<V;E++)N=k.charCodeAt(E),(N&64512)===55296&&E+1<R&&(h=k.charCodeAt(E+1),(h&64512)===56320&&(N=65536+(N-55296<<10)+(h-56320),E++)),N<128?J[S++]=N:(N<2048?J[S++]=192|N>>>6:(N<65536?J[S++]=224|N>>>12:(J[S++]=240|N>>>18,J[S++]=128|N>>>12&63),J[S++]=
128|N>>>6&63),J[S++]=128|N&63);return J};var Pvi={};Pvi=function(k,E,S,R){var V=k&65535|0;k=k>>>16&65535|0;for(var N;S!==0;){N=S>2E3?2E3:S;S-=N;do V=V+E[R++]|0,k=k+V|0;while(--N);V%=65521;k%=65521}return V|k<<16|0};for(var DJ={},Yt,qvC=[],zM2=0;zM2<256;zM2++){Yt=zM2;for(var Q_C=0;Q_C<8;Q_C++)Yt=Yt&1?3988292384^Yt>>>1:Yt>>>1;qvC[zM2]=Yt}DJ=function(k,E,S,R){S=R+S;for(k^=-1;R<S;R++)k=k>>>8^qvC[(k^E[R])&255];return k^-1};var HV={};HV={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 nlR=[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],hWI=[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],pTm=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],TVm=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rv=Array(576);YZ(rv);var uX=Array(60);YZ(uX);var gv=Array(512);YZ(gv);var XT=Array(256);YZ(XT);var ic1=Array(29);YZ(ic1);var Jgj=Array(30);YZ(Jgj);var UyI,Hcl,K5h,glm=!1;var bX;
bX=[new vV(0,0,0,0,function(k,E){var S=65535;for(S>k.pending_buf_size-5&&(S=k.pending_buf_size-5);;){if(k.lookahead<=1){$Z(k);if(k.lookahead===0&&E===0)return 1;if(k.lookahead===0)break}k.strstart+=k.lookahead;k.lookahead=0;var R=k.block_start+S;if(k.strstart===0||k.strstart>=R)if(k.lookahead=k.strstart-R,k.strstart=R,xZ(k,!1),k.strm.avail_out===0)return 1;if(k.strstart-k.block_start>=k.w_size-262&&(xZ(k,!1),k.strm.avail_out===0))return 1}k.insert=0;if(E===4)return xZ(k,!0),k.strm.avail_out===0?3:
4;k.strstart>k.block_start&&xZ(k,!1);return 1}),
new vV(4,4,8,4,BVh),new vV(4,5,16,8,BVh),new vV(4,6,32,32,BVh),new vV(4,4,16,16,fx),new vV(8,16,32,32,fx),new vV(8,16,128,128,fx),new vV(8,32,128,256,fx),new vV(32,128,258,1024,fx),new vV(32,258,258,4096,fx)];var XTb={};XTb=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 rgh=Object.prototype.toString;
olj.prototype.push=function(k,E){var S=this.strm,R=this.options.chunkSize;if(this.ended)return!1;var V=E===~~E?E:E===!0?4:0;typeof k==="string"?S.input=Ag1(k):rgh.call(k)==="[object ArrayBuffer]"?S.input=new Uint8Array(k):S.input=k;S.next_in=0;S.avail_in=S.input.length;do{S.avail_out===0&&(S.output=new oH.Buf8(R),S.next_out=0,S.avail_out=R);k=ygj(S,V);if(k!==1&&k!==0)return OzC(this,k),this.ended=!0,!1;if(S.avail_out===0||S.avail_in===0&&(V===4||V===2))if(this.options.to==="string"){var N=oH.shrinkBuf(S.output,
S.next_out);E=N;N=N.length;if(N<65537&&(E.subarray&&Mdd||!E.subarray))E=String.fromCharCode.apply(null,oH.shrinkBuf(E,N));else{for(var h="",J=0;J<N;J++)h+=String.fromCharCode(E[J]);E=h}this.chunks.push(E)}else E=oH.shrinkBuf(S.output,S.next_out),this.chunks.push(E)}while((S.avail_in>0||S.avail_out===0)&&k!==1);if(V===4)return(S=this.strm)&&S.state?(R=S.state.status,R!==42&&R!==69&&R!==73&&R!==91&&R!==103&&R!==113&&R!==666?k=Kx(S,-2):(S.state=null,k=R===113?Kx(S,-3):0)):k=-2,OzC(this,k),this.ended=
!0,k===0;V===2&&(OzC(this,0),S.avail_out=0);return!0};
var OzC=function(k,E){E===0&&(k.result=k.options.to==="string"?k.chunks.join(""):oH.flattenChunks(k.chunks));k.chunks=[];k.err=E;k.msg=k.strm.msg};var GXT=typeof TextEncoder!=="undefined"?new TextEncoder:null,ivR=GXT?function(k){return GXT.encode(k)}:function(k){k=_.AP(k);
for(var E=new Uint8Array(k.length),S=0;S<E.length;S++)E[S]=k[S];return E};var QJj={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},Ggi={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Wg=function(k,E){this.version=k;this.args=E};
Wg.prototype.serialize=function(){return{version:this.version,args:this.args}};var Dyh=function(k,E){this.topic=k;this.dataClass=E};
Dyh.prototype.toString=function(){return this.topic};var CDY=_.CV("ytPubsub2Pubsub2Instance")||new _.H_;_.H_.prototype.subscribe=_.H_.prototype.subscribe;_.H_.prototype.unsubscribeByKey=_.H_.prototype.unsubscribeByKey;_.H_.prototype.publish=_.H_.prototype.publish;_.H_.prototype.clear=_.H_.prototype.clear;_.J6("ytPubsub2Pubsub2Instance",CDY);var jRe=_.CV("ytPubsub2Pubsub2SubscribedKeys")||{};_.J6("ytPubsub2Pubsub2SubscribedKeys",jRe);var fWi=_.CV("ytPubsub2Pubsub2TopicToKeys")||{};_.J6("ytPubsub2Pubsub2TopicToKeys",fWi);
var $yI=_.CV("ytPubsub2Pubsub2IsAsync")||{};_.J6("ytPubsub2Pubsub2IsAsync",$yI);_.J6("ytPubsub2Pubsub2SkipSubKey",null);var QRi=void 0,qxm=void 0;var VNe=_.wO("max_body_size_to_compress",5E5),NJh=_.wO("min_body_size_to_compress",500),sQ=!0,cOj=0,lX=0,JOj=_.wO("compression_performance_threshold_lr",250),mOl=_.wO("slow_compressions_before_abandon_count",4),CvC=!1,kNt=new Map,nTj=1,Ikb=!0;_.dy(MG,tNt);MG.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 kJp=function(k,E,S){S||(S=0);var R=k.W_;if(typeof E==="string")for(var V=0;V<16;V++)R[V]=E.charCodeAt(S)<<24|E.charCodeAt(S+1)<<16|E.charCodeAt(S+2)<<8|E.charCodeAt(S+3),S+=4;else for(V=0;V<16;V++)R[V]=E[S]<<24|E[S+1]<<16|E[S+2]<<8|E[S+3],S+=4;for(E=16;E<80;E++)S=R[E-3]^R[E-8]^R[E-14]^R[E-16],R[E]=(S<<1|S>>>31)&4294967295;E=k.chain_[0];S=k.chain_[1];V=k.chain_[2];for(var N=k.chain_[3],h=k.chain_[4],J,m,a=0;a<80;a++)a<40?a<20?(J=N^S&(V^N),m=1518500249):(J=S^V^N,m=1859775393):a<60?(J=S&V|N&(S|V),
m=2400959708):(J=S^V^N,m=3395469782),J=(E<<5|E>>>27)+J+h+m+R[a]&4294967295,h=N,N=V,V=(S<<30|S>>>2)&4294967295,S=E,E=J;k.chain_[0]=k.chain_[0]+E&4294967295;k.chain_[1]=k.chain_[1]+S&4294967295;k.chain_[2]=k.chain_[2]+V&4294967295;k.chain_[3]=k.chain_[3]+N&4294967295;k.chain_[4]=k.chain_[4]+h&4294967295};
MG.prototype.update=function(k,E){if(k!=null){E===void 0&&(E=k.length);for(var S=E-this.blockSize,R=0,V=this.buf_,N=this.inbuf_;R<E;){if(N==0)for(;R<=S;)kJp(this,k,R),R+=this.blockSize;if(typeof k==="string")for(;R<E;){if(V[N]=k.charCodeAt(R),++N,++R,N==this.blockSize){kJp(this,V);N=0;break}}else for(;R<E;)if(V[N]=k[R],++N,++R,N==this.blockSize){kJp(this,V);N=0;break}}this.inbuf_=N;this.total_+=E}};
MG.prototype.digest=function(){var k=[],E=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var S=this.blockSize-1;S>=56;S--)this.buf_[S]=E&255,E/=256;kJp(this,this.buf_);for(S=E=0;S<5;S++)for(var R=24;R>=0;R-=8)k[E]=this.chain_[S]>>R&255,++E;return k};var PlI;var yA=function(k){var E=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(T){E.databaseToken=T},
triggerThrottle:function(){E.throttledSend()},
cancelThrottle:function(){E.cancelThrottledSend()},
immediateSend:function(T){return _.c(function(w){return w.yield(E.immediateSend(T),0)})},
requestWithinAgeLimit:function(T,w){return E.requestWithinAgeLimit(T,w)},
retryQueuedRequests:function(){E.retryQueuedRequests()}};
var S;this.throttleTimeout=(S=k.throttleTimeout)!=null?S:100;var R;this.retryMaxAttempts=(R=k.retryMaxAttempts)!=null?R:1;var V;this.requestAgeLimitMs=(V=k.requestAgeLimitMs)!=null?V:2592E6;var N;this.queuedRequestAgeLimitMs=(N=k.queuedRequestAgeLimitMs)!=null?N:12E4;var h;this.retryDelayMs=(h=k.retryDelayMs)!=null?h:5E3;var J;this.databaseToken=(J=k.databaseToken)!=null?J:void 0;this.enableCleaning=!!k.enableCleaning;var m;this.cleaningRate=(m=k.cleaningRate)!=null?m:.1;var a;this.potentialEsfErrorLimit=
(a=k.potentialEsfErrorLimit)!=null?a:10;k.handleError&&(this.handleError=k.handleError);k.handleWarning&&(this.handleWarning=k.handleWarning);k.disableYtIdbTransactions&&(this.disableYtIdbTransactions=k.disableYtIdbTransactions);k.bypassDbTokenDependency&&(this.bypassDbTokenDependency=k.bypassDbTokenDependency);this.getBooleanFlag=k.getBooleanFlag;this.jobManager=k.jobManager;this.logsStore=k.logsStore;this.networkManager=k.networkManager;this.sendFn=k.sendFn;this.onlineEvent=k.onlineEvent;this.offlineEvent=
k.offlineEvent;FG(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&En2(this)},En2=function(k){FG(k)&&!k.disableYtIdbTransactions&&(k.initialized=!0,k.enableCleaning&&Math.random()<=k.cleaningRate&&k.logsStore.cleanLogsStore(k.databaseToken),k.retryQueuedRequests(),k.networkManager.isNetworkAvailable()&&k.throttledSend(),k.networkManager.listen(k.onlineEvent,k.throttledSend.bind(k)),k.networkManager.listen(k.offlineEvent,k.cancelThrottledSend.bind(k)))};
_.I=yA.prototype;_.I.writeThenSend=function(k,E){var S=this;E=E===void 0?{}:E;if(FG(this)&&this.initialized){var R={url:k,options:E,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(R,this.databaseToken).then(function(V){R.id=V;S.networkManager.isNetworkAvailable()&&S.immediateSend(R)}).catch(function(V){S.immediateSend(R);
Spd(S,V)})}else this.sendFn(k,E)};
_.I.sendThenWrite=function(k,E,S){var R=this;E=E===void 0?{}:E;if(FG(this)&&this.initialized){var V={url:k,options:E,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(V.skipRetry=S);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!V.skipRetry){if(!V.skipRetry){var N=E.onError?E.onError:function(){};
E.onError=function(h,J){return _.c(function(m){if(m.nextAddress==1)return m.yield(R.logsStore.set(V,R.databaseToken).catch(function(a){Spd(R,a)}),2);
N(h,J);_.KR(m)})}}this.sendFn(k,E,V.skipRetry)}else this.logsStore.set(V,this.databaseToken).catch(function(h){R.sendFn(k,E,V.skipRetry);
Spd(R,h)})}else this.sendFn(k,E,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&S)};
_.I.sendAndWrite=function(k,E){var S=this;E=E===void 0?{}:E;if(FG(this)&&this.initialized){var R={url:k,options:E,timestamp:this.now(),status:"NEW",sendCount:0},V=!1,N=E.onSuccess?E.onSuccess:function(){};
R.options.onSuccess=function(h,J){R.id!==void 0?S.logsStore.deleteRequest(R.id,S.databaseToken):V=!0;S.networkManager.networkStatusHint&&S.getBooleanFlag&&S.getBooleanFlag("vss_network_hint")&&S.networkManager.networkStatusHint(!0);N(h,J)};
this.sendFn(R.url,R.options,void 0,!0);this.logsStore.set(R,this.databaseToken).then(function(h){R.id=h;V&&S.logsStore.deleteRequest(R.id,S.databaseToken)}).catch(function(h){Spd(S,h)})}else this.sendFn(k,E,void 0,!0)};
_.I.throttledSend=function(){var k=this;if(!FG(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var E;return _.c(function(S){if(S.nextAddress==1)return S.yield(k.logsStore.getMostRecentByStatus("NEW",k.databaseToken),2);if(S.nextAddress!=3)return E=S.yieldResult,E?S.yield(k.immediateSend(E),3):(k.cancelThrottledSend(),S.return());k.intervalJob&&(k.intervalJob=0,k.throttledSend());_.KR(S)})},this.throttleTimeout))};
_.I.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.I.immediateSend=function(k){var E=this,S;return _.c(function(R){switch(R.nextAddress){case 1:if(!FG(E))throw Error("cd");if(k.id===void 0){R.jumpTo(2);break}return R.yield(E.logsStore.markAsQueued(k.id,E.databaseToken),3);case 3:(S=R.yieldResult)||E.handleWarning(Error("dd"));case 2:if(E.requestWithinAgeLimit(k,E.requestAgeLimitMs)){R.jumpTo(4);break}E.handleWarning(Error("ed"));if(k.id===void 0){R.jumpTo(5);break}return R.yield(E.logsStore.deleteRequest(k.id,E.databaseToken),5);case 5:return R.return();
case 4:k.skipRetry||(k=Re8(E,k));if(!k){R.jumpTo(0);break}if(!k.skipRetry||k.id===void 0){R.jumpTo(8);break}return R.yield(E.logsStore.deleteRequest(k.id,E.databaseToken),8);case 8:E.sendFn(k.url,k.options,!!k.skipRetry),_.KR(R)}})};
var Re8=function(k,E){if(!FG(k))throw Error("fd");var S=E.options.onError?E.options.onError:function(){};
E.options.onError=function(V,N){var h,J,m,a;return _.c(function(T){switch(T.nextAddress){case 1:h=yOe(N);(J=oTt(N))&&k.getBooleanFlag&&k.getBooleanFlag("web_enable_error_204")&&k.handleError(Error("gd"),E.url,N);if(!(k.getBooleanFlag&&k.getBooleanFlag("nwl_consider_error_code")&&h||k.getBooleanFlag&&!k.getBooleanFlag("nwl_consider_error_code")&&k.potentialEsfErrorCounter<=k.potentialEsfErrorLimit)){T.jumpTo(2);break}if(!k.networkManager.sendNetworkCheckRequest){T.jumpTo(3);break}return T.yield(k.networkManager.sendNetworkCheckRequest(),
3);case 3:if(k.networkManager.isNetworkAvailable()){T.jumpTo(2);break}S(V,N);if(!k.getBooleanFlag||!k.getBooleanFlag("nwl_consider_error_code")||((m=E)==null?void 0:m.id)===void 0){T.jumpTo(6);break}return T.yield(k.logsStore.resetRequest(E.id,k.databaseToken,!1),6);case 6:return T.return();case 2:if(k.getBooleanFlag&&k.getBooleanFlag("nwl_consider_error_code")&&!h&&k.potentialEsfErrorCounter>k.potentialEsfErrorLimit)return T.return();k.potentialEsfErrorCounter++;if(((a=E)==null?void 0:a.id)===void 0){T.jumpTo(8);
break}return E.sendCount<k.retryMaxAttempts?T.yield(k.logsStore.resetRequest(E.id,k.databaseToken,!0,J?!1:void 0),12):T.yield(k.logsStore.deleteRequest(E.id,k.databaseToken),8);case 12:k.jobManager.addLowPriorityJob(function(){k.networkManager.isNetworkAvailable()&&k.throttledSend()},k.retryDelayMs);
case 8:S(V,N),_.KR(T)}})};
var R=E.options.onSuccess?E.options.onSuccess:function(){};
E.options.onSuccess=function(V,N){var h;return _.c(function(J){if(J.nextAddress==1)return((h=E)==null?void 0:h.id)===void 0?J.jumpTo(2):J.yield(k.logsStore.deleteRequest(E.id,k.databaseToken),2);k.networkManager.networkStatusHint&&k.getBooleanFlag&&k.getBooleanFlag("vss_network_hint")&&k.networkManager.networkStatusHint(!0);R(V,N);_.KR(J)})};
return E};
yA.prototype.requestWithinAgeLimit=function(k,E){k=k.timestamp;return this.now()-k>=E?!1:!0};
yA.prototype.retryQueuedRequests=function(){var k=this;if(!FG(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(E){E&&!k.requestWithinAgeLimit(E,k.queuedRequestAgeLimitMs)?k.jobManager.addLowPriorityJob(function(){return _.c(function(S){if(S.nextAddress==1)return E.id===void 0?S.jumpTo(2):S.yield(k.logsStore.resetRequest(E.id,k.databaseToken),2);k.retryQueuedRequests();_.KR(S)})}):k.networkManager.isNetworkAvailable()&&k.throttledSend()})};
var Spd=function(k,E){k.writeError&&!k.networkManager.isNetworkAvailable()?k.writeError(E):k.handleError(E)},FG=function(k){return!!k.databaseToken||k.bypassDbTokenDependency};var Xut;var uSl={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 ViY={},Lih=mq("ServiceWorkerLogsDatabase",{objectStores:(ViY.SWHealthLog={addedAtVersion:1},ViY),shared:!0,upgrade:function(k,E){E(1)&&OQ(Q6(k,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var dOt={},Zvm=0;var q_b;var oK=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Sl=function(){if(!oK.instance){var k=_.CV("yt.networkRequestMonitor.instance")||new oK;
_.J6("yt.networkRequestMonitor.instance",k);oK.instance=k}return oK.instance};
oK.prototype.requestComplete=function(k,E){E&&(this.anyRequestHasSucceeded=!0);k=this.removeParams(k);this.requestMap.get(k)||this.requestMap.set(k,E)};
oK.prototype.isEndpointCFR=function(k){k=this.removeParams(k);return(k=this.requestMap.get(k))?!1:k===!1&&this.anyRequestHasSucceeded?!0:null};
oK.prototype.removeParams=function(k){return k.split("?")[0]};
oK.prototype.removeParams=oK.prototype.removeParams;oK.prototype.isEndpointCFR=oK.prototype.isEndpointCFR;oK.prototype.requestComplete=oK.prototype.requestComplete;oK.getInstance=Sl;var XG=function(k){_.wG.call(this);var E=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=k!=null?k:{addLowPriorityJob:function(V,N){return setTimeout(V,N)},
cancelJob:function(V){clearTimeout(V)}};
var S,R;this.isOnline=(R=(S=window.navigator)==null?void 0:S.onLine)!=null?R:!0;this.onNavigatorChange=function(){return _.c(function(V){return V.yield(N8z(E),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||IEA(this)};
_.y(XG,_.wG);XG.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete XG.instance};
XG.prototype.isNetworkAvailable=function(){return this.isOnline};
var IEA=function(k){k.pollingJob=k.jobManager.addLowPriorityJob(function(){var E;return _.c(function(S){if(S.nextAddress==1)return k.isOnline?((E=window.navigator)==null?0:E.onLine)?S.jumpTo(3):S.yield(N8z(k),3):S.yield(N8z(k),3);IEA(k);_.KR(S)})},3E4)},N8z=function(k,E){return k.networkRequestPromise?k.networkRequestPromise:k.networkRequestPromise=new Promise(function(S){var R,V,N,h;
return _.c(function(J){switch(J.nextAddress){case 1:return R=window.AbortController?new window.AbortController:void 0,N=(V=R)==null?void 0:V.signal,h=!1,_.F5(J,2,3),R&&(k.abortTimeoutKey=k.jobManager.addLowPriorityJob(function(){R.abort()},E||2E4)),J.yield(fetch("/generate_204",{method:"HEAD",
signal:N}),5);case 5:h=!0;case 3:_.ob(J);k.networkRequestPromise=void 0;k.abortTimeoutKey&&(k.jobManager.cancelJob(k.abortTimeoutKey),k.abortTimeoutKey=0);h!==k.isOnline&&(k.isOnline=h,k.isOnline?k.dispatchEvent("networkstatus-online"):k.dispatchEvent("networkstatus-offline"));S(h);_.gP(J,0);break;case 2:_.UY(J),h=!1,J.jumpTo(3)}})})};var gS=function(){_.wG.call(this);var k=this;this.shouldFlushErrors=!1;XG.instance||(XG.instance=new XG(_.ZJ));this.sharedNetworkStatusManager=XG.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(k.shouldFlushErrors&&_.Y("offline_error_handling")){var E=zUm().get("errors",!0);if(E){for(var S in E)if(E[S]){var R=new _.LC(S,"sent via offline_errors");R.name=E[S].name;R.stack=E[S].stack;R.level=E[S].level;_.O4(R)}zUm().set("errors",{},2592E3,!0)}}})};
_.y(gS,_.wG);var nnC=function(){if(!gS.instance){var k=_.CV("yt.networkStatusManager.instance")||new gS;_.J6("yt.networkStatusManager.instance",k);gS.instance=k}return gS.instance};
_.I=gS.prototype;_.I.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.I.networkStatusHint=function(k){this.sharedNetworkStatusManager.isOnline=k};
_.I.getWindowStatus=function(){var k=window.navigator.onLine;return k===void 0?!0:k};
_.I.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.I.listen=function(k,E){return this.sharedNetworkStatusManager.listen(k,E)};
_.I.sendNetworkCheckRequest=function(k){k=N8z(this.sharedNetworkStatusManager,k);k.then(function(E){_.Y("use_cfr_monitor")&&Sl().requestComplete("generate_204",E)});
return k};
gS.prototype.sendNetworkCheckRequest=gS.prototype.sendNetworkCheckRequest;gS.prototype.listen=gS.prototype.listen;gS.prototype.enableErrorFlushing=gS.prototype.enableErrorFlushing;gS.prototype.getWindowStatus=gS.prototype.getWindowStatus;gS.prototype.networkStatusHint=gS.prototype.networkStatusHint;gS.prototype.isNetworkAvailable=gS.prototype.isNetworkAvailable;gS.getInstance=nnC;_.Ec=function(k){k=k===void 0?{}:k;_.wG.call(this);var E=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=nnC();var S=_.CV("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);S&&(k.rateLimit?(this.rateLimit=k.rateLimit,S("networkstatus-online",function(){irT(E,"publicytnetworkstatus-online")}),S("networkstatus-offline",function(){irT(E,"publicytnetworkstatus-offline")})):(S("networkstatus-online",function(){E.dispatchEvent("publicytnetworkstatus-online")}),S("networkstatus-offline",
function(){E.dispatchEvent("publicytnetworkstatus-offline")})))};
_.y(_.Ec,_.wG);_.Ec.prototype.isNetworkAvailable=function(){var k=_.CV("yt.networkStatusManager.instance.isNetworkAvailable");return k?k.bind(this.nsmInstance)():!0};
_.Ec.prototype.networkStatusHint=function(k){var E=_.CV("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);E&&E(k)};
_.Ec.prototype.sendNetworkCheckRequest=function(k){var E=this,S;return _.c(function(R){S=_.CV("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(E.nsmInstance);return _.Y("skip_network_check_if_cfr")&&Sl().isEndpointCFR("generate_204")?R.return(new Promise(function(V){var N;E.networkStatusHint(((N=window.navigator)==null?void 0:N.onLine)||!0);V(E.isNetworkAvailable())})):S?R.return(S(k)):R.return(!0)})};
var irT=function(k,E){k.rateLimit?k.lastJobTime?(_.ZJ.cancelJob(k.schedulerJob),k.schedulerJob=_.ZJ.addLowPriorityJob(function(){k.lastPublicSignalSent!==E&&(k.dispatchEvent(E),k.lastPublicSignalSent=E,k.lastJobTime=(0,_.ev)())},k.rateLimit-((0,_.ev)()-k.lastJobTime))):(k.dispatchEvent(E),k.lastPublicSignalSent=E,k.lastJobTime=(0,_.ev)()):k.dispatchEvent(E)};var kTI,U0=function(){yA.call(this,{logsStore:{cleanLogsStore:u6I,deleteRequest:rOm,getMostRecentByStatus:Kit,markAsQueued:put,resetRequest:AOi,set:HvR},networkManager:_.EXm(),handleError:function(k,E,S){var R,V=S==null?void 0:(R=S.error)==null?void 0:R.code;if(V===400||V===415){var N;k=new _.LC(k.message,E,S==null?void 0:(N=S.error)==null?void 0:N.code);_.kr(k,void 0,void 0,void 0,!0)}else _.O4(k)},
handleWarning:_.kr,sendFn:GNm,now:_.ev,writeError:QcI,jobManager:_.eH(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.wO("potential_esf_error_limit",10),getBooleanFlag:_.Y,disableYtIdbTransactions:!(_.xr()&&_.Skl())});this.initializationPromise=new _.kl;_.Y("networkless_immediately_drop_all_requests")&&xOh();on1("LogsDatabaseV2")};
_.y(U0,yA);_.JpT=function(){var k=_.CV("yt.networklessRequestController.instance");k||(k=new U0,_.J6("yt.networklessRequestController.instance",k),_.Y("networkless_logging")&&_.cV().then(function(E){k.databaseToken=E;En2(k);k.initializationPromise.resolve();k.enableCleaning&&Math.random()<=k.cleaningRate&&k.databaseToken&&DOA(k.databaseToken);_.Y("networkless_immediately_drop_sw_health_store")&&heC(k)}));
return k};
U0.prototype.writeThenSend=function(k,E){E||(E={});E=ClR(k,E);_.xr()||(this.initialized=!1);yA.prototype.writeThenSend.call(this,k,E)};
U0.prototype.sendThenWrite=function(k,E,S){E||(E={});E=ClR(k,E);_.xr()||(this.initialized=!1);yA.prototype.sendThenWrite.call(this,k,E,S)};
U0.prototype.sendAndWrite=function(k,E){E||(E={});E=ClR(k,E);_.xr()||(this.initialized=!1);yA.prototype.sendAndWrite.call(this,k,E)};
U0.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var heC=function(k){var E;_.c(function(S){if(!k.databaseToken)throw E=Qf("clearSWHealthLogsDb"),E;return S.return($Oe(k.databaseToken).catch(function(R){k.handleError(R)}))})};_.VFI=!1;_.RZm=_.Vt.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.VFI};_.J6("ytNetworklessLoggingInitializationOptions",_.RZm);var $f=function(k){var E=this;this.config_=null;k?this.config_=k:ufi()&&(this.config_=_.t6());_.uM(_.ZJ,function(){Fit(E)},5E3)};
$f.prototype.isReady=function(){!this.config_&&ufi()&&(this.config_=_.t6());return!!this.config_};
var Wie=function(k,E,S,R){!_.Mg("VISITOR_DATA")&&E!=="visitor_id"&&Math.random()<.01&&_.kr(new _.LC("Missing VISITOR_DATA when sending innertube request.",E,S,R));if(!k.isReady()){var V=new _.LC("innertube xhrclient not ready",E,S,R);_.O4(V);throw V;}var N={headers:R.headers||{},method:"POST",postParams:S,postBody:R.postBody,postBodyFormat:R.postBodyFormat||"JSON",onTimeout:function(){R.onTimeout()},
onFetchTimeout:R.onTimeout,onSuccess:function(w,P){if(R.onSuccess)R.onSuccess(P)},
onFetchSuccess:function(w){if(R.onSuccess)R.onSuccess(w)},
onProgress:function(w){if(R.onProgress)R.onProgress(w)},
onError:function(w,P){if(R.onError)R.onError(P)},
onFetchError:function(w){if(R.onError)R.onError(w)},
timeout:R.timeout,withCredentials:!0,compress:R.compress};N.headers["Content-Type"]||(N.headers["Content-Type"]="application/json");var h="";(V=k.config_.innertubeHostOverride)&&(h=V);var J=k.config_.innertubeUseThirdPartyAuth||!1,m=_.Q7b(J,h,R);Object.assign(N.headers,m);N.headers.Authorization&&!h&&J&&(N.headers["x-origin"]=window.location.origin);var a=_.N3(h+("/youtubei/"+k.config_.innertubeApiVersion+"/"+E),{alt:"json"}),T=function(w){w=w===void 0?!1:w;var P;if(R.retry&&h!="www.youtube-nocookie.com"&&
(w||_.Y("skip_ls_gel_retry")||N.headers["Content-Type"]!=="application/json"||(P=BJl(E,S,m,J)),P)){var B=N.onSuccess,F=N.onFetchSuccess;N.onSuccess=function(x,L){Y_1(P);B(x,L)};
S.onFetchSuccess=function(x,L){Y_1(P);F(x,L)}}try{if(w&&R.retry&&!R.networklessOptions.bypassNetworkless)N.method="POST",R.networklessOptions.writeThenSend?_.JpT().writeThenSend(a,N):_.JpT().sendAndWrite(a,N);
else if(R.compress){var K=!R.networklessOptions.writeThenSend;if(N.postBody){var r=N.postBody;typeof r!=="string"&&(r=JSON.stringify(N.postBody));hUA(a,r,N,_.gO,K)}else hUA(a,JSON.stringify(N.postParams),N,Tqe,K)}else _.Y("web_all_payloads_via_jspb")?_.gO(a,N):Tqe(a,N)}catch(x){if(x.name==="InvalidAccessError")P&&(Y_1(P),P=0),_.kr(Error("id"));else throw x;}P&&_.uM(_.ZJ,function(){Fit(k)},5E3)};
_.NXm()?T8m().then(function(w){T(w)}):T(!1)};var ojj=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(ojj,_.iu);var cpj=0,nX1=_.Qb?"webkit":_.ze?"moz":_.qX?"ms":FIC?"o":"";_.J6("ytDomDomGetNextId",_.CV("ytDomDomGetNextId")||function(){return++cpj});var mIY={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},iM=function(k){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(k=
k||window.event){this.event=k;for(var E in k)E in mIY||(this[E]=k[E]);this.scale=k.scale;this.rotation=k.rotation;var S=k.target||k.srcElement;S&&S.nodeType==3&&(S=S.parentNode);this.target=S;var R=k.relatedTarget;if(R)try{R=R.nodeName?R:null}catch(V){R=null}else this.type=="mouseover"?R=k.fromElement:this.type=="mouseout"&&(R=k.toElement);this.relatedTarget=R;this.clientX=k.clientX!=void 0?k.clientX:k.pageX;this.clientY=k.clientY!=void 0?k.clientY:k.pageY;this.keyCode=k.keyCode?k.keyCode:k.which;
this.charCode=k.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=k.altKey;this.ctrlKey=k.ctrlKey;this.shiftKey=k.shiftKey;this.metaKey=k.metaKey;this.pageX_=k.pageX;this.pageY_=k.pageY}}catch(V){}},eeC=function(k){if(document.body&&document.documentElement){var E=document.body.scrollTop+document.documentElement.scrollTop;
k.pageX_=k.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);k.pageY_=k.clientY+E}};
iM.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
iM.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
iM.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var n2=_.Vt.ytEventsEventsListeners||{};_.J6("ytEventsEventsListeners",n2);var eZl=_.Vt.ytEventsEventsCounter||{count:0};_.J6("ytEventsEventsCounter",eZl);var a0j=_.af(function(){var k=!1;try{var E=Object.defineProperty({},"capture",{get:function(){k=!0}});
window.addEventListener("test",null,E)}catch(S){}return k});_.dy(JD,_.r7);JD.prototype.onMouseMove_=function(k){k.pageX_===void 0&&eeC(k);var E=k.pageX_;k.pageY_===void 0&&eeC(k);this.position_=new _.bh(E,k.pageY_)};
JD.prototype.checkPosition_=function(){if(this.position_){var k=(0,_.ev)();if(this.previousTime_!=0){var E=this.previousPosition_,S=this.position_,R=E.x-S.x;E=E.y-S.y;R=Math.sqrt(R*R+E*E)/(k-this.previousTime_);this.cycles_[this.index_]=Math.abs((R-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(S=E=0;S<4;S++)E+=this.cycles_[S]||0;E>=3&&this.callback_();this.previousVelocity_=R}this.previousTime_=k;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
JD.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.tFC(this.mouseListenerKey_)};var YkI={};var HUh=new _.z_("rawColdConfigGroup");var UJA=new _.z_("rawHotConfigGroup");var aE5=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(aE5,_.iu);var ytm=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(ytm,_.iu);var rg=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k,500)};
_.y(rg,_.iu);rg.prototype.getPayloadCase=function(){return _.iT(this,tid)};
rg.prototype.getContext=function(){return _.Tp(this,ytm,33)};
var tid=[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 Wue=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Wue,_.iu);var Oh1=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Oh1,_.iu);Oh1.prototype.setVideoId=function(k){return oW(this,1,GTI,YW(k))};
Oh1.prototype.getPlaylistId=function(){return _.Xb(this,K2(this,GTI,2))};
var GTI=[1,2];var tQh=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(tQh,_.iu);tQh.prototype.getContext=function(){return _.Tp(this,Xp,1)};
tQh.prototype.getTier=function(){return _.Tn(this,7)};var T88,aW,tD;T88=_.Vt.ytPubsubPubsubInstance||new _.H_;aW=_.Vt.ytPubsubPubsubSubscribedKeys||{};tD=_.Vt.ytPubsubPubsubTopicToKeys||{};_.WRC=_.Vt.ytPubsubPubsubIsSynchronous||{};_.H_.prototype.subscribe=_.H_.prototype.subscribe;_.H_.prototype.unsubscribeByKey=_.H_.prototype.unsubscribeByKey;_.H_.prototype.publish=_.H_.prototype.publish;_.H_.prototype.clear=_.H_.prototype.clear;_.J6("ytPubsubPubsubInstance",T88);_.J6("ytPubsubPubsubTopicToKeys",tD);_.J6("ytPubsubPubsubIsSynchronous",_.WRC);
_.J6("ytPubsubPubsubSubscribedKeys",aW);var Pv=window;var Hg=_.Y("web_enable_lifecycle_monitoring")&&gXh()!==0,woY=_.Y("web_enable_lifecycle_monitoring");var Pg4=function(k){var E=this;var S=S===void 0?0:S;var R=R===void 0?_.eH():R;this.JSC$10886_defaultPriority=S;this.scheduler=R;this.completedResolver=new _.kl;this.scheduledPayloads=k;for(k={i$jscomp$491:0};k.i$jscomp$491<this.scheduledPayloads.length;k={payload$jscomp$20:void 0,i$jscomp$491:k.i$jscomp$491},k.i$jscomp$491++)k.payload$jscomp$20=this.scheduledPayloads[k.i$jscomp$491],S=function(V){return function(){V.payload$jscomp$20.job();E.scheduledPayloads[V.i$jscomp$491].processed=!0;E.scheduledPayloads.every(function(N){return N.processed===
!0})&&E.completedResolver.resolve()}}(k),R=this.getPriority(k.payload$jscomp$20),R=this.scheduler.addJob(S,R),this.scheduledPayloads[k.i$jscomp$491]=Object.assign({},k.payload$jscomp$20,{job:S,
jobId:R})};
Pg4.prototype.flushJobs=function(){var k=this,E=Array.from(this.scheduledPayloads.keys()).sort(function(R,V){return k.getPriority(k.scheduledPayloads[V])-k.getPriority(k.scheduledPayloads[R])});
E=_.n(E);for(var S=E.next();!S.done;S=E.next())S=this.scheduledPayloads[S.value],S.jobId===void 0||S.processed||(this.scheduler.cancelJob(S.jobId),this.scheduler.addJob(S.job,10))};
Pg4.prototype.cancel=function(){for(var k=_.n(this.scheduledPayloads),E=k.next();!E.done;E=k.next())E=E.value,E.jobId===void 0||E.processed||this.scheduler.cancelJob(E.jobId),E.processed=!0;this.completedResolver.resolve()};
Pg4.prototype.getPriority=function(k){var E;return(E=k.priority)!=null?E:this.JSC$10886_defaultPriority};var KY=function(k){this.state=k;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Hg&&Uij(this.state)};
KY.prototype.install=function(k){this.plugins.push(k);return this};
KY.prototype.uninstall=function(){var k=this;_.sX.apply(0,arguments).forEach(function(E){E=k.plugins.indexOf(E);E>-1&&k.plugins.splice(E,1)})};
KY.prototype.transition=function(k,E){var S=this;Hg&&Hhj(this.state);var R=this.transitions.find(function(N){return Array.isArray(N.from)?N.from.find(function(h){return h===S.state&&N.to===k}):N.from===S.state&&N.to===k});
if(R){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);B8p(this,k,E);this.state=k;Hg&&Uij(this.state);R=R.action.bind(this);var V=this.plugins.filter(function(N){return N[k]}).map(function(N){return N[k]});
R(Yp5(this,V),E)}else throw Error("jd`"+this.state+"`"+k);};
var Yp5=function(k,E){var S=E.filter(function(V){return WCC(k,V)===10}),R=E.filter(function(V){return WCC(k,V)!==10});
return k.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var V=_.sX.apply(0,arguments);return _.c(function(N){if(N.nextAddress==1)return N.yield(k.runImmediateJobsAsync.apply(k,[S].concat(_.$e(V))),2);k.setJobSetWithScheduledJobs.apply(k,[R].concat(_.$e(V)));_.KR(N)})}:function(){var V=_.sX.apply(0,arguments);
k.runImmediateJobsSync.apply(k,[S].concat(_.$e(V)));k.setJobSetWithScheduledJobs.apply(k,[R].concat(_.$e(V)))}};
KY.prototype.runImmediateJobsSync=function(k){var E=_.sX.apply(1,arguments);_.eH();for(var S=_.n(k),R=S.next(),V={};!R.done;V={lifecycle$jscomp$2:void 0},R=S.next())V.lifecycle$jscomp$2=R.value,GT(function(N){return function(){FCp(N.lifecycle$jscomp$2.name);pMC(function(){return N.lifecycle$jscomp$2.callback.apply(N.lifecycle$jscomp$2,_.$e(E))});
pY(N.lifecycle$jscomp$2.name)}}(V))};
KY.prototype.runImmediateJobsAsync=function(k){var E=_.sX.apply(1,arguments),S,R,V,N;return _.c(function(h){h.nextAddress==1&&(_.eH(),S=_.n(k),R=S.next(),V={});if(h.nextAddress!=3){if(R.done)return h.jumpTo(0);V.lifecycle$jscomp$3=R.value;V.asyncJobCompletion=void 0;N=function(J){return function(){FCp(J.lifecycle$jscomp$3.name);var m=pMC(function(){return J.lifecycle$jscomp$3.callback.apply(J.lifecycle$jscomp$3,_.$e(E))});
kYd(m)?J.asyncJobCompletion=_.Y("web_lifecycle_error_handling_killswitch")?m.then(function(){pY(J.lifecycle$jscomp$3.name)}):m.then(function(){pY(J.lifecycle$jscomp$3.name)},function(a){KR1(a);
pY(J.lifecycle$jscomp$3.name)}):pY(J.lifecycle$jscomp$3.name)}}(V);
GT(N);return V.asyncJobCompletion?h.yield(V.asyncJobCompletion,3):h.jumpTo(3)}V={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};R=S.next();return h.jumpTo(2)})};
KY.prototype.setJobSetWithScheduledJobs=function(k){var E=_.sX.apply(1,arguments),S=this,R=k.map(function(V){return{job:function(){FCp(V.name);pMC(function(){return V.callback.apply(V,_.$e(E))});
pY(V.name)},
priority:WCC(S,V)}});
R.length&&(this.jobSet=new Pg4(R))};
var WCC=function(k,E){var S,R;return(R=(S=k.overridePriority)!=null?S:E.priority)!=null?R:0},FCp=function(k){Hg&&k&&Uij(k)},pY=function(k){Hg&&k&&Hhj(k)},B8p=function(k,E,S){woY&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+k.constructor.name+"] '"+k.state+"' to '"+E+"'"),console.log("with message: ",S),console.groupEnd())};
_.mt.Object.defineProperties(KY.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ypY=function(k){KY.call(this,k===void 0?"none":k);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(){}}]},onY;
_.y(ypY,KY);ypY.prototype.runApplicationNavigationBegin=function(k,E){var S=this;this.navigationTimer=_.uM(_.ZJ,function(){S.currentState==="application_navigating"&&S.transition("none")},5E3);
k(E==null?void 0:E.event)};
ypY.prototype.runApplicationNavigationEnd=function(k,E){this.navigationTimer&&(_.ZJ.cancelJob(this.navigationTimer),this.navigationTimer=null);k(E==null?void 0:E.event)};
_.gvj=function(){onY||(onY=new ypY);return onY};var X9h=[];_.J6("yt.logging.transport.getScrapedGelPayloads",function(){return X9h});var Bv=function(){var k=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return k.totalEntries}}};
Bv.prototype.storePayload=function(k,E){k=AVI(k);this.store[k]?this.store[k].push(E):(this.memoizedKeySequences={},this.store[k]=[E]);this.totalEntries++;_.Y("more_accurate_gel_parser")&&(E=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(E));return k};
Bv.prototype.smartExtractMatchingEntries=function(k){if(!k.keys.length)return[];for(var E=XoY(this,k.keys.splice(0,1)[0]),S=[],R=0;R<E.length;R++)this.store[E[R]]&&k.sizeLimit&&(this.store[E[R]].length<=k.sizeLimit?(S.push.apply(S,_.$e(this.store[E[R]])),delete this.store[E[R]]):S.push.apply(S,_.$e(this.store[E[R]].splice(0,k.sizeLimit))));this.totalEntries-=S.length;(k==null?0:k.sizeLimit)&&S.length<(k==null?void 0:k.sizeLimit)&&(k.sizeLimit-=S.length,S.push.apply(S,_.$e(this.smartExtractMatchingEntries(k))));
return S};
Bv.prototype.extractMatchingEntries=function(k){k=XoY(this,k);for(var E=[],S=0;S<k.length;S++)this.store[k[S]]&&(E.push.apply(E,_.$e(this.store[k[S]])),delete this.store[k[S]]);this.totalEntries-=E.length;return E};
Bv.prototype.getSequenceCount=function(k){k=XoY(this,k);for(var E=0,S=0;S<k.length;S++){var R=void 0;E+=((R=this.store[k[S]])==null?void 0:R.length)||0}return E};
var XoY=function(k,E){var S=AVI(E);if(k.memoizedKeySequences[S])return k.memoizedKeySequences[S];var R=Object.keys(k.store)||[];if(R.length<=1&&AVI(E)===R[0])return R;for(var V=[],N=0;N<R.length;N++){var h=R[N].split("/");if(gnz(E.auth,h[0])){var J=E.isJspb;gnz(J===void 0?"undefined":J?"true":"false",h[1])&&gnz(E.cttAuthInfo,h[2])&&(J=E.tier,J=J===void 0?"undefined":JSON.stringify(J),gnz(J,h[3])&&V.push(R[N]))}}return k.memoizedKeySequences[S]=V},gnz=function(k,E){return k===void 0||k==="undefined"?
!0:k===E};
Bv.prototype.getSequenceCount=Bv.prototype.getSequenceCount;Bv.prototype.extractMatchingEntries=Bv.prototype.extractMatchingEntries;Bv.prototype.smartExtractMatchingEntries=Bv.prototype.smartExtractMatchingEntries;Bv.prototype.storePayload=Bv.prototype.storePayload;var nvb,NbI,iUl,Fp,UIz,rbA,AbI,VQe,R81,l0m,IDm,ybj,kZt;nvb=_.wO("initial_gel_batch_timeout",2E3);NbI=_.wO("gel_queue_timeout_max_ms",6E4);iUl=_.wO("gel_min_batch_size",5);Fp=void 0;UIz=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
rbA=new UIz;AbI=new UIz;VQe=new UIz;R81=new UIz;IDm=!0;ybj=1;_.Fui=new Map;kZt=_.Vt.ytLoggingTransportTokensToCttTargetIds_||{};_.J6("ytLoggingTransportTokensToCttTargetIds_",kZt);var CYh=_.Vt.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.J6("ytLoggingTransportTokensToJspbCttTargetIds_",CYh);var Wv={};var jl=_.Vt.ytLoggingGelSequenceIdObj_||{};_.J6("ytLoggingGelSequenceIdObj_",jl);var LuR=[];var q3e=new Set,vvh=0,GZC=0,OUm=0,ZU1=[],bUh=[],C_R=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var mBI=function(){};
mBI.prototype.getUrl=function(k,E){E=E===void 0?!1:E;return k.hasOwnProperty("shareEndpoint")?null:_.Rve(k,null,E)};
var Yr1=function(k,E,S){k={endpoint:E,actions:[]};S=(S.path?S.path[0]:S.target).icon||"";E=S.indexOf(":");E>0&&(S=S.substr(E+1));S&&k.actions.push(S);return k};var hv1=/Command$/,i5m=/Endpoint$/,NdI=new Map;var Hrd,KCC;Hrd=1;_.GU=function(){this.actionRoutingMap=new Map};
_.GU.prototype.triggerAction=function(k){var E=new S6h(k,!1,_.sX.apply(1,arguments));this.handleAction(E);return E.returnValue};
_.GU.prototype.triggerOptionalAction=function(k){var E=new S6h(k,!0,_.sX.apply(1,arguments));this.handleAction(E);return E.returnValue};
_.Af=function(k,E,S){E.forEach(function(R){var V=nhh(R);V&&k.triggerOptionalAction(V,R,S,void 0)})};
_.GU.prototype.handleAction=function(k){var E=this.actionRoutingMap.get(k.actionName);E&&KCC(k,E);k.optionalAction||k.returnValue.length!==0||(k=new _.LC("Unhandled action",k.actionName),_.kr(k))};
KCC=function(k,E){E.forEach(function(S){var R=null;S?R=S.apply(null,k.args):(S=Error("kd"),S.params=k.actionName,_.O4(S));k.returnValue.push(R)})};
_.E2=function(k,E,S){S||(S=Hrd++);for(var R=_.n(Object.keys(E)),V=R.next();!V.done;V=R.next()){V=V.value;var N=k.actionRoutingMap.get(V);N||(N=new Map,k.actionRoutingMap.set(V,N));k.registerActionHandler(S,V,E[V],N)}return S};
_.GU.prototype.registerActionHandler=function(k,E,S,R){R.set(k,_.Ga(S))};
_.S9=function(k,E,S){E=_.n(Object.keys(E));for(var R=E.next();!R.done;R=E.next())(R=k.actionRoutingMap.get(R.value))&&R.delete(S)};
_.bb(_.GU);var tql=function(k,E){var S=_.GU.getInstance();_.b$(function(){var R={},V=_.E2(S,(R[k]=E,R));_.bI(function(){var N={};_.S9(S,(N[k]="",N),V)})})};var AK1=Symbol("md");BcR=Ccm;var A0t=new Set(["For","If","Match","Watch"]),pop={},Apd=(pop[Qg.default]=function(){return m6j},pop.style=function(){return m6j},pop),rpj;
for(rpj in Apd)JN.attributes[rpj]=Apd[rpj](JN.attributes[rpj]);var mF=new _.QE("VISIBILITY_OBSERVER");var b5l={retrieve:function(k){return this.id.\u0275prov.token===k.\u0275prov.token?this.contextValue:this?_.no(this,this.id):Bvl}};var Lpt=function(k,E,S){if(k!==i2)return!1;k=Xpm(document.createElement("div"),function(){var R=Ta(!1);try{S[0]()}finally{Ta(R)}});
k=Array.from(k.childNodes);k.length===1&&(k=k[0]);return k};var ufA=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(k){}var xIz=typeof WeakRef==="function";var LC5=function(k){this.value=k};
LC5.prototype.deref=function(){return this.value};
var j7d=xIz?WeakRef:LC5,DIC=function(k){this.newKeyHandler=k;this.map=new WeakMap};
DIC.prototype.add=function(k,E){this.map.has(k)||(this.newKeyHandler(k),this.map.set(k,[]));this.map.get(k).push(new j7d(E))};
DIC.prototype.get=function(k){var E=this;return function R(){var V,N,h,J,m,a,T,w,P,B,F;return _.lr(R,function(K){switch(K.nextAddress){case 1:_.X5(K,2);V=E.map.get(k);if(!V)return K.return();N=0;h=_.n(V);J=h.next();case 4:if(J.done){K.jumpTo(6);break}m=J.value;a=m.deref();if(!a){K.jumpTo(5);break}N++;T=_.Mh;return K.yield(a,8);case 8:T(K.yieldResult);case 5:J=h.next();K.jumpTo(4);break;case 6:if(2*N<V.length){w=0;P=_.n(V);for(B=P.next();!B.done;B=P.next())F=B.value,F.deref()&&(V[w++]=F);V.length=
w}case 2:_.ob(K),_.gP(K,0)}})}()};var $IA=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},zvb=new DIC(function(k){k.addEventListener("abort",O5l,{once:!0})}),qfI=new WeakMap,fEd=function(k){k=k===void 0?rS:k;
this.signal=new k};
fEd.prototype.abort=function(k){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=k,k=new Event("abort"),this.signal.dispatchEvent(k))};
var rS=function(){this.target=$IA();this.aborted=!1;this.onabort=null};
rS.prototype.throwIfAborted=function(){Mqi.call(this)};
rS.prototype.addEventListener=function(k,E,S){this.target.addEventListener(k,E,S)};
rS.prototype.removeEventListener=function(k,E,S){this.target.removeEventListener(k,E,S)};
rS.prototype.dispatchEvent=function(k){if(this.onabort&&k.type==="abort")this.onabort(k);return this.target.dispatchEvent(k)};
rS.abort=lgI;rS.timeout=Gc1;rS.any=QEj;var sEe=ufA?AbortController:fEd,u5=ufA?AbortSignal:rS;typeof u5.abort!=="function"&&(u5.abort=lgI);typeof u5.prototype.throwIfAborted!=="function"&&(u5.prototype.throwIfAborted=Mqi);typeof u5.any!=="function"&&(u5.any=QEj);typeof u5.timeout!=="function"&&(u5.timeout=Gc1);var as=null,kbl=new Map;var vnA=function(k){k=k.clone();n68(k);w$(k,"dg",null);w$(k,"d","0");RRY(k,null);V9C(k,null);return k},brA=!0,Zrd=function(k,E,S){var R=S===void 0?{}:S;
S=R.cssRowKey===void 0?void 0:R.cssRowKey;var V=R.combinedSignature===void 0?void 0:R.combinedSignature;var N=R.extraEdges===void 0?void 0:R.extraEdges;R=R.callback===void 0?void 0:R.callback;w$(k,"m",E.join(","));N&&Ild(k,N);S&&(w$(k,"ck",S),V?w$(k,"rs",V):brA&&(brA=!1));if(R){if(R!=null&&!Jwp.test(R))throw Error("Xa`"+R);w$(k,"cb",R)}k=k.toString();_.I1(k,"/")&&(k=$jz(document.location.href)+k);return _.pg(k)};var s7Y=function(k){return dI4(k).then(function(E){return JSON.parse(E.responseText)})},dI4=function(k){var E={},S=E.xmlHttpFactory?E.xmlHttpFactory.createInstance():ok2.createInstance();
return(new _.yF(function(R,V){var N;try{S.open("GET",k,!0)}catch(m){V(new xt("Error opening XHR: "+m.message,k,S))}S.onreadystatechange=function(){if(S.readyState==4){_.Vt.clearTimeout(N);var m;!(m=yjd(S.status))&&(m=S.status===0)&&(m=Dj2(k),m=!(m=="http"||m=="https"||m==""));m?R(S):V(new lEY(S.status,k,S))}};
S.onerror=function(){V(new xt("Network error",k,S))};
if(E.headers)for(var h in E.headers){var J=E.headers[h];J!=null&&S.setRequestHeader(h,J)}E.withCredentials&&(S.withCredentials=E.withCredentials);E.responseType&&(S.responseType=E.responseType);E.mimeType&&S.overrideMimeType(E.mimeType);E.timeoutMs>0&&(N=_.Vt.setTimeout(function(){S.onreadystatechange=function(){};
S.abort();V(new Mip(k,S))},E.timeoutMs));
try{S.send(null)}catch(m){S.onreadystatechange=function(){},_.Vt.clearTimeout(N),V(new xt("Error sending XHR: "+m.message,k,S))}})).thenCatch(function(R){R instanceof _.o3&&S.abort();
throw R;})},xt=function(k,E,S){_.Sh.call(this,k+", url="+E);
this.url=E;this.xhr=S};
_.dy(xt,_.Sh);xt.prototype.name="XhrError";var lEY=function(k,E,S){xt.call(this,"Request Failed, status="+k,E,S);this.status=k};
_.dy(lEY,xt);lEY.prototype.name="XhrHttpError";var Mip=function(k,E){xt.call(this,"Request timed out",k,E)};
_.dy(Mip,xt);Mip.prototype.name="XhrTimeoutError";vt=vt||{};var LY=function(){_.r7.call(this)};
_.dy(LY,_.r7);LY.prototype.initialize=function(){};var qpC=function(k,E){this.fn_=k;this.handler_=E};
qpC.prototype.execute=function(k){this.fn_&&(this.fn_.call(this.handler_||null,k),this.fn_=this.handler_=null)};
qpC.prototype.abort=function(){this.handler_=this.fn_=null};var j7=function(k,E){_.r7.call(this);this.deps_=k;this.JSC$11041_id_=E;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.dy(j7,_.r7);j7.prototype.moduleConstructor_=LY;j7.prototype.module_=null;j7.prototype.getId=function(){return this.JSC$11041_id_};
j7.prototype.registerCallback=function(k,E){return ze4(this.onloadCallbacks_,k,E)};
var Q72=function(k,E){ze4(k.onErrorCallbacks_,E)},ze4=function(k,E,S){E=new qpC(E,S);
k.push(E);return E};
j7.prototype.isLoaded=function(){return!!this.module_};
j7.prototype.onLoad=function(k){var E=new this.moduleConstructor_;E.initialize(k());this.module_=E;E=(E=Or4(this.earlyOnloadCallbacks_,k()))||Or4(this.onloadCallbacks_,k());E||(this.onErrorCallbacks_.length=0);return E};
j7.prototype.onError=function(k){(k=Or4(this.onErrorCallbacks_,k))&&NA(Error("qd`"+k));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Or4=function(k,E){for(var S=[],R=0;R<k.length;R++)try{k[R].execute(E)}catch(V){NA(V),S.push(V)}k.length=0;return S.length?S:null};
j7.prototype.disposeInternal=function(){j7.superClass_.disposeInternal.call(this);_.nu(this.module_)};var GJp,Vk5,Sxp,RWY,klY,ElC,hWY,nlC,icY;
_.T2=function(k,E,S,R,V){R=R===void 0?!1:R;V=V===void 0?!1:V;var N=N===void 0?!0:N;this.scsReferenceUrl_=bxI(_.AJ(k).toString(),N);this.cssRowKey_=E;this.combinedSignature_=S;this.useNegativeLoading_=R;this.requestedModuleMap_={};this.JSC$11044_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(k=T_(this.scsReferenceUrl_,"excm"))?k.split(","):[];this.shouldScanForCss_=V;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;Zxt();_.Dy(this,Nmj(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
GJp=function(k,E){if(E.href||E.getAttribute("data-href"))if(E=E.href||E.getAttribute("data-href"),DGI(E)&&!bxI(E).urlPrefix_.endsWith("_/js/")){E=Nmj(bxI(E));E=_.n(E);for(var S=E.next();!S.done;S=E.next())S=S.value,k.loadedCssModuleList_.includes(S)||k.loadedCssModuleList_.push(S)}};
_.T2.prototype.JSC$11046_loadModules=function(k,E,S){var R=S===void 0?{}:S;S=R.extraEdges;var V=R.onError;var N=R.onSuccess;R=R.forceReload;this.JSC$11044_moduleInfoMap_=E;if(!k)throw Error("rd");if(this.shouldScanForCss_){E=_.n(document.getElementsByTagName("style"));for(var h=E.next();!h.done;h=E.next())GJp(this,h.value);E=_.n(document.getElementsByTagName("link"));for(h=E.next();!h.done;h=E.next())GJp(this,h.value)}Cgj(this,klY(this,k),S,V,N,R)};
var Cgj=function(k,E,S,R,V,N){R=R===void 0?function(){}:R;
V=V===void 0?function(){}:V;
N=N===void 0?!1:N;ElC(k,E,function(h,J,m){m=m===void 0?J:m;k.enableFallbackFetch&&N?k.loadWithFetch(h,J,R,V,m):k.load(h,J,R,V,m,S)},S)||R(-1)};
_.T2.prototype.loadWithFetch=function(){_.c(function(){throw Error("sd");})};
_.T2.prototype.maybeSetAdditionalFields=function(){};
Vk5=function(k,E,S){if(k.useNegativeLoading_){var R=k.scsReferenceUrl_;k={cssRowKey:k.cssRowKey_,combinedSignature:k.combinedSignature_,extraEdges:S,requestedModuleIds:Sxp(k),requestedCssModuleIds:RWY(k)};var V=k===void 0?{}:k;k=V.requestedModuleIds===void 0?[]:V.requestedModuleIds;S=V.requestedCssModuleIds===void 0?[]:V.requestedCssModuleIds;var N=V.cssRowKey===void 0?void 0:V.cssRowKey;var h=V.combinedSignature===void 0?void 0:V.combinedSignature;var J=V.extraEdges===void 0?void 0:V.extraEdges;
V=V.callback===void 0?void 0:V.callback;R=vnA(R);w$(R,"d","1");RRY(R,k);V9C(R,S);E=Zrd(R,E,{cssRowKey:N,combinedSignature:h,extraEdges:J,callback:V})}else R=k.scsReferenceUrl_,k={cssRowKey:k.cssRowKey_,combinedSignature:k.combinedSignature_,requestedModuleIds:Sxp(k),requestedCssModuleIds:RWY(k)},J=k===void 0?{}:k,k=J.requestedCssModuleIds===void 0?[]:J.requestedCssModuleIds,S=J.cssRowKey===void 0?void 0:J.cssRowKey,N=J.combinedSignature===void 0?void 0:J.combinedSignature,h=J.extraEdges===void 0?
void 0:J.extraEdges,J=J.callback===void 0?void 0:J.callback,R=vnA(R),V9C(R,k),E=Zrd(R,E,{cssRowKey:S,combinedSignature:N,extraEdges:h,callback:J});return E};
_.Dy=function(k,E){for(var S=!1,R=[],V=0;V<E.length;++V){var N=E[V];k.requestedModuleMap_[N]||(k.requestedModuleMap_[N]=!0,k.requestedModuleList_.push(N),S=!0,R.push(N))}S&&(k.requestedModuleListSorted_=!1)};
_.$t=function(k,E){for(var S=[],R=0;R<E.length;++R){var V=E[R];k.requestedModuleMap_[V]&&(delete k.requestedModuleMap_[V],_.ZR(k.requestedModuleList_,V),S.push(V))}};
_.T2.prototype.load=function(k,E,S,R,V){V=V===void 0?E:V;_.AJ(k);var N=this.useCors_,h=this.corsMode_,J=this.fetchPriority,m=_.g7("SCRIPT");_.Ib(m,k);N&&(m.crossOrigin=h);m.async=!1;J&&m.setAttribute("fetchpriority",J);_.Dy(this,E);_.NVC(this,k,m,E,S,R,V)};
_.NVC=function(k,E,S,R,V,N,h){h=h===void 0?R:h;k.lastScript_=S;k.insertPos.insertBefore(S,k.insertPos.firstChild);_.IWC(S,R,function(){S.parentElement.removeChild(S);k.lastScript_==S&&(k.lastScript_=null);var J=new Set;R.map(function(a){return J.add(a)});
for(var m in k.JSC$11044_moduleInfoMap_)k.JSC$11044_moduleInfoMap_[m].isLoaded()&&J.add(m);Array.from(J);N()},function(J){S.parentElement.removeChild(S);
k.lastScript_==S&&(k.lastScript_=null);_.$t(k,J);k.pendingModuleGraphUpdate_?k.pendingModuleGraphUpdate_.then(function(){V(-1,E)}):V(-1,E)},h)};
_.IWC=function(k,E,S,R,V){V=V===void 0?E:V;var N=E.length,h=function(){N=0;k.onload=null;k.onerror=null;J=function(){}},J=function(){h();
var a=V.filter(function(T){return!fu().getModuleInfo(T).isLoaded()});
a.length!==0?R(a,"Response was successful but was missing module(s) "+a+"."):S()},m=function(){N--;
N==0&&J()};
E.forEach(function(a){a=fu().getModuleInfo(a);a.isLoaded()?m():(ze4(a.earlyOnloadCallbacks_,m),Q72(a,m))});
k.onload=function(){return J()};
k.onerror=function(){h();R(E)}};
Sxp=function(k){k.requestedModuleListSorted_||(k.requestedModuleListSorted_=!0,k.requestedModuleList_.sort());return k.requestedModuleList_};
RWY=function(k){k=k.loadedCssModuleList_;k.sort();return k};
klY=function(k,E){return E.filter(function(S){return!k.requestedModuleMap_[S]})};
ElC=function(k,E,S,R){if(k.pendingModuleGraphUpdate_)return k.pendingModuleGraphUpdate_.then(function(){ElC(k,E,S,R)}),!0;
if(!k.useNegativeLoading_){var V=[],N=Object.assign({},k.requestedModuleMap_);nlC(k,E,function(T){V.push(T.getId())},R,function(T){return!T.isLoaded()},N);
E=V}for(N=0;N<E.length;){for(var h=E.length-N,J=N==0?E:E.slice(N,E.length),m=Vk5(k,J,R),a=_.AJ(m).toString();a.length>k.urlMaxLength;)if(h>1)h-=Math.ceil((a.length-k.urlMaxLength)/6),h=Math.max(h,1),J=E.slice(N,N+h),m=Vk5(k,J,R),a=_.AJ(m).toString();else return k.useNegativeLoading_?(k.useNegativeLoading_=!1,k.pendingModuleGraphUpdate_=icY(k).then(function(T){hWY(k,T,R)}),ElC(k,E.slice(N),S,R)):!1;
N+=h;k.useNegativeLoading_?S(m,J):S(m,J,N===E.length?E:[])}return!0};
hWY=function(k,E,S){fu().setAllModuleInfoString((E||{}).moduleGraph);nlC(k,Sxp(k),function(R){_.Dy(k,[R.getId()])},S);
k.pendingModuleGraphUpdate_=null};
nlC=function(k,E,S,R,V,N){N=N===void 0?{}:N;var h=fu();E=_.n(E);for(var J=E.next();!J.done;J=E.next()){J=J.value;var m=h.getModuleInfo(J);if(!(N[J]||V&&!V(m))){N[J]=!0;var a=m.deps_||[];if(R){var T=[];R[J]&&(T=Object.keys(R[J]));a=a.concat(T)}nlC(k,a,S,R,V,N);S(m)}}};
icY=function(k){k=k.scsReferenceUrl_.clone();n68(k);w$(k,"dg",null);w$(k,"md","1");return s7Y(k.toString())};var Sim=new Uint8Array(123);var Jg5=[];var cg8=function(){this.JSC$10049_loader_=null};
_.I=cg8.prototype;_.I.setBatchModeEnabled=function(){};
_.I.setAllModuleInfoString=function(){};
_.I.addExtraEdge=function(){throw Error("td");};
_.I.removeExtraEdge=function(){throw Error("ud");};
_.I.getModuleContext=function(){return null};
_.I.isActive=function(){return!1};
_.I.isUserActive=function(){return!1};
_.I.registerCallback=function(){};var fY=function(k,E,S,R,V){var N=Error.call(this);this.message=N.message;"stack"in N&&(this.stack=N.stack);this.name="ModuleLoadFailure";this.type=k;this.status=E;this.requestedModuleIds=S;this.url=R;this.cause=V;this.message=this.toString()};
_.y(fY,Error);fY.prototype.toString=function(){return myA(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var myA=function(k){switch(k.type){case fY.Type.UNAUTHORIZED:return"Unauthorized";case fY.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case fY.Type.TIMEOUT:return"Timed out";case fY.Type.OLD_CODE_GONE:return"Out of date module id";case fY.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+k.type}};
vt.ModuleLoadFailure=fY;vt.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var vg=function(){this.moduleIds_=this.JSC$10049_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11059_extraEdges_={};this.JSC$11059_callbackMap_={};this.JSC$11059_currentlyLoadingModule_=this.baseModuleInfo_=new j7([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new b1;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.dy(vg,cg8);var eW5=function(k,E){_.Sh.call(this,"Error loading "+k+": "+E)};
_.dy(eW5,_.Sh);vg.prototype.setBatchModeEnabled=function(k){this.batchModeEnabled_=k};
vg.prototype.setAllModuleInfoString=function(k,E){if(!(this instanceof vg))this.setAllModuleInfoString(k,E);else if(typeof k==="string"){if(k.startsWith("d$")){k=k.substring(2);for(var S=[],R=0,V=k.indexOf("/"),N=0,h=!1,J=0;;){var m=h?k.substring(N):k.substring(N,V);if(m.length===0)R++,N="sy"+R.toString(36),m=[];else{var a=m.indexOf(":");if(a<0)N=m,m=[];else if(a===m.length-1)N=m.substring(0,a),m=Array(S[J-1]);else{N=m.substring(0,a);m=m.substring(a+1).split(",");a=J;for(var T=0;T<m.length;T++)a-=
m[T].length===0?1:Number(m[T]),m[T]=S[a]}a=0;if(N.length===0)a=1;else if(N.charAt(0)==="+"||N.charAt(0)==="-")a=Number(N);a!==0&&(R+=a,N="sy"+R.toString(36))}S.push(N);aWY(this,N,m);if(h)break;N=V+1;V=k.indexOf("/",N);V===-1&&(h=!0);J++}this.moduleIds_=S}else if(k.startsWith("p$"))tkC(this,k);else{k=k.split("/");S=[];for(R=0;R<k.length;R++){J=k[R].split(":");V=J[0];h=[];if(J[1])for(h=J[1].split(","),J=0;J<h.length;J++)h[J]=S[parseInt(h[J],36)];S.push(V);aWY(this,V,h)}this.moduleIds_=S}E&&E.length?
(_.lC(this.loadingModuleIds_,E),this.lastInitialModuleId_=_.Ll(E)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11059_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11059_currentlyLoadingModule_=null,(E=this.baseModuleInfo_.onLoad((0,_.uk)(this.getModuleContext,this)))&&E.length&&TV8(this,new vt.ModuleLoadFailure(vt.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,E[0])),b5(this))}};
var tkC=function(k,E){var S=E.substring(2);for(E=0;E<64;E++)Sim["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(E)]=E;var R={buf:S,pos:0};tw(R);var V=tw(R),N=tw(R)+1;E=Array(V);var h=Array(V),J=Array(V);N=Array(N);var m=0,a=0,T=R.pos,w=R.buf.indexOf("|",R.pos);R.pos=w+1;for(w=0;w<V;w++){var P=tw(R),B=P&2,F=P&1;P>>>=2;F?(m+=P>>>1^-(P&1),P="sy"+m.toString(36)):(F=T,T+=P,P=S.substring(F,T));E[w]=P;B&&(N[a++]=P)}N[a]="";R.pos++;a=V&-2;S=V&1;for(m=0;m<a;m+=2)T=RBI(R),J[m]=
T&7,J[m+1]=T>>>3&7;S&&(S=RBI(R),J[a]=S&7);R.pos++;for(a=0;a<V;a++)J[a]===7&&(J[a]=tw(R));R.pos++;for(S=a=0;S<V;S++){m=J[S];T=m===0?Jg5:Array(m);h[S]=T;w=a;for(B=0;B<m;B++)w-=tw(R),T[B]=N[w];N[a]===E[S]&&a++}for(R=0;R<E.length;R++)aWY(k,E[R],h[R]);k.moduleIds_=E};
_.I=vg.prototype;_.I.getModuleInfo=function(k){return this.moduleInfoMap[k]};
_.I.addExtraEdge=function(k,E){var S=this.getModuleInfo(k);S&&S.isLoaded()?this.load(E):(this.JSC$11059_extraEdges_[k]||(this.JSC$11059_extraEdges_[k]={}),this.JSC$11059_extraEdges_[k][E]=!0)};
_.I.removeExtraEdge=function(k,E){if(this.JSC$11059_extraEdges_[k]){delete this.JSC$11059_extraEdges_[k][E];for(var S in this.JSC$11059_extraEdges_[k])return;delete this.JSC$11059_extraEdges_[k]}};
_.I.isActive=function(){return this.loadingModuleIds_.length>0};
_.I.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var b5=function(k){var E=k.lastActive_,S=k.isActive();S!=E&&(k.executeCallbacks_(S?"active":"idle"),k.lastActive_=S);E=k.isUserActive();E!=k.userLastActive_&&(k.executeCallbacks_(E?"userActive":"userIdle"),k.userLastActive_=E)},aWY=function(k,E,S){k.moduleInfoMap[E]?(k=k.moduleInfoMap[E].deps_,k!=S&&k.splice.apply(k,[0,
k.length].concat(_.$e(S)))):k.moduleInfoMap[E]=new j7(S,E)},PvA=function(k,E,S){var R=[];
xAh(E,R);E=[];for(var V={},N=0;N<R.length;N++){var h=R[N],J=k.getModuleInfo(h);if(!J)throw Error("vd`"+h);var m=new b1;V[h]=m;J.isLoaded()?m.callback(null):(wT4(k,h,J,!!S,m),k.isModuleLoading(h)||E.push(h))}E.length>0&&(k.loadingModuleIds_.length===0?k.loadModules_(E):(k.requestedModuleIdsQueue_.push(E),b5(k)));return V},wT4=function(k,E,S,R,V){S.registerCallback(V.callback,V);
Q72(S,function(N){V.errback(new eW5(E,N))});
k.isModuleLoading(E)?R&&(BVT(k,E),b5(k)):R&&BVT(k,E)};
vg.prototype.loadModules_=function(k,E,S){var R=this;E||(this.consecutiveFailures_=0);var V=YxY(this,k);this.loadingModuleIds_=V;this.requestedLoadingModuleIds_=this.batchModeEnabled_?k:_.d1(V);b5(this);if(V.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,V);k=this.JSC$10049_loader_;if(!k)throw Error("wd");if(Object.keys(this.JSC$11059_extraEdges_).length>0&&!k.supportsExtraEdges)throw Error("xd");S=(0,_.uk)(k.JSC$11046_loadModules,k,_.d1(V),this.moduleInfoMap,{extraEdges:this.JSC$11059_extraEdges_,
forceReload:!!S,onError:function(N,h){var J=R.requestedLoadingModuleIds_;N=N!=null?N:void 0;R.consecutiveFailures_++;var m=_.d1(V);R.requestedLoadingModuleIds_=J;V.forEach(_.I_(_.ZR,R.requestedModuleIds_),R);N==401?(TV8(R,new vt.ModuleLoadFailure(vt.ModuleLoadFailure.Type.UNAUTHORIZED,N)),R.requestedModuleIdsQueue_.length=0):N==410?(W5C(R,new vt.ModuleLoadFailure(vt.ModuleLoadFailure.Type.OLD_CODE_GONE,N)),F5C(R)):R.consecutiveFailures_>=3?(W5C(R,new vt.ModuleLoadFailure(vt.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
N,m,h)),F5C(R)):R.loadModules_(R.requestedLoadingModuleIds_,!0,N==8001||!1)},
onTimeout:(0,_.uk)(this.handleLoadTimeout_,this)});(k=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Vt.setTimeout(S,k):S()}};
var YxY=function(k,E){E=E.filter(function(V){return k.moduleInfoMap[V].isLoaded()?(_.Vt.setTimeout(function(){return Error("yd`"+V)},0),!1):!0});
for(var S=[],R=0;R<E.length;R++)S=S.concat(yg5(k,E[R]));xAh(S);return!k.batchModeEnabled_&&S.length>1?(E=S.shift(),k.requestedModuleIdsQueue_=S.map(function(V){return[V]}).concat(k.requestedModuleIdsQueue_),[E]):S},yg5=function(k,E){var S=_.fO.createSet(k.requestedModuleIds_),R=[];
S[E]||R.push(E);E=[E];for(var V=0;V<E.length;V++)for(var N=k.getModuleInfo(E[V]).deps_,h=N.length-1;h>=0;h--){var J=N[h];k.getModuleInfo(J).isLoaded()||S[J]||(R.push(J),E.push(J))}R.reverse();xAh(R);return R};
vg.prototype.JSC$11054_setLoaded=function(){if(this.JSC$11059_currentlyLoadingModule_){var k=this.JSC$11059_currentlyLoadingModule_.getId(),E=[];if(this.JSC$11059_extraEdges_[k]){for(var S=_.n(Object.keys(this.JSC$11059_extraEdges_[k])),R=S.next();!R.done;R=S.next()){R=R.value;var V=this.getModuleInfo(R);V&&!V.isLoaded()&&(this.removeExtraEdge(k,R),E.push(R))}this.loadMultiple(E)}this.isDisposed()||((E=this.moduleInfoMap[k].onLoad((0,_.uk)(this.getModuleContext,this)))&&E.length&&TV8(this,new vt.ModuleLoadFailure(vt.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,E[0])),_.ZR(this.userInitiatedLoadingModuleIds_,k),_.ZR(this.loadingModuleIds_,k),this.loadingModuleIds_.length===0&&F5C(this),this.lastInitialModuleId_&&k==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),b5(this),this.JSC$11059_currentlyLoadingModule_=null)}};
vg.prototype.isModuleLoading=function(k){if(_.bC(this.loadingModuleIds_,k))return!0;for(var E=0;E<this.requestedModuleIdsQueue_.length;E++)if(_.bC(this.requestedModuleIdsQueue_[E],k))return!0;return!1};
vg.prototype.load=function(k,E){return PvA(this,[k],E)[k]};
vg.prototype.loadMultiple=function(k){return PvA(this,k)};
var BVT=function(k,E){_.bC(k.userInitiatedLoadingModuleIds_,E)||k.userInitiatedLoadingModuleIds_.push(E)};
vg.prototype.beforeLoadModuleCode=function(k){var E=this;this.JSC$11059_currentlyLoadingModule_&&this.JSC$11059_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11054_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[k]&&ol5(this,this.moduleInfoMap[k].deps_||[],function(S){S.module_=new LY;_.ZR(E.loadingModuleIds_,S.getId())},function(S){return!S.isLoaded()});
this.JSC$11059_currentlyLoadingModule_=this.getModuleInfo(k)};
vg.prototype.handleLoadTimeout_=function(){W5C(this,new vt.ModuleLoadFailure(vt.ModuleLoadFailure.Type.TIMEOUT));F5C(this)};
var W5C=function(k,E){k.requestedLoadingModuleIds_.length>1?k.requestedModuleIdsQueue_=k.requestedLoadingModuleIds_.map(function(S){return[S]}).concat(k.requestedModuleIdsQueue_):TV8(k,E)},TV8=function(k,E){var S=k.requestedLoadingModuleIds_;
k.loadingModuleIds_.length=0;for(var R=[],V=0;V<k.requestedModuleIdsQueue_.length;V++){var N=k.requestedModuleIdsQueue_[V].filter(function(m){var a=yg5(this,m);return RW(S,function(T){return _.bC(a,T)})},k);
_.lC(R,N)}for(V=0;V<S.length;V++)_.peh(R,S[V]);for(V=0;V<R.length;V++){for(N=0;N<k.requestedModuleIdsQueue_.length;N++)_.ZR(k.requestedModuleIdsQueue_[N],R[V]);_.ZR(k.userInitiatedLoadingModuleIds_,R[V])}if(V=k.JSC$11059_callbackMap_.error)for(N=0;N<V.length;N++)for(var h=V[N],J=0;J<R.length;J++)h("error",R[J],E);for(R=0;R<S.length;R++)if(k.moduleInfoMap[S[R]])k.moduleInfoMap[S[R]].onError(E);k.requestedLoadingModuleIds_.length=0;b5(k)},F5C=function(k){for(;k.requestedModuleIdsQueue_.length;){var E=
k.requestedModuleIdsQueue_.shift().filter(function(S){return!this.getModuleInfo(S).isLoaded()},k);
if(E.length>0){k.loadModules_(E);return}}b5(k)};
vg.prototype.registerCallback=function(k,E){Array.isArray(k)||(k=[k]);for(var S=0;S<k.length;S++){var R=k[S],V=E,N=this.JSC$11059_callbackMap_;N[R]||(N[R]=[]);N[R].push(V)}};
vg.prototype.executeCallbacks_=function(k){for(var E=this.JSC$11059_callbackMap_[k],S=0;E&&S<E.length;S++)E[S](k)};
var ol5=function(k,E,S,R,V){R=R===void 0?function(){return!0}:R;
V=V===void 0?{}:V;E=_.n(E);for(var N=E.next();!N.done;N=E.next()){N=N.value;var h=k.getModuleInfo(N);!V[N]&&R(h)&&(V[N]=!0,ol5(k,h.deps_||[],S,R,V),S(h))}};
vg.prototype.dispose=function(){_.hP(_.fO.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11059_callbackMap_={};this.isDisposed_=!0};
vg.prototype.isDisposed=function(){return this.isDisposed_};
_.$4=function(){return new vg};var XT2=[5E3,2E4],gl8=function(){this.JSC$10049_loader_=null;this.JSC$11067_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11067_queue_=[];this.JSC$11067_extraEdges_=Object.create(null);this.JSC$11067_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.y(gl8,cg8);_.I=gl8.prototype;_.I.setAllModuleInfoString=function(){this.JSC$11067_currentlyLoadingModule_&&this.JSC$11067_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11054_setLoaded()};
_.I.getModuleInfo=function(k){var E=this.JSC$11067_moduleInfoMap_[k];E||(E=new j7([],k),this.JSC$11067_moduleInfoMap_[k]=E);return E};
_.I.addExtraEdge=function(k,E){this.getModuleInfo(k).isLoaded()?this.load(E):(this.JSC$11067_extraEdges_[k]||(this.JSC$11067_extraEdges_[k]={}),this.JSC$11067_extraEdges_[k][E]=!0)};
_.I.removeExtraEdge=function(k,E){if(this.JSC$11067_extraEdges_[k]){delete this.JSC$11067_extraEdges_[k][E];for(var S in this.JSC$11067_extraEdges_[k])return;delete this.JSC$11067_extraEdges_[k]}};
_.I.isModuleLoading=function(k){return!!this.loadingModules_[k]};
_.I.load=function(k){UyY(this,[k]);return Hcj(this,k)};
_.I.loadMultiple=function(k){var E=this,S=Object.create(null),R=[];k.forEach(function(V){S[V]||(S[V]=Hcj(E,V),R.push(V))});
UyY(this,R);return S};
_.I.beforeLoadModuleCode=function(k){var E;((E=this.JSC$11067_currentlyLoadingModule_)==null?void 0:E.getId())==="synthetic_module_overhead"&&this.JSC$11054_setLoaded();var S,R;K5T(this,(R=(S=this.JSC$11067_moduleInfoMap_[k])==null?void 0:S.deps_)!=null?R:[],function(V){V.module_=new LY},function(V){return!V.isLoaded()});
this.JSC$11067_currentlyLoadingModule_=this.getModuleInfo(k)};
_.I.JSC$11054_setLoaded=function(){if(this.JSC$11067_currentlyLoadingModule_){var k=this.JSC$11067_currentlyLoadingModule_.getId(),E=[];if(this.JSC$11067_extraEdges_[k]){for(var S=_.n(Object.keys(this.JSC$11067_extraEdges_[k])),R=S.next();!R.done;R=S.next())R=R.value,this.getModuleInfo(R).isLoaded()||(this.removeExtraEdge(k,R),E.push(R));this.loadMultiple(E)}this.JSC$11067_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11067_currentlyLoadingModule_=null;(!this.isModuleLoading(k)&&/^sy[0-9a-z]{0,4}$/.test(k)||k==="synthetic_module_overhead")&&delete this.JSC$11067_moduleInfoMap_[k];this.unsetModulesAsLoading(k)}};
_.I.setModulesAsLoading=function(){var k=this;_.sX.apply(0,arguments).forEach(function(E){k.loadingModules_[E]=!0})};
_.I.unsetModulesAsLoading=function(){var k=this;_.sX.apply(0,arguments).forEach(function(E){delete k.loadingModules_[E]})};
var Hcj=function(k,E){return new _.yF(function(S,R){var V=k.getModuleInfo(E);V.isLoaded()?S(null):(V.registerCallback(function(){S(null)}),Q72(V,function(N){var h="Error loading "+E+": "+N;
N instanceof vt.ModuleLoadFailure&&N.url&&(h=h+", requested url: "+N.url.toString());R(Error(h))}))})},UyY=function(k,E){E=E.filter(function(S){return!k.isModuleLoading(S)&&!k.getModuleInfo(S).isLoaded()});
E.length>0&&(k.setModulesAsLoading.apply(k,_.$e(E)),k.JSC$11067_queue_.push(E),pT8(k))},pT8=function(k){for(var E={};k.activeLoads_<Infinity&&k.JSC$11067_queue_.length>0;E={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})E.ids$jscomp$36=k.JSC$11067_queue_.shift().filter(function(S){return!k.getModuleInfo(S).isLoaded()}),E.ids$jscomp$36.length>0&&(k.activeLoads_++,E.finishLoad=function(S){return function(){k.activeLoads_--;
pT8(k);S.finishLoad=function(){}}}(E),_.Ys(E.ids$jscomp$36.map(function(S){return Hcj(k,S)})).then(function(S){return function(){(0,S.finishLoad)()}}(E)),E.attempt$jscomp$6=0,E.load$jscomp$1=function(S){return function(){if(Object.keys(k.JSC$11067_extraEdges_).length>0&&!k.JSC$10049_loader_.supportsExtraEdges)throw Error("xd");
k.JSC$10049_loader_.JSC$11046_loadModules(S.ids$jscomp$36,k.JSC$11067_moduleInfoMap_,{extraEdges:k.JSC$11067_extraEdges_,onError:function(R,V){var N=XT2[S.attempt$jscomp$6++];N!==void 0?setTimeout(function(){(0,S.load$jscomp$1)()},N):(k.unsetModulesAsLoading.apply(k,_.$e(S.ids$jscomp$36)),(0,S.finishLoad)(),S.ids$jscomp$36.forEach(function(h){h=k.getModuleInfo(h);
if(!h.isLoaded())h.onError(new vt.ModuleLoadFailure(vt.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,R,S.ids$jscomp$36,V))}))}})}}(E),(0,E.load$jscomp$1)())},K5T=function(k,E,S,R,V){R=R===void 0?function(){return!0}:R;
V=V===void 0?{}:V;E=_.n(E);for(var N=E.next();!N.done;N=E.next()){N=N.value;var h=k.getModuleInfo(N);!V[N]&&R(h)&&(V[N]=!0,K5T(k,h.deps_||[],S,R,V),S(h))}};var AgC=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var nzI=Symbol("Ad");window.JSCompiler_renameProperty=function(k){return k};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var rgT=!AgC||HTMLElement.es5Shimmed||_.Vt.Reflect===void 0||_.Vt.customElements===void 0||_.Vt.customElements.polyfillWrapFlushCallback||!1,uD4,dri=function(){var k=HTMLElement;if(rgT)return k;if(uD4!==void 0)return uD4;var E=_.Vt.Reflect,S=function(){return E.construct(k,[],this.constructor)};
S.prototype=k.prototype;S.prototype.constructor=S;S.es5Shimmed=!0;Object.setPrototypeOf(S,k);return uD4=S},xyC=!1;rgT||xyC||(xyC=!0,_.Vt.HTMLElement=dri());/*

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 mhj=/(url\()([^)]*)(\))/g,JQR=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,cQm,wm;var CZ=!window.ShadyDOM||!window.ShadyDOM.inUse,L5d=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),jRz=!window.customElements.polyfillWrapFlushCallback,DyC;if(DyC=CZ&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var $yd=new CSSStyleSheet;$yd.replaceSync("");var fWA=document.createElement("div");fWA.attachShadow({mode:"open"});fWA.shadowRoot.adoptedStyleSheets=[$yd];DyC=fWA.shadowRoot.adoptedStyleSheets[0]===$yd}catch(k){DyC=!1}
var vlY=DyC,bcd=window.Polymer&&window.Polymer.rootPath||aIe(document.baseURI||window.location.href),rm=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,FJj=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Rd=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ZcY=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,G2=window.Polymer&&window.Polymer.legacyOptimizations||!1,SX=window.Polymer&&window.Polymer.legacyWarnings||!1,dyp=window.Polymer&&window.Polymer.syncInitialRender||
!1,x6=window.Polymer&&window.Polymer.legacyUndefined||!1,sRT=window.Polymer&&window.Polymer.orderedComputed||!1,Zy=window.Polymer&&window.Polymer.removeNestedTemplates||!1,dS=window.Polymer&&window.Polymer.fastDomIf||!1,s0=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,lWj=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,MkA=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var l5={},qx8={},j9=function(){return HTMLElement.apply(this,arguments)||this};
_.y(j9,HTMLElement);j9.import=function(k,E){return k?(k=l5[k]||qx8[k.toLowerCase()])&&E?k.querySelector(E):k:null};
j9.prototype.attributeChangedCallback=function(k,E,S){E!==S&&this.register()};
j9.prototype.register=function(k){if(k=k||this.id){if(Rd&&(l5[k]||qx8[k.toLowerCase()])!==void 0)throw l5[k]=qx8[k.toLowerCase()]=null,Error("Bd`"+k);this.id=k;l5[k]=qx8[k.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.mt.Object.defineProperties(j9.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var k=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;k=_.Pn(this.getAttribute("assetpath")||"",k.baseURI);this.__assetpath=aIe(k)}return this.__assetpath}}});
_.mt.Object.defineProperties(j9,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
j9["import"]=j9.import;j9.prototype.modules=l5;customElements.define("dom-module",j9);var zWC=0,TEb=0,Bn=[],QRA=0,tjh=!1,OcY=document.createTextNode(""),Glj,QH;(new window.MutationObserver(wZ1)).observe(OcY,{characterData:!0});_.MN={after:function(k){return{run:function(E){return window.setTimeout(E,k)},
cancel:function(E){window.clearTimeout(E)}}},
run:function(k,E){return window.setTimeout(k,E)},
cancel:function(k){window.clearTimeout(k)}};
_.PM={run:function(k){return window.requestAnimationFrame(k)},
cancel:function(k){window.cancelAnimationFrame(k)}};
Glj={run:function(k){return window.requestIdleCallback?window.requestIdleCallback(k):window.setTimeout(k,16)},
cancel:function(k){window.cancelIdleCallback?window.cancelIdleCallback(k):window.clearTimeout(k)}};
QH={run:function(k){tjh||(tjh=!0,OcY.textContent=QRA++);Bn.push(k);return zWC++},
cancel:function(k){var E=k-TEb;if(E>=0){if(!Bn[E])throw Error("Cd`"+k);Bn[E]=null}}};var Cv4=0,qN=function(k){var E=k.__mixinApplications;E||(E=new WeakMap,k.__mixinApplications=E);var S=Cv4++;return function(R){var V=R.__mixinSet;if(V&&V[S])return R;var N=E,h=N.get(R);h||(h=k(R),N.set(R,h),R=Object.create(h.__mixinSet||V||null),R[S]=!0,h.__mixinSet=R);return h}};_.Aw=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(k){return ShadyDOM.patch(k)}:function(k){return k};var kNd=qN(function(k){var E=function(){var S=k.call(this)||this;S.__dataEnabled=!1;S.__dataReady=!1;S.__dataInvalid=!1;S.__data={};S.__dataPending=null;S.__dataOld=null;S.__dataInstanceProps=null;S.__dataCounter=0;S.__serializing=!1;S._initializeProperties();return S};
_.y(E,k);E.createProperties=function(S){var R=this.prototype,V;for(V in S)V in R||R._createPropertyAccessor(V)};
E.attributeNameForProperty=function(S){return S.toLowerCase()};
E.typeForProperty=function(){};
E.prototype._createPropertyAccessor=function(S,R){this._addPropertyToAttributeMap(S);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[S]||(this.__dataHasAccessor[S]=!0,this._definePropertyAccessor(S,R))};
E.prototype._addPropertyToAttributeMap=function(S){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var R=this.__dataAttributes[S];R||(R=this.constructor.attributeNameForProperty(S),this.__dataAttributes[R]=S);return R};
E.prototype._definePropertyAccessor=function(S,R){Object.defineProperty(this,S,{get:function(){return this.__data[S]},
set:R?function(){}:function(V){this._setPendingProperty(S,V,!0)&&this._invalidateProperties()}})};
E.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
E.prototype._initializeProperties=function(){for(var S in this.__dataHasAccessor)this.hasOwnProperty(S)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[S]=this[S],delete this[S])};
E.prototype._initializeInstanceProperties=function(S){Object.assign(this,S)};
E.prototype._setProperty=function(S,R){this._setPendingProperty(S,R)&&this._invalidateProperties()};
E.prototype._getProperty=function(S){return this.__data[S]};
E.prototype._setPendingProperty=function(S,R){var V=this.__data[S],N=this._shouldPropertyChange(S,R,V);N&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||S in this.__dataOld||(this.__dataOld[S]=V),this.__data[S]=R,this.__dataPending[S]=R);return N};
E.prototype._isPropertyPending=function(S){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(S))};
E.prototype._invalidateProperties=function(){var S=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,QH.run(function(){S.__dataInvalid&&(S.__dataInvalid=!1,S._flushProperties())}))};
E.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
E.prototype._flushProperties=function(){this.__dataCounter++;var S=this.__data,R=this.__dataPending,V=this.__dataOld;this._shouldPropertiesChange(S,R,V)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(S,R,V));this.__dataCounter--};
E.prototype._shouldPropertiesChange=function(S,R){return!!R};
E.prototype._propertiesChanged=function(){};
E.prototype._shouldPropertyChange=function(S,R,V){return V!==R&&(V===V||R===R)};
E.prototype.attributeChangedCallback=function(S,R,V,N){R!==V&&this._attributeToProperty(S,V);k.prototype.attributeChangedCallback&&k.prototype.attributeChangedCallback.call(this,S,R,V,N)};
E.prototype._attributeToProperty=function(S,R,V){if(!this.__serializing){var N=this.__dataAttributes;S=N&&N[S]||S;this[S]=this._deserializeValue(R,V||this.constructor.typeForProperty(S))}};
E.prototype._propertyToAttribute=function(S,R,V){this.__serializing=!0;V=arguments.length<3?this[S]:V;this._valueToNodeAttribute(this,V,R||this.constructor.attributeNameForProperty(S));this.__serializing=!1};
E.prototype._valueToNodeAttribute=function(S,R,V){R=this._serializeValue(R);if(V==="class"||V==="name"||V==="slot")S=(0,_.Aw)(S);R===void 0?S.removeAttribute(V):S.setAttribute(V,R===""&&window.trustedTypes?window.trustedTypes.emptyScript:R)};
E.prototype._serializeValue=function(S){switch(typeof S){case "boolean":return S?"":void 0;default:return S!=null?S.toString():void 0}};
E.prototype._deserializeValue=function(S,R){switch(R){case Boolean:return S!==null;case Number:return Number(S);default:return S}};
return E});var ETd=0,Prh=[];var S_z=qN(function(k){function E(N){N=Object.getPrototypeOf(N);return N.prototype instanceof V?N:null}
function S(N){if(!N.hasOwnProperty("__ownProperties")){var h=null;if(N.hasOwnProperty("properties")){var J=N.properties;if(J){h={};for(var m in J){var a=J[m];h[m]=typeof a==="function"?{type:a}:a}}}N.__ownProperties=h}return N.__ownProperties}
var R=kNd(k),V=function(){return R.apply(this,arguments)||this};
_.y(V,R);V.finalize=function(){if(!this.hasOwnProperty("__finalized")){var N=E(this);N&&N.finalize();this.__finalized=!0;this._finalizeClass()}};
V._finalizeClass=function(){var N=S(this);N&&this.createProperties(N)};
V.typeForProperty=function(N){return(N=this._properties[N])&&N.type};
V.prototype._initializeProperties=function(){ETd++;this.constructor.finalize();R.prototype._initializeProperties.call(this)};
V.prototype.connectedCallback=function(){R.prototype.connectedCallback&&R.prototype.connectedCallback.call(this);this._enableProperties()};
V.prototype.disconnectedCallback=function(){R.prototype.disconnectedCallback&&R.prototype.disconnectedCallback.call(this)};
_.mt.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var N=this;if(!this.hasOwnProperty("__observedAttributes")){BEI(this.prototype);var h=this._properties;this.__observedAttributes=h?Object.keys(h).map(function(J){return N.prototype._addPropertyToAttributeMap(J)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var N=E(this);this.__properties=Object.assign({},N&&N._properties,S(this))}return this.__properties}}});
return V});var Yit={},WOi=/-[a-z]/g,FOl=/([A-Z])/g;for(var RUC={},VNz=HTMLElement.prototype;VNz;){for(var NJC=Object.getOwnPropertyNames(VNz),Ik2=0;Ik2<NJC.length;Ik2++)RUC[NJC[Ik2]]=!0;VNz=Object.getPrototypeOf(VNz)}var nT5=window.trustedTypes?function(k){return trustedTypes.isHTML(k)||trustedTypes.isScript(k)||trustedTypes.isScriptURL(k)}:function(){return!1},ivC=qN(function(k){var E=kNd(k);
k=function(){return E.apply(this,arguments)||this};
_.y(k,E);k.createPropertiesForAttributes=function(){for(var S=this.observedAttributes,R=0;R<S.length;R++)this.prototype._createPropertyAccessor(Y6(S[R]))};
k.attributeNameForProperty=function(S){return Wn(S)};
k.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);E.prototype._initializeProperties.call(this)};
k.prototype._initializeProtoProperties=function(S){for(var R in S)this._setProperty(R,S[R])};
k.prototype._ensureAttribute=function(S,R){this.hasAttribute(S)||this._valueToNodeAttribute(this,R,S)};
k.prototype._serializeValue=function(S){switch(typeof S){case "object":if(S instanceof Date)return S.toString();if(S){if(nT5(S))return S;try{return JSON.stringify(S)}catch(R){return""}}default:return E.prototype._serializeValue.call(this,S)}};
k.prototype._deserializeValue=function(S,R){switch(R){case Object:try{var V=JSON.parse(S)}catch(N){V=S}break;case Array:try{V=JSON.parse(S)}catch(N){V=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+S)}break;case Date:V=isNaN(S)?String(S):Number(S);V=new Date(V);break;default:V=E.prototype._deserializeValue.call(this,S,R)}return V};
k.prototype._definePropertyAccessor=function(S,R){if(!RUC[S]){var V=this[S];V!==void 0&&(this.__data?this._setPendingProperty(S,V):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[S]=V))}E.prototype._definePropertyAccessor.call(this,S,R)};
k.prototype._hasAccessor=function(S){return this.__dataHasAccessor&&this.__dataHasAccessor[S]};
k.prototype._isPropertyPending=function(S){return!!(this.__dataPending&&S in this.__dataPending)};
return k});var hUp={"dom-if":!0,"dom-repeat":!0},JO5=!1,cO5=!1,mOj=function(){var k=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(E){return E}});
return function(E,S,R){S=S.getAttribute(R);k&&R.startsWith("on-")?E.setAttribute(R,k.createScript(S,R)):E.setAttribute(R,S)}}(),eUT=qN(function(k){var E=function(){return k.apply(this,arguments)||this};
_.y(E,k);E._parseTemplate=function(S,R){if(!S._templateInfo){var V=S._templateInfo={};V.nodeInfoList=[];V.nestedTemplate=!!R;V.stripWhiteSpace=R&&R.stripWhiteSpace||S.hasAttribute&&S.hasAttribute("strip-whitespace");this._parseTemplateContent(S,V,{parent:null})}return S._templateInfo};
E._parseTemplateContent=function(S,R,V){return this._parseTemplateNode(S.content,R,V)};
E._parseTemplateNode=function(S,R,V){var N=!1;S.localName!="template"||S.hasAttribute("preserve-content")?S.localName==="slot"&&(R.hasInsertionPoint=!0):N=this._parseTemplateNestedTemplate(S,R,V)||N;if(!JO5){JO5=!0;var h=document.createElement("textarea");h.placeholder="a";cO5=h.placeholder===h.textContent}cO5&&S.localName==="textarea"&&S.placeholder&&S.placeholder===S.textContent&&(S.textContent=null);S.firstChild&&this._parseTemplateChildNodes(S,R,V);S.hasAttributes&&S.hasAttributes()&&(N=this._parseTemplateNodeAttributes(S,
R,V)||N);return N||V.noted};
E._parseTemplateChildNodes=function(S,R,V){if(S.localName!=="script"&&S.localName!=="style")for(var N=S.firstChild,h=0,J;N;N=J){if(N.localName=="template"){var m=N.getAttribute("is");if(m&&hUp[m])for(J=N,J.removeAttribute("is"),N=J.ownerDocument.createElement(m),J.parentNode.replaceChild(N,J),N.appendChild(J);J.attributes.length;)m=J.attributes[0].name,mOj(N,J,m),J.removeAttribute(m)}J=N.nextSibling;if(N.nodeType===Node.TEXT_NODE){for(m=J;m&&m.nodeType===Node.TEXT_NODE;)N.textContent+=m.textContent,
J=m.nextSibling,S.removeChild(m),m=J;if(R.stripWhiteSpace&&!N.textContent.trim()){S.removeChild(N);continue}}m={parentIndex:h,parentInfo:V};this._parseTemplateNode(N,R,m)&&(m.infoIndex=R.nodeInfoList.push(m)-1);N.parentNode&&h++}};
E._parseTemplateNestedTemplate=function(S,R,V){R=this._parseTemplate(S,R);(R.content=S.content.ownerDocument.createDocumentFragment()).appendChild(S.content);V.templateInfo=R;return!0};
E._parseTemplateNodeAttributes=function(S,R,V){for(var N=!1,h=Array.from(S.attributes),J=h.length-1,m;m=h[J];J--)N=this._parseTemplateNodeAttribute(S,R,V,m.name,m.value)||N;return N};
E._parseTemplateNodeAttribute=function(S,R,V,N,h){return N.slice(0,3)==="on-"?(S.removeAttribute(N),V.events=V.events||[],V.events.push({name:N.slice(3),value:h}),!0):N==="id"?(V.id=h,!0):!1};
E._contentForTemplate=function(S){var R=S._templateInfo;return R&&R.content||S.content};
E.prototype._stampTemplate=function(S,R){S&&!S.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(S);R=R||this.constructor._parseTemplate(S);var V=R.nodeInfoList;S=document.importNode(R.content||S.content,!0);S.__noInsertionPoint=!R.hasInsertionPoint;var N=S.nodeList=Array(V.length);S.$={};for(var h=0,J=V.length,m=void 0;h<J&&(m=V[h]);h++){var a=N[h]=yQR(S,m);m.id&&(S.$[m.id]=a);var T=a,w=m,P=R;w.templateInfo&&(T._templateInfo=w.templateInfo,T._parentTemplateInfo=
P);if(m.events&&m.events.length)for(T=0,w=m.events,P=void 0;T<w.length&&(P=w[T]);T++)this._addMethodEventListenerToNode(a,P.name,P.value,this)}return S};
E.prototype._addMethodEventListenerToNode=function(S,R,V,N){V=ozi(N||S,V);this._addEventListenerToNode(S,R,V);return V};
E.prototype._addEventListenerToNode=function(S,R,V){S.addEventListener(R,V)};
E.prototype._removeEventListenerFromNode=function(S,R,V){S.removeEventListener(R,V)};
return E});var KZ=0,u2=[],akY={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},tNd=/[A-Z]/,TJY=function(k,E,S,R,V){var N=V?yH(k):k;if(E=E[N])for(N=0;N<E.length;N++){var h=E[N];if(h.info.lastRun!==KZ&&(!V||pZj(k,h.trigger))){h.info.lastRun=KZ;h=h.info;for(var J=S,m=R,a=0,T=J.length-1,w=-1;a<=T;){var P=a+T>>1,B=m.get(J[P].methodInfo)-m.get(h.methodInfo);if(B<0)a=P+1;else if(B>0)T=P-1;else{w=P;break}}w<
0&&(w=T+1);J.splice(w,0,h)}}},lII=[],wu4=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"),QA=qN(function(k){var E=eUT(ivC(k));
k=function(){var S=E.call(this)||this;S.__isPropertyEffectsClient=!0;return S};
_.y(k,E);k.prototype._initializeProperties=function(){E.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};
k.prototype._registerHost=function(){if(zk.length){var S=zk[zk.length-1];S._enqueueClient(this);this.__dataHost=S}};
k.prototype._initializeProtoProperties=function(S){this.__data=Object.create(S);this.__dataPending=Object.create(S);this.__dataOld={}};
k.prototype._initializeInstanceProperties=function(S){var R=this.__readOnly,V;for(V in S)R&&R[V]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[V]=this.__dataPending[V]=S[V])};
k.prototype._addPropertyEffect=function(S,R,V){this._createPropertyAccessor(S,R=="__readOnly");var N=KOe(this,R,!0)[S];N||(N=this[R][S]=[]);N.push(V)};
k.prototype._removePropertyEffect=function(S,R,V){S=KOe(this,R,!0)[S];V=S.indexOf(V);V>=0&&S.splice(V,1)};
k.prototype._hasPropertyEffect=function(S,R){R=this[R];return!(!R||!R[S])};
k.prototype._hasReadOnlyEffect=function(S){return this._hasPropertyEffect(S,"__readOnly")};
k.prototype._hasNotifyEffect=function(S){return this._hasPropertyEffect(S,"__notifyEffects")};
k.prototype._hasReflectEffect=function(S){return this._hasPropertyEffect(S,"__reflectEffects")};
k.prototype._hasComputedEffect=function(S){return this._hasPropertyEffect(S,"__computeEffects")};
k.prototype._setPendingPropertyOrPath=function(S,R,V,N){if(N||yH(Array.isArray(S)?S[0]:S)!==S){if(!N&&(N=Hn(this,S),S=H91(this,S,R),!S||!E.prototype._shouldPropertyChange.call(this,S,R,N)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(S,R,V)){if(V=this.__dataLinkedPaths)for(var h in V)N=V[h],Xt(h,S)?(N=gm(h,N,S),this._setPendingPropertyOrPath(N,R,!0,!0)):Xt(N,S)&&(N=gm(N,h,S),this._setPendingPropertyOrPath(N,R,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[S])return this._setPendingProperty(S,
R,V);this[S]=R}return!1};
k.prototype._setUnmanagedPropertyToNode=function(S,R,V){if(V!==S[R]||typeof V=="object")R==="className"&&(S=(0,_.Aw)(S)),S[R]=V};
k.prototype._setPendingProperty=function(S,R,V){var N=this.__dataHasPaths&&Ft(S);if(this._shouldPropertyChange(S,R,(N?this.__dataTemp:this.__data)[S])){this.__dataPending||(this.__dataPending={},this.__dataOld={});S in this.__dataOld||(this.__dataOld[S]=this.__data[S]);N?this.__dataTemp[S]=R:this.__data[S]=R;this.__dataPending[S]=R;if(N||this.__notifyEffects&&this.__notifyEffects[S])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[S]=V;return!0}return!1};
k.prototype._setProperty=function(S,R){this._setPendingProperty(S,R,!0)&&this._invalidateProperties()};
k.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
k.prototype._enqueueClient=function(S){this.__dataPendingClients=this.__dataPendingClients||[];S!==this&&this.__dataPendingClients.push(S)};
k.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
k.prototype.__enableOrFlushClients=function(){var S=this.__dataPendingClients;if(S){this.__dataPendingClients=null;for(var R=0;R<S.length;R++){var V=S[R];V.__dataEnabled?V.__dataPending&&V._flushProperties():V._enableProperties()}}};
k.prototype._readyClients=function(){this.__enableOrFlushClients()};
k.prototype.setProperties=function(S,R){for(var V in S)!R&&this.__readOnly&&this.__readOnly[V]||this._setPendingPropertyOrPath(V,S[V],!0);this._invalidateProperties()};
k.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
k.prototype._propertiesChanged=function(S,R,V){S=this.__dataHasPaths;this.__dataHasPaths=!1;var N;if(N=this.__computeEffects)if(sRT){KZ++;var h=j31(this),J=[],m;for(m in R)TJY(m,N,J,h,S);for(;m=J.shift();)$hm(this,"",R,V,m)&&TJY(m.methodInfo,N,J,h,S);Object.assign(V,this.__dataOld);Object.assign(R,this.__dataPending);this.__dataPending=null}else for(h=R;pZ(this,N,h,V,S);)Object.assign(V,this.__dataOld),Object.assign(R,this.__dataPending),h=this.__dataPending,this.__dataPending=null;N=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(R,V,S);this._flushClients();pZ(this,this.__reflectEffects,R,V,S);pZ(this,this.__observeEffects,R,V,S);if(N){h=this.__notifyEffects;J=KZ++;for(var a in N)if(N[a]){if(m=h){var T=h;m=J;var w=a,P=R,B=V,F=S,K=!1,r=F?yH(w):w;if(T=T[r]){r=0;for(var x=T.length,L=void 0;r<x&&(L=T[r]);r++)L.info&&L.info.lastRun===m||F&&!pZj(w,L.trigger)||(L.info&&(L.info.lastRun=m),L.fn(this,w,P,B,L.info,F,void 0),K=!0)}m=K}if(m)var q=!0;else{if(m=S)m=a,w=R,P=yH(m),P!==
m?(P=Wn(P)+"-changed",rQh(this,P,w[m],m),m=!0):m=!1;m&&(q=!0)}}var M;q&&(M=this.__dataHost)&&M._invalidateProperties&&M._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
k.prototype._propagatePropertyChanges=function(S,R,V){this.__propagateEffects&&pZ(this,this.__propagateEffects,S,R,V);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,S,R,V)};
k.prototype._runEffectsForTemplate=function(S,R,V,N){var h=this,J=function(m,a){pZ(h,S.propertyEffects,m,V,a,S.nodeList);for(var T=S.firstChild;T;T=T.nextSibling)h._runEffectsForTemplate(T,m,V,a)};
S.runEffects?S.runEffects(J,R,N):J(R,N)};
k.prototype.linkPaths=function(S,R){S=U2(S);R=U2(R);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[S]=R};
k.prototype.unlinkPaths=function(S){S=U2(S);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[S]};
k.prototype.notifySplices=function(S,R){var V={path:""};S=Hn(this,S,V);Q3R(this,S,V.path,R)};
k.prototype.get=function(S,R){return Hn(R||this,S)};
k.prototype.set=function(S,R,V){V?H91(V,S,R):this.__readOnly&&this.__readOnly[S]||this._setPendingPropertyOrPath(S,R,!0)&&this._invalidateProperties()};
k.prototype.push=function(S){var R=_.sX.apply(1,arguments),V={path:""},N=Hn(this,S,V),h=N.length,J=N.push.apply(N,_.$e(R));R.length&&LZ(this,N,V.path,h,R.length,[]);return J};
k.prototype.pop=function(S){var R={path:""};S=Hn(this,S,R);var V=!!S.length,N=S.pop();V&&LZ(this,S,R.path,S.length,0,[N]);return N};
k.prototype.splice=function(S,R,V){var N=_.sX.apply(3,arguments),h={path:""},J=Hn(this,S,h);R<0?R=J.length-Math.floor(-R):R&&(R=Math.floor(R));var m=arguments.length===2?J.splice(R):J.splice.apply(J,[R,V].concat(_.$e(N)));(N.length||m.length)&&LZ(this,J,h.path,R,N.length,m);return m};
k.prototype.shift=function(S){var R={path:""};S=Hn(this,S,R);var V=!!S.length,N=S.shift();V&&LZ(this,S,R.path,0,0,[N]);return N};
k.prototype.unshift=function(S){var R=_.sX.apply(1,arguments),V={path:""},N=Hn(this,S,V),h=N.unshift.apply(N,_.$e(R));R.length&&LZ(this,N,V.path,0,R.length,[]);return h};
k.prototype.notifyPath=function(S,R){if(arguments.length==1){var V={path:""};R=Hn(this,S,V);V=V.path}else V=Array.isArray(S)?U2(S):S;this._setPendingPropertyOrPath(V,R,!0,!0)&&this._invalidateProperties()};
k.prototype._createReadOnlyProperty=function(S,R){this._addPropertyEffect(S,"__readOnly");R&&(this["_set"+(S[0].toUpperCase()+S.substring(1))]=function(V){this._setProperty(S,V)})};
k.prototype._createPropertyObserver=function(S,R,V){var N={property:S,method:R,dynamicFn:!!V};this._addPropertyEffect(S,"__observeEffects",{fn:AQh,info:N,trigger:{name:S}});V&&this._addPropertyEffect(R,"__observeEffects",{fn:AQh,info:N,trigger:{name:R}})};
k.prototype._createMethodObserver=function(S,R){var V=qiC(S);if(!V)throw Error("Dd`"+S);dhe(this,V,"__observeEffects",DhC,null,R)};
k.prototype._createNotifyingProperty=function(S){this._addPropertyEffect(S,"__notifyEffects",{fn:uwi,info:{eventName:Wn(S)+"-changed",property:S}})};
k.prototype._createReflectedProperty=function(S){var R=this.constructor.attributeNameForProperty(S);R[0]==="-"?console.warn("Property "+S+" cannot be reflected to attribute "+R+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(S,"__reflectEffects",{fn:xhI,info:{attrName:R}})};
k.prototype._createComputedProperty=function(S,R,V){var N=qiC(R);if(!N)throw Error("Ed`"+R);R=dhe(this,N,"__computeEffects",$hm,S,V);KOe(this,"__computeInfo")[S]=R};
k.prototype._marshalArgs=function(S,R,V){for(var N=this.__data,h=[],J=0,m=S.length;J<m;J++){var a=S[J],T=a.name,w=a.structured,P=a.wildcard,B=a.value;a.literal||(P?(a=Xt(T,R),w=zBl(N,V,a?R:T),B={path:a?R:T,value:w,base:a?Hn(N,T):w}):B=w?zBl(N,V,T):N[T]);if(x6&&!this._overrideLegacyUndefined&&B===void 0&&S.length>1)return u2;h[J]=B}return h};
k.addPropertyEffect=function(S,R,V){this.prototype._addPropertyEffect(S,R,V)};
k.createPropertyObserver=function(S,R,V){this.prototype._createPropertyObserver(S,R,V)};
k.createMethodObserver=function(S,R){this.prototype._createMethodObserver(S,R)};
k.createNotifyingProperty=function(S){this.prototype._createNotifyingProperty(S)};
k.createReadOnlyProperty=function(S,R){this.prototype._createReadOnlyProperty(S,R)};
k.createReflectedProperty=function(S){this.prototype._createReflectedProperty(S)};
k.createComputedProperty=function(S,R,V){this.prototype._createComputedProperty(S,R,V)};
k.bindTemplate=function(S){return this.prototype._bindTemplate(S)};
k.prototype._bindTemplate=function(S,R){var V=this.constructor._parseTemplate(S),N=this.__preBoundTemplateInfo==V;if(!N)for(var h in V.propertyEffects)this._createPropertyAccessor(h);R?(V=Object.create(V),V.wasPreBound=N,this.__templateInfo?(S=S._parentTemplateInfo||this.__templateInfo,R=S.lastChild,V.parent=S,S.lastChild=V,(V.previousSibling=R)?R.nextSibling=V:S.firstChild=V):this.__templateInfo=V):this.__preBoundTemplateInfo=V;return V};
k._addTemplatePropertyEffect=function(S,R,V){(S.hostProps=S.hostProps||{})[R]=!0;S=S.propertyEffects=S.propertyEffects||{};(S[R]=S[R]||[]).push(V)};
k.prototype._stampTemplate=function(S,R){R=R||this._bindTemplate(S,!0);zk.push(this);S=E.prototype._stampTemplate.call(this,S,R);zk.pop();R.nodeList=S.nodeList;if(!R.wasPreBound)for(var V=R.childNodes=[],N=S.firstChild;N;N=N.nextSibling)V.push(N);S.templateInfo=R;V=R.nodeList;N=R.nodeInfoList;if(N.length)for(var h=0;h<N.length;h++){var J=V[h],m=N[h].bindings;if(m)for(var a=0;a<m.length;a++){var T=m[a],w=J,P=T;if(P.isCompound){for(var B=w.__dataCompoundStorage||(w.__dataCompoundStorage={}),F=P.parts,
K=Array(F.length),r=0;r<F.length;r++)K[r]=F[r].literal;F=P.target;B[F]=K;P.literal&&P.kind=="property"&&(F==="className"&&(w=(0,_.Aw)(w)),w[F]=P.literal)}Z9I(J,this,T)}J.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(R,this.__data,null,!1),this._flushClients());return S};
k.prototype._removeBoundDom=function(S){S=S.templateInfo;var R=S.previousSibling,V=S.nextSibling,N=S.parent;R?R.nextSibling=V:N&&(N.firstChild=V);V?V.previousSibling=R:N&&(N.lastChild=R);S.nextSibling=S.previousSibling=null;S=S.childNodes;for(R=0;R<S.length;R++)V=S[R],(0,_.Aw)((0,_.Aw)(V).parentNode).removeChild(V)};
k._parseTemplateNode=function(S,R,V){var N=E._parseTemplateNode.call(this,S,R,V);if(S.nodeType===Node.TEXT_NODE){var h=this._parseBindings(S.textContent,R);h&&(S.textContent=s3l(h)||" ",b9b(this,R,V,"text","textContent",h),N=!0)}return N};
k._parseTemplateNodeAttribute=function(S,R,V,N,h){var J=this._parseBindings(h,R);if(J){h=N;var m="property";tNd.test(N)?m="attribute":N[N.length-1]=="$"&&(N=N.slice(0,-1),m="attribute");var a=s3l(J);a&&m=="attribute"&&(N=="class"&&S.hasAttribute("class")&&(a+=" "+S.getAttribute(N)),S.setAttribute(N,a));m=="attribute"&&h=="disable-upgrade$"&&S.setAttribute(N,"");S.localName==="input"&&h==="value"&&S.setAttribute(h,"");S.removeAttribute(h);m==="property"&&(N=Y6(N));b9b(this,R,V,m,N,J,a);return!0}return E._parseTemplateNodeAttribute.call(this,
S,R,V,N,h)};
k._parseTemplateNestedTemplate=function(S,R,V){var N=E._parseTemplateNestedTemplate.call(this,S,R,V),h=S.parentNode,J=V.templateInfo,m=h.localName==="dom-if",a=h.localName==="dom-repeat";Zy&&(m||a)&&(h.removeChild(S),V=V.parentInfo,V.templateInfo=J,V.noted=!0,N=!1);S=J.hostProps;if(dS&&m)S&&(R.hostProps=Object.assign(R.hostProps||{},S),Zy||(V.parentInfo.noted=!0));else for(var T in S)b9b(this,R,V,"property","_host_"+T,[{mode:"{",source:T,dependencies:[T],hostProp:!0}]);return N};
k._parseBindings=function(S,R){for(var V=[],N=0,h;(h=wu4.exec(S))!==null;){h.index>N&&V.push({literal:S.slice(N,h.index)});N=h[1][0];var J=!!h[2];h=h[3].trim();var m=!1,a="",T=-1;N=="{"&&(T=h.indexOf("::"))>0&&(a=h.substring(T+2),h=h.substring(0,T),m=!0);T=qiC(h);var w=[];if(T){var P=T,B=P.args;P=P.methodName;for(var F=0;F<B.length;F++){var K=B[F];K.literal||w.push(K)}if((B=R.dynamicFns)&&B[P]||T.static)w.push(P),T.dynamicFn=!0}else w.push(h);V.push({source:h,mode:N,negate:J,customEvent:m,signature:T,
dependencies:w,event:a});N=wu4.lastIndex}N&&N<S.length&&(S=S.substring(N))&&V.push({literal:S});return V.length?V:null};
k._evaluateBinding=function(S,R,V,N,h,J){S=R.signature?DhC(S,V,N,h,R.signature):V!=R.source?Hn(S,R.source):J&&Ft(V)?Hn(S,V):S.__data[V];R.negate&&(S=!S);return S};
_.mt.Object.defineProperties(k.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return akY}}});
return k}),zk=[];var PlY=window.ShadyCSS&&window.ShadyCSS.cssBuild,O0=qN(function(k){function E(R,V,N,h){if(!PlY){for(var J=V.content.querySelectorAll("style"),m=keC(V),a=Eqm(N),T=V.content.firstElementChild,w=0;w<a.length;w++){var P=a[w];P.textContent=R._processStyleText(P.textContent,h);V.content.insertBefore(P,T)}for(T=a=0;T<m.length;T++)w=m[T],P=J[a],P!==w?(w=w.cloneNode(!0),P.parentNode.insertBefore(w,P)):a++,w.textContent=R._processStyleText(w.textContent,h)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(V,
N);if(MkA&&PlY&&vlY&&(V=V.content.querySelectorAll("style"))){var B="";Array.from(V).forEach(function(F){B+=F.textContent;F.parentNode.removeChild(F)});
R._styleSheet=new CSSStyleSheet;R._styleSheet.replaceSync(B)}}
var S=S_z(QA(k));k=function(){return S.call(this)||this};
_.y(k,S);k._finalizeClass=function(){S._finalizeClass.call(this);var R;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(R=this.__ownObservers)&&this.createObservers(R,this._properties);this._prepareTemplate()};
k._prepareTemplate=function(){var R=this.template;R&&(typeof R==="string"?(console.error("template getter must return HTMLTemplateElement"),R=null):G2||(R=R.cloneNode(!0)));this.prototype._template=R};
k.createProperties=function(R){for(var V in R){var N=this.prototype,h=V,J=R[V],m=R;J.computed&&(J.readOnly=!0);J.computed&&(N._hasReadOnlyEffect(h)?console.warn("Cannot redefine computed property '"+h+"'."):N._createComputedProperty(h,J.computed,m));J.readOnly&&!N._hasReadOnlyEffect(h)?N._createReadOnlyProperty(h,!J.computed):J.readOnly===!1&&N._hasReadOnlyEffect(h)&&console.warn("Cannot make readOnly property '"+h+"' non-readOnly.");J.reflectToAttribute&&!N._hasReflectEffect(h)?N._createReflectedProperty(h):
J.reflectToAttribute===!1&&N._hasReflectEffect(h)&&console.warn("Cannot make reflected property '"+h+"' non-reflected.");J.notify&&!N._hasNotifyEffect(h)?N._createNotifyingProperty(h):J.notify===!1&&N._hasNotifyEffect(h)&&console.warn("Cannot make notify property '"+h+"' non-notify.");J.observer&&N._createPropertyObserver(h,J.observer,m[J.observer]);N._addPropertyToAttributeMap(h)}};
k.createObservers=function(R,V){for(var N=this.prototype,h=0;h<R.length;h++)N._createMethodObserver(R[h],V)};
k.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);S.prototype._initializeProperties.call(this);this.rootPath=bcd;this.importPath=this.constructor.importPath;var R=this.constructor;if(!R.hasOwnProperty("__propertyDefaults")){R.__propertyDefaults=null;var V=R._properties,N;for(N in V){var h=V[N];"value"in h&&(R.__propertyDefaults=R.__propertyDefaults||{},R.__propertyDefaults[N]=h)}}if(R=R.__propertyDefaults)for(var J in R)V=R[J],
this._canApplyPropertyDefault(J)&&(V=typeof V.value=="function"?V.value.call(this):V.value,this._hasAccessor(J)?this._setPendingProperty(J,V,!0):this[J]=V)};
k.prototype._canApplyPropertyDefault=function(R){return!this.hasOwnProperty(R)};
k._processStyleText=function(R,V){return eBl(R,V)};
k._finalizeTemplate=function(R){var V=this.prototype._template;if(V&&!V.__polymerFinalized){V.__polymerFinalized=!0;var N=this.importPath;N=N?_.Pn(N):"";E(this,V,R,N);this.prototype._bindTemplate(V)}};
k.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);S.prototype.connectedCallback.call(this)};
k.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);S.prototype.ready.call(this)};
k.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));S.prototype._readyClients.call(this)};
k.prototype._attachDom=function(R){var V=(0,_.Aw)(this);if(V.attachShadow)return R?(V.shadowRoot||(V.attachShadow({mode:"open",shadyUpgradeFragment:R}),V.shadowRoot.appendChild(R),this.constructor._styleSheet&&(V.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),dyp&&window.ShadyDOM&&window.ShadyDOM.flushInitial(V.shadowRoot),V.shadowRoot):null;throw Error("Gd");};
k.prototype.updateStyles=function(R){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,R)};
k.prototype.resolveUrl=function(R,V){!V&&this.importPath&&(V=_.Pn(this.importPath));return _.Pn(R,V)};
k._parseTemplateContent=function(R,V,N){V.dynamicFns=V.dynamicFns||this._properties;return S._parseTemplateContent.call(this,R,V,N)};
k._addTemplatePropertyEffect=function(R,V,N){!SX||V in this._properties||N.info.part.signature&&N.info.part.signature.static||N.info.part.hostProp||R.nestedTemplate||console.warn("Property '"+V+"' used in template but not declared in 'properties'; attribute will not be observed.");return S._addTemplatePropertyEffect.call(this,R,V,N)};
_.mt.Object.defineProperties(k,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var R=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof R==="function"&&(R=R());if(R===void 0){if(R=this.hasOwnProperty("is")){R=this.is;var V=null;if(R&&(!Rd||ZcY)&&(V=j9.import(R,"template"),Rd&&!V))throw Error("Fd`"+R);R=V}R=R||Object.getPrototypeOf(this.prototype).constructor.template}this._template=R}return this._template},
set:function(R){this._template=R}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var R=this.importMeta;R?this._importPath=aIe(R.url):this._importPath=(R=j9.import(this.is))&&R.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return k});var BJj=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(k){return k}}),im1=function(k,E){Y_Y(k,E);
this.value=E.reduce(function(S,R,V){return S+h_C(R)+k[V+1]},k[0]).toString()},Y_Y;
im1.prototype.toString=function(){return this.value};
_.Wiz=function(k){var E=_.sX.apply(1,arguments);Y_Y(k,E);var S=document.createElement("template");E=E.reduce(function(R,V,N){if(V instanceof HTMLTemplateElement)V=V.innerHTML;else if(V instanceof im1)V=h_C(V);else throw Error("Id`"+V);return R+V+k[N+1]},k[0]);
BJj&&(E=BJj.createHTML(E));S.innerHTML=E;return S};
Y_Y=function(k,E){if(!Array.isArray(k)||!Array.isArray(k.raw)||E.length!==k.length-1)throw new TypeError("Jd");};var Gk=O0(HTMLElement);var Fid=qN(function(k){var E=O0(k);k=function(){var S=E.call(this)||this;S.__lastItems=null;S.__lastMulti=null;S.__selectedMap=null;return S};
_.y(k,E);k.prototype.__updateSelection=function(S,R){var V=R.path;V=="items"?(R=R.base||[],V=this.__lastItems,S!==this.__lastMulti&&this.clearSelection(),V&&(V=nqi(R,V),this.__applySplices(V)),this.__lastItems=R,this.__lastMulti=S):R.path=="items.splices"?this.__applySplices(R.value.indexSplices):(S=V.slice(6),R=parseInt(S,10),S.indexOf(".")<0&&S==R&&this.__deselectChangedIdx(R))};
k.prototype.__applySplices=function(S){for(var R=this,V=this.__selectedMap,N={},h=0;h<S.length;N={s$jscomp$109:void 0},h++){N.s$jscomp$109=S[h];V.forEach(function(T){return function(w,P){w<T.s$jscomp$109.index||(w>=T.s$jscomp$109.index+T.s$jscomp$109.removed.length?V.set(P,w+T.s$jscomp$109.addedCount-T.s$jscomp$109.removed.length):V.set(P,-1))}}(N));
for(var J=0;J<N.s$jscomp$109.addedCount;J++){var m=N.s$jscomp$109.index+J;V.has(this.items[m])&&V.set(this.items[m],m)}}this.__updateLinks();var a=0;V.forEach(function(T,w){T<0?(R.multi?R.splice("selected",a,1):R.selected=R.selectedItem=null,V.delete(w)):a++})};
k.prototype.__updateLinks=function(){var S=this;this.__dataLinkedPaths={};if(this.multi){var R=0;this.__selectedMap.forEach(function(V){V>=0&&S.linkPaths("items."+V,"selected."+R++)})}else this.__selectedMap.forEach(function(V){S.linkPaths("selected","items."+V);
S.linkPaths("selectedItem","items."+V)})};
k.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
k.prototype.isSelected=function(S){return this.__selectedMap.has(S)};
k.prototype.isIndexSelected=function(S){return this.isSelected(this.items[S])};
k.prototype.__deselectChangedIdx=function(S){var R=this,V=this.__selectedIndexForItemIndex(S);if(V>=0){var N=0;this.__selectedMap.forEach(function(h,J){V==N++&&R.deselect(J)})}};
k.prototype.__selectedIndexForItemIndex=function(S){if(S=this.__dataLinkedPaths["items."+S])return parseInt(S.slice(9),10)};
k.prototype.deselect=function(S){var R=this.__selectedMap.get(S);if(R>=0){this.__selectedMap.delete(S);var V;this.multi&&(V=this.__selectedIndexForItemIndex(R));this.__updateLinks();this.multi?this.splice("selected",V,1):this.selected=this.selectedItem=null}};
k.prototype.deselectIndex=function(S){this.deselect(this.items[S])};
k.prototype.select=function(S){this.selectIndex(this.items.indexOf(S))};
k.prototype.selectIndex=function(S){var R=this.items[S];this.isSelected(R)?this.toggle&&this.deselectIndex(S):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(R,S),this.__updateLinks(),this.multi?this.push("selected",R):this.selected=this.selectedItem=R)};
_.mt.Object.defineProperties(k,{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 k}),yOz=Fid(Gk),CY=function(){return yOz.apply(this,arguments)||this};
_.y(CY,yOz);_.mt.Object.defineProperties(CY,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(CY.is,CY);var oTd=window.Polymer;window.Polymer=function(k){return window.Polymer._polymerFn(k)};
oTd&&Object.assign(Polymer,oTd);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:eBl,resolveUrl:_.Pn,pathFromUrl:aIe};Polymer.DomModule=j9;Polymer.Async={timeOut:_.MN,animationFrame:_.PM,idlePeriod:Glj,microTask:QH};Polymer.dedupingMixin=qN;Polymer.wrap=_.Aw;Polymer.PropertiesChanged=kNd;Polymer.telemetry={instanceCount:ETd,incrementInstanceCount:function(){ETd++},
registrations:Prh,register:BEI,dumpRegistrations:function(){Prh.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=S_z;Polymer.CaseMap={dashToCamelCase:Y6,camelToDashCase:Wn};Polymer.PropertyAccessors=ivC;Polymer.TemplateStamp=eUT;Polymer.Path={isPath:Ft,root:yH,isAncestor:XZC,isDescendant:Xt,translate:gm,matches:gzi,normalize:U2,split:Uht,get:Hn,set:H91,isDeep:Ft};Polymer.Settings={useShadow:CZ,useNativeCSSProperties:L5d,useNativeCustomElements:jRz,get rootPath(){return bcd},setRootPath:function(k){bcd=k},
get sanitizeDOMValue(){return rm},setSanitizeDOMValue:function(k){rm=k},
get passiveTouchGestures(){return FJj},setPassiveTouchGestures:function(k){FJj=k},
get strictTemplatePolicy(){return Rd},setStrictTemplatePolicy:function(k){Rd=k},
get allowTemplateFromDomModule(){return ZcY},setAllowTemplateFromDomModule:function(k){ZcY=k},
get legacyOptimizations(){return G2},setLegacyOptimizations:function(k){G2=k},
get syncInitialRender(){return dyp},setSyncInitialRender:function(k){dyp=k},
get legacyUndefined(){return x6},setLegacyUndefined:function(k){x6=k},
get legacyWarnings(){return SX},setLegacyWarnings:function(k){SX=k},
get orderedComputed(){return sRT},setOrderedComputed:function(k){sRT=k},
get fastDomIf(){return dS},setFastDomIf:function(k){dS=k},
get removeNestedTemplates(){return Zy},setRemoveNestedTemplates:function(k){Zy=k},
get suppressTemplateNotifications(){return s0},setSuppressTemplateNotifications:s0};Polymer.rootPath!==void 0&&(bcd=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(rm=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(FJj=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Rd=Polymer.strictTemplatePolicy);ZcY=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(G2=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(dyp=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(x6=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(SX=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(sRT=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(dS=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(Zy=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(s0=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return rm},
set:function(k){rm=k}});Polymer.PropertyEffects=QA;Polymer.StyleGather={stylesFromModules:CrI,stylesFromModule:Gbh,stylesFromTemplate:keC,stylesFromModuleImports:Eqm,cssFromModules:R_i,cssFromModule:SBb,cssFromTemplate:VHC,cssFromModuleImports:function(k){return(k=j9.import(k))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(k):""}};Polymer.ElementMixin=O0;Polymer.updateStyles=function(k){window.ShadyCSS&&window.ShadyCSS.styleDocument(k)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:nqi};Polymer.html=_.Wiz;Polymer.htmlLiteral=function(k){return new im1(k,_.sX.apply(1,arguments))};Polymer.Element=Gk;Polymer.ArraySelectorMixin=Fid;Polymer.ArraySelector=CY;var Xud=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,gTC=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,ZL1=/@media\s(.*)/;var e_j=null,mXI=window.HTMLImports&&window.HTMLImports.whenReady||null,aOR;var UOC=null,kx=null,ED=function(){this.customStyles=[];this.enqueued=!1;tHm(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},HvC=function(k){!k.enqueued&&kx&&(k.enqueued=!0,tHm(kx))};
ED.prototype.addCustomStyle=function(k){k.__seenByShadyCSS||(k.__seenByShadyCSS=!0,this.customStyles.push(k),HvC(this))};
ED.prototype.getStyleForCustomStyle=function(k){if(k.__shadyCSSCachedStyle)return k.__shadyCSSCachedStyle;var E;k.getStyle?E=k.getStyle():E=k;return E};
ED.prototype.processStyles=function(){for(var k=this.customStyles,E=0;E<k.length;E++){var S=k[E];if(!S.__shadyCSSCachedStyle){var R=this.getStyleForCustomStyle(S);R&&(R=R.__appliedElement||R,UOC&&UOC(R),S.__shadyCSSCachedStyle=R)}}return k};
ED.prototype.addCustomStyle=ED.prototype.addCustomStyle;ED.prototype.getStyleForCustomStyle=ED.prototype.getStyleForCustomStyle;ED.prototype.processStyles=ED.prototype.processStyles;Object.defineProperties(ED.prototype,{transformCallback:{get:function(){return UOC},
set:function(k){UOC=k}},
validateCallback:{get:function(){return kx},
set:function(k){var E=!1;kx||(E=!0);kx=k;E&&HvC(this)}}});var wtI=!(window.ShadyDOM&&window.ShadyDOM.inUse),Tyj,ck;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(ck=window.ShadyCSS.cssBuild);var Kid=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Tyj=window.ShadyCSS.nativeCss:window.ShadyCSS?(Pbh(window.ShadyCSS),window.ShadyCSS=void 0):Pbh(window.WebComponents&&window.WebComponents.flags);var fsj=Tyj;var pud=new ED;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(k,E){pud.processStyles();J9I(k,E)},
styleElement:function(){pud.processStyles()},
styleDocument:function(k){pud.processStyles();J9I(document.body,k)},
getComputedStyleValue:function(k,E){return c9i(k,E)},
flushCustomStyles:function(){},
nativeCss:fsj,nativeShadow:wtI,cssBuild:ck,disableRuntime:Kid});window.ShadyCSS.CustomStyleInterface=pud;var AOA=window.ShadyCSS.CustomStyleInterface,SG=function(){var k=HTMLElement.call(this)||this;k._style=null;AOA.addCustomStyle(k);return k};
_.y(SG,HTMLElement);SG.prototype.getStyle=function(){if(this._style)return this._style;var k=this.querySelector("style");if(!k)return null;this._style=k;var E=k.getAttribute("include");E&&(k.removeAttribute("include"),k.textContent=R_i(E)+k.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
SG.prototype.getStyle=SG.prototype.getStyle;window.customElements.define("custom-style",SG);Polymer.CustomStyle=SG;var R0=function(){this._timer=this._callback=this._asyncModule=null},VY,u6d;
R0.prototype.setConfig=function(k,E){var S=this;this._asyncModule=k;this._callback=E;this._timer=this._asyncModule.run(function(){S._timer=null;VY.delete(S);S._callback()})};
R0.prototype.cancel=function(){this.isActive()&&(rO8(this),VY.delete(this))};
var rO8=function(k){k.isActive()&&(k._asyncModule.cancel(k._timer),k._timer=null)};
R0.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
R0.prototype.isActive=function(){return this._timer!=null};
_.N7=function(k,E,S){k instanceof R0?rO8(k):k=new R0;k.setConfig(E,S);return k};
VY=new Set;_.I0=function(k){VY.add(k)};
u6d=function(){var k=!!VY.size;VY.forEach(function(E){try{E.flush()}catch(S){setTimeout(function(){throw S;})}});
return k};var YBA=typeof document.head.style.touchAction==="string",Byh=["mousedown","mousemove","mouseup","click"],KJC=[0,1,4,2],xOC;try{xOC=(new MouseEvent("test",{buttons:1})).buttons===1}catch(k){xOC=!1}var HmI=xOC,WJI=!1;(function(){try{var k=Object.defineProperty({},"passive",{get:function(){WJI=!0}});
window.addEventListener("test",null,k);window.removeEventListener("test",null,k)}catch(E){}})();
var oqR=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Xth=[],LiT={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},bmm={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},gqe=function(k){var E=k.sourceCapabilities;if(!E||E.firesTouchEvents)if(k.__polymerGesturesHandled={skip:!0},k.type==="click"){E=!1;for(var S=urt(k),R=0;R<S.length;R++){if(S[R].nodeType===Node.ELEMENT_NODE)if(S[R].localName==="label")Xth.push(S[R]);
else if(LiT[S[R].localName]){var V=S[R];var N=Array.prototype.slice.call(V.labels||[]);if(!N.length){N=[];try{var h=V.getRootNode();if(V.id){var J=h.querySelectorAll("label[for = '"+V.id+"']");for(V=0;V<J.length;V++)N.push(J[V])}}catch(m){}}for(V=0;V<N.length;V++)E=E||Xth.indexOf(N[V])>-1}if(S[R]===jcC)return}E||(k.preventDefault(),k.stopPropagation())}},jcC=null,nF=null,LJi=0,jOh=0,xX1=-1,DXb=!1;
document.addEventListener("touchend",function(k){nF||UXe(!0);jcC=urt(k)[0];nF=_.N7(nF,_.MN.after(2500),function(){UXe();nF=jcC=null})},WJI?{passive:!0}:!1);
var urt=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(k){return k.composedPath&&k.composedPath()||[]},dm={},b2=[];
$XR({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){vn(this.info)},
mousedown:function(k){if($6(k)){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k),S=this;A9I(this.info,function(R){$6(R)||(O2("up",E,R),vn(S.info))},function(R){$6(R)&&O2("up",E,R);
vn(S.info)});
O2("down",E,k)}},
touchstart:function(k){O2("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k),k.changedTouches[0],k)},
touchend:function(k){O2("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k),k.changedTouches[0],k)}});
$XR({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(k){this.moves.length>2&&this.moves.shift();this.moves.push(k)},
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;vn(this.info)},
mousedown:function(k){if($6(k)){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k),S=this,R=function(V){var N=V.clientX,h=V.clientY;fOb(S.info,N,h)&&(S.info.state=S.info.started?V.type==="mouseup"?"end":"track":"start",S.info.state==="start"&&Zl("tap"),S.info.addMove({x:N,y:h}),$6(V)||(S.info.state="end",vn(S.info)),E&&vql(S.info,E,V),S.info.started=!0)};
A9I(this.info,R,function(V){S.info.started&&R(V);vn(S.info)});
this.info.x=k.clientX;this.info.y=k.clientY}},
touchstart:function(k){k=k.changedTouches[0];this.info.x=k.clientX;this.info.y=k.clientY},
touchmove:function(k){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k);k=k.changedTouches[0];var S=k.clientX,R=k.clientY;fOb(this.info,S,R)&&(this.info.state==="start"&&Zl("tap"),this.info.addMove({x:S,y:R}),vql(this.info,E,k),this.info.state="track",this.info.started=!0)},
touchend:function(k){var E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k);k=k.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:k.clientX,y:k.clientY}),vql(this.info,E,k))}});
$XR({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(k){$6(k)&&(this.info.x=k.clientX,this.info.y=k.clientY)},
click:function(k){$6(k)&&Zmm(this.info,k)},
touchstart:function(k){k=k.changedTouches[0];this.info.x=k.clientX;this.info.y=k.clientY},
touchend:function(k){Zmm(this.info,k.changedTouches[0],k)}});var DOp=qN(function(k){var E=function(){return k.apply(this,arguments)||this};
_.y(E,k);E.prototype._addEventListenerToNode=function(S,R,V){s2(S,R,V)||k.prototype._addEventListenerToNode.call(this,S,R,V)};
E.prototype._removeEventListenerFromNode=function(S,R,V){l2(S,R,V)||k.prototype._removeEventListenerFromNode.call(this,S,R,V)};
return E});var iG=qN(function(k){var E=function(){return k.apply(this,arguments)||this};
_.y(E,k);E.prototype._shouldPropertyChange=function(S,R,V){return dXi(this,S,R,V,!0)};
return E}),$Oz=qN(function(k){var E=function(){return k.apply(this,arguments)||this};
_.y(E,k);E.prototype._shouldPropertyChange=function(S,R,V){return dXi(this,S,R,V,this.mutableData)};
_.mt.Object.defineProperties(E,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return E});
iG._mutablePropertyChange=dXi;var sOi=!1;var fk5=DOp($Oz(QA(HTMLElement))),hH=function(){var k=fk5.call(this)||this;if(Rd)throw Error("Ld");k.root=null;k.$=null;k.__children=null;return k};
_.y(hH,fk5);_.I=hH.prototype;_.I.attributeChangedCallback=function(){this.mutableData=!0};
_.I.connectedCallback=function(){lOi()||(this.style.display="none");this.render()};
_.I.disconnectedCallback=function(){this.__removeChildren()};
_.I.__insertChildren=function(){(0,_.Aw)((0,_.Aw)(this).parentNode).insertBefore(this.root,this)};
_.I.__removeChildren=function(){if(this.__children)for(var k=0;k<this.__children.length;k++)this.root.appendChild(this.__children[k])};
_.I.render=function(){var k=this;if(!this.__children){var E=E||this.querySelector("template");if(!E){var S=new MutationObserver(function(){if(E=k.querySelector("template"))S.disconnect(),k.render();else throw Error("Md");});
S.observe(this,{childList:!0});return}this.root=this._stampTemplate(E);this.$=this.root.$;this.__children=[];for(var R=this.root.firstChild;R;R=R.nextSibling)this.__children[this.__children.length]=R;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.mt.Object.defineProperties(hH,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",hH);Polymer.Debouncer=R0;Polymer.Gestures={gestures:dm,recognizers:b2,deepTargetFind:r9I,addListener:s2,removeListener:l2,register:$XR,setTouchAction:_.Mm,prevent:Zl,resetMouseCanceller:function(){nF&&nF.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:s2,remove:l2};Polymer.GestureEventListeners=DOp;Polymer.MutableData=iG;Polymer.OptionalMutableData=$Oz;Polymer.DomBind=hH;_.JH=function(){do{var k=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var E=u6d()}while(k||E)};var MHe=null;qBh.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:qBh,writable:!0}});var SU1=QA(qBh),E71=iG(SU1),vTz=QA(function(){}),kF=function(k){var E=vTz.call(this)||this;
E._configureProperties(k);E.root=E._stampTemplate(E.__dataHost);var S=[];E.children=S;for(var R=E.root.firstChild;R;R=R.nextSibling)S.push(R),R.__templatizeInstance=E;E.__templatizeOwner&&E.__templatizeOwner.__hideTemplateChildren__&&E._showHideChildren(!0);S=E.__templatizeOptions;(k&&S.instanceProps||!S.instanceProps)&&E._enableProperties();return E};
_.y(kF,vTz);_.I=kF.prototype;_.I._configureProperties=function(k){if(this.__templatizeOptions.forwardHostProp)for(var E in this.__hostProps)this._setPendingProperty(E,this.__dataHost["_host_"+E]);for(var S in k)this._setPendingProperty(S,k[S])};
_.I.forwardHostProp=function(k,E){this._setPendingPropertyOrPath(k,E,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.I._addEventListenerToNode=function(k,E,S){var R=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(k,E,function(N){N.model=R;S(N)});
else{var V=this.__dataHost.__dataHost;V&&V._addEventListenerToNode(k,E,S)}};
_.I._showHideChildren=function(k){QOC(k,this.children)};
_.I._setUnmanagedPropertyToNode=function(k,E,S){k.__hideTemplateChildren__&&k.nodeType==Node.TEXT_NODE&&E=="textContent"?k.__polymerTextContent__=S:vTz.prototype._setUnmanagedPropertyToNode.call(this,k,E,S)};
_.I.dispatchEvent=function(){return!0};
_.mt.Object.defineProperties(kF.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var k=this.__parentModel;if(!k){var E;k=this;do k=k.__dataHost.__dataHost;while((E=k.__templatizeOptions)&&!E.parentModel);this.__parentModel=k}return k}}});
var Geb=iG(kF);var cD=function(){var k=Gk.call(this)||this;k.__renderDebouncer=null;k._lastIf=!1;k.__hideTemplateChildren__=!1;return k};
_.y(cD,Gk);_.I=cD.prototype;_.I.__debounceRender=function(){var k=this;this.__renderDebouncer=_.N7(this.__renderDebouncer,QH,function(){return k.__render()});
_.I0(this.__renderDebouncer)};
_.I.disconnectedCallback=function(){Gk.prototype.disconnectedCallback.call(this);var k=(0,_.Aw)(this).parentNode;k&&(k.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Aw)(k).host)||this.__teardownInstance()};
_.I.connectedCallback=function(){Gk.prototype.connectedCallback.call(this);lOi()||(this.style.display="none");this.if&&this.__debounceRender()};
_.I.__ensureTemplate=function(){var k=this;if(!this.__template){var E=this._templateInfo?this:(0,_.Aw)(this).querySelector("template");if(!E){var S=new MutationObserver(function(){if((0,_.Aw)(k).querySelector("template"))S.disconnect(),k.__render();else throw Error("Pd");});
S.observe(this,{childList:!0});return!1}this.__template=E}return!0};
_.I.__ensureInstance=function(){var k=(0,_.Aw)(this).parentNode;if(this.__hasInstance()){var E=this.__getInstanceNodes();if(E&&E.length&&(0,_.Aw)(this).previousSibling!==E[E.length-1])for(var S=0,R=void 0;S<E.length&&(R=E[S]);S++)(0,_.Aw)(k).insertBefore(R,this)}else{if(!k||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(k)}return!0};
_.I.render=function(){_.JH()};
_.I.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();s0&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.I.__hasInstance=function(){};
_.I.__getInstanceNodes=function(){};
_.I.__createAndInsertInstance=function(){};
_.I.__teardownInstance=function(){};
_.I._showHideChildren=function(){};
_.mt.Object.defineProperties(cD,{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:cD.prototype.__debounceRender},restamp:{type:Boolean,observer:cD.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var bvd=function(){var k=cD.call(this)||this;k.__instance=null;k.__syncInfo=null;return k};
_.y(bvd,cD);_.I=bvd.prototype;_.I.__hasInstance=function(){return!!this.__instance};
_.I.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.I.__createAndInsertInstance=function(k){var E=this,S=this.__dataHost||this;if(Rd&&!this.__dataHost)throw Error("Nd");var R=S._bindTemplate(this.__template,!0);R.runEffects=function(V,N,h){var J=E.__syncInfo;if(E.if)J&&(E.__syncInfo=null,E._showHideChildren(),N=Object.assign(J.changedProps,N)),V(N,h);else if(E.__instance)if(J||(J=E.__syncInfo={runEffects:V,changedProps:{}}),h)for(var m in N)V=yH(m),J.changedProps[V]=E.__dataHost[V];else Object.assign(J.changedProps,N)};
this.__instance=S._stampTemplate(this.__template,R);(0,_.Aw)(k).insertBefore(this.__instance,this)};
_.I.__syncHostProperties=function(){var k=this.__syncInfo;k&&(this.__syncInfo=null,k.runEffects(k.changedProps,!1))};
_.I.__teardownInstance=function(){var k=this.__dataHost||this;this.__instance&&(k._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.I._showHideChildren=function(){var k=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==k&&(this.__instance.__hidden=k,QOC(k,this.__instance.templateInfo.childNodes));k||this.__syncHostProperties()};
var Zv8=function(){var k=cD.call(this)||this;k.__ctor=null;k.__instance=null;k.__invalidProps=null;return k};
_.y(Zv8,cD);_.I=Zv8.prototype;_.I.__hasInstance=function(){return!!this.__instance};
_.I.__getInstanceNodes=function(){return this.__instance.children};
_.I.__createAndInsertInstance=function(k){this.__ctor||(this.__ctor=EJ(this.__template,this,{mutableData:!0,forwardHostProp:function(E,S){this.__instance&&(this.if?this.__instance.forwardHostProp(E,S):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[yH(E)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Aw)(k).insertBefore(this.__instance.root,this)};
_.I.__teardownInstance=function(){if(this.__instance){var k=this.__instance.children;if(k&&k.length){var E=(0,_.Aw)(k[0]).parentNode;if(E){E=(0,_.Aw)(E);for(var S=0,R=void 0;S<k.length&&(R=k[S]);S++)E.removeChild(R)}}this.__instance=this.__invalidProps=null}};
_.I.__syncHostProperties=function(){var k=this.__invalidProps;if(k){this.__invalidProps=null;for(var E in k)this.__instance._setPendingProperty(E,this.__dataHost[E]);this.__instance._flushProperties()}};
_.I._showHideChildren=function(){var k=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==k&&(this.__instance.__hidden=k,this.__instance._showHideChildren(k));k||this.__syncHostProperties()};
_.oc=dS?bvd:Zv8;customElements.define(_.oc.is,_.oc);Polymer.enqueueDebouncer=_.I0;Polymer.flush=_.JH;Polymer.Templatize={templatize:EJ,modelForElement:iLC};Polymer.TemplateInstanceBase=kF;Polymer.DomIf=_.oc;var dOd=$Oz(Gk),yO=function(){var k=dOd.call(this)||this;k.__instances=[];k.__renderDebouncer=null;k.__itemsIdxToInstIdx={};k.__chunkCount=null;k.__renderStartTime=null;k.__itemsArrayChanged=!1;k.__shouldMeasureChunk=!1;k.__shouldContinueChunking=!1;k.__chunkingId=0;k.__sortFn=null;k.__filterFn=null;k.__observePaths=null;k.__ctor=null;k.__isDetached=!0;k.template=null;return k};
_.y(yO,dOd);_.I=yO.prototype;_.I.disconnectedCallback=function(){dOd.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var k=0;k<this.__instances.length;k++)this.__detachInstance(k);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.I.connectedCallback=function(){dOd.prototype.connectedCallback.call(this);lOi()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var k=(0,_.Aw)((0,_.Aw)(this).parentNode),E=0;E<this.__instances.length;E++)this.__attachInstance(E,k);this.__chunkingId&&this.__render()}};
_.I.__ensureTemplatized=function(){var k=this;if(!this.__ctor){var E=this.template=this._templateInfo?this:this.querySelector("template");if(!E){var S=new MutationObserver(function(){if(k.querySelector("template"))S.disconnect(),k.__render();else throw Error("Qd");});
S.observe(this,{childList:!0});return!1}var R={};R[this.as]=!0;R[this.indexAs]=!0;R[this.itemsIndexAs]=!0;this.__ctor=EJ(E,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:R,forwardHostProp:function(V,N){for(var h=this.__instances,J=0,m=void 0;J<h.length&&(m=h[J]);J++)m.forwardHostProp(V,N)},
notifyInstanceProp:function(V,N,h){gzi(this.as,N)&&(V=V[this.itemsIndexAs],N==this.as&&(this.items[V]=h),N=gm(this.as,"items."+V,N),this.notifyPath(N,h))}})}return!0};
_.I.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.I.__functionFromPropertyValue=function(k){if(typeof k==="string"){var E=this.__getMethodHost();return function(){return E[k].apply(E,arguments)}}return k};
_.I.__sortChanged=function(k){this.__sortFn=this.__functionFromPropertyValue(k);this.items&&this.__debounceRender(this.__render)};
_.I.__filterChanged=function(k){this.__filterFn=this.__functionFromPropertyValue(k);this.items&&this.__debounceRender(this.__render)};
_.I.__computeFrameTime=function(k){return Math.ceil(1E3/k)};
_.I.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.I.__handleObservedPaths=function(k){if(this.__sortFn||this.__filterFn)if(!k)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var E=this.__observePaths,S=0;S<E.length;S++)k.indexOf(E[S])===0&&this.__debounceRender(this.__render,this.delay)};
_.I.__itemsChanged=function(k){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(k.path,k.value)||(k.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.I.__debounceRender=function(k,E){E=E===void 0?0:E;this.__renderDebouncer=_.N7(this.__renderDebouncer,E>0?_.MN.after(E):QH,k.bind(this));_.I0(this.__renderDebouncer)};
_.I.render=function(){this.__debounceRender(this.__render);_.JH()};
_.I.__render=function(){var k=this;if(this.__ensureTemplatized()){var E=this.items||[],S=this.__sortAndFilterItems(E),R=this.__calculateLimit(S.length);this.__updateInstances(E,R,S);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){k.__chunkingId=null;k.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);s0&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.I.__sortAndFilterItems=function(k){for(var E=this,S=Array(k.length),R=0;R<k.length;R++)S[R]=R;this.__filterFn&&(S=S.filter(function(V,N,h){return E.__filterFn(k[V],N,h)}));
this.__sortFn&&S.sort(function(V,N){return E.__sortFn(k[V],k[N])});
return S};
_.I.__calculateLimit=function(k){var E=k,S=this.__instances.length;if(this.initialCount){var R;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(E=Math.min(k,this.initialCount),this.__chunkCount=(R=Math.max(E-S,0))||1):(R=Math.min(Math.max(k-S,0),this.__chunkCount),E=Math.min(S+R,k));this.__shouldMeasureChunk=R===this.__chunkCount;this.__shouldContinueChunking=E<k;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return E};
_.I.__continueChunking=function(){if(this.__shouldMeasureChunk){var k=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/k*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.I.__updateInstances=function(k,E,S){var R=this.__itemsIdxToInstIdx={},V;for(V=0;V<E;V++){var N=this.__instances[V],h=S[V],J=k[h];R[h]=V;N?(N._setPendingProperty(this.as,J),N._setPendingProperty(this.indexAs,V),N._setPendingProperty(this.itemsIndexAs,h),N._flushProperties()):this.__insertInstance(J,V,h)}for(k=this.__instances.length-1;k>=V;k--)this.__detachAndRemoveInstance(k)};
_.I.__detachInstance=function(k){k=this.__instances[k];for(var E=(0,_.Aw)(k.root),S=0;S<k.children.length;S++)E.appendChild(k.children[S]);return k};
_.I.__attachInstance=function(k,E){E.insertBefore(this.__instances[k].root,this)};
_.I.__detachAndRemoveInstance=function(k){this.__detachInstance(k);this.__instances.splice(k,1)};
_.I.__stampInstance=function(k,E,S){var R={};R[this.as]=k;R[this.indexAs]=E;R[this.itemsIndexAs]=S;return new this.__ctor(R)};
_.I.__insertInstance=function(k,E,S){k=this.__stampInstance(k,E,S);S=(S=this.__instances[E+1])?S.children[0]:this;(0,_.Aw)((0,_.Aw)(this).parentNode).insertBefore(k.root,S);return this.__instances[E]=k};
_.I._showHideChildren=function(k){for(var E=0;E<this.__instances.length;E++)this.__instances[E]._showHideChildren(k)};
_.I.__handleItemPath=function(k,E){var S=k.slice(6),R=S.indexOf(".");k=R<0?S:S.substring(0,R);if(k==parseInt(k,10)){S=R<0?"":S.substring(R+1);this.__handleObservedPaths(S);if(k=this.__instances[this.__itemsIdxToInstIdx[k]])k._setPendingPropertyOrPath(this.as+(S?"."+S:""),E,!1,!0),k._flushProperties();return!0}};
_.I.itemForElement=function(k){return(k=this.modelForElement(k))&&k[this.as]};
_.I.indexForElement=function(k){return(k=this.modelForElement(k))&&k[this.indexAs]};
_.I.modelForElement=function(k){return iLC(this.template,k)};
_.mt.Object.defineProperties(yO,{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:yO.prototype.__sortChanged},filter:{type:Function,observer:yO.prototype.__filterChanged},observe:{type:String,observer:yO.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!s0,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.*)"]}}});
yO.prototype._setRenderedItemCount=function(){};
customElements.define(yO.is,yO);Polymer.DomRepeat=yO;var scd=function(k,E){var S=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=k;this.callback=E;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){S._schedule()};
this.connect();this._schedule()},lk2=function(k){var E=(0,_.Aw)(k);
if(Vs(k))return E.assignedNodes({flatten:!0});k=[];for(var S=0;S<E.childNodes.length;S++){var R=E.childNodes[S];Vs(R)?k.push.apply(k,_.$e((0,_.Aw)(R).assignedNodes({flatten:!0}))):k.push(R)}return k};
_.I=scd.prototype;_.I.connect=function(){var k=this;Vs(this._target)?this._listenSlots([this._target]):(0,_.Aw)(this._target).children&&(this._listenSlots((0,_.Aw)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(E){k._processMutations(E)}):(this._nativeChildrenObserver=new MutationObserver(function(E){k._processMutations(E)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.I.disconnect=function(){Vs(this._target)?this._unlistenSlots([this._target]):(0,_.Aw)(this._target).children&&(this._unlistenSlots((0,_.Aw)(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};
_.I._schedule=function(){var k=this;this._scheduled||(this._scheduled=!0,QH.run(function(){return k.flush()}))};
_.I._processMutations=function(k){this._processSlotMutations(k);this.flush()};
_.I._processSlotMutations=function(k){if(k)for(var E=0;E<k.length;E++){var S=k[E];S.addedNodes&&this._listenSlots(S.addedNodes);S.removedNodes&&this._unlistenSlots(S.removedNodes)}};
_.I.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 k={target:this._target,addedNodes:[],removedNodes:[]},E=lk2(this._target),S=nqi(E,this._effectiveNodes),R=0,V=void 0;R<S.length&&(V=S[R]);R++)for(var N=0,h=void 0;N<V.removed.length&&(h=V.removed[N]);N++)k.removedNodes.push(h);
R=0;for(V=void 0;R<S.length&&(V=S[R]);R++)for(N=V.index;N<V.index+V.addedCount;N++)k.addedNodes.push(E[N]);this._effectiveNodes=E;E=!1;if(k.addedNodes.length||k.removedNodes.length)E=!0,this.callback.call(this._target,k);return E};
_.I._listenSlots=function(k){for(var E=0;E<k.length;E++){var S=k[E];Vs(S)&&S.addEventListener("slotchange",this._boundSchedule)}};
_.I._unlistenSlots=function(k){for(var E=0;E<k.length;E++){var S=k[E];Vs(S)&&S.removeEventListener("slotchange",this._boundSchedule)}};var ms=Element.prototype,MNp=ms.matches||ms.matchesSelector||ms.mozMatchesSelector||ms.msMatchesSelector||ms.oMatchesSelector||ms.webkitMatchesSelector,q_2=function(k,E){return MNp.call(k,E)},N6=function(k){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(k);
this.node=k},GN8;
_.I=N6.prototype;_.I.observeNodes=function(k){return new scd(this.node,k)};
_.I.unobserveNodes=function(k){k.disconnect()};
_.I.notifyObserver=function(){};
_.I.deepContains=function(k){if((0,_.Aw)(this.node).contains(k))return!0;var E=k;for(k=k.ownerDocument;E&&E!==k&&E!==this.node;)E=(0,_.Aw)(E).parentNode||(0,_.Aw)(E).host;return E===this.node};
_.I.getOwnerRoot=function(){return(0,_.Aw)(this.node).getRootNode()};
_.I.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Aw)(this.node).assignedNodes({flatten:!0}):[]};
_.I.getDestinationInsertionPoints=function(){for(var k=[],E=(0,_.Aw)(this.node).assignedSlot;E;)k.push(E),E=(0,_.Aw)(E).assignedSlot;return k};
_.I.importNode=function(k,E){return(0,_.Aw)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(k,E)};
_.I.getEffectiveChildNodes=function(){return lk2(this.node)};
_.I.queryDistributedElements=function(k){for(var E=this.getEffectiveChildNodes(),S=[],R=0,V=E.length,N=void 0;R<V&&(N=E[R]);R++)N.nodeType===Node.ELEMENT_NODE&&q_2(N,k)&&S.push(N);return S};
_.mt.Object.defineProperties(N6.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var k=this.node;return k._activeElement!==void 0?k._activeElement:k.activeElement}}});
var eG=function(k){this.event=k};
_.mt.Object.defineProperties(eG.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 zU8=N6;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var QcY=window.ShadyDOM.Wrapper,Ovd=function(){return QcY.apply(this,arguments)||this};
_.y(Ovd,QcY);Object.getOwnPropertyNames(N6.prototype).forEach(function(k){k!="activeElement"&&k!="constructor"&&(Ovd.prototype[k]=N6.prototype[k])});
J2j(Ovd.prototype,["classList"]);zU8=Ovd;Object.defineProperties(eG.prototype,{localTarget:{get:function(){var k=this.event.currentTarget;k=k&&_.em(k).getOwnerRoot();for(var E=this.path,S=0;S<E.length;S++){var R=E[S];if(_.em(R).getOwnerRoot()===k)return R}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else hQC(),J2j(N6.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),c2h();GN8=zU8;_.em=function(k){k=k||document;if(k instanceof zU8)return k;if(k instanceof eG)return k;var E=k.__domApi;E||(k instanceof Event?E=new eG(k):E=new zU8(k),k.__domApi=E);return E};var ClC=/:host\(:dir\((ltr|rtl)\)\)/g,kTY=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,EX8=/:dir\((?:ltr|rtl)\)/,Skj=!(!window.ShadyDOM||!window.ShadyDOM.inUse),nf=[],a0=null,Id="",RZ8=qN(function(k){Skj||a0||(Id=document.documentElement.getAttribute("dir"),a0=new MutationObserver(mxt),a0.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var E=ivC(k);k=function(){var S=E.call(this)||this;S.__autoDirOptOut=!1;return S};
_.y(k,E);k._processStyleText=function(S,R){S=E._processStyleText.call(this,S,R);!Skj&&EX8.test(S)&&(S=this._replaceDirInCssText(S),this.__activateDir=!0);return S};
k._replaceDirInCssText=function(S){S=S.replace(ClC,':host([dir="$1"])');return S=S.replace(kTY,':host([dir="$2"]) $1')};
k.prototype.ready=function(){E.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
k.prototype.connectedCallback=function(){E.prototype.connectedCallback&&E.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(a0&&a0.takeRecords().length&&mxt(),nf.push(this),this.__autoDirOptOut||this.setAttribute("dir",Id))};
k.prototype.disconnectedCallback=function(){E.prototype.disconnectedCallback&&E.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var S=nf.indexOf(this);S>-1&&nf.splice(S,1)}};
k.__activateDir=!1;return k});var VFd=function(k){for(;k;){var E=Object.getOwnPropertyDescriptor(k,"observedAttributes");if(E)return E.get;k=Object.getPrototypeOf(k.prototype).constructor}return function(){return[]}};
qN(function(k){var E=O0(k),S=VFd(E);k=function(){return E.call(this)||this};
_.y(k,E);k.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:E.prototype._initializeProperties.call(this)};
k.prototype._enableProperties=function(){this.__isUpgradeDisabled||E.prototype._enableProperties.call(this)};
k.prototype._canApplyPropertyDefault=function(R){return E.prototype._canApplyPropertyDefault.call(this,R)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(R))};
k.prototype.attributeChangedCallback=function(R,V,N,h){R=="disable-upgrade"?this.__isUpgradeDisabled&&N==null&&(E.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Aw)(this).isConnected&&E.prototype.connectedCallback.call(this)):E.prototype.attributeChangedCallback.call(this,R,V,N,h)};
k.prototype.connectedCallback=function(){this.__isUpgradeDisabled||E.prototype.connectedCallback.call(this)};
k.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||E.prototype.disconnectedCallback.call(this)};
_.mt.Object.defineProperties(k,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return S.call(this).concat("disable-upgrade")}}});
return k});var ic=!1,ase=[],hB=[];var PTC=window.ShadyDOM,BFl=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",WV1):document.readyState==="interactive"||document.readyState==="complete"?WV1():window.addEventListener("DOMContentLoaded",WV1);var o7m=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=""},FVh=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,y2I=/@import[^;]*;/gim,pSI=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,A21=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,r2C=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,u9h=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,HLj=/^@[^\s]*keyframes/,
Uxt=/\s+/g;var xxt={};var DxI=Promise.resolve();var NX8=new Set;var I0T=/;\s*/m,nXC=/^\s*(initial)|(inherit)\s*$/,ihC=/\s*!important/,hZY=function(){this._map={}};
hZY.prototype.set=function(k,E){k=k.trim();this._map[k]={properties:E,dependants:{}}};
hZY.prototype.get=function(k){k=k.trim();return this._map[k]||null};
var JV5=null,tH=function(){this._measureElement=this._currentElement=null;this._map=new hZY};
_.I=tH.prototype;_.I.detectMixin=function(k){k=gTC.test(k)||Xud.test(k);gTC.lastIndex=0;Xud.lastIndex=0;return k};
_.I.transformTemplate=function(k,E){if(k._gatheredStyle===void 0){var S=[];for(var R=k.content.querySelectorAll("style"),V=0;V<R.length;V++){var N=R[V];if(N.hasAttribute("shady-unscoped")){if(!wtI){var h=N.textContent;if(!NX8.has(h)){NX8.add(h);var J=document.createElement("style");J.setAttribute("shady-unscoped","");J.textContent=h;document.head.appendChild(J)}N.parentNode.removeChild(N)}}else S.push(N.textContent),N.parentNode.removeChild(N)}(S=S.join("").trim())?(R=document.createElement("style"),
R.textContent=S,k.content.insertBefore(R,k.content.firstChild),S=R):S=null;k._gatheredStyle=S}return(k=k._gatheredStyle)?this.JSC$11267_transformStyle(k,E):null};
_.I.JSC$11267_transformStyle=function(k,E){E=E===void 0?"":E;var S=bLI(k);this.transformRules(S,E);k.textContent=v7h(S);return S};
_.I.transformCustomStyle=function(k){var E=this,S=bLI(k);dxA(S,function(R){R.selector===":root"&&(R.selector="html");E.transformRule(R)});
k.textContent=v7h(S);return S};
_.I.transformRules=function(k,E){var S=this;this._currentElement=E;dxA(k,function(R){S.transformRule(R)});
this._currentElement=null};
_.I.transformRule=function(k){k.cssText=cVY(this,k.parsedCssText,k);k.selector===":root"&&(k.selector=":host > *")};
var cVY=function(k,E,S){E=E.replace(Xud,function(R,V,N,h){return k._produceCssProperties(R,V,N,h,S)});
return k._consumeCssProperties(E,S)};
_.I=tH.prototype;_.I._getInitialValueForProperty=function(k){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(k)};
_.I._fallbacksFromPreviousRules=function(k){for(var E=this,S=k;S.parent;)S=S.parent;var R={},V=!1;dxA(S,function(N){(V=V||N===k)||N.selector===k.selector&&Object.assign(R,E._cssTextToMap(N.parsedCssText))});
return R};
_.I._consumeCssProperties=function(k,E){for(var S;S=gTC.exec(k);){var R=S[0],V=S[1];S=S.index;var N=S+R.indexOf("@apply"),h=S+R.length;R=k.slice(0,N);k=k.slice(h);N=E?this._fallbacksFromPreviousRules(E):{};Object.assign(N,this._cssTextToMap(R));V=this._atApplyToCssProperties(V,N);k=R+V+k;gTC.lastIndex=S+V.length}return k};
_.I._atApplyToCssProperties=function(k,E){k=k.replace(I0T,"");var S=[],R=this._map.get(k);R||(this._map.set(k,{}),R=this._map.get(k));if(R){this._currentElement&&(R.dependants[this._currentElement]=!0);var V,N=R.properties;for(V in N){var h=E&&E[V];R=[V,": var(",k,"_-_",V];h&&R.push(",",h.replace(ihC,""));R.push(")");ihC.test(N[V])&&R.push(" !important");S.push(R.join(""))}}return S.join("; ")};
_.I._replaceInitialOrInherit=function(k,E){var S=nXC.exec(E);S&&(E=S[1]?this._getInitialValueForProperty(k):"apply-shim-inherit");return E};
_.I._cssTextToMap=function(k,E){E=E===void 0?!1:E;k=k.split(";");for(var S,R,V={},N=0;N<k.length;N++)if(S=k[N])R=S.split(":"),R.length>1&&(S=R[0].trim(),R=R.slice(1).join(":"),E&&(R=this._replaceInitialOrInherit(S,R)),V[S]=R);return V};
_.I._invalidateMixinEntry=function(k){if(JV5)for(var E in k.dependants)E!==this._currentElement&&JV5(E)};
_.I._produceCssProperties=function(k,E,S,R,V){var N=this;S&&s4l(S,function(F,K){K&&N._map.get(K)&&(R="@apply "+K+";")});
if(!R)return k;var h=this._consumeCssProperties(""+R,V);V=k.slice(0,k.indexOf("--"));var J=h=this._cssTextToMap(h,!0),m=this._map.get(E),a=m&&m.properties;a?J=Object.assign(Object.create(a),h):this._map.set(E,J);var T=[],w,P=!1;for(w in J){var B=h[w];B===void 0&&(B="initial");!a||w in a||(P=!0);T.push(E+"_-_"+w+": "+B)}P&&this._invalidateMixinEntry(m);m&&(m.properties=J);S&&(V=k+";"+V);return V+T.join("; ")+";"};
tH.prototype.detectMixin=tH.prototype.detectMixin;tH.prototype.transformStyle=tH.prototype.JSC$11267_transformStyle;tH.prototype.transformCustomStyle=tH.prototype.transformCustomStyle;tH.prototype.transformRules=tH.prototype.transformRules;tH.prototype.transformRule=tH.prototype.transformRule;tH.prototype.transformTemplate=tH.prototype.transformTemplate;tH.prototype._separator="_-_";Object.defineProperty(tH.prototype,"invalidCallback",{get:function(){return JV5},
set:function(k){JV5=k}});var Tz=new tH,miC=function(){this.customStyleInterface=null;Tz.invalidCallback=LVm},wh=function(k){!k.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(k.customStyleInterface=window.ShadyCSS.CustomStyleInterface,k.customStyleInterface.transformCallback=function(E){Tz.transformCustomStyle(E)},k.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){k.customStyleInterface.enqueued&&k.flushCustomStyles()})})};
_.I=miC.prototype;_.I.prepareTemplate=function(k,E){wh(this);lsl(k)===""&&(xxt[E]=k,E=Tz.transformTemplate(k,E),k._styleAst=E)};
_.I.flushCustomStyles=function(){wh(this);if(this.customStyleInterface){var k=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var E=0;E<k.length;E++){var S=this.customStyleInterface.getStyleForCustomStyle(k[E]);S&&Tz.transformCustomStyle(S)}this.customStyleInterface.enqueued=!1}}};
_.I.styleSubtree=function(k,E){wh(this);E&&J9I(k,E);if(k.shadowRoot)for(this.styleElement(k),k=k.shadowRoot.children||k.shadowRoot.childNodes,E=0;E<k.length;E++)this.styleSubtree(k[E]);else for(k=k.children||k.childNodes,E=0;E<k.length;E++)this.styleSubtree(k[E])};
_.I.styleElement=function(k){wh(this);var E=k.localName,S;E?E.indexOf("-")>-1?S=E:S=k.getAttribute&&k.getAttribute("is")||"":S=k.is;E=xxt[S];if(!(E&&lsl(E)!==""||!E||j4e(E))){if(j4e(E)||E._applyShimValidatingVersion!==E._applyShimNextVersion)this.prepareTemplate(E,S),$xm(E);if(k=k.shadowRoot)if(k=k.querySelector("style"))k.__cssRules=E._styleAst,k.textContent=v7h(E._styleAst)}};
_.I.styleDocument=function(k){wh(this);this.styleSubtree(document.body,k)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var PD=new miC,eZj=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(k,E){PD.flushCustomStyles();PD.prepareTemplate(k,E)},
prepareTemplateStyles:function(k,E,S){window.ShadyCSS.prepareTemplate(k,E,S)},
prepareTemplateDom:function(){},
styleSubtree:function(k,E){PD.flushCustomStyles();PD.styleSubtree(k,E)},
styleElement:function(k){PD.flushCustomStyles();PD.styleElement(k)},
styleDocument:function(k){PD.flushCustomStyles();PD.styleDocument(k)},
getComputedStyleValue:function(k,E){return c9i(k,E)},
flushCustomStyles:function(){PD.flushCustomStyles()},
nativeCss:fsj,nativeShadow:wtI,cssBuild:ck,disableRuntime:Kid};eZj&&(window.ShadyCSS.CustomStyleInterface=eZj)}window.ShadyCSS.ApplyShim=Tz;var a05;a05=window.ShadyCSS;_.BD=qN(function(k){k=DOp(O0(k));var E=PlY?k:RZ8(k),S=VFd(E),R={x:"pan-x",y:"pan-y",none:"none",all:"auto"};k=function(){return E.call(this)||this};
_.y(k,E);k.prototype.created=function(){};
k.prototype.__attributeReaction=function(V,N,h){(this.__dataAttributes&&this.__dataAttributes[V]||V==="disable-upgrade")&&this.attributeChangedCallback(V,N,h,null)};
k.prototype.setAttribute=function(V,N){if(lWj&&!this._legacyForceObservedAttributes){var h=this.getAttribute(V);E.prototype.setAttribute.call(this,V,N);this.__attributeReaction(V,h,String(N))}else E.prototype.setAttribute.call(this,V,N)};
k.prototype.removeAttribute=function(V){if(lWj&&!this._legacyForceObservedAttributes){var N=this.getAttribute(V);E.prototype.removeAttribute.call(this,V);this.__attributeReaction(V,N,null)}else E.prototype.removeAttribute.call(this,V)};
k.prototype._enableProperties=function(){this.__isUpgradeDisabled||E.prototype._enableProperties.call(this)};
k.prototype._canApplyPropertyDefault=function(V){return E.prototype._canApplyPropertyDefault.call(this,V)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(V))};
k.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(E.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
k.prototype.attached=function(){};
k.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(E.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
k.prototype.detached=function(){};
k.prototype.attributeChangedCallback=function(V,N,h,J){N!==h&&(V=="disable-upgrade"?this.__isUpgradeDisabled&&h==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Aw)(this).isConnected&&this.connectedCallback()):(E.prototype.attributeChangedCallback.call(this,V,N,h,J),this.attributeChanged(V,N,h)))};
k.prototype.attributeChanged=function(){};
k.prototype._initializeProperties=function(){if(G2&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var V=Object.getPrototypeOf(this);V.hasOwnProperty("__hasRegisterFinished")||(this._registered(),V.__hasRegisterFinished=!0);E.prototype._initializeProperties.call(this);this.root=this;this.created();lWj&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
k.prototype._takeAttributes=function(){for(var V=this.attributes,N=0,h=V.length;N<h;N++){var J=V[N];this.__attributeReaction(J.name,null,J.value)}};
k.prototype._registered=function(){};
k.prototype.ready=function(){this._ensureAttributes();E.prototype.ready.call(this)};
k.prototype._ensureAttributes=function(){};
k.prototype._applyListeners=function(){};
k.prototype.serialize=function(V){return this._serializeValue(V)};
k.prototype.deserialize=function(V,N){return this._deserializeValue(V,N)};
k.prototype.reflectPropertyToAttribute=function(V,N,h){this._propertyToAttribute(V,N,h)};
k.prototype.serializeValueToAttribute=function(V,N,h){this._valueToNodeAttribute(h||this,V,N)};
k.prototype.extend=function(V,N){if(!V||!N)return V||N;for(var h=Object.getOwnPropertyNames(N),J=0,m=void 0;J<h.length&&(m=h[J]);J++){var a=Object.getOwnPropertyDescriptor(N,m);a&&Object.defineProperty(V,m,a)}return V};
k.prototype.mixin=function(V,N){for(var h in N)V[h]=N[h];return V};
k.prototype.chainObject=function(V,N){V&&N&&V!==N&&(V.__proto__=N);return V};
k.prototype.instanceTemplate=function(V){V=this.constructor._contentForTemplate(V);return document.importNode(V,!0)};
k.prototype.fire=function(V,N,h){h=h||{};N=N===null||N===void 0?{}:N;V=new Event(V,{bubbles:h.bubbles===void 0?!0:h.bubbles,cancelable:!!h.cancelable,composed:h.composed===void 0?!0:h.composed});V.detail=N;(0,_.Aw)(h.node||this).dispatchEvent(V);return V};
k.prototype.listen=function(V,N,h){V=V||this;var J=this.__boundListeners||(this.__boundListeners=new WeakMap),m=J.get(V);m||(m={},J.set(V,m));J=N+h;m[J]||(m[J]=this._addMethodEventListenerToNode(V,N,h,this))};
k.prototype.unlisten=function(V,N,h){V=V||this;var J=this.__boundListeners&&this.__boundListeners.get(V);h=N+h;var m=J&&J[h];m&&(this._removeEventListenerFromNode(V,N,m),J[h]=null)};
k.prototype.setScrollDirection=function(V,N){_.Mm(N||this,R[V]||"auto")};
k.prototype.$$=function(V){return this.root.querySelector(V)};
k.prototype.distributeContent=function(){var V=_.em(this);window.ShadyDOM&&V.shadowRoot&&ShadyDOM.flush()};
k.prototype.getEffectiveChildNodes=function(){return _.em(this).getEffectiveChildNodes()};
k.prototype.queryDistributedElements=function(V){return _.em(this).queryDistributedElements(V)};
k.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(V){return V.nodeType===Node.ELEMENT_NODE})};
k.prototype.getEffectiveTextContent=function(){for(var V=this.getEffectiveChildNodes(),N=[],h=0,J;J=V[h];h++)J.nodeType!==Node.COMMENT_NODE&&N.push(J.textContent);return N.join("")};
k.prototype.queryEffectiveChildren=function(V){return(V=this.queryDistributedElements(V))&&V[0]};
k.prototype.queryAllEffectiveChildren=function(V){return this.queryDistributedElements(V)};
k.prototype.getContentChildNodes=function(V){return(V=this.root.querySelector(V||"slot"))?_.em(V).getDistributedNodes():[]};
k.prototype.getContentChildren=function(V){return this.getContentChildNodes(V).filter(function(N){return N.nodeType===Node.ELEMENT_NODE})};
k.prototype.isLightDescendant=function(V){return this!==V&&(0,_.Aw)(this).contains(V)&&(0,_.Aw)(this).getRootNode()===(0,_.Aw)(V).getRootNode()};
k.prototype.isLocalDescendant=function(V){return this.root===(0,_.Aw)(V).getRootNode()};
k.prototype.scopeSubtree=function(V,N){return YUt(V,N===void 0?!1:N)};
k.prototype.getComputedStyleValue=function(V){return a05.getComputedStyleValue(this,V)};
k.prototype.debounce=function(V,N,h){this._debouncers=this._debouncers||{};return this._debouncers[V]=_.N7(this._debouncers[V],h>0?_.MN.after(h):QH,N.bind(this))};
k.prototype.isDebouncerActive=function(V){this._debouncers=this._debouncers||{};V=this._debouncers[V];return!(!V||!V.isActive())};
k.prototype.flushDebouncer=function(V){this._debouncers=this._debouncers||{};(V=this._debouncers[V])&&V.flush()};
k.prototype.cancelDebouncer=function(V){this._debouncers=this._debouncers||{};(V=this._debouncers[V])&&V.cancel()};
k.prototype.async=function(V,N){return N>0?_.MN.run(V.bind(this),N):~QH.run(V.bind(this))};
k.prototype.cancelAsync=function(V){V<0?QH.cancel(~V):_.MN.cancel(V)};
k.prototype.create=function(V,N){V=document.createElement(V);if(N)if(V.setProperties)V.setProperties(N);else for(var h in N)V[h]=N[h];return V};
k.prototype.elementMatches=function(V,N){return q_2(N||this,V)};
k.prototype.toggleAttribute=function(V,N){var h=this;arguments.length===3&&(h=arguments[2]);arguments.length==1&&(N=!h.hasAttribute(V));if(N)return(0,_.Aw)(h).setAttribute(V,""),!0;(0,_.Aw)(h).removeAttribute(V);return!1};
k.prototype.toggleClass=function(V,N,h){h=h||this;arguments.length==1&&(N=!h.classList.contains(V));N?h.classList.add(V):h.classList.remove(V)};
k.prototype.transform=function(V,N){N=N||this;N.style.webkitTransform=V;N.style.transform=V};
k.prototype.translate3d=function(V,N,h,J){this.transform("translate3d("+V+","+N+","+h+")",J||this)};
k.prototype.arrayDelete=function(V,N){if(Array.isArray(V)){if(N=V.indexOf(N),N>=0)return V.splice(N,1)}else if(N=Hn(this,V).indexOf(N),N>=0)return this.splice(V,N,1);return null};
k.prototype._logger=function(V,N){Array.isArray(N)&&N.length===1&&Array.isArray(N[0])&&(N=N[0]);switch(V){case "log":case "warn":case "error":console[V].apply(console,_.$e(N))}};
k.prototype._log=function(){this._logger("log",_.sX.apply(0,arguments))};
k.prototype._warn=function(){this._logger("warn",_.sX.apply(0,arguments))};
k.prototype._error=function(){this._logger("error",_.sX.apply(0,arguments))};
k.prototype._logf=function(V){return["[%s::%s]",this.is,V].concat(_.$e(_.sX.apply(1,arguments)))};
_.mt.Object.defineProperties(k.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var V=(0,_.Aw)(this).getRootNode();return V instanceof DocumentFragment?V.host:V}}});
_.mt.Object.defineProperties(k,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return lWj&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],BEI(this.prototype)),this.__observedAttributes):S.call(this).concat("disable-upgrade")}}});
k.prototype.is="";return k});Polymer.FlattenedNodesObserver=scd;Polymer.DomApi=GN8;Polymer.EventApi=eG;Polymer.dom=_.em;Polymer.dom.matchesSelector=q_2;Polymer.dom.flush=_.JH;Polymer.dom.addDebouncer=_.I0;Polymer.DirMixin=RZ8;Polymer.RenderStatus={beforeNextRender:_.wSh,afterNextRender:_.JB,flush:function(){for(;ase.length||hB.length;)eQt(ase),eQt(hB);ic=!1}};Polymer.LegacyElementMixin=_.BD;var tF4;tF4=iG._mutablePropertyChange;var TXA={properties:{mutableData:Boolean},_shouldPropertyChange:function(k,E,S){return tF4(this,k,E,S,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(k,E,S){return tF4(this,k,E,S,!0)}};
Polymer.OptionalMutableDataBehavior=TXA;var Mzh={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Gnj={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},OLl=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Gnj),wMd=(0,_.BD)(HTMLElement),OWl=function(k,E){k||console.warn("Polymer.Class requires `info` argument");E=E?E(wMd):wMd;E=CTj(k,E,k.behaviors);E.is=E.prototype.is=
k.is;return E};Polymer.Class=OWl;Polymer.mixinBehaviors=function(k,E){return CTj({},(0,_.BD)(E),k)};
Polymer.GenerateClassFromInfo=CTj;_.F6=function(k){var E=typeof k==="function"?k:_.F6.Class(k);k._legacyForceObservedAttributes&&(E.prototype._legacyForceObservedAttributes=k._legacyForceObservedAttributes);customElements.define(E.is,E);return E};
_.F6.Class=OWl;Polymer._polymerFn=_.F6;var PYT=window.onLegacyPolymerFunctionDefinedCallback;PYT&&PYT();var C9C={templatize:function(k,E){this._templatizerTemplate=k;this.ctor=EJ(k,this,{mutableData:!!E,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(k){return new this.ctor(k)},
modelForElement:function(k){return iLC(this._templatizerTemplate,k)}};Polymer.Templatizer=C9C;_.Yx=(0,_.BD)(HTMLElement).prototype;Polymer.Base=_.Yx;var E$i=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.eX=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.y(_.eX,PolymerFakeBaseClass);var ad=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.y(ad,PolymerFakeBaseClass);var S8A=Symbol("Rd"),Jah=[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 BXj=BXj||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Ykd;(function(k){function E(M,d,z){var kb=q.get(M);if(!kb){if(!z)return;kb=new x;q.set(M,kb)}M=kb.get(d);if(!M){if(!z)return;M=new x;kb.set(d,M)}return M}
function S(M,d,z){if(R(M,d,z))return!0;d=P(d);return d!==null?S(M,d,z):!1}
function R(M,d,z){d=E(d,z,!1);return d===void 0?!1:!!d.has(M)}
function V(M,d,z){if(R(M,d,z))return N(M,d,z);d=P(d);if(d!==null)return V(M,d,z)}
function N(M,d,z){d=E(d,z,!1);if(d!==void 0)return d.get(M)}
function h(M,d){var z=J(M,d);M=P(M);if(M===null)return z;var kb=h(M,d);if(kb.length<=0)return z;if(z.length<=0)return kb;d=new L;M=[];z=_.n(z);for(var TI=z.next();!TI.done;TI=z.next())TI=TI.value,d.has(TI)||(d.add(TI),M.push(TI));z=_.n(kb);for(kb=z.next();!kb.done;kb=z.next())kb=kb.value,d.has(kb)||(d.add(kb),M.push(kb));return M}
function J(M,d){M=E(M,d,!1);var z=[];M&&M.forEach(function(kb,TI){return z.push(TI)});
return z}
function m(M){return M===void 0}
function a(M){return typeof M==="object"?M!==null:typeof M==="function"}
function T(M){return typeof M==="function"}
function w(M){return typeof M==="symbol"?M:String(M)}
function P(M){var d=Object.getPrototypeOf(M);if(typeof M!=="function"||M===r||d!==r)return d;var z=Object.getPrototypeOf(M.prototype);if(z==null||z===Object.prototype)return d;z=z.constructor;return typeof z!=="function"||z===M?d:z}
function B(){function M(){this._keys=[];this._values=[];this._cache=d}
var d={};M.prototype={get size(){return this._keys.length},has:function(z){return z===this._cache?!0:this._find(z)>=0?(this._cache=z,!0):!1},
get:function(z){var kb=this._find(z);if(kb>=0)return this._cache=z,this._values[kb]},
set:function(z,kb){this.delete(z);this._keys.push(z);this._values.push(kb);this._cache=z;return this},
delete:function(z){z=this._find(z);return z>=0?(this._keys.splice(z,1),this._values.splice(z,1),this._cache=d,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=d},
forEach:function(z){for(var kb=this.size,TI=0;TI<kb;++TI){var a1=this._keys[TI],Ah=this._values[TI];this._cache=a1;z.call(this,Ah,a1,this)}},
_find:function(z){for(var kb=this._keys,TI=kb.length,a1=0;a1<TI;++a1)if(kb[a1]===z)return a1;return-1}};
return M}
function F(){function M(){this._map=new x}
M.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,z){this._map.forEach(d,z)}};
return M}
function K(){function M(){this._key=z()}
function d(He,ve){for(var Xm=0;Xm<ve;++Xm)He[Xm]=Math.random()*255|0}
function z(){do{if(TI)var He=TI.randomBytes(16);else typeof Uint8Array==="function"?(He=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(He):d(He,16)):(He=Array(16),d(He,16));He[6]=He[6]&79|64;He[8]=He[8]&191|128;for(var ve="",Xm=0;Xm<16;++Xm){var U5=He[Xm];if(Xm===4||Xm===6||Xm===8)ve+="-";U5<16&&(ve+="0");ve+=U5.toString(16).toLowerCase()}He="@@WeakMap@@"+ve}while(a1.call(Ah,He));Ah[He]=!0;return He}
function kb(He,ve){if(!a1.call(He,th)){if(!ve)return;Object.defineProperty(He,th,{value:Object.create(null)})}return He[th]}
var TI=typeof global!=="undefined"&&typeof BXj==="object"&&typeof require==="function"&&require("crypto"),a1=Object.prototype.hasOwnProperty,Ah={},th=z();M.prototype={has:function(He){return(He=kb(He,!1))?this._key in He:!1},
get:function(He){if(He=kb(He,!1))return He[this._key]},
set:function(He,ve){kb(He,!0)[this._key]=ve;return this},
delete:function(He){return(He=kb(He,!1))&&this._key in He?delete He[this._key]:!1},
clear:function(){this._key=z()}};
return M}
var r=Object.getPrototypeOf(Function),x=typeof Map==="function"?Map:B(),L=typeof Set==="function"?Set:F(),q=new (typeof WeakMap==="function"?WeakMap:K());k.decorate=function(M,d,z,kb){if(m(kb)){if(m(z)){if(!Array.isArray(M))throw new TypeError;if(!T(d))throw new TypeError;for(z=M.length-1;z>=0;--z)if(kb=(0,M[z])(d),!m(kb)){if(!T(kb))throw new TypeError;d=kb}return d}if(!Array.isArray(M))throw new TypeError;if(!a(d))throw new TypeError;z=w(z);for(kb=M.length-1;kb>=0;--kb)(0,M[kb])(d,z)}else{if(Array.isArray(M))if(a(d)){if(m(z))throw new TypeError;
if(!a(kb))throw new TypeError;}else throw new TypeError;else throw new TypeError;z=w(z);for(var TI=M.length-1;TI>=0;--TI){var a1=(0,M[TI])(d,z,kb);if(!m(a1)){if(!a(a1))throw new TypeError;kb=a1}}return kb}};
k.metadata=function(M,d){return function(z,kb){if(m(kb)){if(!T(z))throw new TypeError;E(z,void 0,!0).set(M,d)}else{if(!a(z))throw new TypeError;kb=w(kb);E(z,kb,!0).set(M,d)}}};
k.defineMetadata=function(M,d){var z;if(a(d))m(z)||(z=w(z));else throw new TypeError;E(d,z,!0).set("parameters",M)};
k.hasMetadata=function(M,d,z){if(a(d))m(z)||(z=w(z));else throw new TypeError;return S(M,d,z)};
k.hasOwnMetadata=function(M,d,z){if(a(d))m(z)||(z=w(z));else throw new TypeError;return R(M,d,z)};
k.getMetadata=function(M,d,z){if(a(d))m(z)||(z=w(z));else throw new TypeError;return V(M,d,z)};
k.getOwnMetadata=function(M,d,z){if(a(d))m(z)||(z=w(z));else throw new TypeError;return N(M,d,z)};
k.getMetadataKeys=function(M,d){if(a(M))m(d)||(d=w(d));else throw new TypeError;return h(M,d)};
k.getOwnMetadataKeys=function(M,d){if(a(M))m(d)||(d=w(d));else throw new TypeError;return J(M,d)};
k.deleteMetadata=function(M,d,z){if(a(d))m(z)||(z=w(z));else throw new TypeError;var kb=E(d,z,!1);if(!m(kb)){if(!kb.delete(M))return!1;if(kb.size>0)return!0;M=q.get(d);M.delete(z);if(M.size>0)return!0;q.delete(d);return!0}};
(function(M){if(typeof M.Reflect!=="undefined"){if(M.Reflect!==k)for(var d in k)M.Reflect[d]=k[d]}else M.Reflect=k})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Ykd||(Ykd={}));var jTI=self;var WR4=[0,_.uT,_.Ds,_.uT];var FRp=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(FRp,_.iu);var yVj=_.PU(FRp,[0,_.Zs,_.vS,WR4,_.Ds,_.sU]);var XMC=[0,dF,-3,_.sU,_.Zs,_.uT,_.OjC,dF,C45,q5C,KL,_.x7,_.uT,function(){return oX8},
_.Ds],oX8=[0,_.vS,function(){return XMC},
_.Zs,14,dF];_.dy(_.tB,_.r7);_.I=_.tB.prototype;_.I.start=function(){this.stop();this.usingListeners_=!1;var k=gXT(this),E=Ui5(this);k&&!E&&this.JSC$11310_win_.mozRequestAnimationFrame?(this.JSC$11310_id_=_.wX(this.JSC$11310_win_,"MozBeforePaint",this.callback_),this.JSC$11310_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11310_id_=k&&E?k.call(this.JSC$11310_win_,this.callback_):this.JSC$11310_win_.setTimeout(Ptd(this.callback_),20)};
_.I.stop=function(){if(this.isActive()){var k=gXT(this),E=Ui5(this);k&&!E&&this.JSC$11310_win_.mozRequestAnimationFrame?av(this.JSC$11310_id_):k&&E?E.call(this.JSC$11310_win_,this.JSC$11310_id_):this.JSC$11310_win_.clearTimeout(this.JSC$11310_id_)}this.JSC$11310_id_=null};
_.I.fire=function(){this.stop();this.JSC$11312_doAction_()};
_.I.isActive=function(){return this.JSC$11310_id_!=null};
_.I.JSC$11312_doAction_=function(){this.usingListeners_&&this.JSC$11310_id_&&av(this.JSC$11310_id_);this.JSC$11310_id_=null;this.JSC$11310_listener_.call(this.handler_,_.ZO())};
_.I.disposeInternal=function(){this.stop();_.tB.superClass_.disposeInternal.call(this)};
var gXT=function(k){k=k.JSC$11310_win_;return k.requestAnimationFrame||k.webkitRequestAnimationFrame||k.mozRequestAnimationFrame||k.oRequestAnimationFrame||k.msRequestAnimationFrame||null},Ui5=function(k){k=k.JSC$11310_win_;
return k.cancelAnimationFrame||k.cancelRequestAnimationFrame||k.webkitCancelRequestAnimationFrame||k.mozCancelRequestAnimationFrame||k.oCancelRequestAnimationFrame||k.msCancelRequestAnimationFrame||null};_.NJ=function(k,E,S){_.r7.call(this);this.JSC$11313_listener_=S!=null?k.bind(S):k;this.JSC$11313_interval_=E;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11313_timer_=null};
_.y(_.NJ,_.r7);_.I=_.NJ.prototype;_.I.fire=function(k){this.args_=arguments;this.JSC$11313_timer_||this.pauseCount_?this.shouldFire_=!0:Hh5(this)};
_.I.stop=function(){this.JSC$11313_timer_&&(_.Vt.clearTimeout(this.JSC$11313_timer_),this.JSC$11313_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.I.pause=function(){this.pauseCount_++};
_.I.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11313_timer_||(this.shouldFire_=!1,Hh5(this))};
_.I.disposeInternal=function(){_.r7.prototype.disposeInternal.call(this);this.stop()};
var Hh5=function(k){k.JSC$11313_timer_=Fc(function(){k.JSC$11313_timer_=null;k.shouldFire_&&!k.pauseCount_&&(k.shouldFire_=!1,Hh5(k))},k.JSC$11313_interval_);
var E=k.args_;k.args_=null;k.JSC$11313_listener_.apply(null,E)};var KRC=function(k,E){this.childIterator_=k[_.Vt.Symbol.iterator]();this.mapFn_=E};
KRC.prototype[Symbol.iterator]=function(){return this};
KRC.prototype.next=function(){var k=this.childIterator_.next();return{value:k.done?void 0:this.mapFn_.call(void 0,k.value),done:k.done}};
var pM4=function(k,E){return new KRC(k,E)};var AVY={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 a6j=function(k){var E=rV5(k);if(!E)throw Error("Vd`"+k);return E},rV5=function(k){var E={};
k=String(k);var S=k.charAt(0)=="#"?k:"#"+k;if(udz.test(S))return E.hex=idl(S),E.type="hex",E;S=P0l(k);return S.length?(E.hex=kCC(S[0],S[1],S[2]),E.type="rgb",E):AVY&&(k=AVY[k.toLowerCase()])?(E.hex=k,E.type="named",E):null},xiA=/#(.)(.)(.)/,idl=function(k){if(!udz.test(k))throw Error("Xd`"+k);
k.length==4&&(k=k.replace(xiA,"#$1$1$2$2$3$3"));return k.toLowerCase()},tgm=function(k){k=idl(k);
k=parseInt(k.slice(1),16);return[k>>16,k>>8&255,k&255]},kCC=function(k,E,S){k=Number(k);
E=Number(E);S=Number(S);if(k!=(k&255)||E!=(E&255)||S!=(S&255))throw Error("Yd`"+k+"`"+E+"`"+S);E=k<<16|E<<8|S;return k<16?"#"+(16777216|E).toString(16).slice(1):"#"+E.toString(16)},udz=/^#(?:[0-9a-f]{3}){1,2}$/i,LR2=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,P0l=function(k){var E=k.match(LR2);
if(E){k=Number(E[1]);var S=Number(E[2]);E=Number(E[3]);if(k>=0&&k<=255&&S>=0&&S<=255&&E>=0&&E<=255)return[k,S,E]}return[]};var jvA={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},kz=jvA;kz=jvA;var SRl,Di4,$i4;SRl=function(k,E){switch(E){case 1:return k%4!=0||k%100==0&&k%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Di4=function(k,E,S,R,V){k=new Date(k,E,S);V=V||0;return k.valueOf()+(((R!==void 0?R:3)-V+7)%7-((k.getDay()+6)%7-V+7)%7)*864E5};
_.WD=function(k,E,S){typeof k==="number"?(this.date=$i4(k,E||0,S||1),f0A(this,S||1)):_.qA(k)?(this.date=$i4(k.getFullYear(),k.getMonth(),k.getDate()),f0A(this,k.getDate())):(this.date=new Date(_.ZO()),k=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),f0A(this,k))};
$i4=function(k,E,S){E=new Date(k,E,S);k>=0&&k<100&&E.setFullYear(E.getFullYear()-1900);return E};
_.I=_.WD.prototype;_.I.firstDayOfWeek_=kz.FIRSTDAYOFWEEK;_.I.firstWeekCutOffDay_=kz.FIRSTWEEKCUTOFFDAY;_.I.clone=function(){var k=new _.WD(this.date);k.firstDayOfWeek_=this.firstDayOfWeek_;k.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return k};
_.I.getFullYear=function(){return this.date.getFullYear()};
_.I.getYear=function(){return this.getFullYear()};
_.I.getMonth=function(){return this.date.getMonth()};
_.I.getDate=function(){return this.date.getDate()};
_.I.getTime=function(){return this.date.getTime()};
_.I.getDay=function(){return this.date.getDay()};
_.I.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.I.getUTCMonth=function(){return this.date.getUTCMonth()};
_.I.getUTCDate=function(){return this.date.getUTCDate()};
_.I.getUTCDay=function(){return this.date.getDay()};
_.I.getUTCHours=function(){return this.date.getUTCHours()};
_.I.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.I.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.I.set=function(k){this.date=new Date(k.getFullYear(),k.getMonth(),k.getDate())};
_.I.setFullYear=function(k){this.date.setFullYear(k)};
_.I.setYear=function(k){this.setFullYear(k)};
_.I.setMonth=function(k){this.date.setMonth(k)};
_.I.setDate=function(k){this.date.setDate(k)};
_.I.setTime=function(k){this.date.setTime(k)};
_.I.setUTCFullYear=function(k){this.date.setUTCFullYear(k)};
_.I.setUTCMonth=function(k){this.date.setUTCMonth(k)};
_.I.setUTCDate=function(k){this.date.setUTCDate(k)};
_.I.add=function(k){if(k.years||k.months){var E=this.getMonth()+k.months+k.years*12,S=this.getYear()+Math.floor(E/12);E%=12;E<0&&(E+=12);var R=Math.min(SRl(S,E),this.getDate());this.setDate(1);this.setFullYear(S);this.setMonth(E);this.setDate(R)}k.days&&(S=this.getYear(),E=S>=0&&S<=99?-1900:0,k=new Date((new Date(S,this.getMonth(),this.getDate(),12)).getTime()+k.days*864E5),this.setDate(1),this.setFullYear(k.getFullYear()+E),this.setMonth(k.getMonth()),this.setDate(k.getDate()),f0A(this,k.getDate()))};
_.I.JSC$11326_toIsoString=function(k){var E=this.getFullYear(),S=E<0?"-":E>=1E4?"+":"";return[S+_.Gn(Math.abs(E),S?6:4),_.Gn(this.getMonth()+1,2),_.Gn(this.getDate(),2)].join(k?"-":"")};
_.I.equals=function(k){return!(!k||this.getYear()!=k.getYear()||this.getMonth()!=k.getMonth()||this.getDate()!=k.getDate())};
_.I.toString=function(){return this.JSC$11326_toIsoString()};
var f0A=function(k,E){k.getDate()!=E&&k.date.setUTCHours(k.date.getUTCHours()+(k.getDate()<E?1:-1))};
_.WD.prototype.valueOf=function(){return this.date.valueOf()};var yY=function(k,E,S,R,V){this.reversed=!!E;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!S;k&&F2(this,k,R);this.depth=V!=void 0?V:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.dy(yY,S7);var F2=function(k,E,S,R){if(k.node=E)k.tagType=typeof S==="number"?S:k.node.nodeType!=1?0:k.reversed?-1:1;typeof R==="number"&&(k.depth=R)};
_.I=yY.prototype;_.I.JSC$11341_copyFrom=function(k){this.node=k.node;this.tagType=k.tagType;this.depth=k.depth;this.reversed=k.reversed;this.constrained=k.constrained};
_.I.clone=function(){return new yY(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.I.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return RK;var k=this.node;var E=this.reversed?-1:1;if(this.tagType==E){var S=this.reversed?k.lastChild:k.firstChild;S?F2(this,S):F2(this,k,E*-1)}else(S=this.reversed?k.previousSibling:k.nextSibling)?F2(this,S):F2(this,k.parentNode,E*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(k=this.node)?VA(k):RK};
_.I.equals=function(k){return k.node==this.node&&(!this.node||k.tagType==this.tagType)};
_.I.splice=function(k){var E=this.node,S=this.reversed?1:-1;this.tagType==S&&(this.tagType=S*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;yY.prototype.next.call(this);this.reversed=!this.reversed;S=_.sj(arguments[0])?arguments[0]:arguments;for(var R=S.length-1;R>=0;R--)_.g9(S[R],E);_.Ua(E)};var vXd=function(){},o0=function(k){for(var E=[],S=k.getTextRangeCount(),R=0;R<S;R++)E.push(k.getTextRange(R));
return E};
vXd.prototype.isReversed=function(){return!1};
vXd.prototype.getWindow=function(){return ZB(_.dT(this.JSC$11343_getStartNode()))};
var bhC=function(k,E){yY.call(this,k,E,!0)};
_.dy(bhC,yY);var X2=function(k,E,S,R,V){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!V;if(k){this.startNode_=k;this.startOffset_=E;this.endNode_=S;this.endOffset_=R;if(k.nodeType==1&&k.tagName!="BR")if(k=k.childNodes,E=k[E])this.startNode_=E,this.startOffset_=0;else{k.length&&(this.startNode_=_.Ll(k));var N=!0}S.nodeType==1&&((this.endNode_=S.childNodes[R])?this.endOffset_=0:this.endNode_=S)}yY.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);N&&this.next()};
_.dy(X2,bhC);_.I=X2.prototype;_.I.JSC$11349_getStartNode=function(){return this.startNode_};
_.I.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)};
_.I.next=function(){return this.isLast()?RK:X2.superClass_.next.call(this)};
_.I.JSC$11341_copyFrom=function(k){this.startNode_=k.startNode_;this.endNode_=k.endNode_;this.startOffset_=k.startOffset_;this.endOffset_=k.endOffset_;this.isReversed_=k.isReversed_;X2.superClass_.JSC$11341_copyFrom.call(this,k)};
_.I.clone=function(){var k=new X2(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);k.JSC$11341_copyFrom(this);return k};var Zhj=function(){};
Zhj.prototype.__iterator__=function(){return new X2(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var gh=function(k){this.range_=k};
_.dy(gh,Zhj);var diT=function(k){var E=_.dT(k).createRange();if(k.nodeType==3)E.setStart(k,0),E.setEnd(k,k.length);else if(yM(k)||k.nodeType==3){for(var S,R=k;(S=R.firstChild)&&(yM(S)||S.nodeType==3);)R=S;E.setStart(R,0);for(R=k;(S=R.lastChild)&&(yM(S)||S.nodeType==3);)R=S;E.setEnd(R,R.nodeType==1?R.childNodes.length:R.length)}else S=k.parentNode,k=Array.prototype.indexOf.call(S.childNodes,k),E.setStart(S,k),E.setEnd(S,k+1);return E},sv2=function(k,E,S,R){var V=_.dT(k).createRange();
V.setStart(k,E);V.setEnd(S,R);return V};
_.I=gh.prototype;_.I.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.I.getContainer=function(){return this.range_.commonAncestorContainer};
_.I.compareBrowserRangeEndpoints=function(k,E,S){return this.range_.compareBoundaryPoints(S==1?E==1?_.Vt.Range.START_TO_START:_.Vt.Range.START_TO_END:E==1?_.Vt.Range.END_TO_START:_.Vt.Range.END_TO_END,k)};
_.I.isCollapsed=function(){return this.range_.collapsed};
_.I.select=function(k){this.selectInternal(ZB(_.dT(this.range_.startContainer)).getSelection(),k)};
_.I.selectInternal=function(k){k.removeAllRanges();k.addRange(this.range_)};
_.I.insertNode=function(k,E){var S=this.range_.cloneRange();S.collapse(E);S.insertNode(k);S.detach();return k};
_.I.collapse=function(k){this.range_.collapse(k)};_.dy(T9,gh);T9.prototype.selectInternal=function(k,E){!E||this.isCollapsed()?T9.superClass_.selectInternal.call(this,k,E):(k.collapse(this.range_.endContainer,this.range_.endOffset),k.extend(this.range_.startContainer,this.range_.startOffset))};_.dy(wc,gh);wc.prototype.compareBrowserRangeEndpoints=function(k,E,S){return wc.superClass_.compareBrowserRangeEndpoints.call(this,k,E,S)};
wc.prototype.selectInternal=function(k,E){E?k.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):k.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var l08=function(k){return _.Qb?new wc(k):_.ze?new T9(k):new gh(k)};var UD=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},MF4;
_.dy(UD,vXd);MF4=function(k,E){var S=new UD;S.browserRangeWrapper_=k;S.isReversed_=!!E;return S};
_.qkY=function(k){k=_.Qb?new wc(diT(k)):_.ze?new T9(diT(k)):new gh(diT(k));return MF4(k)};
_.HD=function(k,E,S,R){var V=new UD;V.isReversed_=zZd(k,E,S,R);if(_.IW(k)&&!yM(k)){var N=k.parentNode;E=Array.prototype.indexOf.call(N.childNodes,k);k=N}_.IW(S)&&!yM(S)&&(N=S.parentNode,R=Array.prototype.indexOf.call(N.childNodes,S),S=N);V.isReversed_?(V.startNode_=S,V.startOffset_=R,V.endNode_=k,V.endOffset_=E):(V.startNode_=k,V.startOffset_=E,V.endNode_=S,V.endOffset_=R);return V};
_.I=UD.prototype;_.I.clone=function(){var k=new UD;k.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();k.startNode_=this.startNode_;k.startOffset_=this.startOffset_;k.endNode_=this.endNode_;k.endOffset_=this.endOffset_;k.isReversed_=this.isReversed_;return k};
_.I.JSC$11343_getType=function(){return"text"};
_.I.getBrowserRangeObject=function(){return KF(this).range_};
_.I.getTextRangeCount=function(){return 1};
_.I.getTextRange=function(){return this};
var KF=function(k){var E;if(!(E=k.browserRangeWrapper_)){E=k.JSC$11343_getStartNode();var S=k.JSC$11343_getStartOffset(),R=k.JSC$11343_getEndNode(),V=k.JSC$11343_getEndOffset();E=_.Qb?new wc(sv2(E,S,R,V)):_.ze?new T9(sv2(E,S,R,V)):new gh(sv2(E,S,R,V));E=k.browserRangeWrapper_=E}return E};
_.I=UD.prototype;_.I.getContainer=function(){return KF(this).getContainer()};
_.I.JSC$11343_getStartNode=function(){return this.startNode_||(this.startNode_=KF(this).range_.startContainer)};
_.I.JSC$11343_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=KF(this).range_.startOffset};
_.I.JSC$11343_getEndNode=function(){return this.endNode_||(this.endNode_=KF(this).range_.endContainer)};
_.I.JSC$11343_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=KF(this).range_.endOffset};
_.I.isReversed=function(){return this.isReversed_};
_.I.JSC$11343_containsRange=function(k,E){if(k.JSC$11343_getType()=="text"){var S=KF(this);k=KF(k);E=E&&!k.isCollapsed();k=k.range_;S=E?S.compareBrowserRangeEndpoints(k,0,1)>=0&&S.compareBrowserRangeEndpoints(k,1,0)<=0:S.compareBrowserRangeEndpoints(k,0,0)>=0&&S.compareBrowserRangeEndpoints(k,1,1)<=0}else S=!1;return S};
_.I.isCollapsed=function(){return KF(this).isCollapsed()};
_.I.JSC$11343_getText=function(){return KF(this).range_.toString()};
_.I.__iterator__=function(){return new X2(this.JSC$11343_getStartNode(),this.JSC$11343_getStartOffset(),this.JSC$11343_getEndNode(),this.JSC$11343_getEndOffset())};
_.I.select=function(){KF(this).select(this.isReversed_)};
_.I.JSC$11343_removeContents=function(){var k=KF(this).range_;k.extractContents();if(k.startContainer.hasChildNodes()&&(k=k.startContainer.childNodes[k.startOffset])){var E=k.previousSibling;aBd(k)==""&&_.Ua(k);E&&aBd(E)==""&&_.Ua(E)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.I.insertNode=function(k,E){k=KF(this).insertNode(k,E);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return k};
_.I.collapse=function(k){k=this.isReversed()?!k:k;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(k);k?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var QvC=function(){};
_.dy(QvC,vXd);QvC.prototype.JSC$11343_containsRange=function(k,E){var S=o0(this);k=o0(k);return(E?RW:_.Epi)(k,function(R){return RW(S,function(V){return V.JSC$11343_containsRange(R,E)})})};
QvC.prototype.insertNode=function(k,E){E?_.X$(k,this.JSC$11343_getStartNode()):_.g9(k,this.JSC$11343_getEndNode());return k};var OhY,GTd=rT().JSC$9321_document_.documentElement;OhY=GTd.requestFullscreen?"fullscreenchange":GTd.webkitRequestFullscreen?"webkitfullscreenchange":GTd.mozRequestFullScreen?"mozfullscreenchange":GTd.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var CYC=function(){var k=rT().JSC$9321_document_;return!!(k.webkitIsFullScreen||k.mozFullScreen||k.msFullscreenElement||k.fullscreenElement)};var pF=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.dy(pF,QvC);_.I=pF.prototype;_.I.clone=function(){var k=new pF;k.browserRanges_=_.d1(this.browserRanges_);return k};
_.I.JSC$11343_getType=function(){return"mutli"};
_.I.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.I.getTextRangeCount=function(){return this.browserRanges_.length};
_.I.getTextRange=function(k){this.ranges_[k]||(this.ranges_[k]=MF4(l08(this.browserRanges_[k])));return this.ranges_[k]};
_.I.getContainer=function(){if(!this.container_){for(var k=[],E=this.getTextRangeCount(),S=0;S<E;S++)k.push(this.getTextRange(S).getContainer());this.container_=ny5.apply(null,k)}return this.container_};
var AH=function(k){k.sortedRanges_||(k.sortedRanges_=o0(k),k.sortedRanges_.sort(function(E,S){var R=E.JSC$11343_getStartNode();E=E.JSC$11343_getStartOffset();var V=S.JSC$11343_getStartNode();S=S.JSC$11343_getStartOffset();return R==V&&E==S?0:zZd(R,E,V,S)?1:-1}));
return k.sortedRanges_};
_.I=pF.prototype;_.I.JSC$11343_getStartNode=function(){return AH(this)[0].JSC$11343_getStartNode()};
_.I.JSC$11343_getStartOffset=function(){return AH(this)[0].JSC$11343_getStartOffset()};
_.I.JSC$11343_getEndNode=function(){return _.Ll(AH(this)).JSC$11343_getEndNode()};
_.I.JSC$11343_getEndOffset=function(){return _.Ll(AH(this)).JSC$11343_getEndOffset()};
_.I.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.I.JSC$11343_getText=function(){return o0(this).map(function(k){return k.JSC$11343_getText()}).join("")};
_.I.__iterator__=function(){return new rh(this)};
_.I.select=function(){var k=this.getWindow().getSelection();k.removeAllRanges();for(var E=this.getTextRangeCount(),S=0;S<E;S++)k.addRange(this.getTextRange(S).getBrowserRangeObject())};
_.I.JSC$11343_removeContents=function(){o0(this).forEach(function(k){k.JSC$11343_removeContents()})};
_.I.collapse=function(k){if(!this.isCollapsed()){var E=k?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;E.collapse(k);this.ranges_=[E];this.sortedRanges_=[E];this.browserRanges_=[E.getBrowserRangeObject()]}};
var rh=function(k){this.iterators_=null;this.currentIdx_=0;k&&(this.iterators_=AH(k).map(function(E){return _.hMp(E)}));
yY.call(this,k?this.JSC$11349_getStartNode():null,!1,!0)};
_.dy(rh,bhC);_.I=rh.prototype;_.I.JSC$11349_getStartNode=function(){return this.iterators_[0].JSC$11349_getStartNode()};
_.I.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.I.next=function(){for(;this.currentIdx_<this.iterators_.length;){var k=this.iterators_[this.currentIdx_],E=k.next();if(E.done)this.currentIdx_++;else return F2(this,k.node,k.tagType,k.depth),E}return RK};
_.I.JSC$11341_copyFrom=function(k){this.iterators_=_.d1(k.iterators_);rh.superClass_.JSC$11341_copyFrom.call(this,k)};
_.I.clone=function(){var k=new rh(null);k.JSC$11341_copyFrom(this);return k};var kZd,zZd;_.zc=function(){var k=window.getSelection();return k&&kZd(k)};
kZd=function(k){var E=!1;if(k.createRange)try{var S=k.createRange()}catch(V){return null}else if(k.rangeCount){if(k.rangeCount>1){S=new pF;E=k.rangeCount;for(var R=0;R<E;R++)S.browserRanges_.push(k.getRangeAt(R));return S}S=k.getRangeAt(0);E=zZd(k.anchorNode,k.anchorOffset,k.focusNode,k.focusOffset)}else return null;return MF4(l08(S),E)};
_.uG=function(k,E){return _.HD(k,E,k,E)};
_.xx=function(k,E,S,R){return _.HD(k,E,S,R)};
zZd=function(k,E,S,R){if(k==S)return R<E;var V;if(k.nodeType==1&&E)if(V=k.childNodes[E])k=V,E=0;else if(_.zx(k,S))return!0;if(S.nodeType==1&&R)if(V=S.childNodes[R])S=V,R=0;else if(_.zx(S,k))return!1;return(IBp(k,S)||E-R)>0};var LF=function(){_.wG.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.uk)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.uk)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.uk)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.uk)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.uk)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.uk)(this.dispatchProgressEvent_,this)};
_.dy(LF,_.wG);LF.prototype.abort=function(){try{this.reader_.abort()}catch(k){throw new aZ4(k,"aborting read");}};
LF.prototype.getError=function(){return this.reader_.error&&new aZ4(this.reader_.error,"reading file")};
LF.prototype.dispatchProgressEvent_=function(k){this.dispatchEvent(new tmA(k,this))};
LF.prototype.disposeInternal=function(){LF.superClass_.disposeInternal.call(this);delete this.reader_};
var S3C=function(k){var E=new LF,S=EvC(E);E.reader_.readAsArrayBuffer(k);return S},R8C=function(k){var E=new LF,S=EvC(E);
E.reader_.readAsDataURL(k);return S},EvC=function(k){var E=new b1;
k.listen("loadend",_.I_(function(S,R){var V=R.reader_.result,N=R.getError();V==null||N?S.errback(N):S.callback(V);R.dispose()},E,k));
return E};var jG=function(){_.wG.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11383_eventHandler_=new _.Bk(this);this.JSC$11383_isInitialized_=!1};
_.dy(jG,_.wG);var VQz=new _.cs("d"),NbY=new _.cs("beforedragstart"),ID8=new _.cs("dragstart"),nv2=new _.cs("beforedragmove"),iUj=new _.cs("dragmove"),h8A=new _.cs("beforedragend"),Jb4=new _.cs("dragend"),cbz=new _.cs("e");jG.prototype.isDragging=function(){return!!this.JSC$11383_dragger_};
var mJY=function(k,E){E.dlgGrowthDirection_=0;E.dlgDragHoverClass_=void 0;E.dlgDragPermission=0;k.dragLists_.push(E)},e85=function(k,E){k.getHandleForDragItem_=E};
jG.prototype.init=function(){if(!this.JSC$11383_isInitialized_){for(var k=this.dragLists_.length,E=0;E<k;E++)for(var S=_.U8(this.dragLists_[E]),R=S.length,V=0;V<R;++V){var N=S[V],h=this.getHandleForDragItem_(N),J=_.Oj(h);this.dragItemForHandle_[J]=N;this.dragItemHoverClasses_&&(this.JSC$11383_eventHandler_.listen(N,"mouseover",this.handleDragItemMouseover_),this.JSC$11383_eventHandler_.listen(N,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11383_eventHandler_.listen(h,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11383_eventHandler_.listen(h,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(N);this.JSC$11383_eventHandler_.listen(h,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11383_isInitialized_=!0}};
jG.prototype.disposeInternal=function(){this.JSC$11383_eventHandler_.dispose();for(var k=this.dragLists_.length,E=0;E<k;E++){var S=this.dragLists_[E];S.dlgGrowthDirection_=void 0;S.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;aDT(this);jG.superClass_.disposeInternal.call(this)};
var tQC=function(k,E){for(var S=k.dragLists_.length,R=0;R<S;R++){var V=k.dragLists_[R];V.dlgBounds_=T9j(V)}S=k.dragItems_.length;for(R=0;R<S;R++)V=k.dragItems_[R],V!=E&&(V.dlgBounds_=T9j(V))};
_.I=jG.prototype;
_.I.handlePotentialDragStart_=function(k){var E=_.Oj(k.currentTarget);E=this.dragItemForHandle_[E];if(E.parentElement.dlgDragPermission!=2){this.currDragItem_=E;a:{E=this.currDragItem_;for(var S=E.cloneNode(!0),R=Hy("TEXTAREA",E),V=Hy("TEXTAREA",S),N=0;N<R.length;N++)V[N].value=R[N].value;switch(E.tagName){case "TR":E=_.WN("TABLE",null,_.WN("TBODY",null,S));break a;case "TD":case "TH":E=_.WN("TABLE",null,_.WN("TBODY",null,_.WN("TR",null,S)));break a;case "TEXTAREA":S.value=E.value;default:E=S;break a}E=
void 0}this.draggerEl_=E;this.draggerElClasses_&&$s(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.dT(this.currDragItem_).body.appendChild(this.draggerEl_);S=_.so(this.currDragItem_);E=this.draggerEl_;R=_.so(E);if(S instanceof _.bh){var h=S.y;S=S.x}r9(E,E.offsetLeft+(S-R.x),E.offsetTop+(Number(h)-R.y));this.JSC$11383_dragger_=new _.r$(this.draggerEl_);_.eG4(this.JSC$11383_dragger_,this.hysteresisDistance_);
_.wX(this.JSC$11383_dragger_,"start",this.handleDragStart_,!1,this);_.wX(this.JSC$11383_dragger_,"end",this.handleDragEnd_,!1,this);_.wX(this.JSC$11383_dragger_,"earlycancel",this.JSC$11385_cleanup_,!1,this);this.dispatchEvent(new Dq(VQz,this,k,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_));this.JSC$11383_dragger_.startDrag(k)}};
_.I.handleDragStart_=function(k){if(this.dispatchEvent(new Dq(NbY,this,k.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.RhA(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?$s(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var E=YoC(this.draggerEl_);this.draggerEl_.halfWidth=E.width/2;this.draggerEl_.halfHeight=E.height/2;E=this.draggerEl_.getBoundingClientRect();
var S=k.clientY,R=awd(this.JSC$11383_dragger_,k.clientX);if(R>E.right){var V=this.currDragItem_.getBoundingClientRect();this.JSC$11383_dragger_.deltaX=R-(R-V.left)/V.width*E.width}S=tXT(this.JSC$11383_dragger_,S);S>E.bottom&&(this.JSC$11383_dragger_.deltaY+=S-E.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";tQC(this,this.currDragItem_);this.currDragItem_.style.display="";_.wX(this.JSC$11383_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new Dq(ID8,
this,k.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_))}else k.preventDefault(),this.JSC$11385_cleanup_()};
_.I.handleDragMove_=function(k){var E=_.so(this.draggerEl_);E=new _.bh(E.x+this.draggerEl_.halfWidth,E.y+this.draggerEl_.halfHeight);a:{var S=null;if(this.currDragItem_.style.display!="none"){S=this.currDragItem_.parentNode;var R=T9j(S);if(Tbp(E,R))break a}R=this.dragLists_.length;for(var V=0;V<R;V++){var N=this.dragLists_[V];if(N!=S&&Tbp(E,N.dlgBounds_)){S=N;break a}}S=null}if(S){if(S==null)throw Error("Zd");R=0;V=!1;N=void 0;switch(S.dlgGrowthDirection_){case 0:R=E.y;var h=w9d;var J=P_C;break;case 4:V=
!0;case 2:R=E.x;h=Bb8;J=P_C;break;case 5:V=!0;case 3:R=E.x,h=Y3C,J=Wuz}for(var m=null,a,T=_.U8(S),w=T.length,P=0;P<w;P++){var B=T[P];if(B!=this.currDragItem_){var F=h(B.dlgBounds_);if(V){var K=FuA(B,E);N===void 0&&(N=K);J(R,F)&&(a==void 0||K<N||K==N&&(J(F,a)||F==a))&&(m=B,a=F);K<N&&(N=K)}else J(R,F)&&(a==void 0||J(F,a))&&(m=B,a=F)}}h=m!==null&&FuA(m,E)>N?null:m}else h=null;if(!this.dispatchEvent(new Dq(nv2,this,k,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_,E,S,h)))return!1;if(S&&S.dlgDragPermission!=
1)this.currDragItem_.parentNode==S&&_.RhA(this.currDragItem_)==h||S.insertBefore(this.currDragItem_,h),this.currDragItem_.style.display="",S.dlgDragHoverClass_&&_.bY(S,S.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",J=this.dragLists_.length,a=0;a<J;a++)R=this.dragLists_[a],R.dlgDragHoverClass_&&_.fh(R,R.dlgDragHoverClass_);S!=this.currHoverList_&&(this.currHoverList_=S,tQC(this,this.currDragItem_));this.dispatchEvent(new Dq(iUj,this,k,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_,
E,S,h));return!1};
_.I.JSC$11385_cleanup_=function(){aDT(this);this.JSC$11383_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var k=this.dragLists_.length,E=0;E<k;E++)this.dragLists_[E].dlgBounds_=null;k=this.dragItems_.length;for(E=0;E<k;E++)this.dragItems_[E].dlgBounds_=null};
_.I.handleDragEnd_=function(k){if(!this.dispatchEvent(new Dq(h8A,this,k,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_)))return!1;aDT(this);this.dispatchEvent(new Dq(Jb4,this,k,this.currDragItem_,this.draggerEl_,this.JSC$11383_dragger_));this.JSC$11385_cleanup_();return!0};
var aDT=function(k){_.nu(k.JSC$11383_dragger_);var E=k.draggerEl_&&k.draggerEl_.parentElement;k.draggerEl_&&_.Ua(k.draggerEl_);k.currDragItem_&&k.currDragItem_.style.display=="none"&&(k.origList_.insertBefore(k.currDragItem_,k.origNextItem_),k.currDragItem_.style.display="");k.currDragItemClasses_&&k.currDragItem_?c6z(k.currDragItem_,k.currDragItemClasses_||[]):k.currDragItem_&&(k.currDragItem_.style.visibility="");for(var S=k.dragLists_.length,R=0;R<S;R++){var V=k.dragLists_[R];V.dlgDragHoverClass_&&
_.fh(V,V.dlgDragHoverClass_)}E&&k.dispatchEvent(new Dq(cbz,k,null,k.currDragItem_,k.draggerEl_,k.JSC$11383_dragger_))};
_.I=jG.prototype;_.I.getHandleForDragItem_=function(k){return k};
_.I.handleDragItemMouseover_=function(k){$s(k.currentTarget,this.dragItemHoverClasses_||[])};
_.I.handleDragItemMouseout_=function(k){c6z(k.currentTarget,this.dragItemHoverClasses_||[])};
_.I.handleDragItemHandleMouseover_=function(k){$s(k.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.I.handleDragItemHandleMouseout_=function(k){c6z(k.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Tbp=function(k,E){return k.x>E.left&&k.x<E.left+E.width&&k.y>E.top&&k.y<E.top+E.height},FuA=function(k,E){k=k.dlgBounds_;
return Math.abs(E.y-(k.top+(k.height-1)/2))},w9d=function(k){return k.top+k.height-1},Bb8=function(k){return k.left+k.width-1},Y3C=function(k){return k.left||0},P_C=function(k,E){return k<E},Wuz=function(k,E){return k>E},Dq=function(k,E,S,R,V,N){_.mL.call(this,k);
this.event=S;this.currDragItem=R;this.draggerEl=V;this.JSC$11387_dragger=N};
_.dy(Dq,_.mL);_.dy(YF,_.r7);var yb5=new _.bh(0,0);YF.prototype.JSC$11391_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
YF.prototype.JSC$11391_onMouseMove=function(k){var E=this.containerIsActuallyContent_?yb5:Ax(rT(this.containerNode_)),S=this.horizontalScrolling_?this.calculateScrollDelta(k.clientX+E.x,this.scrollBounds_.left,this.scrollBounds_.width):0,R=this.calculateScrollDelta(k.clientY+E.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=S;this.scrollDelta_.y=R;!(S=!S&&!R)&&(S=this.constrainScroll_)&&(S=k.clientX+E.x,k=k.clientY+E.y,E=this.containerBounds_,S=!(E.left<=S&&E.left+E.width>=
S&&E.top<=k&&E.top+E.height>=k));S?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
YF.prototype.calculateScrollDelta=function(k,E,S){var R=0;k<E?R=-8:k>E+S&&(R=8);return R};
YF.prototype.disposeInternal=function(){YF.superClass_.disposeInternal.call(this);this.JSC$11389_eventHandler_.dispose();this.scrollTimer_.dispose()};var ovj={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"}}},$x=ovj;$x=ovj;var fF={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 X9T=function(){},Lr=function(k){if(typeof k=="number"){var E=new X9T;
E.standardOffset_=k;var S=k;if(S==0)S="Etc/GMT";else{var R=["Etc/GMT",S<0?"-":"+"];S=Math.abs(S);R.push(Math.floor(S/60)%100);S%=60;S!=0&&R.push(":",_.Gn(S,2));S=R.join("")}E.timeZoneId_=S;S=k;S==0?S="UTC":(R=["UTC",S<0?"+":"-"],S=Math.abs(S),R.push(Math.floor(S/60)%100),S%=60,S!=0&&R.push(":",S),S=R.join(""));k=gv5(k);E.tzNames_=[S,S];E.tzNamesExt_={STD_LONG_NAME_GMT:k,STD_GENERIC_LOCATION:k};E.transitions_=[];return E}E=new X9T;E.timeZoneId_=k.id;E.standardOffset_=-k.std_offset;E.tzNames_=k.names;
E.tzNamesExt_=k.names_ext;E.transitions_=k.transitions;return E},gv5=function(k){var E=["GMT"];
E.push(k<=0?"+":"-");k=Math.abs(k);E.push(_.Gn(Math.floor(k/60)%100,2),":",_.Gn(k%60,2));return E.join("")},UJp=function(k,E){E=Date.UTC(E.getUTCFullYear(),E.getUTCMonth(),E.getUTCDate(),E.getUTCHours(),E.getUTCMinutes())/36E5;
for(var S=0;S<k.transitions_.length&&E>=k.transitions_[S];)S+=2;return S==0?0:k.transitions_[S-1]},HUC=function(k,E){k=k.standardOffset_-UJp(k,E);
return k===-1440?0:k};var ji=function(k,E){this.patternParts_=[];this.JSC$11402_dateTimeSymbols_=E||kz;typeof k=="number"?Kud(this,k):p94(this,k)},Abd=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],vD=function(k){return k.getHours?k.getHours():0},p94=function(k,E){for(OXb&&(E=E.replace(/\u200f/g,""));E;){for(var S=E,R=0;R<Abd.length;++R){var V=E.match(Abd[R]);
if(V){var N=V[0];E=E.substring(N.length);R==0&&(N=="''"?N="'":(N=N.substring(1,V[1]=="'"?N.length-1:N.length),N=N.replace(/''/g,"'")));k.patternParts_.push({text:N,type:R});break}}if(S===E)throw Error("$d`"+E);}};
ji.prototype.format=function(k,E){if(!k)throw Error("ae");var S=E?(k.getTimezoneOffset()-HUC(E,k))*6E4:0,R=S?new Date(k.getTime()+S):k,V=R;E&&R.getTimezoneOffset()!=k.getTimezoneOffset()&&(R=new Date(R.getTime()+(R.getTimezoneOffset()-k.getTimezoneOffset())*6E4),V=new Date(k.getTime()+(S+(S>0?-864E5:864E5))));S=[];for(var N=0;N<this.patternParts_.length;++N){var h=this.patternParts_[N].text;1==this.patternParts_[N].type?S.push(rbp(this,h,k,R,V,E)):S.push(h)}return S.join("")};
var Kud=function(k,E){if(E<4)var S=k.JSC$11402_dateTimeSymbols_.DATEFORMATS[E];else if(E<8)S=k.JSC$11402_dateTimeSymbols_.TIMEFORMATS[E-4];else if(E<12)S=k.JSC$11402_dateTimeSymbols_.DATETIMEFORMATS[E-8],S=S.replace("{1}",k.JSC$11402_dateTimeSymbols_.DATEFORMATS[E-8]),S=S.replace("{0}",k.JSC$11402_dateTimeSymbols_.TIMEFORMATS[E-8]);else if(E===12)S=k.JSC$11402_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(E===13)S=k.JSC$11402_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Kud(k,10);return}p94(k,S)},bG=function(k,E){E=String(E);
k=k.JSC$11402_dateTimeSymbols_||kz;if(k.ZERODIGIT!==void 0&&!Q8C){for(var S=[],R=0;R<E.length;R++){var V=E.charCodeAt(R);S.push(48<=V&&V<=57?String.fromCharCode(k.ZERODIGIT+V-48):E.charAt(R))}E=S.join("")}return E},Q8C=!1,OXb=!1,xJY=function(k,E,S,R){S=S.getFullYear();
S<=0&&R&&(S=1-S);return bG(k,uSj(S,E))},uSj=function(k,E){E==2&&(k%=100);
k<0&&E++;return _.Gn(k,E)},Zq=function(k){if(!(k.getHours&&k.getSeconds&&k.getMinutes))throw Error("be");
},LuC=function(k,E){Zq(E);
E=vD(E);return k.JSC$11402_dateTimeSymbols_.AMPMS[E>=12&&E<24?1:0]},rbp=function(k,E,S,R,V,N){var h=E.length;
switch(E.charAt(0)){case "G":return S=R.getFullYear()>0?1:0,h>=4?k.JSC$11402_dateTimeSymbols_.ERANAMES[S]:k.JSC$11402_dateTimeSymbols_.ERAS[S];case "y":return xJY(k,h,R,!0);case "Y":return S=(new Date(Di4(R.getFullYear(),R.getMonth(),R.getDate(),k.JSC$11402_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,k.JSC$11402_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),h==2&&(S%=100),bG(k,uSj(S,h));case "u":return xJY(k,h,R,!1);case "M":a:switch(S=R.getMonth(),h){case 5:h=k.JSC$11402_dateTimeSymbols_.NARROWMONTHS[S];
break a;case 4:h=k.JSC$11402_dateTimeSymbols_.MONTHS[S];break a;case 3:h=k.JSC$11402_dateTimeSymbols_.SHORTMONTHS[S];break a;default:h=bG(k,_.Gn(S+1,h))}return h;case "k":return Zq(V),bG(k,_.Gn(vD(V)||24,h));case "S":return bG(k,(V.getMilliseconds()/1E3).toFixed(Math.min(3,h)).slice(2)+(h>3?_.Gn(0,h-3):""));case "E":return S=R.getDay(),h>=4?k.JSC$11402_dateTimeSymbols_.WEEKDAYS[S]:k.JSC$11402_dateTimeSymbols_.SHORTWEEKDAYS[S];case "a":return LuC(k,V);case "b":return LuC(k,V);case "B":return LuC(k,
V);case "h":return Zq(V),bG(k,_.Gn(vD(V)%12||12,h));case "K":return Zq(V),bG(k,_.Gn(vD(V)%12,h));case "H":return Zq(V),bG(k,_.Gn(vD(V),h));case "c":a:switch(S=R.getDay(),h){case 5:h=k.JSC$11402_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[S];break a;case 4:h=k.JSC$11402_dateTimeSymbols_.STANDALONEWEEKDAYS[S];break a;case 3:h=k.JSC$11402_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[S];break a;default:h=bG(k,_.Gn(S,1))}return h;case "L":a:switch(S=R.getMonth(),h){case 5:h=k.JSC$11402_dateTimeSymbols_.STANDALONENARROWMONTHS[S];
break a;case 4:h=k.JSC$11402_dateTimeSymbols_.STANDALONEMONTHS[S];break a;case 3:h=k.JSC$11402_dateTimeSymbols_.STANDALONESHORTMONTHS[S];break a;default:h=bG(k,_.Gn(S+1,h))}return h;case "Q":return S=Math.floor(R.getMonth()/3),h<4?k.JSC$11402_dateTimeSymbols_.SHORTQUARTERS[S]:k.JSC$11402_dateTimeSymbols_.QUARTERS[S];case "d":return bG(k,_.Gn(R.getDate(),h));case "m":return Zq(V),bG(k,_.Gn(V.getMinutes?V.getMinutes():0,h));case "s":return Zq(V),bG(k,_.Gn(V.getSeconds(),h));case "v":return(N||Lr(S.getTimezoneOffset())).timeZoneId_;
case "V":return k=N||Lr(S.getTimezoneOffset()),h<=2?k.timeZoneId_:UJp(k,S)>0?k.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?k.tzNamesExt_.DST_GENERIC_LOCATION:k.tzNamesExt_.DST_GENERIC_LOCATION:k.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?k.tzNamesExt_.STD_GENERIC_LOCATION:k.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return S=Di4(V.getFullYear(),V.getMonth(),V.getDate(),k.JSC$11402_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,k.JSC$11402_dateTimeSymbols_.FIRSTDAYOFWEEK),bG(k,_.Gn(Math.floor(Math.round((S-(new Date((new Date(S)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,h));case "z":return k=N||Lr(S.getTimezoneOffset()),h<4?k.tzNames_[UJp(k,S)>0?2:0]:k.tzNames_[UJp(k,S)>0?3:1];case "Z":return E=N||Lr(S.getTimezoneOffset()),h<4?(h=-HUC(E,S),k=[h<0?"-":"+"],h=Math.abs(h),k.push(_.Gn(Math.floor(h/60)%100,2),_.Gn(h%60,2)),h=k.join("")):h=bG(k,gv5(HUC(E,S))),h;default:return""}};var jZd=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,DJ5=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,ULb=function(k){this.patternParts_=[];this.JSC$11411_dateTimeSymbols_=kz;if(typeof k=="number"){k>11&&(k=10);if(k<4)var E=this.JSC$11411_dateTimeSymbols_.DATEFORMATS[k];else k<8?E=this.JSC$11411_dateTimeSymbols_.TIMEFORMATS[k-4]:(E=this.JSC$11411_dateTimeSymbols_.DATETIMEFORMATS[k-8],E=E.replace("{1}",this.JSC$11411_dateTimeSymbols_.DATEFORMATS[k-8]),E=E.replace("{0}",this.JSC$11411_dateTimeSymbols_.TIMEFORMATS[k-
8]));$JC(this,E)}else $JC(this,k)},$JC=function(k,E){for(var S=!1,R="",V=0;V<E.length;V++){var N=E.charAt(V);
if(jZd.test(N))for(R.length>0&&(k.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R=""),k.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});V<E.length-1&&E.charAt(V+1)==" ";)V++;else if(S)N=="'"?V+1<E.length&&E.charAt(V+1)=="'"?(R+="'",V++):S=!1:R+=N;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(N)>=0){R.length>0&&(k.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1}),R="");for(var h=E.charAt(V),J=V+1;J<E.length&&E.charAt(J)==h;)J++;h=J-V;h<=0?J=!1:(J="MydhHmsSDkK".indexOf(N),
J=J>0||J==0&&h<3);k.patternParts_.push({text:N,count:h,abutStart:!1,numeric:J});V+=h-1}else N=="'"?V+1<E.length&&E.charAt(V+1)=="'"?(R+="'",V++):S=!0:R+=N}R.length>0&&k.patternParts_.push({text:R,count:0,abutStart:!1,numeric:!1});E=!1;for(S=0;S<k.patternParts_.length;S++)k.patternParts_[S].numeric?!E&&S+1<k.patternParts_.length&&k.patternParts_[S+1].numeric&&(E=!0,k.patternParts_[S].abutStart=!0):E=!1};
ULb.prototype.parse=function(k,E,S){var R=!1,V=!1;S&&(R=S.predictive||!1,V=S.validate||!1);if(R)for(S=0;S<this.patternParts_.length;S++){var N=this.patternParts_[S];if(N.count>0&&("abBhHkKm".indexOf(N.text.charAt(0))<0||N.count>2||N.abutStart))throw Error("ce`"+N.text.charAt(0));}N=new fD5;S=[0];N.dayPeriodIndex=-1;for(var h=0;h<this.patternParts_.length&&!(R&&S[0]>=k.length);h++){if(this.patternParts_[h].count==0){a:{var J=k;var m=S,a=this.patternParts_[h],T=R;if(a.text.match(jZd)!=null){if(a=m[0],
vvC(J,m),m[0]>a){J=!0;break a}}else{if(J.indexOf(a.text,m[0])==m[0]){m[0]+=a.text.length;J=!0;break a}if(T&&a.text.indexOf(J.substring(m[0]))==0){m[0]+=J.length-m[0];J=!0;break a}}J=!1}if(J)continue;return 0}if(this.patternParts_[h].abutStart){a:{m=k;a=S;T=h;var w=a[0],P=0;for(J=T;J<this.patternParts_.length;J++){var B=this.patternParts_[J],F=B.count;if(F===0)break;if(J==T&&(F-=P,P++,F==0)){J=0;break a}var K=J>T&&B.numeric,r=a[0];if(!bUT(this,m,a,B,F,N,!1)||K&&a[0]-r<F)J=T-1,a[0]=w}J-=T}if(J<=0)return 0;
h+=J-1}else if(!bUT(this,k,S,this.patternParts_[h],0,N,R))return 0}a:{k=V;if(E==null)throw Error("de");N.era!=void 0&&N.year!=void 0&&N.era==0&&N.year>0&&(N.year=-(N.year-1));N.year!=void 0&&E.setFullYear(N.year);R=E.getDate();E.setDate(1);N.month!=void 0&&E.setMonth(N.month);N.day!=void 0?E.setDate(N.day):(V=SRl(E.getFullYear(),E.getMonth()),E.setDate(R>V?V:R));typeof E.setHours==="function"&&(N.hours==void 0&&(N.hours=E.getHours()),N.hours<12&&(N.ampm!=void 0&&N.ampm>0?N.hours+=12:N.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(N.dayPeriodName)||["night1","night2"].includes(N.dayPeriodName)&&N.hours>=6)&&(N.hours+=12)),E.setHours(N.hours));typeof E.setMinutes==="function"&&N.minutes!=void 0&&E.setMinutes(N.minutes);typeof E.setSeconds==="function"&&N.seconds!=void 0&&E.setSeconds(N.seconds);typeof E.setMilliseconds==="function"&&N.milliseconds!=void 0&&E.setMilliseconds(N.milliseconds);if(k&&(N.year&&N.year!=E.getFullYear()||N.month&&N.month!=
E.getMonth()||N.day&&N.day!=E.getDate()||N.hours&&N.hours>=24||N.minutes&&N.minutes>=60||N.seconds&&N.seconds>=60||N.milliseconds&&N.milliseconds>=1E3))E=!1;else{N.tzOffset!=void 0&&E.setTime(E.getTime()+(N.tzOffset-E.getTimezoneOffset())*60*1E3);N.ambiguousYear&&(k=new Date,k.setFullYear(k.getFullYear()-80),E.getTime()<k.getTime()&&E.setFullYear(k.getFullYear()+100));if(N.dayOfWeek!=void 0)if(N.day==void 0)N=(7+N.dayOfWeek-E.getDay())%7,N>3&&(N-=7),k=E.getMonth(),E.setDate(E.getDate()+N),E.getMonth()!=
k&&E.setDate(E.getDate()+(N>0?-7:7));else if(N.dayOfWeek!=E.getDay()){E=!1;break a}E=!0}}return E?S[0]:0};
var bUT=function(k,E,S,R,V,N,h){vvC(E,S);if(R.numeric&&V>0&&S[0]+V>E.length)return!1;switch(R.text.charAt(0)){case "G":return dh(E,S,[k.JSC$11411_dateTimeSymbols_.ERAS],function(J){return N.era=J}),!0;
case "M":case "L":return ZUY(k,E,S,V,R,N);case "E":return dh(E,S,[k.JSC$11411_dateTimeSymbols_.WEEKDAYS,k.JSC$11411_dateTimeSymbols_.SHORTWEEKDAYS],function(J){return N.dayOfWeek=J});
case "B":case "b":return V=[],k=[[].concat(k.JSC$11411_dateTimeSymbols_.AMPMS)],V.push("isAm"),V.push("isPm"),E=dh(E,S,k,function(J){return N.dayPeriodIndex=J},h),N.dayPeriodName=V[N.dayPeriodIndex],h?E:!0;
case "a":return E=dh(E,S,[k.JSC$11411_dateTimeSymbols_.AMPMS],function(J){return N.ampm=J},h),h?E:!0;
case "y":return dJT(k,E,S,R,V,N);case "Q":return dh(E,S,[k.JSC$11411_dateTimeSymbols_.QUARTERS,k.JSC$11411_dateTimeSymbols_.SHORTQUARTERS],function(J){N.month=J*3;N.day=1});
case "d":return sD(k,E,S,R,V,function(J){N.day=J}),!0;
case "S":return sZ4(k,E,S,V,N);case "h":case "K":case "H":case "k":return E=sD(k,E,S,R,V,function(J){N.hours=R.text.charAt(0)==="h"&&J===12?0:J},h),h?E:!0;
case "m":return E=sD(k,E,S,R,V,function(J){N.minutes=J},h),h?E:!0;
case "s":return sD(k,E,S,R,V,function(J){N.seconds=J}),!0;
case "z":case "Z":case "v":return lD4(k,E,S,N);default:return!1}},dJT=function(k,E,S,R,V,N){var h=S[0];
V=lG(k,E,S,V);V===null&&(V=lG(k,E,S,0,!0));if(V===null)return!1;V>=0&&S[0]-h==2&&R.count==2?(k=V,E=(new Date).getFullYear()-80,S=E%100,N.ambiguousYear=k==S,k+=Math.floor(E/100)*100+(k<S?100:0),N.year=k):N.year=V;return!0},ZUY=function(k,E,S,R,V,N){return V.numeric&&sD(k,E,S,V,R,function(h){N.month=h-1})?!0:dh(E,S,[k.JSC$11411_dateTimeSymbols_.MONTHS,
k.JSC$11411_dateTimeSymbols_.STANDALONEMONTHS,k.JSC$11411_dateTimeSymbols_.SHORTMONTHS,k.JSC$11411_dateTimeSymbols_.STANDALONESHORTMONTHS],function(h){N.month=h})},sZ4=function(k,E,S,R,V){var N=S[0];
k=lG(k,E,S,R);if(k===null)return!1;S=S[0]-N;V.milliseconds=S<3?k*Math.pow(10,3-S):Math.round(k/Math.pow(10,S-3));return!0},lD4=function(k,E,S,R){E.indexOf("GMT",S[0])==S[0]&&(S[0]+=3);
if(S[0]>=E.length)return R.tzOffset=0,!0;var V=S[0],N=lG(k,E,S,0,!0);if(N===null)return!1;if(S[0]<E.length&&E.charAt(S[0])==":"){var h=N*60;S[0]++;N=lG(k,E,S,0);if(N===null)return!1;h+=N}else h=N,h=h<24&&S[0]-V<=3?h*60:h%100+h/100*60;R.tzOffset=-h;return!0},sD=function(k,E,S,R,V,N,h){h=h||!1;
var J=S[0];k=lG(k,E,S,V);if(k===null)return!1;if(h&&S[0]-J<R.count){if(S[0]<E.length)return!1;k*=Math.pow(10,R.count-(S[0]-J))}N(k);return!0},dh=function(k,E,S,R,V){V=V||!1;
for(var N,h=0;h<S.length;h++){N=E;for(var J=S[h],m=V,a=0,T=null,w=k.substring(N[0]).toLowerCase(),P=0;P<J.length;P++){var B=J[P].toLowerCase();if(m&&B.indexOf(w)==0){a=w.length;T=P;break}J[P].length>a&&w.indexOf(B)==0&&(a=J[P].length,T=P)}T!==null&&(N[0]+=a);N=T;if(N!==null)return R(N),!0}return!1},vvC=function(k,E){(k=k.substring(E[0]).match(DJ5))&&(E[0]+=k[0].length)},lG=function(k,E,S,R,V){E=R>0?E.substring(0,S[0]+R):E;
V=V||!1;if(k.JSC$11411_dateTimeSymbols_.ZERODIGIT){R=[];for(var N=S[0];N<E.length;N++){var h=E.charCodeAt(N)-k.JSC$11411_dateTimeSymbols_.ZERODIGIT;R.push(0<=h&&h<=9?String.fromCharCode(h+48):E.charAt(N))}E=R.join("")}else E=E.substring(S[0]);k=E.match(new RegExp("^"+(V?"[+-]?":"")+"\\d+"));if(!k)return null;S[0]+=k[0].length;return parseInt(k[0],10)},fD5=function(){};
fD5.prototype.ambiguousYear=!1;var MQ5;
MQ5={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 q3z={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}"]};
q3z={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 z82=function(){var k={type:"unit",style:"narrow"};this.listType_=k&&k.type?k.type:"conjunction";this.listStyle_=k&&k.style?k.style:"long";this.listSymbols_=q3z;k=0;switch(this.listStyle_){case "short":k=1;break;case "narrow":k=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[k];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[k];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[k];this.listEndPattern_=
this.listSymbols_.AND_END[k];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[k];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[k];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[k];this.listEndPattern_=this.listSymbols_.OR_END[k];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[k],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[k],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[k],this.listEndPattern_=this.listSymbols_.UNIT_END[k]}};
z82.prototype.format=function(k){return QZ8(this,k)};
var QZ8=function(k,E){var S=E.length;switch(S){case 0:return"";case 1:return String(E[0]);case 2:return k.listTwoPattern_.replace("{0}",String(E[0])).replace("{1}",String(E[1]))}for(var R=k.listStartPattern_.replace("{0}",String(E[0])).replace("{1}",String(E[1])),V=2;V<S-1;++V)R=k.listMiddlePattern_.replace("{0}",R).replace("{1}",String(E[V]));return k.listEndPattern_.replace("{0}",R).replace("{1}",String(E[S-1]))};var OU8={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"},GZ4=OU8,C_C=OU8;C_C=GZ4=OU8;var EhA,M7,zz,ECC,q7,kc8;
_.r8=function(k,E,S,R){var V;if(V=E){a:if(E&&E.length===3){for(V=0;V<3;V++){var N=E[V];if(N<"A"||N>"Z"&&N<"a"||N>"z"){V=!1;break a}}V=!0}else V=!1;V=!V}if(V)throw new TypeError("ee");this.intlCurrencyCode_=E?E.toUpperCase():null;this.currencyStyle_=S||0;this.overrideNumberFormatSymbols_=R||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_=M7(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof k==="number")switch(k){case 1:q7(this,M7(this).DECIMAL_PATTERN);break;case 2:q7(this,M7(this).SCIENTIFIC_PATTERN);break;case 3:q7(this,M7(this).PERCENT_PATTERN);break;case 4:k=M7(this).CURRENCY_PATTERN;E=["0"];if(S=
fF[zz(this)]){S=S[0]&7;if(S>0)for(E.push("."),R=0;R<S;R++)E.push("0");k=k.replace(/0.00/g,E.join(""))}q7(this,k);break;case 5:kc8(this,1);break;case 6:kc8(this,2);break;default:throw Error("he");}else q7(this,k)};
EhA=!1;M7=function(k){return k.overrideNumberFormatSymbols_||(EhA?C_C:GZ4)};
zz=function(k){return k.intlCurrencyCode_||M7(k).DEF_CURRENCY_CODE};
ECC=function(k,E){if(E>308)throw Error("ge`"+E);k.maximumFractionDigits_=E;return k};
q7=function(k,E){var S=[0];k.positivePrefix_=Sfd(k,E,S);for(var R=S[0],V=-1,N=0,h=0,J=0,m=-1,a=E.length,T=!0;S[0]<a&&T;S[0]++)switch(E.charAt(S[0])){case "#":h>0?J++:N++;m>=0&&V<0&&m++;break;case "0":if(J>0)throw Error("ne`"+E);h++;m>=0&&V<0&&m++;break;case ",":m>0&&k.groupingArray_.push(m);m=0;break;case ".":if(V>=0)throw Error("oe`"+E);V=N+h+J;break;case "E":if(k.useExponentialNotation_)throw Error("pe`"+E);k.useExponentialNotation_=!0;k.minExponentDigits_=0;S[0]+1<a&&E.charAt(S[0]+1)=="+"&&(S[0]++,
k.useSignForPositiveExponent_=!0);for(;S[0]+1<a&&E.charAt(S[0]+1)=="0";)S[0]++,k.minExponentDigits_++;if(N+h<1||k.minExponentDigits_<1)throw Error("qe`"+E);T=!1;break;default:S[0]--,T=!1}h==0&&N>0&&V>=0&&(h=V,h==0&&h++,J=N-h,N=h-1,h=1);if(V<0&&J>0||V>=0&&(V<N||V>N+h)||m==0)throw Error("re`"+E);J=N+h+J;k.maximumFractionDigits_=V>=0?J-V:0;V>=0&&(k.minimumFractionDigits_=N+h-V,k.minimumFractionDigits_<0&&(k.minimumFractionDigits_=0));k.minimumIntegerDigits_=(V>=0?V:J)-N;k.useExponentialNotation_&&(k.maximumIntegerDigits_=
N+k.minimumIntegerDigits_,k.maximumFractionDigits_==0&&k.minimumIntegerDigits_==0&&(k.minimumIntegerDigits_=1));k.groupingArray_.push(Math.max(0,m));k.decimalSeparatorAlwaysShown_=V==0||V==J;R=S[0]-R;k.positiveSuffix_=Sfd(k,E,S);S[0]<E.length&&E.charAt(S[0])==";"?(S[0]++,k.multiplier_!=1&&(k.negativePercentSignExpected_=!0),k.negativePrefix_=Sfd(k,E,S),S[0]+=R,k.negativeSuffix_=Sfd(k,E,S)):(k.negativePrefix_+=k.positivePrefix_,k.negativeSuffix_+=k.positiveSuffix_)};
kc8=function(k,E){k.compactStyle_=E;q7(k,M7(k).DECIMAL_PATTERN);k.minimumFractionDigits_=0;ECC(k,2);if(k.minimumFractionDigits_>0)throw Error("fe");k.significantDigits_=2};
_.r8.prototype.parse=function(k,E){E=E||[0];if(this.compactStyle_!==0)throw Error("ie");k=k.replace(/ |\u202f/g,"\u00a0");var S=k.indexOf(this.positivePrefix_,E[0])==E[0],R=k.indexOf(this.negativePrefix_,E[0])==E[0];S&&R&&(this.positivePrefix_.length>this.negativePrefix_.length?R=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(S=!1));S?E[0]+=this.positivePrefix_.length:R&&(E[0]+=this.negativePrefix_.length);if(k.indexOf(M7(this).INFINITY,E[0])==E[0]){E[0]+=M7(this).INFINITY.length;var V=
Infinity}else{V=k;var N=!1,h=!1,J=!1,m=-1,a=1,T=M7(this).DECIMAL_SEP,w=M7(this).GROUP_SEP,P=M7(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");w=w.replace(/\u202f/g,"\u00a0");for(var B="";E[0]<V.length;E[0]++){var F=V.charAt(E[0]),K=Rvz(this,F);if(K>=0&&K<=9)B+=K,J=!0;else if(F==T.charAt(0)){if(N||h)break;B+=".";N=!0}else if(F==w.charAt(0)&&("\u00a0"!=w.charAt(0)||E[0]+1<V.length&&Rvz(this,V.charAt(E[0]+1))>=0)){if(N||h)break}else if(F==P.charAt(0)){if(h)break;B+="E";h=!0;m=E[0]}else if(F==
"+"||F=="-"){if(J&&m!=E[0]-1)break;B+=F}else if(this.multiplier_==1&&F==M7(this).PERCENT.charAt(0)){if(a!=1)break;a=100;if(J){E[0]++;break}}else if(this.multiplier_==1&&F==M7(this).PERMILL.charAt(0)){if(a!=1)break;a=1E3;if(J){E[0]++;break}}else break}this.multiplier_!=1&&(a=this.multiplier_);V=parseFloat(B)/a}if(S){if(k.indexOf(this.positiveSuffix_,E[0])!=E[0])return NaN;E[0]+=this.positiveSuffix_.length}else if(R){if(k.indexOf(this.negativeSuffix_,E[0])!=E[0])return NaN;E[0]+=this.negativeSuffix_.length}return R?
-V:V};
_.r8.prototype.format=function(k){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(k))return M7(this).NAN;var E=[];var S=k;if(this.compactStyle_==0)S=QY;else{S=Math.abs(S);var R=VqA(this,S<=1?0:Ndd(S)).divisorBase;S=VqA(this,R+Ndd(IgC(this,OD(S,-R)).intValue))}k=OD(k,-S.divisorBase);(R=k<0||k==0&&1/k<0)?S.negative_prefix?E.push(S.negative_prefix):(E.push(S.prefix),E.push(this.negativePrefix_)):(E.push(S.prefix),E.push(this.positivePrefix_));if(isFinite(k))if(k*=
R?-1:1,k*=this.multiplier_,this.useExponentialNotation_){var V=k;if(V==0)nhT(this,V,this.minimumIntegerDigits_,E),i58(this,0,E);else{var N=Math.floor(Math.log(V)/Math.log(10)+2E-15);V=OD(V,-N);var h=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(h=N%this.maximumIntegerDigits_,h<0&&(h=this.maximumIntegerDigits_+h),V=OD(V,h),N-=h,h=1):this.minimumIntegerDigits_<1?(N++,V=OD(V,-1)):(N-=this.minimumIntegerDigits_-1,V=OD(V,this.minimumIntegerDigits_-
1));nhT(this,V,h,E);i58(this,N,E)}}else nhT(this,k,this.minimumIntegerDigits_,E);else E.push(M7(this).INFINITY);R?S.negative_suffix?E.push(S.negative_suffix):(isFinite(k)&&E.push(S.suffix),E.push(this.negativeSuffix_)):(isFinite(k)&&E.push(S.suffix),E.push(this.positiveSuffix_));return E.join("")};
var IgC=function(k,E){var S=OD(E,k.maximumFractionDigits_);k.significantDigits_>0&&(S=hvY(S,k.significantDigits_,k.maximumFractionDigits_));S=Math.round(S);if(isFinite(S)){var R=Math.floor(OD(S,-k.maximumFractionDigits_));S=Math.floor(S-OD(R,k.maximumFractionDigits_));if(S<0||S>=OD(1,k.maximumFractionDigits_))R=Math.round(E),S=0}else R=E,S=0;return{intValue:R,fracValue:S}},nhT=function(k,E,S,R){if(k.minimumFractionDigits_>k.maximumFractionDigits_)throw Error("ke");
R||(R=[]);E=IgC(k,E);var V=E.intValue,N=E.fracValue,h=k.minimumFractionDigits_>0||N>0||!1;E=k.minimumFractionDigits_;h&&(E=k.minimumFractionDigits_);for(var J="",m=V;m>1E20;)J="0"+J,m=Math.round(OD(m,-1));J=m+J;var a=M7(k).DECIMAL_SEP;m=M7(k).ZERO_DIGIT.codePointAt(0);var T=J.length,w=0;if(V>0||S>0){for(V=T;V<S;V++)R.push(String.fromCodePoint(m));if(k.groupingArray_.length>=2)for(S=1;S<k.groupingArray_.length;S++)w+=k.groupingArray_[S];S=T-w;if(S>0){V=k.groupingArray_;w=T=0;for(var P,B=M7(k).GROUP_SEP,
F=J.length,K=0;K<F;K++)if(R.push(String.fromCodePoint(m+Number(J.charAt(K)))),F-K>1)if(P=V[w],K<S){var r=S-K;(P===1||P>0&&r%P===1)&&R.push(B)}else w<V.length&&(K===S?w+=1:P===K-S-T+1&&(R.push(B),T+=P,w+=1))}else{S=J;J=k.groupingArray_;V=M7(k).GROUP_SEP;P=S.length;B=[];for(T=J.length-1;T>=0&&P>0;T--){w=J[T];for(F=0;F<w&&P-F-1>=0;F++)B.push(String.fromCodePoint(m+Number(S.charAt(P-F-1))));P-=w;P>0&&B.push(V)}R.push.apply(R,B.reverse())}}else h||R.push(String.fromCodePoint(m));(k.decimalSeparatorAlwaysShown_||
h)&&R.push(a);N=String(N);h=N.split("e+");h.length==2&&(N=String(hvY(parseFloat(h[0]),k.significantDigits_,1)),N=N.replace(".",""),N+=(0,_.bgp)("0",parseInt(h[1],10)-N.length+1));k.maximumFractionDigits_+1>N.length&&(N="1"+(0,_.bgp)("0",k.maximumFractionDigits_-N.length)+N);for(k=N.length;N.charAt(k-1)=="0"&&k>E+1;)k--;for(E=1;E<k;E++)R.push(String.fromCodePoint(m+Number(N.charAt(E))))},i58=function(k,E,S){S.push(M7(k).EXP_SYMBOL);
E<0?(E=-E,S.push(M7(k).MINUS_SIGN)):k.useSignForPositiveExponent_&&S.push(M7(k).PLUS_SIGN);E=""+E;for(var R=M7(k).ZERO_DIGIT,V=E.length;V<k.minExponentDigits_;V++)S.push(R);k=R.codePointAt(0)-J0C;for(R=0;R<E.length;R++)S.push(String.fromCodePoint(k+E.codePointAt(R)))},Rvz=function(k,E){E=E.codePointAt(0);
if(48<=E&&E<58)return E-48;k=M7(k).ZERO_DIGIT.codePointAt(0);return k<=E&&E<k+10?E-k:-1},J0C="0".codePointAt(0),Sfd=function(k,E,S){for(var R="",V=!1,N=E.length;S[0]<N;S[0]++){var h=E.charAt(S[0]);
if(h=="'")S[0]+1<N&&E.charAt(S[0]+1)=="'"?(S[0]++,R+="'"):V=!V;else if(V)R+=h;else switch(h){case "#":case "0":case ",":case ".":case ";":return R;case "\u00a4":if(S[0]+1<N&&E.charAt(S[0]+1)=="\u00a4")S[0]++,R+=zz(k);else switch(k.currencyStyle_){case 0:h=zz(k);R+=h in fF?fF[h][1]:h;break;case 2:h=zz(k);var J=fF[h];R+=J?h==J[1]?h:h+" "+J[1]:h;break;case 1:h=zz(k),R+=h in fF?fF[h][2]:h}break;case "%":if(!k.negativePercentSignExpected_&&k.multiplier_!=1)throw Error("le");if(k.negativePercentSignExpected_&&
k.multiplier_!=100)throw Error("me");k.multiplier_=100;k.negativePercentSignExpected_=!1;R+=M7(k).PERCENT;break;case "\u2030":if(!k.negativePercentSignExpected_&&k.multiplier_!=1)throw Error("le");if(k.negativePercentSignExpected_&&k.multiplier_!=1E3)throw Error("me");k.multiplier_=1E3;k.negativePercentSignExpected_=!1;R+=M7(k).PERMILL;break;default:R+=h}}return R},QY={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},VqA=function(k,E){k=k.compactStyle_==1?$x.COMPACT_DECIMAL_SHORT_PATTERN:$x.COMPACT_DECIMAL_LONG_PATTERN;k==null&&(k=$x.COMPACT_DECIMAL_SHORT_PATTERN);if(E<3)return QY;E=Math.min(14,E);var S=k[OD(1,E)];for(--E;!S&&E>=3;)S=k[OD(1,E)],E--;if(!S)return QY;S=S.other;var R=k="",V=S.indexOf(";");V>=0&&(S=S.substring(0,V),V=S.substring(V+1))&&(R=/([^0]*)(0+)(.*)/.exec(V),k=R[1],R=R[3]);return S&&S!="0"?(S=/([^0]*)(0+)(.*)/.exec(S))?{divisorBase:E+
1-(S[2].length-1),negative_prefix:k,negative_suffix:R,prefix:S[1],suffix:S[3]}:QY:QY},Ndd=function(k){if(!isFinite(k))return k>0?k:0;
for(var E=0;(k/=10)>=1;)E++;return E},OD=function(k,E){if(!k||!isFinite(k)||E==0)return k;
k=String(k).split("e");return parseFloat(k[0]+"e"+(parseInt(k[1]||0,10)+E))},c0Y=function(k,E){return k&&isFinite(k)?OD(Math.round(OD(k,E)),-E):k},hvY=function(k,E,S){if(!k)return k;
E=E-Ndd(k)-1;return E<-S?c0Y(k,-S):c0Y(k,E)};var mBY=function(k){return k%10==1&&k%100!=11?"one":k%10==2&&k%100!=12?"two":k%10==3&&k%100!=13?"few":"other"},evj=mBY;
evj=mBY;var ag2=function(k,E){var S=k|0;if(void 0===E){E=Math;var R=E.min,V=k+"",N=V.indexOf(".");E=R.call(E,N===-1?0:V.length-N-1,3)}R=Math.pow(10,E);k={v:E,f:(k*R|0)%R};return S==1&&k.v==0?"one":"other"},pr=ag2;
pr=ag2;var PK2=function(k){this.JSC$11454_pattern_=k;this.parsedPattern_=this.literals_=this.initialLiterals_=null;k=GZ4;var E=$x;if(tqj!==k||Tdd!==E)tqj=k,Tdd=E,wpC=new _.r8(1);this.numberFormatter_=wpC},tqj=null,Tdd=null,wpC=null,Bdj=RegExp("'([{}#].*?)'","g"),YfC=RegExp("''","g");
PK2.prototype.format=function(k){if(this.JSC$11454_pattern_){this.initialLiterals_=[];var E=Wjz(this,this.JSC$11454_pattern_);this.parsedPattern_=Fjd(this,E);this.JSC$11454_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.d1(this.initialLiterals_),E=[],y08(this,this.parsedPattern_,k,!1,E),k=E.join("");this.literals_.length>0;)k=k.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else k="";return k};
var y08=function(k,E,S,R,V){for(var N=0;N<E.length;N++)switch(E[N].type){case 4:V.push(E[N].value);break;case 3:var h=E[N].value;var J=k,m=V,a=S[h];a===void 0?m.push("Undefined parameter - "+h):(J.literals_.push(a),m.push(J.buildPlaceholder_(J.literals_)));break;case 2:h=E[N].value;J=k;m=S;a=R;var T=V,w=h.argumentIndex;m[w]===void 0?T.push("Undefined parameter - "+w):(w=h[m[w]],w===void 0&&(w=h.other),y08(J,w,m,a,T));break;case 0:h=E[N].value;ohY(k,h,S,pr,R,V);break;case 1:h=E[N].value,ohY(k,h,S,
evj,R,V)}},ohY=function(k,E,S,R,V,N){var h=E.argumentIndex,J=E.argumentOffset,m=+S[h];
isNaN(m)?N.push("Undefined or invalid parameter - "+h):(J=m-J,h=E[S[h]],h===void 0&&(R=R(Math.abs(J)),h=E[R],h===void 0&&(h=E.other)),E=[],y08(k,h,S,V,E),S=E.join(""),V?N.push(S):(k=k.numberFormatter_.format(J),N.push(S.replace(/#/g,k))))},Wjz=function(k,E){var S=k.initialLiterals_,R=k.buildPlaceholder_.bind(k);
E=E.replace(YfC,function(){S.push("'");return R(S)});
return E=E.replace(Bdj,function(V,N){S.push(N);return R(S)})},Xp8=function(k){var E=0,S=[],R=[],V=/[{}]/g;
V.lastIndex=0;for(var N;N=V.exec(k);){var h=N.index;N[0]=="}"?(S.pop(),S.length==0&&(N={type:1},N.value=k.substring(E,h),R.push(N),E=h+1)):(S.length==0&&(E=k.substring(E,h),E!=""&&R.push({type:0,value:E}),E=h+1),S.push("{"))}k=k.substring(E);k!=""&&R.push({type:0,value:k});return R},ghz=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,UBY=/^\s*(\w+)\s*,\s*selectordinal\s*,/,H54=/^\s*(\w+)\s*,\s*select\s*,/,Fjd=function(k,E){var S=[];
E=Xp8(E);for(var R=0;R<E.length;R++){var V={};if(0==E[R].type)V.type=4,V.value=E[R].value;else if(1==E[R].type){var N=E[R].value;switch(ghz.test(N)?0:UBY.test(N)?1:H54.test(N)?2:/^\s*\w+\s*/.test(N)?3:5){case 2:V.type=2;V.value=Kjp(k,E[R].value);break;case 0:V.type=0;V.value=ppd(k,E[R].value);break;case 1:V.type=1;V.value=A0d(k,E[R].value);break;case 3:V.type=3,V.value=E[R].value}}S.push(V)}return S},Kjp=function(k,E){var S="";
E=E.replace(H54,function(J,m){S=m;return""});
var R={};R.argumentIndex=S;E=Xp8(E);for(var V=0;V<E.length;){var N=E[V].value;V++;var h=void 0;1==E[V].type&&(h=Fjd(k,E[V].value));R[N.replace(/\s/g,"")]=h;V++}return R},ppd=function(k,E){var S="",R=0;
E=E.replace(ghz,function(m,a,T){S=a;T&&(R=parseInt(T,10));return""});
var V={};V.argumentIndex=S;V.argumentOffset=R;E=Xp8(E);for(var N=0;N<E.length;){var h=E[N].value;N++;var J=void 0;1==E[N].type&&(J=Fjd(k,E[N].value));V[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=J;N++}return V},A0d=function(k,E){var S="";
E=E.replace(UBY,function(J,m){S=m;return""});
var R={};R.argumentIndex=S;R.argumentOffset=0;E=Xp8(E);for(var V=0;V<E.length;){var N=E[V].value;V++;var h=void 0;1==E[V].type&&(h=Fjd(k,E[V].value));R[N.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=h;V++}return R};
PK2.prototype.buildPlaceholder_=function(k){return"\ufddf_"+(k.length-1).toString(10)+"_"};var j8b=function(){var k={style:1},E=r02;this.style_=(k==null?void 0:k.style)||0;this.durationSymbols_=E||MQ5},uXY=function(k,E){switch(E){default:case "years":return k.durationSymbols_.YEAR;
case "months":return k.durationSymbols_.MONTH;case "weeks":return k.durationSymbols_.WEEK;case "days":return k.durationSymbols_.DAY;case "hours":return k.durationSymbols_.HOUR;case "minutes":return k.durationSymbols_.MINUTE;case "seconds":return k.durationSymbols_.SECOND}},Gz=function(k,E,S){a:{S=uXY(k,S);
switch(k.style_){case 1:if(S.LONG!=void 0){k=S.LONG;break a}case 2:if(S.NARROW!=void 0){k=S.NARROW;break a}default:k=S.SHORT;break a}k=void 0}return k?(new PK2("{DURATION_VALUE,plural,"+k+"}")).format({DURATION_VALUE:E}):""};
j8b.prototype.format=function(k){var E=[],S=k.years,R=k.months,V=k.weeks,N=k.days,h=k.hours,J=k.minutes;k=k.seconds;S!=null&&E.push(Gz(this,S,"years"));R!=null&&E.push(Gz(this,R,"months"));V!=null&&E.push(Gz(this,V,"weeks"));N!=null&&E.push(Gz(this,N,"days"));h!=null&&E.push(Gz(this,h,"hours"));J!=null&&E.push(Gz(this,J,"minutes"));k!=null&&E.push(Gz(this,k,"seconds"));return(new z82).format(E)};var xB8;
xB8={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 CZm=function(){this.rdtfSymbols_=LjT||xB8;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
CZm.prototype.format=function(k,E){a:{E=jEj(this,E);switch(this.style_){case 2:if(E.NARROW!=void 0){E=E.NARROW;break a}case 1:if(E.SHORT!=void 0){E=E.SHORT;break a}default:E=E.LONG;break a}E=void 0}if(!this.alwaysNumeric_&&E&&E.R&&E.R[""+k])k=E.R[""+k];else if(E){var S=Math.abs(k);k=(new PK2("{N,plural,"+(k>0||k==0&&1/k==Infinity?E.F:E.P)+"}")).format({N:S})}else k="";return k};
var jEj=function(k,E){switch(E){default:case 0:return k.rdtfSymbols_.YEAR;case 1:return k.rdtfSymbols_.QUARTER;case 2:return k.rdtfSymbols_.MONTH;case 3:return k.rdtfSymbols_.WEEK;case 4:return k.rdtfSymbols_.DAY;case 5:return k.rdtfSymbols_.HOUR;case 6:return k.rdtfSymbols_.MINUTE;case 7:return k.rdtfSymbols_.SECOND}};var DBp=function(k,E,S,R,V,N,h,J){this.x0=k;this.y0=E;this.x1=S;this.y1=R;this.x2=V;this.y2=N;this.x3=h;this.y3=J};
DBp.prototype.clone=function(){return new DBp(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
DBp.prototype.equals=function(k){return this.x0==k.x0&&this.y0==k.y0&&this.x1==k.x1&&this.y1==k.y1&&this.x2==k.x2&&this.y2==k.y2&&this.x3==k.x3&&this.y3==k.y3};
var $BC=function(k,E){if(E==0)return k.x0;if(E==1)return k.x3;var S=w9(k.x0,k.x1,E),R=w9(k.x1,k.x2,E);k=w9(k.x2,k.x3,E);S=w9(S,R,E);R=w9(R,k,E);return w9(S,R,E)},fgz=function(k,E){var S=(E-k.x0)/(k.x3-k.x0);
if(S<=0)return 0;if(S>=1)return 1;for(var R=0,V=1,N=0,h=0;h<8;h++){N=$BC(k,S);var J=($BC(k,S+1E-6)-N)/1E-6;if(Math.abs(N-E)<1E-6)return S;if(Math.abs(J)<1E-6)break;else N<E?R=S:V=S,S-=(N-E)/J}for(h=0;Math.abs(N-E)>1E-6&&h<8;h++)N<E?(R=S,S=(S+V)/2):(V=S,S=(S+R)/2),N=$BC(k,S);return S};var CF=function(){_.wG.call(this);this.JSC$11475_name_="closure_frame"+vhY++;this.iframesForDisposal_=[];b5j[this.JSC$11475_name_]=this},kD;
_.dy(CF,_.wG);var b5j={},vhY=0,Z5C=function(k,E){var S=rT(k);lJ2(E,function(R,V){Array.isArray(R)||(R=[R]);_.Sn(R,function(N){N=S.JSC$9323_createDom("INPUT",{type:"hidden",name:V,value:N});k.appendChild(N)})})};
_.I=CF.prototype;_.I.JSC$11477_form_=null;_.I.JSC$11477_iframe_=null;_.I.iframeName_=null;_.I.nextIframeId_=0;_.I.JSC$11477_active_=!1;_.I.complete_=!1;_.I.success_=!1;_.I.lastContent_=null;_.I.JSC$11477_lastErrorCode_=0;_.I.iframeDisposalTimer_=null;
_.I.send=function(k,E,S,R){if(this.JSC$11477_active_)throw Error("se");k=new _.DZ(k);E=E?E.toUpperCase():"GET";S&&_.VE(k);kD||(kD=_.WN("FORM"),kD.acceptCharset="utf-8",S=kD.style,S.position="absolute",S.visibility="hidden",S.top=S.left="-10px",S.width=S.height="10px",S.overflow="hidden",document.body.appendChild(kD));this.JSC$11477_form_=kD;E=="GET"&&Z5C(this.JSC$11477_form_,k.JSC$10027_queryData_);R&&Z5C(this.JSC$11477_form_,R);S=k.toString();S=d3t(S);R=this.JSC$11477_form_;S=_.lu(Lg(S));S!==void 0&&
(R.action=S);this.JSC$11477_form_.method=E;dB8(this);sEz(this)};
_.I.abort=function(k){if(this.JSC$11477_active_){var E=E9(this);if(E)if(aL(E))E.removeAllListeners(void 0);else if(E=tS(E)){var S=0,R;for(R in E.listeners)for(var V=E.listeners[R].concat(),N=0;N<V.length;++N)av(V[N])&&++S}this.success_=this.JSC$11477_active_=this.complete_=!1;this.JSC$11477_lastErrorCode_=k||7;this.dispatchEvent("abort");lgY(this)}};
_.I.disposeInternal=function(){this.JSC$11477_active_&&this.abort();CF.superClass_.disposeInternal.call(this);this.JSC$11477_iframe_&&MqA(this);sEz(this);this.JSC$11477_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11477_form_=null;this.JSC$11477_lastErrorCode_=0;delete b5j[this.JSC$11475_name_]};
_.I.isComplete=function(){return this.complete_};
_.I.isSuccess=function(){return this.success_};
_.I.isActive=function(){return this.JSC$11477_active_};
_.I.getResponseText=function(){return this.lastContent_};
_.I.getLastError=function(){return _.FN4(this.JSC$11477_lastErrorCode_)};
var dB8=function(k){k.JSC$11477_active_=!0;k.complete_=!1;k.JSC$11477_lastErrorCode_=0;k.iframeName_=k.JSC$11475_name_+"_"+(k.nextIframeId_++).toString(36);k.JSC$11477_iframe_=rT(k.JSC$11477_form_).JSC$9323_createDom("IFRAME",{name:k.iframeName_,id:k.iframeName_});var E=k.JSC$11477_iframe_.style;E.visibility="hidden";E.width=E.height="10px";E.display="none";_.Qb?E.marginTop=E.marginLeft="-10px":(E.position="absolute",E.top=E.left="-10px");rT(k.JSC$11477_form_).JSC$9321_document_.body.appendChild(k.JSC$11477_iframe_);
E=k.iframeName_+"_inner";var S=iOC(k.JSC$11477_iframe_);if(document.baseURI){var R=CU(E);R='<head><base href="'+CU(document.baseURI)+'"></head><body><iframe id="'+R+'" name="'+R+'"></iframe>';R=zB(R)}else R=CU(E),R=zB('<body><iframe id="'+R+'" name="'+R+'"></iframe>');S.write(OX(R));_.wX(S.getElementById(E),"load",k.onIframeLoaded_,!1,k);R=Hy("TEXTAREA",k.JSC$11477_form_);for(var V=0,N=R.length;V<N;V++){var h=R[V].value;aBd(R[V])!=h&&(_.HN(R[V],h),R[V].value=h)}R=S.importNode(k.JSC$11477_form_,!0);
R.target=E;R.action=k.JSC$11477_form_.action;S.body.appendChild(R);V=Hy("SELECT",k.JSC$11477_form_);N=Hy("SELECT",R);h=0;for(var J=V.length;h<J;h++)for(var m=Hy("OPTION",V[h]),a=Hy("OPTION",N[h]),T=0,w=m.length;T<w;T++)a[T].selected=m[T].selected;V=Hy("INPUT",k.JSC$11477_form_);N=Hy("INPUT",R);h=0;for(J=V.length;h<J;h++)if(V[h].type=="file"&&V[h].value!=N[h].value){k.JSC$11477_form_.target=E;R=k.JSC$11477_form_;break}try{k.errorHandled_=!1,R.submit(),S.close(),_.ze&&setTimeout(k.testForFirefoxSilentError_.bind(k),
250)}catch(P){_.TA(S.getElementById(E),"load",k.onIframeLoaded_,!1,k),S.close(),S8(k,2)}};
CF.prototype.onIframeLoaded_=function(){_.TA(E9(this),"load",this.onIframeLoaded_,!1,this);try{var k=this.JSC$11477_iframe_?iOC(E9(this)):null;this.complete_=!0;this.JSC$11477_active_=!1;try{var E=k.body;this.lastContent_=E.textContent||E.innerText}catch(V){var S=1}var R;S||typeof this.errorChecker_!="function"||(R=this.errorChecker_(k))&&(S=4);S?S8(this,S):(this.success_=!0,this.JSC$11477_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),lgY(this))}catch(V){S8(this,1)}};
var S8=function(k,E){k.errorHandled_||(k.success_=!1,k.JSC$11477_active_=!1,k.complete_=!0,k.JSC$11477_lastErrorCode_=E,k.dispatchEvent("complete"),k.dispatchEvent("error"),lgY(k),k.errorHandled_=!0)},lgY=function(k){MqA(k);
sEz(k);k.JSC$11477_form_=null;k.dispatchEvent("ready")},MqA=function(k){var E=k.JSC$11477_iframe_;
E&&(E.onreadystatechange=null,E.onload=null,E.onerror=null,k.iframesForDisposal_.push(E));k.iframeDisposalTimer_&&(clearTimeout(k.iframeDisposalTimer_),k.iframeDisposalTimer_=null);_.ze?k.iframeDisposalTimer_=setTimeout(k.disposeIframes_.bind(k),2E3):k.disposeIframes_();k.JSC$11477_iframe_=null;k.iframeName_=null};
CF.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var k=this.iframesForDisposal_.pop();_.Ua(k)}};
var sEz=function(k){k.JSC$11477_form_&&k.JSC$11477_form_==kD&&_.of(k.JSC$11477_form_)},E9=function(k){return k.JSC$11477_iframe_?iOC(k.JSC$11477_iframe_).getElementById(k.iframeName_+"_inner"):null};
CF.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11477_active_){var k=this.JSC$11477_iframe_?iOC(E9(this)):null;k&&!jhi(k,"documentUri")?(_.TA(E9(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?S8(this,3):S8(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Ro=function(k){return k=="\r"||k=="\n"||k==" "||k=="\t"};var qfd;_.V7=function(k){this.errorMessage_=null;this.result_=[];this.JSC$11479_buffer_="";this.stack_=[];this.JSC$11479_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!k||!k.deliverMessageAsRawString)};
qfd={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};_.V7.prototype.isInputValid=function(){return this.streamState_!=3};
_.V7.prototype.done=function(){return this.streamState_===2};
var Nl=function(k,E,S){k.streamState_=3;k.errorMessage_="The stream is broken @"+k.JSC$11479_pos_+"/"+S+". With input:\n"+E;throw Error(k.errorMessage_);};
_.V7.prototype.acceptsBinaryInput=function(){return!1};
_.V7.prototype.parse=function(k){function E(){for(;P<k.length;)if(_.Ro(k[P]))P++,N.JSC$11479_pos_++;else break;return P<a}
function S(){for(var F;;){F=k[P++];if(!F)break;N.JSC$11479_pos_++;switch(N.state_){case m.INIT:F==="{"?N.state_=m.OBJECT_OPEN:F==="["?N.state_=m.ARRAY_OPEN:_.Ro(F)||Nl(N,k,P);continue;case m.KEY_START:case m.OBJECT_OPEN:if(_.Ro(F))continue;if(N.state_===m.KEY_START)h.push(m.KEY_END);else if(F==="}"){V("{}");N.state_=R();continue}else h.push(m.OBJECT_END);F==='"'?N.state_=m.STRING:Nl(N,k,P);continue;case m.KEY_END:case m.OBJECT_END:if(_.Ro(F))continue;F===":"?(N.state_===m.OBJECT_END&&(h.push(m.OBJECT_END),
N.depth_++),N.state_=m.VALUE):F==="}"?(N.depth_--,V(),N.state_=R()):F===","?(N.state_===m.OBJECT_END&&h.push(m.OBJECT_END),N.state_=m.KEY_START):Nl(N,k,P);continue;case m.ARRAY_OPEN:case m.VALUE:if(_.Ro(F))continue;if(N.state_===m.ARRAY_OPEN)if(N.depth_++,N.state_=m.VALUE,F==="]"){N.depth_--;if(N.depth_===0){N.state_=m.ARRAY_END;return}V("[]");N.state_=R();continue}else h.push(m.ARRAY_END);F==='"'?N.state_=m.STRING:F==="{"?N.state_=m.OBJECT_OPEN:F==="["?N.state_=m.ARRAY_OPEN:F==="t"?N.state_=m.TRUE1:
F==="f"?N.state_=m.FALSE1:F==="n"?N.state_=m.NULL1:F!=="-"&&("0123456789".indexOf(F)!==-1?N.state_=m.NUM_DIGIT:Nl(N,k,P));continue;case m.ARRAY_END:if(F===",")h.push(m.ARRAY_END),N.state_=m.VALUE,N.depth_===1&&(w=P);else if(F==="]"){N.depth_--;if(N.depth_===0)return;V();N.state_=R()}else if(_.Ro(F))continue;else Nl(N,k,P);continue;case m.STRING:var K=P;a:for(;;){for(;N.unicodeCount_>0;)if(F=k[P++],N.unicodeCount_===4?N.unicodeCount_=0:N.unicodeCount_++,!F)break a;if(F==='"'&&!N.slashed_){N.state_=
R();break}if(F==="\\"&&!N.slashed_&&(N.slashed_=!0,F=k[P++],!F))break;if(N.slashed_)if(N.slashed_=!1,F==="u"&&(N.unicodeCount_=1),F=k[P++])continue;else break;J.lastIndex=P;F=J.exec(k);if(!F){P=k.length+1;break}P=F.index+1;F=k[F.index];if(!F)break}N.JSC$11479_pos_+=P-K;continue;case m.TRUE1:if(!F)continue;F==="r"?N.state_=m.TRUE2:Nl(N,k,P);continue;case m.TRUE2:if(!F)continue;F==="u"?N.state_=m.TRUE3:Nl(N,k,P);continue;case m.TRUE3:if(!F)continue;F==="e"?N.state_=R():Nl(N,k,P);continue;case m.FALSE1:if(!F)continue;
F==="a"?N.state_=m.FALSE2:Nl(N,k,P);continue;case m.FALSE2:if(!F)continue;F==="l"?N.state_=m.FALSE3:Nl(N,k,P);continue;case m.FALSE3:if(!F)continue;F==="s"?N.state_=m.FALSE4:Nl(N,k,P);continue;case m.FALSE4:if(!F)continue;F==="e"?N.state_=R():Nl(N,k,P);continue;case m.NULL1:if(!F)continue;F==="u"?N.state_=m.NULL2:Nl(N,k,P);continue;case m.NULL2:if(!F)continue;F==="l"?N.state_=m.NULL3:Nl(N,k,P);continue;case m.NULL3:if(!F)continue;F==="l"?N.state_=R():Nl(N,k,P);continue;case m.NUM_DECIMAL_POINT:F===
"."?N.state_=m.NUM_DIGIT:Nl(N,k,P);continue;case m.NUM_DIGIT:if("0123456789.eE+-".indexOf(F)!==-1)continue;else P--,N.JSC$11479_pos_--,N.state_=R();continue;default:Nl(N,k,P)}}}
function R(){var F=h.pop();return F!=null?F:m.VALUE}
function V(F){N.depth_>1||(F||(F=w===-1?N.JSC$11479_buffer_+k.substring(T,P):k.substring(w,P)),N.deliverMessageAsRawString_?N.result_.push(F):N.result_.push(JSON.parse(F)),w=P)}
for(var N=this,h=N.stack_,J=N.stringInputPattern_,m=qfd,a=k.length,T=0,w=-1,P=0;P<a;)switch(N.streamState_){case 3:return Nl(N,k,P),null;case 2:return E()&&Nl(N,k,P),null;case 0:if(E()){var B=k[P++];N.JSC$11479_pos_++;if(B==="["){N.streamState_=1;T=P;N.state_=m.ARRAY_OPEN;continue}else Nl(N,k,P)}return null;case 1:return S(),N.depth_===0&&N.state_==m.ARRAY_END?(N.streamState_=2,N.JSC$11479_buffer_=k.substring(P)):N.JSC$11479_buffer_=w===-1?N.JSC$11479_buffer_+k.substring(T):k.substring(w),N.result_.length>
0?(B=N.result_,N.result_=[],B):null}return null};_.dy(_.Wk,Dn);Fn.prototype.getValue=function(){return this.JSC$11487_value_};
Fn.prototype.clone=function(){return new Fn(this.JSC$11487_key_,this.JSC$11487_value_)};var Io=function(k){this.nodes_=[];if(k)a:{if(k instanceof Io){var E=k.getKeys();k=k.getValues();if(this.getCount()<=0){for(var S=this.nodes_,R=0;R<E.length;R++)S.push(new Fn(E[R],k[R]));break a}}else E=_.fO.getKeys(k),k=_.fO.getValues(k);for(S=0;S<E.length;S++)this.insert(E[S],k[S])}};
_.I=Io.prototype;_.I.insert=function(k,E){var S=this.nodes_;S.push(new Fn(k,E));k=S.length-1;E=this.nodes_;for(S=E[k];k>0;){var R=k-1>>1;if(E[R].JSC$11487_key_>S.JSC$11487_key_)E[k]=E[R],k=R;else break}E[k]=S};
_.I.remove=function(){var k=this.nodes_,E=k.length,S=k[0];if(!(E<=0)){if(E==1)k.length=0;else{k[0]=k.pop();k=0;E=this.nodes_;for(var R=E.length,V=E[k];k<R>>1;){var N=k*2+1,h=k*2+2;N=h<R&&E[h].JSC$11487_key_<E[N].JSC$11487_key_?h:N;if(E[N].JSC$11487_key_>V.JSC$11487_key_)break;E[k]=E[N];k=N}E[k]=V}return S.getValue()}};
_.I.peek=function(){var k=this.nodes_;if(k.length!=0)return k[0].getValue()};
_.I.getValues=function(){for(var k=this.nodes_,E=[],S=k.length,R=0;R<S;R++)E.push(k[R].getValue());return E};
_.I.getKeys=function(){for(var k=this.nodes_,E=[],S=k.length,R=0;R<S;R++)E.push(k[R].JSC$11487_key_);return E};
_.I.containsValue=function(k){return this.nodes_.some(function(E){return E.getValue()==k})};
_.I.containsKey=function(k){return this.nodes_.some(function(E){return E.JSC$11487_key_==k})};
_.I.clone=function(){return new Io(this)};
_.I.getCount=function(){return this.nodes_.length};
_.I.isEmpty=function(){return this.nodes_.length===0};
_.I.clear=function(){this.nodes_.length=0};_.nS=function(k,E){this.JSC$11493_map_={};this.JSC$11493_keys_=[];this.version_=this.size=0;var S=arguments.length;if(S>1){if(S%2)throw Error("ma");for(var R=0;R<S;R+=2)this.set(arguments[R],arguments[R+1])}else k&&this.addAll(k)};
_.I=_.nS.prototype;_.I.getCount=function(){return this.size};
_.I.getValues=function(){iA(this);for(var k=[],E=0;E<this.JSC$11493_keys_.length;E++)k.push(this.JSC$11493_map_[this.JSC$11493_keys_[E]]);return k};
_.I.getKeys=function(){iA(this);return this.JSC$11493_keys_.concat()};
_.I.containsKey=function(k){return this.has(k)};
_.I.has=function(k){return h$(this.JSC$11493_map_,k)};
_.I.containsValue=function(k){for(var E=0;E<this.JSC$11493_keys_.length;E++){var S=this.JSC$11493_keys_[E];if(h$(this.JSC$11493_map_,S)&&this.JSC$11493_map_[S]==k)return!0}return!1};
_.I.equals=function(k,E){if(this===k)return!0;if(this.size!=k.getCount())return!1;E=E||zv2;iA(this);for(var S,R=0;S=this.JSC$11493_keys_[R];R++)if(!E(this.get(S),k.get(S)))return!1;return!0};
var zv2=function(k,E){return k===E};
_.nS.prototype.isEmpty=function(){return this.size==0};
_.nS.prototype.clear=function(){this.JSC$11493_map_={};this.version_=this.size=this.JSC$11493_keys_.length=0};
_.nS.prototype.remove=function(k){return this.delete(k)};
_.nS.prototype.delete=function(k){return h$(this.JSC$11493_map_,k)?(delete this.JSC$11493_map_[k],--this.size,this.version_++,this.JSC$11493_keys_.length>2*this.size&&iA(this),!0):!1};
var iA=function(k){if(k.size!=k.JSC$11493_keys_.length){for(var E=0,S=0;E<k.JSC$11493_keys_.length;){var R=k.JSC$11493_keys_[E];h$(k.JSC$11493_map_,R)&&(k.JSC$11493_keys_[S++]=R);E++}k.JSC$11493_keys_.length=S}if(k.size!=k.JSC$11493_keys_.length){E={};for(R=S=0;S<k.JSC$11493_keys_.length;){var V=k.JSC$11493_keys_[S];h$(E,V)||(k.JSC$11493_keys_[R++]=V,E[V]=1);S++}k.JSC$11493_keys_.length=R}};
_.I=_.nS.prototype;_.I.get=function(k,E){return h$(this.JSC$11493_map_,k)?this.JSC$11493_map_[k]:E};
_.I.set=function(k,E){h$(this.JSC$11493_map_,k)||(this.size+=1,this.JSC$11493_keys_.push(k),this.version_++);this.JSC$11493_map_[k]=E};
_.I.addAll=function(k){if(k instanceof _.nS)for(var E=k.getKeys(),S=0;S<E.length;S++)this.set(E[S],k.get(E[S]));else for(E in k)this.set(E,k[E])};
_.I.forEach=function(k,E){for(var S=this.getKeys(),R=0;R<S.length;R++){var V=S[R],N=this.get(V);k.call(E,N,V,this)}};
_.I.clone=function(){return new _.nS(this)};
_.I.transpose=function(){for(var k=new _.nS,E=0;E<this.JSC$11493_keys_.length;E++){var S=this.JSC$11493_keys_[E];k.set(this.JSC$11493_map_[S],S)}return k};
_.I.keys=function(){return JXd(this.__iterator__(!0)).toEs6()};
_.I.values=function(){return JXd(this.__iterator__(!1)).toEs6()};
_.I.entries=function(){var k=this;return pM4(this.keys(),function(E){return[E,k.get(E)]})};
_.I.__iterator__=function(k){iA(this);var E=0,S=this.version_,R=this,V=new S7;V.next=function(){if(S!=R.version_)throw Error("te");if(E>=R.JSC$11493_keys_.length)return RK;var N=R.JSC$11493_keys_[E++];return VA(k?N:R.JSC$11493_map_[N])};
return V};
var h$=function(k,E){return Object.prototype.hasOwnProperty.call(k,E)};var O5j=function(){this.JSC$11496_map_=new _.nS;this.JSC$11496_head_=new QE5("");this.JSC$11496_head_.next=this.JSC$11496_head_.prev=this.JSC$11496_head_},GcC=function(k,E){if(E=k.JSC$11496_map_.get(E))E.remove(),k.insert_(E);
return E};
_.I=O5j.prototype;_.I.get=function(k,E){return(k=GcC(this,k))?k.value:E};
_.I.set=function(k,E){var S=GcC(this,k);S?S.value=E:(S=new QE5(k,E),this.JSC$11496_map_.set(k,S),this.insert_(S))};
_.I.peek=function(){return this.JSC$11496_head_.next.value};
_.I.shift=function(){return CKT(this,this.JSC$11496_head_.next)};
_.I.pop=function(){return CKT(this,this.JSC$11496_head_.prev)};
_.I.remove=function(k){return(k=this.JSC$11496_map_.get(k))?(this.removeNode(k),!0):!1};
_.I.removeNode=function(k){k.remove();this.JSC$11496_map_.remove(k.key)};
_.I.getCount=function(){return this.JSC$11496_map_.getCount()};
_.I.isEmpty=function(){return this.JSC$11496_map_.isEmpty()};
_.I.getKeys=function(){return this.map(function(k,E){return E})};
_.I.getValues=function(){return this.map(function(k){return k})};
_.I.contains=function(k){return this.some(function(E){return E==k})};
_.I.containsKey=function(k){return this.JSC$11496_map_.containsKey(k)};
_.I.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11496_head_.prev)};
_.I.forEach=function(k,E){for(var S=this.JSC$11496_head_.next;S!=this.JSC$11496_head_;S=S.next)k.call(E,S.value,S.key,this)};
_.I.map=function(k,E){for(var S=[],R=this.JSC$11496_head_.next;R!=this.JSC$11496_head_;R=R.next)S.push(k.call(E,R.value,R.key,this));return S};
_.I.some=function(k,E){for(var S=this.JSC$11496_head_.next;S!=this.JSC$11496_head_;S=S.next)if(k.call(E,S.value,S.key,this))return!0;return!1};
_.I.every=function(k,E){for(var S=this.JSC$11496_head_.next;S!=this.JSC$11496_head_;S=S.next)if(!k.call(E,S.value,S.key,this))return!1;return!0};
_.I.insert_=function(k){k.next=this.JSC$11496_head_.next;k.prev=this.JSC$11496_head_;this.JSC$11496_head_.next=k;for(k.next.prev=k;this.getCount()>100;)this.removeNode(this.JSC$11496_head_.prev)};
var CKT=function(k,E){k.JSC$11496_head_!=E&&k.removeNode(E);return E.value},QE5=function(k,E){this.key=k;
this.value=E};
QE5.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var kbj=function(){Io.apply(this,arguments)};
_.y(kbj,Io);kbj.prototype.enqueue=function(k,E){this.insert(k,E)};var EzC=function(){var k=Error();k.name="SecurityError";throw k;},UHi=function(){return{get opener(){return null},
get closed(){return!0},get location(){EzC()},get document(){EzC()},postMessage:function(){},
close:function(){},
focus:function(){}}};var wNb={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 Y8b={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 Si8={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(Y8b).join("|");var RBY=function(){function k(J){J.substr(-1)!==";"&&(J+=";");return h(J)}
for(var E=Object.keys(Si8).sort(B9I),S=Object.keys(Y8b).sort(B9I),R=0,V=0;R<S.length;R++)E[V]===S[R]?(S[R]+=";?",V++):S[R]+=";";var N=new RegExp("&(?:"+S.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),h=WZi();return function(J){return String(J).replace(N,k)}}();/*

 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 Vjj={};var NEY=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"),IIY=/[\\&]/,nzY=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),i94=RegExp('[&<>"]',"g"),hBd=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),JQC=function(k){return k.charCodeAt(0)===92?k.charAt(1):RBY(k)},cQ8=function(k){return IIY.test(k)?k.replace(nzY,JQC):k},mh5=function(k){try{var E,S="";
if(typeof V!=="string"){var R=V;var V=";/?:@&=+$,-_.!~*'()#"}typeof R==="undefined"&&(R=!0);var N,h=Vjj[V];if(h)var J=h;else{h=Vjj[V]=[];for(N=0;N<128;N++){var m=String.fromCharCode(N);/^[0-9a-z]$/i.test(m)?h.push(m):h.push("%"+("0"+N.toString(16).toUpperCase()).slice(-2))}for(N=0;N<V.length;N++)h[V.charCodeAt(N)]=V[N];J=h}var a=0;for(E=k.length;a<E;a++){var T=k.charCodeAt(a);if(R&&T===37&&a+2<E&&/^[0-9a-f]{2}$/i.test(k.slice(a+1,a+3)))S+=k.slice(a,a+3),a+=2;else if(T<128)S+=J[T];else if(T>=55296&&
T<=57343){if(T>=55296&&T<=56319&&a+1<E){var w=k.charCodeAt(a+1);if(w>=56320&&w<=57343){S+=encodeURIComponent(k[a]+k[a+1]);a++;continue}}S+="%EF%BF%BD"}else S+=encodeURIComponent(k[a])}return S}catch(P){return k}},eBj=function(k){switch(k){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return k}},J$=function(k,E){return i94.test(k)?E?k.replace(hBd,eBj):k.replace(i94,eBj):k};/*

 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 c7;if(String.fromCodePoint)c7=function(k){try{return String.fromCodePoint(k)}catch(E){if(E instanceof RangeError)return String.fromCharCode(65533);throw E;}};
else{var aIz=String.fromCharCode,tjT=Math.floor;c7=function(){var k=[],E=-1,S=arguments.length;if(!S)return"";for(var R="";++E<S;){var V=Number(arguments[E]);if(!isFinite(V)||V<0||V>1114111||tjT(V)!==V)return String.fromCharCode(65533);if(V<=65535)k.push(V);else{V-=65536;var N=(V>>10)+55296;V=V%1024+56320;k.push(N,V)}if(E+1===S||k.length>16384)R+=aIz.apply(null,k),k.length=0}return R}};var TE2=function(k){this.root=this.current=k;this.entering=!0};
TE2.prototype.next=function(){var k=this.current,E=this.entering;if(k===null)return null;a:switch(k._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 S=!0;break a;default:S=!1}E&&S?k._firstChild?(this.current=k._firstChild,this.entering=!0):this.entering=!1:k===this.root?this.current=null:k._next===null?(this.current=
k._parent,this.entering=!1):(this.current=k._next,this.entering=!0);return{entering:E,node:k}};
var UJ=function(k,E){this._type=k;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=E;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};
UJ.prototype.appendChild=function(k){k.unlink();k._parent=this;this._lastChild?(this._lastChild._next=k,k._prev=this._lastChild):this._firstChild=k;this._lastChild=k};
UJ.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 wZC=function(k,E){E.unlink();E._next=k._next;E._next&&(E._next._prev=E);E._prev=k;k._next=E;E._parent=k._parent;E._next||(E._parent._lastChild=E)};
UJ.prototype.insertBefore=function(k){k.unlink();k._prev=this._prev;k._prev&&(k._prev._next=k);k._next=this;this._prev=k;k._parent=this._parent;k._prev||(k._parent._firstChild=k)};
_.mt.Object.defineProperties(UJ.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(k){this._literal=k}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(k){this._destination=k}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(k){this._title=k}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(k){this._info=k}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(k){this._level=k}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(k){this._listData.type=k}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(k){this._listData.tight=k}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(k){this._listData.start=k}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(k){this._onEnter=k}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(k){this._onExit=k}}});var FZR=/[ \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,
yat={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 PrC=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]/),
BEY=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),Yid=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),WOA=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),FOj=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),yQC=/`+/,ozA=/^`+/,XZ4=/\.\.\./g,gzA=/--+/g,Uhd=/^<([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])?)*)>/,
H9C=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,KOz=/^ *(?:\n *)?/,pZ5=/^[ \t\n\x0b\x0c\x0d]/,AQC=/[ \t\n\x0b\x0c\x0d]+/g,rQT=/^\s/,uwA=/ *$/,xhY=/^ */,LOT=/^ *(?:\n|$)/,j3Y=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Dh4=/^[^\n`\[\]\\!<&*_'"]+/m,mf=function(k){var E=new UJ("text");E._literal=k;return E},e8=function(k){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=k||{}};
e8.prototype.match=function(k){k=k.exec(this.subject.slice(this.pos));if(k===null)return null;this.pos+=k.index+k[0].length;return k[0]};
e8.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var ao=function(k){k.match(KOz);return!0},$h8=function(k,E,S){var R=0;
var V=k.pos;if(E===39||E===34)R++,k.pos++;else for(;k.peek()===E;)R++,k.pos++;if(R===0)R=null;else{var N=V===0?"\n":k.subject.charAt(V-1);var h=k.peek();h=h===-1?"\n":c7(h);var J=rQT.test(h);h=PrC.test(h);var m=rQT.test(N);var a=PrC.test(N);N=!J&&!(h&&!m&&!a);J=!m&&!(a&&!J&&!h);E===95?(m=N&&(!J||a),h=J&&(!N||h)):(m=E===39||E===34?N&&!J:N,h=J);k.pos=V;R={numdelims:R,can_open:m,can_close:h}}if(!R)return!1;V=R.numdelims;h=k.pos;k.pos+=V;h=E===39?"\u2019":E===34?"\u201c":k.subject.slice(h,k.pos);h=mf(h);
S.appendChild(h);k.delimiters={cc:E,numdelims:V,origdelims:V,node:h,previous:k.delimiters,next:null,can_open:R.can_open,can_close:R.can_close};k.delimiters.previous!==null&&(k.delimiters.previous.next=k.delimiters);return!0},fIj=function(k,E){E.previous!==null&&(E.previous.next=E.next);
E.next===null?k.delimiters=E.previous:E.next.previous=E.previous},vz4=function(k,E){var S,R,V=[],N=!1;
V[95]=E;V[42]=E;V[39]=E;V[34]=E;for(S=k.delimiters;S!==null&&S.previous!==E;)S=S.previous;for(;S!==null;){var h=S.cc;if(S.can_close){var J=S.previous;for(R=!1;J!==null&&J!==E&&J!==V[h];){N=(S.can_open||J.can_close)&&(J.origdelims+S.origdelims)%3===0;if(J.cc===S.cc&&J.can_open&&!N){R=!0;break}J=J.previous}var m=S;if(h===42||h===95)if(R){var a=S.numdelims>=2&&J.numdelims>=2?2:1;var T=J.node;var w=S.node;J.numdelims-=a;S.numdelims-=a;T._literal=T._literal.slice(0,T._literal.length-a);w._literal=w._literal.slice(0,
w._literal.length-a);var P=new UJ(a===1?"emph":"strong");for(a=T._next;a&&a!==w;){var B=a._next;a.unlink();P.appendChild(a);a=B}wZC(T,P);a=J;B=S;a.next!==B&&(a.next=B,B.previous=a);J.numdelims===0&&(T.unlink(),fIj(k,J));S.numdelims===0&&(w.unlink(),J=S.next,fIj(k,S),S=J)}else S=S.next;else h===39?(S.node._literal="\u2019",R&&(J.node._literal="\u2018"),S=S.next):h===34&&(S.node._literal="\u201d",R&&(J.node.literal="\u201c"),S=S.next);R||N||(V[h]=m.previous,m.can_open||fIj(k,m))}else S=S.next}for(;k.delimiters!==
null&&k.delimiters!==E;)fIj(k,k.delimiters)},b92=function(k){k=k.match(BEY);
return k===null?null:cQ8(k.substr(1,k.length-2))},Z9d=function(k){var E=k.match(Yid);
if(E===null){E=k.pos;for(var S=0,R;(R=k.peek())!==-1;)if(R===92)k.pos+=1,k.peek()!==-1&&(k.pos+=1);else if(R===40)k.pos+=1,S+=1;else if(R===41)if(S<1)break;else k.pos+=1,--S;else if(pZ5.exec(c7(R))!==null)break;else k.pos+=1;E=k.subject.substr(E,k.pos-E);return mh5(cQ8(E))}return mh5(cQ8(E.substr(1,E.length-2)))},dhz=function(k){k=k.match(j3Y);
return k===null||k.length>1001?0:k.length},s3j=function(k,E,S,R){k.brackets!==null&&(k.brackets.bracketAfter=!0);
k.brackets={node:E,previous:k.brackets,previousDelimiter:k.delimiters,index:S,image:R,active:!0}},lIY=function(k,E){var S;
return(S=k.match(Dh4))?(k.options.smart?E.appendChild(mf(S.replace(XZ4,"\u2026").replace(gzA,function(R){var V=0,N=0;R.length%3===0?N=R.length/3:R.length%2===0?V=R.length/2:R.length%3===2?(V=1,N=(R.length-2)/3):(V=2,N=(R.length-4)/3);R="";var h;for(h=0;h<N;h++)R+="\u2014";for(h=0;h<V;h++)R+="\u2013";return R}))):E.appendChild(mf(S)),!0):!1},Mjz=function(k,E,S){k.subject=E;
k.pos=0;E=k.pos;var R=dhz(k);if(R===0)return 0;var V=k.subject.substr(0,R);if(k.peek()===58)k.pos++;else return k.pos=E,0;ao(k);R=Z9d(k);if(R===null||R.length===0)return k.pos=E,0;var N=k.pos;ao(k);var h=b92(k);h===null&&(h="",k.pos=N);var J=!0;k.match(LOT)===null&&(h===""?J=!1:(h="",k.pos=N,J=k.match(LOT)!==null));if(!J)return k.pos=E,0;V=o$h(V);if(V==="")return k.pos=E,0;S[V]||(S[V]={destination:R,title:h});return k.pos-E},qi4=function(k,E){var S,R=k.peek();
if(R===-1)return!1;switch(R){case 10:k.pos+=1;if((S=E._lastChild)&&S.type==="text"&&S._literal[S._literal.length-1]===" "){var V=S._literal[S._literal.length-2]===" ";S._literal=S._literal.replace(uwA,"");E.appendChild(new UJ(V?"linebreak":"softbreak"))}else E.appendChild(new UJ("softbreak"));k.match(xhY);S=!0;break;case 92:S=k.subject;k.pos+=1;k.peek()===10?(k.pos+=1,S=new UJ("linebreak"),E.appendChild(S)):WOA.test(S.charAt(k.pos))?(E.appendChild(mf(S.charAt(k.pos))),k.pos+=1):E.appendChild(mf("\\"));
S=!0;break;case 96:a:if(S=k.match(ozA),S===null)S=!1;else{V=k.pos;for(var N;(N=k.match(yQC))!==null;)if(N===S){N=new UJ("code");N._literal=k.subject.slice(V,k.pos-S.length).trim().replace(AQC," ");E.appendChild(N);S=!0;break a}k.pos=V;E.appendChild(mf(S));S=!0}break;case 42:case 95:S=$h8(k,R,E);break;case 39:case 34:S=k.options.smart&&$h8(k,R,E);break;case 91:S=k.pos;k.pos+=1;V=mf("[");E.appendChild(V);s3j(k,V,S,!1);S=!0;break;case 33:S=k.pos;k.pos+=1;k.peek()===91?(k.pos+=1,V=mf("!["),E.appendChild(V),
s3j(k,V,S+1,!0)):E.appendChild(mf("!"));S=!0;break;case 93:var h,J=!1,m;k.pos+=1;var a=k.pos;V=k.brackets;if(V===null)E.appendChild(mf("]"));else if(V.active){S=V.image;var T=k.pos;k.peek()===40&&(k.pos++,ao(k)&&(N=Z9d(k))!==null&&ao(k)&&(pZ5.test(k.subject.charAt(k.pos-1))&&(h=b92(k)),1)&&ao(k)&&k.peek()===41?(k.pos+=1,J=!0):k.pos=T);if(!J){var w=k.pos,P=dhz(k);P>2?m=k.subject.slice(w,w+P):V.bracketAfter||(m=k.subject.slice(V.index,a));P===0&&(k.pos=T);m&&(m=k.refmap[o$h(m)])&&(N=m.destination,h=
m.title,J=!0)}if(J){a=new UJ(S?"image":"link");a._destination=N;a._title=h||"";for(N=V.node._next;N;)h=N._next,N.unlink(),a.appendChild(N),N=h;E.appendChild(a);vz4(k,V.previousDelimiter);k.brackets=k.brackets.previous;V.node.unlink();if(!S)for(V=k.brackets;V!==null;)V.image||(V.active=!1),V=V.previous}else k.brackets=k.brackets.previous,k.pos=a,E.appendChild(mf("]"))}else E.appendChild(mf("]")),k.brackets=k.brackets.previous;S=!0;break;case 60:(S=k.match(Uhd))?(S=S.slice(1,S.length-1),V=new UJ("link"),
V._destination=mh5("mailto:"+S),V._title="",V.appendChild(mf(S)),E.appendChild(V),S=!0):(S=k.match(H9C))?(S=S.slice(1,S.length-1),V=new UJ("link"),V._destination=mh5(S),V._title="",V.appendChild(mf(S)),E.appendChild(V),S=!0):S=!1;S||(S=k.match(NEY),S===null?S=!1:(V=new UJ("html_inline"),V._literal=S,E.appendChild(V),S=!0));break;case 38:(S=k.match(FOj))?(E.appendChild(mf(RBY(S))),S=!0):S=!1;break;default:S=lIY(k,E)}S||(k.pos+=1,E.appendChild(mf(c7(R))));return!0};
e8.prototype.parseInlines=function(k){this.subject=k._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;qi4(this,k););k._string_content=null;vz4(this,null)};
e8.prototype.parse=e8.prototype.parseInlines;var zBj=[/./,/^<(?: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")],Q3C=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],O9d=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,GbC=/^[#`~*+_=<>0-9-\|]|\|/,CrY=/[^ \t\f\v\r\n]/,ke4=/^[*+-]/,Eq8=/^(\d{1,9})([.)])/,SB2=/^#{1,6}(?:[ \t]+|$)/,R_A=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,VH4=/^(?:`{3,}|~{3,})(?= *$)/,NyC=/^(?:=+|-+)[ \t]*$/,IO5=/\r\n|\n|\r/,g$I=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,UMj=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,nqA={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(k){return k!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(k,E){for(k=E._firstChild;k;){if(XNh(k)&&k._next){E._listData.tight=!1;break}for(var S=k._firstChild;S;){if(XNh(S)&&(k._next||S._next)){E._listData.tight=!1;break}S=S._next}k=k._next}},
canContain:function(k){return k==="item"},
acceptsLines:!1},block_quote:{continue:function(k){var E=k.currentLine;if(k.indented||od(E,k.nextNonspace)!==62)return 1;t$(k);wB(k,1,!1);ys(od(E,k.offset))&&wB(k,1,!0);return 0},
finalize:function(){},
canContain:function(k){return k!=="item"},
acceptsLines:!1},item:{continue:function(k,E){if(k.blank){if(E._firstChild==null)return 1;t$(k)}else if(k.indent>=E._listData.markerOffset+E._listData.padding)wB(k,E._listData.markerOffset+E._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(k){return k!=="item"&&!HTe(k)},
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(k,E){var S=k.currentLine,R=k.indent;if(E._isFenced){if((R=R<=3&&S.charAt(k.nextNonspace)===E._fenceChar&&S.slice(k.nextNonspace).match(VH4))&&R[0].length>=E._fenceLength)return k.finalize(E,k.lineNumber),2;for(E=E._fenceOffset;E>0&&ys(od(S,k.offset));)wB(k,1,!0),E--}else if(R>=4)wB(k,4,!0);else if(k.blank)t$(k);else return 1;return 0},
finalize:function(k,E){if(E._isFenced){var S=E._string_content,R=S.indexOf("\n");k=S.slice(0,R);S=S.slice(R+1);E.info=cQ8(k.trim());E._literal=S}else E._literal=E._string_content.replace(/(\n *)+$/,"\n");E._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(k,E){return!k.blank||E._htmlBlockType!==6&&E._htmlBlockType!==7?0:1},
finalize:function(k,E){E._literal=E._string_content.replace(/(\n *)+$/,"");E._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(k){return k.blank?1:0},
finalize:function(k,E){for(var S,R=!1;od(E._string_content,0)===91&&(S=Mjz(k.inlineParser,E._string_content,k.refmap));)E._string_content=E._string_content.slice(S),R=!0;R&&!CrY.test(E._string_content)&&E.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(k){return Xn(k.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(k){return k=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(k,E){if(!E._rowIsDelimiter){k=E._isHeader?"th":"td";for(var S=E._parent._tableColumns,R=E._string_content,V=0,N="",h,J=E._sourcepos[0][0];V<R.length;){switch(R[V]){case "|":h&&(h._string_content=N.trim(),N="",h=null,S--,S<=0&&(V=R.length));break;default:if(!h){h=new UJ(k,[[J,V],[J,V]]);var m=E._parent._columnAlignment,a=E._parent._tableColumns-S;m&&a<=m.length&&a>=0&&(h._alignment=m[a]);E.appendChild(h)}N+=R[V];h._sourcepos[1][1]=V}V++}h&&(h._string_content=N.trim());E._string_content=
""}},
canContain:function(k){return k!=="row"},
acceptsLines:!1}},imY=[function(k){if(k.indented||od(k.currentLine,k.nextNonspace)!==62)return 0;t$(k);wB(k,1,!1);ys(od(k.currentLine,k.offset))&&wB(k,1,!0);P7(k);k.addChild("block_quote",k.nextNonspace);return 1},
function(k){var E;if(!k.indented&&(E=k.currentLine.slice(k.nextNonspace).match(SB2))){t$(k);wB(k,E[0].length,!1);P7(k);var S=k.addChild("heading",k.nextNonspace);S.level=E[0].trim().length;S._string_content=k.currentLine.slice(k.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");wB(k,k.currentLine.length-k.offset);return 2}return 0},
function(k){var E;if(!k.indented&&(E=k.currentLine.slice(k.nextNonspace).match(R_A))){var S=E[0].length;P7(k);var R=k.addChild("code_block",k.nextNonspace);R._isFenced=!0;R._fenceLength=S;R._fenceChar=E[0][0];R._fenceOffset=k.indent;t$(k);wB(k,S,!1);return 2}return 0},
function(k,E){if(!k.indented&&od(k.currentLine,k.nextNonspace)===60){var S=k.currentLine.slice(k.nextNonspace),R;for(R=1;R<=7;R++)if(zBj[R].test(S)&&(R<7||E.type!=="paragraph"))return P7(k),k.addChild("html_block",k.offset)._htmlBlockType=R,2}return 0},
function(k,E){var S;if(!k.indented&&E.type==="paragraph"&&(S=k.currentLine.slice(k.nextNonspace).match(NyC))){P7(k);var R=new UJ("heading",E.sourcepos);R.level=S[0][0]==="="?1:2;R._string_content=E._string_content;wZC(E,R);E.unlink();k.tip=R;wB(k,k.currentLine.length-k.offset,!1);return 2}return 0},
function(k){return!k.indented&&O9d.test(k.currentLine.slice(k.nextNonspace))?(P7(k),k.addChild("thematic_break",k.nextNonspace),wB(k,k.currentLine.length-k.offset,!1),2):0},
function(k,E){var S,R;if(!(R=k.indented&&E.type!=="list")){a:{var V=E,N=k.currentLine.slice(k.nextNonspace);R={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:k.indent};if(S=N.match(ke4))R.type="bullet",R.bulletChar=S[0][0];else{if(!(S=N.match(Eq8))||V.type==="paragraph"&&S[1]!=="1"){S=null;break a}R.type="ordered";R.start=parseInt(S[1],10);R.delimiter=S[2]}var h=od(k.currentLine,k.nextNonspace+S[0].length);if(h!==-1&&h!==9&&h!==32||V.type==="paragraph"&&!k.currentLine.slice(k.nextNonspace+
S[0].length).match(CrY))S=null;else{t$(k);wB(k,S[0].length,!0);V=k.column;N=k.offset;do wB(k,1,!0),h=od(k.currentLine,k.offset);while(k.column-V<5&&ys(h));h=od(k.currentLine,k.offset)===-1;var J=k.column-V;J>=5||J<1||h?(R.padding=S[0].length+1,k.column=V,k.offset=N,ys(od(k.currentLine,k.offset))&&wB(k,1,!0)):R.padding=S[0].length+J;S=R}}R=!S}if(R)return 0;P7(k);(R=k.tip.type!=="list")||(E=E._listData,R=!(E.type===S.type&&E.delimiter===S.delimiter&&E.bulletChar===S.bulletChar));R&&(E=k.addChild("list",
k.nextNonspace),E._listData=S);E=k.addChild("item",k.nextNonspace);E._listData=S;return 1},
function(k){var E;return((E=k.options.shouldParseIndentAsCodeBlock)!=null?E:1)&&k.indented&&k.tip.type!=="paragraph"&&!k.blank?(wB(k,4,!0),P7(k),k.addChild("code_block",k.offset),2):0},
function(k,E){var S=Xn(k.currentLine),R=Xn(k.lookahead);if(S!==0&&R<0&&Math.abs(S)==Math.abs(R)&&!HTe(E.type)){P7(k);E=k.addChild("table",k.nextNonspace);E._tableRows=1;E._tableColumns=Math.abs(S);S=k.lookahead;if(UMj.test(S)){R=[];for(var V=0,N=!1,h=0,J=void 0;V<S.length;){var m=h>=3;switch(S[V]){case "-":h++;break;case "|":N&&(R.push(J),J=void 0,h=0);N=!0;break;case ":":J||m||(J="left"),!J&&m&&(J="right"),J==="left"&&m&&(J="center")}V++}S=R}else S=void 0;E._columnAlignment=S;E=k.addChild("row",
k.nextNonspace);E._isHeader=!0;wB(k,k.currentLine.length-k.offset,!1);E._string_content=k.currentLine;return 1}return 0},
function(k,E){if(E.type=="table"&&Xn(k.currentLine)!==0){P7(k);var S=E;E=k.addChild("row",k.nextNonspace);Xn(k.currentLine)<0?E._rowIsDelimiter=!0:S._tableRows+=1;wB(k,k.currentLine.length-k.offset,!1);E._string_content=k.currentLine;return 2}return 0}],wBC=function(){var k={shouldParseIndentAsCodeBlock:!1};
k=k===void 0?{}:k;this.lastMatchedContainer=this.doc=KZj();this.refmap={};this.lastLineLength=0;this.inlineParser=new e8(k);this.options=k;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=nqA;this.blockStarts=imY},h_4=function(k){k.partiallyConsumedTab&&(k.offset+=1,k.tip._string_content+=" ".repeat(4-k.column%
4));
k.tip._string_content+=k.currentLine.slice(k.offset)+"\n"};
wBC.prototype.addChild=function(k,E){for(;!this.blocks[this.tip.type].canContain(k);)this.finalize(this.tip,this.lineNumber-1);k=new UJ(k,[[this.lineNumber,E+1],[0,0]]);k._string_content="";this.tip.appendChild(k);return this.tip=k};
var P7=function(k){if(!k.allClosed){for(;k.oldtip!==k.lastMatchedContainer;){var E=k.oldtip._parent;k.finalize(k.oldtip,k.lineNumber-1);k.oldtip=E}k.allClosed=!0}},wB=function(k,E,S){for(var R=k.currentLine,V,N;E>0&&(N=R[k.offset]);)N==="\t"?(V=4-k.column%4,S?(k.partiallyConsumedTab=V>E,V=V>E?E:V,k.column+=V,k.offset+=k.partiallyConsumedTab?0:1,E-=V):(k.partiallyConsumedTab=!1,k.column+=V,k.offset+=1,--E)):(k.partiallyConsumedTab=!1,k.offset+=1,k.column+=1,--E)},t$=function(k){k.offset=k.nextNonspace;
k.column=k.nextNonspaceColumn;k.partiallyConsumedTab=!1},J9Y=function(k){for(var E=k.currentLine,S=k.offset,R=k.column,V;(V=E.charAt(S))!=="";)if(V===" ")S++,R++;
else if(V==="\t")S++,R+=4-R%4;else break;k.blank=V==="\n"||V==="\r"||V==="";k.nextNonspace=S;k.nextNonspaceColumn=R;k.indent=k.nextNonspaceColumn-k.column;k.indented=k.indent>=4};
wBC.prototype.finalize=function(k,E){var S=k._parent;k._open=!1;k.sourcepos[1]=[E,this.lastLineLength];this.blocks[k.type].finalize(this,k);this.tip=S};
wBC.prototype.parse=function(k){this.tip=this.doc=KZj();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!k)return this.doc;this.options.time&&console.time("preparing input");var E=k.split(IO5),S=E.length;k.charCodeAt(k.length-1)===10&&--S;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(k=0;k<S;k++)a:{var R=void 0,V=E[k],N=E[k+1],h=!0,J=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;V.indexOf("\x00")!==-1&&(V=V.replace(/\0/g,"\ufffd"));this.currentLine=V;for(this.lookahead=N;(R=J._lastChild)&&R._open;){J=R;J9Y(this);switch(this.blocks[J.type].continue(this,J)){case 0:break;case 1:h=!1;break;case 2:this.lastLineLength=V.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!h){J=J._parent;break}}this.allClosed=J===this.oldtip;this.lastMatchedContainer=
J;R=J.type!=="paragraph"&&nqA[J.type].acceptsLines;N=this.blockStarts;for(h=N.length;!R;){J9Y(this);if(!this.indented&&!GbC.test(V.slice(this.nextNonspace))){t$(this);break}for(var m=0;m<h;){var a=N[m](this,J);if(a===1){J=this.tip;break}else if(a===2){J=this.tip;R=!0;break}else m++}if(m===h){t$(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){P7(this);this.blank&&J.lastChild&&(J.lastChild._lastLineBlank=!0);R=J.type;N=this.blank&&!(R==="block_quote"||R==="code_block"&&J._isFenced||
R==="item"&&!J._firstChild&&J.sourcepos[0][0]===this.lineNumber);for(h=J;h;)h._lastLineBlank=N,h=h._parent;this.blocks[R].acceptsLines?(h_4(this),R==="html_block"&&J._htmlBlockType>=1&&J._htmlBlockType<=5&&Q3C[J._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(J,this.lineNumber)):this.offset<V.length&&!this.blank&&(this.addChild("paragraph",this.offset),t$(this),h_4(this))}else h_4(this);this.lastLineLength=V.length}for(;this.tip;)this.finalize(this.tip,S);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");V=new TE2(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;S=V.next();)E=S.node,k=E.type,S.entering||k!=="paragraph"&&k!=="heading"&&k!=="th"&&k!="td"||this.inlineParser.parse(E);this.options.time&&console.timeEnd("inline parsing");return this.doc};pNl.prototype.render=function(k){k=new TE2(k);var E;this.buffer="";for(this.lastOut="\n";E=k.next();){var S=E.node.type;if(this[S])this[S](E.node,E.entering)}return this.buffer};
pNl.prototype.out=function(k){B7(this,k)};
var B7=function(k,E){k.buffer+=E;k.lastOut=E};
pNl.prototype.cr=function(){this.lastOut!=="\n"&&B7(this,"\n")};var c9A=/^javascript:|vbscript:|file:|data:/i,mXY=/^data:image\/(?:png|gif|jpeg|webp)/i,e_5=function(k){return c9A.test(k)&&!mXY.test(k)};
Hk.prototype=Object.create(pNl.prototype);_.I=Hk.prototype;_.I.text=function(k){this.out(k.literal)};
_.I.html_inline=function(k){this.options.safe?B7(this,"\x3c!-- raw HTML omitted --\x3e"):B7(this,k.literal)};
_.I.html_block=function(k){this.cr();this.options.safe?B7(this,"\x3c!-- raw HTML omitted --\x3e"):B7(this,k.literal);this.cr()};
_.I.softbreak=function(){B7(this,this.options.softbreak)};
_.I.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.I.link=function(k,E){var S=this.attrs(k);E?(this.options.safe&&e_5(k.destination)||S.push(["href",J$(k.destination,!0)]),k.title&&S.push(["title",J$(k.title,!0)]),this.tag("a",S)):this.tag("/a")};
_.I.image=function(k,E){E?(this.disableTags===0&&(this.options.safe&&e_5(k.destination)?B7(this,'<img src="" alt="'):B7(this,'<img src="'+J$(k.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(k.title&&B7(this,'" title="'+J$(k.title,!0)),B7(this,'" />')))};
_.I.emph=function(k,E){this.tag(E?"em":"/em")};
_.I.strong=function(k,E){this.tag(E?"strong":"/strong")};
_.I.paragraph=function(k,E){var S=k.parent.parent;k=this.attrs(k);S!==null&&S.type==="list"&&S.listTight||(E?(this.cr(),this.tag("p",k)):(this.tag("/p"),this.cr()))};
_.I.heading=function(k,E){var S="h"+k.level;k=this.attrs(k);E?(this.cr(),this.tag(S,k)):(this.tag("/"+S),this.cr())};
_.I.code=function(k){this.tag("code");this.out(k.literal);this.tag("/code")};
_.I.code_block=function(k){var E=k.info?k.info.split(/\s+/):[],S=this.attrs(k);E.length>0&&E[0].length>0&&S.push(["class","language-"+J$(E[0],!0)]);this.cr();this.tag("pre");this.tag("code",S);this.out(k.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.I.thematic_break=function(k){k=this.attrs(k);this.cr();this.tag("hr",k,!0);this.cr()};
_.I.block_quote=function(k,E){k=this.attrs(k);E?(this.cr(),this.tag("blockquote",k)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.I.list=function(k,E){var S=k.listType==="bullet"?"ul":"ol",R=this.attrs(k);E?(k=k.listStart,k!==null&&k!==1&&R.push(["start",k.toString()]),this.cr(),this.tag(S,R)):(this.cr(),this.tag("/"+S));this.cr()};
_.I.item=function(k,E){k=this.attrs(k);E?this.tag("li",k):(this.tag("/li"),this.cr())};
_.I.custom_inline=function(k,E){E&&k.onEnter?B7(this,k.onEnter):!E&&k.onExit&&B7(this,k.onExit)};
_.I.custom_block=function(k,E){this.cr();E&&k.onEnter?B7(this,k.onEnter):!E&&k.onExit&&B7(this,k.onExit);this.cr()};
_.I.table=function(k,E){k=this.attrs(k);E?(this.cr(),this.tag("table",k)):(this.tag("/table"),this.cr())};
_.I.row=function(k,E){k._rowIsDelimiter||(k=this.attrs(k),E?this.tag("tr",k):this.tag("/tr"))};
_.I.td=function(k,E){var S=this.attrs(k);k._alignment&&S.push(["align",k._alignment]);E?this.tag("td",S):this.tag("/td")};
_.I.th=function(k,E){var S=this.attrs(k);k._alignment&&S.push(["align",k._alignment]);E?this.tag("th",S):this.tag("/th")};
_.I.out=function(k){B7(this,J$(k,!1))};
_.I.tag=function(k,E,S){if(!(this.disableTags>0)){this.buffer+="<"+k;if(E&&E.length>0){k=0;for(var R;(R=E[k])!==void 0;)this.buffer+=" "+R[0]+'="'+R[1]+'"',k++}S&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.I.attrs=function(k){var E=[];this.options.sourcepos&&(k=k.sourcepos)&&E.push(["data-sourcepos",String(k[0][0])+":"+String(k[0][1])+"-"+String(k[1][0])+":"+String(k[1][1])]);return E};
Hk.prototype.text=Hk.prototype.text;Hk.prototype.html_inline=Hk.prototype.html_inline;Hk.prototype.html_block=Hk.prototype.html_block;Hk.prototype.softbreak=Hk.prototype.softbreak;Hk.prototype.linebreak=Hk.prototype.linebreak;Hk.prototype.link=Hk.prototype.link;Hk.prototype.image=Hk.prototype.image;Hk.prototype.emph=Hk.prototype.emph;Hk.prototype.strong=Hk.prototype.strong;Hk.prototype.paragraph=Hk.prototype.paragraph;Hk.prototype.heading=Hk.prototype.heading;Hk.prototype.code=Hk.prototype.code;
Hk.prototype.code_block=Hk.prototype.code_block;Hk.prototype.thematic_break=Hk.prototype.thematic_break;Hk.prototype.block_quote=Hk.prototype.block_quote;Hk.prototype.list=Hk.prototype.list;Hk.prototype.item=Hk.prototype.item;Hk.prototype.custom_inline=Hk.prototype.custom_inline;Hk.prototype.custom_block=Hk.prototype.custom_block;Hk.prototype.table=Hk.prototype.table;Hk.prototype.row=Hk.prototype.row;Hk.prototype.td=Hk.prototype.td;Hk.prototype.th=Hk.prototype.th;Hk.prototype.out=Hk.prototype.out;
Hk.prototype.tag=Hk.prototype.tag;Hk.prototype.attrs=Hk.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 aOC,tH8,wAA;(function(){function k(u,A){return u<A?-1:u>A?1:u>=A?0:NaN}
function E(u){return function(A,v){return k(u(A),v)}}
function S(){for(var u=0,A=arguments.length,v={},Ej;u<A;++u){if(!(Ej=arguments[u]+"")||Ej in v)throw Error("ve`"+Ej);v[Ej]=[]}return new R(v)}
function R(u){this._=u}
function V(u,A){return u.trim().split(/^|\s+/).map(function(v){var Ej="",hh=v.indexOf(".");hh>=0&&(Ej=v.slice(hh+1),v=v.slice(0,hh));if(v&&!A.hasOwnProperty(v))throw Error("we`"+v);return{type:v,name:Ej}})}
function N(u,A,v){for(var Ej=0,hh=u.length;Ej<hh;++Ej)if(u[Ej].name===A){u[Ej]=M6I;u=u.slice(0,Ej).concat(u.slice(Ej+1));break}v!=null&&u.push({name:A,value:v});return u}
function h(u){var A=u,v=A.indexOf(":");v>=0&&(A=u.slice(0,v))!=="xmlns"&&(u=u.slice(v+1));return zb.hasOwnProperty(A)?{space:zb[A],local:u}:u}
function J(u){return function(){var A=this.ownerDocument,v=this.namespaceURI;return v==="http://www.w3.org/1999/xhtml"&&A.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?A.createElement(u):A.createElementNS(v,u)}}
function m(u){return function(){return this.ownerDocument.createElementNS(u.space,u.local)}}
function a(u){u=h(u);return(u.local?m:J)(u)}
function T(){}
function w(u){return u==null?T:function(){return this.querySelector(u)}}
function P(u){return Array(u.length)}
function B(u,A){this.ownerDocument=u.ownerDocument;this.namespaceURI=u.namespaceURI;this._next=null;this._parent=u;this.__data__=A}
function F(u){return function(){return u}}
function K(u,A,v,Ej,hh,Pe){for(var Fm=0,xb,Np=A.length,Cl=Pe.length;Fm<Cl;++Fm)(xb=A[Fm])?(xb.__data__=Pe[Fm],Ej[Fm]=xb):v[Fm]=new B(u,Pe[Fm]);for(;Fm<Np;++Fm)if(xb=A[Fm])hh[Fm]=xb}
function r(u,A,v,Ej,hh,Pe,Fm){var xb,Np,Cl={},nj=A.length,TY=Pe.length,zY=Array(nj),rU;for(xb=0;xb<nj;++xb)if(Np=A[xb])zY[xb]=rU="$"+Fm.call(Np,Np.__data__,xb,A),rU in Cl?hh[xb]=Np:Cl[rU]=Np;for(xb=0;xb<TY;++xb)rU="$"+Fm.call(u,Pe[xb],xb,Pe),(Np=Cl[rU])?(Ej[xb]=Np,Np.__data__=Pe[xb],Cl[rU]=null):v[xb]=new B(u,Pe[xb]);for(xb=0;xb<nj;++xb)(Np=A[xb])&&Cl[zY[xb]]===Np&&(hh[xb]=Np)}
function x(u,A){return u<A?-1:u>A?1:u>=A?0:NaN}
function L(u){return function(){this.removeAttribute(u)}}
function q(u){return function(){this.removeAttributeNS(u.space,u.local)}}
function M(u,A){return function(){this.setAttribute(u,A)}}
function d(u,A){return function(){this.setAttributeNS(u.space,u.local,A)}}
function z(u,A){return function(){var v=A.apply(this,arguments);v==null?this.removeAttribute(u):this.setAttribute(u,v)}}
function kb(u,A){return function(){var v=A.apply(this,arguments);v==null?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,v)}}
function TI(u){return function(){this.style.removeProperty(u)}}
function a1(u,A,v){return function(){this.style.setProperty(u,A,v)}}
function Ah(u,A,v){return function(){var Ej=A.apply(this,arguments);Ej==null?this.style.removeProperty(u):this.style.setProperty(u,Ej,v)}}
function th(u,A){return u.style.getPropertyValue(A)||(u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView).getComputedStyle(u,null).getPropertyValue(A)}
function He(u){return function(){delete this[u]}}
function ve(u,A){return function(){this[u]=A}}
function Xm(u,A){return function(){var v=A.apply(this,arguments);v==null?delete this[u]:this[u]=v}}
function U5(){this.textContent=""}
function l4(u){return function(){this.textContent=u}}
function gY(u){return function(){var A=u.apply(this,arguments);this.textContent=A==null?"":A}}
function IC(){this.innerHTML=""}
function md(u){return function(){this.innerHTML=u}}
function Kj(u){return function(){var A=u.apply(this,arguments);this.innerHTML=A==null?"":A}}
function Lj(){return null}
function H0(){var u=this.parentNode;u&&u.removeChild(this)}
function TG(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function iC(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function hC(u,A,v){u=Y2(u,A,v);return function(Ej){var hh=Ej.relatedTarget;hh&&(hh===this||hh.compareDocumentPosition(this)&8)||u.call(this,Ej)}}
function Y2(u,A,v){return function(){u.call(this,this.__data__,A,v)}}
function It(u){return u.trim().split(/^|\s+/).map(function(A){var v="",Ej=A.indexOf(".");Ej>=0&&(v=A.slice(Ej+1),A=A.slice(0,Ej));return{type:A,name:v}})}
function Wz(u){return function(){var A=this.__on;if(A){for(var v=0,Ej=-1,hh=A.length,Pe;v<hh;++v)(Pe=A[v],u.type&&Pe.type!==u.type||Pe.name!==u.name)?A[++Ej]=Pe:this.removeEventListener(Pe.type,Pe.listener,Pe.capture);++Ej?A.length=Ej:delete this.__on}}}
function VP(u,A,v){var Ej=tDA.hasOwnProperty(u.type)?hC:Y2;return function(hh,Pe,Fm){hh=this.__on;var xb;Pe=Ej(A,Pe,Fm);if(hh){Fm=0;for(var Np=hh.length;Fm<Np;++Fm)if((xb=hh[Fm]).type===u.type&&xb.name===u.name){this.removeEventListener(xb.type,xb.listener,xb.capture);this.addEventListener(xb.type,xb.listener=Pe,xb.capture=v);xb.value=A;return}}this.addEventListener(u.type,Pe,v);xb={type:u.type,name:u.name,value:A,listener:Pe,capture:v};hh?hh.push(xb):this.__on=[xb]}}
function LR(u,A,v){var Ej=u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView,hh=Ej.CustomEvent;typeof hh==="function"?hh=new hh(A,v):(hh=Ej.document.createEvent("Event"),v?(hh.initEvent(A,v.bubbles,v.cancelable),hh.detail=v.detail):hh.initEvent(A,!1,!1));u.dispatchEvent(hh)}
function Mp(u,A){return function(){return LR(this,u,A)}}
function tC(u,A){return function(){return LR(this,u,A.apply(this,arguments))}}
function aC(u,A){this._groups=u;this._parents=A}
function Rt(){return new aC([[document.documentElement]],qN0)}
function zI(){this._="@"+(++z1P).toString(36)}
function Bz(u,A,v){u.prototype=A.prototype=v;v.constructor=u}
function W0(u,A){u=Object.create(u.prototype);for(var v in A)u[v]=A[v];return u}
function EY(){}
function pP(u){var A;u=(u+"").trim().toLowerCase();return(A=QAI.exec(u))?(A=parseInt(A[1],16),new ot(A>>8&15|A>>4&240,A>>4&15|A&240,(A&15)<<4|A&15,1)):(A=OGa.exec(u))?dP(parseInt(A[1],16)):(A=GiY.exec(u))?new ot(A[1],A[2],A[3],1):(A=CL2.exec(u))?new ot(A[1]*255/100,A[2]*255/100,A[3]*255/100,1):(A=kmP.exec(u))?C2(A[1],A[2],A[3],A[4]):(A=EPt.exec(u))?C2(A[1]*255/100,A[2]*255/100,A[3]*255/100,A[4]):(A=Sbx.exec(u))?BX(A[1],A[2]/100,A[3]/100,1):(A=Rt3.exec(u))?BX(A[1],A[2]/100,A[3]/100,A[4]):THC.hasOwnProperty(u)?
dP(THC[u]):u==="transparent"?new ot(NaN,NaN,NaN,0):null}
function dP(u){return new ot(u>>16&255,u>>8&255,u&255,1)}
function C2(u,A,v,Ej){Ej<=0&&(u=A=v=NaN);return new ot(u,A,v,Ej)}
function Jx(u){u instanceof EY||(u=pP(u));if(!u)return new ot;u=u.rgb();return new ot(u.r,u.g,u.b,u.opacity)}
function Qd(u,A,v,Ej){return arguments.length===1?Jx(u):new ot(u,A,v,Ej==null?1:Ej)}
function ot(u,A,v,Ej){this.r=+u;this.g=+A;this.b=+v;this.opacity=+Ej}
function N2(u){u=Math.max(0,Math.min(255,Math.round(u)||0));return(u<16?"0":"")+u.toString(16)}
function BX(u,A,v,Ej){Ej<=0?u=A=v=NaN:v<=0||v>=1?u=A=NaN:A<=0&&(u=NaN);return new YO(u,A,v,Ej)}
function ik(u){if(u instanceof YO)return new YO(u.h,u.s,u.l,u.opacity);u instanceof EY||(u=pP(u));if(!u)return new YO;if(u instanceof YO)return u;u=u.rgb();var A=u.r/255,v=u.g/255,Ej=u.b/255,hh=Math.min(A,v,Ej),Pe=Math.max(A,v,Ej),Fm=NaN,xb=Pe-hh,Np=(Pe+hh)/2;xb?(Fm=A===Pe?(v-Ej)/xb+(v<Ej)*6:v===Pe?(Ej-A)/xb+2:(A-v)/xb+4,xb/=Np<.5?Pe+hh:2-Pe-hh,Fm*=60):xb=Np>0&&Np<1?0:Fm;return new YO(Fm,xb,Np,u.opacity)}
function jo(u,A,v,Ej){return arguments.length===1?ik(u):new YO(u,A,v,Ej==null?1:Ej)}
function YO(u,A,v,Ej){this.h=+u;this.s=+A;this.l=+v;this.opacity=+Ej}
function nO(u,A,v){return(u<60?A+(v-A)*u/60:u<180?v:u<240?A+(v-A)*(240-u)/60:A)*255}
function mG(u){if(u instanceof pl)return new pl(u.l,u.a,u.b,u.opacity);if(u instanceof X8){if(isNaN(u.h))return new pl(u.l,0,0,u.opacity);var A=u.h*wwd;return new pl(u.l,Math.cos(A)*u.c,Math.sin(A)*u.c,u.opacity)}u instanceof ot||(u=Jx(u));var v=wU(u.r),Ej=wU(u.g),hh=wU(u.b);A=fl(.2225045*v+.7168786*Ej+.0606169*hh);if(v===Ej&&Ej===hh)var Pe=v=A;else Pe=fl((.4360747*v+.3850649*Ej+.1430804*hh)/.96422),v=fl((.0139322*v+.0971045*Ej+.7141733*hh)/.82521);return new pl(116*A-16,500*(Pe-A),200*(A-v),u.opacity)}
function pl(u,A,v,Ej){this.l=+u;this.a=+A;this.b=+v;this.opacity=+Ej}
function fl(u){return u>VDY?Math.pow(u,1/3):u/PZ8+BH8}
function MA(u){return u>kE?u*u*u:PZ8*(u-BH8)}
function yd(u){return 255*(u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055)}
function wU(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}
function rk(u){if(u instanceof X8)return new X8(u.h,u.c,u.l,u.opacity);u instanceof pl||(u=mG(u));if(u.a===0&&u.b===0)return new X8(NaN,0,u.l,u.opacity);var A=Math.atan2(u.b,u.a)*Yb2;return new X8(A<0?A+360:A,Math.sqrt(u.a*u.a+u.b*u.b),u.l,u.opacity)}
function AR(u,A,v,Ej){return arguments.length===1?rk(u):new X8(u,A,v,Ej==null?1:Ej)}
function X8(u,A,v,Ej){this.h=+u;this.c=+A;this.l=+v;this.opacity=+Ej}
function oC(u,A,v,Ej){if(arguments.length===1){var hh=u;if(hh instanceof Dx)hh=new Dx(hh.h,hh.s,hh.l,hh.opacity);else{hh instanceof ot||(hh=Jx(hh));var Pe=hh.g/255,Fm=hh.b/255,xb=(WMz*Fm+hh.r/255*-1.7884503806-3.5172982438*Pe)/(WMz+-1.7884503806-3.5172982438);Fm-=xb;var Np=(1.97294*(Pe-xb)- -.29227*Fm)/-.90649;Fm=(Pe=Math.sqrt(Np*Np+Fm*Fm)/(1.97294*xb*(1-xb)))?Math.atan2(Np,Fm)*Yb2-120:NaN;hh=new Dx(Fm<0?Fm+360:Fm,Pe,xb,hh.opacity)}}else hh=new Dx(u,A,v,Ej==null?1:Ej);return hh}
function Dx(u,A,v,Ej){this.h=+u;this.s=+A;this.l=+v;this.opacity=+Ej}
function YJ(u,A,v,Ej,hh){var Pe=u*u,Fm=Pe*u;return((1-3*u+3*Pe-Fm)*A+(4-6*Pe+3*Fm)*v+(1+3*u+3*Pe-3*Fm)*Ej+Fm*hh)/6}
function Pz(u){return function(){return u}}
function HH(u,A){return function(v){return u+v*A}}
function $O(u,A,v){return u=Math.pow(u,v),A=Math.pow(A,v)-u,v=1/v,function(Ej){return Math.pow(u+Ej*A,v)}}
function vU(u,A){var v=A-u;return v?HH(u,v>180||v<-180?v-360*Math.round(v/360):v):Pz(isNaN(u)?A:u)}
function Om(u){return(u=+u)===1?k6:function(A,v){return v-A?$O(A,v,u):Pz(isNaN(A)?v:A)}}
function k6(u,A){var v=A-u;return v?HH(u,v):Pz(isNaN(u)?A:u)}
function fZ(u){return function(A){var v=A.length,Ej=Array(v),hh=Array(v),Pe=Array(v),Fm;for(Fm=0;Fm<v;++Fm){var xb=Qd(A[Fm]);Ej[Fm]=xb.r||0;hh[Fm]=xb.g||0;Pe[Fm]=xb.b||0}Ej=u(Ej);hh=u(hh);Pe=u(Pe);xb.opacity=1;return function(Np){xb.r=Ej(Np);xb.g=hh(Np);xb.b=Pe(Np);return xb+""}}}
function Eo(u,A){return u=+u,A-=u,function(v){return u+A*v}}
function Lc(u){return function(){return u}}
function EM(u){return function(A){return u(A)+""}}
function Qt(u,A){var v=SbR.lastIndex=Rtm.lastIndex=0,Ej,hh,Pe,Fm=-1,xb=[],Np=[];u+="";for(A+="";(Ej=SbR.exec(u))&&(hh=Rtm.exec(A));)(Pe=hh.index)>v&&(Pe=A.slice(v,Pe),xb[Fm]?xb[Fm]+=Pe:xb[++Fm]=Pe),(Ej=Ej[0])===(hh=hh[0])?xb[Fm]?xb[Fm]+=hh:xb[++Fm]=hh:(xb[++Fm]=null,Np.push({i:Fm,x:Eo(Ej,hh)})),v=Rtm.lastIndex;v<A.length&&(Pe=A.slice(v),xb[Fm]?xb[Fm]+=Pe:xb[++Fm]=Pe);return xb.length<2?Np[0]?EM(Np[0].x):Lc(A):(A=Np.length,function(Cl){for(var nj=0,TY;nj<A;++nj)xb[(TY=Np[nj]).i]=TY.x(Cl);return xb.join("")})}
function X3(u,A,v,Ej,hh,Pe){var Fm,xb,Np;if(Fm=Math.sqrt(u*u+A*A))u/=Fm,A/=Fm;if(Np=u*v+A*Ej)v-=u*Np,Ej-=A*Np;if(xb=Math.sqrt(v*v+Ej*Ej))v/=xb,Ej/=xb,Np/=xb;u*Ej<A*v&&(u=-u,A=-A,Np=-Np,Fm=-Fm);return{translateX:hh,translateY:Pe,rotate:Math.atan2(A,u)*FM5,skewX:Math.atan(Np)*FM5,scaleX:Fm,scaleY:xb}}
function dU(u,A,v,Ej){function hh(Cl){return Cl.length?Cl.pop()+" ":""}
function Pe(Cl,nj,TY,zY,rU,yN){Cl!==TY||nj!==zY?(rU=rU.push("translate(",null,A,null,v),yN.push({i:rU-4,x:Eo(Cl,TY)},{i:rU-2,x:Eo(nj,zY)})):(TY||zY)&&rU.push("translate("+TY+A+zY+v)}
function Fm(Cl,nj,TY,zY){Cl!==nj?(Cl-nj>180?nj+=360:nj-Cl>180&&(Cl+=360),zY.push({i:TY.push(hh(TY)+"rotate(",null,Ej)-2,x:Eo(Cl,nj)})):nj&&TY.push(hh(TY)+"rotate("+nj+Ej)}
function xb(Cl,nj,TY,zY){Cl!==nj?zY.push({i:TY.push(hh(TY)+"skewX(",null,Ej)-2,x:Eo(Cl,nj)}):nj&&TY.push(hh(TY)+"skewX("+nj+Ej)}
function Np(Cl,nj,TY,zY,rU,yN){Cl!==TY||nj!==zY?(rU=rU.push(hh(rU)+"scale(",null,",",null,")"),yN.push({i:rU-4,x:Eo(Cl,TY)},{i:rU-2,x:Eo(nj,zY)})):TY===1&&zY===1||rU.push(hh(rU)+"scale("+TY+","+zY+")")}
return function(Cl,nj){var TY=[],zY=[];Cl=u(Cl);nj=u(nj);Pe(Cl.translateX,Cl.translateY,nj.translateX,nj.translateY,TY,zY);Fm(Cl.rotate,nj.rotate,TY,zY);xb(Cl.skewX,nj.skewX,TY,zY);Np(Cl.scaleX,Cl.scaleY,nj.scaleX,nj.scaleY,TY,zY);Cl=nj=null;return function(rU){for(var yN=-1,lt=zY.length,Hd;++yN<lt;)TY[(Hd=zY[yN]).i]=Hd.x(rU);return TY.join("")}}}
function c0(u){return function(A,v){var Ej=u((A=jo(A)).h,(v=jo(v)).h),hh=k6(A.s,v.s),Pe=k6(A.l,v.l),Fm=k6(A.opacity,v.opacity);return function(xb){A.h=Ej(xb);A.s=hh(xb);A.l=Pe(xb);A.opacity=Fm(xb);return A+""}}}
function tx(u){return function(A,v){var Ej=u((A=AR(A)).h,(v=AR(v)).h),hh=k6(A.c,v.c),Pe=k6(A.l,v.l),Fm=k6(A.opacity,v.opacity);return function(xb){A.h=Ej(xb);A.c=hh(xb);A.l=Pe(xb);A.opacity=Fm(xb);return A+""}}}
function zo(u){return function Ej(v){function hh(Pe,Fm){var xb=u((Pe=oC(Pe)).h,(Fm=oC(Fm)).h),Np=k6(Pe.s,Fm.s),Cl=k6(Pe.l,Fm.l),nj=k6(Pe.opacity,Fm.opacity);return function(TY){Pe.h=xb(TY);Pe.s=Np(TY);Pe.l=Cl(Math.pow(TY,v));Pe.opacity=nj(TY);return Pe+""}}
v=+v;hh.gamma=Ej;return hh}(1)}
function lk(){return UW||(yy4(Iv),UW=Ak.now()+i2m)}
function Iv(){UW=0}
function jQ(){this._call=this._time=this._next=null}
function oB(u,A,v){var Ej=new jQ;Ej.restart(u,A,v);return Ej}
function XP(){UW=(hxj=Ak.now())+i2m;El=rf=0;try{lk();++El;for(var u=JDh,A;u;)(A=UW-u._time)>=0&&u._call.call(null,A),u=u._next;--El}finally{El=0;u=JDh;for(var v=Infinity;u;)if(u._call){v>u._time&&(v=u._time);var Ej=u;u=u._next}else A=u._next,u._next=null,u=Ej?Ej._next=A:JDh=A;um=Ej;ge(v);UW=0}}
function l9A(){var u=Ak.now(),A=u-hxj;A>1E3&&(i2m-=A,hxj=u)}
function ge(u){El||(rf&&(rf=clearTimeout(rf)),u-UW>24?(u<Infinity&&(rf=setTimeout(XP,u-Ak.now()-i2m)),xC&&(xC=clearInterval(xC))):(xC||(hxj=Ak.now(),xC=setInterval(l9A,1E3)),El=1,yy4(XP)))}
function oPd(u,A,v){var Ej=new jQ;A=A==null?0:+A;Ej.restart(function(hh){Ej.stop();u(hh+A)},A,v);
return Ej}
function VDi(u,A,v,Ej,hh,Pe){var Fm=u.__transition;if(!Fm)u.__transition={};else if(v in Fm)return;NHt(u,v,{name:A,index:Ej,group:hh,on:IGA,tween:nPI,time:Pe.time,delay:Pe.delay,duration:Pe.duration,ease:Pe.ease,timer:null,state:0})}
function NH1(u,A){u=vs(u,A);if(u.state>0)throw Error("xe");return u}
function Ha(u,A){u=vs(u,A);if(u.state>2)throw Error("ye");return u}
function vs(u,A){u=u.__transition;if(!u||!(u=u[A]))throw Error("ze");return u}
function NHt(u,A,v){function Ej(Np){var Cl,nj;if(v.state!==1)return Pe();for(zY in Fm){var TY=Fm[zY];if(TY.name===v.name){if(TY.state===3)return oPd(Ej);TY.state===4?(TY.state=6,TY.timer.stop(),TY.on.call("interrupt",u,u.__data__,TY.index,TY.group),delete Fm[zY]):+zY<A&&(TY.state=6,TY.timer.stop(),delete Fm[zY])}}oPd(function(){v.state===3&&(v.state=4,v.timer.restart(hh,v.delay,v.time),hh(Np))});
v.state=2;v.on.call("start",u,u.__data__,v.index,v.group);if(v.state===2){v.state=3;xb=Array(nj=v.tween.length);var zY=0;for(Cl=-1;zY<nj;++zY)if(TY=v.tween[zY].value.call(u,u.__data__,v.index,v.group))xb[++Cl]=TY;xb.length=Cl+1}}
function hh(Np){Np=Np<v.duration?v.ease.call(null,Np/v.duration):(v.timer.restart(Pe),v.state=5,1);for(var Cl=-1,nj=xb.length;++Cl<nj;)xb[Cl].call(null,Np);v.state===5&&(v.on.call("end",u,u.__data__,v.index,v.group),Pe())}
function Pe(){v.state=6;v.timer.stop();delete Fm[A];for(var Np in Fm)return;delete u.__transition}
var Fm=u.__transition,xb;Fm[A]=v;v.timer=oB(function(Np){v.state=1;v.timer.restart(Ej,v.delay,v.time);v.delay<=Np&&Ej(Np-v.delay)},0,v.time)}
function iXT(u,A){var v,Ej;return function(){var hh=Ha(this,u),Pe=hh.tween;if(Pe!==v){Ej=v=Pe;Pe=0;for(var Fm=Ej.length;Pe<Fm;++Pe)if(Ej[Pe].name===A){Ej=Ej.slice();Ej.splice(Pe,1);break}}hh.tween=Ej}}
function htR(u,A,v){var Ej,hh;if(typeof v!=="function")throw Error();return function(){var Pe=Ha(this,u),Fm=Pe.tween;if(Fm!==Ej){hh=(Ej=Fm).slice();Fm={name:A,value:v};for(var xb=0,Np=hh.length;xb<Np;++xb)if(hh[xb].name===A){hh[xb]=Fm;break}xb===Np&&hh.push(Fm)}Pe.tween=hh}}
function IGj(u,A,v){var Ej=u._id;u.each(function(){var hh=Ha(this,Ej);(hh.value||(hh.value={}))[A]=v.apply(this,arguments)});
return function(hh){return vs(hh,Ej).value[A]}}
function XwT(u,A){var v;return(typeof A==="number"?Eo:A instanceof pP?gP4:(v=pP(A))?(A=v,gP4):Qt)(u,A)}
function Jy2(u){return function(){this.removeAttribute(u)}}
function cy0(u){return function(){this.removeAttributeNS(u.space,u.local)}}
function m8P(u,A,v){var Ej,hh;return function(){var Pe=this.getAttribute(u);return Pe===v?null:Pe===Ej?hh:hh=A(Ej=Pe,v)}}
function etW(u,A,v){var Ej,hh;return function(){var Pe=this.getAttributeNS(u.space,u.local);return Pe===v?null:Pe===Ej?hh:hh=A(Ej=Pe,v)}}
function aGx(u,A,v){var Ej,hh,Pe;return function(){var Fm=v(this);if(Fm==null)return void this.removeAttribute(u);var xb=this.getAttribute(u);return xb===Fm?null:xb===Ej&&Fm===hh?Pe:Pe=A(Ej=xb,hh=Fm)}}
function tDY(u,A,v){var Ej,hh,Pe;return function(){var Fm=v(this);if(Fm==null)return void this.removeAttributeNS(u.space,u.local);var xb=this.getAttributeNS(u.space,u.local);return xb===Fm?null:xb===Ej&&Fm===hh?Pe:Pe=A(Ej=xb,hh=Fm)}}
function THx(u,A){function v(){var Ej=this,hh=A.apply(Ej,arguments);return hh&&function(Pe){Ej.setAttributeNS(u.space,u.local,hh(Pe))}}
v._value=A;return v}
function wwT(u,A){function v(){var Ej=this,hh=A.apply(Ej,arguments);return hh&&function(Pe){Ej.setAttribute(u,hh(Pe))}}
v._value=A;return v}
function PZ3(u,A){return function(){NH1(this,u).delay=+A.apply(this,arguments)}}
function BH3(u,A){return A=+A,function(){NH1(this,u).delay=A}}
function YbW(u,A){return function(){Ha(this,u).duration=+A.apply(this,arguments)}}
function WM0(u,A){return A=+A,function(){Ha(this,u).duration=A}}
function FMA(u,A){if(typeof A!=="function")throw Error();return function(){Ha(this,u).ease=A}}
function yya(u){return(u+"").trim().split(/^|\s+/).every(function(A){var v=A.indexOf(".");v>=0&&(A=A.slice(0,v));return!A||A==="start"})}
function oPP(u,A,v){var Ej,hh,Pe=yya(A)?NH1:Ha;return function(){var Fm=Pe(this,u),xb=Fm.on;if(xb!==Ej)(hh=(Ej=xb).copy()).on(A,v);Fm.on=hh}}
function XwI(u){return function(){var A=this.parentNode,v;for(v in this.__transition)if(+v!==u)return;A&&A.removeChild(this)}}
function gPa(u,A){var v,Ej,hh;return function(){var Pe=th(this,u),Fm=(this.style.removeProperty(u),th(this,u));return Pe===Fm?null:Pe===v&&Fm===Ej?hh:hh=A(v=Pe,Ej=Fm)}}
function U80(u){return function(){this.style.removeProperty(u)}}
function HXW(u,A,v){var Ej,hh;return function(){var Pe=th(this,u);return Pe===v?null:Pe===Ej?hh:hh=A(Ej=Pe,v)}}
function KMA(u,A,v){var Ej,hh,Pe;return function(){var Fm=th(this,u),xb=v(this);xb==null&&(xb=(this.style.removeProperty(u),th(this,u)));return Fm===xb?null:Fm===Ej&&xb===hh?Pe:Pe=A(Ej=Fm,hh=xb)}}
function pwt(u,A,v){function Ej(){var hh=this,Pe=A.apply(hh,arguments);return Pe&&function(Fm){hh.style.setProperty(u,Pe(Fm),v)}}
Ej._value=A;return Ej}
function Ay0(u){return function(){this.textContent=u}}
function ryt(u){return function(){var A=u(this);this.textContent=A==null?"":A}}
function Ti(u,A,v,Ej){this._groups=u;this._parents=A;this._name=v;this._id=Ej}
function nPh(u){return{type:u}}
function iXI(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function cDj(){}
function U8z(u,A){var v=new cDj;if(u instanceof cDj)u.each(function(Fm,xb){v.set(xb,Fm)});
else if(Array.isArray(u)){var Ej=-1,hh=u.length,Pe;if(A==null)for(;++Ej<hh;)v.set(Ej,u[Ej]);else for(;++Ej<hh;)v.set(A(Pe=u[Ej],Ej,u),Pe)}else if(u)for(Ej in u)v.set(Ej,u[Ej]);return v}
function mdj(){}
function HX2(u){return function(A){for(var v={},Ej=0;Ej<u.length;Ej++)v[u[Ej]]=A[Ej]||"";return v}}
function uRU(u,A){var v=HX2(u);return function(Ej,hh){return A(v(Ej),hh,u)}}
function x8P(u){var A=Object.create(null),v=[];u.forEach(function(Ej){for(var hh in Ej)hh in A||v.push(A[hh]=hh)});
return v}
function KM5(u){function A(Fm,xb){function Np(){if(yN)return hth;if(lt)return lt=!1,pwC;var Is,kk=TY,WE;if(Fm.charCodeAt(kk)===34){for(;TY++<nj&&Fm.charCodeAt(TY)!==34||Fm.charCodeAt(++TY)===34;);(Is=TY)>=nj?yN=!0:(WE=Fm.charCodeAt(TY++))===10?lt=!0:WE===13&&(lt=!0,Fm.charCodeAt(TY)===10&&++TY);return Fm.slice(kk+1,Is-1).replace(/""/g,'"')}for(;TY<nj;){if((WE=Fm.charCodeAt(Is=TY++))===10)lt=!0;else if(WE===13)lt=!0,Fm.charCodeAt(TY)===10&&++TY;else if(WE!==Pe)continue;return Fm.slice(kk,Is)}return yN=
!0,Fm.slice(kk,nj)}
var Cl=[],nj=Fm.length,TY=0,zY=0,rU,yN=nj<=0,lt=!1;Fm.charCodeAt(nj-1)===10&&--nj;for(Fm.charCodeAt(nj-1)===13&&--nj;(rU=Np())!==hth;){for(var Hd=[];rU!==pwC&&rU!==hth;)Hd.push(rU),rU=Np();xb&&(Hd=xb(Hd,zY++))==null||Cl.push(Hd)}return Cl}
function v(Fm){return Fm.map(Ej).join(u)}
function Ej(Fm){return Fm==null?"":hh.test(Fm)?'"'+Fm.replace(/"/g,'""')+'"':Fm}
var hh=new RegExp('["'+u+"\n\r]"),Pe=u.charCodeAt(0);return{parse:function(Fm,xb){var Np,Cl;Fm=A(Fm,function(nj,TY){if(Np)return Np(nj,TY-1);Cl=nj;Np=xb?uRU(nj,xb):HX2(nj)});
Fm.columns=Cl||[];return Fm},
parseRows:A,format:function(Fm,xb){xb==null&&(xb=x8P(Fm));return[xb.map(Ej).join(u)].concat(Fm.map(function(Np){return xb.map(function(Cl){return Ej(Np[Cl])}).join(u)})).join("\n")},
formatRows:function(Fm){return Fm.map(v).join("\n")}}}
function LMA(u){if(!u.ok)throw Error("Ae`"+u.status+"`"+u.statusText);return u.text()}
function Ayz(u){return function(A,v,Ej){arguments.length===2&&typeof v==="function"&&(Ej=v,v=void 0);return fetch(A,v).then(LMA).then(function(hh){return u(hh,Ej)})}}
function ryC(u,A,v,Ej){if(isNaN(A)||isNaN(v))return u;var hh,Pe=u._root;Ej={data:Ej};var Fm=u._x0,xb=u._y0,Np=u._x1,Cl=u._y1,nj,TY,zY,rU,yN;if(!Pe)return u._root=Ej,u;for(;Pe.length;)if((zY=A>=(nj=(Fm+Np)/2))?Fm=nj:Np=nj,(rU=v>=(TY=(xb+Cl)/2))?xb=TY:Cl=TY,hh=Pe,!(Pe=Pe[yN=rU<<1|zY]))return hh[yN]=Ej,u;var lt=+u._x.call(null,Pe.data);var Hd=+u._y.call(null,Pe.data);if(A===lt&&v===Hd)return Ej.next=Pe,hh?hh[yN]=Ej:u._root=Ej,u;do hh=hh?hh[yN]=Array(4):u._root=Array(4),(zY=A>=(nj=(Fm+Np)/2))?Fm=nj:Np=
nj,(rU=v>=(TY=(xb+Cl)/2))?xb=TY:Cl=TY;while((yN=rU<<1|zY)===(zY=(Hd>=TY)<<1|lt>=nj));return hh[zY]=Pe,hh[yN]=Ej,u}
function QS(u,A,v,Ej,hh){this.node=u;this.x0=A;this.y0=v;this.x1=Ej;this.y1=hh}
function j8W(u){return u[0]}
function D8W(u){return u[1]}
function JyA(u,A,v,Ej,hh,Pe){this._x=u;this._y=A;this._x0=v;this._y0=Ej;this._x1=hh;this._y1=Pe;this._root=void 0}
function uRY(u){for(var A={data:u.data},v=A;u=u.next;)v=v.next={data:u.data};return A}
function exC(u,A){if((A=(u=A?u.toExponential(A-1):u.toExponential()).indexOf("e"))<0)return null;var v=u.slice(0,A);return[v.length>1?v[0]+v.slice(2):v,+u.slice(A+1)]}
function $8a(u){return u=exC(Math.abs(u)),u?u[1]:NaN}
function fGT(u,A){return function(v,Ej){for(var hh=v.length,Pe=[],Fm=0,xb=u[0],Np=0;hh>0&&xb>0;){Np+xb+1>Ej&&(xb=Math.max(1,Ej-Np));Pe.push(v.substring(hh-=xb,hh+xb));if((Np+=xb+1)>Ej)break;xb=u[Fm=(Fm+1)%u.length]}return Pe.reverse().join(A)}}
function vPP(u){return function(A){return A.replace(/[0-9]/g,function(v){return u[+v]})}}
function cye(u){return new m8l(u)}
function m8l(u){if(!(A=bXP.exec(u)))throw Error("Be`"+u);var A;this.fill=A[1]||" ";this.align=A[2]||">";this.sign=A[3]||"-";this.symbol=A[4]||"";this.zero=!!A[5];this.width=A[6]&&+A[6];this.comma=!!A[7];this.precision=A[8]&&+A[8].slice(1);this.trim=!!A[9];this.type=A[10]||""}
function x8d(u,A){A=exC(u,A);if(!A)return u+"";u=A[0];A=A[1];return A<0?"0."+Array(-A).join("0")+u:u.length>A+1?u.slice(0,A+1)+"."+u.slice(A+1):u+Array(A-u.length+2).join("0")}
function LM5(u){return u}
function ZX3(u){function A(xb){function Np(QN){var wg=WE,M2=V3,Fo,JJ;if(kk==="c")M2=E4(QN)+M2,QN="";else{QN=+QN;var LP=QN<0;QN=E4(Math.abs(QN),Hd);if(Is){var za=QN.length,qm=1,nZ=-1;a:for(;qm<za;++qm)switch(QN[qm]){case ".":nZ=Fo=qm;break;case "0":nZ===0&&(nZ=qm);Fo=qm;break;default:if(!+QN[qm])break a;nZ>0&&(nZ=0)}QN=nZ>0?QN.slice(0,nZ)+QN.slice(Fo+1):QN}LP&&+QN===0&&(LP=!1);wg=(LP?TY==="("?TY:"-":TY==="-"||TY==="("?"":TY)+wg;M2=(kk==="s"?j82[8+D82/3]:"")+M2+(LP&&TY==="("?")":"");if(Fb)for(LP=-1,
Fo=QN.length;++LP<Fo;)if(JJ=QN.charCodeAt(LP),48>JJ||JJ>57){M2=(JJ===46?hh+QN.slice(LP+1):QN.slice(LP))+M2;QN=QN.slice(0,LP);break}}lt&&!rU&&(QN=v(QN,Infinity));JJ=wg.length+QN.length+M2.length;LP=JJ<yN?Array(yN-JJ+1).join(Cl):"";lt&&rU&&(QN=v(LP+QN,LP.length?yN-M2.length:Infinity),LP="");switch(nj){case "<":QN=wg+QN+M2+LP;break;case "=":QN=wg+LP+QN+M2;break;case "^":QN=LP.slice(0,JJ=LP.length>>1)+wg+QN+M2+LP.slice(JJ);break;default:QN=LP+wg+QN+M2}return Pe(QN)}
xb=cye(xb);var Cl=xb.fill,nj=xb.align,TY=xb.sign,zY=xb.symbol,rU=xb.zero,yN=xb.width,lt=xb.comma,Hd=xb.precision,Is=xb.trim,kk=xb.type;kk==="n"?(lt=!0,kk="g"):$84[kk]||(Hd==null&&(Hd=12),Is=!0,kk="g");if(rU||Cl==="0"&&nj==="=")rU=!0,Cl="0",nj="=";var WE=zY==="$"?Ej[0]:zY==="#"&&/[boxX]/.test(kk)?"0"+kk.toLowerCase():"",V3=zY==="$"?Ej[1]:/[%p]/.test(kk)?Fm:"",E4=$84[kk],Fb=/[defgprs%]/.test(kk);Hd=Hd==null?6:/[gprs]/.test(kk)?Math.max(1,Math.min(21,Hd)):Math.max(0,Math.min(20,Hd));Np.toString=function(){return xb+
""};
return Np}
var v=u.grouping&&u.thousands?fGT(u.grouping,u.thousands):LM5,Ej=u.currency,hh=u.decimal,Pe=u.numerals?vPP(u.numerals):LM5,Fm=u.percent||"%";return{format:A,formatPrefix:function(xb,Np){var Cl=A((xb=cye(xb),xb.type="f",xb));xb=Math.max(-8,Math.min(8,Math.floor($8a(Np)/3)))*3;var nj=Math.pow(10,-xb),TY=j82[8+xb/3];return function(zY){return Cl(nj*zY)+TY}}}}
function jz(){this.reset()}
function fGd(u,A,v){var Ej=u.s=A+v,hh=Ej-A;u.t=A-(Ej-hh)+(v-hh)}
function adR(u){return u>1?Qx:u<-1?-Qx:Math.asin(u)}
function d8R(){}
function vPd(u){var A=u[0];u=u[1];var v=Oi(u);return[v*Oi(A),v*Ap(A),Ap(u)]}
function bXj(u,A){return[u[1]*A[2]-u[2]*A[1],u[2]*A[0]-u[0]*A[2],u[0]*A[1]-u[1]*A[0]]}
function ZX8(u){var A=tlR(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]);u[0]/=A;u[1]/=A;u[2]/=A}
function s8U(){var u=[],A;return{point:function(v,Ej){A.push([v,Ej])},
lineStart:function(){u.push(A=[])},
lineEnd:d8R,rejoin:function(){u.length>1&&u.push(u.pop().concat(u.shift()))},
result:function(){var v=u;u=[];A=null;return v}}}
function Tgh(u,A,v,Ej){this.x=u;this.z=A;this.o=v;this.e=Ej;this.v=!1;this.n=this.p=null}
function lGA(u,A,v,Ej,hh){var Pe=[],Fm=[];u.forEach(function(TY){if(!((zY=TY.length-1)<=0)){var zY,rU=TY[0],yN=TY[zY],lt=rU;if(wA(lt[0]-yN[0])<1E-6&&wA(lt[1]-yN[1])<1E-6){hh.lineStart();for(xb=0;xb<zY;++xb)hh.point((rU=TY[xb])[0],rU[1]);hh.lineEnd()}else Pe.push(zY=new Tgh(rU,TY,null,!0)),Fm.push(zY.o=new Tgh(rU,null,zY,!1)),Pe.push(zY=new Tgh(yN,TY,null,!1)),Fm.push(zY.o=new Tgh(yN,null,zY,!0))}});
if(Pe.length){Fm.sort(A);d8C(Pe);d8C(Fm);var xb=0;for(u=Fm.length;xb<u;++xb)Fm[xb].e=v=!v;v=Pe[0];for(var Np;;){for(var Cl=v,nj=!0;Cl.v;)if((Cl=Cl.n)===v)return;A=Cl.z;hh.lineStart();do{Cl.v=Cl.o.v=!0;if(Cl.e){if(nj)for(xb=0,u=A.length;xb<u;++xb)hh.point((Np=A[xb])[0],Np[1]);else Ej(Cl.x,Cl.n.x,1,hh);Cl=Cl.n}else{if(nj)for(A=Cl.p.z,xb=A.length-1;xb>=0;--xb)hh.point((Np=A[xb])[0],Np[1]);else Ej(Cl.x,Cl.p.x,-1,hh);Cl=Cl.p}Cl=Cl.o;A=Cl.z;nj=!nj}while(!Cl.v);hh.lineEnd()}}}
function d8C(u){if(A=u.length){for(var A,v=0,Ej=u[0],hh;++v<A;)Ej.n=hh=u[v],hh.p=Ej,Ej=hh;Ej.n=hh=u[0];hh.p=Ej}}
function MDP(u){return u.length>1}
function qbt(u,A){return((u=u.x)[0]<0?u[1]-Qx-1E-6:Qx-u[1])-((A=A.x)[0]<0?A[1]-Qx-1E-6:Qx-A[1])}
function etb(){}
function s8Y(u){return function(A,v){var Ej=Oi(A),hh=Oi(v);Ej=u(Ej*hh);return[Ej*hh*Ap(A),Ej*Ap(v)]}}
function Le(u){return function(A,v){var Ej=tlR(A*A+v*v),hh=u(Ej),Pe=Ap(hh);hh=Oi(hh);return[lG5(A*Pe,Ej*hh),adR(Ej&&v*Pe/Ej)]}}
function zta(u){var A=0,v=u.children,Ej=v&&v.length;if(Ej)for(;--Ej>=0;)A+=v[Ej].value;else A=1;u.value=A}
function MDd(u,A){var v=new jA(u);u=+u.value&&(v.value=u.value);var Ej,hh=[v],Pe,Fm,xb,Np;for(A==null&&(A=Q8a);Ej=hh.pop();)if(u&&(Ej.value=+Ej.data.value),(Fm=A(Ej.data))&&(Np=Fm.length))for(Ej.children=Array(Np),xb=Np-1;xb>=0;--xb)hh.push(Pe=Ej.children[xb]=new jA(Fm[xb])),Pe.parent=Ej,Pe.depth=Ej.depth+1;return v.eachBefore(OXW)}
function Q8a(u){return u.children}
function GmP(u){u.data=u.data.data}
function OXW(u){var A=0;do u.height=A;while((u=u.parent)&&u.height<++A)}
function jA(u){this.data=u;this.depth=this.height=0;this.parent=null}
function Bi(u,A,v,Ej){function hh(Pe){return u(Pe=new Date(+Pe)),Pe}
hh.floor=hh;hh.ceil=function(Pe){return u(Pe=new Date(Pe-1)),A(Pe,1),u(Pe),Pe};
hh.round=function(Pe){var Fm=hh(Pe),xb=hh.ceil(Pe);return Pe-Fm<xb-Pe?Fm:xb};
hh.offset=function(Pe,Fm){return A(Pe=new Date(+Pe),Fm==null?1:Math.floor(Fm)),Pe};
hh.range=function(Pe,Fm,xb){var Np=[],Cl;Pe=hh.ceil(Pe);xb=xb==null?1:Math.floor(xb);if(!(Pe<Fm&&xb>0))return Np;do Np.push(Cl=new Date(+Pe)),A(Pe,xb),u(Pe);while(Cl<Pe&&Pe<Fm);return Np};
hh.filter=function(Pe){return Bi(function(Fm){if(Fm>=Fm)for(;u(Fm),!Pe(Fm);)Fm.setTime(Fm-1)},function(Fm,xb){if(Fm>=Fm)if(xb<0)for(;++xb<=0;)for(;A(Fm,-1),!Pe(Fm););
else for(;--xb>=0;)for(;A(Fm,1),!Pe(Fm););})};
v&&(hh.count=function(Pe,Fm){aGR.setTime(+Pe);tDi.setTime(+Fm);u(aGR);u(tDi);return Math.floor(v(aGR,tDi))},hh.every=function(Pe){Pe=Math.floor(Pe);
return isFinite(Pe)&&Pe>0?Pe>1?hh.filter(Ej?function(Fm){return Ej(Fm)%Pe===0}:function(Fm){return hh.count(0,Fm)%Pe===0}):hh:null});
return hh}
function KQ(u){return Bi(function(A){A.setDate(A.getDate()-(A.getDay()+7-u)%7);A.setHours(0,0,0,0)},function(A,v){A.setDate(A.getDate()+v*7)},function(A,v){return(v-A-(v.getTimezoneOffset()-A.getTimezoneOffset())*6E4)/6048E5})}
function pQ(u){return Bi(function(A){A.setUTCDate(A.getUTCDate()-(A.getUTCDay()+7-u)%7);A.setUTCHours(0,0,0,0)},function(A,v){A.setUTCDate(A.getUTCDate()+v*7)},function(A,v){return(v-A)/6048E5})}
function CZ3(u){if(0<=u.y&&u.y<100){var A=new Date(-1,u.m,u.d,u.H,u.M,u.S,u.L);A.setFullYear(u.y);return A}return new Date(u.y,u.m,u.d,u.H,u.M,u.S,u.L)}
function wvm(u){if(0<=u.y&&u.y<100){var A=new Date(Date.UTC(-1,u.m,u.d,u.H,u.M,u.S,u.L));A.setUTCFullYear(u.y);return A}return new Date(Date.UTC(u.y,u.m,u.d,u.H,u.M,u.S,u.L))}
function DP(u){return{y:u,m:0,d:1,H:0,M:0,S:0,L:0}}
function kFA(u){function A(M2,Fo){return function(JJ){var LP=[],za=-1,qm=0,nZ=M2.length,Fu,T6;for(JJ instanceof Date||(JJ=new Date(+JJ));++za<nZ;)if(M2.charCodeAt(za)===37){LP.push(M2.slice(qm,za));(qm=qbC[Fu=M2.charAt(++za)])!=null?Fu=M2.charAt(++za):qm=Fu==="e"?" ":"0";if(T6=Fo[Fu])Fu=T6(JJ,qm);LP.push(Fu);qm=za+1}LP.push(M2.slice(qm,za));return LP.join("")}}
function v(M2,Fo){return function(JJ){var LP=DP(1900);if(Ej(LP,M2,JJ,0)!=JJ.length)return null;if("Q"in LP)return new Date(LP.Q);"p"in LP&&(LP.H=LP.H%12+LP.p*12);if("V"in LP){if(LP.V<1||LP.V>53)return null;"w"in LP||(LP.w=1);if("Z"in LP){JJ=wvm(DP(LP.y));var za=JJ.getUTCDay();JJ=za>4||za===0?THR.ceil(JJ):THR(JJ);JJ=zt4.offset(JJ,(LP.V-1)*7);LP.y=JJ.getUTCFullYear();LP.m=JJ.getUTCMonth();LP.d=JJ.getUTCDate()+(LP.w+6)%7}else JJ=Fo(DP(LP.y)),za=JJ.getDay(),JJ=za>4||za===0?wwI.ceil(JJ):wwI(JJ),JJ=Q84.offset(JJ,
(LP.V-1)*7),LP.y=JJ.getFullYear(),LP.m=JJ.getMonth(),LP.d=JJ.getDate()+(LP.w+6)%7}else if("W"in LP||"U"in LP)"w"in LP||(LP.w="u"in LP?LP.u%7:"W"in LP?1:0),za="Z"in LP?wvm(DP(LP.y)).getUTCDay():Fo(DP(LP.y)).getDay(),LP.m=0,LP.d="W"in LP?(LP.w+6)%7+LP.W*7-(za+5)%7:LP.w+LP.U*7-(za+6)%7;return"Z"in LP?(LP.H+=LP.Z/100|0,LP.M+=LP.Z%100,wvm(LP)):Fo(LP)}}
function Ej(M2,Fo,JJ,LP){for(var za=0,qm=Fo.length,nZ=JJ.length,Fu;za<qm;){if(LP>=nZ)return-1;Fu=Fo.charCodeAt(za++);if(Fu===37){if(Fu=Fo.charAt(za++),Fu=wg[Fu in qbC?Fo.charAt(za++):Fu],!Fu||(LP=Fu(M2,JJ,LP))<0)return-1}else if(Fu!=JJ.charCodeAt(LP++))return-1}return LP}
var hh=u.dateTime,Pe=u.date,Fm=u.time,xb=u.periods,Np=u.days,Cl=u.shortDays,nj=u.months,TY=u.shortMonths,zY=$C(xb),rU=fe(xb),yN=$C(Np),lt=fe(Np),Hd=$C(Cl),Is=fe(Cl),kk=$C(nj),WE=fe(nj),V3=$C(TY),E4=fe(TY),Fb={a:function(M2){return Cl[M2.getDay()]},
A:function(M2){return Np[M2.getDay()]},
b:function(M2){return TY[M2.getMonth()]},
B:function(M2){return nj[M2.getMonth()]},
c:null,d:OX2,e:OX2,f:EgG,H:SzY,I:RzA,j:VfR,L:Gmd,m:NRx,M:IVA,p:function(M2){return xb[+(M2.getHours()>=12)]},
Q:CZ8,s:kF5,S:ng3,u:i63,U:hzP,V:JUY,w:cUG,W:m1I,x:null,X:null,y:ezA,Y:aVY,Z:tf2,"%":EgY},QN={a:function(M2){return Cl[M2.getUTCDay()]},
A:function(M2){return Np[M2.getUTCDay()]},
b:function(M2){return TY[M2.getUTCMonth()]},
B:function(M2){return nj[M2.getUTCMonth()]},
c:null,d:SzA,e:SzA,f:TRP,H:w32,I:P6T,j:BR2,L:Rz5,m:Yz2,M:Wwx,p:function(M2){return xb[+(M2.getUTCHours()>=12)]},
Q:CZ8,s:kF5,S:FwI,u:yUG,U:ogW,V:X3T,w:ggx,W:U12,x:null,X:null,y:H6P,Y:KwA,Z:p3Y,"%":EgY},wg={a:function(M2,Fo,JJ){return(Fo=Hd.exec(Fo.slice(JJ)))?(M2.w=Is[Fo[0].toLowerCase()],JJ+Fo[0].length):-1},
A:function(M2,Fo,JJ){return(Fo=yN.exec(Fo.slice(JJ)))?(M2.w=lt[Fo[0].toLowerCase()],JJ+Fo[0].length):-1},
b:function(M2,Fo,JJ){return(Fo=V3.exec(Fo.slice(JJ)))?(M2.m=E4[Fo[0].toLowerCase()],JJ+Fo[0].length):-1},
B:function(M2,Fo,JJ){return(Fo=kk.exec(Fo.slice(JJ)))?(M2.m=WE[Fo[0].toLowerCase()],JJ+Fo[0].length):-1},
c:function(M2,Fo,JJ){return Ej(M2,hh,Fo,JJ)},
d:VfC,e:VfC,f:AUW,H:NRC,I:NRC,j:rUa,L:uk3,m:x1I,M:Lw0,p:function(M2,Fo,JJ){return(Fo=zY.exec(Fo.slice(JJ)))?(M2.p=rU[Fo[0].toLowerCase()],JJ+Fo[0].length):-1},
Q:jQG,s:D1P,S:$1t,u:fVY,U:vgA,V:b60,w:Z6P,W:d1W,x:function(M2,Fo,JJ){return Ej(M2,Pe,Fo,JJ)},
X:function(M2,Fo,JJ){return Ej(M2,Fm,Fo,JJ)},
y:sQY,Y:lVA,Z:Mf2,"%":qz3};Fb.x=A(Pe,Fb);Fb.X=A(Fm,Fb);Fb.c=A(hh,Fb);QN.x=A(Pe,QN);QN.X=A(Fm,QN);QN.c=A(hh,QN);return{format:function(M2){var Fo=A(M2,Fb);Fo.toString=function(){return M2};
return Fo},
parse:function(M2){var Fo=v(M2,CZ3);Fo.toString=function(){return M2};
return Fo},
utcFormat:function(M2){var Fo=A(M2,QN);Fo.toString=function(){return M2};
return Fo},
utcParse:function(M2){var Fo=v(M2,wvm);Fo.toString=function(){return M2};
return Fo}}}
function yh(u,A,v){var Ej=u<0?"-":"";u=(Ej?-u:u)+"";var hh=u.length;return Ej+(hh<v?Array(v-hh+1).join(A)+u:u)}
function zzR(u){return u.replace(QQR,"\\$&")}
function $C(u){return new RegExp("^(?:"+u.map(zzR).join("|")+")","i")}
function fe(u){for(var A={},v=-1,Ej=u.length;++v<Ej;)A[u[v].toLowerCase()]=v;return A}
function Z6P(u,A,v){return(A=Fy.exec(A.slice(v,v+1)))?(u.w=+A[0],v+A[0].length):-1}
function fVY(u,A,v){return(A=Fy.exec(A.slice(v,v+1)))?(u.u=+A[0],v+A[0].length):-1}
function vgA(u,A,v){return(A=Fy.exec(A.slice(v,v+2)))?(u.U=+A[0],v+A[0].length):-1}
function b60(u,A,v){return(A=Fy.exec(A.slice(v,v+2)))?(u.V=+A[0],v+A[0].length):-1}
function d1W(u,A,v){return(A=Fy.exec(A.slice(v,v+2)))?(u.W=+A[0],v+A[0].length):-1}
function lVA(u,A,v){return(A=Fy.exec(A.slice(v,v+4)))?(u.y=+A[0],v+A[0].length):-1}
function sQY(u,A,v){return(A=Fy.exec(A.slice(v,v+2)))?(u.y=+A[0]+(+A[0]>68?1900:2E3),v+A[0].length):-1}
function Mf2(u,A,v){return(A=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(A.slice(v,v+6)))?(u.Z=A[1]?0:-(A[2]+(A[3]||"00")),v+A[0].length):-1}
function x1I(u,A,v){return(A=Fy.exec(A.slice(v,v+2)))?(u.m=A[0]-1,v+A[0].length):-1}
function VfC(u,A,v){return(A=Fy.exec(A.slice(v,v+2)))?(u.d=+A[0],v+A[0].length):-1}
function rUa(u,A,v){return(A=Fy.exec(A.slice(v,v+3)))?(u.m=0,u.d=+A[0],v+A[0].length):-1}
function NRC(u,A,v){return(A=Fy.exec(A.slice(v,v+2)))?(u.H=+A[0],v+A[0].length):-1}
function Lw0(u,A,v){return(A=Fy.exec(A.slice(v,v+2)))?(u.M=+A[0],v+A[0].length):-1}
function $1t(u,A,v){return(A=Fy.exec(A.slice(v,v+2)))?(u.S=+A[0],v+A[0].length):-1}
function uk3(u,A,v){return(A=Fy.exec(A.slice(v,v+3)))?(u.L=+A[0],v+A[0].length):-1}
function AUW(u,A,v){return(A=Fy.exec(A.slice(v,v+6)))?(u.L=Math.floor(A[0]/1E3),v+A[0].length):-1}
function qz3(u,A,v){return(u=O6a.exec(A.slice(v,v+1)))?v+u[0].length:-1}
function jQG(u,A,v){return(A=Fy.exec(A.slice(v)))?(u.Q=+A[0],v+A[0].length):-1}
function D1P(u,A,v){return(A=Fy.exec(A.slice(v)))?(u.Q=+A[0]*1E3,v+A[0].length):-1}
function OX2(u,A){return yh(u.getDate(),A,2)}
function SzY(u,A){return yh(u.getHours(),A,2)}
function RzA(u,A){return yh(u.getHours()%12||12,A,2)}
function VfR(u,A){return yh(1+Q84.count(S5(u),u),A,3)}
function Gmd(u,A){return yh(u.getMilliseconds(),A,3)}
function EgG(u,A){return Gmd(u,A)+"000"}
function NRx(u,A){return yh(u.getMonth()+1,A,2)}
function IVA(u,A){return yh(u.getMinutes(),A,2)}
function ng3(u,A){return yh(u.getSeconds(),A,2)}
function i63(u){u=u.getDay();return u===0?7:u}
function hzP(u,A){return yh(GFt.count(S5(u),u),A,2)}
function JUY(u,A){var v=u.getDay();u=v>=4||v===0?PZm(u):PZm.ceil(u);return yh(PZm.count(S5(u),u)+(S5(u).getDay()===4),A,2)}
function cUG(u){return u.getDay()}
function m1I(u,A){return yh(wwI.count(S5(u),u),A,2)}
function ezA(u,A){return yh(u.getFullYear()%100,A,2)}
function aVY(u,A){return yh(u.getFullYear()%1E4,A,4)}
function tf2(u){u=u.getTimezoneOffset();return(u>0?"-":(u*=-1,"+"))+yh(u/60|0,"0",2)+yh(u%60,"0",2)}
function SzA(u,A){return yh(u.getUTCDate(),A,2)}
function w32(u,A){return yh(u.getUTCHours(),A,2)}
function P6T(u,A){return yh(u.getUTCHours()%12||12,A,2)}
function BR2(u,A){return yh(1+zt4.count(RN(u),u),A,3)}
function Rz5(u,A){return yh(u.getUTCMilliseconds(),A,3)}
function TRP(u,A){return Rz5(u,A)+"000"}
function Yz2(u,A){return yh(u.getUTCMonth()+1,A,2)}
function Wwx(u,A){return yh(u.getUTCMinutes(),A,2)}
function FwI(u,A){return yh(u.getUTCSeconds(),A,2)}
function yUG(u){u=u.getUTCDay();return u===0?7:u}
function ogW(u,A){return yh(C6I.count(RN(u),u),A,2)}
function X3T(u,A){var v=u.getUTCDay();u=v>=4||v===0?BHm(u):BHm.ceil(u);return yh(BHm.count(RN(u),u)+(RN(u).getUTCDay()===4),A,2)}
function ggx(u){return u.getUTCDay()}
function U12(u,A){return yh(THR.count(RN(u),u),A,2)}
function H6P(u,A){return yh(u.getUTCFullYear()%100,A,2)}
function KwA(u,A){return yh(u.getUTCFullYear()%1E4,A,4)}
function p3Y(){return"+0000"}
function EgY(){return"%"}
function CZ8(u){return+u}
function kF5(u){return Math.floor(+u/1E3)}
function wT(u){for(var A=u.length/6|0,v=Array(A),Ej=0;Ej<A;)v[Ej]="#"+u.slice(Ej*6,++Ej*6);return v}
function Qh(u){return kD2(u[u.length-1])}
function PMt(u){var A=u.length;return function(v){return u[Math.max(0,Math.min(A-1,Math.floor(v*A)))]}}
function IV5(u){this._context=u}
function ng8(u){this._curve=u}
function i68(u,A,v){var Ej=u._x1-u._x0;A-=u._x1;var hh=(u._y1-u._y0)/(Ej||A<0&&-0);u=(v-u._y1)/(A||Ej<0&&-0);return((hh<0?-1:1)+(u<0?-1:1))*Math.min(Math.abs(hh),Math.abs(u),.5*Math.abs((hh*A+u*Ej)/(Ej+A)))||0}
function hzd(u,A){var v=u._x1-u._x0;return v?(3*(u._y1-u._y0)/v-A)/2:A}
function Ybb(u,A,v){var Ej=u._x0,hh=u._x1,Pe=u._y1,Fm=(hh-Ej)/3;u._context.bezierCurveTo(Ej+Fm,u._y0+Fm*A,hh-Fm,Pe-Fm*v,hh,Pe)}
function WMe(u){this._context=u}
function JUA(u){this._context=u}
function vQ(u,A,v){this.k=u;this.x=A;this.y=v}
(function(u){u.length===1&&(u=E(u));return{left:function(A,v,Ej,hh){Ej==null&&(Ej=0);hh==null&&(hh=A.length);for(;Ej<hh;){var Pe=Ej+hh>>>1;u(A[Pe],v)<0?Ej=Pe+1:hh=Pe}return Ej},
right:function(A,v,Ej,hh){Ej==null&&(Ej=0);hh==null&&(hh=A.length);for(;Ej<hh;){var Pe=Ej+hh>>>1;u(A[Pe],v)>0?hh=Pe:Ej=Pe+1}return Ej}}})(k);
var M6I={value:function(){}};
R.prototype=S.prototype={constructor:R,on:function(u,A){var v=this._,Ej=V(u+"",v),hh,Pe=-1,Fm=Ej.length;if(arguments.length<2)for(;++Pe<Fm;){var xb;if(xb=hh=(u=Ej[Pe]).type){a:{xb=v[hh];for(var Np=0,Cl=xb.length;Np<Cl;++Np)if((hh=xb[Np]).name===u.name){hh=hh.value;break a}hh=void 0}xb=hh}if(xb)return hh}else{if(A!=null&&typeof A!=="function")throw Error("Ce`"+A);for(;++Pe<Fm;)if(hh=(u=Ej[Pe]).type)v[hh]=N(v[hh],u.name,A);else if(A==null)for(hh in v)v[hh]=N(v[hh],u.name,null);return this}},
copy:function(){var u={},A=this._,v;for(v in A)u[v]=A[v].slice();return new R(u)},
call:function(u,A){if((hh=arguments.length-2)>0)for(var v=Array(hh),Ej=0,hh,Pe;Ej<hh;++Ej)v[Ej]=arguments[Ej+2];if(!this._.hasOwnProperty(u))throw Error("we`"+u);Pe=this._[u];Ej=0;for(hh=Pe.length;Ej<hh;++Ej)Pe[Ej].value.apply(A,v)},
apply:function(u,A,v){if(!this._.hasOwnProperty(u))throw Error("we`"+u);u=this._[u];for(var Ej=0,hh=u.length;Ej<hh;++Ej)u[Ej].value.apply(A,v)}};
var zb={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/"},cUY=function(u){return function(){return this.matches(u)}};
if(typeof document!=="undefined"){var bm=document.documentElement;if(!bm.matches){var E8G=bm.webkitMatchesSelector||bm.msMatchesSelector||bm.mozMatchesSelector||bm.oMatchesSelector;cUY=function(u){return function(){return E8G.call(this,u)}}}}var m1T=cUY;
B.prototype={constructor:B,appendChild:function(u){return this._parent.insertBefore(u,this._next)},
insertBefore:function(u,A){return this._parent.insertBefore(u,A)},
querySelector:function(u){return this._parent.querySelector(u)},
querySelectorAll:function(u){return this._parent.querySelectorAll(u)}};
var tDA={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(tDA={mouseenter:"mouseover",mouseleave:"mouseout"}));var qN0=[null];aC.prototype=Rt.prototype={constructor:aC,select:function(u){typeof u!=="function"&&(u=w(u));for(var A=this._groups,v=A.length,Ej=Array(v),hh=0;hh<v;++hh)for(var Pe=A[hh],Fm=Pe.length,xb=Ej[hh]=Array(Fm),Np,Cl,nj=0;nj<Fm;++nj)(Np=Pe[nj])&&(Cl=u.call(Np,Np.__data__,nj,Pe))&&("__data__"in Np&&(Cl.__data__=Np.__data__),xb[nj]=Cl);return new aC(Ej,
this._parents)},
filter:function(u){typeof u!=="function"&&(u=m1T(u));for(var A=this._groups,v=A.length,Ej=Array(v),hh=0;hh<v;++hh)for(var Pe=A[hh],Fm=Pe.length,xb=Ej[hh]=[],Np,Cl=0;Cl<Fm;++Cl)(Np=Pe[Cl])&&u.call(Np,Np.__data__,Cl,Pe)&&xb.push(Np);return new aC(Ej,this._parents)},
data:function(u,A){if(!u)return rU=Array(this.size()),Cl=-1,this.each(function(kk){rU[++Cl]=kk}),rU;
var v=A?r:K,Ej=this._parents,hh=this._groups;typeof u!=="function"&&(u=F(u));for(var Pe=hh.length,Fm=Array(Pe),xb=Array(Pe),Np=Array(Pe),Cl=0;Cl<Pe;++Cl){var nj=Ej[Cl],TY=hh[Cl],zY=TY.length,rU=u.call(nj,nj&&nj.__data__,Cl,Ej),yN=rU.length,lt=xb[Cl]=Array(yN),Hd=Fm[Cl]=Array(yN);zY=Np[Cl]=Array(zY);v(nj,TY,lt,Hd,zY,rU,A);TY=nj=0;for(var Is;nj<yN;++nj)if(zY=lt[nj]){for(nj>=TY&&(TY=nj+1);!(Is=Hd[TY])&&++TY<yN;);zY._next=Is||null}}Fm=new aC(Fm,Ej);Fm._enter=xb;Fm._exit=Np;return Fm},
enter:function(){return new aC(this._enter||this._groups.map(P),this._parents)},
exit:function(){return new aC(this._exit||this._groups.map(P),this._parents)},
merge:function(u){var A=this._groups;u=u._groups;for(var v=A.length,Ej=Math.min(v,u.length),hh=Array(v),Pe=0;Pe<Ej;++Pe)for(var Fm=A[Pe],xb=u[Pe],Np=Fm.length,Cl=hh[Pe]=Array(Np),nj,TY=0;TY<Np;++TY)if(nj=Fm[TY]||xb[TY])Cl[TY]=nj;for(;Pe<v;++Pe)hh[Pe]=A[Pe];return new aC(hh,this._parents)},
order:function(){for(var u=this._groups,A=-1,v=u.length;++A<v;)for(var Ej=u[A],hh=Ej.length-1,Pe=Ej[hh],Fm;--hh>=0;)if(Fm=Ej[hh])Pe&&Pe!==Fm.nextSibling&&Pe.parentNode.insertBefore(Fm,Pe),Pe=Fm;return this},
sort:function(u){function A(TY,zY){return TY&&zY?u(TY.__data__,zY.__data__):!TY-!zY}
u||(u=x);for(var v=this._groups,Ej=v.length,hh=Array(Ej),Pe=0;Pe<Ej;++Pe){for(var Fm=v[Pe],xb=Fm.length,Np=hh[Pe]=Array(xb),Cl,nj=0;nj<xb;++nj)if(Cl=Fm[nj])Np[nj]=Cl;Np.sort(A)}return(new aC(hh,this._parents)).order()},
call:function(){var u=arguments[0];arguments[0]=this;u.apply(null,arguments);return this},
nodes:function(){var u=Array(this.size()),A=-1;this.each(function(){u[++A]=this});
return u},
node:function(){for(var u=this._groups,A=0,v=u.length;A<v;++A)for(var Ej=u[A],hh=0,Pe=Ej.length;hh<Pe;++hh){var Fm=Ej[hh];if(Fm)return Fm}return null},
size:function(){var u=0;this.each(function(){++u});
return u},
empty:function(){return!this.node()},
each:function(u){for(var A=this._groups,v=0,Ej=A.length;v<Ej;++v)for(var hh=A[v],Pe=0,Fm=hh.length,xb;Pe<Fm;++Pe)(xb=hh[Pe])&&u.call(xb,xb.__data__,Pe,hh);return this},
attr:function(u,A){var v=h(u);if(arguments.length<2){var Ej=this.node();return v.local?Ej.getAttributeNS(v.space,v.local):Ej.getAttribute(v)}return this.each((A==null?v.local?q:L:typeof A==="function"?v.local?kb:z:v.local?d:M)(v,A))},
style:function(u,A,v){return arguments.length>1?this.each((A==null?TI:typeof A==="function"?Ah:a1)(u,A,v==null?"":v)):th(this.node(),u)},
property:function(u,A){return arguments.length>1?this.each((A==null?He:typeof A==="function"?Xm:ve)(u,A)):this.node()[u]},
text:function(u){return arguments.length?this.each(u==null?U5:(typeof u==="function"?gY:l4)(u)):this.node().textContent},
html:function(u){return arguments.length?this.each(u==null?IC:(typeof u==="function"?Kj:md)(u)):this.node().innerHTML},
append:function(u){var A=typeof u==="function"?u:a(u);return this.select(function(){return this.appendChild(A.apply(this,arguments))})},
insert:function(u,A){var v=typeof u==="function"?u:a(u),Ej=A==null?Lj:typeof A==="function"?A:w(A);return this.select(function(){return this.insertBefore(v.apply(this,arguments),Ej.apply(this,arguments)||null)})},
remove:function(){return this.each(H0)},
clone:function(u){return this.select(u?iC:TG)},
datum:function(u){return arguments.length?this.property("__data__",u):this.node().__data__},
on:function(u,A,v){var Ej=It(u+""),hh=Ej.length,Pe;if(arguments.length<2){var Fm=this.node().__on;if(Fm)for(var xb=0,Np=Fm.length,Cl;xb<Np;++xb){var nj=0;for(Cl=Fm[xb];nj<hh;++nj)if((Pe=Ej[nj]).type===Cl.type&&Pe.name===Cl.name)return Cl.value}}else{Fm=A?VP:Wz;v==null&&(v=!1);for(nj=0;nj<hh;++nj)this.each(Fm(Ej[nj],A,v));return this}},
dispatch:function(u,A){return this.each((typeof A==="function"?tC:Mp)(u,A))}};
var z1P=0;zI.prototype=function(){return new zI}.prototype={constructor:zI,
get:function(u){for(var A=this._;!(A in u);)if(!(u=u.parentNode))return;return u[A]},
set:function(u,A){return u[this._]=A},
remove:function(u){return this._ in u&&delete u[this._]},
toString:function(){return this._}};
var Vj=1/.7,QAI=/^#([0-9a-f]{3})$/,OGa=/^#([0-9a-f]{6})$/,GiY=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),CL2=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),kmP=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),EPt=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*\\)$"),
Sbx=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Rt3=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*\\)$"),THC={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};
Bz(EY,pP,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Bz(ot,Qd,W0(EY,{brighter:function(u){u=u==null?Vj:Math.pow(Vj,u);return new ot(this.r*u,this.g*u,this.b*u,this.opacity)},
darker:function(u){u=u==null?.7:Math.pow(.7,u);return new ot(this.r*u,this.g*u,this.b*u,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+N2(this.r)+N2(this.g)+N2(this.b)},
toString:function(){var u=this.opacity;u=isNaN(u)?1:Math.max(0,Math.min(1,u));return(u===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(u===1?")":", "+u+")")}}));
Bz(YO,jo,W0(EY,{brighter:function(u){u=u==null?Vj:Math.pow(Vj,u);return new YO(this.h,this.s,this.l*u,this.opacity)},
darker:function(u){u=u==null?.7:Math.pow(.7,u);return new YO(this.h,this.s,this.l*u,this.opacity)},
rgb:function(){var u=this.h%360+(this.h<0)*360,A=this.l,v=A+(A<.5?A:1-A)*(isNaN(u)||isNaN(this.s)?0:this.s);A=2*A-v;return new ot(nO(u>=240?u-240:u+120,A,v),nO(u,A,v),nO(u<120?u+240:u-120,A,v),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 wwd=Math.PI/180,Yb2=180/Math.PI,BH8=4/29,kE=6/29,PZ8=3*kE*kE,VDY=kE*kE*kE;Bz(pl,function(u,A,v,Ej){return arguments.length===1?mG(u):new pl(u,A,v,Ej==null?1:Ej)},W0(EY,{brighter:function(u){return new pl(this.l+18*(u==null?1:u),this.a,this.b,this.opacity)},
darker:function(u){return new pl(this.l-18*(u==null?1:u),this.a,this.b,this.opacity)},
rgb:function(){var u=(this.l+16)/116,A=isNaN(this.a)?u:u+this.a/500,v=isNaN(this.b)?u:u-this.b/200;A=.96422*MA(A);u=1*MA(u);v=.82521*MA(v);return new ot(yd(3.1338561*A-1.6168667*u-.4906146*v),yd(-.9787684*A+1.9161415*u+.033454*v),yd(.0719453*A-.2289914*u+1.4052427*v),this.opacity)}}));
Bz(X8,AR,W0(EY,{brighter:function(u){return new X8(this.h,this.c,this.l+18*(u==null?1:u),this.opacity)},
darker:function(u){return new X8(this.h,this.c,this.l-18*(u==null?1:u),this.opacity)},
rgb:function(){return mG(this).rgb()}}));
var WMz=1.78277*-.29227-.1347134789;Bz(Dx,oC,W0(EY,{brighter:function(u){u=u==null?Vj:Math.pow(Vj,u);return new Dx(this.h,this.s,this.l*u,this.opacity)},
darker:function(u){u=u==null?.7:Math.pow(.7,u);return new Dx(this.h,this.s,this.l*u,this.opacity)},
rgb:function(){var u=isNaN(this.h)?0:(this.h+120)*wwd,A=+this.l,v=isNaN(this.s)?0:this.s*A*(1-A),Ej=Math.cos(u);u=Math.sin(u);return new ot(255*(A+v*(-.14861*Ej+1.78277*u)),255*(A+v*(-.29227*Ej+-.90649*u)),255*(A+1.97294*Ej*v),this.opacity)}}));
var gP4=function v(A){function Ej(Pe,Fm){var xb=hh((Pe=Qd(Pe)).r,(Fm=Qd(Fm)).r),Np=hh(Pe.g,Fm.g),Cl=hh(Pe.b,Fm.b),nj=k6(Pe.opacity,Fm.opacity);return function(TY){Pe.r=xb(TY);Pe.g=Np(TY);Pe.b=Cl(TY);Pe.opacity=nj(TY);return Pe+""}}
var hh=Om(A);Ej.gamma=v;return Ej}(1),kD2=fZ(function(A){var v=A.length-1;
return function(Ej){var hh=Ej<=0?Ej=0:Ej>=1?(Ej=1,v-1):Math.floor(Ej*v),Pe=A[hh],Fm=A[hh+1];return YJ((Ej-hh/v)*v,hh>0?A[hh-1]:2*Pe-Fm,Pe,Fm,hh<v-1?A[hh+2]:2*Fm-Pe)}});
fZ(function(A){var v=A.length;return function(Ej){var hh=Math.floor(((Ej%=1)<0?++Ej:Ej)*v);return YJ((Ej-hh/v)*v,A[(hh+v-1)%v],A[hh%v],A[(hh+1)%v],A[(hh+2)%v])}});
var SbR=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rtm=new RegExp(SbR.source,"g"),FM5=180/Math.PI,FMj={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},ZP,yyC,ez5,Bg1,SVx=dU(function(A){if(A==="none")return FMj;ZP||(ZP=document.createElement("DIV"),yyC=document.documentElement,ez5=document.defaultView);ZP.style.transform=A;A=ez5.getComputedStyle(yyC.appendChild(ZP),null).getPropertyValue("transform");yyC.removeChild(ZP);A=A.slice(7,-1).split(",");return X3(+A[0],+A[1],+A[2],+A[3],
+A[4],+A[5])},"px, ","px)","deg)"),Rba=dU(function(A){if(A==null)return FMj;
Bg1||(Bg1=document.createElementNS("http://www.w3.org/2000/svg","g"));Bg1.setAttribute("transform",A);if(!(A=Bg1.transform.baseVal.consolidate()))return FMj;A=A.matrix;return X3(A.a,A.b,A.c,A.d,A.e,A.f)},", ",")",")");
c0(vU);c0(k6);tx(vU);tx(k6);zo(vU);var oPt=zo(k6),El=0,rf=0,xC=0,JDh,um,hxj=0,UW=0,i2m=0,Ak=typeof performance==="object"&&performance.now?performance:Date,yy4=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(A){setTimeout(A,17)};
jQ.prototype=oB.prototype={constructor:jQ,restart:function(A,v,Ej){if(typeof A!=="function")throw new TypeError("De");Ej=(Ej==null?lk():+Ej)+(v==null?0:+v);this._next||um===this||(um?um._next=this:JDh=this,um=this);this._call=A;this._time=Ej;ge()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,ge())}};
var IGA=S("start","end","interrupt"),nPI=[],VEW=Rt.prototype.constructor,aVA=0,No=Rt.prototype;Ti.prototype=function(A){return Rt().transition(A)}.prototype={constructor:Ti,
select:function(A){var v=this._name,Ej=this._id;typeof A!=="function"&&(A=w(A));for(var hh=this._groups,Pe=hh.length,Fm=Array(Pe),xb=0;xb<Pe;++xb)for(var Np=hh[xb],Cl=Np.length,nj=Fm[xb]=Array(Cl),TY,zY,rU=0;rU<Cl;++rU)(TY=Np[rU])&&(zY=A.call(TY,TY.__data__,rU,Np))&&("__data__"in TY&&(zY.__data__=TY.__data__),nj[rU]=zY,VDi(nj[rU],v,Ej,rU,nj,vs(TY,Ej)));return new Ti(Fm,this._parents,v,Ej)},
filter:function(A){typeof A!=="function"&&(A=m1T(A));for(var v=this._groups,Ej=v.length,hh=Array(Ej),Pe=0;Pe<Ej;++Pe)for(var Fm=v[Pe],xb=Fm.length,Np=hh[Pe]=[],Cl,nj=0;nj<xb;++nj)(Cl=Fm[nj])&&A.call(Cl,Cl.__data__,nj,Fm)&&Np.push(Cl);return new Ti(hh,this._parents,this._name,this._id)},
merge:function(A){if(A._id!==this._id)throw Error();var v=this._groups;A=A._groups;for(var Ej=v.length,hh=Math.min(Ej,A.length),Pe=Array(Ej),Fm=0;Fm<hh;++Fm)for(var xb=v[Fm],Np=A[Fm],Cl=xb.length,nj=Pe[Fm]=Array(Cl),TY,zY=0;zY<Cl;++zY)if(TY=xb[zY]||Np[zY])nj[zY]=TY;for(;Fm<Ej;++Fm)Pe[Fm]=v[Fm];return new Ti(Pe,this._parents,this._name,this._id)},
selection:function(){return new VEW(this._groups,this._parents)},
transition:function(){for(var A=this._name,v=this._id,Ej=++aVA,hh=this._groups,Pe=hh.length,Fm=0;Fm<Pe;++Fm)for(var xb=hh[Fm],Np=xb.length,Cl,nj=0;nj<Np;++nj)if(Cl=xb[nj]){var TY=vs(Cl,v);VDi(Cl,A,Ej,nj,xb,{time:TY.time+TY.delay+TY.duration,delay:0,duration:TY.duration,ease:TY.ease})}return new Ti(hh,this._parents,A,Ej)},
call:No.call,nodes:No.nodes,node:No.node,size:No.size,empty:No.empty,each:No.each,on:function(A,v){var Ej=this._id;return arguments.length<2?vs(this.node(),Ej).on.on(A):this.each(oPP(Ej,A,v))},
attr:function(A,v){var Ej=h(A),hh=Ej==="transform"?Rba:XwT;return this.attrTween(A,typeof v==="function"?(Ej.local?tDY:aGx)(Ej,hh,IGj(this,"attr."+A,v)):v==null?(Ej.local?cy0:Jy2)(Ej):(Ej.local?etW:m8P)(Ej,hh,v+""))},
attrTween:function(A,v){var Ej="attr."+A;if(arguments.length<2)return(Ej=this.tween(Ej))&&Ej._value;if(v==null)return this.tween(Ej,null);if(typeof v!=="function")throw Error();var hh=h(A);return this.tween(Ej,(hh.local?THx:wwT)(hh,v))},
style:function(A,v,Ej){var hh=A==="transform"?SVx:XwT;return v==null?this.styleTween(A,gPa(A,hh)).on("end.style."+A,U80(A)):this.styleTween(A,typeof v==="function"?KMA(A,hh,IGj(this,"style."+A,v)):HXW(A,hh,v+""),Ej)},
styleTween:function(A,v,Ej){var hh="style."+A;if(arguments.length<2)return(hh=this.tween(hh))&&hh._value;if(v==null)return this.tween(hh,null);if(typeof v!=="function")throw Error();return this.tween(hh,pwt(A,v,Ej==null?"":Ej))},
text:function(A){return this.tween("text",typeof A==="function"?ryt(IGj(this,"text",A)):Ay0(A==null?"":A+""))},
remove:function(){return this.on("end.remove",XwI(this._id))},
tween:function(A,v){var Ej=this._id;if(arguments.length<2){Ej=vs(this.node(),Ej).tween;for(var hh=0,Pe=Ej.length,Fm;hh<Pe;++hh)if((Fm=Ej[hh]).name===A)return Fm.value;return null}return this.each((v==null?iXT:htR)(Ej,A,v))},
delay:function(A){var v=this._id;return arguments.length?this.each((typeof A==="function"?PZ3:BH3)(v,A)):vs(this.node(),v).delay},
duration:function(A){var v=this._id;return arguments.length?this.each((typeof A==="function"?YbW:WM0)(v,A)):vs(this.node(),v).duration},
ease:function(A){var v=this._id;return arguments.length?this.each(FMA(v,A)):vs(this.node(),v).ease}};
var Xwh={time:null,delay:0,duration:250,ease:function(A){return((A*=2)<=1?A*A*A:(A-=2)*A*A+2)/2}};
Rt.prototype.transition=function(A){var v;if(A instanceof Ti){var Ej=A._id;A=A._name}else Ej=++aVA,(v=Xwh).time=lk(),A=A==null?null:A+"";for(var hh=this._groups,Pe=hh.length,Fm=0;Fm<Pe;++Fm)for(var xb=hh[Fm],Np=xb.length,Cl,nj=0;nj<Np;++nj)if(Cl=xb[nj]){var TY=Cl,zY=A,rU=Ej,yN=nj,lt=xb,Hd;if(!(Hd=v))a:{Hd=void 0;for(var Is=Ej;!(Hd=Cl.__transition)||!(Hd=Hd[Is]);)if(!(Cl=Cl.parentNode)){Hd=(Xwh.time=lk(),Xwh);break a}}VDi(TY,zY,rU,yN,lt,Hd)}return new Ti(hh,this._parents,A,Ej)};
["e","w"].map(nPh);["n","s"].map(nPh);"n e s w nw ne se sw".split(" ").map(nPh);iXI.prototype=function(){return new iXI}.prototype={constructor:iXI,
moveTo:function(A,v){this._+="M"+(this._x0=this._x1=+A)+","+(this._y0=this._y1=+v)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(A,v){this._+="L"+(this._x1=+A)+","+(this._y1=+v)},
bezierCurveTo:function(A,v,Ej,hh,Pe,Fm){this._+="C"+ +A+","+ +v+","+ +Ej+","+ +hh+","+(this._x1=+Pe)+","+(this._y1=+Fm)},
rect:function(A,v,Ej,hh){this._+="M"+(this._x0=this._x1=+A)+","+(this._y0=this._y1=+v)+"h"+ +Ej+"v"+ +hh+"h"+-Ej+"Z"},
toString:function(){return this._}};
cDj.prototype=U8z.prototype={constructor:cDj,has:function(A){return" "+A in this},
get:function(A){return this[" "+A]},
set:function(A,v){this[" "+A]=v;return this},
remove:function(A){A=" "+A;return A in this&&delete this[A]},
clear:function(){for(var A in this)A[0]===" "&&delete this[A]},
keys:function(){var A=[],v;for(v in this)v[0]===" "&&A.push(v.slice(1));return A},
values:function(){var A=[],v;for(v in this)v[0]===" "&&A.push(this[v]);return A},
entries:function(){var A=[],v;for(v in this)v[0]===" "&&A.push({key:v.slice(1),value:this[v]});return A},
size:function(){var A=0,v;for(v in this)v[0]===" "&&++A;return A},
empty:function(){for(var A in this)if(A[0]===" ")return!1;return!0},
each:function(A){for(var v in this)v[0]===" "&&A(this[v],v.slice(1),this)}};
var Av=U8z.prototype;mdj.prototype=function(A,v){var Ej=new mdj;if(A instanceof mdj)A.each(function(Fm){Ej.add(Fm)});
else if(A){var hh=-1,Pe=A.length;if(v==null)for(;++hh<Pe;)Ej.add(A[hh]);else for(;++hh<Pe;)Ej.add(v(A[hh],hh,A))}return Ej}.prototype={constructor:mdj,
has:Av.has,add:function(A){this[" "+A]=A;return this},
remove:Av.remove,clear:Av.clear,values:Av.keys,size:Av.size,empty:Av.empty,each:Av.each};var pwC={},hth={},NwP=KM5(",").parse,IoG=KM5("\t").parse;Ayz(NwP);Ayz(IoG);var Ox=function(A,v,Ej){v=new JyA(v==null?j8W:v,Ej==null?D8W:Ej,NaN,NaN,NaN,NaN);return A==null?v:v.addAll(A)}.prototype=JyA.prototype;
Ox.copy=function(){var A=new JyA(this._x,this._y,this._x0,this._y0,this._x1,this._y1),v=this._root,Ej,hh;if(!v)return A;if(!v.length)return A._root=uRY(v),A;for(Ej=[{source:v,target:A._root=Array(4)}];v=Ej.pop();)for(var Pe=0;Pe<4;++Pe)if(hh=v.source[Pe])hh.length?Ej.push({source:hh,target:v.target[Pe]=Array(4)}):v.target[Pe]=uRY(hh);return A};
Ox.add=function(A){var v=+this._x.call(null,A),Ej=+this._y.call(null,A);return ryC(this.cover(v,Ej),v,Ej,A)};
Ox.addAll=function(A){var v,Ej,hh=A.length,Pe,Fm,xb=Array(hh),Np=Array(hh),Cl=Infinity,nj=Infinity,TY=-Infinity,zY=-Infinity;for(Ej=0;Ej<hh;++Ej)isNaN(Pe=+this._x.call(null,v=A[Ej]))||isNaN(Fm=+this._y.call(null,v))||(xb[Ej]=Pe,Np[Ej]=Fm,Pe<Cl&&(Cl=Pe),Pe>TY&&(TY=Pe),Fm<nj&&(nj=Fm),Fm>zY&&(zY=Fm));TY<Cl&&(Cl=this._x0,TY=this._x1);zY<nj&&(nj=this._y0,zY=this._y1);this.cover(Cl,nj).cover(TY,zY);for(Ej=0;Ej<hh;++Ej)ryC(this,xb[Ej],Np[Ej],A[Ej]);return this};
Ox.cover=function(A,v){if(isNaN(A=+A)||isNaN(v=+v))return this;var Ej=this._x0,hh=this._y0,Pe=this._x1,Fm=this._y1;if(isNaN(Ej))Pe=(Ej=Math.floor(A))+1,Fm=(hh=Math.floor(v))+1;else if(Ej>A||A>Pe||hh>v||v>Fm){var xb=Pe-Ej,Np=this._root,Cl;switch(Cl=(v<(hh+Fm)/2)<<1|A<(Ej+Pe)/2){case 0:do{var nj=Array(4);nj[Cl]=Np;Np=nj}while(xb*=2,Pe=Ej+xb,Fm=hh+xb,A>Pe||v>Fm);break;case 1:do nj=Array(4),nj[Cl]=Np,Np=nj;while(xb*=2,Ej=Pe-xb,Fm=hh+xb,Ej>A||v>Fm);break;case 2:do nj=Array(4),nj[Cl]=Np,Np=nj;while(xb*=
2,Pe=Ej+xb,hh=Fm-xb,A>Pe||hh>v);break;case 3:do nj=Array(4),nj[Cl]=Np,Np=nj;while(xb*=2,Ej=Pe-xb,hh=Fm-xb,Ej>A||hh>v)}this._root&&this._root.length&&(this._root=Np)}else return this;this._x0=Ej;this._y0=hh;this._x1=Pe;this._y1=Fm;return this};
Ox.data=function(){var A=[];this.visit(function(v){if(!v.length){do A.push(v.data);while(v=v.next)}});
return A};
Ox.extent=function(A){return arguments.length?this.cover(+A[0][0],+A[0][1]).cover(+A[1][0],+A[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Ox.find=function(A,v,Ej){var hh=this._x0,Pe=this._y0,Fm,xb,Np,Cl,nj=this._x1,TY=this._y1,zY=[],rU=this._root,yN;rU&&zY.push(new QS(rU,hh,Pe,nj,TY));Ej==null?Ej=Infinity:(hh=A-Ej,Pe=v-Ej,nj=A+Ej,TY=v+Ej,Ej*=Ej);for(;yN=zY.pop();)if(!(!(rU=yN.node)||(Fm=yN.x0)>nj||(xb=yN.y0)>TY||(Np=yN.x1)<hh||(Cl=yN.y1)<Pe))if(rU.length){yN=(Fm+Np)/2;var lt=(xb+Cl)/2;zY.push(new QS(rU[3],yN,lt,Np,Cl),new QS(rU[2],Fm,lt,yN,Cl),new QS(rU[1],yN,xb,Np,lt),new QS(rU[0],Fm,xb,yN,lt));if(rU=(v>=lt)<<1|A>=yN)yN=zY[zY.length-
1],zY[zY.length-1]=zY[zY.length-1-rU],zY[zY.length-1-rU]=yN}else if(yN=A-+this._x.call(null,rU.data),lt=v-+this._y.call(null,rU.data),yN=yN*yN+lt*lt,yN<Ej){var Hd=Math.sqrt(Ej=yN);hh=A-Hd;Pe=v-Hd;nj=A+Hd;TY=v+Hd;Hd=rU.data}return Hd};
Ox.remove=function(A){if(isNaN(Cl=+this._x.call(null,A))||isNaN(nj=+this._y.call(null,A)))return this;var v,Ej=this._root,hh,Pe=this._x0,Fm=this._y0,xb=this._x1,Np=this._y1,Cl,nj,TY,zY,rU,yN,lt;if(!Ej)return this;if(Ej.length)for(;;){(rU=Cl>=(TY=(Pe+xb)/2))?Pe=TY:xb=TY;(yN=nj>=(zY=(Fm+Np)/2))?Fm=zY:Np=zY;if(!(v=Ej,Ej=Ej[lt=yN<<1|rU]))return this;if(!Ej.length)break;if(v[lt+1&3]||v[lt+2&3]||v[lt+3&3]){var Hd=v;var Is=lt}}for(;Ej.data!==A;)if(!(hh=Ej,Ej=Ej.next))return this;(A=Ej.next)&&delete Ej.next;
if(hh)return A?hh.next=A:delete hh.next,this;if(!v)return this._root=A,this;A?v[lt]=A:delete v[lt];(Ej=v[0]||v[1]||v[2]||v[3])&&Ej===(v[3]||v[2]||v[1]||v[0])&&!Ej.length&&(Hd?Hd[Is]=Ej:this._root=Ej);return this};
Ox.removeAll=function(A){for(var v=0,Ej=A.length;v<Ej;++v)this.remove(A[v]);return this};
Ox.root=function(){return this._root};
Ox.size=function(){var A=0;this.visit(function(v){if(!v.length){do++A;while(v=v.next)}});
return A};
Ox.visit=function(A){var v=[],Ej,hh=this._root,Pe,Fm,xb,Np,Cl;for(hh&&v.push(new QS(hh,this._x0,this._y0,this._x1,this._y1));Ej=v.pop();)if(!A(hh=Ej.node,Fm=Ej.x0,xb=Ej.y0,Np=Ej.x1,Cl=Ej.y1)&&hh.length){Ej=(Fm+Np)/2;var nj=(xb+Cl)/2;(Pe=hh[3])&&v.push(new QS(Pe,Ej,nj,Np,Cl));(Pe=hh[2])&&v.push(new QS(Pe,Fm,nj,Ej,Cl));(Pe=hh[1])&&v.push(new QS(Pe,Ej,xb,Np,nj));(Pe=hh[0])&&v.push(new QS(Pe,Fm,xb,Ej,nj))}};
Ox.visitAfter=function(A){var v=[],Ej=[],hh;for(this._root&&v.push(new QS(this._root,this._x0,this._y0,this._x1,this._y1));hh=v.pop();){var Pe=hh.node;if(Pe.length){var Fm,xb=hh.x0,Np=hh.y0,Cl=hh.x1,nj=hh.y1,TY=(xb+Cl)/2,zY=(Np+nj)/2;(Fm=Pe[0])&&v.push(new QS(Fm,xb,Np,TY,zY));(Fm=Pe[1])&&v.push(new QS(Fm,TY,Np,Cl,zY));(Fm=Pe[2])&&v.push(new QS(Fm,xb,zY,TY,nj));(Fm=Pe[3])&&v.push(new QS(Fm,TY,zY,Cl,nj))}Ej.push(hh)}for(;hh=Ej.pop();)A(hh.node,hh.x0,hh.y0,hh.x1,hh.y1);return this};
Ox.x=function(A){return arguments.length?(this._x=A,this):this._x};
Ox.y=function(A){return arguments.length?(this._y=A,this):this._y};
var bXP=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;cye.prototype=m8l.prototype;m8l.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 D82,$84={"%":function(A,v){return(A*100).toFixed(v)},
b:function(A){return Math.round(A).toString(2)},
c:function(A){return A+""},
d:function(A){return Math.round(A).toString(10)},
e:function(A,v){return A.toExponential(v)},
f:function(A,v){return A.toFixed(v)},
g:function(A,v){return A.toPrecision(v)},
o:function(A){return Math.round(A).toString(8)},
p:function(A,v){return x8d(A*100,v)},
r:x8d,s:function(A,v){var Ej=exC(A,v);if(!Ej)return A+"";var hh=Ej[0];Ej=Ej[1];Ej=Ej-(D82=Math.max(-8,Math.min(8,Math.floor(Ej/3)))*3)+1;var Pe=hh.length;return Ej===Pe?hh:Ej>Pe?hh+Array(Ej-Pe+1).join("0"):Ej>0?hh.slice(0,Ej)+"."+hh.slice(Ej):"0."+Array(1-Ej).join("0")+exC(A,Math.max(0,v+Ej-1))[0]},
X:function(A){return Math.round(A).toString(16).toUpperCase()},
x:function(A){return Math.round(A).toString(16)}},j82="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),n8W;
(function(A){return n8W=ZX3(A)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});jz.prototype={constructor:jz,reset:function(){this.s=this.t=0},
add:function(A){fGd(YcR,A,this.t);fGd(this,YcR.s,this.s);this.s?this.t+=YcR.t:this.s=YcR.t},
valueOf:function(){return this.s}};
var YcR=new jz,z2=Math.PI,Qx=z2/2,tfp=z2/4,iy2=z2*2,gPC=z2/180,wA=Math.abs,U8e=Math.atan,lG5=Math.atan2,Oi=Math.cos,Ap=Math.sin,tlR=Math.sqrt;new jz;new jz;new jz;var HXb=new jz;(function(A,v,Ej,hh){return function(Pe){function Fm(E4,Fb){A(E4,Fb)&&Pe.point(E4,Fb)}
function xb(E4,Fb){rU.point(E4,Fb)}
function Np(){V3.point=xb;rU.lineStart()}
function Cl(){V3.point=Fm;rU.lineEnd()}
function nj(E4,Fb){WE.push([E4,Fb]);lt.point(E4,Fb)}
function TY(){lt.lineStart();WE=[]}
function zY(){nj(WE[0][0],WE[0][1]);lt.lineEnd();var E4=lt.clean(),Fb=yN.result(),QN=Fb.length,wg;WE.pop();Is.push(WE);WE=null;if(QN)if(E4&1){if(QN=Fb[0],(Fb=QN.length-1)>0){Hd||(Pe.polygonStart(),Hd=!0);Pe.lineStart();for(E4=0;E4<Fb;++E4)Pe.point((wg=QN[E4])[0],wg[1]);Pe.lineEnd()}}else QN>1&&E4&2&&Fb.push(Fb.pop().concat(Fb.shift())),kk.push(Fb.filter(MDP))}
var rU=v(Pe),yN=s8U(),lt=v(yN),Hd=!1,Is,kk,WE,V3={point:Fm,lineStart:Np,lineEnd:Cl,polygonStart:function(){V3.point=nj;V3.lineStart=TY;V3.lineEnd=zY;kk=[];Is=[]},
polygonEnd:function(){V3.point=Fm;V3.lineStart=Np;V3.lineEnd=Cl;var E4=kk,Fb=E4.length;var QN=-1;for(var wg=0,M2,Fo;++QN<Fb;)wg+=E4[QN].length;for(M2=Array(wg);--Fb>=0;)for(Fo=E4[Fb],QN=Fo.length;--QN>=0;)M2[--wg]=Fo[QN];kk=M2;E4=Is;Fb=hh[0];wg=hh[1];var JJ=Ap(wg);QN=[Ap(Fb),-Oi(Fb),0];Fo=M2=0;HXb.reset();JJ===1?wg=Qx+1E-6:JJ===-1&&(wg=-Qx-1E-6);JJ=0;for(var LP=E4.length;JJ<LP;++JJ)if(qm=(za=E4[JJ]).length){var za,qm,nZ=za[qm-1],Fu=nZ[0],T6=nZ[1]/2+tfp,WEA=Ap(T6),TRj=Oi(T6);for(T6=0;T6<qm;++T6,Fu=
KMj,WEA=w3p,TRj=df,nZ=FEe){var FEe=za[T6],KMj=FEe[0];df=FEe[1]/2+tfp;var w3p=Ap(df),df=Oi(df),IN=KMj-Fu,pw1=IN>=0?1:-1,Aye=pw1*IN,yDl=Aye>z2;WEA*=w3p;HXb.add(lG5(WEA*pw1*Ap(Aye),TRj*df+WEA*Oi(Aye)));M2+=yDl?IN+pw1*iy2:IN;yDl^Fu>=Fb^KMj>=Fb&&(nZ=bXj(vPd(nZ),vPd(FEe)),ZX8(nZ),Fu=bXj(QN,nZ),ZX8(Fu),Fu=(yDl^IN>=0?-1:1)*adR(Fu[2]),wg>Fu||wg===Fu&&(nZ[0]||nZ[1]))&&(Fo+=yDl^IN>=0?1:-1)}}E4=(M2<-1E-6||M2<1E-6&&HXb<-1E-6)^Fo&1;kk.length?(Hd||(Pe.polygonStart(),Hd=!0),lGA(kk,qbt,E4,Ej,Pe)):E4&&(Hd||(Pe.polygonStart(),
Hd=!0),Pe.lineStart(),Ej(null,null,1,Pe),Pe.lineEnd());Hd&&(Pe.polygonEnd(),Hd=!1);kk=Is=null},
sphere:function(){Pe.polygonStart();Pe.lineStart();Ej(null,null,1,Pe);Pe.lineEnd();Pe.polygonEnd()}};
return V3}})(function(){return!0},function(A){var v=NaN,Ej=NaN,hh=NaN,Pe;
return{lineStart:function(){A.lineStart();Pe=1},
point:function(Fm,xb){var Np=Fm>0?z2:-z2,Cl=wA(Fm-v);if(wA(Cl-z2)<1E-6)A.point(v,Ej=(Ej+xb)/2>0?Qx:-Qx),A.point(hh,Ej),A.lineEnd(),A.lineStart(),A.point(Np,Ej),A.point(Fm,Ej),Pe=0;else if(hh!==Np&&Cl>=z2){wA(v-hh)<1E-6&&(v-=hh*1E-6);wA(Fm-Np)<1E-6&&(Fm-=Np*1E-6);Cl=v;var nj=Ej,TY=Fm,zY,rU,yN=Ap(Cl-TY);Ej=wA(yN)>1E-6?U8e((Ap(nj)*(rU=Oi(xb))*Ap(TY)-Ap(xb)*(zY=Oi(nj))*Ap(Cl))/(zY*rU*yN)):(nj+xb)/2;A.point(hh,Ej);A.lineEnd();A.lineStart();A.point(Np,Ej);Pe=0}A.point(v=Fm,Ej=xb);hh=Np},
lineEnd:function(){A.lineEnd();v=Ej=NaN},
clean:function(){return 2-Pe}}},function(A,v,Ej,hh){A==null?(Ej*=Qx,hh.point(-z2,Ej),hh.point(0,Ej),hh.point(z2,Ej),hh.point(z2,0),hh.point(z2,-Ej),hh.point(0,-Ej),hh.point(-z2,-Ej),hh.point(-z2,0),hh.point(-z2,Ej)):wA(A[0]-v[0])>1E-6?(A=A[0]<v[0]?z2:-z2,Ej=Ej*A/2,hh.point(-A,Ej),hh.point(0,Ej),hh.point(A,Ej)):hh.point(v[0],v[1])},[-z2,
-Qx]);new jz;new jz;new jz;new jz;etb.prototype={constructor:etb,point:function(A,v){this.stream.point(A,v)},
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()}};
Oi(30*gPC);(function(A){return function(v){var Ej=new etb,hh;for(hh in A)Ej[hh]=A[hh];Ej.stream=v;return Ej}})({point:function(A,v){this.stream.point(A*gPC,v*gPC)}});
s8Y(function(A){return tlR(2/(1+A))}).invert=Le(function(A){return 2*adR(A/2)});
s8Y(function(A){return(A=A>1?0:A<-1?z2:Math.acos(A))&&A/Ap(A)}).invert=Le(function(A){return A});
tlR(3);Le(U8e);Le(adR);Le(function(A){return 2*U8e(A)});
jA.prototype=MDd.prototype={constructor:jA,count:function(){return this.eachAfter(zta)},
each:function(A){var v,Ej=[this],hh;do{var Pe=Ej.reverse();for(Ej=[];v=Pe.pop();)if(A(v),v=v.children){var Fm=0;for(hh=v.length;Fm<hh;++Fm)Ej.push(v[Fm])}}while(Ej.length);return this},
eachAfter:function(A){for(var v,Ej=[this],hh=[],Pe,Fm;v=Ej.pop();)if(hh.push(v),v=v.children)for(Pe=0,Fm=v.length;Pe<Fm;++Pe)Ej.push(v[Pe]);for(;v=hh.pop();)A(v);return this},
eachBefore:function(A){for(var v,Ej=[this],hh;v=Ej.pop();)if(A(v),v=v.children)for(hh=v.length-1;hh>=0;--hh)Ej.push(v[hh]);return this},
sum:function(A){return this.eachAfter(function(v){for(var Ej=+A(v.data)||0,hh=v.children,Pe=hh&&hh.length;--Pe>=0;)Ej+=hh[Pe].value;v.value=Ej})},
sort:function(A){return this.eachBefore(function(v){v.children&&v.children.sort(A)})},
path:function(A){var v=this;var Ej=v;var hh=A;if(Ej!==hh){var Pe=Ej.ancestors(),Fm=hh.ancestors(),xb=null;Ej=Pe.pop();for(hh=Fm.pop();Ej===hh;)xb=Ej,Ej=Pe.pop(),hh=Fm.pop();Ej=xb}for(hh=[v];v!==Ej;)v=v.parent,hh.push(v);for(v=hh.length;A!==Ej;)hh.splice(v,0,A),A=A.parent;return hh},
ancestors:function(){for(var A=this,v=[A];A=A.parent;)v.push(A);return v},
links:function(){var A=this,v=[];A.each(function(Ej){Ej!==A&&v.push({source:Ej.parent,target:Ej})});
return v},
copy:function(){return MDd(this).eachBefore(GmP)}};
(function(A,v){this._=A;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=v}).prototype=Object.create(jA.prototype);
var aGR=new Date,tDi=new Date,P6d=Bi(function(){},function(A,v){A.setTime(+A+v)},function(A,v){return v-A});
P6d.every=function(A){A=Math.floor(A);return isFinite(A)&&A>0?A>1?Bi(function(v){v.setTime(Math.floor(v/A)*A)},function(v,Ej){v.setTime(+v+Ej*A)},function(v,Ej){return(Ej-v)/A}):P6d:null};
Bi(function(A){A.setTime(Math.floor(A/1E3)*1E3)},function(A,v){A.setTime(+A+v*1E3)},function(A,v){return(v-A)/1E3},function(A){return A.getUTCSeconds()});
Bi(function(A){A.setTime(Math.floor(A/6E4)*6E4)},function(A,v){A.setTime(+A+v*6E4)},function(A,v){return(v-A)/6E4},function(A){return A.getMinutes()});
Bi(function(A){var v=A.getTimezoneOffset()*6E4%36E5;v<0&&(v+=36E5);A.setTime(Math.floor((+A-v)/36E5)*36E5+v)},function(A,v){A.setTime(+A+v*36E5)},function(A,v){return(v-A)/36E5},function(A){return A.getHours()});
var Q84=Bi(function(A){A.setHours(0,0,0,0)},function(A,v){A.setDate(A.getDate()+v)},function(A,v){return(v-A-(v.getTimezoneOffset()-A.getTimezoneOffset())*6E4)/864E5},function(A){return A.getDate()-1}),GFt=KQ(0),wwI=KQ(1);
KQ(2);KQ(3);var PZm=KQ(4);KQ(5);KQ(6);Bi(function(A){A.setDate(1);A.setHours(0,0,0,0)},function(A,v){A.setMonth(A.getMonth()+v)},function(A,v){return v.getMonth()-A.getMonth()+(v.getFullYear()-A.getFullYear())*12},function(A){return A.getMonth()});
var S5=Bi(function(A){A.setMonth(0,1);A.setHours(0,0,0,0)},function(A,v){A.setFullYear(A.getFullYear()+v)},function(A,v){return v.getFullYear()-A.getFullYear()},function(A){return A.getFullYear()});
S5.every=function(A){return isFinite(A=Math.floor(A))&&A>0?Bi(function(v){v.setFullYear(Math.floor(v.getFullYear()/A)*A);v.setMonth(0,1);v.setHours(0,0,0,0)},function(v,Ej){v.setFullYear(v.getFullYear()+Ej*A)}):null};
Bi(function(A){A.setUTCSeconds(0,0)},function(A,v){A.setTime(+A+v*6E4)},function(A,v){return(v-A)/6E4},function(A){return A.getUTCMinutes()});
Bi(function(A){A.setUTCMinutes(0,0,0)},function(A,v){A.setTime(+A+v*36E5)},function(A,v){return(v-A)/36E5},function(A){return A.getUTCHours()});
var zt4=Bi(function(A){A.setUTCHours(0,0,0,0)},function(A,v){A.setUTCDate(A.getUTCDate()+v)},function(A,v){return(v-A)/864E5},function(A){return A.getUTCDate()-1}),C6I=pQ(0),THR=pQ(1);
pQ(2);pQ(3);var BHm=pQ(4);pQ(5);pQ(6);Bi(function(A){A.setUTCDate(1);A.setUTCHours(0,0,0,0)},function(A,v){A.setUTCMonth(A.getUTCMonth()+v)},function(A,v){return v.getUTCMonth()-A.getUTCMonth()+(v.getUTCFullYear()-A.getUTCFullYear())*12},function(A){return A.getUTCMonth()});
var RN=Bi(function(A){A.setUTCMonth(0,1);A.setUTCHours(0,0,0,0)},function(A,v){A.setUTCFullYear(A.getUTCFullYear()+v)},function(A,v){return v.getUTCFullYear()-A.getUTCFullYear()},function(A){return A.getUTCFullYear()});
RN.every=function(A){return isFinite(A=Math.floor(A))&&A>0?Bi(function(v){v.setUTCFullYear(Math.floor(v.getUTCFullYear()/A)*A);v.setUTCMonth(0,1);v.setUTCHours(0,0,0,0)},function(v,Ej){v.setUTCFullYear(v.getUTCFullYear()+Ej*A)}):null};
var qbC={"-":"",_:" ",0:"0"},Fy=/^\s*\d+/,O6a=/^%/,QQR=/[\\^$*+?|[\]().{}]/g,ofI;(function(A){ofI=kFA(A);aOC=ofI.utcFormat;tH8=ofI.utcParse;return ofI})({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||aOC("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||tH8("%Y-%m-%dT%H:%M:%S.%LZ");wT("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
wT("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");wT("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");wT("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");wT("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");wT("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");wT("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
wT("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");wT("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");wT("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");wT("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");wT("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var hbP=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(wT);Qh(hbP);var JZU=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(wT);Qh(JZU);var cZT=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(wT);Qh(cZT);var mYA=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(wT);
Qh(mYA);var ebU=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(wT);Qh(ebU);var aoI=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(wT);Qh(aoI);var tEa=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(wT);Qh(tEa);var Tw2=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(wT);Qh(Tw2);var wlY=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(wT);Qh(wlY);var PRG=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(wT);Qh(PRG);var Bwt=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(wT);Qh(Bwt);var YVT=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(wT);Qh(YVT);var WBP=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(wT);Qh(WBP);var FBI=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(wT);Qh(FBI);var yZ3=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(wT);Qh(yZ3);var o8a=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(wT);Qh(o8a);var XlA=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(wT);Qh(XlA);var g8I=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(wT);Qh(g8I);var UY3=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(wT);Qh(UY3);var HyI=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(wT);Qh(HyI);var KBY=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(wT);Qh(KBY);var pl2=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(wT);Qh(pl2);var AZ0=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(wT);Qh(AZ0);var rZ3=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(wT);Qh(rZ3);var u7P=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(wT);Qh(u7P);var xYG=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(wT);Qh(xYG);var LBI=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(wT);Qh(LBI);oPt(oC(300,.5,0),oC(-240,.5,1));oPt(oC(-100,.75,.35),oC(80,1.5,.8));oPt(oC(260,.75,.35),oC(80,1.5,.8));oC();Qd();PMt(wT("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
PMt(wT("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
PMt(wT("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
PMt(wT("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
IV5.prototype={lineStart:function(){this._point=0},
lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(A,v){A=+A;v=+v;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(A,v):this._context.moveTo(A,v);break;case 1:this._point=2;default:this._context.lineTo(A,v)}}};
(function(A){function v(Ej){return new ng8(A(Ej))}
v._curve=A;return v})(function(A){return new IV5(A)});
ng8.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(A,v){this._curve.point(v*Math.sin(A),v*-Math.cos(A))}};
WMe.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:Ybb(this,this._t0,hzd(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(A,v){var Ej=NaN;A=+A;v=+v;if(A!==this._x1||v!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(A,v):this._context.moveTo(A,v);break;case 1:this._point=2;break;case 2:this._point=3;Ybb(this,hzd(this,Ej=i68(this,A,v)),Ej);break;default:Ybb(this,this._t0,Ej=i68(this,A,v))}this._x0=this._x1;this._x1=A;this._y0=this._y1;this._y1=v;this._t0=Ej}}};
(function(A){this._context=new JUA(A)}.prototype=Object.create(WMe.prototype)).point=function(A,v){WMe.prototype.point.call(this,v,A)};
JUA.prototype={moveTo:function(A,v){this._context.moveTo(v,A)},
closePath:function(){this._context.closePath()},
lineTo:function(A,v){this._context.lineTo(v,A)},
bezierCurveTo:function(A,v,Ej,hh,Pe,Fm){this._context.bezierCurveTo(v,A,hh,Ej,Fm,Pe)}};
vQ.prototype={constructor:vQ,scale:function(A){return A===1?this:new vQ(this.k*A,this.x,this.y)},
translate:function(A,v){return A===0&v===0?this:new vQ(this.k,this.x+this.k*A,this.y+this.k*v)},
apply:function(A){return[A[0]*this.k+this.x,A[1]*this.k+this.y]},
invert:function(A){return[(A[0]-this.x)/this.k,(A[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new vQ(1,0,0);wAA=pP;zb.svg=zb.svg;zb.xhtml=zb.xhtml;zb.xlink=zb.xlink;zb.xml=zb.xml;zb.xmlns=zb.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 Ty5="hammer_"+(Math.random()*1E6|0),wtY=function(){var k=document||document;if(!k[Ty5]){var E=function(){(function(S,R,V,N){function h(pl,fl,MA){return setTimeout(P(pl,MA),fl)}
function J(pl,fl,MA){return Array.isArray(pl)?(m(pl,MA[fl],MA),!0):!1}
function m(pl,fl,MA){var yd;if(pl)if(pl.forEach)pl.forEach(fl,MA);else if(pl.length!==N){var wU=0;for(yd=pl.length;wU<yd;wU++)fl.call(MA,pl[wU],wU,pl)}else for(wU in pl)pl.hasOwnProperty(wU)&&fl.call(MA,pl[wU],wU,pl)}
function a(pl,fl,MA){for(var yd=Object.keys(fl),wU=0,rk=yd.length;wU<rk;wU++)if(!MA||MA&&pl[yd[wU]]===N)pl[yd[wU]]=fl[yd[wU]];return pl}
function T(pl,fl){return a(pl,fl,!0)}
function w(pl,fl,MA){fl=fl.prototype;var yd=pl.prototype=Object.create(fl);yd.constructor=pl;yd._super=fl;MA&&a(yd,MA)}
function P(pl,fl){return function(){return pl.apply(fl,arguments)}}
function B(pl,fl){return typeof pl=="function"?pl.apply(fl?fl[0]||N:N,fl):pl}
function F(pl,fl,MA){m(r(fl),function(yd){pl.addEventListener(yd,MA,!1)})}
function K(pl,fl,MA){m(r(fl),function(yd){pl.removeEventListener(yd,MA,!1)})}
function r(pl){return pl.trim().split(/\s+/g)}
function x(pl,fl,MA){if(pl.indexOf&&!MA)return pl.indexOf(fl);for(var yd=0,wU=pl.length;yd<wU;yd++)if(MA&&pl[yd][MA]==fl||!MA&&pl[yd]===fl)return yd;return-1}
function L(pl,fl,MA){for(var yd=[],wU=[],rk=0,AR=pl.length;rk<AR;rk++){var X8=fl?pl[rk][fl]:pl[rk];x(wU,X8)<0&&yd.push(pl[rk]);wU[rk]=X8}MA&&(yd=fl?yd.sort(function(oC,Dx){return oC[fl]>Dx[fl]}):yd.sort());
return yd}
function q(pl,fl){for(var MA,yd=fl[0].toUpperCase()+fl.slice(1),wU=0,rk=tC.length;wU<rk;wU++)if(MA=(MA=tC[wU])?MA+yd:fl,MA in pl)return MA;return N}
function M(pl,fl){var MA=this;this.manager=pl;this.callback=fl;this.element=pl.element;this.target=pl.options.inputTarget;this.domHandler=function(yd){B(pl.options.enable,[pl])&&MA.handler(yd)};
this.evEl&&F(this.element,this.evEl,this.domHandler);this.evTarget&&F(this.target,this.evTarget,this.domHandler);this.evWin&&F(S,this.evWin,this.domHandler)}
function d(pl){var fl;dP?fl=ve:C2?fl=Xm:pP?fl=U5:fl=He;return new fl(pl,z)}
function z(pl,fl,MA){var yd=MA.pointers.length,wU=MA.changedPointers.length,rk=fl&1&&yd-wU===0;MA.isFirst=!!rk;MA.isFinal=!!(fl&12&&yd-wU===0);rk&&(pl.session={});MA.eventType=fl;fl=pl.session;yd=MA.pointers;wU=yd.length;fl.firstInput||(fl.firstInput=kb(MA));wU>1&&!fl.firstMultiple?fl.firstMultiple=kb(MA):wU===1&&(fl.firstMultiple=!1);rk=fl.firstInput;var AR=(wU=fl.firstMultiple)?wU.center:rk.center,X8=MA.center=TI(yd);MA.timeStamp=Bz();MA.deltaTime=MA.timeStamp-rk.timeStamp;MA.angle=th(AR,X8);MA.distance=
Ah(AR,X8);rk=MA.center;AR=fl.offsetDelta||{};X8=fl.prevDelta||{};var oC=fl.prevInput||{};if(MA.eventType===1||oC.eventType===4)X8=fl.prevDelta={x:oC.deltaX||0,y:oC.deltaY||0},AR=fl.offsetDelta={x:rk.x,y:rk.y};MA.deltaX=X8.x+(rk.x-AR.x);MA.deltaY=X8.y+(rk.y-AR.y);MA.offsetDirection=a1(MA.deltaX,MA.deltaY);wU?(rk=wU.pointers,rk=Ah(yd[0],yd[1],Qd)/Ah(rk[0],rk[1],Qd)):rk=1;MA.scale=rk;wU?(wU=wU.pointers,yd=th(yd[1],yd[0],Qd)-th(wU[1],wU[0],Qd)):yd=0;MA.rotation=yd;AR=fl.lastInterval||MA;yd=MA.timeStamp-
AR.timeStamp;MA.eventType!=8&&(yd>25||AR.velocity===N)?(rk=AR.deltaX-MA.deltaX,AR=AR.deltaY-MA.deltaY,X8=rk/yd||0,oC=AR/yd||0,yd=X8,wU=oC,X8=zI(X8)>zI(oC)?X8:oC,rk=a1(rk,AR),fl.lastInterval=MA):(X8=AR.velocity,yd=AR.velocityX,wU=AR.velocityY,rk=AR.direction);MA.velocity=X8;MA.velocityX=yd;MA.velocityY=wU;MA.direction=rk;fl=pl.element;a:{for(yd=MA.srcEvent.target;yd;){if(yd==fl){yd=!0;break a}yd=yd.parentNode}yd=!1}yd&&(fl=MA.srcEvent.target);MA.target=fl;pl.emit("hammer.input",MA);pl.recognize(MA);
pl.session.prevInput=MA}
function kb(pl){for(var fl=[],MA=0;MA<pl.pointers.length;MA++)fl[MA]={clientX:Rt(pl.pointers[MA].clientX),clientY:Rt(pl.pointers[MA].clientY)};return{timeStamp:Bz(),pointers:fl,center:TI(fl),deltaX:pl.deltaX,deltaY:pl.deltaY}}
function TI(pl){var fl=pl.length;if(fl===1)return{x:Rt(pl[0].clientX),y:Rt(pl[0].clientY)};for(var MA=0,yd=0,wU=0;wU<fl;wU++)MA+=pl[wU].clientX,yd+=pl[wU].clientY;return{x:Rt(MA/fl),y:Rt(yd/fl)}}
function a1(pl,fl){return pl===fl?1:zI(pl)>=zI(fl)?pl>0?2:4:fl>0?8:16}
function Ah(pl,fl,MA){MA||(MA=Jx);var yd=fl[MA[0]]-pl[MA[0]];pl=fl[MA[1]]-pl[MA[1]];return Math.sqrt(yd*yd+pl*pl)}
function th(pl,fl,MA){MA||(MA=Jx);return Math.atan2(fl[MA[1]]-pl[MA[1]],fl[MA[0]]-pl[MA[0]])*180/Math.PI}
function He(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;M.apply(this,arguments)}
function ve(){this.evEl=ik;this.evWin=jo;M.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Xm(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};M.apply(this,arguments)}
function U5(){M.apply(this,arguments);var pl=P(this.handler,this);this.touch=new Xm(this.manager,pl);this.mouse=new He(this.manager,pl)}
function l4(pl,fl){this.manager=pl;this.set(fl)}
function gY(pl){if(pl.indexOf("none")>-1)return"none";var fl=pl.indexOf("pan-x")>-1,MA=pl.indexOf("pan-y")>-1;return fl&&MA?"pan-x pan-y":fl||MA?fl?"pan-x":"pan-y":pl.indexOf("manipulation")>-1?"manipulation":"auto"}
function IC(pl){this.id=W0++;this.manager=null;this.options=T(pl||{},this.defaults);pl=this.options.enable;this.options.enable=pl===N?!0:pl;this.state=1;this.simultaneous={};this.requireFail=[]}
function md(pl){return pl==16?"down":pl==8?"up":pl==2?"left":pl==4?"right":""}
function Kj(pl,fl){return(fl=fl.manager)?fl.get(pl):pl}
function Lj(){IC.apply(this,arguments)}
function H0(){Lj.apply(this,arguments);this.pY=this.pX=null}
function TG(){Lj.apply(this,arguments)}
function iC(){IC.apply(this,arguments);this._input=this._timer=null}
function hC(){Lj.apply(this,arguments)}
function Y2(){Lj.apply(this,arguments)}
function It(){IC.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Wz(pl,fl){fl=fl||{};var MA=fl.recognizers;fl.recognizers=MA===N?Wz.defaults.preset:MA;return new VP(pl,fl)}
function VP(pl,fl){fl=fl||{};this.options=T(fl,Wz.defaults);this.options.inputTarget=this.options.inputTarget||pl;this.handlers={};this.session={};this.recognizers=[];this.element=pl;this.input=d(this);this.touchAction=new l4(this,this.options.touchAction);LR(this,!0);m(fl.recognizers,function(MA){var yd=this.add(new MA[0](MA[1]));MA[2]&&yd.recognizeWith(MA[2]);MA[3]&&yd.requireFailure(MA[2])},this)}
function LR(pl,fl){var MA=pl.element;m(pl.options.cssProps,function(yd,wU){MA.style[q(MA.style,wU)]=fl?yd:""})}
function Mp(pl,fl){var MA=R.createEvent("Event");MA.initEvent(pl,!0,!0);MA.gesture=fl;fl.target.dispatchEvent(MA)}
var tC=" webkit moz MS ms o".split(" "),aC=R.createElement("div"),Rt=Math.round,zI=Math.abs,Bz=Date.now,W0=1,EY=/mobile|tablet|ip(ad|hone|od)|android/i,pP="ontouchstart"in S,dP=q(S,"PointerEvent")!==N,C2=pP&&EY.test(navigator.userAgent),Jx=["x","y"],Qd=["clientX","clientY"];M.prototype={handler:function(){},
destroy:function(){this.evEl&&K(this.element,this.evEl,this.domHandler);this.evTarget&&K(this.target,this.evTarget,this.domHandler);this.evWin&&K(S,this.evWin,this.domHandler)}};
var ot={mousedown:1,mousemove:2,mouseup:4};w(He,M,{handler:function(pl){var fl=ot[pl.type];fl&1&&pl.button===0&&(this.pressed=!0);fl&2&&pl.which!==1&&(fl=4);this.pressed&&this.allow&&(fl&4&&(this.pressed=!1),this.callback(this.manager,fl,{pointers:[pl],changedPointers:[pl],pointerType:"mouse",srcEvent:pl}))}});
var N2={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},BX={2:"touch",3:"pen",4:"mouse",5:"kinect"},ik="pointerdown",jo="pointermove pointerup pointercancel";S.MSPointerEvent&&(ik="MSPointerDown",jo="MSPointerMove MSPointerUp MSPointerCancel");w(ve,M,{handler:function(pl){var fl=this.store,MA=!1,yd=pl.type.toLowerCase().replace("ms","");yd=N2[yd];var wU=BX[pl.pointerType]||pl.pointerType;yd&1&&(pl.button===0||wU=="touch")?fl.push(pl):yd&12&&(MA=!0);var rk=x(fl,pl.pointerId,"pointerId");
rk<0||(fl[rk]=pl,this.callback(this.manager,yd,{pointers:fl,changedPointers:[pl],pointerType:wU,srcEvent:pl}),MA&&fl.splice(rk,1))}});
var YO={touchstart:1,touchmove:2,touchend:4,touchcancel:8};w(Xm,M,{handler:function(pl){var fl=YO[pl.type];var MA=Array.prototype.slice.call(pl.touches,0);var yd=this.targetIds;if(fl&3&&MA.length===1)yd[MA[0].identifier]=!0,yd=[MA,MA];else{var wU,rk=Array.prototype.slice.call(pl.targetTouches,0),AR=Array.prototype.slice.call(pl.changedTouches,0),X8=[];if(fl===1)for(MA=0,wU=rk.length;MA<wU;MA++)yd[rk[MA].identifier]=!0;MA=0;for(wU=AR.length;MA<wU;MA++)yd[AR[MA].identifier]&&X8.push(AR[MA]),fl&12&&
delete yd[AR[MA].identifier];yd=X8.length?[L(rk.concat(X8),"identifier",!0),X8]:void 0}yd&&this.callback(this.manager,fl,{pointers:yd[0],changedPointers:yd[1],pointerType:"touch",srcEvent:pl})}});
w(U5,M,{handler:function(pl,fl,MA){var yd=MA.pointerType=="mouse";if(MA.pointerType=="touch")this.mouse.allow=!1;else if(yd&&!this.mouse.allow)return;fl&12&&(this.mouse.allow=!0);this.callback(pl,fl,MA)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var nO=q(aC.style,"touchAction"),mG=nO!==N;l4.prototype={set:function(pl){pl=="compute"&&(pl=this.compute());mG&&(this.manager.element.style[nO]=pl);this.actions=pl.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var pl=[];m(this.manager.recognizers,function(fl){B(fl.options.enable,[fl])&&(pl=pl.concat(fl.getTouchAction()))});
return gY(pl.join(" "))},
preventDefaults:function(pl){if(!mG){var fl=pl.srcEvent;pl=pl.offsetDirection;if(this.manager.session.prevented)fl.preventDefault();else{var MA=this.actions,yd=MA.indexOf("none")>-1,wU=MA.indexOf("pan-y")>-1;MA=MA.indexOf("pan-x")>-1;if(yd||wU&&MA||wU&&pl&6||MA&&pl&24)return this.preventSrc(fl)}}},
preventSrc:function(pl){this.manager.session.prevented=!0;pl.preventDefault()}};
IC.prototype={defaults:{},set:function(pl){a(this.options,pl);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(pl){if(J(pl,"recognizeWith",this))return this;var fl=this.simultaneous;pl=Kj(pl,this);fl[pl.id]||(fl[pl.id]=pl,pl.recognizeWith(this));return this},
dropRecognizeWith:function(pl){if(J(pl,"dropRecognizeWith",this))return this;pl=Kj(pl,this);delete this.simultaneous[pl.id];return this},
requireFailure:function(pl){if(J(pl,"requireFailure",this))return this;var fl=this.requireFail;pl=Kj(pl,this);x(fl,pl)===-1&&(fl.push(pl),pl.requireFailure(this));return this},
dropRequireFailure:function(pl){if(J(pl,"dropRequireFailure",this))return this;pl=Kj(pl,this);pl=x(this.requireFail,pl);pl>-1&&this.requireFail.splice(pl,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(pl){return!!this.simultaneous[pl.id]},
emit:function(pl){function fl(wU){MA.manager.emit(MA.options.event+(wU?yd&16?"cancel":yd&8?"end":yd&4?"move":yd&2?"start":"":""),pl)}
var MA=this,yd=this.state;yd<8&&fl(!0);fl();yd>=8&&fl(!0)},
tryEmit:function(pl){if(this.canEmit())return this.emit(pl);this.state=32},
canEmit:function(){for(var pl=0;pl<this.requireFail.length;pl++)if(!(this.requireFail[pl].state&33))return!1;return!0},
recognize:function(pl){pl=a({},pl);B(this.options.enable,[this,pl])?(this.state&56&&(this.state=1),this.state=this.process(pl),this.state&30&&this.tryEmit(pl)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
w(Lj,IC,{defaults:{pointers:1},attrTest:function(pl){var fl=this.options.pointers;return fl===0||pl.pointers.length===fl},
process:function(pl){var fl=this.state,MA=pl.eventType,yd=fl&6;pl=this.attrTest(pl);return yd&&(MA&8||!pl)?fl|16:yd||pl?MA&4?fl|8:fl&2?fl|4:2:32}});
w(H0,Lj,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var pl=this.options.direction;if(pl===30)return["none"];var fl=[];pl&6&&fl.push("pan-y");pl&24&&fl.push("pan-x");return fl},
directionTest:function(pl){var fl=this.options,MA=!0,yd=pl.distance,wU=pl.direction,rk=pl.deltaX,AR=pl.deltaY;wU&fl.direction||(fl.direction&6?(wU=rk===0?1:rk<0?2:4,MA=rk!=this.pX,yd=Math.abs(pl.deltaX)):(wU=AR===0?1:AR<0?8:16,MA=AR!=this.pY,yd=Math.abs(pl.deltaY)));pl.direction=wU;return MA&&yd>fl.threshold&&wU&fl.direction},
attrTest:function(pl){return Lj.prototype.attrTest.call(this,pl)&&(this.state&2||!(this.state&2)&&this.directionTest(pl))},
emit:function(pl){this.pX=pl.deltaX;this.pY=pl.deltaY;var fl=md(pl.direction);fl&&this.manager.emit(this.options.event+fl,pl);this._super.emit.call(this,pl)}});
w(TG,Lj,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(pl){return this._super.attrTest.call(this,pl)&&(Math.abs(pl.scale-1)>this.options.threshold||this.state&2)},
emit:function(pl){this._super.emit.call(this,pl);pl.scale!==1&&this.manager.emit(this.options.event+(pl.scale<1?"in":"out"),pl)}});
w(iC,IC,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(pl){var fl=this.options,MA=pl.pointers.length===fl.pointers,yd=pl.distance<fl.threshold,wU=pl.deltaTime>fl.time;this._input=pl;if(!yd||!MA||pl.eventType&12&&!wU)this.reset();else if(pl.eventType&1)this.reset(),this._timer=h(function(){this.state=8;this.tryEmit()},fl.time,this);
else if(pl.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(pl){this.state===8&&(pl&&pl.eventType&4?this.manager.emit(this.options.event+"up",pl):(this._input.timeStamp=Bz(),this.manager.emit(this.options.event,this._input)))}});
w(hC,Lj,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(pl){return this._super.attrTest.call(this,pl)&&(Math.abs(pl.rotation)>this.options.threshold||this.state&2)}});
w(Y2,Lj,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return H0.prototype.getTouchAction.call(this)},
attrTest:function(pl){var fl=this.options.direction;if(fl&30)var MA=pl.velocity;else fl&6?MA=pl.velocityX:fl&24&&(MA=pl.velocityY);return this._super.attrTest.call(this,pl)&&fl&pl.direction&&zI(MA)>this.options.velocity&&pl.eventType&4},
emit:function(pl){var fl=md(pl.direction);fl&&this.manager.emit(this.options.event+fl,pl);this.manager.emit(this.options.event,pl)}});
w(It,IC,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(pl){var fl=this.options,MA=pl.pointers.length===fl.pointers,yd=pl.distance<fl.threshold,wU=pl.deltaTime<fl.time;this.reset();if(pl.eventType&1&&this.count===0)return this.failTimeout();if(yd&&wU&&MA){if(pl.eventType!=4)return this.failTimeout();MA=this.pTime?pl.timeStamp-this.pTime<fl.interval:!0;yd=!this.pCenter||Ah(this.pCenter,pl.center)<fl.posThreshold;this.pTime=pl.timeStamp;this.pCenter=pl.center;yd&&MA?this.count+=1:this.count=1;this._input=pl;if(this.count%fl.taps===0)return this.hasRequireFailures()?
(this._timer=h(function(){this.state=8;this.tryEmit()},fl.interval,this),2):8}return 32},
failTimeout:function(){this._timer=h(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))}});
Wz.VERSION="2.0.2";Wz.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[hC,{enable:!1}],[TG,{enable:!1},["rotate"]],[Y2,{direction:6}],[H0,{direction:6},["swipe"]],[It],[It,{event:"doubletap",taps:2},["tap"]],[iC]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};VP.prototype={set:function(pl){a(this.options,pl);return this},
stop:function(pl){this.session.stopped=pl?2:1},
recognize:function(pl){var fl=this.session;if(!fl.stopped){this.touchAction.preventDefaults(pl);var MA=this.recognizers,yd=fl.curRecognizer;if(!yd||yd&&yd.state&8)yd=fl.curRecognizer=null;for(var wU=0,rk=MA.length;wU<rk;wU++){var AR=MA[wU];fl.stopped===2||yd&&AR!=yd&&!AR.canRecognizeWith(yd)?AR.reset():AR.recognize(pl);!yd&&AR.state&14&&(yd=fl.curRecognizer=AR)}}},
get:function(pl){if(pl instanceof IC)return pl;for(var fl=this.recognizers,MA=0;MA<fl.length;MA++)if(fl[MA].options.event==pl)return fl[MA];return null},
add:function(pl){if(J(pl,"add",this))return this;var fl=this.get(pl.options.event);fl&&this.remove(fl);this.recognizers.push(pl);pl.manager=this;this.touchAction.update();return pl},
remove:function(pl){if(J(pl,"remove",this))return this;var fl=this.recognizers;pl=this.get(pl);fl.splice(x(fl,pl),1);this.touchAction.update();return this},
on:function(pl,fl){var MA=this.handlers;m(r(pl),function(yd){MA[yd]=MA[yd]||[];MA[yd].push(fl)});
return this},
off:function(pl,fl){var MA=this.handlers;m(r(pl),function(yd){fl?MA[yd].splice(x(MA[yd],fl),1):delete MA[yd]});
return this},
emit:function(pl,fl){this.options.domEvents&&Mp(pl,fl);var MA=this.handlers[pl]&&this.handlers[pl].slice();if(MA&&MA.length){fl.type=pl;fl.preventDefault=function(){fl.srcEvent.preventDefault()};
pl=0;for(var yd=MA.length;pl<yd;pl++)MA[pl](fl)}},
destroy:function(){this.element&&LR(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
a(Wz,{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:VP,Input:M,TouchAction:l4,Recognizer:IC,AttrRecognizer:Lj,Tap:It,Pan:H0,Swipe:Y2,Pinch:TG,Rotate:hC,Press:iC,on:F,off:K,each:m,merge:T,extend:a,inherit:w,bindFn:P,prefixed:q});
S[V]=Wz})(window,document,"Hammer");
return window.Hammer}.call({});
E.DOCUMENT=k;k[Ty5]=E}return k[Ty5]};/*

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

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 bm8;_.vqj="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");bm8=function(){var k=[],E;var S=S||_.vqj.length;for(E=0;E<8;E++)k[E]=_.vqj[0|Math.random()*S];return k.join("")};var q81=function(){return Math.random().toString(36).substring(7).split("").join(".")},Mu1="@@redux/INIT"+q81(),OTI="@@redux/REPLACE"+q81();var G4I=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Zm8=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var dXA="top right bottom left width height size weight".split(" "),sOA=typeof MutationObserver!=="undefined",lOA=Zm8&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,MHz=function(){this.mutationEventsAdded_=this.JSC$11752_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=CEi(this.refresh.bind(this))},qBC=function(k,
E){var S=k.observers_;
E=S.indexOf(E);~E&&S.splice(E,1);!S.length&&k.JSC$11752_connected_&&Zm8&&k.JSC$11752_connected_&&(document.removeEventListener("transitionend",k.onTransitionEnd_),window.removeEventListener("resize",k.refresh),k.mutationsObserver_&&(k.mutationsObserver_.disconnect(),lOA&&(HTMLElement.prototype.attachShadow=lOA)),k.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",k.refresh),k.mutationsObserver_=null,k.mutationEventsAdded_=!1,k.JSC$11752_connected_=!1)};
MHz.prototype.refresh=function(){z_j(this)&&this.refresh()};
var z_j=function(k){k=k.observers_.filter(function(E){return QO4(E),E.activeObservations_.length>0});
k.forEach(function(E){return Om2(E)});
return k.length>0},Ge2=function(k){if(Zm8&&!k.JSC$11752_connected_){document.addEventListener("transitionend",k.onTransitionEnd_);
window.addEventListener("resize",k.refresh);if(sOA){k.mutationsObserver_=new MutationObserver(k.refresh);var E={attributes:!0,childList:!0,characterData:!0,subtree:!0};k.mutationsObserver_.observe(document,E);lOA&&(function V(R){var N=R.shadowRoot;N&&(k.mutationsObserver_.observe(N,E),V(N));for(R=R.firstElementChild;R;)V(R),R=R.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var R=lOA.apply(this,_.sX.apply(0,arguments));
k.mutationsObserver_.observe(R,E);return R})}else document.addEventListener("DOMSubtreeModified",k.refresh),k.mutationEventsAdded_=!0;
k.JSC$11752_connected_=!0}};
MHz.prototype.onTransitionEnd_=function(k){var E=k.propertyName===void 0?"":k.propertyName;dXA.some(function(S){return!!~E.indexOf(S)})&&this.refresh()};
var Cbj=null;var knY=function(k,E){for(var S=_.n(Object.keys(E)),R=S.next();!R.done;R=S.next())R=R.value,Object.defineProperty(k,R,{value:E[R],enumerable:!1,writable:!1,configurable:!0})};var rB=function(k){var E;return(k==null?void 0:(E=k.ownerDocument)==null?void 0:E.defaultView)||globalThis};var E7C={x:0,y:0,width:0,height:0},SUC=typeof SVGGraphicsElement!=="undefined"?function(k){return k instanceof rB(k).SVGGraphicsElement}:function(k){return k instanceof rB(k).SVGElement&&typeof k.getBBox==="function"};var RQT=function(k){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=k};
RQT.prototype.isActive=function(){var k=this.target;if(Zm8)if(SUC(k)){var E=k.getBBox();E={x:0,y:0,width:E.width,height:E.height}}else{var S=k.clientWidth,R=k.clientHeight;if(S||R){var V=rB(k).getComputedStyle(k);E=AB(V["padding-top"]);var N=AB(V["padding-left"]),h=N+AB(V["padding-right"]),J=E+AB(V["padding-bottom"]),m=AB(V.width),a=AB(V.height);V.boxSizing==="border-box"&&(Math.round(m+h)!==S&&(m-=kA1(V,"left","right")+h),Math.round(a+J)!==R&&(a-=kA1(V,"top","bottom")+J));k!==rB(k).document.documentElement&&
(k=Math.round(m+h)-S,R=Math.round(a+J)-R,Math.abs(k)!==1&&(m-=k),Math.abs(R)!==1&&(a-=R));E={x:N,y:E,width:m,height:a}}else E=E7C}else E=E7C;this.contentRect_=E;return E.width!==this.broadcastWidth||E.height!==this.broadcastHeight};var Vzd=function(k,E){var S=E.x;var R=E.y;var V=E.width;E=E.height;var N=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);knY(N,{x:S,y:R,width:V,height:E,top:R,right:S+V,bottom:E+R,left:S});knY(this,{target:k,contentRect:N})};var NFT=function(k,E){var S=Cbj;this.activeObservations_=[];this.observations_=new Map;if(typeof k!=="function")throw new TypeError("Ue");this.callback_=k;this.controller_=S;this.callbackCtx_=E};
NFT.prototype.observe=function(k){if(k===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(k instanceof rB(k).Element))throw new TypeError("We");var E=this.observations_;E.has(k)||(E.set(k,new RQT(k)),k=this.controller_,~k.observers_.indexOf(this)||k.observers_.push(this),k.JSC$11752_connected_||Ge2(k),this.controller_.refresh())}};
NFT.prototype.unobserve=function(k){if(k===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(k instanceof rB(k).Element))throw new TypeError("We");var E=this.observations_;E.has(k)&&(E.delete(k),E.size||qBC(this.controller_,this))}};
NFT.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();qBC(this.controller_,this)};
var QO4=function(k){k.activeObservations_.splice(0);k.observations_.forEach(function(E){E.isActive()&&k.activeObservations_.push(E)})},Om2=function(k){if(k.activeObservations_.length>0){var E=k.callbackCtx_,S=k.activeObservations_.map(function(R){var V=R.target,N=R.contentRect_;
R.broadcastWidth=N.width;R.broadcastHeight=N.height;return new Vzd(V,N)});
k.callback_.call(E,S,E);k.activeObservations_.splice(0)}};var uA=function(k){if(!(this instanceof uA))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");Cbj||(Cbj=new MHz);this.observer_=new NFT(k,this)};
uA.prototype.observe=function(k){this.observer_.observe(k)};
uA.prototype.unobserve=function(k){this.observer_.unobserve(k)};
uA.prototype.disconnect=function(){this.observer_.disconnect()};var Uum=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:uA;var G9={MouseUp:0,MouseDown:1,Click:2,ContextMenu:3,DblClick:4,Focus:5,Blur:6,TouchStart:7,TouchMove_Departed:8,TouchEnd:9,TouchCancel:10,0:"MouseUp",1:"MouseDown",2:"Click",3:"ContextMenu",4:"DblClick",5:"Focus",6:"Blur",7:"TouchStart",8:"TouchMove_Departed",9:"TouchEnd",10:"TouchCancel"},Et={"2D":0,WebGL:1,WebGL2:2};Et[Et["2D"]]="2D";Et[1]="WebGL";Et[2]="WebGL2";var SFR={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},R3I={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ese={},NGj={},I9b={},ff=function(k){return rc("Node",k,"childNodes")},$F=function(k){return rc("Node",k,"parentNode")},vk=function(k){return rc("Node",k,"parentElement")},vst=function(k){return rc("Node",k,
"textContent")},SIe=function(k){return nsI(k,"getRootNode")()},xF=function(k){return k&&"host"in k?rc("ShadowRoot",k,"host"):null},Lf=function(k){return k&&"shadowRoot"in k?rc("Element",k,"shadowRoot"):null};var sJ=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
sJ.prototype.getId=function(k){if(!k)return-1;var E,S;return(S=(E=this.nodeMetaMap.get(k)||null)==null?void 0:E.id)!=null?S:-1};
sJ.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var IsY=function(k,E){var S=k.getId(E);k.idNodeMap.delete(S);E.childNodes&&E.childNodes.forEach(function(R){return IsY(k,R)})};
sJ.prototype.has=function(k){return this.idNodeMap.has(k)};
sJ.prototype.add=function(k,E){this.idNodeMap.set(E.id,k);this.nodeMetaMap.set(k,E)};
sJ.prototype.replace=function(k,E){var S=this.idNodeMap.get(k)||null;S&&(S=this.nodeMetaMap.get(S))&&this.nodeMetaMap.set(E,S);this.idNodeMap.set(k,E)};
sJ.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var TGm=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,wsh=/^(?:[a-z+]+:)?\/\//i,P1C=/^www\..*/i,BGi=/^(data:)([^,]*),(.*)/i;var FLh=1,osh=RegExp("[^a-z0-9-_:]"),bc,Z3h,U4C=/^[^ \t\n\r\u000c]+/,gsI=/^[, \t\n\r\u000c]+/,ASC=new WeakMap;var Sm,OJ=function(k){return Sm?function(){var E=_.sX.apply(0,arguments);try{return k.apply(null,_.$e(E))}catch(S){if(!Sm||Sm(S)!==!0)throw S;}}:k};var xD=function(k){this.generateIdFn=k;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
xD.prototype.getId=function(k,E,S,R){S=S||n7d(this,k);k=R||iL4(this,k);R=S.get(E);R||(R=this.generateIdFn(),S.set(E,R),k.set(R,E));return R};
xD.prototype.getIds=function(k,E){var S=this,R=n7d(this,k),V=iL4(this,k);return E.map(function(N){return S.getId(k,N,R,V)})};
xD.prototype.reset=function(k){k?(this.iframeIdToRemoteIdMap.delete(k),this.iframeRemoteIdToIdMap.delete(k)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var n7d=function(k,E){var S=k.iframeIdToRemoteIdMap.get(E);S||(S=new Map,k.iframeIdToRemoteIdMap.set(E,S));return S},iL4=function(k,E){var S=k.iframeRemoteIdToIdMap.get(E);
S||(S=new Map,k.iframeRemoteIdToIdMap.set(E,S));return S};var sVe=function(k){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new xD(ySm);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=k.mutationCb;this.wrappedEmit=k.wrappedEmit;this.stylesheetManager=k.stylesheetManager;this.recordCrossOriginIframes=k.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new xD(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=k.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11816_handleMessage.bind(this))},QVm=function(k,E){k.iframes.set(E,!0);
E.contentWindow&&k.crossOriginIframeMap.set(E.contentWindow,E)},S0j=function(k,E){k.loadListener=E},Cdt=function(k,E,S){k.mutationCb({adds:[{parentId:k.mirror.getId(E),
nextId:null,node:S}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(k.recordCrossOriginIframes){var R;(R=E.contentWindow)==null||R.addEventListener("message",k.JSC$11816_handleMessage.bind(k))}var V;(V=k.loadListener)==null||V.call(k,E);E.contentDocument&&E.contentDocument.adoptedStyleSheets&&E.contentDocument.adoptedStyleSheets.length>0&&oHe(k.stylesheetManager,E.contentDocument.adoptedStyleSheets,k.mirror.getId(E.contentDocument))};
sVe.prototype.JSC$11816_handleMessage=function(k){if(k.data.type==="rrweb"&&k.origin===k.data.origin&&k.source){var E=this.crossOriginIframeMap.get(k.source);E&&(E=hQ4(this,E,k.data.event))&&this.wrappedEmit(E,k.data.isCheckout)}};
var hQ4=function(k,E,S){switch(S.type){case 2:k.crossOriginIframeMirror.reset(E);k.crossOriginIframeStyleMirror.reset(E);J25(k,S.data.node,E);var R=S.data.node.id;k.crossOriginIframeRootIdMap.set(E,R);c2T(k,S.data.node,R);return{timestamp:S.timestamp,type:3,data:{source:0,adds:[{parentId:k.mirror.getId(E),nextId:null,node:S.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return S;case 5:return LS(k,S.data.payload,E,["id","parentId","previousId","nextId"]),S;case 3:switch(S.data.source){case 0:return S.data.adds.forEach(function(V){LS(k,
V,E,["parentId","nextId","previousId"]);J25(k,V.node,E);var N=k.crossOriginIframeRootIdMap.get(E);N&&c2T(k,V.node,N)}),S.data.removes.forEach(function(V){LS(k,V,E,["parentId",
"id"])}),S.data.attributes.forEach(function(V){LS(k,V,E,["id"])}),S.data.texts.forEach(function(V){LS(k,V,E,["id"])}),S;
case 12:case 6:case 1:return S.data.positions.forEach(function(V){LS(k,V,E,["id"])}),S;
case 7:case 2:case 3:case 9:case 5:return LS(k,S.data,E,["id"]),S;case 8:case 13:return LS(k,S.data,E,["id"]),mxd(k,S.data,E,["styleId"]),S;case 10:return S;case 14:return S.data.ranges.forEach(function(V){LS(k,V,E,["start","end"])}),S;
case 15:return LS(k,S.data,E,["id"]),mxd(k,S.data,E,["styleIds"]),(R=S.data.styles)==null||R.forEach(function(V){mxd(k,V,E,["styleId"])}),S}}return!1};
sVe.prototype.replace=function(k,E,S,R){R=_.n(R);for(var V=R.next();!V.done;V=R.next())if(V=V.value,Array.isArray(E[V])||typeof E[V]==="number")Array.isArray(E[V])?E[V]=k.getIds(S,E[V]):E[V]=k.getId(S,E[V]);return E};
var LS=function(k,E,S,R){k.replace(k.crossOriginIframeMirror,E,S,R)},mxd=function(k,E,S,R){k.replace(k.crossOriginIframeStyleMirror,E,S,R)},J25=function(k,E,S){LS(k,E,S,["id",
"rootId"]);"childNodes"in E&&E.childNodes.forEach(function(R){J25(k,R,S)})},c2T=function(k,E,S){E.type===0||E.rootId||(E.rootId=S);
"childNodes"in E&&E.childNodes.forEach(function(R){c2T(k,R,S)})};var mw1=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},eQd=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.I=eQd.prototype;_.I.getId=function(k){var E;return(E=this.styleIDMap.get(k))!=null?E:-1};
_.I.has=function(k){return this.styleIDMap.has(k)};
_.I.add=function(k,E){if(this.has(k))return this.getId(k);E=E===void 0?this.id++:E;this.styleIDMap.set(k,E);this.idStyleMap.set(E,k);return E};
_.I.getStyle=function(k){return this.idStyleMap.get(k)||null};
_.I.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.I.generateId=function(){return this.id++};var asz=function(){this.length=0;this.tail=this.head=null};
asz.prototype.get=function(k){if(k>=this.length)throw Error("Ye");for(var E=this.head,S=0;S<k;S++){var R=void 0;E=((R=E)==null?void 0:R.next)||null}return E};
var tzj=function(k,E){var S={value:E,previous:null,next:null};E.__ln=S;if(E.previousSibling&&"__ln"in E.previousSibling){var R=E.previousSibling.__ln.next;S.next=R;S.previous=E.previousSibling.__ln;E.previousSibling.__ln.next=S;R&&(R.previous=S)}else E.nextSibling&&"__ln"in E.nextSibling&&E.nextSibling.__ln.previous?(R=E.nextSibling.__ln.previous,S.previous=R,S.next=E.nextSibling.__ln,E.nextSibling.__ln.previous=S,R&&(R.next=S)):(k.head&&(k.head.previous=S),S.next=k.head,k.head=S);S.next===null&&
(k.tail=S);k.length++};
asz.prototype.removeNode=function(k){var E=k.__ln;this.head&&(E.previous?(E.previous.next=E.next)?E.next.previous=E.previous:this.tail=E.previous:(this.head=E.next)?this.head.previous=null:this.tail=null,k.__ln&&delete k.__ln,this.length--)};
var TFY=function(k,E){return k+"@"+E},Jz1=function(){var k=this;
this.locked=this.JSC$11847_frozen=!1;this.texts=[];this.attributes=[];this.attributeMap=new WeakMap;this.removes=[];this.mapRemoves=[];this.movedMap={};this.addedSet=new Set;this.movedSet=new Set;this.droppedSet=new Set;this.removesSubTreeCache=new Set;this.processMutations=function(E){E.forEach(k.JSC$11847_processMutation);k.emit()};
this.emit=function(){if(!k.JSC$11847_frozen&&!k.locked){for(var E=[],S=new Set,R=new asz,V=function(w){for(var P=-2;P===-2;)P=(w=w&&w.nextSibling)&&k.mirror.getId(w);return P},N=function(w){var P=$F(w);
if(P&&Vyh(w)){var B=!1;if(w.nodeType===Node.TEXT_NODE){var F=P.tagName;if(F==="TEXTAREA")return;F==="STYLE"&&k.addedSet.has(P)&&(B=!0)}P=jX(P)?k.mirror.getId(Rph(w)):k.mirror.getId(P);F=V(w);if(P===-1||F===-1)return tzj(R,w);if(B=dc(w,{doc:k.doc,mirror:k.mirror,blockClass:k.blockClass,blockSelector:k.blockSelector,maskTextClass:k.maskTextClass,maskTextSelector:k.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:k.inlineStylesheet,maskInputOptions:k.maskInputOptions,maskTextFn:k.maskTextFn,
maskInputFn:k.maskInputFn,slimDOMOptions:k.slimDOMOptions,dataURLOptions:k.dataURLOptions,recordCanvas:k.recordCanvas,inlineImages:k.inlineImages,onSerialize:function(K){K.nodeName==="IFRAME"&&k.mirror.nodeMetaMap.get(K)&&QVm(k.iframeManager,K);EHm(K,k.mirror)&&OtA(k.stylesheetManager,K);w&&Lf(w)&&G_1(k.shadowDomManager,Lf(w),k.doc)},
onIframeLoad:function(K,r){Cdt(k.iframeManager,K,r);K.contentWindow&&K.contentDocument&&kkj(k.shadowDomManager,K.contentWindow.Element,K.contentDocument)},
onStylesheetLoad:function(K,r){Ett(k.stylesheetManager,K,r)},
cssCaptured:B}))E.push({parentId:P,nextId:F,node:B}),S.add(B.id)}};k.mapRemoves.length;)IsY(k.mirror,k.mapRemoves.shift());
for(var h=_.n(k.movedSet),J=h.next();!J.done;J=h.next())J=J.value,nHC(k.removesSubTreeCache,J)&&!k.movedSet.has($F(J))||N(J);h=_.n(k.addedSet);for(J=h.next();!J.done;J=h.next())J=J.value,hpI(k.droppedSet,J)||nHC(k.removesSubTreeCache,J)?hpI(k.movedSet,J)?N(J):k.droppedSet.add(J):N(J);for(J=null;R.length;){h=null;if(J){var m=k.mirror.getId($F(J.value)),a=V(J.value);m!==-1&&a!==-1&&(h=J)}if(!h)for(J=R.tail;J;){var T=J;J=J.previous;if(T&&(m=k.mirror.getId($F(T.value)),V(T.value)!==-1))if(m!==-1){h=T;
break}else if((m=$F(T.value))&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(m=xF(m),k.mirror.getId(m)!==-1)){h=T;break}}if(!h){for(;R.head;)R.removeNode(R.head.value);break}J=h.previous;R.removeNode(h.value);N(h.value)}N={texts:k.texts.map(function(w){var P=w.node,B=$F(P);B&&B.tagName==="TEXTAREA"&&k.genTextAreaValueMutation(B);return{id:k.mirror.getId(P),value:w.value}}).filter(function(w){return!S.has(w.id)}).filter(function(w){return k.mirror.has(w.id)}),
attributes:k.attributes.map(function(w){var P=w.attributes;if(typeof P.style==="string"){var B=JSON.stringify(w.styleDiff),F=JSON.stringify(w._unchangedStyles);B.length<P.style.length&&(B+F).split("var(").length===P.style.split("var(").length&&(P.style=w.styleDiff)}return{id:k.mirror.getId(w.node),attributes:P}}).filter(function(w){return!S.has(w.id)}).filter(function(w){return k.mirror.has(w.id)}),
removes:k.removes,adds:E};if(N.texts.length||N.attributes.length||N.removes.length||N.adds.length)k.texts=[],k.attributes=[],k.attributeMap=new WeakMap,k.removes=[],k.addedSet=new Set,k.movedSet=new Set,k.droppedSet=new Set,k.removesSubTreeCache=new Set,k.movedMap={},k.mutationCb(N)}};
this.genTextAreaValueMutation=function(E){var S=k.attributeMap.get(E);S||(S={node:E,attributes:{},styleDiff:{},_unchangedStyles:{}},k.attributes.push(S),k.attributeMap.set(E,S));var R=Array.from(ff(E),function(V){return vst(V)||""}).join("");
S.attributes.value=m4e({element:E,maskInputOptions:k.maskInputOptions,tagName:E.tagName,type:a91(E),value:R,maskInputFn:k.maskInputFn})};
this.JSC$11847_processMutation=function(E){if(!GAI(E.target,k.mirror,k.slimDOMOptions))switch(E.type){case "characterData":var S=vst(E.target);q6(E.target,k.blockClass,k.blockSelector,!1)||S===E.oldValue||k.texts.push({value:jLt(E.target,k.maskTextClass,k.maskTextSelector,!0)&&S?k.maskTextFn?k.maskTextFn(S,O3i(E.target)):S.replace(/[\S]/g,"*"):S,node:E.target});break;case "attributes":S=E.target;var R=E.attributeName,V=E.target.getAttribute(R);if(R==="value"){var N=a91(S);V=m4e({element:S,maskInputOptions:k.maskInputOptions,
tagName:S.tagName,type:N,value:V,maskInputFn:k.maskInputFn})}if(q6(E.target,k.blockClass,k.blockSelector,!1)||V===E.oldValue)break;N=k.attributeMap.get(E.target);if(S.tagName==="IFRAME"&&R==="src"&&!k.keepIframeSrcFn(V))if(S.contentDocument)break;else R="rr_src";N||(N={node:E.target,attributes:{},styleDiff:{},_unchangedStyles:{}},k.attributes.push(N),k.attributeMap.set(E.target,N));R==="type"&&S.tagName==="INPUT"&&(E.oldValue||"").toLowerCase()==="password"&&S.setAttribute("data-rr-is-password","true");
if(!uc1(S.tagName,R))if(N.attributes[R]=rSm(k.doc,S.tagName.toLowerCase(),R.toLowerCase(),V),R==="style"){if(!k.unattachedDoc)try{k.unattachedDoc=document.implementation.createHTMLDocument()}catch(a){k.unattachedDoc=k.doc}R=k.unattachedDoc.createElement("span");E.oldValue&&R.setAttribute("style",E.oldValue);V=_.n(Array.from(S.style));for(var h=V.next();!h.done;h=V.next()){h=h.value;var J=S.style.getPropertyValue(h),m=S.style.getPropertyPriority(h);J!==R.style.getPropertyValue(h)||m!==R.style.getPropertyPriority(h)?
N.styleDiff[h]=m===""?J:[J,m]:N._unchangedStyles[h]=[J,m]}R=_.n(Array.from(R.style));for(V=R.next();!V.done;V=R.next())V=V.value,S.style.getPropertyValue(V)===""&&(N.styleDiff[V]=!1)}else R==="open"&&S.tagName==="DIALOG"&&(S.matches("dialog:modal")?N.attributes.rr_open_mode="modal":N.attributes.rr_open_mode="non-modal");break;case "childList":q6(E.target,k.blockClass,k.blockSelector,!0)||(E.target.tagName==="TEXTAREA"?k.genTextAreaValueMutation(E.target):(E.addedNodes.forEach(function(a){return k.genAdds(a,
E.target)}),E.removedNodes.forEach(function(a){var T=k.mirror.getId(a),w=jX(E.target)?k.mirror.getId(xF(E.target)):k.mirror.getId(E.target);
q6(E.target,k.blockClass,k.blockSelector,!1)||GAI(a,k.mirror,k.slimDOMOptions)||k.mirror.getId(a)===-1||(k.addedSet.has(a)?(N$j(k.addedSet,a),k.droppedSet.add(a)):k.addedSet.has(E.target)&&T===-1||C1e(E.target,k.mirror)||(k.movedSet.has(a)&&k.movedMap[T+"@"+w]?N$j(k.movedSet,a):(k.removes.push({parentId:w,id:T,isShadow:jX(E.target)&&Dw(E.target)?!0:void 0}),ImA(a,k.removesSubTreeCache))),k.mapRemoves.push(a))})))}};
this.genAdds=function(E,S){if(!wST(k.processedNodeManager,E,k)&&!k.addedSet.has(E)&&!k.movedSet.has(E)){if(k.mirror.nodeMetaMap.has(E)){if(GAI(E,k.mirror,k.slimDOMOptions))return;k.movedSet.add(E);var R=null;S&&k.mirror.nodeMetaMap.has(S)&&(R=k.mirror.getId(S));R&&R!==-1&&(k.movedMap[TFY(k.mirror.getId(E),R)]=!0)}else k.addedSet.add(E),k.droppedSet.delete(E);q6(E,k.blockClass,k.blockSelector,!1)||(ff(E).forEach(function(V){return k.genAdds(V)}),E&&Lf(E)&&ff(Lf(E)).forEach(function(V){k.processedNodeManager.add(V,
k);
k.genAdds(V,E)}))}}};
_.I=Jz1.prototype;_.I.init=function(k){var E=this;"mutationCb blockClass blockSelector maskTextClass maskTextSelector inlineStylesheet maskInputOptions maskTextFn maskInputFn keepIframeSrcFn recordCanvas inlineImages slimDOMOptions dataURLOptions doc mirror iframeManager stylesheetManager shadowDomManager canvasManager processedNodeManager".split(" ").forEach(function(S){E[S]=k[S]})};
_.I.freeze=function(){this.JSC$11847_frozen=!0;this.canvasManager.freeze()};
_.I.unfreeze=function(){this.JSC$11847_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.I.isFrozen=function(){return this.JSC$11847_frozen};
_.I.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.I.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.I.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var Qs=[],ku=window.Proxy,wYe=["INPUT","TEXTAREA","SELECT"],Pde=new WeakMap;var PT4=new Map,jVR=function(k,E,S){if(k&&(L0h(k,E)||typeof k==="object")){E=k.constructor.name;var R=PT4.get(S);R||(R=new Map,PT4.set(S,R));R.has(E)||R.set(E,[]);S=R.get(E);E=S.indexOf(k);E===-1&&(E=S.length,S.push(k));return E}},Dwh=function(k,E,S){return k.map(function(R){return xwb(R,E,S)})},L0h=function(k,E){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(S){return typeof E[S]===
"function"}).find(function(S){return k instanceof E[S]})};var BFj=A9(["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = `${width}-${height}`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for `converToBlobs`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// `as any` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"],
["\nfunction encode(buffer: ArrayBuffer) {\n  const bytes = new Uint8Array(buffer);\n  \n  let binary = '';\n  for (let i = 0; i < bytes.byteLength; i++) {\n      binary += String.fromCharCode(bytes[i]);\n  }\n  \n  return btoa(binary);\n}\n\nconst lastBlobMap: Map<number, string> = new Map();\nconst transparentBlobMap: Map<string, string> = new Map();\n\ninterface ImageBitmapDataURLResponseWorker {\n  onmessage:\n    | null\n    | ((message: MessageEvent<ImageBitmapDataURLWorkerParams>) => void);\n  postMessage(e: ImageBitmapDataURLWorkerResponse): void;\n}\n\nasync function getTransparentBlobFor(\n  width: number,\n  height: number,\n  dataURLOptions: any,\n): Promise<string> {\n  const id = \\`\\${width}-\\${height}\\`;\n  if ('OffscreenCanvas' in globalThis) {\n    if (transparentBlobMap.has(id)) return transparentBlobMap.get(id)!;\n    const offscreen = new OffscreenCanvas(width, height);\n    offscreen.getContext('2d'); // creates rendering context for \\`converToBlobs\\`\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n    transparentBlobMap.set(id, base64);\n    return base64;\n  } else {\n    return '';\n  }\n}\n\n// \\`as any\\` because: https://github.com/Microsoft/TypeScript/issues/20595\nconst worker: ImageBitmapDataURLResponseWorker = self;\n\n// eslint-disable-next-line @typescript-eslint/no-misused-promises\nworker.onmessage = async function (e) {\n  if ('OffscreenCanvas' in globalThis) {\n    const { id, bitmap, width, height, dataURLOptions } = e.data;\n\n    const transparentBase64 = getTransparentBlobFor(\n      width,\n      height,\n      dataURLOptions,\n    );\n\n    const offscreen = new OffscreenCanvas(width, height);\n    const ctx = offscreen.getContext('2d')!;\n\n    ctx.drawImage(bitmap, 0, 0);\n    bitmap.close();\n    const blob = await offscreen.convertToBlob(dataURLOptions); // takes a while\n    const type = blob.type;\n    const arrayBuffer = await blob.arrayBuffer();\n    const base64 = encode(arrayBuffer); // cpu intensive\n\n    // on first try we should check if canvas is transparent,\n    // no need to save it's contents in that case\n    if (!lastBlobMap.has(id) && (await transparentBase64) === base64) {\n      lastBlobMap.set(id, base64);\n      return worker.postMessage({ id });\n    }\n\n    if (lastBlobMap.get(id) === base64) return worker.postMessage({ id }); // unchanged\n    worker.postMessage({\n      id,\n      type,\n      base64,\n      width,\n      height,\n    });\n    lastBlobMap.set(id, base64);\n  } else {\n    return worker.postMessage({ id: e.data.id });\n  }\n};\n"]),
lB1=_.Rb(BFj.join(""));var qIj=function(k){var E=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11889_frozen=!1;this.JSC$11889_processMutation=function(m,a){if(E.rafStamps.invokeId&&E.rafStamps.latestId!==E.rafStamps.invokeId||!E.rafStamps.invokeId)E.rafStamps.invokeId=E.rafStamps.latestId;E.pendingCanvasMutations.has(m)||E.pendingCanvasMutations.set(m,[]);E.pendingCanvasMutations.get(m).push(a)};
var S=k.sampling===void 0?"all":k.sampling,R=k.win,V=k.blockClass,N=k.blockSelector,h=k.recordCanvas,J=k.dataURLOptions;this.mutationCb=k.mutationCb;this.mirror=k.mirror;h&&S==="all"&&YUd(this,R,V,N);h&&typeof S==="number"&&WVY(this,S,R,V,N,{dataURLOptions:J})};
_.I=qIj.prototype;_.I.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.I.freeze=function(){this.JSC$11889_frozen=!0};
_.I.unfreeze=function(){this.JSC$11889_frozen=!1};
_.I.lock=function(){this.locked=!0};
_.I.unlock=function(){this.locked=!1};
var WVY=function(k,E,S,R,V,N){var h=fmC(S,R,V,!0),J=new Map,m=YY1(M1I());m.onmessage=function(F){var K=F.data.id;J.set(K,!1);"base64"in F.data&&(F=F.data,k.mutationCb({id:K,type:Et["2D"],commands:[{property:"clearRect",args:[0,0,F.width,F.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:F.base64}],type:F.type}]},0,0]}]}))};
var a=1E3/E,T=0,w=function(){var F=[];S.document.querySelectorAll("canvas").forEach(function(K){q6(K,R,V,!0)||F.push(K)});
return F},P=function(F){T&&F-T<a||(T=F,w().forEach(function(K){var r,x,L,q,M;
return _.c(function(d){if(d.nextAddress==1){r=k.mirror.getId(K);if(J.get(r)||K.width===0||K.height===0)return d.return();J.set(r,!0);["webgl","webgl2"].includes(K.__context)&&(x=K.getContext(K.__context),((L=x)==null?void 0:(q=L.getContextAttributes())==null?void 0:q.preserveDrawingBuffer)===!1&&x.clear(x.COLOR_BUFFER_BIT));return d.yield(createImageBitmap(K),2)}M=d.yieldResult;m.postMessage({id:r,bitmap:M,width:K.width,height:K.height,dataURLOptions:N.dataURLOptions},[M]);_.KR(d)})}));
B=requestAnimationFrame(P)};
var B=requestAnimationFrame(P);k.resetObservers=function(){h();cancelAnimationFrame(B)}},YUd=function(k,E,S,R){FVT(k);
y2Y(k);var V=fmC(E,S,R,!1),N=$wt(k.JSC$11889_processMutation.bind(k),E,S,R),h=btI(k.JSC$11889_processMutation.bind(k),E,S,R);k.resetObservers=function(){V();N();h()}},y2Y=function(k){requestAnimationFrame(function(){return o78(k)})},FVT=function(k){var E=function(S){k.rafStamps.latestId=S;
requestAnimationFrame(E)};
requestAnimationFrame(E)},o78=function(k){k.pendingCanvasMutations.forEach(function(E,S){var R=k.mirror.getId(S);
XS8(k,S,R)});
requestAnimationFrame(function(){return o78(k)})},XS8=function(k,E,S){if(!k.JSC$11889_frozen&&!k.locked){var R=k.pendingCanvasMutations.get(E);
if(R&&S!==-1){var V=R.map(function(N){N=Object.assign({},N);return delete N.type,N});
k.mutationCb({id:S,type:R[0].type,commands:V});k.pendingCanvasMutations.delete(E)}}};var lmh=function(){this.nodeMap=new WeakMap;this.active=!1},wST=function(k,E,S){return(k=k.nodeMap.get(E))&&Array.from(k).some(function(R){return R!==S})};
lmh.prototype.add=function(k,E){var S=this;this.active||(this.active=!0,requestAnimationFrame(function(){S.nodeMap=new WeakMap;S.active=!1}));
this.nodeMap.set(k,(this.nodeMap.get(k)||new Set).add(E))};
lmh.prototype.destroy=function(){};var zph=function(k){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=k.mutationCb;this.scrollCb=k.scrollCb;this.bypassOptions=k.bypassOptions;this.mirror=k.mirror;this.init()};
zph.prototype.init=function(){this.reset();kkj(this,Element,document)};
var G_1=function(k,E,S){if(Dw(E)&&!k.shadowDoms.has(E)){k.shadowDoms.add(E);var R=czC(Object.assign({},k.bypassOptions,{doc:S,mutationCb:k.mutationCb,mirror:k.mirror,shadowDomManager:k}),E);k.restoreHandlers.push(function(){return R.disconnect()});
k.restoreHandlers.push(tyb(Object.assign({},k.bypassOptions,{scrollCb:k.scrollCb,doc:E,mirror:k.mirror})));setTimeout(function(){E.adoptedStyleSheets&&E.adoptedStyleSheets.length>0&&oHe(k.bypassOptions.stylesheetManager,E.adoptedStyleSheets,k.mirror.getId(xF(E)));k.restoreHandlers.push(XYm({mirror:k.mirror,stylesheetManager:k.bypassOptions.stylesheetManager},E))},0)}},kkj=function(k,E,S){k.restoreHandlers.push(uc(E.prototype,"attachShadow",function(R){return function(V){V=R.call(this,V);
var N=Lf(this);N&&Vyh(this)&&G_1(k,N,S);return V}}))};
zph.prototype.reset=function(){this.restoreHandlers.forEach(function(k){try{k()}catch(E){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var dwl=function(k){this.trackedLinkElements=new WeakSet;this.styleMirror=new eQd;this.mutationCb=k.mutationCb;this.adoptedStyleSheetCb=k.adoptedStyleSheetCb},Ett=function(k,E,S){"_cssText"in S.attributes&&k.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:S.id,attributes:S.attributes}]});OtA(k,E)},OtA=function(k,E){k.trackedLinkElements.has(E)||k.trackedLinkElements.add(E)},oHe=function(k,E,S){if(E.length!==0){S={id:S,
styleIds:[]};var R=[];E=_.n(E);for(var V=E.next(),N={};!V.done;N={sheet$jscomp$3:void 0},V=E.next())N.sheet$jscomp$3=V.value,V=void 0,k.styleMirror.has(N.sheet$jscomp$3)?V=k.styleMirror.getId(N.sheet$jscomp$3):(V=k.styleMirror.add(N.sheet$jscomp$3),R.push({styleId:V,rules:Array.from(N.sheet$jscomp$3.rules||CSSRule,function(h){return function(J,m){return{rule:h3t(J,h.sheet$jscomp$3.href),index:m}}}(N))})),S.styleIds.push(V);
R.length>0&&(S.styles=R);k.adoptedStyleSheetCb(S)}};
dwl.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var Vw,Zte,MyC;try{if(Array.from([1],function(k){return k*2})[0]!==2){var g74=document.createElement("iframe");
document.body.appendChild(g74);var Uxd;Array.from=((Uxd=g74.contentWindow)==null?void 0:Uxd.Array.from)||Array.from;document.body.removeChild(g74)}}catch(k){console.debug("Unable to override Array.from",k)}var Rr=new sJ;var cf1="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(" "),JfI={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},hCC=null,V7I=null;var mN1={},eCh=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 Y0h={text:1},TSj={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var HL5=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,KVd={CONSTANT:{isUnwrappable:function(k){return k instanceof lM},
unwrap:dVd},JAVASCRIPT:{isUnwrappable:function(k){return k instanceof _.SO},
unwrap:Ve},HTML:{isUnwrappable:function(k){return k instanceof qU},
unwrap:function(k){return OX(k)}},
RESOURCE_URL:{isUnwrappable:function(k){return k instanceof Kg},
unwrap:_.AJ},STRING:{isUnwrappable:function(k){return k instanceof Object},
unwrap:function(k){return String(k)}},
STYLE:{isUnwrappable:function(k){return typeof k==="string"},
unwrap:function(k){return k}},
URL:{isUnwrappable:function(k){return jr(k)},
unwrap:_.DF}},pSd={CONSTANT:Wrm,JAVASCRIPT:Wrm,HTML:function(k){k=k instanceof qU?k:zB(String(k).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return OX(k)},
RESOURCE_URL:Wrm,STRING:String,STYLE:Wrm,URL:function(k,E){k=HL5.test(k)?k:void 0;return k===void 0?E:k}};var rfC=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,Fri=/[\t\n\f\r ]+/,otl=/[\t\n\f\r ,]+/g,gtt=function(k,E,S){return S},iW={},A2Y=function(){var k=function(){var R={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",R):R}(),E=k.createHTML(""),S=k.createScript("");
k=k.createScriptURL("");return{INNOCUOUS_STRING:E,INNOCUOUS_SCRIPT:S,INNOCUOUS_URL:k}}(),nI=A2Y.INNOCUOUS_STRING,AfI=A2Y.INNOCUOUS_SCRIPT,pg1=A2Y.INNOCUOUS_URL;var r24=function(k){var E=uGI(k);return function(S,R,V,N){return N?E(N,R,V,S):nI}}({reportHandler:function(k,E){if(k)try{throw Error(E);
}catch(S){_.bM(S)}},
safeTypesBridge:function(k,E,S){var R=KVd[E];return R.isUnwrappable(k)&&(R=R.unwrap(k,S),R!==S)?R:(0,pSd[E])(String(k),S)},
allowedIdentifierPrefixes:[""]});if(rm!==void 0)throw Error("$e");rm=r24;if(rm!==r24)throw Error("af");hI("Injectable",[]);var Iqt=hI("Inject",[["token",void 0]]),iFh=hI("Optional",[]);hI("Injectable",[]);var hrb=hI("Self",[]),JH1=hI("SkipSelf",[]);hI("Host",[]);var u9T={},xxd=function(){};
xxd.prototype.resolve=function(){throw Error("cf");};
xxd.prototype.addProvider=function(){throw Error("cf");};var VGm=Function;var LV8=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,j4z=function(){this._reflect=window.Reflect};
_.I=j4z.prototype;_.I.factory=function(k){return function(){return new (Function.prototype.bind.apply(k,[null].concat(_.$e(_.sX.apply(0,arguments)))))}};
_.I._zipTypesAndAnnotations=function(k,E){var S=typeof k==="undefined"?Array(E.length):Array(k.length);for(var R=0;R<S.length;R++)S[R]=typeof k==="undefined"?[]:k[R]!=Object?[k[R]]:[],E&&LrR(E[R])&&(S[R]=S[R].concat(E[R]));return S};
_.I._ownParameters=function(k,E){if(LV8.exec(k.toString()))return null;if(k.parameters&&k.parameters!==E.parameters)return k.parameters;var S=k.ctorParameters;return S&&S!==E.ctorParameters?(E=typeof S==="function"?S():S,k=E.map(function(R){return R&&R.type}),E=E.map(function(R){return R&&DNR(R.decorators)}),this._zipTypesAndAnnotations(k,E)):LrR(this._reflect)&&LrR(this._reflect.getOwnMetadata)&&(E=this._reflect.getOwnMetadata("parameters",k),(S=this._reflect.getOwnMetadata("design:paramtypes",k))||
E)?this._zipTypesAndAnnotations(S,E):Array(k.length).fill(void 0)};
_.I.parameters=function(k){if(!k.prototype)return[];var E=Object.getPrototypeOf(k.prototype).constructor;(k=this._ownParameters(k,E))||E===Object||(k=this.parameters(E));return k||[]};
_.I._ownAnnotations=function(k,E){if(k.annotations&&k.annotations!==E.annotations)return k=k.annotations,typeof k==="function"&&k.annotations&&(k=k.annotations),k;if(k.decorators&&k.decorators!==E.decorators)return DNR(k.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",k)};
_.I.annotations=function(k){var E=Object.getPrototypeOf(k.prototype).constructor;k=this._ownAnnotations(k,E)||[];return(E!==Object?this.annotations(E):[]).concat(k)};
_.I._ownPropMetadata=function(k,E){if(k.propMetadata&&k.propMetadata!==E.propMetadata)return k=k.propMetadata,typeof k==="function"&&k.propMetadata&&(k=k.propMetadata),k;if(k.propDecorators&&k.propDecorators!==E.propDecorators){var S=k.propDecorators,R={};Object.keys(S).forEach(function(V){R[V]=DNR(S[V])});
return R}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",k)};
_.I.propMetadata=function(k){var E=Object.getPrototypeOf(k.prototype).constructor,S={};if(E!==Object){var R=this.propMetadata(E);Object.keys(R).forEach(function(N){S[N]=R[N]})}var V=this._ownPropMetadata(k,E);
V&&Object.keys(V).forEach(function(N){var h=[];S.hasOwnProperty(N)&&h.push.apply(h,_.$e(S[N]));h.push.apply(h,_.$e(V[N]));S[N]=h});
return S};
_.I.getter=function(k){return function(E){return E[k]}};
_.I.setter=function(k){return function(E,S){return E[k]=S}};
_.I.method=function(k){return function(E,S){if(!E[k])throw Error("df`"+k);return E[k].apply(E,S)}};var Dxd=function(){};var $x8=function(k){this.reflectionCapabilities=k};
_.y($x8,Dxd);_.I=$x8.prototype;_.I.factory=function(k){return this.reflectionCapabilities.factory(k)};
_.I.parameters=function(k){return this.reflectionCapabilities.parameters(k)};
_.I.annotations=function(k){return this.reflectionCapabilities.annotations(k)};
_.I.propMetadata=function(k){return this.reflectionCapabilities.propMetadata(k)};
_.I.getter=function(k){return this.reflectionCapabilities.getter(k)};
_.I.setter=function(k){return this.reflectionCapabilities.setter(k)};
_.I.method=function(k){return this.reflectionCapabilities.method(k)};var M7l=new $x8(new j4z);var j8=function(k,E){this.token=k;this.id=E;if(k===void 0||k===null)throw Error("jf");};
_.mt.Object.defineProperties(j8.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return JI(this.token)}}});
_.mt.Object.defineProperties(j8,{JSC$11945_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return mS.JSC$11949_numberOfKeys}}});
var fs5=function(){this._allKeys=new Map};
fs5.prototype.get=function(k){if(k instanceof j8)return k;if(this._allKeys.has(k))return this._allKeys.get(k);var E=new j8(k,j8.JSC$11945_numberOfKeys);this._allKeys.set(k,E);return E};
_.mt.Object.defineProperties(fs5.prototype,{JSC$11949_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var mS=new fs5;var cHt=function(k,E,S){this.key=k;this.optional=E;this.visibility=S},zCj=function(k){return new cHt(k,!1,null)},OYt=[],kzh=function(k,E,S){this.key=k;
this.resolvedFactories=E;this.multiProvider=S},GkA=function(k,E,S,R){this.factory=k;
this.dependencies=E;this.providerClass=S;this.providerValue=R};var DT={},$D=function(k,E){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=E===void 0?null:E;k=_.n(k);for(E=k.next();!E.done;E=k.next())this.addProvider(E.value)};
_.I=$D.prototype;_.I.addProvider=function(k){this.keyIdToIndex.set(k.key.id,this.keyIds.length);this.providers.push(k);this.keyIds.push(k.key.id);this.objs.push(DT)};
_.I.resolve=function(k,E){E=E===void 0?u9T:E;return this._getByKey(mS.get(ci(k)),null,E)};
_.I._new=function(k){if(this.constructedKeyIds[k.key.id])throw dNm(this,k.key);this.constructedKeyIds[k.key.id]=!0;return this._instantiateProvider(k)};
_.I._instantiateProvider=function(k){if(k.multiProvider){for(var E=Array(k.resolvedFactories.length),S=0;S<k.resolvedFactories.length;++S)E[S]=this._instantiate(k,k.resolvedFactories[S]);return E}return this._instantiate(k,k.resolvedFactories[0])};
_.I._instantiate=function(k,E){var S=this,R=E.factory;try{var V=E.dependencies.map(function(h){return S._getByReflectiveDependency(h)})}catch(h){throw h.addKey&&h.addKey(this,k.key),h;
}try{var N=R.apply(null,_.$e(V))}catch(h){throw sKh(this,h,k.key);}return N};
_.I._getByReflectiveDependency=function(k){return this._getByKey(k.key,k.visibility,k.optional?null:u9T)};
_.I._getByKey=function(k,E,S){return k===v7T?this:E instanceof hrb?this._getByKeySelf(k,S):this._getByKeyDefault(k,S,E)};
_.I._getObjByKeyId=function(k){for(var E=0;E<this.keyIds.length;E++)if(this.keyIds[E]===k)return this.objs[E]===DT&&(this.objs[E]=this._new(this.providers[E])),this.objs[E];return DT};
_.I._throwOrNull=function(k,E){if(E!==u9T)return E;throw ZY1(this,k);};
_.I._getByKeySelf=function(k,E){var S=this._getObjByKeyId(k.id);return S!==DT?S:this._throwOrNull(k,E)};
_.I._getByKeyDefault=function(k,E,S){for(var R=S=S instanceof JH1?this.parent:this;S instanceof $D;){var V=S._getObjByKeyId(k.id);if(V!==DT)return V;S=S.parent}V=void 0;if(S!==null)try{var N=S.resolve(k.token,E);if(N!==DT)return N}catch(h){V=h}if(!(R instanceof $D&&erR(k.token))){if(V)throw V;return this._throwOrNull(k,E)}for(N=R;N.parent instanceof $D;)N=N.parent;N.addProvider(Exh({provide:k.token,useClass:k.token}));return N.resolve(k.token,E)};
_.I.toString=function(){return this.displayName};
_.mt.Object.defineProperties($D.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+m71(this,function(k){return' "'+k.key.displayName+'" '}).join(", ")+"])"}}});
var v7T=mS.get(ci(xxd));(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");$jscomp.defineProperty(Array.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 bLd=window.XRegExp;var ZLY=-1,dxp=function(k){addEventListener("pageshow",function(E){E.persisted&&(ZLY=E.timeStamp,k(E))},!0)};var lsj=function(k,E,S){var R=s4j,V,N;return function(h){if(E.value>=0&&(h||S)){var J;if((N=E.value-((J=V)!=null?J:0))||V===void 0)V=E.value,E.delta=N,h=E.value,E.rating=h>R[1]?"poor":h>R[0]?"needs-improvement":"good",k(E)}}};var MzC=function(k){requestAnimationFrame(function(){return requestAnimationFrame(function(){return k()})})};var qU4=function(){var k=performance.getEntriesByType("navigation")[0];if(k&&k.responseStart>0&&k.responseStart<performance.now())return k};var zQd=function(){var k,E;return(E=(k=qU4())==null?void 0:k.activationStart)!=null?E:0};var fS=-1,Q4Y=new Set,OLj=function(k){if(document.visibilityState==="hidden"){if(k.type==="visibilitychange")for(var E=_.n(Q4Y),S=E.next();!S.done;S=E.next())S=S.value,S();isFinite(fS)||(fS=k.type==="visibilitychange"?k.timeStamp:0,removeEventListener("prerenderingchange",OLj,!0))}},Gn5=function(){if(fS<0){var k=zQd(),E,S;
fS=(S=document.prerendering?void 0:(E=globalThis.performance.getEntriesByType("visibility-state").filter(function(R){return R.name==="hidden"&&R.startTime>k})[0])==null?void 0:E.startTime)!=null?S:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",OLj,!0);addEventListener("prerenderingchange",OLj,!0);dxp(function(){setTimeout(function(){fS=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return fS},
onHidden:function(R){Q4Y.add(R)}}};var CT5=function(){var k=k===void 0?-1:k;var E=qU4(),S="navigate";ZLY>=0?S="back-forward-cache":E&&(document.prerendering||zQd()>0?S="prerender":document.wasDiscarded?S="restore":E.type&&(S=E.type.replace(/_/g,"-")));return{name:"LCP",value:k,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:S}};var tGl=new WeakMap;var k42=function(k){var E=E===void 0?{}:E;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var S=new PerformanceObserver(function(R){Promise.resolve().then(function(){k(R.getEntries())})});
S.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},E));return S}}catch(R){}};var E$A=function(k){var E=!1;return function(){E||(k(),E=!0)}};var S8p=function(k){document.prerendering?addEventListener("prerenderingchange",function(){return k()},!0):k()};var R7T=function(k){var E=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?k():(k=E$A(k),addEventListener("visibilitychange",k,{once:!0,capture:!0}),E(function(){k();removeEventListener("visibilitychange",k,{capture:!0})}))};var aqb=function(){};
aqb.prototype._processEntry=function(k){var E;(E=this._onBeforeProcessingEntry)==null||E.call(this,k)};var s4j=[2500,4E3],qd1=function(k){var E=E===void 0?{}:E;S8p(function(){var S=Gn5(),R=CT5(),V=Thh(E),N=function(P){E.reportAllChanges||(P=P.slice(-1));P=_.n(P);for(var B=P.next();!B.done;B=P.next())B=B.value,V._processEntry(B),B.startTime<S.firstHiddenTime&&(R.value=Math.max(B.startTime-zQd(),0),R.entries=[B],J())},h=k42(N);
if(h){var J=lsj(k,R,E.reportAllChanges);for(var m=E$A(function(){N(h.takeRecords());h.disconnect();J(!0)}),a=function(P){P.isTrusted&&(R7T(m),removeEventListener(P.type,a,{capture:!0}))},T=_.n(["keydown",
"click","visibilitychange"]),w=T.next();!w.done;w=T.next())addEventListener(w.value,a,{capture:!0});dxp(function(P){R=CT5();J=lsj(k,R,E.reportAllChanges);MzC(function(){R.value=performance.now()-P.timeStamp;J(!0)})})}})};var VuY;var N9C;_.Q=function(){return N9C!==void 0?N9C:N9C=document.createElement("template")};
document.head.appendChild(_.Q().content);var IXC;_.F6({_template:function(){if(IXC!==void 0)return IXC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
var E=k.content,S=E.insertBefore;VuY===void 0&&(VuY=document.createElement("template"));var R=VuY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return IXC=k},
is:"tp-yt-app-toolbar"});var n$A;var iT4;_.v7=function(){};
_.v7=_.F6({_template:function(){if(iT4!==void 0)return iT4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;n$A===void 0&&(n$A=document.createElement("template"));var R=n$A;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return iT4=k},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.v7.instance||(_.v7.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(k){this._text===k&&(k+="\u00a0");this._text="";this.async(function(){this._text=k},this.timeout)},
_onIronAnnounce:function(k){k.detail&&k.detail.text&&this.announce(k.detail.text)}});
_.v7.instance=null;_.v7.requestAvailability=function(){_.v7.instance||(_.v7.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.v7.instance):document.addEventListener("load",function(){document.body.appendChild(_.v7.instance)})};var h72;var JaC;/*

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

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

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 g$d=new _.XY({type:"iconset"});
_.F6({_template:function(){if(XNC!==void 0)return XNC;var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;o$T===void 0&&(o$T=document.createElement("template"));
var R=o$T;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return XNC=k},
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(k){k=(k||"").split(":");this._iconName=k.pop();this._iconsetName=k.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&&_.em(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=g$d.byKey(this._iconsetName)){var k=this._iconset.applyIcon(this,this._iconName,this.theme);k&&k.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,_.em(this.root).appendChild(this._img)}});var UM5;var HTz;_.F6({_template:function(){if(HTz!==void 0)return HTz;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
var E=k.content,S=E.insertBefore;UM5===void 0&&(UM5=document.createElement("template"));var R=UM5;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return HTz=k},
is:"tp-yt-iron-input",behaviors:[_.U9],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(){_.v7.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.em(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.em(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 k=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":k=/[0-9.,e-]/}return k},_bindValueChanged:function(k,E){E&&(k===void 0?E.value=null:k!==E.value&&(this.inputElement.value=k),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:k}))},
_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(k){var E=k.keyCode==19||k.keyCode==20||k.keyCode==45||k.keyCode==46||k.keyCode==144||k.keyCode==145||k.keyCode>32&&k.keyCode<41||k.keyCode>111&&k.keyCode<124;return!(k.keyCode==8||k.keyCode==9||k.keyCode==13||k.keyCode==27)&&!(k.charCode==0&&E)},
_onKeypress:function(k){if(this.allowedPattern||this.inputElement.type==="number"){var E=this._patternRegExp;if(E&&!(k.metaKey||k.ctrlKey||k.altKey)){this._patternAlreadyChecked=!0;var S=String.fromCharCode(k.charCode);this._isPrintable(k)&&!E.test(S)&&(k.preventDefault(),this._announceInvalidCharacter("Invalid character "+S+" not entered."))}}},
_checkPatternValidity:function(){var k=this._patternRegExp;if(!k)return!0;for(var E=0;E<this.inputElement.value.length;E++)if(!k.test(this.inputElement.value[E]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var k=this.inputElement.checkValidity();k&&(this.required&&this.bindValue===""?k=!1:this.hasValidator()&&(k=_.U9.validate.call(this,this.bindValue)));this.invalid=!k;this.fire("iron-input-validate");return k},
_announceInvalidCharacter:function(k){this.fire("iron-announce",{text:k})},
_computeValue:function(k){return k}});var KZ5;var pNj;var Aa2=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),raT=Aa2&&Aa2[1]>=8;
_.F6({_template:function(){if(pNj!==void 0)return pNj;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;KZ5===void 0&&(KZ5=document.createElement("template"));var R=KZ5;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return pNj=k},
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:[C9C,_.KS,_.xXC,TXA],_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 _.em(_.em(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var k=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,k-this._physicalCount)},set _virtualStart(k){k=this._clamp(k,0,this._maxVirtualStart);this.grid&&(k-=k%this._itemsPerRow);this._virtualStartVal=k},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(k){k%=this._physicalCount;k<0&&(k=this._physicalCount+k);this.grid&&(k-=k%this._itemsPerRow);this._physicalStartVal=k},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(k){this._physicalCountVal=k},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 k=this._firstVisibleIndexVal;if(k==null){var E=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
k=this._iterateItems(function(S,R){E+=this._getPhysicalSizeIncrement(S);if(E>this._scrollPosition)return this.grid?R-R%this._itemsPerRow:R;if(this.grid&&this._virtualCount-1===R)return R-R%this._itemsPerRow})||0}return k},
get lastVisibleIndex(){var k=this._lastVisibleIndexVal;if(k==null){if(this.grid)k=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var E=this._physicalTop+this._scrollOffset;this._iterateItems(function(S,R){E<this._scrollBottom&&(k=R);E+=this._getPhysicalSizeIncrement(S)})}this._lastVisibleIndexVal=k}return k},
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,_.PM);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(k){this.style.webkitOverflowScrolling=k===this?"touch":"";this.style.overflowY=k===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.PM)},
updateViewportBoundaries:function(){var k=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(k["padding-top"],10);this._isRTL=k.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var k=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),E=k-this._scrollPosition,S=E>=0;this._scrollPosition=k;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(E)>this._physicalSize&&this._physicalSize>0?(E-=this._scrollOffset,S=Math.round(E/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=S,this._physicalStart+=S,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(k=this._getReusables(S),S?(this._physicalTop=k.physicalTop,this._virtualStart+=k.indexes.length,this._physicalStart+=k.indexes.length):(this._virtualStart=this._virtualStart-k.indexes.length,this._physicalStart=this._physicalStart-k.indexes.length),this._update(k.indexes,S?null:k.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),QH))},
_getReusables:function(k){var E=[],S=this._hiddenContentSize*this._ratio,R=this._virtualStart,V=this._virtualEnd,N=this._physicalCount,h=this._physicalTop+this._scrollOffset;var J=this._physicalBottom+this._scrollOffset;var m=this._scrollPosition,a=this._scrollBottom;if(k){var T=this._physicalStart;J=m-h}else T=this._physicalEnd,J-=a;for(;;){var w=this._getPhysicalSizeIncrement(T);J-=w;if(E.length>=N||J<=S)break;if(k){if(V+E.length+1>=this._virtualCount)break;if(h+w>=m-this._scrollOffset)break;E.push(T);
h+=w;T=(T+1)%N}else{if(R-E.length<=0)break;if(h+this._physicalSize-w<=a)break;E.push(T);h-=w;T=T===0?N-1:T-1}}return{indexes:E,physicalTop:h-this._scrollOffset}},
_update:function(k,E){if(!(k&&k.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(k);this._updateMetrics(k);if(E)for(;E.length;)k=E.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(k);this._positionItems();this._updateScrollerSize()}},
_createPool:function(k){this._ensureTemplatized();var E,S=Array(k);for(E=0;E<k;E++){var R=this.stamp(null);S[E]=R.root.querySelector("*");this._itemsParent.appendChild(R.root)}return S},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(k){k=this._clamp(this._physicalCount+k,3,this._virtualCount-this._virtualStart);k=this._convertIndexToCompleteRow(k);if(this.grid){var E=k%this._itemsPerRow;E&&k-E<=this._physicalCount&&(k+=this._itemsPerRow);k-=E}k-=this._physicalCount;E=Math.round(this._physicalCount*.5);if(!(k<0)){if(k>0){E=window.performance.now();[].push.apply(this._physicalItems,this._createPool(k));for(var S=0;S<k;S++)this._physicalSizes.push(0);this._physicalCount+=k;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=k);this._update();this._templateCost=(window.performance.now()-E)/k;E=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||E===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,E)),Glj):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,E),QH))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var k=this._getReusables(!0);this._physicalTop=k.physicalTop;this._virtualStart+=k.indexes.length;this._physicalStart+=k.indexes.length;this._update(k.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 k={__key__:!0};k[this.as]=!0;k[this.indexAs]=!0;k[this.selectedAs]=!0;k.tabIndex=!0;this._instanceProps=k;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(k,E){typeof E!=="undefined"&&(this.notifyResize(),_.JH(),k&&this._updateGridMetrics())},
_itemsChanged:function(k){if(k.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,
_.PM);else if(k.path==="items.splices"){this._adjustVirtualIndex(k.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(k.value.indexSplices.some(function(S){return S.addedCount>0||S.removed.length>0})){var E=this._getActiveElement();
this.contains(E)&&E.blur()}k=k.value.indexSplices.some(function(S){return S.index+S.addedCount>=this._virtualStart&&S.index<=this._virtualEnd},this);
this._isClientFull()&&!k||this._debounce("_render",this._render,_.PM)}else k.path!=="items.length"&&this._forwardItemPath(k.path,k.value)},
_forwardItemPath:function(k,E){k=k.slice(6);var S=k.indexOf(".");S===-1&&(S=k.length);var R,V=this.modelForElement(this._offscreenFocusedItem),N=parseInt(k.substring(0,S),10);if(R=this._isIndexRendered(N)){var h=this._getPhysicalIndex(N);var J=this.modelForElement(this._physicalItems[h])}else V&&(J=V);J&&J[this.indexAs]===N&&(k=k.substring(S+1),k=this.as+(k?"."+k:""),J._setPendingPropertyOrPath(k,E,!1,!0),J._flushProperties&&J._flushProperties(),R&&(this._updateMetrics([h]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(k){k.forEach(function(E){E.removed.forEach(this._removeItem,this);E.index<this._virtualStart&&(E=Math.max(E.addedCount-E.removed.length,E.index-this._virtualStart),this._virtualStart+=E,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=E))},this)},
_removeItem:function(k){this.$.selector.deselect(k);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===k&&this._removeFocusedItem()},
_iterateItems:function(k,E){var S,R;if(arguments.length===2&&E)for(R=0;R<E.length;R++){var V=E[R];var N=this._computeVidx(V);if((S=k.call(this,V,N))!=null)return S}else{V=this._physicalStart;for(N=this._virtualStart;V<this._physicalCount;V++,N++)if((S=k.call(this,V,N))!=null)return S;for(V=0;V<this._physicalStart;V++,N++)if((S=k.call(this,V,N))!=null)return S}},
_computeVidx:function(k){return k>=this._physicalStart?this._virtualStart+(k-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+k},
_assignModels:function(k){this._iterateItems(function(E,S){var R=this._physicalItems[E],V=this.items&&this.items[S];if(V!=null){var N=this.modelForElement(R);N.__key__=null;this._forwardProperty(N,this.as,V);this._forwardProperty(N,this.selectedAs,this.$.selector.isSelected(V));this._forwardProperty(N,this.indexAs,S);this._forwardProperty(N,"tabIndex",this._focusedVirtualIndex===S?0:-1);this._physicalIndexForKey[N.__key__]=E;N._flushProperties&&N._flushProperties(!0);R.removeAttribute("hidden")}else R.setAttribute("hidden",
"")},k)},
_updateMetrics:function(k){_.JH();var E=0,S=0,R=this._physicalAverageCount,V=this._physicalAverage;this._iterateItems(function(N){S+=this._physicalSizes[N];this._physicalSizes[N]=this._physicalItems[N].offsetHeight;E+=this._physicalSizes[N];this._physicalAverageCount+=this._physicalSizes[N]?1:0},k);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(S=this._itemsPerRow===1?S:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+E-S,this._itemsPerRow=1);this._physicalAverageCount!==R&&(this._physicalAverage=Math.round((V*R+E)/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 k=this._physicalTop;if(this.grid){var E=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(S,R){var V=Math.floor(R%this._itemsPerRow*this._itemWidth+E);this._isRTL&&(V*=-1);this.translate3d(V+"px",k+"px",0,this._physicalItems[S]);this._shouldRenderNextRow(R)&&(k+=this._rowHeight)})}else this._iterateItems(function(S){this.translate3d(0,k+"px",0,this._physicalItems[S]);
k+=this._physicalSizes[S]})},
_getPhysicalSizeIncrement:function(k){return this.grid?this._computeVidx(k)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[k]},
_shouldRenderNextRow:function(k){return k%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var k=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(k!==0){this._physicalTop=this._physicalTop-k;var E=this._scrollPosition;!raT&&E>0&&this._resetScrollPosition(E-k)}},
_resetScrollPosition:function(k){this.scrollTarget&&k>=0&&(this._scrollPosition=this._scrollTop=k)},
_updateScrollerSize:function(k){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((k=(k=(k=k||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(k){return this.scrollToIndex(this.items.indexOf(k))},
scrollToIndex:function(k){if(!(typeof k!=="number"||k<0||k>this.items.length-1)&&(_.JH(),this._physicalCount!==0)){k=this._clamp(k,0,this._virtualCount-1);if(!this._isIndexRendered(k)||k>=this._maxVirtualStart)this._virtualStart=this.grid?k-this._itemsPerRow*2:k-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var E=this._physicalStart,S=this._virtualStart,R=0,V=this._hiddenContentSize;S<k&&
R<=V;)R+=this._getPhysicalSizeIncrement(E),E=(E+1)%this._physicalCount,S++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+R);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)},_.PM)},
selectItem:function(k){return this.selectIndex(this.items.indexOf(k))},
selectIndex:function(k){if(!(k<0||k>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(k)){var E=this.modelForElement(this._physicalItems[this._getPhysicalIndex(k)]);E&&(E[this.selectedAs]=!0);this.updateSizeForIndex(k)}this.$.selector.selectIndex(k)}},
deselectItem:function(k){return this.deselectIndex(this.items.indexOf(k))},
deselectIndex:function(k){k<0||k>=this._virtualCount||(this._isIndexRendered(k)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(k)])[this.selectedAs]=!1,this.updateSizeForIndex(k)),this.$.selector.deselectIndex(k))},
toggleSelectionForItem:function(k){return this.toggleSelectionForIndex(this.items.indexOf(k))},
toggleSelectionForIndex:function(k){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(k):this.$.selector.isSelected(this.items[k]))?this.deselectIndex(k):this.selectIndex(k)},
clearSelection:function(){this._iterateItems(function(k){this.modelForElement(this._physicalItems[k])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(k){(k?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(k){var E=this.modelForElement(k.target);if(E){var S=_.em(k).path[0];k=this._getActiveElement();var R=this._physicalItems[this._getPhysicalIndex(E[this.indexAs])];if(S.localName!=="input"&&S.localName!=="button"&&S.localName!=="select"){S=E.tabIndex;E.tabIndex=-100;var V=k?k.tabIndex:-1;E.tabIndex=S;k&&R!==k&&R.contains(k)&&V!==-100||this.toggleSelectionForItem(E[this.as])}}},
_multiSelectionChanged:function(k){this.clearSelection();this.$.selector.multi=k},
updateSizeForItem:function(k){return this.updateSizeForIndex(this.items.indexOf(k))},
updateSizeForIndex:function(k){if(!this._isIndexRendered(k))return null;this._updateMetrics([this._getPhysicalIndex(k)]);this._positionItems();return null},
_manageFocus:function(){var k=this._focusedVirtualIndex;k>=0&&k<this._virtualCount?this._isIndexRendered(k)?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(k){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(k/this._itemsPerRow)*this._itemsPerRow:k},
_isIndexRendered:function(k){return k>=this._virtualStart&&k<=this._virtualEnd},
_isIndexVisible:function(k){return k>=this.firstVisibleIndex&&k<=this.lastVisibleIndex},
_getPhysicalIndex:function(k){return(this._physicalStart+(k-this._virtualStart))%this._physicalCount},
focusItem:function(k){this._focusPhysicalItem(k)},
_focusPhysicalItem:function(k){if(!(k<0||k>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(k)||this.scrollToIndex(k);var E=this._physicalItems[this._getPhysicalIndex(k)],S=this.modelForElement(E),R;S.tabIndex=-100;E.tabIndex===-100&&(R=E);R||(R=_.em(E).querySelector('[tabindex="-100"]'));S.tabIndex=0;this._focusedVirtualIndex=k;R&&R.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 k=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var E=this.stamp(null);this._focusBackfillItem=E.root.querySelector("*");this._itemsParent.appendChild(E.root)}this._offscreenFocusedItem=this._physicalItems[k];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[k]=this._focusBackfillItem;this._focusedPhysicalIndex=k;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var k=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),E=this._physicalItems[k];if(E){var S=this.modelForElement(E),R=this.modelForElement(this._offscreenFocusedItem);S[this.as]===R[this.as]?(this._focusBackfillItem=E,S.tabIndex=-1,this._physicalItems[k]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(k){k=this.modelForElement(k.target);var E=this.modelForElement(this._focusedItem),S=this._offscreenFocusedItem!==null,R=this._focusedVirtualIndex;k&&(E===k?this._isIndexVisible(R)||this.scrollToIndex(R):(this._restoreFocusedItem(),E&&(E.tabIndex=-1),k.tabIndex=0,this._focusedVirtualIndex=R=k[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(R),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],S&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(k){switch(k.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&k.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&&k.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(k)}},
_clamp:function(k,E,S){return Math.min(S,Math.max(E,k))},
_debounce:function(k,E,S){this._debouncers=this._debouncers||{};this._debouncers[k]=_.N7(this._debouncers[k],S,E.bind(this));_.I0(this._debouncers[k])},
_forwardProperty:function(k,E,S){k._setPendingProperty(E,S)},
_forwardHostPropV2:function(k,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&this.modelForElement(S).forwardHostProp(k,E)},this)},
_notifyInstancePropV2:function(k,E,S){gzi(this.as,E)&&(k=k[this.indexAs],E==this.as&&(this.items[k]=S),this.notifyPath(gm(this.as,"items."+k,E),S))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(k,E,S){E.indexOf(this.as+".")===0&&this.notifyPath("items."+k.__key__+"."+E.slice(this.as.length+1),S)},
_forwardParentPath:function(k,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&this.modelForElement(S).notifyPath(k,E)},this)},
_forwardParentProp:function(k,E){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(S){S&&(this.modelForElement(S)[k]=E)},this)},
_getActiveElement:function(){var k=this._itemsParent.node.domHost;return _.em(k?k.root:document).activeElement},
_scrollTargetChanged:function(k,E){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(E)if(k==="document")this.scrollTarget=this._doc;else if(typeof k==="string"){var S,R;this.scrollTarget=(E=(R=(S=this.domHost)==null?void 0:S.polymerController)!=null?R:this.domHost)&&E.$?E.$[k]:_.em(this.ownerDocument).querySelector("#"+k)}else this._isValidScrollTarget()&&(this._oldScrollTarget=k,this._toggleScrollListener(this._shouldHaveListener,k))}});var u$Y;var xMT;var LZY=function(k,E,S,R){k-=S;E-=R;return Math.sqrt(k*k+E*E)},jf5=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
Fsm.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var yH1=function(k){k.maxRadius=0;k.mouseDownStart=0;k.mouseUpStart=0;k.xStart=0;k.yStart=0;k.xEnd=0;k.yEnd=0;k.containerMetrics=new Fsm(k.element)};
oxm.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var k=jf5()-this.mouseDownStart;this.mouseUpStart&&(k-=this.mouseUpElapsed);return k},get mouseUpElapsed(){return this.mouseUpStart?jf5()-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 k=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(k*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-k/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 k=this.radius/(this.containerMetrics.size/2);var E=this.xNow-this.containerMetrics.width/2;var S=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+E+"px, "+S+"px)";this.waveContainer.style.transform="translate3d("+E+"px, "+S+"px, 0)";this.wave.style.webkitTransform="scale("+k+","+k+")";this.wave.style.transform="scale3d("+k+","+k+",1)"},
downAction:function(k){var E=this.containerMetrics.width/2,S=this.containerMetrics.height/2;yH1(this);this.mouseDownStart=jf5();this.center?(this.xStart=E,this.yStart=S):(this.xStart=k?k.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=k?k.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=E,this.yEnd=S);k=this.containerMetrics;E=this.xStart;S=this.yStart;this.maxRadius=Math.max(LZY(E,S,0,0),LZY(E,S,
k.width,0),LZY(E,S,0,k.height),LZY(E,S,k.width,k.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=jf5())},
remove:function(){_.em(_.em(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.F6({_template:function(){if(xMT!==void 0)return xMT;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;u$Y===void 0&&(u$Y=document.createElement("template"));var R=u$Y;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return xMT=k},
is:"tp-yt-paper-ripple",behaviors:[_.YD],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(){_.em(this).parentNode.nodeType==11?this.keyEventTarget=_.em(this).getOwnerRoot().host:this.keyEventTarget=_.em(this).parentNode;var k=this.keyEventTarget;this.listen(k,"up","uiUpAction");this.listen(k,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(k){k.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var k=0;k<this.ripples.length;++k)if(!this.ripples[k].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(k){this.noink||this.downAction(k)},
downAction:function(k){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(k),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(k){this.noink||this.upAction(k)},
upAction:function(k){this.holdDown||(this.ripples.forEach(function(E){E.upAction(k)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var k=0;k<this.ripples.length;++k){var E=this.ripples[k];E.isOpacityFullyDecayed&&!E.isRestingAtMaxRadius&&this.removeRipple(E)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var k=new oxm(this);_.em(this.$.waves).appendChild(k.waveContainer);this.$.background.style.backgroundColor=k.color;this.ripples.push(k);this._setAnimating(!0);return k},
removeRipple:function(k){var E=this.ripples.indexOf(k);E<0||(this.ripples.splice(E,1),k.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var k;for(k=0;k<this.ripples.length;++k){var E=this.ripples[k];E.draw();this.$.background.style.opacity=E.outerOpacity;E.isOpacityFullyDecayed&&!E.isRestingAtMaxRadius&&this.removeRipple(E)}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(k,E){E!==void 0&&(k?this.downAction():this.upAction())}});var Ml={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(k){FY._downHandler.call(this,k);this.pressed&&this.ensureRipple(k)},
ensureRipple:function(k){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var E=this._rippleContainer||this.root;E&&_.em(E).appendChild(this._ripple);if(k){E=_.em(this._rippleContainer||this);var S=_.em(k).rootTarget;E.deepContains(S)&&this._ripple.uiDownAction(k)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(k){this.hasRipple()&&(this._ripple.noink=k)}};var DMY={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 k=1;this.disabled?k=0:this.active||this.pressed?k=4:this.receivedFocusFromKeyboard&&(k=3);this._setElevation(k)},
_computeKeyboardClass:function(k){this.toggleClass("keyboard-focus",k)},
_spaceKeyDownHandler:function(k){FY._spaceKeyDownHandler.call(this,k);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(k){FY._spaceKeyUpHandler.call(this,k);this.hasRipple()&&this._ripple.uiUpAction()}},$MY=[y9j,
_.W7,Ml,DMY];_.fX2={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(k){k&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=k)},
_createRipple:function(){var k=Ml._createRipple();k.id="ink";k.setAttribute("center","");k.classList.add("circle");return k}};
_.v$8=[y9j,_.W7,Ml,_.fX2];_.bT5=[_.v$8,gqz,{_checkedChanged:function(){XtT._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){Ml._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var ZTT;var dMj;var sf2=function(){};
_.I=sf2.prototype;_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._buttonStateChanged=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._createRipple=function(){};
_.I._noinkChanged=function(){};
_.I._computeKeyboardClass=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
_.I._setElevation=function(){};
sf2=_.F6({_template:function(){if(dMj!==void 0)return dMj;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
var E=k.content,S=E.insertBefore;ZTT===void 0&&(ZTT=document.createElement("template"));var R=ZTT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return dMj=k},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[$MY],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?DMY._calculateElevation.apply(this):this._setElevation(0)}});var lXY;var MuC;var q8C={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(k){_.Y("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(k)},
_onDialogClickWrapped:function(k){_.Y("dialog_behavior_no_tap_killswitch")||this._onDialogClick(k)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(k,E){E&&(k?(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(k){if(k){var E;((E=this.hostElement)!=null?E:this).setAttribute("aria-modal","true")}else{var S;((S=this.hostElement)!=null?S:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(k){this.closingReason=this.closingReason||{};this.closingReason.confirmed=k},
_onDialogClick:function(k){for(var E=_.em(k).path,S=0,R,V=E.indexOf((R=this.hostElement)!=null?R:this);S<V;S++)if(R=E[S],R.hasAttribute&&(R.hasAttribute("dialog-dismiss")||R.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(R.hasAttribute("dialog-confirm"));this.close();k.stopPropagation();break}}},z7T=[_.lA,
q8C];var QfC=document.createElement("template");_.X(QfC,'<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(QfC.content);var OTY=document.createElement("template");_.X(OTY,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(OTY.content);_.F6({_template:function(){if(MuC!==void 0)return MuC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
var E=k.content,S=E.insertBefore;lXY===void 0&&(lXY=document.createElement("template"));var R=lXY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return MuC=k},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[z7T,LJA],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 G4d;var CEA;_.F6({_template:function(){if(CEA!==void 0)return CEA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;G4d===void 0&&(G4d=document.createElement("template"));var R=G4d;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return CEA=k},
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 k,E,S;if(((k=window.ShadyDOM)==null?void 0:k.noPatch)!==!0&&((E=window.ShadyDOM)==null?void 0:E.noPatch)!=="on-demand"||((S=this.__shady_parentNode)==null?void 0:S.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(q8C)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var kAY=_.ry(['<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>']),Esz=_.Wiz(kAY);Esz.setAttribute("style","display: none;");document.head.appendChild(Esz.content);var SFC;var R3Y;var VLA;var NG5;_.F6({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[pS],configure:function(k){var E=k.node,S=E.getBoundingClientRect().height;return this._effect=new KeyframeEffect(E,[{height:S/2+"px"},{height:S+"px"}],this.timingFromConfig(k))}});
_.F6({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[pS],configure:function(k){var E=k.node,S=E.getBoundingClientRect().width;return this._effect=new KeyframeEffect(E,[{width:S/2+"px"},{width:S+"px"}],this.timingFromConfig(k))}});
_.F6({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[pS],configure:function(k){var E=k.node,S=E.getBoundingClientRect().width;return this._effect=new KeyframeEffect(E,[{width:S+"px"},{width:S-S/20+"px"}],this.timingFromConfig(k))}});
_.F6({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[pS],configure:function(k){var E=k.node,S=E.getBoundingClientRect().height;this.setPrefixedProperty(E,"transformOrigin","0 0");return this._effect=new KeyframeEffect(E,[{height:S+"px",transform:"translateY(0)"},{height:S/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(k))}});var ql={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},I92=function(){};
_.I=I92.prototype;_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._focusBlurHandler=function(){};
_.I._changedControlState=function(){};
_.I._setFocused=function(){};
I92=_.F6({_template:function(){if(NG5!==void 0)return NG5;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;VLA===void 0&&(VLA=document.createElement("template"));var R=VLA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return NG5=k},
is:"tp-yt-paper-menu-button",behaviors:[_.YD,_.W7],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:ql.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:ql.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:ql.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 k=_.em(this.$.content).getDistributedNodes(),E=0,S=k.length;E<S;E++)if(k[E].nodeType===Node.ELEMENT_NODE)return k[E]},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(k,E){k?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):E!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(k){_.W7._disabledChanged.apply(this,arguments);k&&this.opened&&this.close()},
__onIronOverlayCanceled:function(k){var E=this.$.trigger;_.em(k.detail).path.indexOf(E)>-1&&k.preventDefault()}});
Object.keys(ql).forEach(function(k){I92[k]=ql[k]});var nsY=_.y7.IronButtonState,i3z=(0,_.BD)(HTMLElement);
_.F6({_template:function(){if(R3Y!==void 0)return R3Y;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;SFC===void 0&&(SFC=document.createElement("template"));var R=SFC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return R3Y=k},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[nsY,_.W7,Ml,_.oo,_.U9],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(k){var E=(0,_.Aw)(this);E.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:k});E.shadowRoot.appendChild(k);return i3z.prototype._attachDom.call(this,k)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var k=this.contentElement;k&&k.selectedItem&&this._setSelectedItem(k.selectedItem)},
get contentElement(){for(var k=_.em(this.$.content).getDistributedNodes(),E=0,S=k.length;E<S;E++)if(k[E].nodeType===Node.ELEMENT_NODE)return k[E]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(k){this._setSelectedItem(k.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(k){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k)===this&&this.open()},
_selectedItemChanged:function(k){var E="";k?E=k.label||k.getAttribute("label")||k.textContent.trim():E="";this.value=E;this._setSelectedItemLabel(E)},
_computeMenuVerticalOffset:function(k,E){return E?E:k?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var k=this.opened?"true":"false",E=this.contentElement;E&&E.setAttribute("aria-expanded",k)},
_computeLabelClass:function(k,E,S){var R="label";if(k)S&&(R+=" label-is-hidden");else if(S||E)R+=" label-is-floating";return R},
_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 h3d;var JSY;_.F6({is:"tp-yt-paper-icon-button",_template:function(){if(JSY!==void 0)return JSY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;h3d===void 0&&(h3d=document.createElement("template"));var R=h3d;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return JSY=k},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.v$8],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(k,E){var S=this.getAttribute("aria-label");S&&E!=S||this.setAttribute("aria-label",k)}});var cS2;var m4z;_.z6=[y9j,_.W7,{hostAttributes:{role:"option",tabindex:"0"}}];_.F6({_template:function(){if(m4z!==void 0)return m4z;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;cS2===void 0&&(cS2=document.createElement("template"));var R=cS2;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return m4z=k},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.z6]});var e3Y;var a9Y;var tL4={attached:function(){this.fire("addon-attached")},
update:function(){}};var TG8=1,wsC=1,P14=1,BGA=[_.W7,_.YD,{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();!Gk&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(k,E){k?k=k+" "+E:k=E;return k},
_onAddonAttached:function(k){k=_.em(k).rootTarget;if(k.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,k.id);else{var E="paper-input-add-on-"+wsC++;k.id=E;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,E)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(k){_.W7._focusBlurHandler.call(this,k);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var k=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",k);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(k){try{var E=this.inputElement.selectionStart;this.value=k;this.inputElement.selectionStart=E;this.inputElement.selectionEnd=E}catch(S){this.value=k}},
_computeAlwaysFloatLabel:function(k,E){return E||k},
_updateAriaLabelledBy:function(){var k=_.em(this.root).querySelector("label");if(k){if(k.id)var E=k.id;else E="paper-input-label-"+TG8++,k.id=E;this._ariaLabelledBy=E}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+P14++)},
_onChange:function(k){this.shadowRoot&&this.fire(k.type,{sourceEvent:k},{node:this,bubbles:k.bubbles,cancelable:k.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var k=document.activeElement;k instanceof HTMLElement&&k!==document.body&&k!==document.documentElement||this._focusableElement.focus()}}}];var YFT;var WLY;_.F6({_template:function(){if(WLY!==void 0)return WLY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;YFT===void 0&&(YFT=document.createElement("template"));var R=YFT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return WLY=k},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[tL4],properties:{_charCounterStr:{type:String,value:"0"}},update:function(k){if(k.inputElement){k.value=k.value||"";var E=k.value.toString().length.toString();k.inputElement.hasAttribute("maxlength")&&(E+="/"+k.inputElement.getAttribute("maxlength"));this._charCounterStr=E}}});var FLT;var yS8;_.F6({_template:function(){if(yS8!==void 0)return yS8;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;FLT===void 0&&(FLT=document.createElement("template"));var R=FLT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return yS8=k},
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 Y6(this.attrForValue)},get _inputElement(){return _.em(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(k){this._addons||(this._addons=[]);k=k.target;this._addons.indexOf(k)===-1&&(this._addons.push(k),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(k){this._handleValueAndAutoValidate(k.target)},
_onValueChanged:function(k){var E=k.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,E.value===void 0||E.value===""))return;this._handleValueAndAutoValidate(k.target)},
_handleValue:function(k){var E=this._inputElementValue;E||E===0||k.type==="number"&&!k.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:k,value:E,invalid:this.invalid})},
_handleValueAndAutoValidate:function(k){this.autoValidate&&k&&(this.invalid=!(k.validate?k.validate(this._inputElementValue):k.checkValidity()));this._handleValue(k)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(k){if(this._addons)for(var E,S=0;E=this._addons[S];S++)E.update(k)},
_computeInputContentClass:function(k,E,S,R,V){var N="input-content";k?(V&&(N+=" label-is-hidden"),R&&!this.noUnfloatedLabelError&&(N+=" is-invalid")):(k=this.querySelector("label"),E||V?(N+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",R?N+=" is-invalid":S&&(N+=" label-is-highlighted")):(k&&(this.$.labelAndInputContainer.style.position="relative"),R&&!this.noUnfloatedLabelError&&(N+=" is-invalid")));S&&(N+=" focused");return N},
_computeUnderlineClass:function(k,E){var S="underline";E?S+=" is-invalid":k&&(S+=" is-highlighted");return S},
_computeAddOnContentClass:function(k,E){var S="add-on-content";E?S+=" is-invalid":k&&(S+=" is-highlighted");return S}});var osC;var Xsp;_.F6({_template:function(){if(Xsp!==void 0)return Xsp;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;osC===void 0&&(osC=document.createElement("template"));var R=osC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return Xsp=k},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[tL4],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(k){this._setInvalid(k.invalid)}});_.F6({is:"tp-yt-paper-input",_template:function(){if(a9Y!==void 0)return a9Y;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;e3Y===void 0&&(e3Y=document.createElement("template"));var R=e3Y;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return a9Y=k},
behaviors:[BGA,_.oo],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 gsd;var U44;_.F6({_template:function(){if(U44!==void 0)return U44;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=
k.content,S=E.insertBefore;gsd===void 0&&(gsd=document.createElement("template"));var R=gsd;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return U44=k},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.z6]});var H3C;var KLz;_.F6({_template:function(){if(KLz!==void 0)return KLz;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
var E=k.content,S=E.insertBefore;H3C===void 0&&(H3C=document.createElement("template"));var R=H3C;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return KLz=k},
is:"tp-yt-paper-item-body"});var psY;var AS4;var rS8=function(){};
_.I=rS8.prototype;_.I.indexOf=function(){};
_.I.selectPrevious=function(){};
_.I.selectNext=function(){};
_.I.selectIndex=function(){};
_.I.forceSynchronousItemUpdate=function(){};
_.I._checkFallback=function(){};
_.I._addListener=function(){};
_.I._removeListener=function(){};
_.I._activateEventChanged=function(){};
_.I._updateItems=function(){};
_.I._selectSelected=function(){};
_.I._filterItem=function(){};
_.I._valueToItem=function(){};
_.I._valueToIndex=function(){};
_.I._indexToValue=function(){};
_.I._valueForItem=function(){};
_.I._observeItems=function(){};
_.I._itemActivate=function(){};
_.I.multiChanged=function(){};
_.I._updateAttrForSelected=function(){};
_.I._updateSelected=function(){};
_.I._selectMulti=function(){};
_.I._selectionChange=function(){};
_.I._toggleSelected=function(){};
_.I._valuesToItems=function(){};
_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I.select=function(){};
_.I._resetTabindices=function(){};
_.I._updateMultiselectable=function(){};
_.I._focusWithKeyboardEvent=function(){};
_.I._clearSearchText=function(){};
_.I._focusPrevious=function(){};
_.I._focusNext=function(){};
_.I._applySelection=function(){};
_.I._focusedItemChanged=function(){};
_.I._onIronItemsChanged=function(){};
_.I._onShiftTabDown=function(){};
_.I._onFocus=function(){};
_.I._onUpKey=function(){};
_.I._onDownKey=function(){};
_.I._onEscKey=function(){};
_.I._onKeydown=function(){};
_.I._activateHandler=function(){};
_.I._disabledChanged=function(){};
_.I._setSelectedItem=function(){};
_.I._setItems=function(){};
_.I._setSelectedItems=function(){};
_.I._setFocusedItem=function(){};
rS8=_.F6({_template:function(){if(AS4!==void 0)return AS4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
var E=k.content,S=E.insertBefore;psY===void 0&&(psY=document.createElement("template"));var R=psY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return AS4=k},
is:"tp-yt-paper-listbox",behaviors:[pt2],hostAttributes:{role:"listbox"}});var ucC;var x4d;var LL2={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(k,E){return[k||E?"active":"",E?"cooldown":""].join(" ")},
__activeChanged:function(k,E){this.__setAriaHidden(!k);this.__coolingDown=!k&&E},
__altChanged:function(k){this.setAttribute("aria-label",k||"loading")},
__setAriaHidden:function(k){k?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.F6({_template:function(){if(x4d!==void 0)return x4d;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;ucC===void 0&&(ucC=document.createElement("template"));var R=ucC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return x4d=k},
is:"tp-yt-paper-spinner",behaviors:[LL2]});var jLd;var D4C;_.F6({_template:function(){if(D4C!==void 0)return D4C;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;jLd===void 0&&(jLd=document.createElement("template"));var R=jLd;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return D4C=k},
is:"tp-yt-paper-spinner-lite",behaviors:[LL2]});var $4p;var f9C;_.F6({_template:function(){if(f9C!==void 0)return f9C;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;$4p===void 0&&($4p=document.createElement("template"));var R=$4p;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return f9C=k},
is:"tp-yt-paper-tab",behaviors:[_.W7,_.y7.IronButtonState,Ml],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 k=_.em(this).parentNode;return!!k&&!!k.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(k){if(this.link){var E=this.queryEffectiveChildren("a");E&&k.target!==E&&E.click()}}});var vsd;var b3A;var Z3C=_.ry(['<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>']),d48=_.Wiz(Z3C);document.head.appendChild(d48.content);_.F6({_template:function(){if(b3A!==void 0)return b3A;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;vsd===void 0&&(vsd=document.createElement("template"));var R=vsd;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return b3A=k},
is:"tp-yt-paper-tabs",behaviors:[_.KS,_.r9d],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(k){_.em(this).querySelectorAll("tp-yt-paper-tab").forEach(k?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(k){k.setAttribute("noink","")},
_removeNoinkAttribute:function(k){k.removeAttribute("noink")},
_computeScrollButtonClass:function(k,E,S,R){return!E||S?"hidden":k?R?"hidden":"not-visible":""},
_computeTabsContentClass:function(k,E){var S="tabs-content";k&&(S+=" scrollable");if(!k||E)S+=" fit-container";return S},
_computeSelectionBarClass:function(k,E){var S="selection-bar";k?S+=" hidden":E&&(S+=" align-bottom");return S},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(k){return""+k},
_onIronSelect:function(k){this._tabChanged(k.detail.item,this._previousTab);this._previousTab=k.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();_.H7._activateHandler.apply(this,arguments)},
_scheduleActivation:function(k,E){this._pendingActivationItem=k;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,E)},
_delayedActivationHandler:function(){var k=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;k.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(k){k.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(k,E){this.scrollable&&this._affectScroll(E&&-E.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(k){this.$.tabsContainer.scrollLeft+=k;k=this.$.tabsContainer.scrollLeft;this._leftHidden=k===0||this.hideScrollButtons;this._rightHidden=k===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(k,E){if(k){var S=this.$.tabsContent.getBoundingClientRect(),R=S.width,V=k.getBoundingClientRect();S=V.left-S.left;this._pos={width:this._calcPercent(V.width,R),left:this._calcPercent(S,R)};if(this.noSlide||E==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var N=E.getBoundingClientRect();E=this.items.indexOf(E);k=this.items.indexOf(k);this.$.selectionBar.classList.add("expand");
k=E<k;this._isRTL&&(k=!k);k?this._positionBar(this._calcPercent(V.left+V.width-N.left,R)-5,this._left):this._positionBar(this._calcPercent(N.left+N.width-V.left,R)-5,this._calcPercent(S,R)+5);this.scrollable&&this._scrollToSelectedIfNeeded(V.width,S)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(k,E){E-=this.$.tabsContainer.scrollLeft;E<0?this.$.tabsContainer.scrollLeft+=E:(E+=k-this.$.tabsContainer.offsetWidth,E>0&&(this.$.tabsContainer.scrollLeft+=E))},
_calcPercent:function(k,E){return 100*k/E},
_positionBar:function(k,E){k=k||0;E=E||0;this._width=k;this._left=E;this.transform("translateX("+E+"%) scaleX("+k/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var k=this.$.selectionBar.classList;k.contains("expand")?(k.remove("expand"),k.add("contract"),this._positionBar(this._pos.width,this._pos.left)):k.contains("contract")&&k.remove("contract")}});var sLY;var l9p;_.F6({_template:function(){if(l9p!==void 0)return l9p;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;sLY===void 0&&(sLY=document.createElement("template"));var R=sLY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return l9p=k},
is:"tp-yt-paper-textarea",behaviors:[BGA,_.oo],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(k){this.$.input.textarea.selectionStart=k},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(k){this.$.input.textarea.selectionEnd=k},_ariaLabelledByChanged:function(k){this._focusableElement.setAttribute("aria-labelledby",k)},
_ariaDescribedByChanged:function(k){this._focusableElement.setAttribute("aria-describedby",k)},
get _focusableElement(){return this.inputElement.textarea}});var MLY;var qFp;/*

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 z3j=function(){};
_.I=z3j.prototype;_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._noinkChanged=function(){};
_.I._focusedChanged=function(){};
_.I.registered=function(){};
_.I._invalidChanged=function(){};
_.I.hasValidator=function(){};
_.I.validate=function(){};
_.I._getValidity=function(){};
_.I._requiredChanged=function(){};
_.I._valueChanged=function(){};
_.I._checkedChanged=function(){};
_.I._buttonStateChanged=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
z3j=_.F6({is:"tp-yt-paper-toggle-button",_template:function(){if(qFp!==void 0)return qFp;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;MLY===void 0&&(MLY=document.createElement("template"));var R=MLY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return qFp=k},
behaviors:[_.bT5],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");_.JB(this,function(){_.Mm(this,"pan-y")})},
_ontrack:function(k){k=k.detail;k.state==="start"?this._trackStart(k):k.state==="track"?this._trackMove(k):k.state==="end"&&this._trackEnd(k)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(k){k=k.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+k:k)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+k:k));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 k=Ml._createRipple();k.id="ink";k.setAttribute("recenters","");k.classList.add("circle","toggle-ink");return k}});var QLC;var O3A;_.F6({_template:function(){if(O3A!==void 0)return O3A;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;QLC===void 0&&(QLC=document.createElement("template"));var R=QLC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return O3A=k},
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 k=_.em(this).parentNode,E=_.em(this).getOwnerRoot(),S;this.for?S=_.em(E).querySelector("#"+this.for):S=k.nodeType==Node.DOCUMENT_FRAGMENT_NODE?E.host:k;return S},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(k){k==="entry"?this.show():k==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.em(this).textContent.trim()===""){for(var k=!0,E=_.em(this).getEffectiveChildNodes(),S=0;S<E.length;S++)if(E[S].textContent.trim()!==""){k=!1;break}if(k)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 k=this.offset;this.marginTop!=14&&this.offset==14&&(k=this.marginTop);var E=this.offsetParent.getBoundingClientRect(),S=this._target.getBoundingClientRect(),R=this.getBoundingClientRect(),V=(S.width-R.width)/2,N=(S.height-R.height)/2,h=S.left-E.left,J=S.top-E.top;switch(this.position){case "top":var m=h+V;var a=J-R.height-k;break;case "bottom":m=h+V;a=J+S.height+k;break;case "left":m=h-R.width-k;a=J+N;break;case "right":m=h+S.width+
k,a=J+N}this.fitToVisibleBounds?(E.left+m+R.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,m)+"px",this.style.right="auto"),E.top+a+R.height>window.innerHeight?(this.style.bottom=E.height+"px",this.style.top="auto"):(this.style.top=Math.max(-E.top,a)+"px",this.style.bottom="auto")):(this.style.left=m+"px",this.style.top=a+"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(k){k!==500&&this.updateStyles({"--paper-tooltip-delay-in":k+"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(k){if(k==="entry"&&this.animationEntry!=="")return this.animationEntry;if(k==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[k]&&typeof this.animationConfig[k][0].name==="string"){if(this.animationConfig[k][0].timing&&this.animationConfig[k][0].timing.delay&&this.animationConfig[k][0].timing.delay!==0){var E=this.animationConfig[k][0].timing.delay;k==="entry"?this.updateStyles({"--paper-tooltip-delay-in":E+"ms"}):k==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":E+
"ms"})}return this.animationConfig[k][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 GAd=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(GAd,_.iu);var C1z=_.PU(GAd,[0,_.sU]);var Q7=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Q7,_.iu);var k_C=[3,4],EH8=[5,6];var SIz=[0,k_C,EH8,_.qM,-1,_.bT,_.z4,-1,nW2,iPd];var RpT=_.PU(Q7,SIz),VyT=_.BU(SIz);var N$5=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(N$5,_.iu);var Imp=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Imp,_.iu);var nH4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(nH4,_.iu);var it4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(it4,_.iu);var hpd=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(hpd,_.iu);var O9=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(O9,_.iu);O9.prototype.getSource=function(){return _.Tn(this,1)};
O9.prototype.getMessage=function(){return _.t2(this,4)};
O9.prototype.getData=function(){return _.Tp(this,hpd,8)};var JzC=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(JzC,_.iu);var G6=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(G6,_.iu);var CS=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(CS,_.iu);var kj=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(kj,_.iu);kj.prototype.getUrl=function(){return _.t2(this,1)};
kj.prototype.setUrl=function(k){return _.uh(this,1,k)};
kj.prototype.hasUrl=function(){return _.F3(_.R4(this,1))!=null};var cz4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(cz4,_.iu);var mwY=[3];var epz=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(epz,_.iu);var E6=function(k){var E=new epz;return _.wv(E,2,k)};
epz.prototype.getLanguage=function(){return PS(this,4,S_)};
var amY=function(k){var E=E6(1);return _.gk(E,6,S_,k)},S_=[3,
4,5,6];var ty2=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(ty2,_.iu);var RJ=function(k){var E=new ty2;return _.wv(E,1,k)},VK=function(k,E){return _.gk(k,2,T$Y,E)},T$Y=[2,
3,4,5];var wYz=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(wYz,_.iu);var Nz=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Nz,_.iu);var Pdz=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Pdz,_.iu);var B$4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(B$4,_.iu);var YIC=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(YIC,_.iu);var W0C=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(W0C,_.iu);var F0A=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(F0A,_.iu);var IJ=function(k){return _.Tp(k,CS,5)};var yzY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(yzY,_.iu);yzY.prototype.getValue=function(){return ez(this,1)};var oHz=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(oHz,_.iu);var nK=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(nK,_.iu);nK.prototype.getMetadata=function(){return _.BS(this,YIC,7,i3)};
nK.prototype.hasMetadata=function(){return _.Nx(this,YIC,7,i3)};
var XY8=_.qXI(nK),i3=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var ht=function(k){this.JSC$12169_name_=k;this.files_=[];this.directories_=[];this.directoryMap_={}};
ht.prototype.getName=function(){return this.JSC$12169_name_};var cF=function(k,E){this.callback_=E;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new ht("");gHj(this,k,this.rootDirectory_);Jt(this)},gHj=function(k,E,S){for(var R=0;R<E.length;R++){var V=E[R];
V.isFile?(k.fileOps_++,V.file((0,_.uk)(k.handleFileSuccess_,k,S),(0,_.uk)(k.handleFileError_,k))):k.unscannedDirectories_.push(new UwY(V,S))}},Jt=function(k){if(k.unscannedDirectories_.length>0&&k.directoryOps_<5&&!k.hasError_){k.directoryOps_++;
var E=k.unscannedDirectories_.shift(),S=E.entry,R=new ht(S.name);E=E.parent;E.directoryMap_[R.getName()]=R;E.directories_.push(R);S=S.createReader();S.readEntries((0,_.uk)(k.handleDirectorySuccess_,k,S,R),(0,_.uk)(k.handleDirectoryError_,k))}k.directoryOps_!=0||k.fileOps_!=0||k.unscannedDirectories_.length!=0&&!k.hasError_||k.callback_(k.rootDirectory_.files_,k.rootDirectory_.directories_,k.hasError_)};
cF.prototype.handleDirectorySuccess_=function(k,E,S){gHj(this,S,E);S.length==0?(this.directoryOps_--,Jt(this)):k.readEntries((0,_.uk)(this.handleDirectorySuccess_,this,k,E),(0,_.uk)(this.handleDirectoryError_,this))};
cF.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;Jt(this)};
cF.prototype.handleFileSuccess_=function(k,E){k.files_.push(E);this.fileOps_--;Jt(this)};
cF.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;Jt(this)};
var UwY=function(k,E){this.entry=k;this.parent=E};var mW=function(k){_.wG.call(this);_.wX(k,"drop",this.onObjectsDropped_,!1,this);_.wX(k,"dragenter",this.onFilesDragged_,!1,this);_.wX(k,"dragover",this.onFilesDragged_,!1,this);_.wX(k,"dragleave",this.onDragLeave_,!1,this);_.wX(k,"dragend",this.onDragLeave_,!1,this)};
_.dy(mW,_.wG);var HtT=function(k,E){_.mL.call(this,"f");this.files=k;this.directories=E};
_.dy(HtT,_.mL);var K0Y=function(){_.mL.call(this,"h")};
_.dy(K0Y,_.mL);var pYz=function(){_.mL.call(this,"i")};
_.dy(pYz,_.mL);var Azd=function(){_.mL.call(this,"g")};
_.dy(Azd,_.mL);mW.prototype.onObjectsDropped_=function(k){var E=this;k.preventDefault();var S=k.event_.dataTransfer;if((k=S&&S.items)&&k.length>0&&k[0].webkitGetAsEntry){S=[];for(var R=[],V=0;V<k.length;V++){var N=k[V].webkitGetAsEntry();N?S.push(N):R.push(k[V])}new cF(S,function(h,J,m){m?E.dispatchEvent(new Azd("Error occurred while reading from the file system.")):E.dispatchEvent(new HtT(h,J,R))})}else(k=S&&S.files)&&this.dispatchEvent(new HtT(Array.from(k),[]))};
mW.prototype.onFilesDragged_=function(k){k.type==="dragenter"&&this.dispatchEvent(new K0Y);k.preventDefault()};
mW.prototype.onDragLeave_=function(){this.dispatchEvent(new pYz)};var rz5=function(k,E){this.JSC$12192_name_=k;this.inputElement_=E};
rz5.prototype.getName=function(){return this.JSC$12192_name_};
rz5.prototype.getInputElement=function(){return this.inputElement_};var e_=function(k,E,S){E=E===void 0?"single_file":E;S=S===void 0?[]:S;_.wG.call(this);this.overlayTarget_=k;this.parentOverlay_=k!=null?k.parentNode:_.g7("scotty-overlay-parent");this.selectorType_=E;this.acceptTypes_=S;this.overlay_=uaT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.y(e_,_.wG);
var uaT=function(k,E,S,R){var V=document.createElement("input");V.setAttribute("type","file");V.setAttribute("name","Filedata");_.wX(V,"change",k.onFilesSelected_,!1,k);S==="multiple_file"&&(V.multiple="true");S==="single_directory"&&(V.webkitdirectory="true");R.length>0&&V.setAttribute("accept",R.join(","));V.style.position="absolute";V.style.overflow="hidden";V.style.height="0px";V.style.width="0px";V.style.opacity="0";V.setAttribute("aria-hidden","true");V.setAttribute("tabIndex",-1);if(k.overlayTarget_!=
null)return V.style.height=E.offsetHeight+"px",V.style.width=E.offsetWidth+"px",k.parentOverlay_&&(k.parentOverlay_.style.position="relative"),_.g9(V,E),r9(V,new _.bh(E.offsetLeft,E.offsetTop)),V;k.parentOverlay_.appendChild(V);return V};
e_.prototype.click=function(){this.overlay_.click()};
e_.prototype.onFilesSelected_=function(k){a:{try{var E=(new XMLHttpRequest).upload!==void 0;break a}catch(a){}E=!1}if(E){var S;k=Array.from((S=k.target.files)!=null?S:[]);S=[];if(this.selectorType_==="single_directory"&&(_.Qb||iX||_.ze)){S=new ht("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(E=0;E<k.length;E++)for(var R=k[E],V=R.webkitRelativePath.split("/"),N=S,h=0;h<V.length;h++){var J=V[h];if(h==V.length-1){J!="."&&N.files_.push(R);break}var m=N.directoryMap_[J];m==void 0&&(J=
m=new ht(J),N.directoryMap_[J.getName()]=J,N.directories_.push(J));N=m}S=S.directories_}this.dispatchEvent(new xw2(k,S,null))}else k=k.target.value,k.match(/^c:\\fakepath\\/i)&&(k=k.substring(12)),this.dispatchEvent(new xw2([],[],new rz5(k,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=uaT(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var xw2=function(k,E){_.mL.call(this,"j");this.files=k;this.directories=E};
_.y(xw2,_.mL);var L0C=function(k){this.uploadUrl_=k};var jVC=function(){_.wG.call(this)};
_.dy(jVC,_.wG);var aJ=function(k){_.mL.call(this,k)};
_.dy(aJ,_.mL);var tt=function(k){_.mL.call(this,k)};
_.dy(tt,_.mL);var DwT=function(k,E,S,R,V){_.wG.call(this);S=document.createElement("form");S.setAttribute("method",E);S.setAttribute("enctype","multipart/form-data");S.setAttribute("encoding","multipart/form-data");E=document.createElement("input");E.setAttribute("type","hidden");E.setAttribute("name","metadata");E.setAttribute("value",V);S.appendChild(E);S.appendChild(R);this.JSC$12209_form_=S;k=new _.DZ(k);_.kO(k,"upload_protocol","multipart");this.JSC$12209_url_=k.toString();this.JSC$12209_request_=new CF;this.state_=
"Ready";this.JSC$12209_errorDescription_=null;this.JSC$12209_eventHandler_=new _.Bk(this);_.Wy(this,this.JSC$12209_eventHandler_);this.JSC$12209_eventHandler_.listen(this.JSC$12209_request_,"success",this.onTransferSuccess_);this.JSC$12209_eventHandler_.listen(this.JSC$12209_request_,"error",this.onTransferError_)};
_.y(DwT,jVC);_.I=DwT.prototype;_.I.run=function(){this.state_="Transferring";var k=this.JSC$12209_request_,E=this.JSC$12209_form_;if(k.JSC$11477_active_)throw Error("se");var S=new _.DZ(this.JSC$12209_url_||E.action);k.JSC$11477_form_=E;E=k.JSC$11477_form_;S=_.lu(S.toString());S!==void 0&&(E.action=S);dB8(k)};
_.I.getResponseCode=function(){return null};
_.I.getResponseText=function(){return this.JSC$12209_request_&&this.JSC$12209_request_.getResponseText()||null};
_.I.JSC$29709_getErrorDescription=function(){return this.JSC$12209_errorDescription_};
_.I.cancel=function(){this.JSC$12209_request_&&this.JSC$12209_request_.abort();this.state_="Cancelled";this.dispatchEvent(new aJ("o"))};
_.I.pause=function(){};
_.I.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new aJ("l"))};
_.I.onTransferError_=function(){this.JSC$12209_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new aJ("n"))};var Tg=function(){_.Xc.call(this)};
_.y(Tg,_.Xc);Tg.prototype.createXhr=function(){var k=_.Xc.prototype.createXhr.call(this);k.upload&&(k.upload.onprogress=(0,_.uk)(this.onProgress_,this));return k};
Tg.prototype.onProgress_=function(k){this.dispatchEvent(k)};var $wd=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},vHY=function(k,E){var S=k.attempt_+1;
if(k.maxAttempts_>0&&S>k.maxAttempts_)return!1;S==0?E():k.delayCallId_=Fc(function(){k.delayCallId_=null;E()},fm4(k),k);
k.attempt_=S;return!0};
$wd.prototype.reset=function(){this.delayCallId_&&_.Vt.clearTimeout(this.delayCallId_);this.attempt_=-1};
var fm4=function(k){var E=250*Math.pow(2,k.attempt_);k.maxDelayMs_>=0&&(E=Math.min(E,k.maxDelayMs_));return E};var gxl=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var wZ=function(){_.wG.call(this);this.JSC$12219_request_=this.state_=null;this.JSC$12219_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12219_bytesTransferred_=0;this.retryIterator_=new $wd;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12219_errorDescription_=null;this.JSC$12219_eventHandler_=new _.Bk(this);_.Wy(this,this.JSC$12219_eventHandler_);this.JSC$12219_url_=this.blob_=null;this.JSC$12219_method_=void 0;this.chunkSize_=this.JSC$12219_metadata_=
this.JSC$12219_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12219_responseText_=this.JSC$12219_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.dy(wZ,jVC);_.I=wZ.prototype;_.I.run=function(){PF(this)};
_.I.getResponseCode=function(){return this.JSC$12219_responseCode_};
_.I.getResponseText=function(){return this.JSC$12219_responseText_};
_.I.JSC$29709_getErrorDescription=function(){return this.JSC$12219_errorDescription_};
_.I.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12219_eventHandler_.removeAll();this.JSC$12219_request_&&this.JSC$12219_request_.abort();this.retryIterator_.reset();var k=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(k==="Upload"||k==="Query")k=new Tg,k.JSC$9791_withCredentials_=this.JSC$12219_withCredentials_,k.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12219_bytesTransferred_=
0;this.dispatchEvent(new aJ("o"))}};
_.I.pause=function(){this.pauseRequested_=!0};
var PF=function(k){var E=k.state_;k.pauseRequested_?(k.pauseRequested_=!1,k.stateAfterUnpausing_=E,k.state_="Paused"):vHY(k.retryIterator_,function(){switch(k.state_){case "Start":k.JSC$12219_request_=new Tg;var S=_.fO.clone(k.JSC$12219_headers_);k.blob_.size!=null&&(S["Content-Length"]=k.blob_.size);S=U7I(S);S["X-Goog-Upload-Protocol"]="resumable";S["X-Goog-Upload-Command"]="start";k.JSC$12219_eventHandler_.removeAll();k.JSC$12219_eventHandler_.listen(k.JSC$12219_request_,"complete",k.onStartComplete_);
k.JSC$12219_request_.JSC$9791_withCredentials_=k.JSC$12219_withCredentials_;k.JSC$12219_request_.send(k.JSC$12219_url_,k.JSC$12219_method_,k.JSC$12219_metadata_,S);k.lastCommandResponseCode_=null;k.dispatchEvent(new tt("q"));break;case "Upload":S=k.transferHandle_.uploadUrl_;var R=k.blob_.size;if(wi2()){var V=k.chunkSize_;var N=k.offset_+V>=R;R=TW2(k.blob_,k.offset_,N?R:k.offset_+V)}else k.offset_=0,R=k.blob_,N=!0;k.JSC$12219_request_=new Tg;k.JSC$12219_request_.JSC$9791_withCredentials_=k.JSC$12219_withCredentials_;
k.JSC$12219_eventHandler_.removeAll();k.JSC$12219_eventHandler_.listen(k.JSC$12219_request_,"progress",k.onUploadProgress_);V=(0,_.uk)(k.JSC$12221_onUploadComplete_,k,k.offset_+R.size,N);k.JSC$12219_eventHandler_.listen(k.JSC$12219_request_,"complete",V);k.lastCommandResponseCode_=null;k.dispatchEvent(new tt("q"));N=Object.assign({},k.JSC$12219_headers_||{},{"X-Goog-Upload-Command":"upload"+(N?", finalize":""),"X-Goog-Upload-Offset":k.offset_});k.JSC$12219_request_.send(S,"POST",R,N);break;case "Query":k.JSC$12219_request_=
new Tg;k.JSC$12219_eventHandler_.removeAll();k.JSC$12219_eventHandler_.listen(k.JSC$12219_request_,"complete",k.onQueryComplete_);S=Object.assign({},k.JSC$12219_headers_||{},{"X-Goog-Upload-Command":"query"});k.JSC$12219_request_.send(k.transferHandle_.uploadUrl_,"POST","",S);k.lastCommandResponseCode_=null;k.dispatchEvent(new tt("q"));break;default:throw Error("kf");}})||BF(k,"Transfer encountered too many consecutive failures.")},BF=function(k,E){k.state_="Error";
k.JSC$12219_errorDescription_=E;k.dispatchEvent(new aJ("n"))};
wZ.prototype.onStartComplete_=function(k){var E=k.target;this.lastCommandResponseCode_=E.getStatus();this.dispatchEvent(new tt("r"));if(btd(E))Ztz(this,E);else if(dwj(E)){k=Vg(k.target.getAllResponseHeaders());for(var S in k)_.I1(S.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new aJ("m"));S=tI(k,"X-Goog-Upload-URL");k=(k=tI(k,"X-Goog-Upload-Chunk-Granularity"))?parseInt(k,10):1;S===void 0||isNaN(k)||k<=0?BF(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
k)*k,this.transferHandle_=new L0C(S),this.dispatchEvent(new aJ("p")),this.state_="Upload",this.retryIterator_.reset(),PF(this))}else PF(this)};
wZ.prototype.onUploadProgress_=function(k){this.JSC$12219_bytesTransferred_=this.offset_+k.loaded;this.dispatchEvent(new aJ("k"))};
wZ.prototype.JSC$12221_onUploadComplete_=function(k,E,S){var R=this,V,N;return _.c(function(h){switch(h.nextAddress){case 1:V=S.target;R.lastCommandResponseCode_=V.getStatus();R.dispatchEvent(new tt("r"));if(sVz(V)||V.getStatus()==404)return R.JSC$12219_bytesTransferred_=k,Ztz(R,V),h.return();if(dwj(V)){h.jumpTo(2);break}if(!(N=R.detectCorruptedBlobEnabled_)){h.jumpTo(3);break}return h.yield(lmT(R),4);case 4:N=h.yieldResult;case 3:if(N)return BF(R,"Blob has been modified or corrupted."),h.return();
R.requireUploadRequestModification_=V.getStatus()==400;R.state_="Query";PF(R);return h.return();case 2:if(E)return BF(R,"Got a non-final success response after issuing a finalize command."),h.return();R.JSC$12219_bytesTransferred_=k;R.offset_=k;R.retryIterator_.reset();PF(R);return h.return()}})};
wZ.prototype.onQueryComplete_=function(k){var E=k.target;this.lastCommandResponseCode_=E.getStatus();this.dispatchEvent(new tt("r"));btd(E)?(E.getStatus()===200&&(this.JSC$12219_bytesTransferred_=this.blob_.size),Ztz(this,E)):dwj(E)?(k=Vg(k.target.getAllResponseHeaders()),k=parseInt(tI(k,"X-Goog-Upload-Size-Received"),10),isNaN(k)?BF(this,"Server did not respond with current offset."):k<this.offset_?BF(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
k+"."):this.requireUploadRequestModification_&&this.offset_===k?BF(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<k&&this.retryIterator_.reset(),this.offset_=this.JSC$12219_bytesTransferred_=k,this.state_="Upload",PF(this))):PF(this)};
var Ztz=function(k,E){k.JSC$12219_responseCode_=E.getStatus();var S=Vg(E.getAllResponseHeaders());HFe(S);k.JSC$12219_responseText_=E.getResponseText();k.state_="Response received";k.dispatchEvent(new aJ("l"))},dwj=function(k){var E=k.getStatus();
k=Vg(k.getAllResponseHeaders());k=tI(k,"X-Goog-Upload-Status");return E===200&&k==="active"},sVz=function(k){k=Vg(k.getAllResponseHeaders());
return tI(k,"X-Goog-Upload-Status")==="final"},btd=function(k){if(sVz(k))return!0;
k=k.getStatus();return k>=400&&k<500},lmT=function(k){var E;
return _.c(function(S){if(S.nextAddress==1){if(!k.blob_||k.originalBlobSize_<=0)return S.return(!1);if(k.blob_.size!==k.originalBlobSize_)return S.return(!0);_.F5(S,2);if(E=TW2(k.blob_,0,1)){var R=S.yield,V=new LF,N=EvC(V);V.reader_.readAsBinaryString(E);S=R.call(S,N,4)}else S=S.return(!0);return S}if(S.nextAddress!=2)return S.return(k.blob_.size!==k.originalBlobSize_);_.UY(S);return S.return(!0)})};var My4=function(k,E,S,R,V,N){_.wG.call(this);this.payload_=R;this.JSC$12222_url_=k;this.JSC$12222_method_=E;this.JSC$12222_headers_=S;this.JSC$12222_metadata_=V;this.encoding_=N||"binary";k=new _.WD;this.boundary_="uploader-"+Oa()+"-"+k.JSC$11326_toIsoString();this.JSC$12222_responseText_=this.JSC$12222_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12222_errorDescription_=null;this.JSC$12222_eventHandler_=new _.Bk(this);_.Wy(this,this.JSC$12222_eventHandler_)};
_.y(My4,jVC);_.I=My4.prototype;
_.I.run=function(){var k=_.fO.clone(this.JSC$12222_headers_);this.payload_.length!=null&&(k["Content-Length"]=this.payload_.length);k=U7I(k);k["X-Goog-Upload-Protocol"]="multipart";k["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new Tg;this.JSC$12222_eventHandler_.removeAll();this.JSC$12222_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12222_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12222_url_,this.JSC$12222_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12222_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",k)};
_.I.getResponseCode=function(){return this.JSC$12222_responseCode_};
_.I.getResponseText=function(){return this.JSC$12222_responseText_};
_.I.JSC$29709_getErrorDescription=function(){return this.JSC$12222_errorDescription_};
_.I.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12222_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new aJ("o")))};
_.I.pause=function(){};
_.I.onTransferProgress_=function(){this.dispatchEvent(new aJ("k"))};
_.I.onTransferComplete_=function(k){var E=k.target.getStatus();E===void 0||E===-1?(this.JSC$12222_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new aJ("n"))):(this.JSC$12222_responseCode_=E,k=k.target,E=Vg(k.getAllResponseHeaders()),HFe(E),this.JSC$12222_responseText_=k.getResponseText(),this.state_="Complete",this.dispatchEvent(new aJ("l")))};_.qI5=function(k,E,S,R){R=R===void 0?!1:R;if(S instanceof rz5)return new DwT(k,"POST",E,S.getInputElement(),"");if(typeof S==="string"||S instanceof String)return new My4(k,"POST",E,S,"");var V=new wZ(void 0);V.JSC$12219_url_=k;V.JSC$12219_method_="POST";V.JSC$12219_headers_=E;V.blob_=S;V.originalBlobSize_=S.size;V.JSC$12219_metadata_="";R&&(V.JSC$12219_withCredentials_=R);V.state_="Start";return V};var Yj=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Yj,_.iu);_.I=Yj.prototype;_.I.getEnableSsEngine=function(){return _.mV(this,2)};
_.I.getEnableAwr=function(){return _.mV(this,3)};
_.I.getAlohaAutoGaRollout=function(){return _.mV(this,5)};
_.I.getEnableConfigurator=function(){return _.mV(this,6)};
_.I.getEnableMweb=function(){return _.mV(this,7)};
var QV8=function(){var k=zpC();return _.wW(k,7,!0)};
Yj.prototype.getEnableCtlConsentCheckbox=function(){return _.mV(this,8)};
Yj.prototype.getEnableIframe=function(){return _.mV(this,9)};
var zpC=function(){var k=new Yj;k=_.wW(k,5,!0);k=_.wW(k,2,!0);k=_.wW(k,4,!1);k=_.wW(k,8,!0);return _.wW(k,9,!0)};
Yj.prototype.getEnableScreenshotNudge=function(){return _.mV(this,10)};
var Otp=function(){var k=QV8();return _.wW(k,10,!0)};
Yj.prototype.getEnableWebStartupConfigEndpoint=function(){return _.mV(this,11)};
Yj.prototype.getEnableJunkNudge=function(){return _.mV(this,12)};
var qDI=function(){var k=Otp();return _.wW(k,12,!0)};
_.I=Yj.prototype;_.I.getEnableConfiguratorLocale=function(){return _.mV(this,13)};
_.I.getEnableTinyNoPointer=function(){return _.mV(this,14)};
_.I.getEnableSupportSessionLogging=function(){return _.mV(this,15)};
_.I.getEnableFileUploadForScreenshot=function(){return _.mV(this,16)};
_.I.getEnableDirectDeflectionForSingleCategory=function(){return _.mV(this,17)};
_.I.getEnableImageSanitization=function(){return _.mV(this,18)};
_.I.getEnableAlohaBinarySplit=function(){return _.mV(this,19)};
_.I.getEnableDbFeedbackIntents=function(){return _.mV(this,20)};
_.I.getEnableMarkMandatoryFieldsWithRequired=function(){return _.mV(this,21)};
_.I.getEnableFeedbackCategoryCustomUi=function(){return _.mV(this,22)};
_.I.getEnableRealtimeCtl=function(){return _.mV(this,23)};var MGI=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(MGI,_.iu);var KsI=[/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 AHI="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 rHh=_.ry(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),u2e=_.ry(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var Lsm,$7A,j0C,fqj;var G_Y,Cdd;
G_Y=function(k,E,S){k.timeOfStartCall=(new Date).getTime();var R=S||_.Vt,V=R.document,N=k.nonce||_.ke(R.document);N&&!k.nonce&&(k.nonce=N);if(k.flow=="help"){var h=_.CV("document.location.href",R);!k.helpCenterContext&&h&&(k.helpCenterContext=h.substring(0,1200));h=!0;if(E&&JSON&&JSON.stringify){var J=JSON.stringify(E);(h=J.length<=1200)&&(k.psdJson=J)}h||(E={invalidPsd:!0})}E=[k,E,S];R.GOOGLE_FEEDBACK_START_ARGUMENTS=E;S=k.feedbackServerUri||"//www.google.com/tools/feedback";if(h=R.GOOGLE_FEEDBACK_START)h.apply(R,E);
else{R=S+"/load.js?";for(var m in k)E=k[m],E==null||_.qA(E)||(R+=encodeURIComponent(m)+"="+encodeURIComponent(E)+"&");k=rT(V).createElement("SCRIPT");N&&k.setAttribute("nonce",N);_.Ib(k,_.pg(R));V.body.appendChild(k)}};
Cdd=function(k,E,S,R){var V,N;_.c(function(h){V=S||_.Vt;var J=k.serverEnvironment==="DEV",m=S||_.Vt;m=k.nonce||_.ke(m.document);J={integrationKeys:{productId:k.productId,feedbackBucket:k.bucket,triggerId:k.triggerId},callbacks:{onClose:k.callback,onLoad:k.onLoadCallback},formContent:{locale:k.locale,disableScreenshot:k.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:k.abuseLink,additionalDataConsent:k.additionalDataConsent},initializationData:{isLocalServer:J,nonce:m,useNightlyRelease:J,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:k.feedbackServerUri,colorScheme:k.colorScheme},extraData:{productVersion:k.productVersion,authUser:k.authuser,configuratorId:k.configuratorId,customZIndex:k.customZIndex,tinyNoPointer:k.tinyNoPointer,
allowNonLoggedInFeedback:k.allowNonLoggedInFeedback,enableAnonymousFeedback:k.enableAnonymousFeedback}};E&&(m=new Map(Object.entries(E)),J.extraData.productSpecificData=m);N=J;return h.yield(d7C(N,R,V),0)})};
_.kk5=function(k,E,S){try{if(k.flow==="help"){var R=k.helpCenterPath.replace(/^\//,"");_.Cg(S||window,"https://support.google.com/"+R)}else k.flow==="submit"?G_Y(k,E,S):zrm(k.productId,k.feedbackServerUri).then(function(V){V=_.Tp(V,Yj,1);var N=!ob4||(V==null?void 0:V.getEnableMweb()),h=!k.tinyNoPointer||(V==null?void 0:V.getEnableTinyNoPointer());!V||V.getAlohaAutoGaRollout()&&N&&h?Cdd(k,E,S,V):G_Y(k,E,S)},function(V){V&&V.name!=="DuplicateFormError"&&G_Y(k,E,S)})}catch(V){Cdd(k,E,S,null)}};
_.J6("userfeedback.api.startFeedback",_.kk5);var Q0I=/https?:\/\/\S+\.\S+/,OF1=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],Gzm=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Aki=function(k){var E=k.split(""),S=[-263237435,15,E,function(R,V,N){var h=V.length;N.forEach(function(J,m,a){this.push(a[m]=V[(V.indexOf(J)-V.indexOf(this[m])+m+h--)%V.length])},R.split(""))},
function(R,V){R=(R%V.length+V.length)%V.length;V.splice(-R).reverse().forEach(function(N){V.unshift(N)})},
"response",function(){for(var R=64,V=[];++R-V.length-32;){switch(R){case 58:R-=14;case 91:case 92:case 93:continue;case 123:R=47;case 94:case 95:case 96:continue;case 46:R=95}V.push(String.fromCharCode(R))}return V},
null,12,1540023973,65941107,null,E,function(R,V){for(R=(R%V.length+V.length)%V.length;R--;)V.unshift(V.pop())},
695603893,function(R){for(var V=R.length;V;)R.push(R.splice(--V,1)[0])},
"'[;'[(",function(R,V){R.push(V)},
null,function(R,V,N,h,J){return V(N,h,J)},
"continuation",E,function(R,V){if(R.length!=0){V=(V%R.length+R.length)%R.length;var N=R[0];R[0]=R[V];R[V]=N}},
function(){for(var R=64,V=[];++R-V.length-32;){switch(R){case 91:R=44;continue;case 123:R=65;break;case 65:R-=18;continue;case 58:R=96;continue;case 46:R=95}V.push(String.fromCharCode(R))}return V},
'"),/]];'];S[7]=S;S[11]=S;S[18]=S;try{(((0,S[15])(S[21]),S[22])(S[11],S[9]),S[22])(S[new Date("1970-01-01T04:30:12.000+04:30")/1E3],S[1]),((0,S[22])(S[11],S[23]),S[4])(S[10],S[18]),(0,S[20])(S[21],S[14])<<(0,S[17])(S[18],S[1]),(0,S[4])(S[8],S[21]),(0,S[19])((0,S[19])((0,S[17])(S[7],S[9]),S[3],S[20],(0,S[6])(),S[2]),S[3],S[5],(0,S[15])(),S[2])}catch(R){return"aTlOUOubTO4AP____8P_"+k}return E.join("")};_.Etd=new _.z_("runAttestationCommand");var S05=new _.z_("verifyCommand");_.n9=new _.z_("accessibilityContext");var RCT=new _.z_("accessibilityData");var V7d=new _.z_("profileCardCommand");var Adh=new _.z_("signInEndpoint");var pK1=new _.z_("signOutEndpoint");var Iy5;_.NSA=new _.z_("accountItemSectionRenderer");Iy5=new _.z_("accountItemRenderer");_.nt2=new _.z_("saveCommandToSessionStorageAction");var iYz=new _.z_("crossAccountChannelTransferEndpoint");var g3h=new _.z_("getAccountMenuEndpoint");_.USm=new _.z_("getAccountSwitcherEndpoint");var X6i=new _.z_("getAccountsListEndpoint");var hC4=new _.z_("getAccountsListInnertubeEndpoint");_.JfY=new _.z_("addToToastAction");var cfC=new _.z_("hideEnclosingAction");_.WF=new _.z_("replaceEnclosingAction");var mNY=new _.z_("buttonRefreshAction");var eCT=new _.z_("adsControlFlowOpportunityReceivedCommand");var ayz=new _.z_("openAdAllowlistInstructionCommand");var t7d=new _.z_("videoMastheadAdPrimaryVideoRenderer");var TS5=new _.z_("displayAdRenderer");_.wgA=new _.z_("inFeedAdLayoutRenderer");var P54=new _.z_("sequenceItemInPlayerAdLayoutRenderer");_.BSC=new _.z_("adSlotRenderer");var Y0T=new _.z_("adAvatarViewModel");var Wr8=new _.z_("adBadgeViewModel");var FrA=new _.z_("adButtonViewModel");var yfj=new _.z_("adImageViewModel");var qPA=new _.z_("reelsAdCardButtonedViewModel");var otj=new _.z_("reelsPlayerOverlayLayoutViewModel");var Xg8=new _.z_("updateConversationIdCommand");var gtd=new _.z_("showSchedulingPanelCommand");var UN8=new _.z_("backstageCommentsRenderer");var HY4=new _.z_("backstageImageRenderer");var KrY=new _.z_("backstagePostRenderer");var pgC=new _.z_("backstageZeroStateRenderer");var Afd=new _.z_("postRenderer");var rf4=new _.z_("sharedPostRenderer");var uGY=new _.z_("createBackstagePostEndpoint");var xNj=new _.z_("getPostVideoPreviewEndpoint");var LrC=new _.z_("updateBackstagePostEndpoint");var jKC=new _.z_("filterChipTransformCommand");var DNC=new _.z_("insertRichSectionCommand");var G0t=new _.z_("talkToRecsDeselectCommand");var EIj=new _.z_("talkToRecsNextCommand");var O8i=new _.z_("talkToRecsSelectCommand");var $Nd=new _.z_("talkToRecsUpdateTextCommand");_.Ny=new _.z_("browseEndpoint");_.fyT=new _.z_("confirmDialogEndpoint");var vtC=new _.z_("expandOnHoverCardRenderer");var bYY=new _.z_("lumiereShelfDetailsRenderer");var ZYC=new _.z_("revealBusinessEmailCommand");var dN8=new _.z_("validateChannelHandleCommand");var sKC=new _.z_("channelCreationFormEndpoint");var ly2=new _.z_("aboutChannelViewModel");var M7j=new _.z_("channelThumbnailWithLinkRenderer");var q0Y=new _.z_("channelCreationServiceEndpoint");var zC5=new _.z_("updateChannelPageSettingsEndpoint");var Fg=function(k){this.delegate=k},yK=function(){Fg.apply(this,arguments)};
_.y(yK,Fg);_.mt.Object.defineProperties(yK.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(k){this.delegate.entityMetadata=k}}});var QK4=function(){yK.apply(this,arguments)};
_.y(QK4,yK);QK4.prototype.getAssociations=function(){return[]};
QK4.prototype.getTypeName=function(){return"channelHandle"};var Klh=new _.z_("webThumbnailDetailsExtensionData");var OiC=new _.z_("commandContext");var OYd=new _.z_("addVideoLinkAction");var Gkp=new _.z_("banAuthorAction");var C5Y=new _.z_("createCommentAction");var kzC=new _.z_("createCommentReplyAction");var ExC=new _.z_("createPollAction");var SDd=new _.z_("hideIdentityChipAction");var RrC=new _.z_("openUpdateCommentDialogAction");var VG8=new _.z_("pinCommentAction");var NhC=new _.z_("removeCommentAction");var Iqd=new _.z_("unpinCommentAction");var oJ=new _.z_("updateBackstagePollAction");var nxp=new _.z_("updateCommentVoteAction");var iFT=new _.z_("commentThreadRenderer");var hr2=function(){yK.apply(this,arguments)};
_.y(hr2,yK);hr2.prototype.getAssociations=function(){return[]};
hr2.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var JHY=function(){yK.apply(this,arguments)};
_.y(JHY,yK);JHY.prototype.getAssociations=function(){return[]};
JHY.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.cHd=new _.z_("commentDialogRenderer");var m7C=new _.z_("reloadCommentsCommand");var erC=new _.z_("updateCommentsSettingsEndpoint");var aq2=new _.z_("commentViewModel");var tGj=new _.z_("triStateButtonViewModel");var ThC=new _.z_("voiceReplyContainerViewModel");_.CI=new _.z_("commandExecutorCommand");var ov=new _.z_("emoji");var wDp=new _.z_("updateCreatorChannelInnertubeCommand");_.PG4=new _.z_("appendContinuationItemsAction");_.Bh8=new _.z_("changeEngagementPanelVisibilityAction");_.H9=new _.z_("continuationCommand");var YDz=new _.z_("hideReportedCommentAction");var Wsd=new _.z_("listMutationCommand");_.Xg=new _.z_("openPopupAction");var Fs8=new _.z_("persistSubscriptionsDisplayPreferencesCommand");var pDd;_.yHY=new _.z_("playlistRemoveVideosAction");_.ox8=new _.z_("updatePlaylistAction");_.XDp=new _.z_("addToPlaylistCommand");_.gxj=new _.z_("endPlaylistCommand");_.U7d=new _.z_("recoverPlaylistCommand");_.HFz=new _.z_("refreshPlaylistCommand");_.KsY=new _.z_("refreshFormCommand");pDd=new _.z_("openOnePickAddVideoModalCommand");_.uNI=new _.z_("reloadContinuationItemsCommand");_.AHd=new _.z_("scrollToEngagementPanelCommand");var rHC=new _.z_("selectCountryCommand");var u2z=new _.z_("showReloadUiCommand");var x7j=new _.z_("undoFeedbackAction");var Ls8=new _.z_("updateButtonAction");var j04=new _.z_("updateSubscribeButtonAction");var D7p=new _.z_("updateToggleAction");var $7p=new _.z_("webNativeShareCommand");_.Sd=new _.z_("webCommandMetadata");_.gZ=new _.z_("webHandleServiceEndpointExtension");var XGh=new _.z_("webNavigationEndpointData");var fq5=new _.z_("backgroundAudioPlaybackCommand");var vx4=new _.z_("copyLinkCommand");var bFd=new _.z_("playlistVotingRefreshPopupCommand");var ZFj=new _.z_("selectChipCommand");var d74=new _.z_("setCookieCommand");var s0Y=new _.z_("setLocalStorageCommand");var lqj=new _.z_("setPrefStorageEntryCommand");var Q0d;_.MGd=new _.z_("settingsUpdateCheckboxCommand");_.qDd=new _.z_("settingsUpdateTextCommand");_.zr8=new _.z_("settingsUpdateOptionsCommand");Q0d=new _.z_("settingsUpdateSwitchCommand");_.OFC=new _.z_("settingsUpdateConnectedAppRendererCommand");var Gz8=new _.z_("showCreatorChatbotEngagementPanelCommand");var CGY=new _.z_("updateTextInputFormFieldRendererCommand");var k65=new _.z_("updateToggleButtonStateCommand");var EDd=new _.z_("updateUrlParamCommand");var S9Y=new _.z_("webSubmitFormCommand");var Rmd=new _.z_("channelSwitcherPageRenderer"),V8d=new _.z_("updateChannelSwitcherPageAction");_.jj=new _.z_("continuationItemRenderer");_.U6=new _.z_("richItemRenderer");var NB8=new _.z_("richSectionRenderer");_.ITj=new _.z_("richShelfRenderer");_.nDd=new _.z_("metadataBadgeRenderer");_.iSC=new _.z_("multiPageMenuNotificationSectionRenderer");_.hmd=new _.z_("playlistLoopButtonStateRenderer");var J$T=new _.z_("claimLegacyYoutubeChannelEndpoint");var c$j=new _.z_("getNotificationMenuEndpoint");var mlp=new _.z_("getSearchInVideoCommand");_.emd=new _.z_("getTranscriptEndpoint");_.Ev=new _.z_("signalServiceEndpoint");var aT2=new _.z_("verifyAgeEndpoint");var xQj=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(xQj,_.iu);xQj.prototype.getPath=function(){return _.t2(this,1)};
xQj.prototype.getValue=function(){return _.t2(this,2)};var t88=[0,_.Ds,-1];var TB4=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(TB4,_.iu);var uzC=_.PU(TB4,[0,_.vS,t88]);var w7Y=new _.z_("dismissalEndpoint");var PAA=new _.z_("elementsCommand");_.gX=new _.z_("innertubeCommand");var BBj=new _.z_("multipleInlinePlaybackCommand");var h$I=new _.z_("loggingDirectives");var Y9d=new _.z_("acknowledgeChannelTouStrikeCommand");var Wfd=function(){yK.apply(this,arguments)};
_.y(Wfd,yK);Wfd.prototype.getAssociations=function(){return[]};
Wfd.prototype.getTypeName=function(){return"booleanEntity"};var FfC=function(){yK.apply(this,arguments)};
_.y(FfC,yK);FfC.prototype.getAssociations=function(){return[]};
FfC.prototype.getTypeName=function(){return"stringEntity"};var $v=new _.z_("entityBatchUpdate");_.k31=new _.z_("entityUpdateCommand");var y$d=function(){yK.apply(this,arguments)};
_.y(y$d,yK);y$d.prototype.getAssociations=function(){var k=[];this.delegate.alternateChannel&&k.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&k.push.apply(k,_.$e(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&k.push(this.delegate.oneofChannelEntity);return[].concat(_.$e(new Set(k)))};
y$d.prototype.getTypeName=function(){return"fakeChannel"};var oDY=function(){yK.apply(this,arguments)};
_.y(oDY,yK);oDY.prototype.getAssociations=function(){var k=[];this.delegate.entryCollection&&k.push(this.delegate.entryCollection);return[].concat(_.$e(new Set(k)))};
oDY.prototype.getTypeName=function(){return"fakePlaylist"};
var X7d=function(){yK.apply(this,arguments)};
_.y(X7d,yK);X7d.prototype.getAssociations=function(){var k=[];this.delegate.parentPlaylist&&k.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var E=_.n(this.delegate.entries),S=E.next();!S.done;S=E.next())k.push.apply(k,_.$e((new gD4(S.value)).getAssociations()));return[].concat(_.$e(new Set(k)))};
X7d.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var gD4=function(){Fg.apply(this,arguments)};
_.y(gD4,Fg);gD4.prototype.getAssociations=function(){var k=[];this.delegate.video&&k.push(this.delegate.video);return[].concat(_.$e(new Set(k)))};var UlC=function(){yK.apply(this,arguments)};
_.y(UlC,yK);UlC.prototype.getAssociations=function(){var k=[];this.delegate.descriptionEntity&&k.push(this.delegate.descriptionEntity);this.delegate.creators&&k.push.apply(k,_.$e(this.delegate.creators));this.delegate.theBiggestFan&&k.push(this.delegate.theBiggestFan);return[].concat(_.$e(new Set(k)))};
UlC.prototype.getTypeName=function(){return"fakeVideo"};
var HSC=function(){yK.apply(this,arguments)};
_.y(HSC,yK);HSC.prototype.getAssociations=function(){return[]};
HSC.prototype.getTypeName=function(){return"fakeVideoDescription"};var KfA=new _.z_("fantasyRosterViewModel");var p72=new _.z_("addFollowUpSurveyCommand");var A$p=new _.z_("getSurveyCommand");var r$4=new _.z_("ratingSurveyOptionRenderer");_.wy=new _.z_("feedbackEndpoint");var uY4=new _.z_("reportHistoryTableCellRenderer"),xlA=new _.z_("reportHistoryTableTextCellRenderer"),Lf4=new _.z_("reportHistoryTableReasonCellRenderer");_.joC=new _.z_("flagEndpoint");_.DlT=new _.z_("flowNextStepCommand");_.$ld=new _.z_("flowPrevStepCommand");var fTj=new _.z_("getFlowCommand");var vDC=new _.z_("submitFormWithValidationFlowCommand");_.bSd=new _.z_("updateFlowCommand");var ZSY=function(){yK.apply(this,arguments)};
_.y(ZSY,yK);ZSY.prototype.getAssociations=function(){return[]};
ZSY.prototype.getTypeName=function(){return"flowStateEntity"};var dlz=new _.z_("flowFormState");_.HF=new _.z_("flowStepRenderer");var soY=new _.z_("gameCardRenderer");var lTd=new _.z_("accountLinkingStateChangedCommand");var M85=function(){yK.apply(this,arguments)};
_.y(M85,yK);M85.prototype.getAssociations=function(){return[]};
M85.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var q9C=new _.z_("changeMiniAppPlayStateCommand");var zmY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(zmY,_.iu);var KK=[1,2,3];var QoA=[0,KK,VId,_.fL,QCp];var OS5=_.PU(zmY,QoA),G62=_.BU(QoA);var CAY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(CAY,_.iu);var kgY=[0,_.pL,_.Ds];var Ejz=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Ejz,_.iu);var S6T=[0,_.Ds,_.pL,-1];var pK=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(pK,_.iu);var RK5=_.BU([0,1,kgY,_.sU,S6T]);var V_2=new _.z_("miniAppScoreChallengeViewModel");var NZC=new _.z_("miniGameCardViewModel");var IrY=new _.z_("teaserCardViewModel");var njC=function(){yK.apply(this,arguments)};
_.y(njC,yK);njC.prototype.getAssociations=function(){return[]};
njC.prototype.getTypeName=function(){return"logoEntity"};var iKT=new _.z_("feedbackItemRenderer");var hKY=function(){yK.apply(this,arguments)};
_.y(hKY,yK);hKY.prototype.getAssociations=function(){return[]};
hKY.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.Jtd=new _.z_("playerInterstitialRenderer");var ctz=new _.z_("getKidsBlocklistPickerCommand");_.mzY=new _.z_("updateKidsBlacklistEndpoint");_.yx=new _.z_("likeEndpoint");var eKA,ar4,t_8;eKA=new _.z_("addChatItemAction");ar4=new _.z_("removeChatItemAction");t_8=new _.z_("markChatItemAsDeletedAction");_.TZd=new _.z_("setLiveChatCollapsedStateAction");var wFz=function(){yK.apply(this,arguments)};
_.y(wFz,yK);wFz.prototype.getAssociations=function(){return[]};
wFz.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var P3C=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(P3C,_.iu);P3C.prototype.getPayloadCase=function(){return _.iT(this,BZ8)};
var BZ8=[3,4];var Y62=[0,_.vS,[0,[1,2],_.fL,_.bT,[0,_.$7,1,_.$7]]];var WWY=[0,_.Ds,-1];var FWz=[0,[1],_.fL];var At=[0,[1,2],_.fL,_.bT,[0,_.sU]];var rZ=[0,_.Ds];var yt8=[0,[0,_.x7,_.uT,[0,_.$7,_.lT,_.$7]],1,[0,_.x7]];var oj5=[0,A2];var XFj=[0,A2];var gjC=[0,XFj,oj5];var Uz4=[0,_.vS,[0,[1,2],_.fL,-1],_.x7];var HKC=[0,[2],1,_.bT,[0,_.$7,-1,Uz4]];var KWT=[0,[1],_.bT,[0,_.$7,_.Ds,_.lT,1,Uz4]];var pFC=[0,_.uT,-1,zA2,_.sU];var AtA=[0,[0,KL,-3],-4];var u3=[0,_.x7,-3,_.Ds,_.x7,_.qM,_.x7,Y62,_.x7,-2];var xj=[0,_.vS,[0,[1,2],_.fL,-1],_.x7,_.Ds];var rtT=[0,[3],At,[0,[2,3,4],hYz,_.fL,-2],_.bT,[0,_.Ds],_.pL];var ugA=[0,[3,5],_.Ds,rF,_.bT,[0,1,_.pL,_.sU],_.sU,_.bT,[0,_.sU,_.pL]];var xzY=[0,2,rF,_.Ds,-1];var LW2=[0,SAC];var jJz=[0,[3,4],2,GYC,_.fL,_.Ds];var DzC=[0,_.sU,-2,1,_.Ds];var $z2=[0,_.Ds,-1,_.sU];var frC=[0,rZ,function(){return LK},
rZ,_.Ds],vj5=[0,_.sU,rZ,At,function(){return LK},
_.Ds],LK=[-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],rZ,rF,[0,_.x7,1,_.x7,1,_.x7,1,_.sU,-1,rZ],[0,1,_.x7,2,_.x7,_.sU,_.x7],1,rF,-1,_.Ds,rF,2,KL,[0,KL,rF],_.Ds,1,yt8,1,At,_.qM,1,[0,[0,_.vS,[0,_.Ds,_.x7,_.sU]]],[0,_.x7,[0,_.pL,[0,_.lT]],_.pL,1,[0,kG8,-1]],_.Ds,[0,1,_.Ds],76,_.bT,[0,At,xj,yt8,1,[0,_.vS,xj]],1,_.bT,[0,At,_.Ds,_.x7],_.bT,
[0,At,FWz],_.bT,[0,At,FWz,rF],_.bT,[0,At,FWz],_.bT,[0,At,_.vS,rZ,At,NUT],_.bT,[0,At,rZ,_.Ds],_.bT,[0,At,_.x7,u3,-1,_.x7],4,_.bT,[0,At,_.x7,rF,u3,_.x7],_.bT,[0,[4,9],At,_.sU,rF,_.fL,xj,1,yt8,_.Ds,_.fL,DzC],_.bT,[0,At,rZ,At,_.sU,_.Ds],_.bT,[0,_.x7,At,u3,_.x7,_.Ds],_.bT,[0,At,rZ,At,_.sU,_.Ds],1,_.bT,[0,At,_.sU,_.Ds,u3],_.bT,[0,At,_.sU,[0,_.Ds,rF],_.Ds,rF,_.Ds,dF,-2,3,$z2,_.vS,$z2,$z2,DzC],_.bT,[0,At,_.sU,KWT,_.vS,[0,XFj,HKC],rZ,_.vS,gjC,_.Ds,1,_.sU,pFC,AtA,q5C,-1],_.bT,[0,At,[0,_.lT,-1,KWT,_.vS,[0,XFj,
HKC,oj5],[0,_.z4],1,_.$7],rZ,_.Ds],_.bT,[0,At,xj,_.Ds,[0,_.uT]],_.bT,function(){return vj5},
_.bT,[0,At,rF,_.Ds,-1,_.x7],_.bT,[0,[6,7],At,_.vS,xzY,_.sU,xj,1,_.bT,jJz,_.bT,LW2],_.bT,[0,_.vS,xzY,_.sU,_.x7],_.bT,[0,_.Ds,Vvj,-1],_.bT,[0,rZ,_.vS,gjC,_.Ds],_.bT,[0,At,rZ,_.Ds],_.bT,[0,dF,_.Ds],_.bT,[0,WWY],_.bT,[0,WWY],_.bT,[0,xj],_.bT,[0,rZ,xj],_.bT,function(){return frC},
_.bT,[0,rZ,_.Ds],_.bT,[0,rZ,_.Ds],1,_.bT,[0,_.x7,At,u3,_.x7,u3],_.bT,[0,_.z4],1,_.bT,[0],1,_.bT,[0,rZ,_.sU,At,_.sU],_.bT,[0,[1,2],_.bT,jJz,_.bT,LW2,rF],_.bT,[0,_.z4,xj,ugA,_.Ds,rF],_.bT,[0,ugA,_.Ds,rF],_.bT,[0,pFC,xj,_.x7,AtA],_.bT,rtT,_.bT,[0],_.bT,[0,_.Ds,-1,_.pL],_.bT,[0,rZ,_.Ds],_.bT,[0,rtT,_.pL,_.Ds],_.bT,[0,At,u3,_.x7],_.bT,[0,At,u3,_.x7],_.bT,[0,pFC,AtA,xj,_.qM,_.x7,q5C,-1],_.bT,[0,At,u3,_.x7]];var bKz=[0,_.vS,LK];var ZKz=_.PU(P3C,[0,BZ8,1,_.pL,_.bT,[0,[18,22,24],bKz,3,[0,bKz],1,_.pL,[0,_.vS,[0,rF,KL],rF],1,LK,-1,[0,_.LL,-2,_.qM,_.LL,-1,_.qM,_.LL,Y62,_.LL,-2],lCT,[!0,_.Ds,[0,FWz,2,_.Ds,rF,_.x7,2,_.Ds,dF]],[0,[1,2,3],[5,6],_.bT,[0,_.$7],_.bT,[0,_.$7,-1],_.bT,[0,_.$7],1,_.bT,WWY,_.bT,[0,_.Ds]],[0,LK,-1],_.z4,LK,_.bT,LK,[0,bKz],_.pL,LK,_.bT,LK,_.Ds,_.bT,LK],_.bT,oX8,_.pL]);var dzC=new _.z_("liveChatEndpoint");var sJ8=new _.z_("liveChatItemContextMenuEndpoint");var lr2=new _.z_("liveChatReplayEndpoint");_.M_5=new _.z_("emojiPickerRenderer");var q64=new _.z_("liveChatAuthorBadgeViewModel");var zKY=new _.z_("deleteLiveChatMessageCommand");var QJ5=new _.z_("liveChatActionEndpoint");var OKj=new _.z_("createLiveChatPollEndpoint");var GgA=new _.z_("manageLiveChatUserEndpoint");var C3Y=new _.z_("moderateLiveChatEndpoint");_.k7Y=new _.z_("sendLiveChatMessageEndpoint");var Eop=new _.z_("sendLiveChatVoteEndpoint");var S7d=new _.z_("clearLocationCommand");var RfC=new _.z_("resolveLocationCommand");var VKY=new _.z_("interactionLoggingCommandMetadata");var N_8=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(N_8,_.iu);var Ia2=function(k,E){return _.w7(k,1,E)};var noY=[0,_.x7];var iwd=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(iwd,_.iu);var hfC=function(k,E){return Uc(k,1,N_8,E)};iwd.prototype.JSC$12316_serializeBinary=MrA([0,_.vS,noY]);var Y9I={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 J1z={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"},
c1C={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 S5b={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"};_.Qib=new _.z_("logFlowLoggingEventCommand");_.cM=new _.z_("loggingContext");var mFY=new _.z_("audioTrackSelectActionCommand");var efC=new _.z_("captionLanguageSelectActionCommand");var aa4=new _.z_("showAudioTrackPickerActionCommand");var tKA=new _.z_("showCaptionLanguageSelectActionCommand");var T_C=new _.z_("dismissDialogEndpoint");var wq4=new _.z_("dismissPlayerOverlayCommand");var Pf2=new _.z_("hideItemSectionVideosByIdCommand");var B_C=new _.z_("showMiniplayerCommand");var Y7p=function(){yK.apply(this,arguments)};
_.y(Y7p,yK);Y7p.prototype.getAssociations=function(){return[]};
Y7p.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var W25=function(){yK.apply(this,arguments)};
_.y(W25,yK);W25.prototype.getAssociations=function(){return[]};
W25.prototype.getTypeName=function(){return"downloadStatusEntity"};var F2z=function(){yK.apply(this,arguments)};
_.y(F2z,yK);F2z.prototype.getAssociations=function(){return[]};
F2z.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var y18=function(){yK.apply(this,arguments)};
_.y(y18,yK);y18.prototype.getAssociations=function(){var k=[];this.delegate.downloadsList&&k.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&k.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&k.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&k.push(this.delegate.refresh);return[].concat(_.$e(new Set(k)))};
y18.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var oo4=function(){yK.apply(this,arguments)};
_.y(oo4,yK);oo4.prototype.getAssociations=function(){var k=[];this.delegate.refresh&&k.push(this.delegate.refresh);if(this.delegate.downloads)for(var E=_.n(this.delegate.downloads),S=E.next();!S.done;S=E.next())k.push.apply(k,_.$e((new Xq2(S.value)).getAssociations()));return[].concat(_.$e(new Set(k)))};
oo4.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var Xq2=function(){Fg.apply(this,arguments)};
_.y(Xq2,Fg);Xq2.prototype.getAssociations=function(){var k=[];this.delegate.video&&k.push(this.delegate.video);this.delegate.playlist&&k.push(this.delegate.playlist);this.delegate.videoItem&&k.push(this.delegate.videoItem);this.delegate.playlistItem&&k.push(this.delegate.playlistItem);return[].concat(_.$e(new Set(k)))};var go8=function(){yK.apply(this,arguments)};
_.y(go8,yK);go8.prototype.getAssociations=function(){var k=[];this.delegate.localImageEntities&&k.push.apply(k,_.$e(this.delegate.localImageEntities));return[].concat(_.$e(new Set(k)))};
go8.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var UF8=function(){yK.apply(this,arguments)};
_.y(UF8,yK);UF8.prototype.getAssociations=function(){var k=[];this.delegate.playbackData&&k.push(this.delegate.playbackData);this.delegate.localImageEntities&&k.push.apply(k,_.$e(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&k.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$e(new Set(k)))};
UF8.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var HwY=function(){yK.apply(this,arguments)};
_.y(HwY,yK);HwY.prototype.getAssociations=function(){return[]};
HwY.prototype.getTypeName=function(){return"offlineabilityEntity"};var K2T=function(){yK.apply(this,arguments)};
_.y(K2T,yK);K2T.prototype.getAssociations=function(){var k=[];this.delegate.fakeChildren&&k.push.apply(k,_.$e(this.delegate.fakeChildren));return[].concat(_.$e(new Set(k)))};
K2T.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var pqj=function(){yK.apply(this,arguments)};
_.y(pqj,yK);pqj.prototype.getAssociations=function(){var k=[];this.delegate.video&&k.push(this.delegate.video);this.delegate.playbackData&&k.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&k.push(this.delegate.offlineVideoPolicy);return[].concat(_.$e(new Set(k)))};
pqj.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var A1C=function(){yK.apply(this,arguments)};
_.y(A1C,yK);A1C.prototype.getAssociations=function(){return[]};
A1C.prototype.getTypeName=function(){return"continuationTokenEntity"};var r1Y=function(){yK.apply(this,arguments)};
_.y(r1Y,yK);r1Y.prototype.getAssociations=function(){var k=[];this.delegate.channelOwner&&k.push(this.delegate.channelOwner);this.delegate.videos&&k.push.apply(k,_.$e(this.delegate.videos));this.delegate.collaboratorChannels&&k.push.apply(k,_.$e(this.delegate.collaboratorChannels));this.delegate.downloadState&&k.push(this.delegate.downloadState);this.delegate.refresh&&k.push(this.delegate.refresh);return[].concat(_.$e(new Set(k)))};
r1Y.prototype.getTypeName=function(){return"mainPlaylistEntity"};var uE5=function(){yK.apply(this,arguments)};
_.y(uE5,yK);uE5.prototype.getAssociations=function(){var k=[];this.delegate.video&&k.push(this.delegate.video);this.delegate.channelContributor&&k.push(this.delegate.channelContributor);return[].concat(_.$e(new Set(k)))};
uE5.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var xF4=function(){Fg.apply(this,arguments)};
_.y(xF4,Fg);xF4.prototype.getAssociations=function(){var k=[];this.delegate.recommendedVideoMetadata&&k.push.apply(k,_.$e((new L2A(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.$e(new Set(k)))};
var L2A=function(){Fg.apply(this,arguments)};
_.y(L2A,Fg);L2A.prototype.getAssociations=function(){var k=[];this.delegate.localImageEntities&&k.push.apply(k,_.$e(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&k.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$e(new Set(k)))};var jqz=function(){Fg.apply(this,arguments)};
_.y(jqz,Fg);jqz.prototype.getAssociations=function(){var k=[];this.delegate.playbackPosition&&k.push(this.delegate.playbackPosition);return[].concat(_.$e(new Set(k)))};var DF4=function(){yK.apply(this,arguments)};
_.y(DF4,yK);DF4.prototype.getAssociations=function(){var k=[];this.delegate.owner&&k.push(this.delegate.owner);this.delegate.downloadState&&k.push(this.delegate.downloadState);this.delegate.userState&&k.push.apply(k,_.$e((new jqz(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&k.push.apply(k,_.$e((new xF4(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.$e(new Set(k)))};
DF4.prototype.getTypeName=function(){return"mainVideoEntity"};var $F2=function(){yK.apply(this,arguments)};
_.y($F2,yK);$F2.prototype.getAssociations=function(){var k=[];this.delegate.userChannelDetails&&k.push(this.delegate.userChannelDetails);return[].concat(_.$e(new Set(k)))};
$F2.prototype.getTypeName=function(){return"ytMainChannelEntity"};var faC=function(){yK.apply(this,arguments)};
_.y(faC,yK);faC.prototype.getAssociations=function(){var k=[];this.delegate.channelOwner&&k.push(this.delegate.channelOwner);this.delegate.playbackPosition&&k.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&k.push.apply(k,_.$e(this.delegate.localImageEntities));this.delegate.downloadStatus&&k.push(this.delegate.downloadStatus);return[].concat(_.$e(new Set(k)))};
faC.prototype.getTypeName=function(){return"ytMainVideoEntity"};var TAR=new _.z_("downloadsPageSmartDownloadsOptInBannerParams");var YNe=new _.z_("downloadsPageUpsellBannerParams");var vod=function(){yK.apply(this,arguments)};
_.y(vod,yK);vod.prototype.getAssociations=function(){return[]};
vod.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var bwC=function(){yK.apply(this,arguments)};
_.y(bwC,yK);bwC.prototype.getAssociations=function(){return[]};
bwC.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var ZwY=function(){yK.apply(this,arguments)};
_.y(ZwY,yK);ZwY.prototype.getAssociations=function(){return[]};
ZwY.prototype.getTypeName=function(){return"macroMarkerEntity"};var dFd=function(){yK.apply(this,arguments)};
_.y(dFd,yK);dFd.prototype.getAssociations=function(){return[]};
dFd.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var sqT=function(){yK.apply(this,arguments)};
_.y(sqT,yK);sqT.prototype.getAssociations=function(){return[]};
sqT.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var lad=function(){yK.apply(this,arguments)};
_.y(lad,yK);lad.prototype.getAssociations=function(){return[]};
lad.prototype.getTypeName=function(){return"playerStateEntity"};var MKd=function(){yK.apply(this,arguments)};
_.y(MKd,yK);MKd.prototype.getAssociations=function(){return[]};
MKd.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var q7Y=function(){yK.apply(this,arguments)};
_.y(q7Y,yK);q7Y.prototype.getAssociations=function(){return[]};
q7Y.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var zfC=function(){yK.apply(this,arguments)};
_.y(zfC,yK);zfC.prototype.getAssociations=function(){return[]};
zfC.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.j_=new _.z_("dislikeButtonViewModel");_.Dr=new _.z_("likeButtonViewModel");var QqA=new _.z_("videoSummaryContentViewModel");var OwY=new _.z_("videoSummaryParagraphViewModel");var G7T=new _.z_("changeTimelyActionVisibilityCommand");var CfC=new _.z_("hideEngagementPanelEndpoint");var kMA=new _.z_("refreshPanelEndpoint");var EN4=new _.z_("scrollToSectionEndpoint");var SE5=new _.z_("seekToVideoTimestampCommand");_.Te=new _.z_("showEngagementPanelEndpoint");var RVd=new _.z_("showTransientPlayerScrimOverlayCommand");var VM4=new _.z_("toggleEngagementPanelCommand");_.Njj=new _.z_("createBroadcastCommand");var I2z=new _.z_("metadataUpdateCommand");var nN2=function(){yK.apply(this,arguments)};
_.y(nN2,yK);nN2.prototype.getAssociations=function(){return[]};
nN2.prototype.getTypeName=function(){return"featuredProductsEntity"};var iM4=function(){yK.apply(this,arguments)};
_.y(iM4,yK);iM4.prototype.getAssociations=function(){return[]};
iM4.prototype.getTypeName=function(){return"pinnedProductEntity"};var hVC=function(){yK.apply(this,arguments)};
_.y(hVC,yK);hVC.prototype.getAssociations=function(){return[]};
hVC.prototype.getTypeName=function(){return"trendingOfferEntity"};_.Jsd=new _.z_("merchandiseShelfRenderer");var csY=new _.z_("shoppingContentLineItemViewModel");var m5d=new _.z_("gridMovieRenderer");_.eVT=new _.z_("movieRenderer");var a22=function(){yK.apply(this,arguments)};
_.y(a22,yK);a22.prototype.getAssociations=function(){return[]};
a22.prototype.getTypeName=function(){return"compositeSourceEntity"};var tM8=function(){yK.apply(this,arguments)};
_.y(tM8,yK);tM8.prototype.getAssociations=function(){var k=[];this.delegate.compositeSourceKeys&&k.push.apply(k,_.$e(this.delegate.compositeSourceKeys));return[].concat(_.$e(new Set(k)))};
tM8.prototype.getTypeName=function(){return"multiviewStagingEntity"};var TjC=function(){yK.apply(this,arguments)};
_.y(TjC,yK);TjC.prototype.getAssociations=function(){var k=[];this.delegate.trackDownloadMetadatas&&k.push.apply(k,_.$e(this.delegate.trackDownloadMetadatas));return[].concat(_.$e(new Set(k)))};
TjC.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var wIC=function(){yK.apply(this,arguments)};
_.y(wIC,yK);
wIC.prototype.getAssociations=function(){var k=[];this.delegate.downloadedTracks&&k.push.apply(k,_.$e(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&k.push.apply(k,_.$e(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&k.push.apply(k,_.$e(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&k.push.apply(k,_.$e(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&k.push.apply(k,_.$e(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
k.push.apply(k,_.$e(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&k.push.apply(k,_.$e(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&k.push.apply(k,_.$e(this.delegate.metadataOnlyTracks));return[].concat(_.$e(new Set(k)))};
wIC.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var POj=function(){yK.apply(this,arguments)};
_.y(POj,yK);POj.prototype.getAssociations=function(){var k=[];this.delegate.trackDownloadMetadatas&&k.push.apply(k,_.$e(this.delegate.trackDownloadMetadatas));return[].concat(_.$e(new Set(k)))};
POj.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var BjT=function(){yK.apply(this,arguments)};
_.y(BjT,yK);BjT.prototype.getAssociations=function(){var k=[];this.delegate.playbackData&&k.push(this.delegate.playbackData);this.delegate.localImageEntities&&k.push.apply(k,_.$e(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&k.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$e(new Set(k)))};
BjT.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var YEd=function(){yK.apply(this,arguments)};
_.y(YEd,yK);
YEd.prototype.getAssociations=function(){var k=[];this.delegate.musicLibraryStatusEntity&&k.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&k.push.apply(k,_.$e(this.delegate.primaryArtists));this.delegate.details&&k.push(this.delegate.details);this.delegate.userDetails&&k.push(this.delegate.userDetails);this.delegate.tracks&&k.push.apply(k,_.$e(this.delegate.tracks));this.delegate.share&&k.push(this.delegate.share);this.delegate.downloadMetadata&&k.push(this.delegate.downloadMetadata);this.delegate.refresh&&
k.push(this.delegate.refresh);return[].concat(_.$e(new Set(k)))};
YEd.prototype.getTypeName=function(){return"musicAlbumRelease"};
var WcY=function(){yK.apply(this,arguments)};
_.y(WcY,yK);WcY.prototype.getAssociations=function(){var k=[];this.delegate.albumRelease&&k.push(this.delegate.albumRelease);this.delegate.tracks&&k.push.apply(k,_.$e(this.delegate.tracks));return[].concat(_.$e(new Set(k)))};
WcY.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var FcY=function(){yK.apply(this,arguments)};
_.y(FcY,yK);FcY.prototype.getAssociations=function(){var k=[];this.delegate.albumRelease&&k.push(this.delegate.albumRelease);return[].concat(_.$e(new Set(k)))};
FcY.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var ys4=function(){yK.apply(this,arguments)};
_.y(ys4,yK);ys4.prototype.getAssociations=function(){var k=[];this.delegate.details&&k.push(this.delegate.details);this.delegate.userDetails&&k.push(this.delegate.userDetails);return[].concat(_.$e(new Set(k)))};
ys4.prototype.getTypeName=function(){return"musicArtist"};
var oNp=function(){yK.apply(this,arguments)};
_.y(oNp,yK);oNp.prototype.getAssociations=function(){var k=[];this.delegate.parentArtist&&k.push(this.delegate.parentArtist);return[].concat(_.$e(new Set(k)))};
oNp.prototype.getTypeName=function(){return"musicArtistDetail"};
var XIz=function(){yK.apply(this,arguments)};
_.y(XIz,yK);XIz.prototype.getAssociations=function(){var k=[];this.delegate.parentArtist&&k.push(this.delegate.parentArtist);return[].concat(_.$e(new Set(k)))};
XIz.prototype.getTypeName=function(){return"musicArtistUserDetail"};var gNY=function(){yK.apply(this,arguments)};
_.y(gNY,yK);gNY.prototype.getAssociations=function(){return[]};
gNY.prototype.getTypeName=function(){return"musicLibraryEdit"};var U5z=function(){yK.apply(this,arguments)};
_.y(U5z,yK);U5z.prototype.getAssociations=function(){return[]};
U5z.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var HMj=function(){yK.apply(this,arguments)};
_.y(HMj,yK);
HMj.prototype.getAssociations=function(){var k=[];this.delegate.tracks&&k.push.apply(k,_.$e(this.delegate.tracks));this.delegate.refresh&&k.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&k.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&k.push(this.delegate.details);this.delegate.downloadMetadata&&k.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&k.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&k.push(this.delegate.userDetails);this.delegate.entryCollection&&
k.push(this.delegate.entryCollection);this.delegate.share&&k.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&k.push.apply(k,_.$e((new Kc8(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.$e(new Set(k)))};
HMj.prototype.getTypeName=function(){return"musicPlaylist"};
var Kc8=function(){Fg.apply(this,arguments)};
_.y(Kc8,Fg);Kc8.prototype.getAssociations=function(){var k=[];this.delegate.creatorEntity&&k.push(this.delegate.creatorEntity);return[].concat(_.$e(new Set(k)))};var pI2=function(){yK.apply(this,arguments)};
_.y(pI2,yK);pI2.prototype.getAssociations=function(){return[]};
pI2.prototype.getTypeName=function(){return"musicShare"};var AsT=function(){yK.apply(this,arguments)};
_.y(AsT,yK);
AsT.prototype.getAssociations=function(){var k=[];this.delegate.musicLibraryStatusEntity&&k.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&k.push.apply(k,_.$e(this.delegate.artists));this.delegate.audioModeVersion&&k.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&k.push(this.delegate.videoModeVersion);this.delegate.userDetails&&k.push(this.delegate.userDetails);this.delegate.details&&k.push(this.delegate.details);this.delegate.albumRelease&&k.push(this.delegate.albumRelease);this.delegate.share&&
k.push(this.delegate.share);this.delegate.libraryEdit&&k.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&k.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&k.push(this.delegate.playbackPosition);this.delegate.lyrics&&k.push(this.delegate.lyrics);return[].concat(_.$e(new Set(k)))};
AsT.prototype.getTypeName=function(){return"musicTrack"};
var rs5=function(){yK.apply(this,arguments)};
_.y(rs5,yK);rs5.prototype.getAssociations=function(){var k=[];this.delegate.parentTrack&&k.push(this.delegate.parentTrack);return[].concat(_.$e(new Set(k)))};
rs5.prototype.getTypeName=function(){return"musicTrackDetail"};
var uQ8=function(){yK.apply(this,arguments)};
_.y(uQ8,yK);uQ8.prototype.getAssociations=function(){var k=[];this.delegate.parentTrack&&k.push(this.delegate.parentTrack);return[].concat(_.$e(new Set(k)))};
uQ8.prototype.getTypeName=function(){return"musicTrackUserDetail"};var ur=new _.z_("musicResponsiveListItemRenderer");var DSA=new _.z_("addToPlaylistEndpoint");var x5Y=new _.z_("captionPickerEndpoint");var Lcj=new _.z_("suggestStats");var jg8=new _.z_("backstageImageUploadEndpoint");var D5T=new _.z_("createBackstagePostDialogEndpoint");_.$5Y=new _.z_("createCommentReplyDialogEndpoint");_.f2d=new _.z_("updateCommentDialogEndpoint");_.vNj=new _.z_("updateCommentReplyDialogEndpoint");var bMY=new _.z_("menuEndpoint");var FXb=new _.z_("modalEndpoint");var ZMd=new _.z_("playlistEditorEndpoint");var d55=new _.z_("copyTextEndpoint");var sg5,l2d;sg5=new _.z_("shareEndpoint");l2d=new _.z_("shareEntityEndpoint");_.MMY=new _.z_("shareEntityServiceEndpoint");_.Wgb=new _.z_("userFeedbackEndpoint");_.jm=new _.z_("watchEndpoint");var I8t=new _.z_("watchPlaylistEndpoint");var qE4=new _.z_("addUpcomingEventReminderEndpoint");_.fK=new _.z_("getCommentsFromInboxCommand");var zVp=new _.z_("notificationOptOutEndpoint");var Qgp=new _.z_("recordNotificationInteractionsEndpoint");var OMd=new _.z_("removeUpcomingEventReminderEndpoint");var LaC=new _.z_("getDownloadActionCommand");_.GMj=new _.z_("offlineOrchestrationActionCommand");var COd=function(){yK.apply(this,arguments)};
_.y(COd,yK);COd.prototype.getAssociations=function(){return[]};
COd.prototype.getTypeName=function(){return"captionTrack"};var ki5=function(){yK.apply(this,arguments)};
_.y(ki5,yK);ki5.prototype.getAssociations=function(){return[]};
ki5.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var EBC=function(){yK.apply(this,arguments)};
_.y(EBC,yK);EBC.prototype.getAssociations=function(){return[]};
EBC.prototype.getTypeName=function(){return"offlineVideoPolicy"};var SN4=function(){yK.apply(this,arguments)};
_.y(SN4,yK);SN4.prototype.getAssociations=function(){return[]};
SN4.prototype.getTypeName=function(){return"offlineVideoStreams"};var R1z=function(){yK.apply(this,arguments)};
_.y(R1z,yK);R1z.prototype.getAssociations=function(){var k=[];this.delegate.transfer&&k.push(this.delegate.transfer);this.delegate.adsPlaybackData&&k.push.apply(k,_.$e(this.delegate.adsPlaybackData));this.delegate.drmLicense&&k.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&k.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&k.push(this.delegate.videoDownloadContextEntity);return[].concat(_.$e(new Set(k)))};
R1z.prototype.getTypeName=function(){return"playbackData"};var V6Y=function(){yK.apply(this,arguments)};
_.y(V6Y,yK);V6Y.prototype.getAssociations=function(){return[]};
V6Y.prototype.getTypeName=function(){return"refresh"};var NA2=function(){yK.apply(this,arguments)};
_.y(NA2,yK);NA2.prototype.getAssociations=function(){var k=[];this.delegate.offlineVideoStreams&&k.push.apply(k,_.$e(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&k.push.apply(k,_.$e(this.delegate.captionTrack));return[].concat(_.$e(new Set(k)))};
NA2.prototype.getTypeName=function(){return"transfer"};var IYC=function(){yK.apply(this,arguments)};
_.y(IYC,yK);IYC.prototype.getAssociations=function(){return[]};
IYC.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var nBC=new _.z_("showMoreDrawerCommand");var iGd=new _.z_("updateEngagementPanelContentCommand");var h14=new _.z_("getPdgBuyFlowCommand");var Jr5=new _.z_("liveChatPurchaseMessageEndpoint");var cr8=new _.z_("openSuperStickerBuyFlowCommand");var mq2=new _.z_("updatePdgFeatureEnablementCommand");var e1C=function(){yK.apply(this,arguments)};
_.y(e1C,yK);e1C.prototype.getAssociations=function(){return[]};
e1C.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var aY4=function(){yK.apply(this,arguments)};
_.y(aY4,yK);aY4.prototype.getAssociations=function(){return[]};
aY4.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.t6C=new _.z_("pdgCommentChipRenderer");_.TAC=new _.z_("permissionRoleBottomBarRenderer");_.w5d=new _.z_("updatePermissionRoleCommand");var PLY=new _.z_("prefetchWatchCommand");var BAT=new _.z_("updatePlayerErrorMessageCommand");var H0h=new _.z_("toggleCaptionsVisibilityCommand");_.YNz=new _.z_("quickActionsViewModel");var Wyd=new _.z_("playerResponse");var Fy8=new _.z_("playlistRenderer");_.yr8=new _.z_("playlistVideoListRenderer");_.vF=new _.z_("playlistEditEndpoint");var oBY=new _.z_("createImagePollCommand");var X58=new _.z_("createQuizCommand");var gBY=new _.z_("quizRenderer");var UqC=new _.z_("uploadedVideoRenderer");var HGj=new _.z_("decorateMessageEndpoint");var KyY=new _.z_("lpOfferCardOptionViewModel");var p55=new _.z_("sfvAudioItemPlaybackCommand");var ArY=function(){yK.apply(this,arguments)};
_.y(ArY,yK);ArY.prototype.getAssociations=function(){return[]};
ArY.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.b3=new _.z_("reelNonVideoContentEndpoint");_.hg=new _.z_("reelWatchEndpoint");_.Zr=new _.z_("reelItemRenderer");_.rrz=new _.z_("reelMetapanelViewModel");_.uAj=new _.z_("reelNonVideoContentRenderer");_.xqC=new _.z_("reelPlayerOverlayRenderer");var LyC=new _.z_("shortsLockupViewModel");var jAd=new _.z_("sponsorButtonViewModel");var DqC=new _.z_("reelItemWatchResponse");var $qT=new _.z_("textBadgeRenderer");_.dZ=new _.z_("buttonRenderer");_.s6=new _.z_("toggleButtonRenderer");var $um=new _.z_("switchButtonViewModel");_.fY8=new _.z_("confirmDialogRenderer");var vB2;vB2=new _.z_("menuRenderer");_.bGC=new _.z_("menuFlexibleItemRenderer");var ZGz=new _.z_("pollRenderer");_.dqj=new _.z_("backgroundPromoRenderer");var lY8;_.sAC=new _.z_("chipCloudRenderer");lY8=new _.z_("chipCloudChipRenderer");var M6T=new _.z_("dropdownRenderer");var qNz=new _.z_("gridVideoRenderer");_.z1j=new _.z_("itemSectionRenderer");_.QAT=new _.z_("messageRenderer");var OG4=new _.z_("sortFilterHeaderRenderer");_.l3=new _.z_("videoRenderer");var GiA=new _.z_("resolveUrlCommandMetadata");var CLp=function(){yK.apply(this,arguments)};
_.y(CLp,yK);CLp.prototype.getAssociations=function(){return[]};
CLp.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.kmd=new _.z_("getAnswerCommand");_.IR=new _.z_("searchEndpoint");var EPC=new _.z_("genAiRichTextViewModel");var xSh=new _.z_("overviewAnswerViewModel");var SbC=new _.z_("videoOverviewViewModel");var Rt8=new _.z_("addToPlaylistServiceEndpoint");var VDA=new _.z_("clearSearchHistoryEndpoint");var NHC=new _.z_("clearWatchHistoryEndpoint");var IG5=new _.z_("webSerializedServiceEndpointExtension");_.nPT=new _.z_("createCommentEndpoint");var iXd=new _.z_("createCommentReplyEndpoint");var htC=new _.z_("performCommentActionEndpoint");var Jyp=new _.z_("updateCommentEndpoint");var cyz=new _.z_("updateCommentReplyEndpoint");_.Mz=new _.z_("createPlaylistServiceEndpoint");var m8j=new _.z_("deletePlaylistEndpoint");var et2=new _.z_("deleteVideoEndpoint");var jDb=new _.z_("getReportFormEndpoint");var aGC=new _.z_("modifyChannelNotificationPreferenceEndpoint");var szI;_.n5=new _.z_("offlinePlaylistEndpoint");szI={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 lLm;_.IE=new _.z_("offlineVideoEndpoint");lLm={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 BRp=new _.z_("pingingEndpoint");_.Yzp=new _.z_("selectActiveIdentityEndpoint");var WwC=new _.z_("setSettingEndpoint");var CVe=new _.z_("undoFeedbackEndpoint");var FwT=new _.z_("unsubscribeEndpoint");_.yUY=new _.z_("updatedMetadataEndpoint");var og2=function(){yK.apply(this,arguments)};
_.y(og2,yK);og2.prototype.getAssociations=function(){return[]};
og2.prototype.getTypeName=function(){return"settingEntity"};_.X3d=new _.z_("updateLocalAppSettingCommand");var ggC=new _.z_("saveImageToDeviceEndpoint");var U1p=new _.z_("shareImageCommand");var H6j=new _.z_("sharingProviderDataCommand");var Kw5=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Kw5,_.iu);var p3A=[0,_.Ds,-1];Kw5.prototype.JSC$12523_serializeBinary=MrA(p3A);var AU2=_.BU(p3A);var rU4=new _.z_("userMentionSuggestionRenderer");var uk8=new _.z_("liveChatTunnelCommand");var x1T=new _.z_("showSponsorshipsGiftOfferDialogCommand");var Lwz=new _.z_("sponsorshipsScrollableShelfViewModel");var jQY=new _.z_("updateUpcomingEventReminderButtonStateCommand");var D1j=new _.z_("upcomingEventReminderButtonStateRenderer");var $1C=new _.z_("subscribeEndpoint");var fVA=new _.z_("registerTasksCommand");var vg5=new _.z_("hideSheetCommand");var b6z=new _.z_("hideSnackbarCommand");var Z6d=new _.z_("showDialogCommand");_.Jl1=new _.z_("showSheetCommand");var d12=new _.z_("showSnackbarCommand");var sQA=function(){yK.apply(this,arguments)};
_.y(sQA,yK);sQA.prototype.getAssociations=function(){return[]};
sQA.prototype.getTypeName=function(){return"chipEntity"};var lV5=function(){yK.apply(this,arguments)};
_.y(lV5,yK);lV5.prototype.getAssociations=function(){return[]};
lV5.prototype.getTypeName=function(){return"dismissState"};_.y3=new _.z_("avatarViewModel");var Mfp=new _.z_("badgeViewModel");_.qz=new _.z_("buttonViewModel");_.zg=new _.z_("chipViewModel");var SeR=new _.z_("collectionThumbnailViewModel");var qz8=new _.z_("contentPreviewImageViewModel");var zzC=new _.z_("decoratedAvatarViewModel");_.QGe=new _.z_("engagementBarViewModel");_.QQC=new _.z_("imageBannerViewModel");var O64=new _.z_("lockupContentMetadataRowExtension");_.GFC=new _.z_("lockupMetadataViewModel");_.C6T=new _.z_("lockupViewModel");var kDp=new _.z_("avatarStackViewModel");_.E8Y=new _.z_("contentMetadataViewModel");var SVC=function(){yK.apply(this,arguments)};
_.y(SVC,yK);SVC.prototype.getAssociations=function(){return[]};
SVC.prototype.getTypeName=function(){return"pageHeaderEntity"};_.Rb4=new _.z_("pageHeaderViewModel");var VE2=new _.z_("snackbarViewModel");var Nwd=new _.z_("thumbnailHoverOverlayToggleActionsViewModel");_.QK=new _.z_("toggleButtonViewModel");var IoY=function(){yK.apply(this,arguments)};
_.y(IoY,yK);IoY.prototype.getAssociations=function(){return[]};
IoY.prototype.getTypeName=function(){return"votingEntity"};_.OeA=new _.z_("votingViewModel");var n82=new _.z_("sectionHeaderViewModel");var iyp=new _.z_("notifyDropdownOptionSelectedCommand");var clt=new _.z_("listViewModel");_.eq=new _.z_("listItemViewModel");var Eal=new _.z_("toggleableListItemViewModel");var hbd=new _.z_("dialogHeaderViewModel");var JZY=function(){yK.apply(this,arguments)};
_.y(JZY,yK);JZY.prototype.getAssociations=function(){return[]};
JZY.prototype.getTypeName=function(){return"dataFreshnessEntity"};var FPe=new _.z_("suspenseViewModel");var cZd=function(){yK.apply(this,arguments)};
_.y(cZd,yK);cZd.prototype.getAssociations=function(){return[]};
cZd.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var mY5=function(){yK.apply(this,arguments)};
_.y(mY5,yK);mY5.prototype.getAssociations=function(){return[]};
mY5.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var ebY=function(){yK.apply(this,arguments)};
_.y(ebY,yK);ebY.prototype.getAssociations=function(){return[]};
ebY.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.aoT=new _.z_("transcriptSubmitCaptionCorrectionCommand");var tE4=function(){yK.apply(this,arguments)};
_.y(tE4,yK);tE4.prototype.getAssociations=function(){return[]};
tE4.prototype.getTypeName=function(){return"buttonEntity"};var JTC=new _.z_("unpluggedStringRunImage");var Twp=new _.z_("tabViewModel");var wlA=new _.z_("tabbedViewModel");var PRY=function(){yK.apply(this,arguments)};
_.y(PRY,yK);PRY.prototype.getAssociations=function(){return[]};
PRY.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.BwC=new _.z_("updateDescriptionAction");var YVd=new _.z_("updateToggleButtonTextAction");var WBd=new _.z_("updateVideoMetadataCommand");_.FBT=new _.z_("autoplaySwitchButtonRenderer");var Yq;_.yZ8=new _.z_("multiMarkersPlayerBarRenderer");Yq=new _.z_("chapterRenderer");var o84=new _.z_("heatMarkerRenderer");var mCA=new _.z_("heatmapRenderer");var Xl5=new _.z_("smartSkipPlayerScrimOverlayRenderer");var g8T=new _.z_("timedMarkerDecorationRenderer");var LQb=new _.z_("postWebToNativeMessageCommand");var BZ=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(BZ,_.iu);BZ.prototype.getMethodName=function(){return _.t2(this,1)};var UY8=[0,_.Ds,-2];BZ.prototype.JSC$12545_serializeBinary=MrA(UY8);var HyT=_.PU(BZ,UY8);var KBA=new _.z_("whitelistEditEndpoint");var plp=new _.z_("clearUrlParamCommand");var AZz=new _.z_("commerceActionCommand");_.rZ8=new _.z_("getPaymentInstrumentsParamsCommand");var u7j=new _.z_("getPaymentsClientTokenCommand");var xYY=new _.z_("googlePaymentBillingCommand");var LBT=new _.z_("googlePaymentPurchaseManagerCommand");_.jxd=new _.z_("logGtmCommand");var DYY=new _.z_("updateCardItemOnClickCommand");_.$Yd=new _.z_("ypcPauseSubscriptionCommand");_.foC=new _.z_("ypcResumeSubscriptionCommand");var v8z=function(){yK.apply(this,arguments)};
_.y(v8z,yK);v8z.prototype.getAssociations=function(){return[]};
v8z.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var byz=function(){yK.apply(this,arguments)};
_.y(byz,yK);byz.prototype.getAssociations=function(){return[]};
byz.prototype.getTypeName=function(){return"commerceCartListEntity"};var Zyd=function(){yK.apply(this,arguments)};
_.y(Zyd,yK);Zyd.prototype.getAssociations=function(){return[]};
Zyd.prototype.getTypeName=function(){return"iconBadgeEntity"};var dYA=function(){yK.apply(this,arguments)};
_.y(dYA,yK);dYA.prototype.getAssociations=function(){return[]};
dYA.prototype.getTypeName=function(){return"pdpStateEntity"};var sxY=function(){yK.apply(this,arguments)};
_.y(sxY,yK);sxY.prototype.getAssociations=function(){return[]};
sxY.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var YPi=new _.z_("ypcOffersEndpoint");var lod=new _.z_("cardItemRenderer"),ME5=new _.z_("cardItemTextRenderer");var qVz=new _.z_("commerceCartItemQuantityPickerRenderer");var zbY=new _.z_("linkCardRenderer");var HaC=new _.z_("quantityIncrementerButtonViewModel");var QxA=new _.z_("quantityIncrementerViewModel");var Oyz=new _.z_("themedImageViewModel");_.GDY=new _.z_("ypcCancelRecurrenceEndpoint");var CRC=new _.z_("ypcCompleteTransactionEndpoint");_.kQ5=new _.z_("ypcGetCartEndpoint");_.xh=new _.z_("ypcGetOffersEndpoint");_.O6=new _.z_("ypcHandleTransactionEndpoint");var E_T=new _.z_("ypcLogWalletAnalyticDataEndpoint");_.ShT=new _.z_("ypcRedeemCodeEndpoint");var Rkz=new _.z_("ypcUpdateFopEndpoint");VK(RJ(1),E6(4));D2z((new MessageChannel).port2);var VY4=function(){this.register=new Map},Ff1=function(k,E,S){k=k+"_"+E;
Gg.register.has(k)?S=Gg.register.get(k):(S=S(),Gg.register.set(k,S));return S},NuC=function(k){k=_.n(k.register.values());
for(var E=k.next();!E.done;E=k.next())_.Gb(E.value,"ABORTED")};
VY4.prototype.clear=function(){NuC(this);this.register.clear()};
var Gg=new VY4;var S9I=Date.now().toString();var NBm=V8I();var emI={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 I8d,Yu;I8d=1;Yu=function(k){this.veData=k};
_.tV=function(k){return new Yu({trackingParams:k})};
_.kh=function(k,E,S,R,V,N){var h=I8d++;return new Yu({veType:k,veCounter:h,elementIndex:S,dataElement:E,youtubeData:R,jspbYoutubeData:V,loggingDirectives:N})};
_.I=Yu.prototype;
_.I.getAsJson=function(){var k={};this.veData.trackingParams!==void 0?k.trackingParams=this.veData.trackingParams:(k.veType=this.veData.veType,this.veData.veCounter!==void 0&&(k.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(k.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(k.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(k.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(k.isCounterfactual=!0);
return k};
_.I.getAsJspb=function(){var k=new kXz;this.veData.trackingParams!==void 0?k.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Y7(k,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Y7(k,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Y7(k,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.w7(k,5,!0));if(this.veData.dataElement!==void 0){var E=this.veData.dataElement.getAsJspb();_.Xo(k,7,E)}this.veData.youtubeData!==void 0&&_.Xo(k,8,this.veData.jspbYoutubeData);
return k};
_.I.toString=function(){return JSON.stringify(this.getAsJson())};
_.I.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.I.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.J6("yt_logging_screen.getRootVeType",J$h);_.J6("yt_logging_screen.getCurrentCsn",_.Fe);_.J6("yt_logging_screen.getCttAuthInfo",yw);_.J6("yt_logging_screen.setCurrentScreen",_.or);var n_d=function(){this.events=new Map},isz=function(k){var E=[];
k=_.n(k.events.values());for(var S=k.next();!S.done;S=k.next())E.push(S.value);return E};
n_d.prototype.clear=function(){this.events.clear()};var J7p=function(){this.logTransport=new hk2;this.loggedEventRegister=new n_d;this.unloggedEventRegister=new n_d;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12582_flushTimer=new _.Pk(this.flushInterval);this.JSC$12582_flushTimer.listen("tick",this.flush,!1,this)};
J7p.prototype.flush=function(){if(this.eventsCount){var k={loggedEvents:isz(this.loggedEventRegister),unloggedEvents:isz(this.unloggedEventRegister)};if(_.Y("export_player_version_to_ytconfig")){var E;(E=_.Mg("PLAYER_CLIENT_VERSION"))?(E=E.split("-")[0].replace(/\./g,""),E=isNaN(Number(E))?"0":E):E="";var S=_.Mg("PLAYER_CLIENT_VERSION");if(S){S=S.split("-");var R="";S.length>1&&(R=S[S.length-1]);S=EDt(R.startsWith("canary_experiment")?"canary":R.startsWith("canary_control")?"control":"none")}else S=
"CLIENT_CANARY_STATE_UNKNOWN";k.dimensions={playerClientVersion:E,playerCanaryState:S}}this.logTransport.flush(k);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12582_flushTimer.enabled&&this.JSC$12582_flushTimer.stop()}};
var c7Y=function(k){CK==null&&(CK=new J7p);var E=CK;var S=E.loggedEventRegister;k.dimensions=k.dimensions||{};k.dimensions.csn=_.Fe()||"";var R=TBC(k.dimensions).join(";");if(k.records!=null)if(S.events.has(R)){var V;(V=S.events.get(R).records)==null||V.push.apply(V,_.$e(k.records))}else S.events.set(R,k);E.JSC$12582_flushTimer.enabled||E.JSC$12582_flushTimer.start();E.eventsCount++;E.eventsCount>=100&&E.flush()};var hk2=function(){};
hk2.prototype.flush=function(k,E){_.Y("enable_client_sli_logging")&&_.f2("sliEventBatch",k,{sendIsolatedPayload:!!E})};var CK;var ekj;ekj=function(k){var E=mZY;k=k===void 0?{}:k;E=E.name;var S=WfI("SUCCESS");c7Y({dimensions:k,records:[{name:E,state:"SLI_STATE_END",status:S}]})};
_.y$t=function(k,E,S,R){this.name=k;this.sliId=E;this.timeoutMs=S;this.statusOnTimeout=R;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.y$t.prototype.getId=function(){return this.sliId};
_.qh=function(k,E){E=E===void 0?{}:E;k.ongoing||(k.ongoing=!0,k.dimensions=E,k.logSliId=bm8(),c7Y({dimensions:k.dimensions,records:[{name:k.name,state:"SLI_STATE_START",sliId:k.logSliId}]}),k.timeoutMs>0&&(k.timeoutHandle=setTimeout(function(){_.Gb(k,k.statusOnTimeout)},k.timeoutMs)))};
_.Gb=function(k,E){k.ongoing&&(k.timeoutMs>0&&clearTimeout(k.timeoutHandle),k.ongoing=!1,E={dimensions:k.dimensions,records:[{name:k.name,status:WfI(E),state:"SLI_STATE_END",sliId:k.logSliId}]},Gg.register.delete(k.name+"_"+k.sliId),c7Y(E))};var mZY=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var a82=function(){yK.apply(this,arguments)};
_.y(a82,yK);a82.prototype.getAssociations=function(){return[]};
a82.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var M3C=new _.z_("highlightTextDecoratorColorMapExtension");var sjI=new _.z_("styleRunColorMapExtension");var p7b=_.ry(["data-"]),uYC={};var LfC={};var ko=function(k){this.wrappedPromise_=k===void 0?null:k;this.state_=0;this.JSC$12613_value_=null};
ko.prototype.then=function(k,E,S){return this.wrappedPromise_?this.wrappedPromise_.then(k,E,S):this.state_===1&&k?(k=k.call(S,this.JSC$12613_value_))&&typeof k.then==="function"?k:_.E7(k):this.state_===2&&E?(k=E.call(S,this.JSC$12613_value_))&&typeof k.then==="function"?k:_.tYC(k):this};
ko.prototype.getValue=function(){return this.JSC$12613_value_};
ko.prototype.isRejected=function(){return this.state_==2};
OoC(ko);_.tYC=function(k){var E=new ko;k=k===void 0?null:k;E.state_=2;E.JSC$12613_value_=k===void 0?null:k;return E};
_.E7=function(k){var E=new ko;k=k===void 0?null:k;E.state_=1;E.JSC$12613_value_=k===void 0?null:k;return E};var OSj="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var TuC=["load","abort","error"],SK=function(k,E,S){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12633_maxAspectRatio_=k;this.disableAnimation_=E===void 0?!1:E;this.disableExifRotation_=S===void 0?!1:S;this.JSC$12633_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12633_reject_=this.resolve_=null};
SK.prototype.transform=function(k){var E=this;this.mime_=k.type;dG(R8C(k),this.dataUrlRead_,this.readError_,this);dG(S3C(k.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(S,R){E.resolve_=S;E.JSC$12633_reject_=R})};
SK.prototype.dataUrlRead_=function(k){this.dataUrl_=k;this.angle_!=null&&wWd(this)};
SK.prototype.exifRead_=function(k){if(this.disableExifRotation_)this.angle_=0;else{a:if(k=new DataView(k),k.byteLength<2||k.getUint16(0)!==65496)k=-2;else{for(var E=2,S=k.byteLength;E<S;){var R=k.getUint16(E),V=k.getUint16(E+2);if(R===65505){E+=4;R=k.getUint32(E);V=k.getUint16(E+4);if(R!==1165519206||V!==0)break;E+=6;R=k.getUint16(E)===18761;E+=k.getUint32(E+4,R);V=k.getUint16(E,R);E+=2;for(var N=0;N<V;N++){if(k.getUint16(E,R)===274){E+=8;k=k.getUint16(E,R);break a}E+=12}}else if(R>>8!==255)break;
else E+=V+2}k=-1}switch(k){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&&wWd(this)};
SK.prototype.readError_=function(){this.JSC$12633_reject_()};
var wWd=function(k){eF(k.JSC$12633_image_,TuC,k.completeTransform_,!1,k);k.JSC$12633_image_.src=_.ZF(k.dataUrl_).toString();k.JSC$12633_image_.src!=bu.toString()&&k.JSC$12633_image_.src.substr(0,11)==="data:image/"||k.JSC$12633_reject_()};
SK.prototype.completeTransform_=function(){if(this.JSC$12633_image_.src!=bu.toString()){var k=_.ZF(this.dataUrl_),E=this.JSC$12633_image_.naturalHeight?this.JSC$12633_image_.naturalWidth/this.JSC$12633_image_.naturalHeight:null;this.invalidAspectRatio=E>this.JSC$12633_maxAspectRatio_||E<1/this.JSC$12633_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var S=this.JSC$12633_image_.naturalWidth,R=this.JSC$12633_image_.naturalHeight,V=E=0,N=this.JSC$12633_image_.naturalHeight?this.JSC$12633_image_.naturalWidth/
this.JSC$12633_image_.naturalHeight:null;N>this.JSC$12633_maxAspectRatio_?(S=this.JSC$12633_maxAspectRatio_*R,E=(S-this.JSC$12633_image_.naturalWidth)/2,this.cropped=!0):N<1/this.JSC$12633_maxAspectRatio_?(R=this.JSC$12633_maxAspectRatio_*S,V=(R-this.JSC$12633_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)N=S,S=R,R=N,N=E,E=V,V=N;switch(this.angle_){case 90:V-=S;break;case 180:E-=S;V-=R;break;case 270:E-=
R}this.cropped||this.angle_%360!==0?(k=document.createElement("canvas"),k.width=S||1,k.height=R||1,this.JSC$12633_image_.naturalWidth&&this.JSC$12633_image_.naturalHeight&&(S=k.getContext("2d"),S.rotate(Math.PI/180*this.angle_),S.drawImage(this.JSC$12633_image_,E,V,this.JSC$12633_image_.naturalWidth,this.JSC$12633_image_.naturalHeight)),this.transformedData=_.ZF(k.toDataURL(this.mime_))):this.transformedData=k}else this.transformedData=k;this.resolve_(this)}};var Rq=function(k,E){_.mL.call(this,k);this.value=E};
_.y(Rq,_.mL);
var Vr=function(k,E,S,R,V,N,h){h=h===void 0?!1:h;_.wG.call(this);var J=this;this.JSC$12638_url_=k;this.channelId_=E;this.maxFileSizeMb_=S;this.JSC$12638_maxAspectRatio_=R;this.dropZoneEl_=V;this.rejectInvalidAspectRatio_=h;this.selectButtonEl_=N;this.JSC$12638_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new mW(this.dropZoneEl_);this.selectOverlay_=new e_(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12638_image_=this.transfer_=null;this.handler_=new _.Bk(this);_.Wy(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(N,"click",function(){J.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.y(Vr,_.wG);Vr.prototype.disposeInternal=function(){for(var k=this.selectButtonEl_.nextSibling;k&&k.parentNode&&k.tagName=="INPUT";)k.parentNode.removeChild(k),k=this.selectButtonEl_.nextSibling;this.cancel();_.wG.prototype.disposeInternal.call(this)};
Vr.prototype.uploadPromise=function(){if(this.JSC$12638_image_==null)return null;this.uploadPromise_||PiC(this);return this.uploadPromise_};
Vr.prototype.cancel=function(){Bud(this);this.JSC$12638_image_=null};
var Bud=function(k){k.transfer_&&k.transfer_.cancel();k.transfer_=null;k.uploadPromise_=null;k.resolve_=null;k.JSC$12638_reject_=null},PiC=function(k){Bud(k);
k.transfer_=_.qI5(k.JSC$12638_url_,{"X-YouTube-ChannelId":k.channelId_},k.JSC$12638_image_);k.handler_.listenOnce(k.transfer_,"l",k.JSC$12640_onUploadComplete_);k.handler_.listenOnce(k.transfer_,"n",k.onUploadError_);k.transfer_.run();k.uploadPromise_=new Promise(function(E,S){k.resolve_=E;k.JSC$12638_reject_=S})};
_.I=Vr.prototype;_.I.onChange_=function(k){k.files.length&&(this.JSC$12638_image_=k.files[0],this.JSC$12638_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12638_image_=null,this.dispatchEvent(new Rq("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(PiC(this),(new SK(this.JSC$12638_maxAspectRatio_)).transform(this.JSC$12638_image_).then((0,_.uk)(this.onPreview_,this),(0,_.uk)(this.onPreviewError_,this))))};
_.I.onPreview_=function(k){if(k.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12638_image_=null),this.dispatchEvent(new Rq("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;k.cropped&&this.dispatchEvent(new Rq("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new Rq("yt.comments.ImageUploadOverlay.CHANGE_EVENT",k.transformedData))};
_.I.onPreviewError_=function(){this.JSC$12638_image_=null;this.dispatchEvent(new Rq("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.I.onHover_=function(k){k.stopPropagation();k.preventDefault();if(k.type==="dragover")k=!0;else if(k.type==="dragleave")k=!1;else return;this.dispatchEvent(new Rq("yt.comments.ImageUploadOverlay.HOVER_EVENT",k))};
_.I.JSC$12640_onUploadComplete_=function(){var k=(0,_.WNT)(this.transfer_.getResponseText());this.resolve_(k.encryptedBlobId)};
_.I.onUploadError_=function(){this.JSC$12638_reject_();Bud(this)};var Yhp=function(k){k=k||{};var E={},S={};this.url=k.url||"";this.args=k.args||_.fO.clone(E);this.assets=k.assets||{};this.attrs=k.attrs||_.fO.clone(S);this.fallback=k.fallback||null;this.fallbackMessage=k.fallbackMessage||null;this.html5=!!k.html5;this.disable=k.disable||{};this.loaded=!!k.loaded;this.messages=k.messages||{}};
Yhp.prototype.clone=function(){var k=new Yhp,E;for(E in this)if(this.hasOwnProperty(E)){var S=this[E];_.GY(S)=="object"?k[E]=_.fO.clone(S):k[E]=S}return k};var W1C,F15,y7C,rE,XWd,g_8,UZC,Hs8,K1T,pWA,A74,r78,ulC,xZd,L1Y,jTd,DZC,$ZA,f8C,v_C,bsj,ZsY,dZC,sTY,l8j,MYA,qhd,zkT,QT8,lP1,OsC,GQY,CiY,kC4,EpA,SW8,RjT,V4p,NMT,I52,sGh,np2,iQ2,hjj,Jvz,cv8,mk8,ej5,a5Y,t4A,TMC,wad,Pw4,BMz,YWC,WDC,NF,FDY,yvd,opT,Xad,gp5,UkY,HQ5,KDC,paA,Avd,rv8,uI8,xkj,LDz,jnY,Dkz,$kY,f54,vpd,Zej,bQp,ZQj,dkj,snC,l5T,M4d,qWT,zjC,Qn8,OQC,GC2,CwT,k1C,E08,Ssz,RHC,V24,NQC,IQC,n04,iWd,hHd,JG4,cGA,mt4;W1C=["account/accounts_list"];F15=["acknowledge_channel_tou_strike"];y7C=["notification/add_upcoming_event_reminder"];
_.o_8=["att/get"];rE=["browse","music/browse","unplugged/browse"];XWd=["channel/claim_legacy_youtube_channel"];g_8=["history/clear_search_history"];UZC=["history/clear_watch_history"];Hs8=["comment/perform_comment_action"];K1T=["comment/get_comment_replies"];pWA=["ypc/commerce_action"];A74=["backstage/create_post"];r78=["live/create_broadcast"];ulC=["channel/create_channel"];xZd=["comment/create_comment_reply"];L1Y=["comment/create_comment"];jTd=["live_chat/create_poll"];DZC=["playlist/create"];
$ZA=["decorate_message"];f8C=["live_chat/delete_message"];v_C=["playlist/delete"];bsj=["video/delete"];ZsY=["like/dislike"];dZC=["dismissal/dismiss"];sTY=["flag/flag"];l8j=["flow"];MYA=["account/account_menu"];qhd=["playlist/get_add_to_playlist"];zkT=["get_answer"];QT8=["channel/get_channel_creation_form"];lP1=["offline/get_download_action"];OsC=["kids/get_kids_blocklist_picker"];GQY=["live_chat/get_item_context_menu"];CiY=["live_chat/get_live_chat_message_buy_flow"];kC4=["live_chat/get_live_chat_replay"];
EpA=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];SW8=["live_chat/get_live_chat_super_sticker_buy_flow"];RjT=["notification/get_notification_menu"];V4p=["playlist/get_settings_editor"];NMT=["backstage/get_post_video_preview"];I52=["account/get_profile_card"];sGh=["share/get_share_panel"];np2=["share/get_sharing_provider_data"];iQ2=["get_survey"];hjj=["notification/get_unseen_count"];Jvz=["get_user_mention_suggestions"];cv8=["get_watch"];mk8=["guide"];
ej5=["feedback"];a5Y=["kids/update_blacklist"];t4A=["like/like"];TMC=["live_chat/live_chat_action"];wad=["live_chat/manage_user"];Pw4=["video_manager/metadata_update"];BMz=["live_chat/moderate"];YWC=["notification/modify_channel_preference"];WDC=["notification/opt_out"];NF=["get_panel","get_posts_by_host_panel"];FDY=["player"];yvd=["browse/edit_playlist"];opT=["notification/record_interactions"];Xad=["reel/reel_item_watch"];gp5=["reel/reel_watch_sequence"];UkY=["like/removelike"];HQ5=["notification/remove_upcoming_event_reminder"];
KDC=["flag/get_form"];paA=["miniapp/report_value"];Avd=["navigation/resolve_url"];rv8=["channel/reveal_business_email"];uI8=["in_video/search"];xkj=["search","sfv/search","unplugged/search"];LDz=["live_chat/send_message"];jnY=["live_chat/send_live_chat_vote"];Dkz=["account/set_setting"];$kY=["submit_caption_correction"];f54=["submit_form"];vpd=["subscription/subscribe"];Zej=["get_transcript"];bQp=["resolve_location","unplugged/resolve_location"];ZQj=["subscription/unsubscribe"];dkj=["backstage/update_post"];
snC=["channel_edit/update_channel_page_settings"];l5T=["comment/update_comment_reply"];M4d=["comment/update_comment"];qWT=["comment/update_comments_settings"];zjC=["creator/update_creator_channel"];Qn8=["pdg/update_enablement"];OQC=["updated_metadata"];GC2=["channel_edit/validate_channel_handle"];CwT=["verify_age"];k1C=["next","unplugged/watch_next"];E08=["whitelist/edit"];Ssz=["ypc/cancel_recurrence"];RHC=["ypc/complete_transaction"];V24=["ypc/get_cart"];NQC=["ypc/get_fix_instrument_params"];
IQC=["ypc/get_offers"];n04=["ypc/get_payment_instruments_params"];iWd=["ypc/handle_transaction"];hHd=["ypc/log_payment_server_analytics"];JG4=["ypc/pause_subscription"];cGA=["ypc/redeem_code"];mt4=["ypc/resume_subscription"];var eH8=[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,276651,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,276200,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,277848,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,273960,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 R_=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.J6("yt.msgs_",R_);var Iq=new _.QE("ACTION_ROUTER_TOKEN");_.nw=function(){this.autonavState_=_.Y("kevlar_is_pupi_enabled")?2:hK1()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.nw.prototype.getState=function(){return this.autonavState_};
_.nw.prototype.pause=function(k){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=k):this.autonavState_==1&&(this.disabledAutonavPauseReason_=k)};
_.nw.prototype.setState=function(k,E,S){E&&(this.autoplayChangedByUser=!0);E=this.autonavState_===3||k===3;this.autonavState_!=k&&(this.autonavState_=k,k!=3&&_.Jtt(k==2),k=_.Y("kevlar_is_pupi_enabled")?S||E:!0,_.GU.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,k,S))};
_.nw.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.bb(_.nw);var h1=function(){this.hasRun=!1};var J1={},WW1=(J1.auto_search="LATENCY_ACTION_AUTO_SEARCH",J1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",J1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",J1.app_startup="LATENCY_ACTION_APP_STARTUP",J1.browse="LATENCY_ACTION_BROWSE",J1.cast_splash="LATENCY_ACTION_CAST_SPLASH",J1.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",J1.channels="LATENCY_ACTION_CHANNELS",J1.chips="LATENCY_ACTION_CHIPS",J1.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",J1.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
J1.editor="LATENCY_ACTION_EDITOR",J1.embed="LATENCY_ACTION_EMBED",J1.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",J1.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",J1.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",J1.explore="LATENCY_ACTION_EXPLORE",J1.favorites="LATENCY_ACTION_FAVORITES",J1.home="LATENCY_ACTION_HOME",J1.inboarding="LATENCY_ACTION_INBOARDING",J1.landing="LATENCY_ACTION_LANDING",J1.learning="LATENCY_ACTION_LEARNING",
J1.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",J1.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",J1.library="LATENCY_ACTION_LIBRARY",J1.live="LATENCY_ACTION_LIVE",J1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",J1.management="LATENCY_ACTION_MANAGEMENT",J1.mini_app="LATENCY_ACTION_MINI_APP_PLAY",J1.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",J1.onboarding="LATENCY_ACTION_ONBOARDING",J1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
J1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",J1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",J1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",J1.prebuffer="LATENCY_ACTION_PREBUFFER",J1.prefetch="LATENCY_ACTION_PREFETCH",J1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",J1.profile_switcher="LATENCY_ACTION_LOGIN",J1.projects="LATENCY_ACTION_PROJECTS",J1.reel_watch="LATENCY_ACTION_REEL_WATCH",J1.results="LATENCY_ACTION_RESULTS",J1.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
J1.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",J1.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",J1.review="LATENCY_ACTION_REVIEW",J1.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",J1.search_ui="LATENCY_ACTION_SEARCH_UI",J1.search_suggest="LATENCY_ACTION_SUGGEST",J1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",J1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",J1.seek="LATENCY_ACTION_PLAYER_SEEK",J1.settings="LATENCY_ACTION_SETTINGS",J1.store="LATENCY_ACTION_STORE",
J1.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",J1.tenx="LATENCY_ACTION_TENX",J1.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",J1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",J1.watch="LATENCY_ACTION_WATCH",J1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",J1["watch,watch7"]="LATENCY_ACTION_WATCH",J1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",J1["watch,watch7ad"]="LATENCY_ACTION_WATCH",J1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",J1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
J1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",J1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",J1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",J1.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",J1.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",J1.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",J1.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",J1),jJe=0;var ZKe=function(k,E){Wg.call(this,1,arguments);this.timer=E};
_.y(ZKe,Wg);var bKe=new Dyh("aft-recorded",ZKe);var XFl=_.Vt.ytLoggingGelSequenceIdObj_||{};_.J6("ytLoggingGelSequenceIdObj_",XFl);var cq=_.Vt.ytLoggingLatencyUsageStats_||{};_.J6("ytLoggingLatencyUsageStats_",cq);var m2=function(){this.cleanupJob=0},HKh=function(){m2.instance||(m2.instance=new m2);
return m2.instance};
_.I=m2.prototype;_.I.baseline=function(k,E,S){eK(this,"baseline_"+k)||_.f2("latencyActionBaselined",{clientActionNonce:k},{timestamp:E,cttAuthInfo:S})};
_.I.tick=function(k,E,S,R){eK(this,"tick_"+k+"_"+E)||_.f2("latencyActionTicked",{tickName:k,clientActionNonce:E},{timestamp:S,cttAuthInfo:R})};
_.I.info=function(k,E,S){var R=Object.keys(k).join("");eK(this,"info_"+R+"_"+E)||(k=Object.assign({},k),k.clientActionNonce=E,_.f2("latencyActionInfo",k,{cttAuthInfo:S}))};
_.I.jspbInfo=function(k,E,S){for(var R="",V=0;V<$W(k).length;V++)$W(k)[V]!==void 0&&(R=V===0?R.concat(""+V):R.concat("_"+V));eK(this,"info_"+R+"_"+E)||(_.uh(k,2,E),E={cttAuthInfo:S},S=_.Y("jspb_sparse_encoded_pivot")?new rg([{}]):new rg,_.gk(S,7,tid,k),gjR("latencyActionInfo",S,E))};
_.I.span=function(k,E,S){var R=Object.keys(k).join("");eK(this,"span_"+R+"_"+E)||(k.clientActionNonce=E,_.f2("latencyActionSpan",k,{cttAuthInfo:S}))};
var eK=function(k,E){cq[E]=cq[E]||{count:0};var S=cq[E];S.count++;S.time=(0,_.ev)();k.cleanupJob||(k.cleanupJob=_.uM(_.ZJ,function(){var R=(0,_.ev)(),V;for(V in cq)cq[V]&&R-cq[V].time>6E4&&delete cq[V];k&&(k.cleanupJob=0)},5E3));
return S.count>5?(S.count===6&&Math.random()*1E5<1&&(S=new _.LC("CSI data exceeded logging limit with key",E.split("_")),E.indexOf("plev")>=0||_.dg(S)),!0):!1};var aQd,t28;aQd=window;t28=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.ed=aQd.performance||aQd.mozPerformance||aQd.msPerformance||aQd.webkitPerformance||new t28;var vjj=!1,pFh=!1,dzh=(0,_.uk)(_.ed.clearResourceTimings||_.ed.webkitClearResourceTimings||_.ed.mozClearResourceTimings||_.ed.msClearResourceTimings||_.ed.oClearResourceTimings||_.eu,_.ed);var TQA=window;TQA.ytcsi&&(TQA.ytcsi.infoGel=_.BE,TQA.ytcsi.tick=_.o_);var EoA=function(k){Wg.call(this,1,arguments);this.csn=k};
_.y(EoA,Wg);var Zc1=new Dyh("screen-created",EoA),wqC=[],k71=T_1,Pfb=0,Kz=new Map,S7t=new Map,Rf1=new Map;var p4h=Symbol("Cf"),vE=new WeakMap;var aq=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},mR=function(){aq.instance||(aq.instance=new aq);
return aq.instance};
_.I=aq.prototype;_.I.setClient=function(k){this.client=k};
_.I.JSC$12719_newScreen=function(){this.clear();this.csn=_.Fe()};
_.I.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.I.reportShown=function(k,E,S){var R=this.JSC$12719_getTrackingParams(k),V=k.visualElement?k.visualElement:R;E=this.shownElements.has(V);var N=this.visibleState.get(V);this.shownElements.add(V);this.visibleState.set(V,!0);k.impressionLog&&!E&&k.impressionLog();if(R||k.visualElement)if(S=wf2(this,k,S))if(V=P9T(this,k),t1(this,k)||V){R=k.visualElement?k.visualElement:_.tV(R);var h=k.interactionLoggingClientData;V||E?t1(this,k)&4?N||c11(this.client,S,R,h):t1(this,k)&1&&!E&&iwI(this.client,S,R,h):iwI(this.client,
S,R,h)}};
_.I.reportHidden=function(k,E,S){var R=this.JSC$12719_getTrackingParams(k),V=k.visualElement?k.visualElement:R;E=this.hiddenElements.has(V);var N=this.visibleState.get(V);this.hiddenElements.add(V);this.visibleState.set(V,!1);if(N===!1)return!0;if(!R&&!k.visualElement)return!1;S=wf2(this,k,S);if(!S||!t1(this,k)&&P9T(this,k))return!1;R=k.visualElement?k.visualElement:_.tV(R);t1(this,k)&8?mF1(this.client,S,R):t1(this,k)&2&&!E&&(k=this.client,E=HE({cttAuthInfo:yw(S)||void 0},S),R={csn:S,ve:R.getAsJson(),
eventType:2},S==="UNDEFINED_CSN"?AX("visualElementHidden",E,R):k?Dd("visualElementHidden",R,k,E):_.f2("visualElementHidden",R,E));return!0};
_.I.JSC$12719_getTrackingParams=function(k){var E=this.getData(k),S,R;if(_.Y("il_use_view_model_logging_context")&&(E==null?0:(S=E.context)==null?0:(R=S.loggingContext)==null?0:R.loggingDirectives))return E.context.loggingContext.loggingDirectives.trackingParams||"";var V,N;if(E==null?0:(V=E.rendererContext)==null?0:(N=V.loggingContext)==null?0:N.loggingDirectives)return E.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(E==null?0:E.loggingDirectives)return E.loggingDirectives.trackingParams||
"";var h;return((h=k.veContainer)==null?0:h.trackingParams)?k.veContainer.trackingParams:(E==null?void 0:E.trackingParams)||""};
_.I.JSC$12719_elementShouldLogGesture=function(k,E){k=this.getData(k);return!!((Math.floor(Number(k&&k.loggingDirectives&&k.loggingDirectives.gestures&&k.loggingDirectives.gestures.types||""))||0)&E)};
_.I.JSC$12719_getNearestParentVe=function(k){var E=this.JSC$12719_getTrackingParams(k);return k.visualElement?k.visualElement:E?_.tV(E):k.parentElement?this.JSC$12719_getNearestParentVe(k.parentElement):null};
var wf2=function(k,E,S){var R=_.Fe(S);return k.csn===null||R===k.csn||S?R:(k=new _.LC("VisibilityLogger called before newScreen",{caller:E.tagName,previous_csn:k.csn,current_csn:R}),_.dg(k),null)};
aq.prototype.getData=function(k){var E,S=k.data||((E=k.props)==null?void 0:E.data);if(!S||k.isWebComponentWrapper){var R;S=(R=vE.get(k))==null?void 0:R[p4h]}return S};
var P9T=function(k,E){var S;return!((S=k.getData(E))==null||!S.loggingDirectives)},t1=function(k,E){k=k.getData(E);
return Math.floor(Number(k&&k.loggingDirectives&&k.loggingDirectives.visibility&&k.loggingDirectives.visibility.types||""))||1};var T7;T7=function(){};
_.iY=function(){T7.instance||(T7.instance=new T7);return T7.instance};
T7.prototype.setClient=function(k){_.Ga(mR().setClient).bind(mR())(k)};
_.BQ5=function(){_.iY();_.Ga(mR().JSC$12719_newScreen).bind(mR())()};
T7.prototype.clear=function(){_.Ga(mR().clear).bind(mR())()};
T7.prototype.reportShown=function(k,E,S){_.Ga(mR().reportShown).bind(mR())(k,E,S)};
T7.prototype.reportHidden=function(k,E,S){return _.Ga(mR().reportHidden).bind(mR())(k,E,S)};
var l61=function(k,E){return _.Ga(mR().JSC$12719_getTrackingParams).bind(mR())(E)},A8h=function(k,E){return _.Ga(mR().JSC$12719_getNearestParentVe).bind(mR())(E)};var w_,YsA;w_=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};
_.JV=function(){w_.instance||(w_.instance=new w_);return w_.instance};
w_.prototype.setClient=function(k){this.client=k};
YsA=function(k,E,S){S=S===void 0?{}:S;_.Ga(function(){var R,V,N,h=((R=_.W(E==null?void 0:E.commandMetadata,_.Sd))==null?void 0:R.rootVe)||((V=_.W(E==null?void 0:E.commandMetadata,VKY))==null?void 0:(N=V.screenVisualElement)==null?void 0:N.uiType);if(h){R=_.W(E==null?void 0:E.commandMetadata,GiA);if(R==null?0:R.parentTrackingParams){var J=_.tV(R.parentTrackingParams);if(R.parentCsn)var m=R.parentCsn}else S.clickedVisualElement?J=S.clickedVisualElement:E.clickTrackingParams&&(J=_.tV(E.clickTrackingParams));
a:{R=_.W(E,_.jm);V=_.W(E,I8t);if(R){if(V=cte(R,"VIDEO")){R={token:V,videoId:R.videoId};break a}}else if(V&&(R=cte(V,"PLAYLIST"))){R={token:R,playlistId:V.playlistId};break a}R=void 0}S=Object.assign({},{cttAuthInfo:R,parentCsn:m},S);if(_.Y("expectation_logging")){var a;S.loggingExpectations=((a=_.W(E==null?void 0:E.commandMetadata,VKY))==null?void 0:a.loggingExpectations)||void 0}_.Pq(k,h,J,S)}else _.dg(new _.LC("Error: Trying to create a new screen without a rootVeType",E))})()};
_.Pq=function(k,E,S,R){R=R===void 0?{}:R;_.Ga(function(){eH8.includes(E)||(_.dg(new _.LC("createClientScreen() called with a non-page VE",E)),E=83769);R.isHistoryNavigation||(k.forwardHistoryStack=[],k.backHistoryStack.push({rootVe:E,key:R.key||""}));k.graftQueue=[];k.stateChangedQueue=[];R.dataPromises?W4T(k,E,S,R):F4Y(k,E,S,R)})()};
_.yGC=function(k,E,S){S=S===void 0?0:S;_.Ga(function(){E.then(function(R){k.pendingScreenCreation.has(S)&&k.pendingScreenFn&&k.pendingScreenFn();var V=_.Fe(S),N=_.Wi(S);if(V&&N){var h={automatedLogEventSource:3},J;(R==null?0:(J=R.response)==null?0:J.trackingParams)&&pz(k.client,V,N,_.tV(R.response.trackingParams),!1,h);var m;(R==null?0:(m=R.playerResponse)==null?0:m.trackingParams)&&pz(k.client,V,N,_.tV(R.playerResponse.trackingParams),!1,h)}})})()};
w_.prototype.graftServerVe=function(k,E,S){var R=this;return _.Ga(function(){var V=_.tV(k);_.Bq(R,V,E,S);return V})()};
_.r8l=function(k,E,S,R){return _.Y("enable_client_ve_spec")&&E.clientVeSpec?(E=_.kh(E.clientVeSpec.uiType,void 0,E.clientVeSpec.elementIndex,E.clientVeSpec.clientYoutubeData,void 0,E),_.Bq(k,E,S,R)?E:null):E.trackingParams?k.graftServerVe(E.trackingParams,S,R):null};
_.hV=function(k,E,S,R){return _.Ga(function(){if(!E.veType)return _.Zd(new _.LC("Error: Trying to graft a client VE without a veType.")),null;if(E.visibilityTypes){var V=E.visibilityTypes.reduce(function(N,h){return N|h});
V={visibility:{types:String(V)}}}V=_.kh(E.veType,E.visualElement,E.elementIndex,E.clientYouTubeData,void 0,V);return _.Bq(k,V,S,R)?V:null})()};
_.Bq=function(k,E,S,R){R=R===void 0?0:R;return _.Ga(function(){if(k.pendingScreenCreation.has(R))return k.graftQueue.push([E,S]),!0;var V=_.Fe(R),N=S||_.Wi(R);if(V&&N){if(_.Y("combine_ve_grafts")){var h=k.cachedVisualElements.get(N.toString());h?h.push(E):(k.cachedRootVisualElements.set(N.toString(),N),k.cachedVisualElements.set(N.toString(),[E]));k.attachTimeout||(k.attachTimeout=_.uM(_.ZJ,function(){o0C(k,V)},1200))}else pz(k.client,V,N,E);
return!0}return!1})()};
_.Yo=function(k,E,S){S=S===void 0?0:S;var R=k.recurringGrafts.get(S)||new Map;if(_.Y("smarter_ve_dedupping"))for(var V=Array.from(R.keys()),N=0;N<V.length;N++){var h=void 0,J=void 0;var m=E;var a=V[N];a.isClientVe()&&m.isClientVe()?(h=m.getAsJson(),J=a.getAsJson(),m=h.veType!==J.veType||h.elementIndex!==J.elementIndex||h.dataElement!==J.dataElement||m.getLoggingDirectives()!==a.getLoggingDirectives()?!1:!0):m=a.veData.trackingParams!==void 0&&m.veData.trackingParams!==void 0?((J=m.veData)==null?void 0:
J.trackingParams)===((h=a.veData)==null?void 0:h.trackingParams):!1;if(m)return}else if(R.has(E))return;R.set(E,void 0);k.recurringGrafts.set(S,R);_.Fe(S)==="UNDEFINED_CSN"||k.pendingScreenCreation.has(S)||_.Bq(k,E,void 0,S)};
_.Wq=function(k,E,S,R){R=_.Fe(R===void 0?0:R);if(!R)return!1;aaC(k.client,R,E,S);return!0};
_.FE=function(k,E,S,R){if(!E)return!1;R=_.Fe(R===void 0?0:R);if(!R)return!1;aaC(k.client,R,_.tV(E),S);return!0};
_.Ab=function(k,E){var S=E.getScreenLayer&&E.getScreenLayer();if(E.visualElement)return _.Wq(k,E.visualElement,void 0,S);E=l61(_.iY(),E);return _.FE(k,E,void 0,S)};
w_.prototype.clickCommand=function(k,E,S){return _.FE(this,k.clickTrackingParams,E,S===void 0?0:S)};
w_.prototype.stateChanged=function(k,E,S){this.visualElementStateChanged(_.tV(k),E,S===void 0?0:S)};
w_.prototype.visualElementStateChanged=function(k,E,S){S=S===void 0?0:S;S===0&&this.pendingScreenCreation.has(S)?this.stateChangedQueue.push([k,E]):this.logStateChanged(k,E,S)};
w_.prototype.logStateChanged=function(k,E,S){S=S===void 0?0:S;var R=_.Fe(S);k=k||_.Wi(S);return R&&k?(tKi(this.client,R,k,E),!0):!1};
var W4T=function(k,E,S,R){R=R===void 0?{}:R;k.pendingScreenCreation.add(R.layer||0);k.pendingScreenFn=function(){F4Y(k,E,S,R);var h=_.Wi(R.layer);if(h){for(var J=_.n(k.graftQueue),m=J.next();!m.done;m=J.next())m=m.value,_.Bq(k,m[0],m[1]||h,R.layer);h=_.n(k.stateChangedQueue);for(J=h.next();!J.done;J=h.next())J=J.value,k.logStateChanged(J[0],J[1])}};
S||_.Fe(R.layer)||k.pendingScreenFn();if(R.dataPromises)for(var V=_.n(R.dataPromises),N=V.next();!N.done;N=V.next())_.yGC(k,N.value,R.layer);else _.bM(Error("Df"))},F4Y=function(k,E,S,R){R=R===void 0?{}:R;
var V=void 0;R.layer||(R.layer=0);V=R.parentLayer!==void 0?R.parentLayer:R.layer;var N=_.Fe(V);V=_.Wi(V);var h=S||V,J;h&&(R.parentCsn!==void 0?J={clientScreenNonce:R.parentCsn,visualElement:h}:N&&N!=="UNDEFINED_CSN"&&(J={clientScreenNonce:N,visualElement:h}));var m,a=_.Mg("EVENT_ID");N==="UNDEFINED_CSN"&&a&&(m={servletData:{serializedServletEventId:a}});_.Y("combine_ve_grafts")&&N&&o0C(k,N);_.Y("no_client_ve_attach_unless_shown")&&h&&N&&no1(h,N);try{var T=_.VK1(k.client,E,J,R.csnToClone,R.cttAuthInfo,
m,R.implicitGestureType,void 0,R.loggingExpectations)}catch(B){_.sc(B,{rootVeType:E,rootVe:V,parentVisualElement:S,currentCsn:N,parentEl:J,csnToClone:R.csnToClone});_.bM(B);return}_.or(T,E,R.layer,R.cttAuthInfo);N&&N!=="UNDEFINED_CSN"&&V&&!aTb(N)&&mF1(k.client,N,V,!0);k.backHistoryStack[k.backHistoryStack.length-1]&&!k.backHistoryStack[k.backHistoryStack.length-1].csn&&(k.backHistoryStack[k.backHistoryStack.length-1].csn=T||"");_.BE({clientScreenNonce:T});_.BQ5();var w=_.Wi(R.layer);N&&N!=="UNDEFINED_CSN"&&
w&&(_.Y("web_mark_root_visible")||_.Y("music_web_mark_root_visible"))&&_.xA(T,w);k.pendingScreenCreation.delete(R.layer||0);k.pendingScreenFn=void 0;var P;(P=k.recurringGrafts.get(R.layer))==null||P.forEach(function(B,F){B?_.Bq(k,F,B,R.layer):w&&_.Bq(k,F,w,R.layer)});
Xfd(k)},Xfd=function(k){for(var E=0;E<k.afterNewScreenOneOffJobs.length;E++){var S=k.afterNewScreenOneOffJobs[E];
try{S()}catch(R){_.bM(R)}}for(E=k.afterNewScreenOneOffJobs.length=0;E<k.afterNewScreenRecurringJobs.length;E++){S=k.afterNewScreenRecurringJobs[E];try{S()}catch(R){_.bM(R)}}},o0C=function(k,E){if(E===void 0)for(var S=mlA(),R=0;R<S.length;R++)S[R]!==void 0&&o0C(k,S[R]);
else k.cachedVisualElements.forEach(function(V,N){(N=k.cachedRootVisualElements.get(N))&&N_m(k.client,E,N,V)}),k.cachedVisualElements.clear(),k.cachedRootVisualElements.clear(),k.attachTimeout=void 0};var yr=function(k){k=k===void 0?{layer:0}:k;this.hasRun=!1;this.createScreenConfig=k;k={};this.zvU=(k.response=!1,k.playerResponse=!1,k)};
_.y(yr,h1);yr.prototype.validate=function(k){return!(!k.data||!k.data.response&&!k.data.playerResponse)};
yr.prototype.handle=function(k){var E=_.JV(),S=this.createScreenConfig.layer;k.data.response&&k.data.response.trackingParams&&!this.zvU.response&&(E.graftServerVe(k.data.response.trackingParams,void 0,S),this.zvU.response=!0);k.data.playerResponse&&k.data.playerResponse.trackingParams&&!this.zvU.playerResponse&&(E.graftServerVe(k.data.playerResponse.trackingParams,void 0,S),this.zvU.playerResponse=!0)};var oq=function(){this.f8=_.LU();this.mZ=[];this.qoU=0};
oq.prototype.processChunk=function(k){if(k){for(var E=_.n(this.mZ),S=E.next();!S.done;S=E.next())S=S.value,S.validate(k)&&(S.handle(k),S.hasRun=!0);_.o_("np"+this.qoU);this.qoU++}};var bD={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},ooC={rootSpan:function(){return bD.stack[0]}};var UtA=function(){var k=g08;this.observers=[];this.value=k};
_.I=UtA.prototype;_.I.subscribe=function(k){var E=this;if(k.idx!=null)throw Error("Ff");k.idx=this.observers.length;this.observers.push(k);return function(){var S=E.observers[E.observers.length-1];E.observers[k.idx]=S;S.idx=k.idx;E.observers.pop()}};
_.I.update=function(k){this.value=k(this.value);this.notify()};
_.I.mutate=function(k){k(this.value);this.notify()};
_.I.set=function(k){this.value=k;this.notify()};
_.I.notify=function(){for(var k=_.n(this.observers),E=k.next();!E.done;E=k.next()){E=E.value;try{E(this.value)}catch(S){}}};var Swm,HWj,AG8;_.V_=function(k,E,S,R,V,N,h,J){h=h===void 0?[]:h;J=J===void 0?[]:J;this.buildCommandPayload=k;this.navigate=E;this.handleServiceRequest=S;this.sendAction=R;this.JSC$12766_screenManager=V;this.commandResolverMap=N;this.autoLogResolverAllowlist=h;this.metaCommandClickLoggingDenylist=J;this.pendingCommands=new Set;this.isTracingEnabled=!1;HWj(this)};
Swm=function(k,E,S,R){var V=f1I,N=vwi,h=_.JV(),J=K4C;S=S===void 0?[]:S;R=R===void 0?[]:R;_.V_.instance=new _.V_(k,E,V,N,h,J,S,R)};
HWj=function(k){if(!k.isTracingEnabled&&F2e("command")){var E=k.resolveCommand;k.resolveCommand=function(S,R){a:{for(V in S)if(Object.prototype.hasOwnProperty.call(S,V)){var V={commandType:V};break a}V={}}return Xqb("command",V,E.bind(this,S,R))};
k.isTracingEnabled=!0}};
AG8=function(k,E,S){if(!k.commandResolverMap)return!1;var R=pql(E,k.commandResolverMap);return R?((k.autoLogResolverAllowlist.some(function(V){return!!_.W(E,V)})||(S==null?0:S.forceClickLogging))&&pfC(k,E,S),R instanceof Promise?R.then(function(V){V.resolve(E,S)}):R.resolve(E,S),!0):!1};
_.V_.prototype.resolveCommand=function(k,E){var S=this,R=rG2(k);if(AG8(this,k,E))return!0;if(R)return uj4(this,k,E);if(!this.buildCommandPayload)return UFm(k,"Unhandled command by buildCommandPayload"),!1;var V=this.buildCommandPayload(k,E);if(E==null?0:E.commandController)V.commandController=E.commandController;if(V.type===0){if(!this.navigate)return HwI(k,"navigate"),!1;if(!xtA(V.command))return UFm(k,"Page requests need to specify a url"),!1;_.Y("logging_avoid_blocking_during_navigation")&&_.gvj().transition("application_navigating");
k=this.navigate(V)||[];VwA(k).then(function(){S.pendingCommands.delete(V.command)});
return!0}if(V.type===1){if(!this.handleServiceRequest)return HwI(k,"handleServiceRequest"),!1;(E==null?0:E.forceClickLogging)&&pfC(this,V.command,E);k=this.handleServiceRequest(V);VwA(k).then(function(){S.pendingCommands.delete(V.command)});
return!0}if(V.type===2){if(!this.sendAction)return HwI(k,"sendAction"),!1;pfC(this,V.command,E);this.sendAction(V);return!0}return!1};
var pfC=function(k,E,S){if((S==null||!S.disableClickTracking)&&k.JSC$12766_screenManager)if(E.clickTrackingParams&&_.Y("log_click_with_layer_from_element_in_command_handler")){var R;S=S==null?void 0:(R=S.form)==null?void 0:R.element;k.JSC$12766_screenManager.clickCommand(E,null,S&&S.getScreenLayer&&S.getScreenLayer())}else E.clickTrackingParams?k.JSC$12766_screenManager.clickCommand(E):!_.Y("disable_clicked_visual_element_in_command_handler")&&(S==null?0:S.clickedVisualElement)&&_.Wq(k.JSC$12766_screenManager,
S.clickedVisualElement)},rG2=function(k){var E=!!_.W(k,_.CI),S;
k=((S=_.W(k,_.Ev))==null?void 0:S.signal)==="CLIENT_SIGNAL";return E||k},uj4=function(k,E,S){var R=_.W(E,_.CI);
if(R)var V=(R==null?void 0:R.commands)||[];else{var N;if(((N=_.W(E,_.Ev))==null?void 0:N.signal)==="CLIENT_SIGNAL"){var h;V=((h=_.W(E,_.Ev))==null?void 0:h.actions)||[]}}if(V){(R=L4z(k,V))&&pfC(k,E,S);E=_.n(V);for(V=E.next();!V.done;V=E.next()){V=V.value;try{var J=Object.assign({},S);R&&(J.disableClickTracking=!0);k.resolveCommand(V,J)}catch(m){m instanceof Error&&_.bM(m)}}return!0}UFm(E,"Could not handle the meta command");return!1},L4z=function(k,E){return E.every(function(S){return k.metaCommandClickLoggingDenylist.some(function(R){return!!_.W(S,
R)})})},xtA=function(k){var E;
return!((E=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null||!E.url)};var XE=function(){h1.apply(this,arguments)};
_.y(XE,h1);XE.prototype.validate=function(k){var E,S;return!this.hasRun&&!!((E=k.data.response)==null?0:(S=E.onResponseReceivedEndpoints)==null?0:S.length)};
XE.prototype.handle=function(k){var E=_.V_.instance;k=_.n(k.data.response.onResponseReceivedEndpoints);for(var S=k.next();!S.done;S=k.next())E.resolveCommand(S.value)};var j$4,DtC,$tA;
j$4=function(){this.companionCanvasActivation=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=_.GR();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.g_=function(){DtC||(DtC=new j$4);return DtC};
$tA=function(){var k=_.g_();k.miniplayerButtonActivation=!1;k.userActivation=!1;k.playlistWatchPageActivation=!1;k.productDetailsPageActivation=!1;k.miniAppPageActivation=!1;k.playablesDestPageActivation=!1;k.lockupActivation=!1;k.showMiniplayerCommandActivation=!1;k.playlistSuggestionsShelfActivation=!1;k.mediaSessionPipActivation=!1;k.watchPipActivation=!1;k.watchWhileActivation=!1;k.shortsPipActivation=!1;k.companionCanvasActivation=!1};
_.fQ8=function(){var k=_.g_(),E=k.mediaSessionPipActivation,S=k.watchPipActivation,R=k.watchWhileActivation,V=k.playlistWatchPageActivation,N=k.lockupActivation,h=k.showMiniplayerCommandActivation,J=k.navigatingAwayFromWatchDeletedVideo,m=k.shortsPipActivation,a=k.playlistSuggestionsShelfActivation,T=k.productDetailsPageActivation,w=k.miniAppPageActivation,P=k.playablesDestPageActivation,B=k.companionCanvasActivation;return!k.miniplayerButtonActivation&&!V&&!a&&!T&&!w&&!P&&!N&&!h&&!E&&!S&&!R&&!m&&
!B||J};var dLh;_.U7=_.dq("FEwhat_to_watch","/",3854);_.sBC=_.dq("FEdownloads","/feed/downloads",42352);dLh=_.dq("FEmusic_offline","browse/FEmusic_offline",42352);var fr=function(k,E){E=E===void 0?[]:E;var S=S===void 0?[]:S;E=sfb.apply(null,[lX1.apply(null,_.$e(E))].concat(_.$e(S)));this.store=QfR(k,void 0,E)};
fr.prototype.getState=function(){return this.store.getState()};
fr.prototype.dispatch=function(k){return this.store.dispatch(k)};
fr.prototype.subscribe=function(k){return this.store.subscribe(k)};
fr.prototype.replaceReducer=function(k){return this.store.replaceReducer(k)};
fr.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Hq=function(k,E,S){var R=E(k.getState());return k.subscribe(function(){var V=E(k.getState());if(V!==R){var N=R;R=V;S(V,N)}})};var Wc1;_.mj=function(k,E,S){return _.zX({type:"REPLACE_ENTITY",payload:{entityPayload:S,entityType:k,key:E}})};
Wc1=function(k){return _.zX({type:"REPLACE_ENTITIES",payload:k})};
_.wE=function(k,E,S,R){return _.zX({type:"UPDATE_ENTITY",payload:{entityPayload:S,entityType:k,key:E,mergeOption:R}})};var dFt=function(k){var E=this;k=k===void 0?[]:k;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;k.forEach(function(S){E.append(S)})};
_.I=dFt.prototype;_.I.getLength=function(){return this.totalLength};
_.I.append=function(k){var E=this.arrays.length===0?!1:(E=this.arrays[this.arrays.length-1])&&E.buffer===k.buffer&&E.byteOffset+E.length===k.byteOffset;E?(E=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(E.buffer,E.byteOffset,E.length+k.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(k);this.totalLength+=k.length};
_.I.split=function(k){for(var E=new dFt,S=new dFt,R=_.n(this.arrays),V=R.next();!V.done;V=R.next())V=V.value,k>=V.length?(E.append(V),k-=V.length):k?(E.append(new Uint8Array(V.buffer,V.byteOffset,k)),S.append(new Uint8Array(V.buffer,V.byteOffset+k,V.length-k)),k=0):S.append(V);return{headView:E,tailView:S}};
_.I.isFocused=function(k){return k>=this.arrayPos&&k<this.arrayPos+this.arrays[this.arrayIdx].length};
_.I.focus=function(k){if(!this.isFocused(k))for(k<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=k&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var v0C=function(k,E){k.focus(E);return k.arrays[k.arrayIdx][E-k.arrayPos]};(function(){var k=function(R){return new Uint8Array(R)},E=function(R){for(var V=new Uint8Array(R.length),N=0;N<R.length;N++)V[N]=R[N];
return V},S=new Uint8Array([1]);
return S.length===1&&S[0]===1?k:E})();
var DFC=Array(1024),jqe=window.TextDecoder?new TextDecoder:void 0,fah=window.TextEncoder?new TextEncoder:void 0;var ZwI=function(k){this.arrayView=k;this.pos=0;this.pendingTagAndType=-1},Qi=function(k){var E=v0C(k.arrayView,k.pos);
++k.pos;if(E<128)return E;for(var S=E&127,R=1;E>=128;)E=v0C(k.arrayView,k.pos),++k.pos,R*=128,S+=(E&127)*R;return S},sqh=function(k,E){var S=k.pendingTagAndType;
for(k.pendingTagAndType=-1;k.pos+1<=k.arrayView.totalLength;){S<0&&(S=Qi(k));var R=S>>3,V=S&7;if(R===E)return!0;if(R>E){k.pendingTagAndType=S;break}S=-1;switch(V){case 0:Qi(k);break;case 1:k.pos+=8;break;case 2:R=Qi(k);k.pos+=R;break;case 5:k.pos+=4}}return!1};var MKt=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=bw1(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Cz=function(k,E){E=k.pos+E;
if(!(k.buf.length>=E)){for(var S=k.buf.length*2;S<E;)S*=2;k.buf=bw1(S,k.wasm,k.buf.subarray(0,k.pos));k.view=new DataView(k.buf.buffer,k.buf.byteOffset,k.buf.byteLength)}},GX=function(k,E){if(E>268435455){Cz(k,4);
for(var S=E&1073741823,R=0;R<4;R++)k.view.setUint8(k.pos,S&127|128),S>>=7,k.pos+=1;E=Math.floor(E/268435456)}for(Cz(k,4);E>127;)k.view.setUint8(k.pos,E&127|128),E>>=7,k.pos+=1;k.view.setUint8(k.pos,E);k.pos+=1};for(var q7I={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},laI={},bWz=_.n(Object.entries(q7I)),ZWd=bWz.next();!ZWd.done;ZWd=bWz.next()){var dtC=_.n(ZWd.value),s$2=dtC.next().value,lQ8=dtC.next().value,M2d=s$2,qsT=lQ8;qsT&&(laI[qsT]=M2d)};var Qqi=function(k,E){k=k===void 0?{}:k;switch(E.type){case "ENTITY_LOADED":return E.payload.reduce(function(R,V){var N,h=(N=V.options)==null?void 0:N.persistenceOption;if(h&&h!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&h!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return R;if(!V.entityKey)return _.bM(Error("Hf")),R;if(V.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!V.payload)return V=new _.LC("REPLACE entity mutation is missing a payload",{entityKey:V.entityKey}),_.bM(V),R;var J=(0,_.fO.getAnyKey)(V.payload);
return G7h(R,J,V.entityKey,V.payload[J])}if(V.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{V=V.entityKey;try{var m=_.Ov(V).entityType;J=G7h(R,m,V);break a}catch(w){if(w instanceof Error){V=new _.LC("Failed to deserialize entity key",{entityKey:V,originalMessage:w.message});_.bM(V);J=R;break a}throw w;}J=void 0}return J}if(V.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!V.payload)return V=new _.LC("UPDATE entity mutation is missing a payload",{entityKey:V.entityKey}),_.bM(V),R;J=(0,_.fO.getAnyKey)(V.payload);
var a,T;return CfR(R,J,V.entityKey,V.payload[J],(a=V.fieldMask)==null?void 0:(T=a.mergeOptions)==null?void 0:T.repeatedFieldsMergeOption)}return R},k);
case "REPLACE_ENTITY":var S=E.payload;return G7h(k,S.entityType,S.key,S.entityPayload);case "REPLACE_ENTITIES":return Object.keys(E.payload).reduce(function(R,V){var N=E.payload[V];return Object.keys(N).reduce(function(h,J){return G7h(h,V,J,N[J])},R)},k);
case "UPDATE_ENTITY":return S=E.payload,CfR(k,S.entityType,S.key,S.entityPayload,S.mergeOption);default:return k}};var kMi;var zHC=!1,Kw,pw,A1,r_,uf,Q$2=function(k){_.r7.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!zHC){var E,S=new Uint8Array(256),R=new Uint8Array(256);var V=1;for(E=0;E<256;E++)S[V]=E,R[E]=V,V^=V<<1^(V>>7&&283);Kw=new Uint8Array(256);pw=Si(256);A1=Si(256);r_=Si(256);uf=Si(256);for(var N=0;N<256;N++){V=N?R[255^S[N]]:0;V^=V<<1^V<<2^V<<3^V<<4;V=V&255^V>>>8^99;Kw[N]=V;E=V<<1^(V>>7&&283);var h=E^V;pw[N]=E<<24|V<<16|V<<8|h;A1[N]=h<<24|pw[N]>>>8;r_[N]=V<<24|A1[N]>>>
8;uf[N]=V<<24|r_[N]>>>8}zHC=!0}V=Si(44);for(S=0;S<4;S++)V[S]=k[4*S]<<24|k[4*S+1]<<16|k[4*S+2]<<8|k[4*S+3];for(R=1;S<44;S++)k=V[S-1],S%4||(k=(Kw[k>>16&255]^R)<<24|Kw[k>>8&255]<<16|Kw[k&255]<<8|Kw[k>>>24],R=R<<1^(R>>7&&283)),V[S]=V[S-4]^k;this.key=V};
_.y(Q$2,_.r7);
Q$2.prototype.encrypt=function(k){var E=k.length;k=new Uint8Array(k.buffer.slice(k.byteOffset,k.byteOffset+E));for(var S=this.cipherBlock,R=0;R<E&&this.blockOffset<16;)k[R++]^=S[this.blockOffset++];for(var V=E-(E-R)%16;R<V;)OWj(this),k[R++]^=S[0],k[R++]^=S[1],k[R++]^=S[2],k[R++]^=S[3],k[R++]^=S[4],k[R++]^=S[5],k[R++]^=S[6],k[R++]^=S[7],k[R++]^=S[8],k[R++]^=S[9],k[R++]^=S[10],k[R++]^=S[11],k[R++]^=S[12],k[R++]^=S[13],k[R++]^=S[14],k[R++]^=S[15];if(R<E)for(OWj(this),this.blockOffset=0;R<E;)k[R++]^=
S[this.blockOffset++];return k};
var OWj=function(k){for(var E=k.key,S=k.counter[0]^E[0],R=k.counter[1]^E[1],V=k.counter[2]^E[2],N=k.counter[3]^E[3],h=3;h>=0&&!(k.counter[h]=-~k.counter[h]);h--);for(var J,m,a=4;a<40;)h=pw[S>>>24]^A1[R>>16&255]^r_[V>>8&255]^uf[N&255]^E[a++],J=pw[R>>>24]^A1[V>>16&255]^r_[N>>8&255]^uf[S&255]^E[a++],m=pw[V>>>24]^A1[N>>16&255]^r_[S>>8&255]^uf[R&255]^E[a++],N=pw[N>>>24]^A1[S>>16&255]^r_[R>>8&255]^uf[V&255]^E[a++],S=h,R=J,V=m;k=k.cipherBlock;h=E[40];k[0]=Kw[S>>>24]^h>>>24;k[1]=Kw[R>>16&255]^h>>16&255;k[2]=
Kw[V>>8&255]^h>>8&255;k[3]=Kw[N&255]^h&255;h=E[41];k[4]=Kw[R>>>24]^h>>>24;k[5]=Kw[V>>16&255]^h>>16&255;k[6]=Kw[N>>8&255]^h>>8&255;k[7]=Kw[S&255]^h&255;h=E[42];k[8]=Kw[V>>>24]^h>>>24;k[9]=Kw[N>>16&255]^h>>16&255;k[10]=Kw[S>>8&255]^h>>8&255;k[11]=Kw[R&255]^h&255;h=E[43];k[12]=Kw[N>>>24]^h>>>24;k[13]=Kw[S>>16&255]^h>>16&255;k[14]=Kw[R>>8&255]^h>>8&255;k[15]=Kw[V&255]^h&255};var G1d=!1;(function(){var k=function(R){return new Uint8Array(R)},E=function(R){for(var V=new Uint8Array(R.length),N=0;N<R.length;N++)V[N]=R[N];
return V},S=new Uint8Array([1]);
return S.length===1&&S[0]===1?k:E})();
var xo;var E9Y=function(k){a:{if(!G1d&&!iX){if(xo){var E=xo;break a}xo=(E=window.crypto)==null?void 0:E.subtle;var S,R,V;if(((S=xo)==null?0:S.importKey)&&((R=xo)==null?0:R.sign)&&((V=xo)==null?0:V.encrypt)){E=xo;break a}xo=void 0}E=void 0}E&&(this.nativeEncryptor=new C94(k,E));this.encryptorPolyfill=new kOp(k)};
E9Y.prototype.encrypt=function(k,E){var S=this,R;return _.c(function(V){switch(V.nextAddress){case 1:if(!S.nativeEncryptor){V.jumpTo(2);break}_.F5(V,3);return V.yield(S.nativeEncryptor.encrypt(k,E),5);case 5:return V.return(V.yieldResult);case 3:R=_.UY(V),_.dg(R),G1d=!0,S.nativeEncryptor=void 0;case 2:return V.return(S.encryptorPolyfill.encrypt(k,E))}})};
E9Y.prototype.decrypt=function(k,E){return this.encrypt(k,E)};
var C94=function(k,E){this.JSC$12839_aesKey=k;this.subtleCrypto=E};
C94.prototype.encrypt=function(k,E){var S=this,R;return _.c(function(V){if(V.nextAddress==1)return _.F5(V,2),V.yield(SO2(S,k,E),4);if(V.nextAddress!=2)return V.return(V.yieldResult);R=_.UY(V);_.dg(R);G1d=!0;throw R;})};
var SO2=function(k,E,S){var R,V;return _.c(function(N){switch(N.nextAddress){case 1:if(k.cryptoKey){N.jumpTo(2);break}return N.yield(k.subtleCrypto.importKey("raw",k.JSC$12839_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:k.cryptoKey=N.yieldResult;case 2:return R={name:"AES-CTR",counter:S,length:128},N.yield(k.subtleCrypto.encrypt(R,k.cryptoKey,E),4);case 4:return V=N.yieldResult,N.return(new Uint8Array(V))}})},kOp=function(k){this.JSC$12842_aesKey=k};
kOp.prototype.encrypt=function(k,E){this.encryptor||(this.encryptor=new Q$2(this.JSC$12842_aesKey));for(var S=this.encryptor,R=0;R<4;R++)S.counter[R]=E[R*4]<<24|E[R*4+1]<<16|E[R*4+2]<<8|E[R*4+3];S.blockOffset=16;return this.encryptor.encrypt(k)};
kOp.prototype.decrypt=function(k,E){return this.encrypt(k,E)};var RJC={},RVI=mq("yt-idb-pref-storage",{objectStores:(RJC.prefs={addedAtVersion:1},RJC),shared:!1,upgrade:function(k,E){E(1)&&OQ(Q6(k,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.Lw=function(k){this.token=k};
_.Lw.getInstance=function(){return _.c(function(k){return k.return(new Promise(function(E){_.cV().then(function(S){S?(_.Lw.instance||(_.Lw.instance=new _.Lw(S)),E(_.Lw.instance)):E(void 0)})}))})};
_.Lw.prototype.get=function(k){var E=this,S,R,V;return _.c(function(N){if(N.nextAddress==1)return N.yield(VMC(E.token),2);if(N.nextAddress!=3)return S=N.yieldResult,N.yield(S.get("prefs",k),3);R=N.yieldResult;if(!R)return N.return();V=(0,_.ev)();return R.expirationTimestampMs<=V?N.return():N.return(R.value)})};
_.Lw.prototype.set=function(k,E,S){S=S===void 0?31536E3:S;var R=this,V,N,h;return _.c(function(J){if(J.nextAddress==1)return V=(0,_.ev)(),N={key:k,value:E,expirationTimestampMs:V+S*1E3},J.yield(VMC(R.token),2);h=J.yieldResult;return J.yield(h.put("prefs",N),0)})};
_.Lw.prototype.remove=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(VMC(E.token),2);S=R.yieldResult;return R.yield(S.delete("prefs",k),0)})};var jK={},VpC=(jK.INVALID_ENCODER_VERSION="Invalid encoder version",jK.KEY_CREATION_FAILED="Failed to create encoder key",jK.UNKNOWN_DECODE_ERROR="Failed to decode PES data",jK.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",jK.WRONG_DATA_TYPE="Encoder cannot process the data type",jK),R7=function(k,E){E=E===void 0?{}:E;_.LC.call(this,VpC[k],Object.assign({},{name:"PESEncoderError",type:k},E));this.type=k;this.level="WARNING";Object.setPrototypeOf(this,R7.prototype)};
_.y(R7,_.LC);var Da=function(){};
Da.prototype.encode=function(k,E){try{return this.encodeImpl(k,E)}catch(S){iMC(S,I2e)}};
Da.prototype.decode=function(k,E){try{return this.decodeImpl(k,E)}catch(S){iMC(S,nNb)}};
var NN5=function(k,E,S){var R;return _.c(function(V){if(V.nextAddress==1)return _.F5(V,2),V.yield(k.decodeAsyncImpl(E,S),4);if(V.nextAddress!=2)return V.return(V.yieldResult);R=_.UY(V);iMC(R,nNb);_.KR(V)})};
Da.prototype.decodeAsyncImpl=function(k,E){return Promise.resolve(this.decodeImpl(k,E))};var $o=function(k,E){this.aesEncryptor=k;this.aesEncryptorAsync=E};
_.y($o,Da);$o.prototype.encodeImpl=function(k,E){E=hV1(E);k=(new TextEncoder).encode(JSON.stringify(k));return this.aesEncryptor.encrypt(k,E)};
$o.prototype.decodeImpl=function(k,E){if(!(k instanceof Uint8Array))throw Njl(1);var S=new TextDecoder;E=hV1(E);k=this.aesEncryptor.decrypt(k,E);return JSON.parse(S.decode(k))};
$o.prototype.decodeAsyncImpl=function(k,E){var S=this,R,V,N;return _.c(function(h){if(h.nextAddress==1){if(!(k instanceof Uint8Array))throw Njl(1);R=new TextDecoder;V=hV1(E);return h.yield(S.aesEncryptorAsync.decrypt(k,V),2)}N=h.yieldResult;return h.return(JSON.parse(R.decode(N)))})};var Jst={accountLinkStatusEntity:M85,booleanEntity:Wfd,buttonEntity:tE4,captionTrack:COd,channelHandle:QK4,chipEntity:sQA,commerceAcquisitionClientPayloadEntity:v8z,commerceCartListEntity:byz,compositeSourceEntity:a22,multiviewStagingEntity:tM8,contextNoteFeedEntityPayload:hr2,contextNoteUserRatingEntityPayload:JHY,continuationTokenEntity:A1C,downloadQualityPickerEntity:Y7p,downloadsPageRefreshTokenEntity:F2z,downloadsPageViewConfigurationEntity:vod,downloadStatusEntity:W25,dismissState:lV5,sfvAudioItemCurrentlyPlayingEntity:ArY,
emojiFountainDataEntity:mY5,emojiCustomizationSetEntity:cZd,fakeChannel:y$d,fakePlaylist:oDY,fakePlaylistEntryCollection:X7d,fakeVideo:UlC,fakeVideoDescription:HSC,featuredProductsEntity:nN2,flowStateEntity:ZSY,iconBadgeEntity:Zyd,interstitialInteractionStateEntity:hKY,likeButtonAnimationEntity:bwC,liveChatPollStateEntity:wFz,dataFreshnessEntity:JZY,liveViewerLeaderboardChatEntryPointStateEntity:e1C,liveViewerLeaderboardPointsEntity:aY4,liveReactionsDataEntity:ebY,logoEntity:njC,macroMarkerEntity:ZwY,
mainDownloadsLibraryEntity:y18,mainDownloadsListEntity:oo4,mainPlaylistDownloadStateEntity:go8,mainPlaylistEntity:r1Y,mainPlaylistVideoEntity:uE5,mainVideoDownloadStateEntity:UF8,mainVideoEntity:DF4,markersEngagementPanelSyncEntity:dFd,markersVisibilityOverrideEntity:sqT,musicAlbumReleaseDetail:WcY,musicAlbumReleaseDownloadMetadataEntity:TjC,musicAlbumRelease:YEd,musicAlbumReleaseUserDetail:FcY,musicArtistDetail:oNp,musicArtist:ys4,musicArtistUserDetail:XIz,musicDownloadsLibraryEntity:wIC,musicLibraryEdit:gNY,
musicLibraryStatusEntity:U5z,musicPlaylist:HMj,musicPlaylistDownloadMetadataEntity:POj,musicShare:pI2,musicTrackDetail:rs5,musicTrackDownloadMetadataEntity:BjT,musicTrack:AsT,musicTrackUserDetail:uQ8,offlineOrchestrationActionWrapperEntity:ki5,offlineVideoPolicy:EBC,offlineVideoStreams:SN4,offlineabilityEntity:HwY,orchestrationWebSamplingEntity:K2T,pageHeaderEntity:SVC,pdpStateEntity:dYA,pinnedProductEntity:iM4,playbackData:R1z,playerStateEntity:lad,quantityIncrementerEntity:sxY,refresh:V6Y,saveToPlaylistListEntity:CLp,
selectedChipIndexEntityPayload:MKd,settingEntity:og2,stringEntity:FfC,suggestedFeedbackChipStateEntity:q7Y,transfer:NA2,trendingOfferEntity:hVC,videoDownloadContextEntity:IYC,videoOverviewAsyncDataEntity:a82,videoPlaybackPositionEntity:PRY,votingEntity:IoY,ytMainChannelEntity:$F2,youchatPendingResponseEntity:zfC,ytMainDownloadedVideoEntity:pqj,ytMainVideoEntity:faC};var IjC,ibT,ig,POl,Bjh,cu4,eJ8,mWd,Ju4;IjC=function(k,E){this.JSC$12861_wrapped=k;this.JSC$12861_encoderRegistry=E;this.changedKeys={}};
ibT=function(k,E){return n95(k.JSC$12861_encoderRegistry,E.version).decode(E.data,E.key)};
_.hJj=function(k,E,S){return k.JSC$12861_wrapped.objectStore("EntityStore").get(E).then(function(R){if(R){if(S&&R.entityType!==S)throw Error("If");return ibT(k,R)}})};
ig=function(k,E,S){return S?(S=S.map(function(R){return _.hJj(k,R,E)}),Og.all(S)):k.JSC$12861_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(E)).then(function(R){return R.map(function(V){return ibT(k,V)})})};
_.wIR=function(k,E,S){var R=zfh(E),V=n95(k.JSC$12861_encoderRegistry,1),N=Object.assign({},E);return k.JSC$12861_wrapped.objectStore("EntityStore").get(R).then(function(h){if(h){if(h.entityType!==S)throw Error("If");N.entityMetadata||(h=ibT(k,h),N.entityMetadata=h.entityMetadata)}}).then(function(){var h={key:R,
entityType:S,data:V.encode(N,R),version:1};return Og.all([k.JSC$12861_wrapped.objectStore("EntityStore").put(h),Ju4(k,N,S)])}).then(function(){cu4(k,R,S);
return R})};
POl=function(k,E){var S=_.Ov(E).entityType;return Og.all([k.JSC$12861_wrapped.objectStore("EntityStore").delete(E),mWd(k,E)]).then(function(){cu4(k,E,S)})};
Bjh=function(k,E,S,R){var V=n95(k.JSC$12861_encoderRegistry,1);return _.hJj(k,E,R).then(function(N){if(N){N=L2i(N,S);var h={key:E,entityType:R,data:V.encode(N,E),version:1};return Og.all([k.JSC$12861_wrapped.objectStore("EntityStore").put(h),Ju4(k,N,R)])}}).then(function(){cu4(k,E,R);
return E})};
cu4=function(k,E,S){var R=k.changedKeys[S];R||(R=new Set,k.changedKeys[S]=R);R.add(E)};
eJ8=function(k,E,S){var R=zfh(E);S=cs1(S);if(!S)return Og.resolve([]);S=new S(E);k=k.JSC$12861_wrapped.objectStore("EntityAssociationStore");E=[];S=_.n(S.getAssociations());for(var V=S.next();!V.done;V=S.next())E.push(k.put({parentEntityKey:R,childEntityKey:V.value}));return Og.all(E).then(function(N){return N.map(function(h){return h[1]})})};
mWd=function(k,E){return k.JSC$12861_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(E))};
Ju4=function(k,E,S){var R=zfh(E);return mWd(k,R).then(function(){return eJ8(k,E,S)})};var ajA=function(){};
_.y(ajA,Da);ajA.prototype.encodeImpl=function(k){return k};
ajA.prototype.decodeImpl=function(k){if(k instanceof Uint8Array)throw Njl(0);return k};var a2b=function(){this.cacheMap={};this.cacheMap[0]=new ajA;if(!_.Y("aes_pes_encoder_killswitch")){var k=this.cacheMap;try{var E=_.uJ();var S=hV1(E);var R=new $o(new kOp(S),new E9Y(S))}catch(V){throw k=V instanceof Error?new R7("KEY_CREATION_FAILED",{originalMessage:V.message}):new R7("KEY_CREATION_FAILED"),_.bM(k),k;}k[1]=R}},n95=function(k,E){E=E===void 0?0:E;
k=k.cacheMap[E];if(!k)throw E=new R7("INVALID_ENCODER_VERSION",{encoderVersion:E}),_.bM(E),E;return k};var NI=function(k,E){_.r7.call(this);this.token=k;this.JSC$12875_encoderRegistry=E;this.observers=[];k=new _.Vt.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.uJ());k.onmessage=this.JSC$12875_handleMessage.bind(this);this.channel=k};
_.y(NI,_.r7);_.nr=function(k,E,S){var R,V,N,h;return _.c(function(J){if(J.nextAddress==1)return J.yield(SEj(k.token),2);if(J.nextAddress!=3)return R=J.yieldResult,J.yield(_.NG(R,["EntityStore","EntityAssociationStore"],E,function(m){V=new IjC(m,k.JSC$12875_encoderRegistry);return S(V)}),3);
N=J.yieldResult;V&&(h=V.changedKeys,Object.keys(h).length>0&&(k.channel.postMessage(h),tpY(k,h)));return J.return(N)})};
NI.prototype.observe=function(k){var E=this;this.observers.push(k);return function(){var S=E.observers.indexOf(k);S>=0&&E.observers.splice(S,1)}};
var NDI=function(k){var E;return _.c(function(S){if(S.nextAddress==1)return S.yield(_.nr(k,{mode:"readonly",enableRetries:!0},function(R){return R.JSC$12861_wrapped.objectStore("EntityStore").getAll()}),2);
E=S.yieldResult;return S.return(Promise.all(E.filter(function(R){return!!R}).map(function(R){var V,N;
return _.c(function(h){if(h.nextAddress==1){V=R.key;N=R.entityType;var J=h.yield;var m=NN5(n95(k.JSC$12875_encoderRegistry,R.version),R.data,R.key);return J.call(h,m,2)}return h.return({key:V,entityType:N,data:h.yieldResult})})})))})};
NI.prototype.JSC$12875_handleMessage=function(k){tpY(this,k.data)};
var tpY=function(k,E){k=_.n(k.observers);for(var S=k.next();!S.done;S=k.next())S=S.value,S(E)};
NI.prototype.disposeInternal=function(){this.channel.close()};
var m5t;var fw,wmY,$51;fw={};_.TNC=(fw.mainVideoEntity="mainVideoEntityActionMetadata",fw.mainPlaylistEntity="mainPlaylistEntityActionMetadata",fw.musicTrack="musicTrackEntityActionMetadata",fw.musicPlaylist="musicPlaylistEntityActionMetadata",fw);wmY=new _.QE("DOWNLOADS_ENTITY_TYPE_MAP");_.TJ=_.kn("","downloadsPageViewConfigurationEntity");$51=_.kn("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.PL1=_.kn("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.kn("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.kn("SMART_DOWNLOADS_ENABLED","settingEntity");_.kn("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var oNA=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var Ash=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.PyC={isLeaderTab:!0};var IYh={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var vq=window,Kr=vq.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",LMj=vq.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||pr,bXl=vq.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||kz,LjT=vq.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||xB8,r02=vq.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||MQ5,SuC=vq.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||C_C;var x8t;Lr({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 EgI=ZXm(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(k){return k}}}),pLt=ZXm(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(k){return k}}}),MDt=new Map;var Rzj=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Gmt;var BNY=function(k){return _.zX({type:"SET_EPHEMERAL_ACTION",payload:k})};_.YO4={ephemeralAction:null};var WAY=function(k){return _.zX({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:k})};_.FA5={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var H6l={sharedUi:function(k,E){k=k===void 0?_.FA5:k;switch(E.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},k,{animatedThumbnailEnabled:E.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},k,{inlinePreviewEnabled:E.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},k,{currentPageType:E.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},k,{currentPageSubType:E.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
k,{persistentPanelVisible:E.payload});default:return k}},
a11y:pf({ephemeralAction:function(k,E){k=k===void 0?_.YO4.ephemeralAction:k;switch(E.type){case "SET_EPHEMERAL_ACTION":return E.payload;default:return k}}}),
entities:Ow1};_.hzt={playlistId:"",inviteLinkURL:""};_.yuC={continuationCommand:{}};var YzA=pf({continuationCommand:function(k,E){k=k===void 0?_.yuC.continuationCommand:k;switch(E.type){case "SET_CONTINUATION_COMMAND":return E.payload.continuationCommand;default:return k}}});_.cUI={currentFormId:"",commandsMap:{}};var WwR=pf({isLeaderTab:function(k,E){k=k===void 0?_.PyC.isLeaderTab:k;switch(E.type){case "SET_IS_LEADER_TAB":var S,R;return(R=E==null?void 0:(S=E.payload)==null?void 0:S.isLeaderTab)!=null?R:k;default:return k}}});var Xmj;_.o9d=function(k){return _.zX({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:k}})};
Xmj=function(k){return _.zX({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:k}})};_.bf={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var U1A=pf({isDesktopSmallWidth:function(k,E){k=k===void 0?_.bf.isDesktopSmallWidth:k;switch(E.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return E.payload.isDesktopSmallWidth;default:return k}},
isShortsActive:function(k,E){k=k===void 0?_.bf.isShortsActive:k;switch(E.type){case "SET_IS_SHORTS_ACTIVE":return E.payload.isShortsActive;default:return k}},
isWatchWhileMode:function(k,E){k=k===void 0?_.bf.isWatchWhileMode:k;switch(E.type){case "SET_IS_WATCH_WHILE_MODE":return E.payload.isWatchWhileMode;default:return k}},
playerState:function(k,E){k=k===void 0?_.bf.playerState:k;switch(E.type){case "SET_PLAYER_STATE":return E.payload.playerState;default:return k}},
isFullscreen:function(k,E){k=k===void 0?_.bf.isFullscreen:k;switch(E.type){case "SET_IS_FULLSCREEN":return E.payload.isFullscreen;default:return k}},
isSmallScreenSqueezeback:function(k,E){k=k===void 0?_.bf.isSmallScreenSqueezeback:k;switch(E.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return E.payload.isSmallScreenSqueezeback;default:return k}},
isShortsPipActive:function(k,E){k=k===void 0?_.bf.isShortsPipActive:k;switch(E.type){case "SET_IS_SHORTS_PIP_ACTIVE":return E.payload.isShortsPipActive;default:return k}},
isPlaybackStarted:function(k,E){k=k===void 0?_.bf.isPlaybackStarted:k;switch(E.type){case "SET_IS_PLAYBACK_STARTED":return E.payload.isPlaybackStarted;default:return k}}});_.ezj={currentMode:"canvas-hidden"};var p3i=function(){return function(k){return function(E){var S=k(E);_.qe(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[E],!0);return S}}};var g9C,jze;g9C=new _.kl;_.QQ=new _.QE("WATCH_PLAYER_PROMISE_TOKEN");_.UW8=new _.kl;_.Hbd=new _.QE("SHORTS_PLAYER_PROMISE_TOKEN");jze=new _.QE("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var AUb=function(){return function(k){return function(E){E.type==="ENTITY_LOADED"&&_.en().resolve(_.QQ).then(function(S){var R;(R=S.dispatchReduxAction)==null||R.call(S,E)});
return k(E)}}};_.KAp={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Fwh=pf({additionalContext:function(k,E){k=k===void 0?_.KAp.additionalContext:k;switch(E.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var S;return(S=E.payload)!=null?S:"";default:return k}},
impersonatedChannelUrl:function(k,E){k=k===void 0?_.KAp.impersonatedChannelUrl:k;switch(E.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var S;return(S=E.payload)!=null?S:"";default:return k}},
selectedVideoIds:function(k,E){k=k===void 0?_.KAp.selectedVideoIds:k;switch(E.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var S={};return Object.assign({},k,(S[E.payload]=!0,S));case "VIDEO_UNSELECTED":return E=E.payload,k=Object.assign({},k),delete k[E],k;default:return k}}});_.pm8={parentClickTrackingParams:""};var yUI=pf({parentClickTrackingParams:function(k,E){k=k===void 0?_.pm8.parentClickTrackingParams:k;switch(E.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return E.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return k}}});var Aud=function(k){return _.zX({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:k})};_.rup={stepStates:{}};var ogb=pf({stepStates:function(k,E){k=k===void 0?_.rup.stepStates:k;switch(E.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var S=k,R=E.payload,V,N,h;k={};E={selectionStates:Object.assign({},(h=(V=S[R.stepId])==null?void 0:V.selectionStates)!=null?h:{},(k[R.token]={isSelected:R.isSelected},k)),userQuery:(N=S[R.stepId])==null?void 0:N.userQuery};V={};return Object.assign({},S,(V[R.stepId]=E,V));case "TALK_TO_RECS_UPDATE_USER_QUERY":return V=k,N=E.payload,
h={selectionStates:Object.assign({},(R=(S=V[N.stepId])==null?void 0:S.selectionStates)!=null?R:{}),userQuery:{userQuery:N.userQuery,token:N.userQueryToken}},S={},Object.assign({},V,(S[N.stepId]=h,S));default:return k}}});var u_j,xWp,jFA;u_j=function(k){return _.zX({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:k})};
xWp=function(k){return _.zX({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:k})};
_.aO=function(k){return _.zX({type:"SET_CURRENT_PAGE_TYPE",payload:k})};
_.LAz=function(k){return _.zX({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:k})};
jFA=function(k){return _.zX({type:"SET_CHIP_BAR_IS_STICKY",payload:k})};_.tfA={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"};_.DWY=function(k){return _.zX({type:"SET_PLAYER_STATE",payload:{playerState:k}})};_.Za={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:w3A(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var X3I=pf({isTheaterMode:function(k,E){k=k===void 0?w3A():k;switch(E.type){case "SET_IS_THEATER_MODE":return E.payload.isTheaterMode;default:return k}},
isWatchActive:function(k,E){k=k===void 0?_.Za.isWatchActive:k;switch(E.type){case "SET_IS_WATCH_ACTIVE":return E.payload.isWatchActive;default:return k}},
isLearningJourneyActive:function(k,E){k=k===void 0?_.Za.isLearningJourneyActive:k;switch(E.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return E.payload.isLearningJourneyActive;default:return k}},
isWatchFullscreen:function(k,E){k=k===void 0?_.Za.isWatchFullscreen:k;switch(E.type){case "SET_IS_WATCH_FULLSCREEN":return E.payload.isWatchFullscreen;default:return k}},
isWatchNarrowWidth:function(k,E){k=k===void 0?_.Za.isWatchNarrowWidth:k;switch(E.type){case "SET_IS_WATCH_NARROW_WIDTH":return E.payload.isWatchNarrowWidth;default:return k}},
isSwatcherooActive:function(k,E){k=k===void 0?_.Za.isSwatcherooActive:k;switch(E.type){case "SET_IS_SWATCHEROO_ACTIVE":return E.payload.isSwatcherooActive;default:return k}},
isWatchRetroMode:function(k,E){k=k===void 0?_.Za.isWatchRetroMode:k;switch(E.type){case "SET_IS_WATCH_RETRO_MODE":return E.payload.isWatchRetroMode;default:return k}},
isLiveChatCollapsed:function(k,E){k=k===void 0?_.Za.isLiveChatCollapsed:k;switch(E.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return E.payload.isLiveChatCollapsed;default:return k}},
openEngagementPanels:function(k,E){k=k===void 0?_.Za.openEngagementPanels:k;var S=[].concat(_.$e(k));switch(E.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return S.push(E.payload.panelToAdd),S;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return S.splice(S.indexOf(E.payload.panelToRemove),1),S;default:return k}},
playerState:function(k,E){k=k===void 0?_.Za.playerState:k;switch(E.type){case "SET_PLAYER_STATE":return E.payload.playerState;default:return k}},
watchScrollTop:function(k,E){k=k===void 0?_.Za.watchScrollTop:k;switch(E.type){case "SET_WATCH_SCROLL_TOP":return E.payload.watchScrollTop;default:return k}},
watchWindowSize:function(k,E){k=k===void 0?_.Za.watchWindowSize:k;switch(E.type){case "SET_WATCH_WINDOW_SIZE":return E.payload.watchWindowSize;default:return k}}});_.$WC={surveyFeedbackData:{feedbackTokens:[]}};var ggR=pf({surveyFeedbackData:function(k,E){k=k===void 0?_.$WC.surveyFeedbackData:k;switch(E.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return E.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},k,E.payload);default:return k}}});_.P6I={};var ukm=void 0;_.Y("web_enable_redux_store_on_demand")||(ukm=rUC());var fj8=function(k,E,S){var R=this;this.listId=k;this.JSC$13019_updateCallback=E;this.isOfflineVideoCallback=S;_.vo().subscribe(function(){R.handleUpdate()})};
fj8.prototype.getPlaylistData=function(){var k=_.vo().getState().entities;if(this.listId&&this.listId!=="PPSV"){var E=zVA(k,this.listId,!0),S=_.kn(this.listId,"mainPlaylistEntity"),R,V;k=k==null?void 0:(R=k.mainPlaylistEntity)==null?void 0:(V=R[S])==null?void 0:V.title;return x1h(E,k,this.listId)}E=_.rsj(oB1(k));k=_.rsj(_.w8(k));k=E.concat(k);return x1h(k)};
fj8.prototype.getPlaylistId=function(){return this.listId};
fj8.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13019_updateCallback(this.listId,this.getPlaylistData(),{})};var d_=function(k,E,S,R){R=R===void 0?[]:R;this.JSC$13022_playlistNetworkManager=k;this.listId=E;this.JSC$13022_updateCallback=S;this.videoIds=R;this.pendingUpdates=[];this.currentIndex=0};
d_.prototype.JSC$13022_setCurrentIndex=function(k){this.currentIndex=k};
d_.prototype.setListId=function(k){this.listId=k};
var v92=function(k,E){k.currentCreateRequest&&k.currentCreateRequest.cancel(E);k.currentUpdateRequest&&k.currentUpdateRequest.cancel(E);k.currentRefreshRequest&&k.currentRefreshRequest.cancel(E)};
d_.prototype.delete=function(){v92(this,"PROXY DELETED")};
d_.prototype.addVideos=function(k,E,S){var R=this;S!==void 0?this.videoIds.splice.apply(this.videoIds,[S,0].concat(_.$e(k))):this.videoIds.push.apply(this.videoIds,_.$e(k));this.listId||this.currentCreateRequest?(k.forEach(function(V,N){V={addedVideoId:V,action:"ACTION_ADD_VIDEO"};S&&(V.addedVideoPosition=S+N);R.pendingUpdates.push(V)}),s7(this)):bbz(this,E.onCreateListCommand)};
var Zb8=function(k,E,S,R,V){$Al(k.videoIds,E,S);E>k.currentIndex&&S<=k.currentIndex?k.JSC$13022_setCurrentIndex(k.currentIndex+1):E===k.currentIndex?k.JSC$13022_setCurrentIndex(S):E<k.currentIndex&&S>=k.currentIndex&&k.JSC$13022_setCurrentIndex(k.currentIndex-1);k.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:R,movedSetVideoIdPredecessor:V});s7(k)},bbz=function(k,E){v92(k,"OBSOLETE");
k.currentCreateRequest=dWA(k.JSC$13022_playlistNetworkManager,E,k.videoIds);_.Ws(k.currentCreateRequest,function(){k.currentCreateRequest=void 0}).then(function(S){k.setListId(S.playlistId);
k.pendingUpdates.length>0?s7(k):sFA(k)})},s7=function(k){if(k.pendingUpdates.length!==0&&(k.currentRefreshRequest&&k.currentRefreshRequest.cancel("OBSOLETE"),!k.currentUpdateRequest&&!k.currentCreateRequest)){var E=k.pendingUpdates.splice(0,k.pendingUpdates.length);
k.currentUpdateRequest=k.JSC$13022_playlistNetworkManager.updatePlaylist(k.listId,E);_.Ws(k.currentUpdateRequest,function(){k.currentUpdateRequest=void 0}).then(function(){k.pendingUpdates.length>0?s7(k):sFA(k)}).thenCatch(function(){k.pendingUpdates.unshift.apply(k.pendingUpdates,_.$e(E))})}},sFA=function(k){k.currentRefreshRequest=_.lj8(k.JSC$13022_playlistNetworkManager,k.listId,k.currentIndex,k.videoIds[k.currentIndex]);
_.Ws(k.currentRefreshRequest,function(){k.currentRefreshRequest=void 0}).then(function(E){k.JSC$13022_updateCallback(E.playlistId,E.playlistPanelRenderer,E.autoplayRenderer)})};
d_.prototype.size=function(){return this.videoIds.length};var MpC=function(k,E,S,R){R=R===void 0?[]:R;d_.call(this,k,E,S,R);this.JSC$13022_playlistNetworkManager=k;this.listId=E;this.JSC$13022_updateCallback=S;this.videoIds=R};
_.y(MpC,d_);_.lf=function(k,E,S,R,V,N,h){V=V===void 0?[]:V;h=h===void 0?EF:h;d_.call(this,k,E,S,V);this.JSC$13022_playlistNetworkManager=k;this.listId=E;this.JSC$13022_updateCallback=S;this.onAuthChange=R;this.videoIds=V;this.storage=N;this.cookieReader=h;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Ch(_.ZJ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.y(_.lf,d_);_.I=_.lf.prototype;_.I.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Ch(_.ZJ,this.checkLoggedInStatusChange.bind(this),1E3)};
_.I.JSC$13022_setCurrentIndex=function(k){d_.prototype.JSC$13022_setCurrentIndex.call(this,k);this.store()};
_.I.delete=function(){_.ZJ.cancelJob(this.queueSapisIdJob);d_.prototype.delete.call(this)};
_.I.setListId=function(k){d_.prototype.setListId.call(this,k);this.store()};
_.I.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var qOp=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],zJY=["playerResponse","videoDetails"],QF5=["response","currentVideoEndpoint","watchEndpoint","videoId"],ObC=["response","currentVideoEndpoint","watchEndpoint","playlistId"],GOY=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Cyz=["response","contents","twoColumnWatchNextResults","playlist","playlist"],kyT=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
EGC=["response","contents","twoColumnWatchNextResults"];var MF={},fVi=(MF.WEB_UNPLUGGED="^unplugged/",MF.WEB_UNPLUGGED_ONBOARDING="^unplugged/",MF.WEB_UNPLUGGED_OPS="^unplugged/",MF.WEB_UNPLUGGED_PUBLIC="^unplugged/",MF.WEB_CREATOR="^creator/",MF.WEB_KIDS="^kids/",MF.WEB_EXPERIMENTS="^experiments/",MF.WEB_MUSIC="^music/",MF.WEB_REMIX="^music/",MF.WEB_MUSIC_EMBEDDED_PLAYER="^music/",MF.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",MF);var o_m,dWA;o_m=function(k,E){this.networkManager=k;this.innertubeTransportService=E};
dWA=function(k,E,S){if(!_.W(E,_.Mz))return _.BM(Error("Mf"));_.W(E,_.Mz).videoIds=S;S={create_playlist_title:_.Vi("QUEUE",void 0,"Queue")};return D1l(_.xv(k.innertubeTransportService,E,S),Lwe)};
_.lj8=function(k,E,S,R){E={videoId:R,playlistId:E,playlistIndex:S};S=_.bg(k1C);return D1l(_.qF(k.innertubeTransportService,E,S),$11)};
o_m.prototype.updatePlaylist=function(k,E){return D1l(_.xv(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:k,actions:E}}),jQI)};var Snd=function(k){this.storage=k},ROC;
Snd.prototype.store=function(k,E){E=E===void 0?0:E;if(this.storage&&k.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",k),this.storage.set("TLPQindex",String(E)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(S){}};
Snd.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
Snd.prototype.getPlaylistId=function(){if(!this.storage)return null;var k=null;try{k=this.storage.get("TLPQplaylist")}catch(E){}return k};var d1b=["navigationEndpoint","watchEndpoint","videoId"],Z6t=["nextButtonVideo","watchEndpoint","videoId"];_.yS=new _.QE("NETWORK_TOKEN");_.ZD=new _.QE("PAGE_TOKEN");_.z7=new _.QE("PLAYLIST_TOKEN");var Va4;Va4=new _.QE("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.oR=new _.QE("INNERTUBE_TRANSPORT_TOKEN");var NId,Qr,nGd,iEC,Jnd,cn2;NId=new Set(["ci","cr","carml"]);Qr=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13069_parkedJobs=new Map;this.parkedProcessors=new Map};
_.O7=function(){Qr.instance||(Qr.instance=new Qr);return Qr.instance};
Qr.prototype.onAny=function(k){return _.IpC(this,k,2)};
Qr.prototype.parkOrScheduleJob=function(k,E,S,R,V){_.G7(this,S)?_.eH().addJob(k,E,R):(V&&(k=nGd(k),iEC(this,k,E,S,V)),V=this.JSC$13069_parkedJobs.get(S),V||(this.JSC$13069_parkedJobs.set(S,[]),V=this.JSC$13069_parkedJobs.get(S)),V.push({job:k,priority:E,delay:R}))};
Qr.prototype.addListener=function(k,E,S){S&&(E=nGd(E),iEC(this,E,0,k,S));S=this.parkedProcessors.get(k);S||(this.parkedProcessors.set(k,[]),S=this.parkedProcessors.get(k));S.push(E)};
Qr.prototype.processSignal=function(k){if(!_.G7(this,k)){this.inProgressSignals.add(k);var E=this.JSC$13069_parkedJobs.get(k);if(E){E=_.n(E);for(var S=E.next();!S.done;S=E.next())S=S.value,_.eH().addJob(S.job,S.priority,S.delay);this.JSC$13069_parkedJobs.delete(k)}if(E=this.parkedProcessors.get(k)){E=_.n(E);for(S=E.next();!S.done;S=E.next())S=S.value,S();this.parkedProcessors.delete(k)}this.signals.push(k);this.inProgressSignals.delete(k)}};
_.G7=function(k,E){return NId.has(E)||_.qg("IS_HOMEPAGE_COLD")||_.qg("IS_RESULTS_PAGE_COLD")||_.qg("IS_WATCH_PAGE_COLD")?k.signals.indexOf(E)>=0:!0};
nGd=function(k){var E=!1;return function(){E||(E=!0,k())}};
iEC=function(k,E,S,R,V){if(hOj.has(R))_.eH().addJob(E,S,V);else{var N=k.compoundSignals.get(R);N&&_.eH().addJob(function(){_.G7(k,R)||(N.isTimeoutConditionSatisfied?_.eH().addJob(E,S):N.timeoutConditionObservers.push(function(){_.eH().addJob(E,S)}))},S,V)}};
_.IpC=function(k,E,S){if(E.length>1){var R=[],V=Object.create(null);E=_.n(E);for(var N=E.next();!N.done;N=E.next())N=N.value,V[N]||(R.push(N),V[N]=!0);E=R}if(E.length===1)return E[0];N=E;R="";V=S===2?"|":"&";N.sort();N=_.n(N);for(var h=N.next();!h.done;h=N.next())R+=h.value+V;if(!k.compoundSignals.get(R)){V=0;N=[];h=_.n(E);for(var J=h.next();!J.done;J=h.next())J=J.value,V++,_.G7(k,J)||N.push(J);(S=S===2)&&V>N.length||!S&&!N.length?k.signals.push(R):Jnd(k,R,S,E,N)}return R};
Jnd=function(k,E,S,R,V){var N=V.length,h=function(){S||--N===0?k.processSignal(E):cn2(k,E)};
V=_.n(V);for(var J=V.next();!J.done;J=V.next())k.addListener(J.value,h);k.compoundSignals.set(E,{signals:R,isOnAny:S,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});cn2(k,E)};
cn2=function(k,E){if(!_.G7(k,E)){var S=k.compoundSignals.get(E);if(S&&!S.isTimeoutConditionSatisfied){for(var R=!1,V=0,N=0,h=_.n(S.signals),J=h.next();!J.done;J=h.next()){var m=J.value;J=!_.G7(k,m);hOj.has(m)?R=!0:(m=k.compoundSignals.get(m))?J&&!m.isTimeoutConditionSatisfied&&(N++,S.isInitialized||m.timeoutConditionObservers.push(function(){cn2(k,E)})):J&&V++}S.isInitialized=!0;
S.isOnAny?R&&(S.isTimeoutConditionSatisfied=!0):V===0&&N===0&&(S.isTimeoutConditionSatisfied=!0);if(S.isTimeoutConditionSatisfied)for(S=_.n(S.timeoutConditionObservers),R=S.next();!R.done;R=S.next())R=R.value,R()}}};
Qr.prototype.processSignal=Qr.prototype.processSignal;Qr.prototype.parkOrScheduleJob=Qr.prototype.parkOrScheduleJob;Qr.prototype.onAny=Qr.prototype.onAny;_.J6("ytsignals.getInstance",_.O7);Qr.prototype.onAny=Qr.prototype.onAny;Qr.prototype.parkOrScheduleJob=Qr.prototype.parkOrScheduleJob;Qr.prototype.processSignal=Qr.prototype.processSignal;var hOj=new Set(["eop","eocs","dl","pcl"]);_.yb=new _.QE("MINIPLAYER_SERVICE");var Cw,mD8,eOY;Cw=function(k,E,S){var R=_.GU.getInstance();if(!ROC){var V=new ZzA;var N=void 0,h=_.Mg("ID_TOKEN");h&&V.isAvailable()&&(N=new fC(V,"yt-queue"+h));ROC=new Snd(N)}V=ROC;N=_.O7();this.JSC$13076_actionRouter=R;this.JSC$13076_pageManager=k;this.playlistManager=E;this.JSC$13076_playlistNetworkManager=S;this.storage=V;this.signals=N;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.kN=function(){if(!mD8){var k=_.en(),E=k.resolve(_.mz(_.ZD)),S=k.resolve(_.mz(_.yS)),R=k.resolve(_.mz(_.z7));k=k.resolve(_.oR);mD8=new Cw(E,R,new o_m(S,k))}return mD8};
eOY=function(k,E,S){if(S){var R;if(((R=k.responsePlaylistData)==null?void 0:R.playlistId)!==S)return}k.responsePlaylistData&&(S=QQh(E,k.responsePlaylistData),k.responsePlaylistData=(0,_.fO.unsafeClone)(k.responsePlaylistData),GF1(k.responsePlaylistData,S));S=k.temporaryItems.findIndex(function(V){return V.videoId===E});
S>-1&&k.temporaryItems.splice(S,1);_.EE(k,_.SM(k,k.response?k.response.autoplayRenderer:void 0))};
_.ap4=function(k,E){if(k.responsePlaylistData){var S=O6C(E,k.responsePlaylistData);GF1(k.responsePlaylistData,S);if(k.queueProxy){var R=k.queueProxy;S<0||(R.videoIds.splice(S,1),S<R.currentIndex&&R.JSC$13022_setCurrentIndex(R.currentIndex-1),R.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:E}),s7(R))}}_.EE(k,_.SM(k,k.response?k.response.autoplayRenderer:void 0))};
Cw.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.EE(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
Cw.prototype.setPlaylistData=function(k,E,S){this.temporaryItems=[];this.listId=k;this.responsePlaylistData=E;_.EE(this,_.SM(this,S))};
var taC=function(k){return(k==null?0:k.playlistId)?k.playlistId:"PPSV"},TI8=function(k){return k&&k.playlistId?k.playlistId==="PPSV"?!0:MM1(_.vo().getState().entities,k.playlistId):!1};
Cw.prototype.isPlayingOfflineVideo=function(){return this.response?TI8(this.response):!1};
Cw.prototype.closeMiniplayer=function(k){var E=this.queueProxy&&this.queueProxy.size()<=1,S=_.en().resolve(_.yb);if(!this.queueProxy||E)this.queueProxy&&this.clearQueue(),S.close(!0);else{S.pipController.getWindow()&&window.focus();E=this.responsePlaylistData;var R=this.temporaryItems.length+(E&&E.contents?E.contents.length:0);E=_.Vi("QUEUE_CLEARED_UNPLURALIZED")||_.Na("QUEUE_CLEARED",R);E=_.d8(E);S=_.Vi("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");R=_.Vi("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.Na("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",R);var V=_.Vi("MINIPLAYER_CLOSE",void 0,"Close"),N=_.Vi("CANCEL",void 0,"Cancel");_.Af(this.JSC$13076_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.DE(S),dialogMessages:[_.DE(R)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.DE(V),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
E]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.DE(N)}}}}}}],k)}};
_.SM=function(k,E){var S={},R=k.response;S.autoplayRenderer=E;if(!k.responsePlaylistData&&!k.temporaryItems.length)return!R||!R.hasRelatedVideoData&&_.Y("kevlar_prefetch_data_augments_network_data")||(S.playerData={rvs:R.relatedVideoArgs,endScreenRenderer:R.endScreenRenderer}),S;S.playerData={};if(k.index===void 0)return _.bM(Error("Of")),S;S.panel=k.responsePlaylistData?(0,_.fO.unsafeClone)(k.responsePlaylistData):{titleText:_.DE(_.Vi("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
E=S.panel;if(E.contents)for(var V=_.n(k.temporaryItems),N=V.next();!N.done;N=V.next())E.contents.push({playlistPanelVideoRenderer:N.value});k.queueProxy&&R&&R.playingVideo&&R.playingVideoId&&!zzh(R.playingVideoId,S.panel)&&(E=R.playingVideo,V=S.panel,N=k.index,V.contents&&V.contents.splice(N===void 0?0:N,0,{playlistPanelVideoRenderer:E}));R&&R.playingVideoId&&(E=k.index,V=S.panel,E=!V.contents||E>=V.contents.length?void 0:V.contents[E].playlistPanelVideoRenderer,E&&E.videoId===R.playingVideoId||(E=
QQh(R.playingVideoId,S.panel),k.index=E!==-1?E:k.index?k.index-1:0));E=qzm(k.index+1,S.panel);V=void 0;k.index>0&&(V=qzm(k.index-1,S.panel));if(V||E)S.autoplayRenderer=sQi(E,V,S.autoplayRenderer);!E&&(R==null?0:R.relatedVideoArgs)&&(S.playerData.rvs=R.relatedVideoArgs);R=R?R.playlistIndexOffset:0;k.queueProxy?E8I(S.panel,k.index,R,MfA,!0,!0,!0):E8I(S.panel,k.index,R);S.playerData.playlistPanelRenderer=S.panel;return S};
Cw.prototype.openToast=function(k){_.en().resolve(_.yb).openToast(k,_.Vi("ADDED_TO_QUEUE",void 0,"Added to queue"))};
Cw.prototype.isMiniplayerActive=function(){return _.en().resolve(_.yb).isMiniplayerActive()};
_.EE=function(k,E){k.playlistManager.setAutoplayRenderer(E.autoplayRenderer||null);k.playlistManager.setPlaylistData(E.panel||null);E.playerData&&k.playlistManager.setPlayerPlaybackControlData(E.playerData)};var RbC="#";var wjA={},PjT={},BId={},YnA={},W3z={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:(wjA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",wjA),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:(PjT.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",PjT),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:(BId.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",BId),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:(YnA.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",YnA),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 foh=[{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:W3z},{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:W3z}}];var KBi;_.Cr=[[["bDB3aGVka2luZCNhYTdyNnQ=","d3Rla292YWx1ZSNzNG13M2hw"],"S0lORF9TVEFSVCNydjh2Z3ljM243aWlBRF9QTEFDRU1FTlRf"]];
KBi=[[["cnJlcHJpbWFyeSN4MG5sanNleXA=",null,null],[null,["cy1yZW5kZXJlciNucG4ycnF5bXdxNXd5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0","dHlsZS1zY29wZSNkcW1ucnU5NGMwNDdz"],null],["YXN0aGVhZC1hZCNrNGIwd3A4dTA4Zjdt",["ZC1yZW5kZXJlciN5Mnk2azE5cHlpMHd5dGQtcmljaC1ncmk="],null],[null,["ZC1yZW5kZXJlciN2bnV4dHB0OGNlbnd5dGQtcmljaC1ncmk=","dHlsZS1zY29wZSN3bjdqZzcxMmQybHVz"],null],[null,["by1yZW5kZXJlciNiN2c2ZHlncW1tYXJ5dGQtYmFubmVyLXByb20=","dHlsZS1zY29wZSNlM3BicWYzNDV6cmJz"],null],[null,["dC1yZW5kZXJlciMzZXplZGRnbmRmc3F5dGQtYWQtc2xv"],
null]],[["cGxheWVyLWFkcyNmbmIyZDJzd2g5MnI=",null,null]]];_.GJ=["bENhbGxiYWNrcyNxcDRtNTF1YTF3M3BnbG9iYQ==","dHlEZXRlY3RlZCNpNzlrZHZqaHY1bWlvbkFibm9ybWFsaQ==","Z2lvbkFkU2tpcCM4NnZ3MHUzbTFy","cl9yZXNwb25zZSNzbmxyN3Bxam5lNmNyYXdfcGxheWU=","eW1iYWRTbG90cyNsbXBheXYxMzQ="];_.Rg="bENhbGxiYWNrcyNxcDRtNTF1YTF3M3BnbG9iYQ== dHlEZXRlY3RlZCNpNzlrZHZqaHY1bWlvbkFibm9ybWFsaQ== Z2lvbkFkU2tpcCM4NnZ3MHUzbTFy cl9yZXNwb25zZSNzbmxyN3Bxam5lNmNyYXdfcGxheWU= ZV9za2lwc19rcyNuN2x4NmtybHNvNHh3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbA== eHJhYl9zYV9lZiNpcGE4N2g2cWJp eW1iYWRTbG90cyNsbXBheXYxMzQ=".split(" ");var VW;VW=function(k,E,S){this.yfH=k;this.isAsync=E;this.cGc=S};
_.GDI=[new VW("b.f_",!1,0),new VW("j.s_",!1,2),new VW("r.s_",!1,4),new VW("e.h_",!1,6),new VW("i.s_",!0,8),new VW("s.t_",!1,10),new VW("p.h_",!1,12),new VW("s.i_",!1,14),new VW("f.i_",!1,16),new VW("a.b_",!1,18),new VW("a.o_",!1),new VW("g.o_",!1,22),new VW("p.i_",!1,24),new VW("p.m_",!1),new VW("n.k_",!0,20),new VW("i.f_",!1),new VW("a.s_",!0),new VW("m.c_",!1),new VW("n.h_",!1,26),new VW("o.p_",!1),new VW("m.p_",!0,28),new VW("o.a_",!1),new VW("d.p_",!1),new VW("e.i_",!1)].reduce(function(k,E){k[E.yfH]=
E;return k},{});var F3Y=function(){};
F3Y.prototype.flush=function(k,E){k=k===void 0?[]:k;E=E===void 0?!1:E;if(_.Y("enable_client_streamz_web")){k=_.n(k);for(var S=k.next();!S.done;S=k.next())S=qaT(S.value),this.rootSpec&&_.Xo(S,2,this.rootSpec),S={serializedIncrementBatch:_.xW(S.JSC$9602_serializeBinary())},_.f2("streamzIncremented",S,{sendIsolatedPayload:E})}};
var iyA=function(){};
_.y(iyA,F3Y);var ynY=function(k){var E=new v44;var S=new DT2;S=_.uh(S,1,"botguard");k=_.uh(S,2,k);this.rootSpec=_.gk(E,1,bud,k)};
_.y(ynY,F3Y);var zJ,oG5=new Map;var u7l,JZ1,Bw1,eb1,TwA,UYm,LBh,Xlj;u7l=2;JZ1=2;Bw1=2;eb1=2;TwA=2;UYm=2;LBh=2;Xlj=new bCp;var gGY,UD2;gGY=function(){this.ongoingFlowNonces=new Map};
_.Sk=function(){UD2||(UD2=new gGY);return UD2};
_.Ex=function(k,E,S){return{eventType:{flowEventNamespace:k,flowEventType:E},metadata:S,statusCode:void 0,csn:void 0,can:void 0}};
_.kQj=function(k,E){var S=_.Sk(),R=HEd(S,E,!0);S.logFlowEvent(k,E,R,void 0)};
gGY.prototype.logFlowEvent=function(k,E,S,R){E={flowNonce:S||HEd(this,E),flowType:E,flowEventType:k.eventType};k.metadata&&(E.flowMetadata=k.metadata);k.statusCode!==void 0&&(E.flowEventStatus=k.statusCode);k.csn&&(E.csn=k.csn);k.can&&(E.can=k.can);_.f2("flowEvent",E,R)};
var HEd=function(k,E,S){S=S===void 0?!1:S;var R=k.ongoingFlowNonces.get(E);if(!R||S)R=Pi(16),k.ongoingFlowNonces.set(E,R);return R};_.K3T=new vrd;var Nu1={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 N5=function(k,E,S,R,V,N,h){S=S===void 0?!1:S;R=R===void 0?!1:R;N=N===void 0?_.kN():N;this.hasRun=!1;this.me3=k;this.jpL=E;this.fUe=S;this.fromHistory=R;this.previousVideoId=V;this.kq0=N;this.tempData=h;this.cme=new _.ZC5};
_.y(N5,h1);N5.prototype.validate=function(k){return!(!k.data.playerResponse||k.data.page!=="watch"&&k.data.page!=="learning_journey_watch"&&k.data.page!=="shorts"||this.hasRun)};
N5.prototype.handle=function(k){var E=this,S=_.W(k.endpoint,_.jm),R=_.W(k.endpoint,_.hg);if(_.Y("kevlar_continue_playback_without_player_response")&&(S==null?0:S.videoId)&&this.previousVideoId&&(S==null?void 0:S.videoId)===this.previousVideoId&&(S==null?0:S.continuePlayback)&&!this.fromHistory)this.me3.resolve();else{var V={};S?V.watch_endpoint=S:R&&(V.watch_endpoint=R,R.endTimeSeconds&&(V.end=R.endTimeSeconds));k.data.page==="watch"?(k.data.filler||this.fUe||(_.Xy("cfg"),_.GU.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(V,pjz(this,k.endpoint)),_.Y("enable_masthead_quartile_ping_fix")&&Object.assign(V,And(this)),Object.assign(V,void 0),k.data.forceExternalPlaylist&&(V.external_list=!0)):k.data.page==="shorts"?_.GU.getInstance().triggerAction("yt-start-loading-shorts"):k.data.page==="learning_journey_watch"&&_.GU.getInstance().triggerAction("yt-start-loading-learning-journey");if(S=this.jpL()){try{S.loadVideoWithPlayerResponse(k.data.playerResponse,V),S.getPlayerPromise().then(this.me3.resolve)}catch(N){_.bM(N),
this.me3.resolve()}this.hasRun=!0;S.getPlayerPromise().then(function(N){N.addEventListener("onAbnormalityDetected",function(){var h=k.data.playerResponse,J=N.getVideoData().cpn;LBh=0;_.Xj4=J;if(J=Oye(h))E.cme.increment("IN_PLAYER"),_.RR(5),_.Y("ab_st_vid_ks")?N.pauseVideo(!0):N.stopVideo(),h.playabilityStatus=Object.assign({},h.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:J}}),h.videoDetails=void 0,_.GU.getInstance().triggerOptionalAction("yt-updated-playability-status",
h.playabilityStatus)})})}else _.dg(Error("Rf"))}};
var pjz=function(k,E){var S=_.W(E,_.jm);if(E&&S&&S.playlistId&&S.videoId&&(k=k.kq0,k.queueProxy?(k=k.queueProxy,S=k.listId===S.playlistId?k.attributionData.get(S.videoId):void 0):S=void 0,S))return{queue_info:S}},And=function(k){var E;
if((E=k.tempData)==null?0:E.adpings)return{adpings:k.tempData.adpings}};var Ig=function(k,E,S){this.hasRun=!1;this.pW0=k;this.fGL=E;this.eZ0=S};
_.y(Ig,h1);Ig.prototype.validate=function(k){return!!_.fO.getValueByKeys.apply(null,[k.data].concat(_.$e(EGC)))};
Ig.prototype.handle=function(k){var E=this;this.pW0.promise.then(function(){var S=k.data;var R=_.fO.getValueByKeys.apply(null,[S].concat(_.$e(qOp))),V=_.fO.getValueByKeys.apply(null,[S].concat(_.$e(Cyz))),N=_.fO.getValueByKeys.apply(null,[S].concat(_.$e(QF5)));var h=(h=_.fO.getValueByKeys.apply(null,[S].concat(_.$e(zJY))))?{videoId:h.videoId,thumbnail:h.thumbnail,title:h.title?_.DE(h.title):void 0,shortBylineText:h.author?_.DE(h.author):void 0}:void 0;var J=void 0;_.Y("web_get_playlist_id_from_current_endpoint_ks")||
(J=_.fO.getValueByKeys.apply(null,[S].concat(_.$e(ObC))));var m=_.fO.getValueByKeys.apply(null,[S].concat(_.$e(kyT))),a=_.fO.getValueByKeys.apply(null,[S].concat(_.$e(GOY))),T=!!m||!!a&&!!a.results&&a.results.length>0,w=0;V&&V.currentIndex&&V.localCurrentIndex&&(w=V.currentIndex-V.localCurrentIndex);V&&V.playlistId&&(J=V.playlistId);S={rawResponse:S,autoplayRenderer:R,hasRelatedVideoData:T,playingVideo:h,playingVideoId:N,playlistPanelRenderer:V,playlistId:J,playlistIndex:V&&V.currentIndex,relatedVideoArgs:m,
endScreenRenderer:a,playlistIndexOffset:w};a:{R=E.eZ0;V=E.fGL;R.response=S;if(TI8(S))R.downloadPlaylistProxy&&R.downloadPlaylistProxy.getPlaylistId()===taC(S)||(R.downloadPlaylistProxy=new fj8(taC(S),R.setPlaylistData.bind(R),R.isPlayingOfflineVideo.bind(R))),R.responsePlaylistData=R.downloadPlaylistProxy.getPlaylistData(),R.listId=taC(S),R.index=0;else if(S.playlistPanelRenderer&&S.playlistId&&S.autoplayRenderer)S.playlistId.startsWith("TLPQ")?R.queueProxy?R.listId===S.playlistId?(R.index=S.playlistIndex,
R.responsePlaylistData=S.playlistPanelRenderer,R.queueProxy.JSC$13022_setCurrentIndex(R.index)):S.playingVideoId&&R.index!==void 0&&V.clientParams.autoSaveToQueue&&(R.index+=1,R.queueProxy.JSC$13022_setCurrentIndex(R.index),R.queueProxy.addVideos([S.playingVideoId],{},R.index)):(R.queueProxy=new _.lf(R.JSC$13076_playlistNetworkManager,S.playlistId,R.setPlaylistData.bind(R),R.clearQueue.bind(R),_.C6h(S.playlistPanelRenderer),R.storage),R.responsePlaylistData=S.playlistPanelRenderer,R.listId=S.playlistId,
R.index=S.playlistIndex):(R.index=S.playlistIndex,R.listId!==S.playlistId&&R.clearQueue(),R.responsePlaylistData=S.playlistPanelRenderer,R.listId=S.playlistId,R.playlistProxy=new MpC(R.JSC$13076_playlistNetworkManager,S.playlistId,R.setPlaylistData.bind(R),_.C6h(S.playlistPanelRenderer)));else if(!R.queueProxy)R.responsePlaylistData=void 0;else if(S.playingVideoId&&V.clientParams.autoSaveToQueue){if(R.index===void 0){_.bM(Error("Nf"));R.clearQueue();break a}R.queueProxy.videoIds.includes(S.playingVideoId)||
(R.index+=1,R.queueProxy.JSC$13022_setCurrentIndex(R.index),R.queueProxy.addVideos([S.playingVideoId],{},R.index))}_.EE(R,_.SM(R,R.response.autoplayRenderer))}})};var rn5=function(k,E){E=E===void 0?_.kN():E;oq.call(this);this.mZ.push(new Ig(this.f8,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},E));this.mZ.push(new N5(this.f8,k,!1,!1));_.Y("web_response_commands_chunk_processor")&&this.mZ.push(new XE)};
_.y(rn5,oq);rn5.prototype.processChunk=function(k){k&&k.data.player===void 0&&this.f8.resolve();oq.prototype.processChunk.call(this,k)};var nM=function(k,E){k=k===void 0?{layer:0}:k;this.hasRun=!1;this.createScreenConfig=k;this.ihA=E};
_.y(nM,h1);nM.prototype.validate=function(k){return!(this.hasRun||!k.endpoint)};
nM.prototype.handle=function(k){var E=_.JV(),S,R,V=(R=_.W((S=k.endpoint)==null?void 0:S.commandMetadata,_.Sd))==null?void 0:R.rootVe;this.ihA&&V?_.Pq(E,V,this.ihA,this.createScreenConfig):YsA(E,k.endpoint,this.createScreenConfig);this.hasRun=!0};var iO=function(k,E){this.hasRun=!1;this.taA=k;this.previousVideoId=E};
_.y(iO,h1);iO.prototype.validate=function(k){return _.Y("kevlar_continue_playback_without_player_response")&&(k=_.W(k.endpoint,_.jm),(k==null?0:k.videoId)&&this.previousVideoId&&(k==null?void 0:k.videoId)===this.previousVideoId&&(k==null?0:k.continuePlayback))?!1:this.taA.qoU===0};
iO.prototype.handle=function(k){_.GU.getInstance().triggerAction("yt-stop-old-player",k.data,!0)};var uvA=function(k){k=k===void 0?{layer:0}:k;oq.call(this);this.mZ.push(new iO(this));this.mZ.push(new nM(k));this.mZ.push(new yr(k))};
_.y(uvA,oq);var hs=function(){h1.apply(this,arguments)};
_.y(hs,h1);hs.prototype.validate=function(k){return!!k.data.preconnect};
hs.prototype.handle=function(k){_.o_("bc");k=_.n(k.data.preconnect);for(var E=k.next();!E.done;E=k.next())E=E.value,(new Image).src=E};var xDz=function(k,E,S,R,V,N,h){S=S===void 0?{layer:0}:S;N=N===void 0?_.kN():N;oq.call(this);if(R)if(V){V=N;this.mZ.push(new Ig(this.f8,E,V));this.mZ.push(new hs);var J,m;this.mZ.push(new N5(this.f8,k,!1,!((J=E.clientParams)==null||!J.fromHistory),(m=E.clientParams)==null?void 0:m.previousVideoId,V,E.tempData));var a;this.mZ.push(new iO(this,(a=E.clientParams)==null?void 0:a.previousVideoId));var T;(T=E.clientParams)!=null&&T.fromHistory||(S.layer||(S=Object.assign({},S,{layer:0})),this.mZ.push(new nM(S,
h)),this.mZ.push(new yr(S)))}else this.mZ.push(new Ig(this.f8,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},N)),this.mZ.push(new N5(this.f8,k,!1,!1));else this.mZ.push(new iO(this)),this.mZ.push(new nM(S)),this.mZ.push(new yr(S));_.Y("web_response_commands_chunk_processor")&&R&&this.mZ.push(new XE)};
_.y(xDz,oq);xDz.prototype.processChunk=function(k){k&&k.data.player===void 0&&this.f8.resolve();oq.prototype.processChunk.call(this,k)};var L34=function(){this.hasRun=this.hasRun=!1};
_.y(L34,h1);L34.prototype.validate=function(k){return!this.hasRun&&!(!k.data.csn||!k.data.rootVe)};
L34.prototype.handle=function(k){this.hasRun=!0;_.or(k.data.csn,k.data.rootVe,3)};var j9C=function(k,E,S){S=S===void 0?{layer:0}:S;oq.call(this);this.mZ.push(new N5(this.f8,k));this.mZ.push(new nM(S));this.mZ.push(new yr(S))};
_.y(j9C,oq);var DDz=function(k,E,S,R,V){S=S===void 0?{layer:0}:S;R=R===void 0?_.kN():R;oq.call(this);var N=!!E&&!!E.clientParams&&!!E.clientParams.miniplayer;N&&this.mZ.push(new L34);this.mZ.push(new Ig(this.f8,E,R));this.mZ.push(new hs);var h,J;this.mZ.push(new N5(this.f8,k,N,!((h=E.clientParams)==null||!h.fromHistory),(J=E.clientParams)==null?void 0:J.previousVideoId,R,E.tempData));var m;this.mZ.push(new iO(this,(m=E.clientParams)==null?void 0:m.previousVideoId));var a;(a=E.clientParams)!=null&&a.fromHistory||
(S.layer||(S=Object.assign({},S,{layer:N?3:0})),this.mZ.push(new nM(S,V)),this.mZ.push(new yr(S)));_.Y("web_response_commands_chunk_processor")&&this.mZ.push(new XE)};
_.y(DDz,oq);var Js,vGT;Js={};
_.$DC=(Js["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Js["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Js["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},Js["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Js["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Js["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},Js["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},Js);_.cI=new _.qG("yt-edu");_.fpC=function(){this.JSC$13174_eduDisplayedThisLoad_={}};
vGT=function(k){var E=_.fpC.getInstance();var S=_.wO("kevlar_tooltip_impression_cap");E=S&&parseInt(_.cI.get(k+"-impression")||0,10)>=S||_.cI.get(k+"-dismissed")?!1:(S=_.$DC[k])&&!E.JSC$13174_eduDisplayedThisLoad_[S.setKey||k]&&(S.titleText&&_.Vi(S.titleText)||S.bodyText&&_.Vi(S.bodyText))?!0:!1;if(!E)return null;E=_.$DC[k];if(!E)return null;S=E.bodyText?_.Vi(E.bodyText):void 0;var R=E.titleText?_.Vi(E.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:E.position,popup:{bubbleHintRenderer:{text:R?
_.DE(R):void 0,detailsText:S?_.DE(S):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.DE(_.Vi("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:k}}]}}}}}}}},{eduImpressionAction:{key:k}}]};
_.bb(_.fpC);var E_h=!1;for(var bEC="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),ZEC=[],mc=6;mc>=1;mc--)ZEC.push({columnCount:mc,query:mc==1?0:mc*2*107-4+32,className:"grid-"+mc+"-columns",width:mc*2*107+"px"});_.eM=function(k){this.actionRouter_=k=k===void 0?_.GU.getInstance():k;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.dDY(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.dDY=function(k){var E=k.documentWidth_-(k.miniGuideVisible_?72:0)-(k.guidePersistentAndVisible_?240:0)-(k.persistentPanelVisible_?400:0);return ZEC.find(function(S){return E>S.query})};
_.bb(_.eM);var s9C=function(){var k=this;this.JSC$13186_keyboardInUse=!1;document.addEventListener("keydown",function(){k.onKeydown()});
document.addEventListener("mousedown",function(){k.JSC$13186_keyboardInUse=!1})},lp2;
s9C.prototype.isKeyBoardInUse=function(){return this.JSC$13186_keyboardInUse};
s9C.prototype.onKeydown=function(){this.JSC$13186_keyboardInUse=!0};var Ma5,TM;_.ag=new _.qG("yt-mentions");_.ts=function(){};
Ma5=function(k,E){return TM(E,"drag-to-reorder-edu-displayed")};
TM=function(k,E,S,R,V,N){S=S===void 0?"OPEN_POPUP_POSITION_TOP":S;if(E){if(_.ag.get(E))return;_.ag.set(E,!0,R)}if(V&&N!==void 0){E=Number(_.ag.get(V)||0);if(E>=N)return;_.ag.set(V,E+1)}return[{openPopupAction:{popupType:"HINT",position:S,popup:{bubbleHintRenderer:{detailsText:k,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.bb(_.ts);var qnC,zO5,Q9Y;qnC=function(k,E,S,R){this.JSC$13196_taskManager_=k;this.onFulfilled_=typeof E==="function"?E:null;this.onRejected_=typeof S==="function"?S:null;this.JSC$13196_context_=R};
zO5=function(k,E){k.onFulfilled_&&_.aE(k.JSC$13196_taskManager_,function(){k.onFulfilled_.call(k.JSC$13196_context_,E)})};
Q9Y=function(k,E){k.onRejected_&&_.aE(k.JSC$13196_taskManager_,function(){k.onRejected_.call(k.JSC$13196_context_,E)})};
_.wj=function(k){this.JSC$13199_taskManager_=k;this.callbacks_=[]};
_.wj.prototype.then=function(k,E,S){this.callbacks_.push(new qnC(this.JSC$13199_taskManager_,k,E,S));return this};
_.wj.prototype.onSuccess=function(k){this.callbacks_.forEach(function(E){zO5(E,k)})};
_.wj.prototype.onFailure=function(k){this.callbacks_.forEach(function(E){Q9Y(E,k)})};
_.wj.prototype.cancel=function(){this.callbacks_.length=0};
OoC(_.wj);_.n_t=null;_.eQ=new _.QE("ACTIVITY_TOKEN");var PI=function(k,E){this.serviceId=new O2j(k,E)};
PI.prototype.toString=function(){return this.serviceId.toString()};var OEY=function(){this.internalMap={}};
_.I=OEY.prototype;_.I.contains=function(k){return Object.prototype.hasOwnProperty.call(this.internalMap,k)};
_.I.get=function(k){if(this.contains(k))return this.internalMap[k]};
_.I.set=function(k,E){this.internalMap[k]=E};
_.I.getKeys=function(){return Object.keys(this.internalMap)};
_.I.remove=function(k){delete this.internalMap[k]};var BI=function(){this.mappings=new OEY;this.errorCallbacks=new Set};
BI.prototype.getModuleId=function(k){return k.serviceId.getModuleId()};
BI.prototype.get=function(k){var E=this.mappings.get(k.toString());return Gyj(this,E,k)};
BI.prototype.getMultipleAsync=function(){var k=_.sX.apply(0,arguments),E=this,S=k.map(function(m){return E.getModuleId(m)}),R=k.map(function(m){return E.mappings.get(m.toString())}).filter(function(m){return m});
if(R.length===k.length)return _.GR(R.map(function(m,a){return Gyj(E,m,k[a])}));
var V=fu().loadMultiple(S);R=_.Ys(S.map(function(m){return V[m]}));
var N=document.hidden,h=-1,J=_.wO("get_async_timeout_ms",-1);J>-1&&(h=setTimeout(function(){_.dg(new _.LC("Module timeout.",S,N,document.hidden))},J));
return _.Ws(R.then(function(){return k.map(function(m){return Gyj(E,E.mappings.get(m.toString()),m)})}).thenCatch(function(m){for(var a=_.n(E.errorCallbacks),T=a.next();!T.done;T=a.next())T=T.value,T(m);
throw m;}),function(){clearTimeout(h)})};
BI.prototype.registerService=function(k,E){this.mappings.set(k.toString(),{type:"mapping",value:E});return k};
var Gyj=function(k,E,S){switch(E.type){case "mapping":return E.value;case "factory":return E=E.value(),k.mappings.set(S.toString(),{type:"mapping",value:E}),E;default:return _.s5(E)}};
BI.prototype.onLoadError=function(k){var E=this;this.errorCallbacks.add(k);return function(){E.errorCallbacks.delete(k)}};
_.YN=new BI;var mZI=/^[a-zA-Z0-9_\-]{11}$/;var ekl=_.af(function(){var k,E;return(E=(k=window).matchMedia)==null?void 0:E.call(k,"(prefers-reduced-motion: reduce)").matches});var Cj2=_.af(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 k=_.CV("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");k||(k=_.g7("VIDEO"),_.J6("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
k));return!!(k&&k.canPlayType&&k.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var But=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var WI;WI=function(){this.tokenJars={};if(this.cookiesEnabled=_.rO()){var k=_.pC.get("CONSISTENCY",void 0);k&&kjA(this,{encryptedTokenJarContents:k})}};
_.W1h=function(){WI.instance||(WI.instance=new WI);return WI.instance};
WI.prototype.handleResponse=function(k,E){if(!E)throw Error("Xf");var S,R;E=((S=E.innerTubeRequest.context)==null?void 0:(R=S.request)==null?void 0:R.consistencyTokenJars)||[];var V;(k=(V=k.responseContext)==null?void 0:V.consistencyTokenJar)&&this.replace(E,k)};
WI.prototype.replace=function(k,E){k=_.n(k);for(var S=k.next();!S.done;S=k.next())delete this.tokenJars[S.value.encryptedTokenJarContents];kjA(this,E)};
var kjA=function(k,E){if(E.encryptedTokenJarContents&&(k.tokenJars[E.encryptedTokenJarContents]=E,typeof E.expirationSeconds==="string")){var S=Number(E.expirationSeconds);setTimeout(function(){delete k.tokenJars[E.encryptedTokenJarContents]},S*1E3);
k.cookiesEnabled&&_.A3("CONSISTENCY",E.encryptedTokenJarContents,S,void 0,!0)}};var Em4,FQ;Em4=window.location.hostname.split(".").slice(-2).join(".");_.wV=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var k=_.Mg("LOCATION_PLAYABILITY_TOKEN");_.Mg("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=SCT(this))&&(k=this.localStorage.get("yt-location-playability-token"));k&&(this.locationPlayabilityToken=k,this.mostRecentPosition=void 0)};
_.wV.getInstance=function(){FQ=_.CV("yt.clientLocationService.instance");FQ||(FQ=new _.wV,_.J6("yt.clientLocationService.instance",FQ));return FQ};
_.wV.prototype.setLocationOnInnerTubeContext=function(k){k.client||(k.client={});if(this.mostRecentPosition)k.client.locationInfo||(k.client.locationInfo={}),k.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),k.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),k.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),k.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)k.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.wV.prototype.handleResponse=function(k){var E;k=(E=k.responseContext)==null?void 0:E.locationPlayabilityToken;k!==void 0&&(this.locationPlayabilityToken=k,this.mostRecentPosition=void 0,_.Mg("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=SCT(this))&&this.localStorage.set("yt-location-playability-token",k,15552E3):_.A3("YT_CL",JSON.stringify({loctok:k}),15552E3,Em4,!0))};
var SCT=function(k){return k.localStorage===void 0?new _.qG("yt-client-location"):k.localStorage};
_.wV.prototype.clearLocationPlayabilityToken=function(k){k==="TVHTML5"?(this.localStorage=SCT(this))&&this.localStorage.remove("yt-location-playability-token"):_.xah("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.wV.prototype.getCurrentPositionFromGeolocation=function(){var k=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Yf"));var E=!1,S=1E4;_.Mg("INNERTUBE_CLIENT_NAME")==="MWEB"&&(E=!0,S=15E3);return new Promise(function(R,V){navigator.geolocation.getCurrentPosition(function(N){k.mostRecentPosition=N;R(N)},function(N){V(N)},{enableHighAccuracy:E,
maximumAge:0,timeout:S})})};
_.wV.prototype.createUnpluggedLocationInfo=function(k){var E={};k=k.coords;if(k==null?0:k.latitude)E.latitudeE7=Math.floor(k.latitude*1E7);if(k==null?0:k.longitude)E.longitudeE7=Math.floor(k.longitude*1E7);if(k==null?0:k.accuracy)E.locationRadiusMeters=Math.round(k.accuracy);return E};
_.wV.prototype.createLocationInfo=function(k){var E={};k=k.coords;if(k==null?0:k.latitude)E.latitudeE7=Math.floor(k.latitude*1E7);if(k==null?0:k.longitude)E.longitudeE7=Math.floor(k.longitude*1E7);return E};var Rod=function(){};
_.I=Rod.prototype;
_.I.JSC$13266_getRequest=function(k,E,S){E=E===void 0?{}:E;S=S===void 0?EAC:S;var R=E;if(this.isNavigationCommand()){var V,N=(V=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null?void 0:V.url;R=_.F1j(k.clickTrackingParams,!0,!1,N,this.JSC$13266_getClientScreen(R))}else R=_.F1j(k.clickTrackingParams,!1,this.includeCsn);R={context:R};if(V=this.getExtension(k))return this.JSC$13266_buildRequest(R,V,E),V=this.getApiUrl(k),N=Object.assign({},{command:k},this.getRequestConfig(k,E)),R={input:V,requestShell:xu(V),
innerTubeRequest:R,config:N},R.config.authStrategy?R.config.authStrategy.identity=S:R.config.authStrategy={identity:S},(k=this.JSC$13266_getRequestKey(k,E))&&!R.config.requestKey&&(R.config.requestKey=k),R;k=new _.LC("Error: Failed to create Request from Command.",k);_.bM(k)};
_.I.getApiUrl=function(k){var E=_.bg(this.getApiPaths(k)),S;(k=(S=_.W(k.commandMetadata,_.Sd))==null?void 0:S.apiUrl)&&(E=k);return vDR(fTl(E))};
_.I.isNavigationCommand=function(){return!1};
_.I.JSC$13266_getClientScreen=function(){};
_.I.JSC$13266_getRequestKey=function(){};
_.I.getRequestConfig=function(){};
_.mt.Object.defineProperties(Rod.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var yW=function(){};
_.y(yW,Rod);yW.prototype.JSC$13273_getStoreKey=function(){};
yW.prototype.JSC$13266_getRequestKey=function(k,E){E=E===void 0?{}:E;return this.JSC$13273_getStoreKey(k,E)};_.PT={getLocalStorage:_.af(function(){try{var k=new bzl;var E=k.isAvailable()?k:null}catch(S){return null}return E?new _.Wk(E):null}),
getSessionStorage:_.af(function(){var k=new ZzA;return k.isAvailable()?new _.Wk(k):null})};var ZI=new _.QE("ENTITY_STATE_TOKEN"),og=new _.QE("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var VS8=XMLHttpRequest.prototype.fetch,N65=VS8&&VS8.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!iX?!0:!1;var XQ=function(k){this.JSC$13279_storeWithEntities=k};
_.y(XQ,yW);_.I=XQ.prototype;_.I.getApiPaths=function(){return FDY};
_.I.getExtension=function(k){return _.W(k,_.jm)||_.W(k,_.hg)||_.W(k,PLY)};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$13273_getStoreKey=function(k){if((_.Y("kevlar_cache_on_ttl_player")||_.Y("mweb_enable_shorts_innertube_player_prefetch")||_.Y("mweb_use_new_history_manager")||_.Y("web_shorts_prefetch_service_enabled"))&&(k=this.getExtension(k))&&k.videoId){var E={videoId:k.videoId};k.playlistId&&(E.playlistId=k.playlistId);k.playerParams&&(E.params=k.playerParams);return _.LI("player",E)}};
_.I.JSC$13266_getClientScreen=function(k){var E;return((E=k.contentPlaybackContext)==null?void 0:E.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.I.JSC$13266_buildRequest=function(k,E,S){if(_.Y("enable_interstitial_entity_check")){var R=this.JSC$13279_storeWithEntities;if(E.videoId)for(var V=_.n(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),N=V.next();!N.done;N=V.next()){N=N.value;var h;var J=void 0,m=void 0,a=E.videoId,T=N;(h=R)?(a=_.kn(a+T,"interstitialInteractionStateEntity"),h=(J=(m=_.Ep(h.getState().entities,"interstitialInteractionStateEntity",a))==null?void 0:m.primaryButtonClicked)!=null?J:!1):h=!1;if(h)switch(N){case "CONTENT_CHECK_REQUIRED":E.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":E.racyCheckOk=!0}}}E.videoId&&(k.videoId=E.videoId);E.playlistId&&(k.playlistId=E.playlistId);E.index!==void 0&&(k.playlistIndex=E.index+1);E.playerParams&&(k.params=E.playerParams);"startTimeSeconds"in E&&E.startTimeSeconds&&(_.Y("enable_player_request_builder_start_time_floor")?k.startTimeSecs=Math.floor(E.startTimeSeconds):k.startTimeSecs=E.startTimeSeconds);S.contentPlaybackContext&&(k.playbackContext={contentPlaybackContext:S.contentPlaybackContext});S.prefetchPlaybackContext&&
(k.playbackContext=Object.assign({},k.playbackContext,{prefetchPlaybackContext:S.prefetchPlaybackContext}),k.context.request||(k.context.request={}),k.context.request.isPrefetch=!0);k.playbackContext||(k.playbackContext={});R=Cj2();k.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!R,supportXhr:N65};S.overrideMutedAtStart&&(k.overrideMutedAtStart=S.overrideMutedAtStart);k.racyCheckOk=!!E.racyCheckOk;k.contentCheckOk=!!E.contentCheckOk;!_.Y("captions_prefs_killswitch")&&(S=(S=_.Yl("yt-player-caption-language-preferences"))?
S:[],S==null?0:S.length)&&(k.captionParams={viewerSelectedCaptionLangs:S})};
_.I.getRequestConfig=function(k){k=this.JSC$13273_getStoreKey(k);var E;k&&(E={storeStrategy:{storeKey:k}});_.Y("web_log_player_watch_next_ticks")&&(E=E||{},E.requestTick="ps_s",E.responseTick="ps_r");return E};
XQ[au]=[ZI];var gj=function(){};
_.y(gj,yW);_.I=gj.prototype;_.I.getApiPaths=function(){return k1C};
_.I.getExtension=function(k){return _.W(k,_.jm)};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$13273_getStoreKey=function(k){if((k=this.getExtension(k))&&k.videoId){var E={videoId:k.videoId};k.playlistId&&(E.playlistId=k.playlistId);k.index&&(E.index=k.index);k.params&&(E.params=k.params);return _.LI("next",E)}};
_.I.JSC$13266_getClientScreen=function(k){var E;return((E=k.contentPlaybackContext)==null?void 0:E.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.I.JSC$13266_buildRequest=function(k,E,S){E.videoId&&(k.videoId=E.videoId);E.playlistId&&(k.playlistId=E.playlistId);E.params&&(k.params=E.params);E.index!==void 0&&(k.playlistIndex=E.index);k.racyCheckOk=!(!S.racyCheckOk&&!E.racyCheckOk);k.contentCheckOk=!!E.contentCheckOk;S.contentPlaybackContext&&(k.autonavState=S.contentPlaybackContext.autonavState,k.playbackContext={vis:S.contentPlaybackContext.vis,lactMilliseconds:S.contentPlaybackContext.lactMilliseconds});S.prefetchPlaybackContext&&(k.context.request||
(k.context.request={}),k.context.request.isPrefetch=!0);_.Y("captions_hats_killswitch")||(E=_.nz().getFlag(65),E=E!=null?!E:!1,S=!!_.Yl("yt-player-sticky-caption"),k.captionsRequested=E&&S)};
_.I.getRequestConfig=function(k){k=this.JSC$13273_getStoreKey(k);var E;k&&(E={storeStrategy:{storeKey:k}});_.Y("web_log_player_watch_next_ticks")&&(E=E||{},E.requestTick="wn_s",E.responseTick="wn_r");return E};
var UE=function(){};
_.y(UE,yW);UE.prototype.getApiPaths=function(){return k1C};
UE.prototype.getExtension=function(k){return _.W(k,_.H9)};
UE.prototype.JSC$13266_buildRequest=function(k,E){E.token&&(k.continuation=E.token)};var HI=function(k,E){this.playerRequestBuilder=k;this.watchNextRequestBuilder=E};
_.y(HI,yW);HI.prototype.getApiPaths=function(){return cv8};
HI.prototype.getExtension=function(k){return _.W(k,_.jm)};
HI.prototype.isNavigationCommand=function(){return!0};
HI.prototype.JSC$13266_buildRequest=function(k,E,S){k.playerRequest={};this.playerRequestBuilder.JSC$13266_buildRequest(k.playerRequest,E,S);_.Y("web_streaming_watch")&&(k.watchNextRequest={},this.watchNextRequestBuilder.JSC$13266_buildRequest(k.watchNextRequest,E,S))};
HI[au]=[XQ,gj];var Ibj;_.KM=new _.QE("SHORTS_CONTROLLER_TOKEN");Ibj=new _.QE("SHORTS_STATE_STORE_TOKEN");var pM=function(k,E){var S=_.sX.apply(2,arguments);k=k===void 0?0:k;_.LC.call(this,E,S);this.errorType=k;Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(pM,_.LC);var nm8,i4T,Jqz,d$I,gy,J_b,abd,eoC,YC5,w$Y,T6C;nm8=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(k){return k+"="}).join("|"));
i4T=RegExp(".*\\?.*playnext=1.*");_.As=function(k,E,S,R){this.watchEndpointMap=k;this.reelWatchEndpointMap=E;this.innerTubeTransportService=S;this.fetchPbj=R};
Jqz=function(k,E,S){var R=_.en().resolve(_.mz(hoY));_.As.instance=new _.As(k,E,S,R)};
_.cq4=function(k,E){var S=_.wO("web_pbj_log_warning_rate",0);S=S>0&&Math.random()<S;var R;if((R=_.W(E.commandMetadata,_.Sd))==null||!R.rootVe)return S&&_.dg(Error("$f")),!1;var V;R=(V=_.W(E.commandMetadata,_.Sd))==null?void 0:V.url;if(!R)return S&&_.dg(Error("ag")),!1;if(i4T.test(R))return!0;if(nm8.test(R))return S&&_.dg(Error("bg`"+R)),!1;if(_.W(E,_.jm)){if(!(k.watchEndpointMap.watchNext&&k.watchEndpointMap.player||_.Y("kevlar_fetch_initial_data_op_watch_client")))return S&&_.dg(Error("Tf")),!1;
k=_.wO("web_pbj_log_warning_rate",0);k=k>0&&Math.random()<k;_.W(E,_.jm)?J7A(E)?E=!0:(k&&_.dg(Error("Uf")),E=!1):(k&&_.dg(Error("Tf")),E=!1);return E}if(_.W(E,_.hg))return c71(E);if(_.W(E,_.b3))return!0;k=_.u_(k.innerTubeTransportService,E);!k&&S&&_.bM(Error("cg"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(E)});return k};
d$I=function(k,E,S,R,V,N){E={url:E};if(S==null?0:S.itct)E.parentTrackingParams=S.itct;var h=_.bg(Avd);return _.qF(k.innerTubeTransportService,E,h).then(function(J){(J=J.endpoint)||(J=_.U7);(S==null?0:S.itct)&&J&&!J.trackingParams&&(J.trackingParams=S.itct);var m=nc(J);return gy(k,J,S,R,m,V,N)})};
gy=function(k,E,S,R,V,N,h,J){J=J===void 0?{}:J;if(k.fetchPbj&&!_.cq4(k,E)&&!_.Y("force_one_platform")){J=k.fetchPbj(E);var m=_.GR(J.then(function(M){if(!M)throw Error("dg");h(m)||N(E,M);return M}));
return m}var a,T,w={rootVe:(a=_.W(E.commandMetadata,_.Sd))==null?void 0:a.rootVe,url:(T=_.W(E.commandMetadata,_.Sd))==null?void 0:T.url,endpoint:E,page:V};if(_.W(E,_.jm)){var P,B={contentPlaybackContext:_.m5(S,(P=_.W(E.commandMetadata,_.Sd))==null?void 0:P.url,R)},F=_.LU();_.Y("web_streaming_watch")&&window.TextDecoderStream?(J=m_C(k.innerTubeTransportService,E,B,function(M){!w.response&&M.content&&(w.response=M.content);!w.playerResponse&&M.player&&(w.playerResponse=M.player);N(E,w)}),a=bSI(E),a.length&&
(w.preconnect=a,N(E,w)),eoC(J,F,w).catch(function(M){M instanceof pM&&M.errorType===2&&_.Y("web_streaming_watch_fallback")&&abd(k,E,B,w,N,h,F)})):abd(k,E,B,w,N,h,F);
return F.promise}if(_.W(E,_.hg)){var K;if(((K=_.W(E,_.hg))==null?void 0:K.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var r=_.LU();_.tS2(_.en().resolve(_.KM),E).then(function(M){T6C(k,S,R,V,N,r,M)});
return r.promise}J=_.GR();var x;a={contentPlaybackContext:_.m5(S,(x=_.W(E.commandMetadata,_.Sd))==null?void 0:x.url,R)};(x=k.reelWatchEndpointMap.player)&&(x=x().JSC$13266_getRequest(E,a))&&(J=_.qF(k.innerTubeTransportService,x.innerTubeRequest,x.input,E.clickTrackingParams,x.config));x=_.GR();(T=k.reelWatchEndpointMap.reelItemWatch)&&(T=T().JSC$13266_getRequest(E))&&(x=_.qF(k.innerTubeTransportService,T.innerTubeRequest,T.input,E.clickTrackingParams,T.config));T=_.GR();_.Y("web_enable_delay_shorts_sequence_call_extra")&&
(T=new _.yF(function(M){setTimeout(function(){M(void 0)},200)}));
(!_.Y("web_enable_delay_shorts_sequence_call_new")||_.Y("web_enable_delay_shorts_sequence_call_forget"))&&(P=k.reelWatchEndpointMap.reelWatchSequence)&&_.W(E,_.hg).sequenceParams&&(a=P().JSC$13266_getRequest(E,a))&&(_.Y("web_enable_delay_shorts_sequence_call_forget")?_.qF(k.innerTubeTransportService,a.innerTubeRequest,a.input,E.clickTrackingParams,a.config):T=_.qF(k.innerTubeTransportService,a.innerTubeRequest,a.input,E.clickTrackingParams,a.config));a=_.GR(w);P=_.LU();w$Y(E,a,J,x,T,N,h,P);return P.promise}var L;
if(_.W(E,I8t)&&((L=_.W(E.commandMetadata,_.Sd))==null?0:L.url))return J=YhA(_.Gx(ZB().location.href),_.Gx(_.W(E.commandMetadata,_.Sd).url)).toString(),d$I(k,J,S,R,N,function(){return!1});
if(_.W(E,_.b3))return N(E,w),_.GR(w);if(_.u_(k.innerTubeTransportService,E)){J=Object.assign({},{tempData:S,disableCache:S.disableCache},J);var q=_.xv(k.innerTubeTransportService,E,J).then(function(M){w.response=M;h(q)||N(E,w);return w});
return q}return _.GR(w)};
_.B68=function(k,E,S,R){if(_.W(E,_.jm)||_.W(E,_.hg)&&(_.Y("mweb_enable_shorts_innertube_player_prefetch")||_.Y("kevlar_enable_shorts_prefetch_in_sequence"))||_.W(E,PLY)&&_.Y("web_enable_prefetching_videos_on_home")){var V,N={contentPlaybackContext:_.m5(S,(V=_.W(E.commandMetadata,_.Sd))==null?void 0:V.url,R),prefetchPlaybackContext:tYh(S)},h,J,m;if(((h=_.W(E,_.jm))==null?void 0:(J=h.watchEndpointSupportedPrefetchConfig)==null?void 0:(m=J.prefetchHintConfig)==null?void 0:m.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(S=
k.watchEndpointMap.watchNext)if(N=S().JSC$13266_getRequest(E,N))return Promise.resolve(_.qF(k.innerTubeTransportService,N.innerTubeRequest,N.input,void 0,N.config).then(function(w){return w}))}else if(S=k.watchEndpointMap.player)if(N=S().JSC$13266_getRequest(E,N))return Promise.resolve(_.qF(k.innerTubeTransportService,N.innerTubeRequest,N.input,void 0,N.config).then(function(w){return w}))}else if(_.u_(k.innerTubeTransportService,E)){var a={tempData:S},T=PNT(k.innerTubeTransportService,E);
return T?new Promise(function(w,P){var B,F;return _.c(function(K){if(K.nextAddress==1)return K.yield(T,2);if(K.nextAddress!=4)return B=K.yieldResult,B.JSC$13273_getStoreKey(E,a)?K.yield(_.xv(k.innerTubeTransportService,E,a),4):(P(new _.LC("Prefetching request builder with no store key.",E)),K.jumpTo(0));F=K.yieldResult;w(F);_.KR(K)})}):Promise.reject(new _.LC("Prefetching unregistered request builder.",E))}return Promise.reject(new _.LC("No request builder available to prefetch endpoint.",E))};
J_b=function(k,E){var S,R,V;if(_.W(E,_.jm)){var N=k.watchEndpointMap.watchNext;N&&(S=N());(k=k.watchEndpointMap.player)&&(R=k())}else if(_.W(E,_.hg))(N=k.reelWatchEndpointMap.reelItemWatch)&&(S=N()),(N=k.reelWatchEndpointMap.player)&&(R=N()),(k=k.reelWatchEndpointMap.reelWatchSequence)&&(V=k());else{a:{k=ac1(E,k.innerTubeTransportService.endpointMap);if(k!==void 0)if(typeof k.then==="function")_.bM(new _.LC("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",E));else break a;
k=void 0}k&&(S=k)}var h,J,m;return{content:(h=S)==null?void 0:h.JSC$13273_getStoreKey(E),player:(J=R)==null?void 0:J.JSC$13273_getStoreKey(E),reelSequence:(m=V)==null?void 0:m.JSC$13273_getStoreKey(E)}};
abd=function(k,E,S,R,V,N,h){var J=_.GR(),m=k.watchEndpointMap.player;_.Y("web_streaming_player")&&(m=cT(HI));m&&(m=m().JSC$13266_getRequest(E,S))&&(J=_.qF(k.innerTubeTransportService,m.innerTubeRequest,m.input,E.clickTrackingParams,m.config));m=_.GR();var a=k.watchEndpointMap.watchNext;a&&(S=a().JSC$13266_getRequest(E,S))&&(m=_.qF(k.innerTubeTransportService,S.innerTubeRequest,S.input,E.clickTrackingParams,S.config));k=_.GR(R);YC5(E,k,J,m,V,N,h)};
eoC=function(k,E,S){return _.c(function(R){if(R.nextAddress==1)return R.yield(k,2);E.resolve(S);_.KR(R)})};
YC5=function(k,E,S,R,V,N,h){var J,m,a,T,w;_.c(function(P){switch(P.nextAddress){case 1:return P.yield(E,2);case 2:J=P.yieldResult;if(N(h.promise))return h.resolve(J),P.return();V(k,J);m=bSI(k);if(!m.length){P.jumpTo(3);break}return P.yield(E,4);case 4:J.preconnect=m,V(k,J);case 3:return _.F5(P,5),P.yield(S,7);case 7:a=P.yieldResult;_.Sv(P,6);break;case 5:return T=_.UY(P),h.reject(T),P.return();case 6:if(a===void 0)return J.reload=!0,V(k,J),h.resolve(J),P.return();if(N(h.promise))return h.resolve(J),
P.return();J.playerResponse=a;V(k,J);_.F5(P,8);return P.yield(R,10);case 10:w=P.yieldResult;_.Sv(P,9);break;case 8:_.UY(P);case 9:if(w===void 0)return J.response={responseContext:{}},h.resolve(J),P.return();if(N(h.promise))return h.resolve(J),P.return();J.response=w;V(k,J);h.resolve(J);_.KR(P)}})};
w$Y=function(k,E,S,R,V,N,h,J){var m,a,T,w,P,B;_.c(function(F){switch(F.nextAddress){case 1:return F.yield(E,2);case 2:m=F.yieldResult;if(h(J.promise))return J.resolve(m),F.return();N(k,m);a=bSI(k);if(!a.length){F.jumpTo(3);break}return F.yield(E,4);case 4:m.preconnect=a,N(k,m);case 3:return _.F5(F,5),F.yield(S,7);case 7:T=F.yieldResult;_.Sv(F,6);break;case 5:return w=_.UY(F),J.reject(w),F.return();case 6:if(T===void 0)return m.reload=!0,N(k,m),J.resolve(m),F.return();if(h(J.promise))return J.resolve(m),
F.return();m.playerResponse=T;N(k,m);_.F5(F,8);return F.yield(R,10);case 10:P=F.yieldResult;_.Sv(F,9);break;case 8:_.UY(F);case 9:if(P===void 0)return m.response={responseContext:{}},J.resolve(m),F.return();if(h(J.promise))return J.resolve(m),F.return();m.response=P;N(k,m);_.F5(F,11);return F.yield(V,13);case 13:B=F.yieldResult;_.Sv(F,12);break;case 11:_.UY(F);case 12:if(h(J.promise))return J.resolve(m),F.return();B&&(m.reelWatchSequenceResponse=B);N(k,m);J.resolve(m);_.KR(F)}})};
T6C=function(k,E,S,R,V,N,h){var J,m,a,T,w,P;_.c(function(B){if((J=h)==null||!J.replacementEndpoint)return N.reject(),B.return();m=h.replacementEndpoint;(a=_.W(m,_.hg))?(h.sequenceContinuation&&(a.sequenceParams=h.sequenceContinuation),T=_.en().resolve(_.KM),w=a.sequenceParams,W_C(T,m)&&delete a.sequenceParams,P=gy(k,m,E,S,R,V,function(){return!1}),P.then(function(F){return _.c(function(K){if(K.nextAddress==1)return F_T(T,{reelWatchEndpoint:{sequenceParams:w}},F),K.yield(0,2);
N.resolve(F);_.KR(K)})})):N.reject();
_.KR(B)})};_.yqC=function(k){if(k.validatedFragments_.length==0)return null;if(!k.mergedPrefetchedData_){for(var E=[],S=_.n(k.validatedFragments_),R=S.next();!R.done;R=S.next()){R=_.n(k.fragmentConfiguration_[R.value].graftedKeys);for(var V=R.next();!V.done;V=R.next())(V=k.prefetchedData_[V.value].trackingParams)&&E.push(V)}k.mergedPrefetchedData_={};Object.assign(k.mergedPrefetchedData_,k.prefetchedData_,{clientSideGrafts:E})}return k.mergedPrefetchedData_};var omA;_.rj=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
omA=function(k,E,S){if(_.ise(E))return k.prefetchCache_.get(_.hkb(E,S))};_.uO=new _.QE("NAVIGATION_TOKEN");var X$2=function(k){var E=this;var S=S===void 0?XWt():S;var R=R===void 0?_.en().resolve(_.uO):R;this.onePickCommand=k;this.JSC$13377_playlistNetworkManager=S;this.navigationManager=R;this.videoPickerBuilder=_.y7h("yt-addtoplaylist");_.wn2(JIY(cId(hPd(this.videoPickerBuilder.setTitle(k.modalTitle).setSize(1E3).addView(eRz()).addView(mmT())).addView("youtube"),k.selectButtonLabel)),function(V){E.handleAction(V)})};
X$2.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
X$2.prototype.handleAction=function(k){var E=this;if(k&&this.onePickCommand.listId&&k.action==="picked"&&k.docs){var S=[];k.docs.forEach(function(R){S.push({addedVideoId:R.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13377_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,S).then(function(){_.Y("playlist_add_video_hard_reload_killswitch")?E.navigationManager.reload():gm2(E.navigationManager)})}};var U_4=function(){if(this.constructor===U_4)throw new TypeError("eg");};
_.I=U_4.prototype;_.I.dispose=function(){};
_.I.disconnect=function(){};
_.I.reconnect=function(){};
_.I.observe=function(k,E,S){return{element:k,option:S}};
_.I.unobserveByKey=function(){};var g_m=function(k,E){E=E===void 0?0:E;U_4.call(this);this.viewroot=k;this.defaultPrescanHeight=E;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),k?{root:k,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.y(g_m,U_4);_.I=g_m.prototype;_.I.dispose=function(){this.disconnect();this.handlers.clear()};
_.I.disconnect=function(k){this.isConnected=!1;this.pauseObservingUntilReconnect=k===void 0?!1:k;this.observer.disconnect();k=_.n(this.prescanObservers.values());for(var E=k.next();!E.done;E=k.next())E.value.disconnect()};
_.I.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var k=_.n(this.handlers),E=k.next();!E.done;E=k.next()){var S=_.n(E.value);E=S.next().value;var R=S.next().value;S=!1;R=_.n(R.keys());for(var V=R.next();!V.done;V=R.next())if((V=V.value)&&V.state==="prescan"){S=!0;break}S&&H4j(this,E).observe(E);this.observer.observe(E)}}};
_.I.handleObserveEvent=function(k){k=_.n(k);for(var E=k.next();!E.done;E=k.next()){E=E.value;var S=this.handlers.get(E.target);if(S){var R=E.isIntersecting;S=_.n(S);for(var V=S.next();!V.done;V=S.next()){var N=_.n(V.value);V=N.next().value;N=N.next().value;V&&(V.state==="visible"&&R||V.state==="hidden"&&!R)&&(N(E.target,V.state),V.calledOnce&&this.unobserveByKey({element:E.target,option:V}))}}}};
_.I.handlePrescanEvent=function(k){k=_.n(k);for(var E=k.next();!E.done;E=k.next()){E=E.value;var S=this.handlers.get(E.target);if(S&&E.isIntersecting){S=_.n(S);for(var R=S.next();!R.done;R=S.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;R&&R.state==="prescan"&&(V(E.target,R.state),R.calledOnce&&this.unobserveByKey({element:E.target,option:R}))}}}};
_.I.observe=function(k,E,S){var R=(R=this.handlers.get(k))&&R.has(S)?{element:k,option:S}:void 0;if(R)return R;R={element:k,option:S};this.handlers.has(k)||this.handlers.set(k,new Map);var V=this.handlers.get(k);V&&!V.has(S)&&V.set(S,E);this.pauseObservingUntilReconnect||(S.state==="prescan"&&H4j(this,k).observe(k),this.observer.observe(k));return R};
_.I.unobserveByKey=function(k){var E=this.handlers.get(k.element);if(E&&E.has(k.option)){E.delete(k.option);if(k&&k.option.state==="prescan")for(var S=_.n(this.prescanObservers.values()),R=S.next();!R.done;R=S.next())R.value.unobserve(k.element);E.size===0&&(this.handlers.delete(k.element),this.observer.unobserve(k.element))}};
var H4j=function(k,E){var S=k.defaultPrescanHeight;E.hasAttribute("prescan-height")&&(E=Number(E.getAttribute("prescan-height")),isNaN(E)||(S=E));if(k.prescanObservers.has(S))return k.prescanObservers.get(S);E="-0.1px -0.1px "+S+"px -0.1px";E=new IntersectionObserver(k.handlePrescanEvent.bind(k),k.viewroot?{root:k.viewroot,rootMargin:E}:{rootMargin:E});k.prescanObservers.set(S,E);return E};var K_2=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],p$T=function(){var k,E=this;this.JSC$13394_actionRouter=k=k===void 0?_.GU.getInstance():k;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return E.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return E.visibilityObservedElementHandlerKeys}}},AqC,uJY,jM8;
p$T.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.Y("kevlar_use_vimio_behavior")&&_.Mg("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=UZ1())};
p$T.prototype.dispose=function(){this.visibilityMonitor&&_.TA(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
p$T.prototype.handleVisibilityRefreshed=function(){for(var k=_.n(this.targetMap.entries()),E=k.next();!E.done;E=k.next()){var S=_.n(E.value);E=S.next().value;S=S.next().value;_.rqz(this,E,S)}};
_.L_p=function(k,E,S){uJY(k,S);var R=_.x_C(k,E);R.element=S;k.targetedElements.set(S,E);_.rqz(k,E,R)};
uJY=function(k,E){var S=k.targetedElements.get(E);if(S){var R=k.targetMap.get(S);R&&(delete R.element,k.targetMap.set(S,R));k.targetedElements.delete(E);k.visibilityObserver&&k.visibilityObservedElementHandlerKeys&&(S=k.visibilityObservedElementHandlerKeys.get(E))&&(k.visibilityObserver.unobserveByKey(S),k.visibilityObservedElementHandlerKeys.delete(E))}};
_.rqz=function(k,E,S){var R=S.action,V=S.element;V&&R&&(K_2.includes(E)||_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||k.visibilityMonitor&&k.visibilityMonitor.isNodeVisible(V)?jM8(k,E,S):k.visibilityObserver&&(k.visibilityObservedElementHandlerKeys||(k.visibilityObservedElementHandlerKeys=new WeakMap),R=k.visibilityObserver.observe(V,function(){jM8(k,E,S);k.visibilityObservedElementHandlerKeys.delete(V)},{calledOnce:!0,
state:"visible"}),k.visibilityObservedElementHandlerKeys.set(V,R)))};
jM8=function(k,E,S){var R=S.action;(S=S.element)&&R&&(_.Af(k.JSC$13394_actionRouter,[R],S),k.targetMap.delete(E),k.targetedElements.delete(S),k.triggeredTargets.add(E))};
_.x_C=function(k,E){var S=k.targetMap.get(E);S||(S={},k.targetMap.set(E,S));return S};
_.xN=function(){AqC||(AqC=new p$T);return AqC};var D_5=document.createElement("div");D_5.style.touchAction="pan-down";var Hsm=D_5.style.touchAction==="pan-down";var $_A,fb5;$_A=function(){this.hammerFn=wtY();this.JSC$13402_screenManager=_.JV();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.kh(83615);_.Yo(this.JSC$13402_screenManager,this.ve);K1h()};
_.LM=function(){fb5||(fb5=new $_A);return fb5};
$_A.prototype.registerTouchEvents=function(k,E,S){var R=_.sX.apply(3,arguments),V=this.hammerFn(k,{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}]]});S&&V.set({touchAction:S});this.nodeManagerMapping.set(k,V);var N=
pWi(E);R=_.n(R);for(var h=R.next();!h.done;h=R.next()){h=h.value;if(h.includes("swipe")||h.includes("pinch")||h.includes("pan"))h.includes("swipe")?V.get("swipe").set({enable:!0,direction:N,velocity:.2}):h.includes("pinch")?V.get("pinch").set({enable:!0}):h.includes("pan")&&(V.get("pan").set({enable:!0,direction:N}),V.get("swipe").set({enable:!0,direction:N,velocity:.2}),V.get("swipe").recognizeWith("pan"));vmC(this,k,V,h)}};
var vmC=function(k,E,S,R){S.on(R,function(V){if(R.includes("pinch"))k.lastPinchTime=Date.now();else if(R.includes("swipe")&&Date.now()-k.lastPinchTime<400)return;V.pointerType!=="mouse"&&(V=R==="doubletap"?{coordinates:V.center}:R.includes("pan")?V:R.includes("swipe")?{target:V.target}:{},E.dispatchEvent(new CustomEvent(R,{bubbles:!0,composed:!0,detail:V})))})};
$_A.prototype.unregisterTouchEvents=function(k){var E=_.sX.apply(1,arguments),S=this.nodeManagerMapping.get(k);if(S){E=_.n(E);for(var R=E.next();!R.done;R=E.next())S.off(R.value);this.nodeManagerMapping.delete(k);k.style.touchAction="unset"}};var b4j=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var A7C=null;var Z44=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},QTm=function(){Z44.instance||(Z44.instance=new Z44);
return Z44.instance},Osh=function(k){var E=k.networkEvents;
k.networkEvents=[];return _.Y("enable_network_monitoring")?E:[]};var d_A;d_A={};_.sM2=mq("yt-serviceworker-metadata",{objectStores:(d_A.auth={addedAtVersion:1},d_A["resource-manifest-assets"]={addedAtVersion:2},d_A),shared:!0,upgrade:function(k,E){E(1)&&Q6(k,"resource-manifest-assets");E(2)&&Q6(k,"auth")},
version:2});var DZ1=self.location.origin+"/";$Zi([/\.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\//]);$Zi([/purge_shell=1/]);var lbd=void 0;lbd=lbd===void 0?[]:lbd;for(var MSA=[],qCY=_.n(qtY),zoT=qCY.next();!zoT.done;zoT=qCY.next())MSA.push({key:zoT.value});for(var QMT=_.n(lbd),O4C=QMT.next();!O4C.done;O4C=QMT.next())MSA.push(O4C.value);var GjC,XD=_.Vt==null?void 0:(GjC=_.Vt.performance)==null?void 0:GjC.memory,bsl=!1,GQI={},sTI={},gV={},Ux=navigator;var jM=function(k){this.JSC$13446_expiringStorage=new Dn(k)};
jM.prototype.set=function(k,E,S){S=S!==void 0?Date.now()+S:void 0;this.JSC$13446_expiringStorage.set(k,E,S)};
jM.prototype.get=function(k){return this.JSC$13446_expiringStorage.get(k)};
jM.prototype.remove=function(k){this.JSC$13446_expiringStorage.remove(k)};var I5b=_.ry(["https://www.youtube.com/",""]),npb=_.ry(["https://studio.youtube.com/",""]),mkm="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",hjl=null,waI;var CN4=_.ry(["https://www.youtube.com/iframe_api"]),D2=function(){this.playerResolver_=_.LU();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.eu;this.playbackDurationSeconds_=0},kHY=function(k){var E=function(){return window.YT&&typeof window.YT.ready==="function"};
if(E())return _.GR(window.YT);var S=_.LU(),R=_.g7("SCRIPT");R.onload=R.onreadystatechange=function(){R.readyState&&R.readyState!="loaded"&&R.readyState!="complete"||(R.onload=_.eu,R.onreadystatechange=_.eu,R.onerror=_.eu,E()?S.resolve(window.YT):S.reject(new _.LC("Failed to load the iframe player library","script.onload",R.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
R.onerror=function(V){R.onload=_.eu;R.onreadystatechange=_.eu;R.onerror=_.eu;S.reject(new _.LC("Failed to load the iframe player library","script.onerror",V&&V.target&&V.target.src))};
_.Ib(R,_.BH(CN4));k.insertBefore(R,k.firstChild);return S.promise},EUd=function(k,E,S){var R,V;
_.c(function(N){switch(N.nextAddress){case 1:return k.playbackEndedCallback_=S,_.F5(N,2),N.yield(kHY(E.parentElement||null),4);case 4:R=N.yieldResult;_.Sv(N,3);break;case 2:return V=_.UY(N),V instanceof _.LC&&V.args&&V.args[0]=="script.onerror"?_.dg(V):_.bM(V),N.return();case 3:R.ready(function(){return new R.Player(E,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:k.onPlayerReady_.bind(k),onStateChange:k.onPlayerStateChange_.bind(k),
onCueRangeExit:k.onCueRangeExit_.bind(k)}})}),_.KR(N)}})};
_.I=D2.prototype;_.I.getPlayerPromise=function(){return this.playerPromise_};
_.I.onPlayerReady_=function(k){this.playerResolver_.resolve(k.target)};
_.I.onPlayerStateChange_=function(k){if(k.data==YT.PlayerState.PLAYING){k=k.target;var E=k.getCurrentTime();k.addCueRange("playback",E,E+this.playbackDurationSeconds_)}};
_.I.onCueRangeExit_=function(k){k.data=="playback"&&(k.target.stopVideo(),this.playbackEndedCallback_())};
_.I.stopVideo=function(){this.playerPromise_.then(function(k){k.stopVideo()})};
var S1A=function(k){k.playerVars_&&k.playerPromise_.then(function(E){typeof E.cueVideoByPlayerVars!="function"?_.dg(new _.LC("vmh: player API not ready","cueVideoByPlayerVars",typeof E.cueVideoByPlayerVars)):E.cueVideoByPlayerVars(k.playerVars_)})};
D2.prototype.playVideo=function(){var k=this;this.playerVars_&&this.playerPromise_.then(function(E){typeof E.loadVideoByPlayerVars!="function"?(E=new _.LC("vmh: player API not ready","loadVideoByPlayerVars",typeof E.loadVideoByPlayerVars),_.bM(E)):E.loadVideoByPlayerVars(k.playerVars_)})};
var RgT=function(k,E,S,R,V){E&&(S===void 0&&(S=0),R===void 0&&(R=0),k.playbackDurationSeconds_=R/1E3,k.playerVars_={adformat:"17_8",videoId:E,suggestedQuality:"hd720",startSeconds:S/1E3,player_params:V})};
D2.prototype.mute=function(){this.playerPromise_.then(function(k){k.mute()})};
D2.prototype.unMute=function(){this.playerPromise_.then(function(k){k.unMute()})};var Vgp=function(k,E){var S=Hi();k||(k="unknown");E||(E="unknown");k="MAIN_APP_WEB_PAGE_TYPE_"+k.toUpperCase();k in J1z||(k="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");E="MAIN_APP_WEB_REQUEST_TYPE_"+E.toUpperCase();E in c1C||(E="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.qh(S,{mainAppWeb:{pageType:k,requestType:E,isShellLoad:_.qg("IS_SHELL_LOAD",!1)}})},Nid={start:function(){_.qh(X7I(),{mainAppWeb:_.jk()})},
success:function(){_.Gb(X7I(),"SUCCESS")},
failure:function(){_.Gb(X7I(),"FAILURE")},
cancelled:function(){_.Gb(X7I(),"CANCELLED")}};var I6z,nU5,oph;I6z=_.ry(["/sw.js"]);nU5=_.ry(["/sw.js?0"]);_.i$d=_.BH(I6z);oph=_.BH(nU5);var hgd=function(){var k=Error.apply(this,arguments);this.message=k.message;"stack"in k&&(this.stack=k.stack)};
_.y(hgd,Error);_.fc.prototype.load=function(k){this.megabloxUrl_=_.Mg("YPC_MB_URL");_.KI(this.megabloxUrl_,(0,_.uk)(function(){k&&k()},this))};
_.xvh=function(k,E,S,R,V,N,h,J,m,a,T){_.gpj(m);k.load((0,_.uk)(function(){try{var w=N?N:_.Mg("HL"),P=_.Mg("SESSION_INDEX");_.V_b("client",function(){EZd("59",{helpCenterPath:"/youtube",locale:w,window:window}).JSC$9970_loadChatSupport({authuser:String(P)})})}catch(B){throw DW(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),V&&V(B),_.bM(B),B;
}JcY(this,E,S,R,V,N,h,J,m,a,T)},k))};
_.fc.prototype.openFixFlowDialog=function(k,E,S,R){this.load((0,_.uk)(function(){try{ccz(this,_.CV("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(k).withIntegratorCallback(E).load(S,R)}catch(V){throw _.bM(V),V;}},this))};
var ccz=function(k,E,S,R){var V=E.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.Y("enable_window_constrained_buy_flow_dialog")&&(V=V.usingPopupStyle(_.CV("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));R&&(V=V.usingCloseCallback(R));E.bootstrap.fromPaymentsUrl(k.megabloxUrl_);k=E.bootstrap.asMashupMode(V);S=S?S:_.Mg("HL");k.usingGaiaIndex(_.Mg("SESSION_INDEX")).usingLocale(S).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.Y("enable_google_payments_buyflow_material2_style_web")?
k.usingStyle(":m2;pc=#444;ac=#065fd4"):k.usingStyle(":md;pc=#444;ac=#065fd4");return k},JcY=function(k,E,S,R,V,N,h,J,m,a,T){try{var w=_.CV("payments.business.integration");
if(!w)throw new hgd("payments.business.integration is undefined");var P=w.standaloneContextAuthId.forUserId(),B=ccz(k,w,N,function(){HQj(!1);J&&J()});
h&&B.usingServerAnalyticsEventHandler(h);var F=B.inStandaloneContext(P).buyFlow(function(K){if(K&&(!K.integratorData||K.integratorData===""||K.error))if(K.error!=null)if(String(K.error)==="-1")_.Uk1(m);else{var r=String(K.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";DW(10,T,r,K.debugCode);_.$l(r,m,K.debugCode);r=new _.LC("PAYMENT_ERROR_MESSAGE::"+K.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+K.internalErrorDetails);
_.bM(r)}else DW(10,T,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.$l("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",m,"EMPTY_INTEGRATOR_DATA"),_.bM(Error("jg"));S&&(HQj(!1),S(K))}).withEncryptedParameters(E);
a&&F.withClientParameters(SjT(_.rkt(a)));F.load(function(){DW(24,T);_.gq("ttc",void 0,"commerce_transaction");YA("commerce_transaction");R&&(R(),HQj(!0))},function(K){if(K==null?0:K.debugCode)var r=K==null?void 0:K.debugCode;
else if(!K||(K==null?0:K.debugCode))r="EMPTY_LOAD_FAILURE_ERROR",_.bM(Error(r));else{r="EMPTY_LOAD_FAILURE_DEBUG_CODE";var x=new _.LC("LOAD_FAILURE:"+K.message," DEBUG_CODE:"+r);_.bM(x)}DW(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",r);_.$l("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",m,r);_.bM(K);V&&V(K)})}catch(K){throw K instanceof hgd&&(DW(10,T,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),V&&V(K)),_.bM(K),K;
}};var m94;m94=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.Aml=function(k,E){E=E===void 0?!1:E;k=m94.test(k)?_.pg(k):null;!E&&window.payments||!k?(k=_.LU(),E=k.promise,k.resolve()):E=_.bZ5(k,{attributes:{"data-payments-main":"",id:"payment-lib"}});return E};var egC;egC=_.ry(["//www.googletagmanager.com/gtm.js?id=",""]);_.$N=function(k,E){_.MJ(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:E}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Mg("GL")}),E=_.g7("SCRIPT"),E.async=!0,_.Ib(E,_.BH(egC,k)),E.id="gtm",k=document.getElementsByTagName("script"),k.length==0?document.head.appendChild(E):(k=k[0],k.parentNode.insertBefore(E,k)))};
_.fM=function(k){if(k=JSON.parse(k))window.dataLayer=window.dataLayer||[],window.dataLayer.push(k)};var a65,tg8;a65=_.ry(["https://clients2.google.com/gr/gr_sync.js"]);_.Knl=function(){};
_.Knl.prototype.init=function(){if(tg8()){var k=_.LU();k.resolve();return k.promise}return _.bZ5(_.BH(a65)).then(function(){if(!tg8())throw Error("kg");},function(){throw Error("lg");
})};
_.pRl=function(){if(!tg8())return"";var k=window.google.gr;k.init({async:{schedule:"sync"},merchantId:"youtube"});k.start();k=k.finish();return k==null?"":k};
tg8=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.p=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.y(_.p,PolymerFakeBaseClassWithoutHtml);_.mi=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.y(_.mi,PolymerFakeBaseClassWithoutHtml);var KDR=window.ShadyDOM;var JGC,iWI,mtC,eHm,t2m,TQi,vI,Gl;JGC=_.Y("enable_shadydom_free_scoped_query_methods");iWI=_.Y("enable_shadydom_free_scoped_node_methods");mtC=_.Y("enable_shadydom_free_scoped_readonly_properties_batch_one");eHm=_.Y("enable_shadydom_free_parent_node");t2m=_.Y("enable_shadydom_free_children");TQi=_.Y("enable_shadydom_free_last_child");vI=window.ShadyDOM;_.Rc=vI&&vI.noPatch&&vI.wrap?vI.wrap:vI?function(k){return vI.patch(k)}:function(k){return k};
Gl=function(k){if(k instanceof ShadowRoot)this.host=(0,_.Rc)(k.host),this.root=k;else if(k.$$){this.host=(0,_.Rc)(k);var E;this.root=(E=k.root)!=null?E:this.host}else if(k.polymerController){this.host=(0,_.Rc)(k);var S;this.root=(S=this.host.shadowRoot)!=null?S:this.host}else this.root=this.host=(0,_.Rc)(k)};
hHI();cGi();wfb();P9h();aQI();var Ti2={querySelector:function(k,E){E=Avt(E,dV(k));k=_.sx(k);return lv(k).prototype.querySelector.call(k,E)},
querySelectorAll:function(k,E){E=Avt(E,dV(k));k=_.sx(k);return lv(k).prototype.querySelectorAll.call(k,E)}},wAp={appendChild:function(k,E){var S=dV(k),R=_.ZW(E);
return _.IQR(_.sx(k),S?_.qy(E,S,R):E)},
cloneNode:function(k,E){var S=_.ZW(k);k=_.sx(k);E=lv(k).prototype.cloneNode.call(k,E);return S?zl(E,S):E},
contains:function(k,E){var S=dV(k),R=_.ZW(E);return S!==R?!1:n0C(k,E)},
insertBefore:function(k,E,S){var R=dV(k),V=_.ZW(E);k=_.sx(k);E=R?_.qy(E,R,V):E;return lv(k).prototype.insertBefore.call(k,E,S)},
removeChild:function(k,E){var S=dV(k);k=_.sx(k);E=S?zl(E,S):E;return lv(k).prototype.removeChild.call(k,E)},
replaceChild:function(k,E,S){var R=dV(k),V=_.ZW(E);E=R?_.qy(E,R,V):V?zl(E,V):E;S=R?zl(S,R):S;k=_.sx(k);return lv(k).prototype.replaceChild.call(k,E,S)},
getRootNode:function(k,E){E=E===void 0?{composed:!0}:E;var S;if(((S=E)!=null?S:{}).composed)k=ZQl(k);else{E=k;for(k=uIm(k);k;)E=k,k=LDe(k);k=E}return k}},Ysi=mtC?{firstChild:k1h,
nextSibling:OQ1,previousSibling:Cwh,firstElementChild:E0m,lastElementChild:RHh,nextElementSibling:Qnm,previousElementSibling:GCb,childNodes:V2C}:{};eHm&&(Ysi.parentNode=zjR);t2m&&(Ysi.children=NQh);TQi&&(Ysi.lastChild=Sse);JGC&&BQj(Ti2);iWI&&BQj(wAp);W4h();var F4I=function(k){this.node=k instanceof ShadowRoot?k.host:k};
yG1();o0h();var Uti=new WeakMap;var K4h=Symbol("Ad");var xti=new Set(["tap","track","down","up"]),L4e=_.Y("pbcm_fi_query_decorators");var bO=function(){return _.mi.apply(this,arguments)||this};
_.y(bO,_.mi);_.I=bO.prototype;_.I.getState=function(){return this.store.getState()};
_.I.dispatch=function(k){this.store.dispatch(k)};
_.I.beforeRegister=function(){if(this&&typeof this==="object"){var k;var E=!!this.useSignals||!((k=this.polymerController)==null||!k.useSignals)}else E=!1;if(!E&&this.properties)for(E=_.n(Object.keys(this.properties)),k=E.next();!k.done;k=E.next()){var S=k.value;k=this.properties[S];if(k.selector){if(k.computed)throw Error("rg");S=["reduxPropertiesRecomputeTrigger",'"'+S+'"'].concat(_.$e(k.selectorArgs||[])).join(",");k.computed="recomputeReduxSelector("+S+")"}}};
_.I.attached=function(){var k=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){k.reduxPropertiesRecomputeTrigger++}));
_.Y("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.I.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.I.recomputeReduxSelector=function(k,E){var S=_.sX.apply(2,arguments),R=this.properties[E].selector;if(!R)throw Error("pg`"+E);return R.apply(null,[this.store.getState()].concat(_.$e(S)))};
_.I.select=function(k){var E=_.sX.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return k.apply(null,[this.store.getState()].concat(_.$e(E)))};
_.mt.Object.defineProperties(bO.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("qg");}}});
bO.prototype.recomputeReduxSelector=bO.prototype.recomputeReduxSelector;_.Z([_.H(),_.l("design:type",Number)],bO.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.Z([_.eN()],bO);var Z2=[],fQm={},gJ=function(){return ad.apply(this,arguments)||this};
_.y(gJ,ad);gJ.prototype._addPropertyEffect=function(k,E,S){if(E==="__observeEffects"&&S){var R,V=(R=S.info.method)!=null?R:S.info.methodName;if(V){var N=this[V];this[V]=function(){Z2.push(V);try{N==null||N.apply(this,arguments)}finally{Z2.pop()}}}}_.Yx._addPropertyEffect.apply(this,[k,
E,S])};
gJ.prototype._setPendingProperty=function(k,E,S){if(Z2.length){var R=Z2[Z2.length-1],V;(V=fQm[this.is])!=null&&V.has(R)||(v0R(this.is,R),_.f2("polymerPropertyChangedInObserver",{componentName:this.is,observerName:R}))}return _.Yx._setPendingProperty.apply(this,[k,E,S])};
_.Z([VuI()],gJ);var bWe=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),dtR,TN={};_.Y("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=TN);var Bu=function(){return _.mi.apply(this,arguments)||this};
_.y(Bu,_.mi);Bu.prototype._setUnmanagedPropertyToNode=function(k,E,S){k.loggingStatus&&(k.loggingStatus.isDeclarativeExternal=!0);if(S!==k[E]||typeof S==="object")k[E]=S;k.is&&k.polymerController&&k.polymerController!==k&&wJ(k.is,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");k.loggingStatus&&(k.loggingStatus.isDeclarativeExternal=!1)};
_.Z([_.eN()],Bu);ZWI()&&(kF.prototype._setUnmanagedPropertyToNode=(new Bu)._setUnmanagedPropertyToNode);_.Vp1={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(k){},set polymerController(k){}}]};var X6=function(){var k=ad.apply(this,arguments)||this;k.json=function(){};
return k};
_.y(X6,ad);X6.prototype.equals=function(k,E){return k===E};
X6.prototype.isEmpty=function(k){var E;(E=!k)||(E=_.sj(k)&&k.length===0);return E};
_.Z([VuI()],X6);var P0j=function(k){k=Rrh(k);$D.call(this,k)};
_.y(P0j,$D);P0j.prototype.addProvider=function(k){k=k.key?k:Rrh([k])[0];var E=this.keyIdToIndex.get(k.key.id);if(E){if(zHh(k,this.providers[E]))throw Error("sg`"+k.key.displayName);}else $D.prototype.addProvider.call(this,k)};
var BiY=new P0j([]);var Y1T=!1;var E9I={};Y1T||(kOA(),Y1T=!0);
E9I.InjectBehavior={initializeInjection:function(){var k=this.provide;try{if((k=k!=null?k:[])&&k.length>0)for(var E=Rrh(k),S=_.n(E),R=S.next();!R.done;R=S.next())BiY.addProvider(R.value);var V=new Set;Q$b(this.behaviors||[],V);E={};for(var N=_.n(V),h=N.next();!h.done;h=N.next()){var J=h.value;J.inject&&Object.assign(E,J.inject)}this.inject&&Object.assign(E,this.inject);for(var m=_.n(Object.keys(E)),a=m.next();!a.done;a=m.next()){var T=a.value,w=E[T];try{this[T]=BiY.resolve(w)}catch(P){throw P;}}}catch(P){throw Error(P.message);
}}};var RJ1;var NNj=/\bclass\b/.test(function(){}.toString()),ibh=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var W6j=function(k){this.wasDefined=!0;Array.isArray(k)||k instanceof Array?(this.JSC$13573_getImpl=k[0],this.JSC$13573_setImpl=k[1]):this.JSC$13573_getImpl=k};
_.I=W6j.prototype;_.I.getWithPath=function(k){return cuC(this.JSC$13573_getImpl(),k)};
_.I.setWithPath=function(k,E){var S=this;if(k.length)throw Error("tg");if(!this.JSC$13573_setImpl)throw Error("ug");Ko(function(){S.JSC$13573_setImpl(E)})};
_.I.notifyPath=function(){throw Error("vg");};
_.I.notifySplices=function(){throw Error("wg");};
_.I.getChangeRecordSignal=function(k,E){var S=this;if(k.length)throw Error("xg");return function(){var R=S.getWithPath(k);return{path:E!=null?E:"",base:R,value:R}}};
_.I.getSplicesSignal=function(){throw Error("yg");};
_.I.getPathMutationSignal=function(){throw Error("zg");};
_.I.pop=function(){throw Error("Ag");};
_.I.push=function(){throw Error("Bg");};
_.I.splice=function(){throw Error("Cg");};
_.I.unshift=function(){throw Error("Dg");};var dj=function(k){var E=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(k)||k instanceof Array?(this.JSC$13578_getImpl=k[0],this.JSC$13578_setImpl=k[1]):this.JSC$13578_getImpl=k;this.wasDefined=!1;_.FF(function(){E.wasDefined=E.JSC$13578_getImpl()!==void 0})};
dj.prototype.getWithPath=function(k){return cuC(this.JSC$13578_getImpl(),k)};
dj.prototype.setWithPath=function(k,E){var S=this;if(k[k.length-1]!=="*"&&k[k.length-1]!=="splices"){var R=_.FF(function(){return S.getWithPath([])});
if(k.length===0){if(!this.JSC$13578_setImpl)throw Error("Eg");if(R===E)return;this.wasDefined||(this.wasDefined=E!==void 0);Ko(function(){S.JSC$13578_setImpl(E)})}else{for(var V=0;V<k.length-1;V++){if(!R)return;
R=R[k[V]]}V=k[k.length-1];R&&(R[V]=E);this.wasDefined||(this.wasDefined=k.length>1||E!==void 0)}F68(this,k,{pathComponents:k,value:E})}};
dj.prototype.notifyPath=function(k,E){k.length===0?E&&this.setWithPath(k,E.value):F68(this,k,{pathComponents:k,value:E==null?void 0:E.value,fallbackWhenUndefined:E==null?void 0:E.value})};
var F68=function(k,E,S,R){if(k.setMutationSignal){var V=++k.mutationIndex,N=[k.observedPath],h=k.observedPath,J;E.length===0&&(J=h);for(var m=0;m<E.length;m++){var a=h.subPaths[E[m]];if(!a)break;N.push(a);h=a;m===E.length-1&&(J=a)}for(E=!1;N.length;)h=N.shift(),h.data={index:V,mutation:S,spliceMutationIndex:R},E||(E=h===J),E&&N.push.apply(N,_.$e(Object.values(h.subPaths)));Ko(function(){k.setMutationSignal(V)})}};
dj.prototype.notifySplices=function(k,E){var S=this,R=_.FF(function(){return S.getWithPath(k)}),V=[].concat(_.$e(k),["splices"]);
F68(this,V,{pathComponents:V,value:{indexSplices:E}});if(R==null?0:R.length)E=this.mutationIndex,V=[].concat(_.$e(k),["length"]),F68(this,V,{pathComponents:V,value:R.length},E)};
var yc2=function(k,E,S,R,V,N){k.notifySplices(S,[{index:R,addedCount:V,removed:N,object:E,type:"splice"}])},oUd=function(k,E){k=k.observedPath;
for(var S=0;S<E.length;S++){var R=E[S],V=k.subPaths[R];V||(V={pathComponents:E.slice(0,S+1),subPaths:{}},k.subPaths[R]=V);k=V}},gUY=function(k,E,S){oUd(k,E);
if(!k.getMutationSignal){var R=_.n(_.yg(k.mutationIndex,void 0,"sNBMCd"));k.getMutationSignal=R.next().value;k.setMutationSignal=R.next().value}var V=k.getMutationSignal;return _.HX(function(){V();return S(XAA(k,E))},void 0,"zvsXEd")};
dj.prototype.getChangeRecordSignal=function(k,E){var S=this,R=this.mutationIndex,V;return gUY(this,k,function(N){if(N&&N.index>R){var h=N.mutation;R=N.index;V=void 0}N=_.FF(function(){return S.getWithPath(k)});
if(h){var J=h.pathComponents[h.pathComponents.length-1],m=[].concat(_.$e(h.pathComponents));if(J==="splices"||J==="length")return{base:N,path:(E?[E].concat(_.$e(m)):m).join("."),value:h.value};var a=k.length>m.length?k:m,T;return{base:N!=null?N:h.fallbackWhenUndefined,path:(E?[E].concat(_.$e(a)):a).join("."),value:(T=_.FF(function(){return S.getWithPath(a)}))!=null?T:h.fallbackWhenUndefined}}V||(V={base:N,
path:(E?[E].concat(_.$e(k)):k).join("."),value:N});return V})};
dj.prototype.getSplicesSignal=function(k){var E=this.mutationIndex,S;return gUY(this,k,function(R){if(R&&R.index>E&&R.spliceMutationIndex!==E){var V=R.mutation;E=R.index;S=void 0}return V&&V.pathComponents[V.pathComponents.length-1]==="splices"?S=R=V.value:S})};
dj.prototype.getPathMutationSignal=function(k){var E=this;oUd(this,k);if(!this.getMutationSignal){var S=_.n(_.yg(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=S.next().value;this.setMutationSignal=S.next().value}var R=this.getMutationSignal,V=this.mutationIndex,N;return _.HX(function(){R();var h=XAA(E,k);if(h&&h.index>V&&h.mutation&&mWt(h.mutation.pathComponents,k)){var J=h.mutation;V=h.index}if(!N||V!==N.index){var m,a;h=(a=_.FF(function(){return E.getWithPath(k)}))!=null?a:(m=J)==null?
void 0:m.fallbackWhenUndefined;
N={index:V,value:h}}return N},void 0,"RXYC9b")};
var XAA=function(k,E){k=k.observedPath;E=_.n(E);for(var S=E.next();!S.done;S=E.next())k=k.subPaths[S.value];return k.data};
dj.prototype.pop=function(k){var E=this,S=_.FF(function(){return E.getWithPath(k)});
if(!(S instanceof Array))throw Error("Fg");var R=S.length>0,V=S.pop();R&&yc2(this,S,k,S.length,0,[V]);return V};
dj.prototype.push=function(k){var E=_.sX.apply(1,arguments),S=this,R=_.FF(function(){return S.getWithPath(k)});
if(!(R instanceof Array))throw Error("Gg");var V=R.length,N=R.push.apply(R,_.$e(E));E.length&&yc2(this,R,k,V,E.length,[]);return N};
dj.prototype.splice=function(k,E,S){var R=_.sX.apply(3,arguments),V=this,N=_.FF(function(){return V.getWithPath(k)});
if(!(N instanceof Array))throw Error("Hg");E<0?E=N.length-Math.floor(-E):E&&(E=Math.floor(E));var h=N.splice.apply(N,[E,S].concat(_.$e(R)));(R.length||h.length)&&yc2(this,N,k,E,R.length,h);return h};
dj.prototype.unshift=function(k){var E=_.sX.apply(1,arguments),S=this,R=_.FF(function(){return S.getWithPath(k)});
if(!(R instanceof Array))throw Error("Ig");var V=R.unshift.apply(R,_.$e(E));E.length&&yc2(this,R,k,0,E.length,[]);return V};var sE=function(k,E,S){this.model=k;this.unknownSignalResolver=E;this.options=S;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];E=_.n(WAI());k=E.next().value;E=E.next().value;this.owner=k;this.disposeImpl=E};
sE.prototype.dispose=function(){if(!this.isDisposed){for(var k=_.n(this.childSignalProxies),E=k.next();!E.done;E=k.next())E.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var U9d=function(k,E){k=_.Ie(k.owner);try{E()}finally{_.Ie(k)}};
sE.prototype.effect=function(k){U9d(this,function(){_.sm(k,"g")})};
var H$8=function(k,E){k.options!=null||(k.options={});var S;(S=k.options).immutableProps!=null||(S.immutableProps=new Set);k.options.immutableProps.add(E)},Mp1=function(k,E){E=""+E;
K68(k,E);var S,R;if((S=k.options)==null?0:(R=S.immutableProps)==null?0:R.has(E))return!0;var V;if((V=k.model.__signalCache)==null?0:V.has(E))S=k.model.__signalCache.get(E),Array.isArray(S)&&H$8(k,E);var N,h,J;return(J=(N=k.options)==null?void 0:(h=N.immutableProps)==null?void 0:h.has(E))!=null?J:!1},pAj=function(k,E){var S;
k.unknownSignalResolver&&(S=k.unknownSignalResolver(E));var R,V;((R=k.options)==null?0:(V=R.immutableProps)==null?0:V.has(E))?S!=null||(S=new W6j(_.yg(k.model[E],void 0,"By5iP"))):S!=null||(S=new dj(_.yg(k.model[E],void 0,"CXghNc")));var N=k.model.hostElement;Object.defineProperty(k.model,E,{get:function(){lQm(N,E);return S.getWithPath([])},
set:function(h){Pu(N,E);k.setWithPath([E],h)},
configurable:!0});return S},K68=function(k,E){var S,R,V;
((S=k.model.__signalCache)==null||!S.has(E))&&((R=k.options)==null?0:(V=R.externalSignalProps)==null?0:V.has(E))&&k.model[E]},pv=function(k,E){E=""+E;
var S=k.signalCache[E];if(S!==void 0)return S;S=!1;K68(k,E);var R;if((R=k.model.__signalCache)==null?0:R.has(E))if(S=k.model.__signalCache.get(E),Array.isArray(S))S=!0,H$8(k,E);else return k.signalCache[E]=k.model.__signalCache.get(E).signal,k.signalCache[E];var V,N;R=(N=(V=k.options)==null?void 0:V.reactivityMode)!=null?N:0;var h,J;if(!((h=k.options)==null?0:(J=h.reactiveProps)==null?0:J.has(E))&&!S&&R===1)throw Error("Jg`"+E);V=S?Acz(k,E):pAj(k,E);return k.signalCache[E]=V},Acz=function(k,E){var S=
Object.getOwnPropertyDescriptor(k.model.constructor.prototype,E),R=function(){return k.model[E]};
return new W6j(S&&S.get&&!S.set?R:[R,function(V){k.model[E]=V}])};
sE.prototype.getWithPath=function(k){var E=_.n(k);k=E.next().value;E=Re(E);lQm(this.model.hostElement,""+k);return pv(this,k).getWithPath(E)};
sE.prototype.setWithPath=function(k,E){if(k.length){Pu(this.model.hostElement,k.join("."));var S=_.n(k);k=S.next().value;S=Re(S);pv(this,k).setWithPath(S,E)}};
sE.prototype.getPathMutationSignal=function(k){var E=_.n(k);k=E.next().value;E=Re(E);return pv(this,k).getPathMutationSignal(E)};
sE.prototype.notifyPath=function(k,E){var S=_.n(k);k=S.next().value;S=Re(S);pv(this,k).notifyPath(S,E)};
var rc2=function(k,E){if(E.type==="literal")return function(){return{rootWasDefined:!0,value:E.value}};
var S=Hu(E.path),R=_.n(S),V=R.next().value;R=Re(R);var N,h;if(E.type==="path"&&(S.length===1||((N=k.options)==null?0:(h=N.immutableProps)==null?0:h.has(V))))return function(){var w=k.getWithPath(S.slice(0,1));w=cuC(w,S.slice(1));return{rootWasDefined:pv(k,S[0]).wasDefined,value:w}};
var J=pv(k,V);if(E.type==="path"){var m=J.getPathMutationSignal(R);return function(){var w,P=(w=m())==null?void 0:w.value;return{rootWasDefined:J.wasDefined,value:P}}}if(E.type==="splices"){var a=J.getSplicesSignal(R);
return function(){var w=a();return{rootWasDefined:J.wasDefined,value:w}}}var T=J.getChangeRecordSignal(R,""+V);
return function(){var w=T();return{rootWasDefined:J.wasDefined,value:w}}},Py1=function(k,E,S){var R=S.map(function(J){return rc2(k,J)}),V=S.length===0,N=[],h=S.length!==1||S[0].type!=="path"?!1:!0;
k.effect(function(){for(var J=R.length,m=[],a=!!N.length,T=0;T<J;T++){var w=R[T](),P=w.rootWasDefined;w=w.value;V||(V=P);m[T]=w;h&&(m[T+J]=a?N[T]:m[T],N[T]=w)}V&&lI(k.owner,function(){return void E.apply(null,_.$e(m))})})},eJm=function(k,E,S,R,V){var N=pv(k,E);
V!==void 0&&N.setWithPath([],V);Py1(k,function(){var h=_.sX.apply(0,arguments);Pu(k.model.hostElement,E,!0);N.setWithPath([],S.apply(null,_.$e(h)))},R)};
sE.prototype.arrayPush=function(k){var E=_.sX.apply(1,arguments),S=_.n(k),R=S.next().value;S=Re(S);R=pv(this,R);return R.push.apply(R,[S].concat(_.$e(E)))};
sE.prototype.arraySplice=function(k,E,S){var R=_.sX.apply(3,arguments),V=_.n(k),N=V.next().value;V=Re(V);N=pv(this,N);return N.splice.apply(N,[V,E,S].concat(_.$e(R)))};
sE.prototype.arrayUnshift=function(k){var E=_.sX.apply(1,arguments),S=_.n(k),R=S.next().value;S=Re(S);R=pv(this,R);return R.unshift.apply(R,[S].concat(_.$e(E)))};
sE.prototype.notifySplices=function(k,E){var S=_.n(k);k=S.next().value;S=Re(S);pv(this,k).notifySplices(S,E)};var u0j=!0,x9d=!1,qnh=!1,L6A=!1,jiT=0;L6A=!1;jiT=0;u0j=!0;x9d=qnh=!1;var UWm=/([^\s]+?)\(([\s\S]*)\)/,o9t=/\.([^.]+)$/,KAA=/\\,/g,FAj=/&comma;/g,yuh=/\\(.)/g,HbI=[],Xml={"*":"wildcard",splices:"splices"};var fjm=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"),LAe=/[A-Z]/,D95=["class","hidden","id","on-dom-change"],bbe=new Set([].concat(_.$e(D95),
["if","notify-dom-change","restamp"])),Zbm=new Set([].concat(_.$e(D95),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),dWi=new Set(["restamp"]);var d_i=new Set(["className","id"]);var zJI=Symbol(),Snt=window;var JnI=window;var wji=0,eO1=0,AO=[],TIm=0,mDm=!1,ta1=document.createTextNode("");(new window.MutationObserver(apC)).observe(ta1,{characterData:!0});var ul=new Map,rJ=0,$9d=function(k){this.mappedHandleId=k},BIt=function(k,E,S,R){this.mappedHandleId=k;
var V=this;this.mappedHandleId=k;this.callback=E;this.waitTime=S;this.schedulerPriority=R;this.handleId=_.ZJ.addJob(function(){V.callback();ul.delete(V.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.y(BIt,$9d);BIt.prototype.cancel=function(){_.ZJ.cancelJob(this.handleId);ul.delete(this.mappedHandleId)};
var Yni=function(k,E){this.mappedHandleId=k;var S=this;this.mappedHandleId=k;this.callback=E;this.handleId=Pjh(function(){S.callback();ul.delete(S.mappedHandleId)})};
_.y(Yni,$9d);Yni.prototype.cancel=function(){var k=this.handleId-eO1;k<0||AO.length<=k||(AO[k]=null);ul.delete(this.mappedHandleId)};var oGj=function(){};
oGj.prototype.cancel=function(){this.jobHandle!==void 0&&(W3e(this.jobHandle),this.jobHandle=void 0)};
oGj.prototype.run=function(k,E,S){var R=this;this.cancel();this.callback=k;this.jobHandle=_.xT(function(){k();R.callback=void 0},E,S)};
oGj.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var F3I=new WeakMap;var f68=qN(function(k){for(var E=k,S=0;S<3;S++)E=Object.getPrototypeOf(E);delete E.prototype.connectedCallback;var R=function(){return k.apply(this,arguments)||this};
_.y(R,k);R.prototype._attachDom=function(V){if(!V)return null;var N=(0,_.Rc)(this.hostElement);N.attachShadow({mode:"open",shadyUpgradeFragment:V});N.shadowRoot.appendChild(V);return N.shadowRoot};
R.prototype._takeAttributes=function(){for(var V=this.hostElement.attributes,N=0;N<V.length;N++){var h=V[N],J=void 0,m=void 0;(m=(J=this).__attributeReaction)==null||m.call(J,h.name,null,h.value)}};
R.prototype._readyClients=function(){k.prototype._readyClients.call(this);this.root=this};
R.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);k.prototype.connectedCallback.call(this)};
_.mt.Object.defineProperties(R,{template:{configurable:!0,enumerable:!0,get:function(){return R.prototype._template}}});
return R}),vUC=qN(function(k){var E=function(){return k.apply(this,arguments)||this};
_.y(E,k);E.prototype.created=function(){if(this.__notifyEffects)for(var S=_.n(Object.values(this.__notifyEffects)),R=S.next();!R.done;R=S.next()){R=_.n(R.value);for(var V=R.next();!V.done;V=R.next())V.value.fn=HEt}if(this.__reflectEffects)for(S=_.n(Object.values(this.__reflectEffects)),R=S.next();!R.done;R=S.next())for(R=_.n(R.value),V=R.next();!V.done;V=R.next())V.value.fn=K3h};
E.prototype._addEventListenerToNode=function(S,R,V){S=jN(S);s2(S,R,V)||k.prototype._addEventListenerToNode.call(this,S,R,V)};
E.prototype._removeEventListenerFromNode=function(S,R,V){S=jN(S);l2(S,R,V)||k.prototype._removeEventListenerFromNode.call(this,S,R,V)};
E.prototype._propertiesChanged=function(S,R,V){if(this.__dataToNotify&&this.__notifyEffects)for(var N=_.n(Object.keys(this.__dataToNotify)),h=N.next();!h.done;h=N.next()){h=h.value;var J=UDb(h);this.__notifyEffects[J]||delete this.__dataToNotify[h]}else this.__dataToNotify=null;k.prototype._propertiesChanged.call(this,S,R,V)};
E.prototype.fire=function(S,R,V){R=R===void 0?{}:R;var N;return _.Me(jN((N=V==null?void 0:V.node)!=null?N:this),S,R,V)};
E.prototype._ensureAttribute=function(S,R){var V=jN(this);V.hasAttribute(S)||Kv(V,R,S)};
E.prototype.isLightDescendant=function(S){var R=jN(this);return jN(R)!==S&&_.Cc(R).contains(S)&&_.Cc(R).getRootNode()===_.Cc(S).getRootNode()};
return E});
_.W7.ready=function(){var k;((k=this.hostElement)!=null?k:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var E;((E=this.hostElement)!=null?E:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.KS._subscribeIronResize=function(k){var E;((E=k.hostElement)!=null?E:k).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.KS._unsubscribeIronResize=function(k){var E;((E=k.hostElement)!=null?E:k).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var rnj=[Array,Boolean,Date,Number,Object,String],$T=function(k,E,S,R){this.polySiInfo=k;this.polySiParams=E;this.polySiContext=S;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;R||this instanceof HTMLElement&&(R=this);if(!R)throw Error("Qg");this.allowedProps=E.allowedProps;this.hostElement=R;this.is=k.is;this.upgradeDisabled=!!E.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");k=new Set(E.reactiveSchemas.filter(function(V){return V.type!==
"observe"}).map(function(V){return V.propertyKey}));
this.signalProxy=new sE(this,void 0,{reactiveProps:k,reactivityMode:E.reactivityMode});this.__dataHasAccessor={};E=_.n(E.reactiveSchemas);for(k=E.next();!k.done;k=E.next())k=k.value,k.type==="signal"&&(this.__dataHasAccessor[k.propertyKey]=!0);this.upgradeDisabled||b$C(this)};
$T.prototype.getExtraMethodsToForward=function(){return[]};
var b$C=function(k){k.polySiContext.didRegister||(k.registered(),k.polySiContext.didRegister=!0);k.polySiContext.finalizedTemplate||(k.polySiContext.finalizedTemplate={},k.polySiParams.templateGetter&&(k.polySiContext.finalizedTemplate.processedTemplate=cnb(k.polySiParams.templateGetter,k.polySiParams.is)));Z$C(k);var E=k.hostElement;E.loggingStatus!=null||(E.loggingStatus={});E.loggingStatus.isInitializing=!0;_.FF(function(){return void k.created()});
E.loggingStatus.isInitializing=!1;k.isPolySiElementConnected&&d9j(k)},d9j=function(k){k.didCallReady||(_.FF(function(){return void k.ready()}),k.didCallReady=!0);
k.isAttached=!0;k.attached()};
_.I=$T.prototype;_.I.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||d9j(this)};
_.I.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.I.attributeChangedCallback=function(k,E,S){if(this.upgradeDisabled)k==="disable-upgrade"&&S===null&&(this.upgradeDisabled=!1,b$C(this));else if(E!==S){var R=_.Ir(k),V=this.polySiContext.typesForSignals[R];if(V&&(!this.reflecting||_.Y("polysi_attribute_changed_serializing_killswitch"))){switch(V){case Object:try{var N=JSON.parse(S)}catch(J){N=S}break;case Array:try{N=JSON.parse(S)}catch(J){N=null}break;case Date:N=isNaN(S)?String(S):Number(S);N=new Date(N);break;case Boolean:N=S!==null;break;case Number:N=
Number(S);break;default:N=S}this[R]=N}R=_.n(this.polySiParams.behaviors);for(V=R.next();!V.done;V=R.next())N=void 0,(N=V.value.attributeChanged)==null||N.call(this,k,E,S);var h;(h=this.attributeChanged)==null||h.call(this,k,E,S)}};
_.I.attributeChangedCallbackWrapper=function(k,E,S){this.attributeChangedCallback(k,E,S)};
_.I.setPropertiesFromInitialAttributeValues=function(){for(var k=0;k<this.hostElement.attributes.length;k++){var E=this.hostElement.attributes[k];(E.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(E.name))&&this.attributeChangedCallback(E.name,null,E.value)}};
_.I.created=function(){this.provide=this.polySiParams.provide;var k;(k=this.initializeInjection)==null||k.call(this);k=_.n(this.polySiParams.reactiveSchemas);for(var E=k.next();!E.done;E=k.next())E=E.value,E.type==="signal"&&(this.mutablePropNames.add(E.propertyKey),pv(this.signalProxy,E.propertyKey));Ant(this,this.polySiInfo,this.polySiParams.behaviors);k=_.n(this.polySiParams.reactiveSchemas);for(E=k.next();!E.done;E=k.next())E=E.value,E.type==="signal"&&E.value!==void 0&&(this.signalProxy.model[E.propertyKey]=
typeof E.value==="function"?E.value.call(this):E.value);if(this.polySiParams.signalProperties)for(k=_.n(this.polySiParams.signalProperties),E=k.next();!E.done;E=k.next()){E=E.value;var S=void 0;((S=this.__signalCache)==null?0:S.has(E))||(this.signalProxy.model[E]=void 0)}L6A||siY(this);pje(this);k=_.n(this.polySiParams.behaviors);for(E=k.next();!E.done;E=k.next())S=void 0,(S=E.value.created)==null||S.call(this);var R;(R=this.polySiInfo.created)==null||R.call(this)};
_.I.registered=function(){var k=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var E=Object.getPrototypeOf(this);E.addReactiveSchema=function(J){k.polySiParams.reactiveSchemas.push(J)};
for(var S=_.n(this.polySiParams.behaviors),R=S.next();!R.done;R=S.next()){var V=void 0;(V=R.value.beforeRegister)==null||V.call(E)}var N;(N=this.polySiInfo.beforeRegister)==null||N.call(E);E.addReactiveSchema=xDe;S=_.n(this.polySiParams.behaviors);for(R=S.next();!R.done;R=S.next())V=void 0,(V=R.value.registered)==null||V.call(E);var h;(h=this.polySiInfo.registered)==null||h.call(E)};
_.I.ready=function(){var k;(k=this.beforeReady)==null||k.call(this);L6A&&siY(this);var E;if(k=(E=this.polySiContext.finalizedTemplate)==null?void 0:E.processedTemplate){k=hOl(k.template,k.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:k.hasInsertionPoint,thisCtx:this});E=k.nodesById;k=k.root;var S=this.hostElement;var R=R===void 0?!1:R;S=(0,_.Rc)(S);if(!S.attachShadow)throw Error("Gd");if(!S.shadowRoot||R)S.attachShadow({mode:"open",shadyUpgradeFragment:k}),S.shadowRoot.appendChild(k);
this.root=S.shadowRoot;this.$=E}l6C(this);R=_.n(this.polySiParams.behaviors);for(E=R.next();!E.done;E=R.next())k=void 0,(k=E.value.ready)==null||k.call(this);var V;(V=this.polySiInfo.ready)==null||V.call(this)};
_.I.attached=function(){for(var k=_.n(this.polySiParams.behaviors),E=k.next();!E.done;E=k.next()){var S=void 0;(S=E.value.attached)==null||S.call(this)}var R;(R=this.polySiInfo.attached)==null||R.call(this)};
_.I.detached=function(){for(var k=_.n(this.polySiParams.behaviors),E=k.next();!E.done;E=k.next()){var S=void 0;(S=E.value.detached)==null||S.call(this)}var R;(R=this.polySiInfo.detached)==null||R.call(this)};
var Z$C=function(k){for(var E=_.n(k.polySiParams.behaviors),S=E.next();!S.done;S=E.next())if(S=S.value,S.listeners)for(var R in S.listeners)iE1(k,k.hostElement,R,S.listeners[R]);if(k.polySiInfo.listeners)for(var V in k.polySiInfo.listeners)iE1(k,k.hostElement,V,k.polySiInfo.listeners[V])},iE1=function(k,E,S,R,V){k=JuC(k,R,V);
s2(E,S,k)||E.addEventListener(S,k);return k},siY=function(k){for(var E=_.n(k.polySiParams.reactiveSchemas),S=E.next();!S.done;S=E.next())S=S.value,S.type==="compute"||S.type==="computeWithMethod"?aji(k.signalProxy,S,k):S.type==="redux"?wm1(k.signalProxy,S,k.store):S.type==="signal"&&S.readOnly&&TN1(k.signalProxy,S)},l6C=function(k){for(var E=_.n(k.polySiParams.reactiveSchemas),S=E.next(),R={};!S.done;R={schema$jscomp$12:void 0},S=E.next())R.schema$jscomp$12=S.value,R.schema$jscomp$12.type==="notify"?
BNI(k.signalProxy,R.schema$jscomp$12,k.hostElement):R.schema$jscomp$12.type==="observe"?YOC(k.signalProxy,R.schema$jscomp$12,k):R.schema$jscomp$12.type==="reflect"&&k.signalProxy.effect(function(N){return function(){var h=k.signalProxy.getWithPath([N.schema$jscomp$12.propertyKey]);
k.reflecting=!0;AuI(k.hostElement,N.schema$jscomp$12.propertyKey,h,!0);k.reflecting=!1}}(R));
if(k.reflectedAttributes)for(E=_.n(Object.entries(k.reflectedAttributes)),R=E.next(),S={};!R.done;S={key$jscomp$939:void 0,value$jscomp$9908:void 0},R=E.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;S.key$jscomp$939=R;S.value$jscomp$9908=V;k.signalProxy.effect(function(N){return function(){k.reflecting=!0;AuI(k.hostElement,N.key$jscomp$939,(0,N.value$jscomp$9908)(),!0);k.reflecting=!1}}(S))}};
_.I=$T.prototype;_.I._setPendingProperty=function(k,E){this.set(k,E);return!1};
_.I._enableProperties=function(){};
_.I._setPendingPropertyOrPath=function(k,E){this.notifyPath(k,E);return!1};
_.I._addPropertyEffect=function(){};
_.I._stampTemplate=function(){throw Error("Rg");};
_.I.fire=function(k,E,S){E=E===void 0?{}:E;S=S===void 0?{}:S;var R,V,N={bubbles:(R=S.bubbles)!=null?R:!0,cancelable:!!S.cancelable,composed:(V=S.composed)!=null?V:!0},h;return _.Me(L3C((h=S.node)!=null?h:this.hostElement),k,E,N)};
_.I.get=function(k,E){var S=Hu(k);return E?cuC(E,S):k==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(S)};
_.I.linkPaths=function(){};
_.I.listen=function(k,E,S){k=L3C(k);this.boundListeners!=null||(this.boundListeners=new WeakMap);var R=this.boundListeners.get(k);R||(R={},this.boundListeners.set(k,R));var V=E+S;R[V]||(R[V]=iE1(this,k,E,S))};
_.I.notifyPath=function(k,E){this.signalProxy.notifyPath(Hu(k),arguments.length===2?{value:E}:void 0)};
_.I.canNotifyPath=function(k){return this.mutablePropNames.has(k)&&!Mp1(this.signalProxy,k)};
_.I.notifySplices=function(k,E){this.signalProxy.notifySplices(Hu(k),E)};
_.I.pop=function(k){var E=this.signalProxy;k=Hu(k);var S=_.n(k);k=S.next().value;S=Re(S);return pv(E,k).pop(S)};
_.I.push=function(k){var E=_.sX.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[Hu(k)].concat(_.$e(E)))};
_.I.set=function(k,E,S){if(S)throw Error("Sg");k==="hidden"?this.hostElement.hidden=!!E:this.signalProxy.setWithPath(Hu(k),E)};
_.I.setProperties=function(k){k=_.n(Object.entries(k));for(var E=k.next();!E.done;E=k.next()){var S=_.n(E.value);E=S.next().value;S=S.next().value;this[E]=S}};
_.I.splice=function(k,E,S){var R=_.sX.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[Hu(k),E,S].concat(_.$e(R)))};
_.I.unlinkPaths=function(){};
_.I.unlisten=function(k,E,S){k=L3C(k);if(this.boundListeners){var R=this.boundListeners.get(k);if(R){S=E+S;var V=R[S];V&&(l2(k,E,V)||k.removeEventListener(E,V),delete R[S])}}};
_.I.unshift=function(k){var E=_.sX.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[Hu(k)].concat(_.$e(E)))};
_.mt.Object.defineProperties($T.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 Maj=[Array,Boolean,Date,Number,Object,String];var Q9I=!1;var lO=function(){var k=HTMLElement.apply(this,arguments)||this;k.restamp=!1;k.notifyDomChange=!1;k.JSC$13686_didCallConnected=!1;k.JSC$13686_renderDebouncer=null;k.disableTemplateUpdateSignalImpl=fv()?void 0:_.yg(!1,void 0,"Ofhkwb");var E;k.getDisableTemplateUpdate=(E=k.disableTemplateUpdateSignalImpl)==null?void 0:E[0];var S;k.setDisableTemplateUpdate=(S=k.disableTemplateUpdateSignalImpl)==null?void 0:S[1];return k};
_.y(lO,HTMLElement);var MgA=function(k){k.conditionSignalImpl!=null||(k.conditionSignalImpl=new dj(_.yg(!1,void 0,"gE52Fb")));return k.conditionSignalImpl};
_.I=lO.prototype;_.I.showHideChildren=function(k){q1T(this,k,this.if)};
_.I.attributeChangedCallback=function(k,E,S){if(this.JSC$13686_didCallConnected)throw Error("Wg`"+k);k==="notify-dom-change"?this.notifyDomChange=S!==null:k==="restamp"&&(this.restamp=S!==null)};
_.I.debounceRender=function(){this.JSC$13686_renderDebouncer=_.N7(this.JSC$13686_renderDebouncer,QH,this.JSC$13686_renderImpl.bind(this));_.I0(this.JSC$13686_renderDebouncer)};
_.I.disconnectedCallback=function(){var k=(0,_.Rc)(this).parentNode;(!k||k.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in k&&!k.host)&&zg2(this)};
_.I.connectedCallback=function(){var k=this;this.JSC$13686_didCallConnected=!0;u0j?OE1():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.Y("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){MgA(k).getWithPath([]);k.debounceRender()})};
_.I.render=function(){_.JH()};
_.I.JSC$13686_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var k=this.if,E=!1;if(k){this.hasInstance()||(Qi2(this),E=!0);a:{var S=(0,_.Rc)(this).parentNode;if(this.hasInstance()){var R=this.instance.children;if((R==null?0:R.length)&&(0,_.Rc)(this).previousSibling!==R[R.length-1])for(var V=0;V<R.length;V++)(0,_.Rc)(S).insertBefore(R[V],this)}else{if(!S){S=!1;break a}O$p(this,S)}S=!0}if(!S)return}else this.restamp&&zg2(this);q1T(this,!1,k);k&&!E&&Qi2(this);x9d&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.I.hasInstance=function(){return!!this.instance};
var O$p=function(k,E){var S=k.parentSignalProxy;if(fv()){var R=_.n(_.yg(!0,void 0,"dkzufd"));var V=R.next().value;R=R.next().value;S=k.parentSignalProxy}else{var N;var h=new sE((N=GHj(k))!=null?N:{},function(m){var a=pv(k.parentSignalProxy,m).getChangeRecordSignal([]);m=_.yg(void 0,void 0,"iG8Uwe");var T=new dj(m);h.effect(function(){if(k.getDisableTemplateUpdate&&!k.getDisableTemplateUpdate()){var w=a();T.notifyPath(Hu(w.path),{value:w.value})}});
return T});
k.parentSignalProxy.childSignalProxies.push(h);var J=S=h}S=hOl(k.templateInfo,k.templateInfo.nodeInfoList,S,{eventListenerHost:k.eventListenerHost,hasInsertionPoint:k.templateInfo.hasInsertionPoint,thisCtx:k.eventListenerHost,enabledSignal:fv()?V:void 0,getModel:function(){return GHj(k)}}).root;
k.instance={root:S,children:[],hidden:!1,signalProxy:J,getTemplateUpdatesEnabled:V,setTemplateUpdatesEnabled:R};J=_.n(S.childNodes);for(V=J.next();!V.done;V=J.next())k.instance.children.push(V.value);(0,_.Rc)(E).insertBefore(k.instance.root,k)},GHj=function(k){if((k=k.parentSignalProxy.model)&&!k.hostElement){var E={},S;
for(S in k)k.hasOwnProperty(S)&&(E[S]=k[S]);return E}},zg2=function(k){if(k.instance){var E=k.instance.children;
if(E.length){var S=(0,_.Rc)(E[0]).parentNode;if(S){S=(0,_.Rc)(S);for(var R=0;R<E.length;R++)S.removeChild(E[R])}}fv()?k.instance.setTemplateUpdatesEnabled(!1):k.instance.signalProxy.dispose();k.instance=void 0}},q1T=function(k,E,S){E=E||!S;
k.instance&&k.instance.hidden!==E&&(k.instance.hidden=E,zOj(E,k.instance.children))},Qi2=function(k){if(fv()){var E=k.instance;
E&&lI(k.parentSignalProxy.owner,function(){return!E.getTemplateUpdatesEnabled()})&&E.setTemplateUpdatesEnabled(!0)}else k.setDisableTemplateUpdate(!1)};
_.mt.Object.defineProperties(lO.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var k=this;return lI(this.parentSignalProxy.owner,function(){return MgA(k).getWithPath([])})},
set:function(k){k||(fv()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));MgA(this).setWithPath([],!!k)}}});
_.mt.Object.defineProperties(lO,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",lO);var C04=[],M5=function(){var k=HTMLElement.apply(this,arguments)||this;k.as="item";k.indexAs="index";k.itemsIndexAs="itemsIndex";k.targetFramerate=20;k.notifyDomChange=!1;k.isDetached=!1;k.JSC$13693_renderDebouncer=null;k.instances=[];k.chunkingId=null;k.chunkCount=null;k.shouldMeasureChunk=!1;k.shouldContinueChunking=!1;k.renderStartTime=null;k.JSC$13693_didCallConnected=!1;return k};
_.y(M5,HTMLElement);var kvA=function(k){k.itemSignalImpl!=null||(k.itemSignalImpl=new dj(_.yg(C04,void 0,"YBrqgf")));return k.itemSignalImpl},EdC=function(k,E){Array.isArray(E)||(E=C04);
kvA(k).setWithPath([],E)};
_.I=M5.prototype;_.I.showHideChildren=function(k){for(var E=_.n(this.instances),S=E.next();!S.done;S=E.next())zOj(k,S.value.children)};
_.I.notifyPath=function(k,E){k=Hu(k);k[0]==="items"&&(k.length===1?EdC(this,E):kvA(this).setWithPath(k.slice(1),E))};
_.I.canNotifyPath=function(k){return k==="items"};
_.I.attributeChangedCallback=function(k,E,S){if(this.JSC$13693_didCallConnected)throw Error("Xg`"+k);k==="as"?this.as=S:k==="index-as"?this.indexAs=S:k==="items-index-as"?this.itemsIndexAs=S:k==="initial-count"?this.initialCount=Number(S):k==="notify-dom-change"?this.notifyDomChange=S!==null:k==="target-framerate"&&(this.targetFramerate=Number(S))};
_.I.disconnectedCallback=function(){this.isDetached=!0;for(var k=0;k<this.instances.length;k++)SMd(this,k);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.I.connectedCallback=function(){var k=this,E=kvA(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var V=E(),N=Hu(V.path);if(N[0]===void 0||N[0]==="splices"||N[0]==="length")k.debounceRender();else{var h=N[0];if(h=k.instances[typeof h==="string"?Math.floor(Number(h)):h])N=[k.as].concat(_.$e(N.slice(1))),h.signalProxy.notifyPath(N,V)}});
this.JSC$13693_didCallConnected=!0;u0j?OE1():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var S=(0,_.Rc)((0,_.Rc)(this).parentNode),R=0;R<this.instances.length;R++)S.insertBefore(this.instances[R].root,this);this.chunkingId&&this.render()}};
_.I.debounceRender=function(){this.JSC$13693_renderDebouncer=_.N7(this.JSC$13693_renderDebouncer,QH,this.JSC$13693_renderImpl.bind(this));_.I0(this.JSC$13693_renderDebouncer)};
_.I.render=function(){this.debounceRender();_.JH()};
_.I.JSC$13693_renderImpl=function(){var k=this;if(!this.parentSignalProxy.isDisposed){var E=this.items,S=R$C(this,E.length);V3d(this,E,S);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){k.chunkingId=null;if(k.shouldMeasureChunk){var R=performance.now()-k.renderStartTime;k.chunkCount=Math.round(Math.ceil(1E3/k.targetFramerate)/R*k.chunkCount)||1}k.shouldContinueChunking&&k.debounceRender()}));
x9d&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var R$C=function(k,E){var S=E,R=k.instances.length;if(k.initialCount){if(k.chunkCount){var V=Math.min(Math.max(E-R,0),k.chunkCount);S=Math.min(R+V,E)}else S=Math.min(E,k.initialCount),V=Math.max(S-R,0),k.chunkCount=V||1;k.shouldMeasureChunk=V===k.chunkCount;k.shouldContinueChunking=S<E;k.renderStartTime=performance.now()}return S},V3d=function(k,E,S){for(var R=0;R<S;R++){var V=k.instances[R],N=E[R];
V?(V.signalProxy.setWithPath([k.as],N),V.signalProxy.setWithPath([k.indexAs],R)):NoC(k,N,R)}for(E=k.instances.length-1;E>=R;E--)S=k,V=E,SMd(S,V),_.n(S.instances.splice(V,1)).next().value.signalProxy.dispose()},SMd=function(k,E){k=k.instances[E];
E=(0,_.Rc)(k.root);for(var S=0;S<k.children.length;S++)E.appendChild(k.children[S])},NoC=function(k,E,S){var R={};
E=Object.assign({},IM2(k),(R[k.as]=E,R[k.indexAs]=S,R[k.itemsIndexAs]=S,R));var V=new sE(E,function(h){if(h!==k.as&&h!==k.indexAs){if(h===k.itemsIndexAs)return pv(V,k.indexAs);var J=pv(k.parentSignalProxy,h).getChangeRecordSignal([]);h=_.yg(void 0,void 0,"T21Pqc");var m=new dj(h);V.effect(function(){var a=J();m.notifyPath(Hu(a.path),{value:a.value})});
return m}});
k.parentSignalProxy.childSignalProxies.push(V);R=hOl(k.templateInfo,k.templateInfo.nodeInfoList,V,{eventListenerHost:k.eventListenerHost,getModel:function(){var h={};return Object.assign({},IM2(k),(h[k.as]=V.model[k.as],h[k.indexAs]=V.model[k.indexAs],h[k.itemsIndexAs]=V.model[k.indexAs],h))},
hasInsertionPoint:k.templateInfo.hasInsertionPoint,thisCtx:k.eventListenerHost,methodInvocationRequirement:jiT,enabledSignal:k.stampingEnabled}).root;E={root:R,children:[],signalProxy:V};R=_.n(R.childNodes);for(var N=R.next();!N.done;N=R.next())E.children.push(N.value);R=(R=k.instances[S+1])?R.children[0]:k;(0,_.Rc)((0,_.Rc)(k).parentNode).insertBefore(E.root,R);k.instances[S]=E},IM2=function(k){if((k=k.parentSignalProxy.model)&&!k.hostElement){var E={},S;
for(S in k)k.hasOwnProperty(S)&&(E[S]=k[S]);return E}};
M5.prototype.itemForElement=function(k){var E=this,S=this.instances.find(function(R){return R.children.includes(k)});
if(S)return lI(this.parentSignalProxy.owner,function(){return S.signalProxy.getWithPath([E.as])})};
M5.prototype.indexForElement=function(k){var E=this.instances.findIndex(function(S){return S.children.includes(k)});
return E>=0?E:void 0};
_.mt.Object.defineProperties(M5.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var k=this;return lI(this.parentSignalProxy.owner,function(){return kvA(k).getWithPath([])})},
set:function(k){EdC(this,k)}},
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}}});
_.mt.Object.defineProperties(M5,{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",M5);var ndA,idj;_.q5=new _.QE("STATE_STORE_TOKEN");ndA=new _.QE("SELECT_TOKEN");idj=new _.QE("DISPATCH_TOKEN");var RoI={getSelectFn:function(){var k;return(k=_.en().resolve(_.mz(ndA)))!=null?k:Gyl},
getDispatchFn:function(){var k;return(k=_.en().resolve(_.mz(idj)))!=null?k:_.vu().dispatch.bind(_.vu())},
getAppStore:function(){return _.en().resolve(_.q5)}},Cjb,SCh=!1;var nmm,g08={traceAllComponents:_.Y("web_tracing_all_components"),exportToCsi:_.Y("web_tracing_export_to_csi"),exportBreadcrumbs:_.Y("web_enable_tracing"),bufferSize:_.wO("web_max_tracing_events"),enabledSpansArray:_.B_("web_tracing_enabled_spans"),exportToDevTools:_.Y("web_tracing_export_to_devtools"),sessionReplayEvents:_.wO("web_tracing_session_replay")};nmm=new UtA;var m_h=function(){};var hoI=void 0;var h$d=function(){};
h$d.prototype.hasAttribute=function(k){if(k==="dir")return!1;if(k==="disable-upgrade"){var E,S;return(S=(E=this.hostElement)==null?void 0:E.hasAttribute("disable-upgrade"))!=null?S:!1}throw Error("Yg`"+k);};
h$d.prototype.attributeChangedCallbackWrapper=function(k,E,S){if(k==="disable-upgrade"&&this.__isUpgradeDisabled&&S===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var R;((R=this.hostElement)!=null?R:this).isConnected&&this.connectedCallback()}else E===S||this.__isReflecting||this.attributeChangedCallback(k,E,S)};
h$d.prototype.getExtraMethodsToForward=function(){for(var k=this,E=[],S=_.n(JT4),R=S.next(),V={};!R.done;V={tagName$jscomp$67:void 0,name$jscomp$628:void 0},R=S.next())V.name$jscomp$628=R.value,R=void 0,V.name$jscomp$628==="_setPendingProperty"?(V.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),R=function(N){return function(h,J,m){wJ(N.tagName$jscomp$67,h,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return k._setPendingProperty(h,J,m)}}(V)):R=function(N){return function(){return k[N.name$jscomp$628].apply(k,
_.$e(_.sX.apply(0,arguments)))}}(V),E.push([V.name$jscomp$628,
R]);return E};
for(var tSb=vUC(f68((0,_.BD)(h$d))),B6m=["disabled","disable-upgrade"],cT2=(0,_.BD)(function(){}),mE5=new Set(Object.getOwnPropertyNames(cT2.prototype)),omi=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.$e(mE5))),W_1=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),JT4=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),e$4=new Set([].concat(_.$e(W_1),_.$e(JT4),_.$e(mE5))),aMT=_.n(e$4),t3C=aMT.next();!t3C.done;t3C=aMT.next())bWe.add(t3C.value);var yqR={created:function(){pje(this);this.initializeInjection()}};var uJ1=!1,qO=window.ShadyDOM,b4l=["appendChild","insertBefore","removeChild","replaceChild"],vmh=[Node];qO&&vmh.push(qO.Wrapper);var zoh,QMh,CNC={};var zN,QO=new Set;var nUj=new Set("context didCallReady is info params signalProxy".split(" ")),hgI="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),JcI="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var ToC=pf({entities:Ow1}),wGC=new fr(ToC);var Po8=function(){return _.mi.apply(this,arguments)||this};
_.y(Po8,_.mi);_.mt.Object.defineProperties(Po8.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return wGC}}});
_.Z([_.eN()],Po8);_.zM=[bO.prototype,Po8.prototype];_.QW={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var k=this,E={};setTimeout(function(){var S;return _.Me((S=k.hostElement)!=null?S:k,"yt-live-chat-add-tooltip-target",E)},0);
this.handler_=E.handler},
detached:function(){if(this.handler_){var k;this.handler_.removeElementFromSupportingTooltips((k=this.hostElement)!=null?k:this)}this.handler_=null}}};_.Rv=new _.QE("ICON_MANAGER_TOKEN");var Boj=[48,20,18,16,15,13,12],rcb=new Map,gU1=new Set,ycb=new Set,XAi=new Set,F6m=new Set,oUt=new Set,H$m=new Promise(function(k){var E=!1,S=!1,R=!1,V=[],N=function(h){if("detail"in h)if(h=h.detail,h.name==="yt-icons")U9I(h),E=!0;else if(h.name==="yt-sys-icons")U9I(h),S=!0;else{var J;((J=h.name)==null?0:J.includes("yt-sys-icons"))&&h.size!==24&&(U9I(h,!0),V.push(h.size),V.length===Boj.length&&(R=!0))}E&&S&&R&&(window.removeEventListener("iron-iconset-added",N),k())};
window.addEventListener("iron-iconset-added",N)}),pAl=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"]]);_.OE={};_.OE.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.$n,computeHref_:function(k,E){E=E===void 0?!1:E;if(!k||k.commandExecutorCommand)return null;var S=evl(k,E);return E||S!==null?S?_.Y("enable_polymer_resin")?_.ZF(S).toString():S:null:(_.dg(new _.LC("computeHref was null",this.is,k)),null)},
computeOptionalHref_:function(k){return this.computeHref_(k,!0)},
computeNofollow_:function(k){return k?Vqi(k)?"nofollow":null:null},
computeIcon_:function(k){return k&&k.iconType?_.SF(k.iconType):""},
resolveCommand:function(k,E,S){E=E===void 0?{}:E;return _.Ni(k,this.hostElement,E,S===void 0?!1:S)}};var WX8,GM;_.YM4={};WX8=null;
GM={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_=UZ1(this.viewroot));_.xT(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var k=this;this.unobserve_();if(_.Y("kevlar_vimio_use_shared_monitor"))D9j(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 E=[];this.visibilityOptionVisible_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return k.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return k.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&E.push(this.visibilityObserver.observe(this.hostElement,function(){return k.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=E}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){u0l(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 k=_.lh(this.parentNode,function(S){var R,V=(R=S.polymerController)!=null?R:S;return!!V.getVisibilityObserverForChild&&V.getVisibilityObserverForChild()},!0);
if(k){var E;this.localVisibilityObserver_=((E=k.polymerController)!=null?E:k).getVisibilityObserverForChild()}else WX8||(WX8=UZ1()),this.localVisibilityObserver_=WX8;return this.localVisibilityObserver_},visibilityCallback:function(k){k?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.Y("kevlar_use_vimio_behavior")||(GM={});GM&&!_.Y("kevlar_use_vimio_behavior")&&(delete GM.attached,delete GM.detached);_.YM4.YtVisibilityObserverBehavior=[GM];var FX2={};FX2.YtVisualElementBehavior=[_.YM4.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.Y("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.Y("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var k=this.getScreenLayer&&this.getScreenLayer(),E=this.getVisibilityLogger();E&&E.reportShown(this,void 0,k)}},
onHidden:function(){if(_.Y("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.Y("kevlar_vimio_use_shared_monitor")){var k=this.getScreenLayer&&this.getScreenLayer(),E=this.getVisibilityLogger();E&&E.reportHidden(this,void 0,k)}},
getVisibilityLogger:function(){return _.Y("kevlar_use_vimio_behavior")?_.iY():null},
shouldSkipLogging:function(){if(_.Mg("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var k=this.getParentRenderer&&this.getParentRenderer();if(!k)return!1;var E,S=(E=k.polymerController)!=null?E:k;if(!S.data)return!1;k=this.data.trackingParams;k=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:k;var R;E=(R=S.data)==null?void 0:R.trackingParams;var V,N;E=((V=S.data)==null?0:V.loggingDirectives)?(N=S.data)==null?void 0:N.loggingDirectives.trackingParams:E;return k&&E&&k===
E}}];var vUR=new Map,TT;var Kph=function(k){this.layer=k},C9=function(k){return k.layer!==void 0?k.layer:k.parent?C9(k.parent):k.layer=0};var Mgi;_.O={};Mgi=0;_.O.YtRendererBehavior=[_.OE.YtComponentBehavior,FX2.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_:_.Y("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var k,E;(E=(k=this.monitorScrollElement)!=null?k:this.hostElement)==null||E.removeEventListener("scroll",_.Ic(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();$9t(this.hostElement);uJY(_.xN(),this.hostElement);vE.delete(this.hostElement)},
registerRenderer:function(k){var E;((E=k.polymerController)!=null?E:k).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(k),this.markDirty())},
unregisterRenderer_:function(k){this.useVimio_||(this.childCache_.delete(k),this.markDirty())},
attached:function(){var k=this,E=this.getParentRenderer();if(E){var S,R,V;(R=(S=(V=E.polymerController)!=null?V:E).registerRenderer)==null||R.call(S,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var N,h;(h=(N=this.monitorScrollElement)!=null?N:this.hostElement)==null||h.addEventListener("scroll",_.Ic(this,this.onScroll))}_.ZJ.addJob(function(){b$1(k.hostElement)},8);
S=new Kph(this.screenLayer||void 0);(E=vE.get(E))&&E.layerNode&&(S.parent=E.layerNode);E={};B_1(this.hostElement,(E.isRenderer=!0,E.layerNode=S,E[p4h]=this.data,E))},
getParentRenderer:function(){for(var k=this.hostElement.parentNode,E,S;k&&((E=vE.get(k))==null||!E.isRenderer)&&!((S=k.polymerController)!=null?S:k).isRenderer_;)k=k.parentNode||k.host;return k},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.Y("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.qg("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.Y("debug_web_ve_data")&&this.data.trackingParams){var k="";try{k=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(S){_.bM(S)}if(k){var E=pE1(k,1);E!==void 0&&(this.hostElement.dataset.veIndex=String(E));k=pE1(k,2);
k!==void 0&&(this.hostElement.dataset.ve=String(k))}}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,_.Y("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.tV(this.data.loggingDirectives.trackingParams)),this.visualElement=_.hV(_.JV(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var k=this.data.targetId;_.L_p(_.xN(),k,this.hostElement)}else uJY(_.xN(),this.hostElement)},
onScroll:function(){var k=Date.now();k-this.lastHandledScroll_<50||(this.lastHandledScroll_=k,this.markDirty())},
markDirty:function(){_.Y("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():q1h(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var k=this.getParentRenderer();if(k&&(k=vE.get(k))&&k.layerNode)return C9(k.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.$e(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var k=0;k<this.data.impressionEndpoints.length;k++)this.sendImpression(this.data.impressionEndpoints[k]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(k){k.clickTrackingParams&&delete k.clickTrackingParams;var E,S;(k==null?0:(E=k.commandMetadata)==null?0:(S=E.webCommandMetadata)==null?0:S.sendPost)?_.Qw(this.hostElement,[k,{impression:!0}]):_.Ot(this.hostElement,[k],this.hostElement)},
logExplicitClick:function(k){var E=_.Fe(this.getScreenLayer());if(E){var S,R=(S=k.polymerController)!=null?S:k;k=R.visualElement;R=R.trackingParams||R.clickTrackingParams;!k&&R&&(k=_.tV(R));k&&_.Dv(E,k)}}}];var yT2={},CM=function(){return _.mi.apply(this,arguments)||this};
_.y(CM,_.mi);CM.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
CM.prototype.onPdgItemBehaviorClick=CM.prototype.onPdgItemBehaviorClick;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],CM.prototype,"data",void 0);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],CM.prototype,"onPdgItemBehaviorClick",null);_.Z([_.eN()],CM);yT2.YtPdgLiveChatItemBehavior=[CM.prototype,_.O.YtRendererBehavior];var odz;var XGT;_.kB={};_.kB.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var EN=function(){var k=ad.apply(this,arguments)||this;k.switchTemplateAtRegistration=!1;return k};
_.y(EN,ad);EN.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||GHl(this),_.XjC(this,"doRender"),this.doRender())};
EN.prototype.debounceRender=function(){this.templatingFn&&_.Lv(this,"doRender",this.doRender)};
EN.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.bM(Error("hh"))};
EN.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.Z([VuI()],EN);var gdj=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,S6={},SMI=(S6[1]={filterString:null,isUnwrappable:null,unwrap:null},S6[2]={filterString:function(k,E,S){return CU(S)},
isUnwrappable:function(k){return k instanceof qU},
unwrap:function(k){return OX(k)}},S6[3]={filterString:function(k,E,S){return gdj.test(S)?S:bu.toString()},
isUnwrappable:function(k){return jr(k)},
unwrap:function(k){return _.DF(k)}},S6[4]={filterString:function(){return bu.toString()},
isUnwrappable:function(k){return k instanceof Kg},
unwrap:function(k){return _.AJ(k).toString()}},S6[5]={filterString:function(k,E,S){return S},
isUnwrappable:function(k){return typeof k==="string"},
unwrap:function(k){return k.toString()}},S6[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(k){return k instanceof _.SO},
unwrap:function(k){return Ve(k)}},S6[8]={filterString:function(k,E,S){S=String(S).toLowerCase();
return pnC(k,E,S)?S:"zClosurez"},
isUnwrappable:null,unwrap:null},S6[10]={filterString:null,isUnwrappable:null,unwrap:null},S6);Jw[Qg["default"]]=V3t;var No1=[];(function(){var k=hj;hj=function(E){k==null||k(E);YX(function(){for(var S=0;S<E.length;S++)IMb(E[S])})}})();var UE5=function(){var k=_.mi.apply(this,arguments)||this;k.hasUnmounted=!1;return k};
_.y(UE5,_.mi);_.I=UE5.prototype;_.I.beforeRegister=function(){var k=this.doIdomRender;this.templatingFn?_.bM(Error("gh")):(this.templatingFn=k,this.switchTemplateAtRegistration=!0,Edh(this))};
_.I.attached=function(){};
_.I.detached=function(){IMb(this.hostElement)};
_.I.renderIdom=function(){throw Error("jh");};
_.I.doIdomRender=function(){var k=this;Xpm(this.hostElement,function(){k.renderIdom()})};
_.Z([_.eN()],UE5);var Hd4=[EN.prototype,UE5.prototype];var KXz,pGC=function(){return KXz!==void 0?KXz:KXz=document.createElement("template")};
document.head.appendChild(pGC().content);var ATz;var rTd,uL2=function(){return rTd!==void 0?rTd:rTd=document.createElement("template")};
document.head.appendChild(uL2().content);var xE5;var LXY=document.head,jj4=LXY.appendChild,DE4;if(xE5===void 0){var $Ej=document.createElement("template");_.X($Ej,"\x3c!--css-build:shady--\x3e");$Ej.content.insertBefore(uL2().content.cloneNode(!0),$Ej.content.firstChild);xE5=$Ej}DE4=xE5;jj4.call(LXY,DE4.content);var fMC,vdY=function(){return fMC!==void 0?fMC:fMC=document.createElement("template")};
document.head.appendChild(vdY().content);var bdd;var ZdY=document.head,dE2=ZdY.appendChild,sjd;if(bdd===void 0){var lMT=document.createElement("template");_.X(lMT,"\x3c!--css-build:shady--\x3e");lMT.content.insertBefore(vdY().content.cloneNode(!0),lMT.content.firstChild);bdd=lMT}sjd=bdd;dE2.call(ZdY,sjd.content);var M34=document.head,qMA=M34.appendChild,z$d;if(ATz===void 0){var Qjz=document.createElement("template");_.X(Qjz,"\x3c!--css-build:shady--\x3e");Qjz.content.insertBefore(pGC().content.cloneNode(!0),Qjz.content.firstChild);ATz=Qjz}z$d=ATz;qMA.call(M34,z$d.content);var OdC,GvT=function(){return OdC!==void 0?OdC:OdC=document.createElement("template")};
document.head.appendChild(GvT().content);var CoC;_.jF=new _.QE("DARK_THEME_TOKEN");var z$I=new _.z_("accessibilityProperties");var qMi=new _.z_("layoutProperties");var Qje=new _.z_("imageType");var khd={};if("ytAttributedStringLinkHoverColor"in khd)throw Error("mh`ytAttributedStringLinkHoverColor");(function(k,E){khd[k]="value"in E&&"unit"in E?mEj(k,E):function(S){try{return E(S)}catch(R){throw Error("kh`"+k+"`"+R.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var EKC=function(k){var E=this;this.holdTime=k===void 0?500:k;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(S){var R=new CustomEvent("LONG_PRESS"),V;(V=S.changedTouches[0].target)==null||V.dispatchEvent(R)};
this.ontouchstart=function(S){E.longPressTimeout=_.kq(_.ZJ,function(){E.onlongpress(S);E.longPressOccurred=!0},E.holdTime)};
this.ontouchmove=function(){_.ZJ.cancelJob(E.longPressTimeout);E.longPressTimeout=NaN;E.longPressOccurred=!1;E.moveOccurred=!0};
this.ontouchend=function(S){if(E.longPressTimeout&&!E.longPressOccurred&&!E.moveOccurred){var R;(R=S.changedTouches[0].target)==null||R.dispatchEvent(new Event("click"))}_.ZJ.cancelJob(E.longPressTimeout);E.longPressTimeout=NaN;E.longPressOccurred=!1;E.moveOccurred=!1}};var pGR=function(k,E){EKC.call(this,E);var S=this;this.callback=k;this.onlongpress=function(R){var V;(V=S.callback)==null||V.call(S,R)}};
_.y(pGR,EKC);var ATe=function(k,E){var S=Object.assign({},E);k=_.n(new Map([["ontouchstart",k.ontouchstart],["ontouchend",k.ontouchend],["ontouchmove",k.ontouchmove]]));for(var R=k.next(),V={};!R.done;V={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},R=k.next()){var N=_.n(R.value);R=N.next().value;N=N.next().value;V.eventName$jscomp$103=R;V.eventHandler$jscomp$2=N;E[V.eventName$jscomp$103]=function(h){return function(J){var m;(m=S[h.eventName$jscomp$103])==null||m.call(S,J);(0,h.eventHandler$jscomp$2)(J)}}(V)}};_.t3=new _.QE("COMMAND_HANDLER_TOKEN");var aMh=new _.z_("parallelCommand");var wGR=new _.z_("performOnceCommand");var Toh=new _.z_("serialCommand");var Pom=void 0;var SZ5=function(){this.data=[];this.consumer=null};
SZ5.prototype.push=function(k){this.consumer?this.consumer(k):this.data.push(k)};var uK={};_.yg(uK,void 0,"sgPmTd");_.yg(null,void 0,"jypsq");_.yg(null,void 0,"mWiOof");var r5C=new SZ5;var gdl=[gJC,UUY,Hgz,pUd,K$d,XUd,AJC,rJY];var lMh=new _.z_("bracketTextDecorator");var xX=new _.z_("highlightTextDecorator");_.$X=new _.QE("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var vdI=function(){},Rq2;
(Rq2=window.requestIdleCallback)==null||Rq2.bind(window);var Zd1={calledOnce:!1,state:"visible"},bdt={calledOnce:!1,state:"hidden"};var Vtp=new _.QE("ICON_WIZ_COMPONENT_TOKEN");_.i_=_.f(function(k){var E=k.icon;var S=k.active;var R=k.className;var V=k.style;var N=k.dataSelected;var h=k.dataDisabled;var J=k.role;var m=k.animateIcon;var a=k.themeOverride;var T=k.ariaHidden;var w=k.ariaExpanded;var P=k.ariaLabel;var B=k.tabindex;var F=k.id;var K=k.size;var r=k.iconFilter;var x=k.gradientColor;var L=k.onKeydown;return _.e(_.t,{cond:E,then:function(){var q=_.en().resolve(Vtp);return _.e(q,{icon:E,dataSelected:N,dataDisabled:h,animateIcon:m,themeOverride:a,ariaExpanded:w,tabindex:B,
id:F,active:S,size:K,role:J,className:R,ariaHidden:T,ariaLabel:P,style:function(){return V!=null&&V()||K==null||!K()?V==null?void 0:V():"width: "+(K==null?void 0:K())+"px;height: "+((K==null?void 0:K())+"px;")},
iconFilter:r,gradientColor:x,onKeydown:L})}})},"k");
_.i_.idomCompat={callbacks:{onKeydown:!0}};var mrt=window.devicePixelRatio||1;var TnA=new Map([["yt_outline_bag_black_24","bag"]]);var RA=function(k){var E=this;this.margin=.1;this.whenInViewportWithMargin=k;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){E.requestScan()});
window.addEventListener("touchend",function(){E.requestScan()});
window.addEventListener("updateui",function(){E.requestScan()});
var S=new _.NJ((0,_.uk)(this.requestScan,this),100);window.addEventListener("scroll",function(){S.fire()},!0);
window.addEventListener("resize",(0,_.uk)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){E.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.uk)(this.requestScan,this))};
RA.prototype.observe=function(k){this.observationTargets.includes(k)||this.observationTargets.push(k)};
RA.prototype.unobserve=function(k){this.observationTargets=this.observationTargets.filter(function(E){return E!==k})};
RA.prototype.requestScan=function(){var k=this;this.scanRequested||(YX(function(){NnC(k)}),this.scanRequested=!0)};
var NnC=function(k){var E=(1+k.margin)*(document.documentElement.clientHeight||window.innerHeight);k.observationTargets=k.observationTargets.filter(function(S){var R=S.getBoundingClientRect();(R=E>R.top&&!!R.height)&&k.whenInViewportWithMargin(S);return!R&&S.parentNode});
k.scanRequested=!1};
RA.prototype.disconnect=function(){this.observationTargets=[]};var IiY,iJC;IiY=_.n(_.yg(Wll(),void 0,"O3X2wd"));_.nKp=IiY.next().value;iJC=IiY.next().value;window.addEventListener("resize",function(){iJC(Wll())});var hq8={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},JKd=void 0,cKA=window.innerWidth,mrd=window.innerHeight;window.addEventListener("resize",function(){JKd=void 0});var eqC;if("IntersectionObserver"in window)eqC=oKA();else{if(JKd===void 0){var aiA;aiA="matchMedia"in window?window.matchMedia(hq8.landscape+","+hq8.portrait).matches:void 0;JKd=aiA!==void 0?aiA:cKA>=930&&mrd>=550||cKA>=550&&mrd>=930}eqC=JKd?{observe:function(k){YX(function(){var E;(E=k.onViewportEntered)==null||E.call(k)})},
unobserve:function(){}}:new RA(function(k){YX(function(){var E;
(E=k.onViewportEntered)==null||E.call(k)})})}var FlC=eqC;var tt5=_.f(function(k){var E=!1,S=_.VH("img",function(R){_.bI(function(){E=!0;R.onload=null})});
_.vX(function(){var R,V=(R=k.data)==null?void 0:R.call(k),N,h=(N=k.getSrc)==null?void 0:N.call(k).cb,J;R=(J=k.config)==null?void 0:J.call(k);if(J=S.value)if(N=function(a,T){if(!E)return h?h(a,T):a},Urj(J,R),_.Y("web_image_dont_reload_same_src")&&gKl(J,V,N))_.Y("web_image_dont_reload_same_src_simulate_load")&&J.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var m;Xr1(J,V||null,N,R,(m=k.lazy)==null?void 0:m.call(k))}},"zS0jKb");
return _.e("img",{el:S})},"m");
tt5.idomCompat=!0;_.vM=_.f(function(k){var E=function(){var S,R=k.data(),V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z,kb,TI,a1,Ah,th,He,ve,Xm,U5,l4;var gY={contentMode:(V=k.contentMode)==null?void 0:V.call(k),loadedClass:(N=k.loadedClass)==null?void 0:N.call(k),isPreloaded:(h=k.isPreloaded)==null?void 0:h.call(k),notifyOnLoaded:(J=k.notifyOnLoaded)==null?void 0:J.call(k),notifyOnUnloaded:(m=k.notifyOnUnloaded)==null?void 0:m.call(k),preferredThumbnail:(a=k.preferredThumbnail)==null?void 0:a.call(k),preserveHeight:(T=k.preserveHeight)==
null?void 0:T.call(k),preserveWidth:(w=k.preserveWidth)==null?void 0:w.call(k),objectPosition:(P=k.objectPosition)==null?void 0:P.call(k),targetWidth:(B=k.targetWidth)==null?void 0:B.call(k),targetHeight:(F=k.targetHeight)==null?void 0:F.call(k),shouldShowPlaceholder:(K=k.shouldShowPlaceholder)==null?void 0:K.call(k),useWidth:(r=k.useWidth)==null?void 0:r.call(k),isToggled:(x=k.isToggled)==null?void 0:x.call(k),alt:(L=k.alt)==null?void 0:L.call(k),className:(q=k.className)==null?void 0:q.call(k),
onerror:k.onerror,onload:k.onload,style$:((M=k.style$)==null?void 0:M.call(k))||((d=k.style)==null?void 0:d.call(k)),color:(z=k.color)==null?void 0:z.call(k),width:(kb=k.width)==null?void 0:kb.call(k),height:(TI=k.height)==null?void 0:TI.call(k),"aria-hidden$":(U5=(a1=k["aria-hidden$"])==null?void 0:a1.call(k))!=null?U5:(Ah=k.ariaHidden)==null?void 0:Ah.call(k),draggable:(th=k.draggable)==null?void 0:th.call(k),"data-disabled$":(l4=(He=k["data-disabled$"])==null?void 0:He.call(k))!=null?l4:(ve=k.dataDisabled)==
null?void 0:ve.call(k),size:(Xm=k.size)==null?void 0:Xm.call(k)};return prh(R,gY,(S=k.hideOn404)==null?void 0:S.call(k))};
return _.e(_.D_,null,_.e(_.xk,{when:function(){var S;return((S=E())==null?void 0:S.type)==="image"}},function(){return _.e(tt5,{data:function(){return E().image},
getSrc:{cb:function(S,R){var V=E().image.sources,N=E().config.isPreloaded,h=E().config.useWidth,J=E().config.targetWidth,m=E().config.targetHeight,a=E().config.preferredThumbnail;return _.eqR(R,V,N,h,J,m,a)||""}},
config:function(){var S=E().config,R;for(R in S)S[R]===void 0&&delete S[R];return S},
lazy:k.renderLazy})}),_.e(_.xk,{when:function(){var S;
return((S=E())==null?void 0:S.type)==="icon"}},function(){return _.e(_.i_,{icon:function(){return E().iconName},
role:function(){return E().config.role},
className:function(){return E().config.className},
style:function(){return E().config.style$+";width: "+(E().config.width+"px;height: ")+(E().config.height+"px;color: ")+(E().config.color+";")},
ariaLabel:function(){return E().config["aria-label$"]},
ariaHidden:function(){return E().config["aria-hidden$"]},
dataDisabled:function(){return E().config["data-disabled$"]},
active:function(){return E().config.isToggled},
size:function(){return E().config.size}})}))},"n");
_.vM.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Tnp=function(k){return function(E){return _.e(Z51,null,function(){var S=E.data(),R=_.dt(E.config);return _.e(i2,null,function(){return void k(S,R)})})}}(Llb),uHi=_.f(function(k){var E=function(V){var N,h=_.Z0(function(B){N=ZK(function(){for(var F=_.n(w()),K=F.next();!K.done;K=F.next()){K=jmm(K.value);
K=typeof K==="string"?document.createTextNode(K):K;if(!(K instanceof Node)){F=new _.LC("Part is not a node",K,typeof K);_.bM(F);break}B.appendChild(K)}})});
var J=_.Y("web_wiz_attributed_string_skip_empty")?V:dX(function(){return Gvh(V())},{isEqual:rK1});
var m=_.Zk(k.config),a=function(){var B,F=J();return!((B=m())==null||!B.ariaLabel)||!(F.commandRuns&&F.commandRuns.length!==0||F.paragraphStyleRuns&&F.paragraphStyleRuns.length!==0)},T=dX(m,{isEqual:$ri}),w=function(){var B=OdR(J(),T());
khI(B,T());return J().content?IiI(J().content,B).parts:[]},P=!0;
_.vX(function(){J();T();if(P)P=!1;else{var B=w();Promise.resolve().then(function(){var F=h.value;if(F){F.innerText="";var K;(K=N)==null||K();N=_.fV(F,function(){return _.e(Dre,{parts:B})},"o")}})}},"S2CIIe");
return _.e("span",{el:h,class:function(){return J()&&jjC(J(),m())},
dir:function(){var B;return((B=m())==null?0:B.userInput)?"auto":void 0},
"aria-label":function(){var B;return a()?(B=m())==null?void 0:B.ariaLabel:void 0},
role:function(){return a()?"text":void 0}})},S=_.Y("web_wiz_attributed_string_skip_empty")?dX(function(){var V,N=(V=k.text)==null?void 0:V.call(k);
if(N)return V=Gvh(N),(V==null?0:V.content)?V:void 0},{isEqual:rK1}):k.text,R;
return((R=k.config)==null?0:R.renderedFromFormattedString)?E(S):_.e(_.t,{cond:S,then:E})},"q");
uHi.idomCompat=!0;_.VB=_.f(function(k){var E=_.Zk(k.text),S=fiC(k);k.renderedFromFormattedString!==void 0&&(S.renderedFromFormattedString=!0);return _.Y("attr_string_reactive")?_.e(uHi,{text:E,config:S}):_.e(_.t,{cond:function(){var R;return E()&&((R=Gvh(E()))==null?void 0:R.content)},
then:function(){return _.e(Tnp,{data:k.text,config:S})},
debugInstance:"Apcuac"})},"r");
_.VB.idomCompat=!0;var MtR="";sdh({beforeVisit:function(k){k.type.TAG_NAME&&(MtR=k.type.TAG_NAME)},
afterRender:function(k,E){var S;MtR=(S=E==null?void 0:E.type)!=null?S:""},
didPatch:function(){MtR=""}});var vKI=function(k,E,S){E=E===void 0?"unknown":E;S=S===void 0?{}:S;_.LC.call(this,k+" ("+E+")",Object.assign({},{name:"YtWcwError",tagName:E},S));Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(vKI,_.LC);_.Mi=new WeakMap;_.lY=!1;var lie,qZl,smC;_.Nq=Symbol("oh");_.sk=Symbol("ph");lie=Symbol("qh");qZl=new Set(Object.getOwnPropertyNames(Element.prototype));smC=Symbol("rh");var wrd=_.f(function(k){return _.e("yt-attributed-string",{"aria-label":k.ariaLabel,hidden:k.hidden,id:k.id,class:k.className,"force-default-style":k.forceDefaultStyle},_.e(_.VB,{text:k.data,ariaLabel:k.ariaLabel,ellipsisTruncate:k.ellipsisTruncate,isOverlay:k.isOverlay,linkInheritColor:k.linkInheritColor,noPreWrap:k.noPreWrap,noWrap:k.noWrap,userInput:k.userInput,noEndpoints:k.noEndpoints,headerRuns:k.headerRuns,isHeadline:k.isHeadline}))},"s");
_.Y("web_wiz_attributed_string")&&_.qi(wrd,"yt-attributed-string",{props:{ariaHidden:_.Nq,ariaLabel:_.Nq,className:_.Nq,ellipsisTruncate:_.Nq,isOverlay:_.Nq,linkInheritColor:_.Nq,noEndpoints:_.Nq,noStyleRuns:_.Nq,noLinkColor:_.Nq,noPreWrap:_.Nq,noWrap:_.Nq,skipOnClick:_.Nq,userInput:_.Nq,headerRuns:_.Nq,isHeadline:_.Nq,id:_.Nq,data:_.Nq,hidden:_.Nq,forceDefaultStyle:_.Nq,text:_.sk,disableUpgrade:_.sk,disable:_.sk,slot:_.sk}});var IA=function(){return _.p.apply(this,arguments)||this};
_.y(IA,_.p);IA.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},Llb(this.data,this.config))};
_.Z([_.g(Hd4),_.l("design:type",Object)],IA.prototype,"ytIdomTemplatingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],IA.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],IA.prototype,"ariaLabel",void 0);_.Z([_.H(),_.l("design:type",Boolean)],IA.prototype,"disable",void 0);_.Z([_.H(),_.l("design:type",Boolean)],IA.prototype,"ellipsisTruncate",void 0);_.Z([_.H(),_.l("design:type",Boolean)],IA.prototype,"isOverlay",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],IA.prototype,"linkInheritColor",void 0);_.Z([_.H(),_.l("design:type",Boolean)],IA.prototype,"noPreWrap",void 0);_.Z([_.H(),_.l("design:type",Boolean)],IA.prototype,"noWrap",void 0);_.Z([_.H(),_.l("design:type",Boolean)],IA.prototype,"userInput",void 0);_.Z([_.H(),_.l("design:type",Boolean)],IA.prototype,"noEndpoints",void 0);_.Z([_.H(),_.l("design:type",Array)],IA.prototype,"headerRuns",void 0);
_.Z([_.U_({is:"yt-attributed-string",disableElementRegistration:!0})],IA);
_.Y("web_wiz_attributed_string")||_.b(IA,"yt-attributed-string",function(){if(CoC===void 0){var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
k.content.insertBefore(GvT().content.cloneNode(!0),k.content.firstChild);CoC=k}k=CoC;return k},{mode:2});var PBd,Bn2,EEe;PBd=function(){this.firstThumbnailLoaded=!1};
_.YZC=function(){Bn2||(Bn2=new PBd);return Bn2};
EEe=function(k){var E=_.YZC();E.firstThumbnailLoaded||(E.firstThumbnailLoaded=!0,_.o_("ftl",k))};
PBd.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Qmi=0,k$I=new WeakMap,GhA=0,Ok=new Set;var Wlj,Fl4=function(){return Wlj!==void 0?Wlj:Wlj=document.createElement("template")};
document.head.appendChild(Fl4().content);var yKC;var Nrm,nEj,nG;_.kv=_.Vt.caches;nG=function(){};
nG.prototype.open=function(k){return _.kv.open(oKp(k))};
nG.prototype.has=function(k){return _.kv.has(oKp(k))};
nG.prototype.delete=function(k){return _.kv.delete(oKp(k))};
nG.prototype.match=function(k,E){var S=this,R,V,N,h,J,m;return _.c(function(a){switch(a.nextAddress){case 1:return a.yield(S.keys(),2);case 2:R=a.yieldResult,V=_.n(R),N=V.next();case 3:if(N.done){a.jumpTo(5);break}h=N.value;return a.yield(S.open(h),6);case 6:return J=a.yieldResult,a.yield(J.match(k,E),7);case 7:if(m=a.yieldResult)return a.return(m);N=V.next();a.jumpTo(3);break;case 5:return a.return()}})};
var i1h=function(){};
_.y(i1h,nG);var oKp=function(k){if(k.includes(":"))throw Error("uh`"+k);return k+":"+_.uJ("CacheStorage get")};
i1h.prototype.keys=function(){var k,E,S,R,V,N,h,J,m;return _.c(function(a){if(a.nextAddress==1)return k=[],E=_.uJ("CacheStorage keys"),a.yield(_.kv.keys(),2);S=a.yieldResult;R=_.n(S);for(V=R.next();!V.done;V=R.next())N=V.value,h=_.V5m(N),J=h.originalName,m=h.datasyncId,m===E&&k.push(J);return a.return(k)})};var iL=function(){var k=_.p.apply(this,arguments)||this;k.objectURL=null;k.loadTime=Infinity;return k};
_.y(iL,_.p);_.I=iL.prototype;_.I.renderIdom=function(){R6C(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("xh");this.setConfig();this.config&&HJe(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.I.objectFitToContentMode=function(k){switch(k){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.I.logThumbnailFailureVe=function(){var k=_.kh(197497);_.Bq(_.JV(),k);var E=_.Fe();E&&k&&E&&_.Lz(E,[k])};
_.I.loadImageFromCacheIfExists=function(k){var E=this,S=k.target;(S==null?0:S.src)&&JYI(S.src).then(function(R){E.objectURL=_.dk(R).toString();E.setSrc(S,E.objectURL)}).catch(function(){})};
_.I.onError=function(k){var E=this;if(_.Y("web_use_cache_for_image_fallback")){var S=k.target;S&&JYI(S.src).then(function(R){E.objectURL=_.dk(R).toString();E.setSrc(S,E.objectURL)}).catch(function(){_.Y("kevlar_woffle_log_thumbnail_failure_ve")&&E.logThumbnailFailureVe();
_.Y("kevlar_woffle_fallback_image")&&E.setSrc(S,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.I.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.I.setConfig=function(){var k=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(E){k.loadImageFromCacheIfExists(E);k.revokeObjectURL();Sli(k.hostElement)},
onerror:function(E){k.onError(E)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.Y("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.I.setSrc=function(k,E){E&&(k.src=E)};
_.Z([_.g(Hd4),_.l("design:type",Object)],iL.prototype,"ytIdomTemplatingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iL.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],iL.prototype,"alt",void 0);_.Z([_.H(),_.l("design:type",Boolean)],iL.prototype,"ftlEligible",void 0);_.Z([_.H(),_.l("design:type",Number)],iL.prototype,"height",void 0);_.Z([_.H(),_.l("design:type",Boolean)],iL.prototype,"notifyOnLoaded",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],iL.prototype,"notifyOnUnloaded",void 0);_.Z([_.H(),_.l("design:type",String)],iL.prototype,"objectFit",void 0);_.Z([_.H(),_.l("design:type",String)],iL.prototype,"objectPosition",void 0);_.Z([_.H(),_.l("design:type",String)],iL.prototype,"preferredThumbnail",void 0);_.Z([_.H(),_.l("design:type",Boolean)],iL.prototype,"preserveHeight",void 0);_.Z([_.H(),_.l("design:type",Boolean)],iL.prototype,"preserveWidth",void 0);
_.Z([_.H({value:!0}),_.l("design:type",Boolean)],iL.prototype,"useWidth",void 0);_.Z([_.H({value:function(){return!_.qg("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.l("design:type",Boolean)],iL.prototype,"shouldRenderLazy",void 0);_.Z([_.H(),_.l("design:type",Number)],iL.prototype,"width",void 0);_.Z([_.U_({is:"yt-image",disableElementRegistration:!0})],iL);
_.b(iL,"yt-image",function(){if(yKC===void 0){var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);k.content.insertBefore(Fl4().content.cloneNode(!0),k.content.firstChild);
yKC=k}k=yKC;return k},{mode:2});var hr=function(){return _.p.apply(this,arguments)||this};
_.y(hr,_.p);hr.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var k=_.Uk(this.data.onVisibleCommand);k&&this.ytComponentBehavior.resolveCommand(k)}};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],hr.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],hr.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.kB.YtVisibilityBehavior),_.l("design:type",Object)],hr.prototype,"ytVisibilityBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],hr.prototype,"data",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],hr);
_.b(hr,"yt-bumper-user-edu-content-view-model",function(){if(XGT===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;odz===void 0&&(odz=document.createElement("template"));var R=odz;S.call(E,R.content.cloneNode(!0),k.content.firstChild);XGT=k}k=XGT;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var XrC;var gKj,Ur5=function(){if(gKj!==void 0)return gKj;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;XrC===void 0&&(XrC=document.createElement("template"));var R=XrC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return gKj=k};var HJz;_.Jr={};HJz=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"]);_.Jr.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var k=this.getContext_();return k?k.getTaskManager():_.ZJ},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var k=_.Me(this.hostElement,"yt-get-context-provider",{});k.detail&&k.detail.contextProvider?this.cachedProviderNode_=k.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return HJz.has(this.hostElement.localName)},
getNetworkManager:function(){var k=this.getContext_();if(k)return k.getNetworkManager()}};var Trj,KlC,AKY,prT;_.c5=function(k){var E=KlC.get(k);if(E&&(E=E.pop()))return prT++,E;AKY++;try{var S=document.createElement(k)}catch(R){throw new _.LC("ElementPool failed to create element",k,R.message);}return S};
Trj=function(k){var E=k.is;if(E){var S=KlC.get(E);S||(S=[],KlC.set(E,S));var R=_.Mg("ELEMENT_POOL_CONFIG")||{};S.length>=(R[E]!==void 0?R[E]:_.Mg("ELEMENT_POOL_DEFAULT_CAP",0))||S.push(k)}else _.dg(new _.LC("Element pool should only handle custom elements:",k.nodeName))};
KlC=new Map;AKY=0;prT=0;var E3=new WeakMap,t5A=new WeakMap;var uHA;_.my=function(k,E,S){S=S===void 0?_.eH():S;this.JSC$13959_defaultPriority=k;this.signal=E;this.scheduler=S;this.nextJobDescriptor=0;this.JSC$13959_parkedJobs=[];this.scheduledJobs=new Map};
_.e6=function(k,E){if(E){var S=_.O7();k.signal&&!_.G7(S,k.signal)?(S.addListener(k.signal,function(){k.processSignal()}),k.JSC$13959_parkedJobs.push({job:E,
priority:void 0})):rKY(k,E)}};
uHA=function(k,E){if(E!==k.JSC$13959_defaultPriority){k.JSC$13959_defaultPriority=E;for(var S=_.n(k.scheduledJobs.values()),R=S.next();!R.done;R=S.next())R=R.value,k.scheduler.cancelJob(R.jobId),R.jobId=k.scheduler.addJob(R.jobWrapper,E)}};
_.my.prototype.flushJobs=function(){uHA(this,10);this.processSignal()};
_.my.prototype.cancel=function(){for(var k=_.n(this.scheduledJobs),E=k.next();!E.done;E=k.next()){var S=_.n(E.value);E=S.next().value;S=S.next().value;this.scheduler.cancelJob(S.jobId);this.scheduledJobs.delete(E)}this.JSC$13959_parkedJobs=[]};
_.my.prototype.processSignal=function(){for(var k=_.n(this.JSC$13959_parkedJobs),E=k.next();!E.done;E=k.next())E=E.value,rKY(this,E.job,E.priority);this.JSC$13959_parkedJobs=[]};
var rKY=function(k,E,S){S=S||k.JSC$13959_defaultPriority;if(S===10)GT(E);else{var R=k.nextJobDescriptor++,V=function(){E();k.scheduledJobs.delete(R)},N=k.scheduler.addJob(V,S);
k.scheduledJobs.set(R,{jobWrapper:V,jobId:N,priority:S})}};var xrj;_.aA={};xrj={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.aA.YtRendererstamperBehavior=[_.Jr.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 k in this.stampDom){var E=this.stampDom[k];E&&E.id&&this.addReactiveSchema({type:"observe",method:{methodName:mo1(E.id),args:[{type:"wildcard",path:k}]}})}else{(k=(this.constructor.generatedFrom||this).observers)||(k=[]);for(E in this.stampDom){var S=this.stampDom[E];S&&S.id&&k.push(mo1(S.id)+"("+E+".*)")}this.constructor.generatedFrom.observers=k}},
addStampDomObserverFns_:function(){for(var k in this.stampDom){var E=this.stampDom[k];E.id?(this[mo1(E.id)]=this.rendererStamperObserver_.bind(this,k,E.id),this.hasDataPath_[k]=!1):(E=new _.LC("Bad rendererstamper config",this.is+":"+k),_.bM(E))}},
rendererStamperObserver_:function(k,E,S){if(S.path==k){if(S.value===void 0&&!this.hasDataPath_[k])return;this.hasDataPath_[k]=S.value!==void 0}this.rendererStamperApplyChangeRecord_(k,E,S)},
rendererStamperApplyChangeRecord_:function(k,E,S){var R=this.renderJobsMap_[E],V=null;k==S.path?(S=S.value,_.sj(S)||(S=S===void 0||S===null?[]:[S]),k=this.stampDom[k],k.mapping&&(V=this.stampDomArray_.bind(this,S,E,k.mapping,k.reuseComponents,k.events,k.stamperStableList)),R&&R.cancel(),S=k.usePageScheduler?this.getTaskManager():void 0,R||k.initialRenderPriority==void 0)?k.renderPriority==void 0||R||(R=new _.my(k.renderPriority,k.waitForSignal,S),this.renderJobsMap_[E]=R):(R=new _.my(k.initialRenderPriority,
k.waitForSignal,S),this.renderJobsMap_[E]=R,V=function(N,h){N();uHA(h,10)}.bind(this,V,R)):V=k+".splices"==S.path?this.stampDomArraySplices_.bind(this,k,E,S.value):this.forwardRendererStamperChanges_.bind(this,k,E,S);
R?_.e6(R,V):V()},
forwardRendererStamperChanges_:function(k,E,S){var R=S.path.slice(k.length+1),V=this.getStampContainer_(E),N=R.indexOf("."),h=R.substring(0,N),J=!1,m=0,a=parseInt(h,0);if(h[0]=="#"){J=parseInt(h.substring(1),0);a=this.get(k);var T=this.get([k,h]);a[J]==T?m=J:m=a.indexOf(T);J=!0}else isNaN(a)||(m=a,J=!0);J&&(R=R.substring(h.length+1),N=R.indexOf("."));h=this.polymerDom(V).children[m];var w;if(V=(w=h==null?void 0:h.polymerController)!=null?w:h)R="data"+R.slice(N),typeof V.notifyPath!=="function"?_.dg(new _.LC("notifyPath missing",
this.is+": "+k+", "+E)):S.value?V.notifyPath(R,S.value):V.notifyPath(R)},
stampDomArraySplices_:function(k,E,S){if(S&&S.indexSplices){var R=this.getStampContainer_(E);if(R){for(var V=this.polymerDom(R),N=aHh(this.stampDom[k].reuseComponents),h=S.indexSplices.length,J=0;J<h;J++){for(var m=S.indexSplices[J],a=V.children[m.index],T=m.removed.length;T>0;T--)a&&a.parentElement&&(this.polymerDom(a.parentElement).removeChild(a),N&&Trj(a),a=V.children[m.index]);T=this.stampDom[k].mapping;for(var w=m.index+m.addedCount,P=document.createDocumentFragment(),B=N,F=m.index;F<w;F++){var K=
m.object[F],r=cYA(T,K);if(r){var x=T[r];K=K[r];r=this.getComponentName_(x,K);var L=a?E3.has(a):!1;B&&a&&a.is==r&&L?(r=a,this.telemetry_.reuse++,a=a.nextElementSibling):B&&a&&L?(r=this.createComponent_(x,K,N),L=this.polymerDom(a).nextElementSibling,V.insertBefore(r,L),Psi(this.is,V,a,N),a=L):(B=!1,r=this.createComponent_(x,K,N),P.appendChild(r));this.deferRenderStamperBinding_(r,x,K)}else x=new _.LC("Unimplemented type",k,E,R.tagName,Object.keys(K)[0]),_.bM(x)}V.insertBefore(P,a)}this.flushRenderStamperComponentBindings_();
this.stampDom[k].events&&_.Me(this.hostElement,"yt-rendererstamper-finished",{container:R})}else k=new _.LC("Container object not found",E,this.hostElement?this.hostElement.is:""),_.bM(k)}},
stampDomArray_:function(k,E,S,R,V,N){var h=this.getStampContainer_(E);if(h)if(E=this.polymerDom(h),R=aHh(R),k){var J=0,m=0,a;if(N=N===void 0?_.qg("STAMPER_STABLE_LIST",!1):N||!1)for(a=E.firstElementChild;a&&!E3.has(a)&&k.length>m;){N=k[m];var T=cYA(S,N);if(T){if(this.getComponentName_(S[T],N[T])!=a.is){var w=this.createComponent_(S[T],N[T],R),P=_.em(a).nextElementSibling;P?E.insertBefore(w,P):E.appendChild(w);Psi(this.is,E,a,R);a=w}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(a,S[T],
N[T]);J++;m++;a=this.polymerDom(a).nextElementSibling}else m++}Brm(this.is,E,J,R);J=a;if(k.length>m){N=document.createDocumentFragment();for(T=k.length;m<T;m++)if(w=k[m],P=cYA(S,w))a=this.createComponent_(S[P],w[P],R),this.deferRenderStamperBinding_(a,S[P],w[P]),N.appendChild(a);J&&this.polymerDom(J).parentNode&&a&&!E3.has(a)?E.insertBefore(N,J):E.appendChild(N)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();V&&_.Me(this.hostElement,"yt-rendererstamper-finished",{container:h})}else Brm(this.is,
E,0,R);else k=new _.LC("Container object not found",E,this.hostElement?this.hostElement.is:""),_.bM(k)},
polymerDom:function(k){return this.minimizePipBreakages?k:_.em(k)},
getStampContainer_:function(k){return this.$&&this.$[k]||_.Cc(this.hostElement).querySelector("#"+k)},
getComponentName_:function(k,E){return typeof k==="string"?k:k.matcher?k.matcher.call(this,E):k.component},
createComponent_:function(k,E,S){k=this.getComponentName_(k,E);try{var R=QO.has(k);if(S&&!R){var V=_.c5(k);try{_.VO(V)}catch(N){S="Failed to clear styles for "+k+".",N.message&&(S+=" Original error: "+N.message),_.dg(new _.LC(S))}}else V=document.createElement(k)}catch(N){return V="YtRendererStamperBehavior failed to create "+k+".",N.message&&(V+=" Original description: "+N.message),N.message="YtRendererStamperBehavior failed to create element",_.sc(N,V),xrj.hasOwnProperty(k)?_.dg(N):_.bM(N),document.createElement("SPAN")}this.telemetry_.create++;
return V},
deferRenderStamperBinding_:function(k,E,S){this.deferredBindingTasks_.push({component:k,typeOrConfig:E,data:S})},
flushRenderStamperComponentBindings_:function(){for(var k=0,E=this.deferredBindingTasks_.length;k<E;k++){var S=this.deferredBindingTasks_[k];if(!S)break;var R=void 0,V=void 0,N=void 0,h=void 0,J=S.component,m=S.typeOrConfig;S=S.data;var a=(h=J.polymerController)!=null?h:J;h=J.loggingStatus;try{h&&(h.isRendererStamper=!0);if(typeof m!=="string"){for(N in m.attributes)m.attributes[N]===!0?J.setAttribute(N,""):m.attributes[N]===!1?J.removeAttribute(N):J.setAttribute(N,m.attributes[N]);for(V in m.params)a[V]=
m.params[V],J!==a&&wJ(J.localName,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(R in m.properties){var T=m.properties[R];if(T){var w=e6A(T);a[R]=this.get(w);J!==a&&wJ(J.localName,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(R==="on-tap"||R==="on-click"){var P=this.get(w);J.addEventListener("click",P);t5A.set(J,{property:R,listener:{type:"element",eventName:"click",handler:P}})}}else{var B=new _.LC("Undefined property binding",R);_.bM(B)}}}if(m.classListBinding){var F=e6A(m.classListBinding),
K=F?this[F]:null;if(K)for(R=0;R<K.length;R++)_.E_(J,K[R],!0)}a.data=S}finally{h&&(h.isRendererStamper=!1)}if(R=E3.get(J))J.hidden=!1,E3.delete(J),_.ZJ.cancelJob(R)}this.deferredBindingTasks_.length=0}}];_.qi(_.f(function(k){function E(){S().seconds&&N(EP1({seconds:Number(S().seconds)-Date.now()/1E3}))}
var S=k.targetTimestamp;k=k.className;var R=_.n(_.yg("",void 0,"Lqijgf")),V=R.next().value,N=R.next().value;_.vC(function(){E();var h=setInterval(function(){E()},1E3);
_.bI(function(){clearInterval(h)})});
return _.e("yt-countdown",{class:_.SQ("ytCountDownHost",k)},_.e("div",null,V))},"u"),"yt-countdown",{props:{targetTimestamp:_.Nq,
className:_.sk}});_.tr=new _.QE("KEY_MANAGER_TOKEN");var Ylj={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"};_.P5=_.f(function(k){var E=_.VH("a",k.ref),S=k.aTagConfig?k.aTagConfig:_.HX(function(){var R,V,N,h,J;var m=(J=_.Uk((N=k.command)==null?void 0:N.call(k)))!=null?J:(h=k.command)==null?void 0:h.call(k);return _.Kh({innertubeCommand:m,skipOnClick:(R=k.skipOnClick)==null?void 0:R.call(k),defaultTarget:(V=k.target)==null?void 0:V.call(k)})||{}},void 0,"TAvz0");
_.vX(function(){_.Y("mweb_enable_keto_batch_pages")||(E.value._data=S()._data,E.value.params=S().params)},"dcjvAe");
return _.e("a",{el:E,href:function(){return S().href$},
rel:function(){return S().rel$},
class:function(){var R,V;return(V=S().className)!=null?V:(R=k.className)==null?void 0:R.call(k)},
style:function(){var R;if((R=k.style)==null?0:R.call(k))return k.style();var V;return((V=k.disabled)==null?0:V.call(k))?"pointer-events:none":""},
"aria-haspopup":function(){return!!S()["aria-haspopup$"]},
"force-new-state":VQ(function(){return S()["force-new-state$"]}),
title:VQ(function(){var R,V;return(V=S().title$)!=null?V:(R=k.title)==null?void 0:R.call(k)}),
role:VQ(function(){var R;return((R=k.role)==null?void 0:R.call(k))||S().role$}),
target:VQ(function(){return S().target$}),
dir:VQ(function(){var R;return((R=k.dir)==null?void 0:R.call(k))||S().dir}),
tabindex:function(){var R;return S().tabindex$?Number(S().tabindex$):(R=k.tabIndex)==null?void 0:R.call(k)},
"aria-hidden":function(){var R,V;return(V=S()["aria-hidden$"])!=null?V:(R=k.ariaHidden)==null?void 0:R.call(k)},
"aria-label":function(){var R,V;return(V=S()["aria-label$"])!=null?V:(R=k.ariaLabel)==null?void 0:R.call(k)},
"aria-current":k.ariaCurrent,"aria-disabled":k.disabled,"aria-labelledby":k.ariaLabelledby,"aria-describedby":k.ariaDescribedby,"aria-selected":k.ariaSelected,"tab-identifier":k.tabIdentifier,"on:pointerdown":_.RZ(function(R){var V,N;return void((N=(V=S()).onpointerdown)==null?void 0:N.call(V,R))}),
"on:click":_.RZ(function(R){var V,N;(N=(V=S()).onclick)==null||N.call(V,R);var h;(h=k.onClick)==null||h.call(k,R)}),
"on:focusin":_.RZ(function(R){var V;(V=k.onFocusin)==null||V.call(k,R)}),
"on:focusout":_.RZ(function(R){var V;(V=k.onFocusout)==null||V.call(k,R)})},k.children)},"w");var H11={duration:1E3,easing:"ease",fill:"forwards"};UoA.componentType=Lo;var AYC={duration:1E3,easing:"ease",fill:"forwards"},Drz=_.f(function(k){var E=_.VH("animated-rolling-character"),S=void 0,R=function(){var J,m;return $u((J=k.character)==null?void 0:J.call(k))||$u((m=k.previousCharacter)==null?void 0:m.call(k))},V=_.n(_.yg(0,void 0,"CYT8Ob")),N=V.next().value,h=V.next().value;
_.vC(function(){if(window.ResizeObserver&&_.Y("web_fix_rolling_numbers_zoom_safari")){var J=new _.NJ(function(){var a,T,w=Math.round(((T=(a=E.value.querySelector("div"))==null?void 0:a.getBoundingClientRect().height)!=null?T:0)*100)/100;w&&h(w)},500),m=new ResizeObserver(function(){J.fire()});
m.observe(E.value);_.bI(function(){m.disconnect();J.dispose()})}});
_.vX(function(){var J=_.Y("web_fix_rolling_numbers_zoom_safari")?N:k.marginMultiplier;if(J()){var m;(m=S)==null||m.cancel();if(R()){var a;m=((a=k.previousCharacter)==null?0:a.call(k))?Number(k.previousCharacter())+10:k.rollUp()?0:30;var T;if((T=k.shouldAnimate)==null||!T.call(k)){var w,P;m-=p1A((w=k.character)==null?void 0:w.call(k),(P=k.previousCharacter)==null?void 0:P.call(k),k.rollUp(),m)}}else{m=k.rollUp()?0:2;var B;(B=k.shouldAnimate)!=null&&B.call(k)||(a=m,T=k.rollUp()?-1:1,m=a-T)}E.value.style.marginTop=
"-"+m*J()+"px";var F;if((F=k.shouldAnimate)==null?0:F.call(k)){var K,r;S=rY1(E.value,(K=k.character)==null?void 0:K.call(k),(r=k.previousCharacter)==null?void 0:r.call(k),k.rollUp(),m,R(),J())}else{var x;E.value.style.display=((x=k.character)==null?0:x.call(k))?"":"none"}}},"CA6Pmf");
return _.e("animated-rolling-character",{el:E,class:"animatedRollingCharacterHost"},_.e(_.t,{cond:R,then:function(){return _.e(Ll2,null)},
else:function(){return _.e(jm8,{character:k.character})}}))},"z");
Drz.idomCompat=!0;var uKh=_.Y("web_enable_sink_animated_rolling_character_and_number")?Drz:UoA,$rA=_.Y("web_enable_sink_animated_rolling_character_and_number")?Drz:K8j(UoA),Ll2=_.f(function(){for(var k=[],E=1;E<30;E++)k.push(_.e("div",null,E%10));return _.e(_.tj,null,_.e("div",null,"\u00a0"),k,_.e("div",null,"\u00a0"))},"A"),jm8=_.f(function(k){var E=k.character;
return _.e(_.tj,null,_.e("div",null,"\u00a0"),_.e(_.t,{cond:function(){return!(E==null?0:E())||_.Jh(E==null?void 0:E())},
then:function(){return _.e("div",null,"\u00a0")},
else:function(){return _.e("div",null,E)}}),_.e("div",null,"\u00a0"))},"B");xoI.componentType=Lo;var fi4=_.f(function(k){var E=void 0,S=void 0,R=function(){var N;return((N=k.fontSizeMultiplier)==null?0:N.call(k))?k.heightPx()*k.fontSizeMultiplier():k.heightPx()},V=_.HX(function(){if(!k.numberText())return[];
var N,h,J=((N=k.forceRollUp)==null?void 0:N.call(k))||!S||!((h=k.numberValue)==null?0:h.call(k))||S<k.numberValue(),m,a=k.numberText();N=R();h=!((m=k.shouldAnimate)==null||!m.call(k));m=[];var T=0,w=0,P=(E?E.replace(/\D/g,"").length:0)-(a?a.replace(/\D/g,"").length:0),B=E?E.split(/(\d)/).filter(Boolean):[];for(a=a.split(/(\d)/).filter(Boolean);P<0;){var F=a[w];m.push({character:F,rollUp:J,marginMultiplier:N,shouldAnimate:h});w++;$u(F)&&P++}for(;T<P;)F=B[T],m.push({previousCharacter:F,rollUp:J,marginMultiplier:N,
shouldAnimate:h}),T++,$u(F)||P++;for(;w<a.length;)P=a[w],F=B[T],$u(P)===$u(F)?(w++,T++):$u(P)?(T++,P=void 0):$u(F)&&(w++,F=void 0),m.push({character:P,previousCharacter:F,rollUp:J,marginMultiplier:N,shouldAnimate:h});E=k.numberText();var K;S=(K=k.numberValue)==null?void 0:K.call(k);return m},void 0,"kWiBv");
return _.e("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return k.numberText()?["height: "+R()+"px;","line-height: "+k.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.e(_.jw,{each:V,keyBy:"INDEX"},function(N){return _.e($rA,{character:function(){return N().character},
previousCharacter:function(){return N().previousCharacter},
marginMultiplier:function(){return N().marginMultiplier},
rollUp:function(){return N().rollUp},
shouldAnimate:function(){return N().shouldAnimate}})}))},"C");
fi4.idomCompat=!0;_.vKY=_.Y("web_enable_sink_animated_rolling_character_and_number")?fi4:K8j(xoI);var bJd=function(k,E){this.fillAnimation=new Animation($ol(k),document.timeline);this.strokeAnimation=new Animation(fHI(E),document.timeline)};
bJd.prototype.play=function(){var k,E;(E=(k=this.fillAnimation).play)==null||E.call(k);var S,R;(R=(S=this.strokeAnimation).play)==null||R.call(S)};
bJd.prototype.cancel=function(){var k,E;(E=(k=this.fillAnimation).cancel)==null||E.call(k);var S,R;(R=(S=this.strokeAnimation).cancel)==null||R.call(S)};_.B5=_.f(function(k){var E=k.model;var S=k.pointerDownEvent;var R=k.pointerUpEvent;var V=k.pointerLeaveEvent;var N=k.hovered;k=_.VH("yt-touch-feedback-shape");var h=_.VH("div"),J=_.VH("div"),m=_.n(_.IZ(function(){return(R==null?0:R())||(V==null?0:V())?!1:!(S==null||!S())||!1})),a=m.next().value,T=m.next().value,w=void 0,P=function(){!w&&J.value&&h.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(w=new bJd(J.value,h.value));
var L;(L=w)==null||L.play()},B=function(){var L;
(L=w)==null||L.cancel()},F=function(){var L;
(L=w)==null||L.cancel()};
_.vX(function(){(R==null?0:R())&&P()},"bg756c");
_.vX(function(){(S==null?0:S())&&B()},"QAes8c");
_.vX(function(){(V==null?0:V())&&F()},"YaFbrc");
m=_.RZ(function(){P();T(!1)});
var K=_.RZ(function(){B();T(!0)}),r=_.RZ(function(){F();
T(!1)});
_.bI(function(){if(w){var L;(L=w)==null||L.cancel();w=void 0}});
var x={};a=_.SQ("yt-spec-touch-feedback-shape",function(){return vEm(E().color)},function(){return b1I(E().thumbnailSize,!!E().isExtended)},(x["yt-spec-touch-feedback-shape--focused"]=function(){return!!E().focused&&!E().disabled},x["yt-spec-touch-feedback-shape--circular"]=function(){return!!E().circular},x["yt-spec-touch-feedback-shape--down"]=a,x["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!E().triggerEvents},x["yt-spec-touch-feedback-shape--hovered"]=function(){return N==
null?void 0:N()},x));
return _.e("yt-touch-feedback-shape",{el:k,class:a,style:_.nU({"margin-top":function(){return E().customTopExtend?"-"+E().customTopExtend+"px":void 0}}),
"on:mousedown":K,"on:mouseup":m,"on:pointerleave":r,"on:touchstart":K,"on:touchend":m,"aria-hidden":!0},_.e(_.t,{cond:function(){return!!E().hoverEffect},
then:function(){return _.e("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.nU({"border-radius":function(){return E().borderRadius},
background:function(){var L;if(L=E().hoverEffect){for(var q=[],M=_.n((L==null?void 0:L.lightingTechniques)||[]),d=M.next();!d.done;d=M.next())switch(d.value){case 2:var z=d=void 0,kb=void 0,TI=void 0;q.push("linear-gradient(180deg, "+((d=L)==null?void 0:(z=d.palette)==null?void 0:z.keyLight)+", "+((kb=L)==null?void 0:(TI=kb.palette)==null?void 0:TI.background)+")")}var a1,Ah;q.push((a1=E().hoverEffect)==null?void 0:(Ah=a1.palette)==null?void 0:Ah.background);L=q.join(", ")}else L=void 0;return L}})})}}),
_.e("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.nU({"border-radius":function(){return E().borderRadius},
"border-color":function(){var L,q;return(L=E().touchEffect)==null?void 0:(q=L.palette)==null?void 0:q.background}}),
el:h}),_.e("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.nU({"border-radius":function(){return E().borderRadius},
"background-color":function(){var L,q;return(L=E().touchEffect)==null?void 0:(q=L.palette)==null?void 0:q.background}}),
el:J}))},"I");
_.B5.idomCompat=!0;var ZJp={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 YB=_.Be();YB=YB.toLowerCase();if(_.ce(YB,"android")){var drA=YB.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);drA&&parseFloat(drA[1])<100||YB.match("("+Object.keys(ZJp).join("|")+")")};var sm4=_.f(function(k){return _.e(_.t,{cond:k.aTagConfig,then:function(E){return _.e(_.P5,{aTagConfig:E,disabled:k.disabled,className:k.className,style:k.style,title:k.title,ariaLabel:k.ariaLabel,ariaCurrent:function(){var S,R;return((S=k.toggleable)==null?void 0:S.call(k))&&((R=k.toggled)==null?void 0:R.call(k))},
ref:k.ref},k.children)},
else:function(){return _.e("button",{el:_.Z0(k.ref),"on:click":_.RZ(function(E){var S;return(S=k.onClick)==null?void 0:S.call(k,E)}),
class:k.className,title:k.title,style:k.style,disabled:k.disabled,"aria-pressed":function(){var E,S;return((E=k.toggleable)==null?0:E.call(k))?!((S=k.toggled)==null||!S.call(k)):void 0},
"aria-label":k.ariaLabel,"aria-disabled":k.visiblyDisabled,"aria-hidden":k.ariaHidden,tabindex:k.tabIndex},k.children)}})},"J"),MtC=_.f(function(k){var E=k.data;
var S=k.hasIconLeading;var R=k.hasIconLeadingTrailing;var V=k.hasIconTrailing;var N=k.iconButton;var h=k.iconClassName;var J=k.secondaryIconClassName;var m=k.icon;var a=k.secondaryIcon;var T=k.textContentClassName;return _.e(W5,{className:"",style:"display: inherit; justify-content: center"},_.e(_.t,{debugInstance:"V4z1Uc",cond:function(){return m&&(S()||R()||(N==null?void 0:N()))},
then:function(){return _.e(W5,null,_.e("div",{class:h,"aria-hidden":"true"},m==null?void 0:m()))}}),_.e(_.t,{debugInstance:"ok3btb",
cond:function(){return(E().buttonText||E().animatedTextProps||E().formattedButtonText)&&!(N==null?0:N())},
then:function(){return _.e(W5,null,_.e(liz,{className:T,iconPosition:function(){return E().iconPosition},
text:function(){return E().buttonText},
oneOffCustomTextWrap:function(){return E().oneOffCustomTextWrap},
formattedButtonText:function(){return E().formattedButtonText},
animatedTextProps:function(){return E().animatedTextProps}}))}}),_.e(_.t,{debugInstance:"DO5Rz",
cond:V,then:function(){return _.e(W5,null,_.e("div",{class:h},m==null?void 0:m()))}}),_.e(_.t,{debugInstance:"bnojSc",
cond:R,then:function(){return _.e(W5,null,_.e("div",{class:J},a==null?void 0:a()))}}),_.e(_.t,{debugInstance:"HN3kad",
cond:function(){return!E().disabled&&!0},
then:function(){return _.e(_.B5,{model:function(){var w=E();return{color:w.style==="overlay-dark"?4:w.style==="overlay"?w.type==="filled"?4:3:w.type==="filled"||w.style==="call-to-action-inverse"||w.style==="mono-inverse"?2:1}}})}}))},"K"),liz=_.f(function(k){var E=function(){var S,R;
return((S=k.iconPosition)==null?void 0:S.call(k))==="icon-with-label"||((R=k.oneOffCustomTextWrap)==null?void 0:R.call(k))};
return _.e("div",{class:k.className,"aria-hidden":function(){var S,R,V;return((S=k.ariaHidden)==null?void 0:S.call(k))&&(!((R=k.animatedTextProps)==null||!R.call(k))||!((V=k.formattedButtonText)==null||!V.call(k)))}},_.e(_.D_,null,_.e(_.xk,{when:function(){var S;
return(S=k.animatedTextProps)==null?void 0:S.call(k)}},function(){return _.e(_.vKY,{numberText:function(){return k.animatedTextProps().numberText},
numberValue:function(){return k.animatedTextProps().numberValue},
heightPx:function(){return k.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return k.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return k.animatedTextProps().shouldAnimate},
forceRollUp:function(){return k.animatedTextProps().forceRollUp}})}),_.e(_.xk,{when:function(){var S;
return(S=k.formattedButtonText)==null?void 0:S.call(k)}},function(){return _.e(_.VB,{text:function(){return Object.assign({},k.formattedButtonText(),{lineBreakMode:E()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":k.formattedButtonText().lineBreakMode,
alignment:E()?"TEXT_ALIGNMENT_CENTER":k.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!E()}})}),_.e(_.xk,{when:function(){var S,R;
return((S=k.iconPosition)==null?void 0:S.call(k))==="icon-with-label"&&((R=k.text)==null?void 0:R.call(k))}},function(){return _.e(_.VB,{text:function(){return{content:k.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.e(_.LV,null,function(){return k.text})))},"L"),qZj=_.f(function(k){return _.e(_.t,{debugInstance:"kM7Sgc",
cond:k.hasLabel,then:function(){var E;return _.e("label",{class:k.className},k.children,(E=k.textContent)==null?void 0:E.call(k))},
else:function(){return k.children}})},"M"),W5=_.f(function(k){return k.children},"N");var zq5=_.f(function(k){var E=_.Z0(),S=_.n(_.yg(void 0,void 0,"Ug77pc")),R=S.next().value,V=S.next().value;S=_.n(_.yg(void 0,void 0,"XGf7Zb"));var N=S.next().value,h=S.next().value;S=_.n(_.yg(0,void 0,"Ygnx7b"));var J=S.next().value,m=S.next().value;S=_.RZ(function(){switch(J()){case 1:m(2);break;case 3:var T,w;(w=(T=E.value).hidePopover)==null||w.call(T);m(0);V(void 0);h(void 0)}});
_.vX(function(){if(k.show()){var T;V((T=k.children)==null?void 0:T.call(k));var w;h((w=k.location)==null?void 0:w.call(k));switch(J()){case 0:var P,B;(B=(P=E.value).showPopover)==null||B.call(P);m(1);break;case 3:m(1);var F,K;(K=(F=E.value).hidePopover)==null||K.call(F);var r,x;(x=(r=E.value).showPopover)==null||x.call(r)}}else switch(J()){case 2:m(3);break;case 1:var L,q;(q=(L=E.value).hidePopover)==null||q.call(L);V(void 0);h(void 0);m(0)}},"lOyibf");
_.b$(function(){});
var a={};return _.e("yt-popover",{popover:"manual",el:E,style:_.nU({left:function(){var T;return(T=N())==null?void 0:T.left},
top:function(){var T;return(T=N())==null?void 0:T.top},
bottom:function(){var T;return(T=N())==null?void 0:T.bottom},
right:function(){var T;return(T=N())==null?void 0:T.right}}),
class:_.SQ("ytPopoverComponentHost",k.classNames,(a.ytPopoverComponentHostClosing=function(){return J()===3},a.ytPopoverComponentHostSeeThrough=function(){var T;
return((T=k.seeThrough)==null?void 0:T.call(k))===!0},a)),
"on:animationend":S},R)},"P");var QmA={left:"0px",right:"auto",top:"0px",bottom:"auto"},OJ2=function(){var k=this;this.registerTooltipElement=function(S){var R;k.tooltipElement=(R=S.querySelector("yt-popover"))!=null?R:void 0};
var E=_.n(_.yg(void 0,void 0,"z4iHWd"));this.state=E.next().value;this.setState=E.next().value;E=_.n(_.yg(void 0,void 0,"uKDcaf"));this.schedulerJobID=E.next().value;this.setSchedulerJobID=E.next().value},O1h=function(k,E){var S=Jb,R=_.ZJ.addJob(function(){var V=Ghp(S,k,E);
S.setState({text:E.text,location:V,anchor:k,offset:E.offset})},4,E.delay);
S.setSchedulerJobID(R)},G$t=function(){var k=Jb,E=k.schedulerJobID();
E&&(_.ZJ.cancelJob(E),k.setSchedulerJobID(void 0));k.setState(void 0)};
OJ2.prototype.notify=function(k,E){var S;((S=this.state())==null?void 0:S.anchor)===k&&(S=Ghp(this,k,E),this.setState({text:E.text,location:S,anchor:k,offset:E.offset}))};
var Ghp=function(k,E,S){var R=E.getBoundingClientRect();E=window.innerWidth;var V=window.innerHeight,N=S.location,h=S.offset;S=S.text;if(k=k.tooltipElement){var J=getComputedStyle(k);k=J.font;var m=hb(J.lineHeight),a=hb(J.paddingLeft),T=hb(J.paddingRight),w=hb(J.paddingTop);J=hb(J.paddingBottom);var P=document.createElement("canvas").getContext("2d");P.font=k;S={width:P.measureText(S).width+a+T,height:m+w+J}}else S=void 0;k=S;if(!k)return QmA;S=k.width;k=k.height;a=h+k;w=h+S;m=R.top>=a;a=V-R.bottom>=
a;T=R.left>=w;w=E-R.right>=w;J=N;switch(N){case "top":!m&&a&&(J="bottom");break;case "bottom":!a&&m&&(J="top");break;case "left":!T&&w&&(J="right");break;case "right":!w&&T&&(J="left")}switch(J){case "top":N=R.left+R.width/2-S/2;R=R.top-k-h;break;case "bottom":N=R.left+R.width/2-S/2;R=R.bottom+h;break;case "left":N=R.left-S-h;R=R.top+R.height/2-k/2;break;case "right":N=R.right+h;R=R.top+R.height/2-k/2;break;default:N=R.left+R.width/2-S/2,R=R.bottom+h}h=Object.assign({},QmA);N+S>E?(h.right="0px",h.left=
"auto"):(h.left=Math.round(Math.max(0,N)+window.scrollX)+"px",h.right="auto");R+k>V?(h.bottom="0px",h.top="auto"):(h.top=Math.round(Math.max(0,R)+window.scrollY)+"px",h.bottom="auto");return h};var Jb;Jb=new OJ2;_.CBd=_.f(function(){var k=_.HX(function(){var S;return(S=Jb.state())==null?void 0:S.text},void 0,"jgLmfd"),E=_.HX(function(){var S;
return(S=Jb.state())==null?void 0:S.location},void 0,"zV1Udb");
return _.e("yt-tooltip",{class:"ytTooltipContainerHost",el:_.Z0(Jb.registerTooltipElement),"aria-hidden":"true"},_.e(zq5,{classNames:"ytTooltipContainerContent",location:E,show:function(){return!!k()},
seeThrough:!0},k))},"Q");var DBA=iI("stamper-context");_.FA=_.f(function(k){var E=k.data;var S=k.icon;var R=k.iconName;var V=k.animateIcon;var N=k.secondaryIcon;var h=k.secondaryIconName;var J=k.focusedOverride;var m=k.clientOnlyWizTooltipsEnabled;kKC();var a=Z1t(E),T=a.size,w=a.style;k=a.disabled;var P=a.onTap,B=a.alignByText,F=a.aTagConfig,K=a.customColors,r=a.segmentedPosition,x=a.toggled,L=a.toggleable,q=a.accessibilityLabel,M=a.onToggle,d=a.iconPosition,z=a.oneOffCustomTextWrap,kb=a.disableTextEllipsis,TI=a.disableBackdropFilter,a1=a.tooltipText,
Ah=a.ariaHidden,th=a.tabIndex,He=a.buttonText,ve=a.formattedButtonText,Xm=a.animatedTextProps,U5=a.onClickRateLimitMs,l4=M5A(E,S,N,R,h,J,V),gY=l4.type;S=l4.shouldFocus;R=l4.hasIconLeading;V=l4.hasIconTrailing;var IC=l4.hasIconLeadingTrailing,md=l4.hasIconOnly;N=l4.hasIconOnly40;var Kj=l4.hasIconWithLabel;h=l4.iconButton;var Lj=l4.visiblyDisabled;J=l4.overrideSmallSizeIcon;a=l4.iconToRender;l4=l4.secondaryIconToRender;var H0=_.n(Cs1(a1)).next().value,TG=function(Wz){P==null||P(Wz);L()&&(M==null||M(Wz))},
iC=_.HX(function(){return U5==null?void 0:U5()},void 0,"wrF7V"),hC=_.HX(function(){return iC()?BPd(TG,iC()):TG},void 0,"fG5dyf"),Y2={},It={};
return _.e(qZj,{className:_.SQ("yt-spec-button-shape-with-label",(Y2["yt-spec-button-shape-with-label--is-overlay"]=function(){return w()==="overlay"||w()==="overlay-dark"},Y2)),
hasLabel:Kj,textContent:function(){return _.e(liz,{text:He,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:z,iconPosition:d,formattedButtonText:ve,animatedTextProps:Xm})}},_.e(sm4,{aTagConfig:F,
className:_.SQ("yt-spec-button-shape-next",function(){return qlm(gY())},function(){return Lj()?void 0:z6j(w())},function(){return QN1(T())},(It["yt-spec-button-shape-next--disabled"]=Lj,It["yt-spec-button-shape-next--focused"]=S,It["yt-spec-button-shape-next--icon-trailing"]=V,It["yt-spec-button-shape-next--icon-leading"]=R,It["yt-spec-button-shape-next--icon-leading-trailing"]=IC,It["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return IC()&&!(He()||ve())},It["yt-spec-button-shape-next--icon-button"]=
function(){return md()||Kj()},It["yt-spec-button-shape-next--icon-only-default"]=N,It["yt-spec-button-shape-next--align-by-text"]=B,It["yt-spec-button-shape-next--segmented-start"]=function(){return r()==="start"},It["yt-spec-button-shape-next--segmented-end"]=function(){return r()==="end"},It["yt-spec-button-shape-next--override-small-size-icon"]=J,It["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=z,It["yt-spec-button-shape-next--disable-text-ellipsis"]=kb,It["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!TI()&&!_.Y("web_disable_backdrop_filter")},It)),
style:function(){var Wz=K();if(Wz){var VP=Wz.color;var LR=Wz.backgroundColor;Wz=Wz.borderColor;var Mp="";VP&&(Mp+="color: "+VP+";");LR&&(Mp+="background-color: "+LR+";");Wz&&(Mp+="border-color: "+Wz+";");VP={style:Mp}}else VP={};return VP.style},
onClick:function(Wz){hC()(Wz)},
disabled:k,ariaLabel:q,toggleable:L,toggled:x,title:function(){return(m==null?0:m())||!a1()?"":a1()},
visiblyDisabled:Lj,ariaHidden:Ah,tabIndex:th,ref:function(Wz){(m==null?0:m())&&H0(Wz)}},_.e(MtC,{data:E,
hasIconLeading:R,hasIconLeadingTrailing:IC,hasIconTrailing:V,iconButton:h,icon:a,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:l4})))},"S");
_.FA.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.yB=_.f(function(k){var E=k.data;var S=k.className;var R=k.style;var V=k.useOutlinedIcon;var N=k.buttonOverrides;var h=k.animatedTextProps;var J=k.onClick;var m=k.target;var a=_.VH("button-view-model",function(L){L.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var q=E().targetId;q&&_.L_p(_.xN(),q,L);return function(){uJY(_.xN(),L)}}),T=function(){return E().iconName},w,P=(w=_.en().resolve(_.mz(_.jF)))==null?void 0:w(),B=function(){var L=E();
var q=N==null?void 0:N(),M=h==null?void 0:h(),d=m==null?void 0:m();if(L){var z=nV1(L.type);var kb=!!L.title||!!L.titleFormatted;var TI=!(!L.iconName&&!L.iconImage);kb=TI&&!kb?"icon-only":TI?L.iconTrailing||L.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;kb==="icon-only-40"&&(z="text");var a1;TI=(a1=q==null?void 0:q.state)!=null?a1:iHh(L.state);var Ah,th=(Ah=q==null?void 0:q.disabled)!=null?Ah:L.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||L.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.Y("web_button_vm_refactor_disabled")){var He;th=(He=q==null?void 0:q.disabled)!=null?He:TI==="disabled"}M=M&&M.numberText&&!isNaN(Number(M.numberValue))?M:void 0;Ah=Object;He=Ah.assign;a1=L.title;var ve=L.titleFormatted,Xm=L.accessibilityText,U5=ISb(L.style),l4=hyh(L.buttonSize);d=Npt(L,a,th,J,d);th=th&&!L.onDisabledTap;var gY=Ryh(L,a),IC=L.customFontColor,md=L.customBackgroundColor;var Kj=L.customBorderColor;var Lj=L.customDarkThemeFontColor,H0=L.customDarkThemeBackgroundColor,TG=L.customDarkThemeBorderColor;
IC=P&&Lj?Lj:IC;md=P&&H0?H0:md;Kj=P&&TG?TG:Kj;Kj={color:IC?_.Kc(IC):void 0,backgroundColor:md?_.Kc(md):void 0,borderColor:Kj?_.Kc(Kj):void 0};L=He.call(Ah,{},{buttonText:a1,formattedButtonText:ve,animatedTextProps:M,accessibilityLabel:Xm,style:U5,type:z,state:TI,size:l4,iconPosition:kb,onTap:d,disabled:th,aTagConfig:gY,customColors:Kj,tooltipText:L.tooltip},q)}else L={style:"mono",type:"text",state:"active",size:"M"};L.focused=r();return L},F=function(){return sNe(B(),!!E().iconName)};
k=_.n(_.yg(!1,void 0,"WVXhrd"));w=k.next().value;var K=k.next().value,r=w;k=_.RZ(function(){var L=_.en().resolve(_.mz(_.tr));L&&K(L.isKeyBoardInUse());return!1});
w=_.RZ(function(){K(!1);return!1});
_.vX(function(){var L,q=_.W(E==null?void 0:(L=E())==null?void 0:L.onVisible,_.gX);q&&_.HM(q,{disableClickTracking:!0})},"w0lGYc");
var x=_.Y("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.e("button-view-model",{el:a,class:_.SQ("ytSpecButtonViewModelHost",S),"on:focusin":k,"on:focusout":w},_.e(_.t,{cond:function(){var L;return(E==null?0:(L=E())==null?0:L.iconImage)?{sources:[E().iconImage]}:void 0},
then:function(L){return _.e(_.FA,{data:B,icon:function(){return _.e(_.vM,{data:L,alt:"",targetWidth:F,targetHeight:F,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:x})},
else:function(){return _.e(_.FA,{data:B,icon:function(){return _.e(_.i_,{icon:T,active:function(){return(V==null?0:V())?!1:B().toggled},
animateIcon:function(){var L;return!!(R==null?0:(L=R())==null?0:L.animateIcon)},
size:F})},
clientOnlyWizTooltipsEnabled:x})}}))},"U");
_.yB.idomCompat={callbacks:{onClick:!0}};_.qi(_.f(function(k){return _.e("yt-button-view-model",{id:k.id,class:_.SQ(k.scopingClassName,k.classes),icon:function(){var E;return(E=k.icon)==null?void 0:E.call(k)},
"dialog-dismiss":function(){var E;return((E=k.dialogDismiss)==null?0:E.call(k))?"":void 0}},_.e(_.yB,{data:function(){var E;
return(E=k.data)==null?void 0:E.call(k)},
className:function(){var E;return(E=k.className)==null?void 0:E.call(k)},
style:function(){var E;return(E=k.style)==null?void 0:E.call(k)},
useOutlinedIcon:function(){var E;return(E=k.useOutlinedIcon)==null?void 0:E.call(k)},
buttonOverrides:function(){var E;return(E=k.buttonOverrides)==null?void 0:E.call(k)},
animatedTextProps:function(){var E;return(E=k.animatedTextProps)==null?void 0:E.call(k)},
onClick:function(E){var S;return(S=k.onClick)==null?void 0:S.call(k,E)}}))},"V"),"yt-button-view-model",{props:{data:_.Nq,
className:_.Nq,style:_.Nq,useOutlinedIcon:_.Nq,buttonOverrides:_.Nq,animatedTextProps:_.Nq,onClick:_.sk,scopingClassName:_.Nq,id:_.Nq,icon:_.Nq,dialogDismiss:_.Nq,classes:_.Nq,target:_.sk}});_.qi(_.f(function(k){var E=k.data;var S=k.id;var R=k.className;var V=k.iconName;var N=k.animateIcon;var h=k.secondaryIconName;k=_.n(_.yg(!1,void 0,"TtJl8"));var J=k.next().value,m=k.next().value,a=function(){var w=_.en().resolve(_.mz(_.tr));w&&m(w.isKeyBoardInUse())},T=function(){m(!1)};
k=_.VH("yt-button-shape",function(w){if(_.en().resolve(_.mz(_.tr)))return w.addEventListener("focusin",a),w.addEventListener("focusout",T),function(){w.removeEventListener("focusin",a);w.removeEventListener("focusout",T)}});
return _.e("yt-button-shape",{el:k,id:S,class:R},_.e(_.t,{cond:E,then:function(){return _.e(_.FA,{data:E,iconName:V,secondaryIconName:h,focusedOverride:J,animateIcon:N})}}))},"W"),"yt-button-shape",{props:{data:_.Nq,
id:_.Nq,className:_.Nq,iconName:_.Nq,animateIcon:_.Nq,secondaryIconName:_.Nq,clientOnlyWizTooltipsEnabled:_.Nq,disableUpgrade:_.Nq},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var oA=function(){var k=_.p.apply(this,arguments)||this;k.isGoalActive=!0;return k};
_.y(oA,_.p);oA.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
oA.prototype.progressBarChanged=function(){var k=_.Cc(this.hostElement).querySelector("#progress-bar-progress"),E,S,R,V=(R=Number((E=this.creatorGoalState)==null?void 0:E.currentGoalCount)/Number((S=this.creatorGoalState)==null?void 0:S.totalGoalCount)*100)!=null?R:0,N;k.style.width=((N=Math.min(V,100))!=null?N:0)+"%"};
oA.prototype.goalStateChanged=function(){var k;this.isGoalActive=((k=this.creatorGoalState)==null?void 0:k.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var E;k={"--yt-progress-bar-color":zgb((E=this.creatorGoalState)==null?void 0:E.progressBarColor)};_.VO(this.hostElement,k)};
oA.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.mt.Object.defineProperties(oA.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var k;return this.isGoalActive&&!((k=this.creatorGoalState)==null||!k.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.creatorGoalState)==null?0:k.endTimestampMs){var E;k=Number((E=this.creatorGoalState)==null?void 0:E.endTimestampMs)/1E3;return{seconds:String(k)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.creatorGoalState)==null?0:k.themedTargetImage){var E;k=_.W((E=this.creatorGoalState)==null?void 0:E.themedTargetImage,Oyz);return this.isAppDarkTheme()?k==null?void 0:k.imageDark:k==null?void 0:k.imageLight}}}});
_.mt.Object.defineProperties(oA,{template:{configurable:!0,enumerable:!0,get:function(){return Ur5()}}});
oA.prototype.goalStateChanged=oA.prototype.goalStateChanged;oA.prototype.progressBarChanged=oA.prototype.progressBarChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],oA.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],oA.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);
_.Z([_.H({selectorArgs:["data.creatorGoalEntityKey"],selector:function(k,E){return _.Ep(k.entities,"creatorGoalEntity",E)}}),
_.l("design:type",Object)],oA.prototype,"creatorGoalState",void 0);_.Z([_.H(),_.l("design:type",Object)],oA.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],oA.prototype,"isGoalActive",void 0);_.Z([_.U("creatorGoalState","isGoalActive"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oA.prototype,"shouldShowCountdown",null);_.Z([_.U("creatorGoalState"),_.l("design:type",Object),_.l("design:paramtypes",[])],oA.prototype,"endTimestamp",null);
_.Z([_.U("creatorGoalState"),_.l("design:type",Object),_.l("design:paramtypes",[])],oA.prototype,"targetIconThemedImage",null);_.Z([_.il("creatorGoalState.currentGoalCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oA.prototype,"progressBarChanged",null);_.Z([_.il("creatorGoalState.creatorGoalState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oA.prototype,"goalStateChanged",null);
_.Z([_.U_({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],oA);_.b(oA,"yt-creator-goal-progress-flow-view-model",function(){return Ur5()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var k$Y;var EEz;var XA=function(){return _.p.apply(this,arguments)||this};
_.y(XA,_.p);XA.prototype.attached=function(){var k,E,S;if(this==null?0:(k=this.data)==null?0:(E=k.pdgPurchasedBumperLoggingDirectives)==null?0:(S=E.loggingDirectives)==null?0:S.trackingParams){var R,V,N;mfI(this==null?void 0:(R=this.data)==null?void 0:(V=R.pdgPurchasedBumperLoggingDirectives)==null?void 0:(N=V.loggingDirectives)==null?void 0:N.trackingParams)}};
XA.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],XA.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],XA.prototype,"data",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],XA);
_.b(XA,"yt-live-chat-item-bumper-view-model",function(){if(EEz===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;k$Y===void 0&&(k$Y=document.createElement("template"));var R=k$Y;S.call(E,R.content.cloneNode(!0),k.content.firstChild);EEz=k}k=EEz;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var SlA;var R64;_.fU=function(k,E){this.data=k;this.actions=E;this.data=k;this.actions=E};
_.pU=function(){};_.gA={};_.gA.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(k,E){eyt(this.hostElement,k,E)},
getNavigationEndpointPopupAction:function(k){return aSi(k,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(k,E){tCm(this.hostElement,k,E,this.openPopupConfig)}};var XOI=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.UN={};
_.UN.YtEndpointBehavior=[_.gA.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Mg("openPopupConfig");(this.useClickHandler=_.qg("useClickHandler",!1))?this.hostElement.addEventListener("click",NO(this,this.onEndpointClick_)):(s2(this.hostElement,"tap",NO(this,this.onEndpointTap_)),s2(this.hostElement,"touchend",NO(this,this.onEndpointTouchEnd_)));s2(this.hostElement,"touchstart",NO(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
NO(this,this.onEndpointTapStart_))},
onEndpointClick_:function(k){P8j(this.hostElement,k,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(k){var E=this.hostElement,S=this.openPopupConfig,R=this.disableCommandHandlerOverride;R=R===void 0?!1:R;var V=TpI(k);if(V){V.href&&uv(V.href);var N=k.detail;var h=N.sourceEvent;N=N.preventer;h=h.button!==void 0?h.button===0&&!mu(h):N?!mu(N):!0;V.data&&h&&wOe(E,V,k,S,R)}},
onEndpointTouchEnd_:function(k){mu(k)||TpI(k)&&k.preventDefault()},
onEndpointTapStart_:function(k){yAR(k)}}];_.H5={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(k){for(var E=_.GU.getInstance(),S=_.n(Object.keys(k)),R=S.next();!R.done;R=S.next()){var V=R.value;R=k[V];if(this&&this[R]){var N=E.actionRoutingMap.get(V);N||(N=new Map,E.actionRoutingMap.set(V,N));E.registerActionHandler(this,V,this[R].bind(this),N)}else V=Error("ld"),V.params=R,_.O4(V)}},
unregisterActionMap:function(k){_.S9(_.GU.getInstance(),k,this)}}]};var tb=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_"+(_.Y("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.Y("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.Y("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:_.Y("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:_.Y("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:_.Y("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var aZ;var TZ=new Map;var fSR=window.matchMedia("(forced-colors: active)").matches;var V58;var Nr8;var IHC=new _.QE("LOTTIE_LOADER_TOKEN");_.KG=_.f(function(k){var E=k.data;var S=k.className;var R=k.animationName;var V=k.animationRef;var N=k.elRefForInterop;var h=_.Nm("lottie-component"),J;_.bI(function(){var a;return void((a=J)==null?void 0:a.destroy())});
var m;_.vX(function(){var a=_.dt(R);if(a!==m){m=a;var T=Object.assign({},{animationName:a,animationRef:_.dt(V)},_.dt(E));try{_.en().resolve(IHC)().then(function(B){var F;(F=J)==null||F.destroy();var K,r;F=(r=N==null?void 0:(K=N())==null?void 0:K.value)!=null?r:h.value;K=T.animationRef;r=T.listeners;B=B.loadAnimation(Object.assign({},{container:F},T.animationConfig));K&&(K.lottieEl=B);if(r)for(F=_.n(Object.entries(r)),K=F.next();!K.done;K=F.next())r=_.n(K.value),K=r.next().value,(r=r.next().value)&&
B.addEventListener(K,r);J=B})}catch(B){a=B;
var w="LottieComponent error.";a.message&&(w+=" Original description: "+a.message);_.sc(a,w);_.dg(a);var P;((P=T.listeners)==null?0:P.error)&&T.listeners.error(a)}}},"nrJISd");
return _.e(cIt,{cond:function(){return!(N==null?0:N())},
then:function(){return _.e("lottie-component",{class:_.SQ("ytLottieComponentHost",S),el:h})}})},"Y");_.qi(_.f(function(k){return _.e("ytd-lottie-player",{id:k.id,hidden:k.hidden,class:k.className,"aria-label":k.ariaLabel,style:"display: block;"},_.e(_.KG,{data:k.data,animationName:function(){var E;return((E=k.data().animationConfig)==null?void 0:E.name)||""},
animationRef:function(){return k.data().animationRef}}))},"Z"),"ytd-lottie-player",{props:{data:_.Nq,
id:_.Nq,hidden:_.Nq,className:_.Nq,ariaLabel:_.Nq}});var pG=function(){var k=_.p.apply(this,arguments)||this;k.animationRef={};k.delhiIconsEnabled=_.Y("enable_web_delhi_icons");return k};
_.y(pG,_.p);_.I=pG.prototype;
_.I.handlePropertyChange=function(){var k=this.animatedIcon,E=this.active,S=this.isDarkTheme;if(k){var R=this.previousActive!==E;this.previousActive=E;this.animationRef.lottieEl?R&&this.toggleAnimation(E,k.totalFrames):E?this.initializeAnimationAsToggled(k.lottiePlayerProps,k.totalFrames):this.initializeAnimationAsUntoggled(k.lottiePlayerProps);k.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=k.type;this.lottiePlayerProps=this.computeLottiePlayerProps(k,S)}};
_.I.computeLottiePlayerProps=function(k,E){var S=this.deepCloneLottiePlayerProps(k);E?(E=k.nameDarkTheme,k=k.pathDarkTheme):(E=k.name,k=k.path);S.animationConfig.name=E;(E=TZ.get(k))?S.animationConfig.animationData=E:S.animationConfig.path=k;return S};
_.I.initializeAnimationAsToggled=function(k,E){k.animationConfig.initialSegment=[E-1,E]};
_.I.initializeAnimationAsUntoggled=function(k){k.animationConfig.initialSegment=void 0};
_.I.toggleAnimation=function(k,E){if(k){var S;(S=this.animationRef.lottieEl)==null||S.playSegments([0,E],!0)}else{var R;(R=this.animationRef.lottieEl)==null||R.playSegments([0,1],!0)}};
_.I.deepCloneLottiePlayerProps=function(k){var E=Object.assign({},k.lottiePlayerProps.animationConfig);k=Object.assign({},k.lottiePlayerProps);k.animationConfig=E;return k};
pG.prototype.handlePropertyChange=pG.prototype.handlePropertyChange;_.Z([_.H(),_.l("design:type",Object)],pG.prototype,"animatedIcon",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],pG.prototype,"active",void 0);_.Z([_.H(),_.l("design:type",Boolean)],pG.prototype,"isDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],pG.prototype,"animatedIconType",void 0);_.Z([_.H(),_.l("design:type",Boolean)],pG.prototype,"previousActive",void 0);
_.Z([_.H(),_.l("design:type",Object)],pG.prototype,"lottiePlayerProps",void 0);_.Z([_.H(),_.l("design:type",Object)],pG.prototype,"animationRef",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],pG.prototype,"delhiIconsEnabled",void 0);_.Z([_.il("animatedIcon","active","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pG.prototype,"handlePropertyChange",null);_.Z([_.U_({is:"yt-animated-icon",disableElementRegistration:!0})],pG);
_.b(pG,"yt-animated-icon",function(){if(Nr8===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;V58===void 0&&(V58=document.createElement("template"));var R=V58;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Nr8=k}k=Nr8;return k},{mode:2});var nE5;var i1C;var lSh=_.f(function(k){var E=_.Nm("span"),S=Z_(function(){return{value:null,cancelled:!1}});
_.bI(function(){S.cancelled=!0});
var R=_.HX(k.data,{equals:function(V,N){return V.iconName===N.iconName&&V.iconStyle===N.iconStyle&&V.iconSize===N.iconSize&&V.iconSetName===N.iconSetName&&V.iconSelected===N.iconSelected}},"AoOoyf");
_.vX(function(){var V,N=(V=k.options)==null?void 0:V.call(k);sph(E,S,R(),N)},"Tie9e");
return _.e("span",{class:"yt-icon-shape",el:E})},"aa");
lSh.idomCompat=!0;var k5e=["youtube_fill","youtube_outline"];var h64=new _.XY({type:"iconset",value:void 0}),Ar=function(){var k=_.p.apply(this,arguments)||this;k.isDarkTheme=document.documentElement.hasAttribute("dark");k.iconName="";k.iconsetName="yt-icons";k.iconset=null;k.missingIconSet=!1;k.iconType=null;k.iconShapeDataSignal=_.yg(void 0,void 0,"ZwOn2");k.renderingOptionsSignal=_.yg({iconWidth:"100%",iconHeight:"100%",iconFilter:k.iconFilter,iconColor:k.gradientColor},void 0,"UgqF6d");k.wizHasRendered=!1;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return k};
_.y(Ar,_.p);Ar.prototype.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&(this.isDarkTheme=k)};
Ar.prototype.handlePropertyChange=function(){var k=this,E,S,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x;return _.c(function(L){switch(L.nextAddress){case 1:if(E=!k.icon&&!k.iconName||!k.isAttached)return L.return();S=k;R=S.icon;V=S.size;N=S.defaultToFilled;h=S.active;J=S.targetContainer;k.toggleContainerClass(J);_.Y("kevlar_use_wil_icons")&&R&&(m=W6l(R),k.iconType=m.length?m[1]:null);if(R){L.jumpTo(2);break}k.iconsetName="";k.iconName="";return L.yield(k.renderIcon(J,R),3);case 3:return L.return();case 2:a=JYY(R);
T=W6l(a);T.length&&(k.iconsetName=T[0],k.iconName=T[1]);if(!_.Y("kevlar_use_wil_icons")){L.jumpTo(4);break}w=Ar;P=cYp;B=k.iconType;F=k.active;K=k.defaultToFilled;r=k.size;x=k.iconsetName;return L.yield(moC(),6);case 6:return L.yield(P.call(w,B,F,K,r,x,L.yieldResult),5);case 5:k.iconShapeData=L.yieldResult;case 4:if(k.shouldRenderIconShape(J)){L.jumpTo(7);break}return L.yield(k.determineIconSet(a,h,N,V,J),7);case 7:return L.yield(k.renderIcon(J,R),0)}})};
Ar.prototype.toggleContainerClass=function(k){k?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var JYY=function(k){return!_.Y("default_to_innertube_icon")||k.indexOf(":")>0?k:_.SF(k)};
_.I=Ar.prototype;_.I.determineIconSet=function(k,E,S,R){var V=this;return _.c(function(N){return N.nextAddress==1?_.Y("kevlar_system_icons")||_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?N.yield(V.switchToYtSysIconset(k,E,S,R),3):N.jumpTo(2):N.nextAddress!=2?N.return():N.yield(V.useYtSysIconsetForMissingIcons(k,E,S,R),0)})};
_.I.switchToYtSysIconset=function(k,E,S,R){var V=this,N,h,J,m,a,T,w;return _.c(function(P){switch(P.nextAddress){case 1:if(!k||V.iconsetName!=="yt-icons"&&V.iconsetName!=="yt-sys-icons"){P.jumpTo(0);break}N=W6l(k);h=N[1];h=_.Ace(h);_.Y("enable_polymer_icons_replace_underscores_dash")&&h.includes("_filled")&&(h=h.replace(/_filled/g,"-filled"));return P.yield(Ek(h,!0),3);case 3:return J=P.yieldResult,P.yield(Ek(h,!1),4);case 4:if((m=P.yieldResult)||E&&J)V.iconsetName="yt-sys-icons";V.iconName=V.getIconName(h,
E,S,m,J);if(R===24){P.jumpTo(0);break}a="yt-sys-icons"+R+":"+V.iconName;return P.yield(Ek(a,!1,!0),6);case 6:return T=P.yieldResult,P.yield(Ek(a,!0,!0),7);case 7:w=P.yieldResult;V.iconName=V.getIconName(h,E,S,T,w);if(!E&&T||E&&w)V.iconsetName="yt-sys-icons"+R;_.KR(P)}})};
_.I.getIconName=function(k,E,S,R,V){k.includes("-filled")&&(k=k.replace("-filled",""));return V&&(E||S)?k+"-filled":k};
_.I.useYtSysIconsetForMissingIcons=function(k,E,S,R){var V=this,N,h;return _.c(function(J){if(J.nextAddress==1)return V.iconsetName!=="yt-icons"?J.jumpTo(0):J.yield(Ek(V.iconName,!1,!1,!0),3);if(J.nextAddress!=4)return N=J.yieldResult,J.yield(Ek(V.iconName,!1),4);h=J.yieldResult;if(N||!h)return J.jumpTo(0);V.iconsetName="yt-sys-icons";return J.yield(V.switchToYtSysIconset(k,E,S,R),0)})};
_.I.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var moC=function(){return _.c(function(k){try{return k.return(_.en().resolve(_.Rv))}catch(E){return k.return(new Promise(function(S){_.O7().parkOrScheduleJob(function(){S(_.en().resolve(_.Rv))},2,"ci")}))}})},cYp=function(k,E,S,R,V,N){R=R===void 0?24:R;
if(k){k=k.toLowerCase();var h=k.endsWith("_filled")||k.endsWith("-filled");E={iconName:k,iconStyle:(E===void 0?0:E)||(S===void 0?0:S)||h?"youtube_fill":"youtube_outline",iconSize:R,iconSetName:V===void 0?"yt-icons":V};S=!!N.resolveIcon(E);S||(E.iconSize=void 0,S=!!N.resolveIcon(E));!S&&h&&(E.iconName=k.substring(0,k.length-7),E.iconSize=R,S=!!N.resolveIcon(E),S||(E.iconSize=void 0,S=!!N.resolveIcon(E)));S||(E.iconStyle=void 0,S=!!N.resolveIcon(E));S||_.dg(new _.LC("Icon not supported",{iconName:E.iconName,
iconStyle:E.iconStyle,iconSize:E.iconSize,iconType:k}));return S?E:void 0}};
_.I=Ar.prototype;_.I.shouldRenderIconShape=function(k){if(!_.Y("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;k=this.getContainer(k);return!vVb(k,this.icon)};
_.I.renderIcon=function(k,E){var S=this,R,V,N,h,J,m,a,T;return _.c(function(w){switch(w.nextAddress){case 1:if(E&&S.icon!==E)return w.return();R=S.getContainer(k);V=vVb(R,S.icon);if(S.shouldRenderIconShape(k)&&S.iconType)return S.applyIconShape(V,R),w.return();S.removeIconShape();if(!R)return w.return();S.iconName===""&&S.iconset&&R&&(S.removeStaticIcon(S.iconset,R),V&&S.removeAnimatedIcon(R));if(S.iconName===""&&S.iconset||!S.iconsetName||!h64)return w.return();S.iconset=h64.byKey(S.iconsetName);
if(!S.iconset)return S.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Ic(S,S.onIconsetAdded)),w.return();S.missingIconSet&&(S.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Ic(S,S.onIconsetAdded)));h=(N=V||S.isAnimatedIcon?DfI(S.icon):void 0)&&!N.lazyLoad;m=N&&((J=N)==null?void 0:J.lazyLoad)&&(N.lottiePlayerProps.animationConfig.animationData?!0:TZ.get(S.isDarkTheme?N.pathDarkTheme:N.path)?!0:!1);if(h||m)return S.applyAnimatedIcon(R,N,S.iconset),w.return();if(m||
(a=N)==null||!a.lazyLoad){w.jumpTo(2);break}T=ZHI(N,S.isDarkTheme);S.applyStaticIcon(S.iconset,R,S.iconName,k,V);return w.yield(T,3);case 3:return w.yield(S.renderIcon(S.targetContainer,S.icon),4);case 4:return w.return();case 2:S.applyStaticIcon(S.iconset,R,S.iconName,k,V),_.KR(w)}})};
_.I.getContainer=function(k){var E,S=(E=ZQl(this.hostElement))==null?void 0:E.host;E=!!S&&!!S.polymerController;if(!k||E)return k?this.getTargetContainer(k,S):this.hostElement};
_.I.getTargetContainer=function(k,E){var S=_.Cc(E).querySelector("#"+k);S||(k=new _.LC("yt-icon container missing",E.is,k),_.bM(k));return S};
_.I.applyStaticIcon=function(k,E,S,R,V){V&&this.removeAnimatedIcon(E);this.removeIconShape();V=V&&!!this.iconType&&!!this.iconShapeData&&_.Y("kevlar_use_wil_icons");try{V?this.applyIconShape(!1,E):k.applyIcon(E,S)}catch(N){this.handleError(N,R,E)}};
_.I.applyIconShape=function(k,E){this.iconset&&E&&(this.removeStaticIcon(this.iconset,E),k&&this.removeAnimatedIcon(E));k={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var S=_.n(this.iconShapeDataSignal);E=S.next().value;S=S.next().value;var R=_.n(this.renderingOptionsSignal),V=R.next().value;R=R.next().value;S(this.iconShapeData);R(k);if(!this.wizHasRendered)for(this.wizHasRendered=!0,k=_.n(MCI(E,V)).next().value;k.firstChild;)_.Cc(this.hostElement).appendChild(k.firstChild)};
_.I.removeIconShape=function(){if(_.Y("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.I.removeStaticIcon=function(k,E){k.removeIcon(E)};
_.I.applyAnimatedIcon=function(k,E,S){this.removeStaticIcon(S,k);this.removeIconShape();var R;S=this.animatedIconElement&&((R=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:R.type)===E.type;if(this.animatedIconElement&&S){this.animatedIconElement.polymerController.animatedIcon=E;var V;((V=this.animatedIconElement)==null?void 0:V.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(k),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=E,this.animatedIconElement.polymerController.active=this.active,_.Y("delhi_modern_web_player_icons")?(E=$fh(k,this.icon)&&k.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=E?E.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.Y("kevlar_use_wil_icons")?
k.insertBefore(this.animatedIconElement,k.childNodes[0]):(k=_.Cc(k),k.insertBefore(this.animatedIconElement,k.childNodes[0]))};
_.I.removeAnimatedIcon=function(k){_.Y("kevlar_use_wil_icons")?this.animatedIconElement&&k.contains(this.animatedIconElement)&&k.removeChild(this.animatedIconElement):(k=_.Cc(k),this.animatedIconElement&&k.contains(this.animatedIconElement)&&k.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.I.handleError=function(k,E,S){_.sc(k,this.iconName,E,S);E=vVb(S,this.icon);var R=!1;window.location.href.includes("JpymaW6Lh2w")?R=!0:S._svgIcon&&(S=(S=S._svgIcon.parentNode)?S.tagName:"unknown",_.sc(k,S),S==="YT-ICON"&&k.name==="NotFoundError"?R=!0:k.name==="NotFoundError"&&E&&(R=!0));R?_.dg(k):_.bM(k)};
_.mt.Object.defineProperties(Ar,{template:{configurable:!0,enumerable:!0,get:function(){if(i1C===void 0){var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;
nE5===void 0&&(nE5=document.createElement("template"));var R=nE5;S.call(E,R.content.cloneNode(!0),k.content.firstChild);i1C=k}k=i1C;return k}}});
Ar.prototype.handlePropertyChange=Ar.prototype.handlePropertyChange;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Ar.prototype,"actionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",String)],Ar.prototype,"icon",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ar.prototype,"active",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ar.prototype,"defaultToFilled",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ar.prototype,"isAnimatedIcon",void 0);
_.Z([_.H({value:24}),_.l("design:type",Number)],Ar.prototype,"size",void 0);_.Z([_.H({value:""}),_.l("design:type",String)],Ar.prototype,"targetContainer",void 0);_.Z([_.H(),_.l("design:type",Object)],Ar.prototype,"animatedIconElement",void 0);_.Z([_.H(),_.l("design:type",Object)],Ar.prototype,"isDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Ar.prototype,"ariaHidden",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],Ar.prototype,"ariaLabel",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],Ar.prototype,"role",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],Ar.prototype,"tabindex",void 0);_.Z([_.H(),_.l("design:type",String)],Ar.prototype,"style",void 0);_.Z([_.H(),_.l("design:type",String)],Ar.prototype,"iconFilter",void 0);_.Z([_.H(),_.l("design:type",String)],Ar.prototype,"gradientColor",void 0);
_.Z([_.il("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],Ar.prototype,"handlePropertyChange",null);_.Z([_.U_({is:"yt-icon",noInjection:!0})],Ar);var qrj="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),Qph=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var e6p={};e6p.YtPlaintextBehavior=[_.YD,{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(k){k.preventDefault();k=k.clipboardData.getData("text/plain");document.execCommand("insertText",!1,k)},
preventRichTextFormatting_:function(k){_.Cm&&(k=k.detail.keyboardEvent,k.stopImmediatePropagation(),k.preventDefault())}}];var aHT;var t5p;var rA=function(){var k=_.p.apply(this,arguments)||this;k.ignoreShadyDom=!1;k.hasChange_=!1;k.hasSetTitle_=!1;k.useIOObserverForVisibilityLogging_=_.Y("kevlar_use_vimio_behavior")&&_.Mg("INNERTUBE_CLIENT_NAME")==="WEB";k.ytFormattedStringObserverHandlerKeys_=void 0;return k};
_.y(rA,_.p);_.I=rA.prototype;_.I.created=function(){this.useIOObserverForVisibilityLogging_=_.Y("kevlar_use_vimio_behavior")&&_.Mg("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.I.ready=function(){_.Mg("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_()};
_.I.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.I.detached=function(){this.unobserveIOObservers_()};
_.I.clearContents_=function(){for(var k=this.getRoot(),E=k.lastChild;E&&E.tagName!=="STYLE";){try{k.removeChild(E)}catch(S){break}E=k.lastChild}};
_.I.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var k=_.n(this.ytFormattedStringObserverHandlerKeys_),E=k.next();!E.done;E=k.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(E.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.I.resetForAttributedString=function(){var k=this.getRoot();!k.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),k.appendChild(this.ytAttributedStringElementRef))};
_.I.resetForFormattedString=function(){var k=this.getRoot(),E=k.querySelector("yt-attributed-string");E&&(this.ytAttributedStringElementRef=k.removeChild(E))};
_.I.textChanged=function(){this.textChanged_(this.text)};
_.I.textChanged_=function(k){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!k||!k.runs&&!k.simpleText;if(_.Y("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var E=this.hostElement.firstChild;E&&E.nodeName==="FONT";){var S=E;E=E.nextSibling;this.hostElement.removeChild(S)}E=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
S=k.simpleText;var R;!S&&((R=k.runs)==null?void 0:R.length)===1&&this.isSimpleString_(k.runs[0])&&(S=k.runs[0].text);S!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Mg("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(S!==void 0){try{E.textContent=S}catch(V){}E.textContent||(this.isEmpty=!0)}else k=k.runs,S!==void 0&&(k=[{text:S}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),k&&this.updateText_(k),
E.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.I.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)};
_.I.computeAriaLabel_=function(k){return k};
_.I.computeEllipsisTruncateStyling=function(k,E){return k&&!E};
_.I.computeUseAttributedString=function(k){return _.Y("web_replace_formatted_with_attributed_string")&&cTb(k)&&!this.disableAttributedString&&!this.enableContentEditable};
_.I.setNodeStyle_=function(k,E){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.Y("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?E.removeAttribute("dir"):E.setAttribute("dir","auto");E.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");E.style.color="";var S=null;this.noStyles||(k.bold&&(E.classList.add("bold"),S="bold"),k.deemphasize&&(E.classList.add("deemphasize"),S="deemphasize"),k.italics&&E.classList.add("italic"),
k.strikethrough&&E.classList.add("strikethrough"),k.errorUnderline&&(E.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),k.bracket&&E.classList.add("bracket"),k.textColor&&(E.style.color=_.HT(k.textColor)));S!==E.getAttribute("style-target")&&(S?E.setAttribute("style-target",S):E.removeAttribute("style-target"))};
_.I.setUpVisibilityLogging_=function(k,E){var S=this;this.setNodeTrackingParams_(k,E);var R;((R=E.data)==null?0:R.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(k=this.ytRendererBehavior.visibilityObserver.observe(E,function(V){var N=S.ytRendererBehavior.getVisibilityLogger();N&&N.reportShown(V)},this.ytRendererBehavior.visibilityOptionVisible_),E=this.ytRendererBehavior.visibilityObserver.observe(E,function(V){var N=S.ytRendererBehavior.getVisibilityLogger();
N&&N.reportHidden(V)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(k),this.ytFormattedStringObserverHandlerKeys_.push(E))};
_.I.setNodeTrackingParams_=function(k,E){E.data||(E.data={});if((k=k.loggingDirectives?k.loggingDirectives.trackingParams:null)||E.data.trackingParams)E.data.trackingParams=k};
_.I.computeHasLinkOnly_=function(k){return!(!k||k.length!==1||this.noEndpoints||!k[0].navigationEndpoint)};
_.I.getRoot=function(){var k=this.buildScopeDomOptions();return this.enableContentEditable?_.Cc(_.Cc(this.hostElement,k).querySelector("[contenteditable]")):_.Cc(this.hostElement,k)};
_.I.fixContenteditableScope=function(){var k=function(E){E&&(E.nodeType===1&&E.classList&&(E.classList.add("style-scope"),E.classList.add("yt-formatted-string")),E.childNodes&&E.childNodes.forEach(function(S){k(S)}))};
k(this.getRoot())};
_.I.updateText_=function(k){for(var E=k.length,S=this.getRoot(),R=S.firstChild;R&&R.nodeName==="STYLE";)R=R.nextSibling;for(var V=0;V<E&&R;){var N=k[V],h=_.Y("remove_cr_char")&&N.text?N.text.replace("\r",""):N.text;if(this.isSimpleString_(N)&&!this.useMixedDirectionFormattedStrings)if(R.nodeName==="#text"){R.textContent!=h&&(R.textContent=h);V++;R=R.nextSibling;continue}else break;if(_.W(N,ov))break;else if(!this.noEndpoints&&N.navigationEndpoint){if(R.nodeName!=="A")break;this.setDataOnAnchor_(R,
N.navigationEndpoint)}else if(R.nodeName!=="SPAN")break;this.setNodeStyle_(N,R);this.setUpVisibilityLogging_(N,R);R.textContent!=h&&(R.textContent=h);V++;R=R.nextSibling}if(R)for(N=S.lastChild,R=V?R.previousSibling:null;N&&N!=R;){try{S.removeChild(N)}catch(J){break}N=S.lastChild}V!==E&&this.addTextNodes_(k,V)};
_.I.addTextNodes_=function(k,E){for(var S=document.createDocumentFragment(),R=k.length;E<R;E++){var V=k[E],N=_.Y("remove_cr_char")&&V.text?V.text.replace("\r",""):V.text;if(this.isSimpleString_(V)&&!this.useMixedDirectionFormattedStrings)S.appendChild(document.createTextNode(N));else{var h=_.W(V,ov);if(h){if(h.image){var J=document.createElement("img");h.isCustomEmoji||J.classList.add("small-emoji");J.classList.add("emoji");h.isCustomEmoji&&(J.dataset.emojiId=h.emojiId);J.src=_.zT(h.image.thumbnails,
this.emojiSize);(V=this.get("image.accessibility.accessibilityData.label",h))?J.alt=V:h.shortcuts&&h.shortcuts.length>0?J.alt=h.shortcuts[0]:h.emojiId&&(J.alt=h.emojiId);S.appendChild(J);this.hasEmoji=!0}}else!this.noEndpoints&&V.navigationEndpoint?(J=document.createElement("a"),J.classList.add("yt-simple-endpoint"),J.setAttribute("spellcheck","false"),this.setDataOnAnchor_(J,V.navigationEndpoint)):J=document.createElement("span"),this.setNodeStyle_(V,J),this.setUpVisibilityLogging_(V,J),J.appendChild(document.createTextNode(N)),
S.appendChild(J)}}this.getRoot().appendChild(S)};
_.I.isSimpleString_=function(k){return(this.noEndpoints||!k.navigationEndpoint)&&!_.W(k,ov)&&(this.noStyles||!(k.bold||k.deemphasize||k.italics||k.strikethrough||k.errorUnderline||k.bracket||k.textColor))&&!k.loggingDirectives};
_.I.getRawText=function(){return _.$n(this.text)};
_.I.getFirstRunText=function(){var k;if(((k=this.text)==null?0:k.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.I.setFirstRunText=function(k){var E;((E=this.text)==null?0:E.runs)&&this.text.runs[0]&&(this.text.runs[0].text=k,this.textChanged_(this.text))};
_.I.setDataOnAnchor_=function(k,E){var S=this;!_.Y("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(E)||this.isSignalServiceEndpoint_(E)?(k.onclick=this.serviceEndpointHandler_(E),MU(k,"#")):Sft({text:this.text,command:E},function(){agb(k,E,S.target)})};
_.I.isServiceEndpoint_=function(k){var E;return!((E=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null||!E.sendPost)};
_.I.isSignalServiceEndpoint_=function(k){return!!_.W(k,_.Ev)};
_.I.serviceEndpointHandler_=function(k){var E=this;return function(S){_.Qw(E.hostElement,[k]);S.preventDefault()}};
_.I.overrideAriaLabelChanged_=function(){var k=this.getRoot();this.enableContentEditable&&k&&k.setAttribute("aria-label",this.overrideAriaLabel)};
_.I.enableContentEditableChanged_=function(){var k=this,E=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),E=_.Cc(this.hostElement,E),!E.lastChild||E.lastChild instanceof HTMLElement&&E.lastChild.id!=="contenteditable-root"){var S=document.createElement("div");S.id="contenteditable-root";S.setAttribute("contenteditable","true");S.setAttribute("dir","auto");S.onfocus=function(){k.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
E.appendChild(S);this.overrideAriaLabel&&S.setAttribute("aria-label",this.overrideAriaLabel)}}else S=_.kT(this.hostElement).firstChild,S instanceof HTMLElement&&S.id==="contenteditable-root"&&_.Cc(this.hostElement,E).removeChild(S)};
_.I.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.I.getNodesForVisibilityLogging_=function(){return _.lb(this.getRoot().childNodes,function(k){var E;return!((E=k.data)==null||!E.trackingParams)})};
_.I.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.I.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var k=this.ytRendererBehavior.getVisibilityLogger();k&&this.getNodesForVisibilityLogging_().forEach(function(E){k.reportShown(E)})}};
_.I.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var k=this.ytRendererBehavior.getVisibilityLogger();k&&this.getNodesForVisibilityLogging_().forEach(function(E){k.reportHidden(E)})}};
_.mt.Object.defineProperties(rA.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.Y("enable_mixed_direction_formatted_strings")}}});
rA.prototype.enableContentEditableChanged_=rA.prototype.enableContentEditableChanged_;rA.prototype.overrideAriaLabelChanged_=rA.prototype.overrideAriaLabelChanged_;rA.prototype.ellipsisTruncateChanged_=rA.prototype.ellipsisTruncateChanged_;rA.prototype.textChanged=rA.prototype.textChanged;_.Z([_.g(e6p.YtPlaintextBehavior),_.l("design:type",Object)],rA.prototype,"ytPlaintextBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],rA.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rA.prototype,"text",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"noEndpoints",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"noStyles",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],rA.prototype,"isDarkTheme",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],rA.prototype,"splitLines",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],rA.prototype,"forceDefaultStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],rA.prototype,"ellipsisTruncate",void 0);_.Z([_.H(),_.l("design:type",Object)],rA.prototype,"ignoreShadyDom",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.l("design:type",Boolean)],rA.prototype,"ellipsisTruncateStyling",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.l("design:type",String)],rA.prototype,"ariaLabel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],rA.prototype,"isEmpty",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.l("design:type",Boolean)],rA.prototype,"hasLinkOnly_",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"hasEmoji",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"disableAttributedString",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"isOverlay",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"linkInheritColor",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"noPreWrap",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"userInput",void 0);_.Z([_.H({value:16}),_.l("design:type",Number)],rA.prototype,"emojiSize",void 0);_.Z([_.H(),_.l("design:type",String)],rA.prototype,"target",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"enableContentEditable",void 0);_.Z([_.H(),_.l("design:type",String)],rA.prototype,"overrideAriaLabel",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"respectHtmlDir",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rA.prototype,"respectLangDir",void 0);_.Z([_.U("plaintextOnly"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rA.prototype,"useMixedDirectionFormattedStrings",null);_.Z([_.H({computed:"computeUseAttributedString(text)"}),_.l("design:type",Boolean)],rA.prototype,"useYtAttributedString",void 0);
_.Z([_.il("text"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"textChanged",null);_.Z([_.il("ellipsisTruncate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"ellipsisTruncateChanged_",null);_.Z([_.il("overrideAriaLabel"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"overrideAriaLabelChanged_",null);
_.Z([_.il("enableContentEditable"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rA.prototype,"enableContentEditableChanged_",null);_.Z([_.U_({is:"yt-formatted-string",disableElementRegistration:!0})],rA);
_.b(rA,"yt-formatted-string",function(){if(t5p===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;aHT===void 0&&(aHT=document.createElement("template"));var R=aHT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);t5p=k}k=t5p;return k});var Tr5;var w1d;var PsA;var Br8;var uL=function(){var k=_.p.apply(this,arguments)||this;k.focused=!1;k.disabled=!1;k.isOverlay=!1;return k};
_.y(uL,_.p);uL.prototype.triggerDown=function(){if(!this.disabled){_.E_(this.hostElement,"down",!0);var k;(k=this.currentAnimation)==null||k.cancel()}};
uL.prototype.triggerUp=function(){if(!this.disabled){_.E_(this.hostElement,"down",!1);var k=this.fillElement;var E=this.strokeElement;typeof GroupEffect==="function"?(k=new GroupEffect([$ol(k),fHI(E)]),k=new Animation(k,document.timeline)):k=new bJd(k,E);this.currentAnimation=k;var S;(S=this.currentAnimation)==null||S.play()}};
_.Z([_.JO(".stroke"),_.l("design:type",HTMLElement)],uL.prototype,"strokeElement",void 0);_.Z([_.JO(".fill"),_.l("design:type",HTMLElement)],uL.prototype,"fillElement",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],uL.prototype,"focused",void 0);_.Z([_.H(),_.l("design:type",Object)],uL.prototype,"disabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],uL.prototype,"isOverlay",void 0);_.Z([_.U_({is:"yt-interaction",disableElementRegistration:!0})],uL);
_.b(uL,"yt-interaction",function(){if(Br8===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;PsA===void 0&&(PsA=document.createElement("template"));var R=PsA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Br8=k}k=Br8;return k},{mode:2});var xB=function(){return _.p.apply(this,arguments)||this};
_.y(xB,_.p);_.I=xB.prototype;_.I.ready=function(){var k=this,E=_.Cc(this.hostElement).querySelector("#button");E.addEventListener("focus",function(){lp2||(lp2=new s9C);k.keyboardFocused=lp2.isKeyBoardInUse()});
E.addEventListener("blur",function(){k.keyboardFocused=!1;k.rippleUp_()})};
_.I.computeTabIndex_=function(k){return k?-1:0};
_.I.computeButtonAriaPressed_=function(k){if(this.toggleable)return k?"true":"false"};
_.I.rippleDown_=function(){_.Cc(this.hostElement).querySelector("#interaction").triggerDown()};
_.I.rippleUp_=function(){_.Cc(this.hostElement).querySelector("#interaction").triggerUp()};
_.I.onPressedChanged_=function(){var k=_.kT(_.Cc(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.kT(_.Cc(this.hostElement).querySelector("#button")).children[0];k&&(k.active=this.pressed)};
xB.prototype.onPressedChanged_=xB.prototype.onPressedChanged_;xB.prototype.rippleUp_=xB.prototype.rippleUp_;xB.prototype.rippleDown_=xB.prototype.rippleDown_;_.Z([_.H(),_.l("design:type",String)],xB.prototype,"label",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],xB.prototype,"disabled",void 0);_.Z([_.H(),_.l("design:type",Boolean)],xB.prototype,"pressed",void 0);_.Z([_.H(),_.l("design:type",Object)],xB.prototype,"toggleable",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],xB.prototype,"untabbable",void 0);_.Z([_.H(),_.l("design:type",Boolean)],xB.prototype,"keyboardFocused",void 0);_.Z([_.nv("down"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xB.prototype,"rippleDown_",null);_.Z([_.nv("up"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xB.prototype,"rippleUp_",null);
_.Z([_.il("pressed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xB.prototype,"onPressedChanged_",null);_.Z([_.U_({is:"yt-icon-button",disableElementRegistration:!0})],xB);
_.b(xB,"yt-icon-button",function(){if(w1d===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Tr5===void 0&&(Tr5=document.createElement("template"));var R=Tr5;S.call(E,R.content.cloneNode(!0),k.content.firstChild);w1d=k}k=w1d;return k},{mode:2});var Yl5;var W8Y=function(){var k=document.body,E=k.appendChild;if(Yl5===void 0){var S=document.createElement("template");_.X(S,'\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>');
Yl5=S}S=Yl5;E.call(k,S.content)};
document.body?W8Y():window.addEventListener("DOMContentLoaded",W8Y);var F8T=_.ry(["aria-"]),LG={};LG.YtRenderButtonBehavior=[_.O.YtRendererBehavior,_.UN.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!!_.en().resolve(_.mz(_.tr))&&_.Y("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 k=this.computeHref_(this.endpoint,!0);k?MU(this.elements_.endpoint,k):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){k=this.buttonClass.split(" ");k=_.n(k);for(var E=k.next();!E.done;E=k.next())E=E.value,_.E_(this.hostElement,E,!0),this.elements_.button&&_.E_(this.elements_.button,E,!0),this.elements_.text&&_.E_(this.elements_.text,E,!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&&(k=null,this.buttonAccessibility&&(k=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=k:k?_.hE([_.To(F8T)],this.elements_.button,"aria-label",k):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var k=_.en().resolve(_.mz(_.tr));k&&(this.keyboardFocused=k.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.c5("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,_.em(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.em(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(k,E){if(E)for(k=E.split(" "),k=_.n(k),E=k.next();!E.done;E=k.next())E=E.value,_.E_(this.hostElement,E,!1),this.elements_.button&&_.E_(this.elements_.button,E,!1),this.elements_.text&&_.E_(this.elements_.text,E,!1)},
buttonIconChanged_:function(k){this.elements_.icon?k?(this.elements_.icon.icon=k,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.em(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.SN(this.hostElement,"is-paper-button-with-icon",!1)):k&&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"&&_.em(this.elements_.button).appendChild(this.elements_.icon):_.em(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.SN(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(k){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,k){var E=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(k){case "yt_icon_button_with_label":E=!0;_.E_(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();k=_.em(this.elements_.button).firstElementChild;
this.elements_.icon=k;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.em(this.elements_.endpoint).appendChild(this.elements_.button);_.em(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.c5("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;_.em(this.elements_.button).appendChild(this.elements_.text);_.em(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":E=!0,this.elements_.button=this.getYtIconButton_(),k=_.em(this.elements_.button).firstElementChild,this.elements_.icon=k,this.setIconActive_(this.elements_.icon),
_.em(this.elements_.endpoint).appendChild(this.elements_.button)}_.SN(this.hostElement,"is-icon-button",E);_.SN(this.hostElement,"is-paper-button",!E);_.SN(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 S;_.Cc((S=this.container.hostElement)!=null?S:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.em(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(k){if(k!=void 0||this.disabled)this.disabled=k,this.elements_.button&&(this.elements_.button.disabled=k)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(k){_.Y("kevlar_system_icons")&&k&&this.data&&(this.data.isSelected!==void 0?k.active=this.data.isSelected:this.data.isToggled!==void 0&&(k.active=this.data.isToggled))},
observeBasicPalette_:function(k){_.wb(this.hostElement,k)},
disabledChanged_:function(k){this.data&&this.set("data.isDisabled",k)},
onYtButtonTap_:function(k){if(this.disabled)k.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Qw(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(k=this.disableCommandHandlerOverride,!this.data||!this.data.command||k||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.Y("handle_service_request_actions")||_.Qw(this.hostElement,[this.serviceEndpoint]),
_.Me(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.Y("handle_service_request_actions")?(k=[],this.serviceEndpoint&&k.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&k.push(this.data.command),k.length&&_.Ot(this.hostElement,k,this.hostElement)):this.data&&this.data.command&&(k=this.data.command,k.accountUnlinkCommand||k.accountLinkCommand||k.insertAdCommand||k.insertHighlightMarkerCommand||
k.createLivestreamHighlightClipCommand||k.getVideoUploadFeedbackCommand||k.musicDeletePrivatelyOwnedEntityCommand||k.ypcCancelRecurrenceEndpoint||k.getMultiSelectCommandEndpoint?_.Qw(this.hostElement,[k]):_.Ot(this.hostElement,[k],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 k,E=_.Cc((k=this.container.hostElement)!=null?k:this.container);E.lastChild&&E.lastChild.tagName!="STYLE";)try{E.removeChild(E.lastChild)}catch(S){break}},
getYtIconButton_:function(){var k=this.reuseEnabled_()?_.c5("yt-icon-button"):document.createElement("yt-icon-button"),E=_.em(k).firstElementChild;if(E&&E.is!="yt-icon"){for(E=_.em(k);E.lastChild;)E.removeChild(E.lastChild);E=null}E||(E=this.getIcon_(),this.setIconActive_(E),_.em(k).appendChild(E));return k},
reuseEnabled_:function(){return _.Y("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.c5("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.c5("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.yYC={};
_.yYC.YtButtonBehavior=[LG.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var k=this.data;k&&(this._setEndpoint(this.computeEndpoint_(k)),this._setServiceEndpoint(this.computeServiceEndpoint_(k)),this._setCommand(this.computeCommand_(k)),this._setButtonIcon(this.computeButtonIcon_(k)),this._setButtonText(this.computeButtonText_(k,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(k)),this._setButtonTooltip(this.computeTooltip_(k)),this._setButtonClass(this.computeButtonClass_(k)),this._setIconPositionType(this.computeIconPositionType_(k)),this.updateRenderedElements())},
setPressedState:function(k){var E;if((E=this.elements_)==null?0:E.button)this.elements_.button.pressed=!!k},
computeIconPositionType_:function(k){return k&&k.iconPosition||null},
computeEndpoint_:function(k){var E=k&&k.navigationEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.url"),R=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:k&&k.command&&k.command.modalEndpoint?k.command:S&&!R&&k.command?k.command:null},
computeServiceEndpoint_:function(k){var E=k&&k.serviceEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:S&&k.command?k.command:null},
computeCommand_:function(k){return k&&k.command||null},
computeButtonIcon_:function(k){return k&&k.icon&&k.icon.iconType?_.SF(k.icon.iconType):null},
computeButtonText_:function(k,E){return!E&&k&&k.text||null},
computeAccessibility_:function(k){return this.get("accessibilityData.accessibilityData",k)||k&&k.accessibility||(k&&k.text?{label:this.getSimpleString(k.text)}:null)},
computeTooltip_:function(k){return k?k.isDisabled&&k.disabledTooltip||k.tooltip||null:null},
computeButtonClass_:function(k){var E=k&&k.style?k.style.toLowerCase().replace(/_/g,"-")+" ":"";E+=k&&k.size?k.size.toLowerCase().replace(/_/g,"-")+" ":"";k.colorData&&k.colorData.basicColorPaletteData&&k.colorData.basicColorPaletteData.borderColor&&(E+="palette-with-border");return E.trim()}}];var P9={};var oEC;var X1p;var gE5,Uop=function(){return gE5!==void 0?gE5:gE5=document.createElement("template")};
document.head.appendChild(Uop().content);var H1C;var K85,p1p=function(){return K85!==void 0?K85:K85=document.createElement("template")};
document.head.appendChild(p1p().content);var AY4;var rYY,uKC=function(){return rYY!==void 0?rYY:rYY=document.createElement("template")};
document.head.appendChild(uKC().content);var xod;var L82=document.head,jNd=L82.appendChild,Do2;if(xod===void 0){var $oj=document.createElement("template");_.X($oj,"\x3c!--css-build:shady--\x3e");$oj.content.insertBefore(uKC().content.cloneNode(!0),$oj.content.firstChild);xod=$oj}Do2=xod;jNd.call(L82,Do2.content);var fHY=document.head,vE8=fHY.appendChild,b1Y;if(AY4===void 0){var Z1d=document.createElement("template");_.X(Z1d,"\x3c!--css-build:shady--\x3e");Z1d.content.insertBefore(p1p().content.cloneNode(!0),Z1d.content.firstChild);AY4=Z1d}b1Y=AY4;vE8.call(fHY,b1Y.content);var doY=document.head,sNz=doY.appendChild,lH8;if(H1C===void 0){var M5p=document.createElement("template");_.X(M5p,"\x3c!--css-build:shady--\x3e");M5p.content.insertBefore(Uop().content.cloneNode(!0),M5p.content.firstChild);H1C=M5p}lH8=H1C;sNz.call(doY,lH8.content);var ql8;_.B9("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");ql8=_.Y("web_button_rework")&&_.qg("BUTTON_REWORK")||_.Y("web_button_rework_with_live");_.j6=function(){return _.p.apply(this,arguments)||this};
_.y(_.j6,_.p);_.j6.prototype.created=function(){this.openPopupConfig=_.Mg("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.j6.prototype.onYtNavigate_=function(k){var E=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(k.detail.endpoint);E&&(this.ytOpenPopupBehavior.openPopup(E),k.stopPropagation(),k.preventDefault())};
_.mt.Object.defineProperties(_.j6,{template:{configurable:!0,enumerable:!0,get:function(){if(X1p===void 0){var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
var E=k.content,S=E.insertBefore;oEC===void 0&&(oEC=document.createElement("template"));var R=oEC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);X1p=k}k=X1p;return k}}});
_.j6.prototype.onYtNavigate_=_.j6.prototype.onYtNavigate_;_.Z([_.g(_.gA.YtOpenPopupBehavior),_.l("design:type",Object)],_.j6.prototype,"ytOpenPopupBehavior",void 0);_.Z([_.g(_.yYC.YtButtonBehavior),_.l("design:type",Object)],_.j6.prototype,"ytButtonBehavior",void 0);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],_.j6.prototype,"onYtNavigate_",null);
_.Z([_.U_({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:ql8})],_.j6);var z65;var QNC=_.Y("web_button_rework")&&_.qg("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),DY=function(){var k=_.p.apply(this,arguments)||this;k.isPressed=!1;k.forceIconButton=!1;k.forceIconOnly=!1;k.forceModernIconButton=!1;k.skipCommandHandling=!1;k.alignByText=!1;k.fitToVisibleBounds=!0;k.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};k.onTap=function(E){_.Me(k.hostElement,"yt-service-request-sent-button-renderer",E)};
return k};
_.y(DY,_.p);_.I=DY.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.I.onClick=function(k){var E,S=this.disabled||((E=this.data)==null?void 0:E.isDisabled);E=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");S&&E&&k.stopPropagation()};
_.I.computeIcon=function(){var k,E,S=(k=this.data)==null?void 0:(E=k.icon)==null?void 0:E.iconType;if(S)return _.SF(S)};
_.I.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.I.handleUpdateButtonAction=function(k){k=_.W(k,Ls8);var E=_.W(k==null?void 0:k.updatedButton,_.dZ);if(this.data&&k&&E){var S=this.data;S.targetId&&k.targetId&&S.targetId===k.targetId&&(this.data=E)}};
_.mt.Object.defineProperties(DY.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var k=this;if(this.data){var E=Sqi({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Me(k.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Me(k.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});E.alignByText=this.alignByText;return E}}}});
_.mt.Object.defineProperties(DY,{template:{configurable:!0,enumerable:!0,get:function(){if(z65===void 0){var k=document.createElement("template");_.X(k,'\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>');z65=k}k=z65;return k}}});
DY.prototype.onClick=DY.prototype.onClick;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],DY.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],DY.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"isPressed",void 0);
_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"forceIconButton",void 0);_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"forceIconOnly",void 0);_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"forceModernIconButton",void 0);_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"skipCommandHandling",void 0);_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"alignByText",void 0);_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"buttonTooltipPosition",void 0);
_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"fitToVisibleBounds",void 0);_.Z([_.H({computed:"computeTooltip(data)"}),_.l("design:type",Object)],DY.prototype,"tooltip",void 0);_.Z([_.H(),_.l("design:type",Object)],DY.prototype,"overrides",void 0);_.Z([_.H(),_.l("design:type",Boolean)],DY.prototype,"disabled",void 0);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],DY.prototype,"onClick",null);
_.Z([_.U("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.l("design:type",Object),_.l("design:paramtypes",[])],DY.prototype,"computedButtonShape",null);_.Z([_.U_({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!QNC,cssBuildOptOut:!0}),_.U_({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!QNC,cssBuildOptOut:!0})],DY);var O1C;var G$d;var $B=function(){var k=_.p.apply(this,arguments)||this;k.empty_=!0;k.loadTime=Infinity;k.pendingPaint=!1;k.hasChange_=!1;k.oldThumbnail_=null;k.oldDelayedSrc_="";k.objectURL_=null;return k};
_.y($B,_.p);_.I=$B.prototype;_.I.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.I.ready=function(){var k=this.shouldShowPlaceholder_();_.E_(this.hostElement,"no-transition",!0);k&&this.hostElement.classList.add("with-placeholder")};
_.I.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.I.isThumbPreloaded_=function(k){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",k)};
_.I.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||CsC};
_.I.computeThumbnailSrc_=function(k){return k&&k.thumbnails?_.zT(k.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.I.computeAlt_=function(){var k=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&k||""};
_.I.thumbnailChanged_=function(){var k=_.n([this.thumbnail,this.oldThumbnail_]),E=k.next().value;k=k.next().value;this.oldThumbnail_=E;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(k=this.computeThumbnailSrc_(k),this.computeThumbnailSrc_(E)===k))return;_.Y("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(E)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):E&&_.qg("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.JB(this,this.onReload_):_.JB(this,this.onShow_):this.resetImage_();E&&(this.hostElement.style.opacity=""+E.opacity)}};
_.I.delayedSrcChanged_=function(){var k=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===k||this.resetImage_()};
_.I.setSrc_=function(k){k?(_.Cc(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Cc(this.hostElement).querySelector("#img").src=k):(_.Cc(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.I.resetImage_=function(){R6C(this.hostElement);this.empty_=!0;this.setSrc_(CsC);this.ytRendererBehavior.invalidate(!1)};
_.I.observePlaceholderColor_=function(){var k=this.thumbnail&&this.thumbnail.placeholderColor;k?this.hostElement.style.backgroundColor=_.HT(k):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.I.onLoad_=function(){_.Cc(this.hostElement).querySelector("#img").src&&_.Cc(this.hostElement).querySelector("#img").src!==CsC&&(Sli(this.hostElement),this.notifyOnLoaded&&_.Me(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.I.onError_=function(){var k=this;if(_.Y("web_use_cache_for_image_fallback"))JYI(_.Cc(this.hostElement).querySelector("#img").src).then(function(E){k.objectURL_=_.dk(E).toString();k.setSrc_(k.objectURL_)}).catch(function(){_.Y("kevlar_woffle_fallback_image")&&k.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.I.onPrescanVisible=function(){this.onShow_()};
_.I.onVisible=function(){if(_.Y("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.I.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var k=this.computeSrc_();k!==_.Cc(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(k))}};
_.I.onReload_=function(){this.empty_=!1;var k=this.computeSrc_();k!==_.Cc(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(k))};
_.I.shouldShowPlaceholder_=function(){return _.Y("kevlar_thumbnail_bg")};
$B.prototype.observePlaceholderColor_=$B.prototype.observePlaceholderColor_;$B.prototype.delayedSrcChanged_=$B.prototype.delayedSrcChanged_;$B.prototype.thumbnailChanged_=$B.prototype.thumbnailChanged_;_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],$B.prototype,"alt",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],$B.prototype,"ariaHidden",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],$B.prototype,"ariaLabel",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],$B.prototype,"hidden",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],$B.prototype,"id",void 0);_.Z([_.g(_.kB.YtVisibilityBehavior),_.l("design:type",Object)],$B.prototype,"ytVisibilityBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$B.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",String)],$B.prototype,"delayedSrc",void 0);
_.Z([_.H(),_.l("design:type",Object)],$B.prototype,"thumbnail",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],$B.prototype,"loaded",void 0);_.Z([_.H(),_.l("design:type",Boolean)],$B.prototype,"notifyOnLoaded",void 0);_.Z([_.H(),_.l("design:type",Number)],$B.prototype,"height",void 0);_.Z([_.H(),_.l("design:type",Number)],$B.prototype,"width",void 0);_.Z([_.H({value:function(){return"width"}}),
_.l("design:type",String)],$B.prototype,"dimension",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],$B.prototype,"fit",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],$B.prototype,"fitHeight",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],$B.prototype,"fitWidth",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],$B.prototype,"objectFit",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],$B.prototype,"objectPosition",void 0);_.Z([_.H(),_.l("design:type",String)],$B.prototype,"preferredThumbnail",void 0);_.Z([_.H({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.l("design:type",String)],$B.prototype,"alt_",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],$B.prototype,"sharedTooltipText",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],$B.prototype,"ftlEligible",void 0);_.Z([_.H({value:void 0}),_.l("design:type",String)],$B.prototype,"observeHiddenOption",void 0);_.Z([_.H({value:"observe_once"}),_.l("design:type",String)],$B.prototype,"observePrescanOption",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],$B.prototype,"roundedContainer",void 0);
_.Z([_.ac("thumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$B.prototype,"thumbnailChanged_",null);_.Z([_.ac("delayedSrc"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$B.prototype,"delayedSrcChanged_",null);_.Z([_.il("thumbnail.placeholderColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$B.prototype,"observePlaceholderColor_",null);
_.Z([_.U_({is:"yt-img-shadow",disableElementRegistration:!0})],$B);var CsC=_.qg("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.O_()($B,"yt-img-shadow",function(){if(G$d===void 0){var k=document.createElement("template");_.X(k,'\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">');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;O1C===void 0&&(O1C=document.createElement("template"));var R=O1C;S.call(E,R.content.cloneNode(!0),k.content.firstChild);G$d=k}k=G$d;return k},{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 l1b;_.fG=new _.QE("SCREEN_MANAGER_TOKEN");l1b=new _.QE("LOG_INITIAL_SCREEN_TOKEN");var kK4=_.W9({entities:{}});_.v5=_.FS(kK4)(kK4.entities,{selectSfvAudioItemPlaybackState:function(k,E){var S,R;k=(R=_.Ep(k,"sfvAudioItemCurrentlyPlayingEntity",E))!=null?R:void 0;return(S=k==null?void 0:k.sfvAudioItemPlaybackState)!=null?S:void 0},
playlistLoopStateEntitySelector:NKC,toggleMenuServiceItemEntitySelector:Ich});_.bL=_.f(function(k){function E(kb){return _.W(kb,_.qz)}
function S(){var kb=R().isTogglingDisabled||K()&&R().toggledIsTogglingDisabled,TI=kb||P()?K():!K();r(TI);L(!1);if(!kb){var a1;(a1=h)==null||a1(!!TI)}var Ah;((Ah=N)==null?0:Ah())||_.FE(_.en().resolve(_.fG),R().trackingParams);var th;if(!TI||!E(R().defaultButtonViewModel)||(th=N)!=null&&th()){var He;!E(R().toggledButtonViewModel)||((He=N)==null?0:He())||_.FE(_.en().resolve(_.fG),E(R().toggledButtonViewModel).trackingParams)}else _.FE(_.en().resolve(_.fG),E(R().defaultButtonViewModel).trackingParams)}
var R=k.data,V=k.buttonShapeOverrides,N=k.disableExplicitClickLogging,h=k.onToggle,J=k.style,m=k.useOutlinedIcon,a=k.className,T=function(){var kb,TI;return K()?(kb=k.animatedTextPropsToggled)==null?void 0:kb.call(k):(TI=k.animatedTextPropsDefault)==null?void 0:TI.call(k)},w=_.HX(function(){return T()?Object.assign({},T(),{shouldAnimate:x()}):void 0},void 0,"Zp4uoe"),P=function(){var kb;
return((kb=d())==null?void 0:kb.isToggled)!==void 0},B=_.n(_.IZ(function(){var kb,TI,a1;
return P()?(kb=d())==null?void 0:kb.isToggled:(a1=V==null?void 0:(TI=V())==null?void 0:TI.toggled)!=null?a1:R().isToggled})),F=B.next().value;
B=B.next().value;var K=F,r=B;B=_.n(_.IZ(function(){var kb,TI;return(kb=k.animatedTextPropsToggled)==null?void 0:(TI=kb.call(k))==null?void 0:TI.shouldAnimate}));
F=B.next().value;B=B.next().value;var x=F,L=B;F=_.n(_.yg(!1,void 0,"mq3Zfe"));var q=F.next().value,M=F.next().value,d=_.gb(function(kb){a:{var TI=R().entityKey,a1=R().toggledStateEntitySelectorType;if(a1)switch(a1){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!TI)break;kb=_.v5.selectSfvAudioItemPlaybackState(kb,TI);if(kb==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){kb={isToggled:!0};break a}if(kb){kb={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":kb=
{isToggled:_.i0I(kb).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":kb={isToggled:_.i0I(kb).includes("engagement-panel-live-chat-item-section")};break a;default:_.dg(new _.LC("Error: entitySelectorType defined but not matched in selector.",kb,a1))}kb=void 0}return kb}),z=function(){return Object.assign({},V==null?void 0:V(),{onToggle:S,
toggleable:!0,toggled:K(),focused:q()})};
return _.e("toggle-button-view-model",{"on:focusin":_.RZ(function(){var kb=_.en().resolve(_.mz(_.tr));kb&&M(kb.isKeyBoardInUse());return!1}),
"on:focusout":_.RZ(function(){M(!1);return!1})},_.e(_.t,{cond:function(){return K()?E(R().toggledButtonViewModel):E(R().defaultButtonViewModel)},
then:function(kb){return _.e(_.yB,{data:kb,className:a,style:J,useOutlinedIcon:m,buttonOverrides:z,animatedTextProps:w})}}))},"ca");
_.bL.idomCompat={callbacks:{onToggle:!0}};_.qi(_.f(function(k){return _.e("yt-toggle-button-view-model",{class:function(){var E;return(E=k.scopingClassName)==null?void 0:E.call(k)}},_.e(_.bL,{data:function(){var E;
return(E=k.data)==null?void 0:E.call(k)},
buttonShapeOverrides:function(){var E;return(E=k.overrides)==null?void 0:E.call(k)},
animatedTextPropsDefault:function(){var E;return(E=k.animatedTextPropsDefault)==null?void 0:E.call(k)},
animatedTextPropsToggled:function(){var E;return(E=k.animatedTextPropsToggled)==null?void 0:E.call(k)},
disableExplicitClickLogging:function(){var E;return(E=k.disableExplicitClickLogging)==null?void 0:E.call(k)},
onToggle:function(E){var S;return(S=k.onToggle)==null?void 0:S.call(k,E)},
style:function(){var E;return(E=k.style)==null?void 0:E.call(k)},
useOutlinedIcon:function(){var E;return(E=k.useOutlinedIcon)==null?void 0:E.call(k)},
className:function(){var E;return(E=k.className)==null?void 0:E.call(k)}}))},"da"),"yt-toggle-button-view-model",{props:{data:_.Nq,
buttonShapeOverrides:_.Nq,overrides:_.Nq,animatedTextPropsDefault:_.Nq,animatedTextPropsToggled:_.Nq,disableExplicitClickLogging:_.Nq,onToggle:_.sk,style:_.Nq,useOutlinedIcon:_.Nq,className:_.Nq,scopingClassName:_.Nq}});var ZY=function(){return _.p.apply(this,arguments)||this};
_.y(ZY,_.p);ZY.prototype.onTap=function(k){k.stopPropagation();k=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.wE("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:k})):this.ytLiveChatReduxBehavior.dispatch(_.mj("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:k}))};
_.mt.Object.defineProperties(ZY.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.engagementState)==null?void 0:k.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var k=_.W(this.data.toggleButton,_.QK),E;if(Number(((E=this.likeCountState)==null?void 0:E.likeCountIfIndifferentNumber)||"0")===0){var S;E=((S=this.data.likeCountPlaceholder)==null?void 0:S.content)||""}else{var R,V,N;E=((R=this.likeCountState)==null?void 0:(V=R.likeCountIfIndifferent)==null?void 0:V.content)||((N=this.data.likeCountPlaceholder)==null?void 0:N.content)||""}var h,J;S=((h=this.likeCountState)==null?void 0:(J=
h.likeCountIfLiked)==null?void 0:J.content)||"1";h=_.W(k.toggledButtonViewModel,_.qz);return Object.assign({},k,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.W(k.defaultButtonViewModel,_.qz),{title:E})},toggledButtonViewModel:{buttonViewModel:Object.assign({},h,{title:S})}})}}}});
ZY.prototype.onTap=ZY.prototype.onTap;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ZY.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],ZY.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ZY.prototype,"data",void 0);
_.Z([_.H({selectorArgs:["data.likeCountEntityKey"],selector:hDR}),_.l("design:type",Object)],ZY.prototype,"likeCountState",void 0);_.Z([_.H({selectorArgs:["data.engagementStateKey"],selector:JAj}),_.l("design:type",Object)],ZY.prototype,"engagementState",void 0);_.Z([_.U("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ZY.prototype,"isLiked",null);
_.Z([_.U("data","likeCountState","isLiked"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZY.prototype,"toggleButton",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],ZY.prototype,"onTap",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],ZY);
_.b(ZY,"yt-live-chat-like-button-view-model",function(){if(R64===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;SlA===void 0&&(SlA=document.createElement("template"));var R=SlA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);R64=k}k=R64;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var EVY;var Srd;var dA=function(){return _.p.apply(this,arguments)||this};
_.y(dA,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],dA.prototype,"data",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],dA);
_.b(dA,"yt-live-chat-paid-message-footer-renderer",function(){if(Srd===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;EVY===void 0&&(EVY=document.createElement("template"));var R=EVY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Srd=k}k=Srd;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var RyC;var VC2;var Npd;var IS2,nVY=function(){if(IS2!==void 0)return IS2;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;Npd===void 0&&(Npd=document.createElement("template"));var R=Npd;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return IS2=k};var sN=function(){return _.p.apply(this,arguments)||this};
_.y(sN,_.p);sN.prototype.onTap=function(k){k.stopPropagation()};
_.mt.Object.defineProperties(sN.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var k=_.W(this.data.replyButton,_.qz),E,S,R,V,N,h,J,m=Number(((E=this.replyCountState)==null?void 0:E.replyCountNumber)||"0")===0?(S=this.data)==null?void 0:(R=S.replyCountPlaceholder)==null?void 0:R.content:((V=this.replyCountState)==null?void 0:(N=V.replyCount)==null?void 0:N.content)||((h=this.data)==null?void 0:(J=h.replyCountPlaceholder)==null?void 0:J.content)||"",a;return Object.assign({},
k,{title:m,accessibilityText:(a=this.replyCountState)==null?void 0:a.replyButtonAccessibilityText})}}}});
_.mt.Object.defineProperties(sN,{template:{configurable:!0,enumerable:!0,get:function(){return nVY()}}});
sN.prototype.onTap=sN.prototype.onTap;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],sN.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],sN.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sN.prototype,"data",void 0);
_.Z([_.H({selectorArgs:["data.replyCountEntityKey"],selector:function(k,E){return _.Ep(k.entities,"replyCountEntity",E)}}),
_.l("design:type",Object)],sN.prototype,"replyCountState",void 0);_.Z([_.U("data","replyCountState"),_.l("design:type",Object),_.l("design:paramtypes",[])],sN.prototype,"buttonViewModel",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],sN.prototype,"onTap",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],sN);
_.b(sN,"yt-live-chat-reply-button-view-model",function(){return nVY()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var iHC;var hyC;var lL=function(){var k=_.p.apply(this,arguments)||this;k.ariaLabel="";return k};
_.y(lL,_.p);
lL.prototype.dataChanged=function(){for(var k=(0,_.Rc)(_.Cc(this.hostElement).querySelector("#image"));k.firstChild;)k.removeChild(k.firstChild);if(this.data)if(this.data.icon){var E=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(E.polymerController.icon="yt-sys-icons:shield-filled",E.polymerController.defaultToFilled=!0):E.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();k.appendChild(E)}else if(this.data.customThumbnail){E=document.createElement("img");
var S=_.zqj(this.data.customThumbnail.thumbnails,16);S?(E.src=S,k.appendChild(E),E.setAttribute("alt",this.hostElement.ariaLabel||"")):_.dg(new _.LC("Could not compute URL for thumbnail",this.data.customThumbnail))}};
lL.prototype.identity=function(k){return k};
lL.prototype.computeType=function(k){return Cv(k||void 0)};
lL.prototype.dataChanged=lL.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],lL.prototype,"data",void 0);_.Z([_.H({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.l("design:type",Object)],lL.prototype,"ariaLabel",void 0);_.Z([_.H({computed:"computeType(data)",reflectToAttribute:!0}),_.l("design:type",String)],lL.prototype,"type",void 0);
_.Z([_.H({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.l("design:type",String)],lL.prototype,"sharedTooltipText",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("live_chat_enable_new_moderator_badge")}}),
_.l("design:type",Boolean)],lL.prototype,"enableNewModeratorBadge",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lL.prototype,"dataChanged",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],lL);
_.b(lL,"yt-live-chat-author-badge-renderer",function(){if(hyC===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;iHC===void 0&&(iHC=document.createElement("template"));var R=iHC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);hyC=k}k=hyC;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var JA5;var cAT;var Mq=function(){return _.p.apply(this,arguments)||this};
_.y(Mq,_.p);_.I=Mq.prototype;_.I.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"}}}}};
_.I.computeBadgesInsideChip=function(k){return k?k.filter(function(E){return Cv(E.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.I.computeBadgesOutsideChip=function(k){return this.prependChatBadges||!k?[]:k.filter(function(E){E=Cv(E.liveChatAuthorBadgeRenderer);return E!=="verified"&&E!=="owner"})};
_.I.computeBadgesBeforeChip=function(k){return this.prependChatBadges&&k?k.filter(function(E){E=Cv(E.liveChatAuthorBadgeRenderer);return E!=="verified"&&E!=="owner"}):[]};
_.I.computeIsHighlighted=function(k,E){var S=!!egR(k,"owner"),R=!!egR(k,"verified");k=!!egR(k,"moderator");return(S||R&&!k)&&!E};
_.I.computeAuthorType=function(k){return m9C(k)};
_.I.computeAuthorClass=function(k,E){return E?(k?k+" ":"")+"single-line":k};
_.I.onSeedColorChanged=function(){_.Y("live_chat_author_name_color_usernames")||_.Y("live_chat_seed_color_usernames")||_.Y("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):_.Y("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
Mq.prototype.onSeedColorChanged=Mq.prototype.onSeedColorChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Mq.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Mq.prototype,"authorName",void 0);_.Z([_.H(),_.l("design:type",Array)],Mq.prototype,"authorBadges",void 0);
_.Z([_.H({computed:"computeAuthorType(authorBadges)"}),_.l("design:type",String)],Mq.prototype,"authorType",void 0);_.Z([_.H({computed:"computeAuthorClass(authorType, singleLine)"}),_.l("design:type",String)],Mq.prototype,"authorClass",void 0);_.Z([_.H({computed:"computeBadgesInsideChip(authorBadges)"}),_.l("design:type",Array)],Mq.prototype,"badgesInsideChip",void 0);_.Z([_.H({computed:"computeBadgesOutsideChip(authorBadges)"}),_.l("design:type",Array)],Mq.prototype,"badgesOutsideChip",void 0);
_.Z([_.H({computed:"computeBadgesBeforeChip(authorBadges)"}),_.l("design:type",Array)],Mq.prototype,"badgesBeforeChip",void 0);_.Z([_.H({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Mq.prototype,"isHighlighted",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Mq.prototype,"singleLine",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Mq.prototype,"disableHighlighting",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Mq.prototype,"dashboardMoneyFeed",void 0);_.Z([_.H({value:_.Y("live_chat_prepend_badges"),reflectToAttribute:!0}),_.l("design:type",Boolean)],Mq.prototype,"prependChatBadges",void 0);_.Z([_.H(),_.l("design:type",String)],Mq.prototype,"authorNameColor",void 0);_.Z([_.JO("#author-name"),_.l("design:type",HTMLDivElement)],Mq.prototype,"username",void 0);
_.Z([_.il("authorNameColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mq.prototype,"onSeedColorChanged",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],Mq);
_.b(Mq,"yt-live-chat-author-chip",function(){if(cAT===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;JA5===void 0&&(JA5=document.createElement("template"));var R=JA5;S.call(E,R.content.cloneNode(!0),k.content.firstChild);cAT=k}k=cAT;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var mfd;var eyd;var qq=function(){var k=_.p.apply(this,arguments)||this;k.debounceCommand=_.ta(function(E){k.ytComponentBehavior.resolveCommand(E)},1500);
return k};
_.y(qq,_.p);qq.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var k=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",E,S,R=this.isHearted?(E=this.data)==null?void 0:E.unheartCommand:(S=this.data)==null?void 0:S.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.wE("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:k}));(k=_.Uk(R))&&this.debounceCommand(k)}};
_.mt.Object.defineProperties(qq.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var k,E;if(!((k=this.data)==null?0:(E=k.creatorThumbnail)==null?0:E.sources))return{};k={thumbnails:[]};E={};E.url=this.data.creatorThumbnail.sources[0].url;k.thumbnails.push(E);return k}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.engagementState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.engagementState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.engagementState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.engagementState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((E=this.engagementState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((S=this.engagementState)==null?void 0:S.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}}});
qq.prototype.onTap=qq.prototype.onTap;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],qq.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qq.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],qq.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],qq.prototype,"data",void 0);
_.Z([_.H({selectorArgs:["data.engagementStateKey"],selector:JAj}),_.l("design:type",Object)],qq.prototype,"engagementState",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],qq.prototype,"thumbnailDetails",null);_.Z([_.U("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qq.prototype,"isHearted",null);_.Z([_.U("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qq.prototype,"isEditable",null);
_.Z([_.U("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qq.prototype,"showCreatorView",null);_.Z([_.U("data","engagementState"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qq.prototype,"showButton",null);_.Z([_.U("data","isHearted"),_.l("design:type",String),_.l("design:paramtypes",[])],qq.prototype,"label",null);_.Z([_.U("data","isHearted"),_.l("design:type",Object),_.l("design:paramtypes",[])],qq.prototype,"heartHoverText",null);
_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qq.prototype,"onTap",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],qq);
_.b(qq,"yt-live-chat-creator-heart-view-model",function(){if(eyd===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;mfd===void 0&&(mfd=document.createElement("template"));var R=mfd;S.call(E,R.content.cloneNode(!0),k.content.firstChild);eyd=k}k=eyd;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var zi=function(){};
_.y(zi,yW);zi.prototype.JSC$13266_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:xu("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
zi.prototype.getApiPaths=function(){return[]};
zi.prototype.getExtension=function(){};
zi.prototype.JSC$13266_buildRequest=function(){};var aSA={},tC8=(aSA.GET_DATASYNC_IDS=Jg(zi),aSA);var TpY,wOz,P85,m_C,QB,Wg2,PNT,YrY,Bpj;TpY="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");wOz=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.rb=function(k,E,S,R,V,N,h,J,m){this.endpointMap=k;this.networkManager=E;this.authService=S;this.responseProcessorMap=R;this.innertubeResponseStore=V;this.contextProcessors=N;this.asyncContextProcessors=h;this.localInnertubeRouter=J;this.requestSequencer=m;this.inflightRequests=new Map;k.signalEndpointMap||(k.signalEndpointMap={});k.signalEndpointMap=Object.assign({},tC8,k.signalEndpointMap)};
P85=function(k,E,S,R,V,N,h,J,m){if(_.rb.instance!==void 0){if(R=_.rb.instance,k=[k!==R.endpointMap,E!==R.networkManager,S!==R.authService,V!==R.innertubeResponseStore,N!==R.contextProcessors,h!==R.asyncContextProcessors,J!==R.localInnertubeRouter],k.some(function(a){return a}))throw new _.LC("InnerTubeTransportService is already initialized",k);
}else _.rb.instance=new _.rb(k,E,S,R,V,N,h,J,m)};
_.xv=function(k,E,S){var R=R===void 0?EAC:R;var V=PNT(k,E);return V?new _.yF(function(N,h){var J,m,a,T,w;return _.c(function(P){switch(P.nextAddress){case 1:return P.yield(V,2);case 2:J=P.yieldResult;m=J.JSC$13266_getRequest(E,S,R);if(!m){h(new _.LC("Error: Failed to build request for command.",E));P.jumpTo(0);break}uv(m.input);T=((a=m.requestShell)==null?void 0:a.mode)==="cors"?"cors":void 0;if(k.authService.syncHeaders){w=Bpj(m.config,T);P.jumpTo(4);break}return P.yield(YrY(m.config,T),5);case 5:w=
P.yieldResult;case 4:N(Wg2(k,m,w)),_.KR(P)}})}):_.BM(new _.LC("Error: No request builder found for command.",E))};
m_C=function(k,E,S,R){var V=V===void 0?EAC:V;var N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z;return _.c(function(kb){switch(kb.nextAddress){case 1:N=eDI(E,k.endpointMap);if(!N)throw new _.LC("Error: No streaming request builder found for command",E);h=N.JSC$13266_getRequest(E,S,V);if(!h)throw new _.LC("Failed to build YtRequest for streaming Command",E);if((J=k.localInnertubeRouter)==null||!J.shouldPreferLocalResponse(h.input,h.innerTubeRequest)){kb.jumpTo(2);break}return kb.yield(k.localInnertubeRouter.localInnertubeResponse(h.input,
h.innerTubeRequest),3);case 3:return m=kb.yieldResult,a={},m.playerResponse&&(QB(k,m.playerResponse,h),a.player=m.playerResponse,(T=R)==null||T(a,m)),m.watchNextResponse&&(QB(k,m.watchNextResponse,h),a.content=m.watchNextResponse,(w=R)==null||w(a,m)),kb.return(a);case 2:B=((P=h.requestShell)==null?void 0:P.mode)==="cors"?"cors":void 0;if(k.authService.syncHeaders){F=Bpj(h.config,B);kb.jumpTo(4);break}return kb.yield(YrY(h.config,B),5);case 5:F=kb.yieldResult;case 4:return x=(r=(K=h.requestShell)==
null?void 0:K.headers)!=null?r:{},h.requestShell=Object.assign({},h.requestShell,{headers:Object.assign({},x,F)}),L=Object.assign({},h.requestShell),q=JSON.stringify(h.innerTubeRequest),h.requestShell.method==="POST"&&(L=Object.assign({},L,{body:q})),M=function(TI,a1){QB(k,a1.playerResponse||a1.watchNextResponse||a1.reelItemWatchResponse||a1.reelWatchSequenceResponse,h);R==null||R(TI,a1)},d={},kb.yield(FgY(k.networkManager,h.input,L,M),6);
case 6:return d=kb.yieldResult,((z=h.config)==null?0:z.responseTick)&&_.o_(h.config.responseTick),kb.return(d)}})};
_.qF=function(k,E,S,R,V){V=V===void 0?{authStrategy:{identity:EAC}}:V;var N=N===void 0?!0:N;var h=function(){};
h=C31(OKl(S));E.context||(E.context=_.F1j(R,N));return new _.yF(function(J){var m,a,T,w,P;return _.c(function(B){if(B.nextAddress==1)return m=fTl(S),a=_.uW(m),k.authService.syncHeaders?(T=Bpj(V,a),B.jumpTo(2)):B.yield(YrY(V,a),3);B.nextAddress!=2&&(T=B.yieldResult);w=vDR(fTl(S));P={input:w,requestShell:xu(w),innerTubeRequest:E,config:V};J(Wg2(k,P,T,h));_.KR(B)})})};
QB=function(k,E,S){var R;if(E&&!(E==null?0:(R=E.sequenceMetaData)==null?0:R.skipProcessing)&&k.responseProcessorMap){R=_.n(TpY);for(var V=R.next();!V.done;V=R.next())V=V.value,k.responseProcessorMap[V]&&k.responseProcessorMap[V].handleResponse(E,S)}};
Wg2=function(k,E,S,R){R=R===void 0?function(){}:R;
var V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z,kb,TI,a1,Ah,th,He,ve,Xm,U5,l4,gY,IC,md,Kj,Lj,H0,TG,iC,hC,Y2,It;return _.c(function(Wz){switch(Wz.nextAddress){case 1:h=(V=E.config)==null?void 0:(N=V.storeStrategy)==null?void 0:N.storeKey;if(!(h&&k.innertubeResponseStore&&k.innertubeResponseStore.has(h))||((J=E.config)==null?0:(m=J.storeStrategy)==null?0:m.disableCache)){Wz.jumpTo(2);break}return Wz.yield(k.innertubeResponseStore.get(h),3);case 3:if((a=Wz.yieldResult)&&!a.isExpired())return Wz.return(Promise.resolve(_.vZ(a)));
case 2:if(!((T=E)==null?0:(w=T.innerTubeRequest)==null?0:w.context)){Wz.jumpTo(4);break}P=E.innerTubeRequest.context;if(!(k.asyncContextProcessors&&k.asyncContextProcessors.length>0)){Wz.jumpTo(5);break}B=[];F=_.n(k.asyncContextProcessors);for(K=F.next();!K.done;K=F.next())r=K.value,x=r.processContext(E),x.wrappedPromise_&&B.push(x.wrappedPromise_);if(!(B.length>0)){Wz.jumpTo(5);break}return Wz.yield(Promise.all(B),5);case 5:L=_.n(k.contextProcessors||[]),q=L.next();case 8:if(q.done){Wz.jumpTo(4);
break}M=q.value;return Wz.yield(M.processContext(P),9);case 9:q=L.next();Wz.jumpTo(8);break;case 4:if((d=k.localInnertubeRouter)==null||!d.shouldPreferLocalResponse(E.input,E.innerTubeRequest)){Wz.jumpTo(12);break}return Wz.yield(k.localInnertubeRouter.localInnertubeResponse(E.input,E.innerTubeRequest),13);case 13:return z=Wz.yieldResult,QB(k,z,E),Wz.return(z);case 12:return(a1=(TI=E.config)==null?void 0:TI.requestKey)&&k.inflightRequests.has(a1)?kb=k.inflightRequests.get(a1):(Ah=JSON.stringify(E.innerTubeRequest),
ve=(He=(th=E.requestShell)==null?void 0:th.headers)!=null?He:{},E.requestShell=Object.assign({},E.requestShell,{headers:Object.assign({},ve,S)}),Xm=Object.assign({},E.requestShell),E.requestShell.method==="POST"&&(Xm=Object.assign({},Xm,{body:Ah})),((U5=E.config)==null?0:U5.requestTick)&&_.o_(E.config.requestTick),l4=function(){return k.networkManager.fetch(E.input,Xm,E.config)},kb=k.requestSequencer?yAC(k.requestSequencer,E,l4):l4(),a1&&k.inflightRequests.set(a1,kb)),Wz.yield(kb,14);
case 14:(gY=Wz.yieldResult)&&_.Y("web_streaming_player")&&Array.isArray(gY)&&(gY=gY[0].playerResponse);if(gY&&"error"in gY&&((IC=gY)==null?0:(md=IC.error)==null?0:md.details))for(Kj=gY.error.details,Lj=_.n(Kj),H0=Lj.next();!H0.done;H0=Lj.next())TG=H0.value,(iC=TG["@type"])&&wOz.indexOf(iC)>-1&&(delete TG["@type"],gY=TG);a1&&k.inflightRequests.has(a1)&&k.inflightRequests.delete(a1);((hC=E.config)==null?0:hC.responseTick)&&_.o_(E.config.responseTick);if(gY||(Y2=k.localInnertubeRouter)==null||!Y2.canProvideFallbackResponse(E.input,
E.innerTubeRequest)){Wz.jumpTo(15);break}return Wz.yield(k.localInnertubeRouter.localFallbackInnertubeResponse(E.input,E.innerTubeRequest),16);case 16:gY=Wz.yieldResult;case 15:return QB(k,gY,E),((It=E.config)==null?0:It.processorTick)&&_.o_(E.config.processorTick),R(),Wz.return(gY||void 0)}})};
_.u_=function(k,E){return mSA(E,k.endpointMap)};
PNT=function(k,E){k=ac1(E,k.endpointMap);if(k!==void 0)return Promise.resolve(k)};
YrY=function(k,E){var S,R,V,N;return _.c(function(h){if(h.nextAddress==1){V=(S=k)==null?void 0:(R=S.authStrategy)==null?void 0:R.sessionIndex;var J=h.yield;var m=_.GR(zeC({sessionIndex:V}));return J.call(h,m,2)}N=h.yieldResult;return h.return(Promise.resolve(Object.assign({},tWj(E),N)))})};
Bpj=function(k,E){var S;k=k==null?void 0:(S=k.authStrategy)==null?void 0:S.sessionIndex;S=zeC({sessionIndex:k});return Object.assign({},tWj(E),S)};var oV2,XOY,gV8,Ufz,HHY,Kg4,rAY,uMz,CG,xfd,Lg5,AAd,jpC;oV2=0;XOY=/tone[1-5]/;gV8=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Ufz="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
HHY=Number.MAX_SAFE_INTEGER;Kg4=RegExp("\ufe0f","g");_.ON=function(k){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;k&&_.pOp(this,k)};
_.pOp=function(k,E){try{_.gO(E,{context:k,onSuccess:function(R,V){Array.isArray(V)?k.load(V):(R=new _.LC("Emoji manager JSON response was not an array!",{response:V}),_.bM(R))},
onError:function(R){R=new _.LC("Failed to retrieve emoji manager initial JSON data!",{url:E,statusCode:_.Yr(R).toString()});_.dg(R)}})}catch(R){var S=new _.LC("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:E});
_.dg(S)}};
_.ON.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.ON.prototype.load=function(k,E){if(E)if(k.length)k=k.concat(E.emojis);else{this.emojis=E.emojis;this.emojiMap=E.emojiMap;this.emojiShortcutMap=E.emojiShortcutMap;this.emojiShortcutCharMap=AAd(E);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=E.emojiRegex;return}this.emojis=[].concat(_.$e(new Set(this.emojis.concat(k))));this.hasInitializedShortcutCharMap=!1;k=Array(this.emojis.length);for(E=0;E<this.emojis.length;E++){var S=this.emojis[E];if(S.emojiId){this.emojiMap[S.emojiId]=S;this.emojiMap[S.emojiId].index=
E;for(var R=0;S.shortcuts&&R<S.shortcuts.length;R++)this.emojiShortcutMap[S.shortcuts[R].toLocaleLowerCase()]=S;k[E]=S.isCustomEmoji&&S.shortcuts?S.shortcuts[0]:S.emojiId}}k.sort(function(V,N){return N.length-V.length});
if(k.length)try{this.emojiRegex=new RegExp(k.join("|").replace("*","\\*"),"gi")}catch(V){this.emojiRegex=/$./}else this.emojiRegex=/$./};
rAY=function(k,E){E=_.n(E);for(var S=E.next();!S.done;S=E.next()){var R=S.value;if(R.emojiId&&k.emojiMap[R.emojiId]){S=Object.assign({},k.emojiMap[R.emojiId],R);k.emojiMap[R.emojiId]=S;var V=void 0;S.index&&((V=k.emojis[S.index])==null?void 0:V.emojiId)===R.emojiId&&(k.emojis[S.index]=S);R=void 0;if((R=S.shortcuts)==null?0:R.length)for(k.hasInitializedShortcutCharMap=!1,R=_.n(S.shortcuts),V=R.next();!V.done;V=R.next())k.emojiShortcutMap[V.value.toLocaleLowerCase()]=S}}};
uMz=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(_.Lw.getInstance(),2);if(R.nextAddress!=3)return(E=R.yieldResult)?R.yield(E.get("ytlc-emoji-pref"),3):R.return();(S=R.yieldResult)&&rAY(k,Object.keys(S).map(function(V){return{emojiId:V,stickyPrefId:S[V]}}).filter(function(V){return!!V.emojiId&&!!V.stickyPrefId}));
_.KR(R)})};
_.Gi=function(k,E,S){return(k=k.emojiMap[E])&&(!k.isLocked||S!==void 0&&S)?k:void 0};
CG=function(k,E,S){S=_.Gi(k,E,S===void 0?!1:S);var R=E.match("\u200d");S&&k.skinTone!==0&&(k=(R==null?void 0:R.length)===1?_.Gi(k,E.replace("\u200d",gV8[k.skinTone]+"\u200d")):_.Gi(k,E+gV8[k.skinTone]))&&(S=k);return S};
xfd=function(k,E){var S=k.emojiMap[E];return(S==null?0:S.stickyPrefId)?k.emojiMap[S.stickyPrefId]:CG(k,E)};
_.MB=function(k,E){k=k.emojiShortcutMap[E.toLocaleLowerCase()];return!k||k.isLocked?null:k};
Lg5=function(k,E,S){return AAd(k,S===void 0?!1:S)[E]||{}};
AAd=function(k,E){E=E===void 0?!1:E;if(!k.hasInitializedShortcutCharMap){k.hasInitializedShortcutCharMap=!0;for(var S=0;S<k.emojis.length;S++){var R=k.emojis[S];if(!(R.isLocked||E&&R.isCustomEmoji&&R.emojiId&&!k.pickerCustomEmojiIds.includes(R.emojiId)))for(var V=0;R.shortcuts&&V<R.shortcuts.length;V++){var N=R.shortcuts[V];N.startsWith(":_")&&R.isCustomEmoji&&(k.emojiShortcutCharMap[":_"]==null&&(k.emojiShortcutCharMap[":_"]=Object.create(null)),k.emojiShortcutCharMap[":_"][N]=R);if(!(N.length<3||
!R.isCustomEmoji&&XOY.test(N))){var h=N.substr(0,3).toLocaleLowerCase();k.emojiShortcutCharMap[h]==null&&(k.emojiShortcutCharMap[h]=Object.create(null));k.emojiShortcutCharMap[h][N]=R}}}}return k.emojiShortcutCharMap};
_.ON.prototype.createEmoji=function(k,E){E=E===void 0?!0:E;var S=document.createElement("img");k.isCustomEmoji||S.classList.add("small-emoji");S.classList.add("emoji");S.classList.add("yt-formatted-string");S.src=k.image?_.zT(k.image.thumbnails,this.emojiSize)||"":"";var R=void 0;k.image&&k.image.accessibility&&k.image.accessibility.accessibilityData&&(R=k.image.accessibility.accessibilityData.label);S.alt=R?R:(k.isCustomEmoji&&k.shortcuts?k.shortcuts[0]:k.emojiId)||"";k.isCustomEmoji&&(S.dataset.emojiId=
k.emojiId);_.qX&&(S.setAttribute("contenteditable","false"),S.setAttribute("unselectable","on"));E&&(k.shortcuts&&k.shortcuts.length&&S.setAttribute("shared-tooltip-text",k.shortcuts[0]),S.id="emoji-"+oV2++);return S};
_.ON.prototype.createDocumentFragment=function(k,E,S,R){E=E===void 0?!1:E;S=S===void 0?!0:S;R=R===void 0?!1:R;k=k.replace(Kg4,"");for(var V=document.createDocumentFragment(),N=0,h,J=0;(h=this.emojiRegex.exec(k))!=null;){var m=_.Gi(this,h[0])||_.MB(this,h[0]);!m||m.isCustomEmoji&&!E||(m=this.createEmoji(m,S),N!==h.index&&V.appendChild(document.createTextNode(k.substring(N,h.index))),V.appendChild(m),N=h.index+h[0].length,J++)}if(!R||J)return V.appendChild(document.createTextNode(k.substr(N))),V};
jpC=function(k,E,S){var R,V,N,h,J,m,a,T,w;return _.c(function(P){if(P.nextAddress==1){if(!E.emojiId||!k.emojiMap[E.emojiId])return P.return();R=Object.assign({},k.emojiMap[E.emojiId],{stickyPrefId:S});k.emojiMap[E.emojiId]=R;E.index&&((V=k.emojis[E.index])==null?void 0:V.emojiId)===E.emojiId&&(k.emojis[E.index]=R);if((N=E.shortcuts)==null?0:N.length)for(k.hasInitializedShortcutCharMap=!1,h=_.n(E.shortcuts),J=h.next();!J.done;J=h.next())m=J.value,k.emojiShortcutMap[m.toLocaleLowerCase()]=R;return P.yield(_.Lw.getInstance(),
2)}if(P.nextAddress!=4)return(a=P.yieldResult)?P.yield(a.get("ytlc-emoji-pref"),4):P.jumpTo(0);w=(T=P.yieldResult)!=null?T:{};w[E.emojiId]=S;return P.yield(a.set("ytlc-emoji-pref",w,HHY),0)})};
_.kP=new _.ON;var fSC;_.Eb={};
fSC={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.Y("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:_.Y("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 ji(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 k=_.Cc(this.hostElement||this).querySelector("#inline-action-button-container");k&&k.setAttribute("aria-hidden","true");this.menuButton=_.Cc(this.hostElement).querySelector("#menu-button")},
attached:function(){var k=this.menuButton;k&&(k.addEventListener("focusin",_.Ic(this,this.onMenuButtonFocus_)),k.addEventListener("focusout",_.Ic(this,this.onMenuButtonBlur_)))},
detached:function(){var k=this.menuButton;k&&(k.removeEventListener("focusin",_.Ic(this,this.onMenuButtonFocus_)),k.removeEventListener("focusout",_.Ic(this,this.onMenuButtonBlur_)))},
identity:_.DR,truthy:function(k){return!!k},
computeTimestampString:function(k){return k?k.timestampText?this.getSimpleString(k.timestampText):this.TIME_FORMATTER.format(new Date(k.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(k){return k},
computeMenuVisible_:function(k,E){return k||E},
computeHasInlineActionButtons:function(k){if(!k)return!1;var E,S;return!((E=k.inlineActionButtons)==null||!E.length)||!((S=k.additionalInlineActionButtons)==null||!S.length)},
createDocumentFragmentFromString:function(k){var E=_.kP.createDocumentFragment.bind(_.kP),S;if((S=this.participantsManager)==null||!S.viewerRegex)return E(k);S=document.createDocumentFragment();for(var R=0,V;(V=this.participantsManager.viewerRegex.exec(k))!=null;){if(V.index>0){var N=":"+V[0]+":";if((_.Gi(_.kP,N)||_.MB(_.kP,N))&&k.indexOf(N)===V.index-1)continue}S.appendChild(E(k.substring(R,V.index)));R=document.createElement("span");R.appendChild(E(V[0]));R.classList.add("mention");S.appendChild(R);
R=V.index+V[0].length}S.appendChild(E(k.substring(R)));return S},
createDocumentFragment:function(k){var E=document.createDocumentFragment();if(k.simpleText)return E.appendChild(this.createDocumentFragmentFromString(k.simpleText)),E;if(!k.runs)return E;for(var S=0;S<k.runs.length;S++){var R=k.runs[S];if(R.emoji)E.appendChild(_.kP.createEmoji(R.emoji));else if(R.text)if(R.navigationEndpoint){var V=document.createElement("a");V.classList.add("yt-simple-endpoint");agb(V,R.navigationEndpoint);_.Cc(V).appendChild(this.createDocumentFragmentFromString(R.text));E.appendChild(V)}else E.appendChild(this.createDocumentFragmentFromString(R.text))}return E},
hasModerationOverlayVisible:function(){var k;return((k=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:k.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(k){k.composedPath().some(function(E){return(E=E instanceof Element?E:null)?E.tagName&&(E.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||E.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.Y("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(k)},
colorFromDecimal:function(k){return zgb(k)},
markAsDeleted:function(k,E){this.set("data.deletedStateMessage",k);this.set("data.showOriginalContentMessage",E)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(k){if(this.data.contextMenuEndpoint){var E=_.en().resolve(_.yS),S=this.data.contextMenuEndpoint,R;(R=_.rb.instance)&&_.u_(R,S)?(E=Dfd(E,S),R=_.qF(R,{},E)):R=_.$fC(E,S);R.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);k&&k.stopPropagation()}},
handleGetContextMenuResponse_:function(k){var E=_.rb.instance;E&&_.u_(E,{liveChatEndpoint:{}})||(k=k.response);k.liveChatItemContextMenuSupportedRenderers&&k.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(k.liveChatItemContextMenuSupportedRenderers.menuRenderer);k.actions&&_.qe(this.hostElement,"yt-live-chat-actions",[k.actions])},
handleGetContextMenuError:function(k){if(k instanceof Error||k instanceof Object||k instanceof String)var E=k;_.bM(new _.LC("Error encountered calling GetLiveChatItemContextMenu",E))},
showContextMenu_:function(k){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:k}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Me(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Me(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Eb.YtLiveChatItemBehavior=[fSC,_.OE.YtComponentBehavior,_.gA.YtOpenPopupBehavior];_.SD=function(){};var vV2;var bHC;var ZHY;var df2;var R8=function(){var k=_.p.apply(this,arguments)||this;k.active=!1;k.identity=_.DR;return k};
_.y(R8,_.p);R8.prototype.dataChanged=function(){this.active=!1};
R8.prototype.onClick=function(){_.Me(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
R8.prototype.dataChanged=R8.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],R8.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],R8.prototype,"active",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],R8.prototype,"dataChanged",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],R8);
_.b(R8,"yt-live-chat-text-input-field-suggestion",function(){if(df2===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;ZHY===void 0&&(ZHY=document.createElement("template"));var R=ZHY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);df2=k}k=df2;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});_.VI=function(k,E,S){return CustomEvent.call(this,k,{detail:{value:E,path:S}})||this};
_.y(_.VI,CustomEvent);_.N8=function(){var k=_.p.apply(this,arguments)||this;k.viewerName=null;k.actionMap={"yt-live-chat-actions":"onChatMessage_"};k.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];k.PARTICIPANT_TIME_USEC_=3E8;return k};
_.y(_.N8,_.p);_.I=_.N8.prototype;_.I.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.I.addParticipant=function(k){var E=_.j1h(this.participants,k,function(R,V){R=R[Object.keys(R)[0]];V=V[Object.keys(V)[0]];R=String(_.$n(R.authorName)).toLowerCase();V=String(_.$n(V.authorName)).toLowerCase();return R<V?-1:R==V?0:1}.bind(this));
if(E>=0){var S=this.participants[E];S[Object.keys(S)[0]].timestampUsec&&this.splice("participants",E,1,k)}else this.splice("participants",-E-1,0,k);k=k[Object.keys(k)[0]];E=_.$n(k.authorName).toLocaleLowerCase();S=E.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(S)||(this.allParticipantsCharMap_[S]={});this.allParticipantsCharMap_[S][E]=k};
_.I.getAuthorsFromPrefix=function(k){return this.allParticipantsCharMap_.hasOwnProperty(k)?this.allParticipantsCharMap_[k]:null};
_.I.computeViewerRegex_=function(k){if(!k)return null;k=k.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var E=k.indexOf("@")===0&&_.Y("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(E+k.replace(/ /g,"\\s*")+"|^"+k.replace(/ /g,"\\s*")+"$|^"+k.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+k.replace(/ /g,"\\s*")+"$|(?<=\\s)"+k.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.I.checkForStaleParticipants_=function(){var k=this;this.trimOldParticipants_();this.asyncHandle_&&W3e(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.xT(function(){k.checkForStaleParticipants_()},3E4))};
_.I.onChatMessage_=function(k){var E=this,S=Date.now()*1E3;k.forEach(function(R){if(R=_.W(R,eKA)){R=R.item;var V=Object.keys(R)[0];E.SUPPORTED_ITEM_TYPES_.indexOf(V)!=-1&&R[V].timestampUsec>=S-E.PARTICIPANT_TIME_USEC_&&E.addParticipant(R)}},this);
this.checkForStaleParticipants_()};
_.I.trimOldParticipants_=function(){for(var k=Date.now()*1E3,E=this.participants.length-1;E>=0;E--){var S=this.participants[E];S=S[Object.keys(S)[0]];S.timestampUsec&&S.timestampUsec<k-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",E,1)}};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],_.N8.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],_.N8.prototype,"viewerName",void 0);_.Z([_.H({computed:"computeViewerRegex_(viewerName)"}),_.l("design:type",Object)],_.N8.prototype,"viewerRegex",void 0);_.Z([_.H({value:function(){return[]},
notify:!0}),_.l("design:type",Array)],_.N8.prototype,"participants",void 0);_.Z([_.U_({is:"yt-live-chat-participants-manager",noInjection:!0})],_.N8);var spT=/.*([:@#].*?)$/,I8=/\u00a0/g,lSC=String.fromCharCode(160),MCY={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"},nX=function(){var k=_.p.apply(this,arguments)||this;k.disabled=!1;k.liveChatRichMessageInput=null;k.messageInput=null;k.isValidWithNoInputText=!1;k.suggestions=[];k.emojiManager=_.kP;k.inputMethodEditorActive=
!1;k.suggestionIndex=-1;k.JSC$14263_lastSuggestionRange=null;return k};
_.y(nX,_.p);_.I=nX.prototype;_.I.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.I.attached=function(){_.ze&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.I.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.I.dataChanged=function(){if(!this.ignoreColorMapping){var k=!1,E={},S;for(S in MCY)this.data&&this.data.hasOwnProperty(S)&&(E[MCY[S]]=this.colorFromDecimal(this.data[S]),k=!0);k&&_.VO(this.hostElement,E)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.I.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.I.colorFromDecimal=function(k){k=Math.floor(Number(k));return"rgba("+[k>>16&255,k>>8&255,k&255,(k>>24&255)/255].join()+")"};
_.I.preventDrag=function(k){k.dataTransfer&&(k.dataTransfer.dropEffect="none");k.preventDefault()};
_.I.preventResize=function(k){k.returnValue=!1};
_.I.onInputChange=function(){var k=this.characterCount,E=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&E&&E.remove();if(!E&&this.characterCount>this.maxCharacterLimit){var S=window.getSelection();if(S){var R=S.getRangeAt(0);S.removeAllRanges();S.addRange(R)}}if(S=this.getCurrentRange())R=this.calculateTextBeforeRange(S),this.completeEmojisInRange(S,R,!0)||this.updateSuggestions(S,R);R=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(R);
_.Me(this.hostElement,"yt-live-chat-message-input-change",R);E&&this.characterCount===0&&E.remove();S&&S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>k):S&&!S.collapsed&&S.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(k=this.input.childNodes.length-1;k>=0;k--)this.input.childNodes[k].nodeName==="BR"&&this.input.childNodes[k].remove()};
_.I.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.I.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var k=this.getCurrentRange();k&&k.commonAncestorContainer.parentElement.id==="input"&&k.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.I.mergeOverflowText=function(k){if(k){var E=document.createRange();E.selectNodeContents(k);E=E.extractContents();this.input.insertBefore(E,k)}};
_.I.checkRangeAtEndOfInput=function(){var k=this.getCurrentRange();if(k){var E=_.Cc(this.hostElement).querySelector("#overflow-text"),S=document.createRange();E&&E.previousSibling?E.previousSibling instanceof HTMLImageElement?S.selectNode(E.previousSibling):S.selectNodeContents(E.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?S.selectNode(this.input.lastChild):S.selectNodeContents(this.input.lastChild));S.collapse(!1);return S.isPointInRange(k.startContainer,
k.startOffset)}return!1};
_.I.handleOverflowText=function(k){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var E=_.Cc(this.hostElement).querySelector("#overflow-text"),S=this.getCurrentRange();this.input.normalize();k=this.checkRangeAtEndOfInput()&&k;this.mergeOverflowText(E);for(var R,V=0,N=0,h,J=this.input.childNodes,m=0;m<J.length;m++){var a=J[m];a instanceof Text?(N+=a.textContent.length,N>this.maxCharacterLimit&&(R=a,V=this.maxCharacterLimit+a.textContent.length-N)):a instanceof HTMLImageElement&&
(R=void 0,N=a.dataset.emojiId&&((R=this.data)==null?0:R.emojiCharacterCount)?N+this.data.emojiCharacterCount:N+a.alt.length,R=this.input,V=m);if(N>this.maxCharacterLimit&&R){h=document.createRange();h.collapse(!1);E?(N=this.input.lastChild.previousSibling,N instanceof Text?h.setEnd(this.input.lastChild.previousSibling,N.textContent.length):N instanceof HTMLImageElement&&h.setEnd(this.input,this.input.childNodes.length-1)):h.selectNodeContents(this.input);h.setStart(R,V);break}}h&&(R=!1,S&&(k=h.isPointInRange(S.startContainer,
S.startOffset-1)),E||(E=document.createElement("span"),E.id="overflow-text",E.textContent="",E.setAttribute("contenteditable","true"),_.Cc(_.Cc(this.hostElement).querySelector("#input")).appendChild(E),R=!0),E&&(S=h.extractContents(),E.insertBefore(S,E.firstChild),k&&E.firstChild&&(S=document.createRange(),R?S.setStartAfter(E.lastChild):S.setStartAfter(E.firstChild),S.collapse(!0),E=window.getSelection(),E.removeAllRanges(),E.addRange(S))))}};
_.I.checkForDuplicateSpans=function(){for(var k=0;k<this.input.childNodes.length;k++){var E=this.input.childNodes[k];if(E.nodeName==="SPAN"){var S=document.createRange();S.selectNodeContents(E);S=S.extractContents();this.input.insertBefore(S,E);E.remove()}}this.handleOverflowText(!0)};
_.I.getCurrentRange=function(){var k=window.getSelection();return k&&k.rangeCount?k.getRangeAt(0).cloneRange():null};
_.I.getInputRange=function(){var k=this.getCurrentRange();if(k){for(var E=k.commonAncestorContainer,S=!1,R=_.Cc(this.hostElement).querySelector("#input");E;){if(E===R){S=!0;break}E=E.parentNode}S||(k=null)}k||(k=this.getRangeAtEnd());return k};
_.I.getRangeAtEnd=function(){var k=document.createRange(),E=_.Cc(this.hostElement).querySelector("#input").lastChild;!E||E.nodeName!=="#text"&&E.nodeName!=="SPAN"?(k.selectNodeContents(_.Cc(this.hostElement).querySelector("#input")),k.collapse(!1)):E.nodeName==="#text"?k.setStart(E,E.textContent.length):k.setStart(E,E.childNodes.length);return k};
_.I.getChatParticipantSuggestions=function(k,E,S,R){var V=_.Y("live_chat_enable_handles_web_text_input_update");if(E)for(var N in E)if(N.indexOf(k)===0||V&&N.indexOf(S+k)===0){var h=E[N],J=_.$n(h.authorName);R.push({suggestion:{author:!0,authorType:S,image:h.authorPhoto,alt:J,text:J}});if(R.length>=64)break}};
_.I.getSuggestions=function(k){var E=[],S=k.substring(0,3),R=Lg5(_.kP,S,!0);if(R)for(var V in R)if(V.toLocaleLowerCase().indexOf(k)===0){var N=R[V];if(N&&N.emojiId){if(N=xfd(_.kP,N.emojiId)){var h=void 0,J=void 0,m=void 0,a=void 0,T=((h=N.image)==null?0:(J=h.accessibility)==null?0:(m=J.accessibilityData)==null?0:m.label)||N.isCustomEmoji?(a=N.shortcuts)==null?void 0:a[0]:N.emojiId;E.push({suggestion:{emoji:!0,image:N.image,alt:T,text:V,textToInsertWhenSelected:N.isCustomEmoji?V:T}})}if(E.length>=
64)break}}if(!this.participantsManager)return null;if(S.indexOf("@")===0||S.indexOf("#")===0)R=S.charAt(0),k=k.substring(1),V=_.Y("live_chat_enable_handles_web_text_input_update"),S.indexOf("@")===0&&V&&(V=this.participantsManager.getAuthorsFromPrefix(S.substring(0,2)),this.getChatParticipantSuggestions(k,V,R,E)),S=S.substring(1),S=this.participantsManager.getAuthorsFromPrefix(S),this.getChatParticipantSuggestions(k,S,R,E);return E?E.sort(function(w,P){return P.suggestion.text<w.suggestion.text?-1:
P.suggestion.text===w.suggestion.text?0:1}):null};
_.I.insertSuggestion=function(k){var E=_.Y("live_chat_enable_handles_web_text_input_update"),S=k.authorType;E=k.text.indexOf(S)===0&&E?k.text+lSC:S+k.text+lSC;k.emoji?this.insertTextAtRange(this.JSC$14263_lastSuggestionRange,k.textToInsertWhenSelected||""):k.author&&this.insertTextAtRange(this.JSC$14263_lastSuggestionRange,E)};
_.I.updateSuggestionsAtCaret=function(){var k=this.getCurrentRange();k&&this.updateSuggestions(k,this.calculateTextBeforeRange(k))};
_.I.offsetStartOfRangeBy=function(k,E){for(;E>0;)if(k.startOffset-E>=0){k.setStart(k.startContainer,k.startOffset-E);break}else{E=k.startContainer instanceof HTMLImageElement?E-k.startContainer.alt.length:E-k.startOffset;var S=k.startContainer.previousSibling;if(!S){k.setStart(k.startContainer,0);break}if(_.Y("live_chat_require_space_for_autocomplete_emoji")){var R=void 0,V=void 0;k.setStart(S,((R=S)==null?void 0:(V=R.textContent)==null?void 0:V.length)||0)}else k.setStart(S,S.childNodes.length||
0)}};
_.I.updateSuggestions=function(k,E){var S=this;this.JSC$14263_lastSuggestionRange&&(this.JSC$14263_lastSuggestionRange.detach(),this.JSC$14263_lastSuggestionRange=null);if((E=spT.exec(E))&&E.length&&(E=E[E.length-1].toLocaleLowerCase(),E.length>2&&(this.offsetStartOfRangeBy(k,E.length),this.JSC$14263_lastSuggestionRange=k,(k=this.getSuggestions(E))&&k.length))){this.suggestions=k;_.JB(this,function(){_.Cc(S.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(k.length-1);return}this.dropdown.opened=!1};
_.I.completeEmojisInRange=function(k,E,S){var R=E.replace(/[\s\xa0]+$/,"");E=E.length-R.length;R=R.split(" ");R=R[R.length-1].trim().toLocaleLowerCase();var V=R.lastIndexOf(":");if(S&&!E&&V!==R.length-1)return!1;V!==-1&&(S=R.lastIndexOf(":",V-1),S!==-1&&(R=R.substring(S)));if((S=_.MB(_.kP,R))&&S.emojiId){S=xfd(_.kP,S.emojiId)||null;this.offsetStartOfRangeBy(k,R.length+E);var N,h,J,m;R=(((N=S)==null?0:N.isCustomEmoji)?(h=S)==null?void 0:(J=h.shortcuts)==null?void 0:J[0]:(m=S)==null?void 0:m.emojiId)||
"";E&&(R+=lSC);this.insertTextAtRange(k,R);this.dropdown.opened=!1;return!0}return!1};
_.I.onSuggestion=function(k){this.insertSuggestion(k.detail);this.dropdown.opened=!1};
_.I.onKeyPress=function(k){k.keyCode===13&&(k.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Me(this.hostElement,"yt-live-chat-send-message"))};
_.I.completeEmojis=function(){var k=document.createRange(),E=_.Cc(this.hostElement).querySelector("#input").lastChild;E?k.setStart(E,E.childNodes.length):(k.selectNodeContents(_.Cc(this.hostElement).querySelector("#input")),k.collapse(!1));this.completeEmojisInRange(k,this.calculateTextBeforeRange(k),_.Y("live_chat_require_space_for_autocomplete_emoji"))};
_.I.maybePreventTextFormatting=function(k){!_.Cm||!k.ctrlKey&&!k.metaKey||k.keyCode!==66&&k.keyCode!==73||(k.stopImmediatePropagation(),k.preventDefault())};
_.I.onKeyDown=function(k){this.maybePreventTextFormatting(k);if(this.dropdown.opened)switch(k.keyCode){case 27:this.dropdown.opened=!1;k.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;k.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);k.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),k.preventDefault()}};
_.I.onKeyUp=function(k){switch(k.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.qX)this.onInputChange()};
_.I.changeSuggestionIndex=function(k){if(this.dropdown.opened){var E=_.Cc(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<E.children.length&&(E.children[this.suggestionIndex].active=!1);var S=this.suggestions.length;this.suggestionIndex=(k+S)%S;k=E.children[this.suggestionIndex];k.active=!0;E.scrollTop=k.offsetTop}};
_.I.onInputPaste=function(k){k.preventDefault();(k=k.clipboardData)&&k.types&&(k=k.getData("text/plain")||"",k=k.replace(/\n/g,""),this.insertText(k));(k=this.getCurrentRange())&&k.commonAncestorContainer.parentElement.id==="input"&&k.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.I.onFocus=function(){this._setFocused(!0)};
_.I.onBlur=function(){this._setFocused(!1)};
_.I.insertText=function(k){this.insertTextAtRange(this.getInputRange(),k)};
_.I.insertTextAtRange=function(k,E){if(k&&(k.collapsed||k.deleteContents(),E=_.kP.createDocumentFragment(E,!0,!1))){for(var S=_.n((E==null?void 0:E.childNodes)||[]),R=S.next();!R.done;R=S.next()){R=R.value;var V=void 0,N=void 0,h=void 0,J=void 0,m=void 0;(h=(V=window)==null?void 0:(N=V.ShadyCSS)==null?void 0:N.ScopingShim)==null||(m=(J=h).scopeNode)==null||m.call(J,R,this.hostElement.localName)}S=E.lastChild;k.insertNode(E);this.focused||this.input.focus();if(this.focused){k=k.cloneRange();k.selectNodeContents(S);
k.collapse(!1);if(E=window.getSelection())E.removeAllRanges(),E.addRange(k);k.commonAncestorContainer.parentElement.id==="input"&&k.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}k=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(k);_.Me(this.hostElement,"yt-live-chat-message-input-change",k)}};
_.I.setLiveChatRichMessageInput=function(k){_.Cc(_.Cc(this.hostElement).querySelector("#input")).textContent="";if(k&&k.textSegments){for(var E=0;E<k.textSegments.length;E++){var S=k.textSegments[E];S.text?_.Cc(_.Cc(this.hostElement).querySelector("#input")).appendChild(_.kP.createDocumentFragment(S.text,!0,!1)):S.emojiId&&(S=_.Gi(_.kP,S.emojiId))&&_.Cc(_.Cc(this.hostElement).querySelector("#input")).appendChild(_.kP.createEmoji(S,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.I.setText=function(k){this.setLiveChatRichMessageInput(k?{textSegments:[{text:k}]}:null)};
_.I.calculateTextBeforeRange=function(k){var E="",S=k.startContainer;if(S&&S instanceof Text){var R;E=((R=S.textContent)==null?void 0:R.substring(0,k.startOffset))||"";S=S.previousSibling}for(;S&&S instanceof Text;)E=S.textContent+E,S=S.previousSibling;return E.replace(I8," ")};
_.I.calculateLiveChatRichMessageInput=function(){for(var k=[],E="",S=_.Cc(_.Cc(this.hostElement).querySelector("#input")).childNodes,R=0;R<S.length;R++){var V=S[R];V instanceof Text?E+=V.textContent:V instanceof HTMLImageElement&&(V.dataset.emojiId?(E&&(k.push({text:E.replace(I8," ")}),E=""),k.push({emojiId:V.dataset.emojiId})):E+=V.alt)}E&&k.push({text:E.replace(I8," ")});if(S=_.Cc(this.hostElement).querySelector("#overflow-text")){E="";S=S.childNodes;for(R=0;R<S.length;R++)V=S[R],V instanceof Text?
E+=V.textContent:V instanceof HTMLImageElement&&(V.dataset.emojiId?(E&&(k.push({text:E.replace(I8," ")}),E=""),k.push({emojiId:V.dataset.emojiId})):E+=V.alt);E&&k.push({text:E.replace(I8," ")})}return{textSegments:k}};
_.I.computeCharacterCount=function(k){if(!k||!k.textSegments)return 0;for(var E=0,S=0;S<k.textSegments.length;S++){var R=k.textSegments[S];if(R.text)E+=R.text.length;else if(R.emojiId){var V=void 0;if((V=this.data)==null?0:V.emojiCharacterCount)E+=this.data.emojiCharacterCount;else{var N=V=void 0,h=void 0;E+=((N=_.Gi(_.kP,(V=R)==null?void 0:V.emojiId))==null?void 0:(h=N.shortcuts)==null?void 0:h[0].length)||0}}}return E};
_.I.characterCountChanged=function(){_.Me(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.I.focusedChanged=function(){this.hostElement.dispatchEvent(new _.VI("focused-changed",this.focused))};
_.I.focus=function(){this.setFocus(!1)};
_.I.focusAtEnd=function(){this.setFocus(!0)};
_.I.setFocus=function(k){k=k?this.getRangeAtEnd():this.getInputRange();_.Cc(this.hostElement).querySelector("#input").focus();var E=window.getSelection();E&&(E.removeAllRanges(),E.addRange(k))};
_.I.insertEmoji=function(k){var E,S=((k==null?0:k.isCustomEmoji)?(E=k.shortcuts)==null?void 0:E[0]:k==null?void 0:k.emojiId)||"";this.insertText(S)};
_.I.computeText=function(k){if(!k||!k.textSegments)return"";for(var E="",S=0;S<k.textSegments.length;S++){var R=k.textSegments[S];if(R.text)E+=R.text;else if(R.emojiId){var V=void 0,N=void 0,h=void 0;E+=((N=_.Gi(_.kP,(V=R)==null?void 0:V.emojiId))==null?void 0:(h=N.shortcuts)==null?void 0:h[0])||""}}return E};
_.I.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.mt.Object.defineProperties(nX.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.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}}});
nX.prototype.focusedChanged=nX.prototype.focusedChanged;nX.prototype.characterCountChanged=nX.prototype.characterCountChanged;nX.prototype.onSuggestion=nX.prototype.onSuggestion;nX.prototype.onMessageSet=nX.prototype.onMessageSet;nX.prototype.dataChanged=nX.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],nX.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],nX.prototype,"disabled",void 0);_.Z([_.U("disabled"),_.l("design:type",Number),_.l("design:paramtypes",[])],nX.prototype,"inputTabIndex",null);_.Z([_.U("data.maxCharacterLimit"),_.H({readOnly:!0,notify:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],nX.prototype,"maxCharacterLimit",null);
_.Z([_.U("liveChatRichMessageInput"),_.H({readOnly:!0,notify:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],nX.prototype,"characterCount",null);_.Z([_.U("maxCharacterLimit, characterCount"),_.H({readOnly:!0,notify:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],nX.prototype,"remainingCharacterCount",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],nX.prototype,"isChatMessageInput",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],nX.prototype,"inputExpanded",void 0);_.Z([_.H({readOnly:!0,notify:!0}),_.l("design:type",Object)],nX.prototype,"liveChatRichMessageInput",void 0);_.Z([_.H(),_.l("design:type",Object)],nX.prototype,"messageInput",void 0);_.Z([_.H(),_.l("design:type",Boolean)],nX.prototype,"ignoreColorMapping",void 0);_.Z([_.U("characterCount"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],nX.prototype,"hasText",null);
_.Z([_.H(),_.l("design:type",Object)],nX.prototype,"isValidWithNoInputText",void 0);_.Z([_.U("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.H(),_.l("design:type",Boolean),_.l("design:paramtypes",[])],nX.prototype,"isInputValid",null);_.Z([_.H({readOnly:!0,value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],nX.prototype,"focused",void 0);_.Z([_.H(),_.l("design:type",Array)],nX.prototype,"suggestions",void 0);
_.Z([_.H(),_.l("design:type",_.ON)],nX.prototype,"emojiManager",void 0);_.Z([_.H(),_.l("design:type",_.N8)],nX.prototype,"participantsManager",void 0);_.Z([_.H(),_.l("design:type",Boolean)],nX.prototype,"noUnderline",void 0);_.Z([_.H(),_.l("design:type",Object)],nX.prototype,"inputMethodEditorActive",void 0);_.Z([_.JO("#dropdown"),_.l("design:type",Object)],nX.prototype,"dropdown",void 0);_.Z([_.JO("#input"),_.l("design:type",HTMLElement)],nX.prototype,"input",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nX.prototype,"dataChanged",null);_.Z([_.il("messageInput"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nX.prototype,"onMessageSet",null);_.Z([_.nv("yt-live-chat-select-suggestion"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],nX.prototype,"onSuggestion",null);
_.Z([_.il("characterCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nX.prototype,"characterCountChanged",null);_.Z([_.il("focused"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nX.prototype,"focusedChanged",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],nX);
_.qr5=_.b(nX,"yt-live-chat-text-input-field-renderer",function(){if(bHC===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;vV2===void 0&&(vV2=document.createElement("template"));var R=vV2;S.call(E,R.content.cloneNode(!0),k.content.firstChild);bHC=k}k=bHC;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var iZ=function(){var k=_.p.apply(this,arguments)||this;k.buttonOverrides={style:"overlay",type:"filled"};k.allowAnimations=!1;k.modern=_.Y("web_button_rework_with_live");k.noPadding=!1;return k};
_.y(iZ,_.p);_.I=iZ.prototype;_.I.shouldSupportInlineActionButtons=function(){return!0};
_.I.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"}}}}};
_.I.ready=function(){var k=document.querySelector("yt-live-chat-app");k&&k.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.I.attached=function(){this.allowAnimations=!1};
_.I.dataChanged=function(){if(this.data){var k={"--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)};_.VO(this.hostElement,k);this.allowAnimations=!0}};
_.I.messageChanged=function(){var k,E=(k=this.data)==null?void 0:k.message;k=_.Cc(_.Cc(this.hostElement).querySelector("#message"));k.textContent="";E&&k.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(E))};
_.I.computeShowOnlyHeader=function(k,E){return!k||k.pdgLikeButton||k.replyButton||k.buyFlowButton?!1:this.isEmpty(k,E)&&!k.footer};
_.I.computeShowFooterDivider=function(k,E,S){return k?!!k.footer&&!this.isEmpty(k,E)&&!S:!1};
_.I.computeIsUserEditable=function(k){return!!k.inputField};
_.I.computeHasHeartButton=function(k){return(k==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(k==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(k==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.I.computeNoveltyImage=function(k){if(k.headerOverlayImage&&k.headerOverlayImage.thumbnails.length){var E=k.headerOverlayImage.thumbnails[0],S,R;if((S=k.pdgPurchasedNoveltyLoggingDirectives)==null?0:(R=S.loggingDirectives)==null?0:R.trackingParams){var V,N;mfI((V=k.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(N=V.loggingDirectives)==null?void 0:N.trackingParams)}return E.width||0}return 0};
_.I.computeAuthorPhotoSize=function(k){return(k==null?0:k.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.I.inputFocus=function(){var k=_.Cc(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");k&&k.focus()};
_.I.inputInsertEmoji=function(k){var E=_.Cc(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");E&&E.insertEmoji(k)};
_.I.inputMessage=function(){var k=_.Cc(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),E;return k&&((E=this.data)==null?0:E.inputField)?(k.completeEmojis(),_.KU(k.liveChatRichMessageInput)):null};
_.I.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.I.isEmpty=function(k,E){return k?k.empty||!(k.message||k.inputField||E):!0};
_.I.onLowerBuyButtonClick=function(){var k,E=_.W((k=this.data)==null?void 0:k.buyButton,_.dZ);E&&E.trackingParams&&!O$A(E.command)&&(k=_.tV(E.trackingParams))&&(E=_.Fe())&&_.Dv(E,k)};
_.I.shouldSupportWholeItemClick=function(){return!0};
_.mt.Object.defineProperties(iZ.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?0:k.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
iZ.prototype.isDeletedChanged=iZ.prototype.isDeletedChanged;iZ.prototype.messageChanged=iZ.prototype.messageChanged;iZ.prototype.dataChanged=iZ.prototype.dataChanged;_.Z([_.g(yT2.YtPdgLiveChatItemBehavior),_.l("design:type",Object)],iZ.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],iZ.prototype,"ytLiveChatReduxBehavior",void 0);
_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],iZ.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iZ.prototype,"data",void 0);_.Z([_.H({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:JAj}),_.l("design:type",Object)],iZ.prototype,"engagementState",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.l("design:type",Boolean)],iZ.prototype,"isUserEditable",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.l("design:type",Boolean)],iZ.prototype,"hasHeartButton",void 0);_.Z([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.l("design:type",Boolean)],iZ.prototype,"showOnlyHeader",void 0);
_.Z([_.H({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.l("design:type",Boolean)],iZ.prototype,"showFooterDivider",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Object)],iZ.prototype,"allowAnimations",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],iZ.prototype,"dashboardMoneyFeed",void 0);_.Z([_.H({computed:"computeNoveltyImage(data)"}),_.l("design:type",Number)],iZ.prototype,"noveltyWidth",void 0);
_.Z([_.H({computed:"computeAuthorPhotoSize(data)"}),_.l("design:type",Number)],iZ.prototype,"authorPhotoSize",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],iZ.prototype,"modern",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],iZ.prototype,"noPadding",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iZ.prototype,"dataChanged",null);
_.Z([_.il("data.message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iZ.prototype,"messageChanged",null);_.Z([_.U("data","dashboardMoneyFeed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],iZ.prototype,"hideLowerBumper",null);_.Z([_.il("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iZ.prototype,"isDeletedChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],iZ);
_.b(iZ,"yt-live-chat-paid-message-renderer",function(){if(VC2===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;RyC===void 0&&(RyC=document.createElement("template"));var R=RyC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);VC2=k}k=VC2;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var zyC;var QpT;var hy=function(){var k=_.mi.apply(this,arguments)||this;k._noAccessors=!0;return k};
_.y(hy,_.mi);hy.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Mg("openPopupConfig")};
_.Z([_.g(_.gA.YtOpenPopupBehavior),_.l("design:type",Object)],hy.prototype,"ytOpenPopupBehavior",void 0);_.Z([_.eN()],hy);_.Jy=[_.gA.YtOpenPopupBehavior,hy.prototype];var OH5;var DD=[_.Ny,sKC,_.vF,_.IR,_.jm,_.emd,_.hg,_.kmd,_.wy,LaC];_.Y("web_watch_get_updated_metadata_response_processing")&&DD.push(_.yUY);_.Y("web_continuation_response_processing")&&DD.push(_.H9);var TaC=new _.QE("RESPONSE_RECEIVED_COMMANDS"),AWm=new _.QE("RESPONSE_RECEIVED_COMMANDS");var o3I="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),yWi=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],Fai=["GET_UNSEEN_NOTIFICATION_COUNT"];var cw=function(){var k=_.mi.apply(this,arguments)||this;k._noAccessors=!0;k.serviceEndpointHandlers=[];return k};
_.y(cw,_.mi);cw.prototype.created=function(){var k=this;this.endpointHandlerActionMap={"yt-service-request":function(E,S,R,V){var N;return Waj(k.hostElement,E,S,R,V,k.serviceEndpointHandlers,(N=k.onEntitiesUpdated)==null?void 0:N.bind(k))}}};
cw.prototype.attached=function(){_.E2(_.GU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
cw.prototype.detached=function(){_.S9(_.GU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.Z([_.eN()],cw);_.GKj=[cw.prototype];var C8Y,kWC=function(){return C8Y!==void 0?C8Y:C8Y=document.createElement("template")};
document.head.appendChild(kWC().content);var E3j;var SqA=document.head,RDd=SqA.appendChild,VW4;if(E3j===void 0){var NK4=document.createElement("template");_.X(NK4,"\x3c!--css-build:shady--\x3e");NK4.content.insertBefore(kWC().content.cloneNode(!0),NK4.content.firstChild);E3j=NK4}VW4=E3j;RDd.call(SqA,VW4.content);var IcC,n32=function(){return IcC!==void 0?IcC:IcC=document.createElement("template")};
document.head.appendChild(n32().content);var i0Y;var hDC=document.head,JWp=hDC.appendChild,cWd;if(i0Y===void 0){var mSp=document.createElement("template");_.X(mSp,"\x3c!--css-build:shady--\x3e");mSp.content.insertBefore(n32().content.cloneNode(!0),mSp.content.firstChild);i0Y=mSp}cWd=i0Y;JWp.call(hDC,cWd.content);var eDY;_.B9("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.B9("sharingRendererButtons","buttonRenderer","ytd-button-renderer");eDY=_.Y("web_button_rework")&&_.qg("BUTTON_REWORK")||_.Y("web_button_rework_with_live");_.mM=function(){var k=_.p.apply(this,arguments)||this;k.isPressed=!1;k.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return k};
_.y(_.mM,_.p);_.I=_.mM.prototype;_.I.created=function(){this.showTooltips=!0};
_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.onHintIdChanged=function(){var k=this,E,S,R=(E=this.ytButtonBehavior.data)==null?void 0:(S=E.hint)==null?void 0:S.hintRenderer;if(R&&R.hintId){E=_.zR(this.hostElement,"yt-get-opened-popups-action");E=(E&&E.length===1?E[0]:[]).length>0;var V=null;R.hintId!=="sponsor-pre-purchase"||E?R.hintId.startsWith("sponsor-post-purchase")&&!E?V=vGT("membership-manage"):R.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!E&&(V=vGT("membership-freebie-join")):V=vGT("membership-join");V&&_.ZJ.addLowPriorityJob(function(){for(var N=
_.n(V),h=N.next();!h.done;h=N.next())k.ytComponentBehavior.resolveCommand(h.value)})}};
_.I.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.I.onYtNavigate=function(k){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(k.detail.endpoint);E&&(k.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(E))};
_.I.onYtServiceRequestSent=function(k,E){this.handleServiceRequestActions(E);_.Me(this.hostElement,"yt-service-request-sent-button-renderer")};
_.I.onServiceRequestCompleted=function(k,E){this.handleServiceRequestActions(E);_.Me(this.hostElement,"yt-service-request-completed-button-renderer")};
_.I.updateButton=function(k){var E;if(k=(E=_.W(k,Ls8))==null?void 0:E.updatedButton)this.ytButtonBehavior.data=_.W(k,_.dZ)};
_.I.handleUpdateButtonAction=function(k){var E=this.ytButtonBehavior.data;E.targetId&&k.updateButtonAction.targetId&&E.targetId===k.updateButtonAction.targetId&&this.updateButton(k)};
_.I.handleServiceRequestActions=function(k){if(k=k.actions)for(var E=0;E<k.length;E++)this.updateButton(k[E])};
_.mt.Object.defineProperties(_.mM,{template:{configurable:!0,enumerable:!0,get:function(){if(OH5===void 0){var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);OH5=k}k=OH5;return k}}});
_.mM.prototype.onServiceRequestCompleted=_.mM.prototype.onServiceRequestCompleted;_.mM.prototype.onYtServiceRequestSent=_.mM.prototype.onYtServiceRequestSent;_.mM.prototype.onYtNavigate=_.mM.prototype.onYtNavigate;_.mM.prototype.onPressedStateChanged=_.mM.prototype.onPressedStateChanged;_.mM.prototype.onHintIdChanged=_.mM.prototype.onHintIdChanged;_.Z([_.H(),_.l("design:type",Object)],_.mM.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],_.mM.prototype,"isPressed",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],_.mM.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.yYC.YtButtonBehavior),_.l("design:type",Object)],_.mM.prototype,"ytButtonBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],_.mM.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],_.mM.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(LG.YtRenderButtonBehavior),_.l("design:type",Object)],_.mM.prototype,"ytRenderButtonBehavior",void 0);_.Z([_.il("data.hint.hintRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],_.mM.prototype,"onHintIdChanged",null);_.Z([_.il("isPressed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],_.mM.prototype,"onPressedStateChanged",null);
_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],_.mM.prototype,"onYtNavigate",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],_.mM.prototype,"onYtServiceRequestSent",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],_.mM.prototype,"onServiceRequestCompleted",null);_.Z([_.D({is:"ytd-button-renderer",disableElementRegistration:eDY})],_.mM);var eD=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("web_button_rework_with_live");k.buttonOverrides={style:"overlay",type:"filled"};return k};
_.y(eD,_.p);_.I=eD.prototype;_.I.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"}}}}};
_.I.ready=function(){var k=document.querySelector("yt-live-chat-app");k&&k.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.I.dataChanged=function(){if(this.data&&this.data.sticker){var k=_.zT(this.data.sticker.thumbnails,this.stickerWidth);k||_.$S1(k).thenCatch(function(){_.dg(new _.LC("Failed to load Super Sticker with url",k))})}};
_.I.computeAuthorPhotoSize=function(k){return(k==null?0:k.isV2Style)?32:40};
_.I.computeIsV2Style=function(k){return(k==null?0:k.isV2Style)?!0:!1};
_.I.onStickerLoaded=function(k){var E,S,R;(E=_.bv(k))==null||(S=E.parentNode)==null||(R=S.classList)==null||R.add("sticker-loaded")};
_.I.computeNoveltyImageWidth=function(k){var E,S;if(k==null?0:(E=k.headerOverlayImage)==null?0:(S=E.thumbnails)==null?0:S.length){E=k.headerOverlayImage.thumbnails[0];var R,V;if((R=k.pdgPurchasedNoveltyLoggingDirectives)==null?0:(V=R.loggingDirectives)==null?0:V.trackingParams){var N,h;mfI((N=k.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(h=N.loggingDirectives)==null?void 0:h.trackingParams)}return E.width||0}return 0};
_.I.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.I.updateStickerStyles=function(){var k=this.data;k&&(k={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(k.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(k.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(k.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(k.authorNameTextColor)},
_.VO(this.hostElement,k))};
_.I.onBuyButtonClick=function(){var k,E=_.W((k=this.data)==null?void 0:k.buyButton,_.dZ);E&&!O$A(E.command)&&this.ytRendererBehavior.logExplicitClick(E)};
_.I.shouldSupportWholeItemClick=function(){return!0};
_.mt.Object.defineProperties(eD.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 k;return((k=this.data)==null?0:k.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
eD.prototype.updateStickerStyles=eD.prototype.updateStickerStyles;eD.prototype.isDeletedChanged=eD.prototype.isDeletedChanged;eD.prototype.onStickerLoaded=eD.prototype.onStickerLoaded;eD.prototype.dataChanged=eD.prototype.dataChanged;_.Z([_.g(yT2.YtPdgLiveChatItemBehavior),_.l("design:type",Object)],eD.prototype,"ytPdgLiveChatItemBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],eD.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],eD.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],eD.prototype,"data",void 0);
_.Z([_.H({computed:"computeAuthorPhotoSize(data)"}),_.l("design:type",Number)],eD.prototype,"authorPhotoSize",void 0);_.Z([_.H(),_.l("design:type",Boolean)],eD.prototype,"isDeleted",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],eD.prototype,"dashboardMoneyFeed",void 0);_.Z([_.H({computed:"computeNoveltyImageWidth(data)"}),_.l("design:type",Number)],eD.prototype,"noveltyWidth",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],eD.prototype,"modern",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.l("design:type",Boolean)],eD.prototype,"isV2Style",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eD.prototype,"dataChanged",null);_.Z([_.nv("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],eD.prototype,"onStickerLoaded",null);
_.Z([_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],eD.prototype,"stickerWidth",null);_.Z([_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],eD.prototype,"stickerHeight",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eD.prototype,"hasHeartButton",null);_.Z([_.U("data","dashboardMoneyFeed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eD.prototype,"hideLowerBumper",null);
_.Z([_.il("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eD.prototype,"isDeletedChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eD.prototype,"updateStickerStyles",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],eD);
_.b(eD,"yt-live-chat-paid-sticker-renderer",function(){if(QpT===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;zyC===void 0&&(zyC=document.createElement("template"));var R=zyC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);QpT=k}k=QpT;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var acC;var tW5;var TK5,w6j=function(){return TK5!==void 0?TK5:TK5=document.createElement("template")};
document.head.appendChild(w6j().content);var PpC,BKC=function(){return PpC!==void 0?PpC:PpC=document.createElement("template")};
document.head.appendChild(BKC().content);var Yqd;var Wa5,FaA=function(){return Wa5!==void 0?Wa5:Wa5=document.createElement("template")};
document.head.appendChild(FaA().content);var yWA;var o3Y=document.head,X6A=o3Y.appendChild,g3T;if(yWA===void 0){var US8=document.createElement("template");_.X(US8,"\x3c!--css-build:shady--\x3e");US8.content.insertBefore(FaA().content.cloneNode(!0),US8.content.firstChild);yWA=US8}g3T=yWA;X6A.call(o3Y,g3T.content);var H0C=document.head,Ka2=H0C.appendChild,p6A;if(Yqd===void 0){var a8=document.createElement("template");_.X(a8,"\x3c!--css-build:shady--\x3e");a8.content.insertBefore(BKC().content.cloneNode(!0),a8.content.firstChild);a8.content.insertBefore(w6j().content.cloneNode(!0),a8.content.firstChild);Yqd=a8}p6A=Yqd;Ka2.call(H0C,p6A.content);var ty=function(){var k=_.mi.apply(this,arguments)||this;k.focusedIndex=0;k.verticalOffset=0;k.verticalAlign="top";k.dynamicAlign=!0;return k};
_.y(ty,_.mi);ty.prototype.emojiUrl=function(k){k=_.Gi(this.emojiManager,k);if(!k)return"";var E;k=(E=k.image)==null?void 0:E.thumbnails;return _.zT(k,24)||""};
var AW8=function(k){var E;k.emojiVariants&&(E=k.data)!=null&&E.target&&_.JB(k,function(){k.set("verticalOffset",-1*k.hostElement.clientHeight);var S=_.Cc(k.hostElement).querySelector("img");S&&S.focus()})};
_.I=ty.prototype;_.I.onKeyboardEnter=function(){};
_.I.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.I.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.I.onKeyDown=function(k){switch(k.keyCode){case 13:this.onKeyboardEnter();k.preventDefault();break;case 40:this.changeFocus(1);k.preventDefault();break;case 38:this.changeFocus(-1);k.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.I.onYtEmojiSelect=function(k){var E=this,S,R,V,N,h,J,m,a;return _.c(function(T){if(T.nextAddress==1)return R=(S=E.data)==null?void 0:S.emoji,h=((V=R)==null?void 0:V.stickyPrefId)||((N=R)==null?void 0:N.emojiId),m=(J=k.detail)==null?void 0:J.emojiId,h&&m&&h!==m?T.yield((a=E.emojiManager)==null?void 0:jpC(a,R,m),2):T.return();_.qe(E.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[R,m]);_.KR(T)})};
_.I.changeFocus=function(k){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+k+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(k=_.Cc(this.hostElement).querySelector("#variants"))&&k.children[this.focusedIndex].focus())};
_.mt.Object.defineProperties(ty.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
ty.prototype.onYtEmojiSelect=ty.prototype.onYtEmojiSelect;ty.prototype.onKeyDown=ty.prototype.onKeyDown;ty.prototype.onEmojiVariantsChanged=ty.prototype.onEmojiVariantsChanged;ty.prototype.onVerticalOffsetOrPositionTargetChanged=ty.prototype.onVerticalOffsetOrPositionTargetChanged;_.Z([_.g(_.lA),_.l("design:type",Object)],ty.prototype,"ironOverlayBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ty.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",_.ON)],ty.prototype,"emojiManager",void 0);
_.Z([_.H(),_.l("design:type",Object)],ty.prototype,"emojiVariants",void 0);_.Z([_.H(),_.l("design:type",Object)],ty.prototype,"focusedIndex",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ty.prototype,"positionTarget",null);_.Z([_.H({reflectToAttribute:!0}),_.U("verticalOffset","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ty.prototype,"isPositioned",null);_.Z([_.H(),_.l("design:type",Object)],ty.prototype,"verticalOffset",void 0);
_.Z([_.H(),_.l("design:type",Object)],ty.prototype,"verticalAlign",void 0);_.Z([_.H(),_.l("design:type",Object)],ty.prototype,"dynamicAlign",void 0);_.Z([_.il("verticalOffset","positionTarget"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ty.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.Z([_.il("emojiVariants"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ty.prototype,"onEmojiVariantsChanged",null);
_.Z([_.nv("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],ty.prototype,"onKeyDown",null);_.Z([_.nv("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype",Promise)],ty.prototype,"onYtEmojiSelect",null);_.Z([_.eN()],ty);var rWd=[ty.prototype];var uNY;var xST;var La4=/medium-light|medium-dark|light|medium|dark/,jD2=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,DSp=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Tm=function(){var k=_.p.apply(this,arguments)||this;k.userSelection={left:null,right:null};k.scrollAction="lock";k.isEmojiDraftInProgress=!1;return k};
_.y(Tm,_.p);_.I=Tm.prototype;_.I.onClick=function(k){k=_.bv(k);k instanceof HTMLImageElement&&this.selectOrUpdateEmoji(k)};
_.I.selectOrUpdateEmoji=function(k){var E=k.getAttribute("selection");E&&(E==="default"?_.Me(this.hostElement,"yt-emoji-select",_.Gi(this.emojiManager,k.id)):E==="left"?this.userSelection=Object.assign({},this.userSelection,{left:k.src}):E==="right"?this.userSelection=Object.assign({},this.userSelection,{right:k.src}):E==="user"&&this.userSelection.left&&this.userSelection.right&&_.Me(this.hostElement,"yt-emoji-select",_.Gi(this.emojiManager,k.id)))};
_.I.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.I.onMultiSelectorThumbnailRowChanged=function(){var k,E,S;((k=this.data)==null?0:(E=k.emoji)==null?0:(S=E.multiSelectorThumbnailRow)==null?0:S.length)&&this.openSelector()};
_.I.getThumbnailFromEmojiRow=function(k){var E,S;return(k==null?void 0:(E=k.thumbnails)==null?void 0:(S=E[0])==null?void 0:S.url)||""};
_.I.getEmojiAltTextForPartialSelector=function(k){var E;return((E=this.getThumbnailFromEmojiRow(k).match(jD2))==null?void 0:E[0])||""};
_.I.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.I.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.I.getRowSelection=function(k){return["left","right"][k]};
_.I.getIdFromComposedEmoji=function(k){return(k==null?void 0:k.emojiId)||""};
_.I.getEmojiFromPartialSelections=function(k,E){if(!k&&!E)return null;var S,R,V=(S=this.data)==null?void 0:(R=S.emoji)==null?void 0:R.variantIds;if(!V||!V.length)return null;var N;k=(N=k.match(La4))==null?void 0:N[0];var h;E=(h=E.match(La4))==null?void 0:h[0];if(!k||!E)return null;var J=DSp.get(k);h=DSp.get(E);if(J===h){h=Array.from(DSp.values()).filter(function(a){return a!==J}).join("|");
var m=new RegExp("^((?!("+h+")).)*"+J+"$")}else m=new RegExp(J+".*"+h);return(V=V.find(function(a){return m.test(a)}))&&_.Gi(this.emojiManager,V)||null};
_.I.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var k,E=this.ytEmojiSelectorBehavior.emojiUrl(((k=this.data.emoji)==null?void 0:k.emojiId)||"");_.Cc(this.hostElement).querySelector('[selection="user"]').src.includes(E)||(this.isEmojiDraftInProgress=!0)}};
_.I.onDomChange=function(){AW8(this.ytEmojiSelectorBehavior)};
_.I.getFocusableElements=function(){return _.Cc(this.hostElement).querySelectorAll("img").filter(function(k){return k.getAttribute("role")==="option"})};
_.I.changeFocus=function(k){var E=this.getFocusableElements();E!=null&&E.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+k+E.length)%E.length,this.ytEmojiSelectorBehavior.focusedIndex<E.length&&(k=E[this.ytEmojiSelectorBehavior.focusedIndex])&&k.focus())};
_.I.onKeyboardEnter=function(){var k=this.getFocusableElements();k!=null&&k.length&&(k=k[this.ytEmojiSelectorBehavior.focusedIndex])&&k instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(k),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.mt.Object.defineProperties(Tm.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var k=this,E,S,R;return this.emojiManager&&((E=this.data)==null?0:(S=E.emoji)==null?0:(R=S.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(V){return!!V&&_.Gi(k.emojiManager,V)}).filter(function(V){return!!V}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var k,E=(k=this.userSelection)==null?void 0:k.left,S;k=(S=this.userSelection)==null?void 0:S.right;return E&&k?this.getEmojiFromPartialSelections(E,k):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.composedEmojiSelection)==null?0:k.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var E;k=(E=this.userSelection)==null?void 0:E.left;var S;E=(S=this.userSelection)==null?void 0:S.right;if(!k&&!E){var R;return this.ytEmojiSelectorBehavior.emojiUrl(((R=this.data.emoji)==null?void 0:R.emojiId)||"")}return k&&!E?k:!k&&E?E:""}}});
Tm.prototype.onMultiSelectorThumbnailRowChanged=Tm.prototype.onMultiSelectorThumbnailRowChanged;Tm.prototype.onClick=Tm.prototype.onClick;_.Z([_.g(_.lA),_.l("design:type",Object)],Tm.prototype,"ironOverlayBehavior",void 0);_.Z([_.g(rWd),_.l("design:type",Object)],Tm.prototype,"ytEmojiSelectorBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Tm.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",_.ON)],Tm.prototype,"emojiManager",void 0);
_.Z([_.H(),_.l("design:type",Object)],Tm.prototype,"userSelection",void 0);_.Z([_.H(),_.l("design:type",Object)],Tm.prototype,"scrollAction",void 0);_.Z([_.H(),_.l("design:type",Object)],Tm.prototype,"isEmojiDraftInProgress",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Tm.prototype,"emojiVariants",null);_.Z([_.U("data","userSelection"),_.l("design:type",Object),_.l("design:paramtypes",[])],Tm.prototype,"composedEmojiSelection",null);
_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],Tm.prototype,"onClick",null);_.Z([_.il("data.emoji.multiSelectorThumbnailRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tm.prototype,"onMultiSelectorThumbnailRowChanged",null);_.Z([_.U("data","userSelection","composedEmojiSelection"),_.l("design:type",String),_.l("design:paramtypes",[])],Tm.prototype,"draftEmojiUrl",null);
_.Z([_.U_({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Tm);
_.b(Tm,"yt-emoji-multi-person-selector",function(){if(xST===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;uNY===void 0&&(uNY=document.createElement("template"));var R=uNY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);xST=k}k=xST;return k},{mode:2});var $SC;var fcj;var wH=function(){var k=_.p.apply(this,arguments)||this;k.tooltip_=null;return k};
_.y(wH,_.p);_.I=wH.prototype;_.I.dataChanged_=function(){var k;if((k=this.data)==null?0:k.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Cc(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Rc)(this.tooltip_).textContent=this.data.tooltip};
_.I.computeTargetId=function(){var k;return((k=this.data)==null?void 0:k.targetId)||""};
_.I.computeId_=function(k){return k};
_.I.computeIcon_=function(k){return _.SF(k)};
_.I.onTap_=function(){this.active=!this.active;_.Me(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.I.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("active-changed",this.active))};
_.mt.Object.defineProperties(wH.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var k,E;if((k=this.data)==null?0:(E=k.icon)==null?0:E.iconType)return this.data.icon.iconType==="SUPER_STICKER";var S,R;return((S=this.data)==null?void 0:(R=S.icon)==null?void 0:R.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
wH.prototype.activeChangedForBinding=wH.prototype.activeChangedForBinding;wH.prototype.dataChanged_=wH.prototype.dataChanged_;_.Z([_.g(_.QW.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],wH.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],wH.prototype,"data",void 0);_.Z([_.H({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.l("design:type",String)],wH.prototype,"id",void 0);
_.Z([_.H({computed:"computeTargetId(data.targetId)"}),_.l("design:type",String)],wH.prototype,"targetId",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],wH.prototype,"active",void 0);_.Z([_.H({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.l("design:type",String)],wH.prototype,"icon",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wH.prototype,"dataChanged_",null);
_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],wH.prototype,"iconFilled",null);_.Z([_.il("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wH.prototype,"activeChangedForBinding",null);_.Z([_.U_({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],wH);
_.b(wH,"yt-emoji-picker-category-button-renderer",function(){if(fcj===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;$SC===void 0&&($SC=document.createElement("template"));var R=$SC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);fcj=k}k=fcj;return k},{mode:2});var v3C;var b04;var Pw=function(){var k=_.p.apply(this,arguments)||this;k.ariaLabel=null;k.ariaActivedescendant=null;k.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};k.JSC$14328_ignoreNextFocus_=!1;k.longPressTimeoutId=-1;return k};
_.y(Pw,_.p);_.I=Pw.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.I.emojiChanged_=function(){this.changeFocus_(0,!1);for(var k=_.JV(),E=0;E<this.emoji.length;E++){var S={veType:88013,elementIndex:E},R=this.emoji[E];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(S=_.hV(k,S))&&(R.visualElement=S)}};
_.I.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.I.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.I.emojiSkinToneChanged_=function(k){this.skinTone=k};
_.I.dataChanged=function(){this.data&&this.data.emojiData&&rAY(this.emojiManager,this.data.emojiData)};
_.I.emojiUrl=function(k){k=this.getEmoji(k);if(!k)return"";var E;k=(E=k.image)==null?void 0:E.thumbnails;return _.zT(k,24)||""};
_.I.emojiAlt=function(k){var E=this.get("image.accessibility.accessibilityData.label",k);return E?E:k.isCustomEmoji?k.shortcuts[0]:k.emojiId};
_.I.emojiAriaLabel=function(k){return k.shortcuts?k.shortcuts[0]:""};
_.I.emojiAriaSelected=function(k,E,S){return k&&S==E?"true":"false"};
_.I.getEmoji=function(k){if(this.emojiManager)return this.shouldUseStickyPreferences?xfd(this.emojiManager,k):CG(this.emojiManager,k)};
_.I.computeId_=function(k){return k.categoryId||""};
_.I.computeEmoji=function(k){var E=this;return this.emojiManager?k.emojiIds?k.emojiIds.map(function(S){return S?_.Gi(E.emojiManager,S):null}).filter(fcl):k.emojiData?k.emojiData.map(function(S){var R=!!S.emojiId&&_.Gi(E.emojiManager,S.emojiId);
return R?Object.assign({},R,S):null}).filter(fcl):[]:[]};
_.I.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.I.computeAriaLabel_=function(k){return _.$n(k)};
_.I.computeAriaActivedescendant_=function(k,E){return k&&k[E]?k[E].emojiId||"":""};
_.I.handleLongPressEmojiWithVariants=function(k,E){this.changeFocusToEmoji(k.emojiId,!1);this.openVariantSelector(k,E)};
_.I.onMouseDown=function(k){var E=this;this.hostElement!==document.activeElement&&(this.JSC$14328_ignoreNextFocus_=!0);if(k.button===0){var S=_.bv(k);if(S instanceof HTMLImageElement){var R=_.Cc(this.hostElement).querySelector("#repeat").itemForElement(S);this.emojiContainsVariants(R)&&(this.longPressTimeoutId=setTimeout(function(){E.handleLongPressEmojiWithVariants(R,S)},500))}}};
_.I.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.I.onFocus=function(){this.JSC$14328_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14328_ignoreNextFocus_=!1};
_.I.onBlur_=function(){this.showFocus=!1};
_.I.emojiContainsVariants=function(k){return!!(k&&k.variantIds&&k.variantIds.length)};
_.I.onClick=function(k){clearTimeout(this.longPressTimeoutId);k=_.bv(k);if(k instanceof HTMLImageElement){var E=k.id;this.changeFocusToEmoji(E,!1);var S=this.getEmoji(E),R;if(R=this.shouldUseStickyPreferences&&this.emojiContainsVariants(S)){var V;R=!((V=this.emojiManager.emojiMap[E])!=null&&V.stickyPrefId)}R?(V=_.Cc(this.hostElement).querySelector("#repeat").itemForElement(k),this.openVariantSelector(V,k)):_.Me(this.hostElement,"yt-emoji-select",S)}};
_.I.isActiveEmojiWithVariants=function(k,E){return k&&E?E.stickyPrefId?k===E.stickyPrefId:k===E.emojiId:!1};
_.I.onCloseEmojiVariantSelector=function(k){this.activeEmojiWithVariantsId===k&&(this.activeEmojiWithVariantsId="")};
_.I.onMouseOver_=function(k){k=_.bv(k);k instanceof HTMLImageElement&&_.Me(this.hostElement,"yt-emoji-hover",_.Gi(this.emojiManager,k.id))};
_.I.changeFocus_=function(k,E){this.focusedIndex=(this.focusedIndex+k+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(k=this.emoji[this.focusedIndex],E&&(this.showFocus=!0,_.Cc(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Me(this.hostElement,"yt-emoji-hover",k)))};
_.I.changeFocusToEmoji=function(k,E){if(k){var S=this.emoji.findIndex(function(R){return R.emojiId===k});
S!==-1&&this.changeFocus_(S-this.focusedIndex,E)}};
_.I.onKeyDown_=function(k){switch(k.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var E=this.emoji[this.focusedIndex];if(E&&E.emojiId){if(this.emojiContainsVariants(E)){var S=_.Cc(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(E,S)}else _.Me(this.hostElement,"yt-emoji-select",CG(this.emojiManager,E.emojiId)),this.hostElement.focus();k.preventDefault()}}break;case 40:this.changeFocus_(1,!0);k.preventDefault();break;case 38:this.changeFocus_(-1,!0),
k.preventDefault()}};
_.I.onEmojiStickyPreferenceChanged=function(k,E){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&k.emojiId&&k.variantIds&&k.variantIds.includes(E)&&this.activeEmojiWithVariantsId!==E&&this.setStickyEmojiPreference(k.emojiId,E)};
_.I.openVariantSelector=function(k,E){this.activeEmojiWithVariantsId=k.stickyPrefId||k.emojiId||"";_.Me(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:k,target:E})};
_.I.setStickyEmojiPreference=function(k,E){if(this.data){var S=this.emoji.findIndex(function(V){return V.emojiId===k});
if(S!==-1){var R=this.emoji[S];R.stickyPrefId=E;this.set("emoji."+S,Object.assign({},R));this.activeEmojiWithVariantsId=E}}};
Pw.prototype.onKeyDown_=Pw.prototype.onKeyDown_;Pw.prototype.onMouseOver_=Pw.prototype.onMouseOver_;Pw.prototype.onClick=Pw.prototype.onClick;Pw.prototype.onBlur_=Pw.prototype.onBlur_;Pw.prototype.onFocus=Pw.prototype.onFocus;Pw.prototype.onMouseUp=Pw.prototype.onMouseUp;Pw.prototype.onMouseDown=Pw.prototype.onMouseDown;Pw.prototype.dataChanged=Pw.prototype.dataChanged;Pw.prototype.disableIncrementalLoadingChanged_=Pw.prototype.disableIncrementalLoadingChanged_;Pw.prototype.emojiManagerChanged_=Pw.prototype.emojiManagerChanged_;
Pw.prototype.emojiChanged_=Pw.prototype.emojiChanged_;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Pw.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Pw.prototype,"data",void 0);_.Z([_.H({computed:"computeId_(data)"}),_.l("design:type",String)],Pw.prototype,"id",void 0);_.Z([_.H({computed:"computeEmoji(data)"}),_.l("design:type",Array)],Pw.prototype,"emoji",void 0);_.Z([_.H(),_.l("design:type",Number)],Pw.prototype,"skinTone",void 0);
_.Z([_.H(),_.l("design:type",_.ON)],Pw.prototype,"emojiManager",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Pw.prototype,"disableIncrementalLoading",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],Pw.prototype,"focusedIndex",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Pw.prototype,"showFocus",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.l("design:type",Object)],Pw.prototype,"ariaLabel",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.l("design:type",Object)],Pw.prototype,"ariaActivedescendant",void 0);_.Z([_.H({value:60}),_.l("design:type",Number)],Pw.prototype,"domRepeatTargetFramerate",void 0);_.Z([_.H({value:1}),_.l("design:type",Number)],Pw.prototype,"domRepeatInitialCount",void 0);_.Z([_.H({value:""}),_.l("design:type",String)],Pw.prototype,"activeEmojiWithVariantsId",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Pw.prototype,"shouldUseStickyPreferences",void 0);_.Z([_.il("emoji"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pw.prototype,"emojiChanged_",null);_.Z([_.il("emojiManager"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pw.prototype,"emojiManagerChanged_",null);
_.Z([_.il("disableIncrementalLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pw.prototype,"disableIncrementalLoadingChanged_",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pw.prototype,"dataChanged",null);_.Z([_.nv("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],Pw.prototype,"onMouseDown",null);
_.Z([_.nv("mouseup"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pw.prototype,"onMouseUp",null);_.Z([_.nv("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pw.prototype,"onFocus",null);_.Z([_.nv("blur"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pw.prototype,"onBlur_",null);
_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Pw.prototype,"onClick",null);_.Z([_.nv("mouseover"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Pw.prototype,"onMouseOver_",null);_.Z([_.nv("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Pw.prototype,"onKeyDown_",null);
_.Z([_.U_({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],Pw);
_.b(Pw,"yt-emoji-picker-category-renderer",function(){if(b04===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;v3C===void 0&&(v3C=document.createElement("template"));var R=v3C;S.call(E,R.content.cloneNode(!0),k.content.firstChild);b04=k}k=b04;return k},{mode:2});var Z05;var dSj;var sDC;var lcY;var Bw=function(){var k=_.p.apply(this,arguments)||this;k.ariaLabel=null;k.ariaActivedescendant=null;k.getFormattedStringRawText=_.$n;k.JSC$14334_ignoreNextFocus_=!1;return k};
_.y(Bw,_.p);_.I=Bw.prototype;_.I.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")};
_.I.emojiUrl=function(k){var E,S;k=(E=CG(this.emojiManager,k,!0))==null?void 0:(S=E.image)==null?void 0:S.thumbnails;return _.zT(k,24)||""};
_.I.emojiAlt=function(k){var E=this.get("image.accessibility.accessibilityData.label",k);return E?E:k.isCustomEmoji?k.shortcuts[0]:k.emojiId};
_.I.emojiId=function(k){return"emoji"+k};
_.I.computeId_=function(k){return k.categoryId||""};
_.I.computeAriaActivedescendant_=function(k){return this.emoji&&k<this.emoji.length?this.emojiId(k):""};
_.I.emojiChanged_=function(){this.changeFocus_(0,!1);for(var k=_.JV(),E=0;E<this.emoji.length;E++){var S={veType:88013,elementIndex:E},R=this.emoji[E];R.isCustomEmoji&&(R=document.querySelector(("#"+R.emojiId).replace("/","\\/")))&&(S=_.hV(k,S))&&(R.visualElement=S)}};
_.I.computeEmoji_=function(k){var E=this;return this.emojiManager?k.emojiIds.map(function(S){return _.Gi(E.emojiManager,S,!0)}).filter(v3h):[]};
_.I.titleOffsetChanged_=function(){var k=this.hostElement.getBoundingClientRect(),E=_.Cc(this.hostElement).querySelector("#title").getBoundingClientRect();k=Math.max(0,Math.min(this.titleOffset,k.height-E.height));_.Cc(this.hostElement).querySelector("#title").style.top=k+"px"};
_.I.onEmojiMouseOver_=function(k){_.Me(this.hostElement,"yt-emoji-hover",k.model.item)};
_.I.onEmojiTap_=function(k){this.data.command&&(k=Yr1(_.en().resolve(_.mz(QF)),this.data.command,k),_.Me(this.hostElement,"yt-navigate",k))};
_.I.emojiAriaLabel=function(k){return k.shortcuts[0]};
_.I.emojiAriaSelected=function(k,E,S){return k&&S==E?"true":"false"};
_.I.changeFocus_=function(k,E){var S=this.emoji.length;this.focusedIndex=(this.focusedIndex+k+S)%S;k=this.emoji[this.focusedIndex];if(E){var R;(R=_.Cc(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||R.scrollIntoView(!1);_.Me(this.hostElement,"yt-emoji-hover",k)}};
_.I.onMouseDown_=function(){this.JSC$14334_ignoreNextFocus_=!0};
_.I.onFocus_=function(){this.JSC$14334_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14334_ignoreNextFocus_=!1};
_.I.onBlur_=function(){this.showFocus=!1};
_.I.onKeyDown_=function(k){switch(k.keyCode){case 13:this.onEmojiTap_(k);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);k.preventDefault();break;case 38:this.changeFocus_(-1,!0),k.preventDefault()}};
Bw.prototype.onKeyDown_=Bw.prototype.onKeyDown_;Bw.prototype.onBlur_=Bw.prototype.onBlur_;Bw.prototype.onFocus_=Bw.prototype.onFocus_;Bw.prototype.onMouseDown_=Bw.prototype.onMouseDown_;Bw.prototype.onEmojiTap_=Bw.prototype.onEmojiTap_;Bw.prototype.titleOffsetChanged_=Bw.prototype.titleOffsetChanged_;Bw.prototype.emojiChanged_=Bw.prototype.emojiChanged_;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Bw.prototype,"ytComponentBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Bw.prototype,"data",void 0);_.Z([_.H({computed:"computeId_(data)"}),_.l("design:type",String)],Bw.prototype,"id",void 0);_.Z([_.H({computed:"computeEmoji_(data)"}),_.l("design:type",Array)],Bw.prototype,"emoji",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],Bw.prototype,"titleOffset",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.l("design:type",Object)],Bw.prototype,"ariaLabel",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.l("design:type",Object)],Bw.prototype,"ariaActivedescendant",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Bw.prototype,"showFocus",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],Bw.prototype,"focusedIndex",void 0);_.Z([_.H(),_.l("design:type",_.ON)],Bw.prototype,"emojiManager",void 0);
_.Z([_.il("emoji"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bw.prototype,"emojiChanged_",null);_.Z([_.il("titleOffset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bw.prototype,"titleOffsetChanged_",null);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Bw.prototype,"onEmojiTap_",null);
_.Z([_.nv("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bw.prototype,"onMouseDown_",null);_.Z([_.nv("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bw.prototype,"onFocus_",null);_.Z([_.nv("blur"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bw.prototype,"onBlur_",null);
_.Z([_.nv("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Bw.prototype,"onKeyDown_",null);_.Z([_.U_({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Bw);
_.b(Bw,"yt-emoji-picker-upsell-category-renderer",function(){if(lcY===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;sDC===void 0&&(sDC=document.createElement("template"));var R=sDC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);lcY=k}k=lcY;return k},{mode:2});var MW5;var qqz;var YP=function(){var k=_.p.apply(this,arguments)||this;k.scrollAction="lock";k.verticalAlign="top";return k};
_.y(YP,_.p);_.I=YP.prototype;_.I.onClick=function(k){k=_.bv(k);k instanceof HTMLImageElement&&_.Me(this.hostElement,"yt-emoji-select",_.Gi(this.emojiManager,k.id))};
_.I.openSelector=function(){this.ironOverlayBehavior.open()};
_.I.onDomChange=function(){AW8(this.ytEmojiSelectorBehavior)};
_.I.computeIsFamilySelector=function(k){var E;return(k==null?void 0:(E=k.emoji)==null?void 0:E.emojiId)==="\ud83d\udc6a"};
_.I.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var k=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];k&&k.emojiId&&(_.Me(this.hostElement,"yt-emoji-select",_.Gi(this.emojiManager,k.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.mt.Object.defineProperties(YP.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var k=this,E,S,R;return this.emojiManager&&((E=this.data)==null?0:(S=E.emoji)==null?0:(R=S.variantIds)==null?0:R.length)?this.data.emoji.variantIds.map(function(V){return!!V&&_.Gi(k.emojiManager,V)}).filter(function(V){return!!V}):[]}}});
YP.prototype.onClick=YP.prototype.onClick;_.Z([_.g(_.lA),_.l("design:type",Object)],YP.prototype,"ironOverlayBehavior",void 0);_.Z([_.g(rWd),_.l("design:type",Object)],YP.prototype,"ytEmojiSelectorBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],YP.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",_.ON)],YP.prototype,"emojiManager",void 0);_.Z([_.H(),_.l("design:type",Object)],YP.prototype,"scrollAction",void 0);_.Z([_.H(),_.l("design:type",Object)],YP.prototype,"verticalAlign",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.l("design:type",Boolean)],YP.prototype,"isFamilySelector",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],YP.prototype,"emojiVariants",null);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],YP.prototype,"onClick",null);_.Z([_.U_({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],YP);
_.b(YP,"yt-emoji-variant-selector",function(){if(qqz===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;MW5===void 0&&(MW5=document.createElement("template"));var R=MW5;S.call(E,R.content.cloneNode(!0),k.content.firstChild);qqz=k}k=qqz;return k},{mode:2});var zDz=/:/g,QDd=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Ww=function(){var k=_.p.apply(this,arguments)||this;k.emojiVariantSelector=null;k.emojiMultiPersonSelector=null;k.identity=_.DR;k.lastAnimationTime_=0;k.animationStart_=null;k.animationEnd_=null;return k};
_.y(Ww,_.p);_.I=Ww.prototype;
_.I.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}}};
_.I.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.kP)};
_.I.attached=function(){_.qX&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&uMz(this.emojiManager)};
_.I.dataChanged=function(){var k;if((k=this.data)==null?0:k.categories){k=this.emojiManager;var E=this.getCustomEmojiIds();k.pickerCustomEmojiIds=[].concat(_.$e(Ufz),_.$e(E))}};
_.I.getCustomEmojiIds=function(){var k,E=(k=this.data.categories)==null?void 0:k.find(function(N){var h;return((h=N.emojiPickerCategoryRenderer)==null?void 0:h.categoryId)&&QDd.includes(N.emojiPickerCategoryRenderer.categoryId)}),S;
k=(S=this.data.categories)==null?void 0:S.find(function(N){return N.emojiPickerUpsellCategoryRenderer});
var R,V;return[E==null?void 0:(R=E.emojiPickerCategoryRenderer)==null?void 0:R.emojiIds,k==null?void 0:(V=k.emojiPickerUpsellCategoryRenderer)==null?void 0:V.emojiIds].flat().filter(function(N){return!!N})};
_.I.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.I.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.I.updateCategoriesAndPlaceholderInternal=function(k,E){var S=this;k&&E&&(this.categories=k.categories||[],this.categoryButtons=k.categoryButtons||[],this.resetPlaceholder(),this.search="",_.xT(function(){S.updateButtons_()}))};
_.I.computeId_=function(k){return k.id||""};
_.I.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(k){return k.emojiPickerCategoryRenderer&&k.emojiPickerCategoryRenderer.emojiData}):!1};
_.I.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.I.onShowEmojiVariantSelector=function(k){var E=k.detail.emojiData;E.variantIds&&E.variantIds.length&&(E.multiSelectorThumbnailRow&&E.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:E,target:k.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:E,target:k.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.I.onIronOverlayClosed=function(k){var E=xfd(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");E&&k.composedPath&&(k.composedPath().includes(_.Cc(this.hostElement).querySelector("#emoji-variant-selector"))||k.composedPath().includes(_.Cc(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.qe(this.hostElement,"yt-close-emoji-variant-selector",[E.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.I.onEmojiVariantSelectorMouseup=function(k){var E=k.target.firstChild;this.variantSelectorOpened&&E&&_.xT(function(){E.noCancelOnOutsideClick=!1},100)};
_.I.onEmojiVariantSelectorMousedown=function(k){k=k.target.firstChild;this.variantSelectorOpened&&k&&(k.noCancelOnOutsideClick=!1)};
_.I.onSelectCategory_=function(k){var E=this.search!="";this.search="";for(var S=_.Cc(this.hostElement).querySelector("#categories").children,R=0;R<S.length;R++){var V=S[R];if(V.id==k.detail.categoryId){E?(_.Cc(this.hostElement).querySelector("#categories").scrollTop=V.offsetTop,this.updateButtons_()):(this.animationStart_=_.Cc(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=V.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.I.onEmojiHover_=function(k){this.placeholder=k.detail.shortcuts?k.detail.shortcuts[0]:""};
_.I.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.I.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.I.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.I.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.I.computeSearchCategory_=function(k){k=k.replace(zDz,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();k=k.split(" ");for(var E=[],S=this.emojiManager.emojis,R=0;R<S.length;R++){var V=S[R];if(V.searchTerms)for(var N=0;N<V.searchTerms.length;N++){for(var h=V.searchTerms[N].toLocaleLowerCase(),J=!1,m=0;m<k.length;m++)if(h.indexOf(k[m])!=-1){J=!0;break}if(J&&(!V.isCustomEmoji||!V.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(V.emojiId))){E.push(V.emojiId);
break}}}return{categoryId:-1,emojiIds:E}};
_.I.computeSearchEmptyMessage_=function(k,E){return k&&E&&E.emojiIds&&E.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.I.computeSearching_=function(k){return this.emojiManager&&k.replace(zDz,"").length>1};
_.I.computeSkinToneHidden=function(){var k;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((k=this.data)==null||!k.hideSkinTonePicker)};
_.I.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.I.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.I.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.I.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.I.selectSkinTone_=function(k){k=Number(k.target.getAttribute("tone"));this.set("emojiManager.skinTone",k);_.qe(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[k]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.I.skinToneChanged_=function(){_.Cc(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var k=_.Cc(this.hostElement).querySelector("#dropdown-content").children,E=0;E<k.length;E++)E===this.skinTone?k[E].setAttribute("selected",""):k[E].removeAttribute("selected")};
_.I.animateScroll_=function(k){this.lastAnimationTime_||(this.lastAnimationTime_=k);k-=this.lastAnimationTime_;k<200?(_.Cc(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*k/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Cc(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.I.searchChanged_=function(){this.updateButtons_()};
_.I.updateButtons_=function(){var k=null;if(!this.search)for(var E=_.Cc(this.hostElement).querySelector("#categories").scrollTop,S=_.Cc(this.hostElement).querySelector("#categories").children,R=0;R<S.length;R++){var V=S[R];V.offsetTop<=E&&(k=V.id)}E=_.Cc(this.hostElement).querySelector("#category-buttons").children;for(S=0;S<E.length;S++)R=E[S],R.active=R.id===k};
Ww.prototype.searchChanged_=Ww.prototype.searchChanged_;Ww.prototype.skinToneChanged_=Ww.prototype.skinToneChanged_;Ww.prototype.onEmojiHover_=Ww.prototype.onEmojiHover_;Ww.prototype.onSelectCategory_=Ww.prototype.onSelectCategory_;Ww.prototype.onShowEmojiVariantSelector=Ww.prototype.onShowEmojiVariantSelector;Ww.prototype.updateCategoriesAndPlaceholder_=Ww.prototype.updateCategoriesAndPlaceholder_;Ww.prototype.dataChanged=Ww.prototype.dataChanged;
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ww.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ww.prototype,"data",void 0);_.Z([_.H({value:function(){return[]}}),
_.l("design:type",Array)],Ww.prototype,"categories",void 0);_.Z([_.H({value:function(){return[]}}),
_.l("design:type",Array)],Ww.prototype,"categoryButtons",void 0);_.Z([_.H({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Ww.prototype,"disableScroll",void 0);_.Z([_.H({computed:"computeId_(data)",reflectToAttribute:!0}),_.l("design:type",String)],Ww.prototype,"id",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ww.prototype,"selected",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ww.prototype,"disableIncrementalLoading",void 0);_.Z([_.H(),_.l("design:type",String)],Ww.prototype,"placeholder",void 0);_.Z([_.H({value:""}),_.l("design:type",String)],Ww.prototype,"search",void 0);_.Z([_.H({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Ww.prototype,"searching",void 0);_.Z([_.H({computed:"computeSearchCategory_(search)"}),_.l("design:type",Object)],Ww.prototype,"searchCategory",void 0);
_.Z([_.H({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.l("design:type",Object)],Ww.prototype,"searchEmptyMessage",void 0);_.Z([_.H({computed:"identity(emojiManager.skinTone)"}),_.l("design:type",Number)],Ww.prototype,"skinTone",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ww.prototype,"skinToneOpened",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Ww.prototype,"variantSelectorOpened",void 0);
_.Z([_.H({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.l("design:type",Boolean)],Ww.prototype,"skinToneHidden",void 0);_.Z([_.H(),_.l("design:type",_.ON)],Ww.prototype,"emojiManager",void 0);_.Z([_.H(),_.l("design:type",Object)],Ww.prototype,"emojiVariantSelector",void 0);_.Z([_.H(),_.l("design:type",Object)],Ww.prototype,"emojiMultiPersonSelector",void 0);
_.Z([_.H({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.l("design:type",Boolean)],Ww.prototype,"shouldUseStickyPreferences",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ww.prototype,"dataChanged",null);_.Z([_.il("data","selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ww.prototype,"updateCategoriesAndPlaceholder_",null);
_.Z([_.nv("yt-show-emoji-variant-selector"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Ww.prototype,"onShowEmojiVariantSelector",null);_.Z([_.nv("yt-emoji-picker-select-category"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Ww.prototype,"onSelectCategory_",null);_.Z([_.nv("yt-emoji-hover"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Ww.prototype,"onEmojiHover_",null);
_.Z([_.il("skinTone"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ww.prototype,"skinToneChanged_",null);_.Z([_.il("search"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ww.prototype,"searchChanged_",null);_.Z([_.U_({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Ww);
_.b(Ww,"yt-emoji-picker-renderer",function(){if(dSj===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Z05===void 0&&(Z05=document.createElement("template"));var R=Z05;S.call(E,R.content.cloneNode(!0),k.content.firstChild);dSj=k}k=dSj;return k},{mode:2});var FR=function(){var k=_.p.apply(this,arguments)||this;k.emojiManager=_.kP;k.isDarkTheme=document.documentElement.hasAttribute("dark");k.selectedIndex=1;k.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return k};
_.y(FR,_.p);_.I=FR.prototype;_.I.handleEmojiCustomizationVisible=function(k){this.emojiPickerRenderer.selected=k;this.selectedIndex=1;k?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.I.emojiCustomizationSetChanged=function(){var k;(k=this.data)!=null&&k.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.GI(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.I.updateSaveButtonState=function(k){var E;(E=this.data)!=null&&E.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.mj("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:k}))};
_.I.emojiUrl=function(k){k=_.Gi(this.emojiManager,k);if(!k)return"";var E;k=(E=k.image)==null?void 0:E.thumbnails;return _.zT(k,24)||""};
_.I.emojiAlt=function(k){var E=_.Gi(this.emojiManager,k);if(!E)return k;var S,R,V,N=(E==null?void 0:(S=E.image)==null?void 0:(R=S.accessibility)==null?void 0:(V=R.accessibilityData)==null?void 0:V.label)||"";return N?N:E.isCustomEmoji?E.shortcuts[0]:E.emojiId||k};
_.I.emojiAriaLabel=function(k){var E,S;return((E=_.Gi(this.emojiManager,k))==null?void 0:(S=E.shortcuts)==null?void 0:S[0])||k};
_.I.onEmojiClick=function(k){k.model.index!==0&&(this.selectedIndex=k.model.index)};
_.I.onEmojiSelect=function(k){k=k.detail;var E,S;((E=this.data)==null?0:E.emojiCustomizationSetEntityKey)&&((S=this.emojiCustomizationSet)==null?0:S.emojiId)&&k.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,k.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.mj("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,k.emojiId,this.selectedIndex)}))};
_.I.canEditEmoji=function(k,E,S){k=k.indexOf(E);return k===S||k===0||S===0?!1:!0};
_.I.getUpdatedEmojiIdList=function(k,E,S){var R=k.indexOf(E);k=[].concat(_.$e(k));R>=0&&(k[R]=k[S]);k[S]=E;return k};
_.mt.Object.defineProperties(FR,{template:{configurable:!0,enumerable:!0,get:function(){if(tW5===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;acC===void 0&&(acC=document.createElement("template"));var R=acC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);tW5=k}k=tW5;return k}}});
FR.prototype.onEmojiSelect=FR.prototype.onEmojiSelect;_.Z([_.g(_.zM),_.l("design:type",Object)],FR.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],FR.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.JO("yt-emoji-picker-renderer"),_.l("design:type",Object)],FR.prototype,"emojiPickerRenderer",void 0);
_.Z([_.H({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(k,E){return _.Ep(k.entities,"emojiCustomizationSetEntity",E)},
observer:"emojiCustomizationSetChanged"}),_.l("design:type",Object)],FR.prototype,"emojiCustomizationSet",void 0);_.Z([_.H(),_.l("design:type",Object)],FR.prototype,"originalEmojiSet",void 0);_.Z([_.H(),_.l("design:type",_.ON)],FR.prototype,"emojiManager",void 0);_.Z([_.H(),_.l("design:type",Object)],FR.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],FR.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],FR.prototype,"selectedIndex",void 0);
_.Z([_.nv("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],FR.prototype,"onEmojiSelect",null);_.Z([_.U_({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],FR);var O0C;var GWY;var CpA;var ktT;var yI=function(){var k=_.p.apply(this,arguments)||this;k.authorBadges=[];return k};
_.y(yI,_.p);_.I=yI.prototype;_.I.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.I.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]]"}}}}}};
_.I.dataChanged=function(){var k=m9C(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",k)};
_.I.updateMessage=function(){var k=this.data.message,E=_.Cc(_.Cc(this.hostElement).querySelector("#message"));E.textContent="";k&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(k))};
_.I.shouldSupportWholeItemClick=function(){return!0};
_.I.onShowOriginalClick=function(k){k.preventDefault();this.showOriginal=!0};
_.I.computeShowBar=function(k,E,S){return k&&E||S};
_.I.computeAuthorBadges=function(k){return k.authorBadges||[]};
_.I.computeAuthorIsOwner=function(k){return!!egR(k.authorBadges,"owner")};
_.I.computeAuthorNameColor=function(k){var E;if(_.Y("live_chat_author_name_color_usernames")&&(k==null?0:(E=k.authorName)==null?0:E.simpleText))return _.Bi1(_.Y1h(k.authorName.simpleText));if(_.Y("live_chat_seed_color_usernames")&&(k==null?0:k.authorSeedColorArgb))return _.Bi1(_.kX(k.authorSeedColorArgb));if(_.Y("live_chat_colored_usernames"))return"#cc0000";var S;return _.Y("live_chat_simple_color_usernames")&&(k==null?0:(S=k.authorName)==null?0:S.simpleText)&&(k==null?0:k.authorUsernameColorLight)&&
(k==null?0:k.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.kX(k.authorUsernameColorDark):_.kX(k.authorUsernameColorLight):""};
yI.prototype.updateMessage=yI.prototype.updateMessage;yI.prototype.dataChanged=yI.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yI.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],yI.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],yI.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],yI.prototype,"data",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],yI.prototype,"showOriginal",void 0);_.Z([_.H({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.l("design:type",Boolean)],yI.prototype,"isDimmed",void 0);_.Z([_.H({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.l("design:type",Boolean)],yI.prototype,"showBar",void 0);
_.Z([_.H({computed:"computeAuthorBadges(data)"}),_.l("design:type",Array)],yI.prototype,"authorBadges",void 0);_.Z([_.H({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],yI.prototype,"authorIsOwner",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],yI.prototype,"inCollapsedBanner",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],yI.prototype,"inBanner",void 0);
_.Z([_.H({value:_.Y("live_chat_hide_avatars"),reflectToAttribute:!0}),_.l("design:type",Boolean)],yI.prototype,"avatarHidden",void 0);_.Z([_.H({computed:"computeAuthorNameColor(data)"}),_.l("design:type",String)],yI.prototype,"authorNameColor",void 0);_.Z([_.H(),_.l("design:type",_.N8)],yI.prototype,"participantsManager",void 0);_.Z([_.H({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.l("design:type",Object)],yI.prototype,"filledButtonOverrides",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yI.prototype,"dataChanged",null);_.Z([_.il("data.message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yI.prototype,"updateMessage",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],yI);
_.b(yI,"yt-live-chat-text-message-renderer",function(){if(ktT===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;CpA===void 0&&(CpA=document.createElement("template"));var R=CpA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);ktT=k}k=ktT;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var o8=function(){var k=_.p.apply(this,arguments)||this;k.tonalButtonOverrides={type:"tonal",style:"overlay"};return k};
_.y(o8,_.p);
o8.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]]"}}}}}};
o8.prototype.shouldSupportInlineActionButtons=function(){return!0};
o8.prototype.shouldSupportWholeItemClick=function(){return!0};
_.mt.Object.defineProperties(o8.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],o8.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],o8.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],o8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],o8.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",_.N8)],o8.prototype,"participantsManager",void 0);
_.Z([_.H(),_.l("design:type",Object)],o8.prototype,"tonalButtonOverrides",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.infoDialogButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],o8.prototype,"hasInfoDialogButton",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],o8);
_.b(o8,"yt-live-chat-auto-mod-message-renderer",function(){if(GWY===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;O0C===void 0&&(O0C=document.createElement("template"));var R=O0C;S.call(E,R.content.cloneNode(!0),k.content.firstChild);GWY=k}k=GWY;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var EL8;var S$8;var R9j;var V0T=function(){return _.p.apply(this,arguments)||this};
_.y(V0T,_.p);_.Z([_.H(),_.l("design:type",Object)],V0T.prototype,"data",void 0);_.Z([_.D({is:"ytd-factoid-renderer",disableElementRegistration:!0})],V0T);
_.b(V0T,"ytd-factoid-renderer",function(){if(R9j!==void 0)return R9j;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return R9j=k},{mode:1});var gH=function(){return _.p.apply(this,arguments)||this};
_.y(gH,_.p);gH.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.Z([_.H(),_.l("design:type",Object)],gH.prototype,"data",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],gH);
_.b(gH,"yt-live-chat-channel-activity-reputation-renderer",function(){if(S$8===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;EL8===void 0&&(EL8=document.createElement("template"));var R=EL8;S.call(E,R.content.cloneNode(!0),k.content.firstChild);S$8=k}k=S$8;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Nx4;var ILp;var Ub=function(){return _.p.apply(this,arguments)||this};
_.y(Ub,_.p);Ub.prototype.ready=function(){var k=document.querySelector("yt-live-chat-app");k&&k.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Ub.prototype,"menuFocused",void 0);_.Z([_.H(),_.l("design:type",Object)],Ub.prototype,"data",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],Ub.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Ub);
_.b(Ub,"yt-live-chat-donation-announcement-renderer",function(){if(ILp===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;Nx4===void 0&&(Nx4=document.createElement("template"));var R=Nx4;S.call(E,R.content.cloneNode(!0),k.content.firstChild);ILp=k}k=ILp;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var nLC;var iA5,h92=function(){if(iA5!==void 0)return iA5;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;nLC===void 0&&(nLC=document.createElement("template"));var R=nLC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return iA5=k};var Hw=function(){return _.p.apply(this,arguments)||this};
_.y(Hw,_.p);_.mt.Object.defineProperties(Hw,{template:{configurable:!0,enumerable:!0,get:function(){return h92()}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Hw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Hw.prototype,"data",void 0);_.Z([_.U_({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Hw);_.b(Hw,"yt-live-chat-empty-feed-view-model",function(){return h92()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var JdY;var cd4;var KX=function(){return _.p.apply(this,arguments)||this};
_.y(KX,_.p);KX.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"}}}}}};
_.mt.Object.defineProperties(KX.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var k,E;return{runs:[{text:(k=this.data)==null?void 0:(E=k.channelName)==null?void 0:E.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var k=[],E;if((E=this.data)==null||!E.channelBadges)return k;var S;E=_.n((S=this.data)==null?void 0:S.channelBadges);for(S=E.next();!S.done;S=E.next()){S=_.W(S.value,q64);var R=void 0,V=void 0;if((R=S)==null?0:(V=R.badgeImage)==null?0:V.sources)R=void 0,V={liveChatAuthorBadgeRenderer:{tooltip:S.tooltip,accessibility:{accessibilityData:{label:(R=_.W(S.rendererContext,_.n9))==null?void 0:R.label}}}},S.badgeImage.sources[0].clientResource?V.liveChatAuthorBadgeRenderer.icon=
{iconType:S.badgeImage.sources[0].clientResource.imageName}:V.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:S.badgeImage.sources},k.push(V)}return k}}});
_.Z([_.H(),_.l("design:type",Object)],KX.prototype,"data",void 0);_.Z([_.U("data.channelName"),_.l("design:type",Object),_.l("design:paramtypes",[])],KX.prototype,"channelName",null);_.Z([_.U("data.channelBadges"),_.l("design:type",Array),_.l("design:paramtypes",[])],KX.prototype,"channelBadges",null);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],KX);
_.b(KX,"yt-live-chat-identity-view-model",function(){if(cd4===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;JdY===void 0&&(JdY=document.createElement("template"));var R=JdY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);cd4=k}k=cd4;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var mHC;var e9j;var aLd;var t0d;var pX=function(){var k=_.p.apply(this,arguments)||this;k.hidden=!1;k.supportsInlineActionButtons=!0;return k};
_.y(pX,_.p);pX.prototype.ready=function(){var k;((k=document.querySelector("yt-live-chat-app"))==null?0:k.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
pX.prototype.dataChanged=function(k){var E=(0,_.Rc)(_.Cc(this.hostElement).querySelector("#detail-text"));E.textContent="";(k==null?0:k.detailText)&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(k.detailText))};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],pX.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],pX.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H({observer:"dataChanged"}),_.l("design:type",Object)],pX.prototype,"data",void 0);
_.Z([_.H({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.l("design:type",Object)],pX.prototype,"hidden",void 0);_.Z([_.D({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],pX);
_.b(pX,"yt-live-chat-legacy-paid-message-renderer",function(){if(t0d===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;aLd===void 0&&(aLd=document.createElement("template"));var R=aLd;S.call(E,R.content.cloneNode(!0),k.content.firstChild);t0d=k}k=t0d;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Txj;var wKd;var PeA={},Ay=function(){return _.mi.apply(this,arguments)||this};
_.y(Ay,_.mi);Ay.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ay.prototype.onLiveChatMembershipItemBehaviorClick=Ay.prototype.onLiveChatMembershipItemBehaviorClick;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ay.prototype,"data",void 0);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Ay.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.Z([_.eN()],Ay);
PeA.YtLiveChatMembershipItemBehavior=[Ay.prototype,_.O.YtRendererBehavior];var rH=function(){var k=_.p.apply(this,arguments)||this;k.supportsInlineActionButtons=!0;k.hasPrimaryHeaderText=!1;k.showOnlyHeader=!1;k.authorBadges=[];k.modern=_.Y("web_button_rework_with_live");k.buttonOverrides={style:"overlay",type:"filled"};return k};
_.y(rH,_.p);_.I=rH.prototype;_.I.shouldSupportInlineActionButtons=function(){return!0};
_.I.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.I.ready=function(){var k=document.querySelector("yt-live-chat-app");k&&k.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.I.messageChanged=function(){var k=this.data.message,E=(0,_.Rc)(_.Cc(this.hostElement).querySelector("#message"));E.textContent="";k&&E.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(k))};
_.I.computeHasPrimaryHeaderText=function(k){return!(!k||!k.headerPrimaryText)};
_.I.computeShowOnlyHeader=function(k,E){return this.isMessageEmpty(k,E)};
_.I.computeAuthorBadges=function(k){return k.authorBadges||[]};
_.I.isMessageEmpty=function(k,E){return!k||k.empty?!0:!k.message&&!k.inputField&&!E};
_.I.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.I.getInputElement=function(){return _.Cc(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.I.inputFocus=function(){var k=this.getInputElement();k&&k.focus()};
_.I.inputInsertEmoji=function(k){var E=this.getInputElement();E&&E.insertEmoji(k)};
_.I.inputMessage=function(){var k=this.getInputElement();return k&&this.data.inputField?(k.completeEmojis(),_.KU(k.liveChatRichMessageInput)):null};
_.I.onFooterButtonClick=function(){this.data.footerButton&&_.Me(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.I.shouldSupportWholeItemClick=function(){return!0};
rH.prototype.isDeletedChanged=rH.prototype.isDeletedChanged;rH.prototype.messageChanged=rH.prototype.messageChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],rH.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.g(PeA.YtLiveChatMembershipItemBehavior),_.l("design:type",Object)],rH.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],rH.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rH.prototype,"data",void 0);_.Z([_.H({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.l("design:type",Object)],rH.prototype,"hasPrimaryHeaderText",void 0);_.Z([_.H({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.l("design:type",Object)],rH.prototype,"showOnlyHeader",void 0);
_.Z([_.H({computed:"computeAuthorBadges(data)"}),_.l("design:type",Array)],rH.prototype,"authorBadges",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],rH.prototype,"modern",void 0);_.Z([_.il("data.message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rH.prototype,"messageChanged",null);_.Z([_.il("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rH.prototype,"isDeletedChanged",null);
_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],rH);
_.b(rH,"yt-live-chat-membership-item-renderer",function(){if(wKd===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Txj===void 0&&(Txj=document.createElement("template"));var R=Txj;S.call(E,R.content.cloneNode(!0),k.content.firstChild);wKd=k}k=wKd;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var BxT;var Y$C;var uZ=function(){return _.p.apply(this,arguments)||this};
_.y(uZ,_.p);uZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],uZ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],uZ.prototype,"data",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],uZ);
_.b(uZ,"yt-live-chat-mode-change-message-renderer",function(){if(Y$C===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;BxT===void 0&&(BxT=document.createElement("template"));var R=BxT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Y$C=k}k=Y$C;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Wkj;var Fkd;var xP=function(){return _.p.apply(this,arguments)||this};
_.y(xP,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xP.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],xP.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],xP.prototype,"data",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],xP);
_.b(xP,"yt-live-chat-moderation-message-renderer",function(){if(Fkd===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;Wkj===void 0&&(Wkj=document.createElement("template"));var R=Wkj;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Fkd=k}k=Fkd;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var ydY;var oLC;var LX=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("web_button_rework");return k};
_.y(LX,_.p);LX.prototype.onClick=function(){var k;if((k=this.data)!=null&&k.onClickCommand){var E;_.V_.instance.resolveCommand((E=this.data)==null?void 0:E.onClickCommand)}};
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],LX.prototype,"modern",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],LX.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],LX.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],LX.prototype,"data",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],LX);
_.b(LX,"yt-live-chat-offer-click-count-message-renderer",function(){if(oLC===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;ydY===void 0&&(ydY=document.createElement("template"));var R=ydY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);oLC=k}k=oLC;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var XK2;var gLz=function(){return _.p.apply(this,arguments)||this};
_.y(gLz,_.p);_.Z([_.H(),_.l("design:type",Object)],gLz.prototype,"data",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],gLz);
_.b(gLz,"yt-live-chat-placeholder-item-renderer",function(){if(XK2===void 0){var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);XK2=k}k=XK2;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var UHA;var HAj;var KkC=new ji(7),jD=function(){var k=_.p.apply(this,arguments)||this;k.data={};return k};
_.y(jD,_.p);jD.prototype.dataChanged=function(){var k;((k=this.data)==null?0:k.class)&&_.E_(this.hostElement,this.data.class,!0);var E;((E=this.oldData)==null?0:E.class)&&_.E_(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
jD.prototype.computeTimestampString=function(k){return KkC.format(new Date(k/1E3))};
jD.prototype.dataChanged=jD.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],jD.prototype,"data",void 0);_.Z([_.H({computed:"computeTimestampString(data.timestampUsec)"}),_.l("design:type",String)],jD.prototype,"timestampString",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jD.prototype,"dataChanged",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],jD);
_.b(jD,"yt-live-chat-server-error-message",function(){if(HAj===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;UHA===void 0&&(UHA=document.createElement("template"));var R=UHA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);HAj=k}k=HAj;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var pKY;var AdT;var DG=function(){var k=_.p.apply(this,arguments)||this;k.defaultToFilledIcon=!1;return k};
_.y(DG,_.p);DG.prototype.computeHasPrimaryColorIcon=function(k){return k==="SPARK"||k==="SPONSORSHIP_STAR"};
DG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],DG.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],DG.prototype,"defaultToFilledIcon",void 0);_.Z([_.H(),_.l("design:type",Object)],DG.prototype,"data",void 0);
_.Z([_.H({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.l("design:type",Boolean)],DG.prototype,"hasPrimaryColorIcon",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],DG);
_.b(DG,"yt-live-chat-viewer-engagement-message-renderer",function(){if(AdT===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;pKY===void 0&&(pKY=document.createElement("template"));var R=pKY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);AdT=k}k=AdT;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var rdY;var $P=function(){var k=_.p.apply(this,arguments)||this;k.modernUpdate=!1;k.buttonStyle="overlay";k.buttonType="filled";return k};
_.y($P,_.p);$P.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
$P.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$P.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],$P.prototype,"modernUpdate",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],$P.prototype,"buttonStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],$P.prototype,"buttonType",void 0);
_.Z([_.D({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],$P);
_.b($P,"ytd-ad-hover-text-button-renderer",function(){if(rdY!==void 0)return rdY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return rdY=k},{mode:1});var uO2;var fX=function(){var k=_.p.apply(this,arguments)||this;k.buttonOverrides={size:"XS"};k.modern=_.Y("web_button_rework");return k};
_.y(fX,_.p);fX.prototype.onHelpTap=function(k){this.data&&this.data.informationDialog&&(_.Me(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),k.preventDefault(),k.stopPropagation())};
_.Z([_.H(),_.l("design:type",Object)],fX.prototype,"buttonOverrides",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],fX.prototype,"modern",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],fX.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],fX);
_.b(fX,"ytd-live-chat-purchased-product-message-renderer",function(){if(uO2!==void 0)return uO2;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return uO2=k},{mode:1});var xHA;var LkC;var vw=function(){var k=_.p.apply(this,arguments)||this;k.isContainerDeleted=!1;return k};
_.y(vw,_.p);vw.prototype.onContextMenuClick=function(k){this.ytLiveChatItemBehavior.showContextMenu(k)};
vw.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))};
vw.prototype.isContainerDeletedChanged=vw.prototype.isContainerDeletedChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],vw.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],vw.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],vw.prototype,"isContainerDeleted",void 0);
_.Z([_.H(),_.l("design:type",String)],vw.prototype,"deletedStateMessage",void 0);_.Z([_.il("isContainerDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vw.prototype,"isContainerDeletedChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],vw);
_.b(vw,"ytd-sponsorships-live-chat-header-renderer",function(){if(LkC!==void 0)return LkC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return LkC=k},{mode:1});var bZ=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("web_button_rework_with_live");k.buttonOverrides={style:"overlay",type:"filled"};return k};
_.y(bZ,_.p);bZ.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]]"}}}}}};
bZ.prototype.onCtaButtonClick=function(){var k,E=_.W((k=this.data)==null?void 0:k.optInPrompt,_.dZ);if(k=this.maybeGetButtonCommand(E)){var S;(S=_.JV())==null||S.clickCommand(k)}};
bZ.prototype.maybeGetButtonCommand=function(k){return!k||!k.command||_.W(k.command,x1T)===void 0&&_.W(k.command,uk8)===void 0?null:k.command};
bZ.prototype.shouldHideOptinPrompt=function(k,E){return!k||E};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],bZ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],bZ.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bZ.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bZ.prototype,"modern",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],bZ);
_.b(bZ,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(xHA!==void 0)return xHA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return xHA=k},{mode:1});var jzz;var ZG=function(){return _.p.apply(this,arguments)||this};
_.y(ZG,_.p);ZG.prototype.onContextMenuClick=function(k){this.ytLiveChatItemBehavior.showContextMenu(k)};
ZG.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))};
ZG.prototype.isDeletedChanged=ZG.prototype.isDeletedChanged;_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],ZG.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ZG.prototype,"data",void 0);_.Z([_.il("isDeleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZG.prototype,"isDeletedChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],ZG);
_.b(ZG,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(jzz!==void 0)return jzz;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return jzz=k},{mode:1});var dH=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return k};
_.y(dH,_.p);_.I=dH.prototype;
_.I.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"}}}};
_.I.handleLiveChatAction=function(k){_.W(k,t_8)?this.handleMarkChatItemAsDeletedAction(_.W(k,t_8)):_.W(k,ar4)&&this.handleRemoveChatItemAction(_.W(k,ar4))};
_.I.handleLiveChatActions=function(k){k.forEach(this.handleLiveChatAction,this)};
_.I.handleMarkChatItemAsDeletedAction=function(k){var E=this,S;((S=this.data)==null?0:S.items)&&this.data.items.forEach(function(R,V){var N=Object.keys(R)[0];Object.values(R)[0].id===k.targetItemId&&E.markAsDeleted("data.items",V,N,k.deletedStateMessage,k.showOriginalContentMessage)})};
_.I.handleRemoveChatItemAction=function(k){var E=this,S;((S=this.data)==null?0:S.items)&&this.data.items.forEach(function(R,V){Object.values(R)[0].id===k.targetItemId&&E.splice("data.items",V,1)})};
_.I.markAsDeleted=function(k,E,S,R,V){k=[k,E,S].join(".");this.set(k+".deletedStateMessage",R);this.set(k+".showOriginalContentMessage",V)};
_.Z([_.H(),_.l("design:type",Object)],dH.prototype,"data",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],dH.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],dH);
_.b(dH,"yt-live-chat-item-display-list-renderer",function(){if(e9j===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;mHC===void 0&&(mHC=document.createElement("template"));var R=mHC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);e9j=k}k=e9j;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var DHj;var $Hj,fLA=function(){if($Hj!==void 0)return $Hj;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;DHj===void 0&&(DHj=document.createElement("template"));var R=DHj;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return $Hj=k};var sb=function(){var k=_.p.apply(this,arguments)||this;k.isHeader=!1;return k};
_.y(sb,_.p);sb.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.mt.Object.defineProperties(sb,{template:{configurable:!0,enumerable:!0,get:function(){return fLA()}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sb.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],sb.prototype,"isHeader",void 0);_.Z([_.U_({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],sb);_.b(sb,"yt-live-chat-item-display-renderer",function(){return fLA()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var vLd,bAC,M0C,lL8;
vLd={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}};bAC={home:"eohps",search:"eosps",watch:"eowps"};_.ZA8=["watch","search","home"];
_.lZ=function(){this.JSC$14445_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14445_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Mg("PRECONSTRUCTION_DELAY",0);this.signals_=_.O7();this.targetPage_=""};
_.lZ.prototype.init=function(k,E){k=k===void 0?"":k;E=E===void 0?null:E;if(this.JSC$14445_isInitialized_)this.abort();else if(this.JSC$14445_isInitialized_=!0,k&&_.dHd(this,k),E){var S=_.G7(this.signals_,"pcl")?0:10,R=function(){for(var V=0,N;N=_.ZA8[V++];)N!=k&&N!=E&&this.pendingPages_.push(N);_.szd(this)}.bind(this);
this.signals_.parkOrScheduleJob(R,S,"pcl")}};
_.lZ.prototype.abort=function(){this.fragmentJobId_&&(_.ZJ.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);lL8(this)};
_.dHd=function(k,E){k.JSC$14445_isInitialized_&&!k.targetPage_&&(k.targetPage_=E,M0C(k,E),k.isInitialPass_=!1,M0C(k,E),k.signals_.processSignal(bAC[k.targetPage_]),lL8(k),_.szd(k))};
_.szd=function(k){k.pendingPages_.length&&!k.pagePreparerJobId_&&(k.pagePreparerJobId_=_.uM(_.ZJ,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.dHd(this,this.pendingPages_.shift())}.bind(k),k.DEFAULT_DELAY_))};
M0C=function(k,E){if(E=vLd[E])for(var S in E){var R=!1,V=S;S.charAt(0)=="~"&&(R=!0,V=S.substring(1));var N=E[S];N=typeof N=="object"?N:{count:N};E[S]=N;N.componentName=V;N.count>0&&(k.isInitialPass_?R||k.isSeenDuringInitialPass_[V]||(k.JSC$14445_queue_.push({componentName:V,count:1,signals:N.signals}),k.isSeenDuringInitialPass_[V]=!0,N.count--):k.JSC$14445_queue_.push(N))}};
lL8=function(k){k.JSC$14445_queue_.length=0;k.targetPage_="";k.isInitialPass_=!0;k.signals_.processSignal("eop")};
_.lZ.getInstance=function(){return _.$z(_.lZ)};var q$2=function(){this.signals=_.O7();this.init()};
q$2.prototype.startPreconstruction=function(){_.lZ.getInstance().init(_.qg("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
q$2.prototype.init=function(){z98(this);window.Polymer&&fZY&&Shh();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var k=_.Vt.ytcsi;if(k&&k.gt&&(k=k.gt())&&k.tick&&(k.tick.aft>0||k.tick.pbs>0)&&(_.qg("IS_HOMEPAGE_COLD")||_.qg("IS_RESULTS_PAGE_COLD")||_.qg("IS_WATCH_PAGE_COLD"))){QzC(this);break a}vl1(bKe,this.onNotifications,this)}};
var z98=function(k){var E=function(){k.signals.processSignal("dl")};
document.readyState==="complete"?(_.kr(Error("Ah"),"WARNING"),E()):_.TXi(window,"load",E)};
q$2.prototype.onNotifications=function(k){k.timer||(_.qg("IS_HOMEPAGE_COLD")||_.qg("IS_RESULTS_PAGE_COLD")||_.qg("IS_WATCH_PAGE_COLD"))&&QzC(this)};
var QzC=function(k){k.signals.parkOrScheduleJob(function(){k.signals.processSignal("eocs")},10,"eor")};
new q$2;var M8,OAd=function(){return _.mi.apply(this,arguments)||this};
_.y(OAd,_.mi);_.I=OAd.prototype;_.I.enableActiveViewMeasurement=function(k){if(this.isActiveViewEnabled(k)){var E=this.getUrlPrefixesFromCommand(k.viewableCommands);k=this.getUrlPrefixesFromCommand(k.endOfSessionCommands);if(!M8){var S=_.wO("custom_active_view_tos_timeout_ms");M8=S>0&&S!==36E5?new DPR(this.getVersion(),S):new DPR(this.getVersion())}f3j(M8,this.hostElement);vRj(M8,this.hostElement,E,k)}};
_.I.stopActiveViewMeasurement=function(){M8&&f3j(M8,this.hostElement)};
_.I.isActiveViewEnabled=function(k){return!!k&&(this.hasAtLeastOneUrl(k.viewableCommands)||this.hasAtLeastOneUrl(k.endOfSessionCommands))};
_.I.hasAtLeastOneUrl=function(k){return!!k&&k.length>0&&k[0].loggingUrls!=null&&k[0].loggingUrls.length>0};
_.I.getVersion=function(){var k=_.Mg("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(k==null?void 0:k.length)===2?k[1]:null};
_.I.getUrlPrefixesFromCommand=function(k){if(!k)return[];var E=[];k=_.n(k);for(var S=k.next();!S.done;S=k.next())if(S=S.value,S.loggingUrls){S=_.n(S.loggingUrls);for(var R=S.next();!R.done;R=S.next())R=R.value,R.baseUrl&&E.push(R.baseUrl)}return E};
_.Z([_.eN()],OAd);var q8=[OAd.prototype];var Gtp=function(){return _.mi.apply(this,arguments)||this};
_.y(Gtp,_.mi);_.mt.Object.defineProperties(Gtp.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_entity_store_from_dependency_injection")?_.vu():_.vo()}}});
_.Z([_.eN()],Gtp);_.zm=[bO.prototype,Gtp.prototype];var CeT=["ytd-rich-shelf-renderer"],QI=function(){var k=_.mi.apply(this,arguments)||this;k._noAccessors=!0;k.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";k.followUpDialogPromise=null;k.followUpDialogPromiseResolve=null;k.followUpDialogPromiseReject=null;return k};
_.y(QI,_.mi);_.I=QI.prototype;_.I.dismissibleItemIsDismissedChanged_=function(k){_.Y("kevlar_fluid_dismiss")&&(k?_.Me(this.hostElement,"yt-dismissible-item-dismissed"):_.Me(this.hostElement,"yt-dismissible-item-undismissed"))};
_.I.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.I.dismissibleItemReset_=function(){var k=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 _.yF(function(E,S){k.followUpDialogPromiseResolve=E;k.followUpDialogPromiseReject=S});
_.Me(this.hostElement,"yt-enable-lockup-interaction")};
_.I.dismissibleItemOnYtServiceRequestSent_=function(k,E){E.actions&&this.dismissibleItemProcessActions(E.actions,k)};
_.I.dismissibleItemOnRequestSent=function(k){if(_.Y("web_button_rework"))for(var E=_.n(k.detail),S=E.next();!S.done;S=E.next()){var R=void 0;(S=(R=_.W(S.value,_.Ev))==null?void 0:R.actions)&&this.dismissibleItemProcessActions(S,k)}};
_.I.dismissibleItemOnCommandSent=function(k,E){E&&this.dismissibleItemProcessActions(E,k)};
_.I.setAndGetDismissedContentId=function(k){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+k};
_.I.replayDismissAction=function(k){this.dismissibleItemProcessActions([k])};
_.I.dismissibleItemProcessActions=function(k,E){for(var S=0;S<k.length;S++){var R=k[S],V=void 0;((V=_.W(R,_.CI))==null?0:V.commands)&&this.dismissibleItemProcessActions(_.W(R,_.CI).commands,E);if(_.W(R,_.WF)){if(V=_.W(R,_.WF),!V.replaceParentSection||CeT.includes(this.hostElement.nodeName.toLowerCase()))V.groupDismissal&&b0C(this,V.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(V),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.mj("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:R})),R=void 0,(R=E)==null||R.stopPropagation()}else if(_.W(R,cfC))this.dismissibleItemHandleHideEnclosingAction_(),R=void 0,(R=E)==null||R.stopPropagation();else if(_.W(R,x7j))R=_.W(R,x7j),V=void 0,((V=R)==null?0:V.targetGroupId)&&b0C(this,{targetGroupId:R.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.mj("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
R=void 0,(R=E)==null||R.stopPropagation();else if(_.W(R,_.Ev))(R=_.W(R,_.Ev).actions)&&_.Ot(this.hostElement,R,this.hostElement),R=void 0,(R=E)==null||R.stopPropagation();else{var N=V=void 0;((V=_.W(R,_.zU))==null?void 0:V.signal)!=="TELL_US_WHY"||((N=_.W(R,_.zU))==null?0:N.targetId)&&_.Y("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),R=void 0,(R=E)==null||R.stopPropagation())}}};
_.I.dismissibleItemOnYtServiceRequestCompleted_=function(k,E){var S=this.get("feedbackResponses.0.followUpDialog",E.data);S?this.followUpDialogPromiseResolve(S):E.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(E.actions,k)};
_.I.dismissibleItemHandleReplaceEnclosingAction_=function(k){this.dismissedRenderer=k.item;this.isDismissed=!0;var E=null;(E=_.Cc(this.hostElement).querySelector("#dismissed"))&&_.JB(this,function(){_.Nd(E)});
_.Me(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.I.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.I.dismissibleItemHandleUndoFeedbackAction_=function(){_.Me(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.I.dismissibleItemHandleTellUsWhySignalAction_=function(){var k=this;this.followUpDialogPromise.then(function(E){k.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:E}})})};
QI.prototype.dismissibleItemOnYtServiceRequestCompleted_=QI.prototype.dismissibleItemOnYtServiceRequestCompleted_;QI.prototype.dismissibleItemOnCommandSent=QI.prototype.dismissibleItemOnCommandSent;QI.prototype.dismissibleItemOnRequestSent=QI.prototype.dismissibleItemOnRequestSent;QI.prototype.dismissibleItemOnYtServiceRequestSent_=QI.prototype.dismissibleItemOnYtServiceRequestSent_;QI.prototype.dismissibleItemDataChanged_=QI.prototype.dismissibleItemDataChanged_;
QI.prototype.dismissibleItemIsDismissedChanged_=QI.prototype.dismissibleItemIsDismissedChanged_;_.Z([_.g(_.Jy),_.l("design:type",Object)],QI.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],QI.prototype,"ytdReduxBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],QI.prototype,"isDismissed",void 0);_.Z([_.H(),_.l("design:type",Object)],QI.prototype,"dismissedRenderer",void 0);
_.Z([_.il("isDismissed"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean]),_.l("design:returntype")],QI.prototype,"dismissibleItemIsDismissedChanged_",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QI.prototype,"dismissibleItemDataChanged_",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],QI.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.Z([_.nv("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],QI.prototype,"dismissibleItemOnRequestSent",null);
_.Z([_.nv("yt-dismissible-item-action"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Array]),_.l("design:returntype")],QI.prototype,"dismissibleItemOnCommandSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],QI.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.Z([_.eN()],QI);_.Ob=[_.Jy,_.zm,QI.prototype];var Gm=function(){var k=_.mi.apply(this,arguments)||this;k.disableGridStateAware=!1;k.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};k.currentGridClass="";return k};
_.y(Gm,_.mi);Gm.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.JB(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var k=this.gridStateAwareGetElement();_.E_(k,"grid",!0)}};
Gm.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Gm.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Cc(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Gm.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var k="grid-disabled";else{k=_.eM.getInstance();var E=this.get("pageSubtype");k=E&&bEC.includes(E)?"grid-disabled":k.currentSnapState_?k.currentSnapState_.className:null}(E=this.gridStateAwareGetElement())&&k!==this.currentGridClass&&(k&&_.E_(E,k,!0),this.currentGridClass&&_.E_(E,this.currentGridClass,!1),this.currentGridClass=k)};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Gm.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",String)],Gm.prototype,"gridStateAwareSizingElementSelector",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gm.prototype,"disableGridStateAware",void 0);_.Z([_.eN()],Gm);_.CX=[Gm.prototype,_.H5.YtActionHandlerBehavior];_.kg=new _.QE("GUIDE_TOKEN");var Sf;_.Ez={};Sf=function(){var k=_.mi.apply(this,arguments)||this;k.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 k};
_.y(Sf,_.mi);_.I=Sf.prototype;_.I.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.I.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var k=_.en().resolve(_.mz(_.kg));k&&(this.guidePersistentAndVisible=k.getGuidePersistentAndVisible(),this.activeEndpoint=k.getActiveEndpoint(),this.guideOpened=k.getGuideOpened(),this.miniGuideVisible=k.getMiniGuideVisible())};
_.I.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.I.handleGuideStateAction=function(k){this.guidePersistentAndVisible=k};
_.I.handleMiniGuideStateAction=function(k){this.miniGuideVisible=k};
_.I.handleGuideOpenedAction=function(k){this.guideOpened=k};
_.I.handleActiveEndpointAction=function(k){this.activeEndpoint=k};
Sf.prototype.onActiveEndpointChange=Sf.prototype.onActiveEndpointChange;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Sf.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Sf.prototype,"guidePersistentAndVisible",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Sf.prototype,"miniGuideVisible",void 0);_.Z([_.H(),_.l("design:type",Object)],Sf.prototype,"activeEndpoint",void 0);
_.Z([_.il("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Sf.prototype,"onActiveEndpointChange",null);_.Z([_.H(),_.l("design:type",Boolean)],Sf.prototype,"guideOpened",void 0);_.Z([_.eN()],Sf);_.Ez.YtdGuideStateAwareBehavior=[];_.Ez.YtdGuideStateAwareBehavior.push(Sf.prototype,_.H5.YtActionHandlerBehavior);var kdT=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],RQ=function(){var k=_.mi.apply(this,arguments)||this;k.hoverJobId=0;k.JSC$14476_touched=!1;return k};
_.y(RQ,_.mi);_.I=RQ.prototype;_.I.created=function(){this.useExpandableTooltip=!kdT.includes(this.is)};
_.I.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.I.detached=function(){this.useExpandableTooltip=!1};
_.I.lockupOnDown=function(k){this.interactionElement&&!_.v9(_.vT(k),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.I.lockupOnUp=function(k){this.interactionElement&&!_.v9(_.vT(k),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.I.onTouchStart=function(){this.JSC$14476_touched=!0};
_.I.lockupOnMouseEnter=function(){var k=this,E=_.wO("kevlar_lockup_hover_delay",-1);this.JSC$14476_touched&&E>=0?(_.ZJ.cancelJob(this.hoverJobId),this.hoverJobId=_.ZJ.addJob(function(){k.lockupIsHovered=!0},8,E),this.JSC$14476_touched=!1):this.lockupIsHovered=!0};
_.I.lockupOnMouseLeave=function(){this.hoverJobId&&(_.ZJ.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.I.lockupOnPopupClosed=function(k,E){var S;((S=E.popupRenderer)==null?void 0:S.is)==="ytd-menu-popup-renderer"&&(k=E.popupRenderer.veData,E=_.Fe(),k&&E&&_.jd(E,[k]))};
_.I.lockupOnLockupRequested=function(k){var E=k.detail.videoIds[0],S;k.detail&&E===((S=this.data)==null?void 0:S.videoId)&&(k.detail.returnValue=[this.data])};
_.I.lockupOnYtServiceRequestSent=function(k,E){if(k=E.actions)for(var S=0;S<k.length;S++){var R=k[S];if(R.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&E.ajaxPromise){var V=void 0,N=(V=_.W(E.endpoint,_.vF))==null?void 0:V.playlistId;V=void 0;R=(V=R.removedVideoId)!=null?V:"";eOY(_.kN(),R,N)}else R.action==="ACTION_REMOVE_VIDEO"&&E.ajaxPromise&&(N=void 0,R=(N=R.setVideoId)!=null?N:"",_.ap4(_.kN(),R))}};
_.I.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.I.lockupOnLockupEnabled=function(){if(!this.$){var k=_.en().resolve(_.ZD).getCurrentPage(),E=this.getParentRenderer?this.getParentRenderer():void 0;_.dg(new _.LC("component not ready",this.is,this.isAttached,k==null?void 0:k.is,E==null?void 0:E.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
RQ.prototype.lockupOnLockupEnabled=RQ.prototype.lockupOnLockupEnabled;RQ.prototype.lockupOnLockupDisabled=RQ.prototype.lockupOnLockupDisabled;RQ.prototype.lockupOnYtServiceRequestSent=RQ.prototype.lockupOnYtServiceRequestSent;RQ.prototype.lockupOnLockupRequested=RQ.prototype.lockupOnLockupRequested;RQ.prototype.lockupOnPopupClosed=RQ.prototype.lockupOnPopupClosed;RQ.prototype.lockupOnMouseLeave=RQ.prototype.lockupOnMouseLeave;RQ.prototype.lockupOnMouseEnter=RQ.prototype.lockupOnMouseEnter;
RQ.prototype.onTouchStart=RQ.prototype.onTouchStart;RQ.prototype.lockupOnUp=RQ.prototype.lockupOnUp;RQ.prototype.lockupOnDown=RQ.prototype.lockupOnDown;_.Z([_.H(),_.l("design:type",Object)],RQ.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],RQ.prototype,"lockupIsHovered",void 0);_.Z([_.H(),_.l("design:type",Boolean)],RQ.prototype,"lockupTouchTriggered",void 0);_.Z([_.H(),_.l("design:type",Boolean)],RQ.prototype,"useExpandableTooltip",void 0);
_.Z([_.JO("#interaction"),_.l("design:type",Object)],RQ.prototype,"interactionElement",void 0);_.Z([_.nv("down"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],RQ.prototype,"lockupOnDown",null);_.Z([_.nv("up"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],RQ.prototype,"lockupOnUp",null);
_.Z([_.nv("touchstart"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RQ.prototype,"onTouchStart",null);_.Z([_.nv("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RQ.prototype,"lockupOnMouseEnter",null);_.Z([_.nv("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RQ.prototype,"lockupOnMouseLeave",null);
_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],RQ.prototype,"lockupOnPopupClosed",null);_.Z([_.nv("yt-lockup-requested"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],RQ.prototype,"lockupOnLockupRequested",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],RQ.prototype,"lockupOnYtServiceRequestSent",null);_.Z([_.nv("yt-disable-lockup-interaction"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RQ.prototype,"lockupOnLockupDisabled",null);
_.Z([_.nv("yt-enable-lockup-interaction"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RQ.prototype,"lockupOnLockupEnabled",null);_.Z([_.eN()],RQ);_.VD=[RQ.prototype];_.EcA={YtdReduxBehavior:[]};_.EcA.YtdReduxBehavior.push.apply(_.EcA.YtdReduxBehavior,_.zm);var N1=function(){var k=_.mi.apply(this,arguments)||this;k._noAccessors=!0;k.disableNowPlaying=!1;k.disableTooltips=!1;k.useHoveredProperty=!1;k.hovered=!1;k.isThumbnailHovered_=!1;k.addBackground=_.Y("kevlar_thumbnail_bg");k.nowPlaying=!1;k.disableRounding=!1;k.size="small";return k};
_.y(N1,_.mi);_.I=N1.prototype;_.I.computeThumbnailOverlaySidePanelWidth_=function(k,E){return k-E};
_.I.computeSize=function(k,E){if(!this.disableRounding){if(!k&&!E)return"small";k=Math.max(k||0,E||0);return k>=256?"large":k>=96?"medium":"small"}};
_.I.computeFinalHoveredState_=function(k,E,S){return this.nowPlaying?!1:_.Y("kevlar_thumbnail_fluid")&&k?E:S};
_.I.computeHoverOverlays_=function(k,E){return k&&E?E:void 0};
_.I.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.I.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.I.checkMiniplayer_=function(){var k;if(((k=this.data)==null?0:k.playlistSetVideoId)&&_.Y("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{k=_.g_();var E=k.currentEndpoint;!this.disableNowPlaying&&E&&_.W(E,_.jm)&&this.data?(E=_.W(E,_.jm),this.nowPlaying=this.data.playlistId?E.playlistId===this.data.playlistId:E.videoId===this.data.videoId,this.isVideoPlaying=k==null?void 0:k.isVideoPlaying):this.nowPlaying=!1}};
N1.prototype.checkMiniplayer_=N1.prototype.checkMiniplayer_;N1.prototype.onMouseLeave_=N1.prototype.onMouseLeave_;N1.prototype.onMouseEnter_=N1.prototype.onMouseEnter_;N1.prototype.computeHoverOverlays_=N1.prototype.computeHoverOverlays_;N1.prototype.computeFinalHoveredState_=N1.prototype.computeFinalHoveredState_;N1.prototype.computeSize=N1.prototype.computeSize;N1.prototype.computeThumbnailOverlaySidePanelWidth_=N1.prototype.computeThumbnailOverlaySidePanelWidth_;
_.Z([_.g(_.zm),_.l("design:type",Object)],N1.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],N1.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],N1.prototype,"height",void 0);_.Z([_.H(),_.l("design:type",Boolean)],N1.prototype,"bottomSidePanel",void 0);_.Z([_.H(),_.l("design:type",Number)],N1.prototype,"width",void 0);_.Z([_.H(),_.l("design:type",Object)],N1.prototype,"disableNowPlaying",void 0);
_.Z([_.H({selector:_.Ff}),_.l("design:type",Boolean)],N1.prototype,"miniplayerIsActive",void 0);_.Z([_.H(),_.l("design:type",Object)],N1.prototype,"disableTooltips",void 0);_.Z([_.H(),_.l("design:type",Object)],N1.prototype,"useHoveredProperty",void 0);_.Z([_.H(),_.l("design:type",Object)],N1.prototype,"hovered",void 0);_.Z([_.H(),_.l("design:type",Object)],N1.prototype,"isThumbnailHovered_",void 0);
_.Z([_.H({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.l("design:type",Boolean)],N1.prototype,"finalHoveredState_",void 0);_.Z([_.H({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.l("design:type",Number)],N1.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],N1.prototype,"addBackground",void 0);
_.Z([_.H({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.l("design:type",Object)],N1.prototype,"hoverOverlays_",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],N1.prototype,"nowPlaying",void 0);_.Z([_.H(),_.l("design:type",Boolean)],N1.prototype,"isVideoPlaying",void 0);_.Z([_.H(),_.l("design:type",Object)],N1.prototype,"disableRounding",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.l("design:type",Object)],N1.prototype,"size",void 0);_.Z([_.nv("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N1.prototype,"onMouseEnter_",null);_.Z([_.nv("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N1.prototype,"onMouseLeave_",null);
_.Z([_.il("data","disableNowPlaying","miniplayerIsActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N1.prototype,"checkMiniplayer_",null);_.Z([_.eN()],N1);var SHp=[N1.prototype];_.IQ={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(k,E){return k+":"+_.Oj(E)},
getPlayerListener_:function(k,E,S){k=this.getPlayerListenerKey_(k,E);E=this.playerListeners_.get(k);S&&this.playerListeners_.delete(k);return E},
savePlayerListener_:function(k,E){var S=E.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(k,E),S);return S},
listenToPlayerEvent:function(k,E,S){S=this.savePlayerListener_(E,S);k.addEventListener(E,S)},
listenToPlayerEvents:function(k,E){E.forEach(function(S,R){this.listenToPlayerEvent(k,R,S)}.bind(this))},
unlistenFromPlayerEvent:function(k,E,S){S=this.getPlayerListener_(E,S,!0);k.removeEventListener(E,S)},
unlistenFromPlayerEvents:function(k,E){E.forEach(function(S,R){this.unlistenFromPlayerEvent(k,R,S)}.bind(this))}}};
_.n6=function(){};_.RNY=new _.QE("PLAYER_API_TOKEN");var lc1=!1,QDI,qqe=!1,GWI;var qJ=function(k,E,S,R,V){_.r7.call(this);var N=this;this.playerId=E;this.webPlayerContextConfig=R;this.jYM=V;this.uh2=!1;this.api={};this.lfU=this.fb4=null;this.iBh=new _.H_;this.rT={};this.xLx=this.c23=this.elementId=this.y12=this.config=null;this.yAa=!1;this.rW=this.jZA=null;this.wFJ={};this.eUY=["onReady"];this.lastError=null;this.oM4=NaN;this.e2n={};this.r8x=0;this.tA=this.targetElement=k;_.Wy(this,this.iBh);VJp(this);S?this.r8x=setTimeout(function(){N.loadNewVideoConfig(S)},0):R&&(N5C(this),
IA8(this))};
_.y(qJ,_.r7);qJ.prototype.getId=function(){return this.playerId};
qJ.prototype.loadNewVideoConfig=function(k){if(!this.isDisposed()){this.r8x&&(clearTimeout(this.r8x),this.r8x=0);var E=k||{};E instanceof Yhp||(E=new Yhp(E));this.config=E;this.setConfig(k);IA8(this);this.isReady()&&ncd(this)}};
var N5C=function(k){var E;k.webPlayerContextConfig?E=k.webPlayerContextConfig.rootElementId:E=k.config.attrs.id;k.elementId=E||k.elementId;k.elementId==="video-player"&&(k.elementId=k.playerId,k.webPlayerContextConfig?k.webPlayerContextConfig.rootElementId=k.playerId:k.config.attrs.id=k.playerId);var S;((S=k.tA)==null?void 0:S.id)===k.elementId&&(k.elementId+="-player",k.webPlayerContextConfig?k.webPlayerContextConfig.rootElementId=k.elementId:k.config.attrs.id=k.elementId)};
qJ.prototype.setConfig=function(k){this.y12=k;this.config=ipY(k);N5C(this);if(!this.c23){var E;this.c23=hNj(this,((E=this.config.args)==null?void 0:E.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var S;if((S=this.config)==null?0:S.attrs)k=this.config.attrs,(E=k.width)&&this.tA&&(this.tA.style.width=Aa(Number(E)||E,!0)),(k=k.height)&&this.tA&&(this.tA.style.height=Aa(Number(k)||k,!0))};
qJ.prototype.getConfig=function(){return this.y12};
var ncd=function(k){if(k.config&&k.config.loaded!==!0)if(k.config.loaded=!0,!k.config.args||k.config.args.autoplay!=="0"&&k.config.args.autoplay!==0&&k.config.args.autoplay!==!1){var E;k.api.loadVideoByPlayerVars((E=k.config.args)!=null?E:null)}else k.api.cueVideoByPlayerVars(k.config.args)},ceY=function(k){var E=!0,S=k.getPlayerElement();
S&&k.config&&(E=S.dataset.version===JeC(k));return E&&!!_.CV("yt.player.Application.create")},IA8=function(k){if(!k.isDisposed()&&!k.yAa){var E=ceY(k);
if(E&&(k.getPlayerElement()?"html5":null)==="html5")k.xLx="html5",k.isReady()||mKA(k);else if(eNj(k),k.xLx="html5",E&&k.rW&&k.targetElement)k.targetElement.appendChild(k.rW),mKA(k);else{k.config&&(k.config.loaded=!0);var S=!1;k.jZA=function(){S=!0;var R=aA5(k,"player_bootstrap_method")?_.CV("yt.player.Application.createAlternate")||_.CV("yt.player.Application.create"):_.CV("yt.player.Application.create");var V=k.config?ipY(k.config):void 0;R&&R(k.targetElement,V,k.webPlayerContextConfig,k.jYM);mKA(k)};
k.yAa=!0;E?k.jZA():(_.KI(JeC(k),k.jZA),(E=tJd(k))&&iKh(E||""),T5d(k)&&!S&&_.J6("yt.player.Application.create",null))}}};
qJ.prototype.getPlayerElement=function(){var k=_.MJ(document,this.elementId);!k&&this.tA&&this.tA.querySelector&&(k=this.tA.querySelector("#"+this.elementId));return k};
var mKA=function(k){if(!k.isDisposed()){var E=k.getPlayerElement(),S=!1;E&&E.getApiInterface&&E.getApiInterface()&&(S=!0);if(S){k.yAa=!1;if(!aA5(k,"html5_remove_not_servable_check_killswitch")){var R;if((E==null?0:E.isNotServable)&&k.config&&(E==null?0:E.isNotServable((R=k.config.args)==null?void 0:R.video_id)))return}w8C(k)}else k.oM4=setTimeout(function(){mKA(k)},50)}},w8C=function(k){VJp(k);
k.uh2=!0;var E=k.getPlayerElement();if(E){k.fb4=PS2(k,E,"addEventListener");k.lfU=PS2(k,E,"removeEventListener");var S=E.getApiInterface();S=S.concat(E.getInternalApiInterface());for(var R=k.api,V=0;V<S.length;V++){var N=S[V];R[N]||(R[N]=PS2(k,E,N))}}for(var h in k.rT)k.rT.hasOwnProperty(h)&&k.fb4&&k.fb4(h,k.rT[h]);ncd(k);k.c23&&k.c23(k.api);k.iBh.publish("onReady",k.api)},PS2=function(k,E,S){var R=E[S];
return function(){var V=_.sX.apply(0,arguments);try{return k.lastError=null,R.apply(E,V)}catch(N){if(S!=="sendAbandonmentPing")throw N.params=S,k.lastError=N,V=new _.LC("PlayerProxy error in method call",{error:N,method:S,playerId:k.playerId}),V.level="WARNING",V;}}},VJp=function(k){k.uh2=!1;
if(k.lfU)for(var E in k.rT)k.rT.hasOwnProperty(E)&&k.lfU(E,k.rT[E]);for(var S in k.e2n)k.e2n.hasOwnProperty(S)&&clearTimeout(Number(S));k.e2n={};k.fb4=null;k.lfU=null;E=k.api;for(var R in E)E.hasOwnProperty(R)&&(E[R]=null);E.addEventListener=function(V,N){k.addEventListener(V,N)};
E.removeEventListener=function(V,N){k.removeEventListener(V,N)};
E.destroy=function(){k.dispose()};
E.getLastError=function(){return k.getLastError()};
E.getPlayerType=function(){return k.getPlayerType()};
E.getCurrentVideoConfig=function(){return k.getConfig()};
E.loadNewVideoConfig=function(V){k.loadNewVideoConfig(V)};
E.isReady=function(){return k.isReady()}};
qJ.prototype.isReady=function(){return this.uh2};
qJ.prototype.addEventListener=function(k,E){var S=this;this.isDisposed();var R=hNj(this,E);R&&(_.bC(this.eUY,k)||this.rT[k]||(E=B5d(this,k),this.fb4&&this.fb4(k,E)),this.iBh.subscribe(k,R),k==="onReady"&&this.isReady()&&setTimeout(function(){R(S.api)},0))};
qJ.prototype.removeEventListener=function(k,E){this.isDisposed()||(E=hNj(this,E))&&this.iBh.unsubscribe(k,E)};
var hNj=function(k,E){var S=E;if(typeof E==="string"){if(k.wFJ[E])return k.wFJ[E];S=function(){var R=_.sX.apply(0,arguments),V=_.CV(E);if(V)try{V.apply(_.Vt,R)}catch(N){throw R=new _.LC("PlayerProxy error when executing callback",{error:N}),R.level="ERROR",R;}};
k.wFJ[E]=S}return S?S:null},B5d=function(k,E){var S=function(R){var V=function(){k.isDisposed();
if(!k.isDisposed())try{k.iBh.publish(E,R!=null?R:void 0)}catch(J){var h=new _.LC("PlayerProxy error when creating global callback",{error:J.message,event:E,playerId:k.playerId,data:R,originalStack:J.stack,componentStack:J.componentStack});h.level="WARNING";throw h;}};
if(aA5(k,"web_player_publish_events_immediately"))V();else{var N=setTimeout(function(){V();_.fO.remove(k.e2n,String(N))},0);
_.fO.add(k.e2n,String(N),!0)}};
return k.rT[E]=S};
qJ.prototype.getPlayerType=function(){return this.xLx||(this.getPlayerElement()?"html5":null)};
qJ.prototype.getLastError=function(){return this.lastError};
var eNj=function(k){k.cancel();VJp(k);k.xLx=null;k.config&&(k.config.loaded=!1);var E=k.getPlayerElement();E&&(ceY(k)||!T5d(k)?k.rW=E:(E&&E.destroy&&E.destroy(),k.rW=null));k.targetElement&&_.of(k.targetElement)};
qJ.prototype.cancel=function(){this.jZA&&_.joh(JeC(this),this.jZA);clearTimeout(this.oM4);this.yAa=!1};
qJ.prototype.disposeInternal=function(){eNj(this);if(this.rW&&this.config&&this.rW.destroy)try{this.rW.destroy()}catch(E){var k=new _.LC("PlayerProxy error during disposal",{error:E});k.level="ERROR";throw k;}this.wFJ=null;for(k in this.rT)this.rT.hasOwnProperty(k)&&delete this.rT[k];this.y12=this.config=this.api=null;delete this.targetElement;delete this.tA;_.r7.prototype.disposeInternal.call(this)};
var T5d=function(k){var E,S;k=(E=k.config)==null?void 0:(S=E.args)==null?void 0:S.fflags;return!!k&&k.indexOf("player_destroy_old_version=true")!==-1},JeC=function(k){return k.webPlayerContextConfig?k.webPlayerContextConfig.jsUrl:(k=k.config.assets)?k.js:""},tJd=function(k){return k.webPlayerContextConfig?k.webPlayerContextConfig.cssUrl:(k=k.config.assets)?k.css:""},aA5=function(k,E){if(k.webPlayerContextConfig)var S=k.webPlayerContextConfig.serializedExperimentFlags;
else{var R;if((R=k.config)==null?0:R.args)S=k.config.args.fflags}return(S||"").split("&").includes(E+"=true")},ipY=function(k){for(var E={},S=_.n(Object.keys(k)),R=S.next();!R.done;R=S.next()){R=R.value;
var V=k[R];E[R]=typeof V==="object"?_.fO.clone(V):V}return E};var R9l={},S$m="player_uid_"+(Math.random()*1E9>>>0);var i6=function(k,E,S,R,V,N){E=E===void 0?document.createElement("div"):E;this.webPlayerContextConfig=k;this.container=E;this.commandResolver=S;this.apiResolver=ILA();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.kl;R||N?YHp(this):WY8(this);this.pendingPlayerResponse=R;this.pendingWatchNextResponse=V;this.pendingPlayerVars=N;FYC(this)};
i6.prototype.loadVideoWithPlayerResponse=function(k,E,S){this.loadVideo(k,E,S)};
i6.prototype.loadVideoWithPlayerVars=function(k){return this.loadVideo(void 0,void 0,k)};
i6.prototype.destroy=function(k){if(k=_.MJ(document,k))k=S$m+"_"+_.Oj(k),(k=R9l[k])&&k.dispose()};
var ocT=function(k,E){var S;_.c(function(R){if(R.nextAddress==1)return k.pendingWatchNextResponse=E,k.synchronousApi?(S=k.synchronousApi,R.jumpTo(2)):R.yield(k.api,3);R.nextAddress!=2&&(S=R.yieldResult);if(!yeC(k,S))return R.return();k.pendingWatchNextResponse&&(S.updateVideoData({raw_watch_next_response:k.pendingWatchNextResponse}),k.pendingWatchNextResponse=void 0);_.KR(R)})},yeC=function(k,E){var S;
if(!(E==null?0:(S=E.isReady)==null?0:S.call(E))){var R;_.dg(new _.LC("playerApi is falsey",{synchronousApi:k.synchronousApi,apiResolved:k.apiResolver.resolved,playerApiUndefined:E===void 0,playerApiNull:E===null,playerApiReady:(E==null?void 0:(R=E.isReady)==null?void 0:R.call(E))===!0,playerApiMethods:E?Object.keys(E):[]}));return!1}return!0},X82=function(k,E){if(typeof k[E]==="function")return k[E]()},gcj=function(k){var E=window,S,R=(S=E.ytplayer)==null?void 0:S.bootstrapPlayerContainer;
if((S=R==null?void 0:R.firstElementChild)&&_.D9(S,"html5-video-player")){var V,N,h=(V=E.ytplayer)==null?void 0:(N=V.bootstrapWebPlayerContextConfig)==null?void 0:N.contextId;V=k.webPlayerContextConfig.contextId;if(h&&h===V){R!==k.container&&(R=!1,X82(S,"getPlayerState")===2&&(R=!0),k.container.appendChild(S),R||X82(S,"playVideo"));var J;if((J=E.ytplayer)==null?0:J.bootstrapPlayerResponse)k.bootstrapPlayerResponse=E.ytplayer.bootstrapPlayerResponse}}},FYC=function(k){var E,S,R,V,N;
_.c(function(h){if(h.nextAddress==1)return k.pageReadyOrDataAvailable?h.jumpTo(2):h.yield(k.pageReadyOrDataAvailableResolver.promise,2);if(h.nextAddress!=4)return!_.Y("kevlar_player_unified_player_loading")||MWj()&&zDe()?h.jumpTo(4):h.yield(kth(),4);gcj(k);if(k.pendingPlayerResponse||k.pendingPlayerVars)E=ELm(k.pendingPlayerResponse,k.pendingWatchNextResponse,k.pendingPlayerVars),k.pendingPlayerResponse&&k.pendingPlayerResponse===k.bootstrapPlayerResponse&&(E.loaded=!0),k.bootstrapPlayerResponse=
void 0;S=NxC(k.container,E,k.webPlayerContextConfig);((R=E)==null?0:R.loaded)&&k.pendingWatchNextResponse?(ocT(k,k.pendingWatchNextResponse),k.pendingPlayerResponse=void 0,k.pendingPlayerVars=void 0):UK4(k);V=function(J){S.removeEventListener("onReady",V);k.synchronousApi=J;k.apiResolver.resolve(J)};
S.addEventListener("onReady",V);k.commandResolver!==void 0&&(N=k.commandResolver,S.addEventListener("innertubeCommand",function(J){N(J)}));
_.KR(h)})};
i6.prototype.loadVideo=function(k,E,S){var R=this,V,N,h,J,m,a,T,w,P;return _.c(function(B){if(B.nextAddress==1)return R.pendingPlayerResponse=k,R.pendingWatchNextResponse=E,R.pendingPlayerVars=S,YHp(R),R.synchronousApi?(V=R.synchronousApi,B.jumpTo(2)):B.yield(R.api,3);B.nextAddress!=2&&(V=B.yieldResult);if(!yeC(R,V))return B.return(new Promise(function(){}));
h=new Promise(function(F){N=F});
J=function(){var F=V.getPlayerResponse();F&&(V.removeEventListener("onVideoDataChange",J),N(F))};
V.addEventListener("onVideoDataChange",J);if(R.pendingPlayerResponse||R.pendingPlayerVars)R.pendingPlayerResponse&&R.pendingPlayerResponse===R.bootstrapPlayerResponse?(N(R.pendingPlayerResponse),R.pendingWatchNextResponse&&ocT(R,R.pendingWatchNextResponse)):(m=ELm(R.pendingPlayerResponse,R.pendingWatchNextResponse,R.pendingPlayerVars),(P=(a=R.pendingPlayerResponse)==null?void 0:(T=a.playerConfig)==null?void 0:(w=T.playbackStartConfig)==null?void 0:w.startPaused)?V.cueVideoByPlayerVars(m.args):V.loadVideoByPlayerVars(m.args)),
UK4(R),R.bootstrapPlayerResponse=void 0;return B.return(h)})};
var WY8=function(k){if(document.readyState==="complete"||document.readyState==="interactive")YHp(k);else{var E=function(){document.removeEventListener("DOMContentLoaded",E);YHp(k)};
document.addEventListener("DOMContentLoaded",E)}},YHp=function(k){k.pageReadyOrDataAvailable=!0;
k.pageReadyOrDataAvailableResolver.resolve()},UK4=function(k){k.pendingPlayerResponse=void 0;
k.pendingWatchNextResponse=void 0;k.pendingPlayerVars=void 0};
_.mt.Object.defineProperties(i6.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var hU=function(k){KY.call(this,k===void 0?"document_active":k);var E=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(S){E.transition("document_disposed",{event:S})});
window.addEventListener("beforeunload",function(S){E.transition("document_disposed_preventable",{event:S})});
window.addEventListener("unload",function(S){E.transition("document_disposed",{event:S});E.hasRun=new Map})};
_.y(hU,KY);
hU.prototype.runPreventableDispose=function(k,E){if(!this.hasRun.get("document_disposed_preventable")){k(E==null?void 0:E.event);var S,R;if((E==null?0:(S=E.event)==null?0:S.defaultPrevented)||(E==null?0:(R=E.event)==null?0:R.returnValue)){E.event.returnValue||(E.event.returnValue=!0);E.event.defaultPrevented||E.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")};
hU.prototype.runDispose=function(k,E){this.hasRun.get("document_disposed")?this.transition("document_active"):(k(E==null?void 0:E.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
hU.prototype.runFlush=function(k,E){k(E==null?void 0:E.event);this.transition("document_active")};
hU.prototype.runActive=function(){};var JU=function(k){KY.call(this,k===void 0?"document_visibility_unknown":k);var E=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(S){document.visibilityState==="visible"?E.transition("document_visible",{event:S}):E.transition("document_hidden",
{event:S})});
_.Y("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(S){E.transition("document_backgrounded",{event:S})}),window.addEventListener("focus",function(S){E.transition("document_foregrounded",{event:S})}))};
_.y(JU,KY);JU.prototype.runVisible=function(k,E){k(E==null?void 0:E.event);_.Y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
JU.prototype.runHidden=function(k,E){k(E==null?void 0:E.event);_.Y("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
JU.prototype.runBackgrounded=function(k,E){k(E==null?void 0:E.event)};
JU.prototype.runForegrounded=function(k,E){k(E==null?void 0:E.event)};var c3=function(){this.teardownLifecycle=new hU;this.visibilityLifecycle=new JU};
c3.prototype.install=function(){var k=_.sX.apply(0,arguments),E=this;k.forEach(function(S){E.teardownLifecycle.install(S)});
k.forEach(function(S){E.visibilityLifecycle.install(S)})};var mw=function(){c3.call(this);var k={};this.install((k.document_disposed={callback:this.abortSlisAndFlush},k));_.Y("combine_ve_grafts")&&(k={},this.install((k.document_disposed={callback:this.flushInteractionLoggingAttachVes},k)));k={};this.install((k.flush_logs={callback:this.logFinalPayload},k));_.Y("web_log_cfg_cee_ks")||_.uM(_.ZJ,HpC)};
_.y(mw,c3);var nLh=function(){mw.loggingInstance||(mw.loggingInstance=new mw);return mw.loggingInstance};
mw.prototype.logFinalPayload=function(){if(_.Y("web_fp_via_jspb")){var k=new aE5,E=_.Fe();E&&_.uh(k,1,E);E=_.Y("jspb_sparse_encoded_pivot")?new rg([{}]):new rg;_.gk(E,380,tid,k);gjR("finalPayload",E);_.Y("web_fp_via_jspb_and_json")&&_.f2("finalPayload",{csn:_.Fe()})}else _.f2("finalPayload",{csn:_.Fe()})};
mw.prototype.abortSlisAndFlush=function(){NuC(Gg);CK!=null&&CK.flush()};
mw.prototype.flushInteractionLoggingAttachVes=function(){o0C(_.JV())};
var HpC=function(){var k=_.Mg("CLIENT_EXPERIMENT_EVENTS");if(k){var E=RAI();k=_.n(k);for(var S=k.next();!S.done;S=k.next())S=S.value,E(S)&&_.f2("genericClientExperimentEvent",{eventType:S});delete _.s4.CLIENT_EXPERIMENT_EVENTS}};var KY4={};
KY4.YtPlayerBehavior=[_.IQ.YtPlayerListenerBehavior,{properties:{watchNextData:{type:Object,observer:"watchNextDataChanged_"},context:{type:String},playerId:{type:String},disableTouchGestures:{type:Boolean}},listeners:{pinchout:"onPinchOut_",pinchin:"onPinchIn_",touchstart:"onTouchStart_"},created:function(){var k=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.kl;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;iAj(function(){k.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Mm(this,"pan-down"),_.Y("kevlar_pinch_fullscreen")&&_.LM().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.Y("kevlar_pinch_fullscreen")&&_.LM().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(k,E,S){var R=this;zZ(this.useUnifiedPlayer_());if(this.mainAppPlayer_)zZ(!1,"MainAppPlayer already created.");else{var V=_.Y("kevlar_player_container_query_killswitch")?this.$.container:_.Cc(this.hostElement).querySelector("#container");this.mainAppPlayer_=new i6(this.getWebPlayerContextConfig_(),V,function(N){return _.Ni(N,R.hostElement)},k,E,S);
this.mainAppPlayer_.api.then(function(N){R.player_=N;R.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&g9C.resolve(N)})}},
loadVideoWithPlayerResponse:function(k,E){var S=this;if(this.useUnifiedPlayer_()){var R=this.watchNextData,V,N=(V=k.videoDetails)==null?void 0:V.videoId,h,J,m;(V=(h=this.watchNextData)==null?void 0:(J=h.currentVideoEndpoint)==null?void 0:(m=J.watchEndpoint)==null?void 0:m.videoId)&&N!=V&&(R=void 0,_.Y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(k,R,E):this.createMainAppPlayer_(k,R,E);this.mainAppPlayer_.api.then(function(){_.Me(S.hostElement,
"yt-player-updated")})}else this.update(Z0j(k,E))},
loadVideoWithPlayerVars:function(k){var E=this;this.useUnifiedPlayer_()?(_.Y("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(k):this.createMainAppPlayer_(void 0,void 0,k),this.mainAppPlayer_.api.then(function(){_.Me(E.hostElement,"yt-player-updated")})):this.update({args:k})},
update:function(k){var E=this;if(this.useUnifiedPlayer_())zZ(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(k);var S=lTt(k.args);S&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==S&&Object.assign(k.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(k).then(function(R){_.Me(E.hostElement,"yt-player-updated",_.Y("kevlar_player_updated_obsolete_player_killswitch")?
R:void 0)})}_.Zd(new _.LC("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(E.getPlayerPromise(),2);S=R.yieldResult;if(!S)throw Error("Ch");k&&E.updatePlayerPlaylist_(k);_.KR(R)})},
acquireApi_:function(k){var E=this;if(this.useUnifiedPlayer_())zZ(!1,"Invalid method call in kevlar_unified_player.");else return _.ZJ.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(zZ(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(S){E.shouldAutoplay_(k)?S.loadVideoByPlayerVars(k.args):S.cueVideoByPlayerVars(k.args)})):this.initPlayerPromise_=this.initPlayerContainer_(k),this.initPlayerPromise_},
initPlayerContainer_:function(k){var E=this;if(this.useUnifiedPlayer_())zZ(!1,"Invalid method call in kevlar_unified_player.");else return zZ(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.dg(Error("Dh")),zZ(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.Y("kevlar_player_container_query_killswitch")?this.$.container:_.Cc(this.hostElement).querySelector("#container"),kth().then(function(){var S=E.initPlayer_(k);E.playerResolver_.resolve(S);
return S})},
onPlayerReady_:function(k,E){this.useUnifiedPlayer_()?zZ(!1,"Invalid method call in kevlar_unified_player."):(k.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&g9C.resolve(k),E(k))},
maybeCallApiMethodOnElement_:function(k,E){if(typeof k[E]==="function")return k[E]()},
maybeAdoptBootstrapPlayer_:function(){var k=window,E,S=(E=k.ytplayer)==null?void 0:E.bootstrapPlayerContainer;if((E=S==null?void 0:S.firstElementChild)&&E.classList.contains("html5-video-player")){var R,V,N=(R=k.ytplayer)==null?void 0:(V=R.bootstrapWebPlayerContextConfig)==null?void 0:V.contextId;R=this.getWebPlayerContextConfig_().contextId;if(N&&N===R){S!==this.playerContainer_&&(S=!1,this.maybeCallApiMethodOnElement_(E,"getPlayerState")===2&&(S=!0),this.playerContainer_.appendChild(E),S||this.maybeCallApiMethodOnElement_(E,
"playVideo"));var h;if((h=k.ytplayer)==null?0:h.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=k.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(k){var E=this;if(this.useUnifiedPlayer_())zZ(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(S){E.maybeAdoptBootstrapPlayer_();var R=k?dSl(k):void 0;R&&R==E.bootstrapPlayerResponse_&&(k.loaded=!0);R=E.playerContainer_;var V=E.getWebPlayerContextConfig_();R=NxC(R,k,V);E.player_=R;E.onPlayerReadyEvent_=E.onPlayerReady_.bind(E,E.player_,S);E.player_.addEventListener("onReady",E.onPlayerReadyEvent_);E.player_.addEventListener("innertubeCommand",
E.onPlayerInnerTubeCommand_.bind(E))})},
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(k){k.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(k){k.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var k=_.en().resolve(_.ZD).getCurrentPage();k&&k.getScrollTop()<=0?_.Mm(this,"pan-down"):_.Mm(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(k){k.isFullscreen()||k.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(k){k.isFullscreen()&&k.toggleFullscreen()})},
updatePlayerPlaylist_:function(k){var E=this,S,R,V;return _.c(function(N){if(N.nextAddress==1)return S=_.en().resolve(_.mz(_.z7)),R=!!(S&&S.playlistComponent&&S.playlistComponent.loopOn),N.yield(E.getPlayerPromise(),2);var h=V=N.yieldResult,J=h.updatePlaylist,m=[];if(_.Y("kevlar_player_playlist_use_local_index")){var a,T;var w=(T=(a=k.localCurrentIndex)!=null?a:k.currentIndex)!=null?T:0}else{var P;w=(P=k.currentIndex)!=null?P:0}if(k.contents)for(a=0;a<k.contents.length;a++)if((T=k.contents[a])&&T.playlistPanelVideoRenderer)if(lVj(T)){T=
T.playlistPanelVideoRenderer;P="";T.shortBylineText&&(P=_.$n(T.shortBylineText));var B="";T.title?B=_.$n(T.title):T.unplayableText&&(B=_.$n(T.unplayableText));m.push({author:P,title:B,encrypted_id:T.videoId})}else a<w&&--w;J.call(h,{index:w,list:k.playlistId?k.playlistId:"",loop:R,playlist_title:k.title,playlist_length:m.length,video:m,fetch:0,external_list:"1",title:k.title?k.title:"",playlist_author:k.ownerName?_.$n(k.ownerName):void 0});_.KR(N)})},
focusOnPlayer:function(){_.JB(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var k=this.playerContainer_.querySelector(".html5-video-player");k&&(_.ef(_.en().resolve(_.eQ)),k.focus())}})},
preparePlayer:function(){var k=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(E){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")E();else{var S=function(){document.removeEventListener("DOMContentLoaded",S);E()};
document.addEventListener("DOMContentLoaded",S)}})).then(function(){return kth()}).then(function(){k.initPlayerPromise_||k.preparePlayerJobId_||(k.preparePlayerJobId_=_.uM(_.ZJ,function(){k.initPlayerPromise_||(k.initPlayerPromise_=k.initPlayerContainer_())}))}):_.Zd(new _.LC("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(k){this.useUnifiedPlayer_()?zZ(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(k)||(k.args.autoplay="0")},
shouldAutoplay_:function(k){if(this.useUnifiedPlayer_())zZ(!1,"Invalid method call in kevlar_unified_player.");else{var E=this.get("args.el",k);return E&&E!="detailpage"&&this.isMiniplayerActive_()||E&&(E=="sponsorshipsoffer"||E=="handlesclaiming")&&this.get("args.autoplay",k)=="0"?!1:(k=dSl(k))&&this.get("playerConfig.playbackStartConfig.startPaused",k)?!1:!0}},
isMiniplayerActive_:function(){return _.en().resolve(_.yb).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var k=this.getPlayer();if(k){var E=k.getPlayerState();_.Y("kevlar_player_check_ad_state_on_stop")&&(E=k.getPlayerState(k.getPresentingPlayerType()));E!=5&&k.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(k,E,S){S=S===void 0?!1:S;var R=this,V,N,h,J;return _.c(function(m){if(m.nextAddress==1)return E||(E=R.hostElement),V=R.useUnifiedPlayer_()?!!R.mainAppPlayer_:!!R.initPlayerPromise_,V?m.yield(R.getPlayerPromise(),2):(S?k.insertBefore(E,k.firstChild):k.appendChild(E),m.return());N=m.yieldResult;h=N.getPlayerState(N.getPresentingPlayerType());J=!1;if(h==-1||h==1||h==3)J=!0;S?k.insertBefore(E,k.firstChild):k.appendChild(E);J&&N.playVideo();N.setSize(NaN,NaN);_.KR(m)})},
watchNextDataChanged_:function(k){var E=this;k&&(this.useUnifiedPlayer_()&&_.Y("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&ocT(this.mainAppPlayer_,k):this.getPlayerPromise().then(function(S){S.updateVideoData(E.computeWatchNextPlayerVars_(k))}))},
computeWatchNextPlayerVars_:function(k){if(this.useUnifiedPlayer_()&&_.Y("kevlar_unified_player_update_watch_next_killswitch"))zZ(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:k}},
maybeSendAbandonmentPing_:function(){var k=this.getPlayer();k&&k.getPlayerState()!=5&&k.getPlayerState()!=0&&k.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var k=_.Mg("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(k=Object.assign({},k),k.rootElementId=this.playerId);k.serializedExperimentIds&&k.serializedExperimentFlags||_.dg(Error("Eh"));return k},
hasWebPlayerContextConfig_:function(){return!!_.Mg("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(k){this.useUnifiedPlayer_()?zZ(!1,"Invalid method call in kevlar_unified_player."):_.Ni(k,this.hostElement)},
useUnifiedPlayer_:function(){var k=_.Y("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.Y("kevlar_unified_player")||k}}];var p85={};p85.YtPlaylistPanelBehavior=[_.O.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(k){k=k.detail;if(k.actions.loop!=void 0||k.actions["yt-icons:loop"]!=void 0)this.loopOn=k.actions.loop||k.actions["yt-icons:loop"];if(k.actions.shuffle!=void 0||k.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=k.actions.shuffle||k.actions["yt-icons:shuffle"]},
setMenuData_:function(k){if(!k||!k.playlistButtons||k.isInfinite)return null;for(var E=k.playlistButtons.menuRenderer.topLevelButtons,S=E.length,R=0;R<S;R++)if(E[R].toggleButtonRenderer){var V=E[R].toggleButtonRenderer;V.defaultIcon.iconType=="LOOP"&&this.loopOn?V.isToggled=this.loopOn:V.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(V.isToggled=this.shuffleOn)}return k.playlistButtons}}];var Aej=function(k){YF.call(this,k,132);this.isDocument=k===document.documentElement};
_.y(Aej,YF);Aej.prototype.calculateScrollDelta=function(k,E,S){var R=0;k<E?R=k<E-100?-48:-8:k>E+S&&(R=k>E+S+100?48:8);return R};
Aej.prototype.JSC$11391_onMouseMove=function(k){this.isDocument||(k.clientX=k.event_.pageX,k.clientY=k.event_.pageY);YF.prototype.JSC$11391_onMouseMove.call(this,k)};var aQ=function(){var k=_.mi.apply(this,arguments)||this;k._noAccessors=!0;k.scrollElement=document.documentElement;k.JSC$14535_dragListGroup=null;k.dragScrollSupport=null;k.onDraggerCreated=function(E){var S=E.JSC$11387_dragger;S.scrollTarget_=k.scrollElement;E=E.draggerEl;S&&E.menuOpened&&S.setEnabled(!1)};
k.onDragStart=function(E){var S=E.draggerEl;E=E.currDragItem;var R=Object.assign({},E==null?void 0:E.data);R.trackingParams=void 0;S.data=R;S.style.position="absolute";S.style.width=(E==null?void 0:E.clientWidth)+"px";S.style.zIndex="2030";S.onDrag&&S.onDrag();E=_.dT(S);(R=E.querySelector("ytd-app"))?_.Cc(R).appendChild(S):E.body.appendChild(S);k.dragScrollSupport=new Aej(k.scrollElement);k.dragScrollSupport.horizontalScrolling_=!1;S=k.dragScrollSupport;S.constrainScroll_=!!S.margin_&&!1};
k.onDrop=function(E){k.handleDrop(E);k.dragScrollSupport&&(_.nu(k.dragScrollSupport),k.dragScrollSupport=null)};
k.onReorderableScroll=function(){if(k.JSC$14535_dragListGroup){var E=k.JSC$14535_dragListGroup;tQC(E,E.currDragItem_)}};
return k};
_.y(aQ,_.mi);aQ.prototype.detached=function(){_.red(this)};
_.red=function(k){k.JSC$14535_dragListGroup&&(_.TA(k.JSC$14535_dragListGroup,ID8,k.onDragStart),_.TA(k.JSC$14535_dragListGroup,Jb4,k.onDragStart),k.JSC$14535_dragListGroup.dispose(),k.JSC$14535_dragListGroup=null);k.dragScrollSupport&&(_.nu(k.dragScrollSupport),k.dragScrollSupport=null);k.scrollElement.removeEventListener("scroll",k.onReorderableScroll)};
_.uZY=function(k,E,S,R){R=R===void 0?"":R;_.red(k);S&&(k.scrollElement=S);k.JSC$14535_dragListGroup=new jG;k.JSC$14535_dragListGroup.hysteresisDistance_=2;mJY(k.JSC$14535_dragListGroup,E);k.JSC$14535_dragListGroup.draggerElClasses_=eh("dragging").split(" ");R&&e85(k.JSC$14535_dragListGroup,function(V){var N=V||document,h=null;N.getElementsByClassName?h=N.getElementsByClassName(R)[0]:h=sbY("*",R,V);return h||V});
_.wX(k.JSC$14535_dragListGroup,VQz,k.onDraggerCreated);_.wX(k.JSC$14535_dragListGroup,ID8,k.onDragStart);_.wX(k.JSC$14535_dragListGroup,Jb4,k.onDrop);k.JSC$14535_dragListGroup.init();k.scrollElement.addEventListener("scroll",k.onReorderableScroll,{passive:!0})};
aQ.prototype.handleDrop=function(){};
_.mt.Object.defineProperties(aQ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.Z([_.H({value:100}),_.l("design:type",Number)],aQ.prototype,"scrollMargin",void 0);_.Z([_.eN()],aQ);_.xKC=[aQ.prototype];_.tU={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(k,E,S){var R=this.getClickTarget_(E);if(R&&this.isClickAllowed_(R)){E.preventDefault();k=(0,_.fO.unsafeClone)(k);var V=this.getContainerBoundingRect();E=this.getRelativeClickXy_(E,V);this.expandEndpointUrlMacros_(k,{NX:E[0],NY:E[1],NB:R.code});S&&this.truncateWebCommendMetadataUrl_(k);_.Me(this.hostElement,"yt-navigate",{endpoint:k})}},
getClickTarget_:function(k){if(!this.clickTargetMap)return null;k=_.vT(k)||[];k=_.n(k);for(var E=k.next();!E.done;E=k.next()){E=E.value;if(E===_.Cc(this.hostElement).querySelector("#menu"))break;if(E=this.clickTargetMap.get(E.id))return E}return null},
getRelativeClickXy_:function(k,E){var S=Math.round(k.detail.x-E.left);k=Math.round(k.detail.y-E.top);return S<0||k<0?[null,null]:[S,k]},
getContainerBoundingRect:function(){return _.Cc(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(k,E){for(var S=_.n(k.loggingUrls||[]),R=S.next();!R.done;R=S.next())R=R.value,R.baseUrl&&(R.baseUrl=ewl(R.baseUrl,E));k.urlEndpoint&&k.urlEndpoint.url&&(k.urlEndpoint.url=ewl(k.urlEndpoint.url,E));k.commandMetadata&&k.commandMetadata.webCommandMetadata&&k.commandMetadata.webCommandMetadata.url&&(k.commandMetadata.webCommandMetadata.url=ewl(k.commandMetadata.webCommandMetadata.url,E))},
truncateWebCommendMetadataUrl_:function(k){if(k.commandMetadata&&k.commandMetadata.webCommandMetadata&&k.commandMetadata.webCommandMetadata.url){var E=k.commandMetadata.webCommandMetadata.url,S=E.indexOf("&pp=");if(S>0){var R=E.indexOf("&",S+1);k.commandMetadata.webCommandMetadata.url=R>S&&R<E.length?E.slice(0,S)+E.slice(R):E.slice(0,S)}}},
configureClickTargets:function(k,E,S){this.containerId=k;this.clickTargetMap=new Map;k=_.n(E);for(E=k.next();!E.done;E=k.next())if(E=E.value,E.location){var R=S.get(E.location);R&&(_.E_(_.Cc(this.hostElement).querySelector("#"+R),"yt-simple-endpoint",this.isClickAllowed_(E)),this.clickTargetMap.set(R,E))}},
isClickAllowed_:function(k){return k.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||k.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||k.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||k.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.TF={};
_.TF.YtLazyListBehavior=[_.Jr.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 k=(this.constructor.generatedFrom||this).observers;k||(k=[]);k.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
k}},
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 k=this.renderElementsOutsideVisibleArea_;k&&(uHA(k,4),k.processSignal())},
deepLazyListObserver_:function(k){var E=this;if(k){var S=k.value||[];if(this.itemsPath==k.path){var R=this.nonDeferredItemCount;k=0;R>-1&&S.length>R&&(k=_.Mg("REMAINING_DOVA_DEFERRED_CHUNKS",-1));k>0?(R>0&&(R=S.slice(0,R),this.setInitialItemsOnDataChanged(R)),(R=this.renderElementsOutsideVisibleArea_)?R.cancel():(R=this.renderElementsOutsideVisibleArea_=new _.my(2,"eocs"),_.TXi(window,"scroll",function(){return E.renderDeferredElements()})),_.e6(R,function(){E.setInitialItemsOnDataChanged(S)}),_.l$("REMAINING_DOVA_DEFERRED_CHUNKS",
k-1)):this.setInitialItemsOnDataChanged(S)}else if(this.itemsPath+".splices"==k.path)this.onItemsUpdated_(S);
else R="shownItems"+k.path.substr(this.itemsPath.length),this.useSignals&&R==="shownItems.length"||this.notifyPath(R,k.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(k){k&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(k),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(k){k=k.indexSplices;for(var E=0,S=k.length;E<S;E++){var R=k[E];if(R.index<this.shownCount&&(R.removed&&this.splice("shownItems",R.index,R.removed.length),R.addedCount)){var V=R.object.slice(R.index,R.index+R.addedCount);R=["shownItems",R.index,0];R.push.apply(R,V);this.splice.apply(this,R)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(k){this.cancelPendingTasks_();k||(k=[]);this.items_=k;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&&(_.qg("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.JB(this,this.tryRenderChunk_)))},
fillRange_:function(k,E){this.canShowMore&&this.items_&&(k=this.items_.slice(k,E),k.unshift("shownItems"),this.push.apply(this,k),this.shownCount=E,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var k=this;this.canShowMore&&_.Lv(this,"renderChunk",function(){k.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.qg("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.aE(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var k=this.renderElementsOutsideVisibleArea_;k&&(k.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var k=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(k-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=k;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(k){return Math.ceil(1E3/k)},
onCanShowMoreUpdated_:function(k){this.data&&this.items_!==null&&(k?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(k){!this.shouldUseTaskManager()&&this.data&&(!k&&this.canShowMore?(_.XjC(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):k&&this.partiallyRenderedItems_.has(this.items_)&&(_.Y("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var B3;_.wR={};
B3=function(){var k=_.mi.apply(this,arguments)||this;k.atStart=!0;k.atEnd=!0;k.startIndex=0;k.endIndex=0;k.scrollCount=0;k.initialStartIndex=0;k.disableScrollEventListener=!1;k.useFloorScrolling=!1;k.isSearch=!1;k.dragging=!1;k.dragMouseStart=0;k.dragOffsetStart=0;k.disableWheelScroll=!1;k.centerListItems=!1;k.offset=0;k.minComponentWidth=0;k.marginWidthRight=0;k.marginWidthLeft=0;k.setButtonsStateRequested=!1;k.itemsVisibilityObserver=null;k.fullyVisibleItemsIndices=[];k.JSC$14545_onWheelScroll=function(E){if(k.isSearch&&
!k.disableWheelScroll&&_.Y("desktop_enable_dmpanel_wheel_scroll")){var S=E.shiftKey?Math.abs(E.deltaY)>Math.abs(E.deltaX)?E.deltaY:E.deltaX:E.deltaX;S!==0&&(E.preventDefault(),k.ytLazyListBehavior.fillRemainingListItems(),k.offset+=S,P3(k),k.reposition_())}};
k.onPointerDown=function(E){LY2(k)&&(k.dragMouseStart=E.clientX,k.dragOffsetStart=k.offset,k.dragging=!0)};
k.onPointerMove=function(E){LY2(k)&&k.dragging&&(k.ytLazyListBehavior.fillRemainingListItems(),k.offset=k.dragOffsetStart-(E.clientX-k.dragMouseStart),P3(k),k.reposition_())};
k.onPointerUp=function(){LY2(k)&&(k.dragging=!1)};
return k};
_.y(B3,_.mi);var jUT=function(k){var E=_.Cc(k.hostElement).querySelector("#items").children;if(!E)return 0;var S=0;k=_.n(k.fullyVisibleItemsIndices);for(var R=k.next();!R.done;R=k.next())S+=E[R.value].clientWidth;return S},LY2=function(k){return k.isSearch&&_.Y("desktop_enable_dmpanel_click_drag_scroll")};
B3.prototype.created=function(){this.cachedViewportWidth=_.Mg("initialInnerWidth")||window.innerWidth;this.JSC$14545_cachedViewportHeight=_.Mg("initialInnerHeight")||window.innerHeight;_.Mg("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.l$("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
B3.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Y("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();DKd(this)};
B3.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.Y("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var k;(k=this.itemsVisibilityObserver)==null||k.disconnect();this.itemsVisibilityObserver=null;var E;(E=this.itemsObserver)==null||E.disconnect()};
var DKd=function(k){var E=_.Cc(k.hostElement).querySelector("#scroll-container");if(E){if(!k.itemsVisibilityObserver){var S=window.getComputedStyle(E).marginRight;k.itemsVisibilityObserver=new IntersectionObserver(function(R){$K2(k,R)},{root:E,
rootMargin:S,threshold:.98})}if(E=_.Cc(k.hostElement).querySelector("#items"))k.itemsObserver=new scd(E,function(R){fAj(k,R)})}},fAj=function(k,E){vcd(k)&&(Array.from(E.addedNodes).filter(function(S){return S.nodeType===Node.ELEMENT_NODE}).forEach(function(S){k.itemsVisibilityObserver&&k.itemsVisibilityObserver.observe(S)}),Array.from(E.removedNodes).filter(function(S){return S.nodeType===Node.ELEMENT_NODE}).forEach(function(S){k.itemsVisibilityObserver&&k.itemsVisibilityObserver.unobserve(S)}))},
$K2=function(k,E){var S=new Set(k.fullyVisibleItemsIndices);
E=_.n(E);for(var R=E.next();!R.done;R=E.next()){R=R.value;var V=R.target.parentElement;V?(V=Array.from(V.children).indexOf(R.target),R.isIntersecting?S.add(V):S.has(V)&&S.delete(V)):_.dg(new _.LC("Parent element not found",R.target.nodeName))}k.fullyVisibleItemsIndices=Array.from(S).sort(function(N,h){return N-h});
S.size===0?_.dg(new _.LC("No visible entries in horizontal list")):(k.startIndex=k.fullyVisibleItemsIndices[0],k.endIndex=k.fullyVisibleItemsIndices[k.fullyVisibleItemsIndices.length-1])},vcd=function(k){k.data?k=(k=k.data)&&k.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===k.itemSizeConstraint:!1:k=!1;
return k};
_.I=B3.prototype;_.I.addScrollEventListeners=function(){var k=_.Cc(this.hostElement).querySelector("#scroll-container");k.style.touchAction="pan-y";k.addEventListener("wheel",this.JSC$14545_onWheelScroll);k.addEventListener("pointerdown",this.onPointerDown);k.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.I.removeScrollEventListeners=function(){var k=_.Cc(this.hostElement).querySelector("#scroll-container");k.removeEventListener("wheel",this.JSC$14545_onWheelScroll);k.removeEventListener("pointerdown",this.onPointerDown);k.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.I.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.JB(this,this.setStartIndex,[this.initialStartIndex])};
_.I.reposition_=function(){var k=_.Mg("HTML_DIR")=="rtl"?"":"-",E=_.Cc(this.hostElement).querySelector("#items");E&&(E.style.transform="translateX("+k+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.I.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.JB(this,this.setButtonsState_))};
_.I.setButtonsState_=function(){this.setButtonsStateRequested=!1;var k=_.Cc(this.hostElement).querySelector("#items").firstElementChild;if(k){this.minComponentWidth||(this.minComponentWidth=bpA(this,k));k=_.Cc(this.hostElement).querySelector("#scroll-container").clientWidth;var E=_.Cc(this.hostElement).querySelector("#items");E=_.Y("kevlar_horizontal_list_scroll_width_killswitch")?E.clientWidth:E.scrollWidth;var S=this.get(this.ytLazyListBehavior.itemsPath,this);if(S){var R=Math.round(k/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+R,S.length)-1)}this.ytLazyListBehavior.canShowMore?E+this.minComponentWidth>=this.offset+k&&(this.atEnd=!1):this.atEnd=this.offset+k>=E-20?!0:!1;this.atStart=this.offset<=20}};
_.I.setStartIndex=function(k){if(!this.minComponentWidth){var E=_.Cc(this.hostElement).querySelector("#items").firstElementChild;if(!E)return;this.minComponentWidth=bpA(this,E)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*k;P3(this);this.reposition_()};
_.I.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.JH();var k=_.Cc(this.hostElement).querySelector("#scroll-container").clientWidth;_.Y("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=bpA(this,_.Cc(this.hostElement).querySelector("#items").firstElementChild));k=this.useFloorScrolling?Math.floor(k/this.minComponentWidth)||1:Math.round(k/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Zpj(this);this.offset+=vcd(this)?
jUT(this):k*this.minComponentWidth;P3(this);this.reposition_();this.scrollCount++};
_.I.prevClick_=function(){var k=_.Cc(this.hostElement).querySelector("#scroll-container").clientWidth;k=this.useFloorScrolling?Math.floor(k/this.minComponentWidth)||1:Math.round(k/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=vcd(this)?jUT(this):this.minComponentWidth*this.scrollCount-1):this.offset-=vcd(this)?jUT(this):k*this.minComponentWidth;this.centerListItems&&Zpj(this);P3(this);this.reposition_()};
_.I.onIronResize_=function(){this.resizeSupportEnabled&&_.JB(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.I.onItemsTransitionEnd_=function(k){_.bv(k)===_.Cc(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.I.onChildElementFocus_=function(k){k=k.target.closest("#items > *");var E=_.Cc(this.hostElement).querySelector("#scroll-container");if(E.contains(k)){if(_.Y("web_horizontal_list_behavior_focus_killswitch"))if(k.offsetLeft<this.offset)this.offset=Math.abs(k.offsetLeft)<k.clientWidth?0:k.offsetLeft;else if(k.offsetLeft+k.clientWidth>this.offset+E.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.JH(),this.offset=k.offsetLeft+k.clientWidth-E.clientWidth;else return;else{var S=_.Cc(this.hostElement).querySelector("#items"),
R=_.Mg("HTML_DIR")==="rtl",V=R?S.clientWidth-k.offsetLeft:k.offsetLeft;S=R?S.clientWidth-(k.offsetLeft+k.clientWidth):k.offsetLeft+k.clientWidth;var N=R?V>this.offset+E.clientWidth:V<this.offset,h=R?S<this.offset:S>this.offset+E.clientWidth,J=R?N:h;if(R?h:N)E=R?S:V,this.offset=Math.abs(E)<k.clientWidth?0:E;else if(J)this.ytLazyListBehavior.fillRemainingListItems(),_.JH(),this.offset=(R?V:S)-E.clientWidth;else return}P3(this);this.reposition_()}};
_.I.observeShownItems_=function(){this.reset()};
_.I.checkComponentWidthResize=function(){var k=_.Cc(this.hostElement).querySelector("#items").firstElementChild;k&&(k=bpA(this,k),this.centerListItems||k!==this.minComponentWidth)&&(this.minComponentWidth=k,this.offset=k*this.scrollCount,this.centerListItems&&Zpj(this),P3(this),this.reposition_())};
var bpA=function(k,E){var S=window.getComputedStyle(E).marginRight;S=Math.floor(Number(S.replace("px","")));var R=window.getComputedStyle(E).marginLeft;R=Math.floor(Number(R.replace("px","")));k.centerListItems&&!k.marginWidthRight&&(k.marginWidthRight=S,k.marginWidthLeft=R);return k.resizeSupportEnabled?E.getBoundingClientRect().width+S:E.offsetWidth+S},P3=function(k){var E=_.Cc(k.hostElement).querySelector("#scroll-container").clientWidth,S=_.Cc(k.hostElement).querySelector("#items").clientWidth;
k.offset<0?k.offset=0:k.offset+E>=S&&(k.offset=S-E)},Zpj=function(k){k.offset-=(_.Cc(k.hostElement).querySelector("#scroll-container").clientWidth+k.marginWidthRight-k.minComponentWidth)/2-k.marginWidthLeft};
_.mt.Object.defineProperties(B3.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var k=_.Mg("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(k==-1)k=this.JSC$14545_cachedViewportHeight,k=k>1320?5:k>1020?4:k>730?3:k>430?2:1;else if(k==0)return 0;_.l$("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",k-1);k=_.Mg("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(k>-1)return k;k=this.cachedViewportWidth;k=k>1600?6:k>1400?5:k>1300?4:k>1090?5:k>870?4:k>660?3:2;_.l$("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
k);return k},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.Y("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
B3.prototype.observeShownItems_=B3.prototype.observeShownItems_;B3.prototype.onChildElementFocus_=B3.prototype.onChildElementFocus_;B3.prototype.onItemsTransitionEnd_=B3.prototype.onItemsTransitionEnd_;B3.prototype.onIronResize_=B3.prototype.onIronResize_;B3.prototype.prevClick_=B3.prototype.prevClick_;B3.prototype.nextClick_=B3.prototype.nextClick_;B3.prototype.setButtonsState_=B3.prototype.setButtonsState_;B3.prototype.requestButtonsStateUpdate_=B3.prototype.requestButtonsStateUpdate_;
B3.prototype.reposition_=B3.prototype.reposition_;B3.prototype.reset=B3.prototype.reset;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],B3.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.TF.YtLazyListBehavior),_.l("design:type",Object)],B3.prototype,"ytLazyListBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],B3.prototype,"atStart",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],B3.prototype,"atEnd",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"startIndex",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"endIndex",void 0);_.Z([_.H({value:6}),_.l("design:type",Number)],B3.prototype,"initialCount",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"scrollCount",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"initialStartIndex",void 0);
_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"disableScrollEventListener",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"supportComponentResize",void 0);_.Z([_.H({value:function(){var k=this;return function(){return k.prevClick_()}}}),
_.l("design:type",Function)],B3.prototype,"boundPrevClick",void 0);_.Z([_.H({value:function(){var k=this;return function(){return k.nextClick_()}}}),
_.l("design:type",Function)],B3.prototype,"boundNextClick",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"useFloorScrolling",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"isSearch",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"dragging",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"dragMouseStart",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"dragOffsetStart",void 0);
_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"disableWheelScroll",void 0);_.Z([_.H(),_.l("design:type",Object)],B3.prototype,"centerListItems",void 0);_.Z([_.nv("iron-resize"),_.il("guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],B3.prototype,"onIronResize_",null);_.Z([_.nv("transitionend"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],B3.prototype,"onItemsTransitionEnd_",null);
_.Z([_.nv("focusin"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],B3.prototype,"onChildElementFocus_",null);_.Z([_.il("shownItems"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],B3.prototype,"observeShownItems_",null);_.Z([_.eN()],B3);_.wR.YtdHorizontalListBehavior=[];_.wR.YtdHorizontalListBehavior.push(_.KS,_.O.YtRendererBehavior,_.TF.YtLazyListBehavior,_.Ez.YtdGuideStateAwareBehavior,B3.prototype);var JdI=["APP_STATE","PI"];var dKY=_.ry(["about:blank"]),sUd={pushState:window.history.pushState,replaceState:window.history.replaceState};var Yg=function(k){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=k;this.internalPushState=k.pushState.bind(k);this.internalReplaceState=k.replaceState.bind(k)};
Yg.prototype.init=function(){this.initialized=!0};
Yg.prototype.pushState=function(k,E){this.initialized||this.init();this.internalPushState&&this.internalPushState(k,"",E)};
Yg.prototype.replaceState=function(k,E){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(k,"",E)};
Yg.prototype.getState=function(){return this.history&&this.history.state};var lAj=function(k){var E=function(){var S=k.apply(this,arguments)||this;S.boundHistoryPushState=!1;S.boundHistoryReplaceState=!1;S.debugInfo={};return S};
_.y(E,k);E.prototype.init=function(){var S=_.g7("IFRAME");_.GB(S,_.BH(dKY));S.sandbox="allow-same-origin";S.style.display="none";this.iframe=S;document.body.appendChild(S);this.bindHistoryStateFunctions();k.prototype.init.call(this)};
E.prototype.bindHistoryStateFunctions=function(){var S=this,R=[],V;this.iframe&&((V=this.iframe.contentWindow)==null?0:V.history)&&(V=this.iframe.contentWindow.history)&&(R.push(V),Object.getPrototypeOf(V)&&R.push(Object.getPrototypeOf(V)));window.history&&R.push(window.history);V=window.history;Object.getPrototypeOf(V)&&R.push(Object.getPrototypeOf(V));R.push(sUd);V=function(h){for(var J=null,m=0;m<R.length;m++){var a=R[m][h];if(typeof a==="function"){J=a.bind(window.history);S.debugInfo[h]=m;break}}return J};
if(!this.boundHistoryReplaceState){var N=V("replaceState");N&&(this.internalReplaceState=N,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(V=V("pushState"))&&(this.internalPushState=V,this.boundHistoryPushState=!0)};
return E}(Yg),MJp=function(){return lAj.call(this,window.history)||this};
_.y(MJp,lAj);MJp.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var W3=function(k){this.browserHistory=k;this.initialized=!1};
W3.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
W3.prototype.pushState=function(k,E){this.initialized||this.init();this.browserHistory.pushState(k,E)};
W3.prototype.replaceState=function(k,E){this.initialized||this.init();this.browserHistory.replaceState(k,E)};
W3.prototype.handlePopstate=function(k){return k.state};_.qHC=function(k,E,S,R,V){this.endpoint=k;this.forward=E;this.historyEntry=S;this.JSC$30421_savedComponentState=R;this.legacyBorder=V===void 0?!1:V};var zNY=function(k,E){this.rootData=k;this.scrollTop=E};var J9=new _.QE("PAGE_REQUEST_TOKEN"),hoY=new _.QE("FETCH_PBJ_TOKEN");_.Fk=new _.QE("EPHEMERAL_STORE_TOKEN");_.yD=function(k){this.data=Object.assign({},k);var E;(E=this.data.innertubeResponse)==null||delete E.frameworkUpdates};
_.yD.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.ev)()};
_.vZ=function(k){return Object.assign({},k.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var QUz=function(){this.maxSize=100;this.timeToDataCache=new Map};
QUz.prototype.get=function(k){var E=this.timeToDataCache.get(k);E&&(this.timeToDataCache.delete(k),this.timeToDataCache.set(k,E));if(E&&E.rootData&&(_.Y("web_use_response_store_for_history_cache")||_.Y("mweb_use_new_history_manager"))){var S=_.en().resolve(_.Fk),R=Opp(E),V=!!R;if(R){if(R.content){var N=oQ(S,R.content);V&&N?E.rootData.response=_.vZ(N):V=!1}R.player&&(N=oQ(S,R.player),V&&N?E.rootData.playerResponse=_.vZ(N):V=!1);R.reelSequence&&(S=oQ(S,R.reelSequence),V&&S?E.rootData.reelWatchSequenceResponse=
_.vZ(S):V=!1)}V||(this.timeToDataCache.delete(k),E=void 0)}return E};
QUz.prototype.set=function(k,E){if(E.rootData&&(_.Y("web_use_response_store_for_history_cache")||_.Y("mweb_use_new_history_manager"))){var S=Opp(E),R=Object.assign({},E.rootData);S&&(S.content&&E.rootData.response&&(Gdz(this,S.content,E.rootData.response),R.response=null),S.player&&E.rootData.playerResponse&&(Gdz(this,S.player,E.rootData.playerResponse),R.playerResponse=null),S.reelSequence&&E.rootData.reelWatchSequenceResponse&&(Gdz(this,S.reelSequence,E.rootData.reelWatchSequenceResponse),R.reelWatchSequenceResponse=
null));E=new zNY(R,E.scrollTop)}this.timeToDataCache.has(k)?this.timeToDataCache.delete(k):this.timeToDataCache.size>=this.maxSize&&(S=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(S.value));this.maxSize!==0&&this.timeToDataCache.set(k,E)};
QUz.prototype.clear=function(){this.timeToDataCache.clear()};
var Opp=function(k){var E=_.en().resolve(_.mz(J9)),S;if((S=k.rootData)==null?0:S.endpoint)return E==null?void 0:J_b(E,k.rootData.endpoint);var R;_.dg(new _.LC("History snapshot response data does not contain endpoint",(R=k.rootData)==null?void 0:R.url));return null},Gdz=function(k,E,S){if(k.maxSize>0){var R;
(k=(R=S.responseContext)==null?void 0:R.maxAgeSeconds)&&Number(k)>0&&(R=_.en().resolve(_.Fk),S=GZ(S,k),R.put(E,new _.yD(S)))}};var CSd=function(k,E,S){this.endpoint=E;this.JSC$30426_savedComponentState=S===void 0?null:S;this.entryTime=k};var Txl=1;var Xk=function(k){var E=function(){var S=k.apply(this,[].concat(_.$e(_.sX.apply(0,arguments))))||this;S.historyEntryTime=0;S.historySnapshotCache=S.createHistoryCache();return S};
_.y(E,k);E.prototype.createHistoryCache=function(){return new QUz};
E.prototype.saveAndReplace=function(S,R,V){var N=window.location.href;var h=h===void 0?{}:h;var J=(J=this.browserHistory.getState())&&J.entryTime?J.entryTime:wKt();S=this.createNewHistoryEntry(S,h,J);this.saveSnapshot(J,R,V);this.replaceState(S,N||window.location.href)};
E.prototype.saveAndPush=function(S,R,V,N,h){h=h===void 0?{}:h;this.saveSnapshot(this.historyEntryTime,V,N);V=this.historySnapshotCache;N=this.historyEntryTime;var J=V.timeToDataCache.keys();J=_.n(J);for(var m=J.next();!m.done;m=J.next())m=m.value,m>N&&V.timeToDataCache.delete(m);R=this.createNewHistoryEntry(R,h);this.pushState(R,S)};
E.prototype.saveSnapshot=function(S,R,V){this.historySnapshotCache.set(S,new zNY(R,V))};
E.prototype.createNewHistoryEntry=function(S,R,V){V=V===void 0?wKt():V;return new CSd(V,S,R)};
E.prototype.handlePopstate=function(S){var R=k.prototype.handlePopstate.call(this,S),V=null,N=null,h=!1,J=null;R&&R.entryTime&&(J=this.historySnapshotCache.get(R.entryTime)||null,h=R.entryTime>this.historyEntryTime,this.historyEntryTime=R.entryTime,V=R.endpoint,N=R.JSC$30426_savedComponentState);this.handleHistoryCacheLoad(new _.qHC(V,h,J,N),S);return R};
E.prototype.pushState=function(S,R){Number(S==null?void 0:S.entryTime)>=0&&(this.historyEntryTime=S.entryTime);k.prototype.pushState.call(this,S,R)};
E.prototype.replaceState=function(S,R){Number(S==null?void 0:S.entryTime)>=0&&(this.historyEntryTime=S.entryTime);k.prototype.replaceState.call(this,S,R)};
E.prototype.handleHistoryCacheLoad=function(){};
return E}(W3),krz=function(){var k=Xk.call(this,new MJp)||this;
k.dispatchElement=null;k.entryIndex=0;return k};
_.y(krz,Xk);_.I=krz.prototype;_.I.init=function(k){k=k===void 0?!0:k;Xk.prototype.init.call(this);this.initialized||(k||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.I.handlePopstate=function(k){var E=null;k.state||(E="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Xk.prototype.handlePopstate.call(this,k);var S=new CustomEvent("yt-history-pop",{cancelable:!0});_.qe(this.dispatchElement,"yt-history-pop",[S,{errorMsg:E}]);_.zR(this.dispatchElement,"yt-close-all-popups-action");if(!S.defaultPrevented){S=_.en().resolve(_.ZD);E=S.getCurrentData();var R=S.getCurrentPage();S=0;R?(R=_.qe(this.dispatchElement,"yt-get-page-offset",
[R]),R.length>0&&(S=R[0])):_.dg(new _.LC("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:E?E.page:"undefined"}));E&&(E.csn=_.Fe());this.saveSnapshot(this.historyEntryTime,E,S)}return Xk.prototype.handlePopstate.call(this,k)};
_.I.handleHistoryCacheLoad=function(k,E){k.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.n(_.zR(this.dispatchElement,"yt-history-will-navigate",[E])).next().value||_.qe(this.dispatchElement,"yt-history-load",[E,k]))};
_.I.pushState=function(k,E){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var S=new _.LC("history.pushState is not a function",this.getDebugString());_.bM(S)}Xk.prototype.pushState.call(this,k,E)};
_.I.replaceState=function(k,E){if(!this.browserHistory.boundHistoryReplaceState){var S=new _.LC("history.replaceState is not a function",this.getDebugString());_.bM(S)}Xk.prototype.replaceState.call(this,k,E)};
_.I.saveAndPush=function(k,E,S,R,V){V=V===void 0?{}:V;S&&(S.csn=_.Fe());Xk.prototype.saveAndPush.call(this,k,E,S,R,V)};
_.I.getDebugString=function(){var k=[];this.initialized&&k.push("i");this.browserHistory.boundHistoryReplaceState&&k.push("bhr");this.browserHistory.boundHistoryPushState&&k.push("bhs");"replaceState"in this.browserHistory.debugInfo&&k.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&k.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&k.push("ei:"+String(this.entryIndex));return k.join(",")};
_.gR=function(k,E){k.init(!0);var S=k.browserHistory.getState();k.replaceState(S,O3(E))};
krz.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Uz=new _.QE("DESKTOP_HISTORY_MANAGER_TOKEN");var ESd=[10,20,30,40,50,60],H3=function(){this.currentPartitionIndex=0},SGC=function(k){ekj({mainAppWeb:_.jk(),
survivalSli:{partitionMinute:k,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},REC=function(k){ekj({mainAppWeb:_.jk(),
survivalSli:{partitionMinute:k,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},VZC=function(k){return k.currentPartitionIndex>=0&&k.currentPartitionIndex<ESd.length?ESd[k.currentPartitionIndex]:-1},NzY=function(k){return k.currentPartitionIndex>0&&k.currentPartitionIndex-1<ESd.length?ESd[k.currentPartitionIndex-1]:-1};
H3.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var k=NzY(this);k>0&&REC(k);k=VZC(this);k>0&&SGC(k);IuC(this)}};
var IuC=function(k){var E=VZC(k);if(E>0){var S=NzY(k);S<0&&(S=0);k.intervalId=_.ZJ.addJob(function(){var R=NzY(k);R>0&&REC(R);R=VZC(k);R>0&&SGC(R);IuC(k)},3,(E-S)*6E4);
k.currentPartitionIndex+=1}else k.currentPartitionIndex=-1};var nSY=function(){this.skipNextNavigation=!1},ii4=function(k,E,S){if(!E)return!1;
if(k.skipNextNavigation)return k.skipNextNavigation=!1;if(_.W(S,_.Oc))return!1;var R,V,N;if((R=_.W(S,_.Ny))==null?0:(V=R.browseEndpointContextSupportedConfigs)==null?0:(N=V.browseEndpointContextMainConfig)==null?0:N.skipConfirmation)return!1;var h;return((h=_.W(E.commandMetadata,_.Sd))==null?void 0:h.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
nSY.prototype.showConfirmationDialog=function(k,E){this.navigateParams=E;this.customConfirmationCommand?_.en().resolve(_.t3).resolveCommand(this.customConfirmationCommand):(E={openPopupAction:{popup:{confirmDialogRenderer:{title:_.DE(_.Vi("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.DE(_.Vi("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.DE(_.Vi("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.DE(_.Vi("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.GU.getInstance().triggerAction("yt-open-popup-action",E,k))};
nSY.prototype.cancelPendingNavigation=function(){var k;((k=this.navigateParams)==null?void 0:k.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var hEd=function(){},cld=function(k,E,S,R,V,N,h){S=S===void 0?{}:S;
h=h===void 0?{}:h;var J=_.As.instance,m,a=(m=_.W(E,_.Oc))==null?void 0:m.url;return a?d$I(J,a,S,window.location.href,function(T,w){JlC(k,T,w,!1,!0,S,N,R)},function(){return!1}):gy(J,E,S,window.location.href,nc(E),function(T,w){JlC(k,T,w,!1,!0,S,N,R)},V,h)},JlC=function(k,E,S,R,V,N,h,J){if(!k.JSC$14603_chunkHandler)if(S.page==="learning_journey_watch"&&_.Y("web_enable_canvas_on_learning_journey")){var m=!_.W(J,_.Ny);
V=V||R;if(m)if(V){if(_.Y("kevlar_continue_playback_without_player_response")){var a;var T=(a=_.W(J,_.jm))==null?void 0:a.videoId}R={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:R,previousVideoId:T},tempData:N}}else R={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else R={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};k.JSC$14603_chunkHandler=new xDz(_.s3,R,h,m,V)}else if(S.page==="watch"||S.page==="learning_journey_watch")if(V||R){if(_.Y("kevlar_continue_playback_without_player_response")){var w;
m=(w=_.W(J,_.jm))==null?void 0:w.videoId}k.JSC$14603_chunkHandler=new DDz(_.s3,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:R,previousVideoId:m},tempData:N},h)}else k.JSC$14603_chunkHandler=new rn5(_.s3);else S.page==="shorts"&&V&&!R?k.JSC$14603_chunkHandler=new j9C(_.s3,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:N},h):k.JSC$14603_chunkHandler=new uvA(h);k.JSC$14603_chunkHandler.processChunk({endpoint:E,data:S});return k.JSC$14603_chunkHandler.f8.promise},
mbA=function(k,E,S,R,V){(S=_.yqC(S))&&JlC(k,E,S,!1,!0,R,void 0,V)};_.eEp=new _.QE("NAVIGATION_SERVICE_TOKEN");var auT=function(){this.pendingNavigationPromise=null};
_.I=auT.prototype;_.I.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.I.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.I.addEventListener=function(){throw Error("Fh");};
_.I.dispatchEvent=function(){throw Error("Fh");};
_.I.removeEventListener=function(){throw Error("Fh");};var tZA=new _.QE("APP_ROOT");var Bxh=null;var TzY=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],K6=function(){_.wG.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];wLT(this)};
_.y(K6,_.wG);K6.prototype.verifyUser=function(){var k=wLT(this),E=k.logout;if(!k.sessionChange)return!0;this.dispatchEvent("ytsessionchange");E&&this.dispatchEvent("ytuserinvalid");return!1};
var wLT=function(k){var E=TzY.map(function(V){var N;return(N=_.pC.get(V))!=null?N:""}),S=E.some(function(V,N){return k.sessionCookies&&k.sessionCookies[N]!==""&&V===""}),R=E.some(function(V,N){return k.sessionCookies&&k.sessionCookies[N]!==V});
k.sessionCookies=E;return{logout:S,sessionChange:R}};
K6.prototype.clearTimeout=function(){this.scheduledJobId&&(_.ZJ.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var XKb=new _.QE("POSTMESSAGE_TUNNEL_TOKEN");var Fkt=["/parent_tools","/file_download","/artist_roster"],HAl=[gJC,UUY,Hgz,pUd,K$d,XUd,AJC,rJY];var p6=new _.QE("NAVIGATION_CONFIRMATION_SERVICE");var PnC="/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(" "),BzC=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],AU=function(k,E){this.pendingNavigationPromise=null;this.JSC$14626_clientRoot=k;this.historyManager=E;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 hEd;this.debugString=k.is;k={"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};_.E2(_.GU.getInstance(),k,this.JSC$14626_clientRoot)},oS8,XLd,gS5,Ubd,ylC;
_.y(AU,auT);AU.prototype.reload=function(){_.xl(window.location.href)};
var gm2=function(k){k.currentEndpoint&&_.W(k.currentEndpoint,_.hg)?k.reload():k.currentEndpoint&&k.navigate(k.currentEndpoint,!0,void 0,{disableCache:!0})};
AU.prototype.navigate=function(k,E,S,R,V,N,h,J){E=E===void 0?!1:E;S=S===void 0?{}:S;R=R===void 0?{}:R;var m=_.en().resolve(p6),a;if(!h&&ii4(m,(a=this.currentEndpoint)!=null?a:void 0,k))return m.showConfirmationDialog(this.JSC$14626_clientRoot.parentElement,{endpoint:k,reload:E,params:S,tempData:R,requestType:V,createScreenConfig:N}),!1;var T=_.O7();_.G7(T,"eocs")||T.parkOrScheduleJob(function(){T.processSignal("eocs")},10,"eor");
Y$1();h=nc(k);m=R.autonav==="1";a=_.Fe();K6.instance||(K6.instance=new K6);var w=K6.instance.verifyUser(),P;if(_.Y("enable_dark_theme_only_on_shorts")){var B=document.documentElement.hasAttribute("dark"),F=_.aR(!0)==="USER_INTERFACE_THEME_DARK";if(h==="shorts"){if(!B)if(_.Y("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var K;_.xl((K=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null?void 0:K.url,void 0,void 0,window.top)}}else{var r;_.xl(_.N3((r=_.W(k==
null?void 0:k.commandMetadata,_.Sd))==null?void 0:r.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.Y("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!B){var x;_.xl(_.N3((x=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null?void 0:x.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(F!==B){var L;_.xl(_.N3((L=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null?void 0:L.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(h==="watch"){if(YG2(_.en().resolve(_.yb),
k)&&(w||_.Y("fix_miniplayer_navigation_killswitch")))return!1;_.Y("block_all_player_prefetch_requests")||(P=omA(_.$z(_.rj),k,m))}else{var q,M=(q=_.W(this.currentEndpoint,_.jm))==null?void 0:q.videoId;M&&_.Lw.getInstance().then(function(ve){ve&&ve.set("yt-miniplayer-shown-video-id",M)})}P&&(S.frags=P.missingFragments_.join(","));
K=null;var d;r=(d=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null?void 0:d.ignoreNavigation;if(!r)if(_.Y("kevlar_command_url")){var z;K=(z=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null?void 0:z.url}else K=_.Rve(k,S);if(K&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&K==this.lastNavigationUrl)return _.BE({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.Gb(Hi(),"CANCELLED")}K&&(this.lastNavigationUrl=K);CRh();_.l$("IS_HOMEPAGE_COLD",
!1);_.l$("IS_RESULTS_PAGE_COLD",!1);_.l$("IS_WATCH_PAGE_COLD",!1);k.loggingUrls&&k.loggingUrls.forEach(function(ve){ve.baseUrl&&_.Cx(ve.baseUrl)});
_.rd1(k,N?N.layer:0)&&_.Y("kevlar_flush_logs_on_away_navigation")&&_.vv();if(Kkh(k))return!1;Vgp(h,V);if(!K)return r||_.dg(new _.LC("Can't construct url for endpoint",k)),_.Gb(Hi(),"FAILURE"),!1;_.Wkl();d=k&&_.W(k,_.Ny)&&_.W(k,_.Ny).browseId.startsWith("UC");S=(z=_.Y("enable_dark_theme_only_on_shorts")&&h==="shorts"?!1:_.tg()&&document.documentElement.hasAttribute("dark")!==_.ek())?{themeRefresh:1}:{};z&&!_.rO()&&_.aR()==="USER_INTERFACE_THEME_DARK"&&(S.theme="dark");d=z||Wx8(K)&&!d&&!_.Y("kevlar_disable_url_allowlist");
w||(d=!0);if(d||_.Mg("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var kb;var TI=(kb=window.top)==null?void 0:kb.location.href}catch(ve){var a1;TI=(a1=ve)==null?void 0:a1.message}_.dg(new _.LC("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:TI}))}k=_.Y("kevlar_redirect_on_window_killswitch")?window.top:window;uv(K);_.xl(_.N3(K,S),void 0,void 0,k);_.Gb(Hi(),"ABORTED");return!1}_.Y("kevlar_early_popup_close")&&_.qe(this.JSC$14626_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14603_chunkHandler=void 0;var Ah;TI=nc((Ah=this.currentEndpoint)!=null?Ah:void 0);(Ah=h==="shorts"&&TI==="shorts")||_.lrb();_.Ga(Ati)("nr",void 0);m&&_.BE({webInfo:{navigationReason:"an"}});k.clickTrackingParams&&(R.itct=k.clickTrackingParams,R.csn=a);cvm(R);R.endpoint=JSON.stringify(k);_.Y("enable_unknown_lact_fix_on_html5")&&(_.en().resolve(_.eQ),R.lact=_.mE());_.fO.isEmpty(R)||_.vi(K,R);!_.Y("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(N=Object.assign({},{layer:0},N,{parentLayer:3}));this.pendingNavigationPromise=N=cld(this.pageFetcher,k,R,this.currentEndpoint,this.JSC$14626_isNetworkPromiseStale.bind(this),N,J);N=N.then(this.handleNavigateSuccess.bind(this,N,k,P,R),this.handleNavigateFail.bind(this,N,k));_.g_().navigationFinishPromise=N;E={endpoint:k,pageType:h,url:O3(K),reload:!!E,noProgressBar:Ah};V&&(E.type=V);var th;V=_.VS((th=this.currentEndpoint)!=null?th:null);th=_.VS(k!=null?k:null);this.fireEvent("yt-navigate-start",
E);var He;(He=_.en().resolve(_.mz(_.eEp)))==null||He.publish("navigation-start",{sourcePageSubtype:V,destinationPageSubtype:th});P&&mbA(this.pageFetcher,k,P,R,this.currentEndpoint);return!0};
AU.prototype.JSC$14626_isNetworkPromiseStale=function(k){return k!=this.pendingNavigationPromise};
var FxC=function(k,E,S,R,V){var N=nc(E);E={endpoint:E,pageType:N};V&&(E.errorMessage=V);_.dg(S);E.navigationDoneMs=_.o_("nd");E.navigationErrorReason=R;k.fireEvent("yt-navigate-error",E)};
AU.prototype.handleNavigateFail=function(k,E,S){var R=void 0;S instanceof _.o3&&(R=S,Ehi(S));if(this.JSC$14626_isNetworkPromiseStale(k))return _.BM(R);_.Gb(Hi(),"FAILURE");FxC(this,E,S,"101");return _.BM(S)};
AU.prototype.handleNavigateSuccess=function(k,E,S,R,V){if(this.JSC$14626_isNetworkPromiseStale(k))return _.GR();this.pendingNavigationPromise=null;if(!V)return E=new _.LC("Missing data in response for navigation endpoint",E),_.BM(E);if(V.reload)return window.location.reload(!0),_.GR();S&&(k={},_.fO.extend(k,_.yqC(S),V),V=k);var N,h;S=(N=V)==null?void 0:(h=N.timing)==null?void 0:h.responseStart;S!=null&&_.o_("srt",S);_.o_("pdc");var J,m;N=(J=V)==null?void 0:(m=J.timing)==null?void 0:m.info;N!=null&&
(J=_.Ga(_.LWb)(N),_.BE(J));_.Gb(Hi(),"SUCCESS");ylC(this,E,V,1,R);return _.GR()};
var Wx8=function(k){var E=k;_.Y("kevlar_no_redirect_to_classic_2_ks")||(E=(new _.DZ(k)).getPath());if(E==="/"||E==="/red")return!1;var S=!0;PnC.forEach(function(R){k.indexOf(R)===0&&(S=!1)});
BzC.forEach(function(R){var V=R.url;_.Y(R.expFlag)&&k.indexOf(V)===0&&(S=!1)});
return S};
AU.prototype.publishPageData=function(k){this.fireEvent("yt-page-data-fetched",{pageData:k})};
oS8=function(k,E,S,R,V,N){var h=null;E.page!=="watch"&&E.page!=="learning_journey_watch"||R?E.filler||_.qe(k.JSC$14626_clientRoot,"yt-stop-old-player",[E]):h=JlC(k.pageFetcher,V,E,S,!1,N,void 0,k.currentEndpoint);if(h)return h.then(k.publishPageData.bind(k,E));k.publishPageData(E);return _.GR()};
XLd=function(k,E,S){var R=null;if(!S)return R=new _.LC("Empty data",k.debugString,E);var V=S.response;if(!V)return R;var N={endpointType:nc(E)||"unknown"};V.responseContext?(V=V.responseContext.errors)&&(R=new _.LC("Errors in response context",k.debugString,E,V,N)):R=V.error||V.errorMetadata?new _.LC("Errors in response",k.debugString,E,V.error,V.errorMetadata,N):new _.LC("responseContext missing",k.debugString,E,Object.keys(V).sort().join(","),N);var h,J,m,a;if(k=S==null?void 0:(h=S.response)==null?
void 0:(J=h.responseContext)==null?void 0:(m=J.webResponseContextExtensionData)==null?void 0:(a=m.webResponseContextDebugData)==null?void 0:a.debugErrorMessages)for(h=0;h<k.length;h++);return R};
gS5=function(k){var E,S,R,V;return k==null?void 0:(E=k.response)==null?void 0:(S=E.responseContext)==null?void 0:(R=S.errors)==null?void 0:(V=R.error)==null?void 0:V["0"]};
Ubd=function(k,E){var S;if(S=E.url&&!E.url.startsWith("/clip"))S=E.url,S=!_.Y("webfe_parse_debug_param_in_resolveurl_service")&&k.searchDebugUrlMatcher.test(S)||hMA(S)?!0:!1;if(S)hMA(E.url)&&_.Vf(window.location.href).themeRefresh?(E=_.bW(E.url,"themeRefresh"),_.gR(k.historyManager,E)):E.url&&!aLI(E.url)&&_.gR(k.historyManager,E.url);else if(E.endpoint){var R,V,N;(S=(R=E.endpoint)==null?void 0:(V=R.commandMetadata)==null?void 0:(N=V.webCommandMetadata)==null?void 0:N.url)&&!aLI(S)&&_.gR(k.historyManager,
S);S&&E.url&&S!=E.url&&!E.url.match("playnext=1")&&new _.LC("Response url mismatch in response data",k.debugString,S,E.url)}};
_.Hi5=function(k,E,S,R,V,N,h,J){N=N===void 0?!1:N;var m=_.en().resolve(p6),a;if(!J&&ii4(m,(a=k.currentEndpoint)!=null?a:void 0,E))return m.showConfirmationDialog(k.JSC$14626_clientRoot.parentElement,{endpoint:E,data:S,navigationType:R,tempData:V,isMiniplayer:N,isForwardHistoryNavigation:h==null?void 0:h.forward}),_.GR();k.pageFetcher.JSC$14603_chunkHandler=void 0;return ylC(k,E,S,R,V,N)};
ylC=function(k,E,S,R,V,N){N=N===void 0?!1:N;k.isMiniplayerExpansion=N;var h=R===2;k.currentEndpoint=E;k.numNavigations++;k.numNavigations&&(GQI.navigationCount=k.numNavigations);_.l$("NUM_NAV",k.numNavigations);var J=XLd(k,E,S);if(J)return FxC(k,E,J,"102",gS5(S)),_.BM(J);var m,a,T,w;J=S.rootVe||(S==null?void 0:(m=S.response)==null?void 0:(a=m.responseContext)==null?void 0:(T=a.webResponseContextExtensionData)==null?void 0:(w=T.ytConfigData)==null?void 0:w.rootVisualElementType);!h&&S&&Ubd(k,S);var P,
B;m=S==null?void 0:(P=S.response)==null?void 0:(B=P.responseContext)==null?void 0:B.maxAgeSeconds;if(!h&&!isNaN(m)){var F;_.Y("kevlar_use_response_ttl_to_invalidate_cache")?F=(0,_.ev)()+1E3*m:_.Y("kevlar_always_invalidate_cache")&&(F=0);isNaN(F)||(S.expirationTime=F)}_.$z(_.rj).prefetchCache_.clear();h||S.page!=="watch"||S.type!=="reduced"&&R!==1?R=oS8(k,S,h,!!N,E,V):(k.publishPageData(S),R=_.GR());V=R.then(function(){var K=nc(E);K={endpoint:E,pageType:K,fromHistory:h,response:S};K.navigationDoneMs=
_.o_("nd");k.fireEvent("yt-navigate-finish",K);var r;(r=_.en().resolve(_.mz(_.eEp)))==null||r.publish("navigation-end")});
S.csn&&J&&S.clientSideGrafts&&R.then(k.attachClientSideGrafts.bind(k,S,_.Wi()));return V};
_.I=AU.prototype;_.I.attachClientSideGrafts=function(k,E){k.clientSideGrafts&&E&&k.clientSideGrafts.forEach(function(S){if(E&&S){var R=_.tV(S);_.Y("combine_ve_grafts")?_.JV().graftServerVe(S,E):_.rq(k.csn,E,R)}})};
_.I.handleSignalActionHistoryBack=function(){window.history.back()};
_.I.handleSignalActionCloseWindow=function(){window.close()};
_.I.handleSignalActionReloadPage=function(){this.reload()};
_.I.handleSignalActionSoftReloadPage=function(){gm2(this)};
_.I.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.I.fireEvent=function(k,E){k=new CustomEvent(k,{bubbles:!0,cancelable:!1,composed:!0,detail:E});this.dispatchEvent(k)};
_.I.addEventListener=function(k,E){this.JSC$14626_clientRoot.addEventListener(k,E)};
_.I.dispatchEvent=function(k){return this.JSC$14626_clientRoot.dispatchEvent(k)};
_.I.removeEventListener=function(k,E){this.JSC$14626_clientRoot.removeEventListener(k,E)};
AU[au]=[tZA,_.Uz];_.zSb=new PI("browse","h8y2qb");_.QII=new PI("search","JzFVk");_.O7R=new PI("shorts","xwEKAe");_.G31=new PI("watchFixie","nmfa2d");_.Cqm=new PI("watchFlexy","CF909");_.kwj=new PI("watchGrid","Tm0L3c");_.EMi=new PI("watchLearningJourney","L3n37");var KxT;var pLd=function(){return _.p.apply(this,arguments)||this};
_.y(pLd,_.p);_.mt.Object.defineProperties(pLd,{template:{configurable:!0,enumerable:!0,get:function(){if(KxT===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);KxT=k}k=KxT;return k}}});
_.Z([_.g(KY4.YtPlayerBehavior),_.l("design:type",Object)],pLd.prototype,"ytPlayerBehavior",void 0);_.Z([_.D({is:"ytd-player"})],pLd);var Alz;var rl2;var uid;var rR=function(){var k=_.p.apply(this,arguments)||this;k.forceModernIconButton=!1;k.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return k};
_.y(rR,_.p);rR.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]]"}}}}}};
rR.prototype.handleAccountLinkingStateChangedCommand=function(k){if(k=_.W(k,lTd)){var E,S=(E=this.data)==null?void 0:E.providerKey;E=k.providerKey;S&&E&&S.id===E.id&&S.subject===E.subject&&(k=k.linked,k!==void 0&&(this.set("data.linked",k),this.notifyPath("data.linked"),_.Y("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(k)))}};
rR.prototype.setPlayerAccountLinkState=function(k){var E=new iwd;hfC(E,Ia2(new N_8,k));var S=_.s3();S&&S.getPlayerPromise().then(function(R){R.setAccountLinkState(_.xW(E.JSC$12316_serializeBinary(),4));R.updateAccountLinkingConfig(k)})};
rR.prototype.handleShowAccountLinkDialog=function(){var k=this.get("button.buttonRenderer.command");k&&_.kA([k],this.hostElement)};
_.mt.Object.defineProperties(rR.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}}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.Z([_.g([_.H5.YtActionHandlerBehavior]),_.l("design:type",Object)],rR.prototype,"actionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rR.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],rR.prototype,"overrides",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],rR.prototype,"forceModernIconButton",void 0);_.Z([_.H({value:"bottom"}),_.l("design:type",String)],rR.prototype,"buttonTooltipPosition",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],rR.prototype,"forceIconButton",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rR.prototype,"disableTextTransform",void 0);
_.Z([_.U("data","data.linked","data.isWarning"),_.l("design:type",Object),_.l("design:paramtypes",[])],rR.prototype,"button",null);_.Z([_.D({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],rR);
_.b(rR,"ytd-account-link-button-renderer",function(){if(uid!==void 0)return uid;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return uid=k},{mode:1});var xbd;var Lxp=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],u6=function(){return _.p.apply(this,arguments)||this};
_.y(u6,_.p);u6.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
u6.prototype.updateButtonActiveState=function(){var k=this,E=!!Lxp.find(function(S){return k.currentState===S});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.Y("enable_web_delhi_icons")&&(E=!1);this.button&&(this.button.isPressed=E)};
_.mt.Object.defineProperties(u6.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.playlistLoopStateEntity)==null?void 0:k.state)||((E=this.data)==null?void 0:E.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var k=void 0,E;if(this.currentState&&((E=this.data)==null?0:E.states)){E=_.n(this.data.states);for(var S=E.next();!S.done;S=E.next()){S=_.W(S.value,_.hmd);var R=void 0;if(((R=S)==null?void 0:R.state)===this.currentState){k=S;break}}}return k}}});
u6.prototype.updateButtonActiveState=u6.prototype.updateButtonActiveState;_.Z([_.g(_.zm),_.l("design:type",Object)],u6.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.v5.playlistLoopStateEntitySelector}),_.l("design:type",Object)],u6.prototype,"playlistLoopStateEntity",void 0);_.Z([_.H(),_.l("design:type",Object)],u6.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],u6.prototype,"forceIconOnly",void 0);_.Z([_.JO("ytd-button-renderer"),_.l("design:type",_.mM)],u6.prototype,"button",void 0);
_.Z([_.U("data","playlistLoopStateEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],u6.prototype,"currentState",null);_.Z([_.il("currentButtonStateRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],u6.prototype,"updateButtonActiveState",null);_.Z([_.U("currentState"),_.l("design:type",Object),_.l("design:paramtypes",[])],u6.prototype,"currentButtonStateRenderer",null);
_.Z([_.D({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],u6);
_.b(u6,"ytd-playlist-loop-button-renderer",function(){if(xbd!==void 0)return xbd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return xbd=k},
{mode:1});var j64;var Dbd=_.Vi("DOWNLOAD",{},"Download"),$bz=_.Vi("DOWNLOADING",{},"Downloading"),fu2=_.Vi("DOWNLOADED",{},"Downloaded"),vSj=_.Vi("RETRY",{},"Retry"),xg=function(){var k=_.p.apply(this,arguments)||this;k.forceIconButton=!1;k.forceIconOnly=!1;k.overrides=!1;k.buttonTooltipPosition=!1;k.styleActionButton=!1;k.disableTextTransform=!1;k.downloadProgress=0;k.isDownloadComplete=!1;k.isHidden=!0;k.transferState="TRANSFER_STATE_UNKNOWN";k.isVideoDeletedByUser=!1;k.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return k};
_.y(xg,_.p);_.I=xg.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.dataChanged=function(){var k;(k=this.data)!=null&&k.text||(k=_.Xf(_.vo().getState(),this.videoId),this.updateButtonState(k))};
_.I.computeVideoId=function(k){return k};
_.I.computePlayerStateEntityKey=function(k){return k};
_.I.showHideButton=function(){this.updateButtonVisibility()};
_.I.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var k;((k=this.playerStateEntity)==null?void 0:k.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};
_.I.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.I.updateButtonState=function(k){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==$bz||!_.Jp(k))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(k){case "TRANSFER_STATE_UNKNOWN":k=Dbd;var E="OFFLINE_DOWNLOAD";var S="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":k=vSj;E="OFFLINE_DOWNLOAD";S="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":k=fu2;E="OFFLINE_PIN";S="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":k=
$bz;E="OFFLINE_DOWNLOADING_ZERO";S="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":k=vSj;E="OFFLINE_DOWNLOAD";S="ACTION_RETRY";break;default:k=Dbd,E="OFFLINE_DOWNLOAD",S="ACTION_ADD"}this.isVideoDeletedByUser&&(k=Dbd,E="OFFLINE_DOWNLOAD",S="ACTION_ADD");var R=Object.assign({},this.data);R.text=_.DE(k);R.tooltip=k;R.icon={iconType:E};R.size="SIZE_DEFAULT";R.style="STYLE_DEFAULT";_.W(R.command,_.IE)&&(_.W(R.command,_.IE).action=S);this.set("data",R)}};
_.I.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var k="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?k="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?k="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?k="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?k="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?k="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(k="OFFLINE_PIN",this.isDownloadComplete=!0);var E;k!==((E=this.data.icon)==null?void 0:E.iconType)&&(E=Object.assign({},this.data),E.text=_.DE($bz),E.tooltip=$bz,E.icon={iconType:k},_.W(E.command,_.IE)&&(_.W(E.command,_.IE).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",E))}};
xg.prototype.updateProgress=xg.prototype.updateProgress;xg.prototype.onTransferStateChanged=xg.prototype.onTransferStateChanged;xg.prototype.showHideButton=xg.prototype.showHideButton;xg.prototype.dataChanged=xg.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xg.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],xg.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],xg.prototype,"forceIconButton",void 0);
_.Z([_.H(),_.l("design:type",Object)],xg.prototype,"forceIconOnly",void 0);_.Z([_.H(),_.l("design:type",Object)],xg.prototype,"overrides",void 0);_.Z([_.H(),_.l("design:type",Object)],xg.prototype,"buttonTooltipPosition",void 0);_.Z([_.H(),_.l("design:type",Object)],xg.prototype,"styleActionButton",void 0);_.Z([_.H(),_.l("design:type",Object)],xg.prototype,"disableTextTransform",void 0);
_.Z([_.H({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.l("design:type",String)],xg.prototype,"videoId",void 0);_.Z([_.H({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.l("design:type",String)],xg.prototype,"playerStateEntityKey",void 0);_.Z([_.H(),_.l("design:type",Object)],xg.prototype,"data",void 0);_.Z([_.H({selector:Up,selectorArgs:["videoId"]}),_.l("design:type",Object)],xg.prototype,"downloadProgress",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],xg.prototype,"isDownloadComplete",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],xg.prototype,"isHidden",void 0);_.Z([_.H({selector:_.Xf,selectorArgs:["videoId"]}),_.l("design:type",String)],xg.prototype,"transferState",void 0);_.Z([_.H({selector:_.QAh,selectorArgs:["videoId"]}),_.l("design:type",Object)],xg.prototype,"isVideoDeletedByUser",void 0);
_.Z([_.H({selector:dql,selectorArgs:["videoId"]}),_.l("design:type",Object)],xg.prototype,"offlineabilityState",void 0);_.Z([_.H({selector:_.Ufe,selectorArgs:["playerStateEntityKey"]}),_.l("design:type",Object)],xg.prototype,"playerStateEntity",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],xg.prototype,"showTooltips",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],xg.prototype,"sendCommandWhenDisabled",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],xg.prototype,"disabled",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xg.prototype,"dataChanged",null);_.Z([_.ac("offlineabilityState","playerStateEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xg.prototype,"showHideButton",null);
_.Z([_.ac("transferState","isVideoDeletedByUser"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xg.prototype,"onTransferStateChanged",null);_.Z([_.ac("downloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xg.prototype,"updateProgress",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],xg);
_.b(xg,"ytd-download-button-renderer",function(){if(j64!==void 0)return j64;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return j64=k},{mode:2});var biT;var Zi4,dbd=function(){if(Zi4!==void 0)return Zi4;var k=document.createElement("template");_.X(k,'\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 Zi4=k};var s62=_.Y("web_button_rework")&&_.qg("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),luC=_.wO("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,L6=function(){var k=_.p.apply(this,arguments)||this;k.isPressed=!1;k.forceIconButton=!1;k.forceIconOnly=!1;k.forceModernIconButton=!1;k.alignByText=!1;k.isShorts=!1;k.animatedText=!1;k.shouldAnimate=!1;k.JSC$14665_browserSupportsAnimation=_.Y("web_supports_animations_api");k.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};k.onTap=function(){var E;if((E=k.data)==null||!E.defaultNavigationEndpoint){var S;E=!((S=k.data)==null?0:S.isToggled);var R;if((R=k.data)==null||!R.preventAutoToggle){k.shouldAnimate=!1;k.disableTextUpdateJobId&&_.ZJ.cancelJob(k.disableTextUpdateJobId);k.disableTextUpdateJobId=_.ZJ.addLowPriorityJob(function(){k.disableTextUpdateJobId=void 0},luC);
var V;k.set("data.isToggled",!((V=k.data)==null?0:V.isToggled));S=k.getInnertubeIcon();R={toggled:E,actions:{}};S&&(R.actions[S.toLowerCase()]=E);_.Me(k.hostElement,"yt-toggle-button",R)}}};
return k};
_.y(L6,_.p);_.I=L6.prototype;_.I.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.ZJ.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.toggle=function(k){var E;this.set("data.isToggled",k!==void 0?k:!((E=this.data)==null?0:E.isToggled))};
_.I.handleUpdateToggleButtonStateCommand=function(k){if(this.data){k=_.W(k,k65);var E,S,R,V=(E=this.data)==null?void 0:(S=E.toggleButtonSupportedData)==null?void 0:(R=S.toggleButtonIdData)==null?void 0:R.id;V&&k&&V===(k==null?void 0:k.buttonId)&&this.set("data.isToggled",k.toggled)}};
_.I.handleUpdateToggleButtonTextAction=function(k){if(this.data){k=_.W(k,YVd);var E,S,R,V=(E=this.data)==null?void 0:(S=E.toggleButtonSupportedData)==null?void 0:(R=S.toggleButtonIdData)==null?void 0:R.id;V&&k&&V===(k==null?void 0:k.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=k.defaultNumericalValue,this.set("data.defaultText",k.defaultText),this.set("data.toggledText",k.toggledText),this.shouldAnimate=!1)}};
_.I.getInnertubeIcon=function(){var k=this.data;if(k){var E,S,R=((E=k.defaultIcon)==null?0:E.iconType)?(S=k.defaultIcon)==null?void 0:S.iconType:null,V,N;E=((V=k.toggledIcon)==null?0:V.iconType)?(N=k.toggledIcon)==null?void 0:N.iconType:R;return k.isToggled?E:R}};
_.I.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.mt.Object.defineProperties(L6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var k={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$14665_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var E=k.renderer;var S=k.element;var R=k.toggled;var V=k.onTapCallback;var N=k.commandClientArgs;var h=k.overrides;var J=k.forceIcon;var m=k.forceModernIconButton;var a=k.forceDisabled;var T=k.useAnimatedText;var w=k.animatedTextProps;k=Lk1(E,R);J=!E.defaultIcon||!J&&E.defaultText?E.defaultIcon?"leading":void 0:m?"icon-only":"icon-only-40";J==="icon-only-40"&&(k.type="text");var P;m=Object;var B=m.assign,F;a:switch((F=
E.style)==null?void 0:F.styleType){case "STYLE_COMPACT_GRAY":F={size:"S"};break a;default:F={size:"M"}}var K=!!R;var r=(r=R&&E.toggledText||E.defaultText)?_.y_(r):void 0;T?(T=_.$n(R&&E.toggledText||E.defaultText))&&w&&!isNaN(Number(w.numberValue))?(w.numberText=T,R&&(w.numberValue+=1),T=w):T=void 0:T=void 0;var x,L,q,M;var d=(w=((L=R?E.toggledAccessibilityData||((d=E.toggledText)==null?void 0:d.accessibility):E.accessibilityData||((x=E.defaultText)==null?void 0:x.accessibility))==null?void 0:(q=L.accessibilityData)==
null?void 0:q.label)||((M=E.accessibility)==null?void 0:M.label))?w:_.$n(R&&E.toggledText||E.defaultText);a=a===void 0?E.isDisabled:a;S=xHi(E,R,V,S,N);R=uOb(E,R);R!=null&&R.length?(R=_.Kh({innertubeCommand:ode(R),forceNewState:!0}),R=ph(R)?R:void 0):R=void 0;E=B.call(m,{},k,F,{iconPosition:J},h,{focused:!1,toggled:K,toggleable:!0,formattedButtonText:r,animatedTextProps:T,accessibilityLabel:d,disabled:a,onTap:S,aTagConfig:R},OHj((P=E.colorData)==null?void 0:P.basicColorPaletteData));E.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(E.type="filled");return E}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var k=this.getInnertubeIcon();if(k)return _.SF(k)}}});
L6.prototype.resetAnimation=L6.prototype.resetAnimation;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],L6.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],L6.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"isPressed",void 0);_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"forceIconButton",void 0);_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"forceIconOnly",void 0);_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"forceModernIconButton",void 0);_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"alignByText",void 0);_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"overrides",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],L6.prototype,"disabled",void 0);_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"isShorts",void 0);_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"buttonTooltipPosition",void 0);_.Z([_.H(),_.l("design:type",Object)],L6.prototype,"animatedText",void 0);_.Z([_.H(),_.l("design:type",String)],L6.prototype,"textNumberValue",void 0);_.Z([_.H({computed:"computeTooltip(data, data.isToggled)"}),_.l("design:type",Object)],L6.prototype,"tooltip",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L6.prototype,"resetAnimation",null);_.Z([_.U("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.l("design:type",Object),_.l("design:paramtypes",[])],L6.prototype,"computedButtonShape",null);_.Z([_.U("data.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],L6.prototype,"computedIcon",null);
_.Z([_.D({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],L6);s62&&_.b(L6,"ytd-toggle-button-renderer",dbd,{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var MZC=_.f(function(k){function E(a){var T;return _.c(function(w){if(w.nextAddress==1)return(T=!DHl(a,J())||!J().enabled)?w.jumpTo(2):w.yield(ZAm(),3);w.nextAddress!=2&&(T=w.yieldResult);if(T)return w.return();S();setTimeout(function(){h(!1)},1500);
_.KR(w)})}
function S(){setTimeout(function(){h(!0);var a;(a=R.lottieEl)==null||a.goToAndPlay(0)},150)}
var R=_.RE(),V=_.n(_.yg(!1,void 0,"UfUosc")),N=V.next().value,h=V.next().value,J=_.Zk(k.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.b$(function(){var a,T;((a=k.settings)==null?void 0:(T=a.call(k))==null?void 0:T.uniqueId)==="this is not intended behavior"&&_.dg(new _.LC("Smartimation Settings is undefined"))});
_.vX(function(){J().experimentEnabled&&(J().enabled?$Hl(E):(h(!1),fLi(E)),_.bI(function(){fLi(E)}))},"IHhVmc");
_.vX(function(){J().timings.join("");J().experimentEnabled&&(vLI(J()),_.bI(function(){bA1(J())}))},"fsfhOe");
var m=_.HX(function(){var a=R,T=J().uniqueId+"-border",w,P;var B="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((P=(w=_.en().resolve(_.mz(_.jF)))==null?void 0:w())!=null&&P?"dark":"light")+"_v2.json";return{animationRef:a,animationConfig:{name:T,autoplay:!1,loop:!1,path:B}}},void 0,"UWvUGe");
V={};return _.e("yt-smartimation",{class:_.SQ(k.className,"smartimation",(V["smartimation--experiment-enabled"]=function(){return J().experimentEnabled},V["smartimation--active-border"]=N,V["smartimation--enable-masking"]=dHt(),V))},_.e(_.t,{cond:function(){return J().experimentEnabled},
then:function(){return _.e("div",{class:"smartimation__border"},_.e(_.KG,{className:"smartimation__border-gradient",data:m,animationName:function(){return m().animationConfig.name}}))}}),_.e("div",{class:"smartimation__content"},k.children))},"ga");
MZC.idomCompat=!0;_.qi(MZC,"yt-smartimation",{props:{className:_.Nq,settings:_.Nq}});var jf=function(){var k=_.p.apply(this,arguments)||this;k.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};k.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};k.shouldEnableSmartimation=!1;return k};
_.y(jf,_.p);jf.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
jf.prototype.onDataChanged=function(){var k,E;this.shouldEnableSmartimation=(((k=this.data)==null?void 0:(E=k.timedAnimationData)==null?void 0:E.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
jf.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var k=_.W(this.data.likeButton,_.s6),E=_.W(this.data.dislikeButton,_.s6);return!!((k==null?0:k.isToggled)||(E==null?0:E.isToggled))};
jf.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]]"}}}}}};
_.mt.Object.defineProperties(jf.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var k,E,S=((k=this.data)==null?void 0:(E=k.timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:"like-dislike",timings:S,enabled:this.shouldEnableSmartimation,experimentEnabled:S.length>0}}}});
jf.prototype.onDataChanged=jf.prototype.onDataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],jf.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jf.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],jf.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],jf.prototype,"likeButtonOverride",void 0);_.Z([_.H(),_.l("design:type",Object)],jf.prototype,"dislikeButtonOverride",void 0);
_.Z([_.U("shouldEnableSmartimation"),_.l("design:type",Object),_.l("design:paramtypes",[])],jf.prototype,"smartimationSettings",null);_.Z([_.il("data"),_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jf.prototype,"onDataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],jf);
_.b(jf,"ytd-segmented-like-dislike-button-renderer",function(){if(biT!==void 0)return biT;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return biT=k},{mode:1});var qGT;var zEY;(zEY=document.body)==null||zEY.setAttribute("rounded-container","");var Q6d={};Q6d.YtToggleButtonBehavior=[_.H5.YtActionHandlerBehavior,LG.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 k=this.data.isToggled;if(!this.isModal_(k)){if(!this.data.preventAutoToggle){this.toggle();var E={toggled:this.data.isToggled,actions:{}};E.actions[this.buttonIcon]=this.data.isToggled;_.Me(this.hostElement,"yt-toggle-button",E)}E=this.data.defaultServiceEndpoint||null;var S=this.data.toggledServiceEndpoint||null;if(E&&S||E&&this.data.preventAutoToggle)k=k?S:E,E=this.disableCommandHandlerOverride,_.Y("killswitch_toggle_button_behavior_resolve_command")||E?_.Qw(this.hostElement,
[k]):_.Ni(k,this.hostElement),_.Me(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:k})}},
stateChanged_:function(){var k=this.data;if(k){var E=k.isToggled;this._setEndpoint(this.computeEndpoint_(k));this._setServiceEndpoint(this.computeServiceEndpoint_(k));this._setButtonIcon(this.computeButtonIcon_(k,E));this._setButtonText(this.computeButtonText_(k,E));this._setButtonAccessibility(this.computeAccessibility_(k,E));this._setButtonTooltip(this.computeTooltip_(k,E));this._setButtonClass(this.computeButtonClass_(k,E));this._setIconPositionType(this.computeIconPositionType_(k));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=E):this.elements_.button.setAttribute("aria-pressed",E));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=E)}},
shouldSetIconActiveState_:function(){return _.Y("kevlar_system_icons")},
toggle:function(k){this.set("data.isToggled",k!==void 0?k:!this.data.isToggled);_.Y("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(k){if(k){var E,S;return!!((E=this.data)==null?0:(S=E.toggledServiceEndpoint)==null?0:S.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(k){return k&&k.defaultNavigationEndpoint||null},
computeButtonIcon_:function(k,E){var S=k&&k.defaultIcon?_.SF(k.defaultIcon.iconType):null;k=k&&k.toggledIcon?_.SF(k.toggledIcon.iconType):S;return E?k:S},
handleUpdateToggleButtonStateCommand_:function(k){k=k.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==k.buttonId&&this.toggle(k.toggled)},
computeButtonText_:function(k,E){return k?E&&k.toggledText||k.defaultText||null:null},
computeAccessibility_:function(k,E){return k?(E?this.get("toggledAccessibilityData.accessibilityData",k):this.get("accessibilityData.accessibilityData",k))||k.accessibility||null:null},
computeTooltip_:function(k,E){return k?E&&k.toggledTooltip||k.defaultTooltip||null:null},
computeButtonClass_:function(k,E){if(!k)return"";var S="",R=k.toggledStyle||k.style;if(E=E?R:k.style){E.styleType&&(E=E.styleType);try{S+=E.toLowerCase().replace(/_/g,"-")+" "}catch(V){_.sc(V,E,typeof E),_.dg(V)}}if(k=k.size){k.sizeType&&(k=k.sizeType);try{S+=k.toLowerCase().replace(/_/g,"-")+" "}catch(V){_.sc(V,k,typeof k),_.dg(V)}}return S.trim()},
computeIconPositionType_:function(k){return k&&k.iconPosition||null},
computeServiceEndpoint_:function(k){var E=k&&k.serviceEndpoint,S=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return E?E:S&&k.command?k.command:null},
handleUpdateToggleButtonTextAction_:function(k){k=k.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==k.buttonId&&(this.set("data.defaultText",k.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",k.toggledText),this.notifyPath("data.toggledText"))}}];_.B9("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Oi4=_.Y("web_button_rework")&&_.qg("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),DV=function(){var k=_.p.apply(this,arguments)||this;k.systemIcons=_.Y("kevlar_system_icons");k.roundedContainer=!0;return k};
_.y(DV,_.p);DV.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
DV.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var k=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var E={toggled:!!this.data.isToggled,actions:{}};E.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var S,R;E.actions.playlistId=(S=this.data.defaultServiceEndpoint)==null?void 0:(R=S.playlistEditEndpoint)==null?void 0:R.playlistId;_.Me(this.hostElement,"yt-toggle-button",E)}(k=k?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(k)}};
DV.prototype.onYtNavigate=function(k){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(k.detail.endpoint);E&&(k.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(E))};
_.mt.Object.defineProperties(DV,{template:{configurable:!0,enumerable:!0,get:function(){if(qGT===void 0){var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);qGT=k}k=qGT;return k}}});
DV.prototype.onYtNavigate=DV.prototype.onYtNavigate;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],DV.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],DV.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(Q6d.YtToggleButtonBehavior),_.l("design:type",Object)],DV.prototype,"ytToggleButtonBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],DV.prototype,"data",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],DV.prototype,"showTooltips",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],DV.prototype,"systemIcons",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],DV.prototype,"roundedContainer",void 0);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],DV.prototype,"onYtNavigate",null);
_.Z([_.D({is:"ytd-toggle-button-renderer",disableElementRegistration:Oi4})],DV);var GrC,Cnp;_.$g=new _.QE("PANEL_CONTROLLER_TOKEN");_.f6=new _.QE("SHEET_CONTROLLER_TOKEN");_.v3=new _.QE("DIALOG_CONTROLLER_TOKEN");GrC=new _.QE("DIALOG_CONTAINER_TOKEN");Cnp=new _.QE("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.b6=new _.QE("PERSISTENT_PANEL_CONTROLLER_TOKEN");var Ceh=_.Vi("DOWNLOAD",{},"Download"),kdh=_.Vi("DOWNLOADING",{},"Downloading"),Eci=_.Vi("DOWNLOADED",{},"Downloaded"),SHA=_.Vi("RETRY",{},"Retry");var ksp=_.f(function(k){var E=nct,S=function(){return""},R=RNI(k.data),V=VJA(k.data),N=N51(k.data),h=IAm(k.data);
E=function(){var J=k.data(),m=OAt(J,R(),V(),N(),h()),a=!!J.videoId,T=m.text;return{title:a?T:void 0,tooltip:a?void 0:T,accessibilityText:T,onTap:m.onTap,iconName:m.iconType,style:J.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:m.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:J.buttonSize}};
S={};S=_.SQ("ytDownloadButtonViewModelHost",(S.ytDownloadButtonViewModelIsHidden=function(){var J=k.data(),m=h();return J.playlistId||m()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||m()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},S));
return _.e("download-button-view-model",{class:S},_.e(_.yB,{data:E}))},"ha");
ksp.idomCompat=!0;var T5t=new _.QE("SUBMIT_API_SERVICE_TOKEN");var eNl,aAj,w81={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var reI=new _.QE("RENDERER_LOGGER_TOKEN");var Hph=new _.QE("RENDERER_STAMPER_OPTIONS_TOKEN");var PSb;_.J0=new O5j;PSb=new Map;var KYC="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),Ael=["notificationTextRenderer","notificationMultiActionRenderer"],
p8j="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),UKC=B5I(function(k){return _.dt(k==null?void 0:k.targetId)}).useUpdatableData;var gcl=0;_.cp.debugName="EjJbCe";var E1d=_.f(function(k){var E=k.data;k=k.className;_.vC(function(){E().formId||_.bM(Error("Jh"))});
var S=_.mKi(function(){return E().formId},function(){return E().beforeSubmitCommand},function(){return E().afterSubmitCommand}),R=S.submitForm,V=S.isValid,N=S.isSubmitting,h=function(){return{state:E().isDisabled||!V()||N()?"disabled":"active"}};
return _.e("yt-submit-button-view-model",{class:_.SQ("ytSubmitButtonViewModelHost",k)},_.e(_.cp,{data:function(){return E().button}},{buttonViewModel:function(J){return _.e(_.yB,{data:J.data,
buttonOverrides:h,onClick:R})}}))},"ka");var RcC=_.f(function(k){var E=k.backgroundLottieRef;var S=k.foregroundLottieRef;var R=k.children;var V=k.wrapperClass;var N=k.disableAnimation;k=function(){return(_.Y("web_animated_actions")||_.Y("web_animated_actions_v2"))&&!(N==null?0:N())};
return _.e("yt-animated-action",{class:_.SQ("ytAnimatedActionHost",V)},_.e("div",{class:"ytAnimatedActionContentWithBackground"},_.e(_.t,{cond:k,then:function(){return _.e(STY,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:E==null?void 0:E(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(uZI()?"dark":"light")+"_v5.json"}}}})}}),R),_.e(_.t,{cond:k,
then:function(){return _.e(STY,{lottiePlayerProps:function(){return{animationRef:S==null?void 0:S(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(uZI()?"dark":"light")+"_v4.json"}}}})}}))},"la");
RcC.idomCompat=!0;var STY=_.f(function(k){var E=k.wrapperClass;var S=k.lottieClass;var R=k.lottiePlayerProps;return _.e("div",{class:_.SQ("ytAnimatedActionLottie",E),"aria-hidden":"true"},_.e(_.KG,{className:S,data:R,animationName:function(){return R().animationConfig.name}}))},"ma");var xKR={isOpen:!1};var jUh={isAllowed:!1};var $Kb={errorMessage:"",title:"",privacy:"",isDisabled:!0};var vcI={isOpen:!1};var Zpl={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var Vb8={response:void 0};var sUI=function(k,E){k=k===void 0?Vb8:k;switch(E.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},k,{response:E.payload});default:return k}};var N48={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var lAl=function(k,E){k=k===void 0?N48:k;switch(E.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},k,{nextDisabled:E.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},k,{nextCommand:E.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},k,{footerSubmissionData:E.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},k,{isImpersonationValid:E.payload});default:return k}};var Itp={reportFormData:void 0,reportDetailsFormData:void 0};var MJA=function(k,E){k=k===void 0?Itp:k;switch(E.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},k,{reportFormData:E.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},k,{reportDetailsFormData:E.payload});default:return k}};var n1z=void 0;_.Y("mweb_enable_redux_store_on_demand")||(n1z=new fr(qHR()));var ZV=_.Y("enable_web_delhi_icons");var i_Y=_.f(function(k){k=_.dJ(k,{themeOverride:void 0,animationRef:{}});var E=k.animatedIconType,S=k.active,R=k.themeOverride,V=k.animationRef;k=k.staticIconFn;var N=_.n(_.yg(void 0,void 0,"l48agc")),h=N.next().value,J=N.next().value,m=function(){a:{var r=E();var x=R==null?void 0:R();var L;x=(x==null?void 0:x.useDarkTheme)||((L=_.en().resolve(_.mz(_.jF)))==null?void 0:L());switch(r){case "LIKE":n1z||(n1z=new fr(qHR()));r=(r=uMe(n1z.getState()))&&r.animationLightUrl&&r.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:x?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:x?r.animationDarkUrl:r.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(r){x=r;break a}x="animated_like_icon_"+(x?"dark":"light")+"_"+(ZV?"v5":"v4");x={lottiePlayerProps:{animationConfig:{name:x,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+x+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(ZV?" animated-like-icon-delhi":"")}}},totalFrames:ZV?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":x={lottiePlayerProps:{animationConfig:{name:x?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(x?"dark":"light")+(ZV?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(ZV?" animated-subscribe-icon-delhi":"")}}},totalFrames:ZV?120:79,lazyLoad:!1};break a}x=
void 0}return x},a=function(){var r,x;
return(x=(r=m())==null?void 0:r.lottiePlayerProps.animationConfig.name)!=null?x:""},T=function(){if(m()){var r=m().lottiePlayerProps.animationConfig.path;
return TZ.get(r)||h()}};
N=_.n(_.yg(!1,void 0,"sDrGId"));var w=N.next().value;N=N.next().value;var P=QUe(N),B=function(){var r=m(),x,L,q;return(q=r==null?void 0:(x=r.lottiePlayerProps.animationConfig)==null?void 0:(L=x.rendererSettings)==null?void 0:L.className)!=null?q:""},F=void 0,K=void 0;
_.vX(function(){var r=m(),x=a(),L=T(),q=w(),M=S();if(r&&(K!==x&&(K=x,F=M,x=V(),P.animationConfig=r.lottiePlayerProps.animationConfig,P.animationRef=x,L&&(P.animationConfig.animationData=L,P.animationConfig.path=void 0),x=r.lottiePlayerProps.animationConfig.path,!TZ.get(x)&&r.lazyLoad&&x&&zNI(x,J)),!(q||r.lazyLoad&&!L))){if(L=!V().lottieEl)M?(q=r.totalFrames,P.animationConfig.initialSegment=[q-1,q]):P.animationConfig.initialSegment=void 0;if(F!==M&&!L)if(L=V(),M){var d;(d=L.lottieEl)==null||d.playSegments([0,
r.totalFrames],!0)}else{var z;(z=L.lottieEl)==null||z.playSegments([0,1],!0)}F=M}},"RQVZ1d");
return _.e("animated-icon",{class:"ytAnimatedIconHost"},_.e(_.t,{cond:function(){var r,x;return!((r=m())==null||!r.lottiePlayerProps.animationConfig.path||((x=m())==null?0:x.lazyLoad)&&!T()||w())},
then:function(){return _.e(_.KG,{data:P,animationName:a,className:B,animationRef:V})},
else:k}))},"oa");_.dR=_.f(function(k){var E=_.VH("yt-subscribe-button-view-model"),S=_.VH("div"),R=_.VH("div"),V=_.RE(),N=_.RE(),h=_.RE(),J=_.iK(kre,function(){return k.data().stateEntityStoreKey}),m=_.iK(ESt,function(){var IC,md;
return(md=(IC=k.data().notificationStateEntityStoreKeys)==null?void 0:IC.subsNotificationStateKey)!=null?md:""}),a=function(){return!k.data().enableSubscribeButtonPostClickAnimation},T=_.n(_.yg(0,void 0,"YtsSKb")),w=T.next().value,P=T.next().value;
T=_.n(_.yg(0,void 0,"V6JxRe"));var B=T.next().value,F=T.next().value;T=_.n(_.yg(!1,void 0,"JUCSZ"));var K=T.next().value,r=T.next().value;T=_.n(_.yg(!1,void 0,"oV6jwf"));var x=T.next().value,L=T.next().value;T=_.n(_.yg(!1,void 0,"hK1Whe"));var q=T.next().value,M=T.next().value,d;T=_.n(_.yg(!1,void 0,"Asaolf"));var z=T.next().value,kb=T.next().value,TI=function(){L(!0);_.aE(_.ZJ,function(){L(!1)},1500)};
_.vX(function(){var IC=x();_.FF(function(){IC&&!a()&&J()&&tZi(V,N,h)})},"Qq6Hsf");
_.vX(function(){var IC=J();_.FF(function(){if(!a()&&IC){var md;((md=k.animateWidth)==null?0:md.call(k))&&auh(E.value,!!IC.subscribed,w(),B());var Kj,Lj;((Kj=d)==null?0:Kj.subscribed)||!IC.subscribed||IC.key!==((Lj=d)==null?void 0:Lj.key)||TI();d=IC}})},"hog8te");
T=_.HX(function(){var IC,md,Kj,Lj=k.data(),H0=!((IC=J())==null||!IC.subscribed);IC=!((md=k.isOverlay)==null||!md.call(k));md=K()?E:void 0;var TG=(Kj=m())==null?void 0:Kj.state;Kj=z();eEA(Lj,TG);return CSt({model:Lj,subscribed:H0,isOverlay:IC,element:md,notificationState:TG,disableTextEllipsis:!0,focused:Kj})},void 0,"hc1PRd");
var a1=function(){var IC;if(!a()&&((IC=k.animateWidth)==null?0:IC.call(k))&&(S==null?0:S.value)&&(R==null?0:R.value)&&!q()){IC=J();var md=_.n((IC==null?0:IC.subscribed)?[S,R]:[R,S]),Kj=md.next().value;md=md.next().value;Kj=Math.ceil(Kj.value.getBoundingClientRect().width);md=Math.ceil(md.value.getBoundingClientRect().width);P(Kj);F(md);auh(E.value,!(IC==null||!IC.subscribed),Kj,md);M(!0)}},Ah=_.RZ(function(IC){a1();
var md=J();md&&(IC.detail.endpoint.subscribeEndpoint||IC.detail.endpoint.unsubscribeEndpoint)&&hEI(E.value,!md.subscribed,md)}),th=function(){var IC=_.en().resolve(_.mz(_.tr));
IC&&kb(IC.isKeyBoardInUse())},He=function(){kb(!1)};
_.Rs("yt-player-subscribe",function(IC){var md=J();md&&IC===k.data().channelId&&hEI(E.value,!0,md)});
_.Rs("yt-player-unsubscribe",function(IC){var md=J();md&&IC===k.data().channelId&&hEI(E.value,!1,md)});
_.Rs("yt-update-subscribe-button-action",function(IC){IC=_.W(IC,j04);var md=J();md&&IC&&IC.channelId===k.data().channelId&&hEI(E.value,!!IC.subscribed,md)});
_.b$(function(){E.value&&(E.value.addEventListener("focusin",th),E.value.addEventListener("focusout",He));var IC=_.uM(_.ZJ,function(){a1()});
r(!0);_.bI(function(){_.ZJ.cancelJob(IC);E.value&&(E.value.removeEventListener("focusin",th),E.value.removeEventListener("focusout",He))})});
var ve=function(){var IC,md,Kj;if(Kj=!((IC=J())==null||!IC.subscribed))IC=!!k.data().disableNotificationBell,Kj=(md=m())==null?void 0:md.state,Kj=!IC&&!!Kj;return Kj},Xm=function(){var IC;
return!((IC=J())==null?0:IC.subscribed)},U5=function(){var IC,md;
if(md=Xm()){md=!!k.data().disableNotificationBell;var Kj=(IC=m())==null?void 0:IC.state;md=!md&&!!Kj}return md},l4={},gY={};
return _.e("yt-subscribe-button-view-model",{class:_.SQ(k.className,"ytSubscribeButtonViewModelHost",(l4.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var IC,md;return!((IC=J())==null||!IC.subscribed)&&((md=k.animateWidth)==null?void 0:md.call(k))&&x()},l4.ytSubscribeButtonViewModelHostHidden=function(){var IC;
return!((IC=J())==null?0:IC.subscribed)&&k.data().hideWhenUnsubscribed},l4)),
el:E,"on:yt-service-request-sent":Ah},_.e(RcC,{backgroundLottieRef:V,foregroundLottieRef:N,wrapperClass:_.SQ("ytSubscribeButtonViewModelAnimatedActionWrapper",(gY.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var IC;return((IC=k.animateWidth)==null?void 0:IC.call(k))&&x()},gY.ytSubscribeButtonViewModelStaticWidth=function(){var IC;
return!((IC=k.animateWidth)==null?0:IC.call(k))},gY)),
disableAnimation:a},_.e("div",{el:S,class:"ytSubscribeButtonViewModelContainer"},_.e(_.FA,{data:T,icon:function(){return _.e(_.t,{cond:ve,then:function(){var IC=function(){var md;return iiC((md=m())==null?void 0:md.state)};
return _.e(_.t,{cond:function(){return a()||IC()!=="NOTIFICATIONS_NONE"},
then:function(){return _.e(_.i_,{icon:IC})},
else:function(){return _.e(i_Y,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:h})}})}})},
secondaryIconName:function(){return ve()?"EXPAND":void 0}}))),_.e("div",{el:R,
class:"ytSubscribeButtonViewModelInvisible"},_.e(_.t,{cond:function(){var IC;return((IC=k.animateWidth)==null?void 0:IC.call(k))&&!a()&&!q()},
then:function(){return _.e(_.FA,{data:_.HX(function(){var IC;return CSt({model:k.data(),subscribed:Xm(),isOverlay:!((IC=k.isOverlay)==null||!IC.call(k)),element:E,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var IC;return U5()?iiC((IC=m())==null?void 0:IC.state):void 0},
secondaryIconName:function(){return U5()?"EXPAND":void 0}})}})))},"ra");
_.dR.idomCompat=!0;var hcY=_.f(function(k){var E=k.data;var S=_.iK(kre,function(){return E().subscriptionStateEntityKey});
return _.e(_.t,{cond:function(){var R=E(),V=S();return!R.hideWhenUnsubscribed||(V==null?0:V.subscribed)?_.W(E().button,_.qz):void 0},
then:function(R){return _.e("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.e(_.yB,{data:R,buttonOverrides:function(){return{toggled:!0}}}))}})},"sa");
hcY.idomCompat=!0;var JL5,sz;JL5=_.f(function(k){return _.e(_.cp,{data:function(){return k.actionRow().actions}},{buttonViewModel:function(E){var S=E.data;
return _.e(sz,{isRow:k.isRow,isIconOnlyButton:function(){return Tz1(S())},
useIntrinsicWidth:k.useIntrinsicWidth},_.e(_.yB,{data:S}))},
subscribeButtonViewModel:function(E){return _.e(sz,{isRow:k.isRow},_.e(_.dR,{data:E.data,isOverlay:!1,animateWidth:function(){return!k.isRow()}}))},
downloadButtonViewModel:function(E){var S=E.data;return _.e(sz,{isRow:k.isRow,isIconOnlyButton:function(){return!!S().playlistId}},_.e(ksp,{data:S}))},
submitButtonViewModel:function(E){var S=E.data;return _.e(sz,{isRow:k.isRow,isIconOnlyButton:function(){var R=S();return Tz1(_.W(R==null?void 0:R.button,_.qz))}},_.e(E1d,{data:S}))},
toggleButtonViewModel:function(E){var S=E.data;return _.e(sz,{isRow:k.isRow,isIconOnlyButton:function(){var R=S();return Tz1(_.W(R.isToggled?R.toggledButtonViewModel:R.defaultButtonViewModel,_.qz))}},_.e(_.bL,{data:S}))},
subscribePlusButtonViewModel:function(E){return _.e(sz,{isRow:k.isRow},_.e(hcY,{data:E.data}))}})},"ta");
sz=_.f(function(k){var E={};return _.e("div",{class:_.SQ("ytFlexibleActionsViewModelAction",(E.ytFlexibleActionsViewModelActionRowAction=k.isRow,E.ytFlexibleActionsViewModelActionIntrinsicWidth=k.useIntrinsicWidth,E.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,E.ytFlexibleActionsViewModelActionIconOnlyButton=k.isIconOnlyButton,E))},k.children)},"ua");
_.l6=_.f(function(k){var E=function(){var R;return((R=k.layout)==null?void 0:R.call(k))===1},S={};
return _.e("yt-flexible-actions-view-model",{class:_.SQ("ytFlexibleActionsViewModelHost",k.className,(S.ytFlexibleActionsViewModelInline=function(){return!E()},S.ytFlexibleActionsViewModelScrollable=function(){return k.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},S))},_.e(_.jw,{each:function(){return k.data().actionsRows||[]}},function(R){return _.e(_.t,{cond:E,
then:function(){return _.e("div",{class:"ytFlexibleActionsViewModelActionRow"},_.e(JL5,{actionRow:R,isRow:E,useIntrinsicWidth:function(){return!!k.data().respectActionIntrinsicWidth}}))},
else:function(){return _.e(JL5,{actionRow:R,isRow:E})}})}))},"va");_.qi(_.l6,"yt-flexible-actions-view-model",{props:{data:_.Nq,layout:_.Nq,justifyContentOverride:_.Nq,className:_.Nq}});_.M1=_.f(function(k){var E=_.iK(U3,function(){var V;return(V=k.data().dislikeEntityKey)!=null?V:""}),S=_.HX(function(){var V=E();
return V?V.likeStatus==="DISLIKE":_.W(k.data().toggleButtonViewModel,_.QK).isToggled},void 0,"fNr9he"),R=_.HX(function(){return Object.assign({},_.W(k.data().toggleButtonViewModel,_.QK),{isToggled:S()})},void 0,"AezoCc");
return _.e("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.e(_.bL,{data:R,buttonShapeOverrides:k.buttonShapeOverrideables,onToggle:function(V){var N=E();N&&V!==(N.likeStatus==="DISLIKE")&&N.key&&_.bl(_.wE("likeStatusEntity",N.key,{likeStatus:V?"DISLIKE":"INDIFFERENT",hadUserInteraction:V}))}}))},"wa");
_.M1.idomCompat=!0;_.q1=_.f(function(k){var E=_.Y("web_supports_animations_api"),S=dX(function(P){var B=a();if(!P){var F,K;return{numberText:(K=B==null?void 0:(F=B.likeCountIfIndifferent)==null?void 0:F.content)!=null?K:"",numberValue:Number(B==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var r;F=(B==null?void 0:(r=B.likeCountIfIndifferent)==null?void 0:r.content)!==P.numberText;if(J()||!F)return P;var x;return{numberText:(B==null?void 0:(x=B.likeCountIfIndifferent)==null?void 0:x.content)||
"",numberValue:Number(B==null?void 0:B.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!B}}),R=dX(function(P){var B=a();
if(!P){var F,K;return{numberText:(K=B==null?void 0:(F=B.likeCountIfLiked)==null?void 0:F.content)!=null?K:"",numberValue:Number(B==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var r;F=(B==null?void 0:(r=B.likeCountIfIndifferent)==null?void 0:r.content)!==P.numberText;if(J()||!F)return P;var x;return{numberText:(B==null?void 0:(x=B.likeCountIfLiked)==null?void 0:x.content)||"",numberValue:Number(B==null?void 0:B.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!B}}),V=_.n(_.yg(void 0,
void 0,"xldjge")),N=V.next().value,h=V.next().value,J=N,m=_.iK(U3,function(){var P,B;
return(B=(P=k.data())==null?void 0:P.likeStatusEntityKey)!=null?B:""}),a=_.iK(hDR,function(){var P,B;
return((P=k.likeCountEntity)==null?void 0:(B=P.call(k))==null?void 0:B.key)||""}),T=_.HX(function(){var P;
return((P=m())==null?void 0:P.likeStatus)==="LIKE"},void 0,"B3od5e"),w=function(){var P;
return E&&!((P=k.likeCountEntity)==null||!P.call(k))};
return _.e("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.e(_.bL,{data:function(){var P=Object,B=P.assign,F;var K=_.W((F=k.data())==null?void 0:F.toggleButtonViewModel,_.QK);return B.call(P,{},K||{},{isToggled:T()})},
buttonShapeOverrides:k.buttonShapeOverrideables,animatedTextPropsDefault:function(){return w()?S():void 0},
animatedTextPropsToggled:function(){return w()?R():void 0},
onToggle:function(P){wLh(P,m(),J(),h)},
style:function(){var P;return((P=k.disableIconAnimation)==null?0:P.call(k))?void 0:{animateIcon:"true"}}}))},"xa");
_.q1.idomCompat=!0;var cLp=_.f(function(k){var E=function(){return _.W(k.data().likeButtonViewModel,_.Dr)},S=function(){var V;
return((V=E())==null?void 0:V.likeStatusEntityKey)||""},R=_.HX(function(){var V,N;
var h=(N=_.iK(U3,S)())!=null?N:(V=E())==null?void 0:V.likeStatusEntity;V=k.data();var J;V=(V==null?void 0:(J=V.timedAnimationData)==null?void 0:J.animationTiming)||[];return{uniqueId:"like-dislike",timings:V,enabled:(h==null?void 0:h.likeStatus)==="INDIFFERENT"&&V.length>0,experimentEnabled:V.length>0}},void 0,"zZ3GQb");
return _.e("segmented-like-dislike-button-view-model",{class:_.SQ("ytSegmentedLikeDislikeButtonViewModelHost",k.className),"button-renderer":!0},_.e(MZC,{settings:R},_.e("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.e(_.t,{cond:E,then:function(V){return _.e(_.q1,{data:V,likeCountEntity:function(){return k.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.Y("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.e(_.t,{cond:function(){return _.W(k.data().dislikeButtonViewModel,_.j_)},
then:function(V){return _.e(_.M1,{data:V,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"ya");
cLp.idomCompat=!0;_.qi(cLp,"segmented-like-dislike-button-view-model",{props:{data:_.Nq,className:_.Nq}});var mcY=_.f(function(k){var E=k.data;var S=k.className;var R=k.setMinWidth;var V=k.forceIconOnly;var N=_.VH("account-link-button-view-model"),h=_.iK(_.PnR,function(){var P;return(P=E().accountLinkStatusEntityKey)!=null?P:""}),J=_.iK(_.PnR,function(){var P;
return(P=E().accountLinkStatusSecondaryEntityKey)!=null?P:""}),m=function(){if(!_.Y("web_account_link_secondary_killswitch")){var P,B;
return((P=h())==null?void 0:P.linked)||((B=J())==null?void 0:B.linked)}var F;return(F=h())==null?void 0:F.linked};
_.vX(function(){var P=h();if(P){var B=hfC(new iwd,Ia2(new N_8,!!P.linked));_.Ef().then(function(F){F&&(F.setAccountLinkState(_.xW(B.JSC$12316_serializeBinary(),4)),F.updateAccountLinkingConfig(!!P.linked))})}},"IvZF7");
var a=function(){return _.W(E().toggleButtonViewModel,_.QK)};
_.Rs("yt-signal-action-show-account-link-dialog",function(){if(a()){var P=m()?a().toggledButtonViewModel:a().defaultButtonViewModel;P=_.W(P,_.qz);var B;if((B=h())==null?0:B.isWarning){B=_.W(E().warningButtonViewModel,_.qz);if(!B){_.kr(Error("Kh"));return}P=B}var F;(B=_.Uk((F=P)==null?void 0:F.onTap))&&_.kA([B],N.value)}else _.kr(Error("Lh"))});
var T=function(){var P=a();return Object.assign({},P,{isToggled:m()})},w=function(){return(V==null?0:V())?{iconPosition:"icon-only"}:{}};
return _.e("account-link-button-view-model",{class:_.SQ("ytwAccountLinkButtonViewModelHost",S,function(){return(R==null?0:R())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:N,"button-renderer":!0},_.e("div",null,_.e(_.t,{cond:function(){var P;if((P=h())==null?0:P.isWarning)return(P=_.W(E().warningButtonViewModel,_.qz))||_.kr(Error("Kh")),P},
then:function(P){return _.e(_.yB,{data:P,buttonOverrides:w})},
else:function(){return _.e(_.bL,{data:T,buttonShapeOverrides:w})}})))},"Aa");_.qi(mcY,"account-link-button-view-model",{props:{data:_.Nq,className:_.sk,setMinWidth:_.sk,forceIconOnly:_.sk}});_.B9("menuRenderer","menuRenderer","ytd-menu-renderer");
var ecd={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"}},
atj=_.Y("web_fix_missing_action_buttons")?100:200,zF=function(){var k=_.p.apply(this,arguments)||this;k.safeArea=!_.Y("kevlar_flex_menu_safe_area_killswitch");k.tonalOverride=!1;k.threeDotSize="M";k.isOverlay=!1;k.useOverlayDark=!1;k.topLevelIconsOnly=!1;k.JSC$14797_lastWidth=0;k.maybeUpdateFlexibleMenu=function(){_.Y("web_fix_missing_action_buttons")?requestAnimationFrame(k.maybeUpdateFlexibleMenuImpl):k.maybeUpdateFlexibleMenuImpl()};
k.maybeUpdateFlexibleMenuImpl=function(){var E;if((E=k.data)!=null&&E.flexibleItems){k.maybeFlushDebouncer();E=k.hostElement.clientWidth;var S=E>k.JSC$14797_lastWidth,R,V=((R=k.topLevelButtonsContainer)==null?void 0:R.scrollHeight)||0,N;R=((N=k.flexibleItemButtonsContainer)==null?void 0:N.scrollHeight)||0;N=k.hostElement.scrollHeight>Math.max(V,R)+8;S?(k.resetFlexibleItems(),k.JSC$14797_lastWidth=k.hostElement.clientWidth,k.maybeUpdateFlexibleMenu()):N&&(k.shrinkFlexibleMenu(),k.JSC$14797_lastWidth=
E)}};
k.computeThreeDotButtonShape=function(){if(k.tonalOverride)return Object.assign({},{onTap:function(){k.onOverflowTap()},
iconPosition:"icon-only",style:k.isOverlay?k.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:k.threeDotSize,state:"active",accessibilityLabel:k.computeAccessibilityLabel(k.data)},k.threeDotButtonOverride)};
k.onOverflowTap=function(){if(k.data.fetchMenuCommand)_.en().resolve(_.t3).resolveCommand(k.data.fetchMenuCommand,{form:{element:k.hostElement}});else if(k.data.isDisabled&&k.data.disabledCommand)_.Ni(k.data.disabledCommand,k.hostElement);else{var E=k.createMenuRendererVe(),S={items:k.items};k.data.menuPopupAccessibility&&(S.menuPopupAccessibility=k.data.menuPopupAccessibility);k.data.footer&&(S.footer=k.data.footer);E={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:S},veData:E}};
_.en().resolve(_.f6).openSheet({openPopupActionCommand:E},k.hostElement)}};
return k};
_.y(zF,_.p);_.I=zF.prototype;_.I.updateButtonOverrides=function(){if(!_.Y("menu_renderer_label_update_upkillswitch")){var k=_.Cc(this.hostElement).querySelector("yt-button-view-model");k&&(k.buttonOverrides=this.buttonOverrides)}};
_.I.computeHasItems=function(){var k;return((k=this.topLevelButtonData)==null?void 0:k.length)||this.hasFlexibleItems};
_.I.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.I.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.VO(this.hostElement,{"--ytd-menu-renderer-button-color":_.HT(this.data.iconColor)}))};
_.I.onStamperFinished=function(){this.JSC$14797_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.I.setupFlexibleMenu=function(){var k=this,E;(E=this.data)!=null&&E.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.NJ(this.maybeUpdateFlexibleMenu,atj,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){k.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))};
_.I.maybeFlushDebouncer=function(){if(_.Y("web_replace_formatted_with_attributed_string")){var k;(k=this.topLevelButtons)==null||k.forEach(function(S){var R;(S=(R=S.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&gG1(S)});
var E;(E=this.flexibleItemButtons)==null||E.forEach(function(S){var R;(S=(R=S.getElementsByTagName("yt-attributed-string"))==null?void 0:R[0])&&gG1(S)})}};
_.I.resetFlexibleItems=function(){var k;if((k=this.data)!=null&&k.flexibleItems){_.Y("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var E;this.flexAsTopLevelButtons=(E=this.data.flexibleItems)==null?void 0:E.map(function(S){return _.W(S,_.bGC).topLevelButton});
_.Y("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.I.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.I.shrinkFlexibleMenu=function(){var k;(k=this.flexAsTopLevelButtons)!=null&&k.length&&(this.flexAsTopLevelButtons=[].concat(_.$e(this.flexAsTopLevelButtons.slice(0,-1))))};
_.I.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:ecd,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:ecd,events:!0}}};
_.I.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.I.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.I.detached=function(){this.icon="MORE_VERT"};
_.I.computeTopLevelButtonData=function(k){if(!k)return[];var E;k=(E=k==null?void 0:k.topLevelButtons)!=null?E:[];return _.fO.unsafeClone([].concat(_.$e(k)))};
_.I.computeItems=function(k,E){if(!k)return[];var S=[];if(E){var R=(k.flexibleItems||[]).map(function(h){return _.W(h,_.bGC)});
R=_.n(R);for(var V=R.next();!V.done;V=R.next())V=V.value,E.includes(V.topLevelButton)||(V=V.menuItem)&&S.push(V)}var N;k=(N=k==null?void 0:k.items)!=null?N:[];return[].concat(_.$e(S),_.$e(k))};
_.I.computeMenuActive=function(k,E){return k||E};
_.I.onPopupOpened=function(){this.overlayOpen=!0;_.Me(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.I.onPopupClosed=function(){this.overlayOpen=!1;_.Me(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.I.onPopupCanceled=function(){this.overlayOpen=!1;_.Me(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.I.computeAccessibilityLabel=function(k){return this.get("accessibility.accessibilityData.label",k)};
_.I.isHidden=function(k,E){return this.tonalOverride||!k?!0:k.fetchMenuCommand||k.isDisabled&&k.disabledCommand?!1:!(E==null?0:E.length)};
_.I.isModernOverflowHidden=function(k,E){return this.tonalOverride&&k?k.fetchMenuCommand?!1:!(E==null?0:E.length):!0};
_.I.createMenuRendererVe=function(){var k=this.data.trackingParams,E=_.Fe(),S=_.Wi();return k&&E&&S?(k=_.tV(k),S=_.kh(7591),_.Y("combine_ve_grafts")?_.Bq(_.JV(),S,k):_.rq(E,k,S),S):null};
_.mt.Object.defineProperties(zF.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.flexAsTopLevelButtons)==null||!k.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
zF.prototype.onPopupCanceled=zF.prototype.onPopupCanceled;zF.prototype.onPopupClosed=zF.prototype.onPopupClosed;zF.prototype.onPopupOpened=zF.prototype.onPopupOpened;zF.prototype.tonalOverrideChanged=zF.prototype.tonalOverrideChanged;zF.prototype.resetFlexibleItems=zF.prototype.resetFlexibleItems;zF.prototype.setupFlexibleMenu=zF.prototype.setupFlexibleMenu;zF.prototype.iconButtonColorChanged=zF.prototype.iconButtonColorChanged;zF.prototype.updateButtonOverrides=zF.prototype.updateButtonOverrides;
_.Z([_.g(_.Jy),_.l("design:type",Object)],zF.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],zF.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.JO("#button-shape"),_.l("design:type",HTMLElement)],zF.prototype,"buttonShape",void 0);_.Z([_.JO("#button"),_.l("design:type",Object)],zF.prototype,"button",void 0);
_.Z([_.H(),_.l("design:type",Object)],zF.prototype,"data",void 0);_.Z([_.H({computed:"computeTopLevelButtonData(data)"}),_.l("design:type",Array)],zF.prototype,"topLevelButtonData",void 0);_.Z([_.H(),_.l("design:type",Array)],zF.prototype,"flexAsTopLevelButtons",void 0);_.Z([_.H({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.l("design:type",Array)],zF.prototype,"items",void 0);_.Z([_.H({value:"MORE_VERT"}),_.l("design:type",String)],zF.prototype,"icon",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],zF.prototype,"safeArea",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.l("design:type",Boolean)],zF.prototype,"menuActive",void 0);_.Z([_.H(),_.l("design:type",Boolean)],zF.prototype,"menuFocused",void 0);_.Z([_.H({value:"bottom"}),_.l("design:type",String)],zF.prototype,"buttonTooltipPosition",void 0);_.Z([_.H(),_.l("design:type",Boolean)],zF.prototype,"overlayOpen",void 0);
_.Z([_.H({value:!0}),_.l("design:type",Boolean)],zF.prototype,"forceIconButton",void 0);_.Z([_.H(),_.l("design:type",Boolean)],zF.prototype,"styleActionButton",void 0);_.Z([_.H(),_.l("design:type",Boolean)],zF.prototype,"disableTextTransformOnButtons",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],zF.prototype,"tonalOverride",void 0);_.Z([_.H(),_.l("design:type",Object)],zF.prototype,"threeDotSize",void 0);
_.Z([_.H(),_.l("design:type",Object)],zF.prototype,"threeDotButtonOverride",void 0);_.Z([_.H(),_.l("design:type",Object)],zF.prototype,"isOverlay",void 0);_.Z([_.H(),_.l("design:type",Object)],zF.prototype,"useOverlayDark",void 0);_.Z([_.H({computed:"computeButtonOverride(tonalOverride)"}),_.l("design:type",Object)],zF.prototype,"buttonOverride",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],zF.prototype,"hasCustomIconColor",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("flexAsTopLevelButtons"),_.l("design:type",Object),_.l("design:paramtypes",[])],zF.prototype,"hasFlexibleItems",null);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.l("design:type",Boolean)],zF.prototype,"hasItems",void 0);_.Z([_.H(),_.l("design:type",Object)],zF.prototype,"topLevelIconsOnly",void 0);
_.Z([_.il("topLevelIconsOnly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zF.prototype,"updateButtonOverrides",null);_.Z([_.U("topLevelIconsOnly"),_.l("design:type",Object),_.l("design:paramtypes",[])],zF.prototype,"buttonOverrides",null);_.Z([_.JO("#top-level-buttons-computed"),_.l("design:type",HTMLElement)],zF.prototype,"topLevelButtonsContainer",void 0);_.Z([_.cu(".top-level-buttons > *"),_.l("design:type",Array)],zF.prototype,"topLevelButtons",void 0);
_.Z([_.JO("#flexible-item-buttons"),_.l("design:type",HTMLElement)],zF.prototype,"flexibleItemButtonsContainer",void 0);_.Z([_.cu("#flexible-item-buttons > *"),_.l("design:type",Array)],zF.prototype,"flexibleItemButtons",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zF.prototype,"iconButtonColorChanged",null);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zF.prototype,"setupFlexibleMenu",null);_.Z([_.ac("topLevelIconsOnly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zF.prototype,"resetFlexibleItems",null);_.Z([_.il("tonalOverride"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zF.prototype,"tonalOverrideChanged",null);
_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zF.prototype,"onPopupOpened",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zF.prototype,"onPopupClosed",null);_.Z([_.nv("yt-popup-canceled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zF.prototype,"onPopupCanceled",null);
_.b(zF,"ytd-menu-renderer",function(){if(rl2===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);rl2=k}k=rl2;return k},{mode:2});var tbz;var T42;_.QD=_.f(function(k){var E=k.data;var S=function(){if(E().icon)a:{var R={iconName:E().icon};for(var V=_.en().resolve(_.Rv),N=_.n([12,24]),h=N.next();!h.done;h=N.next()){var J=h.value;h=Object.assign({},R,{iconStyle:"youtube_fill",iconSize:J});J=Object.assign({},R,{iconStyle:"youtube_outline",iconSize:J});if(V.resolveIcon(h)){R=h;break a}if(V.resolveIcon(J)){R=J;break a}}R=void 0}else R=void 0;return R};
k={};return _.e("badge-shape",{class:_.SQ("yt-badge-shape",function(){return oSm(E().type)},(k["yt-badge-shape--overlay"]=function(){return E().isOverlay},k["yt-badge-shape--ads-include-dot"]=function(){return E().adsIncludeDot},k["yt-badge-shape--thumbnail-badge"]=function(){a:switch(E().type){case 17:case 18:case 19:var R=!0;
break a;default:R=!1}return R},k["yt-badge-shape--status-badge"]=function(){a:switch(E().type){case 12:case 13:case 14:case 15:case 16:var R=!0;
break a;default:R=!1}return R},k["yt-badge-shape--no-text"]=function(){return!E().text},k["yt-badge-shape--modern"]=function(){return E().modern||_.Y("web_modern_badge_shape")},k)),
style:_.nU({"background-color":function(){var R;return(R=E().customColors)==null?void 0:R.backgroundColor}}),
role:function(){return E().accessibilityText?"img":void 0},
"aria-label":function(){return E().accessibilityText}},_.e(_.t,{cond:function(){return E().animation},
then:function(R){return _.e(_.KG,{className:"yt-badge-shape__icon",data:R,animationName:function(){return R().animationConfig.name||""}})}}),_.e(_.t,{cond:function(){var R;
return S()&&!((R=E())==null?0:R.animation)},
then:function(){return _.e("div",{class:"yt-badge-shape__icon"},_.e(lSh,{data:function(){return S()}}))}}),_.e("div",{class:"yt-badge-shape__text"},function(){var R;
return(R=E())==null?void 0:R.text}))},"Ba");
_.QD.idomCompat=!0;_.qi(_.QD,"badge-shape",{props:{data:_.Nq}});var Oz=function(){var k=_.p.apply(this,arguments)||this;k.systemIcons=_.Y("kevlar_system_icons");k.animated=_.Y("animated_live_badge_icon");k.useBadgeShape=_.Y("web_badge_shape_defrag");return k};
_.y(Oz,_.p);_.I=Oz.prototype;_.I.addTooltips=function(){for(var k=_.Cc(this.hostElement).querySelectorAll(".badge"),E=0,S;S=k[E++];){var R=this.repeatElement.itemForElement(S);S=_.Cc(S);S.lastChild&&S.lastChild.is==="tp-yt-paper-tooltip"&&S.removeChild(S.lastChild);if(R=R.metadataBadgeRenderer&&R.metadataBadgeRenderer.tooltip){var V=_.c5("tp-yt-paper-tooltip");(0,_.Rc)(V).textContent=R;V.setAttribute("position","top");V.setAttribute("aria-hidden","true");S.appendChild(V)}}};
_.I.badgesChanged=function(){var k=this;_.O7().parkOrScheduleJob(function(){k.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.I.standaloneRoundedBadgeChanged=function(){var k=this.useRoundedBadge?this.useRoundedBadge:void 0;k&&(this.useRoundedBadge=k)};
_.I.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.I.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.I.computeStyle=function(k){_.Y("enable_html5_teal_ad_badge")&&k==="BADGE_STYLE_TYPE_AD"&&(k="badge-style-type-ad-alternate");_.Y("kevlar_ytb_live_badges")&&k==="BADGE_STYLE_TYPE_LIVE_NOW"&&(k="badge-style-type-live-now-alternate");return k?k.toLowerCase().replace(/_/g,"-"):""};
_.I.computeRole=function(k){return this.computeAriaLabel(k)?"img":"status"};
_.I.computeAriaLabel=function(k){var E;return(k==null?void 0:(E=k.accessibilityData)==null?void 0:E.label)||(k==null?void 0:k.label)};
_.I.computeBadgeShape=function(k){if(k){var E,S;var R=FxR(k.style);var V=ylh(k.style),N=k.label,h=((E=k.accessibilityData)==null?void 0:E.label)||k.label;a:switch(k.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":E=!0;break a;default:E=!1}var J=(S=k.icon)==null?void 0:S.iconType;a:switch(k.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":k=!0;break a;default:k=!1}R={type:R,brNzRatingBadgeType:V,text:N,accessibilityText:h,
isOverlay:E,icon:J!=="PREMIUM"?J:void 0,modern:_.Y("web_modern_badge_view_model"),adsIncludeDot:k}}else R={};return R};
_.I.updateComputedBadges=function(k,E,S){var R=this;(E=E?[E]:S?[S]:void 0)?this.computedBadges=E:this.computedBadges=k==null?void 0:k.filter(function(V){var N;if((N=V.metadataBadgeRenderer)==null?0:N.groups){N=!1;V=_.n(V.metadataBadgeRenderer.groups);for(var h=V.next();!h.done;h=V.next()){h=h.value;var J=void 0;N=N||((J=R.hiddenBadgeGroups)==null?void 0:J.includes(h))}return!N}return!0})};
_.I.useFilledIcons=function(k){return _.Y("kevlar_system_icons")&&(k==="AUDIO_BADGE"||k==="CHECK_CIRCLE_THICK"||k==="OFFICIAL_ARTIST_BADGE"||k==="SPONSORSHIP_STAR"||k==="PERSON_RADAR_FILLED"||k==="PERSON_RADAR")};
_.I.computeBadgeShapeStyle=function(k){return this.useBadgeShape?k==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||k==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.I.computeIcon=function(k){var E,S;k=k==null?void 0:(E=k.metadataBadgeRenderer)==null?void 0:(S=E.icon)==null?void 0:S.iconType;if(k!=="PREMIUM"&&k)return _.SF(k)};
_.I.computeStandaloneBadge=function(k){var E;k=k==null?void 0:(E=k.icon)==null?void 0:E.iconType;return k==="PREMIUM_STANDALONE"||k==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Oz.prototype.hiddenBadgeGroupsChanged=Oz.prototype.hiddenBadgeGroupsChanged;Oz.prototype.standaloneBadgeChanged=Oz.prototype.standaloneBadgeChanged;Oz.prototype.standaloneRoundedBadgeChanged=Oz.prototype.standaloneRoundedBadgeChanged;Oz.prototype.badgesChanged=Oz.prototype.badgesChanged;_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"hidden",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Oz.prototype,"componentBehavior",void 0);
_.Z([_.H(),_.l("design:type",Array)],Oz.prototype,"badges",void 0);_.Z([_.H(),_.l("design:type",Object)],Oz.prototype,"topStandaloneBadge",void 0);_.Z([_.H(),_.l("design:type",Object)],Oz.prototype,"bottomStandaloneBadge",void 0);_.Z([_.H(),_.l("design:type",Object)],Oz.prototype,"computedBadges",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"mediumFontAdBadge",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"useRoundedBadge",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"largeFontAdBadge",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"overlayAd",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"overlayPremium",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"noDotAdBadge",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"collectionTruncate",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"isThumbnailBadge",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Oz.prototype,"wrapBadges",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Number)],Oz.prototype,"numBadgesInRow",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Oz.prototype,"systemIcons",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Oz.prototype,"animated",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Oz.prototype,"useBadgeShape",void 0);_.Z([_.H({value:[]}),_.l("design:type",Array)],Oz.prototype,"hiddenBadgeGroups",void 0);_.Z([_.JO("#repeat"),_.l("design:type",yO)],Oz.prototype,"repeatElement",void 0);_.Z([_.ac("badges"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Oz.prototype,"badgesChanged",null);
_.Z([_.ac("useRoundedBadge"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Oz.prototype,"standaloneRoundedBadgeChanged",null);_.Z([_.ac("topStandaloneBadge","bottomStandaloneBadge"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Oz.prototype,"standaloneBadgeChanged",null);_.Z([_.ac("hiddenBadgeGroups"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Oz.prototype,"hiddenBadgeGroupsChanged",null);
_.Z([_.D({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Oz);
var w22=_.O_()(Oz,"ytd-badge-supported-renderer",function(){if(T42===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);T42=k}k=T42;return k},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.GN("kevlar_poly_si_batch_j053")?1:2});var GF=function(){var k=_.p.apply(this,arguments)||this;k.iconType="STAR";k.standardizeIconSize=_.Y("kevlar_system_icons");k.mediaHoverOverlayInitialVisibility=_.Y("enable_top_landscape_image_button_command_web");k.noBottomMargin=!1;k.thumbnailObjectFit="CONTAIN";k.thumbnailFitHeight=!0;k.actionMap={"yt-mute-ad-action":"handleMuteAd"};return k};
_.y(GF,_.p);_.I=GF.prototype;
_.I.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"}}}};
_.I.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",GF.JSC$14809_DEFAULT_CLICK_LOCATION_BEHAVIOR,GF.JSC$14809_CLICK_LOCATION_ID_MAP))};
_.I.onTap=function(k){this.onTapOrClick(k)};
_.I.onTapOrClick=function(k){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,k,!1)};
_.I.updateMediaBackgroundImage=function(){var k=this.get("data.image.thumbnail.thumbnails");k&&(k=_.zT(k,0))&&_.VO(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+k+")"})};
_.I.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var k=0;k<this.data.impressionEndpoints.length;k++){var E=this.data.impressionEndpoints[k];E.clickTrackingParams&&delete E.clickTrackingParams;_.en().resolve(_.t3).resolveCommand(E,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var S;((S=this.data)==null?0:S.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.I.handleMuteAd=function(){};
_.I.attached=function(){var k=this;_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&k.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.mt.Object.defineProperties(GF.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null||!k.titleText)return"";var E;return _.Vi("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((E=this.data)==null?void 0:E.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?0:k.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?0:k.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?0:k.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?0:k.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?0:k.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 k;return!((k=this.data)==null||!k.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"}}});
GF.prototype.onTap=GF.prototype.onTap;GF.prototype.dataChanged=GF.prototype.dataChanged;
GF.JSC$14809_CLICK_LOCATION_ID_MAP=_.Y("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"]]);
GF.JSC$14809_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.Y("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"}];_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.Ob),_.l("design:type",Object)],GF.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],GF.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],GF.prototype,"ytSparklesClickLocationBehavior",void 0);_.Z([_.g(q8),_.l("design:type",Object)],GF.prototype,"ytdActiveViewBehavior",void 0);_.Z([_.g([_.H5.YtActionHandlerBehavior]),_.l("design:type",Object)],GF.prototype,"actionHandlerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],GF.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],GF.prototype,"clickCommand",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],GF.prototype,"miniMode",void 0);_.Z([_.H(),_.l("design:type",String)],GF.prototype,"iconType",void 0);_.Z([_.U("data.titleText"),_.l("design:type",String),_.l("design:paramtypes",[])],GF.prototype,"titleAriaLabel",null);
_.Z([_.U("data.rating"),_.l("design:type",Object),_.l("design:paramtypes",[])],GF.prototype,"getRating",null);_.Z([_.U("data.price"),_.l("design:type",Object),_.l("design:paramtypes",[])],GF.prototype,"getPrice",null);_.Z([_.U("data.thirdLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],GF.prototype,"getThirdLine",null);_.Z([_.U("data.fourthLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],GF.prototype,"getFourthLine",null);
_.Z([_.U("data.fifthLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],GF.prototype,"getFifthLine",null);_.Z([_.U("getRating"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GF.prototype,"computeRatingHidden",null);_.Z([_.U("getPrice"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GF.prototype,"computePriceHidden",null);_.Z([_.U("getThirdLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GF.prototype,"computeThirdLineHidden",null);
_.Z([_.U("getFourthLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GF.prototype,"computeFourthLineHidden",null);_.Z([_.U("getFifthLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GF.prototype,"computeFifthLineHidden",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.energyIcon"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GF.prototype,"hasEnergyIcon",null);
_.Z([_.U("computePriceHidden","computeRatingHidden"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GF.prototype,"computeSecondaryTextHidden",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],GF.prototype,"standardizeIconSize",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],GF.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],GF.prototype,"noBottomMargin",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.layout"),_.l("design:type",String),_.l("design:paramtypes",[])],GF.prototype,"layout",null);_.Z([_.U("data.layout"),_.l("design:type",Object),_.l("design:paramtypes",[])],GF.prototype,"mediaThumbnailWidth",null);_.Z([_.U("layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],GF.prototype,"useRoundedBadge",null);_.Z([_.H(),_.l("design:type",String)],GF.prototype,"thumbnailObjectFit",void 0);
_.Z([_.H(),_.l("design:type",Object)],GF.prototype,"thumbnailFitHeight",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GF.prototype,"dataChanged",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],GF.prototype,"onTap",null);_.Z([_.D({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],GF);
_.b(GF,"ytd-display-ad-renderer",function(){if(tbz!==void 0)return tbz;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return tbz=k},{mode:1});var PPC;var B4T;var YTT;var XLI=new Map;var Wmd=!1;var C6=function(){var k=_.p.apply(this,arguments)||this;k.DEFAULT_TOOLTIP_OFFSET="10";k.TOOLTIP_OFFSET_NO_BANNER="-8";k.badges=null;k.noEndpoints=!1;k.wrapText=!1;k.forceVerified=!1;k.tooltipPosition="top";k.compactStyle=!1;k.height=0;k.lineHeight=0;return k};
_.y(C6,_.p);_.I=C6.prototype;_.I.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.I.attached=function(){var k=this;this.observer=new MutationObserver(function(E,S){k.handleResized();S.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.I.detached=function(){this.observer&&this.observer.disconnect()};
_.I.logTooltipEvent=function(){_.Y("kevlar_wiz_tooltip_event_killswitch")||Wmd||(_.gSj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),Wmd=!0)};
_.I.handleWindowResized=function(){this.handleResized()};
_.I.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")))};
_.I.onHeightChanged=function(){if(this.verified){var k=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Mg("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=k:this.textContainerEl.style.marginRight=k}};
_.I.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Mg("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.I.handleResized=function(){var k=this;this.verified&&_.ZJ.addLowPriorityJob(function(){k.fitBackgroundToText();var E=getComputedStyle(k.hostElement).lineHeight;E&&(E=E.match(/\d+/))&&E.length&&(k.lineHeight=Number(E[0]));k.height=k.lineHeight&&!k.wrapText?k.lineHeight:k.textEl.offsetHeight})};
_.I.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var k=document.createRange(),E=_.Cc(this.textEl).children;E.length>0?k.selectNodeContents(E[0]):k.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(k.getBoundingClientRect().width)+"px"}};
_.I.computeChannelBadgeStyle=function(k){var E;if((k==null?0:(E=k.runs)==null?0:E.length)&&k.runs[0].textColor)return"--ytd-badge-icon-color:"+_.HT(k.runs[0].textColor)+";"};
_.mt.Object.defineProperties(C6.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"?_.DE(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var k=this.get("badges.0.metadataBadgeRenderer.tooltip");if(k)return k}return _.$n(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
C6.prototype.onLineHeightChanged=C6.prototype.onLineHeightChanged;C6.prototype.onHeightChanged=C6.prototype.onHeightChanged;C6.prototype.onChannelNameChanged=C6.prototype.onChannelNameChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],C6.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],C6.prototype,"badges",void 0);_.Z([_.H(),_.l("design:type",Object)],C6.prototype,"channelName",void 0);
_.Z([_.H(),_.l("design:type",Object)],C6.prototype,"noEndpoints",void 0);_.Z([_.H(),_.l("design:type",Object)],C6.prototype,"wrapText",void 0);_.Z([_.H(),_.l("design:type",Object)],C6.prototype,"forceVerified",void 0);_.Z([_.H(),_.l("design:type",Object)],C6.prototype,"tooltipPosition",void 0);_.Z([_.H(),_.l("design:type",String)],C6.prototype,"tooltip",void 0);_.Z([_.H(),_.l("design:type",Boolean)],C6.prototype,"hasChannelArt",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],C6.prototype,"compactStyle",void 0);_.Z([_.JO("#text-container"),_.l("design:type",HTMLElement)],C6.prototype,"textContainerEl",void 0);_.Z([_.JO("#text"),_.l("design:type",Object)],C6.prototype,"textEl",void 0);_.Z([_.JO("#verified-tooltip"),_.l("design:type",HTMLElement)],C6.prototype,"verifiedTooltip",void 0);_.Z([_.H(),_.l("design:type",Object)],C6.prototype,"height",void 0);
_.Z([_.H(),_.l("design:type",Object)],C6.prototype,"lineHeight",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("badges","forceVerified"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],C6.prototype,"verified",null);_.Z([_.U("badges","verified"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],C6.prototype,"hideBadges",null);_.Z([_.U("channelName"),_.l("design:type",Object),_.l("design:paramtypes",[])],C6.prototype,"formattedName",null);
_.Z([_.U("badges","verified","formattedName"),_.l("design:type",String),_.l("design:paramtypes",[])],C6.prototype,"tooltipText",null);_.Z([_.U("hasChannelArt"),_.l("design:type",String),_.l("design:paramtypes",[])],C6.prototype,"tooltipOffset",null);_.Z([_.il("channelName"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],C6.prototype,"onChannelNameChanged",null);
_.Z([_.il("height"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],C6.prototype,"onHeightChanged",null);_.Z([_.il("lineHeight","height"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],C6.prototype,"onLineHeightChanged",null);_.Z([_.D({is:"ytd-channel-name",disableElementRegistration:!0})],C6);
_.b(C6,"ytd-channel-name",function(){if(YTT!==void 0)return YTT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return YTT=k},{mode:_.GN("kevlar_poly_si_batch_j036")?1:2});var k8=function(){var k=_.p.apply(this,arguments)||this;k.standardizeIconSize=_.Y("kevlar_system_icons");return k};
_.y(k8,_.p);k8.prototype.basicPaletteChanged=function(){var k;(k=this.data.color)!=null&&k.basicColorPaletteData&&_.wb(this.hostElement,this.data.color.basicColorPaletteData)};
k8.prototype.useFilledIcons=function(k){return _.Y("kevlar_system_icons")&&(k==="CHECK_CIRCLE_THICK"||k==="OFFICIAL_ARTIST_BADGE")};
_.mt.Object.defineProperties(k8.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return this.data.authorCreator||((k=this.data)==null?void 0:(E=k.color)==null?void 0:(S=E.basicColorPaletteData)==null?void 0:S.backgroundColor)}}});
k8.prototype.basicPaletteChanged=k8.prototype.basicPaletteChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],k8.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],k8.prototype,"standardizeIconSize",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.authorUnifiedVerified"),_.l("design:type",Object),_.l("design:paramtypes",[])],k8.prototype,"verified",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],k8.prototype,"creator",null);_.Z([_.il("data.color.basicColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k8.prototype,"basicPaletteChanged",null);_.Z([_.D({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],k8);
_.b(k8,"ytd-author-comment-badge-renderer",function(){if(B4T!==void 0)return B4T;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return B4T=k},{mode:1});var Fmd;var EV=function(){return _.p.apply(this,arguments)||this};
_.y(EV,_.p);EV.prototype.computeThumbnailWidth=function(k){if(k==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],EV.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],EV.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],EV.prototype,"icon",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],EV.prototype,"surface",void 0);
_.Z([_.H({reflectToAttribute:!0,value:_.Y("enable_shrink_image_size_on_web_posts_singleton")}),_.l("design:type",Boolean)],EV.prototype,"searchSxsUx",void 0);_.Z([_.H({reflectToAttribute:!0,value:_.Y("enable_community_page_on_desktop")}),_.l("design:type",Boolean)],EV.prototype,"useSmallerPostImageAttachments",void 0);_.Z([_.D({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],EV);
_.b(EV,"ytd-backstage-image-renderer",function(){if(Fmd!==void 0)return Fmd;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Fmd=k},{mode:1});var yLC;var SE=function(){var k=_.p.apply(this,arguments)||this;k.isLoading=!1;k.selectedItemIndex=-1;return k};
_.y(SE,_.p);_.I=SE.prototype;_.I.computeIsChannelOwner=function(k){if(!k)return!0;k=k[0];return!(k&&(k.signinEndpoint||k.selectServiceEndpoint))};
_.I.computeIsImagePoll=function(k){return(k==null?void 0:k.type)==="POLL_TYPE_IMAGE"};
_.I.computeIsTotalVotesDisabled=function(k){return!(k==null?0:k.totalVotes)};
_.I.thumbnailSrc=function(k){var E,S,R,V;return(k==null?0:(E=k.thumbnails)==null?0:(S=E[0])==null?0:S.url)?_.ZF((R=k.thumbnails)==null?void 0:(V=R[0])==null?void 0:V.url):void 0};
_.I.progressWidth=function(k){return"width:"+(k?k*100:0)+"%;"};
_.I.textAreaWidth=function(k){return this.isImagePoll?null:"width:"+(k?k*100:0)+"%;"};
_.I.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.I.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var k=this.data.choices,E=0;E<k.length;E++)if(k[E].selected){this.selectedItemIndex=E;break}};
_.I.onPopupClosed=function(k,E){k=Number(this.pollVotes.selected);E.confirmed&&(this.selectChoice(k,!1),_.qe(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.I.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.I.onYtCommentPollRevert=function(k,E){E&&(this.selectChoice(E.selectedChoiceIndex,!0),this.set("data.totalVotes",E.totalVotes))};
_.I.onYtServiceRequestSent=function(k,E){if(E.actions)for(k=0;k<E.actions.length;k++){var S=E.actions[k];_.W(S,oJ)&&this.set("data.totalVotes",_.W(S,oJ).totalVotes)}};
_.I.onYtServiceRequestCompleted=function(k){var E=this.get("detail.data.actionResults.0.feedback",k);k=this.get("detail.data.actionResults.0.status",k);if(E==="FEEDBACK_DESELECT"||E==="FEEDBACK_SELECT")this.isLoading=!1,k==="STATUS_FAILED"?_.Me(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.I.getEndpoint=function(k,E){return E===k?this.data.choices[E].deselectServiceEndpoint||null:this.data.choices[k].selectServiceEndpoint||null};
_.I.selectChoice=function(k,E){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var S=0;S<this.data.choices.length;S++){var R;if(k===this.selectedItemIndex){var V=!1;var N=R=null}else R=(V=S===k)?this.data.choices[S].voteRatioIfSelected:this.data.choices[S].voteRatioIfNotSelected,N=V?this.data.choices[S].votePercentageIfSelected:this.data.choices[S].votePercentageIfNotSelected;this.set("data.choices."+S+".voteRatio",R);
this.set("data.choices."+S+".votePercentage",N);this.set("data.choices."+S+".selected",V)}E||(this.isLoading=!0,(E=this.getEndpoint(k,this.selectedItemIndex))&&_.en().resolve(_.t3).resolveCommand(E,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===k?-1:k};
_.mt.Object.defineProperties(SE.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
SE.prototype.onYtServiceRequestCompleted=SE.prototype.onYtServiceRequestCompleted;SE.prototype.onYtServiceRequestSent=SE.prototype.onYtServiceRequestSent;SE.prototype.onYtCommentPollRevert=SE.prototype.onYtCommentPollRevert;SE.prototype.onPopupClosed=SE.prototype.onPopupClosed;SE.prototype.dataChanged=SE.prototype.dataChanged;_.Z([_.g(_.z6),_.l("design:type",Object)],SE.prototype,"paperItemBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],SE.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],SE.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],SE.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],SE.prototype,"isLoading",void 0);_.Z([_.H({computed:"computeIsChannelOwner(data.choices)"}),_.l("design:type",Boolean)],SE.prototype,"isChannelOwner",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.l("design:type",Boolean)],SE.prototype,"isImagePoll",void 0);_.Z([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.l("design:type",Boolean)],SE.prototype,"isTotalVotesDisabled",void 0);_.Z([_.H(),_.l("design:type",Object)],SE.prototype,"previousPollInfo",void 0);_.Z([_.H(),_.l("design:type",Object)],SE.prototype,"selectedItemIndex",void 0);_.Z([_.JO("#poll-votes"),_.l("design:type",Object)],SE.prototype,"pollVotes",void 0);
_.Z([_.U("isChannelOwner"),_.l("design:type",Object),_.l("design:paramtypes",[])],SE.prototype,"endpointStyle",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SE.prototype,"dataChanged",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],SE.prototype,"onPopupClosed",null);
_.Z([_.nv("yt-comment-poll-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],SE.prototype,"onYtCommentPollRevert",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],SE.prototype,"onYtServiceRequestSent",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],SE.prototype,"onYtServiceRequestCompleted",null);_.Z([_.D({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],SE);
_.b(SE,"ytd-backstage-poll-renderer",function(){if(yLC!==void 0)return yLC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return yLC=k},{mode:2});var o1d;var X2Y={autoplay:!1,loop:!1},g1C={simpleText:""},Rx=function(){var k=_.p.apply(this,arguments)||this;k.isLoading=!1;k.usesPanelLockup=!1;k.selectedItemIndex=-1;k.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},X2Y,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});k.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},X2Y,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});k.correctnessAnimationProps=[];k.correctnessAnimationRefs=[];return k};
_.y(Rx,_.p);_.I=Rx.prototype;_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.I.computeIsChannelOwner=function(k){if(!k)return!0;k=k[0];return!(k&&(k.signinEndpoint||k.selectServiceEndpoint))};
_.I.computeIsTotalVotesDisabled=function(k){return!(k==null?0:k.totalVotes)};
_.I.computeIsImageQuiz=function(k){return(k==null?void 0:k.type)==="POLL_TYPE_IMAGE"};
_.I.onExplanationChanged=function(){this.expander.reset()};
_.I.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var k=this.data.choices;if(k){this.maybeInitializeQuizLotties(k);for(var E=0;E<k.length;E++)if(k[E].isSelected||this.isChannelOwner&&k[E].isCorrect){this.selectedItemIndex=E;return}this.selectedItemIndex=-1}}};
_.I.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var k=this.selectedItemIndex,E=Number(this.quizVotes.selected);this.selectChoice(E);this.sendVoteAction(E,k);this.quizVotes.selected=-1;var S;k=!((S=this.data)==null?0:S.enableAnimation);this.maybePlayAnswerAnimations(k)}};
_.I.onYtCommentPollRevert=function(k,E){E&&(this.selectChoice(E.selectedChoiceIndex),this.set("data.totalVotes",E.totalVotes))};
_.I.onYtServiceRequestSent=function(k,E){if(E.actions)for(k=_.n(E.actions),E=k.next();!E.done;E=k.next())(E=_.W(E.value,oJ))&&this.set("data.totalVotes",E.totalVotes)};
_.I.onYtServiceRequestCompleted=function(k){var E=this.get("detail.data.actionResults.0.feedback",k);k=this.get("detail.data.actionResults.0.status",k);if(E==="FEEDBACK_DESELECT"||E==="FEEDBACK_SELECT")this.isLoading=!1,k==="STATUS_FAILED"?_.Me(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.I.getAnimationPropsForChoiceIndex=function(k,E){return E[k]};
_.I.maybePlayAnswerAnimations=function(k){k=k===void 0?!1:k;var E;if((E=this.data)!=null&&E.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){E=_.n(this.correctnessAnimationRefs);for(var S=E.next();!S.done;S=E.next()){var R=void 0,V=void 0;(R=S.value)==null||(V=R.lottieEl)==null||V.stop()}if(!(this.selectedItemIndex<0)){E=0;k&&(E=this.isCorrect?37:25);var N,h;(N=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(h=N.lottieEl)==null||h.goToAndPlay(k?E:0,!0);if(!(this.isCorrect||
(N=this.data.choices.findIndex(function(T){return T.isCorrect}),N<0))){var J,m;
(m=(J=this.correctnessAnimationRefs[N])==null?void 0:J.lottieEl)==null||m.goToAndPlay(37,!0);var a;J=(a=this.fadeContainers)==null?void 0:a.item(N);!k&&J&&this.fadeIn(J)}}}};
_.I.thumbnailSrc=function(k){var E,S,R,V;return(k==null?0:(E=k.thumbnails)==null?0:(S=E[0])==null?0:S.url)?_.ZF((R=k.thumbnails)==null?void 0:(V=R[0])==null?void 0:V.url):void 0};
_.I.a11yVotedText=function(k,E){var S,R,V=((S=this.data)==null?void 0:(R=S.correctVotedText)==null?void 0:R.simpleText)||"",N,h;S=((N=this.data)==null?void 0:(h=N.votedText)==null?void 0:h.simpleText)||"";if(!E)return"";var J,m;if((J=this.data)==null?0:(m=J.choices)==null?0:m[k].isCorrect)return V;var a,T;return((a=this.data)==null?0:(T=a.choices)==null?0:T[k].isSelected)?S:""};
_.I.getEndpoint=function(k,E){return E===k?this.data.choices[k].deselectServiceEndpoint||null:this.data.choices[k].selectServiceEndpoint||null};
_.I.sendVoteAction=function(k,E){if(k=this.getEndpoint(k,E))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(k)};
_.I.selectChoice=function(k){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var E=0;E<this.data.choices.length;E++)this.set("data.choices."+E+".isSelected",k===this.selectedItemIndex?!1:E===k);this.selectedItemIndex=this.selectedItemIndex===k?-1:k};
_.I.maybeInitializeQuizLotties=function(k){var E=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=k.map(function(S){return{animationConfig:S.isCorrect?E.baseCorrectLottiePlayerAnimationConfig:E.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){E.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(S){return S.animationRef||{}})};
_.I.fadeIn=function(k){k.classList.add("fade-in");_.Ch(_.ZJ,function(){k.classList.remove("fade-in")},900)};
_.mt.Object.defineProperties(Rx.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.$n(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 k,E;return((k=this.data)==null?void 0:(E=k.choices)==null?void 0:E.some(function(S){return S.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null||!k.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?g1C:this.data.choices[this.selectedItemIndex].explanation||g1C}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null||!k.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
Rx.prototype.onYtServiceRequestCompleted=Rx.prototype.onYtServiceRequestCompleted;Rx.prototype.onYtServiceRequestSent=Rx.prototype.onYtServiceRequestSent;Rx.prototype.onYtCommentPollRevert=Rx.prototype.onYtCommentPollRevert;Rx.prototype.dataChanged=Rx.prototype.dataChanged;Rx.prototype.onExplanationChanged=Rx.prototype.onExplanationChanged;_.Z([_.g(_.z6),_.l("design:type",Object)],Rx.prototype,"paperItemBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Rx.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.Jr.YtTaskEmitterBehavior),_.l("design:type",Object)],Rx.prototype,"ytTaskEmitterBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],Rx.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Rx.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],Rx.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",Object)],Rx.prototype,"usesPanelLockup",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.l("design:type",Boolean)],Rx.prototype,"isChannelOwner",void 0);_.Z([_.H({computed:"computeIsTotalVotesDisabled(data)"}),_.l("design:type",Boolean)],Rx.prototype,"isTotalVotesDisabled",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.l("design:type",Boolean)],Rx.prototype,"isImageQuiz",void 0);_.Z([_.H(),_.l("design:type",Object)],Rx.prototype,"previousQuizInfo",void 0);_.Z([_.H(),_.l("design:type",Object)],Rx.prototype,"selectedItemIndex",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data","usesPanelLockup"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rx.prototype,"shouldUseModernUi",null);
_.Z([_.cu(".fade-container"),_.l("design:type",Object)],Rx.prototype,"fadeContainers",void 0);_.Z([_.H(),_.l("design:type",Array)],Rx.prototype,"correctnessAnimationProps",void 0);_.Z([_.U("explanation","showCorrectAnswer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rx.prototype,"showExplanation",null);_.Z([_.U("isChannelOwner","isAttempted"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rx.prototype,"showCorrectAnswer",null);
_.Z([_.U("isChannelOwner","isAttempted","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rx.prototype,"isQuizAnsweringDisabled",null);_.Z([_.U("isQuizAnsweringDisabled"),_.l("design:type",Object),_.l("design:paramtypes",[])],Rx.prototype,"endpointStyle",null);_.Z([_.U("data","selectedItemIndex"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rx.prototype,"isAttempted",null);
_.Z([_.U("data","selectedItemIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],Rx.prototype,"explanation",null);_.Z([_.U("data","selectedItemIndex"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Rx.prototype,"isCorrect",null);_.Z([_.JO("ytd-expander"),_.l("design:type",Object)],Rx.prototype,"expander",void 0);_.Z([_.JO("#quiz-votes"),_.l("design:type",Object)],Rx.prototype,"quizVotes",void 0);
_.Z([_.il("explanation"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Rx.prototype,"onExplanationChanged",null);_.Z([_.il("data","isChannelOwner"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Rx.prototype,"dataChanged",null);_.Z([_.nv("yt-comment-quiz-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Rx.prototype,"onYtCommentPollRevert",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],Rx.prototype,"onYtServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Rx.prototype,"onYtServiceRequestCompleted",null);_.Z([_.D({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],Rx);
_.b(Rx,"ytd-backstage-quiz-renderer",function(){if(o1d!==void 0)return o1d;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return o1d=k},{mode:1});var UcC;var VL=function(){return _.p.apply(this,arguments)||this};
_.y(VL,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],VL.prototype,"data",void 0);_.Z([_.D({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],VL);
_.b(VL,"ytd-post-uploaded-video-renderer",function(){if(UcC!==void 0)return UcC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return UcC=k},{mode:1});var H_T;var NY=function(){return _.p.apply(this,arguments)||this};
_.y(NY,_.p);NY.prototype.useFilledIcons=function(k){return k==="SPONSORSHIP_STAR"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],NY.prototype,"data",void 0);_.Z([_.D({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],NY);
var KmC=_.O_()(NY,"ytd-sponsors-only-badge-renderer",function(){if(H_T===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);H_T=k}k=H_T;return k},{allowedProps:["data"],
mode:1});var p2d;var Ix=function(){return _.p.apply(this,arguments)||this};
_.y(Ix,_.p);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ix.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ix.prototype,"data",void 0);_.Z([_.D({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Ix);
_.b(Ix,"ytd-child-video-renderer",function(){if(p2d!==void 0)return p2d;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return p2d=k},{mode:1});var ALC;var rL5;var ny=function(){var k=_.p.apply(this,arguments)||this;k.size=0;k.enableWebModernCollectionsV2=_.Y("web_modern_collections_v2");k.fallbackImageSize={height:void 0,width:9999};k.webModernCollections=!1;return k};
_.y(ny,_.p);_.I=ny.prototype;_.I.computeBlurredImageSize=function(k){return k?{height:k*2,width:k*2}:this.fallbackImageSize};
_.I.computeImageSize=function(k){return k?{height:k,width:k}:this.fallbackImageSize};
_.I.computeObjectFit=function(k){return k?"FILL":"CONTAIN"};
_.I.computePreserve=function(k){return k?!0:!1};
_.I.setBackground=function(){var k,E;_.Y("web_modern_collections_v2")&&((k=this.data)==null?0:(E=k.thumbnail)==null?0:E.sampledThumbnailColor)&&(k=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+k.red+","+k.green+","+k.blue+",1)")};
ny.prototype.setBackground=ny.prototype.setBackground;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ny.prototype,"ytRendererBehavior",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ny.prototype,"watchFeedThumbnail",void 0);_.Z([_.H(),_.l("design:type",Object)],ny.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],ny.prototype,"size",void 0);
_.Z([_.H({computed:"computeBlurredImageSize(size)"}),_.l("design:type",Object)],ny.prototype,"blurredImageSize",void 0);_.Z([_.H({computed:"computeImageSize(size)"}),_.l("design:type",Object)],ny.prototype,"imageSize",void 0);_.Z([_.H({computed:"computePreserve(size)"}),_.l("design:type",String)],ny.prototype,"preserve",void 0);_.Z([_.H({computed:"computeObjectFit(size)"}),_.l("design:type",String)],ny.prototype,"objectFit",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ny.prototype,"enableWebModernCollectionsV2",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ny.prototype,"webModernCollections",void 0);_.Z([_.il("data.thumbnail.sampledThumbnailColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ny.prototype,"setBackground",null);_.Z([_.D({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],ny);
_.b(ny,"ytd-playlist-custom-thumbnail-renderer",function(){if(rL5!==void 0)return rL5;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return rL5=k},{mode:1});var usd;var iR=function(){return _.p.apply(this,arguments)||this};
_.y(iR,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iR.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],iR.prototype,"width",void 0);_.Z([_.D({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],iR);
_.b(iR,"ytd-playlist-video-thumbnail-renderer",function(){if(usd!==void 0)return usd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return usd=k},{mode:1});var xcY;var hZ=function(){return _.p.apply(this,arguments)||this};
_.y(hZ,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],hZ.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],hZ.prototype,"width",void 0);_.Z([_.D({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],hZ);
_.b(hZ,"ytd-show-custom-thumbnail-renderer",function(){if(xcY!==void 0)return xcY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return xcY=k},{mode:1});var LmA;var JZ=function(){return _.p.apply(this,arguments)||this};
_.y(JZ,_.p);JZ.prototype.useFilledIcons=function(k){return k==="MUSIC"||k==="COURSE"};
JZ.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=pc(this.overlayColor,"0.8");else if(this.overlayColor){var k=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+k.red+","+k.green+","+k.blue+",0.8)"}};
_.mt.Object.defineProperties(JZ.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)}}});
JZ.prototype.overlayColorChanged=JZ.prototype.overlayColorChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],JZ.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],JZ.prototype,"overlayColor",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.icon","data.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],JZ.prototype,"overlayStyle",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.icon","data.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],JZ.prototype,"overlayTextStyle",null);_.Z([_.il("overlayColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],JZ.prototype,"overlayColorChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],JZ);
_.b(JZ,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(LmA!==void 0)return LmA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return LmA=k},{mode:1});var jYC;var cl=function(){var k=_.p.apply(this,arguments)||this;k.active=!1;return k};
_.y(cl,_.p);cl.prototype.computeIsSpinnerHidden=function(k){return(k==null?void 0:k.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
cl.prototype.computeOverlayIcon=function(k){return(k==null?void 0:k.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(k==null?void 0:k.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cl.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],cl.prototype,"active",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],cl);
_.b(cl,"ytd-thumbnail-overlay-downloading-renderer",function(){if(jYC!==void 0)return jYC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return jYC=k},{mode:1});var DcC;var mB=function(){return _.p.apply(this,arguments)||this};
_.y(mB,_.p);_.mt.Object.defineProperties(mB.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mB.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],mB.prototype,"data",void 0);_.Z([_.U("data.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],mB.prototype,"text",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],mB);
_.b(mB,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(DcC!==void 0)return DcC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return DcC=k},{mode:1});var $c4,ftz=function(){if($c4!==void 0)return $c4;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return $c4=k};var eE=function(){return _.p.apply(this,arguments)||this};
_.y(eE,_.p);_.mt.Object.defineProperties(eE,{template:{configurable:!0,enumerable:!0,get:function(){return ftz()}}});
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],eE.prototype,"animateEqualizer",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],eE);_.O_()(eE,"ytd-thumbnail-overlay-equalizer",function(){return ftz()},{allowedProps:["animateEqualizer"],
mode:1});var v1d;var ax=function(){var k=_.p.apply(this,arguments)||this;k.nowPlayingBadge=_.Y("web_now_playing_badge");k.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return k};
_.y(ax,_.p);ax.prototype.activeChanged=function(){var k=this;_.Y("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.JB(this,function(){_.Me(k.hostElement,"yt-playlist-lockup-now-playing-active",k)})};
ax.prototype.onMiniplayerPlayStateChanged=function(k){var E,S=(E=_.W(_.g_().currentEndpoint,_.jm))==null?void 0:E.videoId;this.isVideoPlaying=k&&(_.Y("web_limit_now_playing_animation_killswitch")||this.videoId===S)};
ax.prototype.activeChanged=ax.prototype.activeChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ax.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],ax.prototype,"isVideoPlaying",void 0);_.Z([_.H(),_.l("design:type",String)],ax.prototype,"videoId",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ax.prototype,"equalizerOnly",void 0);_.Z([_.H(),_.l("design:type",Boolean)],ax.prototype,"isActive",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ax.prototype,"nowPlayingBadge",void 0);_.Z([_.il("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ax.prototype,"activeChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],ax);
_.b(ax,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(v1d!==void 0)return v1d;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return v1d=k},{mode:1});var b_C;var tZ=function(){return _.p.apply(this,arguments)||this};
_.y(tZ,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tZ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tZ.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],tZ);
_.b(tZ,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(b_C!==void 0)return b_C;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return b_C=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var Z_C;var TD=function(){return _.p.apply(this,arguments)||this};
_.y(TD,_.p);TD.prototype.onDurationChanged=function(){var k,E;_.Cc(this.hostElement).querySelector("#progress").style.width=((E=(k=this.data)==null?void 0:k.percentDurationWatched)!=null?E:0)+"%"};
TD.prototype.onDurationChanged=TD.prototype.onDurationChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],TD.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],TD.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],TD.prototype,"isLive",void 0);_.Z([_.il("data.percentDurationWatched"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],TD.prototype,"onDurationChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],TD);
_.b(TD,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Z_C!==void 0)return Z_C;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Z_C=k},{mode:1});var dcj;var ww=function(){var k=_.p.apply(this,arguments)||this;k.bottomPanel=!1;k.richGridOverlay=!1;k.watchFeedOverlay=!1;k.isCompact=!1;return k};
_.y(ww,_.p);ww.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.mt.Object.defineProperties(ww.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:(E=k.icon)==null?void 0:E.iconType)==="PLAY_ALL"&&_.Y("kevlar_system_icons")}}});
ww.prototype.widthChanged=ww.prototype.widthChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ww.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],ww.prototype,"width",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ww.prototype,"bottomPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ww.prototype,"richGridOverlay",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ww.prototype,"watchFeedOverlay",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ww.prototype,"isCompact",void 0);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ww.prototype,"isIconFilled",null);_.Z([_.il("width","watchFeedOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ww.prototype,"widthChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],ww);
_.b(ww,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(dcj!==void 0)return dcj;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return dcj=k},{mode:1});var sYT;var ltY=["CLIP","SHORTS"],Pl=function(){var k=_.p.apply(this,arguments)||this;k.animated=_.Y("animated_live_badge_icon");k.hasIcon=!1;k.updateTimerIntervalId=0;k.timeSinceLive=0;return k};
_.y(Pl,_.p);_.I=Pl.prototype;_.I.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.I.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.I.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.I.hasIconOrText=function(){var k,E;return!!(((k=this.data)==null?0:k.icon)||((E=this.data)==null?0:E.text))};
_.I.initializeLiveBadgeTimer=function(){var k=this,E,S=(E=this.liveBadgeData)==null?void 0:E.startTimestampSec;if(S&&this.canShowLiveBadgeTimer()){var R;E=Number((R=this.liveBadgeData)==null?void 0:R.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(S);this.updateTimerIntervalId=_.yf(function(){k.canShowLiveBadgeTimer()?k.timeSinceLive++:(k.timeSinceLive=0,window.clearInterval(k.updateTimerIntervalId))},E)}else this.timeSinceLive=0};
_.I.canShowLiveBadgeTimer=function(){var k=Date.now(),E,S;return k<(Number((E=this.liveBadgeData)==null?void 0:E.endTimestampSec)-1)*1E3&&k>Number((S=this.liveBadgeData)==null?void 0:S.startTimestampSec)*1E3};
_.mt.Object.defineProperties(Pl.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.UbI(this.data,this.timeSinceLive):{}}},
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 k;return(k=this.data)==null?void 0:k.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 ltY.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
Pl.prototype.initializeLiveBadgeTimer=Pl.prototype.initializeLiveBadgeTimer;Pl.prototype.dataChanged=Pl.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Pl.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Pl.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],Pl.prototype,"icon",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Pl.prototype,"animated",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.l("design:type",Boolean)],Pl.prototype,"hideTimeStatus",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Pl.prototype,"hasIcon",void 0);_.Z([_.H(),_.l("design:type",Object)],Pl.prototype,"timeSinceLive",void 0);_.Z([_.U("data","timeSinceLive"),_.l("design:type",Object),_.l("design:paramtypes",[])],Pl.prototype,"badgeShapeData",null);
_.Z([_.U("data","overlayType"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pl.prototype,"hideBadgeShape",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pl.prototype,"dataChanged",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.style"),_.l("design:type",Object),_.l("design:paramtypes",[])],Pl.prototype,"overlayStyle",null);
_.Z([_.U("data.liveBadgeData"),_.l("design:type",Object),_.l("design:paramtypes",[])],Pl.prototype,"liveBadgeData",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.type"),_.l("design:type",Object),_.l("design:paramtypes",[])],Pl.prototype,"overlayType",null);_.Z([_.U("overlayType","overlayStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pl.prototype,"useFilledIcon",null);
_.Z([_.ac("liveBadgeData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pl.prototype,"initializeLiveBadgeTimer",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],Pl);
_.b(Pl,"ytd-thumbnail-overlay-time-status-renderer",function(){if(sYT!==void 0)return sYT;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return sYT=k},{mode:_.GN("kevlar_poly_si_batch_j035")?1:2});var MbT;var Bl=function(){return _.p.apply(this,arguments)||this};
_.y(Bl,_.p);Bl.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"}}}}};
Bl.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(k){if(this.hasPlaybackProgressBar)return{percentDurationWatched:k.percentDurationWatched}};
Bl.prototype.computeHasPlaybackProgressBar=function(k){return!!k.percentDurationWatched&&k.percentDurationWatched>0};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Bl.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.l("design:type",Boolean)],Bl.prototype,"hasPlaybackProgressBar",void 0);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Bl);
_.b(Bl,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(MbT!==void 0)return MbT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return MbT=k},{mode:1});var qTd;var zcA=_.f(function(k){var E=k.data;var S=k.children;var R=function(){return!!E().doubleStack},V=function(){return!!E().includeStackHeight};
return _.e("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!E().experimentEnabled}},_.e(_.t,{cond:E,
then:function(){var N={};return _.e(_.tj,null,_.e(_.t,{cond:V,then:function(){var h={};return _.e("div",{class:_.SQ("ytCollectionsStackSpacer",(h.ytCollectionsStackSpacerDoubleStack=R,h))})}}),_.e("div",{class:_.SQ((N.ytCollectionsStackRelativeStack=V,N))},_.e(_.t,{cond:R,
then:function(){var h={};return _.e("div",{class:_.SQ("ytCollectionsStackCollectionStack2",function(){return E().customClassName2ndStack},(h.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return E().enableResponsiveMode},h)),
style:_.nU({"background-color":function(){return Kxh(E())}})})}}),_.e("div",{class:_.SQ("ytCollectionsStackCollectionStack1",function(){return E().customClassName1stStack},function(){return Hij(E().thumbnailSize?E().thumbnailSize:"medium")}),
style:_.nU({"background-color":function(){return Kxh(E())}})}),S))}}))},"Ca");_.qi(zcA,"yt-collections-stack",{props:{data:_.Nq}});var Y8=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};k.webModernCollections=!1;k.isSearch=!1;k.isDoubleStack=!1;k.thumbnailSize="medium";k.enableWebModernCollectionsV2=_.Y("web_modern_collections_v2");return k};
_.y(Y8,_.p);_.I=Y8.prototype;
_.I.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]]"}}}}}};
_.I.getThumbnailDetails=function(k){if(k!=null&&k.thumbnailRenderer){var E=k.thumbnailRenderer,S;if((S=E.playlistVideoThumbnailRenderer)==null?0:S.thumbnail)return E.playlistVideoThumbnailRenderer.thumbnail;var R;if((R=E.playlistCustomThumbnailRenderer)==null?0:R.thumbnail)return E.playlistCustomThumbnailRenderer.thumbnail;k=k.thumbnailRenderer;var V;if((V=k.showCustomThumbnailRenderer)==null?0:V.thumbnail)return k.showCustomThumbnailRenderer.thumbnail}};
_.I.computeOverlayColor=function(k){var E,S;if((E=this.getThumbnailDetails(k))==null?0:(S=E.darkColorPalette)==null?0:S.section2Color)return this.getThumbnailDetails(k).darkColorPalette.section2Color;var R;return(R=this.getThumbnailDetails(k))==null?void 0:R.sampledThumbnailColor};
_.I.computeWebModernCollections=function(k){if(k==null||!k.thumbnailOverlays)return!1;k=_.n(k.thumbnailOverlays);for(var E=k.next();!E.done;E=k.next()){var S=void 0;if((S=E.value)==null?0:S.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.I.computeNavigationEndpoint=function(k){return uEj(k==null?void 0:k.navigationEndpoint)};
_.mt.Object.defineProperties(Y8.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var k=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:k==null?void 0:k.sampledThumbnailColor,vibrantColorPalette:k==null?void 0:k.vibrantColorPalette,darkColorPalette:k==null?void 0:k.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Y8.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(SHp),_.l("design:type",Object)],Y8.prototype,"ytdThumbnailBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Y8.prototype,"componentBehavior",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Y8.prototype,"watchFeedThumbnail",void 0);_.Z([_.H(),_.l("design:type",Number)],Y8.prototype,"customThumbnailSize",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],Y8.prototype,"hideAria",void 0);_.Z([_.H(),_.l("design:type",Object)],Y8.prototype,"data",void 0);_.Z([_.H({computed:"computeOverlayColor(data)"}),_.l("design:type",Object)],Y8.prototype,"overlayColor",void 0);
_.Z([_.H({computed:"computeWebModernCollections(data)"}),_.l("design:type",Object)],Y8.prototype,"webModernCollections",void 0);_.Z([_.H({computed:"computeNavigationEndpoint(data)"}),_.l("design:type",Object)],Y8.prototype,"computedNavigationEndpoint",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Y8.prototype,"isSearch",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Y8.prototype,"isDoubleStack",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],Y8.prototype,"thumbnailSize",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Y8.prototype,"enableWebModernCollectionsV2",void 0);_.Z([_.U("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.l("design:type",Object),_.l("design:paramtypes",[])],Y8.prototype,"collectionStack",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Y8);
_.b(Y8,"ytd-playlist-thumbnail",function(){if(qTd!==void 0)return qTd;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return qTd=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var QYA;_.qi(_.f(function(k){return _.e("yt-text-view-model",{class:_.SQ("ytTextViewModelHost")},_.e(_.VB,{text:function(){return k.data().text}}))},"Da"),"yt-text-view-model",{props:{data:_.Nq}});var Wl=function(){var k=_.p.apply(this,arguments)||this;k.noEndpoints=!1;k.amsterdamPostMvp=_.Y("web_amsterdam_post_mvp_playlists");k.badges=[];k.transferState="TRANSFER_STATE_UNKNOWN";return k};
_.y(Wl,_.p);_.I=Wl.prototype;_.I.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.I.getMetadata=function(k){if(!k)return[];var E=[],S=k.shortViewCountText||k.viewCountText;S&&E.push(_.$n(S));k.publishedTimeText&&E.push(_.$n(k.publishedTimeText));k.upcomingEventData&&k.upcomingEventData.upcomingEventText&&E.push(_.t0(_.$n(k.upcomingEventData.upcomingEventText),Number(k.upcomingEventData.startTime)));return E};
_.I.observeDataForBylineSeparator=function(){this.data&&_.E_(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.I.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.HT(this.metadataColor)};
_.I.getSimpleString=function(k){return _.$n(k)};
_.I.isBylineHidden=function(k){return this.noByline||!((k==null?0:k.longBylineText)||(k==null?0:k.shortBylineText))};
_.I.isMetadataHidden=function(k){var E;return((E=this.getMetadata(k))==null?void 0:E.length)===0};
_.I.isBylineMetadataSeparatorHidden=function(k){return this.isMetadataHidden(k)||!this.shouldShowVideoInfo};
_.I.isLongByline=function(k,E){return E&&!(k==null||!k.longBylineText)};
_.mt.Object.defineProperties(Wl.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var k;return this.amsterdamPostMvp&&!((k=this.data)==null||!k.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}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
Wl.prototype.metadataColorChanged=Wl.prototype.metadataColorChanged;Wl.prototype.observeDataForBylineSeparator=Wl.prototype.observeDataForBylineSeparator;_.Z([_.g(_.zm),_.l("design:type",Object)],Wl.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Wl.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Wl.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Wl.prototype,"noEndpoints",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Wl.prototype,"isSlimShort",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Wl.prototype,"radioMeta",void 0);_.Z([_.H({selector:_.XS}),_.l("design:type",Object)],Wl.prototype,"isGridViewEnabled",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Wl.prototype,"richMeta",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Wl.prototype,"amsterdamPostMvp",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],Wl.prototype,"noByline",void 0);_.Z([_.H({computed:"isLongByline(data, radioMeta)"}),_.l("design:type",Boolean)],Wl.prototype,"longByline",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Wl.prototype,"truncateMetadataLine",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Wl.prototype,"miniMode",void 0);_.Z([_.H(),_.l("design:type",Number)],Wl.prototype,"metadataColor",void 0);
_.Z([_.H(),_.l("design:type",Array)],Wl.prototype,"badges",void 0);_.Z([_.H({selector:_.Xf,selectorArgs:["data.videoId"]}),_.l("design:type",String)],Wl.prototype,"transferState",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Wl.prototype,"isDownloading",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Wl.prototype,"typographyBump",void 0);_.Z([_.JO("#metadata-line"),_.l("design:type",HTMLElement)],Wl.prototype,"metadataLine",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Wl.prototype,"observeDataForBylineSeparator",null);_.Z([_.il("metadataColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Wl.prototype,"metadataColorChanged",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Wl.prototype,"shouldShowVideoInfo",null);
_.Z([_.U("badges"),_.l("design:type",String),_.l("design:paramtypes",[])],Wl.prototype,"inlineBadgeClass",null);_.Z([_.U("longByline"),_.l("design:type",String),_.l("design:paramtypes",[])],Wl.prototype,"longBylineClass",null);_.Z([_.U("data","longByline"),_.l("design:type",Object),_.l("design:paramtypes",[])],Wl.prototype,"bylineText",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Wl.prototype,"hasAttributedBylineText",null);
_.Z([_.U("isGridViewEnabled","data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Wl.prototype,"watchFeedBigThumbs",null);_.Z([_.D({is:"ytd-video-meta-block",disableElementRegistration:!0})],Wl);
_.b(Wl,"ytd-video-meta-block",function(){if(QYA!==void 0)return QYA;var k=document.createElement("template");_.X(k,'\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    <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-video-meta-block"></div>\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[hasAttributedBylineText]]" 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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return QYA=k},{mode:_.GN("kevlar_poly_si_batch_j080")?1:2});_.B9("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var F7=function(){var k=_.p.apply(this,arguments)||this;k.displayItemCount=2;k.isBackstagePlaylist=!1;k.isPostCompactPlaylist=!1;k.shouldShowChannelThumbnail=!1;k.useModernCollectionsV2=_.Y("web_modern_collections_v2");return k};
_.y(F7,_.p);_.I=F7.prototype;_.I.computeFirstVideos=function(k,E){return k===void 0||E===void 0?[]:k.slice(0,E)};
_.I.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var k=this.data.thumbnailRenderer;k.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",k.playlistVideoThumbnailRenderer.thumbnail);k.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",k.playlistCustomThumbnailRenderer.thumbnail)}};
_.I.computeThumbnailHeight=function(k,E,S,R,V){return R?V==="BIG"?280:V==="MASSIVE"?337:234:S?240:E?72:k?118:138};
_.I.computeThumbnailWidth=function(k,E,S,R,V){return R?V==="MEDIUM"?450:V==="BIG"?500:V==="MASSIVE"?600:420:S?360:E?128:k?210:246};
_.I.computeUseBiggerThumbs=function(k){return k&&_.Y("enable_desktop_search_bigger_thumbs")};
_.I.computeShouldShowChannelThumbnail=function(k,E){return k&&!(E==null||!E.channelThumbnail)};
_.mt.Object.defineProperties(F7.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
F7.prototype.dataChanged=F7.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],F7.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],F7.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],F7.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],F7.prototype,"displayItemCount",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],F7.prototype,"isBackstagePlaylist",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],F7.prototype,"isPostCompactPlaylist",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],F7.prototype,"isSearch",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.l("design:type",Boolean)],F7.prototype,"useBiggerThumbs",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.P_("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],F7.prototype,"biggerThumbsStyle",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],F7.prototype,"isDownloads",void 0);_.Z([_.H({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.l("design:type",Object)],F7.prototype,"shouldShowChannelThumbnail",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],F7.prototype,"useModernCollectionsV2",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],F7.prototype,"dataChanged",null);_.Z([_.U("isSearch"),_.l("design:type",String),_.l("design:paramtypes",[])],F7.prototype,"stackThumbnailSize",null);_.Z([_.D({is:"ytd-playlist-renderer",disableElementRegistration:!0})],F7);
_.b(F7,"ytd-playlist-renderer",function(){if(ALC===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);ALC=k}k=ALC;return k},{mode:1});var O_Y;var GsT;var yL=function(){var k=_.p.apply(this,arguments)||this;k.collections=!!_.Y("web_modern_collections_v2");k.startX=0;return k};
_.y(yL,_.p);yL.prototype.onEndpointMouseDown=function(k){this.startX=k.clientX};
yL.prototype.onEndpointClick=function(k){this.startX!==k.clientX&&(k.preventDefault(),k.stopPropagation())};
yL.prototype.computeObjectFit=function(k){return k==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||k==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||k==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
yL.prototype.computeCardStyle=function(k){return k?k.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.mt.Object.defineProperties(yL.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var k,E;return this.collections&&((k=this.data)==null?void 0:(E=k.searchRefinementCardRendererStyle)==null?void 0:E.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}}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],yL.prototype,"data",void 0);_.Z([_.H({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.l("design:type",Number)],yL.prototype,"objectFit",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.l("design:type",String)],yL.prototype,"cardStyle",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],yL.prototype,"roundContainer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],yL.prototype,"collections",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],yL.prototype,"isAlbumCard",null);_.Z([_.U("data","collections","isAlbumCard"),_.l("design:type",Object),_.l("design:paramtypes",[])],yL.prototype,"collectionStack",null);
_.Z([_.D({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],yL);
_.b(yL,"ytd-search-refinement-card-renderer",function(){if(GsT!==void 0)return GsT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return GsT=k},{mode:1});var CP5;var ox=function(){var k=_.p.apply(this,arguments)||this;k.isRichGrid=!1;return k};
_.y(ox,_.p);_.Z([_.H(),_.l("design:type",Object)],ox.prototype,"data",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ox.prototype,"componentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],ox.prototype,"ytdReduxBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ox.prototype,"isRichGrid",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],ox.prototype,"miniMode",void 0);
_.Z([_.D({is:"ytd-game-details-renderer",disableElementRegistration:!0})],ox);
_.b(ox,"ytd-game-details-renderer",function(){if(CP5!==void 0)return CP5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return CP5=k},{mode:1});var ku4;var ERd;var X7=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return k};
_.y(X7,_.p);_.I=X7.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.currentStateData=function(k){var E=k||this.data;return E&&E.states&&E.currentStateId!=null?E.states.find(function(S){return S.stateId===E.currentStateId})||null:null};
_.I.currentStateRendererData=function(k){return(k=this.currentStateData(k))&&k.state&&k.state.buttonRenderer?k.state.buttonRenderer:null};
_.I.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())};
_.I.computeButtonIcon=function(k){k=this.currentStateRendererData(k);var E;return(k==null?0:(E=k.icon)==null?0:E.iconType)?k.icon.iconType.toLowerCase():null};
_.I.computeAccessibility=function(k){return(k=this.currentStateRendererData(k))&&k.accessibilityData?k.accessibilityData.accessibilityData||null:null};
_.I.computeButtonClass=function(k){var E=this.currentStateRendererData(k);if(!E)return"";k="";var S=E.style;S&&(k+=S.toLowerCase().replace(/_/g,"-")+" ");(E=E.size)&&(k+=E.toLowerCase().replace(/_/g,"-")+" ");return k.trim()};
_.I.computeServiceEndpoint=function(k){if(!k)return null;var E=k&&k.serviceEndpoint,S=this.get("command.commandMetadata.webCommandMetadata.sendPost",k);return E?E:S&&k.command?k.command:null};
_.I.computeBellMenuItemParams=function(k){var E;k=(E=_.W(k==null?void 0:k.command,_.CI))==null?void 0:E.commands;if(!k||k.length===0)return null;E=_.W(k[0],_.Xg);var S,R;return(E==null?0:(S=E.popup)==null?0:(R=S.menuPopupRenderer)==null?0:R.items)?E.popup.menuPopupRenderer.items.map(function(V){return V.menuServiceItemRenderer.trackingParams}):null};
_.I.handleBellMenuOpenSelectedAction=function(k){var E=k.trackingParams,S=this.computeBellMenuItemParams(this.data);this.data&&E&&S&&S.includes(E)&&this.ytRenderButtonBehavior._setButtonIcon(k.icon.iconType.toLowerCase())};
_.I.onYtServiceRequestCompleted=function(k,E){(k=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",E))&&this.set("data",k)};
_.I.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.I.resetState=function(){this.set("data.currentStateId",3)};
_.I.onYtButtonTapHandler=function(){if(this.data){var k=this.currentStateRendererData(this.data);k&&this.ytRendererBehavior.logExplicitClick(k)}};
X7.prototype.onYtServiceRequestError=X7.prototype.onYtServiceRequestError;X7.prototype.onYtServiceRequestCompleted=X7.prototype.onYtServiceRequestCompleted;X7.prototype.stateChanged=X7.prototype.stateChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],X7.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(LG.YtRenderButtonBehavior),_.l("design:type",Object)],X7.prototype,"ytRenderButtonBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],X7.prototype,"data",void 0);_.Z([_.ac("data","data.currentStateId"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],X7.prototype,"stateChanged",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],X7.prototype,"onYtServiceRequestCompleted",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],X7.prototype,"onYtServiceRequestError",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],X7);
_.b(X7,"ytd-subscription-notification-toggle-button-renderer",function(){if(ERd!==void 0)return ERd;var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return ERd=k},{mode:1});var SPA;var gw=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};k.tapHandler=function(){if(k.data){var E=k.currentStateRendererData();E&&k.ytRendererBehavior.logExplicitClick(E)}};
return k};
_.y(gw,_.p);_.I=gw.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.currentStateData=function(){var k=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(E){return E.stateId===k.data.currentStateId})||null:null};
_.I.currentStateRendererData=function(){var k=this.currentStateData();return k&&k.state&&k.state.buttonRenderer?k.state.buttonRenderer:null};
_.I.computeAccessibilityLabel=function(){var k,E,S;return(k=this.currentStateRendererData())==null?void 0:(E=k.accessibilityData)==null?void 0:(S=E.accessibilityData)==null?void 0:S.label};
_.I.computeBellMenuItemParams=function(){var k,E,S=(E=_.W((k=this.data)==null?void 0:k.command,_.CI))==null?void 0:E.commands;if(!S||S.length===0)return null;k=_.W(S[0],_.Xg);var R,V;return(k==null?0:(R=k.popup)==null?0:(V=R.menuPopupRenderer)==null?0:V.items)?k.popup.menuPopupRenderer.items.map(function(N){return N.menuServiceItemRenderer.trackingParams}):null};
_.I.handleBellMenuOpenSelectedAction=function(k){var E=k.trackingParams,S=this.computeBellMenuItemParams();if(this.data&&E&&S&&S.includes(E)&&(k==null||!k.isDisabled)){var R;((R=_.W(k.serviceEndpoint,_.Ev))==null?void 0:R.signal)!=="CLIENT_SIGNAL"&&(this.icon=k.icon.iconType)}};
_.I.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.I.onYtServiceRequestCompleted=function(k,E){if(k=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",E))this.icon=void 0,this.set("data",k)};
_.I.onYtServiceRequestError=function(){this.icon=void 0};
_.mt.Object.defineProperties(gw.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var k=this.data,E=this.textLabel,S=this.hostElement,R=this.computeAccessibilityLabel(),V=this.tapHandler,N=this.isOverlay?"overlay":"mono",h=(k==null?0:k.disableButton)?"disabled":"active";E=E?_.y_(E):void 0;return{style:N,type:"tonal",state:h,size:"M",focused:!1,formattedButtonText:E,iconPosition:"leading-trailing",onTap:Ale(k,V,S),accessibilityLabel:R}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var k=this.currentStateRendererData(),E,S,R=(S=this.icon)!=null?S:k==null?void 0:(E=k.icon)==null?void 0:E.iconType;if(R)return _.SF(R)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(k=this.data)==null?void 0:(E=k.secondaryIcon)==null?void 0:E.iconType;if(S)return _.SF(S)}}});
gw.prototype.onYtServiceRequestError=gw.prototype.onYtServiceRequestError;gw.prototype.onYtServiceRequestCompleted=gw.prototype.onYtServiceRequestCompleted;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],gw.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],gw.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],gw.prototype,"textLabel",void 0);
_.Z([_.H(),_.l("design:type",String)],gw.prototype,"icon",void 0);_.Z([_.H(),_.l("design:type",Boolean)],gw.prototype,"isOverlay",void 0);_.Z([_.U("data.*","textLabel"),_.l("design:type",Object),_.l("design:paramtypes",[])],gw.prototype,"computedButtonShape",null);_.Z([_.U("data.*","icon"),_.l("design:type",Object),_.l("design:paramtypes",[])],gw.prototype,"computedIcon",null);_.Z([_.U("computedIcon"),_.l("design:type",Object),_.l("design:paramtypes",[])],gw.prototype,"computedAnimateIcon",null);
_.Z([_.U("data.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],gw.prototype,"computedSecondaryIcon",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],gw.prototype,"onYtServiceRequestCompleted",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],gw.prototype,"onYtServiceRequestError",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],gw);
_.b(gw,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(SPA!==void 0)return SPA;var k=document.createElement("template");_.X(k,'\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 SPA=k},{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var RXY;_.qi(RcC,"yt-animated-action",{props:{backgroundLottieRef:_.Nq,foregroundLottieRef:_.Nq,wrapperClass:_.Nq,disableAnimation:_.Nq},unsafeExternallySettableAttributes:new Set(["key"])});var UV=function(){var k=_.p.apply(this,arguments)||this;k.animatedActionEnabled=_.Y("web_animated_actions");k.foregroundLottieRef={};k.backgroundLottieRef={};k.forceIconOnly=!1;k.showTextWhileAnimating=!1;k.keyboardFocused=!1;k.isAnimating=!1;k.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return k};
_.y(UV,_.p);_.I=UV.prototype;_.I.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.I.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]]"}}}}}};
_.I.attached=function(){this.keyboardFocused=!1};
_.I.onYtServiceRequestSent=function(k,E){(this.get("endpoint.subscribeEndpoint",E)||this.get("endpoint.unsubscribeEndpoint",E))&&this.updateSubscriptionState(!this.subscribed)};
_.I.onYtServiceRequestCompleted=function(k,E){(k=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",E.data))&&this.bellButton&&(this.bellButton.data=k)};
_.I.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.VO(this.hostElement)};
_.I.onPlayerSubscribe=function(k){this.isCompactRed()||k!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.I.onPlayerUnsubscribe=function(k){this.isCompactRed()||k!==this.data.channelId||this.updateSubscriptionState(!1)};
_.I.handleUpdateSubscribeButtonAction=function(k){k=_.W(k,j04);var E;k&&k.channelId===((E=this.data)==null?void 0:E.channelId)&&this.updateSubscriptionState(!!k.subscribed)};
_.I.computeButtonStyle=function(k){return this.get("style.styleType",k)||null};
_.I.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.I.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.I.updateSubscriptionState=function(k){if(k!==this.subscribed){this.set("data.subscribed",k);var E,S=(E=this.data)==null?void 0:E.subscribedEntityKey;S&&this.ytdReduxBehavior.dispatch(_.mj("subscriptionStateEntity",S,{key:S,subscribed:k}));this.isCompactRed()||_.Me(this.hostElement,"yt-subscription-changed",k);k||(_.qe(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!k),k&&this.hasBellButton&&this.startAnimation())}};
_.I.startAnimation=function(){var k=this;if(!this.isAnimating){var E=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var S;(S=this.backgroundLottieRef.lottieEl)==null||S.goToAndPlay(0);var R;(R=this.foregroundLottieRef.lottieEl)==null||R.goToAndPlay(0);_.ZJ.addJob(function(){k.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.ZJ.addJob(function(){k.updateContainerToFitContent(!!k.subscribed,!0)},2,1500);
_.ZJ.addJob(function(){k.isAnimating=!1},2,E)}};
_.I.maybeAnimateBellIcon=function(){var k=_.kT(this.hostElement).querySelector("yt-animated-icon");if(k){var E;(E=k.animationRef.lottieEl)==null||E.goToAndPlay(0)}};
_.I.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.I.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.I.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var k;this.unsubscribedWidth=(k=this.subscribeButtonShape)==null?void 0:k.getBoundingClientRect().width}var E;this.subscribedWidth=(E=this.bellButton)==null?void 0:E.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.I.updateContainerToFitContent=function(k,E){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(k?(k=this.subscribedWidth,E=this.isAnimating&&!E,this.subscribedIconOnlyWidth===void 0||E||(k=this.subscribedIconOnlyWidth),this.hostElement.style.width=k+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.I.clearContainerSize=function(){this.hostElement.style.width=""};
_.I.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.I.maybeSetSubscribedButtonIconOnlyWidth=function(){var k=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 E;k.subscribedIconOnlyWidth=(E=k.bellButton)==null?void 0:E.getBoundingClientRect().width;requestAnimationFrame(function(){if(k.bellButton){var S;k.bellButton.textLabel=
(S=k.data)==null?void 0:S.subscribedButtonText}})})))};
_.mt.Object.defineProperties(UV.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 k;return(k=this.data)==null?void 0:k.subscribedButtonText}var E;return this.forceIconOnly?void 0:(E=this.data)==null?void 0:E.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var k,E,S=((k=this.data)==null?void 0:(E=k.timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:"subscribe",timings:S,enabled:S.length>0&&!this.subscribed,experimentEnabled:S.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var k;return!this.subscribed&&((k=this.data)==null?void 0:k.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 k={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var E=k.renderer;var S=k.element;var R=k.subscribed;var V=k.commandController;var N=k.isOverlay;k=k.stopPropagation;var h=LxA(E,R);N&&(h.style="overlay");N=Object;var J=N.assign,m;a:switch((m=E.style)==null?void 0:m.styleType){case "COMPACT_GRAY":case "COMPACT_RED":m={size:"S"};break a;default:m={size:"M"}}var a=xbt(E,
R);var T=(T=R?E.subscribedButtonText:E.unsubscribedButtonText)?_.y_(T):void 0;return J.call(N,{},h,m,{focused:!1,toggled:R,accessibilityLabel:a,formattedButtonText:T,onTap:uit(E,R,S,V,k)})}}}});
UV.prototype.onMouseDown=UV.prototype.onMouseDown;UV.prototype.onDataChanged=UV.prototype.onDataChanged;UV.prototype.observedSubscribed=UV.prototype.observedSubscribed;UV.prototype.onYtServiceRequestCompleted=UV.prototype.onYtServiceRequestCompleted;UV.prototype.onYtServiceRequestSent=UV.prototype.onYtServiceRequestSent;UV.prototype.maybeUpdateBellButtonText=UV.prototype.maybeUpdateBellButtonText;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],UV.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],UV.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],UV.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],UV.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],UV.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],UV.prototype,"data",void 0);
_.Z([_.H({selectorArgs:["data.subscribedEntityKey"],selector:kre}),_.l("design:type",Object)],UV.prototype,"subscriptionStateEntity",void 0);_.Z([_.H({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.l("design:type",Boolean)],UV.prototype,"subscribed",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],UV.prototype,"branded",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UV.prototype,"animatedActionEnabled",void 0);
_.Z([_.H(),_.l("design:type",Object)],UV.prototype,"foregroundLottieRef",void 0);_.Z([_.H(),_.l("design:type",Object)],UV.prototype,"backgroundLottieRef",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],UV.prototype,"overlayButton",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.l("design:type",Object)],UV.prototype,"buttonStyle",void 0);_.Z([_.H(),_.l("design:type",Object)],UV.prototype,"forceIconOnly",void 0);
_.Z([_.H(),_.l("design:type",Object)],UV.prototype,"showTextWhileAnimating",void 0);_.Z([_.H({value:function(){return!!_.en().resolve(_.mz(_.tr))&&_.Y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.l("design:type",Boolean)],UV.prototype,"useKeyboardFocused",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UV.prototype,"keyboardFocused",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UV.prototype,"isAnimating",void 0);_.Z([_.U("data.notificationPreferenceButton.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],UV.prototype,"hasBellButton",null);
_.Z([_.il("subscribedButtonText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UV.prototype,"maybeUpdateBellButtonText",null);_.Z([_.U("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],UV.prototype,"subscribedButtonText",null);_.Z([_.U("data.timedAnimationData.animationTiming","subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],UV.prototype,"smartimationSettings",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],UV.prototype,"subscribeButtonHidden",null);_.Z([_.H({reflectToAttribute:!0}),_.U("subscribed","hasBellButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],UV.prototype,"subscribeButtonInvisible",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],UV.prototype,"unsubscribeButtonHidden",null);_.Z([_.JO("ytd-subscription-notification-toggle-button-renderer-next"),_.l("design:type",Object)],UV.prototype,"bellButton",void 0);_.Z([_.JO("#subscribe-button-shape"),_.l("design:type",HTMLElement)],UV.prototype,"subscribeButtonShape",void 0);
_.Z([_.U("overlayButton","subscribed","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UV.prototype,"buttonShape",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],UV.prototype,"onYtServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],UV.prototype,"onYtServiceRequestCompleted",null);
_.Z([_.il("subscribed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UV.prototype,"observedSubscribed",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UV.prototype,"onDataChanged",null);_.Z([_.nv("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],UV.prototype,"onMouseDown",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],UV);
_.b(UV,"ytd-subscribe-button-renderer",function(){if(RXY!==void 0)return RXY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return RXY=k},{mode:1});var Hl=function(){var k=_.p.apply(this,arguments)||this;k.isRichGrid=!1;return k};
_.y(Hl,_.p);Hl.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Hl.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hl.prototype,"isRichGrid",void 0);_.Z([_.D({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Hl);
_.b(Hl,"ytd-game-card-renderer",function(){if(ku4!==void 0)return ku4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ku4=k},{mode:1});var Ky={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.Y("defer_menus")&&!b4j?0:void 0,waitForSignal:"eocs"};var VV8;var N3C;var py=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return k};
_.y(py,_.p);_.I=py.prototype;_.I.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.I.onSeriesReminderStateEntityChange=function(){var k,E,S;((k=this.eventReminderStateEntity)==null?0:k.key)&&((E=this.seriesReminderStateEntity)==null?void 0:E.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((S=this.eventReminderStateEntity)==null?void 0:S.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.mj("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.I.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.I.onYtServiceRequestError=function(){var k;this.updateReminderStateEntitiesFromButtonState((k=this.data)==null?void 0:k.currentState)};
_.I.handleUpdateUpcomingEventReminderButtonStateCommand=function(k){if(k=_.W(k,jQY)){var E,S=(E=this.data)==null?void 0:E.targetId;S&&k.targetId===S&&_.xT(this.updateReminderStateEntitiesFromButtonState.bind(this,k.state))}};
_.I.getButtonStateFromReminderState=function(){var k;if(((k=this.seriesReminderStateEntity)==null?void 0:k.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var E;if(((E=this.eventReminderStateEntity)==null?void 0:E.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var S,R;if(((S=this.seriesReminderStateEntity)==null?void 0:S.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((R=this.eventReminderStateEntity)==
null?void 0:R.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var V;return(V=this.data)==null?void 0:V.currentState};
_.I.updateReminderStateEntitiesFromButtonState=function(k){if(k){switch(k){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":k="UPCOMING_EVENT_REMINDER_STATE_NONE";var E="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":k="UPCOMING_EVENT_REMINDER_STATE_SINGLE";E="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":k="UPCOMING_EVENT_REMINDER_STATE_NONE";E="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var S;
((S=this.eventReminderStateEntity)==null?0:S.key)&&this.ytdReduxBehavior.dispatch(_.mj("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:k})));var R;((R=this.seriesReminderStateEntity)==null?0:R.key)&&this.ytdReduxBehavior.dispatch(_.mj("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:E})))}};
_.mt.Object.defineProperties(py.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var k=this.getButtonStateFromReminderState(),E,S;if(k&&((E=this.data)==null?0:(S=E.states)==null?0:S.length))for(E=_.n(this.data.states),S=E.next();!S.done;S=E.next()){S=S.value;var R=void 0;if(((R=_.W(S,D1j))==null?void 0:R.state)===k)return _.W(S,D1j)}}}});
py.prototype.onYtServiceRequestError=py.prototype.onYtServiceRequestError;py.prototype.onYtServiceRequestCompleted=py.prototype.onYtServiceRequestCompleted;py.prototype.onSeriesReminderStateEntityChange=py.prototype.onSeriesReminderStateEntityChange;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],py.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],py.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],py.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],py.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],py.prototype,"data",void 0);_.Z([_.H({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:SGR}),_.l("design:type",Object)],py.prototype,"eventReminderStateEntity",void 0);
_.Z([_.H({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(k,E){return _.Ep(k.entities,"sportsSeriesReminderStateEntity",E)}}),
_.l("design:type",Object)],py.prototype,"seriesReminderStateEntity",void 0);_.Z([_.U("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],py.prototype,"currentButtonStateRenderer",null);_.Z([_.il("seriesReminderStateEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],py.prototype,"onSeriesReminderStateEntityChange",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],py.prototype,"onYtServiceRequestCompleted",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],py.prototype,"onYtServiceRequestError",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],py);
_.b(py,"ytd-upcoming-event-reminder-button-renderer",function(){if(N3C!==void 0)return N3C;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return N3C=k},{mode:1});var I3Y;var AZ=function(){return _.p.apply(this,arguments)||this};
_.y(AZ,_.p);AZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.mt.Object.defineProperties(AZ.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(_.Y("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],AZ.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],AZ.prototype,"shelfDismissal",void 0);_.Z([_.U("data.responseText"),_.l("design:type",Object),_.l("design:paramtypes",[])],AZ.prototype,"text",null);
_.Z([_.U("data.responseText"),_.l("design:type",Object),_.l("design:paramtypes",[])],AZ.prototype,"textAriaLabel",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],AZ);
_.b(AZ,"ytd-notification-multi-action-renderer",function(){if(I3Y!==void 0)return I3Y;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return I3Y=k},{mode:1});var nRj;var rw=function(){return _.p.apply(this,arguments)||this};
_.y(rw,_.p);rw.prototype.ready=function(){var k=this;_.Cc(this.hostElement).querySelector("#undo").addEventListener("tap",function(){k.onUndoTap()})};
rw.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.en().resolve(_.t3).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rw.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],rw);
_.b(rw,"ytd-notification-text-renderer",function(){if(nRj!==void 0)return nRj;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return nRj=k},{mode:1});var iqj;var uR=function(){var k=_.p.apply(this,arguments)||this;k.mouseOverDelayJobId=0;k.fadeInImageDelayJobId=0;k.startTimeMs=-1;k.loadingStartTimeMs=-1;k.loadingEndTimeMs=-1;k.hasVideoPreview=!1;return k};
_.y(uR,_.p);_.I=uR.prototype;_.I.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.I.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.I.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.I.showThumbnail=function(){var k=this;this.csn=_.Fe();_.Xy("fmth");_.ZJ.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Ch(_.ZJ,function(){k.loadingStartTimeMs=(0,_.ev)();var E=_.Cc(k.hostElement).querySelector("#thumbnail");E.complete?k.displayMouseOverImage():E.addEventListener("load",_.Ic(k,k.displayMouseOverImage))},150):_.E_(_.Cc(this.hostElement).querySelector("#play"),"show",!0)};
_.I.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.I.onTap=function(){this.removeVideoPreview()};
_.I.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var k=this.videoId,E=this.csn,S=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,R=this.startTimeMs,V=this.hasVideoPreview,N=_.tV(this.trackingParams),h={isMovingThumbnail:V};V&&R>0&&(S>0&&(h.movingThumbnailLoadingDurationMs=Math.round(S)),h.durationHoveredMs=Math.round((0,_.ev)()-R));k&&(h.videoId=k);_.$A(E,N,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:h});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.I.removeVideoPreview=function(){_.ZJ.cancelJob(this.mouseOverDelayJobId);_.ZJ.cancelJob(this.fadeInImageDelayJobId);var k=_.Cc(this.hostElement).querySelector("#thumbnail");_.E_(k,"fade-in",!1);k.removeEventListener("load",_.Ic(this,this.displayMouseOverImage));k=_.Cc(this.hostElement).querySelector("#play");_.E_(k,"fade-in",!1);_.E_(k,"show",!1)};
_.I.displayMouseOverImage=function(){var k=_.Cc(this.hostElement).querySelector("#thumbnail"),E=_.Cc(this.hostElement).querySelector("#play");this.isImageAvailable(k)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.ev)(),this.startTimeMs=(0,_.ev)(),this.fadeInImageDelayJobId=_.Ch(_.ZJ,function(){_.E_(k,"fade-in",!0)},50)):_.E_(E,"fade-in",!0)};
_.I.computeThumbnail=function(k,E){var S;k&&k.movingThumbnailDetails&&k.movingThumbnailDetails.thumbnails&&E?S=_.zT(k.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):S=E?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(S)return _.ZF(S)};
_.I.isImageAvailable=function(k){return!(!k.src||k.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||k.naturalWidth===120)};
uR.prototype.onTap=uR.prototype.onTap;uR.prototype.dataChanged=uR.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],uR.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],uR.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],uR.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],uR.prototype,"csn",void 0);_.Z([_.H(),_.l("design:type",Object)],uR.prototype,"trackingParams",void 0);
_.Z([_.H(),_.l("design:type",String)],uR.prototype,"videoId",void 0);_.Z([_.H(),_.l("design:type",Boolean)],uR.prototype,"isAttachedAndDataSet",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uR.prototype,"dataChanged",null);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uR.prototype,"onTap",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],uR);
_.b(uR,"ytd-moving-thumbnail-renderer",function(){if(iqj!==void 0)return iqj;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return iqj=k},{mode:1});var hX5;_.si=function(k){this.hostElement=k;this.eventSink=null;this.eventList=[]};
_.si.prototype.shouldForward=function(){var k,E;return(E=(k=this.eventSink)==null?void 0:k.isConnected)!=null?E:document.body.contains(this.eventSink)};
_.si.prototype.start=function(k,E){this.eventSink&&this.stop();for(var S=0;S<k.length;S++)this.hostElement.addEventListener(k[S],_.Ic(this,this.forwardEvent));var R;this.eventSink=(R=E.hostElement)!=null?R:E;this.eventList=k};
_.si.prototype.stop=function(){for(var k=0;k<this.eventList.length;k++)this.hostElement.removeEventListener(this.eventList[k],_.Ic(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.si.prototype.forwardEvent=function(k,E){this.shouldForward()&&(k.stopPropagation(),this.eventSink instanceof Element?_.Me(this.eventSink,k.type,E):_.dg(new _.LC("eventSink is not an element")))};_.x8={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.si(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(k,E){this.forwarder_.start(k,E)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Ly=function(){return _.p.apply(this,arguments)||this};
_.y(Ly,_.p);_.I=Ly.prototype;_.I.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=_.Mg("HTML_DIR")==="rtl"?"right":"left"};
_.I.dataChanged=function(){this.popupOpen=!1};
_.I.computeAriaLabel=function(k){return _.W(k,RCT).label};
_.I.onTap=function(k){k.stopPropagation();k.preventDefault();this.data.command&&_.en().resolve(_.t3).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.I.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.I.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Ly.prototype.onPopupClosed=Ly.prototype.onPopupClosed;Ly.prototype.onPopupOpened=Ly.prototype.onPopupOpened;Ly.prototype.onTap=Ly.prototype.onTap;Ly.prototype.dataChanged=Ly.prototype.dataChanged;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],Ly.prototype,"eventForwardingBehavior",void 0);_.Z([_.g(_.A$),_.l("design:type",Object)],Ly.prototype,"ironButtonState",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ly.prototype,"componentBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Ly.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:-1}),_.l("design:type",Number)],Ly.prototype,"tabindex",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.l("design:type",Object)],Ly.prototype,"ariaLabel",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ly.prototype,"disableTooltips",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Ly.prototype,"popupOpen",void 0);
_.Z([_.H(),_.l("design:type",Element)],Ly.prototype,"eventSink",void 0);_.Z([_.JO("#tooltip"),_.l("design:type",Object)],Ly.prototype,"tooltip",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ly.prototype,"dataChanged",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ly.prototype,"onTap",null);
_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ly.prototype,"onPopupOpened",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ly.prototype,"onPopupClosed",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Ly);
_.b(Ly,"ytd-thumbnail-overlay-button-renderer",function(){if(hX5!==void 0)return hX5;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return hX5=k},{mode:1});var J4Y;var jE=function(){return _.p.apply(this,arguments)||this};
_.y(jE,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jE.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],jE.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],jE.prototype,"disableAnimation",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],jE.prototype,"rounded",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],jE.prototype,"transparentBackground",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],jE.prototype,"noPadding",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],jE);
_.b(jE,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(J4Y!==void 0)return J4Y;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return J4Y=k},{mode:1});var c4T;var Do=function(){return _.p.apply(this,arguments)||this};
_.y(Do,_.p);Do.prototype.computeIconPosition=function(k){return this.get("iconPosition",k)||null};
Do.prototype.computeIconStyle=function(k){return this.get("iconStyle",k)||null};
Do.prototype.computeIsIconStyleFilled=function(k){if(!k)return!1;var E;return k.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((E=k.icon)==null?void 0:E.iconType)==="ERROR_BLACK"};
_.Z([_.H(),_.l("design:type",Object)],Do.prototype,"data",void 0);_.Z([_.H({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.l("design:type",Object)],Do.prototype,"iconPosition",void 0);_.Z([_.H({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.l("design:type",Object)],Do.prototype,"iconStyle",void 0);_.Z([_.H({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Do.prototype,"iconStyleFilled",void 0);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],Do);
_.b(Do,"ytd-thumbnail-overlay-icon-renderer",function(){if(c4T!==void 0)return c4T;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return c4T=k},{mode:1});var mP2;var $8=function(){return _.p.apply(this,arguments)||this};
_.y($8,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$8.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],$8);
_.b($8,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(mP2!==void 0)return mP2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return mP2=k},{mode:1});var eXz;var fy=function(){var k=_.p.apply(this,arguments)||this;k.isPreviewLoading=!1;return k};
_.y(fy,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],fy.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],fy.prototype,"isPreviewLoading",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],fy);
_.b(fy,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(eXz!==void 0)return eXz;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return eXz=k},{mode:1});var a35;var vl=function(){return _.p.apply(this,arguments)||this};
_.y(vl,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],vl.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],vl);
_.b(vl,"ytd-thumbnail-overlay-pinking-renderer",function(){if(a35!==void 0)return a35;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return a35=k},{mode:1});var tVA;var bR=function(){var k=_.p.apply(this,arguments)||this;k.disableTooltips=!1;k.isLoading=!1;k.useExpandableTooltip=!1;k.toggled=!1;k.hovered=!1;k.mouseoverDelayJobId=0;k.toggleDelayJobId=0;k.expandAnimationDelayJobId=0;return k};
_.y(bR,_.p);_.I=bR.prototype;_.I.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");_.Cc(this.hostElement).querySelector("#tooltip").position=_.Mg("HTML_DIR")==="rtl"?"right":"left"};
_.I.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.ZJ.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.ZJ.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.ZJ.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.I.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.ZJ.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.ZJ.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.ZJ.cancelJob(this.expandAnimationDelayJobId)};
_.I.computeIcon=function(k,E,S){return(k=S?E:k)&&k.iconType?_.SF(k.iconType):void 0};
_.I.computeAriaLabel=function(k,E,S){return _.W(S?E:k,RCT).label};
_.I.computeTooltip=function(k,E,S){return S?E:k};
_.I.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.I.computeIconOnHover=function(k,E){if((k==null?0:k.iconType)&&!E)return _.SF(k.iconType)};
_.I.onTap=function(k){var E=this;k.stopPropagation();k.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(k=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(k),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Ch(_.ZJ,function(){E.hovered=!1;E.data&&!E.data.toggledServiceEndpoint&&(E.expandAnimationDelayJobId=_.Ch(_.ZJ,function(){E.set("data.isToggled",
!1)},200))},2E3))};
_.I.onMouseenter=function(){var k=this;this.mouseoverDelayJobId=_.Ch(_.ZJ,function(){k.hovered=!0},300)};
_.I.onMouseleave=function(){_.ZJ.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.I.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.I.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.I.onServiceRequestCompleted=function(k,E){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(E)||this.set("data.isToggled",!this.data.isToggled)};
_.I.serviceRequestWasSuccessful=function(k){return _.W(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.vF)?k.data.status==="STATUS_SUCCEEDED":!0};
bR.prototype.onServiceRequestCompleted=bR.prototype.onServiceRequestCompleted;bR.prototype.onPopupClosed=bR.prototype.onPopupClosed;bR.prototype.onPopupOpened=bR.prototype.onPopupOpened;bR.prototype.onMouseleave=bR.prototype.onMouseleave;bR.prototype.dataChanged=bR.prototype.dataChanged;_.Z([_.g(_.A$),_.l("design:type",Object)],bR.prototype,"ironButtonState",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],bR.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],bR.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bR.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.l("design:type",Object)],bR.prototype,"ariaLabel",void 0);_.Z([_.H(),_.l("design:type",Object)],bR.prototype,"disableTooltips",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],bR.prototype,"popupOpen",void 0);_.Z([_.H(),_.l("design:type",Object)],bR.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",Element)],bR.prototype,"eventSink",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bR.prototype,"useExpandableTooltip",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.l("design:type",Object)],bR.prototype,"toggled",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bR.prototype,"hovered",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.l("design:type",Object)],bR.prototype,"iconOnHover",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bR.prototype,"dataChanged",null);
_.Z([_.nv("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bR.prototype,"onMouseleave",null);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bR.prototype,"onPopupOpened",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bR.prototype,"onPopupClosed",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],bR.prototype,"onServiceRequestCompleted",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],bR);
_.b(bR,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(tVA!==void 0)return tVA;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return tVA=k},{mode:_.GN("kevlar_poly_si_batch_j053")?1:2});var T38;var wJ4=_.f(function(k){var E=k.data;var S=k.thumbnailSize;var R=function(){return E().enableSegmentView};
return _.e("yt-thumbnail-overlay-progress-bar-view-model",{class:_.SQ("ytThumbnailOverlayProgressBarHost",function(){return j6C(S==null?void 0:S())})},_.e(_.t,{cond:R,
then:function(){return _.e("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.e("div",{class:_.wd("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+E().startPercent+"%"}}),_.e("div",{class:_.wd("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+E().segmentDurationPercent+"%"}},_.e("div",{class:_.wd("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.e("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.e("div",null," ",function(){return E().segmentLabel})),_.e("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.e("div",{class:_.wd("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.e(_.t,{cond:function(){return!R()&&E().startPercent},
then:function(){var V={};return _.e("div",{class:_.wd("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(V.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.Y("web_enable_modern_progress_bar_overlay"),V))},_.e("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+E().startPercent+"%"}}))}}))},"Ea");
wJ4.idomCompat=!0;var PQY=_.f(function(k){var E=_.RE(),S=_.gb(function(V){var N,h,J;a:{var m=(N=k.data())==null?void 0:N.animationActivationTargetId;N=((h=k.data())==null?void 0:h.animationActivationEntityKey)||"";h=(J=k.data())==null?void 0:J.animationActivationEntitySelectorType;if(N&&m)switch(h){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":V=_.Ufe(V,N);J=_.en().resolve(_.mz(_.yb));m=!!(V&&V.videoId===m&&(J==null?0:J.isMiniplayerActive()));m={activated:m,playAnimation:m&&V.playerState==="PLAYER_STATE_PLAYING"};
break a}m=void 0}return m});
_.vX(function(){var V;if((V=S())==null?0:V.activated){var N;if((N=S())==null?0:N.playAnimation){var h;(h=E.lottieEl)==null||h.goToAndPlay(0)}else{var J;(J=E.lottieEl)==null||J.goToAndStop(0)}}},"DbQiXd");
var R=function(){var V,N=!((V=S())==null||!V.activated);if(k.data()){V=k.data();var h=void 0;V.icon&&(h=_.JKt(V.icon),h=wrI(h));var J=void 0,m;if((m=V.backgroundColor)==null?0:m.lightTheme){var a;J={backgroundColor:pc((a=V.backgroundColor)==null?void 0:a.lightTheme,"0.8")}}if(V.text||h||N){if(N&&V.lottieData&&E){a=V.lottieData;var T,w,P;m={animationConfig:{name:a.url,path:a.url,autoplay:(T=a.settings)==null?void 0:T.autoplay,loop:(P=(w=a.settings)==null?void 0:w.loop)!=null?P:!0},animationRef:E}}else m=
void 0;if(N)T=17;else b:switch(V.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":T=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":T=19;break b;default:T=17}N={type:T,text:N&&V.animatedText?V.animatedText:V.text,icon:h,customColors:J,animation:m}}else N=void 0}else N=void 0;return N};
return _.e("yt-thumbnail-badge-view-model",{class:_.SQ("ytThumbnailBadgeViewModelHost",k.class)},_.e(_.t,{cond:R,then:function(){return _.e(_.QD,{data:function(){return R()}})}}))},"Ga");var B34=_.f(function(k){var E={},S={};return _.e("yt-thumbnail-bottom-overlay-view-model",{class:_.SQ("ytThumbnailBottomOverlayViewModelHost",(E.ytThumbnailBottomOverlayViewModelHostBackground=function(){return k.data().enableGradientBackground},E))},_.e(_.cp,{data:function(){return k.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(R){return _.e(wJ4,{data:R.data,
thumbnailSize:k.thumbnailSize})}}),_.e("div",{class:_.SQ("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var R;
return Dbt((R=k.thumbnailSize)==null?void 0:R.call(k))},(S.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var R;
return(R=k.isClip)==null?void 0:R.call(k)},S.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var R;
return!_.Y("web_enable_modern_progress_bar_overlay")&&((R=k.thumbnailSize)==null?void 0:R.call(k))==="small"},S))},_.e(_.cp,{data:function(){return k.data().badge}},{thumbnailBadgeViewModel:function(R){return _.e(PQY,{data:R.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.e(_.cp,{data:function(){return k.data().badges}},{thumbnailBadgeViewModel:function(R){return _.e(PQY,{data:R.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ha");
B34.idomCompat=!0;_.qi(B34,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.sk,thumbnailSize:_.sk,isClip:_.sk}});var qGh={calledOnce:!1,state:"visible"},zEI={calledOnce:!1,state:"hidden"};var Zo=_.f(function(k){var E=k.data;var S=k.className;k=k.alwaysShow;var R=_.vSl(),V={};return _.e("thumbnail-hover-overlay-view-model",{el:_.Z0(_.FX(function(){return E().rendererContext})),
class:_.SQ("ytThumbnailHoverOverlayViewModelHost",S,(V.ytThumbnailHoverOverlayViewModelHostForceHover=k,V)),"aria-label":function(){var N;return(N=_.W(E().rendererContext,_.n9))==null?void 0:N.label},
role:function(){return _.Yh(E().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Yh(E().rendererContext)!==void 0?0:void 0},
"on:keypress":R},_.e("div",{class:_.SQ("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(E().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var N="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:N="ytThumbnailHoverOverlayViewModelStyleCover"}return N})},_.e(_.t,{cond:function(){return E().icon},
then:function(N){return _.e(_.vM,{data:N,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.e(_.t,{cond:function(){return E().text},
then:function(N){return _.e(_.VB,{text:N,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ja");
Zo.idomCompat=!0;var YPA=_.f(function(k){var E=k.data;return _.e(_.cp,{data:function(){return E==null?void 0:E().overlays}},{thumbnailHoverOverlayViewModel:Zo})},"Ka");
YPA.idomCompat=!0;var WPC={};var FPz=_.f(function(k){var E=k.data;var S=k.image;var R=k.state;var V=k.iconType;var N=k.overlays;var h=k.isOverlay;var J=_.Nm("div");k=_.n(_.yg(!0,void 0,"AA4e7b"));var m=k.next().value,a=k.next().value,T=function(){return!!E().onTap},w=_.Zk(V,"LIVE");
_.vX(function(){var B=E();requestAnimationFrame(function(){if(J.value===null)var F=!0;else{var K=J.value;F=B.badgeText;var r=GrR(B.size);F in WPC?K=WPC[F]:(K=K.clientWidth,WPC[F]=K);(F=K>r)?J.value.style.display="none":J.value.style.visibility="visible"}a(F)})},"vNdN8b");
var P=function(){var B={};return B["yt-spec-avatar-shape__image"]=!0,B["yt-spec-avatar-shape__image--ads-app"]=E().type===1,B["yt-spec-avatar-shape__image--inscribed-square"]=E().type===2,B};
return _.e("yt-avatar-shape",null,_.e("div",{el:_.Z0(ksA(T,{keydown:function(B){if(B.key==="Enter"){var F;(F=B.currentTarget)==null||F.click()}},
click:function(B){var F,K;return void((K=(F=E()).onTap)==null?void 0:K.call(F,B))}})),
class:function(){var B={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},F=E();B=(B[F.clusterLayoutConfig?Rch(F.clusterLayoutConfig):Vbm(F.size)]=!0,B["yt-spec-avatar-shape__button--tappable"]=T(),B);(F=E().avatarButtonCustomClassName)&&(B[F]=!0);return _.wd(B)},
"aria-label":function(){return T()?E().accessibilityText:""},
role:function(){return T()?"button":void 0},
tabindex:function(){return T()?0:void 0}},_.e("div",{class:function(){var B,F=E(),K=R==null?void 0:R(),r=h==null?void 0:h(),x=!((B=F.decorations)==null||!B.includes(2)||F.size!=="medium"&&F.size!=="large"),L=F.size==="tiny"||F.size==="extra-small",q,M,d,z,kb={};
B=(kb["yt-spec-avatar-shape--live-ring"]=!!(((q=F.decorations)==null?0:q.includes(0))&&ItA(F.size)),kb["yt-spec-avatar-shape--stories-watched"]=x&&!(K==null||!K.storiesWatched),kb["yt-spec-avatar-shape--stories-unwatched"]=x&&!(K==null?0:K.storiesWatched),kb["yt-spec-avatar-shape--background-border"]=n1e(F.decorations)&&!L,kb["yt-spec-avatar-shape--background-border-thin"]=n1e(F.decorations)&&L,kb["yt-spec-avatar-shape__on-select-border"]=!((M=F.decorations)==null||!M.includes(4)),kb["yt-spec-avatar-shape__white-border"]=
!((d=F.decorations)==null||!d.includes(5)),kb["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((z=F.decorations)==null?0:z.includes(5))&&L),kb["yt-spec-avatar-shape--is-overlay"]=!!r,kb);return _.wd(B)},
style:function(){a:{var B=E().clusterLayoutConfig;if(B){b:{var F=B.numAvatarsInCluster;var K=B.avatarIndex;if(K!==F-1){switch(B.clusterSize){case "small":B="32";break;case "medium":B="36";break;case "40":B="40";break;default:F=void 0;break b}F="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+B+"x"+B+"_avatars_"+F+"_index_"+K+".svg"}else F=void 0}if(F){F=_.nU({"-webkit-mask-image":"url("+F+")","mask-image":"url("+F+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}F=void 0}return F}},_.e("div",{class:function(){var B={};
var F=E();B=(B[F.clusterLayoutConfig?E1t(F.clusterLayoutConfig):ST1(F.size)]=!0,B["yt-spec-avatar-shape--no-margin"]=n1e(E().decorations),B["yt-spec-avatar-shape--square"]=E().type===2,B);return _.wd(B)}},_.e(_.vM,{data:S,
alt:function(){return!T()&&E().accessibilityText?E().accessibilityText:""},
targetWidth:function(){return N4m(E().size)},
targetHeight:function(){return N4m(E().size)},
className:function(){return _.wd(P())}}),_.e(_.t,{cond:function(){var B;
return((B=E().decorations)==null?void 0:B.includes(0))&&ItA(E().size)},
then:function(){return _.e("div",{class:function(){var B={};B=(B["yt-spec-avatar-shape__live-badge"]=!0,B["yt-spec-avatar-shape__live-badge--badge-small"]=E().size==="small",B["yt-spec-avatar-shape__live-badge--badge-medium"]=E().size==="medium"||E().size==="48",B["yt-spec-avatar-shape__live-badge--badge-large"]=E().size==="large",B["yt-spec-avatar-shape__live-badge--badge-extra-large"]=E().size==="extra-large"||E().size==="extra-extra-large"||E().size==="giant",B);return _.wd(B)}},_.e(_.t,{cond:function(){return E().badgeText},
then:function(B){return _.e("div",{class:"yt-spec-avatar-shape__badge-text",el:J},B)}}),_.e(_.t,{cond:m,
then:function(){return _.e("div",{class:"yt-spec-avatar-shape__badge-icon"},_.e(_.i_,{icon:w,size:function(){a:switch(E().size){case "extra-large":var B=16;break a;default:B=13}return B}}))}}))}}),_.e(_.t,{cond:function(){var B,F;
return((B=E().decorations)==null?void 0:B.includes(1))||((F=E().decorations)==null?void 0:F.includes(0))&&!ItA(E().size)},
then:function(){return _.e("div",{class:function(){var B=E(),F,K,r={};var x=(r["yt-spec-avatar-shape__live-dot"]=!((F=B.decorations)==null||!F.includes(0)||ItA(B.size)),r["yt-spec-avatar-shape__new-content"]=!((K=B.decorations)==null||!K.includes(1)),r);return _.wd(x)}})}}),_.e(_.t,{cond:function(){return!!N},
then:function(){return _.e("div",{class:function(){var B={};B=Object.assign((B["yt-spec-avatar-shape__image-overlays"]=!0,B),P());return _.wd(B)}},N==null?void 0:N())}})))))},"Na");
FPz.idomCompat={callbacks:{overlays:!0}};_.dw=_.f(function(k){function E(){S().endpoint&&_.AV(S().endpoint)}
var S=k.data;var R=k.decorations;var V=k.avatarButtonCustomClassName;var N=k.isOverlay;var h=k.clusterLayoutConfig;return _.e("avatar-view-model",null,_.e(_.t,{cond:function(){return S().image},
then:function(J){return _.e(FPz,{data:function(){return hcI({data:S(),onTap:S().endpoint?E:void 0,decorations:R==null?void 0:R(),badgeText:void 0,accessibilityText:S().accessibilityText,avatarButtonCustomClassName:V==null?void 0:V(),clusterLayoutConfig:h==null?void 0:h()})},
image:J,iconType:"RADAR_LIVE",overlays:function(){return _.e(YPA,{data:S})},
isOverlay:N})}}))},"Oa");
_.dw.idomCompat=!0;_.sV=_.f(function(k){var E=k.data;k=k.className;var S=_.Nm("yt-decorated-avatar-view-model"),R=function(){return _.W(E().avatar,_.y3)},V=_.HX(function(){var N,h=E(),J=R(),m=_.Yh(E().rendererContext),a=(N=S.value)!=null?N:void 0,T;
if(J){a={data:h,avatar:J,onTap:m,element:a};N=a.data;h=a.avatar;J=a.onTap;m=a.element;a=a.commandController;J=J?ect(J,m,a):void 0;m=[];N.liveData&&m.push(0);var w;a=(w=N.liveData)==null?void 0:w.liveBadgeText;w=(T=_.W(N.rendererContext,_.n9))==null?void 0:T.label;T=hcI({data:h,onTap:J,decorations:m,badgeText:a,accessibilityText:w?w:N.a11yLabel})}else T={size:"medium"};return T},void 0,"c00kWd");
return _.e("yt-decorated-avatar-view-model",{class:_.SQ("ytDecoratedAvatarViewModelHost",k),el:S},_.e(_.t,{cond:function(){var N;return(N=R())==null?void 0:N.image},
then:function(N){return _.e(FPz,{data:V,image:N,iconType:"RADAR_LIVE",overlays:function(){return _.e(YPA,{data:R})}})}}))},"Pa");
_.sV.idomCompat=!0;_.lR=_.f(function(k){var E=function(){var J;return Object.assign({},k.data(),(J=k.overrides)==null?void 0:J.call(k))},S=function(){return _.Wp(E().rendererContext)},R=function(){var J=E().avatars,m,a;
return(a=(m=(J==null?0:J[0])?_.W(J[0],_.y3):void 0)==null?void 0:m.avatarImageSize)!=null?a:"AVATAR_SIZE_UNKNOWN"},V=function(){return mc1(E())},N=function(){if(E().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var J=void 0;
else if((J=k.decorations)==null?0:J.call(k))J=k.decorations();else{J=E();var m=0;J.avatars&&(m+=J.avatars.length);J.decoratedText&&(m+=1);J=m>1?[3]:[]}return J},h={};
return _.e("yt-avatar-stack-view-model",{el:_.Z0(_.FX(function(){return E().rendererContext})),
class:_.SQ("yt-avatar-stack-view-model",k.className,(h["yt-avatar-stack-view-model--tappable"]=S,h["yt-avatar-stack-view-model--is-overlay"]=k.isOverlay,h["yt-avatar-stack-view-model--medium-text"]=k.useMediumText,h)),tabindex:function(){return S()?0:void 0},
role:function(){return S()?"link":void 0},
"aria-label":function(){var J,m;return(m=(J=_.W(E().rendererContext,_.n9))==null?void 0:J.label)!=null?m:""}},_.e(_.t,{cond:function(){var J;
return E().avatars&&!((J=k.hideAvatar)==null?0:J.call(k))},
then:function(){return _.e("div",{class:"yt-avatar-stack-view-model__avatars"},_.e(_.t,{cond:function(){return E().decoratedText},
then:function(J){var m={};return _.e("div",{class:_.SQ("yt-avatar-stack-view-model__text-container",(m["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS"},m["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var a;
return((a=k.isOverlay)==null?void 0:a.call(k))&&(R()==="AVATAR_SIZE_XXS"||R()==="AVATAR_SIZE_XS")},m)),
style:_.nU({width:function(){return V().avatarSizeInPx+"px"},
height:function(){return V().avatarSizeInPx+"px"}})},_.e(_.VB,{text:J,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.e("div",{style:function(){return _.nU(V().avatarStackStyle)()},
class:function(){return V().avatarStackClass}},_.e(_.cp,{data:function(){return V().avatars.reverse()}},{avatarViewModel:function(J,m){return _.e("div",{style:function(){var a,T;
return _.nU((T=(a=V()).avatarStyle)==null?void 0:T.call(a,m()))()},
class:function(){return V().avatarClass}},_.e(_.dw,{data:J.data,
decorations:N,avatarButtonCustomClassName:function(){return V().avatarButtonCustomClassName},
isOverlay:k.isOverlay,clusterLayoutConfig:function(){var a,T;return(T=(a=V()).clusterLayoutConfig)==null?void 0:T.call(a,m())}}))},
decoratedAvatarViewModel:function(J,m){return _.e("div",{style:function(){var a,T;return _.nU((T=(a=V()).avatarStyle)==null?void 0:T.call(a,m()))()},
class:function(){return V().avatarClass}},_.e(_.sV,{data:J.data}))}})))}}),_.e(_.t,{cond:function(){return E().text},
then:function(J){return _.e(_.VB,{text:J,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Qa");
_.lR.idomCompat=!0;_.qi(_.f(function(k){var E=k.data;var S=k.thumbnailSize;return _.e("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.e("div",{class:_.SQ("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return atl(S==null?void 0:S())})},_.e(_.cp,{data:function(){return E().avatarStack}},{avatarStackViewModel:function(R){return _.e(_.lR,{data:R.data,
decorations:[5]})}})))},"Ra"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Nq,
thumbnailSize:_.Nq}});var y42=_.f(function(k){k=_.dJ(k,{hidden:!1});var E=k.data;return _.e("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:k.hidden},_.e(_.VB,{text:function(){return E().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.e(_.t,{cond:function(){return E().subtitle},
then:function(){return _.e(_.VB,{text:function(){return E().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"Sa");
y42.idomCompat=!0;_.qi(y42,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Nq,hidden:_.Nq}});_.oRj=_.f(function(k){k=_.dJ(k,{isClip:!1});var E=k.data,S=k.thumbnailSize,R={};return _.e("yt-thumbnail-overlay-badge-view-model",{class:_.SQ("yt-thumbnail-overlay-badge-view-model",function(){a:switch(E().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var V="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:V="yt-thumbnail-overlay-badge-view-model--bottom-end"}return V},function(){return tbe(S==null?void 0:S())},(R["yt-thumbnail-overlay-badge-view-model--clip"]=k.isClip,
R))},_.e(_.cp,{data:function(){return E().thumbnailBadges}},{thumbnailBadgeViewModel:function(V){return _.e(PQY,{data:V.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ta");
_.oRj.idomCompat=!0;_.qi(_.oRj,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Nq,thumbnailSize:_.Nq,isClip:_.Nq}});var XJC=_.f(function(k){var E=k.data;k=k.hidden;var S=_.HX(function(){return E().indicatorCount||0},void 0,"AbKnMc"),R={};
return _.e("yt-page-indicator-view-model",{class:_.SQ("ytPageIndicatorViewModelHost",(R.ytPageIndicatorViewModelIndicatorHidden=function(){return!E().indicatorCount},R)),
hidden:k},_.e(_.jw,{each:function(){return Array(S())}},function(V,N){var h={};
return _.e("div",{class:_.SQ("ytPageIndicatorViewModelIndicator",(h.ytPageIndicatorViewModelIndicatorSelected=function(){return E().selectedIndex===N()},h))})}))},"Ua");
XJC.idomCompat=!0;_.qi(XJC,"yt-page-indicator-view-model",{props:{data:_.Nq,hidden:_.Nq}});var MY=function(){var k=_.p.apply(this,arguments)||this;k.eventSink=function(){return k};
k.disableInteraction=!1;k.noRoundedCorners=!1;k.isPreviewLoading=!1;k.isOriginalAspectRatio=!1;k.computedObjectFit=!1;k.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return k};
_.y(MY,_.p);_.I=MY.prototype;
_.I.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:_.Y("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"}}};
_.I.onImageLoaded=function(){this.loaded=!0};
_.I.onImageUnloaded=function(){this.loaded=!1};
_.I.computeRichThumbnail=function(k,E,S,R){if(k&&E&&!R&&!_.Y("disable_moving_thumbs_handling")&&!S)return E};
_.I.computeImageWidth=function(k,E){return E||9999};
_.I.computeIsOriginalAspectRatio=function(k){return k};
_.I.computeIsLive=function(k){if(k==null?0:k.badges)for(var E=0;E<k.badges.length;E++){var S=k.badges[E];if(S.metadataBadgeRenderer&&S.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(k==null?0:k.thumbnailOverlays)for(E=0;E<k.thumbnailOverlays.length;E++)if(S=k.thumbnailOverlays[E],S.thumbnailOverlayTimeStatusRenderer&&S.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.I.computeObjectFit=function(k,E){return E||(k?"CONTAIN":"")};
_.I.computeNavigationEndpoint=function(k,E,S){return k?E:S};
_.I.computeHasClip=function(k){k=_.n(k||[]);for(var E=k.next();!E.done;E=k.next())if(E.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.I.computeOverlayColor=function(k){var E;return(k==null?0:(E=k.darkColorPalette)==null?0:E.section2Color)?k.darkColorPalette.section2Color:k==null?void 0:k.sampledThumbnailColor};
_.mt.Object.defineProperties(MY.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return jNt(this.width)}}});
MY.prototype.onImageUnloaded=MY.prototype.onImageUnloaded;MY.prototype.onImageLoaded=MY.prototype.onImageLoaded;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],MY.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(SHp),_.l("design:type",Object)],MY.prototype,"ytdThumbnailBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],MY.prototype,"componentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],MY.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],MY.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],MY.prototype,"circular",void 0);
_.Z([_.H({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.l("design:type",Object)],MY.prototype,"richThumbnail",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.l("design:type",Boolean)],MY.prototype,"hasClip",void 0);_.Z([_.H(),_.l("design:type",Object)],MY.prototype,"eventSink",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],MY.prototype,"queued",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],MY.prototype,"richGridThumbnail",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],MY.prototype,"useExpandableTooltip",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],MY.prototype,"useUntranslatedNavigationEndpoint",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MY.prototype,"disableInteraction",void 0);
_.Z([_.H({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.l("design:type",Object)],MY.prototype,"computedNavigationEndpoint",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],MY.prototype,"nowPlayingEqualizerOnly",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],MY.prototype,"hidePlaybackStatus",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],MY.prototype,"objectFit",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MY.prototype,"noRoundedCorners",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],MY.prototype,"watchFeedThumbnail",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MY.prototype,"isPreviewLoading",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.l("design:type",Object)],MY.prototype,"isOriginalAspectRatio",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.l("design:type",Object)],MY.prototype,"computedObjectFit",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.l("design:type",Boolean)],MY.prototype,"isLiveVideo",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],MY.prototype,"loaded",void 0);_.Z([_.H({computed:"computeOverlayColor(data.thumbnail)"}),_.l("design:type",Object)],MY.prototype,"overlayColor",void 0);_.Z([_.H({selector:_.rre}),_.l("design:type",Boolean)],MY.prototype,"inlinePreviewIsEnabled",void 0);_.Z([_.H(),_.l("design:type",Number)],MY.prototype,"width",void 0);
_.Z([_.U("inlinePreviewIsEnabled"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MY.prototype,"isPreviewDisabled",null);_.Z([_.U("width"),_.l("design:type",String),_.l("design:paramtypes",[])],MY.prototype,"thumbnailSize",null);_.Z([_.nv("image-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MY.prototype,"onImageLoaded",null);
_.Z([_.nv("image-unloaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MY.prototype,"onImageUnloaded",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-thumbnail"})],MY);
var gRY=_.O_()(MY,"ytd-thumbnail",function(){if(T38===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);T38=k}k=T38;return k},{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 PPR=function(k){var E=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15069_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15069_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(S){UPz(E,S)};
this.onLockupMouseLeaveFn=function(S){S=S.relatedTarget;var R,V;((R=document.getElementsByTagName("ytd-video-preview"))==null?0:(V=R.item(0))==null?0:V.contains(S))||(E.terminateVideoPreview(),qY(E))};
this.onThumbnailMouseDownFn=function(){E.terminateVideoPreview();qY(E)};
this.onTouchStart=function(){E.JSC$15069_touched=!0};
this.mediaRenderer=k.mediaRenderer;this.thumbnailElement=k.thumbnailElement;this.lockupElement=k.lockupElement;this.videoPreviewOptsInput=k.videoPreviewOpts;Hq8(this);zD(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)):
_.dg(Error("Mh")):_.dg(Error("Nh")):KP5(this)},L9=function(k){KP5(k);
var E;(E=k.lockupElement)==null||E.removeEventListener("mouseenter",k.onMouseMoveFn);var S;(S=k.lockupElement)==null||S.removeEventListener("mouseleave",k.onLockupMouseLeaveFn);var R;(R=k.lockupElement)==null||R.removeEventListener("touchstart",k.onTouchStart);var V;(V=k.thumbnailElement)==null||V.removeEventListener("mousedown",k.onThumbnailMouseDownFn);qY(k)},Hq8=function(k){k.inlinePreviewIsEnabledForUser=_.vo().getState().ui.inlinePreviewIsEnabled;
k.unsubscribeFromInlinePreviewIsEnabled=_.Hq(_.vo(),_.rre,function(E){(k.inlinePreviewIsEnabledForUser=E)||qY(k)});
k.JSC$15069_unsubscribeFromInlinePreviewIsActive=_.Hq(_.vo(),_.ArI,function(E){(k.inlinePreviewIsActive=E)||qY(k)})},KP5=function(k){k.unsubscribeFromInlinePreviewIsEnabled();
k.unsubscribeFromInlinePreviewIsEnabled=function(){};
k.JSC$15069_unsubscribeFromInlinePreviewIsActive();k.JSC$15069_unsubscribeFromInlinePreviewIsActive=function(){}},UPz=function(k,E){E.buttons>0||(E=_.wO("kevlar_lockup_hover_delay",-1),k.JSC$15069_touched&&E>=0?(_.ZJ.cancelJob(k.videoPreviewJobId),k.videoPreviewJobId=_.Ch(_.ZJ,function(){pJY(k)},E),k.JSC$15069_touched=!1):pJY(k))},nil=function(k){k.videoPreviewJobId=_.Ch(_.ZJ,function(){return _.c(function(E){return E.yield(A44(k,{isAutoplay:!0}),0)})})},pJY=function(k){!k.previewTriggered&&zD(k)&&
(k.inlinePreviewIsActive&&k.terminateVideoPreview(),k.previewTriggered=!0,k.mediaRenderer.isInlinePreviewTriggered=!0,_.ZJ.cancelJob(k.videoPreviewJobId),k.videoPreviewJobId=_.Ch(_.ZJ,function(){return _.c(function(E){return E.yield(A44(k),0)})}))},A44=function(k,E){E=E===void 0?{}:E;
var S=E.isAutoplay===void 0?!1:E.isAutoplay;var R,V,N,h;return _.c(function(J){if(J.nextAddress==1){if(!zD(k))return J.return();R=k.getVideoPreviewOpts();if(!R)return J.return();S&&(R.isAutoplay=!0);return(N=(V=_.zR(k.mediaRenderer.hostElement,"yt-open-video-preview-action",[R]))&&V[0])?J.yield(V[0],3):J.jumpTo(2)}J.nextAddress!=2&&(N=J.yieldResult===1);if(N){var m=(h=k.mediaRenderer)==null?void 0:h.data;m&&(w2b(m)?delete m.inlinePlayerData:"inlinePlaybackEndpoint"in m&&delete m.inlinePlaybackEndpoint)}_.KR(J)})};
PPR.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var k,E;if((E=(k=this.videoPreviewOptsInput)==null?void 0:k.videoPreviewData)!=null)k=E;else if(k=this.mediaRenderer.data)if(w2b(k))k={inlinePlaybackEndpoint:_.Uk(k.inlinePlayerData.onVisible),navigationEndpoint:_.Uk(k.onTap),thumbnail:"image"in k?k.image:k.thumbnail,thumbnailOverlays:void 0,accessibilityText:T4b(k)};else if("multipleInlinePlaybackEndpoint"in k){var S=_.W(_.W(k.multipleInlinePlaybackEndpoint,PAA),BBj);if(S!=
null&&S.playerDescriptors){E=[];S=_.n(S.playerDescriptors);for(var R=S.next();!R.done;R=S.next())R=R.value,E.push({inlinePlaybackEndpoint:R.inlinePlaybackEndpoint,navigationEndpoint:R.navigationEndpoint,thumbnail:R.thumbnail,thumbnailOverlays:R.thumbnailOverlays,accessibilityText:T4b(k)});k=E}else k=void 0}else k={inlinePlaybackEndpoint:k.inlinePlaybackEndpoint,navigationEndpoint:k.navigationEndpoint,thumbnail:k.thumbnail,thumbnailOverlays:k.thumbnailOverlays,accessibilityText:T4b(k)};else k=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:k,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var zD=function(k){var E;if(E=k.inlinePreviewIsEnabledForUser)E=(k=k.mediaRenderer.data)?"inlinePlaybackEndpoint"in k&&k.inlinePlaybackEndpoint||w2b(k)&&k.inlinePlayerData||"multipleInlinePlaybackEndpoint"in k&&k.multipleInlinePlaybackEndpoint?!0:!1:!1;return E};
PPR.prototype.terminateVideoPreview=function(){_.qe(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var qY=function(k){_.ZJ.cancelJob(k.videoPreviewJobId);k.inlinePreviewIsActive=!1;k.previewTriggered=!1;k.mediaRenderer.isInlinePreviewTriggered=!1};var r42=_.ry(["#"]),QL=function(){var k=_.p.apply(this,arguments)||this;k.isDisabled=!1;return k};
_.y(QL,_.p);_.I=QL.prototype;
_.I.configureRendererStamper=function(){return{"data.menu":Ky,"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.getMetadata=function(k){var E=[];if(k.metadataText&&Object.keys(k.metadataText).length>0){var S=this.ytRendererBehavior.getSimpleString(k.metadataText);k.upcomingEventData&&k.upcomingEventData.upcomingEventText&&(S=_.t0(S,Number(k.upcomingEventData.startTime)));E.push(S)}else k.shortViewCountText&&E.push(this.ytRendererBehavior.getSimpleString(k.shortViewCountText)),k.publishedTimeText&&E.push(this.ytRendererBehavior.getSimpleString(k.publishedTimeText)),k.upcomingEventData&&k.upcomingEventData.upcomingEventText&&
(S=this.ytRendererBehavior.getSimpleString(k.upcomingEventData.upcomingEventText),E.push(_.t0(S,Number(k.upcomingEventData.startTime))));return E};
_.I.calculateBylineText=function(k){return k.shortBylineText?k.shortBylineText:k.bylineText?k.bylineText:null};
_.I.calculateIsDisabled=function(k){return!!k.isDisabled};
_.I.computeHrefWithDefault=function(k){return this.ytComponentBehavior.computeHref_(k)||_.iRe(r42)};
_.I.onDetailsTap=function(k){var E=this.data&&this.data.navigationEndpoint;E&&!_.v9(_.vT(k)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.Y("kevlar_grid_video_renderer_killswitch")?_.Me(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E))};
_.I.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15076_inlinePreviewHoverListener=oE({mediaRenderer:this,lockupElement:_.Cc(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Cc(this.hostElement).querySelector("ytd-thumbnail")})};
_.I.clearInlinePreviewHoverListeners=function(){var k;(k=this.JSC$15076_inlinePreviewHoverListener)==null||L9(k)};
_.I.computeThumbnailWidth=function(k,E){return E&&E>0?E:k?360:210};
_.I.computeNumBadgesInRow=function(k){var E;return((E=k.badges)==null?void 0:E.length)||0};
_.I.computeShowChannelThumbnail=function(k,E){var S;return E&&!!(k==null?0:(S=k.channelThumbnailSupportedRenderers)==null?0:S.channelThumbnailWithLinkRenderer)};
_.mt.Object.defineProperties(QL.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.JSC$15076_inlinePreviewHoverListener)==null?0:zD(k))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
QL.prototype.dataChanged=QL.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],QL.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],QL.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.g(_.VD),_.l("design:type",Object)],QL.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],QL.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],QL.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],QL.prototype,"noEndpoints",void 0);_.Z([_.H({computed:"calculateBylineText(data)"}),_.l("design:type",Object)],QL.prototype,"bylineText",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],QL.prototype,"isSearch",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],QL.prototype,"isDownloading",void 0);_.Z([_.H({reflectToAttribute:!0,value:0}),_.l("design:type",Number)],QL.prototype,"width",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.l("design:type",Object)],QL.prototype,"isDisabled",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QL.prototype,"dataChanged",null);_.Z([_.U("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],QL.prototype,"isHovered",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],QL.prototype,"hasAttributedBylineText",null);
_.Z([_.U("bylineText","hasAttributedBylineText"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],QL.prototype,"showBylineText",null);_.Z([_.D({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],QL);
_.b(QL,"ytd-grid-video-renderer",function(){if(VV8!==void 0)return VV8;var k=document.createElement("template");_.X(k,'\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" class="style-scope ytd-grid-video-renderer"><div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" class="style-scope ytd-grid-video-renderer"></div><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" hidden="[[!showBylineText]]" 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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return VV8=k},{mode:_.GN("kevlar_poly_si_batch_j047")?1:2});var uqj;var OV=function(){var k=_.p.apply(this,arguments)||this;k.roundedContainer=!0;k.skipRoundingTop=!1;k.disableTopPadding=!1;k.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");k.extractOverlay=!1;return k};
_.y(OV,_.p);OV.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
OV.prototype.onClick=function(k){var E,S=(E=this.data)==null?void 0:E.sourceEndpoint;!_.v9(_.vT(k),this.hostElement,["A".toString()])&&S&&_.Me(this.hostElement,"yt-navigate",{endpoint:S})};
_.mt.Object.defineProperties(OV.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 k;return!((k=this.data)==null||!k.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=(k=this.data)==null?void 0:k.paragraphMaxLines)!=null?E:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OV.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],OV.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],OV.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OV.prototype,"showVerticalDividers",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OV.prototype,"roundedContainer",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OV.prototype,"skipRoundingTop",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OV.prototype,"disableTopPadding",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],OV.prototype,"amsterdamEnabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OV.prototype,"extractOverlay",void 0);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],OV.prototype,"showMetadataAtTop",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],OV.prototype,"showMetadataBelowTitle",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.menu"),_.l("design:type",Object),_.l("design:paramtypes",[])],OV.prototype,"hasMenu",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.truncateParagraphs"),_.l("design:type",Object),_.l("design:paramtypes",[])],OV.prototype,"truncateParagraphs",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.paragraphMaxLines"),_.l("design:type",Number),_.l("design:paramtypes",[])],OV.prototype,"paragraphMaxLines",null);
_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.background"),_.l("design:type",Object),_.l("design:paramtypes",[])],OV.prototype,"background",null);_.Z([_.D({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],OV);
_.b(OV,"ytd-info-panel-content-renderer",function(){if(uqj!==void 0)return uqj;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return uqj=k},{mode:_.GN("kevlar_poly_si_batch_j076")?1:2});var xP2;var LPz;var jlj;var DPC;var GD=function(){return _.p.apply(this,arguments)||this};
_.y(GD,_.p);GD.prototype.computeStyle=function(k){return k};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],GD.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],GD.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],GD.prototype,"style_",void 0);_.Z([_.U_({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],GD);
_.b(GD,"yt-channel-thumbnail-with-link-renderer",function(){if(DPC===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;jlj===void 0&&(jlj=document.createElement("template"));var R=jlj;S.call(E,R.content.cloneNode(!0),k.content.firstChild);DPC=k}k=DPC;return k},{mode:2});var Cy=function(){return _.p.apply(this,arguments)||this};
_.y(Cy,_.p);Cy.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"}}}};
Cy.prototype.computeTitleStyle=function(k){return k||null};
Cy.prototype.computeAvatarStyle=function(k){return k||null};
Cy.prototype.computeShowNavigationButton=function(k,E){return!(k==null||!k.navigationButton||E)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Cy.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.l("design:type",String)],Cy.prototype,"titleStyle",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.l("design:type",String)],Cy.prototype,"avatarStyle",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Cy.prototype,"hideNavigationButton",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Cy.prototype,"isModernSd",void 0);_.Z([_.D({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Cy);
_.b(Cy,"ytd-rich-list-header-renderer",function(){if(LPz!==void 0)return LPz;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return LPz=k},{mode:_.GN("kevlar_poly_si_batch_j058")?1:2});var k_=function(){return _.p.apply(this,arguments)||this};
_.y(k_,_.p);k_.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]]"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],k_.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],k_.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],k_.prototype,"isSearch",void 0);_.Z([_.D({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],k_);
_.b(k_,"ytd-preview-card-renderer",function(){if(xP2!==void 0)return xP2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return xP2=k},{mode:1});var $PY;var Eh=function(){return _.p.apply(this,arguments)||this};
_.y(Eh,_.p);Eh.prototype.configureRendererStamper=function(){return{"data.menu":Ky}};
Eh.prototype.dataChanged=function(){var k=this.get("colorExtractionPalette.section1Color",this.data);k=_.HT(k);_.VO(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":k})};
Eh.prototype.computeCardStyle=function(k){return this.get("style.value",k)||null};
Eh.prototype.dataChanged=Eh.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],Eh.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Eh.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.l("design:type",String)],Eh.prototype,"cardStyle",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Eh.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],Eh);
_.b(Eh,"ytd-compact-channel-recommendation-card-renderer",function(){if($PY!==void 0)return $PY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return $PY=k},{mode:1});var f35;var vR5;var SY=function(){var k=_.p.apply(this,arguments)||this;k.alignAuto=!1;k.collapsed=!0;k.isToggled=!1;k.alwaysCollapsed=!1;k.canToggle=!0;k.collapsedHeight=80;k.disableToggle=!1;k.alwaysToggleable=!1;k.reversed=!1;k.shouldUseNumberOfLines=!1;k.recomputeOnResize=!1;k.canToggleJobId=0;k.lastReversed=!1;return k};
_.y(SY,_.p);_.I=SY.prototype;_.I.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.I.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.I.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var k=_.Cc(this.hostElement),E=k.childNodes,S=document.createDocumentFragment(),R=k.childNodes.length-1;R>=0;R--)_.Cc(S).appendChild(E[R]);_.Y("enable_shadydom_free_scoped_node_methods")?_.kT(this.hostElement).appendChild(S):k.appendChild(S)}};
_.I.ready=function(){var k=this;_.xT(function(){k.initChildrenObserver()},1)};
_.I.attached=function(){var k;(k=this.resizeObserver)==null||k.observe(this.content)};
_.I.detached=function(){this.detachObserver()};
_.I.toggle=function(k,E){this.canToggle&&(this.isToggled=E,_.Me(this.hostElement,"yt-refit"),k&&k.stopPropagation())};
_.I.reset=function(){this.childrenChanged()};
_.I.onIronResize=function(){this.recomputeOnResize&&!_.Y("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.I.computeIsMoreVisible=function(k,E){return k&&!E};
_.I.computeShouldUseNumberOfLines=function(k){try{return!!k&&window.CSS.supports("-webkit-line-clamp","1")}catch(E){}return!1};
_.I.computeIsLessVisible=function(k,E){return k&&E};
_.I.observeCollapsedHeightAndMaxLines=function(){var k=this.collapsedHeight,E=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.VO(this.hostElement,{"--ytd-expander-max-lines":""+E,"--ytd-expander-collapsed-height":""}):_.VO(this.hostElement,{"--ytd-expander-collapsed-height":k+"px","--ytd-expander-max-lines":""})};
_.I.handleMoreTap=function(k){this.disableToggle||(_.Me(this.hostElement,"yt-expander-more-tapped"),this.toggle(k,!0))};
_.I.handleLessTap=function(k){_.Me(this.hostElement,"yt-expander-less-tapped");this.toggle(k,!1)};
_.I.initChildrenObserver=function(){var k=this;this.observer=new MutationObserver(function(){k.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.Y("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.NJ(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var E;(E=k.resizeThrottle)==null||E.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.I.childrenChanged=function(){var k=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){GT(function(){k.canToggleJobId=0;k.calculateCanCollapse()})}))};
_.I.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};
_.I.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.I.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("collapsed-changed",this.collapsed))};
_.I.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("is-toggled-changed",this.isToggled))};
_.I.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("can-toggle-changed",this.canToggle))};
_.mt.Object.defineProperties(SY.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
SY.prototype.canToggleChangedForBinding=SY.prototype.canToggleChangedForBinding;SY.prototype.isToggledChangedForBinding=SY.prototype.isToggledChangedForBinding;SY.prototype.collapsedChangedForBinding=SY.prototype.collapsedChangedForBinding;SY.prototype.observeCollapsedHeightAndMaxLines=SY.prototype.observeCollapsedHeightAndMaxLines;SY.prototype.onIronResize=SY.prototype.onIronResize;SY.prototype.reversedChanged=SY.prototype.reversedChanged;SY.prototype.toggledChanged=SY.prototype.toggledChanged;
SY.prototype.alwaysToggleableChanged=SY.prototype.alwaysToggleableChanged;_.Z([_.g(_.KS),_.l("design:type",Object)],SY.prototype,"ironResizableBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],SY.prototype,"alignAuto",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],SY.prototype,"collapsed",void 0);_.Z([_.H(),_.l("design:type",Object)],SY.prototype,"isToggled",void 0);_.Z([_.H(),_.l("design:type",Object)],SY.prototype,"alwaysCollapsed",void 0);
_.Z([_.H(),_.l("design:type",Object)],SY.prototype,"canToggle",void 0);_.Z([_.H(),_.l("design:type",Object)],SY.prototype,"collapsedHeight",void 0);_.Z([_.H(),_.l("design:type",Object)],SY.prototype,"disableToggle",void 0);_.Z([_.H(),_.l("design:type",Object)],SY.prototype,"alwaysToggleable",void 0);_.Z([_.H(),_.l("design:type",Object)],SY.prototype,"reversed",void 0);_.Z([_.H(),_.l("design:type",Number)],SY.prototype,"maxNumberOfLines",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.l("design:type",Object)],SY.prototype,"shouldUseNumberOfLines",void 0);_.Z([_.H(),_.l("design:type",Object)],SY.prototype,"recomputeOnResize",void 0);_.Z([_.JO("#content"),_.l("design:type",HTMLDivElement)],SY.prototype,"content",void 0);_.Z([_.ac("alwaysToggleable"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SY.prototype,"alwaysToggleableChanged",null);
_.Z([_.ac("isToggled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SY.prototype,"toggledChanged",null);_.Z([_.U("canToggleJobId"),_.l("design:type",Object),_.l("design:paramtypes",[])],SY.prototype,"isResetting",null);_.Z([_.il("reversed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SY.prototype,"reversedChanged",null);
_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SY.prototype,"onIronResize",null);_.Z([_.il("maxNumberOfLines","collapsedHeight"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SY.prototype,"observeCollapsedHeightAndMaxLines",null);_.Z([_.il("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SY.prototype,"collapsedChangedForBinding",null);
_.Z([_.il("isToggled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SY.prototype,"isToggledChangedForBinding",null);_.Z([_.il("canToggle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SY.prototype,"canToggleChangedForBinding",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-expander"})],SY);
_.b(SY,"ytd-expander",function(){if(vR5!==void 0)return vR5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vR5=k},{mode:1});var RT=function(){return _.p.apply(this,arguments)||this};
_.y(RT,_.p);RT.prototype.computeIsCarousel=function(k){return!!k.isCarousel};
RT.prototype.observeLightsourcePalette=function(){var k,E=(k=this.data)==null?void 0:k.vibrantsourceColorPaletteData;E&&_.wb(this.hostElement,E)};
RT.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
RT.prototype.observeLightsourcePalette=RT.prototype.observeLightsourcePalette;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],RT.prototype,"data",void 0);_.Z([_.H({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],RT.prototype,"isCarousel",void 0);
_.Z([_.il("data.vibrantsourceColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],RT.prototype,"observeLightsourcePalette",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],RT);
_.b(RT,"ytd-media-upsell-renderer",function(){if(f35!==void 0)return f35;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return f35=k},{mode:2});var bqT;var V5=function(){var k=_.p.apply(this,arguments)||this;k.JSC$15103_playerEvents=new Map;k.listeningToPlayer=!1;k.startX=0;k.active=!1;k.shouldShowButtons=_.Y("web_buttons_hidden_killswitch");k.isHighlighted=!1;k.useHighlightStyling=_.Y("web_enable_deeper_metadata_highlight_styling");k.modern=_.Y("kevlar_modern_sd");k.enableProblemWalkthrough=_.Y("problem_walkthrough_sd");return k};
_.y(V5,_.p);_.I=V5.prototype;
_.I.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}}}}}};
_.I.created=function(){this.JSC$15103_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.I.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Ic(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Ic(this,this.onActiveUpdate))};
_.I.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Ic(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Ic(this,this.onActiveUpdate))};
_.I.onDataChanged=function(){this.removePlayerListeners()};
_.I.onColorPaletteChange=function(){var k={},E;if(_.aR()==="USER_INTERFACE_THEME_DARK"&&((E=this.data)==null?0:E.darkColorPalette)){var S=this.data.darkColorPalette;k["--ytd-macro-markers-list-item-background-color"]=_.Kc(this.get("section2Color",S))}else{var R;_.aR()==="USER_INTERFACE_THEME_LIGHT"&&((R=this.data)==null?0:R.lightColorPalette)&&(S=this.data.lightColorPalette,k["--ytd-macro-markers-list-item-background-color"]=_.Kc(this.get("section3Color",S)))}S?(k["--ytd-macro-markers-list-item-title-color"]=
_.Kc(this.get("primaryTitleColor",S)),k["--ytd-macro-markers-list-item-secondary-color"]=_.Kc(this.get("secondaryTitleColor",S)),k["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Kc(this.get("section1Color",S)),this.customButtonProperties={customColors:{color:_.Kc(this.get("primaryTitleColor",S))}},this.useColorSampling=!0):(k["--ytd-macro-markers-list-item-background-color"]="initial",k["--ytd-macro-markers-list-item-title-color"]="initial",k["--ytd-macro-markers-list-item-secondary-color"]=
"initial",k["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.VO(this.hostElement,k)};
_.I.onEndpointMouseDown=function(k){this.startX=k.clientX};
_.I.onEndpointClick=function(k){var E=this,S,R,V;return _.c(function(N){if(N.nextAddress==1){if(E.startX!==k.clientX)return k.preventDefault(),N.return();E.data&&E.ytRendererBehavior.logExplicitClick(E.data);if(!E.seekWithAnimationOnClick)return N.jumpTo(0);if(k.button!==0||k.shiftKey||k.altKey||k.metaKey||k.ctrlKey||_.v9(_.vT(k),E.hostElement,["BUTTON".toString()]))return N.return();k.stopPropagation();k.preventDefault();return E.data?N.yield(_.l_().getPlayerPromise(),3):N.return()}S=N.yieldResult;
V=(R=_.W(E.data.onTap,_.jm))==null?void 0:R.startTimeSeconds;V!==void 0&&S.seekToTimeWithAnimation(V*1E3,_.$n(E.data.title));_.KR(N)})};
_.I.computeLayout=function(k){return k};
_.I.computeIsHighlighted=function(k){return!!k};
_.I.computeCarouselType=function(k){return k};
_.I.hideModernCarousel=function(k){return this.modern&&this.hideThumbnail(k)};
_.I.hideThumbnail=function(k){return this.enableProblemWalkthrough&&k!==null&&k==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.I.onRepeatButtonToggle=function(k){var E=this;k.detail.toggled&&_.l_().getPlayerPromise().then(function(S){E.ytPlayerListenerBehavior.listenToPlayerEvents(S,E.JSC$15103_playerEvents);E.listeningToPlayer=!0})};
_.I.onLoopRangeChange=function(k){var E=_.Cc(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(E){var S=E.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",E.polymerController.data);if(S){var R=Number(S.endTimeMs);if(Number(S.startTimeMs)!==(k==null?void 0:k.startTimeMs)||R!==(k==null?void 0:k.endTimeMs))E.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.I.removePlayerListeners=function(){var k=this;this.listeningToPlayer&&_.l_().getPlayerPromise().then(function(E){k.ytPlayerListenerBehavior.unlistenFromPlayerEvents(E,k.JSC$15103_playerEvents);k.listeningToPlayer=!1})};
_.I.onActiveUpdate=function(k){this.active=k.detail.active};
V5.prototype.onColorPaletteChange=V5.prototype.onColorPaletteChange;V5.prototype.onDataChanged=V5.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],V5.prototype,"ytPlayerListenerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],V5.prototype,"data",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],V5.prototype,"useCustomColors",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],V5.prototype,"active",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],V5.prototype,"shouldShowButtons",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.l("design:type",String)],V5.prototype,"layout",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.l("design:type",Object)],V5.prototype,"isHighlighted",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],V5.prototype,"useHighlightStyling",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],V5.prototype,"modern",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],V5.prototype,"enableProblemWalkthrough",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.l("design:type",String)],V5.prototype,"carouselType",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],V5.prototype,"useColorSampling",void 0);_.Z([_.H(),_.l("design:type",Boolean)],V5.prototype,"seekWithAnimationOnClick",void 0);_.Z([_.H(),_.l("design:type",Object)],V5.prototype,"customButtonProperties",void 0);
_.Z([_.JO("#repeat-button"),_.l("design:type",HTMLElement)],V5.prototype,"repeatButton",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V5.prototype,"onDataChanged",null);_.Z([_.il("data.lightColorPalette","data.darkColorPalette"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V5.prototype,"onColorPaletteChange",null);_.Z([_.D({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],V5);
_.b(V5,"ytd-macro-markers-list-item-renderer",function(){if(bqT!==void 0)return bqT;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return bqT=k},{mode:1});var Zqd;var dP4;var NZ=function(){return _.p.apply(this,arguments)||this};
_.y(NZ,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],NZ.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],NZ);
_.b(NZ,"ytd-title-and-button-list-header-renderer",function(){if(dP4!==void 0)return dP4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return dP4=k},{mode:1});var sl2;var l32=new _.QE("BUTTON_RENDERER_WIZ_TOKEN"),MV8=new _.QE("BUTTON_RENDERER_TOKEN");_.IT=_.f(function(k){var E=_.en().resolve(_.mz(l32));if(E)return _.e(E,Object.assign({},k,{overrides:k.buttonOverrides}));var S=_.en().resolve(MV8);return S?_.e(Z51,null,function(){return _.e(i2,null,function(){var R,V,N,h,J,m,a,T,w,P,B,F;return void S(k.data(),{onButtonClickCallback:k.onButtonClickCallback,shouldShowIcons:(R=k.shouldShowIcons)==null?void 0:R.call(k),icon:(V=k.icon)==null?void 0:V.call(k),processAllEndpoints:(N=k.processAllEndpoints)==null?void 0:N.call(k),preventDefault:(h=k.preventDefault)==
null?void 0:h.call(k),stopPropagation:(J=k.stopPropagation)==null?void 0:J.call(k),disableButtonRendererClickHandling:(m=k.disableButtonRendererClickHandling)==null?void 0:m.call(k),className:(a=k.className)==null?void 0:a.call(k),buttonOverrides:(T=k.buttonOverrides)==null?void 0:T.call(k),forceModernIconButton:(w=k.forceModernIconButton)==null?void 0:w.call(k),isSubscribe:(P=k.isSubscribe)==null?void 0:P.call(k),alignByText:(B=k.alignByText)==null?void 0:B.call(k),forceDisabled:(F=k.forceDisabled)==
null?void 0:F.call(k)})})}):_.e(_.tj,null)},"Va");
_.IT.idomCompat=!0;var qPp=_.f(function(k){var E=k.data,S=_.Zk(k.useSquareAspectRatio,!1);return _.e("dismissed-mini-game-card-view-model",null,_.e(_.t,{cond:function(){var R,V;return(R=E().responseText)==null?void 0:(V=R.runs)==null?void 0:V.length},
then:function(){var R={};return _.e("div",{class:_.SQ("yt-mini-game-card-view-model__dismissed-card",(R["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!S()},R["yt-mini-game-card-view-model--dismissed-square-card"]=S,R))},_.e("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.e(_.t,{cond:function(){return E().responseText.runs[0].text},
then:function(V){return _.e("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:V},V)}}),_.e(_.cp,{data:function(){return E().buttons}},{buttonRenderer:_.IT,
buttonViewModel:_.yB})))}}))},"Wa");var E5T=_.f(function(k){k=_.dJ(k,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var E=k.data,S=k.useFullWidth,R=k.isDesktopWeb,V=k.addSearchResultTopMargin,N=function(){return E().layout},h=function(){return E().title},J=function(){return E().metadataText?E().metadataText:E().genre},m=function(){return E().channelName},a=function(){return E().image},T=function(){return E().colorPalette},w=function(){return E().actionButton},P=function(){return E().overflowButton},
B=function(){return E().avatar},F=function(){var L={};
L=_.SQ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(L["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return R()},L));
return _.e("div",{class:L},_.e(zX8,{imageData:a,colorPalette:T}),_.e(Ql5,{onTap:function(){return E().onTap},
imageData:a,accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.e(_.t,{cond:function(){return!R()},
then:function(){return _.e(_.tj,null,_.e(Oq4,{layout:N,colorPalette:T,isDesktopWeb:R,overflowButton:P,avatar:B,onTap:function(){return E().onTap},
genre:J,title:h,channelName:m}),_.e(Guz,{actionButton:w}))}}))},K=function(){var L={};
L=_.SQ((L["yt-mini-game-card-view-model--search-result-desktop"]=function(){return R()},L["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!R()},L["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return V()},L));
return _.e("div",{class:L},F(),_.e(CQC,{description:function(){return E().description},
isDesktopWeb:R,title:h,genre:J,onTap:function(){return E().onTap},
actionButton:w,overflowButton:P,avatar:B,channelName:m}))},r=function(){var L={};
L=_.SQ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(L["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return R()},L["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return R()&&E().width===135},L["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return R()},L["yt-mini-game-card-view-model--big-metadata-font"]=function(){return E().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},L["yt-mini-game-card-view-model--use-full-width"]=
function(){return S()},L["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!w()},L));
return _.e("div",{class:L},_.e(kf5,{colorPalette:T,isDesktopWeb:R,onTap:function(){return E().onTap},
accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
actionButton:w,imageData:a}),_.e(Oq4,{layout:N,colorPalette:T,isDesktopWeb:R,overflowButton:P,avatar:B,onTap:function(){return E().onTap},
genre:J,title:h,channelName:m}))},x=function(){var L={};
L=_.SQ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(L["yt-mini-game-card-view-model--square-card-desktop"]=function(){return R()},L["yt-mini-game-card-view-model--use-full-width"]=function(){return S()},L));
return _.e("div",{class:L},_.e(Ql5,{onTap:function(){return E().onTap},
imageData:a,accessibilityText:function(){return E().accessibilityText},
overlayBadgeText:function(){return E().overlayBadgeText},
iconName:function(){return E().iconName},
unplayableInlinePlaybackIconName:function(){return E().unplayableInlinePlaybackIconName},
isDesktopWeb:R}),_.e(Oq4,{layout:N,colorPalette:T,isDesktopWeb:R,overflowButton:P,avatar:B,onTap:function(){return E().onTap},
genre:J,title:h,channelName:m}))};
return _.e("mini-game-card-view-model",{class:k.className},_.e(_.D_,null,_.e(_.xk,{when:function(){return N()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return r()}),_.e(_.xk,{when:function(){return N()==="MINI_APP_LAYOUT_SQUARE"}},function(){return x()}),_.e(_.xk,{when:function(){return N()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return K()})))},"Xa");
E5T.idomCompat=!0;var Guz=_.f(function(k){var E=_.Zk(k.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.e(_.cp,{data:k.actionButton},{buttonViewModel:function(S){return _.e("div",{class:E},_.e(_.yB,{data:S.data}))}})},"Ya"),Ql5=_.f(function(k){var E=k.onTap;
var S=k.imageData;var R=k.accessibilityText;var V=k.overlayBadgeText;var N=k.iconName;var h=k.unplayableInlinePlaybackIconName;k=k.isDesktopWeb;return _.e(_.P5,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:E},_.e(_.vM,{data:S,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(R==null?void 0:R())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.e(SRj,{overlayBadgeText:V,iconName:N,unplayableInlinePlaybackIconName:h,isDesktopWeb:k}))},"Za"),SRj=_.f(function(k){var E=k.overlayBadgeText;
var S=k.iconName;var R=k.unplayableInlinePlaybackIconName;var V=k.isDesktopWeb;return _.e("div",{class:"yt-mini-game-card-view-model__badge-container"},_.e(_.t,{cond:S,then:function(N){return _.e("div",{class:"yt-mini-game-card-view-model__badge"},_.e("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.e(_.i_,{icon:N,className:"yt-mini-game-card-view-model__icon",size:12}),_.e("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},E)))}}),_.e(_.t,{cond:function(){return!S()&&
E()},
then:function(){return _.e("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},E)}}),_.e(_.t,{cond:function(){return R()&&V()},
then:function(){return _.e("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.e(_.i_,{icon:R,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"$a"),zX8=_.f(function(k){var E=k.colorPalette;
var S=k.imageData;var R=function(){return E().vibrantColorPalette?E().vibrantColorPalette.section2Color:E().sectionTwoColor};
return _.e(_.tj,null,_.e("div",{class:"yt-mini-game-card-view-model__background-base",style:_.nU({"background-color":function(){return pc(R(),"1")}})}),_.e("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.nU({"background-image":function(){return"url("+S().sources[0].url+")"}})}),_.e("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.nU({background:function(){return"linear-gradient(180deg,\n    "+pc(R(),".8")+" 0%,\n    "+pc(R(),".4")+" 25%,\n    "+pc(E().vibrantColorPalette?E().vibrantColorPalette.section4Color:E().sectionFourColor,".8")+" 100%)"}})}))},"ab"),Oq4=_.f(function(k){var E=k.layout;
var S=k.colorPalette;var R=k.overflowButton;var V=k.avatar;var N=k.onTap;var h=k.title;var J=k.channelName;var m=k.genre;var a=function(){var T;return E()!=="MINI_APP_LAYOUT_SQUARE"&&((T=S())==null?0:T.textPrimaryColor)?"color: "+pc(S().textPrimaryColor,".7"):""};
return _.e("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.e(_.t,{cond:V,then:function(){return _.e("div",{class:"yt-mini-game-card-view-model__avatar"},_.e(_.cp,{data:V},{avatarViewModel:_.dw}))}}),_.e(_.P5,{command:N,
className:"yt-mini-game-card-view-model__metadata-details"},_.e("h3",{class:"yt-mini-game-card-view-model__title",title:h},h),_.e(_.t,{cond:V,then:function(){return _.e("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.e("span",{class:"yt-mini-game-card-view-model__genre",title:J,style:a},J),_.e("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:a},m))},
else:function(){return _.e("span",{class:"yt-mini-game-card-view-model__genre",title:m},m)}})),_.e("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.e(_.cp,{data:R},{buttonViewModel:function(T){var w=T.data;
return _.e(_.yB,{data:function(){return Object.assign({},w(),{customFontColor:E()==="MINI_APP_LAYOUT_SINGLETON"?w().customFontColor:void 0})}})}})))},"bb"),kf5=_.f(function(k){var E=k.colorPalette;
var S=k.isDesktopWeb;var R=k.onTap;var V=k.accessibilityText;var N=k.overlayBadgeText;var h=k.iconName;var J=k.unplayableInlinePlaybackIconName;var m=k.actionButton;k=k.imageData;return _.e("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.e(zX8,{imageData:k,colorPalette:E}),_.e(Ql5,{onTap:R,imageData:k,accessibilityText:V,overlayBadgeText:N,iconName:h,unplayableInlinePlaybackIconName:J,isDesktopWeb:S}),_.e(_.t,{cond:function(){return m==null?void 0:m()},
then:function(){return _.e(Guz,{actionButton:m})}}))},"cb"),CQC=_.f(function(k){var E=k.description;
var S=k.isDesktopWeb;var R=k.title;var V=k.genre;var N=k.onTap;var h=k.actionButton;var J=k.overflowButton;var m=k.avatar;k=k.channelName;var a={};a=_.SQ("yt-mini-game-card-view-model--search-result-metadata-wrapper",(a["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=S,a["yt-mini-game-card-view-model--show-unplayable-on-hover"]=S,a["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!S()},a));
var T={};T=_.SQ("yt-mini-game-card-view-model__search-result-info-row",(T["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!S()},T));
return _.e("div",{class:a},_.e("div",{class:T},_.e(_.P5,{command:N,className:"yt-mini-game-card-view-model__metadata-details"},_.e("h3",{class:"yt-mini-game-card-view-model__title",title:R},R),_.e("span",{class:"yt-mini-game-card-view-model__genre",title:V},V)),_.e(Guz,{actionButton:h,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.e("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.e(_.cp,{data:J},{buttonViewModel:_.yB}))),_.e("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.e("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.e("div",{class:"yt-mini-game-card-view-model__avatar"},_.e(_.cp,{data:m},{avatarViewModel:function(w){var P=w.data;return _.e(_.dw,{data:function(){return Object.assign({},P(),{avatarImageSize:S()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.e(_.P5,{command:N,
className:"yt-mini-game-card-view-model__description"},_.e("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},k)),_.e(_.P5,{command:N,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.e("div",null)))),_.e(_.t,{cond:S,then:function(){return _.e(_.P5,{command:N,className:"yt-mini-game-card-view-model__description"},E)}}))},"db");_.qi(E5T,"mini-game-card-view-model",{props:{data:_.Nq,className:_.Nq,useFullWidth:_.Nq,isDesktopWeb:_.Nq,addSearchResultTopMargin:_.Nq}});_.qi(qPp,"dismissed-mini-game-card-view-model",{props:{data:_.Nq,useSquareAspectRatio:_.Nq}});var ns=function(){var k=_.p.apply(this,arguments)||this;k.isSearch=!1;k.isRichGrid=!1;return k};
_.y(ns,_.p);_.I=ns.prototype;_.I.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.I.dismissibleItemOnYtServiceRequestSent=function(k,E){E.actions&&this.dismissibleItemProcessActions(k,E.actions)};
_.I.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.I.dataChanged=function(){this.dismissibleItemReset()};
_.I.dismissibleItemProcessActions=function(k,E){for(var S=0;S<E.length;S++){var R=E[S];_.W(R,_.WF)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.W(R,_.WF)),k.stopPropagation())}};
_.I.dismissibleItemHandleReplaceEnclosingAction=function(k){this.dismissedRenderer=k.item;this.isDismissed=!0};
_.mt.Object.defineProperties(ns.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var k;return!!this.data&&!((k=this.dismissedRenderer)==null?0:k.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.dismissedRenderer)==null||!k.notificationMultiActionRenderer)}}});
ns.prototype.dataChanged=ns.prototype.dataChanged;ns.prototype.dismissibleItemOnRequestSent=ns.prototype.dismissibleItemOnRequestSent;ns.prototype.dismissibleItemOnYtServiceRequestSent=ns.prototype.dismissibleItemOnYtServiceRequestSent;_.Z([_.H(),_.l("design:type",Object)],ns.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ns.prototype,"isSearch",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ns.prototype,"isDismissed",void 0);
_.Z([_.H(),_.l("design:type",Object)],ns.prototype,"dismissedRenderer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ns.prototype,"isRichGrid",void 0);_.Z([_.U("data.layout"),_.l("design:type",Object),_.l("design:paramtypes",[])],ns.prototype,"useSquareAspectRatio",null);_.Z([_.U("data","dismissedRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],ns.prototype,"showCard",null);
_.Z([_.U("data","dismissedRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],ns.prototype,"showDismissed",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],ns.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.Z([_.nv("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ns.prototype,"dismissibleItemOnRequestSent",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ns.prototype,"dataChanged",null);_.Z([_.U_({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],ns);
_.b(ns,"ytd-mini-game-card-view-model",function(){if(sl2!==void 0)return sl2;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return sl2=k},{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var R4p;var VPT;var ii=function(){return _.eX.apply(this,arguments)||this};
_.y(ii,_.eX);ii.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
ii.prototype.getContinuationUrl=function(k){var E={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(E.itct=this.data.clickTrackingParams);return _.Iu(k,E)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ii.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ii.prototype,"data",void 0);_.Z([_.U_({is:"yt-reload-continuation",noInjection:!0})],ii);var Ne2;var I$5;var h7=function(){var k=_.p.apply(this,arguments)||this;k.notificationData={};return k};
_.y(h7,_.p);_.I=h7.prototype;_.I.isMenuExpanded=function(k){return k&&k.length<=1?"undefined":"false"};
_.I.dataChanged_=function(){this.selected=void 0;var k=this.computeSelectedIndex_(this.data);k>=0&&(this.selected=k);k=this.data&&this.data.length>1;_.E_(this.hostElement,"has-items",k);_.Cc(this.hostElement).querySelector("#label").tabIndex=k?0:-1};
_.I.onDropdownOpen=function(){var k=_.Fe();if(this.parentTrackingParams&&this.data){var E=_.tV(this.parentTrackingParams);this.data.forEach(function(S){k&&E&&S.trackingParams&&(S=_.tV(S.trackingParams),_.rq(k,E,S),_.Lz(k,[S]))})}else this.parentTrackingParams||_.dg(new _.LC("No parent tracking params passed in for yt-dropdown-menu."))};
_.I.hasNotification=function(k){var E;if(k.targetId&&((E=this.notificationData)==null?0:E.targetId)){var S;return k.targetId===((S=this.notificationData)==null?void 0:S.targetId)}};
_.I.computeSelectedIndex_=function(k){if(k)for(var E=0,S=k.length;E<S;E++)if(k[E].selected)return E;return-1};
_.I.computeLabel_=function(k){return this.data&&k!=void 0?this.data[k].title:""};
_.I.computeShowIcon_=function(k,E){return!E&&!!k};
_.I.computeVerticalOffset_=function(k){return k?36:0};
_.I.computeEndpoint_=function(k){return k.endpoint||k.navigationEndpoint};
_.I.onLabelClick_=function(k){this.data&&this.data.length<=1?k.stopPropagation():this.menuExpanded="true"};
_.I.onIronActivate_=function(k){k=k.detail.item;var E=_.Cc(this.hostElement).querySelector("#repeat").itemForElement(k);if(E&&E.trackingParams){var S=_.Fe(),R=_.tV(E.trackingParams);S&&_.Dv(S,R)}if(E&&E.serviceEndpoint)_.Y("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(E.serviceEndpoint):_.Qw(this.hostElement,[E.serviceEndpoint]),_.Me(this.hostElement,"yt-playlist-reloading");else a:{if((E=k.querySelector("yt-supported-renderers"))&&
(E=E.rendererElement)&&E.is=="yt-reload-continuation"){E.trigger();break a}(k=k.querySelector("yt-reload-continuation"))&&k.trigger()}};
_.I.onTap_=function(k){k.preventDefault()};
_.I.onItemTap_=function(k){this.ytEndpointBehavior.onEndpointTap_(k)};
_.I.onLinkFocus_=function(k){try{var E=k.target}catch(R){}if(E){var S=E.querySelector("tp-yt-paper-item");S&&_.Lv(this,"focus",function(){S.focus()})}};
_.I.onMenuClose_=function(){this.menuExpanded="false"};
_.I.isLabelIconActive_=function(k){return k==="true"};
_.I.computeHasSubtitle_=function(k){return!!k};
_.I.computeHrefForItem_=function(k){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(k))};
_.I.updateSelectedFromBinding=function(k){this.selected=k.detail.value};
_.mt.Object.defineProperties(h7.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
h7.prototype.onMenuClose_=h7.prototype.onMenuClose_;h7.prototype.onTap_=h7.prototype.onTap_;h7.prototype.onIronActivate_=h7.prototype.onIronActivate_;h7.prototype.onDropdownOpen=h7.prototype.onDropdownOpen;h7.prototype.dataChanged_=h7.prototype.dataChanged_;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],h7.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.UN.YtEndpointBehavior),_.l("design:type",Object)],h7.prototype,"ytEndpointBehavior",void 0);
_.Z([_.H(),_.l("design:type",Array)],h7.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],h7.prototype,"parentTrackingParams",void 0);_.Z([_.H(),_.l("design:type",Object)],h7.prototype,"selected",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],h7.prototype,"useLabel",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],h7.prototype,"useComputedAriaLabel",void 0);_.Z([_.H(),_.l("design:type",String)],h7.prototype,"icon",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],h7.prototype,"iconLabel",void 0);_.Z([_.H(),_.l("design:type",String)],h7.prototype,"ariaLabel",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],h7.prototype,"disabled",void 0);_.Z([_.H({computed:"isMenuExpanded(data)"}),_.l("design:type",String)],h7.prototype,"menuExpanded",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],h7.prototype,"closeOnActivate",void 0);
_.Z([_.H({reflectToAttribute:!0,value:_.Y("web_modern_buttons")}),_.l("design:type",Boolean)],h7.prototype,"modernButtons",void 0);_.Z([_.H(),_.l("design:type",Object)],h7.prototype,"notificationData",void 0);_.Z([_.U("ariaLabel, selected"),_.H(),_.l("design:type",String),_.l("design:paramtypes",[])],h7.prototype,"computedAriaLabel",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],h7.prototype,"dataChanged_",null);
_.Z([_.nv("paper-dropdown-open"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],h7.prototype,"onDropdownOpen",null);_.Z([_.nv("iron-activate"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],h7.prototype,"onIronActivate_",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],h7.prototype,"onTap_",null);
_.Z([_.nv("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],h7.prototype,"onMenuClose_",null);_.Z([_.U_({is:"yt-dropdown-menu",disableElementRegistration:!0})],h7);
_.b(h7,"yt-dropdown-menu",function(){if(I$5===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Ne2===void 0&&(Ne2=document.createElement("template"));var R=Ne2;S.call(E,R.content.cloneNode(!0),k.content.firstChild);I$5=k}k=I$5;return k},{mode:2});var J7=function(){var k=_.p.apply(this,arguments)||this;k.hasNotification=!1;return k};
_.y(J7,_.p);J7.prototype.computeId=function(k){return k};
J7.prototype.computeHorizontalAlign=function(k){return k?"right":"left"};
J7.prototype.computeAccessibilityLabel=function(k){var E,S;return((E=k.accessibility)==null?void 0:(S=E.accessibilityData)==null?void 0:S.label)||null};
J7.prototype.notificationDataChanged=function(){var k;this.hasNotification=!!this.notificationData&&!((k=this.data)==null?0:k.icon)};
J7.prototype.notificationDataChanged=J7.prototype.notificationDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.QW.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],J7.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],J7.prototype,"data",void 0);_.Z([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",String)],J7.prototype,"id",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],J7.prototype,"isRightAligned",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],J7.prototype,"disabled",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],J7.prototype,"closeOnActivate",void 0);_.Z([_.H(),_.l("design:type",Object)],J7.prototype,"notificationData",void 0);_.Z([_.H(),_.l("design:type",Object)],J7.prototype,"hasNotification",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],J7.prototype,"useComputedAriaLabel",void 0);_.Z([_.il("notificationData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J7.prototype,"notificationDataChanged",null);_.Z([_.U_({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],J7);
_.b(J7,"yt-sort-filter-sub-menu-renderer",function(){if(VPT===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;R4p===void 0&&(R4p=document.createElement("template"));var R=R4p;S.call(E,R.content.cloneNode(!0),k.content.firstChild);VPT=k}k=VPT;return k},{mode:2});var n5d=_.f(function(k){var E=k.data;var S=_.RZ(function(){var N=E().onTap;(N=_.W(N,_.gX))&&_.en().resolve(_.t3).resolveCommand(N);return!1}),R=function(){return{sources:[{url:E().thumbnailUrl,
width:120,height:90}]}},V=function(){return E().rating&&E().ratingA11yLabel&&E().reviewsCount&&E().reviewsCountA11yLabel};
return _.e("place-data-view-model",null,_.e(_.t,{cond:function(){return E().placeName&&E().placeCategory},
then:function(){return _.e("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":S},_.e(_.vM,{data:R,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.e(_.P5,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return E().onTap}},_.e("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return E().placeName}},function(){return E().placeName})),_.e("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.e(_.t,{cond:V,
then:function(){return _.e("div",{class:_.SQ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.e("span",{class:"score",title:function(){return E().ratingA11yLabel}},function(){return E().rating}),_.e("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.e(_.i_,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.e("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return E().reviewsCountA11yLabel}},function(){return E().reviewsCount}))},
else:function(){return _.e("div",{class:_.SQ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.e("div",{class:_.SQ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.e("span",{class:"category",
title:function(){return E().placeCategory}},function(){return E().placeCategory}))))}}))},"eb");
n5d.idomCompat=!0;_.qi(n5d,"place-data-view-model",{props:{data:_.Nq}});var iDd=new _.QE("INLINE_PLAYBACK_HOOK_TOKEN");var h4d=_.W9({sharedUi:_.FA5});_.K5=_.FS(h4d)(h4d.sharedUi,{animatedThumbnailEnabledSelector:function(k){return k.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(k){return k.inlinePreviewEnabled},
currentPageTypeSelector:function(k){return k.currentPageType},
currentPageSubTypeSelector:function(k){return k.currentPageSubType},
persistentPanelVisibleSelector:function(k){return k.persistentPanelVisible}});var JoC=function(k){this.setActiveSlideIndex=k;this.jobIds=[];this.isSlideshowPlaying=!1},e45=function(k,E){k.isSlideshowPlaying||(k.isSlideshowPlaying=!0,coz(k),mL2(k,E,0))},coz=function(k){_.Ch(_.ZJ,function(){k.setActiveSlideIndex(0)},1)},mL2=function(k,E,S){k.jobIds.push(_.Ch(_.ZJ,function(){var R=S<E-1?S+1:0;
k.setActiveSlideIndex(R);mL2(k,E,R)},1800))};var a$p=new _.QE("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");var tPT=new _.QE("IMAGE_ON_LOAD_HANDLER_TOKEN");var TeY=_.f(function(k){return _.e("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.e(_.t,{cond:function(){var E;return(E=k.data())==null?void 0:E.thumbnail},
then:function(E){return _.e(_.vM,{data:E,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"fb");_.wxz=_.f(function(k){var E=k.data;var S=k.lockupExperiments;k={};return _.e("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.e("div",{class:_.SQ("ytThumbnailOverlayButtonViewModelButton",(k.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var R;return S&&((R=S())==null?void 0:R.useLegacySizedIconButton)},k))},_.e(_.cp,{data:function(){return E().overlayButton}},{buttonViewModel:function(R){return _.e(_.yB,{data:R.data,
buttonOverrides:function(){var V;return S&&((V=S())==null?0:V.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"gb");
_.wxz.idomCompat=!0;var Pzd=_.f(function(k){return _.e("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.RZ(function(E){E.preventDefault();return!1})},_.e(_.cp,{data:function(){return k.data().buttons}},{toggleButtonViewModel:function(E){return _.e("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.e(_.bL,{data:E.data}))}}))},"hb");
Pzd.idomCompat=!0;var Bed=_.f(function(k){var E=function(){var S;return((S=_.W(k.data().rendererContext,_.n9))==null?void 0:S.label)||""};
return _.e("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.e(_.t,{cond:function(){return k.data().image},
then:function(){return _.e("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.e(_.vM,{data:function(){return k.data().image},
alt:E}))}}),_.e(_.t,{cond:function(){return k.data().text},
then:function(){return _.e("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return k.data().text})}}))},"ib");var YR5;YR5=_.K5.animatedThumbnailEnabledSelector;_.cW=_.f(function(k){var E=[],S=function(){var P,B;return jNt((P=k.width)==null?void 0:P.call(k),(B=k.height)==null?void 0:B.call(k))},R=_.en().resolve(_.mz(tPT)),V=_.VH("yt-thumbnail-view-model",function(){E.push("elRef.value set");
var P;(P=k.playbackRef)==null||P.call(k,{thumbnailElRef:V,thumbnail:k.data().image,thumbnailOverlays:k.data().overlays,thumbnailSize:S()})});
_.b$(function(){E.push("onInit");_.bI(function(){E.push("onCleanup")})});
var N=_.gb(YR5),h=function(){var P,B;return(B=(P=k.aspectRatio)==null?void 0:P.call(k))!=null?B:0},J=function(){return(k.data().image?_.hqm(k.data().image):h())<=1&&h()===0},m=function(){return J()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},a=function(){V.value||_.dg(new _.LC("Thumbnail elRef.value is null",E.join("\n")));
R&&V.value&&R(V.value)},T=function(){var P,B;
return((P=k.hovered)==null?void 0:P.call(k))&&S()!=="large"&&((B=k.data().overlays)==null?void 0:B.some(function(F){return _.W(F,Nwd)}))},w={};
return _.e("yt-thumbnail-view-model",{class:_.SQ("ytThumbnailViewModelHost",k.className,function(){return YTh(h())},function(){var P,B;
a:{var F=S(),K=(P=k.disableRounding)==null?void 0:P.call(k);P=(B=k.isClip)==null?void 0:B.call(k);if(!K&&!P)switch(F){case "large":B="ytThumbnailViewModelLarge";break a;case "small":B="ytThumbnailViewModelSmall";break a;default:B="ytThumbnailViewModelMedium";break a}B=void 0}return B},(w.ytThumbnailViewModelCinematic=J,w)),
style:_.nU({"background-color":function(){var P,B=J()?(P=k.data().backgroundColor)==null?void 0:P.lightTheme:void 0;return B?pc(B,"1"):void 0}}),
el:V},_.e(_.t,{cond:J,then:function(){return _.e("div",{class:"ytThumbnailViewModelBlurredImage"},_.e(_.vM,{data:function(){return k.data().image},
alt:"",contentMode:m,targetWidth:k.width,onload:a}))}}),_.e("div",{class:"ytThumbnailViewModelImage"},_.e(_.vM,{data:function(){return k.data().image},
alt:"",contentMode:m,targetWidth:k.width,onload:a}),null),_.e(_.cp,{data:function(){return T()?void 0:k.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:y42,thumbnailOverlayBadgeViewModel:function(P){return _.e(_.oRj,{data:P.data,thumbnailSize:S,isClip:k.isClip})},
thumbnailBottomOverlayViewModel:function(P){return _.e(B34,{data:P.data,thumbnailSize:S,isClip:k.isClip})},
thumbnailOverlayFullViewModel:Bed,thumbnailOverlayButtonViewModel:function(P){return _.e(_.wxz,{data:P.data,lockupExperiments:k.lockupExperiments})},
channelDisclosureViewModel:function(P){P=P.data;var B;return _.e("div",null,(B=_.en().resolve(_.mz(a$p)))==null?void 0:B({data:P}))}}),_.e(_.cp,{data:function(){var P;
return((P=k.hovered)==null?0:P.call(k))?k.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(P){return _.e(Zo,{data:P.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Pzd}),_.e(_.cp,{data:function(){var P;return((P=k.hovered)==null?0:P.call(k))&&N()?k.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:TeY}),_.e(_.t,{cond:k.isClip,then:function(){return _.e("div",{class:"ytPinkingNsHost"},_.e("svg",{class:"ytPinkingNsPinkingLeft"},_.e("defs",null,_.e("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.e("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.e("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.e("svg",{class:"ytPinkingNsPinkingRight"},_.e("defs",null,_.e("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.e("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.e("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"jb");
_.cW.idomCompat={callbacks:{playbackRef:!0}};var WHd=_.f(function(k){var E=_.n(_.yg(-1,void 0,"RW2Ole")),S=E.next().value,R=E.next().value;_.b$(function(){var V=new JoC(R);e45(V,k.data().thumbnails.length);_.bI(function(){if(V.isSlideshowPlaying){V.isSlideshowPlaying=!1;for(var N=V.jobIds,h=0,J=N.length;h<J;h++)_.ZJ.cancelJob(N[h]);V.jobIds.length=0}})});
return _.e("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.e(_.cp,{data:function(){return k.data().thumbnails}},{thumbnailViewModel:function(V,N){return _.e("div",{class:function(){var h=!k.data().primaryThumbnail,J=N(),m=S(),a=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
h&&J===0&&a.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");J<=m&&a.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return a.join(" ")}},_.e(_.cW,{data:V.data,
disableRounding:k.disableRounding}))}}))},"kb");
WHd.idomCompat=!0;var WmI=new _.QE("DWELL_DETECTOR_REGISTRY_TOKEN");var yoj=_.f(function(k){var E=FmI(k.triggeringElement),S=function(){return!!k.data().primaryThumbnail},R=function(){var N,h=(N=k.data())==null?void 0:N.maxHeight,J;
N=(J=k.maxHeight)==null?void 0:J.call(k);return h!=null&&N!=null?Math.min(h,N):N!=null?N:h},V=function(){var N=R();
if(N){var h;if(S()&&(h=k.includeStackHeight)!=null&&h.call(k)){var J;h=((J=k.doubleStack)==null?0:J.call(k))?8:4}else h=0;N=N-h-1;if(!(N<0)){J=Math;h=J.ceil;var m,a;var T=L8b((a=(m=k.aspectRatio)==null?void 0:m.call(k))!=null?a:0);return h.call(J,N*T)}}};
return _.e("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.nU({height:function(){return R()?R()+"px":void 0},
width:function(){return V()?V()+"px":void 0}})},_.e(FH5,{stackEnabled:S,
thumbnailSize:function(){var N,h;return jNt((N=k.width)==null?void 0:N.call(k),(h=k.height)==null?void 0:h.call(k))},
doubleStack:k.doubleStack,stackColor:function(){return k.data().stackColor},
includeStackHeight:k.includeStackHeight},_.e(_.cp,{data:function(){return k.data().primaryThumbnail}},{thumbnailViewModel:function(N){var h={};
return _.e(_.cW,{data:N.data,width:k.width,height:k.height,aspectRatio:k.aspectRatio,disableRounding:k.disableRounding,className:_.SQ((h.ytCollectionThumbnailViewModelHostHasStacks=S,h)),hovered:k.hovered,playbackRef:k.playbackRef})}}),_.e(_.t,{cond:function(){var N;
return E()&&((N=k.data().thumbnails)==null?void 0:N.length)},
then:function(){return _.e("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.e(WHd,{data:k.data,disableRounding:function(){return!S()}}))}})))},"lb");
yoj.idomCompat={callbacks:{playbackRef:!0}};
var FH5=_.f(function(k){var E=k.children;var S=k.stackEnabled;var R=k.thumbnailSize;var V=k.doubleStack;var N=k.stackColor;var h=k.includeStackHeight;var J,m=(J=_.en().resolve(_.mz(_.jF)))==null?void 0:J();return _.e(_.t,{cond:S,then:function(){return _.e(zcA,{data:function(){var a,T;return{experimentEnabled:!0,thumbnailSize:R(),doubleStack:V==null?void 0:V(),color:m?N==null?void 0:(a=N())==null?void 0:a.darkTheme:N==null?void 0:(T=N())==null?void 0:T.lightTheme,enableResponsiveMode:!1,includeStackHeight:h==
null?void 0:h()}}},E)},
else:function(){return E}})},"mb");var o55=new _.QE("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var eY;_.m1={calledOnce:!0,state:"visible"};eY={calledOnce:!0,state:"hidden"};_.aT=_.f(function(k){var E=k.data;var S=k.customCommandResolver;var R=k.className;var V=k.delayedClassName;var N=k.animationEntityKey;var h=k.isCompactWidth;var J=k.isContentWidth;k=_.n(_.yg(!1,void 0,"pC3tUb"));var m=k.next().value,a=k.next().value,T=_.Zk(N,""),w=_.iK(AAI,T),P=function(){var th,He;return(He=(th=w())==null?void 0:th.value)!=null?He:!1},B=function(){_.bl(_.mj("booleanEntity",T(),{key:T(),
value:!0}));d=void 0};
N=_.n(_.IZ(P));var F=N.next().value,K=N.next().value;N=_.n(_.IZ(P));var r=N.next().value,x=N.next().value;N=_.n(_.IZ(function(){var th;return P()?(th=E().styleTransitionConfig)==null?void 0:th.destinationStyle:void 0}));
var L=N.next().value,q=N.next().value,M=function(){var th=Object.assign({},E(),L()&&{style:L()});var He,ve,Xm=th.label,U5=(He=th.interaction)==null?void 0:(ve=He.accessibility)==null?void 0:ve.label;He=th.iconImage?th.label&&th.label.content?th.iconLeading?"leading":"trailing":"icon-only":void 0;th={formattedButtonText:Xm,accessibilityLabel:U5,style:g1R(th.style),type:Uch(th.style),state:"active",size:X21(th.size),iconPosition:He,disabled:!1,aTagConfig:o1t(th,S)};_.Y("enable_desktop_vdcbg_components")&&
(th.focused=m());return th},d;
N=_.e9({visibilityCallback:function(th){var He,ve=(He=E().interaction)==null?void 0:He.onFirstVisible;th&&ve&&_.AV(ve)},
showOption:_.m1});var z=function(){return sNe(M(),!!E().iconImage)};
k={};var kb={};R=_.SQ(function(){return"ytwAdButtonViewModelHost"},function(){return E().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var th=!!E().delayedAppearanceConfig,He=F();
return th?He?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var th=!!E().delayedAppearanceConfig,He=r();
return th?He?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!E().delayedAppearanceConfig||F()?V==null?void 0:V():""},(k.ytwAdButtonViewModelHostCompactWidth=function(){return h==null?void 0:h()},k),(kb.ytwAdButtonViewModelHostContentWidth=function(){return J==null?void 0:J()},kb),R!=null?R:"");
var TI=function(){var th,He=(th=E().delayedAppearanceConfig)==null?void 0:th.delayedInvisibleSeconds;He&&(d=_.aE(_.ZJ,function(){K(!0);a1()},He*1E3))},a1=function(){var th,He=(th=E().delayedAppearanceConfig)==null?void 0:th.delayedVisibleSeconds;
He&&(d=_.aE(_.ZJ,function(){x(!0);Ah()},He*1E3))},Ah=function(){var th,He=(th=E().styleTransitionConfig)==null?void 0:th.styleTransitionSeconds,ve,Xm=(ve=E().styleTransitionConfig)==null?void 0:ve.destinationStyle;
He&&Xm?d=_.aE(_.ZJ,function(){q(Xm);B()},He*1E3):B()};
_.b$(function(){TI()});
_.bI(function(){d&&_.ZJ.cancelJob(d)});
return _.e("ad-button-view-model",{"on:focusin":_.RZ(_.Y("enable_desktop_vdcbg_components")?function(){var th=_.en().resolve(_.mz(_.tr));th&&a(th.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.RZ(_.Y("enable_desktop_vdcbg_components")?function(){a(!1);return!1}:void 0),
class:R,el:_.Z0(N),style:_.nU({"transition-duration":"0.3s"})},_.e(_.t,{cond:M,then:function(){return _.e(_.FA,{data:M,icon:function(){return _.e(_.t,{cond:function(){return E().iconImage},
then:function(th){return _.e(_.vM,{data:th,alt:"",targetWidth:z,targetHeight:z,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ob");var Xxj=_.f(function(k){var E=k.data;k=function(){return E().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var S=_.e9({visibilityCallback:function(N){var h,J=(h=E().interaction)==null?void 0:h.onFirstVisible;N&&J&&_.AV(J)},
showOption:_.m1}),R={},V={};return _.e("ad-button-group-view-model",{class:_.SQ("ytwAdButtonGroupViewModelHost",(R.ytwAdButtonGroupViewModelHostCompactWidth=k,R)),el:_.Z0(S)},_.e("div",{class:_.SQ("ytwAdButtonGroupViewModelHostSecondaryButton",(V.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=k,V))},_.e(_.cp,{data:function(){return E().secondaryAdButton}},{adButtonViewModel:function(N){return _.e(_.aT,{data:N.data})}})),_.e("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.e(_.cp,
{data:function(){return E().primaryAdButton}},{adButtonViewModel:function(N){return _.e(_.aT,{data:N.data})}})))},"pb");var g58=_.f(function(k){var E=function(){var S;return((S=k.data())==null?void 0:S.answers)||[]};
return _.e("yt-survey-icons",{class:"ytSurveyIconsHost"},_.e("div",{class:"ytSurveyIconsHeader"},_.e("div",{class:"ytSurveyIconsTitle"},function(){var S;return(S=k.data())==null?void 0:S.text}),_.e("div",null,_.e(_.FA,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var S;(S=k.onDismiss)==null||S.call(k)}}},
iconName:"DISMISSAL"}))),_.e("div",null,_.e("div",{class:"ytSurveyIconsAnswers"},_.e(_.jw,{each:function(){return E()},
keyBy:"INDEX"},function(S,R){return _.e("div",null,_.e(_.FA,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var V;(V=k.onSelect)==null||V.call(k,S(),R)}}},
icon:function(){return _.e(_.i_,{icon:function(){var V,N;return(V=S())==null?void 0:(N=V.icon)==null?void 0:N.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.e("div",{class:"ytSurveyIconsAnswersText"},_.e("div",null,function(){return E().length?E()[0].text:""}),_.e("div",null,function(){return E().length?E()[E().length-1].text:""}))))},"qb");var UL2=_.f(function(k){var E=_.Z0(_.FX(function(){var m;return(m=k.data())==null?void 0:m.rendererContext},void 0,void 0,void 0,!0)),S=_.n(_.yg(!1,void 0,"GW0yjf")),R=S.next().value,V=S.next().value,N=_.iK(Bzh,function(){var m;
return(m=k.data().keys)==null?void 0:m.surveyEntityKey}),h=_.iK(YGb,function(){var m;
return(m=k.data().keys)==null?void 0:m.surveyStateEntityKey});
_.Rs("ytd-slimline-survey-show-action",function(){V(!1)});
var J=function(){var m,a;var T=(m=h())==null?void 0:(a=m.questionStack)==null?void 0:a[0];if(T!==void 0){var w,P;return(w=N())==null?void 0:(P=w.questions)==null?void 0:P[T]}};
S={};return _.e("yt-slimline-survey-view-model",{el:E,class:_.SQ("ytSlimlineSurveyViewModelHost",(S.ytSlimlineSurveyViewModelCollapsed=function(){return R()},S))},_.e("div",{class:"ytSlimlineSurveyViewModelContainer"},_.e(_.t,{cond:function(){var m;
return((m=J())==null?void 0:m.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.e(g58,{data:function(){return J()},
onSelect:function(m,a){var T,w;return _.c(function(P){V(!0);if(w=(T=k.data())==null?void 0:T.onSelectRating)_.AV(w),_.bl(u_j(a));_.KR(P)})},
onDismiss:function(){V(!0);var m;var a=(m=N())==null?void 0:m.dismissalFeedbackToken;m=a?{feedbackEndpoint:{feedbackToken:a}}:void 0;m&&_.HM(m,{form:{element:E.value}})}})}})))},"rb");var HD8=_.f(function(k){return _.e("yt-table-view-model",{class:_.SQ("ytTableViewModelHost",k.className)},_.e(_.jw,{each:function(){return k.data().rows||[]}},function(E){return _.e("div",{class:"ytTableViewModelRow"},_.e(_.jw,{each:function(){return(E==null?void 0:E.cells)||[]}},function(S,R){var V,N={};
return _.e("span",{class:_.SQ((N.ytTableViewModelRowLabel=function(){return R()===0&&k.data().showHorizontalHeaders},N.ytTableViewModelCell=function(){return!k.data().showHorizontalHeaders||R()>0},N))},(V=S.text)==null?void 0:V.content)}))}))},"sb");var KHd=_.f(function(k){return _.e("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.e(_.cp,{data:function(){var E;return(E=k.data())==null?void 0:E.attachments}},{flexibleActionsViewModel:function(E){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(_.l6,{data:E.data,
layout:function(){var S;return((S=k.lockupStyle())==null?void 0:S.arrangement)===1?0:1},
justifyContentOverride:function(){var S;return((S=k.lockupStyle())==null?void 0:S.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(E){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(UL2,{data:E.data}))},
expandableMetadataViewModel:function(E){E=E.data;var S;return _.e("div",{class:_.SQ("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(S=_.en().resolve(_.mz(o55)))==null?void 0:S({data:E}))},
adButtonGroupViewModel:function(E){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(Xxj,{data:E.data}))},
adButtonViewModel:function(E){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(_.aT,{data:E.data,isCompactWidth:!0}))},
tableViewModel:function(E){return _.e("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.e(HD8,{data:E.data}))}}))},"tb");var usI=_.wO("rich_grid_min_item_width",310),AL1=_.wO("rich_grid_max_item_width",500);var pxp=_.f(function(k){var E=k.data;return _.e("br-nz-badge-shape",{class:_.SQ(function(){return b_1(E().brNzRatingBadgeType)}),
role:function(){return E().accessibilityText?"img":void 0},
"aria-label":function(){return E().accessibilityText}},function(){var S;
return(S=E())==null?void 0:S.text})},"ub");_.t7=_.f(function(k){var E=function(){var S=k.data(),R,V;if(S){var N=!((R=k.workaroundShortsIsThumbnailBadge)==null||!R.call(k));R=(V=k.modern)==null?void 0:V.call(k);var h;a:switch(S.badgeStyle){case "BADGE_OVERLAY":V=!0;break a;default:V=!1}S={type:N?17:Z_1(S.badgeStyle),brNzRatingBadgeType:dcl(S.badgeStyle),text:S.badgeText,icon:S.iconName,isOverlay:V,modern:R||_.Y("web_modern_badge_view_model"),accessibilityText:S.accessibilityLabel||((h=_.W(S.rendererContext,_.n9))==null?void 0:h.label)}}else S=
void 0;return S};
return _.e("yt-badge-view-model",{class:_.SQ("ytBadgeViewModelHost",k.class)},_.e(_.D_,null,_.e(_.xk,{when:function(){var S;return!((S=E())==null||!S.brNzRatingBadgeType)}},function(){return _.e(pxp,{data:function(){return E()}})}),_.e(_.xk,{when:function(){return!!E()&&!E().brNzRatingBadgeType}},function(){return _.e(_.QD,{data:function(){return E()}})})))},"vb");
_.t7.idomCompat=!0;var ltI,sYh;ltI=16/9;sYh=2/3;_.TQ=_.f(function(k){var E=k.data;var S=k.className;var R=k.imageSizeConfig;var V=k.notifyOnLoaded;var N=function(){return E().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},h=function(){var P;
return _.Wp((P=E())==null?void 0:P.rendererContext)};
k={};k=(k.ytContentPreviewImageViewModelHost=!0,k.ytContentPreviewImageViewModelCircleImage=function(){return N()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},k.ytContentPreviewImageViewModelTappable=function(){return h()},k);
var J=function(){var P,B;return(B=(P=_.W(E().rendererContext,_.n9))==null?void 0:P.label)!=null?B:""},m=function(){return qTI(E())},a=function(){var P=Mbh(N(),E().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",R==null?void 0:R(),zci(m()),E().layoutWidth,E().layoutHeight),B=Object.assign({},P);
P.width&&(B.width=Math.round(P.width));P.height&&(B.height=Math.round(P.height));P.maxWidth&&(B.maxWidth=Math.round(P.maxWidth));P.maxHeight&&(B.maxHeight=Math.round(P.maxHeight));return B},T=_.HX(function(){return a().height},void 0,"CxFlJb"),w=_.HX(function(){return a().width},void 0,"lb8Jhd");
return _.e("yt-content-preview-image-view-model",{el:_.Z0(_.FX(function(){var P;return(P=E())==null?void 0:P.rendererContext})),
role:function(){return h()?"link":void 0},
tabindex:function(){return h()?0:void 0},
class:_.SQ(S,k,function(){var P=N();var B=R==null?void 0:R();P=P==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||P==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||P==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||P==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(B==null?void 0:B.size)!=null&&B.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(B==null?void 0:B.size)!=null&&B.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return P}),
style:function(){var P=a(),B=[];P.width&&B.push("width: "+P.width+"px");P.height&&B.push("height: "+P.height+"px");P.maxWidth&&B.push("max-width: "+P.maxWidth+"px");P.maxHeight&&B.push("max-height: "+P.maxHeight+"px");P.fullWidth&&B.push("width: 100%");return B.join(";")}},_.e(_.t,{cond:m,
then:function(P){return _.e(_.vM,{data:P,alt:J,"data-disabled$":function(){return!J()},
notifyOnLoaded:V,targetWidth:w,targetHeight:T,preserveWidth:function(){return!!w()},
preserveHeight:function(){return!!T()}})}}),_.e(_.cp,{data:function(){var P;
return(P=E())==null?void 0:P.overlays}},{thumbnailHoverOverlayViewModel:Zo,
thumbnailOverlayButtonViewModel:_.wxz}))},"wb");
_.TQ.idomCompat=!0;var wu=_.f(function(k){var E=k.data;var S=k.className;var R=k.useSmallLayout;var V=k.useMediumText;k=k.useHeavyText;var N={};return _.e("yt-attribution-view-model",{el:_.Z0(_.FX(function(){var h;return(h=E())==null?void 0:h.rendererContext})),
class:_.SQ(S,(N.ytAttributionViewModelHost=!0,N.ytAttributionViewModelMediumText=V,N.ytAttributionViewModelHeavyText=k,N))},_.e(_.t,{cond:function(){return _.Wp(E().rendererContext)},
then:function(){return _.e("button",{class:"ytAttributionViewModelTappable"},_.e(Aoj,{data:E,useSmallLayout:R}))},
else:function(){return _.e(Aoj,{data:E,useSmallLayout:R})}}))},"xb"),Aoj=_.f(function(k){var E=k.data;
var S=k.useSmallLayout;var R=function(){return{size:(S==null?0:S())?16:24}};
return _.e(_.tj,null,_.e(_.cp,{data:function(){return E().contentPreviewImage}},{contentPreviewImageViewModel:function(V){return _.e(_.TQ,{data:V.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:R})}}),_.e(_.cp,{data:function(){return E().badge}},{badgeViewModel:function(V){return _.e(_.t7,{data:V.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.e(_.t,{cond:function(){return E().text},
then:function(){return _.e(_.VB,{text:function(){return E().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.e(_.t,{cond:function(){return E().suffix},
then:function(){return _.e(_.VB,{text:function(){return E().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"yb");
wu.idomCompat=!0;var roY,uPY,xLj,LHY,jBC;roY=_.f(function(k){var E=k.delimiter;var S=k.max;var R=k.index;var V=k.isStandalone;return _.e(_.t,{cond:function(){return S()-1>R()},
then:function(){var N={};return _.e("span",{class:_.SQ("yt-content-metadata-view-model__delimiter",(N["yt-content-metadata-view-model__delimiter--standalone"]=V,N)),"aria-hidden":!0},E)}})},"zb");
uPY=_.f(function(k){var E=k.metadataPart;var S=k.maxLines;return _.e(_.VB,{text:function(){return E().text},
linkInheritColor:!0,className:function(){return QYi(S())},
userInput:!0})},"Ab");
xLj=_.f(function(k){var E=k.metadataPart;var S=k.maxLines;return _.e(_.t,{cond:function(){return E().tooltip},
then:function(R){return _.e("span",{title:R,role:"tooltip"},_.e(uPY,{metadataPart:E,maxLines:S}))},
else:function(){return _.e(uPY,{metadataPart:E,maxLines:S})}})},"Bb");
LHY=_.f(function(k){var E=k.metadataPart;var S=k.isOverlay;var R=k.useMediumText;var V=k.hideAvatar;var N=function(){return E().maxLines!==void 0?E().maxLines:1};
return _.e(_.tj,null,_.e(_.cp,{data:function(){return E().avatarStack}},{avatarStackViewModel:function(h){return _.e(_.lR,{data:h.data,
isOverlay:S,useMediumText:R,hideAvatar:V})},
badgeViewModel:_.t7}),_.e(_.t,{cond:function(){return E().leadingIcon},
then:function(h){return _.e(_.i_,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return h().name},
size:function(){return h().width}})}}),_.e(_.t,{cond:function(){return E().text},
then:function(){return _.e(xLj,{metadataPart:E,maxLines:N})}}),_.e(_.t,{cond:function(){return E().icon},
then:function(h){return _.e(_.i_,{className:"yt-content-metadata-view-model__icon",icon:function(){return h().name},
size:function(){return h().width}})}}))},"Cb");
jBC=_.f(function(k){var E=k.metadataRow;var S=k.isInline;var R=k.delimiter;var V=k.isOverlay;var N=k.useMediumText;var h=k.extensions;var J=function(){var a,T=h==null?void 0:(a=h())==null?void 0:a.lockupMetadata;a=E();var w,P;return!!((T==null?0:(w=T.byline)==null?0:w.hideAvatar)&&((P=_.W(a,O64))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},m=function(){return E().metadataParts||[]};
k={};return _.e("div",{class:_.SQ("yt-content-metadata-view-model__metadata-row",(k["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=S,k["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var a,T=h==null?void 0:(a=h())==null?void 0:a.lockupMetadata;a=E();var w,P;return!!((T==null?0:(w=T.byline)==null?0:w.addPadding)&&((P=_.W(a,O64))==null?void 0:P.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},k["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var a;
return!!(h==null?0:(a=h())==null?0:a.lockupMetadata)&&E().badges&&!E().metadataParts},k))},_.e(_.cp,{data:function(){return E().badges}},{badgeViewModel:function(a){return _.e("div",{class:"yt-content-metadata-view-model__badge"},_.e(_.t7,{data:a.data}))}}),_.e(_.jw,{each:m},function(a,T){return _.e(_.tj,null,_.e(LHY,{metadataPart:a,
isOverlay:V,useMediumText:N,hideAvatar:J}),_.e(roY,{delimiter:R,max:function(){return m().length},
index:T,isStandalone:!1}))}),_.e(_.t,{cond:function(){return E().isSpacerRow&&!S()},
then:function(){return _.e("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Db");
_.PW=_.f(function(k){k=_.dJ(k,{layout:0,isOverlay:!1});var E=k.data,S=k.layout,R=k.isOverlay,V=k.useMediumText,N=k.extensions,h=function(){return S()===0},J=function(){var a;
return((a=E().metadataRows)==null?void 0:a.filter(function(T){var w,P=N==null?void 0:(w=N())==null?void 0:w.lockupMetadata,B,F;w=!!((P==null?0:(B=P.description)==null?0:B.hideDescription)&&((F=_.W(T,O64))==null?void 0:F.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var K,r;return!((P==null?0:(K=P.spacer)==null?0:K.hideSpacer)&&((r=_.W(T,O64))==null?void 0:r.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||w)}))||[]},m={};
return _.e("yt-content-metadata-view-model",{class:_.SQ(k.className,"yt-content-metadata-view-model",(m["yt-content-metadata-view-model--inline"]=h,m["yt-content-metadata-view-model--tappable"]=function(){return _.Wp(E().rendererContext)},m["yt-content-metadata-view-model--medium-text"]=V,m)),
el:_.Z0(_.FX(function(){return E().rendererContext}))},_.e(_.jw,{each:J},function(a,T){return _.e(_.tj,null,_.e(jBC,{metadataRow:a,
isInline:h,delimiter:function(){return E().delimiter},
isOverlay:R,useMediumText:V,extensions:N}),_.e(_.t,{cond:function(){return h()&&!a.isSpacerRow},
then:function(){return _.e(roY,{delimiter:function(){return E().delimiter},
max:function(){return J().length},
index:T,isStandalone:!0})}}))}))},"Eb");
_.PW.idomCompat=!0;var DLY=_.f(function(k){var E=_.en().resolve(_.mz(_.jF)),S={};return _.e("yt-lockup-metadata-view-model",{class:_.SQ("yt-lockup-metadata-view-model",function(){a:{var R=k.lockupStyle();if(R==null?0:R.isOverlay)R="yt-lockup-metadata-view-model--overlay";else switch(R==null?void 0:R.arrangement){case 1:R="yt-lockup-metadata-view-model--horizontal";break a;default:R="yt-lockup-metadata-view-model--vertical"}}return R},function(){a:{var R=k.lockupStyle();
if(R==null?0:R.isTiny)R="yt-lockup-metadata-view-model--tiny";else switch(R==null?void 0:R.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":R="yt-lockup-metadata-view-model--compact";break a;default:R="yt-lockup-metadata-view-model--standard"}}return R},(S["yt-lockup-metadata-view-model--overlay"]=function(){var R;
return(R=k.lockupStyle())==null?void 0:R.isOverlay},S["yt-lockup-metadata-view-model--card"]=function(){var R;
return(R=k.lockupStyle())==null?void 0:R.isCard},S["yt-lockup-metadata-view-model--centered"]=function(){var R;
return(R=k.lockupStyle())==null?void 0:R.isCentered},S["yt-lockup-metadata-view-model--typography-bump"]=function(){var R;
return(R=k.lockupStyle())==null?void 0:R.typographyBump},S["yt-lockup-metadata-view-model--legacy-typography"]=function(){var R;
return(R=k.lockupStyle())==null?void 0:R.useLegacyTypography},S["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var R;
return(R=k.lockupStyle())==null?void 0:R.useRichGridLegacyTypography},S))},_.e(_.cp,{data:function(){return k.data().image}},{avatarStackViewModel:function(R){return _.e("div",{class:"yt-lockup-metadata-view-model__avatar"},_.e(_.lR,{data:R.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(R){return _.e("div",{class:"yt-lockup-metadata-view-model__avatar"},_.e(_.dw,{data:R.data}))},
decoratedAvatarViewModel:function(R){return _.e("div",{class:"yt-lockup-metadata-view-model__avatar"},_.e(_.sV,{data:R.data}))}}),_.e("div",{class:"yt-lockup-metadata-view-model__text-container"},_.e("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var R;return(R=k.data().title)==null?void 0:R.content}},_.e(_.t,{cond:function(){return k.data().title},
then:function(R){return _.e(_.P5,{command:k.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.nU({color:function(){var V;a:{var N=k.lockupStyle();var h=(V=k.hovered)==null?void 0:V.call(k);V=!(E==null||!E());var J;if((N==null?0:(J=N.onFocusEffect)==null?0:J.textPrimaryColor)&&h&&(N=V?N.onFocusEffect.textPrimaryColor.darkTheme:N.onFocusEffect.textPrimaryColor.lightTheme)){N=Ag(N);break a}N=void 0}return N}}),
ariaLabel:k.lockupAccessibilityLabel},_.e(_.VB,{text:R,userInput:!0}))}})),_.e("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.nU({color:function(){var R;a:{var V=k.lockupStyle();var N=(R=k.hovered)==null?void 0:R.call(k);R=!(E==null||!E());var h;if((V==null?0:(h=V.onFocusEffect)==null?0:h.textSecondaryColor)&&N&&(V=R?V.onFocusEffect.textSecondaryColor.darkTheme:V.onFocusEffect.textSecondaryColor.lightTheme)){V=Ag(V);break a}V=void 0}return V}})},_.e(_.cp,{data:function(){return k.data().metadata}},{contentMetadataViewModel:function(R){return _.e(_.PW,{data:R.data,
layout:1,useMediumText:function(){var V,N;return((V=k.lockupStyle())==null?void 0:V.typographyBump)||((N=k.lockupStyle())==null?void 0:N.useRichGridLegacyTypography)},
extensions:function(){var V,N,h,J;return{lockupMetadata:{byline:{hideAvatar:((V=k.lockupStyle())==null?void 0:V.arrangement)===0,addPadding:((N=k.lockupStyle())==null?void 0:N.arrangement)===1},description:{hideDescription:!((h=k.lockupStyle())==null||!h.compactMetadata)},spacer:{hideSpacer:!((J=k.lockupStyle())==null||!J.compactMetadata)}}}}})}})),_.e(_.cp,{data:function(){return k.data().attribution}},{attributionViewModel:function(R){return _.e("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.e(wu,{data:R.data,
useSmallLayout:!0}))}})),_.e("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.e(_.cp,{data:function(){return k.data().menuButton}},{buttonViewModel:function(R){return _.e(_.yB,{data:R.data,
buttonOverrides:function(){var V;return((V=k.lockupStyle())==null?0:V.isOverlay)?{style:"overlay"}:void 0}})}})))},"Fb");
DLY.idomCompat=!0;var $LC=_.f(function(k){var E=_.VH("notification-multi-action-renderer");_.vC(function(){requestAnimationFrame(function(){_.Nd(E.value)})});
var S={},R={},V={};return _.e("notification-multi-action-renderer",{class:_.SQ("ytNotificationMultiActionRendererHost",(S.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var N;return(N=k.useLegacyShelfStyle)==null?void 0:N.call(k)},S)),
el:E},_.e("span",{"aria-live":"polite",class:_.SQ("ytNotificationMultiActionRendererTextContainer",(R.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var N;return(N=k.useLegacyShelfStyle)==null?void 0:N.call(k)},R))},_.e(_.VB,{text:function(){return k.data().responseText}})),_.e("div",{class:_.SQ("ytNotificationMultiActionRendererButtonContainer",(V.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var N;
return(N=k.useLegacyShelfStyle)==null?void 0:N.call(k)},V))},_.e(_.cp,{data:function(){var N;
return(N=k.data().buttons)==null?void 0:N.map(function(h){if(h=h.buttonRenderer){var J,m=Object,a=m.assign,T=(J=h.icon)==null?void 0:J.iconType;J=(J=h.command||h.serviceEndpoint||h.navigationEndpoint)?{innertubeCommand:J}:void 0;h={buttonViewModel:a.call(m,{},{iconName:T,onTap:J,trackingParams:h.trackingParams,titleFormatted:h.text?_.y_(h.text):void 0},Gsh(h))}}else h=void 0;return h}).filter(function(h){return!!h})}},{buttonViewModel:function(N,h){return _.e("div",null,_.e(_.yB,{data:N.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var J;return((J=k.useModernStyles)==null?0:J.call(k))?{type:h()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Hb");var f$Y=_.f(function(k){var E=_.VH("notification-text-renderer");_.vC(function(){requestAnimationFrame(function(){_.Nd(E.value)})});
return _.e("notification-text-renderer",{el:E,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.e(_.VB,{text:function(){return k.data().successResponseText}}))},"Jb");_.BW=_.f(function(k){var E=_.iK(nS1,function(){var R;return CPj((R=k.contentId)==null?void 0:R.call(k))}),S=function(){var R;
return _.W((R=E())==null?void 0:R.command,_.WF)};
return _.e(_.t,{cond:function(){var R;if(!(R=S())){var V;R=_.W((V=E())==null?void 0:V.command,cfC)}return R},
then:function(){return _.e(_.t,{cond:S,then:function(){var R={};return _.e("div",{class:_.SQ("ytDismissibleItemReplacedContent",function(){var V;return kuC((V=k.aspectRatio)==null?void 0:V.call(k))})},_.e("div",{class:_.SQ((R.ytDismissibleItemAspectRatioContainer=function(){var V;
return((V=k.aspectRatio)==null?void 0:V.call(k))!==void 0},R))},_.e(_.cp,{data:function(){var V;
return(V=S())==null?void 0:V.item}},{notificationMultiActionRenderer:function(V){return _.e($LC,{data:V.data,
useModernStyles:k.useModernStyle,useLegacyShelfStyle:k.useLegacyShelfStyle})},
notificationTextRenderer:f$Y})))}})},
else:k.children})},"Kb");_.v5p=_.f(function(k){var E=k.data;var S=k.customCommandResolver;k=_.Z0(_.e9({visibilityCallback:function(N){var h,J=(h=E().interaction)==null?void 0:h.onFirstVisible;N&&J&&_.AV(J)},
showOption:_.m1}));var R=function(){var N;return((N=E().interaction)==null?0:N.onTap)?function(h){var J;yLR(h,(J=E().interaction)==null?void 0:J.onTap,S)}:void 0},V=function(){var N,h=E(),J=R(),m=(N=_.W(E().rendererContext,_.n9))==null?void 0:N.label;
a:switch(h.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":N=1;break a;default:N=0}return{size:RX1(h.size),type:N,onTap:J,accessibilityText:m}};
return _.e("ad-avatar-view-model",{class:function(){var N;return((N=E().interaction)==null?0:N.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:k},_.e(_.t,{cond:function(){return E().image},
then:function(N){return _.e(FPz,{data:V,image:N})}}))},"Lb");_.Y_=_.f(function(k){var E=_.dJ(k,{hasDot:!1,usedInMasthead:!1}),S=Object.assign({},E),R=E.data,V=E.hasDot;k=E.customCommandResolver;var N=E.usedInMasthead,h=(delete S.data,delete S.hasDot,delete S.customCommandResolver,delete S.usedInMasthead,S);E=function(){return R().style};
E!==void 0&&E!==null||_.kr(Error("Oh"));k=_.gd(function(){return R().interaction},k);
return _.e("ad-badge-view-model",{class:_.SQ(function(){var J;return((J=R().interaction)==null?0:J.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var J=h.adRenderingContextType(),m=N();
R();return J!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||m?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.Z0(k)},_.e(_.QD,{data:function(){var J;R();return{type:2,text:(J=R().label)==null?void 0:J.content,adsIncludeDot:V(),isOverlay:R().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Mb");var bDC;_.WW=_.f(function(k){var E=k.data;var S=k.customCommandResolver;var R=k.adRenderingContextType;return _.e("ad-details-line-view-model",{class:function(){var V;return((V=E().interaction)==null?0:V.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.Z0(_.e9({visibilityCallback:function(V){var N,h=(N=E().interaction)==null?void 0:N.onFirstVisible;V&&h&&_.AV(h)},
showOption:_.m1}),_.gd(function(){return E().interaction},S))},_.e(_.t,{cond:function(){return E().style},
then:function(V){return _.e(_.jw,{each:function(){var N;return((N=E())==null?void 0:N.attributes)||[]},
keyBy:"INDEX"},function(N){return _.e(bDC,{attribute:N,style:V,adRenderingContextType:function(){return R()}})})}}))},"Nb");
bDC=_.f(function(k){var E=k.attribute;var S=k.style;var R=k.adRenderingContextType;return _.e(_.t,{cond:function(){return E().text},
then:function(V){return _.e(_.VB,{text:V,className:function(){var N=R();S();return N==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ob");var ZDA=_.f(function(k){var E=k.data;var S=k.typographyBump;var R=function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
k={};return _.e(_.tj,null,_.e("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.e(_.VB,{text:function(){return E().headline},
className:_.SQ("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(k.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return R==null?void 0:R()},k.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(S==null?void 0:S())&&!(R==null?0:R())},k)),
linkInheritColor:!0}),_.e(_.t,{cond:function(){return E().description},
then:function(V){var N={};return _.e(_.VB,{text:V,className:_.SQ("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(N.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return R==null?void 0:R()},N.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(S==null?void 0:S())&&!(R==null?0:R())},N)),
linkInheritColor:!0})}}),_.e(_.t,{cond:function(){return E().secondaryDescription},
then:function(V){var N={};return _.e(_.VB,{text:V,className:_.SQ("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(N.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return S==null?void 0:S()},N)),
linkInheritColor:!0})}}),_.e("div",{class:function(){return R()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.e(_.t,{cond:function(){return E().adAvatar},
then:function(){return _.e("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.e(_.cp,{data:function(){return E().adAvatar}},{adAvatarViewModel:_.v5p}))}}),_.e(_.cp,{data:function(){return E().adBadge}},{adBadgeViewModel:function(V){return _.e(_.Y_,{data:V.data,
hasDot:function(){return!!E().adDetailsLine},
adRenderingContextType:function(){return E().adRenderingContextType}})}}),_.e(_.cp,{data:function(){return E().adDetailsLine}},{adDetailsLineViewModel:function(V){return _.e(_.WW,{data:V.data,
adRenderingContextType:function(){return E().adRenderingContextType}})}}))),_.e("div",{class:function(){return R()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.e(_.cp,{data:function(){return E().menu}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
buttonOverrides:function(){a:switch(E().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var N="S";break a;default:N="M"}return{size:N}}})}})))},"Pb"),dLC=_.f(function(k){var E=k.data;
var S=k.noBottomMargin;var R=k.useVideoLockupTopPadding;var V=k.typographyBump;k={};k=_.SQ("ytwFeedAdMetadataViewModelHostMetadata",(k.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return S==null?void 0:S()},k.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},k));
var N=function(){return E().adBadge};
N!==void 0&&N!==null||_.kr(Error("Ph"));N={};var h={};return _.e(_.tj,null,_.e(_.t,{cond:function(){return E().adAvatar},
then:function(){return _.e("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.e(_.cp,{data:function(){return E().adAvatar}},{adAvatarViewModel:function(J){return _.e(_.v5p,{data:J.data})}}))}}),_.e("div",{class:k},_.e("div",{class:_.SQ("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(N.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return V==null?void 0:V()},N.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(V==
null?void 0:V())&&_.Y("web_enable_typography_bump_v2")},N))},_.e(_.VB,{text:function(){return E().headline},
linkInheritColor:!0})),_.e(_.t,{cond:function(){return E().description},
then:function(J){return _.e(_.VB,{text:J,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.e("div",{class:function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.Y("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.e(_.cp,{data:function(){return E().adBadge}},
{adBadgeViewModel:function(J){return _.e(_.Y_,{data:J.data,
hasDot:function(){return!!E().adDetailsLine},
adRenderingContextType:function(){return E().adRenderingContextType}})}}),_.e(_.cp,{data:function(){return E().adDetailsLine}},{adDetailsLineViewModel:function(J){return _.e(_.WW,{data:J.data,
adRenderingContextType:function(){return E().adRenderingContextType}})}})),_.e(_.t,{cond:function(){return E().secondaryDescription},
then:function(J){return _.e(_.VB,{text:J,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.e("div",{class:_.SQ("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(h.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return R==null?void 0:R()},h))},_.e(_.cp,{data:function(){return E().menu}},{buttonViewModel:_.yB})))},"Qb"),Fl=_.f(function(k){var E=k.data;
var S=k.noBottomMargin;var R=k.listenToTapEvent;var V=k.setTouchEndHandler;var N=k.useVideoLockupTopPadding;var h=k.typographyBump;k=_.e9({visibilityCallback:function(w){var P,B=(P=E().interaction)==null?void 0:P.onFirstVisible;w&&B&&_.AV(B)},
showOption:_.m1});var J=_.gd(function(){return E().interaction},void 0,function(){return R==null?void 0:R()}),m=_.n(_.yg(!1,void 0,"a2FSrb")),a=m.next().value,T=m.next().value;
m=_.RZ(function(w){(V==null?0:V())&&!a()&&(w.currentTarget.click(),T(!0),setTimeout(function(){T(!1)},100));
return!1});
return _.e("feed-ad-metadata-view-model",{class:function(){var w;return((w=E().interaction)==null?0:w.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.Z0(k,J),"on:touchend":m},_.e(_.D_,null,_.e(_.xk,{when:function(){return E().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.e(ZDA,{data:E,
typographyBump:h})}),_.e(_.xk,{when:function(){return E().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.e(dLC,{data:E,
noBottomMargin:S,useVideoLockupTopPadding:N,typographyBump:h})})))},"Rb");var sB4,l$T;sB4=_.K5.inlinePreviewEnabledSelector;_.y5=_.f(function(k){return _.e("yt-lockup-view-model",{class:_.SQ(k.className,"yt-lockup-view-model--wrapper")},_.e(_.BW,{contentId:function(){return k.data().contentId},
useModernStyle:!0,aspectRatio:function(){var E,S;return((E=k.containerType)==null?void 0:E.call(k))!==3?fte(k.data().contentType,(S=k.force16By9ThumbnailAspectRatio)==null?void 0:S.call(k)):void 0}},function(){return _.e(l$T,Object.assign({},k))}))},"Sb");
l$T=_.f(function(k){k=_.dJ(k,{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 E=k.data,S=k.containerLayoutConfig,R=k.containerType,V=k.sizing,N=k.protectBackground,h=k.typographyBump,J=k.force16By9ThumbnailAspectRatio,m=k.thumbnailFixedWidth,a=k.thumbnailTargetWidth,T=k.lockupExperiments,w=k.elementsPerRow,
P=_.en().resolve(_.mz(_.jF));k=_.Z0(_.FX(function(){var Xm;return(Xm=E())==null?void 0:Xm.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var B=_.gb(sB4),F=_.en().resolve(_.mz(iDd)),K=F?{}:void 0,r=function(){var Xm,U5,l4;return(l4=(U5=_.W((Xm=E())==null?void 0:Xm.rendererContext,_.n9))==null?void 0:U5.label)!=null?l4:void 0},x=function(){var Xm;
return(Xm=_.W(E().metadata,_.GFC))==null?void 0:Xm.endorsement},L=function(){var Xm=S==null?void 0:S(),U5;
if(Xm==null?0:Xm.containerType){var l4=(U5=E())==null?void 0:U5.contentType;U5=T();var gY=h(),IC=a(),md=N();Xm=Object.assign({},v1I(jYR(Xm),xcI(Xm.responsiveSize),gY,l4,Xm.force16By9ThumbnailAspectRatio,IC,md,U5),{thumbnailFixedWidth:Xm.contentPreviewWidth})}else Xm=v1I(R(),V(),h(),(l4=E())==null?void 0:l4.contentType,J(),a(),N(),T());return Xm};
F&&K&&F({enabled:function(){return B()},
itemPlaybackModel:function(){return E().itemPlayback},
thumbnailElRef:function(){return K.thumbnailElRef},
containerElRef:k,options:function(){var Xm=K.thumbnailOverlays||[],U5=x(),l4;!U5||((l4=T())==null?0:l4.onFocusEffect)||Xm.push(U5);var gY,IC;return{thumbnail:K.thumbnail,thumbnailOverlays:Xm,accessibilityText:r(),thumbnailSize:K.thumbnailSize,enableRounding:L().isCollection,containPlayerWithinThumbnail:L().isCollection,mouseleaveCallback:function(){d(!1)},
trackingParams:(gY=_.W(E().rendererContext,_.cM))==null?void 0:(IC=gY.loggingDirectives)==null?void 0:IC.trackingParams}}});
var q=0;F=_.n(_.yg(!1,void 0,"dCI3sc"));var M=F.next().value,d=F.next().value;F=_.n(_.yg(!1,void 0,"fnxRwc"));var z=F.next().value,kb=F.next().value;F=_.RZ(function(){z()?(_.ZJ.cancelJob(q),q=_.ZJ.addJob(function(){d(!0)},8,32)):d(!0);
return!0});
var TI=_.RZ(function(Xm){Xm=Xm.relatedTarget;var U5=document.querySelector("ytd-video-preview");Xm&&U5&&U5.contains(Xm)||(q&&(_.ZJ.cancelJob(q),q=0),d(!1))});
_.bI(function(){q&&(_.ZJ.cancelJob(q),q=0)});
var a1=SPi(function(){kb(!0)}),Ah=a1.touchFeedbackEvents,th=a1.touchFeedbackOnPointerUp,He=a1.touchFeedbackOnPointerDown;
a1=a1.touchFeedbackOnPointerLeave;var ve={};return _.e(_.tj,null,_.e("div",{el:k,class:_.SQ("yt-lockup-view-model",function(){a:{var Xm=L();if(Xm.isOverlay)Xm="yt-lockup-view-model--overlay";else switch(Xm.arrangement){case 1:Xm="yt-lockup-view-model--horizontal";break a;default:Xm="yt-lockup-view-model--vertical"}}return Xm},function(){a:{var Xm=L();
if(Xm.isOverlay)Xm="yt-lockup-view-model--overlay";else{switch(Xm.collectionStackNumber){case 1:Xm="yt-lockup-view-model--collection-stack-1";break a;case 2:Xm="yt-lockup-view-model--collection-stack-2";break a}Xm=void 0}}return Xm},function(){var Xm;
return _.O_1((Xm=E())==null?void 0:Xm.contentId)},(ve["yt-lockup-view-model--card"]=function(){return L().isCard},ve["yt-lockup-view-model--compact"]=function(){return L().isTiny||L().sizing!=="STANDARD"},ve["yt-lockup-view-model--protect-background"]=N,ve["yt-lockup-view-model--add-margins"]=function(){return L().addMarginForFullbleed},ve["yt-lockup-view-model--centered"]=function(){return L().isCentered},ve["yt-lockup-view-model--fullbleed"]=function(){return L().fullbleed},ve["yt-lockup-view-model--single-column-grid"]=
function(){return w()===1&&R()===2},ve["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Xm;
return(Xm=T())==null?void 0:Xm.useRichGridLegacyMargin},ve)),
"on:mousedown":He,"on:mouseleave":TI,"on:mouseup":th,"on:mouseover":F,"on:touchstart":He,"on:touchend":th,"on:pointerleave":a1},_.e(_.B5,{model:function(){var Xm,U5,l4=Object,gY=l4.assign,IC=(K==null?void 0:K.thumbnailSize)||"small";a:{var md=L();var Kj=!!(x()&&((Xm=T())==null?0:Xm.onFocusEffect));switch((K==null?void 0:K.thumbnailSize)||"small"){case "small":Xm=4;break;case "large":Xm=12;break;default:Xm=8}if(Kj)md=Xm+24;else{switch(md.collectionStackNumber){case 1:md=Xm+8;break a;case 2:md=Xm+12;
break a}md=void 0}}IC={thumbnailSize:IC,triggerEvents:!0,customTopExtend:md};var Lj;md=(U5=T())==null?void 0:U5.onFocusEffect;Kj=!(P==null||!P());if(md){var H0,TG;U5=Kj?(H0=md.onFocusColor)==null?void 0:H0.darkTheme:(TG=md.onFocusColor)==null?void 0:TG.lightTheme;var iC,hC;H0=Kj?(iC=md.keyLightColor)==null?void 0:iC.darkTheme:(hC=md.keyLightColor)==null?void 0:hC.lightTheme;var Y2;iC=Kj?(Lj=md.touchResponseColor)==null?void 0:Lj.darkTheme:(Y2=md.touchResponseColor)==null?void 0:Y2.lightTheme;Lj={background:U5!==
void 0?Ag(U5):void 0,keyLight:H0!==void 0?Ag(H0):void 0};Y2=[];hC=_.n(md.lightingTechniques||[]);for(H0=hC.next();!H0.done;H0=hC.next())switch(H0.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":Y2.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":Y2.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":Y2.push(3)}Lj={hoverEffect:{palette:Lj,lightingTechniques:Y2},touchEffect:{palette:{background:iC!==void 0?Ag(iC):void 0}}}}else Lj={};return gY.call(l4,{},IC,Lj)},
hovered:function(){return M()},
pointerDownEvent:Ah.pointerDownEvent,pointerUpEvent:Ah.pointerUpEvent,pointerLeaveEvent:Ah.pointerLeaveEvent}),_.e(_.t,{cond:function(){var Xm;return x()&&M()&&((Xm=T())==null?void 0:Xm.onFocusEffect)},
then:function(){return _.e("div",{class:"yt-lockup-view-model__endorsement"},_.e(_.cp,{data:function(){return x()}},{attributionViewModel:function(Xm){return _.e(wu,{data:Xm.data,
useHeavyText:!0})}}))}}),_.e(_.P5,{command:function(){var Xm;
return _.Yh((Xm=E())==null?void 0:Xm.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return m()&&L().arrangement===1?"width: "+m():""}},_.e(_.cp,{data:function(){var Xm;
return(Xm=E())==null?void 0:Xm.contentImage}},{thumbnailViewModel:function(Xm){return _.e(_.cW,{data:Xm.data,
aspectRatio:function(){return L().aspectRatio},
disableRounding:function(){return L().disableRounding},
width:a,hovered:function(){return M()&&!(B()&&E().itemPlayback)},
isClip:function(){var U5;return((U5=E())==null?void 0:U5.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:B4h(K),lockupExperiments:function(){return T()}})},
collectionThumbnailViewModel:function(Xm){return _.e(yoj,{data:Xm.data,aspectRatio:function(){return L().aspectRatio},
disableRounding:function(){return L().disableRounding},
width:a,doubleStack:function(){return L().collectionStackNumber===2},
hovered:function(){return M()&&!(B()&&E().itemPlayback)},
playbackRef:B4h(K)})},
decoratedAvatarViewModel:_.sV})),_.e("div",{class:"yt-lockup-view-model__metadata"},_.e(_.cp,{data:function(){var Xm;return(Xm=E())==null?void 0:Xm.metadata}},{lockupMetadataViewModel:function(Xm){return _.e(DLY,{data:Xm.data,
hovered:M,lockupStyle:L,lockupCommand:function(){var U5;return _.Yh((U5=E())==null?void 0:U5.rendererContext)},
lockupAccessibilityLabel:function(){return r()}})},
feedAdMetadataViewModel:function(Xm){return _.e(Fl,{data:Xm.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:h})}}),_.e(_.cp,{data:function(){var Xm;
return(Xm=E())==null?void 0:Xm.attachmentSlot}},{lockupAttachmentsViewModel:function(Xm){return _.e(KHd,{data:Xm.data,
lockupStyle:L})}}))),_.e(_.cp,{data:function(){var Xm;
return(Xm=E())==null?void 0:Xm.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Xm){return _.e(KHd,{data:Xm.data,
lockupStyle:L})}}))},"Tb");
_.y5.idomCompat=!0;_.qi(_.y5,"yt-lockup-view-model",{props:{data:_.Nq,containerLayoutConfig:_.Nq,containerType:_.Nq,sizing:_.Nq,protectBackground:_.Nq,typographyBump:_.Nq,thumbnailFixedWidth:_.Nq,thumbnailTargetWidth:_.Nq,force16By9ThumbnailAspectRatio:_.Nq,className:_.Nq,lockupExperiments:_.Nq,elementsPerRow:_.Nq}});var nRl,MP5=_.f(function(k){var E=_.dJ(k,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),S=E.text,R=E.alwaysShowTruncationText;k=E.truncationText;var V=E.onTextClick,N=E.maxLines,h=E.disableTextMask,J=E.textStyle,m=E.accessibilityLabel,a=E.textSize,T=E.alwaysTruncateAtMaxLines,w=E.expandOnClick;E=_.n(_.yg(!1,void 0,"EzA1q"));var P=E.next().value,B=E.next().value;E=_.RZ(function(){w()&&B(!P());V==null||V()});
var F=function(){a:switch(a()){case "medium":var z=2;break a;case "large":z=2.2;break a;default:z=1.8}return z},K=J41(S,function(){return P()?Infinity:N()},F,h,T,P),r=K.isTruncated;
S=K.displayText;T=K.contentRef;var x=K.hiddenRef,L=K.placeholderTruncationTextRef,q=K.hiddenTruncationTextRef;K=K.truncationTextRef;var M={},d={};return _.e("truncated-text",{class:_.SQ((M["yt-truncated-text"]=!0,M["yt-truncated-text--overlay"]=function(){return J()==="overlay"},M["yt-truncated-text--medium-text"]=function(){return a()==="medium"},M["yt-truncated-text--large-text"]=function(){return a()==="large"},M["yt-truncated-text--primary-text"]=function(){return J()==="primary-text"},M)),
"on:click":E,style:function(){return"line-height: "+F()+"rem;"}},_.e("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:T,style:function(){return P()?"":"max-height: "+N()*F()+"rem;"}},_.e(_.VB,{text:S}),_.e("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:L,style:function(){return"line-height: "+F()+"rem;"}},_.e(_.VB,{text:k}))),_.e("truncated-text-content",{class:_.SQ("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:x,style:function(){return P()?"":"max-height: "+N()*F()+"rem;"},
"aria-hidden":"true"},_.e(_.VB,{text:S}),_.e("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:q,style:function(){return"line-height: "+F()+"rem;"}},_.e(_.VB,{text:k}))),_.e("button",{"aria-label":m,
class:_.SQ((d["yt-truncated-text__absolute-button"]=function(){return!h()},d["yt-truncated-text__bottom-button"]=function(){return h()},d["yt-truncated-text--hidden"]=function(){return!(!P()&&(R!=null&&R()||r()))},d)),
el:K,style:function(){return"line-height: "+F()+"rem;"}},_.e(_.VB,{text:k})))},"Vb");
MP5.idomCompat={callbacks:{onTextClick:!0}};var QBY=_.f(function(k){var E=k.data;k=k.className;var S=_.HX(function(){return mPb(E())},void 0,"uDhDke"),R=_.e(_.tj,null,_.e(_.t,{cond:function(){return E().heroText||E().image},
then:function(){return _.e(qRY,{data:E})}}),_.e(z45,{data:E,
sizeSmall:function(){return E().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.e("yt-video-attribute-view-model",{class:k},_.e("div",{class:function(){var V=E();a:switch(V.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var N="yt-video-attribute-view-model--vertical";break a;default:N="yt-video-attribute-view-model--horizontal"}a:switch(V.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var h="yt-video-attribute-view-model--image-small";break a;default:h="yt-video-attribute-view-model--image-large"}a:switch(V.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var J=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":J="yt-video-attribute-view-model--image-avatar";break a;default:J=""}a:switch(V.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var m="yt-video-attribute-view-model--metadata-header";break a;default:m=""}a:switch(V.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var a="yt-video-attribute-view-model--container-card";break a;default:a=""}return["yt-video-attribute-view-model",N,h,
J,m,a,mPb(V)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.nU({"background-color":function(){var V=E();if(V.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var N="";else{N=V.lightColorPalette;V=V.darkColorPalette;var h,J=((h=_.en().resolve(_.mz(_.jF)))==null?0:h())&&V?V:N;N=(N=J==null?void 0:J.section2Color)?_.Kc(N):""}return N}})},_.e(_.t,{cond:S,
then:function(){return _.e(_.P5,{className:"yt-video-attribute-view-model__content-container",command:S,role:"group",ariaLabel:function(){return E().title}},R)},
else:function(){return _.e("div",{class:"yt-video-attribute-view-model__content-container"},R)}})))},"Wb");
QBY.idomCompat=!0;var qRY=_.f(function(k){var E=k.data;var S,R=(S=_.en().resolve(_.mz(_.jF)))==null?void 0:S(),V=function(){return R&&E().darkThemeImage?E().darkThemeImage:E().image},N=_.HX(function(){return eXe(E())},void 0,"UDqj0b");
return _.e("div",{class:"yt-video-attribute-view-model__hero-section"},_.e(_.D_,null,_.e(_.xk,{when:V},function(){return _.e(_.vM,{data:function(){return V()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.e(_.xk,{when:function(){return E().heroText}},function(){return _.e("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.e("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return E().heroText}))})),_.e(_.t,{cond:function(){return E().overflowMenuOnTap},
then:function(){return _.e("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.e(_.FA,{data:N,iconName:"MORE_VERT"}))}}))},"Xb");
qRY.idomCompat=!0;var z45=_.f(function(k){var E=k.data;k=k.sizeSmall;var S=function(){return E().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},R=_.HX(function(){return ph(_.Kh({innertubeCommand:mPb(E())}))?"link":mPb(E())?"button":"group"},void 0,"e2MmYe"),V={};
return _.e("div",{class:_.SQ("yt-video-attribute-view-model__metadata",(V["yt-video-attribute-view-model--small-font"]=k,V)),role:R},_.e("h1",{class:"yt-video-attribute-view-model__title"},function(){return E().title}),_.e(_.t,{cond:function(){return E().subtitle},
then:function(){return _.e("h4",{class:"yt-video-attribute-view-model__subtitle"},_.e(_.t,{cond:S,then:function(){return _.e(MP5,{text:function(){return c4h(E().subtitle)},
truncationText:function(){return c4h(E().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.e("span",null,function(){return E().subtitle})}}))}}),_.e(_.t,{cond:function(){return E().secondarySubtitle},
then:function(N){return _.e("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.e(_.VB,{text:function(){var h=N();if(h!=null&&h.attachmentRuns){for(var J=[],m=_.n(h.attachmentRuns),a=m.next();!a.done;a=m.next())a=a.value,a.element&&J.push(Object.assign({},a,{element:Object.assign({},a.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));h=Object.assign({},h,{attachmentRuns:J})}return h}}))}}),_.e(_.cp,
{data:function(){return E().buttonViewModel}},{buttonViewModel:function(N){return _.e(_.yB,{data:N.data,
className:"yt-video-attribute-view-model__button"})}}))},"Yb");
z45.idomCompat=!0;_.qi(QBY,"yt-video-attribute-view-model",{props:{data:_.Nq,className:_.Nq}});var oT=function(){var k=_.p.apply(this,arguments)||this;k.useHighlightStyling=_.Y("web_enable_deeper_metadata_highlight_styling");k.isSearch=!1;k.JSC$15312_lastScrollContainerWidth=NaN;k.pageLoadingFromNavigation=!1;k.currentIndex=0;k.supportComponentResize=!1;return k};
_.y(oT,_.p);_.I=oT.prototype;
_.I.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}}}}}};
_.I.attached=function(){document.addEventListener("yt-page-type-changed",_.Ic(this,this.onPageChange))};
_.I.detached=function(){document.removeEventListener("yt-page-type-changed",_.Ic(this,this.onPageChange))};
_.I.getItemsPath=function(){return"data.cards"};
_.I.onIronResize=function(){this.updateListStyles()};
_.I.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var k;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(k=this.data)==null?void 0:k.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.Y("problem_walkthrough_sd")&&!!this.centerItems};
_.I.computeCardListStyle=function(k){return k||null};
_.I.computeEmpty=function(k){return!this.get("cards.length",k)};
_.I.computeThumbnailStyle=function(k){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",k)||null};
_.I.computeHasSubtitle=function(k){return!!this.get("header.richListHeaderRenderer.subtitle",k)};
_.I.computeInitialCountNumber=function(k){return this.hasSquareMiniApp&&k==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&k==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:k==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:k==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:k==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&k==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.I.computeUseFloorScrolling=function(k){return k==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.I.computeHasGameCard=function(k){return(k=this.get("cards",k))?k.some(function(E){return E.gameCardRenderer}):!1};
_.I.computeCenterHeaderTitle=function(k){return!(k==null||!k.centerHeaderTitle)};
_.I.computeHasPortraitMiniApp=function(k){return(k=k==null?void 0:k.cards)?k.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.I.computeHasSquareMiniApp=function(k){return(k=k==null?void 0:k.cards)?k.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.I.computeHasSkinnyWidthPortraitMiniApp=function(k){return(k=k==null?void 0:k.cards)?k.some(function(E){return E.miniGameCardViewModel&&E.miniGameCardViewModel.width===135}):!1};
_.I.computeCenterItems=function(k){return!!k};
_.I.computeHasInfoPanel=function(k){var E;return k==null?void 0:(E=k.cards)==null?void 0:E.some(function(S){return S.infoPanelContentRenderer})};
_.I.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.I.getItemByIndex=function(k){var E=this.items.children;return E&&E.length>k?E[k]:void 0};
_.I.onPageChange=function(){var k=this;this.pageLoadingFromNavigation=!0;_.ZJ.addJob(function(){k.pageLoadingFromNavigation=!1;_.zR(k.hostElement,"yt-terminate-video-preview-action")},8)};
_.I.updateListStyles=function(){if(_.Y("problem_walkthrough_sd")&&this.JSC$15312_scrollContainer!==void 0){var k=this.JSC$15312_scrollContainer.clientWidth;k!==this.JSC$15312_lastScrollContainerWidth&&(this.JSC$15312_lastScrollContainerWidth=k,_.VO(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(k*.8,415)+"px"}),_.Me(this.hostElement,"iron-resize"))}};
_.mt.Object.defineProperties(oT.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.Y("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return!!((k=this.data)==null?0:(E=k.cards)==null?0:(S=E[0])==null?0:S.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return!!((k=this.data)==null?0:(E=k.cards)==null?0:(S=E[0])==null?0:S.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return _.Y("enable_desktop_amsterdam_info_panels")&&!!((k=this.data)==null?0:(E=k.cards)==null?0:(S=E[0])==null?0:S.infoPanelContentRenderer)}}});
oT.prototype.dataChanged=oT.prototype.dataChanged;oT.prototype.onIronResize=oT.prototype.onIronResize;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.wR.YtdHorizontalListBehavior),_.l("design:type",Object)],oT.prototype,"ytdHorizontalListBehavior",void 0);
_.Z([_.g(_.Ob),_.l("design:type",Object)],oT.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],oT.prototype,"data",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],oT.prototype,"useCustomColors",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],oT.prototype,"useHighlightStyling",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.l("design:type",Object)],oT.prototype,"cardListStyle",void 0);_.Z([_.H({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.l("design:type",Boolean)],oT.prototype,"empty",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.l("design:type",Boolean)],oT.prototype,"hasSubtitle",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.l("design:type",Boolean)],oT.prototype,"thumbnailStyle",void 0);_.Z([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.l("design:type",Boolean)],oT.prototype,"hasGameCard",void 0);_.Z([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.l("design:type",Boolean)],oT.prototype,"centerHeaderTitle",void 0);
_.Z([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.l("design:type",Boolean)],oT.prototype,"hasPortraitMiniApp",void 0);_.Z([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.l("design:type",Boolean)],oT.prototype,"hasSquareMiniApp",void 0);_.Z([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.l("design:type",Boolean)],oT.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.Z([_.H({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.l("design:type",Boolean)],oT.prototype,"hasInfoPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],oT.prototype,"isSearch",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],oT.prototype,"inlineStructuredDescription",void 0);_.Z([_.JO("#scroll-container"),_.l("design:type",HTMLDivElement)],oT.prototype,"JSC$15312_scrollContainer",void 0);
_.Z([_.H({computed:"computeInitialCountNumber(data.style.type)"}),_.l("design:type",Number)],oT.prototype,"initialCount",void 0);_.Z([_.H({computed:"computeUseFloorScrolling(data.style.type)"}),_.l("design:type",Boolean)],oT.prototype,"useFloorScrolling",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.l("design:type",Boolean)],oT.prototype,"centerItems",void 0);_.Z([_.H(),_.l("design:type",Object)],oT.prototype,"pageLoadingFromNavigation",void 0);
_.Z([_.H(),_.l("design:type",Object)],oT.prototype,"currentIndex",void 0);_.Z([_.H(),_.l("design:type",Number)],oT.prototype,"scrollCount",void 0);_.Z([_.H(),_.l("design:type",Object)],oT.prototype,"supportComponentResize",void 0);_.Z([_.JO("#items"),_.l("design:type",HTMLDivElement)],oT.prototype,"items",void 0);_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oT.prototype,"onIronResize",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oT.prototype,"dataChanged",null);_.Z([_.H({reflectToAttribute:!0}),_.U("inlineStructuredDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oT.prototype,"hideNavigationButton",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oT.prototype,"modernChapters",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oT.prototype,"hasVideoAttributeViewModels",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],oT.prototype,"modernInfoPanels",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],oT);
_.b(oT,"ytd-horizontal-card-list-renderer",function(){if(Zqd!==void 0)return Zqd;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Zqd=k},{mode:_.GN("kevlar_poly_si_batch_j072")?1:2});var OD4=_.f(function(k){var E=k.data;var S={};return _.e("video-summary-content-view-model",{class:_.SQ("videoSummaryContentViewModelHost",k.className,(S.videoSummaryContentViewModelHostIsSearch=k.isSearch,S))},_.e(_.jw,{each:function(){var R=[],V=E().paragraphs;if(V==null||!V.length)return[];for(var N=0;N<V.length;N++){var h=_.W(V[N],OwY),J=void 0;N>0&&(J=_.W(V[N-1],OwY));J&&!!J.marker===!!h.marker?R[R.length-1].paragraphs.push(h):R.push({isList:!!h.marker,paragraphs:[h]})}return R},
keyBy:"INDEX"},function(R){return _.e(_.t,{cond:function(){return R().isList},
then:function(){return _.e("ul",{class:"videoSummaryContentViewModelList"},_.e(_.jw,{each:function(){return R().paragraphs},
keyBy:"INDEX"},function(V){return _.e("li",{class:"videoSummaryContentViewModelListItem"},_.e(_.VB,{text:function(){return V().text}}))}))},
else:function(){return _.e("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.e(_.jw,{each:function(){return R().paragraphs},
keyBy:"INDEX"},function(V){return _.e("p",{class:"videoSummaryContentViewModelParagraph"},_.e(_.VB,{text:function(){return V().text}}))}))}})}),_.e(_.t,{cond:function(){return!!_.W(E().likeButtonViewModel,_.Dr)&&!!_.W(E().dislikeButtonViewModel,_.j_)},
then:function(){return _.e("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.e("div",{class:"videoSummaryContentViewModelLikeButton"},_.e(_.q1,{data:function(){return _.W(E().likeButtonViewModel,_.Dr)},
disableIconAnimation:!0})),_.e(_.M1,{data:function(){return _.W(E().dislikeButtonViewModel,_.j_)}}))}}))},"Zb");
OD4.idomCompat=!0;_.qi(OD4,"video-summary-content-view-model",{props:{data:_.Nq,isSearch:_.Nq,className:_.Nq}});var Xl=function(){var k=_.p.apply(this,arguments)||this;var E,S;k.isExpanded=(S=(E=k.data)==null?void 0:E.isExpanded)!=null?S:!1;k.disableExpand=!1;k.showProminentLabel=!1;k.showRightSideLabel=!0;k.toggleExpandableContent=function(R){k.disableExpand||(R.stopPropagation(),_.b_(_.vT(R),k.hostElement,["info","expanded-subtitle"])||(k.isExpanded=!k.isExpanded,k.ytRendererBehavior.logExplicitClick(k.data),k.JSC$15323_cardList&&!_.Y("expandable_metadata_a11y_fix_ks")&&_.JB(k,function(){_.VF(k.hostElement)})))};
k.useSquareThumbnail=!1;k.startX=0;return k};
_.y(Xl,_.p);_.I=Xl.prototype;_.I.computeUseSquareThumbnail=function(){var k;return(k=this.data)==null?void 0:k.useSquareThumbnail};
_.I.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"}}}}};
_.I.dataChanged=function(){if(this.data){var k,E;this.isExpanded=(E=(k=this.data)==null?void 0:k.isExpanded)!=null?E:!1;var S,R,V,N;if(k=this.isDarkTheme()?(S=this.data)==null?void 0:(R=S.colorData)==null?void 0:R.darkColorPalette:(V=this.data)==null?void 0:(N=V.colorData)==null?void 0:N.lightColorPalette){var h,J;if((h=this.data)==null?0:(J=h.colorData)==null?0:J.vibrantColorPalette)k.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.wb(this.hostElement,k)}}};
_.I.isExpandedChanged=function(){this.isExpanded&&this.JSC$15323_cardList&&_.Me(this.JSC$15323_cardList,"iron-resize")};
_.I.computeIsExpanded=function(k){return!!k.isExpanded};
_.I.computeShowProminentLabel=function(k,E){var S;return!!(k==null?0:(S=k.header)==null?0:S.showLeadingCollapsedLabel)&&!E};
_.I.computeShowRightSideLabel=function(k,E){var S;return!(k==null?0:(S=k.header)==null?0:S.showLeadingCollapsedLabel)&&!E};
_.I.captureContentClick=function(k){if(!this.disableExpand)if(_.Y("expandable_metadata_fix_killswitch")){var E=k.target;_.t1T(E,"ytd-macro-markers-list-item-renderer")||k.stopPropagation();(E==null?void 0:E.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.b_(_.vT(k),this.hostElement,["items"])||_.v9(_.vT(k),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.I.timestampClick=function(k){k.stopPropagation();var E,S;(k=(E=this.data)==null?void 0:(S=E.header)==null?void 0:S.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(k)};
_.I.onDown=function(k){k.stopPropagation();this.startX=k.detail?k.detail.x:0};
_.I.onUp=function(k){this.skipKeyInteraction(k)&&k.stopPropagation()};
_.I.skipKeyInteraction=function(k){var E=k.target;if((E==null?void 0:E.id)==="scroll-container"||(E==null?void 0:E.id)==="items"||k.detail&&k.detail.x!==this.startX)return!0;k=_.vT(k);k=_.n(k);for(E=k.next();!E.done;E=k.next()){E=E.value;if(E===this.hostElement)break;if(E.hasAttribute&&E.hasAttribute("skip-key-interaction"))return!0}return!1};
_.I.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.mt.Object.defineProperties(Xl.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var k;return!!_.W((k=this.data)==null?void 0:k.expandedContent,QqA)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var k;return!!_.W((k=this.data)==null?void 0:k.expandedContent,_.C6T)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var k,E;return!((k=this.data)==null||!k.useCustomColors)&&!((E=this.data)==null||!E.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var k,E;return!!((k=this.data)==null?0:(E=k.header)==null?0:E.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var k,E;return!!((k=this.data)==null?0:(E=k.header)==null?0:E.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var k,E;return!!((k=this.data)==null?0:(E=k.header)==null?0:E.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
Xl.prototype.onUp=Xl.prototype.onUp;Xl.prototype.onDown=Xl.prototype.onDown;Xl.prototype.isExpandedChanged=Xl.prototype.isExpandedChanged;Xl.prototype.dataChanged=Xl.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Xl.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Xl.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Xl.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Xl.prototype,"isExpanded",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Xl.prototype,"disableExpand",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Xl.prototype,"isSearch",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Xl.prototype,"isWatch",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.l("design:type",Object)],Xl.prototype,"showProminentLabel",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.l("design:type",Object)],Xl.prototype,"showRightSideLabel",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xl.prototype,"hasVideoSummary",null);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xl.prototype,"hasLockupViewModel",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data","isWatch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xl.prototype,"useCustomColors",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xl.prototype,"showInfoButton",null);_.Z([_.U("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xl.prototype,"showTimestamp",null);_.Z([_.U("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xl.prototype,"showExpandedSubtitle",null);
_.Z([_.U("data","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xl.prototype,"showThumbnail",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xl.prototype,"useVppShoppingDestinationStyle",null);_.Z([_.H(),_.l("design:type",Object)],Xl.prototype,"toggleExpandableContent",void 0);_.Z([_.JO("ytd-horizontal-card-list-renderer"),_.l("design:type",Object)],Xl.prototype,"JSC$15323_cardList",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.l("design:type",Object)],Xl.prototype,"useSquareThumbnail",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xl.prototype,"dataChanged",null);_.Z([_.il("isExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Xl.prototype,"isExpandedChanged",null);
_.Z([_.nv("down"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Xl.prototype,"onDown",null);_.Z([_.nv("up"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Xl.prototype,"onUp",null);_.Z([_.D({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],Xl);
_.b(Xl,"ytd-expandable-metadata-renderer",function(){if(O_Y!==void 0)return O_Y;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return O_Y=k},{mode:1});var GfT,Czz=function(){if(GfT!==void 0)return GfT;var k=document.createElement("template");_.X(k,'\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      <div id="attributed-channel-name" hidden="[[!hasAttributedBylineText]]" 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]]" hidden="[[hasAttributedBylineText]]" 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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return GfT=k};_.qi(_.lR,"yt-avatar-stack-view-model",{props:{className:_.Nq,data:_.Nq,overrides:_.Nq,isOverlay:_.Nq,useMediumText:_.Nq,decorations:_.Nq,hideAvatar:_.Nq}});_.B9("itemSectionRenderer","videoRenderer","ytd-video-renderer");var gu=function(){var k=_.p.apply(this,arguments)||this;k.disableExpand=!1;k.shouldShowChannelInfo=!1;k.hasAttributedBylineText=!1;k.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return k};
_.y(gu,_.p);_.I=gu.prototype;_.I.computeUseSearchUi=function(){var k,E;return this.isSearch||((k=this.data)==null?void 0:(E=k.style)==null?void 0:E.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.I.computeUseThreeLineTitle=function(){var k;return((k=this.data)==null?void 0:k.maxTitleLines)===3};
_.I.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.Y("polymer_video_renderer_defer_menu")&&!b4j?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"}},"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.I.attached=function(){_.E_(this.hostElement,"blue-links",_.Y("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.SN(_.Cc(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var k=this.get("data.buttons.buttonRenderer.serviceEndpoint"),E;k&&((E=_.W(k.commandMetadata,_.gZ))==null?0:E.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(k);this.updateInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15328_inlinePreviewHoverListener=oE({mediaRenderer:this,lockupElement:this.JSC$15328_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.I.clearInlinePreviewHoverListeners=function(){var k;(k=this.JSC$15328_inlinePreviewHoverListener)==null||L9(k)};
_.I.onTextWrapperClick=function(k){var E,S,R=this.hideTranslation?(E=this.data)==null?void 0:E.untranslatedNavigationEndpoint:(S=this.data)==null?void 0:S.navigationEndpoint;E=_.b_(_.vT(k),this.hostElement,["expandable-metadata"]);!R||E&&!_.Y("expandable_metadata_fix_killswitch")||_.v9(_.vT(k),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Me(this.hostElement,"yt-navigate",{endpoint:R})};
_.I.computeThumbnailWidth=function(k,E,S,R,V){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:R?V==="MASSIVE"?600:V==="BIG"?500:V==="MEDIUM"?450:420:S?360:E?128:k?210:246};
_.I.computeUseBiggerThumbs=function(k){return k&&_.Y("enable_desktop_search_bigger_thumbs")};
_.I.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.I.computeHasAttributedBylineText=function(){var k;return!((k=this.data)==null||!k.attributedBylineText)};
_.I.computeVideoStyle=function(){if(_.Y("enable_video_style")){var k,E;return(k=this.data)==null?void 0:(E=k.style)==null?void 0:E.value}};
_.I.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.I.handleHideItemSectionVideosByIdCommand=function(k){var E;k=(E=_.W(k,Pf2))==null?void 0:E.videoId;this.data&&this.data.videoId===k&&(this.isHidden=!0)};
_.I.getMetadataSnippetContainerClass=function(k){return k?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.I.computeTitleText=function(k,E,S){return k?S:E};
_.I.computeDescriptionSnippet=function(k,E,S){return k?S:E};
_.I.computeSnippetText=function(k,E,S){return k?S:E};
_.I.computeNavigationEndpoint=function(k,E){return k?E==null?void 0:E.untranslatedNavigationEndpoint:E==null?void 0:E.navigationEndpoint};
_.I.hideInlineTitleIcon=function(k,E){return k||!E};
_.mt.Object.defineProperties(gu.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 k;return(k=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?k:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return!!(this==null?0:(k=this.data)==null?0:(E=k.channelThumbnailSupportedRenderers)==null?0:(S=E.channelThumbnailWithLinkRenderer)==null?0:S.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var k;return!!_.W((k=this.data)==null?void 0:k.avatar,kDp)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.JSC$15328_inlinePreviewHoverListener)==null?0:zD(k))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.mt.Object.defineProperties(gu,{template:{configurable:!0,enumerable:!0,get:function(){return Czz()}}});
gu.prototype.dataChanged=gu.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],gu.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],gu.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],gu.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],gu.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.g(_.VD),_.l("design:type",Object)],gu.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],gu.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],gu.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],gu.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],gu.prototype,"isBackstageVideo",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],gu.prototype,"isPostCompactVideo",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],gu.prototype,"isHistory",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],gu.prototype,"isRichGridVideoPost",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],gu.prototype,"isHidden",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],gu.prototype,"isSearch",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.l("design:type",Boolean)],gu.prototype,"useSearchUi",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.l("design:type",Boolean)],gu.prototype,"useThreeLineTitle",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.l("design:type",Boolean)],gu.prototype,"useBiggerThumbs",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.l("design:type",Object)],gu.prototype,"videoStyle",void 0);_.Z([_.H({computed:"computeDisableExpand(videoStyle)"}),_.l("design:type",Object)],gu.prototype,"disableExpand",void 0);
_.Z([_.H({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.l("design:type",Object)],gu.prototype,"shouldShowChannelInfo",void 0);_.Z([_.H({computed:"computeHasAttributedBylineText(data)"}),_.l("design:type",Object)],gu.prototype,"hasAttributedBylineText",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.P_("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],gu.prototype,"biggerThumbsStyle",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.l("design:type",String)],gu.prototype,"inlineTitleIcon",void 0);_.Z([_.H({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.l("design:type",Object)],gu.prototype,"computedNavigationEndpoint",void 0);_.Z([_.H({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(k,E){return _.Ep(k.entities,"searchVideoResultEntity",E)}}),
_.l("design:type",Object)],gu.prototype,"searchVideoResultEntity",void 0);_.Z([_.JO("ytd-thumbnail"),_.l("design:type",HTMLElement)],gu.prototype,"thumbnail",void 0);_.Z([_.JO("#dismissible"),_.l("design:type",HTMLElement)],gu.prototype,"JSC$15328_dismissibleMedia",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gu.prototype,"dataChanged",null);
_.Z([_.U("searchVideoResultEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gu.prototype,"hideTranslation",null);_.Z([_.U("searchVideoResultEntity"),_.l("design:type",Array),_.l("design:paramtypes",[])],gu.prototype,"hiddenBadgeGroups",null);_.Z([_.U("data","useAvatar"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gu.prototype,"shouldShowChannelThumbnail",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gu.prototype,"useAvatar",null);
_.Z([_.U("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gu.prototype,"isHovered",null);_.Z([_.D({is:"ytd-video-renderer",disableElementRegistration:!0})],gu);_.b(gu,"ytd-video-renderer",function(){return Czz()},{mode:_.GN("kevlar_poly_si_batch_j047")?1:2});var Uh=function(){var k=_.p.apply(this,arguments)||this;k.editDialog=null;k.roundedContainer=!0;k.isLoading=!1;k.isRichGrid=!1;k.isRichGridRepost=!1;k.reduceSidePaddings=_.Y("reduce_side_paddings_in_shelf");k.JSC$15335_spinnerEl=null;return k};
_.y(Uh,_.p);_.I=Uh.prototype;
_.I.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"}}}};
_.I.contentTextChanged=function(){this.expander.reset()};
_.I.dataChanged=function(){var k=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var E=0,S=this.data.actions&&this.data.actions.length;E<S;E++)this.openEditDialog(_.W(this.data.actions[E],RrC));if((E=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(E=this.get("buttonRenderer.hint.hintRenderer.hintId",E))&&E.startsWith("share-post-hint")){var R=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(R){_.ts.getInstance();var V=TM(_.DE(_.Vi("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.ZJ.addLowPriorityJob(function(){_.Ot(k.hostElement,V,R)})}}}};
_.I.updatePoll=function(k){k>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.I.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15335_spinnerEl||(this.JSC$15335_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Cc(this.hostElement).appendChild(this.JSC$15335_spinnerEl));this.JSC$15335_spinnerEl&&(this.JSC$15335_spinnerEl.active=this.isLoading)};
_.I.onYtNavigate=function(k){var E=this.get("updateCommentDialogEndpoint",k.detail.endpoint);E&&(this.openEditDialog(E),k.stopPropagation())};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null};
_.I.onYtCommentPollRevert=function(k,E){E&&this.updatePoll(E.selectedChoiceIndex)};
_.I.onYtServiceRequestSent=function(k,E){var S;E.endpoint&&(_.W(E.endpoint,Jyp)||_.W(E.endpoint,htC)&&((S=_.W(E.endpoint,htC))==null||!S.clientActions))&&(this.isLoading=!0);if(E.actions)for(k=0;k<E.actions.length;k++)S=E.actions[k],_.W(S,oJ)&&(S=this.get("updateBackstagePollAction.selectedChoiceIndex",S),S==void 0&&(S=-1),this.updatePoll(S))};
_.I.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.I.openEditDialog=function(k){k&&k.dialog&&(this.editDialog=k.dialog,k=this.editDialogEl.firstElementChild)&&(k.focus(),k.openDialog&&k.openDialog())};
_.I.computeIsPostHidden=function(k,E){return!!k||E};
_.I.computeSurfaceType=function(k){return k?k.toLowerCase().replace(/_/g,"-"):""};
_.I.computeUsesCompactLockup=function(k){return k==="BACKSTAGE_SURFACE_TYPE_HOME"||k==="BACKSTAGE_SURFACE_TYPE_SEARCH"||k==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||k==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||k==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||k==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.I.computeShowWithoutToolbar=function(k){return!k.actionButtons&&!k.actionMenu};
_.I.computePostAttachment=function(k){if(k.backstageAttachment){if(_.W(k.backstageAttachment,ZGz))return"poll";if(_.W(k.backstageAttachment,gBY))return"quiz";if(_.W(k.backstageAttachment,_.l3))return"video";if(_.W(k.backstageAttachment,UqC))return"uploaded-videos";if(_.W(k.backstageAttachment,HY4))return k.contentText?"image":"image-only";if(_.W(k.backstageAttachment,Fy8))return"playlist"}return"none"};
_.I.computePostTabIndex=function(k){return k?0:-1};
_.I.computeButtonTooltipPosition=function(k){return this.computeUsesCompactLockup(k)?"top":"bottom"};
_.I.computeHasText=function(k){return!(k==null||!k.contentText)};
_.I.onTap=function(k){var E,S;if(((E=this.data)==null?0:E.navigationEndpoint)&&((S=this.data)==null?void 0:S.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var R;((R=this.data)==null?0:R.navigationEndpoint)&&!_.v9(_.vT(k)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.mt.Object.defineProperties(Uh.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.voteCount)||_.DE("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.W(this.data.backstageAttachment,ZGz))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.W(this.data.backstageAttachment,UqC))}}});
Uh.prototype.onYtServiceRequestCompleted=Uh.prototype.onYtServiceRequestCompleted;Uh.prototype.onYtServiceRequestSent=Uh.prototype.onYtServiceRequestSent;Uh.prototype.onYtCommentPollRevert=Uh.prototype.onYtCommentPollRevert;Uh.prototype.onYtCommentboxDismiss=Uh.prototype.onYtCommentboxDismiss;Uh.prototype.onYtNavigate=Uh.prototype.onYtNavigate;Uh.prototype.isLoadingChanged=Uh.prototype.isLoadingChanged;Uh.prototype.dataChanged=Uh.prototype.dataChanged;Uh.prototype.contentTextChanged=Uh.prototype.contentTextChanged;
_.Z([_.g(_.Ob),_.l("design:type",Object)],Uh.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Uh.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Uh.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Uh.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],Uh.prototype,"editDialog",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uh.prototype,"roundedContainer",void 0);_.Z([_.H(),_.l("design:type",Object)],Uh.prototype,"isLoading",void 0);_.Z([_.H({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.l("design:type",String)],Uh.prototype,"surface",void 0);
_.Z([_.H({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Uh.prototype,"usesCompactLockup",void 0);_.Z([_.H({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Uh.prototype,"showWithoutToolbar",void 0);_.Z([_.H({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.l("design:type",String)],Uh.prototype,"attachment",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uh.prototype,"isRichGrid",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uh.prototype,"isRichGridRepost",void 0);_.Z([_.H({reflectToAttribute:!0,value:_.Y("use_better_post_dismissals")}),_.l("design:type",Boolean)],Uh.prototype,"useBetterPostDismissals",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uh.prototype,"reduceSidePaddings",void 0);
_.Z([_.H({computed:"computeHasText(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Uh.prototype,"hasText",void 0);_.Z([_.JO("#expander"),_.l("design:type",Object)],Uh.prototype,"expander",void 0);_.Z([_.JO("#action-buttons"),_.l("design:type",Object)],Uh.prototype,"actionButtons",void 0);_.Z([_.JO("#edit-dialog"),_.l("design:type",HTMLElement)],Uh.prototype,"editDialogEl",void 0);
_.Z([_.il("data.contentText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uh.prototype,"contentTextChanged",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uh.prototype,"dataChanged",null);_.Z([_.il("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uh.prototype,"isLoadingChanged",null);
_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Uh.prototype,"onYtNavigate",null);_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uh.prototype,"onYtCommentboxDismiss",null);_.Z([_.nv("yt-comment-poll-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Uh.prototype,"onYtCommentPollRevert",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],Uh.prototype,"onYtServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],Uh.prototype,"onYtServiceRequestCompleted",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uh.prototype,"voteCount",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Uh.prototype,"commentCount",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Uh.prototype,"hasPoll",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Uh.prototype,"hasUploadedVideo",null);_.Z([_.D({is:"ytd-post-renderer",disableElementRegistration:!0})],Uh);
_.b(Uh,"ytd-post-renderer",function(){if(PPC!==void 0)return PPC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return PPC=k},{mode:1});var kEC;var EQA;var HW=function(){return _.p.apply(this,arguments)||this};
_.y(HW,_.p);HW.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.wR.YtdHorizontalListBehavior),_.l("design:type",Object)],HW.prototype,"ytdHorizontalListBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],HW.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],HW.prototype,"data",void 0);
_.Z([_.H({value:"$.items.children"}),_.l("design:type",String)],HW.prototype,"itemsPath",void 0);_.Z([_.H({value:1}),_.l("design:type",Number)],HW.prototype,"initialCount",void 0);_.Z([_.H({reflectToAttribute:!0,value:_.Y("enable_community_page_on_desktop")}),_.l("design:type",Boolean)],HW.prototype,"useSmallerPostImageAttachments",void 0);_.Z([_.H(),_.l("design:type",String)],HW.prototype,"surface",void 0);_.Z([_.D({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],HW);
_.b(HW,"ytd-post-multi-image-renderer",function(){if(EQA!==void 0)return EQA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return EQA=k},{mode:_.GN("kevlar_poly_si_batch_j079")?1:2});var SKC={"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"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}},
Ks=function(){var k=_.p.apply(this,arguments)||this;k.hasInlineCommentSection=!1;k.editDialog=null;k.isLoading=!1;k.shouldHideAuthor=!1;k.shouldShowVideoTime=!1;k.isInEngagementPanel=!1;k.hideBorder=!1;k.usesFullLockup=!1;k.shouldShowMenuInCompactView=!1;k.JSC$15350_spinnerEl=null;k.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return k};
_.y(Ks,_.p);_.I=Ks.prototype;_.I.configureRendererStamper=function(){return SKC};
_.I.computeIsPollHeaderEnabled=function(k){return(k==null?void 0:k.pollMetadataIcon)!=null};
_.I.getPublishTimeStampString=function(k,E){E=new Date((Number(E)-60*((new Date).getTimezoneOffset()-(new Date(Number(E)*1E3)).getTimezoneOffset()))*1E3);E=(new ji(10)).format(E);if(k&&k.runs&&k.runs.length)for(var S=0;S<k.runs.length;S++)k.runs[S].text&&(k.runs[S].text=k.runs[S].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",E));return k};
_.I.created=function(){this.JSC$15350_spinnerEl=null};
_.I.contentTextChanged=function(){this.expander.reset()};
_.I.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var k;if((k=this.data)==null?0:k.actions){k=_.n(this.data.actions);for(var E=k.next();!E.done;E=k.next())this.openEditDialog(_.W(E.value,RrC))}};
_.I.handleSignalActionOpenPostCommentDialogAction=function(){_.Cc(this.hostElement).querySelector("#action-buttons").reply()};
_.I.updatePoll=function(k,E){E&&this.set("data.pollMetadataVoteCountText",E);this.hasInlineCommentSection&&(k=k>=0,E=_.Cc(this.hostElement).querySelector("#action-buttons"),k?E.reply():E.hideReplyDialog())};
_.I.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15350_spinnerEl||(this.JSC$15350_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Cc(this.hostElement).appendChild(this.JSC$15350_spinnerEl));this.JSC$15350_spinnerEl&&(this.JSC$15350_spinnerEl.active=this.isLoading)};
_.I.onYtNavigate=function(k){var E=this.get("updateCommentDialogEndpoint",k.detail.endpoint);E&&(this.openEditDialog(E),k.stopPropagation())};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null};
_.I.onYtCommentPollRevert=function(k,E){E&&this.updatePoll(E.selectedChoiceIndex,E.totalVotes)};
_.I.onYtServiceRequestSent=function(k,E){k.stopPropagation();k=_.W(E.endpoint,htC);if(_.W(E.endpoint,Jyp)||k&&!k.clientActions)this.isLoading=!0;if(E.actions)for(k=0;k<E.actions.length;k++){var S=E.actions[k],R=_.W(S,oJ);R&&(S=this.get("updateBackstagePollAction.selectedChoiceIndex",S),S===void 0&&(S=-1),this.updatePoll(S,R.totalVotes))}};
_.I.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.I.openEditDialog=function(k){k&&k.dialog&&(this.editDialog=k.dialog,k=this.editDialogElement.firstElementChild)&&(k.focus(),k.openDialog&&k.openDialog())};
_.I.computeIsBodyHidden=function(k,E){return!!k||E};
_.mt.Object.defineProperties(Ks.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var k=this.data,E=k.showPostAuthorBackgroundHighlight,S=k.postAuthorBadgeType,R=k.authorEndpoint;if(!E&&S!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&S!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var V,N,h;k=_.DE(((V=k.authorText)==null?void 0:(N=V.runs)==null?void 0:(h=N[0])==null?void 0:h.text)||"");V=void 0;switch(S){case "POST_AUTHOR_BADGE_TYPE_ARTIST":V={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":V={iconType:E?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:k,authorEndpoint:R,authorCreator:E,icon:V}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var k,E;if((k=this.data)==null?0:(E=k.pollMetadataIcon)==null?0:E.iconType)return _.SF(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.voteCount)||_.DE("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.W(this.data.backstageAttachment,ZGz))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.W(this.data.backstageAttachment,gBY))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.W(this.data.backstageAttachment,UqC))}}});
Ks.prototype.onYtServiceRequestCompleted=Ks.prototype.onYtServiceRequestCompleted;Ks.prototype.onYtServiceRequestSent=Ks.prototype.onYtServiceRequestSent;Ks.prototype.onYtCommentPollRevert=Ks.prototype.onYtCommentPollRevert;Ks.prototype.onYtCommentboxDismiss=Ks.prototype.onYtCommentboxDismiss;Ks.prototype.onYtNavigate=Ks.prototype.onYtNavigate;Ks.prototype.isLoadingChanged=Ks.prototype.isLoadingChanged;Ks.prototype.dataChanged=Ks.prototype.dataChanged;Ks.prototype.contentTextChanged=Ks.prototype.contentTextChanged;
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Ks.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ks.prototype,"rendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ks.prototype,"rendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],Ks.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.JO("#contentTextExpander"),_.l("design:type",Object)],Ks.prototype,"expander",void 0);_.Z([_.JO("#edit-dialog"),_.l("design:type",Element)],Ks.prototype,"editDialogElement",void 0);_.Z([_.H(),_.l("design:type",Object)],Ks.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Ks.prototype,"hasInlineCommentSection",void 0);_.Z([_.H(),_.l("design:type",Object)],Ks.prototype,"editDialog",void 0);_.Z([_.H(),_.l("design:type",Object)],Ks.prototype,"isLoading",void 0);
_.Z([_.H({computed:"computeIsPollHeaderEnabled(data)"}),_.l("design:type",Boolean)],Ks.prototype,"isPollHeaderEnabled",void 0);_.Z([_.H(),_.l("design:type",Object)],Ks.prototype,"shouldHideAuthor",void 0);_.Z([_.H(),_.l("design:type",Object)],Ks.prototype,"shouldShowVideoTime",void 0);_.Z([_.H(),_.l("design:type",Object)],Ks.prototype,"isInEngagementPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Ks.prototype,"hideBorder",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Ks.prototype,"usesFullLockup",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Ks.prototype,"shouldShowMenuInCompactView",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ks.prototype,"authorCommentBadge",null);_.Z([_.U("isInEngagementPanel"),_.l("design:type",Number),_.l("design:paramtypes",[])],Ks.prototype,"postTextMaxLines",null);
_.Z([_.U("data.icon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ks.prototype,"pollIcon",null);_.Z([_.il("data.contentText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ks.prototype,"contentTextChanged",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ks.prototype,"dataChanged",null);
_.Z([_.il("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ks.prototype,"isLoadingChanged",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ks.prototype,"onYtNavigate",null);_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ks.prototype,"onYtCommentboxDismiss",null);
_.Z([_.nv("yt-comment-poll-revert"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Ks.prototype,"onYtCommentPollRevert",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],Ks.prototype,"onYtServiceRequestSent",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ks.prototype,"onYtServiceRequestCompleted",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ks.prototype,"voteCount",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ks.prototype,"commentCount",null);
_.Z([_.U("data.backstageAttachment"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ks.prototype,"hasPoll",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ks.prototype,"hasQuiz",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ks.prototype,"hasUploadedVideo",null);_.Z([_.D({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Ks);
_.b(Ks,"ytd-backstage-post-renderer",function(){if(kEC!==void 0)return kEC;var k=document.createElement("template");_.X(k,'\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="dismissed" class="style-scope ytd-backstage-post-renderer">\n  <div id="dismissed-content" 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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return kEC=k},{mode:1});var RLj;var ps=function(){var k=_.p.apply(this,arguments)||this;k.editDialog=null;k.showExpandButton=!1;k.isRichGrid=!1;k.usesFullLockup=!1;return k};
_.y(ps,_.p);_.I=ps.prototype;_.I.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"}}}};
_.I.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.I.computeShowExpandButton=function(k){return this.usesCompactLockup||k&&k.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.I.computeUsesCompactLockup=function(k){return!!k.condensedContent};
_.I.computeShowFullContentText=function(k){return!k};
_.I.onYtNavigate=function(k){k=this.get("updateCommentDialogEndpoint",k.detail.endpoint);this.openEditDialog(k)};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null};
_.I.openEditDialog=function(k){k&&k.dialog&&(this.editDialog=k.dialog,k=this.repostEditDialogEl.firstElementChild)&&(k.focus(),k.openDialog&&k.openDialog())};
_.I.onTap=function(k){if(this.data){var E=null;this.usesCompactLockup&&!_.v9(_.vT(k)||[],this.hostElement,["YT-IMG-SHADOW"])?E=this.get("navigationEndpoint",this.data):k.target===this.moreButtonEl&&(E=this.get("navigationEndpoint",k.target.data));E&&_.Me(this.hostElement,"yt-navigate",{endpoint:E})}};
ps.prototype.onYtCommentboxDismiss=ps.prototype.onYtCommentboxDismiss;ps.prototype.onYtNavigate=ps.prototype.onYtNavigate;ps.prototype.dataChanged=ps.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ps.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],ps.prototype,"editDialog",void 0);_.Z([_.H({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ps.prototype,"usesCompactLockup",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ps.prototype,"showExpandButton",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ps.prototype,"isRichGrid",void 0);
_.Z([_.H({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ps.prototype,"showFullContentText",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ps.prototype,"usesFullLockup",void 0);_.Z([_.JO("#more"),_.l("design:type",Object)],ps.prototype,"moreButtonEl",void 0);_.Z([_.JO("#repost-content-text"),_.l("design:type",HTMLElement)],ps.prototype,"repostContentTextEl",void 0);
_.Z([_.JO("#repost-edit-dialog"),_.l("design:type",HTMLElement)],ps.prototype,"repostEditDialogEl",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ps.prototype,"dataChanged",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ps.prototype,"onYtNavigate",null);
_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ps.prototype,"onYtCommentboxDismiss",null);_.Z([_.D({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],ps);
_.b(ps,"ytd-shared-post-renderer",function(){if(RLj!==void 0)return RLj;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return RLj=k},{mode:1});var Ve5;var N2d;var A7=function(){return _.p.apply(this,arguments)||this};
_.y(A7,_.p);A7.prototype.attached=function(){var k=this;this.networkStatusManager||(this.networkStatusManager=new _.Ec,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){k.onlineHandler()}))};
A7.prototype.detached=function(){var k=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){k.onlineHandler()}),delete this.networkStatusManager)};
A7.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],A7.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],A7.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],A7);
_.b(A7,"ytd-reload-page-button-renderer",function(){if(N2d!==void 0)return N2d;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return N2d=k},{mode:1});var INd={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"},ru=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(ru,_.p);_.I=ru.prototype;_.I.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.I.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.I.computeHasBodyText=function(k){return!!k.bodyText};
_.I.computeButtons=function(k){var E=[];k.ctaButton&&E.push(k.ctaButton);k.secondaryButton&&E.push(k.secondaryButton);return E};
_.I.computeRendererStyle=function(k){return k.style?k.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():k.icon?"":"no-icon"};
_.I.getIconName=function(k,E){E=E===void 0?!1:E;if(k===void 0)return"";k=this.get("icon.iconType",k);var S;_.Y("enable_hlp_client_icon_pick")?S=this.getThemedIcon(k,E):S=k;(E=INd[S])||(E="yt-icons");return[E,S].join(":")};
_.I.getThemedIcon=function(k,E){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(k)?E?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(k)?E?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":k};
_.I.isThumbnail=function(k){return!!k.thumbnail};
_.I.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.I.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ru.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ru.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ru.prototype,"data",void 0);
_.Z([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],ru.prototype,"rendererStyle",void 0);_.Z([_.H({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.l("design:type",String)],ru.prototype,"iconName",void 0);_.Z([_.H({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ru.prototype,"thumbnail",void 0);_.Z([_.H({computed:"computeButtons(data)"}),_.l("design:type",Array)],ru.prototype,"buttons",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ru.prototype,"isDarkTheme",void 0);_.Z([_.H({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ru.prototype,"hasBodyText",void 0);_.Z([_.D({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],ru);
_.b(ru,"ytd-background-promo-renderer",function(){if(Ve5!==void 0)return Ve5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Ve5=k},{mode:1});var nQ5;var ui=function(){var k=_.p.apply(this,arguments)||this;k.collections=_.Y("web_modern_collections_v2");return k};
_.y(ui,_.p);_.mt.Object.defineProperties(ui.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R,V,N;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(k=this.data)==null?void 0:(E=k.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(R=S.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(V=this.data)==null?void 0:(N=V.thumbnail)==null?void 0:N.darkColorPalette,experimentEnabled:this.collections}}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ui.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ui.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ui.prototype,"collections",void 0);_.Z([_.U("data","collections"),_.l("design:type",Object),_.l("design:paramtypes",[])],ui.prototype,"collectionStack",null);_.Z([_.D({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],ui);
_.b(ui,"ytd-compact-station-renderer",function(){if(nQ5!==void 0)return nQ5;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return nQ5=k},{mode:1});var ikz;var x_=function(){var k=_.p.apply(this,arguments)||this;k.isRichGrid=!1;return k};
_.y(x_,_.p);x_.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]]"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],x_.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],x_.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],x_.prototype,"isRichGrid",void 0);_.Z([_.D({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],x_);
_.b(x_,"ytd-grid-channel-renderer",function(){if(ikz!==void 0)return ikz;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return ikz=k},{mode:1});var hLz;var Ls=function(){return _.p.apply(this,arguments)||this};
_.y(Ls,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ls.prototype,"data",void 0);_.Z([_.D({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Ls);
_.b(Ls,"ytd-grid-movie-playlist-renderer",function(){if(hLz!==void 0)return hLz;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return hLz=k},{mode:1});var Jiz;var jY=function(){var k=_.p.apply(this,arguments)||this;k.downloadProgress=0;k.transferState="TRANSFER_STATE_UNKNOWN";k.modernButtons=_.Y("web_modern_buttons");k.useModernCollectionsV2=_.Y("web_modern_collections_v2");return k};
_.y(jY,_.p);jY.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
jY.prototype.configureRendererStamper=function(){return{"data.menu":Ky}};
jY.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
jY.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.Y("woffle_playlist_renderer_killswitch")){var k,E=ngm(this.entityInfo,this.transferState,this.downloadProgress,(k=this.data)==null?void 0:k.playlistId,this.isOnline);k=E.viewPlaylistText;var S=E.badges;E=E.thumbnailOverlays;this.isDownloads=!!k||!!S;this.set("data.viewPlaylistText",k);S&&S.length>0&&this.set("data.badges",S);E&&E.length>0&&this.set("data.thumbnailOverlays",
E)}};
_.mt.Object.defineProperties(jY.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 k;return!((k=this.data)==null?0:k.menu)}}});
jY.prototype.transferStateChanged=jY.prototype.transferStateChanged;jY.prototype.dataChanged=jY.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],jY.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],jY.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],jY.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H({selector:_.vBb,selectorArgs:["data.playlistId"]}),_.l("design:type",Object)],jY.prototype,"downloadProgress",void 0);_.Z([_.H({selector:_.g8,selectorArgs:["data.playlistId"]}),_.l("design:type",Object)],jY.prototype,"transferState",void 0);_.Z([_.H({selector:fYm,selectorArgs:["data.playlistId"]}),_.l("design:type",Object)],jY.prototype,"entityInfo",void 0);_.Z([_.H({selector:_.o7}),_.l("design:type",Boolean)],jY.prototype,"isOnline",void 0);
_.Z([_.H(),_.l("design:type",Object)],jY.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],jY.prototype,"downloadRenderData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],jY.prototype,"modernButtons",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],jY.prototype,"isDownloads",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],jY.prototype,"useModernCollectionsV2",void 0);
_.Z([_.U("transferState"),_.H({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],jY.prototype,"downloadState",null);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jY.prototype,"menuHidden",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jY.prototype,"dataChanged",null);
_.Z([_.ac("transferState","downloadProgress","isOnline"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jY.prototype,"transferStateChanged",null);_.Z([_.D({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],jY);
_.b(jY,"ytd-grid-playlist-renderer",function(){if(Jiz!==void 0)return Jiz;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Jiz=k},{mode:1});var ciT;var D8=function(){var k=_.p.apply(this,arguments)||this;k.collections=_.Y("web_modern_collections_v2");return k};
_.y(D8,_.p);D8.prototype.configureRendererStamper=function(){return{"data.menu":Ky,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.mt.Object.defineProperties(D8.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R,V,N;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(k=this.data)==null?void 0:(E=k.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(R=S.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(V=this.data)==null?void 0:(N=V.thumbnail)==null?void 0:N.darkColorPalette,experimentEnabled:this.collections}}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],D8.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],D8.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],D8.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],D8.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],D8.prototype,"collections",void 0);_.Z([_.U("data","collections"),_.l("design:type",Object),_.l("design:paramtypes",[])],D8.prototype,"collectionStack",null);_.Z([_.D({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],D8);
_.b(D8,"ytd-grid-radio-renderer",function(){if(ciT!==void 0)return ciT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ciT=k},{mode:1});var muC;var $_=function(){var k=_.p.apply(this,arguments)||this;k.useModernCollectionsV2=_.Y("web_modern_collections_v2");return k};
_.y($_,_.p);$_.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
$_.prototype.computeNavigationEndpoint=function(k){return uEj(k==null?void 0:k.navigationEndpoint)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],$_.prototype,"ytdLockupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$_.prototype,"data",void 0);_.Z([_.H({computed:"computeNavigationEndpoint(data)"}),_.l("design:type",Object)],$_.prototype,"computedNavigationEndpoint",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],$_.prototype,"useModernCollectionsV2",void 0);_.Z([_.D({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],$_);
_.b($_,"ytd-grid-show-renderer",function(){if(muC!==void 0)return muC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return muC=k},{mode:1});var eL8;_.vW=function(k){this.playerClient=k};
_.aNz=function(k,E,S){S=S===void 0?{}:S;return k.playerClient.setOption("ad",E,S)};
_.vW.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.vW.prototype.executeCommand=function(k,E){this.getOptions().includes("executeCommand")?_.aNz(this,"executeCommand",{command:k,layoutId:E}):_.p5("Calling executeCommand when adModule is not loaded")};var bi=function(){return _.p.apply(this,arguments)||this};
_.y(bi,_.p);bi.prototype.getLayoutId=function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.layoutId:null};
bi.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var k=_.s3(),E=this.getLayoutId(),S=this.data.clickthroughEndpoint;k&&E&&_.Y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?k.getPlayerPromise().then(function(R){(new _.vW(R)).executeCommand(S,E)}):_.Me(this.hostElement,"yt-navigate",{endpoint:S})}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bi.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bi.prototype,"data",void 0);_.Z([_.D({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],bi);
_.b(bi,"ytd-shopping-companion-item-renderer",function(){if(eL8!==void 0)return eL8;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return eL8=k},{mode:1});var tez;var Z8=function(){var k=_.p.apply(this,arguments)||this;k.isExpandableContent=!1;return k};
_.y(Z8,_.p);_.mt.Object.defineProperties(Z8.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.data)==null?void 0:k.price)||((E=this.data)==null?void 0:(S=E.dealsData)==null?void 0:S.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var k,E;if((k=this.data)!=null&&k.dealsData&&((E=this.data)==null||!E.priceReplacementText)){k=this.data.dealsData;var S,R,V;return((S=k.salesData)==null?void 0:S.originalPrice)||((R=k.priceDropData)==null?void 0:R.referencePrice)||((V=k.promotionData)==null?void 0:V.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var k,E;return(k=this.data)==null?void 0:(E=k.dealsData)==null?void 0:E.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Z8.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Z8.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Z8.prototype,"isExpandableContent",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"showCta",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"ctaText",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"hasPriceTopPosition",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"hasPriceBottomPosition",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"useNewStyle",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"showPriceReplacementText",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"priceValue",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"showDeal",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"showAffiliateDisclaimer",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"useSaleStyle",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"useFromBrandCtaStyle",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"useFromVendorCtaStyle",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z8.prototype,"useShoppingCollectionCtaStyle",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],Z8);
_.b(Z8,"ytd-vertical-product-card-renderer",function(){if(tez!==void 0)return tez;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return tez=k},{mode:1});var T2Y;var du=function(){return _.p.apply(this,arguments)||this};
_.y(du,_.p);du.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],du.prototype,"ytdLockupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],du.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],du);
_.b(du,"ytd-grid-movie-renderer",function(){if(T2Y!==void 0)return T2Y;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return T2Y=k},{mode:1});var wPC;var sh=function(){var k=_.p.apply(this,arguments)||this;k.roundedFix=_.Y("web_enable_merch_item_rounding_fix");k.itemStyle="small-item";return k};
_.y(sh,_.p);sh.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var k,E,S,R,V=(E=_.W((k=this.data)==null?void 0:k.buttonCommand,_.JfY))==null?void 0:(S=E.item)==null?void 0:(R=S.notificationTextRenderer)==null?void 0:R.successResponseText;V&&_.a3j(this.hostElement,V)}};
_.mt.Object.defineProperties(sh.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:k.isProductPlaceholder)!==void 0&&((E=this.data)==null?void 0:E.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.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}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sh.prototype,"ytRendererBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],sh.prototype,"roundedFix",void 0);_.Z([_.H(),_.l("design:type",Object)],sh.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],sh.prototype,"itemStyle",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sh.prototype,"hasPrice",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sh.prototype,"hasPriceReplacementText",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sh.prototype,"hasAdditionalFeesText",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sh.prototype,"hasAffiliateDisclaimer",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sh.prototype,"isProductPlaceholder",null);
_.Z([_.H(),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sh.prototype,"hideOpenInNewIcon",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],sh.prototype,"ariaLabel",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],sh);
_.b(sh,"ytd-merch-shelf-item-renderer",function(){if(wPC!==void 0)return wPC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return wPC=k},{mode:1});var Pxd=_.f(function(k){return _.e("button-card-view-model",{el:_.Z0(_.FX(function(){return k.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return k.data().title},
role:"button"},_.e(_.B5,{model:{}}),_.e("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.e("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.e(_.t,{cond:function(){return k.data().image},
then:function(E){return _.e(_.vM,{data:E,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.e("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return k.data().title})))},"$b");_.Y("web_button_view_model_wcw_registration_killswitch")||_.qi(Pxd,"button-card-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){k=_.dJ(k,{className:void 0});var E=k.data;k=k.className;var S=_.HX(function(){return E().onTapCommand},void 0,"SXkP9e");
return _.e("ytd-shopping-item-card",{class:_.SQ("ytdShoppingItemCardHost",k)},_.e(_.P5,{command:S,className:"ytdShoppingItemCardHostLink"},_.e("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.e(_.cp,{data:function(){return E().thumbnailViewModel}},{thumbnailViewModel:function(R){return _.e(_.cW,{data:R.data,
aspectRatio:3})}})),_.e("div",null,_.e("p",{class:"ytdShoppingItemCardHostItemTitle"},_.e(_.VB,{text:function(){return E().itemTitle}})),_.e("p",{class:"ytdShoppingItemCardHostPrice"},_.e(_.VB,{text:function(){return E().priceOrStatus}})))))},"ac"),"ytd-shopping-item-card",{props:{data:_.Nq,
className:_.Nq}});var B2d={isAdsVideo:!0},YKd={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},WvY={showPlayerControls:!1,videoPreviewDurationMs:15E3},Fv4={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var rd=null,tVi={};var PQ1="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(" "),li={},B3C=(li.FEwhat_to_watch="home",li.FEhashtag="hashtag",li.FEtrending="trending",li.FEhistory="history",li.SPunlimited="premium",li.FEmemberships_and_purchases="paid_memberships",li.SPredeem_code="redeem",li.SPverify_location="locate",li.SPminor_moment="minor_moment",
li.FEmini_app_container="mini_app",li.FEnews_destination="news",li.SPopen_in_app="open_in_app",li.FEexplore="explore",li.FEsubscriptions="subscriptions",li.FEsfv_audio_pivot="sfv_audio_pivot",li.FEplaylist_aggregation="playlist_aggregation",li);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");_.GR("init");var yij=function(){},Uu8=_.f(function(k){var E=k.data;
var S=k.inlineMetadata;var R=k.aspectRatio;var V=k.scrimStyle;var N=k.className;var h=k.useDefaultStyle;var J=k.titleStyle;var m=new yij,a=_.Y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",T=_.HX(function(){return(h==null?0:h())?a==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),w=_.HX(function(){return _.dt(S)||T()||!1},void 0,"neizSe"),P=function(){return(V==null?void 0:V())!==void 0?V==null?void 0:V():1},
B=_.HX(function(){return E().belowThumbnailMetadata||!w()},void 0,"HdmMMe");
k=_.e9({visibilityCallback:function(TI){var a1=E().onFirstVisible;TI&&a1&&_.AV(a1)},
showOption:{calledOnce:!0,state:"visible"}});var F=_.Z0(),K={},r=_.SQ(function(){return T(),"shortsLockupViewModelHostThumbnailContainer"},(K.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.dt(R)===1},K.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.dt(R)===2},K.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.Y("web_shorts_2_by_3_lockups_study")&&!_.Y("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
K)),x=_.HX(function(){if(_.dt(R)===1)return 1;
_.dt(R);return 2},void 0,"ZRUa3c"),L,q=function(){if(m){var TI;
(TI=L)==null||L9(TI);var a1;if(m.hostElement&&((a1=m.data)==null?0:a1.inlinePlayerData)){TI=Object.assign({},Fv4);var Ah,th;((Ah=m.data)==null?void 0:(th=Ah.inlinePlayerData)==null?void 0:th.maxPlaybackLengthSec)!==void 0&&(TI.videoPreviewDurationMs=m.data.inlinePlayerData.maxPlaybackLengthSec*1E3);L=oE({mediaRenderer:m,lockupElement:m.hostElement,thumbnailElement:F.value,videoPreviewOpts:TI})}}};
_.vX(function(){m&&(m.data=E(),q())},"c4oj4d");
var M=_.HX(function(){return E().thumbnail},void 0,"CJHyHc");
K=_.HX(function(){return E().badge},void 0,"g31PIe");
var d=_.HX(function(){return E().onTap},void 0,"CJCUBc"),z={},kb={};
return _.e("ytm-shorts-lockup-view-model",{el:_.Z0(function(TI){m&&(m.hostElement=TI)},q,k),
class:_.SQ("shortsLockupViewModelHost",N)},_.e(_.tj,null,_.e(_.P5,{command:d,className:_.SQ("shortsLockupViewModelHostEndpoint",(z.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!B()},z),"reel-item-endpoint",""),
ariaHidden:function(){return!w()},
tabIndex:function(){return w()?0:-1}},_.e("div",{el:F,
class:_.SQ("shortsLockupViewModelHostThumbnailParentContainer",(kb.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!T()},kb))},_.e(_.t,{cond:M,
then:function(){return _.e("div",{class:r},_.e(_.vM,{data:function(){var TI;return(TI=M==null?void 0:M())!=null?TI:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.e(_.cp,{data:function(){return E().thumbnailViewModel}},{thumbnailViewModel:function(TI){return _.e(_.cW,{data:TI.data,
aspectRatio:function(){return x()},
disableRounding:function(){return T()}})}}),null),_.e(_.t,{cond:w,
then:function(){return _.e(oQ2,{data:E,scrimStyle:P,useDefaultStyle:h,titleStyle:J})}}),_.e(_.cp,{data:K},{badgeViewModel:function(TI){return _.e(_.t7,{data:TI.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.e(_.t,{cond:function(){return w()&&E().menuOnTap},
then:function(){return _.e(XPC,{data:E,inlineMetadata:!0})}}),_.e(_.t,{cond:B,
then:function(){return _.e(gQ5,{data:E,useDefaultStyle:h,inlineMetadata:w})}})))},"cc"),oQ2=_.f(function(k){var E=k.data;
var S=k.scrimStyle;var R=k.useDefaultStyle;var V=k.titleStyle;var N=_.Y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",h=R&&_.Y("web_hide_primary_text_for_pivot_panel"),J=_.HX(function(){return(R==null?0:R())?N==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
k={};k=_.SQ("shortsLockupViewModelHostInlineMetadata",(k.shortsLockupViewModelHostMetadataRounded=function(){return!J()},k.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(S==null?void 0:S())===3&&!_.Y("enable_shorts_lockup_new_scrim")},k.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(S==null?void 0:S())===3&&_.Y("enable_shorts_lockup_new_scrim")},k.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(S==null?void 0:S())===2||(S==null?void 0:
S())===4},k.shortsLockupViewModelHostShowOverPlayer=function(){return!0},k),"image-overlay-text");
var m={};return _.e("div",{class:k},_.e("h3",{class:_.SQ("shortsLockupViewModelHostMetadataTitle",(m.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(S==null?void 0:S())===4},m.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return E().belowThumbnailMetadata},m.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(V==null?void 0:V())===1},m.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(V==null?void 0:V())===2},m)),
"aria-label":function(){return E().accessibilityText}},_.e(_.t,{cond:function(){var a;
return!((a=E().overlayMetadata)==null||!a.primaryText)&&!h},
then:function(){return _.e(_.VB,{text:function(){var a;return(a=E().overlayMetadata)==null?void 0:a.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.e(_.t,{cond:function(){var a;
return(a=E().overlayMetadata)==null?void 0:a.secondaryText},
then:function(){return _.e(HkC,{data:E,scrimStyle:S,className:void 0})}}))},"dc"),gQ5=_.f(function(k){var E=k.data;
var S=k.useDefaultStyle;var R=k.inlineMetadata;var V=_.Y("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",N=_.HX(function(){return(S==null?0:S())?V==="SHORTS_LOCKUP_STYLE_SLIM":E().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),h=_.Z0(),J;
k=_.RZ(function(B){if(_.Bp(_.Pp(B),h.value,["AVATAR-VIEW-MODEL"]))return!1;var F;(F=J)==null||F.click();return!1});
var m=_.HX(function(){return E().belowThumbnailMetadata||E().overlayMetadata},void 0,"yJVuMb"),a=function(){return E().menuOnTap&&!R()},T=function(){var B;
return(B=m())==null?void 0:B.avatar},w={},P={};
return _.e("div",{class:_.SQ(function(){return N()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(w.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!T()},w.shortsLockupViewModelHostOutsideMetadataHasMenu=a,w)),
"on:click":k,el:h,role:"presentation"},_.e(_.cp,{data:T},{avatarViewModel:function(B){return _.e("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.e(_.dw,{data:B.data}))}}),_.e("div",null,_.e("h3",{class:_.SQ("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(P.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var B,F;
return!((B=m())==null?0:(F=B.primaryText)==null?0:F.content)},P.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=R,P)),
role:"presentation"},_.e(_.P5,{ref:function(B){return void(J=B)},
command:function(){return E().onTap},
className:_.SQ("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var B,F;return(B=m())==null?void 0:(F=B.primaryText)==null?void 0:F.content},
"aria-label":function(){return E().accessibilityText}},_.e(_.t,{cond:function(){var B;
return(B=m())==null?void 0:B.primaryText},
then:function(B){return _.e(_.VB,{text:B,noEndpoints:!0,noStyleRuns:!0})}}))),_.e(_.t,{cond:function(){var B;
return(B=m())==null?void 0:B.secondaryText},
then:function(B){return _.e("div",{class:_.SQ("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.e(_.VB,{text:B,noStyleRuns:!0}))}})),_.e(_.t,{cond:a,
then:function(){return _.e(XPC,{data:E,inlineMetadata:!1})}}))},"ec"),HkC=_.f(function(k){var E=k.data;
var S=k.scrimStyle;k=k.className;var R={};return _.e("div",{class:_.SQ((R.shortsLockupViewModelHostMetadataSubhead=function(){return(S==null?void 0:S())!==4},R.shortsLockupViewModelHostMetadataSubheadNew=_.Y("enable_shorts_lockup_new_scrim"),R.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(S==null?void 0:S())===4},R),k),
"aria-hidden":"true"},_.e(_.VB,{text:function(){var V;return(V=E().overlayMetadata)==null?void 0:V.secondaryText},
noStyleRuns:!0}))},"fc"),XPC=_.f(function(k){var E=k.data;
var S=k.inlineMetadata;k={};k=_.SQ((k.shortsLockupViewModelHostInlineMetadataMenu=function(){return S()},k.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!S()},k.shortsLockupViewModelHostShowOverPlayer=function(){return!0},k),"image-overlay-text");
return _.e("div",{class:k},_.e(_.FA,{data:function(){return{style:S()?"overlay":"mono",accessibilityLabel:E().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(R){R.preventDefault();R.stopPropagation();var V=_.Kh({elementsCommand:E().menuOnTap,forceNewState:!0});if(V==null?0:V.onclick)V.onclick(R)}}},
iconName:"MORE_VERT"}))},"gc");var Kv4=_.f(function(k){var E=k.data;var S=k.inlineMetadata;var R=k.aspectRatio;var V=k.scrimStyle;var N=k.className;var h=k.useDefaultStyle;k=_.HX(function(){var J=E().entityId;return J?J.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.e("ytm-shorts-lockup-view-model-v2",{class:_.SQ("shortsLockupViewModelHost",N)},_.e(_.BW,{contentId:k,aspectRatio:function(){return(R==null?void 0:R())===1?1:(R==null?void 0:R())===2?2:4}},function(){return _.e(Uu8,{data:E,
inlineMetadata:S,aspectRatio:R,scrimStyle:V,className:N,useDefaultStyle:h})}))},"hc");_.qi(Kv4,"ytm-shorts-lockup-view-model-v2",{props:{data:_.sk,inlineMetadata:_.sk,aspectRatio:_.sk,scrimStyle:_.sk,className:_.sk,useDefaultStyle:_.sk,titleStyle:_.sk}});var pPd=16/9*210,MZ=function(){var k=_.p.apply(this,arguments)||this;k.isExpandableContent=!1;k.hideShelfHeader=!1;k.engagementPanel=!1;k.buttonClasses=["arrow"];k.isSearch=!1;k.disableScrollEventListener=!1;k.containsLockup=!1;k.overrideArrowPositionForProductCard=!1;k.overrideArrowPositionForShoppingItemCard=!1;k.overrideArrowPositionForReelItems=!1;k.overrideArrowPositionForGridMovie=!1;k.overrideArrowPositionToCenter=!1;k.isSearchPostShelf=!1;k.overrideArrowPositionForMixedShelf=!1;k.overrideArrowPositionForMixedShelfShortsOnly=
!1;k.hasBigThumbsReelItems=!1;k.shouldUseMixedListHeight=!1;k.shouldUseShortsListHeight=!1;k.gridVideoWidth=0;k.isSearchVodShelf=!1;k.disableWheelScroll=!1;k.sizing="COMPACT";k.shortsLockupAspectRatio=0;return k};
_.y(MZ,_.p);_.I=MZ.prototype;
_.I.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]]"}}}}};
_.I.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.Y("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.I.computeInitialCountNumber=function(k){if(!k)return 6;var E=k.items.some(function(N){return!!N.topicRecommendationsChipRenderer}),S=k.items.some(function(N){return!!N.displayAdRenderer}),R=this.computeShouldListItemsHaveEqualHeight(k),V=k.items.some(function(N){return!!N.gridPlaylistRenderer});
k=k.items.some(function(N){return!!N.shoppingItemCardViewModel});
return E?9:S?8:V||R?10:k?7:6};
_.I.computeContainsPost=function(k){return!!k&&!!k.items&&k.items.some(function(E){return!!E.postRenderer})};
_.I.computeContainsLockup=function(){if(_.Y("web_horizontal_list_lockup_arrow_killswitch"))return!1;var k,E;return(k=this.data)==null?void 0:(E=k.items)==null?void 0:E.some(function(S){return!!S.lockupViewModel})};
_.I.maybeUpdateLockupAspectRatio=function(){var k,E;if(this.computeContainsLockup()&&((k=this.data)==null?0:(E=k.items)==null?0:E.length)){var S;k=fte((S=this.data.items[0].lockupViewModel)==null?void 0:S.contentType,this.data.force16By9ThumbnailAspectRatio);S=Dob(k);S=this.computeLockupWidth()/S;_.VO(this.hostElement,{"--yt-horizontal-list-content-height":S+"px"})}};
_.I.computeOverrideArrowPositionForProductCard=function(k){if(this.isExpandableContent)return!1;var E;return!!(k==null?0:(E=k.items)==null?0:E.some(function(S){return!!S.verticalProductCardRenderer}))};
_.I.computeOverrideArrowPositionForShoppingItemCard=function(k){var E;return!!(k==null?0:(E=k.items)==null?0:E.some(function(S){return!!S.shoppingItemCardViewModel}))};
_.I.computeOverrideArrowPositionForReelItemRenderer=function(k){return this.containsReelItemRenderer(k)};
_.I.computeHasBigThumbsReelItems=function(k,E){return k&&this.containsReelItemRenderer(E)};
_.I.computeShouldListItemsHaveEqualHeight=function(k){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(k==null?void 0:k.itemSizeConstraint)};
_.I.computeShouldListItemsHaveShortsHeight=function(k){return this.computeShouldListItemsHaveEqualHeight(k)&&!this.containsGridVideoRenderer(k)};
_.I.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.I.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.I.containsReelItemRenderer=function(k){var E;return!!(k==null?0:(E=k.items)==null?0:E.some(function(S){return!(!S.reelItemRenderer&&!S.shortsLockupViewModel)}))};
_.I.containsGridVideoRenderer=function(k){var E;return!!(k==null?0:(E=k.items)==null?0:E.some(function(S){return!!S.gridVideoRenderer||!!S.lockupViewModel}))};
_.I.computeContainsGridMovieRenderer=function(k){var E;return!!(k==null?0:(E=k.items)==null?0:E.some(function(S){return!!S.gridMovieRenderer}))};
_.I.computeOverrideArrowPositionToCenter=function(k){return this.computeIsSearchPostShelf(k)};
_.I.computeIsSearchPostShelf=function(k){var E;return!!(k==null?0:(E=k.items)==null?0:E.some(function(S){var R,V;return((V=(R=S.postRenderer)==null?void 0:R.surface)!=null?V:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.I.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(k){var E;return!!(k==null?0:(E=k.items)==null?0:E.some(function(S){var R,V,N;return((N=(R=S.backgroundPromoRenderer)==null?void 0:(V=R.style)==null?void 0:V.value)!=null?N:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.I.computeIsSearchVodShelf=function(k,E){return k&&this.containsGridVideoRenderer(E)};
_.I.computeDisableWheelScroll=function(k,E){return this.computeIsSearchVodShelf(k,E)};
_.I.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.I.computeShortsLockupAspectRatio=function(){return 1};
_.I.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.VO(this.hostElement,{"--ytd-reel-item-thumbnail-height":pPd+"px"})};
MZ.prototype.dataChanged=MZ.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.wR.YtdHorizontalListBehavior),_.l("design:type",Object)],MZ.prototype,"ytdHorizontalListBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],MZ.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],MZ.prototype,"isExpandableContent",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"hideShelfHeader",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"engagementPanel",void 0);_.Z([_.H(),_.l("design:type",Array)],MZ.prototype,"buttonClasses",void 0);_.Z([_.H(),_.l("design:type",Object)],MZ.prototype,"isSearch",void 0);
_.Z([_.H(),_.l("design:type",Object)],MZ.prototype,"disableScrollEventListener",void 0);_.Z([_.H({computed:"computeInitialCountNumber(data)"}),_.l("design:type",Number)],MZ.prototype,"initialCount",void 0);_.Z([_.H({computed:"computeContainsPost(data)"}),_.l("design:type",Boolean)],MZ.prototype,"supportComponentResize",void 0);_.Z([_.H({computed:"computeContainsPost(data)"}),_.l("design:type",Boolean)],MZ.prototype,"containsPost",void 0);
_.Z([_.H({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"containsLockup",void 0);_.Z([_.H({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],MZ.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.Z([_.H({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"overrideArrowPositionForProductCard",void 0);_.Z([_.H({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.Z([_.H({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"overrideArrowPositionForReelItems",void 0);_.Z([_.H({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"overrideArrowPositionForGridMovie",void 0);
_.Z([_.H({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"overrideArrowPositionToCenter",void 0);_.Z([_.H({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"isSearchPostShelf",void 0);_.Z([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.Z([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.Z([_.H({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"hasBigThumbsReelItems",void 0);
_.Z([_.H({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"shouldUseMixedListHeight",void 0);_.Z([_.H({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"shouldUseShortsListHeight",void 0);_.Z([_.H({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"gridVideoWidth",void 0);
_.Z([_.H({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"isSearchVodShelf",void 0);_.Z([_.H({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.l("design:type",Object)],MZ.prototype,"disableWheelScroll",void 0);_.Z([_.H({computed:"computeSizing(isSearch)"}),_.l("design:type",Object)],MZ.prototype,"sizing",void 0);
_.Z([_.H({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.l("design:type",Object)],MZ.prototype,"shortsLockupAspectRatio",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MZ.prototype,"dataChanged",null);
_.b(MZ,"yt-horizontal-list-renderer",function(){if(Alz===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);Alz=k}k=Alz;return k},{mode:1});var AiY=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
AiY.prototype.subscribe=function(k,E){var S=this.subscriptions.get(k);if(!S)return function(){};
S.add(E);return function(){S.delete(E)}};
AiY.prototype.unsubscribe=function(k,E){(k=this.subscriptions.get(k))&&k.delete(E)};
AiY.prototype.publish=function(k,E){E=E===void 0?{}:E;(k=this.subscriptions.get(k))&&k.forEach(function(S){S(E)})};var riY;var uWY=[10,12,14,16,18,20,24,28,32,36],xup=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],qZ=function(){var k=_.p.apply(this,arguments)||this;k.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";k.hideOverflow=!1;k.useRoboto=!1;k.fontClass="";k.overflown=!1;k.actionMap={"yt-window-resized":"resize"};return k};
_.y(qZ,_.p);_.I=qZ.prototype;
_.I.attached=function(){var k=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();_.JB(this,function(){k.resize()});
if(!_.qX){var E,S,R;(E=document)==null||(S=E.fonts)==null||(R=S.ready)==null||R.then(function(){k.resize()})}};
_.I.dataChanged=function(){this.resize()};
_.I.guideIsExpandedChanged=function(){this.resize()};
_.I.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 k=this.getMaxNumLines(),E=this.getMinFont(),S=this.getMaxFont(),R=this.useRoboto?uWY:xup;for(R=R.filter(function(N){return N<=S&&N>=E});R.length>1;){var V=Math.floor(R.length/2);
this.updateFontSize(R[V]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=k)R=R.slice(V,R.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>k)R=R.slice(0,V);else break}this.updateFontSize(R[R.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(k)}};
_.I.handleOverflow=function(k){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>k&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",k.toString()))};
_.I.updateFontSize=function(k){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+k;this.textNode.classList.add(this.fontClass)};
_.I.getMaxFont=function(){var k=this.useRoboto?uWY:xup;k=k[k.length-1];return this.maxFontSize&&this.maxFontSize<=k?this.maxFontSize:k};
_.I.getMinFont=function(){var k=(this.useRoboto?uWY:xup)[0];return this.minFontSize&&this.minFontSize>=k?this.minFontSize:k};
_.I.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.I.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.I.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.$n(this.text).split("\n").length-1:Infinity};
_.I.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("Qh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
qZ.prototype.guideIsExpandedChanged=qZ.prototype.guideIsExpandedChanged;qZ.prototype.dataChanged=qZ.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],qZ.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],qZ.prototype,"actionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],qZ.prototype,"text",void 0);
_.Z([_.H(),_.l("design:type",String)],qZ.prototype,"fontFamily",void 0);_.Z([_.H(),_.l("design:type",Number)],qZ.prototype,"maxWidth",void 0);_.Z([_.H(),_.l("design:type",Number)],qZ.prototype,"maxHeight",void 0);_.Z([_.H(),_.l("design:type",Number)],qZ.prototype,"maxFontSize",void 0);_.Z([_.H(),_.l("design:type",Number)],qZ.prototype,"minFontSize",void 0);_.Z([_.H(),_.l("design:type",Number)],qZ.prototype,"maxLines",void 0);_.Z([_.H(),_.l("design:type",Object)],qZ.prototype,"hideOverflow",void 0);
_.Z([_.H({selector:_.Uqh}),_.l("design:type",Boolean)],qZ.prototype,"guideIsExpanded",void 0);_.Z([_.JO("#container"),_.l("design:type",HTMLElement)],qZ.prototype,"containerNode",void 0);_.Z([_.JO("#text"),_.l("design:type",HTMLElement)],qZ.prototype,"textNode",void 0);_.Z([_.ac("text"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qZ.prototype,"dataChanged",null);
_.Z([_.ac("guideIsExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qZ.prototype,"guideIsExpandedChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],qZ);
_.b(qZ,"yt-dynamic-sizing-formatted-string",function(){if(riY!==void 0)return riY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return riY=k},{mode:1});var LvA;_.jk8=function(k){_.Sh.call(this,k)};
_.y(_.jk8,_.Sh);var Du8=function(k){_.Sh.call(this,k)};
_.y(Du8,_.jk8);var zQ=function(){return _.p.apply(this,arguments)||this};
_.y(zQ,_.p);zQ.prototype.onTapSuspendedChannel=function(){var k;if((k=this.data)!=null&&k.serviceEndpoint){var E,S;(k=(S=_.W((E=this.data)==null?void 0:E.serviceEndpoint,_.Oc))==null?void 0:S.url)?_.xl(k,void 0,void 0,window.top):(E=new Du8("Did not handle suspended account tap. No appealUrl."),_.bM(E))}else E=new Du8("Did not handle suspended account tap. No serviceEndpoint."),_.bM(E)};
zQ.prototype.onTap=function(){var k=this,E=_.JV(),S,R=(S=_.hV(E,{veType:7116}))!=null?S:void 0;_.Ab(E,{visualElement:R});_.rV();this.saveRoleText();var V;if((V=this.data)==null?0:V.youtubeSuspended)this.onTapSuspendedChannel();else{var N=!1,h,J;(E=(J=_.W((h=this.data)==null?void 0:h.serviceEndpoint,_.Yzp))==null?void 0:J.supportedTokens)&&E.forEach(function(m){if(m.accountSigninToken)if(N=!0,k.onAccountItemTap)k.onAccountItemTap(m.accountSigninToken.signinUrl);else _.xl(m.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!N){if(h=this.get("serviceEndpoint",this.data))N=!0,this.ytComponentBehavior.resolveCommand(h);N||_.Zd(new Du8("Did not handle account switch tap. No token."))}}};
zQ.prototype.saveRoleText=function(){if(this.data){var k=this.data,E=k.channelDelegationRole;if(E){var S,R=(S=_.W(k==null?void 0:k.serviceEndpoint,_.Yzp))==null?void 0:S.supportedTokens;if(!R){var V,N,h,J;R=(V=_.W(k==null?void 0:k.serviceEndpoint,_.Xg))==null?void 0:(N=V.popup)==null?void 0:(h=N.confirmDialogRenderer)==null?void 0:(J=h.confirmButton)==null?void 0:J.buttonRenderer;var m;R=(m=_.W(R==null?void 0:R.command,_.CI))==null?void 0:m.commands;if(!R)return;var a;R=(a=_.W(R[1],_.Yzp))==null?
void 0:a.supportedTokens}if(R){m=void 0;a=_.n(R);for(R=a.next();!R.done;R=a.next())if(R=R.value,R.datasyncIdToken){m=R.datasyncIdToken.datasyncIdToken;break}if(m){var T;a:{if(_.V4A()&&(a=_.dal(m+"::pom"))){a=new jM(a);break a}a=void 0}(T=a)==null||T.set("role_text",E);if((waI?waI:window.location).href.indexOf("studio")!==-1&&(T=NMh())){a=T.src?(new URL(T.src)).origin:"*";var w;(w=T.contentWindow)==null||w.postMessage({action:"save_pom_role",datasyncId:m,roleText:E},a)}}}}}};
_.mt.Object.defineProperties(zQ.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(k=this.data)==null?void 0:(E=k.accountPhoto)==null?void 0:E.thumbnails;return S&&S.length>0&&(S[0].height===36||S[0].height===48)?S[0].height:40}}});
zQ.prototype.onTap=zQ.prototype.onTap;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],zQ.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],zQ.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!1}),_.l("design:type",Function)],zQ.prototype,"onAccountItemTap",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zQ.prototype,"enableRingForActiveAccount",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],zQ.prototype,"thumbnailSize",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zQ.prototype,"onTap",null);_.Z([_.D({is:"ytd-account-item-renderer",disableElementRegistration:!0})],zQ);
_.b(zQ,"ytd-account-item-renderer",function(){if(LvA!==void 0)return LvA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return LvA=k},{mode:1});var $u8;var Q5=function(){return _.p.apply(this,arguments)||this};
_.y(Q5,_.p);Q5.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.en().resolve(_.t3).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Q5.prototype,"data",void 0);_.Z([_.D({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Q5);
_.b(Q5,"ytd-identity-chip-renderer",function(){if($u8!==void 0)return $u8;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return $u8=k},{mode:1});var fN2;var vQC;var bkC;var ZkY;var Oh=function(){var k=_.p.apply(this,arguments)||this;k.richItemMinWidth=_.wO("wn_grid_min_item_width",310);k.isShorts=!1;k.isWatchNext=!1;k.isExploreHub=!1;return k};
_.y(Oh,_.p);_.mt.Object.defineProperties(Oh.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var k=[],E=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.VO(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var S;if(((S=this.data)==null?0:S.rows)&&E)for(E*=this.data.rows,S=0;S<E;S++)k.push({});return k}}});
_.Z([_.g(_.zm),_.l("design:type",Object)],Oh.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Oh.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Wo,value:3}),_.l("design:type",Number)],Oh.prototype,"itemsPerRow",void 0);_.Z([_.H({selector:_.gB1,value:6}),_.l("design:type",Number)],Oh.prototype,"slimItemsPerRow",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Number)],Oh.prototype,"richItemMinWidth",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],Oh.prototype,"miniMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Oh.prototype,"isShorts",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Oh.prototype,"isWatchNext",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Oh.prototype,"isExploreHub",void 0);
_.Z([_.U("isExploreHub"),_.H({reflectToAttribute:!0}),_.l("design:type",Object),_.l("design:paramtypes",[])],Oh.prototype,"shimmerAnimation",null);_.Z([_.U("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.l("design:type",Array),_.l("design:paramtypes",[])],Oh.prototype,"cardItems",null);_.Z([_.D({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Oh);
_.du4=_.O_()(Oh,"ytd-ghost-grid-renderer",function(){if(ZkY===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);ZkY=k}k=ZkY;return k},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.qi(_.f(function(k){var E=_.dJ(k,{numberOfComments:3}).numberOfComments,S=_.dJ(k,{isInitialLoad:!1}).isInitialLoad,R=_.dJ(k,{engagementPanel:!1}).engagementPanel,V=function(){return Math.min(Number(E==null?void 0:E())||20,20)};
return _.e("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.e(_.t,{cond:function(){return!(R==null?0:R())&&(S==null?void 0:S())},
then:function(){return _.e("div",{class:"ytGhostCommentsComments"},_.e("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.e("div",{class:_.SQ("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.e("div",{class:_.SQ("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.e("div",{class:"ytGhostCommentsGhostCard"},_.e("div",{class:"ytGhostCommentsAvatar"},_.e("div",{class:"ytGhostCommentsCircle"})),_.e("div",{class:"ytGhostCommentsComments"},_.e("div",{class:"ytGhostCommentsMeta"},
_.e("div",{class:_.SQ("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.e("div",{class:_.SQ("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.e("div",{class:"ytGhostCommentsComments"},_.e(_.jw,{each:function(){return Array((V==null?void 0:V())||3)}},function(){return _.e("div",{class:"ytGhostCommentsGhostCard"},_.e("div",{class:"ytGhostCommentsAvatar"},_.e("div",{class:"ytGhostCommentsCircle"})),_.e("div",{class:"ytGhostCommentsHost"},_.e("div",{class:"ytGhostCommentsMeta"},
_.e("div",{class:_.SQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.e("div",{class:_.SQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.e("div",{class:_.SQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.e("div",{class:"ytGhostCommentsGhostLikeDislike"},_.e("div",{class:_.SQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.e("div",{class:_.SQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ic"),"yt-ghost-comments",{props:{numberOfComments:_.Nq,
isInitialLoad:_.Nq,engagementPanel:_.Nq},unsafeExternallySettableAttributes:new Set(["hidden"])});_.B9("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var GQ=function(){var k=_.p.apply(this,arguments)||this;k.isOverridable=!1;k.spinnerActive=!1;k.showButton=!1;k.isCommentsSection=!1;k.engagementPanel=!0;k.isShortsGrid=!1;k.isShortsPage=!1;k.isWatchPage=!1;k.ghostCardExperimentEnabled=_.Y("show_ghost_comments_shorts_watch")||_.Y("show_ghost_comments_desktop_watch");k.originalShowButton=!1;k.endOfList=!1;return k};
_.y(GQ,_.p);_.I=GQ.prototype;_.I.resetIntersectionObserver=function(){var k;(k=this.observer)==null||k.disconnect();this.observer=void 0};
_.I.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var k,E;((k=this.data)==null?void 0:k.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((E=this.data)==null?0:E.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.I.initializeIntersectionObserver=function(){var k=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(E){E=_.n(E);for(var S=E.next();!S.done;S=E.next())S.value.isIntersecting&&(k.triggerContinuation(),k.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.I.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]]"}}}}}};
_.I.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var k;((k=this.data)==null?0:k.continuationEndpoint)&&(k=_.W(this.data.continuationEndpoint,_.H9))&&this.ytdReduxBehavior.dispatch(_.zX({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:k}}))};
_.I.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.I.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.I.onServiceRequestCompleted=function(k,E){if(!_.Y("kevlar_hide_spinner_on_empty_continuation_killswitch")){var S;(S=E.actions)!=null&&S.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.I.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.I.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.I.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.I.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var k=3;if(this.engagementPanel){var E,S,R;k=Math.floor(((((E=this.hostElement)==null?void 0:(S=E.parentElement)==null?void 0:(R=S.parentElement)==null?void 0:R.scrollHeight)||108)-108)/108);k=this.isInitialLoad?Math.max(k,3):3}E=[].concat(_.$e(this.hostElement.querySelectorAll("yt-ghost-comments")));E=_.n(E);for(S=E.next();!S.done;S=E.next())S=S.value,S.numberOfComments=k,S.isInitialLoad=this.isInitialLoad,S.engagementPanel=
this.engagementPanel}};
_.I.detached=function(){this.resetIntersectionObserver()};
_.mt.Object.defineProperties(GQ.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.Y("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.Y("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
GQ.prototype.numberOfGhostCommentsChanged=GQ.prototype.numberOfGhostCommentsChanged;GQ.prototype.continuationTriggerOffsetChanged=GQ.prototype.continuationTriggerOffsetChanged;GQ.prototype.showButtonChanged=GQ.prototype.showButtonChanged;GQ.prototype.onYtServiceRequestCompletedForButtonRenderer=GQ.prototype.onYtServiceRequestCompletedForButtonRenderer;GQ.prototype.onServiceRequestCompleted=GQ.prototype.onServiceRequestCompleted;GQ.prototype.onYtServiceRequestSentForButtonRenderer=GQ.prototype.onYtServiceRequestSentForButtonRenderer;
GQ.prototype.observeData=GQ.prototype.observeData;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.kB.YtVisibilityBehavior),_.l("design:type",Object)],GQ.prototype,"ytVisibilityBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],GQ.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],GQ.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],GQ.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],GQ.prototype,"isOverridable",void 0);_.Z([_.H(),_.l("design:type",Object)],GQ.prototype,"spinnerActive",void 0);_.Z([_.H(),_.l("design:type",Object)],GQ.prototype,"showButton",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],GQ.prototype,"isCommentsSection",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],GQ.prototype,"engagementPanel",void 0);_.Z([_.H(),_.l("design:type",Object)],GQ.prototype,"isShortsGrid",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.p5j}),_.l("design:type",Object)],GQ.prototype,"isShortsPage",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Ky1}),_.l("design:type",Object)],GQ.prototype,"isWatchPage",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],GQ.prototype,"ghostCardExperimentEnabled",void 0);
_.Z([_.H(),_.l("design:type",Number)],GQ.prototype,"continuationTriggerOffset",void 0);_.Z([_.H(),_.l("design:type",Object)],GQ.prototype,"endOfList",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],GQ.prototype,"isInitialLoad",void 0);_.Z([_.JO("ytd-button-renderer"),_.l("design:type",_.mM)],GQ.prototype,"buttonRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],GQ.prototype,"buttonOverrides",void 0);
_.Z([_.H(),_.U("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.l("design:type",Object),_.l("design:paramtypes",[])],GQ.prototype,"isShortsCommentsSection",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GQ.prototype,"observeData",null);
_.Z([_.nv("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GQ.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],GQ.prototype,"onServiceRequestCompleted",null);
_.Z([_.nv("yt-service-request-completed-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GQ.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.Z([_.ac("showButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GQ.prototype,"showButtonChanged",null);
_.Z([_.ac("continuationTriggerOffset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GQ.prototype,"continuationTriggerOffsetChanged",null);_.Z([_.il("isInitialLoad","engagementPanel"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GQ.prototype,"numberOfGhostCommentsChanged",null);_.Z([_.D({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],GQ);
_.b(GQ,"ytd-continuation-item-renderer",function(){if(bkC!==void 0)return bkC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return bkC=k},{mode:1});var sk5;var Cs=function(){var k=_.p.apply(this,arguments)||this;k.downloadProgress=0;k.transferState="TRANSFER_STATE_UNKNOWN";k.downloadState="DOWNLOAD_STATE_UNKNOWN";k.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";k.offlineVideoPolicyExpirationTimestamp=0;k.downloadedVideoPlaybackPosition=0;return k};
_.y(Cs,_.p);Cs.prototype.dataChanged=function(){var k;this.videoData=_.W((k=this.data)==null?void 0:k.renderer,qNz);this.transferStateChanged()};
Cs.prototype.downloadProgressChanged=function(){if(this.entityInfo){var k=Object.assign({},this.videoData),E=i6m(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),S=E.publishedTimeText,R=E.badges;k.shortViewCountText=E.shortViewCountText;k.publishedTimeText=S;k.badges=R;this.set("videoData",k)}};
Cs.prototype.transferStateChanged=function(){if(this.entityInfo){var k=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",E=_.Jp(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!hp(this.entityInfo.policyEntity),S=Object.assign({},this.videoData),R=i6m(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),V=R.publishedTimeText,N=R.badges;S.shortViewCountText=
R.shortViewCountText;S.publishedTimeText=V;S.badges=N;S.isDisabled=E;S.isWatched=this.downloadedVideoPlaybackPosition>0;S.navigationEndpoint=E?void 0:A1R(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var h;k&&((h=this.videoData)==null?0:h.videoId)&&!_.Y("dl_resume_click_killswitch")&&(S.isDisabled=!1,S.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});S.thumbnailOverlays=IVj(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",S)}};
Cs.prototype.transferStateChanged=Cs.prototype.transferStateChanged;Cs.prototype.downloadProgressChanged=Cs.prototype.downloadProgressChanged;Cs.prototype.dataChanged=Cs.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Cs.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Cs.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],Cs.prototype,"videoData",void 0);_.Z([_.H({selector:Up,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],Cs.prototype,"downloadProgress",void 0);_.Z([_.H(),_.l("design:type",Number)],Cs.prototype,"relativeDateReference",void 0);_.Z([_.H({selector:_.Xf,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],Cs.prototype,"transferState",void 0);
_.Z([_.H({selector:OGC,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],Cs.prototype,"downloadState",void 0);_.Z([_.H({selector:Lyh,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],Cs.prototype,"offlinePolicyAction",void 0);_.Z([_.H({selector:jAI,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],Cs.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.Z([_.H({selector:Ho,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],Cs.prototype,"downloadedVideoPlaybackPosition",void 0);_.Z([_.H({selector:$qh,selectorArgs:["videoData.videoId"]}),_.l("design:type",Object)],Cs.prototype,"entityInfo",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Cs.prototype,"isDownloading",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cs.prototype,"dataChanged",null);
_.Z([_.ac("downloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cs.prototype,"downloadProgressChanged",null);_.Z([_.ac("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cs.prototype,"transferStateChanged",null);
_.Z([_.D({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Cs);
_.b(Cs,"ytd-downloaded-video-grid-video-renderer",function(){if(sk5!==void 0)return sk5;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return sk5=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var lN4;var kp=function(){};
kp.prototype.resolve=function(k,E){var S=this;return _.c(function(R){return R.yield(S.resolveCommand(k,E),0)})};var MeT,EW;MeT=B5I(function(k){return k.targetId},{shouldPersist:!1});
EW=MeT.updateData;_.qK5=MeT.useUpdatableData;var zLz,QkY;zLz=B5I(function(k){return k.targetId});
QkY=zLz.updateData;_.OkT=zLz.useUpdatableData;var GE2=y4b.bind(null,EW),CxA=y4b.bind(null,QkY);(function(k,E,S){var R=_.W(S==null?void 0:S.updatedRenderer,_.yr8);return R?k({targetId:E},function(){return R}):!1}).bind(null,EW);var S4=function(){};
_.y(S4,kp);S4.prototype.resolveCommand=function(k){var E;return _.c(function(S){E=_.W(k,_.uNI);if(!E)return S.return();GE2(E.targetId,E);_.KR(S)})};var Rn=function(){var k=_.mi.apply(this,arguments)||this;k.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return k};
_.y(Rn,_.mi);_.I=Rn.prototype;_.I.configureContinuationPathMap=function(){return{}};
_.I.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.I.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.I.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.I.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.I.handleAppendContinuationItemsAction=function(k){var E=_.W(k,_.PG4);if(this.data&&this.data.targetId&&E&&this.continuationPathMap&&E.targetId===this.data.targetId){var S=nhh(k),R=S&&this.continuationPathMap[S];if(R&&S)if(k=this.get(R,this.data)){a:{for(S=0;S<k.length;S++){var V=k[S],N=void 0,h=!!_.W((N=_.W(V,NB8))==null?void 0:N.content,_.dqj);if(_.W(V,_.jj)||h)break a}S=k.length}R="data."+R;E.continuationItems?S===k.length-1?(this.pop(R),this.push.apply(this,[R].concat(_.$e(E.continuationItems)))):
S===k.length?this.push.apply(this,[R].concat(_.$e(E.continuationItems))):this.splice.apply(this,[R,S,1].concat(_.$e(E.continuationItems))):this.splice(R,S,1);(_.Y("web_enable_voting_animation")||_.Y("enable_music_web_cairo_voting_animation"))&&_.Me(this.hostElement,"yt-append-continuation-items-action-finished");_.Me(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.dg(new _.LC("append continuation items does not exist",S));else _.dg(new _.LC("append continuation path does not exist",
S))}};
_.I.handleReloadContinuationItemsCommand=function(k){var E=_.W(k,_.uNI);if(this.data&&E){if(_.Y("web_client_explore_hub")||_.Y("web_explore_hub_on_hover")||_.Y("web_client_explore_hub_on_hover"))try{_.en().resolve(S4).resolveCommand(k)}catch(N){}if(this.data.targetId&&this.continuationPathMap&&E.targetId===this.data.targetId&&(!_.Y("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||E.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var S,R=(S=E.slot)==null?void 0:
S.replace("RELOAD_CONTINUATION_SLOT_","");S=(k=nhh(k)+"-"+(R==null?void 0:R.toLowerCase()))&&this.continuationPathMap[k];if(!S||!k||!R)_.dg(new _.LC("reload continuation path does not exist",k));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(E)){if(E.replaceWithFirstItem){var V;this.set("data."+S,((V=E.continuationItems)==null?0:V.length)?E.continuationItems[0]:{})}else this.set("data."+S,E.continuationItems?E.continuationItems:[]);this.continuationIsReloading=
!1;_.Me(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.I.handleShowReloadUiCommand=function(k){k=_.W(k,u2z);var E;((E=this.data)==null?0:E.targetId)&&(k==null?0:k.targetId)&&k.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Rn.prototype.observeData=Rn.prototype.observeData;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Rn.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Rn.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Rn.prototype,"data",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Rn.prototype,"continuationIsReloading",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Rn.prototype,"observeData",null);_.Z([_.eN()],Rn);_.VX=[_.OE.YtComponentBehavior,_.H5.YtActionHandlerBehavior,Rn.prototype];_.Nk={};_.Nk.YtNextContinuationBehavior=[_.Jr.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",_.Ic(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Ic(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(k,E){k.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,E,{}):(k={locationRetrieved:function(S){this.makeNextContinuationRequest_(S,E,{})}.bind(this)},_.Me(this.hostElement,"yt-retrieve-location",k))},
makeNextContinuationRequest_:function(k,E,S){_.Xy("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();k=E(k);var R;this.canUseContextualNetworkManager_()&&(R=this.getNetworkManager());R||(R=_.en().resolve(_.yS));E=_.rb.instance;if(_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&E){R=_.bg([k.startsWith("/")?k.substr(1):k]);var V,N;S=_.qF(E,{},R,S==null?void 0:(V=S.context)==null?void 0:(N=V.clickTracking)==null?void 0:N.clickTrackingParams).then(function(h){return{response:h}})}else S=
this.nextContinuation.usePost?R.postData(k,S):R.fetchData(k);
S.then(this.updateNextContinuationData_.bind(this,k));this.pendingContinuationRequest_=S;this.startListeningForNavigate_()},
updateNextContinuationData_:function(k,E){var S=this;_.Xy("ncl");this.pendingContinuationRequest_=void 0;if(E){var R={};this.nextContinuation&&(R=this.nextContinuation);if(E.response&&E.response.continuationContents&&E.response.continuationContents[R.continuationType]){k=E.response.continuationContents[R.continuationType];var V=R.header||"data.header",N=k[R.responseHeaderKey||"header"];N&&this.set(V,N);V=R.contentsArray||"data.contents";N=this.getContents_(k,R.responseContentsKey||"contents")||[];
this.pathExists_(V)?(N.unshift(V),this.push.apply(this,N)):this.set(V,N);N&&(oRl(_.JV(),E.response,this.hostElement,function(h){_.qe(S.hostElement,"yt-store-grafted-ve-action",[h])}),_.Me(this.hostElement,"yt-next-continuation-data-updated",{continuationData:E,
page:this,contentsArray:V}));this.set(R.continuationsArray||"data.continuations",k[R.responseContinuationsKey||"continuations"]||[])}else E.reload?_.dg(new _.LC("Reloading from continuation is unsupported")):E.responseContext&&E.responseContext.errors||(delete E.xsrf_token,delete E.timing,delete E.endpoint,delete E.csn,E.responseContext&&delete E.responseContext.serviceTrackingParams,V={request:_.N3(k,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(E).sort()},E.response&&(V.responseContentKeys=
Object.keys(E.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(V.continuationType=this.nextContinuation.continuationType.substr(0,256)),E=new _.LC("Malformed continuation",V),k.indexOf("/comment_service_ajax")==0?_.dg(E):_.bM(E)),this.set(R.continuationsArray||"data.continuations",[])}else _.Zd(new _.LC("Missing continuation response",k))},
getContents_:function(k,E){E=E.split(".");return _.fO.getValueByKeys(k,E)},
pathExists_:function(k){var E=this;k=k.toString().split(".");for(var S=0;S<k.length;S++)if(E=E[k[S]],E===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var k8p;var Eaj;var In=function(){var k=_.p.apply(this,arguments)||this;k.triggered_=!1;return k};
_.y(In,_.p);_.I=In.prototype;_.I.attached=function(){this.maybeTriggerAutoload()};
_.I.detached=function(){this.hasBeenTriggered_=!1};
_.I.onPrescanVisible=function(){this.onShow()};
_.I.onShow=function(){this.showButton||this.trigger()};
_.I.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Me(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.I.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.I.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.I.computeLabel_=function(k,E){return k===void 0?null:k.label||!E?k.label:this.showMoreText_};
_.I.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.I.getContinuationUrl=function(k){var E={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(E.itct=this.data.clickTrackingParams);return _.Iu(k,E)};
_.I.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
In.prototype.showButtonChanged_=In.prototype.showButtonChanged_;In.prototype.observeData_=In.prototype.observeData_;_.Z([_.g(_.kB.YtVisibilityBehavior),_.l("design:type",Object)],In.prototype,"ytVisibilityBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],In.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],In.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],In.prototype,"showButton",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],In.prototype,"showIcon",void 0);_.Z([_.H({computed:"computeLabel_(data, showButton)"}),_.l("design:type",Object)],In.prototype,"label",void 0);_.Z([_.H({value:_.DE(_.Vi("SHOW_MORE",void 0,"Show More"))}),_.l("design:type",Object)],In.prototype,"showMoreText_",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],In.prototype,"spinnerActive_",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],In.prototype,"hasBeenTriggered_",void 0);
_.Z([_.H({value:void 0}),_.l("design:type",String)],In.prototype,"observeVisibleOption",void 0);_.Z([_.H({value:void 0}),_.l("design:type",String)],In.prototype,"observeHiddenOption",void 0);_.Z([_.H({value:"observe_once"}),_.l("design:type",Object)],In.prototype,"observePrescanOption",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],In.prototype,"observeData_",null);
_.Z([_.il("showButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],In.prototype,"showButtonChanged_",null);_.Z([_.U_({is:"yt-next-continuation",disableElementRegistration:!0})],In);
_.b(In,"yt-next-continuation",function(){if(Eaj===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;k8p===void 0&&(k8p=document.createElement("template"));var R=k8p;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Eaj=k}k=Eaj;return k},{mode:2});var SeC;var RnC;var nQ=function(){return _.p.apply(this,arguments)||this};
_.y(nQ,_.p);nQ.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],nQ.prototype,"data",void 0);_.Z([_.U_({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],nQ);
_.b(nQ,"yt-music-pass-small-feature-info-renderer",function(){if(RnC===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;SeC===void 0&&(SeC=document.createElement("template"));var R=SeC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);RnC=k}k=RnC;return k},{mode:2});_.B9("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var iw=function(){var k=_.p.apply(this,arguments)||this;k.isCollapsible=!1;k.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return k};
_.y(iw,_.p);_.I=iw.prototype;_.I.computeIsCollapsible=function(k){return!!(((k==null?0:k.showMoreText)||(k==null?0:k.visibleRowCount))&&(k==null?0:k.isCollapsible))};
_.I.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"}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.I.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.I.onIronResize=function(){var k=this;_.Lv(this,"updateGridInitItems",function(){k.maybeUpdateInitialItemsDisplayed()})};
_.I.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var k=this.getVisibleWidth();k!==0&&(k=Math.floor(k/214)*(this.data.visibleRowCount||2),k!==this.initialCount&&(this.initialCount=k,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.I.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.I.computeExpandVisible=function(k,E,S,R){return k&&E&&S&&!!R&&!!R.showMoreText};
_.I.computeShowMoreButton=function(k){return{text:k,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.I.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.I.initCollapsed=function(){var k=this;this.ytLazyListBehavior.canShowMore=!1;var E;(this.collapsed=!((E=this.data)==null||!E.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.JB(this,function(){_.zR(k.hostElement,"yt-refit-popups-action")})};
_.I.fillRestIfNotCollapsible=function(){var k=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!k||this.ytLazyListBehavior.fillRemainingListItems()};
_.I.computeViewAllHidden=function(k,E){return k||!E.viewAllEndpoint};
iw.prototype.fillRestIfNotCollapsible=iw.prototype.fillRestIfNotCollapsible;iw.prototype.initCollapsed=iw.prototype.initCollapsed;iw.prototype.onIronResize=iw.prototype.onIronResize;iw.prototype.persistentGuideChanged=iw.prototype.persistentGuideChanged;_.Z([_.g(_.KS),_.l("design:type",Object)],iw.prototype,"ironResizableBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.TF.YtLazyListBehavior),_.l("design:type",Object)],iw.prototype,"ytLazyListBehavior",void 0);_.Z([_.g(_.Nk.YtNextContinuationBehavior),_.l("design:type",Object)],iw.prototype,"ytNextContinuationBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],iw.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Z([_.g(_.VX),_.l("design:type",Object)],iw.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iw.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],iw.prototype,"collapsed",void 0);_.Z([_.H(),_.l("design:type",Number)],iw.prototype,"initialCount",void 0);_.Z([_.H({computed:"computeShowMoreButton(data.showMoreText)"}),_.l("design:type",Object)],iw.prototype,"showMoreButton",void 0);
_.Z([_.H({computed:"computeIsCollapsible(data)"}),_.l("design:type",Object)],iw.prototype,"isCollapsible",void 0);_.Z([_.JO("#items"),_.l("design:type",HTMLElement)],iw.prototype,"items",void 0);_.Z([_.ac("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iw.prototype,"persistentGuideChanged",null);_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iw.prototype,"onIronResize",null);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iw.prototype,"initCollapsed",null);_.Z([_.ac("canShowMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iw.prototype,"fillRestIfNotCollapsible",null);_.Z([_.D({is:"ytd-grid-renderer",disableElementRegistration:!0})],iw);
_.b(iw,"ytd-grid-renderer",function(){if(lN4!==void 0)return lN4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return lN4=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var hv=function(){return _.p.apply(this,arguments)||this};
_.y(hv,_.p);
hv.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"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],hv.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],hv.prototype,"data",void 0);_.Z([_.D({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],hv);
_.b(hv,"ytd-carousel-ad-renderer",function(){if(vQC!==void 0)return vQC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vQC=k},{mode:1});var VsC;var Jv=function(){return _.p.apply(this,arguments)||this};
_.y(Jv,_.p);_.I=Jv.prototype;_.I.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"}}}};
_.I.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Jv.JSC$15532_CLICK_LOCATION_ID_MAP))};
_.I.onSitelinkTap=function(k){k.stopPropagation();var E,S,R=k==null?void 0:(E=k.model)==null?void 0:(S=E.item)==null?void 0:S.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,k,!1)};
_.I.onTap=function(k){var E=this.data&&this.data.content&&this.data.content.navigationEndpoint;E&&this.ytSparklesClickLocationBehavior.handleClick(E,k,!1)};
_.I.sendImpression=function(){if(this.data&&this.data.content)for(var k=_.n(this.data.content.impressionEndpoints||[]),E=k.next();!E.done;E=k.next()){E=_.n(E.value.loggingUrls||[]);for(var S=E.next();!S.done;S=E.next())S=S.value,S.baseUrl&&kf(S.baseUrl,S.attributionSrcMode)}};
Jv.prototype.onTap=Jv.prototype.onTap;Jv.prototype.dataChanged=Jv.prototype.dataChanged;Jv.JSC$15532_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"]]);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Jv.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],Jv.prototype,"ytSparklesClickLocationBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Jv.prototype,"data",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Jv.prototype,"dataChanged",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Jv.prototype,"onTap",null);_.Z([_.D({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Jv);
_.b(Jv,"ytd-promoted-sparkles-text-search-renderer",function(){if(VsC!==void 0)return VsC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return VsC=k},{mode:1});var Nl8;var ca=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-mute-ad-action":"handleMuteAd"};return k};
_.y(ca,_.p);_.I=ca.prototype;
_.I.configureRendererStamper=function(){return{"data.menu":{id:_.Y("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]]"}}}}}};
_.I.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.I.computeHasAdBadge=function(k){return!(k==null||!k.adBadge)};
_.I.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",ca.JSC$15541_DEFAULT_AD_BADGE_RENDERER),_.E_(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,ca.JSC$15541_CLICK_LOCATION_ID_MAP))};
_.I.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var k;(((k=this.data)==null?void 0:k.impressionCommands)||[]).forEach(function(E){E=_.n(E.loggingUrls||[]);for(var S=E.next();!S.done;S=E.next())S=S.value,S.baseUrl&&kf(S.baseUrl,S.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.I.onTap=function(k){var E,S=(E=this.data)==null?void 0:E.navigationEndpoint,R;(E=(R=this.data)==null?void 0:R.thumbnailNavigationEndpoint)&&_.b_(_.vT(k),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(E,k,!1):S&&this.ytSparklesClickLocationBehavior.handleClick(S,k,!1)};
_.I.handleMuteAd=function(){this.collapsed=!0};
_.I.attached=function(){var k=this;_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&k.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.mt.Object.defineProperties(ca.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var k;return!(((k=this.data)==null?void 0:k.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var k;return!(((k=this.data)==null?void 0:k.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.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}}});
ca.prototype.dataChanged=ca.prototype.dataChanged;
ca.JSC$15541_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"]]);
ca.JSC$15541_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Vi("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ca.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.Z([_.g(q8),_.l("design:type",Object)],ca.prototype,"ytdActiveViewBehavior",void 0);
_.Z([_.g([_.H5.YtActionHandlerBehavior]),_.l("design:type",Object)],ca.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],ca.prototype,"ytSparklesClickLocationBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ca.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ca.prototype,"collapsed",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],ca.prototype,"useBiggerThumbs",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.P_("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],ca.prototype,"biggerThumbsStyle",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.l("design:type",Boolean)],ca.prototype,"fixAlignmentSmallScreens",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs_square")}}),
_.l("design:type",Boolean)],ca.prototype,"useBiggerThumbsSquare",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.mediaHoverOverlay"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ca.prototype,"hideHoverOverlay",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ca.prototype,"webSearchLayout",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ca.prototype,"webSearchLayoutLandscape",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ca.prototype,"webSearchLayoutSquare",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.promotedSparklesWebStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ca.prototype,"sparklesCtaNoBackground",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.actionButton"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ca.prototype,"hideActionButton",null);_.Z([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.l("design:type",Object)],ca.prototype,"buttonOverride",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.l("design:type",Boolean)],ca.prototype,"hasNewAdBadge",void 0);_.Z([_.U("data.promotedSparklesWebStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ca.prototype,"useRoundedBadge",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ca.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],ca);
_.b(ca,"ytd-promoted-sparkles-web-renderer",function(){if(Nl8!==void 0)return Nl8;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Nl8=k},{mode:1});var IU5;var mD=function(){var k=_.p.apply(this,arguments)||this;k.isInlinePreviewTriggered=!1;k.enableMonoStyle=_.Y("enable_default_mono_cta_migration_web_client");return k};
_.y(mD,_.p);_.I=mD.prototype;_.I.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]]"}}}}}};
_.I.computeShowCta=function(k){return!(k==null||!k.ctaRenderer)};
_.I.onCtaClick=function(){var k,E,S,R=(k=this.data)==null?void 0:(E=k.ctaRenderer)==null?void 0:(S=E.buttonRenderer)==null?void 0:S.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.I.onWatchButtonClick=function(){var k,E,S,R=(k=this.data)==null?void 0:(E=k.watchButtonRenderer)==null?void 0:(S=E.buttonRenderer)==null?void 0:S.command;R&&this.ytComponentBehavior.resolveCommand(R)};
_.I.onTap=function(){};
_.I.dataChanged=function(){if(this.data){var k;_.Y("enable_inline_muted_playback_on_web_search")&&((k=this.data)==null?0:k.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",mD.JSC$15545_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",mD.JSC$15545_DEFAULT_CLICK_LOCATION_BEHAVIOR,mD.JSC$15545_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(k=this.thumbnail.getElementsByTagName("a"),k.length>0&&(k=k.namedItem("thumbnail"))&&k.removeAttribute("href"));var E;if(((E=this.data)==null?0:E.forceImpAutoplay)&&_.Y("enable_force_imp_autoplay_on_desktop_search")){var S;(S=this.JSC$15546_inlinePreviewHoverListener)==null||nil(S)}}};
_.I.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var k=_.n(this.data.impressionUrls),E=k.next();!E.done;E=k.next())E=E.value,sct(E,MNA(E));this.data.impressionsFired=!0}};
_.I.maybeComputeHref=function(){return null};
_.I.computeIsShortDR=function(k){return!(k==null||!k.watchButtonRenderer)&&!(k==null||!k.ctaRenderer)&&!!this.enableShortDR};
_.I.computeIsNewUiOrShortDr=function(k){return!!this.enableUiUpdate||this.computeIsShortDR(k)};
_.I.computeIsNewUiAndNotShortDr=function(k){return!!this.enableUiUpdate&&!this.computeIsShortDR(k)};
_.I.computeHideAvatar=function(k){return!((k==null?0:k.channelThumbnail)&&this.computeIsNewUiOrShortDr(k))};
_.I.onClick=function(k){var E,S=(E=this.data)==null?void 0:E.navigationEndpoint;if(this.enableShortDR&&S&&(_.W(S,_.jm)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(S,k,!!_.W(S,_.jm)),k.stopPropagation();else if(S&&_.W(S,_.jm))this.ytSparklesClickLocationBehavior.handleClick(S,k,!0),k.stopPropagation();else if(S){var R,V;((R=this.data)==null?0:R.navigationEndpoint)&&((V=this.data)==null?0:V.adPlaybackContextParams)&&(E=this.data.navigationEndpoint,k=this.data.adPlaybackContextParams,
E.commandMetadata&&_.W(E.commandMetadata,_.Sd)&&_.W(E.commandMetadata,_.Sd).url&&(E=_.Vf(_.W(E.commandMetadata,_.Sd).url).adurl)&&_.Mm1(E)&&_.vi(_.AI(E),{encoded_ad_playback_context:k}));this.ytComponentBehavior.resolveCommand(S)}};
_.I.computeButtonOverride=function(k){if(this.computeIsNewUiOrShortDr(k))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.I.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.I.onThumbnailContainerClick=function(k){this.onClick(k)};
_.I.computeThumbnailWidth=function(k,E){return k?E==="MASSIVE"?600:E==="BIG"?500:E==="MEDIUM"?450:420:360};
_.I.attached=function(){var k=this,E;_.Y("enable_inline_muted_playback_on_web_search")&&((E=this.data)==null?0:E.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&k.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){var k;_.Y("enable_inline_muted_playback_on_web_search")&&((k=this.data)==null?0:k.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15546_inlinePreviewHoverListener=oE({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:B2d})};
_.I.clearInlinePreviewHoverListeners=function(){var k;(k=this.JSC$15546_inlinePreviewHoverListener)==null||L9(k)};
mD.prototype.dataChanged=mD.prototype.dataChanged;mD.prototype.onTap=mD.prototype.onTap;mD.JSC$15545_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Vi("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};mD.JSC$15545_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
mD.JSC$15545_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"}];_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.Z([_.g(q8),_.l("design:type",Object)],mD.prototype,"ytdActiveViewBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],mD.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],mD.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Z([_.JO("#main-container"),_.l("design:type",HTMLElement)],mD.prototype,"mainContainer",void 0);_.Z([_.H(),_.l("design:type",Object)],mD.prototype,"isInlinePreviewTriggered",void 0);_.Z([_.H(),_.l("design:type",Object)],mD.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],mD.prototype,"useBiggerThumbs",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_video_display_compact_button_group_for_desktop_search")}}),
_.l("design:type",Boolean)],mD.prototype,"enableShortDR",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_vac_ui_update_for_desktop_search")}}),
_.l("design:type",Boolean)],mD.prototype,"enableUiUpdate",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.P_("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],mD.prototype,"biggerThumbsStyle",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.l("design:type",Boolean)],mD.prototype,"showCta",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.l("design:type",Boolean)],mD.prototype,"isShortDr",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.l("design:type",Boolean)],mD.prototype,"isShortDrOrNewUi",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.l("design:type",Boolean)],mD.prototype,"isNewUiAndNotShortDr",void 0);_.Z([_.H({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],mD.prototype,"buttonOverride",void 0);_.Z([_.H({computed:"computeSecondaryButtonOverride(data)"}),_.l("design:type",Object)],mD.prototype,"secondaryButtonOverride",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],mD.prototype,"enableMonoStyle",void 0);
_.Z([_.JO("ytd-thumbnail"),_.l("design:type",HTMLElement)],mD.prototype,"thumbnail",void 0);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mD.prototype,"onTap",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mD.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],mD);
_.b(mD,"ytd-promoted-video-renderer",function(){if(IU5!==void 0)return IU5;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return IU5=k},{mode:1});var nad;var e4=function(){var k=_.p.apply(this,arguments)||this;k.useRoundedBadge=!0;k.sitelinkIds=[];return k};
_.y(e4,_.p);_.I=e4.prototype;
_.I.configureRendererStamper=function(){return{"data.menu":{id:_.Y("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]]"}}}}}};
_.I.dataChanged=function(){var k;(k=this.data)!=null&&k.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,e4.JSC$15551_CLICK_LOCATION_ID_MAP)};
_.I.onTap=function(k){var E,S=(E=this.data)==null?void 0:E.navigationCommand;S&&!_.b_(_.vT(k),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(S,k,!1)};
_.I.onSitelinkTap=function(k){var E,S,R=k==null?void 0:(E=k.model)==null?void 0:(S=E.item)==null?void 0:S.onTap;R&&this.ytSparklesClickLocationBehavior.handleClick(R,k,!1)};
_.I.configureSitelinkClickTargets=function(){var k=this,E,S,R=(E=this.data)==null?void 0:(S=E.clickLocationTargets)==null?void 0:S.find(function(V){return V.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
R&&_.Cc(this.hostElement).querySelectorAll(".sitelink").forEach(function(V){_.E_(V,"yt-simple-endpoint",!0);k.sitelinkIds.push(V.id);var N,h;(N=k.ytSparklesClickLocationBehavior)==null||(h=N.clickTargetMap)==null||h.set(V.id,R)})};
_.I.sendImpression=function(){var k,E,S=((k=this.data)==null?void 0:(E=k.impressionCommand)==null?void 0:E.loggingUrls)||[];k=_.n(S);for(E=k.next();!E.done;E=k.next())E=E.value,E.baseUrl&&kf(E.baseUrl,E.attributionSrcMode)};
_.I.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.mt.Object.defineProperties(e4.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
e4.prototype.onTap=e4.prototype.onTap;e4.prototype.dataChanged=e4.prototype.dataChanged;e4.JSC$15551_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"]]);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],e4.prototype,"ytSparklesClickLocationBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],e4.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],e4.prototype,"showFavicon",null);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],e4.prototype,"useBiggerThumbs",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.P_("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],e4.prototype,"biggerThumbsStyle",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.l("design:type",Boolean)],e4.prototype,"enableThumbnailScalingFix",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],e4.prototype,"dataChanged",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],e4.prototype,"onTap",null);_.Z([_.D({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],e4);
_.b(e4,"ytd-text-image-no-button-layout-renderer",function(){if(nad!==void 0)return nad;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return nad=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var iaY;var an=function(){var k=_.p.apply(this,arguments)||this;k.isInlinePlaybackState=!1;k.uiUpdate=_.Y("web_modern_buttons");k.hideCta=_.Y("hide_cta_for_home_web_video_ads");k.noBottomMargin=!1;k.animateInTimeStamp=_.wO("hide_cta_for_home_web_video_ads_animate_in_time");k.animateInCta=!1;k.isHovered=!1;k.enableMonoStyle=_.Y("enable_default_mono_cta_migration_web_client");k.player=null;k.JSC$15558_playerEvents=new Map;k.JSC$15558_preventProgressSaveTimer=null;k.delayedCtaJobId=null;return k};
_.y(an,_.p);_.I=an.prototype;_.I.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]]"}}}}}};
_.I.attached=function(){this.JSC$15558_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15558_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.Y("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.I.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15558_playerEvents)};
_.I.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",an.JSC$15557_DEFAULT_CLICK_LOCATION_BEHAVIOR,an.JSC$15557_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.I.hoverChanged=function(){var k=this;this.delayedCtaJobId&&(_.ZJ.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.Y("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.aE(_.ZJ,function(){k.buttonContainer.classList.add("show-delayed-buttons")},_.wO("delayed_cta_on_web_delay_milliseconds")))};
_.I.setPlayer=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return(E=_.zR(k.hostElement,"yt-get-inline-preview-player-action"))&&E[0]?S.yield(E[0].getPlayerPromise(),3):S.jumpTo(0);k.player=S.yieldResult;k.ytPlayerListenerBehavior.listenToPlayerEvents(k.player,k.JSC$15558_playerEvents);_.KR(S)})};
_.I.onPlaybackStart=function(){var k=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15558_preventProgressSaveTimer=_.Ch(_.ZJ,function(){k.JSC$15558_preventProgressSaveTimer=null},1E4))};
_.I.onVideoProgress=function(k){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&k>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.I.resetPreventProgressSaveTimer=function(){_.ZJ.cancelJob(this.JSC$15558_preventProgressSaveTimer);this.JSC$15558_preventProgressSaveTimer=null};
_.I.getSimpleString=function(k){return _.$n(k)};
_.I.onClick=function(k){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var E,S=(E=this.data)==null?void 0:E.navigationEndpoint,R;E=(R=this.data)==null?void 0:R.channelEndpoint;var V,N;((N=_.W((V=this.data)==null?void 0:V.adCtaButton,_.dZ))==null?0:N.command)&&_.b_(_.vT(k),this.hostElement,["call-to-action"])||(E&&_.b_(_.vT(k),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(E,k,!1):!_.b_(_.vT(k),this.hostElement,
["secondary-button"])&&S&&(_.Y("enable_short_dr_for_desktop_launchable")?(R=!!_.W(S,_.jm),this.isInlinePlaybackState&&R&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(S,k,R)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(S,k,!0))))}};
_.I.updateWatchEndpointStartTime=function(){var k,E;this.player&&((k=this.data)==null?0:k.inlinePlaybackEndpoint)&&((E=this.data)==null?0:E.navigationEndpoint)&&!this.JSC$15558_preventProgressSaveTimer&&(k=Math.floor(this.player.getCurrentTime()),_.W(this.data.navigationEndpoint,_.jm).startTimeSeconds=k,_.W(this.data.inlinePlaybackEndpoint,_.jm).startTimeSeconds=k)};
_.I.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.I.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.mt.Object.defineProperties(an.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Y("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var k,E;return!((k=this.data)==null||!k.watchButton)&&!((E=this.data)==null||!E.adCtaButton)}}});
an.prototype.hoverChanged=an.prototype.hoverChanged;an.prototype.dataChanged=an.prototype.dataChanged;
an.JSC$15557_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"]]);
an.JSC$15557_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"}];
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],an.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],an.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],an.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],an.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],an.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],an.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],an.prototype,"isInlinePlaybackState",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],an.prototype,"miniMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],an.prototype,"uiUpdate",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],an.prototype,"hideCta",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],an.prototype,"noBottomMargin",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],an.prototype,"animateInCta",void 0);_.Z([_.H({computed:"computeButtonOverride(uiUpdate)"}),_.l("design:type",Object)],an.prototype,"buttonOverride",void 0);
_.Z([_.H({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.l("design:type",Object)],an.prototype,"secondaryButtonOverride",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],an.prototype,"isHovered",void 0);_.Z([_.JO("#button-container"),_.l("design:type",HTMLElement)],an.prototype,"buttonContainer",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],an.prototype,"typographyBump",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("typographyBump"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],an.prototype,"typographyBumpV2",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],an.prototype,"enableMonoStyle",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],an.prototype,"dataChanged",null);
_.Z([_.il("isHovered"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],an.prototype,"hoverChanged",null);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],an.prototype,"isButtonGroup",null);_.Z([_.D({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],an);
_.b(an,"ytd-ad-inline-playback-meta-block",function(){if(iaY!==void 0)return iaY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return iaY=k},{mode:_.GN("kevlar_poly_si_batch_j065")?1:2});var hnT;var tv=function(){var k=_.p.apply(this,arguments)||this;k.noBottomMargin=!1;k.isInlinePreviewTriggered=!1;k.JSC$15563_activeViewMeasurementDataResolver=_.LU();return k};
_.y(tv,_.p);_.I=tv.prototype;_.I.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.attached=function(){var k=this;this.updateInlinePreviewHoverListeners();this.JSC$15563_activeViewMeasurementDataResolver.promise.then(function(E){k.ytdActiveViewBehavior.enableActiveViewMeasurement(E,15)});
_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&k.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){this.clearInlinePreviewHoverListeners();_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15563_inlinePreviewHoverListener=oE({mediaRenderer:this,lockupElement:this.JSC$15563_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:B2d})};
_.I.clearInlinePreviewHoverListeners=function(){var k;(k=this.JSC$15563_inlinePreviewHoverListener)==null||L9(k)};
_.I.onDataChanged=function(){var k;((k=this.data)==null?0:k.activeView)&&this.JSC$15563_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",tv.JSC$15562_DEFAULT_CLICK_LOCATION_BEHAVIOR,tv.JSC$15562_CLICK_LOCATION_ID_MAP);this.thumbnail&&(k=this.thumbnail.getElementsByTagName("a"),k.length>0&&(k=k.namedItem("thumbnail"))&&k.removeAttribute("href"));var E;if((E=this.data)==
null?0:E.forceImpAutoplay){var S;(S=this.JSC$15563_inlinePreviewHoverListener)==null||nil(S)}};
_.I.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.I.onThumbnailContainerClick=function(k){if(this.data&&this.data.navigationEndpoint){var E,S=(E=this.data)==null?void 0:E.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(S,k,!!_.W(S,_.jm));k.stopPropagation()}};
_.I.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.I.impressionLog=function(){var k=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var E,S,R=(S=_.W((E=this.data)==null?void 0:E.onImpression,_.CI))==null?void 0:S.commands;R&&(R.forEach(function(V){V.clickTrackingParams&&delete V.clickTrackingParams;k.ytComponentBehavior.resolveCommand(V)}),this.data.impressionsFired=!0)}};
_.mt.Object.defineProperties(tv.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.JSC$15563_inlinePreviewHoverListener)==null?0:zD(k))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
tv.prototype.onTypographyBumpChanged=tv.prototype.onTypographyBumpChanged;tv.prototype.onDataChanged=tv.prototype.onDataChanged;tv.JSC$15562_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);tv.JSC$15562_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"}];
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],tv.prototype,"ytComponentBehavior",void 0);_.Z([_.g(q8),_.l("design:type",Object)],tv.prototype,"ytdActiveViewBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],tv.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],tv.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.g(_.VD),_.l("design:type",Object)],tv.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],tv.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],tv.prototype,"ytSparklesClickLocationBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tv.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],tv.prototype,"noBottomMargin",void 0);
_.Z([_.H(),_.l("design:type",Object)],tv.prototype,"isInlinePreviewTriggered",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],tv.prototype,"miniMode",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],tv.prototype,"typographyBump",void 0);_.Z([_.JO("ytd-thumbnail"),_.l("design:type",HTMLElement)],tv.prototype,"thumbnail",void 0);_.Z([_.JO("#dismissible"),_.l("design:type",HTMLElement)],tv.prototype,"JSC$15563_dismissibleMedia",void 0);
_.Z([_.JO("ytd-ad-inline-playback-meta-block"),_.l("design:type",HTMLElement)],tv.prototype,"adInlinePlaybackMetaBlock",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tv.prototype,"onDataChanged",null);_.Z([_.ac("typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tv.prototype,"onTypographyBumpChanged",null);
_.Z([_.U("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tv.prototype,"isHovered",null);_.Z([_.D({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],tv);
_.b(tv,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(hnT!==void 0)return hnT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return hnT=k},{mode:1});var J5Y;var TC=function(){var k=_.p.apply(this,arguments)||this;k.isInlinePreviewTriggered=!1;k.JSC$15566_activeViewMeasurementDataResolver=_.LU();return k};
_.y(TC,_.p);_.I=TC.prototype;_.I.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.attached=function(){var k=this;this.updateInlinePreviewHoverListeners();this.JSC$15566_activeViewMeasurementDataResolver.promise.then(function(E){k.ytdActiveViewBehavior.enableActiveViewMeasurement(E,15)})};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15566_inlinePreviewHoverListener=oE({mediaRenderer:this,lockupElement:this.JSC$15566_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:B2d})};
_.I.clearInlinePreviewHoverListeners=function(){var k;(k=this.JSC$15566_inlinePreviewHoverListener)==null||L9(k)};
_.I.onDataChanged=function(){var k;((k=this.data)==null?0:k.activeView)&&this.JSC$15566_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",TC.JSC$15565_DEFAULT_CLICK_LOCATION_BEHAVIOR,TC.JSC$15565_CLICK_LOCATION_ID_MAP);this.thumbnail&&(k=this.thumbnail.getElementsByTagName("a"),k.length>0&&(k=k.namedItem("thumbnail"))&&k.removeAttribute("href"))};
_.I.onThumbnailContainerClick=function(k){if(this.data&&this.data.navigationEndpoint){var E,S=(E=this.data)==null?void 0:E.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(S,k,!0);k.stopPropagation()}};
_.I.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.I.impressionLog=function(){var k=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var E,S,R=(S=_.W((E=this.data)==null?void 0:E.onImpression,_.CI))==null?void 0:S.commands;R&&(R.forEach(function(V){V.clickTrackingParams&&delete V.clickTrackingParams;_.en().resolve(_.t3).resolveCommand(V,{form:{element:k.hostElement}})}),this.data.impressionsFired=!0)}};
_.mt.Object.defineProperties(TC.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.JSC$15566_inlinePreviewHoverListener)==null?0:zD(k))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
TC.prototype.onDataChanged=TC.prototype.onDataChanged;TC.JSC$15565_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);TC.JSC$15565_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"}];_.Z([_.g(q8),_.l("design:type",Object)],TC.prototype,"ytdActiveViewBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],TC.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],TC.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],TC.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],TC.prototype,"ytdReduxBehavior",void 0);
_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],TC.prototype,"ytSparklesClickLocationBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],TC.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],TC.prototype,"isInlinePreviewTriggered",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],TC.prototype,"miniMode",void 0);_.Z([_.JO("ytd-thumbnail"),_.l("design:type",HTMLElement)],TC.prototype,"thumbnail",void 0);
_.Z([_.JO("#dismissible"),_.l("design:type",HTMLElement)],TC.prototype,"JSC$15566_dismissibleMedia",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],TC.prototype,"onDataChanged",null);_.Z([_.U("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],TC.prototype,"isHovered",null);_.Z([_.D({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],TC);
_.b(TC,"ytd-video-display-full-buttoned-renderer",function(){if(J5Y!==void 0)return J5Y;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return J5Y=k},{mode:1});var f5=function(k,E,S,R){R=R===void 0?!1:R;_.Sh.call(this,k);this.adsClientErrorMessage=S;this.aggressivelySample=R;this.args=[];E&&this.args.push(E)};
_.y(f5,_.Sh);var Dg=function(k,E,S,R){R=R===void 0?!1:R;_.Sh.call(this,k);this.adsClientErrorMessage=S;this.aggressivelySample=R;this.args=[];E&&this.args.push(E)};
_.y(Dg,_.Sh);var c5z=function(k){_.r7.call(this);var E=this;this.initializationFunction=k;this.instance=null;this.addOnDisposeCallback(function(){_.nu(E.instance);E.instance=null})};
_.y(c5z,_.r7);c5z.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.p5("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var r4b=function(){var k=new Map;[].forEach(function(E){k.set(E.JSC$30731_getType(),E)});
this.getters=k};new Promise(function(){});var UPe=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"]]),XJh=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"}]]),m0A=function(k){this.experimentApiProvider=k;k=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=k<.1};var wM=function(k,E,S,R){_.r7.call(this);this.adsControlFlowEventListeners=E;this.adEventLogger=S;this.experimentApiProvider=R;this.adsControlFlowManagerHelper=k(this,this,this,this,this);_.Wy(this,this.adsControlFlowManagerHelper);k=_.n(E);for(E=k.next();!E.done;E=k.next())_.Wy(this,E.value)};
_.y(wM,_.r7);var enC=function(k,E,S,R){Pa(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",E,S,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R);k=_.n(k.adsControlFlowEventListeners);for(R=k.next();!R.done;R=k.next())enC(R.value,E,S)};
_.I=wM.prototype;_.I.onOpportunityProcessedExternallyManaged=function(k,E,S,R){Pa(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",k,S,E,void 0,void 0,void 0,void 0,void 0,void 0,void 0,R)};
_.I.onSlotReceivedExternallyManaged=function(k,E){Ba(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",k,E)};
_.I.onSlotEntered=function(k){if(Yp(this.adsControlFlowManagerHelper,k)!=null){Ba(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",k);this.adsControlFlowManagerHelper.onSlotEntered(k);for(var E=_.n(this.adsControlFlowEventListeners),S=E.next();!S.done;S=E.next())S.value.onSlotEntered(k);if(Yp(this.adsControlFlowManagerHelper,k)!=null&&Yp(this.adsControlFlowManagerHelper,k).isOccupyingSlotType()&&Wa(this.adsControlFlowManagerHelper,k)&&!aUA(this.adsControlFlowManagerHelper,k)){var R;FI(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",k,(R=Wa(this.adsControlFlowManagerHelper,k))!=null?R:void 0);k=Yp(this.adsControlFlowManagerHelper,k);k.slotLifecycleStage!=="entered"&&yX(k.slot,k.slotLifecycleStage,"enterLayoutForSlot");k.slotLifecycleStage="rendering";k.registeredLayoutRenderingAdapter.startRendering(k.layout)}}};
_.I.onSlotExited=function(k){if(Yp(this.adsControlFlowManagerHelper,k)!=null){Ba(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",k);this.adsControlFlowManagerHelper.onSlotExited(k);for(var E=_.n(this.adsControlFlowEventListeners),S=E.next();!S.done;S=E.next())S.value.onSlotExited(k);Yp(this.adsControlFlowManagerHelper,k)!=null&&Yp(this.adsControlFlowManagerHelper,k).markedForUnscheduleAfterOutboundAdapterRequests&&tsA(this,k)}};
_.I.onLayoutReceivedExternallyManaged=function(k,E,S){k.managerLayer!=="core"&&FI(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",k,E,S)};
var TlC=function(k,E,S){if(Yp(k.adsControlFlowManagerHelper,E)!=null){FI(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",E,S);k=_.n(k.adsControlFlowEventListeners);for(var R=k.next();!R.done;R=k.next())TlC(R.value,E,S)}};
wM.prototype.onLayoutExited=function(k,E,S){if(Yp(this.adsControlFlowManagerHelper,k)!=null){FI(this.adEventLogger,gRI(S),k,E);this.adsControlFlowManagerHelper.onLayoutExited(k,E);for(var R=_.n(this.adsControlFlowEventListeners),V=R.next();!V.done;V=R.next())V.value.onLayoutExited(k,E,S);(S=Wa(this.adsControlFlowManagerHelper,k))&&E.layoutId===S.layoutId&&wB4(this,k)}};
wM.prototype.disposeInternal=function(){var k=PF8(this.adsControlFlowManagerHelper);k=_.n(k);for(var E=k.next();!E.done;E=k.next())tsA(this,E.value);_.r7.prototype.disposeInternal.call(this)};
var tsA=function(k,E){if(Yp(k.adsControlFlowManagerHelper,E)!=null)if(Yp(k.adsControlFlowManagerHelper,E).JSC$30761_isSlotExitRequested()||Yp(k.adsControlFlowManagerHelper,E).JSC$30761_isLayoutExitRequested())Yp(k.adsControlFlowManagerHelper,E).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Yp(k.adsControlFlowManagerHelper,E).isOccupyingSlotType())Yp(k.adsControlFlowManagerHelper,E).markedForUnscheduleAfterOutboundAdapterRequests=!0,wB4(k,E);else if(Yp(k.adsControlFlowManagerHelper,E).JSC$30761_isSlotFillRequested())Yp(k.adsControlFlowManagerHelper,
E).markedForUnscheduleAfterOutboundAdapterRequests=!0,Yp(k.adsControlFlowManagerHelper,E)!=null&&(Ba(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",E),E=Yp(k.adsControlFlowManagerHelper,E),E.fulfillmentLifecycleStage="fill_cancel_requested",E.registeredFulfillmentAdapter.cancelSlotFilling());else{var S=Wa(k.adsControlFlowManagerHelper,E),R;k.experimentApiProvider.get();(R=_.Y("h5_enable_layout_unscheduling_events"))&&(S?BlC(k,E,S):_.p5(Error("Sh"),E,S,void 0,!1));Ba(k.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",E);var V=Yp(k.adsControlFlowManagerHelper,E),N=E.slotEntryTrigger,h=V.registeredSlotEntryTriggerAdapters.get(N.triggerId);h&&(h.unregisterTrigger(N),V.registeredSlotEntryTriggerAdapters.delete(N.triggerId));N=_.n(E.slotFulfillmentTriggers);for(h=N.next();!h.done;h=N.next()){h=h.value;var J=V.registeredFulfillmentTriggerAdapters.get(h.triggerId);J&&(J.unregisterTrigger(h),V.registeredFulfillmentTriggerAdapters.delete(h.triggerId))}N=_.n(E.slotExpirationTriggers);
for(h=N.next();!h.done;h=N.next())if(h=h.value,J=V.registeredExpirationTriggerAdapters.get(h.triggerId))J.unregisterTrigger(h),V.registeredExpirationTriggerAdapters.delete(h.triggerId);V.hasLayout()&&(N=V.layout,on(V,N.layoutExitNormalTriggers),on(V,N.layoutExitSkipTriggers),on(V,N.layoutExitMuteTriggers),on(V,N.layoutExitUserInputSubmittedTriggers),on(V,N.layoutExitUserCancelledTriggers));V.registeredFulfillmentAdapter=void 0;V.registeredSlotAdapter!=null&&(V.registeredSlotAdapter.release(),V.registeredSlotAdapter=
void 0);V.registeredLayoutRenderingAdapter!=null&&(V.registeredLayoutRenderingAdapter.release(),V.registeredLayoutRenderingAdapter=void 0);V=k.adsControlFlowManagerHelper;Yp(V,E)&&(V=YeC(V,E.slotType+"_"+E.slotPhysicalPosition))&&V.delete(E.slotId);Ba(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",E);k=_.n(k.adsControlFlowEventListeners);for(V=k.next();!V.done;V=k.next())V=V.value,V.onSlotUnscheduled(E),S&&!R&&BlC(V,E,S)}},BlC=function(k,E,S){FI(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
E,S);
FI(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",E,S);k=_.n(k.adsControlFlowEventListeners);for(var R=k.next();!R.done;R=k.next())R=R.value,S&&BlC(R,E,S)},wB4=function(k,E){if(Yp(k.adsControlFlowManagerHelper,E)!=null&&Yp(k.adsControlFlowManagerHelper,E).isOccupyingSlotType()){var S=Wa(k.adsControlFlowManagerHelper,E);
if(S&&aUA(k.adsControlFlowManagerHelper,E)){if(Yp(k.adsControlFlowManagerHelper,E)!=null){var R=k.adEventLogger,V;var N=((V=XJh.get("abandoned"))==null?void 0:V.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";FI(R,N,E,S);k=Yp(k.adsControlFlowManagerHelper,E);k.slotLifecycleStage!=="rendering"&&yX(k.slot,k.slotLifecycleStage,"exitLayout");k.slotLifecycleStage="rendering_stop_requested";k.registeredLayoutRenderingAdapter.stopRendering(S,"abandoned")}}else{Ba(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
E);try{R=Yp(k.adsControlFlowManagerHelper,E);if(!R)throw new Dg("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");R.slotLifecycleStage!=="enter_requested"&&R.slotLifecycleStage!=="entered"&&R.slotLifecycleStage!=="rendering"&&yX(R.slot,R.slotLifecycleStage,"exitSlot");R.slotLifecycleStage="exit_requested";if(R.registeredSlotAdapter===void 0)throw R.slotLifecycleStage="scheduled",new Dg("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
R.registeredSlotAdapter.exit()}catch(h){h instanceof Dg&&h.adsClientErrorMessage?(WQC(k.adEventLogger,h.adsClientErrorMessage,E),_.p5(h,E,void 0,void 0,h.aggressivelySample)):(WQC(k.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",E),_.p5(h,E))}}}};var XI=function(k,E,S,R,V,N){_.r7.call(this);this.registry=k;this.experimentApiProvider=N;this.slotMap=new Map};
_.y(XI,_.r7);var YeC=function(k,E){return(k=k.slotMap.get(E))?k:new Map},Yp=function(k,E){return YeC(k,E.slotType+"_"+E.slotPhysicalPosition).get(E.slotId)},PF8=function(k){var E=[];
k.slotMap.forEach(function(S){S=_.n(S.values());for(var R=S.next();!R.done;R=S.next())E.push(R.value.slot)});
return E};
XI.prototype.onSlotEntered=function(k){k=Yp(this,k);k.slotLifecycleStage!=="enter_requested"&&yX(k.slot,k.slotLifecycleStage,"onSlotEntered");k.slotLifecycleStage="entered"};
var aUA=function(k,E){k=Yp(k,E);return k.hasLayout()&&k.isRendering()},Wa=function(k,E){(k=Yp(k,E))?k.hasLayout()&&!k.layout&&_.p5("Unexpected empty layout",E):_.p5("Unexpected undefined slotState",E);
return(k==null?void 0:k.layout)||null};
XI.prototype.onSlotExited=function(k){k=Yp(this,k);k.slotLifecycleStage!=="exit_requested"&&yX(k.slot,k.slotLifecycleStage,"onSlotExited");k.slotLifecycleStage="scheduled"};
XI.prototype.onLayoutExited=function(k,E){k=Yp(this,k);k.isPrimaryLayout(E)&&(k.slotLifecycleStage!=="rendering_stop_requested"&&yX(k.slot,k.slotLifecycleStage,"onLayoutExited"),k.slotLifecycleStage="entered")};
var on=function(k,E){E=_.n(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;var R=k.registeredLayoutExitTriggerAdapters.get(S.triggerId);R&&(R.unregisterTrigger(S),k.registeredLayoutExitTriggerAdapters.delete(S.triggerId))}},yX=function(k,E,S){_.p5("Slot stage was "+E+" when calling method "+S,k)};var y5j=function(k){_.r7.call(this);this.deps=k;this.JSC$15616_adsControlFlowManager=FQY(this)};
_.y(y5j,_.r7);var FQY=function(k){var E=new wM(function(S,R,V,N){return new XI(k.deps.registry,S,R,V,N,k.deps.experimentApiProvider)},new Set(A4C(k.deps.registry).concat(k.deps.listeners)),k.deps.adEventLogger,k.deps.experimentApiProvider);
_.Wy(k,E);return E};var GR1=function(){};var oaj=function(k,E){_.r7.call(this);this.experimentApiProvider=k;this.eventLoggingSettingsProvider=E;this.eventCount=0;this.premiumAdSeenEventLogger=CWh()()};
_.y(oaj,_.r7);oaj.prototype.logEvent=function(k){Pa(this,k)};
var Ba=function(k,E,S,R){Pa(k,E,void 0,void 0,void 0,S,void 0,void 0,void 0,S.adSlotLoggingData,void 0,void 0,R)},FI=function(k,E,S,R,V){Pa(k,E,void 0,void 0,void 0,S,R?R:void 0,void 0,void 0,S.adSlotLoggingData,R?R.adLayoutLoggingData:void 0,void 0,V);
S=_.en().resolve(_.mz(xf))==null?void 0:L2();E=S==null?void 0:S.adsSeenHotConfig;S=S==null?void 0:S.adsHotConfig;(E==null?0:E.logOnAdsSeen)&&(S==null?0:S.webEnablePremiumAdsSeenLogging)&&XB5(k,R?R:void 0,V)},WQC=function(k,E,S){Pa(k,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,S,void 0,void 0,void 0,S.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:E})},Pa=function(k,E,S,R,V,N,h,J,m,a,T,w,P){P=P===void 0?0:P;
ga2(k.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+E,"slot:",N,"layout:",h,"ping:",J,"Opportunity:",{opportunityType:S,associatedSlotId:R,slotsFromOpportunity:V,triggerBundle:m,adSlotLoggingData:a,adLayoutLoggingData:T});try{var B=function(){k.experimentApiProvider.get();if(E!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){E||_.p5("Empty PACF event type",N,h);var F=k.eventLoggingSettingsProvider.get();var K;(K=F.alwaysIncludeDebugData)||(F.experimentApiProvider.get(),K=
!1);F=K;K={eventType:E,eventOrder:++k.eventCount};var r={};N&&(r.slotData=KPj(F,N));if(h){var x={type:h.layoutType,controlFlowManagerLayer:UPe.get(h.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};F&&(x.debugData={layoutId:h.layoutId});r.layoutData=x}J&&(r.pingData={pingDispatchStatus:J.dispatchStatus,serializedAdPingMetadata:J.ping.serializedAdPingMetadata,pingIndex:J.index});m&&(r.triggerData=Hqm(m.trigger,m.category));S&&(r.opportunityData=pJI(F,S,R,V));K.adClientData=r;a&&(K.serializedSlotAdServingData=
a.serializedSlotAdServingDataEntry);T&&(K.serializedAdServingData=T.serializedAdServingDataEntry);w&&(K.errorInfo=w);_.f2("adsClientStateChange",{adsClientEvent:K})}};
P&&P>0?_.uM(_.eH(),function(){return B()},P):B()}catch(F){ga2(k.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.uM(_.eH(),function(){_.p5(F instanceof Error?F:String(F),N,h,{pacf_message:"exception during pacf logging"})})}},XB5=function(k,E,S){if(E){var R=E.adLayoutLoggingData;
_.uM(_.eH(),function(){k.premiumAdSeenEventLogger!=null&&R&&_.f2("adsSeenClientLogging",{serializedAdServingDataEntry:R.serializedAdServingDataEntry})},S!=null?S:0)}};var U0z=function(k,E){oaj.call(this,k,E)};
_.y(U0z,oaj);var Ha4=function(){},ga2=function(k,E){return _.Y(E)};var pB4=function(){var k=new KQ2;this.JSC$15641_adsControlFlowManager=(new y5j(k)).JSC$15616_adsControlFlowManager},KQ2=function(){_.r7.call(this);
var k=this;this.experimentApiProvider=new c5z(function(){return new Ha4});
var E=new c5z(function(){return new m0A(k.experimentApiProvider)});
this.adEventLogger=new U0z(this.experimentApiProvider,E);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.y(KQ2,_.r7);var A54=function(){},r54,gM=function(){r54||(r54=new A54);
return r54},rM=function(k){if(!k.JSC$15652_externallyManagedSlotAdapterCallback){var E=(new pB4).JSC$15641_adsControlFlowManager;
k.JSC$15652_externallyManagedSlotAdapterCallback=E}return k.JSC$15652_externallyManagedSlotAdapterCallback},uVY=function(k,E,S){var R=E.opportunityType,V=Error("Th");
if(R!==void 0){var N=rM(k);enC(N,R,void 0,S)}else _.p5(V,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});N=[];if(E.adSlotAndLayoutMetadata!==void 0){E=_.n(E.adSlotAndLayoutMetadata);for(var h=E.next();!h.done;h=E.next()){var J=h.value;if(h=J.adSlotMetadata)if(N.push(h),k.onSlotReceivedExternallyManaged(h,S),J.adLayoutMetadata){J=_.n(J.adLayoutMetadata);for(var m=J.next();!m.done;m=J.next())k.onLayoutReceivedExternallyManaged(h,m.value,S)}else S>0&&_.p5("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else S>0&&_.p5("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else S>0&&_.p5("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+R,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(R!==void 0)k.onOpportunityProcessedExternallyManaged(R,N,void 0,S);else _.p5(V,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
A54.prototype.onSlotReceivedExternallyManaged=function(k,E){k=$h(k);if(k instanceof Dg)_.p5(k,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else rM(this).onSlotReceivedExternallyManaged(k,E)};
A54.prototype.onLayoutReceivedExternallyManaged=function(k,E,S){k=$h(k);E=uql(E);if(k instanceof Dg)_.p5(k,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(E instanceof f5)_.p5(E,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else rM(this).onLayoutReceivedExternallyManaged(k,E,S)};
A54.prototype.onOpportunityProcessedExternallyManaged=function(k,E,S,R){var V=[];E=_.n(E);for(var N=E.next();!N.done;N=E.next())N=$h(N.value),N instanceof Dg?_.p5(N,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):V.push(N);rM(this).onOpportunityProcessedExternallyManaged(k,V,S,R)};
var x0C=function(k,E){E=$h(E);if(E instanceof Dg)_.p5(E,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var S=rM(k);Ba(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",E);S=_.n(S.adsControlFlowEventListeners);for(var R=S.next();!R.done;R=S.next())R=Yp(R.value,E),R.slotLifecycleStage!=="not_scheduled"&&yX(R.slot,R.slotLifecycleStage,"onSlotScheduled"),R.slotLifecycleStage="scheduled";k=rM(k);Ba(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",E);k=_.n(k.adsControlFlowEventListeners);
for(S=k.next();!S.done;S=k.next())S.value.onSlotEntered(E)}},LQ2=function(k,E){E=$h(E);
if(E instanceof Dg)_.p5(E,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var S=rM(k);Ba(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",E);S=_.n(S.adsControlFlowEventListeners);for(var R=S.next();!R.done;R=S.next())R.value.onSlotExited(E);k=rM(k);Ba(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",E);k=_.n(k.adsControlFlowEventListeners);for(S=k.next();!S.done;S=k.next())S.value.onSlotUnscheduled(E)}},jaC=function(k,E,S){E=$h(E);
S=uql(S);if(E instanceof Dg)_.p5(E,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(S instanceof f5)_.p5(S,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var R=rM(k);FI(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",E,S);R=_.n(R.adsControlFlowEventListeners);for(var V=R.next();!V.done;V=R.next())V.value.onLayoutScheduled(E,S);k=rM(k);FI(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",E,S);k=_.n(k.adsControlFlowEventListeners);
for(R=k.next();!R.done;R=k.next())TlC(R.value,E,S)}},uw=function(k,E,S){E=$h(E);
S=uql(S);if(E instanceof Dg)_.p5(E,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(S instanceof f5)_.p5(S,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var R=rM(k);FI(R.adEventLogger,gRI("normal"),E,S);R=_.n(R.adsControlFlowEventListeners);for(var V=R.next();!V.done;V=R.next())V.value.onLayoutExited(E,S,"normal");k=rM(k);k=_.n(k.adsControlFlowEventListeners);for(R=k.next();!R.done;R=k.next())BlC(R.value,E,S)}};_.xp=_.f(function(k){var E=_.dJ(k,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});k=Object.assign({},E);var S=E.data;E=E.customCommandResolver;var R=(delete k.data,delete k.customCommandResolver,k);k=_.e9({visibilityCallback:function(J,m){var a,T=(a=S().interaction)==null?void 0:a.onFirstVisible;J&&(T&&_.AV(T),R.setOnErrorHandler()&&xPb(m))},
showOption:_.m1});E=_.gd(function(){return S().interaction},E,function(){var J;
return(J=R.listenToTapEvent)==null?void 0:J.call(R)});
var V=_.n(_.yg(!1,void 0,"wAC0Lc")),N=V.next().value,h=V.next().value;V=_.RZ(function(J){var m;((m=R.setTouchEndHandler)==null?0:m.call(R))&&!N()&&(J.currentTarget.click(),h(!0),setTimeout(function(){h(!1)},100));
return!1});
return _.e("ad-image-view-model",{class:function(){var J,m=[((J=S().interaction)==null?0:J.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],a;((a=R.isGridViewEnabled)==null?0:a.call(R))&&m.push("ytwAdImageViewModelHostInGridView");return m.join(" ")},
el:_.Z0(k,E),"on:touchend":V},_.e("div",{class:"ytwAdImageViewModelHostImageContainer"},_.e(_.vM,{data:function(){var J;return{sources:S().imageSources,contentMode:(J=S().imageProperties)==null?void 0:J.contentMode}},
alt:function(){var J,m;return((J=S().interaction)==null?void 0:(m=J.accessibility)==null?void 0:m.label)||""},
targetHeight:R.targetHeight,targetWidth:R.targetWidth,preserveHeight:R.preserveHeight,preserveWidth:R.preserveWidth,useWidth:R.useWidth,style:function(){var J,m;return"vertical-align: bottom;"+(((J=S().background)==null?0:J.color)?"background-color:"+_.HT((m=S().background)==null?void 0:m.color)+";":"")},
className:function(){return R.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var J,m;return(m=(J=R.setDraggable)==null?void 0:J.call(R))!=null?m:void 0}})))},"jc");var D0Y=_.f(function(k){var E=k.data,S=k.listenToTapEvent,R=function(){};
return _.e("ad-button-hover-overlay-view-model",{"on:click":_.RZ(function(V){if(_.Y("enable_web_home_top_landscape_image_layout_legacy_click_command")){var N,h=(N=E().interaction)==null?void 0:N.onTap;h&&_.Me(V.currentTarget,"yt-navigate",{endpoint:_.Uk(h)})}}),
class:function(){var V;return((V=E().interaction)==null?0:V.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.Z0(_.e9({visibilityCallback:function(V){var N,h=(N=E().interaction)==null?void 0:N.onFirstVisible;V&&h&&_.AV(h)},
showOption:_.m1}),_.gd(function(){return E().interaction},void 0,function(){return!_.Y("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(S==null?void 0:S())}))},function(){return _.Y("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.e(_.cp,{data:function(){return E().button}},{adButtonViewModel:function(V){return _.e(_.aT,{data:V.data,
customCommandResolver:R})}}):_.e(_.cp,{data:function(){return E().button}},{adButtonViewModel:_.aT})}())},"kc");var vp;_.qi(_.f(function(k){var E=k.data;k=_.e9({visibilityCallback:function(J,m){if(J){var a;(J=(a=E().interaction)==null?void 0:a.onFirstVisible)&&_.AV(J);var T;if(a=(T=E().adLayoutData)==null?void 0:T.activeViewData)bK(m,a),_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zg(m)})}else _.Y("stop_av_measurement_on_detach")&&Zg(m)},
showOption:_.m1,hideOption:eY});var S=_.gd(function(){return E().interaction},void 0,function(){return!0}),R=_.n(_.yg(!1,void 0,"VNDDT")),V=R.next().value,N=R.next().value;
R=_.RZ(function(){N(!0)});
var h=_.RZ(function(){N(!1)});
return _.e("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.Z0(k,bqh,S),"on:mouseenter":R,"on:mouseleave":h},_.e("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.nU({"max-width":function(){return _.Y("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.e("div",{class:function(){var J;
a:{var m;switch((J=_.W(E().thumbnailImage,yfj))==null?void 0:(m=J.imageProperties)==null?void 0:m.renderingAspect){case "RENDERING_ASPECT_SQUARE":J="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":J="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}J=void 0}return J}},_.e(_.cp,{data:function(){return E().thumbnailImage}},{adImageViewModel:function(J){return _.e(_.xp,
{data:J.data,
listenToTapEvent:!0,setTouchEndHandler:_.Y("enable_top_landscape_image_experiment_dom_id_web")})}})),_.e("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.e(_.t,{cond:function(){var J,m,a;
return(J=_.W(E().thumbnailImage,yfj))==null?void 0:(m=J.imageProperties)==null?void 0:(a=m.overlayIcon)==null?void 0:a.iconImage},
then:function(J){return _.e(_.vM,{data:J,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.e("div",{class:function(){return V()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.e(_.cp,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(J){return _.e(D0Y,
{data:J.data,
listenToTapEvent:!0})}}))),_.e("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.e(_.cp,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(J){return _.e(Fl,{data:J.data,
listenToTapEvent:!0,setTouchEndHandler:_.Y("enable_top_landscape_image_experiment_dom_id_web")})}})))},"lc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;k=_.e9({visibilityCallback:function(J,m){if(J){var a;(J=(a=E().interaction)==null?void 0:a.onFirstVisible)&&_.AV(J);var T;if(a=(T=E().adLayoutData)==null?void 0:T.activeViewData)bK(m,a),_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zg(m)})}else _.Y("stop_av_measurement_on_detach")&&Zg(m)},
showOption:_.m1,hideOption:eY});var S=_.gb(_.XS),R=_.gd(function(){return E().interaction}),V={},N={},h={};
return _.e("square-image-layout-view-model",{class:_.SQ("ytwSquareImageLayoutViewModelHost",(V.ytwSquareImageLayoutViewModelHostColumn=S,V)),el:_.Z0(k,ZqI,R)},_.e("div",{class:_.SQ("ytwSquareImageLayoutViewModelHostImage",(N.ytwSquareImageLayoutViewModelHostColumnImage=S,N))},function(){return _.e(_.cp,{data:function(){return E().adImage}},{adImageViewModel:function(J){return _.e(_.xp,{data:J.data,
isGridViewEnabled:S,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.e("div",{class:_.SQ("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(h.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=S,h))},_.e(_.cp,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:Fl}),function(){return _.e(_.cp,{data:function(){return E().adButton}},{adButtonViewModel:function(J){var m={};
return _.e(_.aT,{data:J.data,className:_.SQ((m.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,m.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=S,m))})}})}()))},"mc"),"square-image-layout-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;var S=k.noBottomMargin;var R=k.typographyBump;k=_.e9({visibilityCallback:function(w,P){if(w){var B;(w=(B=E().interaction)==null?void 0:B.onFirstVisible)&&_.AV(w);var F;if(B=(F=E().adLayoutData)==null?void 0:F.activeViewData)bK(P,B),_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Zg(P)})}else _.Y("stop_av_measurement_on_detach")&&Zg(P)},
showOption:_.m1,hideOption:eY});var V=_.gd(function(){return E().interaction},void 0,function(){return _.Y("enable_web_home_top_landscape_image_layout_level_click")}),N=function(){return E().interaction};
N!==void 0&&N!==null||_.kr(Error("Uh"));var h=function(){var w,P,B;return(w=_.W(E().thumbnailImage,yfj))==null?void 0:(P=w.background)==null?void 0:(B=P.backgroundImageSource)==null?void 0:B.imageSources};
N=_.n(_.yg(!1,void 0,"NFjwje"));var J=N.next().value,m=N.next().value;N=_.RZ(function(){m(!0)});
var a=_.RZ(function(){m(!1)}),T=function(){return J()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.e("top-landscape-image-layout-view-model",{class:function(){var w;return((w=E().interaction)==null?0:w.onTap)&&_.Y("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.Z0(k,dPC,V),"on:mouseenter":N,"on:mouseleave":a},_.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.e(_.t,{cond:function(){return h()&&h().length>0},
then:function(){return _.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.nU({top:"0","background-image":function(){return"url("+String(h()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.e(_.t,{cond:function(){return!!E().adButtonHoverOverlay},
then:function(){return _.e("div",{class:T},_.e(_.cp,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:D0Y}))}}),_.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.e(_.cp,{data:function(){return E().thumbnailImage}},{adImageViewModel:function(w){return _.e(_.xp,{data:w.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.Y("enable_web_home_top_landscape_image_layout_level_click")})}})),_.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.e(_.vM,{data:{sources:[{clientResource:{imageName:_.Y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.e("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.e(_.cp,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(w){return _.e(Fl,{data:w.data,
noBottomMargin:function(){return S==null?void 0:S()},
listenToTapEvent:function(){return _.Y("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return R==null?void 0:R()}})}})))},"nc"),"top-landscape-image-layout-view-model",{props:{data:_.Nq,
noBottomMargin:_.Nq,typographyBump:_.Nq}});var $0Y=_.f(function(k){var E=k.data,S=_.e9({visibilityCallback:function(V){var N,h=(N=E().interaction)==null?void 0:N.onFirstVisible;V&&h&&_.AV(h)},
showOption:_.m1});k=_.gd(function(){return E().interaction},k.customCommandResolver);
var R={};return _.e("ad-text-image-view-model",{class:_.SQ("ytwAdTextImageViewModelHost",(R.ytwAdTextImageViewModelHostDarkBackground=function(){return E().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},R)),
el:_.Z0(S,k),"aria-label":function(){var V,N;return(V=E().interaction)==null?void 0:(N=V.accessibility)==null?void 0:N.label}},_.e("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.e(_.VB,{text:function(){return E().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.e(_.t,{cond:function(){return E().overlayIcon},
then:function(V){return _.e("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.e(_.vM,{data:V,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"oc");var fUY=_.f(function(k){var E=k.data;return _.e("feed-ad-sitelink-view-model",{class:function(){var S;return((S=E().interaction)==null?0:S.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.Z0(_.gd(function(){return E().interaction},k.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var S,R;return(S=E().interaction)==null?void 0:(R=S.accessibility)==null?void 0:R.label},
role:"link",tabindex:0},_.e(_.VB,{text:function(){return E().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"pc");var va2=_.f(function(k){var E=k.data;k={};return _.e("feed-ad-sitelinks-carousel-view-model",{el:_.Z0(_.e9({visibilityCallback:function(S){var R,V=(R=E().interaction)==null?void 0:R.onFirstVisible;S&&V&&_.AV(V)},
showOption:_.m1})),class:_.SQ("ytwFeedAdSitelinksCarouselViewModelHost",(k.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return E().style==="FEED_AD_SITELINKS_STYLE_NONE"},k))},_.e(_.cp,{data:function(){return E().sitelinks}},{feedAdSitelinkViewModel:fUY}))},"qc");_.qi(_.f(function(k){var E=k.data;k=_.e9({visibilityCallback:function(h,J){if(h){var m;(h=(m=E().interaction)==null?void 0:m.onFirstVisible)&&_.AV(h);var a;(m=(a=E().adLayoutData)==null?void 0:a.activeViewData)&&bK(J,m)}},
showOption:_.m1});var S=_.n(_.yg(!1,void 0,"BzPhl")),R=S.next().value,V=S.next().value;S=_.RZ(function(){V(!0)});
var N=_.RZ(function(){V(!1)});
return _.e("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.Z0(k),"on:mouseenter":S,"on:mouseleave":N},_.e("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.e("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.e(_.cp,{data:function(){return E().textImage}},{adTextImageViewModel:$0Y})),_.e("div",{class:function(){return R()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.e(_.cp,{data:function(){return E().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(h){return _.e(D0Y,{data:h.data,
listenToTapEvent:!0})}}))),_.e("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.e(_.cp,{data:function(){return E().feedAdMetadata}},{feedAdMetadataViewModel:function(h){return _.e(Fl,{data:h.data,
listenToTapEvent:!0})}}),_.e(_.cp,{data:function(){return E().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:va2})))},"rc"),"text-image-no-button-layout-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;var S=k.typographyBump;return _.e("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.Z0(_.e9({visibilityCallback:function(R,V){if(R){var N;(R=(N=E().interaction)==null?void 0:N.onFirstVisible)&&_.AV(R);var h;(N=(h=E().adLayoutData)==null?void 0:h.activeViewData)&&bK(V,N)}},
showOption:_.m1,hideOption:eY}))},_.e("div",null,_.e(_.cp,{data:function(){return E().videoLockup}},{lockupViewModel:function(R){return _.e(_.y5,{data:R.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:S})}})))},"sc"),"video-display-button-group-layout-view-model",{props:{data:_.Nq,
noBottomMargin:_.Nq,typographyBump:_.Nq}});_.qi(_.f(function(k){var E=k.data;var S=k.className;var R=k.typographyBump;return _.e("video-display-compact-button-group-layout-view-model",{el:_.Z0(_.e9({visibilityCallback:function(V,N){if(V){var h;(V=(h=E().interaction)==null?void 0:h.onFirstVisible)&&_.AV(V);var J;(h=(J=E().adLayoutData)==null?void 0:J.activeViewData)&&bK(N,h)}},
showOption:_.m1})),class:_.SQ("videoDisplayCompactButtonGroupLayoutViewModelHost",S)},_.e(_.cp,{data:function(){return E().videoLockup}},{lockupViewModel:function(V){return _.e(_.y5,{data:V.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:R})}}))},"tc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Nq,
className:_.Nq,typographyBump:_.Nq}});_.qi(_.f(function(k){var E=k.data;var S=k.className;var R=k.typographyBump;return _.e("video-display-compact-buttoned-layout-view-model",{el:_.Z0(_.e9({visibilityCallback:function(V,N){if(V){var h;(V=(h=E().interaction)==null?void 0:h.onFirstVisible)&&_.AV(V);var J;(h=(J=E().adLayoutData)==null?void 0:J.activeViewData)&&bK(N,h)}},
showOption:_.m1})),class:_.SQ("videoDisplayCompactButtonedLayoutViewModelHost",S)},_.e(_.cp,{data:function(){return E().videoLockup}},{lockupViewModel:function(V){return _.e(_.y5,{data:V.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:R})}}))},"uc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.Nq,
className:_.Nq,typographyBump:_.Nq}});_.qi(_.f(function(k){var E=k.data;var S=k.className;var R=k.typographyBump;var V=function(){return E().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},N=_.gb(_.XS);
k=_.e9({visibilityCallback:function(a,T){if(a){var w=E();a=w.adLayoutData;var P;(w=(P=w.interaction)==null?void 0:P.onFirstVisible)&&_.AV(w);(P=a==null?void 0:a.activeViewData)&&bK(T,P)}},
showOption:_.m1});var h=_.HX(function(){return{containerType:V()&&N()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),J=_.HX(function(){return V()&&N()?"":V()?"168px":"50%"},void 0,"qNDzkb"),m=_.HX(function(){return V()&&N()?9999:void 0},void 0,"Ikn8Kb");
return _.e("video-display-compact-layout-view-model",{el:_.Z0(k),class:_.SQ("videoDisplayCompactLayoutViewModelHost",S)},_.e(_.cp,{data:function(){return E().videoLockup}},{lockupViewModel:function(a){return _.e(_.y5,{data:a.data,
containerLayoutConfig:h,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:J,thumbnailTargetWidth:m,typographyBump:R})}}))},"vc"),"video-display-compact-layout-view-model",{props:{data:_.Nq,
className:_.Nq,typographyBump:_.Nq}});_.qi(_.f(function(k){var E=k.data;var S=k.typographyBump;return _.e("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.Z0(_.e9({visibilityCallback:function(R,V){if(R){var N;(R=(N=E().interaction)==null?void 0:N.onFirstVisible)&&_.AV(R);var h;(N=(h=E().adLayoutData)==null?void 0:h.activeViewData)&&bK(V,N)}},
showOption:_.m1,hideOption:eY}))},_.e("div",null,_.e(_.cp,{data:function(){return E().videoLockup}},{lockupViewModel:function(R){return _.e(_.y5,{data:R.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:S})}})))},"wc"),"video-display-full-layout-view-model",{props:{data:_.Nq,
noBottomMargin:_.Nq,typographyBump:_.Nq}});_.bad=_.f(function(k){var E=k.data;k=_.VH("ad-card-badge-view-model");return _.e("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:k},_.e(_.t,{cond:function(){return E().imageBadge},
then:function(S){return _.e(_.vM,{data:S,alt:""})}}))},"xc");var ZaY=_.f(function(k){var E=k.data;var S=k.customCommandResolver;return _.e("carousel-ad-card-image-view-model",{class:function(){var R;return((R=E().interaction)==null?0:R.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.Z0(_.e9({visibilityCallback:function(R){var V,N=(V=E().interaction)==null?void 0:V.onFirstVisible;R&&N&&_.AV(N)},
showOption:_.m1}),_.gd(function(){return E().interaction},S)),
"aria-label":function(){var R,V;return(R=E().interaction)==null?void 0:(V=R.accessibility)==null?void 0:V.label}},_.e(_.cp,{data:function(){return E().adImage}},{adImageViewModel:function(R){return _.e(_.xp,{data:R.data,
customCommandResolver:S})}}),_.e("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.e(_.cp,{data:function(){return E().badge}},{adCardBadgeViewModel:_.bad})),_.e(_.B5,{model:{color:4}}))},"yc");var d0Y=_.f(function(k){var E=_.n(_.yg(0,void 0,"JJ0QQc")),S=E.next().value;E.next();var R=E.next().value,V=_.n(_.yg(!1,void 0,"f6YICe"));E=V.next().value;var N=V.next().value,h;_.bI(function(){clearTimeout(h)});
V=_.RZ(function(){var a;((a=k.animate)==null?0:a.call(k))?(N(!0),h=setTimeout(function(){N(!1);J()},200)):J();
return!1});
var J=function(){R(function(a){return(a+k.numShownItems())%k.data().length})},m={};
return _.e("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.e("div",{class:_.SQ("ytwHorizontalCarouselCarouselWrapper")},_.e("div",{class:_.SQ("ytwHorizontalCarouselCarouselInnerWrapper",(m.ytwHorizontalCarouselAnimating=E,m))},_.e(_.jw,{each:k.data,keyBy:"INDEX"},function(a,T){return _.e("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.nU({"flex-basis":function(){return"calc((100% - (8px * "+(k.numShownItems()-1)+")) / "+k.numShownItems()+")"},
order:function(){var w=T-S();w<0&&(w+=k.data().length);return w}})},k.children(a,T))}))),_.e("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":V},k.nextButton()))},"zc");var saC=_.f(function(k){var E=k.data;var S=k.customCommandResolver;var R=k.expansive;return _.e("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.Z0(_.e9({visibilityCallback:function(V){var N,h=(N=E().interaction)==null?void 0:N.onFirstVisible;V&&h&&_.AV(h)},
showOption:_.m1}))},_.e(d0Y,{data:function(){var V;return((V=E())==null?void 0:V.carouselAdCards)||[]},
nextButton:function(){return _.e(_.cp,{data:function(){return E().nextButton}},{buttonViewModel:function(V){var N=V.data;
return _.e(_.yB,{data:function(){return(R==null?0:R())?Object.assign({},N(),{style:"mono"}):N()},
className:_.Y("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(V){return _.e(_.cp,{data:V},{carouselAdCardImageViewModel:function(N){return _.e(ZaY,{data:N.data,customCommandResolver:S})}})}))},"Ac");var lUY=_.f(function(k){var E=k.data;var S=k.customCommandResolver;var R=k.className;var V=k.buttonClassName;var N=k.animationEntityKey;var h=k.expansive;return _.e("carousel-button-view-model",{class:_.SQ("ytwCarouselButtonViewModelHost",R)},_.e(_.cp,{data:function(){return E().carousel}},{carouselAdCardCollectionViewModel:function(J){return _.e(saC,{data:J.data,
customCommandResolver:S,expansive:h})}}),_.e(_.cp,{data:function(){return E().button}},{adButtonViewModel:function(J){var m=J.data;
return _.e(_.aT,{data:function(){return(h==null?0:h())?Object.assign({},m(),{style:"AD_BUTTON_STYLE_TONAL"}):m()},
className:V,customCommandResolver:S,animationEntityKey:N})}}))},"Bc");_.MsC=_.f(function(k){var E=k.data;k=k.className;var S=_.VH("pivot-button-view-model");_.b$(function(){var R;((R=E())==null?0:R.backgroundColor)&&S.value.setAttribute("data-background-color",String(E().backgroundColor))});
return _.e("pivot-button-view-model",{el:S,class:_.SQ("ytwPivotButtonViewModelHost",k)},_.e(_.P5,{command:function(){var R=E();R=R.onClickCommand?_.Uk(R.onClickCommand):R.contentDescription?_.d8(R.contentDescription):void 0;return R},
ariaLabel:function(){return E().contentDescription}},_.e(_.t,{cond:function(){return E().thumbnail},
then:function(R){return _.e(_.vM,{data:R,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.e(_.t,{cond:function(){return E().icon},
then:function(R){return _.e(_.i_,{icon:function(){return R().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cc");_.qep=_.f(function(k){var E=k.data;var S=k.buttonShapeOverrideables;return _.e("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.e(_.cp,{data:function(){return E().buttonViewModels}},{buttonViewModel:function(R){return _.e(_.yB,{data:R.data,
buttonOverrides:S})},
likeButtonViewModel:function(R){return _.e(_.q1,{data:R.data,buttonShapeOverrideables:S})},
dislikeButtonViewModel:function(R){return _.e(_.M1,{data:R.data,buttonShapeOverrideables:S})},
toggleButtonViewModel:function(R){return _.e(_.bL,{data:R.data,buttonShapeOverrides:S})}}))},"Dc");var znj=_.f(function(k){var E=k.avatar;var S=k.headline;var R=k.badge;var V=k.description;var N=k.expansive;k={};return _.e("yt-ad-metadata-shape",{class:_.SQ("ytAdMetadataShapeHost",(k.ytAdMetadataShapeHostLarge=N,k))},_.e("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.e(_.t,{cond:E,then:function(h){return _.e(_.v5p,{data:function(){return(N==null?0:N())?Object.assign({},h(),{size:"AD_AVATAR_SIZE_M"}):h()}})}}),_.e("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.e(_.VB,{text:S,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.e(_.t,{cond:R,then:function(h){return _.e(_.Y_,{data:function(){return(N==null?0:N())?Object.assign({},h(),{style:"AD_BADGE_STYLE_STARK"}):h()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.e("h2",{class:"ytAdMetadataShapeHostDescription"},_.e(_.VB,{text:V,
linkInheritColor:!0,isHeadline:function(){return N==null?void 0:N()}})))},"Ec");var Qa4=_.f(function(k){var E=k.data;var S=k.onShow;var R=k.expansive;k=_.gd(function(){return E().interaction});
_.b$(function(){var N,h=(N=E().animatedRenderingConfig)==null?void 0:N.delayedSecondsToVisible;if(h){var J=setTimeout(S,h*1E3);_.bI(function(){clearTimeout(J)})}});
var V={};return _.e("reels-ad-card-buttoned-view-model",{class:_.SQ(function(){var N;return((N=E().interaction)==null?0:N.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(V.ytwReelsAdCardButtonedViewModelHostExpansive=R,V)),
el:_.Z0(k)},_.e(znj,{avatar:function(){return _.W(E().avatar,Y0T)},
headline:function(){return E().headline},
badge:function(){return _.W(E().adBadge,Wr8)},
description:function(){return E().description},
expansive:R}),_.e(_.cp,{data:function(){return E().ctaButton}},{adButtonViewModel:function(N){var h=N.data;
return _.e(_.aT,{data:function(){return(R==null?0:R())?Object.assign({},h(),{style:"AD_BUTTON_STYLE_FILLED"}):h()}})}}))},"Fc");var Oaj=_.f(function(k){var E=k.data;k=k.expansive;var S=_.Y("web_ad_metadata_clickable")?_.gd(function(){return E().interaction},void 0,function(){return _.Y("web_ad_metadata_clickable")}):void 0,R={};
R=_.wd("ytwReelsAdMetadataViewModelHost",(R.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.Y("web_ad_metadata_clickable"),R));return _.e("reels-ad-metadata-view-model",{class:R,el:_.Z0(S)},_.e(znj,{avatar:function(){return _.W(E().avatar,Y0T)},
headline:function(){return E().headline},
badge:function(){return _.W(E().adBadge,Wr8)},
description:function(){return E().description},
expansive:k}))},"Gc");var G88={iconPosition:"icon-with-label",size:"L"},CFz=_.f(function(k){var E=k.data;var S=k.overlayDensity;var R=k.extractOverlay;var V=k.extractActionBar;k=_.VH("reels-player-overlay-layout-view-model");var N=_.Zk(S,0),h=function(){var B;return(B=E().reelsAdCardButtonedEntityKey)!=null?B:""},J=function(){return h()+"/ad_button"},m=_.iK(AAI,h),a=function(){var B,F;
return(F=(B=m())==null?void 0:B.value)!=null?F:!1},T=_.gb(slb),w=function(){var B;
return Object.assign({},G88,(T()||!((B=V==null?void 0:V())!=null&&B))&&{style:"overlay-dark"})};
S={};var P={};return _.e("reels-player-overlay-layout-view-model",{class:_.SQ("ytwReelsPlayerOverlayLayoutViewModelHost",(S.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!E().extension},S.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},S.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return N()===1&&!(R==null?0:R())},S.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var B;
return(B=R==null?void 0:R())!=null?B:!1},S.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var B;
return(B=V==null?void 0:V())!=null?B:!1},S)),
"overlay-density":function(){return String(N())},
el:k},_.e("div",{class:_.SQ("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(P.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},P))},_.e("div",{"aria-hidden":function(){return a()},
class:_.SQ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return a()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.nU({"transition-duration":function(){return zXm(E())}})},_.e(_.cp,{data:function(){return E().adMetadata}},{reelsAdMetadataViewModel:function(B){return _.e(Oaj,{data:B.data,
expansive:function(){return N()===1}})}}),_.e(_.t,{cond:function(){return E().extension},
then:function(B){return _.e("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.e(_.cp,{data:B},{adButtonViewModel:function(F){return _.e(_.aT,{data:F.data,animationEntityKey:J,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(F){return _.e(lUY,{data:F.data,animationEntityKey:J,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return N()===1}})}}))}})),_.e("div",{"aria-hidden":function(){return!a()},
class:_.SQ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return a()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.nU({"transition-duration":function(){return zXm(E())}})},_.e(_.cp,{data:function(){return E().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(B){return _.e(Qa4,{data:B.data,
onShow:function(){_.bl(_.mj("booleanEntity",h(),{key:h(),value:!0}))},
expansive:function(){return N()===1}})}}))),_.e("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.e(_.cp,{data:function(){return E().actions}},{reelActionBarViewModel:function(B){return _.e(_.qep,{data:B.data,
buttonShapeOverrideables:w})}}),_.e(_.cp,{data:function(){return E().menu}},{buttonViewModel:function(B){return _.e(_.yB,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},w(),{type:"tonal"})}})}}),_.e(_.cp,{data:function(){return E().pivotButton}},{pivotButtonViewModel:function(B){return _.e(_.MsC,{data:B.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hc");_.qi(CFz,"reels-player-overlay-layout-view-model",{props:{data:_.Nq,overlayDensity:_.Nq,extractOverlay:_.Nq,extractActionBar:_.Nq}});var LQ=function(){var k=_.p.apply(this,arguments)||this;k.noBottomMargin=!1;k.overlayDensity=0;k.extractOverlay=!1;k.extractActionBar=!1;return k};
_.y(LQ,_.p);_.I=LQ.prototype;
_.I.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:_.Y("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]]"}}}}}};
_.I.ready=function(){var k=this;iAj(function(){k.isAttached&&L5(k.JSC$15697_storedAdSlotMetadata,k.JSC$15697_storedAdLayoutMetadata,k.adSlotMetadata,k.adLayoutMetadata)&&uw(gM(),k.JSC$15697_storedAdSlotMetadata,k.JSC$15697_storedAdLayoutMetadata)})};
_.I.attached=function(){L5(this.JSC$15697_storedAdSlotMetadata,this.JSC$15697_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&jaC(gM(),this.JSC$15697_storedAdSlotMetadata,this.JSC$15697_storedAdLayoutMetadata)};
_.I.detached=function(){L5(this.JSC$15697_storedAdSlotMetadata,this.JSC$15697_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&uw(gM(),this.JSC$15697_storedAdSlotMetadata,this.JSC$15697_storedAdLayoutMetadata)};
_.I.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.I.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15697_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15697_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15697_storedAdLayoutMetadata!==void 0&&this.JSC$15697_storedAdSlotMetadata!==void 0&&uw(gM(),this.JSC$15697_storedAdSlotMetadata,this.JSC$15697_storedAdLayoutMetadata),jaC(gM(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15697_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15697_storedAdSlotMetadata=this.adSlotMetadata)};
_.mt.Object.defineProperties(LQ.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.adLayoutMetadata}}});
LQ.prototype.onAdMetadataChanged=LQ.prototype.onAdMetadataChanged;LQ.prototype.onTypographyBumpChanged=LQ.prototype.onTypographyBumpChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],LQ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],LQ.prototype,"rendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],LQ.prototype,"ytComponentBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],LQ.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],LQ.prototype,"noBottomMargin",void 0);_.Z([_.H(),_.l("design:type",Object)],LQ.prototype,"overlayDensity",void 0);_.Z([_.H(),_.l("design:type",Object)],LQ.prototype,"extractOverlay",void 0);_.Z([_.H(),_.l("design:type",Object)],LQ.prototype,"extractActionBar",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],LQ.prototype,"typographyBump",void 0);
_.Z([_.U("data.adLayoutMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],LQ.prototype,"adLayoutMetadata",null);_.Z([_.H(),_.l("design:type",Object)],LQ.prototype,"adSlotMetadata",void 0);_.Z([_.JO("ytd-video-display-full-buttoned-and-button-group-renderer"),_.l("design:type",HTMLElement)],LQ.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.Z([_.il("typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LQ.prototype,"onTypographyBumpChanged",null);_.Z([_.il("adLayoutMetadata","adSlotMetadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LQ.prototype,"onAdMetadataChanged",null);_.Z([_.D({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],LQ);
_.b(LQ,"ytd-in-feed-ad-layout-renderer",function(){if(fN2!==void 0)return fN2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return fN2=k},
{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var kSd;var EC4;_.qi(_.Y_,"ad-badge-view-model",{props:{data:_.Nq,hasDot:_.Nq,customCommandResolver:_.sk,adRenderingContextType:_.sk,usedInMasthead:_.sk}});_.qi(_.aT,"ad-button-view-model",{props:{data:_.Nq,customCommandResolver:_.sk,className:_.sk,delayedClassName:_.sk,animationEntityKey:_.sk,isCompactWidth:_.sk,isContentWidth:_.sk}});var j4=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return k};
_.y(j4,_.p);_.I=j4.prototype;_.I.computeHasLiveDescription=function(k){return!(k==null||!k.liveDescription)};
_.I.computeHasByline=function(k){return!(k==null||!k.byline)};
_.I.computeUsesAdButtonViewModel=function(k){return!!_.W(k==null?void 0:k.cta,FrA)};
_.I.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"}}}}}};
_.I.onYtToggleButton=function(k){var E,S=(E=this.data)==null?void 0:E.videoReminderEntityKey;S&&this.ytdReduxBehavior.dispatch(_.mj("upcomingEventReminderStateEntity",S,{key:S,state:k.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.I.attached=function(){this.updateChannelBanner()};
_.I.dataChanged=function(){this.updateChannelBanner()};
_.I.videoReminderStateChanged=function(){var k;this.videoReminderState&&_.W((k=this.data)==null?void 0:k.cta,_.s6)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.I.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var k=_.zT(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);k&&(k.startsWith("//")&&(k="https:"+k),this.hostElement.classList.add("channel-banner"),_.VO(this.hostElement,{"--ytvmh-channel-banner":"url("+k+")"}))}else _.Y("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.I.onPlayerReady=function(){this.onIronResize()};
_.I.maybeFlushDebouncer=function(){_.Y("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(k){var E;k=(E=k.getElementsByTagName("yt-attributed-string"))==null?void 0:E[0];gG1(k==null?void 0:k.polymerController)})};
_.I.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var k=_.Cc(this.hostElement).querySelector("#live-description"),E;k&&((E=this.data)==null?0:E.shortLiveDescription)&&k.clientWidth<k.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
j4.prototype.onIronResize=j4.prototype.onIronResize;j4.prototype.videoReminderStateChanged=j4.prototype.videoReminderStateChanged;j4.prototype.dataChanged=j4.prototype.dataChanged;j4.prototype.onYtToggleButton=j4.prototype.onYtToggleButton;_.Z([_.g(_.KS),_.l("design:type",Object)],j4.prototype,"ironResizableBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],j4.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],j4.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],j4.prototype,"data",void 0);_.Z([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:SGR}),_.l("design:type",Object)],j4.prototype,"videoReminderState",void 0);
_.Z([_.H({reflectToAttribute:!0,value:_.Y("web_modern_buttons")}),_.l("design:type",Boolean)],j4.prototype,"rounded",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.l("design:type",Boolean)],j4.prototype,"hasLiveDescription",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.l("design:type",Boolean)],j4.prototype,"hasByline",void 0);
_.Z([_.H({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.l("design:type",String)],j4.prototype,"adRenderingContextType",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],j4.prototype,"isMasthead",void 0);_.Z([_.H({computed:"computeUsesAdButtonViewModel(data)"}),_.l("design:type",Boolean)],j4.prototype,"usesAdButtonViewModel",void 0);
_.Z([_.H({reflectToAttribute:!0,value:_.Y("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.l("design:type",Boolean)],j4.prototype,"resizableAdBannerSafariFix",void 0);_.Z([_.cu("yt-formatted-string"),_.l("design:type",Array)],j4.prototype,"formattedStrings",void 0);_.Z([_.JO("#cta-button"),_.l("design:type",HTMLElement)],j4.prototype,"ctaButton",void 0);
_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],j4.prototype,"onYtToggleButton",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j4.prototype,"dataChanged",null);_.Z([_.il("videoReminderState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j4.prototype,"videoReminderStateChanged",null);
_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j4.prototype,"onIronResize",null);_.Z([_.D({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],j4);
_.b(j4,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(EC4!==void 0)return EC4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return EC4=k},{mode:1});var Su4;var D5=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};k.isLocked=!1;return k};
_.y(D5,_.p);_.I=D5.prototype;_.I.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.I.onExpandedChanged=function(){this.expanded&&_.zR(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.I.onMouseOver=function(){this.maybeExpand()};
_.I.onTap=function(){this.maybeExpand()};
_.I.onExpandableTileExpanding=function(k){k!==this&&(this.expanded=!1)};
_.I.onExpandableTileLockAndCollapse=function(k){this.isLocked=!0;k!==this&&(this.expanded=!1)};
_.I.onExpandableTileUnlock=function(){this.isLocked=!1};
D5.prototype.onTap=D5.prototype.onTap;D5.prototype.onMouseOver=D5.prototype.onMouseOver;D5.prototype.onExpandedChanged=D5.prototype.onExpandedChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],D5.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],D5.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],D5.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],D5.prototype,"expanded",void 0);_.Z([_.ac("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D5.prototype,"onExpandedChanged",null);_.Z([_.nv("mouseover"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D5.prototype,"onMouseOver",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D5.prototype,"onTap",null);
_.Z([_.D({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],D5);
_.b(D5,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Su4!==void 0)return Su4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Su4=k},{mode:1});var RlC;var $p=function(){var k=_.p.apply(this,arguments)||this;k.buttonOverrides={style:"overlay"};k.useYtdPlayer=_.Y("use_ytd_player_for_desktop_masthead");k.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};k.playbackFinished=!1;k.JSC$15711_playerManager=null;k.JSC$15711_mastheadCounter=new $34;return k};
_.y($p,_.p);_.I=$p.prototype;_.I.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"}}}};
_.I.created=function(){this.JSC$15711_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15711_playerManager=new D2)};
_.I.ready=function(){var k=this;this.JSC$15711_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var E=_.Cc(this.hostElement).querySelector("#player");this.useYtdPlayer?E.style.display="none":(this.ytdPlayer.style.display="none",EUd(this.JSC$15711_playerManager,E,function(){k.onPlaybackEnded()}),_.Cc(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var S;
((S=k.data)==null?0:S.navigationEndpoint)&&_.Me(k.hostElement,"yt-navigate",{endpoint:k.data.navigationEndpoint})}))};
_.I.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15711_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.I.attached=function(){var k=this;_.xT(function(){k.maybePlayVideo()})};
_.I.maybePlayVideo=function(){var k=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$15711_playerManager.playVideo(),this.getPlayerPromise().then(function(){k.JSC$15711_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.I.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15711_playerManager.stopVideo()};
_.I.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var k,E={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((k=this.data.playbackStartMs)!=null?k:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(E);this.setupYtdPlayer()}else RgT(this.JSC$15711_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(S1A(this.JSC$15711_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.I.getPlayerPromise=function(){return this.JSC$15711_playerManager.getPlayerPromise()};
_.I.onYtToggleButton=function(k){this.useYtdPlayer?this.toggleMute(k.detail.toggled):k.detail.toggled?this.JSC$15711_playerManager.mute():this.JSC$15711_playerManager.unMute()};
_.I.onYtNavigate=function(k){var E=BMe(k.detail.endpoint),S=YW1(this.data.clickthroughReportingData);E&&S&&(k.detail.endpoint.watchEndpoint?k.detail.tempData=S:_.vi(E,S,30))};
_.I.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.I.onExpandedChanged=function(){this.expanded?(_.zR(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.I.onMouseOver=function(){this.maybeExpand()};
_.I.onTap=function(){this.maybeExpand()};
_.I.onExpandableTileExpanding=function(k){k!==this&&(this.stopVideo(),this.expanded=!1)};
_.I.onExpandableTileLockAndCollapse=function(k){k!==this&&(this.isLocked=!0,this.expanded=!1)};
_.I.onExpandableTileUnlock=function(){this.isLocked=!1};
_.I.lockAndCollapseExpandableTiles=function(){_.qe(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.I.unlockExpandableTiles=function(){_.qe(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.I.setupYtdPlayer=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return S.yield(k.ytdPlayer.getPlayerPromise(),2);E=S.yieldResult;E.addEventListener("onStateChange",function(R){k.onPlayerStateChange(R)});
E.addEventListener("onCueRangeExit",function(R){k.onCueRangeExit(R)});
_.KR(S)})};
_.I.onPlayerStateChange=function(k){if(k===1&&(k=this.ytdPlayer.getPlayer())){var E=k.getCurrentTime(),S,R,V=E+((R=(S=this.data)==null?void 0:S.playbackDurationMs)!=null?R:0)/1E3;k.addCueRange("playback",E,V);this.JSC$15711_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.I.onCueRangeExit=function(k){k==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.I.toggleMute=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(E.ytdPlayer.getPlayerPromise(),2);S=R.yieldResult;k?S.mute():S.unMute();_.KR(R)})};
$p.prototype.onTap=$p.prototype.onTap;$p.prototype.onMouseOver=$p.prototype.onMouseOver;$p.prototype.onExpandedChanged=$p.prototype.onExpandedChanged;$p.prototype.onYtNavigate=$p.prototype.onYtNavigate;$p.prototype.onYtToggleButton=$p.prototype.onYtToggleButton;$p.prototype.dataChanged=$p.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],$p.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],$p.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$p.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$p.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],$p.prototype,"expanded",void 0);_.Z([_.H(),_.l("design:type",Object)],$p.prototype,"buttonOverrides",void 0);
_.Z([_.H(),_.l("design:type",Object)],$p.prototype,"useYtdPlayer",void 0);_.Z([_.JO("#ytd-player"),_.l("design:type",Object)],$p.prototype,"ytdPlayer",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$p.prototype,"dataChanged",null);_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$p.prototype,"onYtToggleButton",null);
_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$p.prototype,"onYtNavigate",null);_.Z([_.ac("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$p.prototype,"onExpandedChanged",null);_.Z([_.nv("mouseover"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$p.prototype,"onMouseOver",null);
_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$p.prototype,"onTap",null);_.Z([_.D({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],$p);
_.b($p,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(RlC!==void 0)return RlC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return RlC=k},{mode:1});var VAd;var fQ=function(){return _.p.apply(this,arguments)||this};
_.y(fQ,_.p);fQ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
fQ.prototype.onShow=function(){var k=_.Cc(this.hostElement).querySelector("#live-description"),E;k&&((E=this.data)==null?0:E.shortLiveDescription)&&k.clientWidth<k.scrollWidth&&this.hostElement.classList.add("short-live-description")};
fQ.prototype.onYtToggleButton=function(k){var E,S=(E=this.data)==null?void 0:E.videoReminderEntityKey;S&&this.ytdReduxBehavior.dispatch(_.mj("upcomingEventReminderStateEntity",S,{key:S,state:k.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
fQ.prototype.videoReminderStateChanged=function(){var k;this.videoReminderState&&_.W((k=this.data)==null?void 0:k.cta,_.s6)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
fQ.prototype.videoReminderStateChanged=fQ.prototype.videoReminderStateChanged;fQ.prototype.onYtToggleButton=fQ.prototype.onYtToggleButton;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],fQ.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],fQ.prototype,"data",void 0);
_.Z([_.H({selectorArgs:["data.videoReminderEntityKey"],selector:SGR}),_.l("design:type",Object)],fQ.prototype,"videoReminderState",void 0);_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],fQ.prototype,"onYtToggleButton",null);_.Z([_.il("videoReminderState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fQ.prototype,"videoReminderStateChanged",null);
_.Z([_.D({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],fQ);
_.b(fQ,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(VAd!==void 0)return VAd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return VAd=k},{mode:_.GN("kevlar_poly_si_batch_j065")?1:2});var NfC;var va=function(){var k=_.p.apply(this,arguments)||this;k.useYtdPlayer=_.Y("use_ytd_player_for_desktop_masthead");k.buttonOverrides={style:"overlay"};k.JSC$15719_playerManager=null;k.JSC$15719_mastheadCounter=new $34;k.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return k};
_.y(va,_.p);_.I=va.prototype;_.I.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"}}}};
_.I.created=function(){this.JSC$15719_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15719_playerManager=new D2)};
_.I.ready=function(){var k=this;this.JSC$15719_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var E;(E=this.embeddedPlayer)==null||E.remove()}else{var S;(S=this.ytdPlayer)==null||S.remove();EUd(this.JSC$15719_playerManager,this.embeddedPlayer,function(){k.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){k.data&&k.data.navigationEndpoint&&_.Me(k.hostElement,"yt-navigate",{endpoint:k.data.navigationEndpoint})})}};
_.I.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15719_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.I.dataChanged=function(){var k=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var E=!this.data.disableAutoPlayback,S,R={autoplay:E,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((S=this.data.playbackStartMs)!=null?S:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(E?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(R);this.setupYtdPlayer()}else RgT(this.JSC$15719_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(S1A(this.JSC$15719_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15719_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.qe(k.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");k.JSC$15719_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.I.getPlayerPromise=function(){return this.JSC$15719_playerManager.getPlayerPromise()};
_.I.onYtToggleButton=function(k){this.useYtdPlayer?this.toggleMute(k.detail.toggled):k.detail.toggled?this.JSC$15719_playerManager.mute():this.JSC$15719_playerManager.unMute()};
_.I.onYtNavigate=function(k){var E=BMe(k.detail.endpoint),S=YW1(this.data.clickthroughReportingData);E&&S&&(k.detail.endpoint.watchEndpoint?k.detail.tempData=S:_.vi(E,S,30))};
_.I.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15719_playerManager.stopVideo()};
_.I.setupYtdPlayer=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return S.yield(k.ytdPlayer.getPlayerPromise(),2);E=S.yieldResult;E.addEventListener("onStateChange",function(R){k.onPlayerStateChange(R)});
E.addEventListener("onCueRangeExit",function(R){k.onCueRangeExit(R)});
_.KR(S)})};
_.I.onPlayerStateChange=function(k){if(k===1&&(k=this.ytdPlayer.getPlayer())){var E=k.getCurrentTime(),S,R,V=E+((R=(S=this.data)==null?void 0:S.playbackDurationMs)!=null?R:0)/1E3;k.addCueRange("playback",E,V);_.qe(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15719_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.I.onCueRangeExit=function(k){k==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.I.toggleMute=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(E.ytdPlayer.getPlayerPromise(),2);S=R.yieldResult;k?S.mute():S.unMute();_.KR(R)})};
_.mt.Object.defineProperties(va.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var k,E;if(!((k=this.data)==null?0:(E=k.accessibilityData)==null?0:E.label))return"Ad primary link";var S,R;return _.Vi("AD_TITLE",{title:(S=this.data)==null?void 0:(R=S.accessibilityData)==null?void 0:R.label})}}});
va.prototype.onYtMastheadHidden=va.prototype.onYtMastheadHidden;va.prototype.onYtNavigate=va.prototype.onYtNavigate;va.prototype.onYtToggleButton=va.prototype.onYtToggleButton;va.prototype.dataChanged=va.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],va.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],va.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],va.prototype,"useYtdPlayer",void 0);_.Z([_.JO("ytd-toggle-button-renderer"),_.l("design:type",Object)],va.prototype,"muteButton",void 0);_.Z([_.H(),_.l("design:type",Object)],va.prototype,"buttonOverrides",void 0);
_.Z([_.U("data.accessibilityData.label"),_.l("design:type",String),_.l("design:paramtypes",[])],va.prototype,"titleAriaLabel",null);_.Z([_.JO("#replay-button"),_.l("design:type",Object)],va.prototype,"replayButton",void 0);_.Z([_.JO("#player-container"),_.l("design:type",Object)],va.prototype,"playerContainer",void 0);_.Z([_.JO("#player"),_.l("design:type",Object)],va.prototype,"embeddedPlayer",void 0);_.Z([_.JO("#ytd-player"),_.l("design:type",Object)],va.prototype,"ytdPlayer",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],va.prototype,"dataChanged",null);_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],va.prototype,"onYtToggleButton",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],va.prototype,"onYtNavigate",null);
_.Z([_.nv("yt-masthead-hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],va.prototype,"onYtMastheadHidden",null);_.Z([_.D({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],va);
_.b(va,"ytd-video-masthead-ad-primary-video-renderer",function(){if(NfC!==void 0)return NfC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return NfC=k},{mode:2});var IP2;var bw=function(){var k=_.p.apply(this,arguments)||this;k.collapsed=!1;k.impressionResolver=_.LU();k.JSC$15723_activeViewMeasurementDataResolver=_.LU();k.actionMap={"yt-mute-ad-action":"handleMuteAd"};return k};
_.y(bw,_.p);_.I=bw.prototype;_.I.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"}}}};
_.I.ready=function(){var k=this;_.Cc(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){k.expandAd()});
this.hostElement.addEventListener("yt-action",function(E){if(E.detail.actionName==="yt-service-request"){var S=E.detail.args[1];S.videoMastheadAdMuteCommand&&(k.collapseAd(S.videoMastheadAdMuteCommand.encryptedMastheadId),E.stopPropagation())}})};
_.I.attached=function(){var k=this;_.xT(function(){k.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(E){if(!k.collapsed){E=_.n(E);for(var S=E.next();!S.done;S=E.next())S=S.value,kf(S.baseUrl,S.attributionSrcMode);k.data.impressionCommand=void 0}});
this.JSC$15723_activeViewMeasurementDataResolver.promise.then(function(E){k.ytdActiveViewBehavior.enableActiveViewMeasurement(E,15)});
_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&k.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.dataChanged=function(){var k;((k=this.data.impressionCommand)==null?0:k.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var E;((E=this.data)==null?0:E.activeView)&&this.JSC$15723_activeViewMeasurementDataResolver.resolve(this.data.activeView);(k=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(k.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.I.computeWidescreen=function(k){var E;return!!(k&&((E=_.W(k,t7d))==null?0:E.isWidescreen))};
_.I.computeExpandable=function(k){return!!(k&&k.length>0)};
_.I.onIronResize=function(){if(this.expandable){var k=_.Cc(this.hostElement).querySelector("#expandable-tile-container :first-child");k&&!k.expanded&&(k.expanded=!0)}};
_.I.handleMuteAd=function(){this.collapseAd(null)};
_.I.restoreCollapsedState=function(k){this.collapsed=_.nz().get("HIDDEN_MASTHEAD_ID")===k};
_.I.collapseAd=function(k){if(k){var E=_.nz();E.set("HIDDEN_MASTHEAD_ID",k);E.save()}(k=_.Cc(this.hostElement).querySelector("#video"))&&_.Me(k,"yt-masthead-hidden");this.collapsed=!0};
_.I.expandAd=function(){var k=_.nz();k.set("HIDDEN_MASTHEAD_ID",!1);k.save();location.reload()};
_.I.detached=function(){_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
bw.prototype.onIronResize=bw.prototype.onIronResize;bw.prototype.dataChanged=bw.prototype.dataChanged;_.Z([_.g(_.KS),_.l("design:type",Object)],bw.prototype,"ironResizableBehavior",void 0);_.Z([_.g(q8),_.l("design:type",Object)],bw.prototype,"ytdActiveViewBehavior",void 0);_.Z([_.g(_.CX),_.l("design:type",Object)],bw.prototype,"ytdGridStateAwareBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],bw.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bw.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.l("design:type",Boolean)],bw.prototype,"widescreen",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.l("design:type",Boolean)],bw.prototype,"expandable",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bw.prototype,"collapsed",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bw.prototype,"dataChanged",null);
_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bw.prototype,"onIronResize",null);_.Z([_.D({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],bw);
_.b(bw,"ytd-video-masthead-ad-v3-renderer",function(){if(IP2!==void 0)return IP2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return IP2=k},{mode:2});var Z5=function(){return _.p.apply(this,arguments)||this};
_.y(Z5,_.p);_.I=Z5.prototype;_.I.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.I.ready=function(){var k=this;iAj(function(){k.isAttached&&L5(k.JSC$15728_storedAdSlotMetadata,k.JSC$15728_storedAdLayoutMetadata,k.adSlotMetadata,k.adLayoutMetadata)&&uw(gM(),k.JSC$15728_storedAdSlotMetadata,k.JSC$15728_storedAdLayoutMetadata)})};
_.I.attached=function(){L5(this.JSC$15728_storedAdSlotMetadata,this.JSC$15728_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&jaC(gM(),this.JSC$15728_storedAdSlotMetadata,this.JSC$15728_storedAdLayoutMetadata)};
_.I.detached=function(){L5(this.JSC$15728_storedAdSlotMetadata,this.JSC$15728_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&uw(gM(),this.JSC$15728_storedAdSlotMetadata,this.JSC$15728_storedAdLayoutMetadata)};
_.I.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15728_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15728_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15728_storedAdLayoutMetadata!==void 0&&this.JSC$15728_storedAdSlotMetadata!==void 0&&uw(gM(),this.JSC$15728_storedAdSlotMetadata,this.JSC$15728_storedAdLayoutMetadata),jaC(gM(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15728_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15728_storedAdSlotMetadata=this.adSlotMetadata)};
_.mt.Object.defineProperties(Z5.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.adLayoutMetadata}}});
Z5.prototype.onAdMetadataChanged=Z5.prototype.onAdMetadataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Z5.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Z5.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Z5.prototype,"data",void 0);_.Z([_.U("data.adLayoutMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],Z5.prototype,"adLayoutMetadata",null);
_.Z([_.H(),_.l("design:type",Object)],Z5.prototype,"adSlotMetadata",void 0);_.Z([_.il("adLayoutMetadata","adSlotMetadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Z5.prototype,"onAdMetadataChanged",null);_.Z([_.D({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Z5);
_.b(Z5,"ytd-page-top-ad-layout-renderer",function(){if(kSd!==void 0)return kSd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return kSd=
k},{mode:_.GN("kevlar_poly_si_batch_j070")?1:2});var nC5;var dM=function(){var k=_.p.apply(this,arguments)||this;k.noBottomMargin=!1;k.overlayDensity=0;k.typographyBump=!1;k.extractOverlay=!1;k.extractActionBar=!1;return k};
_.y(dM,_.p);_.I=dM.prototype;
_.I.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]]"}}}}}};
_.I.ready=function(){var k=this;iAj(function(){k.isAttached&&k.adSlotMetadata&&LQ2(gM(),k.adSlotMetadata)})};
_.I.attached=function(){if(this.adSlotMetadata){var k;if(this.adSlotMetadata===((k=this.data)==null?void 0:k.adSlotMetadata))x0C(gM(),this.adSlotMetadata);else{var E;_.dg(Error("Vh`"+this.adSlotMetadata+"`"+((E=this.data)==null?void 0:E.adSlotMetadata)))}}};
_.I.detached=function(){this.adSlotMetadata&&LQ2(gM(),this.adSlotMetadata)};
_.I.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.I.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&LQ2(gM(),this.adSlotMetadata),x0C(gM(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.mt.Object.defineProperties(dM.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var k,E,S=_.W((k=this.data)==null?void 0:(E=k.fulfillmentContent)==null?void 0:E.fulfilledLayout,_.wgA),R;return(k=(R=_.W(S==null?void 0:S.renderingContent,TS5))==null?void 0:R.layout)?k.toLowerCase().replace(/_/g,"-"):""}}});
dM.prototype.onAdSlotMetadataChanged=dM.prototype.onAdSlotMetadataChanged;dM.prototype.onTypographyBumpChanged=dM.prototype.onTypographyBumpChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],dM.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],dM.prototype,"rendererBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],dM.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],dM.prototype,"noBottomMargin",void 0);_.Z([_.H(),_.l("design:type",Object)],dM.prototype,"overlayDensity",void 0);_.Z([_.H(),_.l("design:type",Object)],dM.prototype,"typographyBump",void 0);_.Z([_.H(),_.l("design:type",Object)],dM.prototype,"extractOverlay",void 0);_.Z([_.H(),_.l("design:type",Object)],dM.prototype,"extractActionBar",void 0);
_.Z([_.JO("ytd-in-feed-ad-layout-renderer"),_.l("design:type",HTMLElement)],dM.prototype,"inFeedAdLayoutRenderer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],dM.prototype,"layout",null);_.Z([_.il("typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dM.prototype,"onTypographyBumpChanged",null);
_.Z([_.il("data.adSlotMetadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dM.prototype,"onAdSlotMetadataChanged",null);_.Z([_.D({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],dM);
_.b(dM,"ytd-ad-slot-renderer",function(){if(nC5!==void 0)return nC5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return nC5=k},{mode:_.GN("kevlar_poly_si_batch_j077")?
1:2});var iep;var sW=function(){return _.p.apply(this,arguments)||this};
_.y(sW,_.p);_.I=sW.prototype;_.I.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"}}}};
_.I.maybeComputeHref=function(){return null};
_.I.onTap=function(){};
_.I.onThumbnailContainerClick=function(k){this.onClick(k)};
_.I.onClick=function(k){var E,S=(E=this.data)==null?void 0:E.navigationEndpoint;S&&_.W(S,_.jm)&&(this.ytSparklesClickLocationBehavior.handleClick(S,k,!1),k.stopPropagation())};
_.I.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var k=_.n(this.data.impressionUrls),E=k.next();!E.done;E=k.next())E=E.value,sct(E,MNA(E));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",sW.JSC$15736_DEFAULT_CLICK_LOCATION_BEHAVIOR,sW.JSC$15736_CLICK_LOCATION_ID_MAP);this.thumbnail&&(k=this.thumbnail.getElementsByTagName("a"),k.length>0&&(k=k.namedItem("thumbnail"))&&
k.removeAttribute("href"))}};
_.I.attached=function(){var k=this;_.Y("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&k.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.I.detached=function(){_.Y("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.mt.Object.defineProperties(sW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
sW.prototype.dataChanged=sW.prototype.dataChanged;sW.prototype.onTap=sW.prototype.onTap;sW.JSC$15736_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
sW.JSC$15736_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"}];_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],sW.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sW.prototype,"ytRendererBehavior",void 0);_.Z([_.g(q8),_.l("design:type",Object)],sW.prototype,"ytdActiveViewBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],sW.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],sW.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],sW.prototype,"ytSparklesClickLocationBehavior",void 0);
_.Z([_.H({selector:_.XS}),_.l("design:type",Object)],sW.prototype,"isGridViewEnabled",void 0);_.Z([_.U("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],sW.prototype,"watchFeedBigThumbs",null);_.Z([_.U("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],sW.prototype,"thumbnailWidth",null);_.Z([_.H(),_.l("design:type",Object)],sW.prototype,"data",void 0);
_.Z([_.JO("ytd-thumbnail"),_.l("design:type",HTMLElement)],sW.prototype,"thumbnail",void 0);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sW.prototype,"onTap",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sW.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],sW);
_.b(sW,"ytd-compact-promoted-video-renderer",function(){if(iep!==void 0)return iep;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return iep=k},{mode:1});var hlC;_.B9("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var lw=function(){return _.p.apply(this,arguments)||this};
_.y(lw,_.p);lw.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],lw.prototype,"data",void 0);_.Z([_.D({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],lw);
_.b(lw,"ytd-search-pyv-renderer",function(){if(hlC!==void 0)return hlC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return hlC=k},{mode:1});var JkC;_.B9("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var Mk=function(){var k=_.p.apply(this,arguments)||this;k.roundedContainer=!0;k.JSC$15744_handleOpenPostCommentDialogActionAfterStamp=!1;k.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return k};
_.y(Mk,_.p);_.I=Mk.prototype;
_.I.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}}};
_.I.onStampFinished=function(){this.JSC$15744_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.I.handleSignalActionOpenPostCommentDialogAction=function(){var k=_.Cc(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");k?k.openDialog():this.JSC$15744_handleOpenPostCommentDialogActionAfterStamp=!0};
_.I.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.I.computeHideBorder=function(){return this.isInEngagementPanel};
_.I.computeIsCompact=function(){return this.isInEngagementPanel};
_.I.computeUsesCompactLockup=function(k){return k==="BACKSTAGE_SURFACE_TYPE_HOME"||k==="BACKSTAGE_SURFACE_TYPE_SEARCH"||k==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||k==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||k==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||k==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.I.computeUsesFullLockup=function(){var k,E=(k=this.data)==null?void 0:k.post,S;k=(S=_.W(E,KrY))==null?void 0:S.surface;var R;S=(R=_.W(E,rf4))==null?void 0:R.originalPost;var V;if(R=k||((V=_.W(S,KrY))==null?void 0:V.surface))return!this.computeUsesCompactLockup(R)&&this.useUpdatedRepostUi;var N;return((N=_.W(E,rf4))==null?void 0:N.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.mt.Object.defineProperties(Mk.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var k,E;return((E=_.W((k=this.data)==null?void 0:k.post,KrY))==null?void 0:E.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.useUpdatedRepostUi}}});
Mk.prototype.onYtCommentModerationPanelEmpty=Mk.prototype.onYtCommentModerationPanelEmpty;Mk.prototype.onStampFinished=Mk.prototype.onStampFinished;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Mk.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Mk.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Mk.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Mk.prototype,"roundedContainer",void 0);_.Z([_.H({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Mk.prototype,"hideBorder",void 0);_.Z([_.H({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Mk.prototype,"isCompact",void 0);
_.Z([_.H({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Mk.prototype,"usesFullLockup",void 0);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mk.prototype,"onStampFinished",null);
_.Z([_.nv("ytd-comment-moderation-panel-empty"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Mk.prototype,"onYtCommentModerationPanelEmpty",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Mk.prototype,"isInEngagementPanel",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Mk.prototype,"useUpdatedRepostUi",null);
_.Z([_.D({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],Mk);
_.b(Mk,"ytd-backstage-post-thread-renderer",function(){if(JkC!==void 0)return JkC;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return JkC=k},{mode:1});var ckd;var qk=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(qk,_.p);qk.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
qk.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var k=this.data.thumbnail.thumbnails;this.isDarkTheme&&(k=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(k=_.zT(k,24,void 0,"height"))?k:void 0}};
qk.prototype.onDarkModeToggledAction=function(k){this.isDarkTheme=k};
qk.prototype.computeHasText=function(){var k;return!((k=this.data)==null||!k.text)};
_.mt.Object.defineProperties(qk.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.ZF(this.bannerImageUrl))+'");'}}});
qk.prototype.computeHasText=qk.prototype.computeHasText;qk.prototype.computeBannerImageUrl=qk.prototype.computeBannerImageUrl;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],qk.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],qk.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qk.prototype,"ytRendererBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],qk.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],qk.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",String)],qk.prototype,"bannerImageUrl",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.l("design:type",Boolean)],qk.prototype,"hasText",void 0);_.Z([_.il("data","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qk.prototype,"computeBannerImageUrl",null);
_.Z([_.il("data.text"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qk.prototype,"computeHasText",null);_.Z([_.U("bannerImageUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],qk.prototype,"bannerStyle",null);_.Z([_.D({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],qk);
_.b(qk,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(ckd!==void 0)return ckd;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return ckd=k},{mode:1});var mQd;var zC=function(){return _.p.apply(this,arguments)||this};
_.y(zC,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],zC.prototype,"data",void 0);_.Z([_.D({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],zC);
_.b(zC,"ytd-backstage-zero-state-renderer",function(){if(mQd!==void 0)return mQd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return mQd=k},{mode:1});var eld;var QX=function(){return _.p.apply(this,arguments)||this};
_.y(QX,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],QX.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],QX.prototype,"icon",void 0);_.Z([_.D({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],QX);
_.b(QX,"ytd-post-filter-zero-state-renderer",function(){if(eld!==void 0)return eld;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return eld=k},{mode:1});var aPC;var tAC={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},OW=function(){return _.p.apply(this,arguments)||this};
_.y(OW,_.p);OW.prototype.configureRendererStamper=function(){return tAC};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],OW.prototype,"rendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],OW.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],OW.prototype,"icon",void 0);_.Z([_.D({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],OW);
_.b(OW,"ytd-post-scheduling-zero-state-renderer",function(){if(aPC!==void 0)return aPC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return aPC=k},{mode:1});var TfC;var GC=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return k};
_.y(GC,_.p);GC.prototype.onTabsActivate=function(k){this.data&&this.data.tabs&&_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[k.detail.selected].navigationEndpoint})};
GC.prototype.shouldShowTotalCount=function(k){return k&&k.totalCount!==void 0};
GC.prototype.handleUpdatePostsTotalCountAction=function(k){var E=this.get(["data.tabs",1,"totalCount"]),S=this.get("updatePostsTotalCountAction.updateType",k);k=this.get("updatePostsTotalCountAction.number",k);E!==void 0&&S!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&k&&(S==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(E)+k):S==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(E)-k))};
_.mt.Object.defineProperties(GC.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var k=0,E=this.data.tabs.length;k<E;k++)if(this.data.tabs[k].selected)return k;return 0}}});
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],GC.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],GC.prototype,"rendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],GC.prototype,"data",void 0);_.Z([_.U("data.tabs"),_.l("design:type",Number),_.l("design:paramtypes",[])],GC.prototype,"selected",null);_.Z([_.D({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],GC);
_.b(GC,"ytd-post-stream-filter-renderer",function(){if(TfC!==void 0)return TfC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return TfC=k},{mode:1});var wQY;var CQ=function(){return _.p.apply(this,arguments)||this};
_.y(CQ,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],CQ.prototype,"kevlarBehaviors",void 0);_.Z([_.H(),_.l("design:type",Object)],CQ.prototype,"data",void 0);_.Z([_.D({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],CQ);
_.b(CQ,"ytd-channel-age-gate-renderer",function(){if(wQY!==void 0)return wQY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return wQY=k},{mode:1});var PmT;_.B9("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var k0=function(){var k=_.p.apply(this,arguments)||this;k.data=null;return k};
_.y(k0,_.p);k0.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.mt.Object.defineProperties(k0.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.data)==null?0:(E=k.title)==null?0:(S=E.runs)==null?0:S.length)?147:160}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],k0.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],k0.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],k0.prototype,"imageSizePx",null);_.Z([_.D({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],k0);
_.b(k0,"ytd-channel-owner-empty-state-renderer",function(){if(PmT!==void 0)return PmT;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return PmT=k},{mode:1});var Bf2;var Yu8;var Es=function(){var k=_.p.apply(this,arguments)||this;k.boundSubmitSearch=function(){k.submitSearch()};
k.boundClearSearch=function(){k.clearSearch()};
return k};
_.y(Es,_.p);_.I=Es.prototype;_.I.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]]"}}}}}};
_.I.toggleClearButton=function(){this.hideClearButton=yhC||!this.input.value};
_.I.submitOnEnterKeyUp=function(k){k.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.I.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.I.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.I.submit=function(){_.Me(this.hostElement,"search-query-changed",this.input.value)};
Es.prototype.toggleClearButton=Es.prototype.toggleClearButton;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Es.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Es.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Es.prototype,"hideClearButton",void 0);_.Z([_.H(),_.l("design:type",Object)],Es.prototype,"boundSubmitSearch",void 0);_.Z([_.H(),_.l("design:type",Object)],Es.prototype,"boundClearSearch",void 0);_.Z([_.JO("#input"),_.l("design:type",Object)],Es.prototype,"input",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Es.prototype,"toggleClearButton",null);
_.Z([_.D({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Es);
_.b(Es,"ytd-channel-switcher-search-box-renderer",function(){if(Yu8!==void 0)return Yu8;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Yu8=k},{mode:1});var WUz;var S2=function(){var k=_.p.apply(this,arguments)||this;k.boundSubmit=function(){k.submit()};
return k};
_.y(S2,_.p);_.I=S2.prototype;_.I.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"}}}}};
_.I.ready=function(){var k=this;this.form.addEventListener("submit",function(E){return k.onSubmit(E)})};
_.I.onSubmit=function(k){k.preventDefault();return!1};
_.I.toggleClearButton=function(){this.hideClearButton=yhC||!this.input.value};
_.I.submitOnEnterKeyUp=function(k){k.keyCode===13&&this.submit()};
_.I.submit=function(){var k=this.data.endpoint,E=(0,_.fO.unsafeClone)(k);_.W(E,_.Ny)?_.W(E,_.Ny).query=this.input.value:_.W(E,_.IR)&&(_.W(E,_.IR).query=this.input.value);var S=_.W(E.commandMetadata,_.Sd);(S==null?0:S.url)?(S.url=_.Md(S.url,"query",this.input.value),_.Me(this.hostElement,"yt-navigate",{endpoint:E})):_.W(E,hC4)?(_.W(E,hC4).channelSwitcherQuery=this.input.value,_.en().resolve(_.t3).resolveCommand(E,{form:{element:this.hostElement}})):(k=Error("Wh`"+JSON.stringify(k)),_.bM(k))};
_.I.getUrl=function(k){return this.get("commandMetadata.webCommandMetadata.url",k)};
S2.prototype.toggleClearButton=S2.prototype.toggleClearButton;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],S2.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],S2.prototype,"hideClearButton",void 0);
_.Z([_.H(),_.l("design:type",Object)],S2.prototype,"boundSubmit",void 0);_.Z([_.JO("#form"),_.l("design:type",HTMLFormElement)],S2.prototype,"form",void 0);_.Z([_.JO("#input"),_.l("design:type",Object)],S2.prototype,"input",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],S2.prototype,"toggleClearButton",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],S2);
_.b(S2,"ytd-search-box-renderer",function(){if(WUz!==void 0)return WUz;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return WUz=k},{mode:2});var R$=function(){var k=_.p.apply(this,arguments)||this;k.showSearchBox=!0;return k};
_.y(R$,_.p);R$.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],R$.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],R$.prototype,"showSearchBox",void 0);_.Z([_.D({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],R$);
_.b(R$,"ytd-channel-switcher-header-renderer",function(){if(Bf2!==void 0)return Bf2;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Bf2=k},{mode:1});var FUd;var ykY;var V9=function(){var k=_.p.apply(this,arguments)||this;k.isDisplayed=!0;return k};
_.y(V9,_.p);_.I=V9.prototype;_.I.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.dataChanged=function(){this.isDisplayed=!0};
_.I.computeType=function(k){return k||"UNKNOWN"};
_.I.onYtServiceRequestCompleted=function(k){k.stopPropagation();this.isDisplayed=!1};
_.I.onClose=function(){this.isDisplayed=!1};
V9.prototype.onYtServiceRequestCompleted=V9.prototype.onYtServiceRequestCompleted;V9.prototype.dataChanged=V9.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],V9.prototype,"data",void 0);
_.Z([_.H({computed:"computeType(data.type)",reflectToAttribute:!0}),_.l("design:type",String)],V9.prototype,"type",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],V9.prototype,"isDisplayed",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V9.prototype,"dataChanged",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],V9.prototype,"onYtServiceRequestCompleted",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],V9);
_.b(V9,"ytd-alert-with-button-renderer",function(){if(ykY!==void 0)return ykY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ykY=k},{mode:1});var Nt=function(){var k=_.p.apply(this,arguments)||this;k.noResult=!1;k.enableAlertBanner=!1;k.dismissedAlertBanner=!1;k.hideCreateChannelButton=!1;k.boundDismissAlertBanner=function(){k.dismissAlertBanner()};
k.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return k};
_.y(Nt,_.p);_.I=Nt.prototype;_.I.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.I.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.I.updateChannelSwitcherAction=function(k){var E;k=(E=_.W(k,V8d))==null?void 0:E.page;_.W(k,Rmd)!==void 0&&(this.data=_.W(k,Rmd))};
_.I.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]]"}}}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.I.searchQueryChanged=function(k,E){if(this.data&&this.data.contents&&this.data.contents.length){k=[];var S=[];this.hideCreateChannelButton=this.noResult=!1;for(var R=document.querySelectorAll("ytd-account-item-renderer"),V=_.n(R),N=V.next();!N.done;N=V.next())N=N.value,S.push(N),N.style.display="block";this.resetRightBorder(S);if(E){this.hideCreateChannelButton=!0;for(S=1;S<this.data.contents.length;S++)if(N=this.data.contents[S],_.W(N,Iy5)){var h=void 0,J=void 0;V=(h=_.W(N,Iy5))==null?void 0:(J=
h.accountName)==null?void 0:J.simpleText;J=h=void 0;N=(h=_.W(N,Iy5))==null?void 0:(J=h.channelHandle)==null?void 0:J.simpleText;(h=R[S-1])&&V&&_.mI(V,E)?k.push(h):_.Y("enable_handle_search_on_channel_switcher")&&h&&N&&_.mI(N.toString(),E.toString())?k.push(h):h.style.display="none"}k.length===0&&(this.noResult=!0);this.resetRightBorder(k)}}};
_.I.resetRightBorder=function(k){for(var E=0;E<k.length;E++)k[E].style.borderRight=!this.hideCreateChannelButton&&(E+2)%3===0||this.hideCreateChannelButton&&(E+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.I.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.I.setShowSearchBox=function(k){if(k&&k.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var E=0;E<k.contents.length;E++)_.W(k.contents[E],_.jj)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.I.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.mt.Object.defineProperties(Nt.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null?0:k.contents)}}});
Nt.prototype.onContinuationItemsUpdated=Nt.prototype.onContinuationItemsUpdated;Nt.prototype.searchQueryChanged=Nt.prototype.searchQueryChanged;Nt.prototype.onDataChanged=Nt.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Nt.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],Nt.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Nt.prototype,"data",void 0);_.Z([_.JO("ytd-channel-switcher-header-renderer"),_.l("design:type",Object)],Nt.prototype,"channelSwitcherHeaderRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],Nt.prototype,"noResult",void 0);
_.Z([_.H(),_.l("design:type",Object)],Nt.prototype,"enableAlertBanner",void 0);_.Z([_.H(),_.l("design:type",Object)],Nt.prototype,"dismissedAlertBanner",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Nt.prototype,"hideCreateChannelButton",void 0);_.Z([_.U("data.contents"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nt.prototype,"isLoading",null);_.Z([_.H(),_.l("design:type",Object)],Nt.prototype,"boundDismissAlertBanner",void 0);
_.Z([_.H({computed:"computeButtonOverride()"}),_.l("design:type",Object)],Nt.prototype,"buttonOverride",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nt.prototype,"onDataChanged",null);_.Z([_.nv("search-query-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,String]),_.l("design:returntype")],Nt.prototype,"searchQueryChanged",null);
_.Z([_.nv("yt-next-continuation-data-updated"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Nt.prototype,"onContinuationItemsUpdated",null);_.Z([_.D({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Nt);
_.b(Nt,"ytd-channel-switcher-page-renderer",function(){if(FUd!==void 0)return FUd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return FUd=k},{mode:1});var oC2;var XQ4;var I$=function(){var k=_.p.apply(this,arguments)||this;k.images=[];k.selectedImageIndex=0;return k};
_.y(I$,_.p);_.I=I$.prototype;
_.I.ready=function(){_.wX(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.wX(this.JSC$15789_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.wX(this.JSC$15789_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.wX(this.JSC$15789_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.I.onThumbnailClick=function(k){if(k=k.event_.detail)this.selectedImageIndex=this.images.indexOf(k)};
_.I.updateImageThumbnails=function(k){k=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:k.event_.detail});this.images.splice(this.selectedImageIndex,1,k);this.images=[].concat(_.$e(this.images))};
_.I.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Me(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.I.saveImageRepositions=function(){this.selectedImageIndex=0;_.Me(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.mt.Object.defineProperties(I$.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var k=this;return(this.images||[]).map(function(E,S){return{image:E,selected:S===k.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.JO("ytd-backstage-image-preview-renderer"),_.l("design:type",Object)],I$.prototype,"JSC$15789_imagePreviewContainer",void 0);_.Z([_.JO(".thumbnail-images-container"),_.l("design:type",HTMLElement)],I$.prototype,"thumbnailImagesContainer",void 0);_.Z([_.H(),_.l("design:type",Array)],I$.prototype,"images",void 0);
_.Z([_.H(),_.l("design:type",Object)],I$.prototype,"repositionInstructions",void 0);_.Z([_.H(),_.l("design:type",Object)],I$.prototype,"selectedImageIndex",void 0);_.Z([_.U("images","selectedImageIndex"),_.l("design:type",Array),_.l("design:paramtypes",[])],I$.prototype,"thumbnailRendererDatas",null);_.Z([_.U("images","selectedImageIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],I$.prototype,"selectedImageData",null);
_.Z([_.D({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],I$);
_.b(I$,"ytd-backstage-multi-image-reposition-renderer",function(){if(XQ4!==void 0)return XQ4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return XQ4=k},{mode:1});var nW=function(k,E){_.wG.call(this);this.uploadUrl=k;this.channelId=E;this.imagesUploadData=[]};
_.y(nW,_.wG);nW.prototype.getAllUploadStatuses=function(){var k=this,E,S,R;return _.c(function(V){if(V.nextAddress==1)return V.yield(gCC(k),2);E=V.yieldResult;S=E.get("succeed");R=E.get("failed");return V.return(S.concat(R))})};
var HeT=function(k){var E,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(gCC(k),2);E=R.yieldResult;S=E.get("failed");S.length>0&&UQp(k,S);return R.return(k.getAllUploadStatuses())})},gCC=function(k){var E,S,R,V,N,h,J;
return _.c(function(m){if(m.nextAddress==1)return E=new Map,m.yield(Promise.allSettled(k.imagesUploadData.map(function(a){return a.uploadPromise})),2);
S=m.yieldResult;R=[];V=_.n(S);for(N=V.next();!N.done;N=V.next())h=N.value,h.status==="fulfilled"&&R.push(h.value);J=k.imagesUploadData.map(function(a){return a.image}).filter(function(a){return R.every(function(T){return T.id!==a.id})});
E.set("succeed",R);E.set("failed",J);return m.return(E)})},UQp=function(k,E){E=_.n(E);
for(var S=E.next();!S.done;S=E.next()){var R=k;S=S.value;KUC(R,S.id)>=0&&R.cancel(S.id);var V=new pQd(S),N=_.qI5(R.uploadUrl,{"X-YouTube-ChannelId":R.channelId},S.imageBlob);V.transfer=N;V.uploadPromise=AkA(N,S);R.imagesUploadData.push(V);N.run()}};
nW.prototype.cancel=function(k){var E=KUC(this,k);E!==-1&&((E=this.imagesUploadData[E].transfer)&&E.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(S){return S.image.id!==k}))};
var KUC=function(k,E){return k.imagesUploadData.findIndex(function(S){return S.image.id===E})},AkA=function(k,E){return new Promise(function(S,R){k.listen("l",function(){var V=k.getResponseText();
V?(V=JSON.parse(V).encryptedBlobId,E.encryptedBlobId=V,S(E)):R("upload failed")});
k.listen("n",function(){R("upload failed")})})},pQd=function(k){this.image=k};var Qlj=function(k,E,S,R,V){this.id=k;this.imageBlob=E;this.localImageSrc=S;this.naturalWidth=R;this.naturalHeight=V;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 rkd=[".jpeg",".jpg",".png"],i9=function(){var k=_.p.apply(this,arguments)||this;k.showImagesPreview=!1;k.pollOptions=[];k.errorMessage="";k.optionPlaceholderText="";k.optionDefaultText="";k.JSC$15800_imageId=0;k.maxFileSizeMb=0;k.maxAspectRatio=0;k.invalidFileSizeError="";k.invalidAspectRatioError="";k.invalidFileTypeError="";k.imageSelector=new e_(null,"single_file",rkd);return k};
_.y(i9,_.p);_.I=i9.prototype;_.I.ready=function(){_.wX(this.imageSelector,"j",this.onImageSelect,!1,this);_.wX(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.wX(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.I.dataChanged=function(){var k,E,S=_.W((k=this.data)==null?void 0:(E=k.cellTemplate)==null?void 0:E.onEmptyCellTap,jg8);if(S&&S.uploadUrl&&S.channelId){var R;this.maxFileSizeMb=((R=S.imageValidationInfo)==null?void 0:R.maxFileSizeMb)||0;var V;this.maxAspectRatio=((V=S.imageValidationInfo)==null?void 0:V.allowedMaxAspectRatio)||0;var N;this.invalidFileSizeError=this.getSimpleString((N=this.data)==null?void 0:N.invalidFileSizeError);var h;this.invalidAspectRatioError=this.getSimpleString((h=this.data)==
null?void 0:h.invalidAspectRatioError);var J;this.invalidFileTypeError=this.getSimpleString((J=this.data)==null?void 0:J.invalidFileTypeError);this.uploadManager=new nW(S.uploadUrl,S.channelId)}};
_.I.onEditorInfoChange=function(){this.optionPlaceholderText=_.$n(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.$n(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.I.observeAddImageError=function(){this.errorMessage!==""&&_.Me(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.I.onPollOptionsChange=function(){for(var k=!1,E=[],S=0;S<this.pollOptions.length;S++){var R=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(S+1);this.pollOptions[S].placeholderText!==R?(k=!0,E.push(Object.assign({},this.pollOptions[S],{placeholderText:R}))):E.push(this.pollOptions[S])}k&&(this.pollOptions=E);this.isValid()?_.Me(this.hostElement,"yt-commentbox-post-enable"):_.Me(this.hostElement,"yt-commentbox-post-disable")};
_.I.createPollOptions=function(k){var E=[],S;k=(S=k==null?void 0:k.minPollOptions)!=null?S:0;for(S=0;S<k;S++)E.push(this.createPollOption());return E};
_.I.onImageSelect=function(k){var E=this,S,R,V,N,h,J;return _.c(function(m){if(m.nextAddress==1){if(E.selectedImageIndex===void 0)return m.jumpTo(0);S=k.files[0];E.errorMessage="";R=E.validateImage(S);if(R!=="")return E.errorMessage=R,m.return();V=new SK(E.maxAspectRatio,!1,!0);return m.yield(V.transform(S),3)}if(m.nextAddress!=4)return N=m.yieldResult,N.transformedData?N.invalidAspectRatio?(E.errorMessage=E.invalidAspectRatioError,m.return()):m.yield(OqC(E.JSC$15800_imageId,k.files[0],N.transformedData),
4):(E.errorMessage=E.invalidFileTypeError,m.return());h=m.yieldResult;E.JSC$15800_imageId++;UQp(E.uploadManager,[h]);J=Object.assign({},E.pollOptions[E.selectedImageIndex],{image:h});E.pollOptions.splice(E.selectedImageIndex,1,J);E.refreshPollOptions();_.Me(E.hostElement,"yt-backstage-poll-image-select");_.KR(m)})};
_.I.validateImage=function(k){return k.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.I.refreshPollOptions=function(){this.pollOptions=[].concat(_.$e(this.pollOptions))};
_.I.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.$e(this.pollOptions),[this.createPollOption()]))};
_.I.onRemovePollOption=function(k){var E=this.pollOptions[k.model.index];E&&E.image&&this.uploadManager.cancel(E.image.id);this.pollOptions.splice(k.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Me(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.I.onTextInput=function(){this.refreshPollOptions()};
_.I.onImageButtonClick=function(k){this.selectedImageIndex=k.model.index;this.imageSelector.click()};
_.I.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.I.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.I.saveImageRepositions=function(k){k=k.event_.detail;for(var E=0,S=[],R=_.n(this.pollOptions),V=R.next();!V.done;V=R.next())V=V.value,V.image!==void 0?(V=Object.assign({},V,{image:k[E]}),S.push(V),E++):S.push(V);this.showImagesPreview=!1;this.pollOptions=[].concat(_.$e(S))};
_.I.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 k=0,E=_.n(this.pollOptions),S=E.next();!S.done;S=E.next())if(S=S.value,S.optionText.trim()!==""||S.image!==void 0){if(!S.image||this.hasCustomOptionText&&S.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;k++}return k>=Number(this.editorInfo.minPollOptions)};
_.I.getAllUploadStatuses=function(){var k=this,E,S,R,V;return _.c(function(N){if(N.nextAddress==1)return N.yield(k.uploadManager.getAllUploadStatuses(),2);E=N.yieldResult;S=_.n(E);for(R=S.next();!R.done;R=S.next())if(V=R.value,V.encryptedBlobId===void 0)return N.return(HeT(k.uploadManager));return N.return(E)})};
_.I.getPostCreateOptions=function(){for(var k=[],E=_.n(this.pollOptions),S=E.next();!S.done;S=E.next())S=S.value,S.image!==void 0&&k.push({text:this.hasCustomOptionText?S.optionText:S.placeholderText,image:S.image});return k};
_.I.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.I.createButtonRenderer=function(k,E){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:k,accessibilityData:{accessibilityData:{label:this.getSimpleString(k)}},isDisabled:E}};
_.I.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.I.computeThumbnailRendererData=function(k){return k?{image:k,selected:!1}:void 0};
_.I.getSimpleString=function(k){return _.$n(k)};
_.I.updateOptionTextFromBinding=function(k){if(k.target){var E=Array.from(_.Cc(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(k.target);if(E>=0){var S;this.pollOptions[E].optionText=(S=k.detail.value)!=null?S:""}}};
_.mt.Object.defineProperties(i9.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var k,E;return this.pollOptions.length<((E=(k=this.editorInfo)==null?void 0:k.maxPollOptions)!=null?E:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(k){return k.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(k){return k.image}).map(function(k){return k.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(k){return k.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var k,E=(k=this.data)==null?void 0:k.addOptionButtonText;return E?this.createButtonRenderer(E,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var k,E=(k=this.data)==null?void 0:k.repositionImagesButtonLabel;return E?this.createButtonRenderer(E,!this.hasImages):void 0}}});
i9.prototype.onPollOptionsChange=i9.prototype.onPollOptionsChange;i9.prototype.observeAddImageError=i9.prototype.observeAddImageError;i9.prototype.onEditorInfoChange=i9.prototype.onEditorInfoChange;i9.prototype.dataChanged=i9.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.JO("ytd-backstage-multi-image-reposition-renderer"),_.l("design:type",Object)],i9.prototype,"imageRepositionContainer",void 0);
_.Z([_.H(),_.l("design:type",Object)],i9.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],i9.prototype,"editorInfo",void 0);_.Z([_.H(),_.l("design:type",nW)],i9.prototype,"uploadManager",void 0);_.Z([_.H(),_.l("design:type",Object)],i9.prototype,"showImagesPreview",void 0);_.Z([_.H(),_.l("design:type",Array)],i9.prototype,"pollOptions",void 0);_.Z([_.H(),_.l("design:type",Object)],i9.prototype,"errorMessage",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i9.prototype,"dataChanged",null);_.Z([_.ac("editorInfo"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i9.prototype,"onEditorInfoChange",null);_.Z([_.il("errorMessage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i9.prototype,"observeAddImageError",null);
_.Z([_.ac("pollOptions"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],i9.prototype,"onPollOptionsChange",null);_.Z([_.U("pollOptions","editorInfo"),_.l("design:type",Object),_.l("design:paramtypes",[])],i9.prototype,"isAllowedToAddOption",null);_.Z([_.U("pollOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],i9.prototype,"hasImages",null);
_.Z([_.U("pollOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],i9.prototype,"imagesToReposition",null);_.Z([_.U("pollOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],i9.prototype,"hasCustomOptionText",null);_.Z([_.U("data","isAllowedToAddOption"),_.l("design:type",Object),_.l("design:paramtypes",[])],i9.prototype,"addOptionButton",null);_.Z([_.U("data","hasImages"),_.l("design:type",Object),_.l("design:paramtypes",[])],i9.prototype,"repositionImagesButton",null);
_.Z([_.D({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],i9);
_.b(i9,"ytd-backstage-image-poll-editor-renderer",function(){if(oC2!==void 0)return oC2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return oC2=k},{mode:2});var uz4={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 xQ5;var hG=function(){var k=_.p.apply(this,arguments)||this;k.a11yConfig=uz4;k.imageDisplayOffsetTop=0;k.imageDisplayOffsetLeft=0;k.pickerDisplayOffsetTop=0;k.pickerDisplayOffsetLeft=0;k.showPreviewContainer=!0;k.startPicker=!1;k.repositionOptional=!1;k.editOnlyMode=!1;k.savedImageDisplayOffsetTop=0;k.savedImageDisplayOffsetLeft=0;return k};
_.y(hG,_.p);_.I=hG.prototype;_.I.created=function(){_.v7.requestAvailability()};
_.I.ready=function(){};
_.I.onArrowKeysDown=function(k){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){k.detail.keyboardEvent.preventDefault();var E=0,S=0,R="";switch(k.detail.keyboardEvent.key){case "ArrowUp":Gue(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:E=this.imageHeight*.05*-1;break;case "ArrowDown":Gue(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
E=this.imageHeight*.05;break;case "ArrowLeft":Gue(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:S=this.imageWidth*.05*-1;break;case "ArrowRight":Gue(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:S=this.imageWidth*.05}R&&_.Vi(R)&&_.Me(this.hostElement,"iron-announce",{text:_.Vi(R)});if(S||E)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+E)),k=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),k=_.Vi(this.a11yConfig.imageVerticalPosition,{x_percent:""+k,y_percent:""+(100-k)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+S)),k=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),k=_.Vi(this.a11yConfig.imageHorizontalPosition,{x_percent:""+k,y_percent:""+(100-k)})),k&&_.Me(this.hostElement,"iron-announce",{text:k})}};
_.I.getPreviewPosition=function(k,E,S,R){return Math.round(100*(k+E*.5-S)/R)};
_.I.calculateDisplayPosition=function(){var k=this.imageData.naturalWidth,E=this.imageData.naturalHeight;this.displayScale=Math.max(200/k,200/E);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var S=k*this.displayScale*this.imageData.previewCoordinates.left,R=E*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=E>k?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-S;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=k>E?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-R;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=k*this.displayScale;this.imageHeight=E*this.displayScale};
_.I.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.I.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.I.getSignedPosition=function(k,E,S){return E==="X"&&_.Mg("HTML_DIR")==="rtl"?S==="-"?k+"px":k*-1+"px":S==="-"?k*-1+"px":k+"px"};
_.I.pickerMove=function(k){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var E=this.pickerOffsetX-k.clientX,S=this.pickerOffsetY-k.clientY;this.pickerOffsetX=k.clientX;this.pickerOffsetY=k.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
S)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-E))}};
_.I.pickerMoveStart=function(k){this.startPicker=!0;this.pickerOffsetX=k.clientX;this.pickerOffsetY=k.clientY};
_.I.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var k=this.generateCropPreview();k&&_.Me(this.hostElement,"ytd-backstage-image-preview-coordinates-update",k)};
_.I.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Me(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.I.deleteImage=function(){_.Me(this.hostElement,"ytd-backstage-image-preview-delete")};
_.I.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.I.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var k=this.generateCropPreview();k&&_.Me(this.hostElement,"ytd-backstage-image-preview-coordinates-save",k)};
_.I.getPreviewOffset=function(k,E,S){return E&&k?(S==="X"&&_.Mg("HTML_DIR")==="rtl"?300/E*k:300/E*k*-1)+"px":"0px"};
_.I.getSimpleText=function(k){return k?_.$n(k):""};
_.I.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}};
_.mt.Object.defineProperties(hG.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var k=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Vi(this.a11yConfig.imageVerticalPosition,{x_percent:""+k,y_percent:""+(100-k)})+"\n"+_.Vi(this.a11yConfig.verticalRepositionInstruction)}k=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Vi(this.a11yConfig.imageHorizontalPosition,{x_percent:""+k,y_percent:""+(100-k)})+"\n"+_.Vi(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 k,E,S=(k=this.instruction)==null?void 0:(E=k.previewInstruction)==null?void 0:E.editButtonLabel;return S?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R,V=this.editOnlyMode?(k=this.instruction)==null?void 0:(E=k.editInstruction)==null?void 0:E.saveImagesButtonLabel:(S=this.instruction)==null?void 0:(R=S.editInstruction)==null?void 0:R.saveButtonLabel;return V?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(k=this.instruction)==null?void 0:(E=k.previewInstruction)==null?void 0:E.deleteButtonLabel;return S?{size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(k=this.instruction)==null?void 0:(E=k.editInstruction)==null?void 0:E.cancelButtonLabel;k=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return S?{style:k,size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleText(S)}}}: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"}}});
hG.prototype.onEditOnlyModeUpdate=hG.prototype.onEditOnlyModeUpdate;hG.prototype.onImageChange=hG.prototype.onImageChange;_.Z([_.H(),_.l("design:type",Qlj)],hG.prototype,"imageData",void 0);_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"instruction",void 0);_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"a11yConfig",void 0);_.Z([_.H(),_.l("design:type",Number)],hG.prototype,"imageWidth",void 0);_.Z([_.H(),_.l("design:type",Number)],hG.prototype,"imageHeight",void 0);
_.Z([_.H(),_.l("design:type",Number)],hG.prototype,"displayScale",void 0);_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"imageDisplayOffsetTop",void 0);_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"imageDisplayOffsetLeft",void 0);_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"pickerDisplayOffsetTop",void 0);_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"pickerDisplayOffsetLeft",void 0);_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"showPreviewContainer",void 0);
_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"startPicker",void 0);_.Z([_.H(),_.l("design:type",Number)],hG.prototype,"pickerOffsetX",void 0);_.Z([_.H(),_.l("design:type",Number)],hG.prototype,"pickerOffsetY",void 0);_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"repositionOptional",void 0);_.Z([_.H(),_.l("design:type",Object)],hG.prototype,"editOnlyMode",void 0);_.Z([_.JO("#picker-container"),_.l("design:type",HTMLElement)],hG.prototype,"JSC$15813_pickerContainer",void 0);
_.Z([_.JO("#picker"),_.l("design:type",HTMLElement)],hG.prototype,"picker",void 0);_.Z([_.JO("#preview-clipper"),_.l("design:type",HTMLElement)],hG.prototype,"previewClipper",void 0);_.Z([_.JO("#image-in-picker-background"),_.l("design:type",HTMLImageElement)],hG.prototype,"JSC$15813_imageInBackground",void 0);_.Z([_.JO("#image-in-picker"),_.l("design:type",HTMLImageElement)],hG.prototype,"JSC$15813_imageInPicker",void 0);
_.Z([_.JO("#image-in-preview-clipper"),_.l("design:type",HTMLImageElement)],hG.prototype,"JSC$15813_imageInPreviewClipper",void 0);_.Z([_.U("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],hG.prototype,"altLabelForImage",null);_.Z([_.U("imageHeight","imageWidth"),_.l("design:type",Number),_.l("design:paramtypes",[])],hG.prototype,"pickerSize",null);
_.Z([_.U("imageHeight","imageWidth"),_.l("design:type",Object),_.l("design:paramtypes",[])],hG.prototype,"imageOrientationStyle",null);_.Z([_.U("instruction"),_.l("design:type",Object),_.l("design:paramtypes",[])],hG.prototype,"editButton",null);_.Z([_.U("instruction","editOnlyMode"),_.l("design:type",Object),_.l("design:paramtypes",[])],hG.prototype,"saveButton",null);_.Z([_.U("instruction"),_.l("design:type",Object),_.l("design:paramtypes",[])],hG.prototype,"deleteButton",null);
_.Z([_.U("instruction","editOnlyMode"),_.l("design:type",Object),_.l("design:paramtypes",[])],hG.prototype,"cancelButton",null);_.Z([_.U("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.l("design:type",Number),_.l("design:paramtypes",[])],hG.prototype,"cropOffsetTop",null);_.Z([_.U("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.l("design:type",Number),_.l("design:paramtypes",[])],hG.prototype,"cropOffsetLeft",null);
_.Z([_.U("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],hG.prototype,"pickerBackgroundStyle",null);_.Z([_.U("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],hG.prototype,"pickerDisplayStyle",null);_.Z([_.U("cropOffsetLeft","cropOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],hG.prototype,"imageInPickerStyle",null);
_.Z([_.U("cropOffsetLeft","cropOffsetTop","pickerSize"),_.l("design:type",String),_.l("design:paramtypes",[])],hG.prototype,"previewClipperStyle",null);_.Z([_.ac("imageData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hG.prototype,"onImageChange",null);_.Z([_.ac("editOnlyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hG.prototype,"onEditOnlyModeUpdate",null);
_.Z([_.U("showPreviewContainer"),_.l("design:type",String),_.l("design:paramtypes",[])],hG.prototype,"pickerModeStyle",null);_.Z([_.D({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],hG);
_.b(hG,"ytd-backstage-image-preview-renderer",function(){if(xQ5!==void 0)return xQ5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return xQ5=k},{mode:1});var LUY;var jGz={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 DQA;var $Q4;var JG=function(){var k=_.p.apply(this,arguments)||this;k.a11yConfig=jGz;k.imageDisplayOffsetTop=0;k.imageDisplayOffsetLeft=0;k.pickerDisplayOffsetTop=0;k.pickerDisplayOffsetLeft=0;k.cropCoordinatesSaved=!1;k.previewSize=0;k.startPicker=!1;k.repositionOptional=!1;return k};
_.y(JG,_.p);_.I=JG.prototype;_.I.created=function(){_.v7.requestAvailability()};
_.I.ready=function(){};
_.I.onArrowKeysDown=function(k){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){k.detail.keyboardEvent.preventDefault();var E=0,S=0,R="";switch(k.detail.keyboardEvent.key){case "ArrowUp":CQ1(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?R=this.a11yConfig.reachBottomOfImage:E=this.imageHeight*.05*-1;break;case "ArrowDown":CQ1(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?R=this.a11yConfig.reachTopOfImage:
E=this.imageHeight*.05;break;case "ArrowLeft":CQ1(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?R=this.a11yConfig.reachRightOfImage:S=this.imageWidth*.05*-1;break;case "ArrowRight":CQ1(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?R=this.a11yConfig.reachLeftOfImage:S=this.imageWidth*.05}R&&_.Vi(R)&&_.Me(this.hostElement,"iron-announce",{text:_.Vi(R)});if(S||E)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+E)),k=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),k=_.Vi(this.a11yConfig.imageVerticalPosition,{x_percent:""+k,y_percent:""+(100-k)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+S)),k=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),k=_.Vi(this.a11yConfig.imageHorizontalPosition,{x_percent:""+k,y_percent:""+(100-k)})),k&&_.Me(this.hostElement,"iron-announce",{text:k})}};
_.I.getPreviewPosition=function(k,E,S,R){return Math.round(100*(k+E*.5-S)/R)};
_.I.displayImage=function(){var k=this.JSC$15824_pickerContainer.getBoundingClientRect().width,E=this.JSC$15824_pickerContainer.getBoundingClientRect().height,S=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),R=this.JSC$15824_imageInBackground.naturalWidth,V=this.JSC$15824_imageInBackground.naturalHeight;this.displayScale=Math.max(S/R,S/V);this.imageWidth=R*this.displayScale;this.imageHeight=V*this.displayScale;this.pickerDisplayOffsetLeft=(k-S)/2;this.pickerDisplayOffsetTop=
(E-S)/2;this.imageDisplayOffsetLeft=V>R?this.pickerDisplayOffsetLeft:(k-this.imageWidth)/2;this.imageDisplayOffsetTop=R>V?this.pickerDisplayOffsetTop:(E-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.I.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15824_imageInBackground.src=this.imageData.toString(),this.JSC$15824_imageInPicker.src=this.imageData.toString(),this.JSC$15824_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.I.getSignedPosition=function(k,E,S){return E==="X"&&_.Mg("HTML_DIR")==="rtl"?S==="-"?k+"px":k*-1+"px":S==="-"?k*-1+"px":k+"px"};
_.I.pickerMove=function(k){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var E=this.pickerOffsetX-k.clientX,S=this.pickerOffsetY-k.clientY;this.pickerOffsetX=k.clientX;this.pickerOffsetY=k.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
S)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-E))}};
_.I.pickerMoveStart=function(k){this.startPicker=!0;this.pickerOffsetX=k.clientX;this.pickerOffsetY=k.clientY};
_.I.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.I.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Me(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.I.getPreviewOffset=function(k,E,S,R){return E&&k&&S?(R==="X"&&_.Mg("HTML_DIR")==="rtl"?S/E*k:S/E*k*-1)+"px":"0px"};
_.I.getSimpleText=function(k){return k?_.$n(k):""};
_.I.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var k=this.cropOffsetTop/this.imageHeight,E=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,S=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,R=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Cc(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Me(this.hostElement,"yt-img-crop-coordinates-update",{top:k,right:E,bottom:S,left:R})}};
_.mt.Object.defineProperties(JG.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var k=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Vi(this.a11yConfig.imageVerticalPosition,{x_percent:""+k,y_percent:""+(100-k)})+"\n"+_.Vi(this.a11yConfig.verticalRepositionInstruction)}k=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Vi(this.a11yConfig.imageHorizontalPosition,{x_percent:""+k,y_percent:""+(100-k)})+"\n"+_.Vi(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 k,E=(k=this.learnMore.runs[0])==null?void 0:k.navigationEndpoint,S;return((S=_.W(E,_.Oc))==null?void 0:S.url)||void 0}}}});
JG.prototype.onImageDataChange=JG.prototype.onImageDataChange;_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"imageData",void 0);_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"instruction",void 0);_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"a11yConfig",void 0);_.Z([_.H(),_.l("design:type",Number)],JG.prototype,"imageWidth",void 0);_.Z([_.H(),_.l("design:type",Number)],JG.prototype,"imageHeight",void 0);_.Z([_.H(),_.l("design:type",Number)],JG.prototype,"displayScale",void 0);
_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"imageDisplayOffsetTop",void 0);_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"imageDisplayOffsetLeft",void 0);_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"pickerDisplayOffsetTop",void 0);_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"pickerDisplayOffsetLeft",void 0);_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"cropCoordinatesSaved",void 0);_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"previewSize",void 0);
_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"startPicker",void 0);_.Z([_.H(),_.l("design:type",Number)],JG.prototype,"pickerOffsetX",void 0);_.Z([_.H(),_.l("design:type",Number)],JG.prototype,"pickerOffsetY",void 0);_.Z([_.H(),_.l("design:type",Object)],JG.prototype,"repositionOptional",void 0);_.Z([_.JO("#picker-container"),_.l("design:type",HTMLElement)],JG.prototype,"JSC$15824_pickerContainer",void 0);_.Z([_.JO("#picker"),_.l("design:type",HTMLElement)],JG.prototype,"picker",void 0);
_.Z([_.JO("#image-in-picker-background"),_.l("design:type",HTMLImageElement)],JG.prototype,"JSC$15824_imageInBackground",void 0);_.Z([_.JO("#image-in-picker"),_.l("design:type",HTMLImageElement)],JG.prototype,"JSC$15824_imageInPicker",void 0);_.Z([_.JO("#image-in-preview-clipper"),_.l("design:type",HTMLImageElement)],JG.prototype,"JSC$15824_imageInPreviewClipper",void 0);_.Z([_.JO("#full-image-as-preview"),_.l("design:type",HTMLImageElement)],JG.prototype,"imageAsPreview",void 0);
_.Z([_.U("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],JG.prototype,"altLabelForImage",null);_.Z([_.U("imageHeight","imageWidth"),_.l("design:type",Number),_.l("design:paramtypes",[])],JG.prototype,"pickerSize",null);_.Z([_.U("imageHeight","imageWidth"),_.l("design:type",Object),_.l("design:paramtypes",[])],JG.prototype,"imageOrientationStyle",null);
_.Z([_.U("instruction.previewInstruction.editButtonLabel"),_.l("design:type",Object),_.l("design:paramtypes",[])],JG.prototype,"editButton",null);_.Z([_.U("instruction.editInstruction.saveButtonLabel"),_.l("design:type",Object),_.l("design:paramtypes",[])],JG.prototype,"saveButton",null);_.Z([_.U("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.l("design:type",Number),_.l("design:paramtypes",[])],JG.prototype,"cropOffsetTop",null);
_.Z([_.U("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.l("design:type",Number),_.l("design:paramtypes",[])],JG.prototype,"cropOffsetLeft",null);_.Z([_.U("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],JG.prototype,"pickerBackgroundStyle",null);_.Z([_.U("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],JG.prototype,"pickerDisplayStyle",null);
_.Z([_.U("cropOffsetLeft","cropOffsetTop"),_.l("design:type",String),_.l("design:paramtypes",[])],JG.prototype,"imageInPickerStyle",null);_.Z([_.U("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.l("design:type",String),_.l("design:paramtypes",[])],JG.prototype,"previewClipperStyle",null);_.Z([_.il("imageData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],JG.prototype,"onImageDataChange",null);
_.Z([_.U("cropCoordinatesSaved"),_.l("design:type",String),_.l("design:paramtypes",[])],JG.prototype,"pickerModeStyle",null);_.Z([_.U("instruction.editInstruction.learnMore"),_.l("design:type",Object),_.l("design:paramtypes",[])],JG.prototype,"learnMore",null);_.Z([_.U("learnMore"),_.l("design:type",Object),_.l("design:paramtypes",[])],JG.prototype,"learnMoreUrl",null);_.Z([_.U_({is:"yt-img-crop-picker",disableElementRegistration:!0})],JG);
_.b(JG,"yt-img-crop-picker",function(){if($Q4===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;DQA===void 0&&(DQA=document.createElement("template"));var R=DQA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);$Q4=k}k=$Q4;return k},{mode:2});var cf=function(){var k=_.p.apply(this,arguments)||this;k.errorMessage="";k.hasPreview=!1;k.isBackstagePost=!1;k.dismissButtonOverrides={size:"XS"};return k};
_.y(cf,_.p);_.I=cf.prototype;_.I.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"}}}};
_.I.detached=function(){this.removeOverlay()};
_.I.setPreview=function(k){_.Cc(this.hostElement).querySelector("#preview-picker").imageData=k;this.hasPreview=!0;_.Me(this.hostElement,"yt-backstage-image-select-preview")};
_.I.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var k=_.Cc(this.hostElement).querySelector("#dropzone");k.classList.remove("dragover");k.classList.remove("error");_.Me(this.hostElement,"yt-backstage-image-select-cancel")};
_.I.setupOverlay=function(){var k=this.imageUploadEndpoint;this.removeOverlay();if(k&&k.imageValidationInfo){var E=_.Cc(this.hostElement).querySelector("#dropzone"),S=_.Cc(this.hostElement).querySelector("#select");this.overlay=new Vr(k.uploadUrl,k.channelId,k.imageValidationInfo.maxFileSizeMb,k.imageValidationInfo.allowedMaxAspectRatio,E,S,!0);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.wX(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.I.removeOverlay=function(){this.overlay&&(_.TA(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.TA(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.TA(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.TA(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.TA(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.I.onDragOver=function(k){var E=_.Cc(this.hostElement).querySelector("#dropzone");_.E_(E,"dragover",k.value)};
_.I.onPreview=function(k){this.setPreview(k.value)};
_.I.onImageError=function(k){if(k.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var E;k=(E=this.data)==null?void 0:E.fileSizeError}else if(k.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var S;k=(S=this.data)==null?void 0:S.invalidError}else if(k.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var R;k=(R=this.data)==null?void 0:R.invalidAspectRatioError}else return;this.errorMessage=_.$n(k);_.Cc(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.I.onImageAlert=function(k){this.onImageError(k)};
_.I.uploadPromise=function(){var k=this,E=this.overlay&&this.overlay.uploadPromise();if(E)return E.catch(function(){throw Error(k.data?_.$n(k.data.uploadFailureError):"");})};
_.mt.Object.defineProperties(cf.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var k,E;if((k=this.data)==null?0:(E=k.icon)==null?0:E.iconType)return _.SF(this.data.icon.iconType)}}});
cf.prototype.setupOverlay=cf.prototype.setupOverlay;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],cf.prototype,"rendererStamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cf.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],cf.prototype,"imageUploadEndpoint",void 0);_.Z([_.H(),_.l("design:type",Object)],cf.prototype,"errorMessage",void 0);
_.Z([_.H(),_.l("design:type",Vr)],cf.prototype,"overlay",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],cf.prototype,"hasPreview",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],cf.prototype,"isBackstagePost",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],cf.prototype,"selectionCancel",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],cf.prototype,"previewCancel",null);
_.Z([_.U("data.icon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],cf.prototype,"icon",null);_.Z([_.H(),_.l("design:type",Object)],cf.prototype,"dismissButtonOverrides",void 0);_.Z([_.il("imageUploadEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cf.prototype,"setupOverlay",null);_.Z([_.D({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],cf);
_.b(cf,"ytd-backstage-image-select-renderer",function(){if(LUY!==void 0)return LUY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return LUY=k},{mode:1});var fPA;var vCd;var m4=function(){var k=_.p.apply(this,arguments)||this;k.selected=!1;return k};
_.y(m4,_.p);_.I=m4.prototype;_.I.computeSelected=function(k){return k==null?void 0:k.selected};
_.I.computeTransform=function(k,E,S){var R,V,N=(V=(R=this.imageContainer)==null?void 0:R.getBoundingClientRect())!=null?V:{width:0,height:0};R=Math.max(N.width/E,N.height/S);S=S*R*k.top;return"translateX("+this.getSignedPosition(E*R*k.left,"X","-")+") translateY("+this.getSignedPosition(S,"Y","-")+")"};
_.I.getSignedPosition=function(k,E,S){return E==="X"&&_.Mg("HTML_DIR")==="rtl"?S==="-"?k+"px":k*-1+"px":S==="-"?k*-1+"px":k+"px"};
_.I.onClick=function(){var k;_.Me(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(k=this.data)==null?void 0:k.image)};
_.I.onKeyPress=function(k){if(k.keyCode===13)this.onClick()};
_.mt.Object.defineProperties(m4.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:(E=k.image)==null?void 0:E.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)!=null&&k.image){var E;k=(E=this.data)==null?void 0:E.image;return k.previewCoordinates.top!==0||k.previewCoordinates.left!==0?(E=this.computeTransform(k.previewCoordinates,k.naturalWidth,k.naturalHeight),k.naturalHeight>=k.naturalWidth?"width:inherit;transform:"+E+";":"height:inherit;transform:"+E+";"):k.naturalHeight>=k.naturalWidth?"width:inherit;":"height:inherit;"}}}});
m4.prototype.onKeyPress=m4.prototype.onKeyPress;_.Z([_.JO(".image-container"),_.l("design:type",HTMLElement)],m4.prototype,"imageContainer",void 0);_.Z([_.H(),_.l("design:type",Object)],m4.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.l("design:type",Object)],m4.prototype,"selected",void 0);_.Z([_.U("data.image"),_.l("design:type",Object),_.l("design:paramtypes",[])],m4.prototype,"thumbnailUrl",null);
_.Z([_.U("data.image","data.image.previewCoordinates"),_.l("design:type",Object),_.l("design:paramtypes",[])],m4.prototype,"thumbnailStyle",null);_.Z([_.nv("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],m4.prototype,"onKeyPress",null);_.Z([_.D({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],m4);
_.b(m4,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(vCd!==void 0)return vCd;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return vCd=k},{mode:2});var e2=function(k,E,S){S=S===void 0?!1:S;_.wG.call(this);var R=this;this.dropZoneOverlay=new mW(k);this.selectOverlay=S?new e_(E,"multiple_file",["image/*"]):new e_(E,"single_file",["image/*"]);this.handler=new _.Bk(this);_.Wy(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(E,"click",function(){R.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.y(e2,_.wG);e2.prototype.onChange=function(k){var E;(E=k.files)!=null&&E.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:k.files}))};var a$=function(){var k=_.p.apply(this,arguments)||this;k.addImageErrorMessage="";k.errorMessage="";k.images=[];k.selectedImageIndex=0;k.modern=_.Y("web_modern_buttons");k.maxNumImagesPerPost=_.wO("max_num_images_per_post_web_ui");k.JSC$15839_imageId=0;return k};
_.y(a$,_.p);_.I=a$.prototype;_.I.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Me(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.I.observeDragToReorder=function(){var k=this;if(this.showImagesPreview){var E,S=Ma5(_.ts.getInstance(),(E=this.data)==null?void 0:E.dragToReorderTooltip);_.ZJ.addLowPriorityJob(function(){_.Ot(k.hostElement,S,k.thumbnailDragDropArea)})}};
_.I.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}}};
_.I.computeThumbnail=function(k){return(k==null?void 0:k.localImageSrc)||void 0};
_.I.onRendererstamperFinished=function(){_.uZY(this.ytReorderableBehavior,_.Cc(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Cc(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.I.handleDrop=function(k){var E=k.currDragItem;if(E!=null&&E.data){k=this.images[this.selectedImageIndex];var S=E.data.image,R=this.images.indexOf(S)||0;E=_.$b(E.parentNode.children,E);this.images.splice(R,1);this.images.splice(E,0,S);this.images=[].concat(_.$e(this.images));this.selectedImageIndex=this.images.indexOf(k)}};
_.I.setUpImagePicker=function(){var k=this.imageUploadEndpoint;k&&k.imageValidationInfo&&(this.uploadManager=new nW(k.uploadUrl,k.channelId),this.initialPicker||(this.initialPicker=new e2(this.dropzone,this.selectLink,!0),_.wX(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new e2(this.addImageButtonContainer,this.addImageSelectButton),_.wX(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.wX(this.JSC$15839_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.wX(this.JSC$15839_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.wX(_.Cc(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.I.detached=function(){this.initialPicker&&(_.TA(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.TA(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.I.onInitialSelectImages=function(k){var E=this;return _.c(function(S){return S.yield(E.onSelectImages(k,!1),0)})};
_.I.onAddImage=function(k){var E=this;return _.c(function(S){return S.yield(E.onSelectImages(k,!0),0)})};
_.I.onSelectImages=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z;return _.c(function(kb){switch(kb.nextAddress){case 1:E?S.addImageErrorMessage="":(S.images=[],S.errorMessage="");R=k.detail;V=S.validateImages([].concat(_.$e(R)));if(V!=="")return E?S.addImageErrorMessage=V:S.errorMessage=V,kb.return();N=[].concat(_.$e(R)).map(function(TI){return(new SK(S.maxAspectRatio,!1,!0)).transform(TI)});
return kb.yield(Promise.allSettled(N),2);case 2:h=kb.yieldResult,J=_.n(h.entries()),m=J.next();case 3:if(m.done){kb.jumpTo(5);break}a=m.value;T=_.n(a);w=T.next().value;P=T.next().value;B=w;F=P;if(F.status!=="fulfilled"){x=r=K=void 0;E?S.addImageErrorMessage=_.$n((K=S.data)==null?void 0:K.invalidError):S.errorMessage=S.errorMessage===""?_.$n((r=S.data)==null?void 0:r.invalidError):_.$n((x=S.data)==null?void 0:x.multiFileError);kb.jumpTo(4);break}L=F.value;L.cropped&&_.Me(S.hostElement,"yt-backstage-multi-image-cropped");
if(L.invalidAspectRatio){d=M=q=void 0;E?S.addImageErrorMessage=_.$n((q=S.data)==null?void 0:q.invalidAspectRatioError):S.errorMessage=S.errorMessage===""?_.$n((M=S.data)==null?void 0:M.invalidAspectRatioError):_.$n((d=S.data)==null?void 0:d.multiFileError);kb.jumpTo(4);break}return kb.yield(OqC(S.JSC$15839_imageId,k.detail[B],L.transformedData),8);case 8:z=kb.yieldResult,S.images.push(z),S.JSC$15839_imageId++;case 4:m=J.next();kb.jumpTo(3);break;case 5:if(S.errorMessage!==""||S.addImageErrorMessage!==
"")return kb.return();E?UQp(S.uploadManager,[S.images[S.images.length-1]]):UQp(S.uploadManager,S.images);S.images=[].concat(_.$e(S.images));S.selectedImageIndex=E?Math.max(S.images.length-1,0):0;_.Me(S.hostElement,"yt-backstage-multi-image-select");_.KR(kb)}})};
_.I.onThumbnailClick=function(k){if(k=k.event_.detail)this.selectedImageIndex=this.images.indexOf(k)};
_.I.validateImages=function(k){if(k.length>this.maxNumImagesPerPost){var E;return _.$n((E=this.data)==null?void 0:E.multiImageExceedMaxImageCountError)}var S=1048576*this.maxFileSizeMb;k=k.filter(function(N){return N.size>S}).length;
if(k===0)return"";var R,V;k=k>1?(R=this.data)==null?void 0:R.multiFileError:(V=this.data)==null?void 0:V.fileSizeError;return _.$n(k)};
_.I.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.$e(this.images));this.selectedImageIndex=0};
_.I.repositionImage=function(k){this.images[this.selectedImageIndex].previewCoordinates=k.event_.detail;this.images=[].concat(_.$e(this.images))};
_.I.getAllUploadStatuses=function(){var k=this,E,S,R,V;return _.c(function(N){if(N.nextAddress==1)return N.yield(k.uploadManager.getAllUploadStatuses(),2);E=N.yieldResult;S=_.n(E);for(R=S.next();!R.done;R=S.next())if(V=R.value,V.encryptedBlobId===void 0)return N.return(HeT(k.uploadManager));return N.return(E)})};
_.I.hasImages=function(){return this.images.length>0};
_.I.cancel=function(){for(var k=this.uploadManager,E=_.n(k.imagesUploadData),S=E.next();!S.done;S=E.next())k.cancel(S.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Me(this.hostElement,"yt-backstage-multi-image-cancel")};
_.mt.Object.defineProperties(a$.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.imageUploadEndpoint)==null?void 0:(E=k.imageValidationInfo)==null?void 0:E.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.imageUploadEndpoint)==null?void 0:(E=k.imageValidationInfo)==null?void 0:E.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var k,E;if((k=this.data)==null?0:(E=k.icon)==null?0:E.iconType)return _.SF(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.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 k=this;return(this.images||[]).map(function(E,S){return{renderer:{image:E,selected:S===k.selectedImageIndex}}})}}});
a$.prototype.setUpImagePicker=a$.prototype.setUpImagePicker;a$.prototype.onRendererstamperFinished=a$.prototype.onRendererstamperFinished;a$.prototype.observeDragToReorder=a$.prototype.observeDragToReorder;a$.prototype.observeAddImageError=a$.prototype.observeAddImageError;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],a$.prototype,"rendererStamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.xKC),_.l("design:type",Object)],a$.prototype,"ytReorderableBehavior",void 0);_.Z([_.JO("#dropzone"),_.l("design:type",HTMLElement)],a$.prototype,"dropzone",void 0);_.Z([_.JO("#select-link"),_.l("design:type",HTMLElement)],a$.prototype,"selectLink",void 0);_.Z([_.JO("#thumbnail-drag-drop-area"),_.l("design:type",HTMLElement)],a$.prototype,"thumbnailDragDropArea",void 0);_.Z([_.JO("#add-image-button-container"),_.l("design:type",HTMLElement)],a$.prototype,"addImageButtonContainer",void 0);
_.Z([_.JO("#add-image-button"),_.l("design:type",HTMLElement)],a$.prototype,"addImageSelectButton",void 0);_.Z([_.JO("#image-preview-container"),_.l("design:type",Object)],a$.prototype,"JSC$15839_imagePreviewContainer",void 0);_.Z([_.H(),_.l("design:type",Object)],a$.prototype,"addImageErrorMessage",void 0);_.Z([_.H(),_.l("design:type",Object)],a$.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],a$.prototype,"errorMessage",void 0);
_.Z([_.H(),_.l("design:type",Object)],a$.prototype,"imageUploadEndpoint",void 0);_.Z([_.H(),_.l("design:type",Array)],a$.prototype,"images",void 0);_.Z([_.H(),_.l("design:type",e2)],a$.prototype,"initialPicker",void 0);_.Z([_.H(),_.l("design:type",e2)],a$.prototype,"addImagePicker",void 0);_.Z([_.H(),_.l("design:type",nW)],a$.prototype,"uploadManager",void 0);_.Z([_.H(),_.l("design:type",Object)],a$.prototype,"selectedImageIndex",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],a$.prototype,"modern",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],a$.prototype,"maxNumImagesPerPost",void 0);_.Z([_.U("imageUploadEndpoint"),_.l("design:type",Number),_.l("design:paramtypes",[])],a$.prototype,"maxAspectRatio",null);_.Z([_.U("imageUploadEndpoint"),_.l("design:type",Number),_.l("design:paramtypes",[])],a$.prototype,"maxFileSizeMb",null);
_.Z([_.U("data.icon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],a$.prototype,"dropIcon",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],a$.prototype,"selectionCancel",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],a$.prototype,"previewCancel",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],a$.prototype,"dataForAddImageButton",null);
_.Z([_.U("errorMessage"),_.l("design:type",String),_.l("design:paramtypes",[])],a$.prototype,"dropzoneClass",null);_.Z([_.U("images"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],a$.prototype,"showImagesPreview",null);_.Z([_.U("images"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],a$.prototype,"containMaxImages",null);_.Z([_.il("addImageErrorMessage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a$.prototype,"observeAddImageError",null);
_.Z([_.il("showImagesPreview"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a$.prototype,"observeDragToReorder",null);_.Z([_.U("images","selectedImageIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],a$.prototype,"selectedImageData",null);_.Z([_.U("images","selectedImageIndex"),_.l("design:type",Array),_.l("design:paramtypes",[])],a$.prototype,"thumbnailRenderers",null);
_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a$.prototype,"onRendererstamperFinished",null);_.Z([_.il("imageUploadEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a$.prototype,"setUpImagePicker",null);_.Z([_.D({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],a$);
_.b(a$,"ytd-backstage-multi-image-select-renderer",function(){if(fPA!==void 0)return fPA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return fPA=k},{mode:1});var beY;var Ze5;var dQz;var tG=function(){var k=_.p.apply(this,arguments)||this;k.boundCaptureFocus=function(E){k.onCaptureFocus(E)};
return k};
_.y(tG,_.p);_.I=tG.prototype;_.I.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.I.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.I.onCaptureFocus=function(k){_.vT(k).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.I.getIconType=function(k){return k?"yt-icons:"+k.toLowerCase():null};
_.I.onSelect=function(){var k;if((k=this.data)==null?0:k.onSelectCommand)if(_.Y("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var E;((E=_.W(this.data.onSelectCommand.commandMetadata,_.Sd))==null?0:E.url)?_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.en().resolve(_.t3).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.mt.Object.defineProperties(tG.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.$n(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}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],tG.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tG.prototype,"data",void 0);_.Z([_.JO("#item"),_.l("design:type",HTMLElement)],tG.prototype,"item",void 0);_.Z([_.U("data.label"),_.l("design:type",String),_.l("design:paramtypes",[])],tG.prototype,"label",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],tG.prototype,"value",null);_.Z([_.D({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],tG);
_.b(tG,"ytd-privacy-dropdown-item-renderer",function(){if(dQz!==void 0)return dQz;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return dQz=k},{mode:1});var T1=function(){var k=_.p.apply(this,arguments)||this;k.value="";k.label="";k.disabled=!1;return k};
_.y(T1,_.p);_.I=T1.prototype;_.I.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"}}}};
_.I.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.I.dataChanged=function(){this.reset()};
_.I.valueChanged=function(){var k;if(this.value&&(k=this.data)!=null&&k.entries){k=_.n(this.data.entries);for(var E=k.next();!E.done;E=k.next())if((E=this.getRendererForEntry(E.value))&&this.getItemRendererValue(E)===this.value){this.label=this.ytComponentBehavior.getSimpleString(E.label);break}}};
_.I.setInitialLabel=function(){if(this.data&&this.data.entries)for(var k=_.n(this.data.entries),E=k.next();!E.done;E=k.next())if(E=this.getRendererForEntry(E.value)){if(E.isSelected){this.label=this.ytComponentBehavior.getSimpleString(E.label);break}this.data.label&&(this.label=this.data.label)}};
_.I.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var k=_.n(this.data.entries),E=k.next();!E.done;E=k.next()){E=this.getRendererForEntry(E.value);var S=void 0;if((S=E)==null?0:S.isSelected)return this.getItemRendererValue(E)||-1}return-1};
_.I.getItemRendererValue=function(k){return"stringValue"in k||"int32Value"in k?k.stringValue||k.int32Value||null:null};
_.I.getRendererForEntry=function(k){return k.dropdownItemRenderer||k.privacyDropdownItemRenderer||k.navigationDropdownItemRenderer||null};
_.I.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("value-changed",this.value))};
_.I.updateValueFromBinding=function(k){this.value=k.detail.value};
T1.prototype.valueChangedForBinding=T1.prototype.valueChangedForBinding;T1.prototype.valueChanged=T1.prototype.valueChanged;T1.prototype.dataChanged=T1.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],T1.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],T1.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],T1.prototype,"value",void 0);_.Z([_.H(),_.l("design:type",Object)],T1.prototype,"label",void 0);_.Z([_.JO("#entries"),_.l("design:type",Object)],T1.prototype,"entries",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],T1.prototype,"disabled",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T1.prototype,"dataChanged",null);
_.Z([_.ac("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T1.prototype,"valueChanged",null);_.Z([_.il("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T1.prototype,"valueChangedForBinding",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],T1);
_.b(T1,"ytd-flat-dropdown-renderer",function(){if(Ze5!==void 0)return Ze5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Ze5=k},{mode:1});var sGC;var wQ=function(){var k=_.p.apply(this,arguments)||this;k.quizOptions=[];k.explanationPlaceholderText="";k.optionPlaceholderText="";k.correctAnswerIndex=-1;k.isMarkAnswerTooltipShown=!1;k.timer=0;return k};
_.y(wQ,_.p);_.I=wQ.prototype;_.I.dataChanged=function(){this.optionPlaceholderText=_.$n(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.$n(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.I.onMarkCorrectAnswer=function(k){var E,S=((E=this.quizOptions[this.correctAnswerIndex])==null?void 0:E.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[k.model.index]=Object.assign({},this.quizOptions[k.model.index],{explanationText:S,isCorrect:!0});this.correctAnswerIndex=k.model.index;this.quizOptions=[].concat(_.$e(this.quizOptions))};
_.I.updatePlaceholderTexts=function(){for(var k=!1,E=[],S=0;S<this.quizOptions.length;S++){var R=this.optionPlaceholderText+" "+(S+1),V=void 0;((V=this.quizOptions[S])==null?void 0:V.placeholderText)!==R?(k=!0,E.push(Object.assign({},this.quizOptions[S],{placeholderText:R}))):E.push(this.quizOptions[S])}k&&(this.quizOptions=E);this.isValid()?_.Me(this.hostElement,"yt-commentbox-post-enable"):_.Me(this.hostElement,"yt-commentbox-post-disable")};
_.I.getSimpleString=function(k){return _.$n(k)};
_.I.createQuizOptions=function(k){var E=[],S;k=(S=k==null?void 0:k.minQuizOptions)!=null?S:0;for(S=0;S<k;S++)E.push(this.createQuizOption());return E};
_.I.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.$e(this.quizOptions),[this.createQuizOption()]))};
_.I.onInput=function(){this.quizOptions=[].concat(_.$e(this.quizOptions))};
_.I.onExplanationInput=function(){_.Me(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.I.onRemoveQuizOption=function(k){this.quizOptions.splice(k.model.index,1);k.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:k.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.$e(this.quizOptions));this.quizOptions.length===0&&_.Me(this.hostElement,"yt-quiz-attachment-dismiss")};
_.I.updateHintRenderer=function(){var k=this;clearTimeout(this.timer);this.timer=setTimeout(function(){k.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.I.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var k=0,E=0,S=_.n(this.quizOptions),R=S.next();!R.done;R=S.next()){R=R.value;var V=void 0;if(((V=R.optionText)==null?void 0:V.trim())!==""||R.isCorrect){R.isCorrect&&E++;V=void 0;if(this.hasCustomOptionText&&((V=R.optionText)==null?void 0:V.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;k++}}return k>=
Number(this.editorInfo.minQuizOptions)&&E===1};
_.I.getPostCreateOptions=function(){for(var k=[],E=_.n(this.quizOptions),S=E.next();!S.done;S=E.next()){S=S.value;var R=void 0;((R=S.optionText)==null?void 0:R.trim())!==""&&k.push({pollOption:{text:S.optionText,explanation:S.explanationText},isCorrect:S.isCorrect})}return k};
_.I.getExplanationText=function(){var k;return((k=this.quizOptions[this.correctAnswerIndex])==null?void 0:k.explanationText)||""};
_.I.maybeDisplayMarkAnswerEduToolTip=function(){var k,E,S,R,V,N,h;this.shouldShowMarkAnswerTooltip()&&((k=this.editorInfo)==null?0:(E=k.markAnswerButton)==null?0:(S=E.buttonRenderer)==null?0:(R=S.hint)==null?0:(V=R.hintRenderer)==null?0:(N=V.content)==null?0:(h=N.bubbleHintRenderer)==null?0:h.text)&&(_.ts.getInstance(),k=TM(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,(k==null?void 0:k.length)>0&&this.optionSelectors&&_.Ni(k[0],this.optionSelectors[0]))};
_.I.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var k=0,E=_.n(this.quizOptions),S=E.next();!S.done;S=E.next()){S=S.value;var R=void 0;((R=S.optionText)==null?void 0:R.trim())!==""&&k++;if(S.isCorrect)return!1}return k<2?!1:!0};
_.I.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.I.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.I.updateOptionTextFromBinding=function(k){if(k.target){var E=Array.from(_.Cc(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(k.target);if(E>=0){var S;this.quizOptions[E].optionText=(S=k.detail.value)!=null?S:""}}};
_.mt.Object.defineProperties(wQ.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(k=this.editorInfo)==null?void 0:(E=k.addOptionButton)==null?void 0:E.buttonRenderer;S&&(S.style="STYLE_SUGGESTIVE",S.size="SIZE_SMALL",S.isDisabled=!this.isAllowedToAddOption);return(S==null?0:S.text)?S:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var k,E;return this.quizOptions.length<((E=(k=this.editorInfo)==null?void 0:k.maxQuizOptions)!=null?E:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(k){var E;return(E=k.optionText)==null?void 0:E.trim()})}}});
wQ.prototype.updatePlaceholderTexts=wQ.prototype.updatePlaceholderTexts;wQ.prototype.dataChanged=wQ.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],wQ.prototype,"editorInfo",void 0);_.Z([_.H(),_.l("design:type",Array)],wQ.prototype,"quizOptions",void 0);_.Z([_.H(),_.l("design:type",Object)],wQ.prototype,"explanationPlaceholderText",void 0);_.Z([_.cu(".option-selector-button"),_.l("design:type",Array)],wQ.prototype,"optionSelectors",void 0);
_.Z([_.ac("editorInfo"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wQ.prototype,"dataChanged",null);_.Z([_.U("editorInfo","isAllowedToAddOption","quizOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],wQ.prototype,"addAnswerButton",null);_.Z([_.U("editorInfo","quizOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],wQ.prototype,"isAllowedToAddOption",null);
_.Z([_.ac("quizOptions"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wQ.prototype,"updatePlaceholderTexts",null);_.Z([_.U("quizOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],wQ.prototype,"hasCustomOptionText",null);_.Z([_.D({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],wQ);
_.b(wQ,"ytd-backstage-quiz-editor-renderer",function(){if(sGC!==void 0)return sGC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return sGC=k},{mode:2});var lPC;var MAA=(kz.FIRSTDAYOFWEEK+1)%7;var qud;var zlY=[],QGz=0,Oep=0;QGz=0;Oep=24;if(.25*(Oep-QGz)<0)qud=[];else{for(var GS5=QGz;GS5<Oep;GS5+=.25)zlY.push(GS5);qud=zlY}var Cmp=qud.map(function(k){k=k*60*60;return{secondsSinceMidnight:k,text:(new ji(7)).format(new Date(0,0,0,0,0,k))}});var k5z;var Pf=function(){var k=_.p.apply(this,arguments)||this;k.skipNextOpenDialog=!1;k.errorMessage="";k.previousMonthLabel=_.Vi("PREVIOUS_MONTH_LABEL");k.nextMonthLabel=_.Vi("NEXT_MONTH_LABEL");return k};
_.y(Pf,_.p);_.I=Pf.prototype;_.I.attached=function(){var k=this,E=new MutationObserver(function(){k.JSC$15881_calendarMain.scrollHeight>0&&(E.disconnect(),k.calendarConfig&&k.calendarConfig.selectedDate&&k.scrollToDate())});
E.observe(this.JSC$15881_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){E.disconnect()},1E3)};
_.I.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.I.onDateTextChange=function(){if(this.calendarConfig){var k=this.validateDateText();k.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(k.details)):this.textbox.setAttribute("invalid","")}};
_.I.handleDayClick=function(k){k.model.day.date&&(this.commitDate(k.model.day.date),this.dialog.close())};
_.I.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var k=iDI(this.calendarConfig.selectedDate,this.renderData);k!==void 0&&this.JSC$15881_calendarMain.scrollToIndex(k)}};
_.I.scrollToNextMonth=function(){this.JSC$15881_calendarMain.scrollToIndex(this.JSC$15881_calendarMain.firstVisibleIndex+1)};
_.I.scrollToPrevMonth=function(){this.JSC$15881_calendarMain.firstVisibleIndex===0&&this.JSC$15881_calendarMain.scrollTo(0,0);this.JSC$15881_calendarMain.scrollToIndex(this.JSC$15881_calendarMain.firstVisibleIndex-1)};
_.I.onFormSubmit=function(k){k.preventDefault();this.calendarConfig&&(k=this.validateDateText(),k.isValid&&(this.commitDate(k.details),this.dialog.close()))};
_.I.onEscOrClickingOutside=function(k){k=k.detail.path&&!!k.detail.path.length&&k.detail.path[0];if(k.classList.contains("ytd-calendar-date-picker")){k===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var E=0;E<this.dropdownButton.children.length;E++)this.dropdownButton.children[E]===k&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}k=this.textbox.value!==this.dateText;E=this.validateDateText();k&&E.isValid&&this.commitDate(E.details);this.dialog.close();this.textbox.value=
this.dateText};
_.I.commitDate=function(k){this.calendarConfig&&(this.set("calendarConfig.selectedDate",k),_.Me(this.hostElement,"ytd-calendar-date-selected",k))};
_.I.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var k=this.textbox.value;var E=new Date;k=(new ULb(2)).parse(k,E,{validate:!0})===k.length?I$j(E):void 0;if(!k)return this.errorMessage=_.Vi("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};E=this.calendarConfig.start;var S=this.calendarConfig.end;if(E5h(k,E))return this.errorMessage=_.Vi("ENTER_DATE_OR_LATER",{allowed_date:Neb(E)}),{isValid:!1,details:void 0};if(E5h(S,k))return this.errorMessage=
_.Vi("ENTER_DATE_OR_EARLIER",{allowed_date:Neb(S)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:k}};
_.mt.Object.defineProperties(Pf.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Neb(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var k=this.calendarConfig,E=[],S=0;S<7;S++)E.push(kz.NARROWWEEKDAYS[(S+MAA)%7]);S=[];for(var R=new Date(k.start.year,k.start.month);R.getFullYear()<k.end.year||R.getFullYear()===k.end.year&&R.getMonth()<=k.end.month;){var V=S,N=V.push,h=R.getFullYear(),J=R.getMonth(),m=k,a=void 0,T=[],w=Object.freeze({extraCssClass:"invisible",debugClass:""}),P=new Date(h,J),B=I$j(P);P=P.getDay();for(var F=I$j(new Date);B.month===
J;){P!==MAA&&a||(a=Array.from({length:7}).fill(w),T.push(a));var K={date:{year:h,month:J,day:B.day},extraCssClass:"",debugClass:""};m.selectedDate&&K.date&&kfj(K.date,m.selectedDate)&&(K.extraCssClass+=" selected");if(E5h(B,m.start)||E5h(m.end,B))K.extraCssClass+=" disabled";kfj(B,F)&&(K.extraCssClass+=" today");K.extraCssClass=K.extraCssClass.trim();a[(P-MAA+7)%7]=K;B=R4A(B);P=(P+1)%7}N.call(V,{weeks:T,monthLabel:kz.SHORTMONTHS[J]+" "+h,year:h,month:J,monthLabelExtraCssClass:T[0][2]===w?"shift-down-label":
""});R.setMonth(R.getMonth()+1)}return{months:S,daysOfWeekLabel:E}}}}});
Pf.prototype.onEscOrClickingOutside=Pf.prototype.onEscOrClickingOutside;Pf.prototype.scrollToDate=Pf.prototype.scrollToDate;_.Z([_.H(),_.l("design:type",Object)],Pf.prototype,"calendarConfig",void 0);_.Z([_.H(),_.l("design:type",Object)],Pf.prototype,"skipNextOpenDialog",void 0);_.Z([_.H(),_.l("design:type",Object)],Pf.prototype,"errorMessage",void 0);_.Z([_.H(),_.l("design:type",Object)],Pf.prototype,"previousMonthLabel",void 0);
_.Z([_.H(),_.l("design:type",Object)],Pf.prototype,"nextMonthLabel",void 0);_.Z([_.JO("#textbox"),_.l("design:type",HTMLInputElement)],Pf.prototype,"textbox",void 0);_.Z([_.JO("#calendar-dialog"),_.l("design:type",Object)],Pf.prototype,"dialog",void 0);_.Z([_.JO("#calendar-main"),_.l("design:type",Object)],Pf.prototype,"JSC$15881_calendarMain",void 0);_.Z([_.JO("#date-picker"),_.l("design:type",HTMLElement)],Pf.prototype,"dropdownButton",void 0);
_.Z([_.U("calendarConfig.selectedDate"),_.l("design:type",String),_.l("design:paramtypes",[])],Pf.prototype,"dateText",null);_.Z([_.U("calendarConfig","calendarConfig.selectedDate"),_.l("design:type",Object),_.l("design:paramtypes",[])],Pf.prototype,"renderData",null);_.Z([_.il("renderData","calendarConfig.selectedDate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pf.prototype,"scrollToDate",null);
_.Z([_.nv("iron-overlay-canceled"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Pf.prototype,"onEscOrClickingOutside",null);_.Z([_.U_({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Pf);
_.b(Pf,"ytd-calendar-date-picker",function(){if(k5z!==void 0)return k5z;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return k5z=k},{mode:2});var Eiz=_.Vi("UTC_OFFSET_FORMAT",{utc_offset:(new ji("Z")).format(new Date)}),SyY=(new Date).getTimezoneOffset()*-60,RFA=new Date,VUd,NsY=Lr(RFA.getTimezoneOffset());VUd=gv5(HUC(NsY,RFA));var Ihd=_.Vi("LOCAL_TIME_GMT_LABEL",{gmt_text:VUd.replace("+0","+").replace("-0","-").replace(":00","")}),Bf=function(){var k=_.p.apply(this,arguments)||this;k.selectedTimeIndex=0;k.selectedTimezoneIndex=0;k.timeOfDayOptions=Cmp;return k};
_.y(Bf,_.p);_.I=Bf.prototype;_.I.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var k=VPh();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=k,this.selectedTimeIndex=0;else{var E=n5t(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},k,{selectedDate:E.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(S){return S.secondsSinceMidnight===E.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.I.onDatePicked=function(k){this.selectedDate=k.detail};
_.I.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Me(this.hostElement,"ytd-date-time-selection-cancelled")};
_.I.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var k=this.selectedDate;k=new Date(k.year,k.month,k.day);_.Me(this.hostElement,"ytd-date-time-selection-update",Math.floor(k.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+k.getTimezoneOffset()*60))}};
_.I.getTimezoneFormat=function(k){return k.localizedDisplayText?k.localizedDisplayText:_.Vi("TIMEZONE_FORMAT",{utc_offset_text:""+k.localizedUtcOffset,city_name:""+k.localizedName})};
_.I.updateSelectedTimeIndexFromBinding=function(k){this.selectedTimeIndex=k.detail.value};
_.I.updateSelectedTimezoneIndexFromBinding=function(k){this.selectedTimezoneIndex=k.detail.value};
_.mt.Object.defineProperties(Bf.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var k=this.data.timezoneOptions;var E={name:"Etc/Unknown",localizedName:_.Vi("LOCAL_TIME_LABEL"),localizedUtcOffset:Eiz,utcOffsetSec:""+SyY,localizedDisplayText:Ihd};k?k.length&&k[0].name!==E.name&&(k[0].localizedDisplayText||(E.localizedDisplayText=""),k.unshift(E)):k=[E];return k}}},
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]}}});
Bf.prototype.onDateTimeTimezoneChange=Bf.prototype.onDateTimeTimezoneChange;Bf.prototype.onDatePicked=Bf.prototype.onDatePicked;Bf.prototype.updateDefaultSelectedValue=Bf.prototype.updateDefaultSelectedValue;_.Z([_.H(),_.l("design:type",Object)],Bf.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Bf.prototype,"calendarConfig",void 0);_.Z([_.H(),_.l("design:type",Object)],Bf.prototype,"selectedDate",void 0);_.Z([_.H(),_.l("design:type",Object)],Bf.prototype,"selectedTimeIndex",void 0);
_.Z([_.H(),_.l("design:type",Object)],Bf.prototype,"selectedTimezoneIndex",void 0);_.Z([_.JO("#time-listbox"),_.l("design:type",Object)],Bf.prototype,"timeListBox",void 0);_.Z([_.JO("#timezone-listbox"),_.l("design:type",Object)],Bf.prototype,"timezoneListBox",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Bf.prototype,"rendererStamperBehavior",void 0);_.Z([_.U("data.timezoneOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bf.prototype,"timeZones",null);
_.Z([_.ac("data","timeZones"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bf.prototype,"updateDefaultSelectedValue",null);_.Z([_.U("selectedTimezoneIndex","timeZones"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bf.prototype,"selectedTimezone",null);_.Z([_.U("selectedTimeIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bf.prototype,"selectedTime",null);
_.Z([_.nv("ytd-calendar-date-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Bf.prototype,"onDatePicked",null);_.Z([_.il("selectedTimezone","selectedTime","selectedDate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bf.prototype,"onDateTimeTimezoneChange",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Bf);
_.b(Bf,"ytd-date-time-picker-renderer",function(){if(lPC!==void 0)return lPC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return lPC=k},{mode:1});var nij;var Y0=function(){var k=_.p.apply(this,arguments)||this;k.boundOnTapDismissButton=function(){k.dismissTapHandler()};
k.dismissButtonOverrides={size:"XS"};return k};
_.y(Y0,_.p);Y0.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}}}}}};
Y0.prototype.dismissTapHandler=function(){_.Me(this.hostElement,"yt-backstage-attachment-dismissed")};
Y0.prototype.computeAttachmentType=function(k){return k?k.backstageImageRenderer?"image":k.videoRenderer?"video":"none":"none"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Y0.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Y0.prototype,"attachmentPreview",void 0);_.Z([_.H(),_.l("design:type",Object)],Y0.prototype,"dismissButton",void 0);_.Z([_.H(),_.l("design:type",Object)],Y0.prototype,"boundOnTapDismissButton",void 0);
_.Z([_.H(),_.l("design:type",Object)],Y0.prototype,"dismissButtonOverrides",void 0);_.Z([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.l("design:type",String)],Y0.prototype,"attachmentType",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],Y0);
_.b(Y0,"ytd-backstage-dismissable-attachment",function(){if(nij!==void 0)return nij;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return nij=k},{mode:1});var iBd;var Wf=function(){var k=_.p.apply(this,arguments)||this;k.selectedVideoId=void 0;k.picker=void 0;k.dismissButtonOverrides={size:"XS"};k.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return k};
_.y(Wf,_.p);_.I=Wf.prototype;_.I.onServiceRequestCompleted=function(k){k.stopPropagation()};
_.I.handleAddVideoPreviewAction=function(k){k=this.get("addVideoPreviewAction",k);this.onGetVideoPreviewSuccess(k)};
_.I.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}}}}}};
_.I.onLaunchVideoPicker=function(k){var E=this,S=_.$n(this.get("addVideoLinkAction.title",k)),R=this.get("addVideoLinkAction.onePickHostId",k);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",k);R&&(this.picker||(S=_.wn2(_.y7h(R).setTitle(S).addView(eRz()).addView(mmT()),function(V){E.onPickVideo(V)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",k)||S.addView("youtube"),this.picker=S.build()),this.picker.setVisible(!0))};
_.I.onPickVideo=function(k){if(k)if(k.action==="cancel")_.Me(this.hostElement,"yt-video-link-button-cancel");else if(k.action==="picked"){k=k.docs;if(!k||k.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(k=(k==null?0:k.length)?k[0]:void 0)?k.id:void 0;this.setVideoPreview()}};
_.I.setVideoPreview=function(){var k=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){k.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.I.onGetVideoPreviewSuccess=function(k){if(k&&k.videoPreview&&k.cancelButton)this.videoPreview=k.videoPreview,this.cancelButton=k.cancelButton,_.Me(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.I.onGetVideoPreviewError=function(){this.cancel()};
_.I.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Me(this.hostElement,"yt-video-link-cancel")};
_.I.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
Wf.prototype.onServiceRequestCompleted=Wf.prototype.onServiceRequestCompleted;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Wf.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Wf.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Wf.prototype,"videoPreview",void 0);_.Z([_.H(),_.l("design:type",Object)],Wf.prototype,"cancelButton",void 0);_.Z([_.H(),_.l("design:type",Object)],Wf.prototype,"getVideoPreviewCommand",void 0);_.Z([_.H(),_.l("design:type",Object)],Wf.prototype,"dismissButtonOverrides",void 0);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Wf.prototype,"onServiceRequestCompleted",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],Wf);
_.b(Wf,"ytd-backstage-video-link-attachment",function(){if(iBd!==void 0)return iBd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return iBd=k},{mode:1});var hFd;var Jm4;var cmY;var Fj=function(){return _.p.apply(this,arguments)||this};
_.y(Fj,_.p);Fj.prototype.dataChanged=function(){this.active=!1};
Fj.prototype.onTap=function(){_.Me(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Fj.prototype.identity=function(k){return k};
_.mt.Object.defineProperties(Fj.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R;if((k=this.data)==null?0:(E=k.image)==null?0:(S=E.thumbnails)==null?0:(R=S[0])==null?0:R.url)return k=this.data.image.thumbnails[0].url,k.startsWith("data:image/svg+xml")?Lg(k):_.ZF(k)}}});
Fj.prototype.dataChanged=Fj.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],Fj.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fj.prototype,"active",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fj.prototype,"dataChanged",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Fj.prototype,"imageSrc",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Fj);
_.b(Fj,"ytd-emoji-suggestion",function(){if(cmY!==void 0)return cmY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return cmY=k},{mode:1});var mvd=/.*([:@#].*?)$/,y9=function(){var k=_.p.apply(this,arguments)||this;k.suggestions=[];k.suggestionIndex=-1;k.JSC$15909_lastSuggestionRange=null;return k};
_.y(y9,_.p);_.I=y9.prototype;_.I.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.I.getSuggestions=function(k){var E=[],S=Lg5(this.emojiManager,k.substr(0,3));if(S)for(var R in S)if(R.toLocaleLowerCase().indexOf(k)===0){var V=S[R];if(V&&V.emojiId){V=CG(this.emojiManager,V.emojiId);var N=void 0,h=void 0,J=void 0,m=void 0,a=((N=V)==null?0:N.isCustomEmoji)?(h=V)==null?void 0:(J=h.shortcuts)==null?void 0:J[0]:(m=V)==null?void 0:m.emojiId;N=void 0;E.push({suggestion:{image:(N=V)==null?void 0:N.image,alt:a,text:R}});if(E.length>=64)break}}return E?E.sort(function(T,w){return w.suggestion.text<
T.suggestion.text?-1:w.suggestion.text===T.suggestion.text?0:1}):null};
_.I.insertSuggestion=function(k){_.Me(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15909_lastSuggestionRange,text:k.alt});this.dropdown.opened=!1};
_.I.updateSuggestionsAtCaret=function(k){this.updateSuggestions(k,this.retrieveTextBeforeRange(k))};
_.I.offsetStartOfRangeBy=function(k,E){k.startOffset>=E&&k.setStart(k.startContainer,k.startOffset-E)};
_.I.updateSuggestions=function(k,E){var S=this;this.JSC$15909_lastSuggestionRange&&(this.JSC$15909_lastSuggestionRange.detach(),this.JSC$15909_lastSuggestionRange=null);if((E=mvd.exec(E))&&E.length&&(E=E[E.length-1].toLocaleLowerCase(),E.length>2||E===":_")&&(this.offsetStartOfRangeBy(k,E.length),this.JSC$15909_lastSuggestionRange=k,(k=this.getSuggestions(E))&&k.length)){this.suggestions=k;_.JB(this,function(){S.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(k.length-1);return}this.dropdown.opened=!1};
_.I.onKeyDown=function(k){if(this.dropdown.opened)switch(k.key){case "Escape":this.dropdown.opened=!1;k.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);k.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);k.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),k.preventDefault()}};
_.I.onKeyUp=function(k,E){switch(k.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(E);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(E)}};
_.I.onKeyPress=function(k){k.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),k.preventDefault())};
_.I.changeSuggestionIndex=function(k){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(k+this.suggestions.length)%this.suggestions.length,k=this.dropdownContent.children[this.suggestionIndex],k.active=!0,this.dropdownContent.scrollTop=k.offsetTop)};
_.I.retrieveTextBeforeRange=function(k){var E=k.startContainer;return E&&E.nodeType===Node.TEXT_NODE?E.textContent.substr(0,k.startOffset):""};
y9.prototype.onKeyPress=y9.prototype.onKeyPress;y9.prototype.onKeyUp=y9.prototype.onKeyUp;y9.prototype.onKeyDown=y9.prototype.onKeyDown;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],y9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Array)],y9.prototype,"suggestions",void 0);_.Z([_.H(),_.l("design:type",_.ON)],y9.prototype,"emojiManager",void 0);_.Z([_.H(),_.l("design:type",Number)],y9.prototype,"verticalSuggestionsOffset",void 0);
_.Z([_.JO("#dropdown"),_.l("design:type",Object)],y9.prototype,"dropdown",void 0);_.Z([_.JO("#dropdown-content"),_.l("design:type",HTMLDivElement)],y9.prototype,"dropdownContent",void 0);_.Z([_.nv("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],y9.prototype,"onKeyDown",null);_.Z([_.nv("keyup"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent,Range]),_.l("design:returntype")],y9.prototype,"onKeyUp",null);
_.Z([_.nv("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],y9.prototype,"onKeyPress",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-emoji-input"})],y9);
_.b(y9,"ytd-emoji-input",function(){if(Jm4!==void 0)return Jm4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Jm4=k},{mode:2});var eFT;var o$=function(){var k=_.p.apply(this,arguments)||this;k.hasMaxOptions=!1;return k};
_.y(o$,_.p);_.I=o$.prototype;_.I.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.I.setPrefilledChoices=function(k){var E=this;this.set("pollOptions",[]);var S;for(S=0;S<Math.min(k.length,this.data.maxPollOptions);S++)this.push("pollOptions",k[S].substring(0,this.data.maxPollOptionChars));for(;S<this.data.minPollOptions;S++)this.push("pollOptions","");this.hasMaxOptions=S>=this.data.maxPollOptions;_.JB(this,function(){for(var R=E.pollOptions,V=_.Cc(E.hostElement).querySelectorAll(".poll-option-input"),N=0;N<V.length;N++)V[N].value=R[N]})};
_.I.focusChanged=function(){_.VO(this.hostElement)};
_.I.onInput=function(){var k=this;_.Lv(this,"onInput",function(){k.isValid()?_.Me(k.hostElement,"yt-commentbox-post-enable"):_.Me(k.hostElement,"yt-commentbox-post-disable")},300)};
_.I.setPollOptions=function(){var k=[],E,S=((E=this.data)==null?0:E.minPollOptions)?this.data.minPollOptions:0;for(E=0;E<S;E++)k.push("");return k};
_.I.addPollOption=function(){var k=this;_.Me(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.ZJ.addLowPriorityJob(function(){var E;(E=_.Cc(k.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||E.focus()})};
_.I.onRemovePollOption=function(k){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Me(this.hostElement,"yt-poll-attachment-dismiss")):(k=this.repeat.indexForElement(k.target.parentNode),k!==null&&(this.splice("pollOptions",k,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Me(this.hostElement,"yt-commentbox-post-enable"))))};
_.I.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.I.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var k=0,E=this.pollOptions.length;k<E;k++)if(this.pollOptions[k].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.I.getPollOptions=function(){return this.pollOptions};
_.I.setPollOptionsFromInputs=function(){for(var k=_.Cc(this.hostElement).querySelectorAll(".poll-option-input"),E=0;E<k.length;E++)this.pollOptions[E]=k[E].value.trim()};
_.I.clearPollOptions=function(){var k=_.Cc(this.hostElement).querySelectorAll(".poll-option-input");k=_.n(k);for(var E=k.next();!E.done;E=k.next())E.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.I.getSimpleString=function(k){return _.$n(k)};
_.I.updateValueFromBinding=function(k){if(k.target&&this.pollOptions){var E=Array.from(_.Cc(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(k.target);if(E>=0){var S;this.pollOptions[E]=(S=k.detail.value)!=null?S:"";this.notifyPath("pollOptions."+E)}}};
o$.prototype.dataChanged=o$.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],o$.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Array)],o$.prototype,"pollOptions",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],o$.prototype,"hasMaxOptions",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],o$.prototype,"enableCreationBox",void 0);
_.Z([_.JO("#repeat"),_.l("design:type",yO)],o$.prototype,"repeat",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],o$.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-poll-attachment"})],o$);
_.b(o$,"ytd-poll-attachment",function(){if(eFT!==void 0)return eFT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return eFT=k},{mode:2});var ah2;var tU8;var Tsj;var wRA;var Xj=function(){return _.p.apply(this,arguments)||this};
_.y(Xj,_.p);_.mt.Object.defineProperties(Xj.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Xj.prototype,"rendererBehaviors",void 0);_.Z([_.H(),_.l("design:type",Object)],Xj.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Xj.prototype,"focused",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("focused"),_.l("design:type",Object),_.l("design:paramtypes",[])],Xj.prototype,"ariaSelected",null);_.Z([_.U_({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Xj);
_.b(Xj,"yt-user-mention-suggestion-renderer",function(){if(wRA===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;Tsj===void 0&&(Tsj=document.createElement("template"));var R=Tsj;S.call(E,R.content.cloneNode(!0),k.content.firstChild);wRA=k}k=wRA;return k},{mode:2});var P75;var Bsj;var gQ=function(){var k=_.p.apply(this,arguments)||this;k.focusedSuggestionIndex=-1;return k};
_.y(gQ,_.p);_.I=gQ.prototype;_.I.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.I.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.I.setFocusedSuggestionIndex=function(k){!this.data||!this.data.suggestions||k<0||k>=this.data.suggestions.length||(this.focusedSuggestionIndex=k,k=this.getSuggestionId(k),this._setFocusedSuggestionId(k))};
_.I.advanceSuggestion=function(k){this.focusedSuggestionIndex===-1||k!==-1&&k!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+k),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.I.ensureSuggestionVisible=function(k){k=this.getSuggestionId(k);k=_.Cc(this.hostElement).querySelector("[id="+k+"]");k!=null&&(k.offsetTop<this.hostElement.scrollTop?k.scrollIntoView(!0):k.offsetTop+k.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&k.scrollIntoView(!1))};
_.I.getSuggestionId=function(k){return"user-mention-suggestion-"+k};
_.I.onSuggestionTap=function(k){var E=_.W(k.model.item,rU4);this.ytRendererBehavior.logExplicitClick(E);_.Me(this.hostElement,"yt-user-mention-suggestion-selected",{data:E,index:k.model.index})};
_.I.onSuggestionMouseMove=function(k){k.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(k.model.index)};
_.I.isSuggestionFocused=function(k,E){return k===E};
_.I.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.I.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("focused-suggestion-id-changed",this.focusedSuggestionId))};
gQ.prototype.focusedSuggestionIdChangedForBinding=gQ.prototype.focusedSuggestionIdChangedForBinding;gQ.prototype.onDomChange=gQ.prototype.onDomChange;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],gQ.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],gQ.prototype,"focusedSuggestionIndex",void 0);_.Z([_.H({readOnly:!0}),_.l("design:type",String)],gQ.prototype,"focusedSuggestionId",void 0);
_.Z([_.nv("dom-change"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],gQ.prototype,"onDomChange",null);_.Z([_.il("focusedSuggestionId"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gQ.prototype,"focusedSuggestionIdChangedForBinding",null);_.Z([_.U_({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],gQ);
_.b(gQ,"yt-user-mention-suggestions-dropdown",function(){if(Bsj===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;P75===void 0&&(P75=document.createElement("template"));var R=P75;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Bsj=k}k=Bsj;return k},{mode:2});var Us=function(){var k=_.p.apply(this,arguments)||this;k.suggestionsResponse=null;k.activeMention=null;k.selectionChangeListener=k.onSelectionChange.bind(k);k.handlesEnabled=_.Y("enable_handles_in_mention_suggest_posts");k.handlesInMentionSuggestionsEnabled=_.Y("handles_in_mention_suggest_posts");k.zeroPrefixMentionSuggestionEnabled=_.Y("enable_zero_prefix_mention_suggestion_web");k.pendingQuery=null;k.flowNonce=null;return k};
_.y(Us,_.p);_.I=Us.prototype;_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.I.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.I.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.I.hasSuggestions=function(k){return!!(k&&k.suggestions&&k.suggestions.length>0)};
_.I.onInput=function(){var k=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var E=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),S=this.activeMention.JSC$11343_getText().slice(-1)===" ",R=this.activeMention.JSC$11343_getText().slice(-2,-1)===" ",V="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11343_getText().slice(-2,
-1))>=0;V=this.zeroPrefixMentionSuggestionEnabled&&V;if(this.activeMention.isCollapsed()||(E||R||V)&&S)this.cancelActiveMention();else{var N=this.activeMention.JSC$11343_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Lv(this,"requestSuggestions",function(){k.requestSuggestions(N)},100)}}}};
_.I.onServiceRequestSent=function(k){k.stopPropagation()};
_.I.onServiceRequestCompleted=function(k){k.stopPropagation();k=k.detail.data;k.query&&(!this.pendingQuery||this.pendingQuery!==k.query)||!this.zeroPrefixMentionSuggestionEnabled&&k.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=k,this.hasSuggestions(k)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.I.onServiceRequestError=function(k){k.stopPropagation()};
_.I.onUserMentionSuggestionSelected=function(k){this.selectSuggestion(k.detail.data,k.detail.index)};
_.I.onSelectionChange=function(){if(this.activeMention){var k=_.zc(),E=this.activeMention.JSC$11343_containsRange(k);k=k&&this.containsHelper(this.dropdown,k.getContainer());E||k||this.cancelActiveMention()}};
_.I.containsHelper=function(k,E){var S;if(((S=window.ShadyDOM)==null?void 0:S.noPatch)===!0)return k.contains(E);for(;E;){if(E===k)return!0;E=E instanceof ShadowRoot?E.host:E.parentNode}return!1};
_.I.maybeStartSuggest=function(){var k=_.zc();if(k&&k.isCollapsed()){var E=k.JSC$11343_getStartNode(),S=k.JSC$11343_getStartOffset();if(E instanceof Text&&!(S<1)){var R=E.textContent;!(R=R&&R.charAt(S-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(R)<0||(this.activeMention=_.xx(E,S-1,k.JSC$11343_getEndNode(),k.JSC$11343_getEndOffset()),this.flowNonce=Pi(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.I.updateActiveMention=function(){if(this.activeMention){var k=_.zc();k&&k.isCollapsed()&&(this.activeMention=_.xx(this.activeMention.JSC$11343_getStartNode(),this.activeMention.JSC$11343_getStartOffset(),k.JSC$11343_getEndNode(),k.JSC$11343_getEndOffset()))}};
_.I.requestSuggestions=function(k){if(this.activeMention){var E={suggestions_query:k};this.pendingQuery=k;_.Qw(this.hostElement,[this.suggestionsEndpoint,E])}};
_.I.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()};
_.I.focusPreviousSuggestion=function(k){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),k.preventDefault())};
_.I.focusNextSuggestion=function(k){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),k.preventDefault())};
_.I.selectFocusedSuggestion=function(k){if(this.hasSuggestions(this.suggestionsResponse)){var E=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.W(E,rU4)&&(this.selectSuggestion(_.W(E,rU4),this.dropdown.focusedSuggestionIndex),k.preventDefault())}};
_.I.selectSuggestion=function(k,E){if(k){var S=this.activeMention;if(S){var R=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&k.handle?_.HN(R,"\u00a0\u2068@"+k.handle+"\u2069\u00a0"):this.handlesEnabled?_.HN(R,"\u00a0"+k.displayName+"\u00a0"):_.HN(R,"\u00a0@"+k.displayName+"\u00a0");MU(R,"/channel/"+k.channelId);R.classList.add("yt-formatted-string","yt-simple-endpoint");R.setAttribute("spellcheck","false");S.isCollapsed()||S.JSC$11343_removeContents();S.insertNode(R,!0);k=document.createTextNode(" ");
R.parentNode.insertBefore(k,R.nextSibling);window.getSelection().collapse(k,1);E={suggestionSelected:{suggestionIndex:E}};if(this.zeroPrefixMentionSuggestionEnabled){var V;E.suggestionSelected.isZeroPrefix=((V=this.suggestionsResponse)==null?void 0:V.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",E);this.cancelActiveMention();_.Me(this.hostElement,"yt-mention-inserted")}}};
_.I.getPositionTarget=function(k){return k&&k.getBrowserRangeObject()};
_.I.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.I.onFocusedSuggestionIdChanged=function(k){var E=_.g0m(this.hostElement)[0];E&&(k.detail.value?E.setAttribute("aria-activedescendant",k.detail.value):E.removeAttribute("aria-activedescendant"))};
_.I.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.I.logGELEvent=function(k,E){k={eventType:k,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};E&&(k=Object.assign(k,E));_.f2("userMentionAutoCompleteBoxEvent",k)};
Us.prototype.onDomChange=Us.prototype.onDomChange;Us.prototype.onUserMentionSuggestionSelected=Us.prototype.onUserMentionSuggestionSelected;Us.prototype.onServiceRequestError=Us.prototype.onServiceRequestError;Us.prototype.onServiceRequestCompleted=Us.prototype.onServiceRequestCompleted;Us.prototype.onServiceRequestSent=Us.prototype.onServiceRequestSent;Us.prototype.onInput=Us.prototype.onInput;_.Z([_.g(_.YD),_.l("design:type",Object)],Us.prototype,"ironA11yKeysBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Us.prototype,"suggestionsEndpoint",void 0);_.Z([_.H(),_.l("design:type",Object)],Us.prototype,"suggestionsResponse",void 0);_.Z([_.H(),_.l("design:type",Object)],Us.prototype,"activeMention",void 0);_.Z([_.JO("#dropdown"),_.l("design:type",Object)],Us.prototype,"dropdown",void 0);_.Z([_.JO("#iron-dropdown"),_.l("design:type",Object)],Us.prototype,"ironDropdown",void 0);
_.Z([_.nv("input"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Us.prototype,"onInput",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Us.prototype,"onServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Us.prototype,"onServiceRequestCompleted",null);
_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Us.prototype,"onServiceRequestError",null);_.Z([_.nv("yt-user-mention-suggestion-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Us.prototype,"onUserMentionSuggestionSelected",null);
_.Z([_.nv("dom-change"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Us.prototype,"onDomChange",null);_.Z([_.U_({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],Us);
_.b(Us,"yt-user-mention-autosuggest-input",function(){if(tU8===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;ah2===void 0&&(ah2=document.createElement("template"));var R=ah2;S.call(E,R.content.cloneNode(!0),k.content.firstChild);tU8=k}k=tU8;return k},{mode:2});var Hf=null;
_.F6({is:"ytd-commentbox",_template:function(){if(hFd!==void 0)return hFd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return hFd=k},
behaviors:[_.Vp1.YtHostElementBehavior,_.YD,_.H5.YtActionHandlerBehavior,_.OE.YtComponentBehavior,_.aA.YtRendererstamperBehavior,_.EcA.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(k,E){return _.Ep(k.entities,"aadcGuidelinesStateEntityPayload",E)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(k,E){return _.Ep(k.entities,"commentboxStateEntity",E)},
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 _.kP}},
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:_.Y("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.Y("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",_.Ic(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(k){this.fire(k?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(k){this.set("submitButtonDisabled",void 0);this.clear();k&&this.computeIsEmojiButtonDisplayed_(k)&&(k=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&k.updateEmojiCategories()},
observePrefilledImage_:function(k,E,S){this.isValidPrefilledImage_(k,E,S)&&(this.prefilledAttachment_="image",this.prefilledImageData_=E,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(k,E){this.isValidPrefilledVideo_(k,E)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(k){k&&k.pollData&&k.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(k.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.JH();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ic(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(k){k=k.detail;k=k.isCustomEmoji?k.shortcuts[0]:k.emojiId;var E=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(E,k);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var k=_.zc();if(k){k=k.getBrowserRangeObject();for(var E=k.commonAncestorContainer;E;){if(E===this.getEditableTextArea_())return k;E=E.parentNode}}k=this.getEditableTextArea_();k=_.uG(k,k.childNodes.length);k.select();return k.getBrowserRangeObject()},
insertTextWithEmojis_:function(k,E,S){(E=this.emojiManager.createDocumentFragment(E,!0,!1,S===void 0?!0:S))&&E.childNodes.length!==0&&(k.collapsed||k.deleteContents(),S=E.lastChild,k.insertNode(E),_.qkY(S).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var k=_.zc();if(k){var E=k.JSC$11343_getStartNode(),S=k.JSC$11343_getEndNode();if(h4t(E)&&h4t(S)){var R=k.JSC$11343_getStartOffset(),V;if(_.Ge&&E.nodeType===Node.ELEMENT_NODE&&(V=_.led(E)))_.uG(V,0).select();else{V=lK(E)?E:_.lh(E,lK);var N=lK(S)?S:_.lh(S,lK);if(V||N)if(k.isCollapsed()){if(E.nodeType===Node.TEXT_NODE){k=!0;R===E.length&&(k=!1);if(Hf==="end"||Hf==="right")k=!1;E=E.parentNode;k=[].concat(_.$e(E.parentNode.childNodes)).indexOf(E)+(k?0:1);_.uG(E.parentNode,
k).select()}}else V?V.previousSibling&&V.previousSibling.length>0?_.xx(S,k.JSC$11343_getEndOffset(),V.previousSibling,V.previousSibling.length-1).select():(E=document.createTextNode("\u200b"),V.parentNode.insertBefore(E,V),_.xx(S,k.JSC$11343_getEndOffset(),E,0).select()):N&&(N.nextSibling&&N.nextSibling.length>0?_.xx(E,k.JSC$11343_getStartOffset(),N.nextSibling,1).select():(S=document.createTextNode("\u200b"),N.parentNode.insertBefore(S,N.nextSibling),_.xx(E,k.JSC$11343_getStartOffset(),S,S.length).select()));
Hf=null}}else Hf=null}else Hf=null},
leftKeyPressed_:function(){Hf="left"},
rightKeyPressed_:function(){Hf="right"},
endKeyPressed_:function(){Hf="end"},
maybeDeleteChip_:function(){var k=tPh(!0);if(k){var E=_.zc(),S=E.JSC$11343_getStartNode();E=E.JSC$11343_getStartOffset();_.HD(S,E,k,k.childNodes.length).select()}},
maybeBackspaceChip_:function(){var k=tPh(!1);if(k){var E=_.zc(),S=E.JSC$11343_getStartNode();E=E.JSC$11343_getStartOffset();_.HD(S,E,k,0).select()}},
maybeBackspaceChipWordMode_:function(k){var E=_.zc();if(E.isCollapsed()){var S=E.JSC$11343_getStartNode();E=E.JSC$11343_getStartOffset();var R=TeI(S,E,!0);R&&(_.HD(S,E,R,0).select(),document.execCommand("delete"),k.preventDefault(),k.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(k){var E=_.zc();if(E.isCollapsed()){var S=E.JSC$11343_getStartNode();E=E.JSC$11343_getStartOffset();var R=TeI(S,E,!1);R&&(_.HD(S,E,R,R.childNodes.length).select(),document.execCommand("delete"),k.preventDefault(),k.stopImmediatePropagation())}},
onTap_:function(k){if(!k.defaultPrevented&&(k.currentTarget.tagName==="YTD-COMMENTBOX"&&lK(k.target)&&k.preventDefault(),this.isEmojiPickerDisplayed)){var E=this.$$("#emojis"),S=this.$$("#emoji-button"),R=this.getEditableTextArea_();if((k=k.path?k.path:k.composedPath&&k.composedPath())&&!k.includes(E)&&!k.includes(R)&&!k.includes(S))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(k,E,S){return k==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&E!==void 0&&E.encryptedBlobId!==null&&E.sourceExternalVideoId!==null&&S!==void 0&&S.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(k,E){return k==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!E&&!!E.videoRenderer&&!!E.videoRenderer.videoId},
isValidPrefilledAttachment_:function(k,E,S){return this.isValidPrefilledImage_(k,E,S)||this.isValidPrefilledVideo_(k,S)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.Y("enable_multi_image_post_creation")){var k=this.$$("ytd-backstage-multi-image-select-renderer");k&&k.hasImages()&&k.cancel()}else(k=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&k.cancel();(k=this.$["poll-attachment"])&&this.hasPoll_&&k.clearPollOptions();(k=this.$["image-poll-attachment"])&&this.hasImagePoll_&&k.resetPollOptions();(k=this.$["quiz-attachment"])&&this.hasQuiz_&&k.resetQuizOptions();
(k=this.$["video-link-attachment"])&&this.hasVideo_&&k.cancel();(k=this.$["access-restrictions-selector"].firstElementChild)&&k.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 _.Cc(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Cc(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(k,E){k=coe(k,this.emojiManager,E).cloneNode(!0);for(E=k.firstChild;E;)if(E.nodeType!==1)E=E.nextSibling;else switch(E.tagName){case "BR":var S=_.F$();_.koY(S,E);E=S.nextSibling;break;case "DIV":(S=E.lastChild)&&E.nextSibling&&_.g9(_.F$(),S);E.previousSibling&&(E.previousSibling.nodeType===1||E.previousSibling.nodeType===3&&!E.previousSibling.textContent.endsWith("\n"))&&_.X$(_.F$(),E);S&&S.nodeName==="BR"&&_.Ua(S);S=E;E.hasChildNodes()?(E=E.firstChild,
_.Ey2(S)):(E=E.nextSibling,_.Ua(S));break;default:E=E.nextSibling}return wxe(k)},
onAddImageError_:function(k){k.stopPropagation();this.errorMessage_=_.DE(k.detail)},
setTextAreaValue_:function(k){k||(k="");var E=this.getEditableFormattedString_();E.text="";this.getEditableTextArea_().innerText="";typeof k==="string"&&(k={runs:[{text:k}]});E.text=k},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Hf=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var k=this.getEditableTextArea_();k&&(_.uG(k,k.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Mg("HTML_DIR")==="rtl"){var k=this.getEditableTextArea_(),E=this.getTextAreaValue()!==""?"auto":"rtl";k.setAttribute("dir",E)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var k;return CGI((k=this.$["quiz-attachment"])==null?void 0:k.getExplanationText())||CGI(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var k=null;if(this.isEmojiButtonDisplayed){var E=this.getInputRange_();E&&(k=this.emojiInput.retrieveTextBeforeRange(E))}this.insertText_(k,!0);this.updateCharCount_();this.setSubmitButton_();k=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=k.scrollHeight>k.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var k=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:k})},
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(k){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(k)},
onPasteEmoji_:function(k){k.preventDefault();k.stopImmediatePropagation();k=k.clipboardData.getData("text/plain");this.insertText_(k,!1,!1)},
insertText_:function(k,E,S){E=E===void 0?!1:E;S=S===void 0?!0:S;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&k){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(E&&this.emojiInput.offsetStartOfRangeBy(R,k.length),this.insertTextWithEmojis_(R,k,S),JoR(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,k),this.updateSuggestionOffset_(R)))}},
setSubmitButton_:function(){if(this.data){var k=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",E=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(k||E){var S=this.getTextAreaValue().trim();E=S===this.previousText_;S=!S||this.aboveCharLimit_;k&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(S=this.aboveCharLimit_);this.submitButtonDisabled=
E||S||!this.getTextLength();k&&_.Y("enable_post_scheduling")&&(this.submitButtonDisabled=E&&!this.scheduledPublishTimeSec_||S)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.$n,computeCreationBoxClass_:function(k){return k?"focused":"not-focused"},
computeFooterMessageClass_:function(k,E){return E?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(k,E){return E?E:k},
computeFooterMessageHidden_:function(k,E){return!E&&!k},
computePlaceholderText_:function(k,E,S){return(S==="video"||S==="image")&&(k==null?0:k.prefilledPlaceholderText)?k==null?void 0:k.prefilledPlaceholderText:E==="poll"||E==="image-poll"?k==null?void 0:k.pollPostPlaceholderText:E==="quiz"?k==null?void 0:k.quizPostPlaceholderText:E==="image"?k==null?void 0:k.imagePostPlaceholderText:k==null?void 0:k.placeholderText},
computeHideAttachmentButtons_:function(k,E,S,R){return k===void 0?!1:R&&this.getSimpleString(R)===this.getSimpleString(k.rateLimitErrorMessage)?!0:E!=="none"||S!=="none"||!k.videoLinkButton&&!k.pollButton&&!k.imagePollButton&&!k.quizButton&&!k.imageButton},
computeHideDismissableAttachment_:function(k){return k!=="image"&&k!=="video"},
computeHasVideo_:function(k){return k==="video"},
computeHasImage_:function(k){return k==="image"},
computeHasPoll_:function(k){return k==="poll"},
computeHasImagePoll_:function(k){return k==="image-poll"},
computeHasQuiz_:function(k){return k==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(k){return k&&k.backstageAttachment?k.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!k.backstageAttachment.quizRenderer&&!k.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(k){if(this.isValidPrefilledAttachment_(k.purpose,k.prefilledImageData,k.backstageAttachment))return k.backstageAttachment},
computeEditAttachment_:function(k){if(this.computePrefilledContent_(k)===void 0)return k.backstageAttachment},
computeAuthorThumbnailDimension_:function(k,E){return k&&!E?24:40},
computeImageUploadEndpoint_:function(k){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",k)},
computeRateLimitErrorCommands_:function(k){var E,S;return k==null?void 0:(E=k.advancedTierFeatures)==null?void 0:(S=E.rateLimit)==null?void 0:S.rateLimitCommands},
computeIsBackstageComment_:function(k){return!(!k||k!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(k){return this.get("submitButton.buttonRenderer.serviceEndpoint",k)||this.get("replyButton.buttonRenderer.serviceEndpoint",k)||this.get("postButton.buttonRenderer.serviceEndpoint",k)},
computeSubmitButtonOverride:function(){if(_.Y("web_modern_buttons")){var k,E;return{segmentedPosition:this.dropdownSchedulePanel_||!((k=this.data)==null?0:(E=k.postOptionsMenu)==null?0:E.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.Y("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(k,E){k=this.get("submitButton.buttonRenderer",k)||this.get("replyButton.buttonRenderer",k)||this.get("postButton.buttonRenderer",k);E&&(k=E);k&&(k=Object.assign({},k),k.serviceEndpoint=void 0,k.isDisabled=this.submitButtonDisabled);return k},
computeHasExternalLinksAccess_:function(k){if(_.Y("enable_rfa_external_links")){var E,S,R;return(R=k==null?void 0:(E=k.advancedTierFeatures)==null?void 0:(S=E.externalLinks)==null?void 0:S.allowExternalLinks)!=null?R:!0}return!0},
computeIsEmojiButtonDisplayed_:function(k){return k.emojiButton&&k.emojiPicker&&k.emojiPicker.emojiPickerRenderer&&k.emojiPicker.emojiPickerRenderer.categories?k.emojiPicker.emojiPickerRenderer.categories.find(function(E){return E.emojiPickerCategoryRenderer?E.emojiPickerCategoryRenderer.emojiIds&&E.emojiPickerCategoryRenderer.emojiIds.length>0:E.emojiPickerUpsellCategoryRenderer?E.emojiPickerUpsellCategoryRenderer.emojis&&E.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(k){return k.charLimit?k.charLimit:null},
computeDropdownSchedulingPanel_:function(k,E){if(k==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&E)return E},
computeInlineSchedulingPanel_:function(k,E){if(k==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&E)return E},
computeHideAuthorThumbnail_:function(k,E){return k||this.computeUseIdentityChip_(E)},
computeHideIdentityChipRenderer_:function(k,E){return k||!this.computeUseIdentityChip_(E)},
computeUseIdentityChip_:function(k){return!!k&&!!k.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(k){var E,S,R,V;(k==null?0:(E=k.detail)==null?0:(S=E.endpoint)==null?0:S.ypcGetOffersEndpoint)||(k==null?0:(R=k.detail)==null?0:(V=R.endpoint)==null?0:V.ypcOffersEndpoint)?(k.stopPropagation(),_.Qw(this,[k.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",k)&&(k.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(k){this.addedAttachment="video";this.selectedVideoId_=k.detail.videoId},
commentboxStateEntityChanged_:function(k){var E=this;(k==null?void 0:k.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(k==null?void 0:k.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){E.focus()})},
onYtServiceRequestSent_:function(k,E){if(E.actions)for(k=_.n(E.actions),E=k.next();!E.done;E=k.next())E.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(k){this.isLoading=!1;var E=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",k),S,R,V,N=k==null?void 0:(S=k.detail)==null?void 0:(R=S.data)==null?void 0:(V=R.actionResult)==null?void 0:V.commentboxStateEntityKey;if(E)this.errorMessage_=E;else if(N){var h;this.dismissData_=k==null?void 0:(h=k.detail)==null?void 0:h.data;this.commentboxStateKey_=N}else{this.clear();var J;this.fire("yt-commentbox-dismiss",k==null?void 0:(J=k.detail)==
null?void 0:J.data)}},
onYtServiceRequestError_:function(k){k.stopPropagation();this.isLoading=!1;var E,S;if(((E=this.data)==null?void 0:E.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((S=this.data)==null?void 0:S.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(E=this.get("detail.error.args",k)||[],E.length>1&&E[1].message){this.handlePostsServiceRequestError_(E[1].message);return}(k=this.get("detail.error.message",k))?this.errorMessage_=this.data.errorMessage||_.DE(k):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(k){if(_.Y("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var E=_.n(this.rateLimitErrorCommands),S=E.next();!S.done;S=E.next())if(S=S.value,S.errorLabel===k){_.Ni(S.command,this.hostElement);return}this.errorMessage_=_.DE(k)},
submitIfNotBackstagePost_:function(k){if(!this.isBackstagePost)this.onSubmit_(k)},
onSubmit_:function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P,B,F,K,r;return _.c(function(x){switch(x.nextAddress){case 1:k.stopPropagation();if(!E.serviceEndpoint||!E.isValidInput_())return x.return();if(E.shouldShowPostAadcNotice_())return E.showPostAadcNotice_(),x.return();if(E.shouldShowCommentAadcNotice_())return E.showCommentAadcNotice_(),x.return();if(!(E.$$("ytd-backstage-multi-image-select-renderer")&&E.hasImage_&&_.Y("enable_multi_image_post_creation"))){x.jumpTo(2);break}S=E.$$("ytd-backstage-multi-image-select-renderer");
return x.yield(S.getAllUploadStatuses(),3);case 3:R=x.yieldResult;if(!R)return x.return();V=_.n(R);for(N=V.next();!N.done;N=V.next())if(h=N.value,h.encryptedBlobId===void 0)return E.isLoading=!1,m=J=void 0,E.errorMessage_=(m=(J=E.imageUploadEndpoint_)==null?void 0:J.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?m:null,x.return();return x.return(E.submitForm_(void 0,void 0,void 0,void 0,S.images,E.taggedVideoId_));case 2:if(!E.hasImagePoll_||!E.$["image-poll-attachment"]){x.jumpTo(4);
break}return x.yield(E.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:a=x.yieldResult;if(!a)return x.return();T=_.n(a);for(w=T.next();!w.done;w=T.next())if(P=w.value,!P.encryptedBlobId)return E.isLoading=!1,B=void 0,E.errorMessage_=(B=E.data.errorMessage)!=null?B:null,x.return();case 4:K=(F=E.$$("ytd-backstage-image-select-renderer"))&&F.uploadPromise(),r=E.getSharedPostId_(),K?K.then(function(){E.submitForm_.apply(E,_.$e(_.sX.apply(0,arguments)))}).catch(function(L){E.isLoading=!1;
E.errorMessage_=_.DE(L.message)}):E.selectedVideoId_?E.submitForm_(void 0,E.selectedVideoId_):E.prefilledAttachment_==="image"?E.submitForm_(E.prefilledImageData_.encryptedBlobId,void 0,void 0,E.prefilledImageData_.sourceExternalVideoId,void 0,E.taggedVideoId_):E.prefilledAttachment_==="video"?E.submitForm_(void 0,E.data.backstageAttachment.videoRenderer.videoId):r?E.submitForm_(void 0,void 0,r):E.taggedVideoId_!==void 0?E.submitForm_(void 0,void 0,void 0,void 0,void 0,E.taggedVideoId_):E.submitForm_(),
_.KR(x)}})},
openSchedulingPanel:function(k){k&&k.scheduleButton&&k.scheduleButton.buttonRenderer&&(this.scheduleButton_=k.scheduleButton.buttonRenderer);k&&k.dateTimePicker&&this.set("data.schedulingDateTimePicker",k.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(k){k.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(k){k.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(k){k.stopPropagation();k.detail.alertMessage&&(this.alertMessage_=k.detail.alertMessage)},
onImageSelected_:function(k){k.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(k){k.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(k){k.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(k.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(k){k.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(k){var E=this.$["video-link-attachment"];E&&E.onLaunchVideoPicker(k)},
onAttachmentDismiss_:function(k){k.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"&&_.Y("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.Y("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 k;if(this.addedAttachment==="image-poll"&&((k=this.$["image-poll-attachment"])==null||!k.isValid()))return!1;var E;if(this.addedAttachment==="quiz"&&((E=this.$["quiz-attachment"])==null||!E.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;k=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(k=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")k=!0;return k||!!this.getTextAreaValue().trim()},
submitForm_:function(k,E,S,R,V,N){var h=this.getTextAreaValue().trim(),J={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&h===this.previousText_&&(h=void 0);h!==void 0&&(J.comment_text=h);this.isLoading=!0;N!=void 0&&(J.tagged_video_id=N);k?(J.image_blob_id=k,this.imagePreviewCoordinates_&&(J.image_preview_coordinates=this.imagePreviewCoordinates_)):E?J.attached_video_id=E:S?J.shared_post_id=S:V&&V.length>0&&(J.images_data=V.map(function(m){return{encryptedBlobId:m.encryptedBlobId,
previewCoordinates:m.previewCoordinates}}));
R&&(J.source_video_id=R);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(J.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(J.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(J.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.Y("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(J.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.Y("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(J.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Qw(this,[this.serviceEndpoint,J])},
onIsInputFocusChanged_:function(k,E){k?this.fire("yt-autonav-pause-focus"):E!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(k){var E=this.getEditableTextArea_();[].concat(_.$e(k.dataTransfer.items)).forEach(function(S){S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(R){E.appendChild(document.createTextNode(R))})});
k.preventDefault()},
preventDefault_:function(k){k.preventDefault()},
onSuggestionInsert_:function(k){this.insertTextWithEmojis_(k.detail.range,k.detail.text)},
onEmojiSuggestionClick_:function(k){this.emojiInput.insertSuggestion(k.detail)},
computeSubmitButtonClass_:function(k,E){return!E||k?"":"with-options"},
updateSuggestionOffset_:function(k){if(this.emojiInput&&_.Cc(this.emojiInput).querySelector("#dropdown")){var E=this.getEditableTextArea_().getBoundingClientRect().bottom,S=k.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(E-S)+5;E=this.getEditableTextArea_().getBoundingClientRect().left;k=k.getBoundingClientRect().left-E;_.Cc(this.emojiInput).querySelector("#dropdown").style.marginLeft=k+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(k){if(_.Y("enable_post_scheduling")&&this.data&&this.data.purpose){k=k.detail;if(Math.floor(Date.now()/1E3)>=k)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var E=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(E)||E!==k?this.scheduledPublishTimeSec_=k:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=k;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var k=["image-button","image-poll-button","poll-button"];_.Y("enable_quiz_creation")&&k.push("quiz-button");_.Y("auto_convert_posts_video_tag")||k.push("video-link-button");return k},
getButtonRenderer:function(k,E){if(k)switch(E){case "video-link-button":var S;return((S=k.videoLinkButton)==null?void 0:S.buttonRenderer)||void 0;case "image-button":var R;return((R=k.imageButton)==null?void 0:R.buttonRenderer)||void 0;case "poll-button":var V;return((V=k.pollButton)==null?void 0:V.buttonRenderer)||void 0;case "image-poll-button":var N;return((N=k.imagePollButton)==null?void 0:N.buttonRenderer)||void 0;case "quiz-button":var h;return((h=k.quizButton)==null?void 0:h.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var k;return(k=this.data)==null||!k.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var k,E;return!((k=this.data)==null||!k.openAadcDialog)&&!((E=this.aadcGuidelinesState_)==null||!E.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Mg("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var k;((k=this.data)==null?0:k.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.qG("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(k){k.clickTrackingParams&&_.JV().clickCommand(k);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.qe(this,"yt-close-popup-action")},
onHideIdentityChip:function(k){var E;this.set("data.placeholderText",(E=k.hideIdentityChipAction)==null?void 0:E.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var KW=function(){var k=_.p.apply(this,arguments)||this;k.isOpen=!1;k.modern=_.Y("web_modern_buttons");k.roundedContainer=!0;k.dropdownButtonOverride=_.Y("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;k.inPopupContainer=!1;k.isCommentboxLoading=!1;var E=["image-button","image-poll-button","poll-button"];_.Y("enable_quiz_creation")&&E.push("quiz-button");_.Y("auto_convert_posts_video_tag")||E.push("video-link-button");k.attachmentButtonIds=E;k.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 k};
_.y(KW,_.p);_.I=KW.prototype;_.I.computeButtonOverride=function(){var k;return((k=this.data)==null?0:k.postOptionsMenu)&&_.Y("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.I.configureRendererStamper=function(){var k={"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]]"}}}}};_.Y("auto_convert_posts_video_tag")||(k["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return k};
_.I.ready=function(){var k=this,E=_.Cc(this.hostElement).querySelector("#placeholder-area"),S=function(R){k.onOpen(R)};
E.addEventListener("tap",S);E.addEventListener("keypress",S)};
_.I.showButtonEduTooltip=function(){var k,E,S,R,V,N,h;if(_.Y("enable_quiz_creation")&&((k=this.data)==null?0:(E=k.quizButton)==null?0:(S=E.buttonRenderer)==null?0:(R=S.hint)==null?0:(V=R.hintRenderer)==null?0:(N=V.content)==null?0:(h=N.bubbleHintRenderer)==null?0:h.text)&&(_.ts.getInstance(),k=TM(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(k==null?void 0:
k.length)>0)){this.ytComponentBehavior.resolveCommand(k[0],{form:{element:this.quizButton}});return}var J;if((J=this.data)==null?0:J.imagePollButtonTooltip)if(_.ts.getInstance(),J=TM(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(J==null?void 0:J.length)>0){this.ytComponentBehavior.resolveCommand(J[0],{form:{element:this.imagePollButton}});return}var m;_.Y("enable_multi_image_post_creation")&&
((m=this.data)==null?0:m.multiImageButtonTooltip)&&(_.ts.getInstance(),m=TM(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(m==null?void 0:m.length)>0&&this.ytComponentBehavior.resolveCommand(m[0],{form:{element:this.imageButton}}))};
_.I.onCreatePollAction=function(k){_.W(k,ExC)&&(this.JSC$15964_commentbox.addedAttachment="poll",this.openDialog())};
_.I.onAddVideoLinkAction=function(k){if(_.W(k,OYd))this.JSC$15964_commentbox.onAddVideoLink(k)};
_.I.onShowSchedulingPanelCommand=function(k){(k=_.W(k,gtd))&&this.openSchedulingPanel(k)};
_.I.onCreateImagePollCommand=function(k){_.W(k,oBY)&&(this.JSC$15964_commentbox.openImagePollComponent(),this.openDialog())};
_.I.onCreateQuizCommand=function(k){_.W(k,X58)&&(this.JSC$15964_commentbox.openQuizComponent(),this.openDialog())};
_.I.openSchedulingPanel=function(k){_.Y("enable_post_scheduling")&&(this.openDialog(),this.JSC$15964_commentbox.openSchedulingPanel(k))};
_.I.onCreateCommentAction=function(k){this.get("createCommentAction.contents",k)&&(this.JSC$15964_commentbox.clear(),this.closeDialog())};
_.I.onOpen=function(k){k instanceof KeyboardEvent&&k.type==="keypress"&&k.keyCode!==13&&k.keyCode!==32||(this.data.prepareAccountEndpoint?_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.I.onYtCommentboxDismiss=function(){this.closeDialog()};
_.I.onYtCommentboxLoadingStart=function(k){k.stopPropagation();this.isCommentboxLoading=!0};
_.I.onYtCommentboxLoadingEnd=function(k){k.stopPropagation();this.isCommentboxLoading=!1};
_.I.onYtVideoLinkButtonCancel=function(k){k.stopPropagation();this.onOpen(k)};
_.I.onYtVideoLinkSelected=function(k){k.stopPropagation();this.onOpen(k)};
_.I.onIronSelect=function(k){k.stopPropagation();k.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=k.detail.item.value&&(this.accessRestriction?(this.accessRestriction=k.detail.item.value,this.onOpen(k)):this.accessRestriction=k.detail.item.value)};
_.I.onYtNavigate=function(k){this.get("detail.endpoint.backstageImageUploadEndpoint",k)&&(this.JSC$15964_commentbox.addedAttachment="image",this.JSC$15964_commentbox.submitButtonDisabled=!0,this.onOpen(k))};
_.I.onRequestSent=function(k){if(_.Y("web_button_rework"))for(var E=_.n(k.detail),S=E.next();!S.done;S=E.next())_.W(S.value,jg8)&&(this.JSC$15964_commentbox.addedAttachment="image",this.JSC$15964_commentbox.submitButtonDisabled=!0,this.onOpen(k))};
_.I.openDialog=function(){var k;(k=this.data)!=null&&k.isIneligibleForCommunityPagePostCreation||(this.JSC$15964_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15964_commentbox.focus())};
_.I.onPopupClosed=function(){_.ts.getInstance()};
_.I.computeCreationDisabled=function(k){return!!k};
_.I.computeIsCreationDialog=function(k){return!!k&&k==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.I.computeDisabledPostButton=function(k){if(!k)return null;k.isDisabled=!0;return k};
_.I.computeIsCreationDialogWithHeader=function(k){return!this.inPopupContainer&&!!k&&!!k.authorText&&k.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.I.computeIsHeaderHidden=function(k,E){return!k||E};
_.I.computeDropdownRendererClasses=function(k){return k?["text-secondary-style"]:[]};
_.I.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var k=_.Cc(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;k&&k.reset()};
KW.prototype.onPopupClosed=KW.prototype.onPopupClosed;KW.prototype.onRequestSent=KW.prototype.onRequestSent;KW.prototype.onYtNavigate=KW.prototype.onYtNavigate;KW.prototype.onIronSelect=KW.prototype.onIronSelect;KW.prototype.onYtVideoLinkSelected=KW.prototype.onYtVideoLinkSelected;KW.prototype.onYtVideoLinkButtonCancel=KW.prototype.onYtVideoLinkButtonCancel;KW.prototype.onYtCommentboxLoadingEnd=KW.prototype.onYtCommentboxLoadingEnd;KW.prototype.onYtCommentboxLoadingStart=KW.prototype.onYtCommentboxLoadingStart;
KW.prototype.onYtCommentboxDismiss=KW.prototype.onYtCommentboxDismiss;KW.prototype.showButtonEduTooltip=KW.prototype.showButtonEduTooltip;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],KW.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],KW.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],KW.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KW.prototype,"isOpen",void 0);_.Z([_.H({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],KW.prototype,"buttonOverride",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KW.prototype,"modern",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KW.prototype,"roundedContainer",void 0);_.Z([_.H(),_.l("design:type",Object)],KW.prototype,"dropdownButtonOverride",void 0);_.Z([_.H({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.l("design:type",Boolean)],KW.prototype,"creationDisabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],KW.prototype,"enableCreationBox",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.l("design:type",Boolean)],KW.prototype,"isCreationDialog",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KW.prototype,"inPopupContainer",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.l("design:type",Boolean)],KW.prototype,"isCreationDialogWithHeader",void 0);_.Z([_.H(),_.l("design:type",Object)],KW.prototype,"accessRestriction",void 0);
_.Z([_.H({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.l("design:type",Array)],KW.prototype,"dropdownRendererClasses",void 0);_.Z([_.H(),_.l("design:type",Object)],KW.prototype,"isCommentboxLoading",void 0);_.Z([_.H(),_.l("design:type",Array)],KW.prototype,"attachmentButtonIds",void 0);_.Z([_.JO("#image-button"),_.l("design:type",HTMLElement)],KW.prototype,"imageButton",void 0);
_.Z([_.JO("#image-poll-button"),_.l("design:type",HTMLElement)],KW.prototype,"imagePollButton",void 0);_.Z([_.JO("#quiz-button"),_.l("design:type",HTMLElement)],KW.prototype,"quizButton",void 0);_.Z([_.JO("#commentbox"),_.l("design:type",Object)],KW.prototype,"JSC$15964_commentbox",void 0);_.Z([_.il("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KW.prototype,"showButtonEduTooltip",null);
_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KW.prototype,"onYtCommentboxDismiss",null);_.Z([_.nv("yt-commentbox-loading-start"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KW.prototype,"onYtCommentboxLoadingStart",null);
_.Z([_.nv("yt-commentbox-loading-end"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KW.prototype,"onYtCommentboxLoadingEnd",null);_.Z([_.nv("yt-video-link-button-cancel"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KW.prototype,"onYtVideoLinkButtonCancel",null);
_.Z([_.nv("yt-video-link-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KW.prototype,"onYtVideoLinkSelected",null);_.Z([_.nv("iron-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KW.prototype,"onIronSelect",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KW.prototype,"onYtNavigate",null);
_.Z([_.nv("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],KW.prototype,"onRequestSent",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KW.prototype,"onPopupClosed",null);_.Z([_.D({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],KW);
_.b(KW,"ytd-backstage-post-dialog-renderer",function(){if(beY!==void 0)return beY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return beY=k},{mode:1});var Yyp;var Wn5;var pW=function(){return _.p.apply(this,arguments)||this};
_.y(pW,_.p);_.I=pW.prototype;_.I.computeHeartButtonStyle=function(k){return(k==null?0:k.styleType)?k.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.I.onYtButtonTap=function(){if(this.data.isEnabled){var k=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(k=this.getEndpoint(k))&&_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}})}else(k=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(k)};
_.I.toggle=function(k){this.set("data.isHearted",k!==void 0?k:!this.data.isHearted)};
_.I.getEndpoint=function(k){var E,S=(E=this.data)==null?void 0:E.heartEndpoint,R;E=(R=this.data)==null?void 0:R.unheartEndpoint;if(S&&E)return k?E:S};
_.I.computeButtonAccessibility=function(k,E){var S,R,V=k==null?void 0:(S=k.heartedAccessibility)==null?void 0:(R=S.accessibilityData)==null?void 0:R.label,N,h;k=k==null?void 0:(N=k.unheartedAccessibility)==null?void 0:(h=N.accessibilityData)==null?void 0:h.label;return E?V:k};
_.mt.Object.defineProperties(pW.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 k;return _.Y("kevlar_system_icons")&&!((k=this.data)==null||!k.isHearted)}}});
pW.prototype.onYtButtonTap=pW.prototype.onYtButtonTap;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],pW.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],pW.prototype,"data",void 0);_.Z([_.U("data.isHearted"),_.l("design:type",Object),_.l("design:paramtypes",[])],pW.prototype,"heartTooltip",null);
_.Z([_.U("data.isHearted"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],pW.prototype,"iconFilled",null);_.Z([_.H({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.l("design:type",String)],pW.prototype,"buttonAccessibility",void 0);_.Z([_.H({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],pW.prototype,"heartButtonStyle",void 0);
_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pW.prototype,"onYtButtonTap",null);_.Z([_.D({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],pW);
_.b(pW,"ytd-creator-heart-renderer",function(){if(Wn5!==void 0)return Wn5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Wn5=k},{mode:1});var AG=function(){var k=_.p.apply(this,arguments)||this;k.hasCreatorReply=!1;k.buttonOverrides={size:"S",iconPosition:"icon-only"};k.replyButtonOverrides={size:"S",type:"text"};k.forceIconButton=!_.Y("web_modern_buttons");k.modern=_.Y("web_modern_buttons");k.buttonTooltipPosition="bottom";k.systemIcons=_.Y("kevlar_system_icons");k.replyDialog=null;return k};
_.y(AG,_.p);_.I=AG.prototype;
_.I.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]]"}}}}}};
_.I.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.I.dataChange=function(){this.replyDialog&&_.Cc(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var k,E,S;this.isLiked=this.systemIcons&&!!((k=this.data)==null?0:(E=k.likeButton)==null?0:(S=E.toggleButtonRenderer)==null?0:S.isToggled)};
_.I.computeShowVoteCountBeginning=function(k,E){return k===void 0||E===void 0?!0:k.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.I.computeShowVoteCountEnd=function(k,E){return k===void 0||E===void 0?!0:k.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.I.computeShowCommentCount=function(k,E){return k===void 0||E===void 0?!0:k.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!E&&this.ytRendererBehavior.getSimpleString(E)!=="0"};
_.I.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.I.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.I.showReplyDialog=function(k){k&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Cc(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=k,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.I.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.I.onRequestSent=function(k){if(_.Y("web_button_rework")){k=_.n(k.detail);for(var E=k.next();!E.done;E=k.next())(E=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",E.value))&&this.showReplyDialog(E)}};
_.I.onYtNavigate=function(k){var E,S;(k=(E=_.W(k.detail.endpoint,_.$5Y))==null?void 0:(S=E.dialog)==null?void 0:S.commentReplyDialogRenderer)&&this.showReplyDialog(k)};
_.I.onYtServiceRequestSent=function(k,E){k.stopPropagation();if(E.actions)for(k=0;k<E.actions.length;k++){var S=_.W(E.actions[k],nxp);S&&this.handleUpdateCommentVoteAction(S)}};
_.I.handleUpdateCommentVoteAction=function(k){this.voteCount=k.voteCount||_.DE("0");k.voteStatus==="LIKE"?this.JSC$15976_ytdDislikeToggleButtonRenderer.toggle(!1):k.voteStatus==="DISLIKE"?this.JSC$15976_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15976_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15976_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.I.computeReplyButtonHidden=function(k){return k};
_.I.computeReplyButtonBeginning=function(k){return(k==null?0:k.replyButton)&&k.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?k.replyButton:void 0};
_.I.computeReplyButtonEnd=function(k){return(k==null?0:k.replyButton)&&k.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?k.replyButton:void 0};
_.I.computeActionButtonStyle=function(k){return(k==null?0:k.style)?k.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.I.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.I.onYtToggleButton=function(k){var E,S;this.isLiked=this.systemIcons&&!!((E=k.detail)==null?0:(S=E.actions)==null?0:S.like)};
AG.prototype.onYtToggleButton=AG.prototype.onYtToggleButton;AG.prototype.onButtonTooltipPositionChanged=AG.prototype.onButtonTooltipPositionChanged;AG.prototype.onYtServiceRequestSent=AG.prototype.onYtServiceRequestSent;AG.prototype.onYtNavigate=AG.prototype.onYtNavigate;AG.prototype.onRequestSent=AG.prototype.onRequestSent;AG.prototype.onYtCommentboxDismiss=AG.prototype.onYtCommentboxDismiss;AG.prototype.dataChange=AG.prototype.dataChange;
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],AG.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],AG.prototype,"voteCount",void 0);_.Z([_.H(),_.l("design:type",Object)],AG.prototype,"commentCount",void 0);_.Z([_.H(),_.l("design:type",Object)],AG.prototype,"replyThumbnail",void 0);
_.Z([_.H(),_.l("design:type",Object)],AG.prototype,"hasCreatorReply",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],AG.prototype,"enableCreationBox",void 0);_.Z([_.H({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],AG.prototype,"actionButtonsStyle",void 0);_.Z([_.H({computed:"computeReplyButtonBeginning(data)"}),_.l("design:type",Object)],AG.prototype,"replyButtonBeginning",void 0);
_.Z([_.H({computed:"computeReplyButtonEnd(data)"}),_.l("design:type",Object)],AG.prototype,"replyButtonEnd",void 0);_.Z([_.H(),_.l("design:type",Object)],AG.prototype,"buttonOverrides",void 0);_.Z([_.H(),_.l("design:type",Object)],AG.prototype,"replyButtonOverrides",void 0);_.Z([_.H(),_.l("design:type",Object)],AG.prototype,"forceIconButton",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],AG.prototype,"useCommentIcon",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],AG.prototype,"modern",void 0);_.Z([_.H(),_.l("design:type",Object)],AG.prototype,"buttonTooltipPosition",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],AG.prototype,"systemIcons",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],AG.prototype,"isLiked",void 0);_.Z([_.JO("ytd-button-renderer"),_.l("design:type",Object)],AG.prototype,"ytdReplyButtonRenderer",void 0);
_.Z([_.JO("#like-button"),_.l("design:type",Object)],AG.prototype,"JSC$15976_ytdLikeToggleButtonRenderer",void 0);_.Z([_.JO("#dislike-button"),_.l("design:type",Object)],AG.prototype,"JSC$15976_ytdDislikeToggleButtonRenderer",void 0);_.Z([_.JO("#reply-dialog"),_.l("design:type",HTMLElement)],AG.prototype,"replyDialogElement",void 0);_.Z([_.JO("#reply-button"),_.l("design:type",HTMLElement)],AG.prototype,"replyButtonElement",void 0);
_.Z([_.JO("#reply-button-end"),_.l("design:type",HTMLElement)],AG.prototype,"replyButtonEndElement",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AG.prototype,"dataChange",null);_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],AG.prototype,"onYtCommentboxDismiss",null);
_.Z([_.nv("yt-service-request-sent-button-renderer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],AG.prototype,"onRequestSent",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],AG.prototype,"onYtNavigate",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],AG.prototype,"onYtServiceRequestSent",null);_.Z([_.il("buttonTooltipPosition"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AG.prototype,"onButtonTooltipPositionChanged",null);
_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],AG.prototype,"onYtToggleButton",null);_.Z([_.D({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],AG);
_.b(AG,"ytd-comment-action-buttons-renderer",function(){if(Yyp!==void 0)return Yyp;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Yyp=k},{mode:1});var Fnz;var rQ=function(){return _.p.apply(this,arguments)||this};
_.y(rQ,_.p);rQ.prototype.focus=function(){_.Cc(this.hostElement).querySelector("#commentbox").focus()};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rQ.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],rQ.prototype,"zeroStepChannelCreationRenderer",void 0);_.Z([_.D({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],rQ);
_.b(rQ,"ytd-comment-dialog-renderer",function(){if(Fnz!==void 0)return Fnz;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Fnz=k},{mode:1});var ymp;var u9=function(){var k=_.p.apply(this,arguments)||this;k.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.Y("enable_web_delhi_icons")};k.replyButtonOverrides={size:"S",type:"text"};return k};
_.y(u9,_.p);_.I=u9.prototype;_.I.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.I.detached=function(){this.replyBox&&this.replyBox.remove()};
_.I.showReplyDialog=function(k){if(k){var E=this.replyBox;E||(E=document.createElement("ytd-comment-reply-dialog-renderer"),E.id="replybox",_.Cc(this.replyDialogDiv).appendChild(E));E.data=k;this.replyDialogDiv.hidden=!1;E.openDialog()}};
_.I.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.I.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var k,E=_.W((k=this.toolbarSurface)==null?void 0:k.subscribersOnlyDisclaimerSnackbarCommand,_.gX);E&&_.Me(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:E})}};
_.I.onYtServiceRequestSent=function(k,E){k.stopPropagation();if(E.actions)for(var S=0;S<E.actions.length;S++){var R=_.W(E.actions[S],nxp);R?this.handleUpdateCommentVoteAction(R):k.target===this.heartButton&&this.toggleHeartState()}};
_.I.handleUpdateCommentVoteAction=function(k){var E;(E=this.toolbarState)!=null&&E.key&&this.ytdReduxBehavior.dispatch(_.wE("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:k.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":k.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.I.toggleHeartState=function(){var k;(k=this.toolbarState)!=null&&k.key&&this.ytdReduxBehavior.dispatch(_.wE("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.mt.Object.defineProperties(u9.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return(((k=this.toolbarState)==null?void 0:k.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(E=this.toolbarData)==null?void 0:E.likeCountLiked:(S=this.toolbarData)==null?void 0:S.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.toolbarSurface)==null?void 0:k.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.toolbarSurface)==null?void 0:k.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.toolbarSurface)==null?void 0:k.prepareAccountCommand)!==void 0&&!_.Y("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var k,E=_.W((k=this.toolbarSurface)==null?void 0:k.prepareAccountCommand,_.gX),S,R,V,N,h,J,m,a,T;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((S=this.toolbarSharedData)==null||!S.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:E!=null?E:_.W((V=this.toolbarSurface)==null?void 0:V.likeCommand,_.gX),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.W((N=this.toolbarSurface)==null?void 0:N.unlikeCommand,_.gX),defaultCommand:this.isVisiblyDisabled?_.W((h=this.toolbarSurface)==null?void 0:h.commentDisabledActionCommand,_.gX):void 0,defaultTooltip:(J=this.toolbarData)==null?void 0:J.likeInactiveTooltip,toggledTooltip:(m=this.toolbarData)==null?void 0:m.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(a=this.toolbarData)==null?void 0:a.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(T=this.toolbarSharedData)==null?void 0:T.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var k,E=_.W((k=this.toolbarSurface)==null?void 0:k.prepareAccountCommand,_.gX),S,R,V,N,h,J,m,a,T,w;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((S=this.toolbarSharedData)==null||!S.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.W((V=this.toolbarSurface)==null?void 0:V.dislikeCommand,_.gX),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:E!=null?E:_.W((N=this.toolbarSurface)==null?void 0:N.undislikeCommand,_.gX),defaultCommand:this.isVisiblyDisabled?_.W((h=this.toolbarSurface)==null?void 0:h.commentDisabledActionCommand,_.gX):void 0,defaultTooltip:(J=this.toolbarData)==null?void 0:J.dislikeInactiveTooltip,toggledTooltip:(m=this.toolbarData)==null?void 0:
m.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(a=this.toolbarSharedData)==null?void 0:a.dislikeReplyButtonA11y:(T=this.toolbarSharedData)==null?void 0:T.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var k,E,S;if(((k=this.toolbarState)==null?void 0:k.heartState)!==void 0&&((E=this.toolbarState)==null?void 0:E.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((S=this.toolbarState)==null?void 0:S.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var R,V,N,h,J,m,a,T,w,P,B,F,K,r;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(R=this.toolbarData)==null?void 0:R.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((V=this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((N=this.toolbarState)==null?void 0:N.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((h=this.toolbarState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((J=this.toolbarState)==null?void 0:J.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.W((m=this.toolbarSurface)==null?void 0:m.heartCommand,
_.gX),unheartEndpoint:this.isVisiblyDisabled?void 0:_.W((a=this.toolbarSurface)==null?void 0:a.unheartCommand,_.gX),disabledEndpoint:this.isVisiblyDisabled?_.W((T=this.toolbarSurface)==null?void 0:T.commentDisabledActionCommand,_.gX):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(w=this.toolbarData)==null?void 0:w.heartActiveTooltip,unheartedTooltip:(P=this.toolbarData)==null?void 0:P.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((B=
this.toolbarState)==null?void 0:B.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(F=this.toolbarSharedData)==null?void 0:F.unheartButtonA11y:(K=this.toolbarSharedData)==null?void 0:K.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(r=this.toolbarSharedData)==null?void 0:r.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.toolbarSurface)==null||!k.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.commentStrings)!=null&&k.replyButtonText){var E,S,R,V;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(E=this.commentStrings)==null?void 0:E.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.W((S=this.toolbarSurface)==null?void 0:S.replyCommand,_.gX),command:this.isVisiblyDisabled?
_.W((R=this.toolbarSurface)==null?void 0:R.commentDisabledActionCommand,_.gX):this.isSubsOnlyCommentsIneligibleUser?_.W((V=this.toolbarSurface)==null?void 0:V.subscribersOnlySnackbarCommand,_.gX):void 0}}}}});
u9.prototype.onYtServiceRequestSent=u9.prototype.onYtServiceRequestSent;u9.prototype.hideReplyDialogDiv=u9.prototype.hideReplyDialogDiv;_.Z([_.H(),_.l("design:type",Object)],u9.prototype,"commentStrings",void 0);_.Z([_.H(),_.l("design:type",Boolean)],u9.prototype,"isReply",void 0);_.Z([_.H(),_.l("design:type",Object)],u9.prototype,"toolbarData",void 0);_.Z([_.H(),_.l("design:type",Object)],u9.prototype,"toolbarSharedData",void 0);
_.Z([_.H(),_.l("design:type",String)],u9.prototype,"toolbarStateKey",void 0);_.Z([_.H(),_.l("design:type",String)],u9.prototype,"toolbarSurfaceKey",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],u9.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],u9.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.Jy),_.l("design:type",Object)],u9.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.JO("#reply-dialog"),_.l("design:type",HTMLElement)],u9.prototype,"replyDialogDiv",void 0);_.Z([_.JO("#replybox"),_.l("design:type",Object)],u9.prototype,"replyBox",void 0);_.Z([_.JO("ytd-creator-heart-renderer"),_.l("design:type",Object)],u9.prototype,"heartButton",void 0);_.Z([_.H({selector:function(k,E){return _.Ep(k.entities,"engagementToolbarStateEntityPayload",E)},
selectorArgs:["toolbarStateKey"]}),_.l("design:type",Object)],u9.prototype,"toolbarState",void 0);_.Z([_.H({selector:VZh,selectorArgs:["toolbarSurfaceKey"]}),_.l("design:type",Object)],u9.prototype,"toolbarSurface",void 0);_.Z([_.H(),_.l("design:type",Object)],u9.prototype,"buttonOverrides",void 0);_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],u9.prototype,"hideReplyDialogDiv",null);
_.Z([_.U("toolbarData","toolbarState"),_.l("design:type",String),_.l("design:paramtypes",[])],u9.prototype,"likeCount",null);_.Z([_.U("likeCount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],u9.prototype,"showLikeCount",null);_.Z([_.U("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],u9.prototype,"isVisiblyDisabled",null);_.Z([_.U("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],u9.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.Z([_.U("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],u9.prototype,"isSubsOnlyCommentsEligibleUser",null);_.Z([_.U("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],u9.prototype,"hasPrepareAccountCommand",null);_.Z([_.U("toolbarData","toolbarState","toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],u9.prototype,"likeToggleButtonRenderer",null);
_.Z([_.U("isReply","toolbarData","toolbarState","toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],u9.prototype,"dislikeToggleButtonRenderer",null);_.Z([_.U("toolbarData","toolbarState","toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],u9.prototype,"creatorHeartSupportedRenderer",null);_.Z([_.U("toolbarSurface"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],u9.prototype,"hasReplyCommand",null);
_.Z([_.U("toolbarSurface","commentStrings","isVisiblyDisabled"),_.l("design:type",Object),_.l("design:paramtypes",[])],u9.prototype,"replyButtonRenderer",null);_.Z([_.H(),_.l("design:type",Object)],u9.prototype,"replyButtonOverrides",void 0);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],u9.prototype,"onYtServiceRequestSent",null);_.Z([_.D({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],u9);
_.b(u9,"ytd-comment-engagement-bar",function(){if(ymp!==void 0)return ymp;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return ymp=k},{mode:1});var oi4;var x0=function(){return _.p.apply(this,arguments)||this};
_.y(x0,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],x0.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],x0.prototype,"data",void 0);_.Z([_.D({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],x0);
_.b(x0,"ytd-comment-inline-thumbnail-renderer",function(){if(oi4!==void 0)return oi4;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return oi4=k},{mode:1});var XRd;var LW=function(){return _.p.apply(this,arguments)||this};
_.y(LW,_.p);LW.prototype.onMessageTap=function(){if(this.onTapCommand){var k=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);k&&this.ytdOpenPopupBehavior.openPopup(k)}};
_.mt.Object.defineProperties(LW.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return(k=this.data)==null?void 0:(E=k.button)==null?void 0:(S=E.buttonRenderer)==null?void 0:S.command}}});
_.Z([_.g(_.Jy),_.l("design:type",Object)],LW.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],LW.prototype,"data",void 0);_.Z([_.U("data.button.buttonRenderer.command"),_.l("design:type",Object),_.l("design:paramtypes",[])],LW.prototype,"onTapCommand",null);_.Z([_.D({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],LW);
_.b(LW,"ytd-comment-pause-composer-renderer",function(){if(XRd!==void 0)return XRd;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return XRd=k},{mode:1});var gij;var Uv2;var j2=function(){var k=_.p.apply(this,arguments)||this;k.isOpen=!1;return k};
_.y(j2,_.p);_.I=j2.prototype;_.I.dataChanged=function(){this.isOpen=!1};
_.I.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.I.focus=function(){this.JSC$16006_commentbox.focus()};
_.I.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.I.openDialog=function(){this.isOpen=!0;this.JSC$16006_commentbox.focus();this.JSC$16006_commentbox.maybeHeightChanged()};
j2.prototype.onYtCommentboxDismiss=j2.prototype.onYtCommentboxDismiss;j2.prototype.dataChanged=j2.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],j2.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],j2.prototype,"isOpen",void 0);_.Z([_.JO("#commentbox"),_.l("design:type",Object)],j2.prototype,"JSC$16006_commentbox",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],j2.prototype,"dataChanged",null);_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],j2.prototype,"onYtCommentboxDismiss",null);_.Z([_.D({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],j2);
_.b(j2,"ytd-comment-reply-dialog-renderer",function(){if(Uv2!==void 0)return Uv2;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Uv2=k},{mode:1});var HB5;var DQ=function(){return _.p.apply(this,arguments)||this};
_.y(DQ,_.p);_.mt.Object.defineProperties(DQ.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(k=this.data)==null?void 0:(E=k.icon)==null?void 0:E.iconType;return S?"yt-icons:"+S.toLowerCase():null}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],DQ.prototype,"data",void 0);_.Z([_.H(),_.U("data.icon"),_.l("design:type",Object),_.l("design:paramtypes",[])],DQ.prototype,"icon",null);_.Z([_.D({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],DQ);
_.b(DQ,"ytd-pinned-comment-badge-renderer",function(){if(HB5!==void 0)return HB5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return HB5=k},{mode:1});var Knj;var pRj={},Amj={input:!0,meta:!0,br:!0,link:!0,img:!0},$0=null;pRj.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(){$0==null&&($0=document.createElement("tp-yt-paper-tooltip"),$0.offset=8,$0.fitToVisibleBounds=!0)},
onMouseOver_:function(k){if(k=_.lh(k.target,function(V){return V==this||V.getAttribute&&V.getAttribute("shared-tooltip-text")}.bind(this),!0)){var E=k.getAttribute("shared-tooltip-text");
if(E){var S=this,R=null;k!=this&&(k.tagName.toLowerCase()in Amj?S=k.parentElement:S=k,k.id&&(R=k.id));this.polymerController.createTooltipIfRequired_();if($0.parentElement!=S||$0.for!=R)(0,_.Rc)($0).textContent=E,_.Cc(S).appendChild($0),$0.for=R,$0.animationDelay=this.polymerController.sharedTooltipAnimationDelay,$0.position=this.polymerController.sharedTooltipPosition}}}};var fW=function(){return _.p.apply(this,arguments)||this};
_.y(fW,_.p);fW.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]]"}}}}}};
fW.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var k;((k=this.data)==null?0:k.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
fW.prototype.colorChanged=function(){var k,E,S,R=(k=this.data)==null?void 0:(E=k.color)==null?void 0:(S=E.basicColorPaletteData)==null?void 0:S.foregroundBodyColor;R&&(this.rgbBadgeColor=_.HT(R));_.Cc(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
fW.prototype.tooltipChanged=function(){var k;((k=this.data)==null?0:k.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
fW.prototype.tooltipChanged=fW.prototype.tooltipChanged;fW.prototype.colorChanged=fW.prototype.colorChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(pRj.YtSharedTooltipBehavior),_.l("design:type",Object)],fW.prototype,"ytSharedTooltipBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],fW.prototype,"data",void 0);
_.Z([_.H({value:"#4285F4"}),_.l("design:type",String)],fW.prototype,"rgbBadgeColor",void 0);_.Z([_.il("data.color"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fW.prototype,"colorChanged",null);_.Z([_.il("data.tooltip"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fW.prototype,"tooltipChanged",null);_.Z([_.D({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],fW);
_.b(fW,"ytd-sponsor-comment-badge-renderer",function(){if(Knj!==void 0)return Knj;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Knj=k},{mode:1});var rmA;var uCd;var vf=function(){return _.p.apply(this,arguments)||this};
_.y(vf,_.p);vf.prototype.computeState=function(k){switch(k==null?void 0:k.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"}};
vf.prototype.updateStateIdentifier=function(k){if(this.viewModel.triStateKey){var E=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.wE("triStateButtonStateEntityPayload",E,{key:E,stateIdentifier:k}))}};
vf.prototype.onClick=function(){var k=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(){k.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){k.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.mt.Object.defineProperties(vf.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 k;return((k=this.data)==null?void 0:k.buttonText)||""}}});
_.Z([_.H(),_.l("design:type",Object)],vf.prototype,"viewModel",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],vf.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],vf.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.Z([_.H({selector:Nz1,selectorArgs:["viewModel.triStateKey"]}),_.l("design:type",Object)],vf.prototype,"triStateButtonStateEntity",void 0);
_.Z([_.H({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.l("design:type",String)],vf.prototype,"state",void 0);_.Z([_.U("viewModel","state"),_.l("design:type",Object),_.l("design:paramtypes",[])],vf.prototype,"data",null);_.Z([_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],vf.prototype,"buttonText",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],vf);
_.b(vf,"ytd-tri-state-button-view-model",function(){if(uCd!==void 0)return uCd;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return uCd=k},{mode:1});var xvT;var Lnp;var b9=function(){var k=_.p.apply(this,arguments)||this;k.defaultIconToFilled=!_.Y("kevlar_fill_comment_chip_icon_killswitch");return k};
_.y(b9,_.p);b9.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
b9.prototype.dataChanged=function(){if(this.data){var k,E;((k=this.data.chipColorPalette)==null?0:k.backgroundColor)&&((E=this.data.chipColorPalette)==null?0:E.foregroundTitleColor)&&_.VO(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Kc(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Kc(this.data.chipColorPalette.foregroundTitleColor)});var S;((S=this.data)==null?0:S.command)?(_.VO(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.VO(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}};
b9.prototype.onTap=function(){var k;if(this.data&&(k=this.data)!=null&&k.command){var E;this.ytComponentBehavior.resolveCommand((E=this.data)==null?void 0:E.command)}};
b9.prototype.getIconSize=function(){return _.Y("kevlar_fill_comment_chip_icon_killswitch")?24:12};
b9.prototype.onTap=b9.prototype.onTap;b9.prototype.dataChanged=b9.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],b9.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.YD),_.l("design:type",Object)],b9.prototype,"ironA11yKeysBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],b9.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],b9.prototype,"basePriceText",void 0);_.Z([_.H(),_.l("design:type",Object)],b9.prototype,"chipIcon",void 0);_.Z([_.H(),_.l("design:type",Object)],b9.prototype,"defaultIconToFilled",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b9.prototype,"dataChanged",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b9.prototype,"onTap",null);
_.Z([_.U_({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],b9);
_.b(b9,"yt-pdg-comment-chip-renderer",function(){if(Lnp===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;xvT===void 0&&(xvT=document.createElement("template"));var R=xvT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Lnp=k}k=Lnp;return k},{mode:2});var ZQ=function(){var k=_.p.apply(this,arguments)||this;k.useSmallAvatars=_.Y("small_avatars_for_comments");k.webWatchCompactComments=_.Y("web_watch_compact_comments");k.editDialog=null;return k};
_.y(ZQ,_.p);_.I=ZQ.prototype;_.I.onShow=function(){_.Xy("cmv",void 0,"wn_comments")};
_.I.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"}}}};
_.I.detached=function(){this.editDialog=null;this.expander.reset()};
_.I.updateBackgroundColor=function(){if(this.backgroundColor){var k={"--ytd-comment-paid-background-color":_.Kc(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.VO(this.hostElement,k)}else _.VO(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.I.resetExpander=function(){var k;(k=this.expander)==null||k.reset()};
_.I.openEditDialog=function(k){k.dialog&&(this.editDialog=k.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.I.onYtNavigate=function(k){var E=k.detail.endpoint;if(E=_.W(E,_.f2d)||_.W(E,_.vNj))k.stopPropagation(),this.openEditDialog(E)};
_.I.onYtCommentboxDismiss=function(){this.editDialog=null;_.VO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.I.onAuthorThumbnailClicked=function(){_.Y("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.I.onYtCommentboxResize=function(k){var E;(k==null?0:(E=k.detail)==null?0:E.height)&&_.VO(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":k.detail.height+"px"})};
_.mt.Object.defineProperties(ZQ.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 k,E=(k=this.commentEntity)==null?void 0:k.author;return E&&(E.isCreator||E.isVerified||E.isArtist)?{renderer:{authorEndpoint:E.channelPageEndpoint?_.W(E.channelPageEndpoint,_.gX):_.W(E.channelCommand,_.gX),authorText:{runs:[{text:E.displayName}]},color:E.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:E.isArtist?{iconType:"AUDIO_BADGE"}:
E.isVerified?{iconType:E.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:E.isArtist||E.isVerified?E.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var k,E=(k=this.commentEntity)==null?void 0:k.author;return E!=null&&E.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:E.sponsorBadgeUrl}]},tooltip:E.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var k;return _.W((k=this.commentSurfaceEntity)==null?void 0:k.pdgCommentChip,_.t6C)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var k;return this.voiceReplyContainerViewModel&&((k=this.voiceReplyContainerViewModel)==null?void 0:k.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var k;return _.W((k=this.commentSurfaceEntity)==null?void 0:k.voiceReplyContainerViewModel,ThC)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var k;return this.voiceReplyContainerViewModel&&(k=this.voiceReplyContainerViewModel)!=null&&k.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=(k=this.commentSurfaceEntity)==null?void 0:k.commentBackgroundColor)!=null?E:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var k,E;return(((k=this.commentEntity)==null?void 0:(E=k.properties)==null?void 0:E.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var k,E;if(_.Y("enable_profile_cards_on_comments")&&((k=this.commentEntity)==null?0:(E=k.author)==null?0:E.profileCardEndpoint)&&this.viewModel.allowProfileCard){var S,R;return _.W((S=this.commentEntity)==null?void 0:(R=S.author)==null?void 0:R.profileCardEndpoint,_.gX)}var V,N;return _.W((V=this.commentEntity)==null?void 0:(N=V.avatar)==null?void 0:N.endpoint,_.gX)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var k,E;if(_.Y("enable_profile_cards_on_comments")&&((k=this.commentEntity)==null?0:(E=k.author)==null?0:E.channelPageEndpoint)){var S,R;return _.W((S=this.commentEntity)==null?void 0:(R=S.author)==null?void 0:R.channelPageEndpoint,_.gX)}var V,N;return _.W((V=this.commentEntity)==null?void 0:(N=V.avatar)==null?void 0:N.endpoint,_.gX)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R,V=(k=this.commentEntity)==null?void 0:(E=k.avatar)==null?void 0:(S=E.image)==null?void 0:(R=S.sources)==null?void 0:R[0];return V?{thumbnails:[{url:V.url,width:V.width,height:V.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.commentEntity)==null?0:(E=k.author)==null?0:E.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.commentEntity)==null?void 0:(E=k.author)==null?void 0:E.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.commentEntity)==null?void 0:(E=k.properties)==null?void 0:E.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var k;return _.W((k=this.commentSurfaceEntity)==null?void 0:k.publishedTimeCommand,_.gX)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var k,E;if(((k=this.commentEntity)==null?0:k.translatedContent)&&((E=this.translateButtonState)==null?void 0:E.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var S;if((S=this.voiceReplyContainerViewModel)==null?0:S.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var R,V;return((R=this.commentEntity)==null?void 0:(V=R.properties)==null?void 0:V.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.commentSharedEntity)==null?void 0:(E=k.strings)==null?void 0:E.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.commentSharedEntity)==null?void 0:(E=k.strings)==null?void 0:E.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.commentEntity)==null||!k.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var k,E,S=(E=_.W((k=this.viewModel)==null?void 0:k.translateButton,tGj))!=null?E:{},R,V,N,h,J,m,a,T,w,P,B;return Object.assign({},S,{untoggledStateData:Object.assign({},S.untoggledStateData,{buttonText:(R=this.commentEntity)==null?void 0:(V=R.translateData)==null?void 0:V.text}),togglingStateData:Object.assign({},S.togglingStateData,{buttonText:(N=this.commentSharedEntity)==null?
void 0:(h=N.strings)==null?void 0:h.translatingText}),toggledStateData:Object.assign({},S.toggledStateData,{buttonText:(J=this.commentSharedEntity)==null?void 0:(m=J.strings)==null?void 0:m.seeOriginalText}),transitionCommand:((a=this.commentEntity)==null?0:a.translatedContent)?void 0:_.W((T=this.commentEntity)==null?void 0:(w=T.translateData)==null?void 0:w.translateComment,_.gX),triStateKey:(P=this.commentEntity)==null?void 0:(B=P.properties)==null?void 0:B.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((E=_.W(_.W((k=this.toolbarSurface)==null?void 0:k.menuCommand,_.gX),bMY))==null?void 0:(S=E.menu)==null?void 0:S.menuRenderer)||null}}});
ZQ.prototype.onYtCommentboxResize=ZQ.prototype.onYtCommentboxResize;ZQ.prototype.onYtCommentboxDismiss=ZQ.prototype.onYtCommentboxDismiss;ZQ.prototype.onYtNavigate=ZQ.prototype.onYtNavigate;ZQ.prototype.resetExpander=ZQ.prototype.resetExpander;ZQ.prototype.updateBackgroundColor=ZQ.prototype.updateBackgroundColor;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],ZQ.prototype,"ytdReduxBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ZQ.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.JO("#author-thumbnail > button"),_.l("design:type",HTMLElement)],ZQ.prototype,"authorThumbnailAnchor",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("viewModel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ZQ.prototype,"linked",null);
_.Z([_.U("viewModel","linked"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"linkedCommentBadge",null);_.Z([_.H({reflectToAttribute:!0}),_.U("viewModel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ZQ.prototype,"pinned",null);_.Z([_.U("viewModel","pinned"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"pinnedCommentBadge",null);
_.Z([_.U("commentEntity","commentSharedEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"authorCommentBadge",null);_.Z([_.H({reflectToAttribute:!0}),_.U("authorCommentBadge"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"hasAuthorBadge",null);_.Z([_.U("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"sponsorCommentBadge",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("sponsorCommentBadge"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"hasSponsorBadge",null);_.Z([_.U("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"pdgCommentChipRenderer",null);_.Z([_.H({reflectToAttribute:!0}),_.U("voiceReplyContainerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"hasVoiceReply",null);
_.Z([_.U("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"voiceReplyContainerViewModel",null);_.Z([_.U("voiceReplyContainerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"voiceReplyUnavailableText",null);_.Z([_.H(),_.l("design:type",Object)],ZQ.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"viewModel",null);
_.Z([_.H({selector:function(k,E){return _.Ep(k.entities,"commentSharedEntityPayload",E)},
selectorArgs:["viewModel.sharedKey"]}),_.l("design:type",Object)],ZQ.prototype,"commentSharedEntity",void 0);_.Z([_.H({selector:REh,selectorArgs:["viewModel.commentKey"]}),_.l("design:type",Object)],ZQ.prototype,"commentEntity",void 0);_.Z([_.H({selector:function(k,E){return _.Ep(k.entities,"commentSurfaceEntityPayload",E)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.l("design:type",Object)],ZQ.prototype,"commentSurfaceEntity",void 0);_.Z([_.H({selector:VZh,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.l("design:type",Object)],ZQ.prototype,"toolbarSurface",void 0);_.Z([_.H({selector:Nz1,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.l("design:type",Object)],ZQ.prototype,"translateButtonState",void 0);
_.Z([_.U("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"backgroundColor",null);_.Z([_.H({reflectToAttribute:!0}),_.U("viewModel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ZQ.prototype,"optimalReadingWidthComments",null);_.Z([_.JO("ytd-expander"),_.l("design:type",Object)],ZQ.prototype,"expander",void 0);
_.Z([_.il("backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZQ.prototype,"updateBackgroundColor",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ZQ.prototype,"useSmallAvatars",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ZQ.prototype,"webWatchCompactComments",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"isReply",null);
_.Z([_.U("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"authorThumbnailEndpoint",null);_.Z([_.U("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"authorNameEndpoint",null);_.Z([_.U("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"authorThumbnail",null);_.Z([_.U("commentEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],ZQ.prototype,"authorTextClass",null);
_.Z([_.U("commentEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],ZQ.prototype,"authorChannelName",null);_.Z([_.U("commentEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"publishedTime",null);_.Z([_.U("commentSurfaceEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"publishedTimeCommand",null);
_.Z([_.U("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"contentText",null);_.Z([_.il("contentText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZQ.prototype,"resetExpander",null);_.Z([_.U("commentEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ZQ.prototype,"shouldShowReadMoreInitially",null);
_.Z([_.U("commentSharedEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],ZQ.prototype,"expandText",null);_.Z([_.U("commentSharedEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],ZQ.prototype,"collapseText",null);_.Z([_.U("commentEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ZQ.prototype,"shouldShowTranslateButton",null);
_.Z([_.U("commentEntity","commentSharedEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"translateButton",null);_.Z([_.U("toolbarSurface"),_.l("design:type",Object),_.l("design:paramtypes",[])],ZQ.prototype,"overflowMenuRenderer",null);_.Z([_.H(),_.l("design:type",Object)],ZQ.prototype,"editDialog",void 0);_.Z([_.JO("ytd-comment-dialog-renderer"),_.l("design:type",Object)],ZQ.prototype,"editCommentDialogContainer",void 0);
_.Z([_.JO("ytd-comment-reply-dialog-renderer"),_.l("design:type",Object)],ZQ.prototype,"editReplyDialogContainer",void 0);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ZQ.prototype,"onYtNavigate",null);_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ZQ.prototype,"onYtCommentboxDismiss",null);
_.Z([_.nv("yt-commentbox-resize"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ZQ.prototype,"onYtCommentboxResize",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-comment-view-model"})],ZQ);
_.b(ZQ,"ytd-comment-view-model",function(){if(rmA!==void 0)return rmA;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return rmA=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});_.qi(_.f(function(k){var E={};return _.e("yt-sub-thread",{class:_.SQ("ytSubThreadHost",(E.ytSubThreadHasButton=k.isButton,E))},_.e("div",{class:"ytSubThreadThreadline"},_.e("div",{class:"ytSubThreadConnection"}),_.e("div",{class:"ytSubThreadContinuation"}),_.e("div",{class:"ytSubThreadShadow"})),_.e("div",{class:"ytSubThreadSubThreadContent"},k.children))},"Ic"),"yt-sub-thread",{props:{isButton:_.Nq}});var dQ=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("web_modern_buttons");k.commentThreadingEnabled=_.Y("web_delhi_comment_threads");k.isWatchGrid=_.Y("kevlar_watch_grid");k.buttonOverrides=k.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};k.JSC$16052_spinnerEl=null;return k};
_.y(dQ,_.p);_.I=dQ.prototype;_.I.configureContinuationPathMap=function(){return _.Y("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.I.shouldShowExpandedThreads=function(k,E){return this.commentThreadingEnabled&&E&&(k==null?void 0:k.length)>0};
_.I.shouldShowCollapsedThreads=function(k,E){return this.commentThreadingEnabled&&!E&&k};
_.I.computeThreadRenderer=function(k){return _.W(k,iFT)};
_.I.computeIsContinuationItem=function(k){return!!this.computeContinuationItemRenderer(k)};
_.I.computeButtonRenderer=function(k){return _.W(k,_.dZ)};
_.I.computeContinuationItemRenderer=function(k){return _.W(k,_.jj)};
_.I.computeShowButton=function(k){var E;return!((E=this.computeContinuationItemRenderer(k))==null||!E.button)};
_.I.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]]"}}}}}};
_.I.attached=function(){this.isShowRepliesVisible=!0};
_.I.dataChanged=function(){var k=this.expanderContents;k&&(k.hidden=!0);this.isLoading=!1};
_.I.endsInContinuation=function(k){return!!k&&k.length>0&&!!this.computeContinuationItemRenderer(k[k.length-1])};
_.I.computeShouldShowHideRepliesButton=function(k,E){return!k&&E};
_.I.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.I.isLoadingChanged=function(){this.isLoading&&!this.JSC$16052_spinnerEl&&(this.JSC$16052_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Cc(this.expanderContents).appendChild(this.JSC$16052_spinnerEl));this.JSC$16052_spinnerEl&&(this.JSC$16052_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var k;(k=this.contents)==null||k.classList.remove("reloading")}};
_.I.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var k=_.W(this.data.viewReplies,_.dZ);k&&this.ytRendererBehavior.logExplicitClick(k);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.I.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var k=_.W(this.data.hideReplies,_.dZ);k&&this.ytRendererBehavior.logExplicitClick(k);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.I.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var k=_.Cc(this.hostElement).querySelector("#expander-contents");k&&(k.hidden=this.isShowRepliesVisible)}};
_.I.computeAlign=function(){if(this.modern){var k;return!((k=this.data)==null?0:k.viewRepliesCreatorThumbnail)}};
_.mt.Object.defineProperties(dQ.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var k,E;return this.endsInContinuation((k=this.data)==null?void 0:k.contents)||this.commentThreadingEnabled&&this.endsInContinuation((E=this.data)==null?void 0:E.subThreads)}}});
dQ.prototype.isShowMoreChanged=dQ.prototype.isShowMoreChanged;dQ.prototype.isLoadingChanged=dQ.prototype.isLoadingChanged;dQ.prototype.triggerFirstContinuation=dQ.prototype.triggerFirstContinuation;dQ.prototype.dataChanged=dQ.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.VX),_.l("design:type",Object)],dQ.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],dQ.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],dQ.prototype,"modern",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],dQ.prototype,"commentThreadingEnabled",void 0);_.Z([_.H(),_.l("design:type",Boolean)],dQ.prototype,"expanded",void 0);
_.Z([_.H(),_.l("design:type",Function)],dQ.prototype,"toggleExpanded",void 0);_.Z([_.H(),_.l("design:type",Array)],dQ.prototype,"teasers",void 0);_.Z([_.H(),_.l("design:type",Boolean)],dQ.prototype,"isLoading",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],dQ.prototype,"isShowRepliesVisible",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],dQ.prototype,"useNewFormatting",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],dQ.prototype,"isWatchGrid",void 0);
_.Z([_.H(),_.l("design:type",Object)],dQ.prototype,"buttonOverrides",void 0);_.Z([_.JO("#expander-contents"),_.l("design:type",HTMLElement)],dQ.prototype,"expanderContents",void 0);_.Z([_.JO("ytd-continuation-item-renderer"),_.l("design:type",Object)],dQ.prototype,"continuationItemRenderer",void 0);_.Z([_.JO("#contents"),_.l("design:type",HTMLElement)],dQ.prototype,"contents",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dQ.prototype,"dataChanged",null);_.Z([_.U("data.contents","data.subThreads.*"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],dQ.prototype,"hasContinuation",null);_.Z([_.nv("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dQ.prototype,"triggerFirstContinuation",null);
_.Z([_.il("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dQ.prototype,"isLoadingChanged",null);_.Z([_.il("isShowRepliesVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dQ.prototype,"isShowMoreChanged",null);_.Z([_.D({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],dQ);
_.b(dQ,"ytd-comment-replies-renderer",function(){if(gij!==void 0)return gij;var k=document.createElement("template");_.X(k,'\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 id="expanded-threads" 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" aria-controls="expanded-threads" aria-expanded="[[!expanded]]" 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 id="collapsed-threads" 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" aria-controls="collapsed-threads" aria-expanded="[[expanded]]" 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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return gij=k},{mode:1});var jwd;var ss=function(){var k=_.p.apply(this,arguments)||this;k.isOpen=!1;k.commentDialog=null;k.useSmallAvatars=_.Y("small_avatars_for_comments");k.useSmallAvatarsEngagementPanelOnly=_.Y("small_avatars_for_comments_ep");k.placeholderFocusListener=null;k.hasOpenedDialog=!1;k.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return k};
_.y(ss,_.p);_.I=ss.prototype;_.I.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]]"}}}}}};
_.I.ready=function(){var k=this,E=_.Cc(this.hostElement).querySelector("#placeholder-area"),S=_.Cc(this.hostElement).querySelector("#simplebox-placeholder"),R=function(V){V.stopPropagation();V instanceof KeyboardEvent&&V.type==="keypress"&&V.keyCode!==13&&V.keyCode!==32||k.openDialog()};
this.placeholderFocusListener=R;S.addEventListener("focus",this.placeholderFocusListener);E.addEventListener("tap",R);E.addEventListener("keypress",R)};
_.I.maybeRemoveFocusEventListener=function(){var k;(k=this.data)!=null&&k.prepareAccountEndpoint&&!_.Y("web_comments_simplebox_modal_focus_on_tap_ks")&&(k=_.Cc(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(k.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.I.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.I.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.Y("web_comment_simplebox_resolve_polymer_command_ks")?_.V_.instance.resolveCommand(this.data.prepareAccountEndpoint):_.Ni(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var k=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);k&&this.ytdOpenPopupBehavior.openPopup(k);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Cc(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.I.onYtCommentboxDismiss=function(k){k.stopPropagation();this.isOpen=!1};
_.I.onCreateCommentAction=function(k){this.get("createCommentAction.contents",k)&&(this.isOpen=!1)};
_.I.computeCommentDialog=function(k){return{placeholderText:k.placeholderText,authorThumbnail:k.authorThumbnail,submitButton:k.submitButton,imageButton:k.imageButton,cancelButton:k.cancelButton,emojiButton:k.emojiButton,emojis:k.emojis,emojiPicker:k.emojiPicker,aadcGuidelinesStateEntityKey:k.aadcGuidelinesStateEntityKey,openAadcDialog:k.openAadcDialog,unicodeEmojisUrl:k.unicodeEmojisUrl}};
_.I.onHideIdentityChip=function(k){_.W(k,SDd)&&this.set("data.placeholderText",_.W(k,SDd).placeholderText)};
ss.prototype.onYtCommentboxDismiss=ss.prototype.onYtCommentboxDismiss;ss.prototype.dataChanged=ss.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],ss.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ss.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ss.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],ss.prototype,"isOpen",void 0);_.Z([_.H(),_.l("design:type",Object)],ss.prototype,"commentDialog",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ss.prototype,"engagementPanel",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ss.prototype,"useSmallAvatars",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ss.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ss.prototype,"enableCreationBox",void 0);_.Z([_.H(),_.l("design:type",Boolean)],ss.prototype,"showCreateDialog",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ss.prototype,"dataChanged",null);_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ss.prototype,"onYtCommentboxDismiss",null);_.Z([_.D({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],ss);
_.b(ss,"ytd-comment-simplebox-renderer",function(){if(jwd!==void 0)return jwd;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return jwd=k},{mode:1});var DvC;_.B9("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var l9=function(){var k=_.p.apply(this,arguments)||this;k.addHoverEffect=_.Y("swatcheroo_comments_hover_effect");k.useSmallAvatars=_.Y("small_avatars_for_comments");k.scrollingEnabled=_.Y("web_comment_threading_scroll_on_collapse");k.threadHovered=!1;k.expanded=!1;k.removed=!1;k.teasers=[];k.actionMap=k.configureActionMap();k.toggleExpanded=function(){k.expanded=!k.expanded;!k.expanded&&k.scrollingEnabled&&_.qe(k.hostElement,"yt-scroll-to-comment-element",[k.commentElement])};
return k};
_.y(l9,_.p);_.I=l9.prototype;_.I.configureActionMap=function(){return _.Y("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"}:{}};
_.I.createCommentReplyAction=function(k){k=_.W(k,kzC);if(k!=null&&k.contents){var E=k.replyToCommentId,S=k.parentCommentId,R,V=(R=this.commentViewModel)==null?void 0:R.commentId;(V===E||V===S&&!E)&&this.maybeAttachReply(k.contents)}};
_.I.maybeAttachReply=function(k){var E,S;(((E=this.commentEntity)==null?void 0:(S=E.properties)==null?void 0:S.replyLevel)||0)>=3?_.Me(this.hostElement,"yt-pushed-create-comment-reply",k):this.attachReply(k)};
_.I.onPushedCreateCommentReply=function(k){var E,S;(((E=this.commentEntity)==null?void 0:(S=E.properties)==null?void 0:S.replyLevel)||0)>=3||(this.attachReply(k.detail),k.stopPropagation())};
_.I.attachReply=function(k){var E;((E=this.data)==null?0:E.replies)?(E=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+E+".continuationItemRenderer")?E===0?this.push("teasers",k):this.splice("data.replies.commentRepliesRenderer.subThreads",E,0,k):this.push("data.replies.commentRepliesRenderer.subThreads",k)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[k],viewReplies:{buttonRenderer:{text:_.lD(_.Vi("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.I.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.$e(this.teasers))),this.set("teasers",[]))};
_.I.removeCommentAction=function(k){k=_.W(k,NhC);var E=k==null?void 0:k.commentId,S;E&&((S=this.commentViewModel)==null?void 0:S.commentId)===E&&this.maybeRemoveComment(k.actionResult)};
_.I.banAuthorAction=function(k){k=_.W(k,Gkp);var E=k==null?void 0:k.commentId,S;E&&((S=this.commentViewModel)==null?void 0:S.commentId)===E&&this.maybeRemoveComment(k.actionResult)};
_.I.hideReportedCommentAction=function(k){k=_.W(k,YDz);var E=k==null?void 0:k.commentId,S;E&&((S=this.commentViewModel)==null?void 0:S.commentId)===E&&this.maybeRemoveComment(k.actionResult)};
_.I.maybeRemoveComment=function(k){k&&k.status==="STATUS_SUCCEEDED"&&(this.feedbackText=k.feedbackText||_.lD("Reply removed"),this.removed=!0)};
_.I.onTap=function(k){if(this.addHoverEffect&&!this.engagementPanel&&!_.v9(_.vT(k)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||_.Ni({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.I.attached=function(){var k=this;this.isSubThread&&(this.expanded=!0);var E;(E=this.commentThreadHitbox)==null||E.addEventListener("mouseover",function(){k.threadHovered=!0});
var S;(S=this.commentThreadHitbox)==null||S.addEventListener("mouseout",function(){k.threadHovered=!1});
var R;(R=this.commentThreadHitbox)==null||R.addEventListener("click",function(){k.maybeToggleExpanded()})};
_.I.maybeToggleExpanded=function(){var k,E,S,R=(k=this.data)==null?void 0:(E=k.replies)==null?void 0:(S=E.commentRepliesRenderer)==null?void 0:S.subThreads,V;(R==null?void 0:R.length)===1&&((V=_.W(R[0],_.jj))==null?0:V.button)&&this.expanded||this.toggleExpanded()};
_.mt.Object.defineProperties(l9.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var k;return _.W((k=this.data)==null?void 0:k.commentViewModel,aq2)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return _.Y("web_delhi_comment_threads")&&!!((k=this.data)==null?0:(E=k.replies)==null?0:(S=E.commentRepliesRenderer)==null?0:S.subThreads)}}});
l9.prototype.onTap=l9.prototype.onTap;l9.prototype.onAppendContinuationItemsActionFinished=l9.prototype.onAppendContinuationItemsActionFinished;l9.prototype.onPushedCreateCommentReply=l9.prototype.onPushedCreateCommentReply;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],l9.prototype,"ytdReduxBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],l9.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],l9.prototype,"addHoverEffect",void 0);_.Z([_.H(),_.l("design:type",Object)],l9.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],l9.prototype,"useSmallAvatars",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],l9.prototype,"scrollingEnabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],l9.prototype,"isSubThread",void 0);_.Z([_.JO(".thread-hitbox"),_.l("design:type",HTMLElement)],l9.prototype,"commentThreadHitbox",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],l9.prototype,"threadHovered",void 0);_.Z([_.JO("#comment"),_.l("design:type",HTMLElement)],l9.prototype,"commentElement",void 0);
_.Z([_.H(),_.l("design:type",Object)],l9.prototype,"expanded",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],l9.prototype,"removed",void 0);_.Z([_.H(),_.l("design:type",Object)],l9.prototype,"feedbackText",void 0);_.Z([_.H(),_.l("design:type",Array)],l9.prototype,"teasers",void 0);_.Z([_.H({selector:REh,selectorArgs:["commentViewModel.commentKey"]}),_.l("design:type",Object)],l9.prototype,"commentEntity",void 0);
_.Z([_.nv("yt-pushed-create-comment-reply"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],l9.prototype,"onPushedCreateCommentReply",null);_.Z([_.nv("yt-append-continuation-items-action-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],l9.prototype,"onAppendContinuationItemsActionFinished",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],l9.prototype,"commentViewModel",null);
_.Z([_.U("data.replies"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],l9.prototype,"hasSubThreading",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],l9.prototype,"engagementPanel",void 0);_.Z([_.nv("tap"),_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],l9.prototype,"onTap",null);_.Z([_.D({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],l9);
_.b(l9,"ytd-comment-thread-renderer",function(){if(DvC!==void 0)return DvC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return DvC=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var $vC;var Mt=function(){var k=_.p.apply(this,arguments)||this;k.compactHeader=_.Y("web_watch_compact_comments_header");k.hidePanelButton=!1;k.isPostSchedulingEnabled=_.Y("enable_post_scheduling");k.hasFinishedStamping=!1;k.JSC$16075_handleOpenPostCommentDialogActionAfterStamp=!1;k.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return k};
_.y(Mt,_.p);_.I=Mt.prototype;
_.I.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"}}}};
_.I.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.I.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16075_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.I.onYtServiceRequestSent=function(k,E){if(!_.Y("kevlar_command_handler")&&E.actions)for(k=0;k<E.actions.length;k++){var S=E.actions[k];_.W(S,gtd)&&_.Cc(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.W(S,gtd))}};
_.I.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var k;if(this.getPrefilledBackstagePostDialog((k=this.data)==null?void 0:k.actions)){_.Cc(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var E=_.Cc(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;E&&_.JB(this,function(){E.focus();E.openDialog&&E.openDialog()})}}else this.hasActionsChange=!0};
_.I.computeIsBackstage=function(k){return k};
_.I.onYtCommentboxDismiss=function(){_.Cc(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.I.removePrefilledDialog=function(k){if(k==null?0:k.actions){for(var E=k.actions.length-1;E>=0;E--){var S=void 0;((S=_.W(k.actions[E],D5T))==null?0:S.dialog)&&delete k.actions[E]}this.set("data",void 0);this.set("data",k)}};
_.I.getPrefilledBackstagePostDialog=function(k){if(k)for(var E=0;E<k.length;E++){var S=k[E],R=void 0;if((R=_.W(S,D5T))==null?0:R.dialog)return _.W(S,D5T).dialog}return null};
_.I.computeBackstagePostDialog=function(k){return k&&(this.getPrefilledBackstagePostDialog(k.actions)||k.createRenderer)};
_.I.dataChanged=function(){if(this.data){var k=this.data.customEmojis,E=this.data.unicodeEmojisUrl;_.kP.clear();E&&_.pOp(_.kP,E);k&&_.kP.load(k)}};
_.I.handleSignalActionOpenPostCommentDialogAction=function(){var k=_.Cc(this.hostElement).querySelector("ytd-comment-simplebox-renderer");k?k.openDialog():this.JSC$16075_handleOpenPostCommentDialogActionAfterStamp=!0};
_.I.onPostHeaderTap=function(){var k;((k=this.data)==null?0:k.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.mt.Object.defineProperties(Mt.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.Y("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R,V,N,h;return!this.hidePanelButton&&_.Y("kevlar_watch_comments_panel_button")&&((h=_.W((k=this.data)==null?void 0:(E=k.sortMenu)==null?void 0:(S=E.sortFilterSubMenuRenderer)==null?void 0:(R=S.subMenuItems)==null?void 0:(V=R[0])==null?void 0:(N=V.serviceEndpoint)==null?void 0:N.commandMetadata,_.Sd))==null?void 0:h.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Vi("MINIPLAYER_EXPAND_LABEL"),text:_.DE(_.Vi("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Mt.prototype.dataChanged=Mt.prototype.dataChanged;Mt.prototype.onYtCommentboxDismiss=Mt.prototype.onYtCommentboxDismiss;Mt.prototype.observePrefilledBackstagePostDialog=Mt.prototype.observePrefilledBackstagePostDialog;Mt.prototype.onYtServiceRequestSent=Mt.prototype.onYtServiceRequestSent;Mt.prototype.onStampFinished=Mt.prototype.onStampFinished;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Mt.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Mt.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Mt.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Mt.prototype,"compactHeader",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Mt.prototype,"engagementPanel",void 0);_.Z([_.H(),_.l("design:type",Object)],Mt.prototype,"hidePanelButton",void 0);_.Z([_.H({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Mt.prototype,"isBackstage",void 0);_.Z([_.H({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.l("design:type",Object)],Mt.prototype,"backstagePostDialog",void 0);
_.Z([_.H(),_.l("design:type",Object)],Mt.prototype,"isPostSchedulingEnabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data","showCommentsPanelButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],Mt.prototype,"useSpaceBetween",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data","hidePanelButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],Mt.prototype,"showCommentsPanelButton",null);
_.Z([_.U("data","showCommentsPanelButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],Mt.prototype,"commentsPanelButtonData",null);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mt.prototype,"onStampFinished",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],Mt.prototype,"onYtServiceRequestSent",null);
_.Z([_.il("data.actions"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mt.prototype,"observePrefilledBackstagePostDialog",null);_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Mt.prototype,"onYtCommentboxDismiss",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Mt.prototype,"dataChanged",null);
_.Z([_.D({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Mt);
_.b(Mt,"ytd-comments-header-renderer",function(){if($vC!==void 0)return $vC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return $vC=k},{mode:1});var fhz;var qt=function(){return _.p.apply(this,arguments)||this};
_.y(qt,_.p);_.Z([_.H(),_.l("design:type",Object)],qt.prototype,"data",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.Z([_.D({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],qt);
_.b(qt,"ytd-destination-button-renderer",function(){if(fhz!==void 0)return fhz;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return fhz=k},{mode:1});var viY;var z1=function(){var k=_.p.apply(this,arguments)||this;k.isRichGrid=!1;k.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return k};
_.y(z1,_.p);_.I=z1.prototype;_.I.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.I.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.I.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.I.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var k;if((k=this.data)==null||!k.isExpanded){k=this.hostElement.clientWidth;var E;if(k&&(E=this.data)!=null&&E.destinationButtons){E=Math.floor((k+4)/214);k=this.data.destinationButtons.length;var S=Math.ceil(k/E);this.fullyVisibleRows=k%E===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}}}};
_.I.updateRichGridDestinationButtonsVisibility=function(){var k,E;if(this.isRichGrid&&((k=this.data)==null||!k.isExpanded)&&(E=this.data)!=null&&E.destinationButtons){k=this.richGridItemsPerRow+1;E=this.data.destinationButtons.length;var S=Math.ceil(E/k);this.fullyVisibleRows=E%k===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}};
_.I.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
z1.prototype.updateRichGridDestinationButtonsVisibility=z1.prototype.updateRichGridDestinationButtonsVisibility;_.Z([_.H(),_.l("design:type",Object)],z1.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Number)],z1.prototype,"fullyVisibleRows",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],z1.prototype,"isShowMoreVisible",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z1.prototype,"isRichGrid",void 0);
_.Z([_.H({selector:_.Wo,value:0}),_.l("design:type",Number)],z1.prototype,"richGridItemsPerRow",void 0);_.Z([_.H(),_.l("design:type",Object)],z1.prototype,"gridStateActionMap",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],z1.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],z1.prototype,"ytdReduxBehavior",void 0);_.Z([_.il("data","richGridItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z1.prototype,"updateRichGridDestinationButtonsVisibility",null);_.Z([_.D({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],z1);
_.b(z1,"ytd-destination-shelf-renderer",function(){if(viY!==void 0)return viY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return viY=k},{mode:1});var bB4;var Q9=function(){return _.p.apply(this,arguments)||this};
_.y(Q9,_.p);Q9.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Q9.prototype,"data",void 0);_.Z([_.D({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Q9);
_.b(Q9,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(bB4!==void 0)return bB4;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return bB4=k},{mode:1});var ZBd;var Os=function(){var k=_.p.apply(this,arguments)||this;k.disableAnimation=!1;k.isSlimlineSurvey=!1;k.isSlimlineSurveyFollowUp=!1;k.isShortsStyle=!1;return k};
_.y(Os,_.p);Os.prototype.onTap=function(k){k.preventDefault();this.data&&_.Me(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.mt.Object.defineProperties(Os.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 k,E,S,R,V;return((k=this.data)==null?0:k.checked)?(E=this.data)==null?void 0:(S=E.onStateIcon)==null?void 0:S.iconType:(R=this.data)==null?void 0:(V=R.defaultStateIcon)==null?void 0:V.iconType}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Os.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Os.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Os.prototype,"disableAnimation",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Os.prototype,"isSlimlineSurvey",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Os.prototype,"isSlimlineSurveyFollowUp",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Os.prototype,"isShortsStyle",void 0);_.Z([_.U("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Os.prototype,"isAnimatedIcon",null);
_.Z([_.U("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.l("design:type",Number),_.l("design:paramtypes",[])],Os.prototype,"iconSize",null);_.Z([_.U("isShortsStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Os.prototype,"isDarkTheme",null);_.Z([_.U("data.checked"),_.l("design:type",Object),_.l("design:paramtypes",[])],Os.prototype,"icon",null);_.Z([_.D({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Os);
_.b(Os,"ytd-rating-survey-option-renderer",function(){if(ZBd!==void 0)return ZBd;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return ZBd=k},{mode:2});var dvp;var G1=function(){var k=_.p.apply(this,arguments)||this;k.firstResponseText=null;k.lastResponseText=null;k.selectedNonStarOption=null;k.hideOptions=!1;k.hideUndoButton=!0;k.disableAnimation=!1;k.showResponseRangeText=!1;k.selectedRatingIndex=-1;k.isSlimlineSurvey=!1;k.isSlimlineSurveyFollowUp=!1;k.isShortsStyle=!1;k.slimlineSurveyRatingSelectedIndex=-1;return k};
_.y(G1,_.p);_.I=G1.prototype;_.I.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.I.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.I.onOptionChange=function(k,E){var S=this;k=E.onStateIcon&&E.defaultStateIcon&&E.onStateIcon.iconType===E.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(h,J){h.responseText===E.responseText?S.isSlimlineSurvey?(S.selectedRatingIndex=J,S.ytdReduxBehavior.dispatch(u_j(J))):(S.setSurveyOptionValue(J,!0,"checked"),S.setSurveyOptionValue(J,!0,"selected")):(S.setSurveyOptionValue(J,!1,"checked"),S.setSurveyOptionValue(J,
!1,"selected"))});
else if(k)this.selectedNonStarOption=E,this.hideOptions=!0;else{var R=this.ytRendererBehavior.getSimpleString(E.responseText),V=!0;this.getOptionRenderers().forEach(function(h,J){S.setSurveyOptionValue(J,V,"checked");S.setSurveyOptionValue(J,!1,"selected");S.ytRendererBehavior.getSimpleString(h.responseText)===R&&(V=!1,S.setSurveyOptionValue(J,!0,"selected"))})}k=E.responseEndpoint;
var N;E.followUpCommand&&(N=_.W(E.followUpCommand,p72));this.isSlimlineSurvey?(this.resetComponent(),_.qe(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.qe(this.hostElement,"ytd-inline-survey-rating-select-action",[k,N])};
_.I.showSelectedOption=function(){var k=this;_.ZJ.addJob(function(){var E=k.getOptionRenderers()[k.slimlineSurveyRatingSelectedIndex];k.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),E)},8,100)};
_.I.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(k){var E;return(E=_.W(k,r$4))!=null?E:{}}):[]};
_.I.onUndoClick=function(){this.resetComponent();_.qe(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.I.setSurveyOptionValue=function(k,E,S){this.notifyPath("data.ratings."+k+".ratingSurveyOptionRenderer."+S);this.set("data.ratings."+k+".ratingSurveyOptionRenderer."+S,E)};
_.I.resetComponent=function(){var k=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var E=this.getOptionRenderers(),S,R;this.firstResponseText=(R=(S=E[0])==null?void 0:S.responseText)!=null?R:null;var V,N;this.lastResponseText=(N=(V=E[E.length-1])==null?void 0:V.responseText)!=null?N:null;E.forEach(function(h,J){k.setSurveyOptionValue(J,!1,"checked");k.setSurveyOptionValue(J,!1,"selected")})};
_.mt.Object.defineProperties(G1.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
G1.prototype.onOptionChange=G1.prototype.onOptionChange;G1.prototype.dataChanged=G1.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],G1.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],G1.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],G1.prototype,"firstResponseText",void 0);_.Z([_.H(),_.l("design:type",Object)],G1.prototype,"lastResponseText",void 0);_.Z([_.H(),_.l("design:type",Object)],G1.prototype,"selectedNonStarOption",void 0);_.Z([_.H(),_.l("design:type",Object)],G1.prototype,"hideOptions",void 0);_.Z([_.H(),_.l("design:type",Object)],G1.prototype,"hideUndoButton",void 0);_.Z([_.H(),_.l("design:type",Object)],G1.prototype,"disableAnimation",void 0);
_.Z([_.H(),_.l("design:type",Object)],G1.prototype,"showResponseRangeText",void 0);_.Z([_.H(),_.l("design:type",Object)],G1.prototype,"selectedRatingIndex",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],G1.prototype,"isSlimlineSurvey",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],G1.prototype,"isSlimlineSurveyFollowUp",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],G1.prototype,"isShortsStyle",void 0);_.Z([_.H({selector:function(k){return k.ui.slimlineSurveyRatingSelectedIndex}}),
_.l("design:type",Object)],G1.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.Z([_.U("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],G1.prototype,"isSingleSelect",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],G1.prototype,"dataChanged",null);
_.Z([_.nv("ytd-rating-survey-option-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],G1.prototype,"onOptionChange",null);_.Z([_.D({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],G1);
_.b(G1,"ytd-rating-survey-renderer",function(){if(dvp!==void 0)return dvp;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return dvp=k},{mode:1});var swp;var lhY;var MUp;var o5j=(kz.FIRSTDAYOFWEEK+1)%7,qyd=function(k,E,S,R){var V="";if(R.selection&&YRj(R.selection))Of(k,R.selection)&&(V+=" selected");else if(R.selection&&WHI(R.selection)){var N=R.selection.selectionState||"START_DATE";Of(k,R.selection.start)&&(V+=" period-start ",N==="START_DATE"&&(V+="selected"));Of(k,R.selection.end)&&(V+=" period-end ",N==="END_DATE"&&(V+="selected"));Gc(k,R.selection.start)||Gc(R.selection.end,k)||(V+=" highlighted")}if(Gc(E,R.start)||Gc(R.end,E))V+=" disabled";R.circleToday&&
Of(E,S)&&(V+=" today");return V};var CW=function(){return _.p.apply(this,arguments)||this};
_.y(CW,_.p);_.I=CW.prototype;_.I.attached=function(){var k=this;_.JB(this,function(){k.JSC$16109_calendarMain.scrollHeight>0&&(k.calendarConfig.selection?k.scrollToDate(FHj(k.calendarConfig.selection)):k.scrollToDate(k.calendarConfig.end))})};
_.I.updateSelection=function(k){k=Xxl(Object.assign({},this.calendarConfig,{selection:k}),qyd);this.splice.apply(this,["renderData.months",0,k.length].concat(_.$e(k)))};
_.I.scrollToDate=function(k){this.renderData&&(k=g5m(k,this.renderData),k!==void 0&&this.JSC$16109_calendarMain.scrollToIndex(k))};
_.I.scrollToNextMonth=function(){this.JSC$16109_calendarMain.scrollToIndex(this.JSC$16109_calendarMain.firstVisibleIndex+1)};
_.I.scrollToPrevMonth=function(){this.JSC$16109_calendarMain.firstVisibleIndex===0&&this.JSC$16109_calendarMain.scrollTo(0,0);this.JSC$16109_calendarMain.scrollToIndex(this.JSC$16109_calendarMain.firstVisibleIndex-1)};
_.I.handleDayClick=function(k){_.qe(this.hostElement,"ytd-calendar-date-clicked",[k.model.day.date])};
_.I.handleDayMouseDown=function(k){k.preventDefault();_.qe(this.hostElement,"ytd-calendar-date-mousedown",[k.model.day.date])};
_.I.handleDayMouseUp=function(k){_.qe(this.hostElement,"ytd-calendar-date-mouseup",[k.model.day.date])};
_.I.handleDayMouseEnter=function(k){k.preventDefault();_.qe(this.hostElement,"ytd-calendar-date-mouseenter",[k.model.day.date])};
_.I.handleDayMouseLeave=function(k){_.qe(this.hostElement,"ytd-calendar-date-mouseleave",[k.model.day.date])};
_.mt.Object.defineProperties(CW.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var k=this.calendarConfig,E=qyd;E=E===void 0?qyd:E;for(var S=[],R=0;R<7;R++)S.push(kz.NARROWWEEKDAYS[(R+o5j)%7]);return{months:Xxl(k,E),daysOfWeekLabel:S}}}});
_.Z([_.H(),_.l("design:type",Object)],CW.prototype,"calendarConfig",void 0);_.Z([_.JO("#calendar-main"),_.l("design:type",Object)],CW.prototype,"JSC$16109_calendarMain",void 0);_.Z([_.U("calendarConfig"),_.l("design:type",Object),_.l("design:paramtypes",[])],CW.prototype,"renderData",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],CW);
_.b(CW,"ytd-scrollable-calendar",function(){if(MUp!==void 0)return MUp;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return MUp=k},{mode:2});var zFC;var Qwp;var k9=function(){var k=_.p.apply(this,arguments)||this;k.hideCharCounter=!1;k.hideLabel=!1;k.noLabelFloat=!1;k.autoValidate=!0;k.invalid=!1;k.disabled=!1;k.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return k};
_.y(k9,_.p);_.I=k9.prototype;_.I.reset=function(k){this.value=k&&this.data?this.data.value=k:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.I.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.I.focusTextInput=function(){this.input.focus()};
_.I.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()};
_.I.valueChanged=function(){var k,E;if(((k=this.data)==null?0:k.value)||((E=this.data)==null?void 0:E.value)==="")this.value=this.data.value;else{var S;((S=this.data)==null?void 0:S.value)!==void 0||this.value||(this.value="")}};
_.I.computeLabel=function(k,E){return E?"":_.$n(k)};
_.I.computeAriaLabel=function(k,E){return E?_.$n(k):""};
_.I.computeErrorMessage=function(k,E,S,R){!k&&E?k=S||this.strings.REQUIRED_LABEL:(k=_.$n(R),k=_.ce(k,"&")?"document"in _.Vt?fFp(k):vJC(k):k);return k};
_.I.computeType=function(k){return k==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.I.onTextValueChanged=function(k){this.value=k.detail.value;var E;(E=this.onValueChanged)==null||E.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.I.handleUpdateTextInputFormFieldRendererCommand=function(k){(k=_.W(k,CGY))&&this.data&&this.data.id===k.id&&(k.invalid!==void 0&&(this.invalid=k.invalid),k.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",k.invalidValueErrorMessage))};
_.I.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("value-changed",this.value))};
_.I.updateInvalidFromBinding=function(k){this.invalid=k.detail.value};
_.mt.Object.defineProperties(k9.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var k;return!((k=this.data)==null||!k.isMultiline)}}});
k9.prototype.valueChangedForBinding=k9.prototype.valueChangedForBinding;k9.prototype.valueChanged=k9.prototype.valueChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],k9.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],k9.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],k9.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],k9.prototype,"value",void 0);_.Z([_.H(),_.l("design:type",String)],k9.prototype,"pattern",void 0);_.Z([_.H(),_.l("design:type",String)],k9.prototype,"errorMessage",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],k9.prototype,"componentStyle",void 0);_.Z([_.H(),_.l("design:type",Object)],k9.prototype,"hideCharCounter",void 0);
_.Z([_.H(),_.l("design:type",Object)],k9.prototype,"hideLabel",void 0);_.Z([_.H(),_.l("design:type",Object)],k9.prototype,"noLabelFloat",void 0);_.Z([_.H(),_.l("design:type",Function)],k9.prototype,"onValueChanged",void 0);_.Z([_.H(),_.l("design:type",Boolean)],k9.prototype,"isMultilineOverride",void 0);_.Z([_.H(),_.l("design:type",Object)],k9.prototype,"autoValidate",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],k9.prototype,"invalid",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],k9.prototype,"disabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],k9.prototype,"enableOverlayTheme",void 0);_.Z([_.H({value:{REQUIRED_LABEL:_.Vi("REQUIRED_LABEL",void 0,"Required")}}),_.l("design:type",Object)],k9.prototype,"strings",void 0);_.Z([_.JO("#input"),_.l("design:type",Object)],k9.prototype,"input",void 0);
_.Z([_.U("data","isMultilineOverride"),_.l("design:type",Object),_.l("design:paramtypes",[])],k9.prototype,"isMultiline",null);_.Z([_.ac("data.value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k9.prototype,"valueChanged",null);_.Z([_.il("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k9.prototype,"valueChangedForBinding",null);_.Z([_.U_({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],k9);
_.b(k9,"yt-text-input-form-field-renderer",function(){if(Qwp===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;zFC===void 0&&(zFC=document.createElement("template"));var R=zFC;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Qwp=k}k=Qwp;return k},{mode:2});var EO=function(){var k=_.p.apply(this,arguments)||this;k.data=void 0;k.selectionState="START_DATE";k.isStartDateInvalid=!1;k.isEndDateInvalid=!1;k.autoapply=!1;k.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 k};
_.y(EO,_.p);_.I=EO.prototype;_.I.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"}}}}};
_.I.focus=function(){this.startDateInput.focus()};
_.I.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:C5(this.data.selection.start),end:C5(this.data.selection.end)})};
_.I.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.I.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.s5(this.selectionState)}};
_.I.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.I.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.I.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.I.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var k=this.calendar.calendarConfig,E=k.end;k=HDm({start:k.start,end:this.endDate||E},this.startDateInput.value||"");this.isStartDateInvalid=!k.isValid;k.isValid&&(k=k.value,this.selection=this.endDate?{start:k,end:this.endDate}:k,this.calendar.scrollToDate(k));this.updateInvalidState()}};
_.I.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var k=this.calendar.calendarConfig,E=k.start;k=HDm({start:this.startDate||E,end:k.end},this.endDateInput.value||"");this.isEndDateInvalid=!k.isValid;k.isValid&&(k=k.value,this.selection={start:this.startDate,end:k},this.calendar.scrollToDate(k));this.updateInvalidState()}};
_.I.handleCalendarDateClicked=function(k){var E=this.selection&&FHj(this.selection),S=this.selection&&yol(this.selection);E&&!Gc(k,E)&&this.selectionState==="END_DATE"?(this.selection={start:E,end:k},this.selectionState="START_DATE"):(S&&!Gc(S,k)?this.selection={start:k,end:S}:this.selection=k,this.selectionState="END_DATE")};
_.I.handleCalendarDateMouseDown=function(k){this.selection&&!YRj(this.selection)&&(this.dragPivot=Of(k,this.selection.start)?this.selection.end:Of(k,this.selection.end)?this.selection.start:k)};
_.I.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.I.handleCalendarDateMouseEnter=function(k){this.dragPivot&&(this.selection={start:function(E,S){return Gc(E,S)?E:S}(this.dragPivot,k),
end:function(E,S){return Gc(E,S)?S:E}(this.dragPivot,k)},this.dragPivot||(this.selectionState="START_DATE"))};
_.I.handleCalendarDateMouseLeave=function(){};
_.I.handleCalendarSubmitDateRange=function(){this.selection&&!YRj(this.selection)&&_.qe(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.I.updateInvalidState=function(){var k=function(E,S){S?E.setAttribute("invalid",""):E.removeAttribute("invalid")};
k(this.startDateInput,this.isStartDateInvalid);k(this.endDateInput,this.isEndDateInvalid)};
_.I.updateDateStrings=function(){this.selection&&(YRj(this.selection)?BeI(this.selection):(BeI(this.selection.start),BeI(this.selection.end)))};
_.I.updateCalendarSelection=function(k){this.calendar.updateSelection(Object.assign({},k,{selectionState:this.selectionState}))};
_.I.updateIsStartDateInvalidFromBinding=function(k){this.isStartDateInvalid=k.detail.value};
_.I.updateIsEndDateInvalidFromBinding=function(k){this.isEndDateInvalid=k.detail.value};
_.I.updateStartDateStringFromBinding=function(){};
_.I.updateEndDateStringFromBinding=function(){};
_.mt.Object.defineProperties(EO.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:C5(this.data.dateRangeStart),end:C5(this.data.dateRangeEnd),selection:{start:C5(this.data.selection.start),end:C5(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&FHj(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&yol(this.selection)}}});
EO.prototype.resetTextboxes=EO.prototype.resetTextboxes;EO.prototype.observeSelection=EO.prototype.observeSelection;EO.prototype.dataChanged=EO.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],EO.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.JO("#calendar"),_.l("design:type",Object)],EO.prototype,"calendar",void 0);
_.Z([_.JO("#start-date"),_.l("design:type",Object)],EO.prototype,"startDateInput",void 0);_.Z([_.JO("#end-date"),_.l("design:type",Object)],EO.prototype,"endDateInput",void 0);_.Z([_.H(),_.l("design:type",Object)],EO.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],EO.prototype,"selection",void 0);_.Z([_.H(),_.l("design:type",String)],EO.prototype,"selectionState",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],EO.prototype,"calendarConfig",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],EO.prototype,"errorMessage",null);_.Z([_.U("selection"),_.l("design:type",Object),_.l("design:paramtypes",[])],EO.prototype,"startDate",null);_.Z([_.U("selection"),_.l("design:type",Object),_.l("design:paramtypes",[])],EO.prototype,"endDate",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EO.prototype,"dataChanged",null);
_.Z([_.il("selection","selectionState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EO.prototype,"observeSelection",null);_.Z([_.il("selectionState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EO.prototype,"resetTextboxes",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],EO);
_.b(EO,"ytd-date-period-picker-renderer",function(){if(lhY!==void 0)return lhY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return lhY=k},{mode:1});var Sp=function(){var k=_.p.apply(this,arguments)||this;var E={};k.actionMap=(E["ytd-date-period-picker-apply"]="handleDateRangeUpdated",E);return k};
_.y(Sp,_.p);Sp.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Sp.prototype.handleDateRangeUpdated=function(){};
_.Z([_.H(),_.l("design:type",Object)],Sp.prototype,"data",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Sp.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Sp.prototype,"rendererstamperBehavior",void 0);_.Z([_.D({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Sp);
_.b(Sp,"ytd-report-history-section-header-renderer",function(){if(swp!==void 0)return swp;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return swp=k},{mode:1});var OBA;var G58;var C7A;var RF=function(){return _.p.apply(this,arguments)||this};
_.y(RF,_.p);_.mt.Object.defineProperties(RF.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?0:(E=k.icon)==null?0:E.iconType)?_.SF(this.data.icon.iconType):""}}});
_.Z([_.H(),_.l("design:type",Object)],RF.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],RF.prototype,"icon",null);_.Z([_.D({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],RF);
_.b(RF,"ytd-report-history-table-text-cell-renderer",function(){if(C7A!==void 0)return C7A;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return C7A=k},{mode:1});var V8=function(){return _.p.apply(this,arguments)||this};
_.y(V8,_.p);V8.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],V8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],V8.prototype,"data",void 0);_.Z([_.D({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],V8);
_.b(V8,"ytd-report-history-table-reason-cell-renderer",function(){if(G58!==void 0)return G58;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return G58=k},{mode:1});var NW=function(){return _.p.apply(this,arguments)||this};
_.y(NW,_.p);NW.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"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],NW.prototype,"rendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],NW.prototype,"data",void 0);_.Z([_.D({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],NW);
_.b(NW,"ytd-report-history-table-cell-renderer",function(){if(OBA!==void 0)return OBA;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return OBA=k},{mode:1});var kqA;var IF=function(){var k=_.p.apply(this,arguments)||this;k.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 k};
_.y(IF,_.p);IF.prototype.onDataChanged=function(){var k;if((k=this.data)==null?0:k.style)this.componentStyle=this.getStyleName(this.data.style)};
IF.prototype.getCellForColumn=function(k){return this.cells.find(function(E){var S;return((S=_.W(E==null?void 0:E.cell,Lf4)||_.W(E==null?void 0:E.cell,xlA))==null?void 0:S.columnId)===k.type})};
IF.prototype.getClassForColumn=function(k){switch(k){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
IF.prototype.getStyleName=function(k){switch(k){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.mt.Object.defineProperties(IF.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var k;return(((k=this.data)==null?void 0:k.cells)||[]).map(function(E){return _.W(E,uY4)})}}});
IF.prototype.onDataChanged=IF.prototype.onDataChanged;_.Z([_.H(),_.l("design:type",Object)],IF.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Array)],IF.prototype,"columnRenderData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],IF.prototype,"componentStyle",void 0);_.Z([_.U("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],IF.prototype,"cells",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IF.prototype,"onDataChanged",null);_.Z([_.D({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],IF);
_.b(IF,"ytd-report-history-table-row-renderer",function(){if(kqA!==void 0)return kqA;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return kqA=k},{mode:1});var EYC;var SS8;var KHI={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},pxA={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var nb=function(){return _.p.apply(this,arguments)||this};
_.y(nb,_.p);nb.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"}}}}}};
nb.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.mt.Object.defineProperties(nb.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?0:k.columns)?LH1(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return uP1(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var k=this.tableSpec,E=KHI;E=E===void 0?pxA:E;E=xLl(k.columnDimensions,k.columnsToShow||[],E);k=0;E=_.n(E);for(var S=E.next();!S.done;S=E.next())S=S.value,k+=S.minWidth+S.paddingLeft+S.paddingRight;return k}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.Z([_.g(_.VX),_.l("design:type",Object)],nb.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],nb.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],nb.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],nb.prototype,"tableSpec",null);_.Z([_.U("tableSpec"),_.l("design:type",Array),_.l("design:paramtypes",[])],nb.prototype,"columnRenderData",null);
_.Z([_.U("tableSpec"),_.l("design:type",Number),_.l("design:paramtypes",[])],nb.prototype,"totalMinWidth",null);_.Z([_.U("totalMinWidth"),_.l("design:type",String),_.l("design:paramtypes",[])],nb.prototype,"tableWidthStyle",null);_.Z([_.D({is:"ytd-table-renderer",disableElementRegistration:!0})],nb);
_.b(nb,"ytd-table-renderer",function(){if(SS8!==void 0)return SS8;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return SS8=k},{mode:1});var iy=function(){return _.p.apply(this,arguments)||this};
_.y(iy,_.p);iy.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}}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],iy.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iy.prototype,"data",void 0);_.Z([_.D({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],iy);
_.b(iy,"ytd-report-reason-history-modal-renderer",function(){if(EYC!==void 0)return EYC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return EYC=k},{mode:1});var R0p;var VBd;var NDd;var hu=function(){return _.p.apply(this,arguments)||this};
_.y(hu,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],hu.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],hu.prototype,"data",void 0);_.Z([_.D({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],hu);
_.b(hu,"ytd-profile-column-stats-entry-renderer",function(){if(NDd!==void 0)return NDd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return NDd=k},{mode:1});var IzY;var Ju=function(){return _.p.apply(this,arguments)||this};
_.y(Ju,_.p);Ju.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ju.prototype,"data",void 0);_.Z([_.D({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Ju);
_.b(Ju,"ytd-profile-column-stats-renderer",function(){if(IzY!==void 0)return IzY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return IzY=k},{mode:1});var nYC;var cm=function(){return _.p.apply(this,arguments)||this};
_.y(cm,_.p);_.mt.Object.defineProperties(cm.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null||!k.useThumbnailSize)return 80;var E,S;k=(E=this.data)==null?void 0:(S=E.thumbnail)==null?void 0:S.thumbnails;var R;return k&&((R=k[0])==null?void 0:R.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null||!k.useThumbnailSize)return 80;var E,S;k=(E=this.data)==null?void 0:(S=E.thumbnail)==null?void 0:S.thumbnails;var R;return k&&((R=k[0])==null?void 0:R.height)||80}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],cm.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cm.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],cm.prototype,"componentStyle",void 0);_.Z([_.U("data.useThumbnailSize"),_.l("design:type",Object),_.l("design:paramtypes",[])],cm.prototype,"thumbnailWidth",null);
_.Z([_.U("data.useThumbnailSize"),_.l("design:type",Object),_.l("design:paramtypes",[])],cm.prototype,"thumbnailHeight",null);_.Z([_.D({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],cm);
_.b(cm,"ytd-profile-column-user-info-renderer",function(){if(nYC!==void 0)return nYC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return nYC=k},{mode:1});var mA=function(){return _.p.apply(this,arguments)||this};
_.y(mA,_.p);mA.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]]"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mA.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],mA.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],mA.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],mA.prototype,"componentStyle",void 0);_.Z([_.D({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],mA);
_.b(mA,"ytd-profile-column-renderer",function(){if(VBd!==void 0)return VBd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return VBd=k},{mode:1});var ep=function(){var k=_.p.apply(this,arguments)||this;k.componentStyle="NON_CENTERED_PROFILE";return k};
_.y(ep,_.p);ep.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
ep.prototype.getIcon=function(k){return k?"settings:"+k.toLowerCase():null};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ep.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ep.prototype,"data",void 0);_.Z([_.D({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],ep);
_.b(ep,"ytd-page-introduction-renderer",function(){if(R0p!==void 0)return R0p;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return R0p=k},{mode:1});var in5;var aF=function(){return _.p.apply(this,arguments)||this};
_.y(aF,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],aF.prototype,"data",void 0);_.Z([_.D({is:"ytd-report-description-renderer",disableElementRegistration:!0})],aF);
_.b(aF,"ytd-report-description-renderer",function(){if(in5!==void 0)return in5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return in5=k},{mode:1});var h0z;var JM2;var tu=function(){return _.p.apply(this,arguments)||this};
_.y(tu,_.p);tu.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tu.prototype,"data",void 0);_.Z([_.D({is:"ytd-video-report-renderer",disableElementRegistration:!0})],tu);
_.b(tu,"ytd-video-report-renderer",function(){if(JM2!==void 0)return JM2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return JM2=k},{mode:1});var cMC;_.B9("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.B9("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var TO=function(){return _.p.apply(this,arguments)||this};
_.y(TO,_.p);TO.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]]"}}}}}};
TO.prototype.computeMessageStyle=function(k){return k};
TO.prototype.computeButtonOverride=function(k){var E;if((k==null?0:(E=k.style)==null?0:E.value)&&k.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],TO.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],TO.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],TO.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],TO.prototype,"shelf",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],TO.prototype,"panel",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.l("design:type",Boolean)],TO.prototype,"componentStyle",void 0);_.Z([_.H({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],TO.prototype,"buttonOverride",void 0);_.Z([_.D({is:"ytd-message-renderer",disableElementRegistration:!0})],TO);
_.b(TO,"ytd-message-renderer",function(){if(cMC!==void 0)return cMC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return cMC=k},{mode:1});var wN=function(){return _.p.apply(this,arguments)||this};
_.y(wN,_.p);wN.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"}}}};
wN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
wN.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.mt.Object.defineProperties(wN.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var k,E;return!!(((k=this.data)==null?0:k.header)&&((E=this.data)==null?0:E.table))}}});
wN.prototype.onRequestError=wN.prototype.onRequestError;_.Z([_.g(_.VX),_.l("design:type",Object)],wN.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],wN.prototype,"data",void 0);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],wN.prototype,"isUnifiedReportHistory",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wN.prototype,"onRequestError",null);_.Z([_.D({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],wN);
_.b(wN,"ytd-report-history-section-renderer",function(){if(h0z!==void 0)return h0z;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return h0z=k},{mode:1});var mRY;var Pm=function(){var k=_.p.apply(this,arguments)||this;k.answerExpanded=!1;return k};
_.y(Pm,_.p);Pm.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Pm.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Pm.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Pm.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Pm.prototype,"answerExpanded",void 0);_.Z([_.D({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Pm);
_.b(Pm,"ytd-handles-claiming-faq-renderer",function(){if(mRY!==void 0)return mRY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return mRY=k},{mode:1});var e0C;var azC=function(){return _.p.apply(this,arguments)||this};
_.y(azC,_.p);_.Z([_.H(),_.l("design:type",Object)],azC.prototype,"data",void 0);_.Z([_.D({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],azC);
_.b(azC,"ytd-handles-claiming-faq-section-renderer",function(){if(e0C!==void 0)return e0C;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return e0C=k},{mode:1});var tBY;var Bm=function(){var k=_.p.apply(this,arguments)||this;k.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";k.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";k.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";k.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";k.leftSquiggly=k.leftSquigglyLight;k.rightSquiggly=k.rightSquigglyLight;
k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};k.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return k};
_.y(Bm,_.p);_.I=Bm.prototype;_.I.updateLeftSquigglyStyle=function(){_.VO(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.I.updateRightSquigglyStyle=function(){_.VO(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.I.ready=function(){var k=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(k)};
_.I.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&(this.set("isDarkTheme",k),k?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
Bm.prototype.updateRightSquigglyStyle=Bm.prototype.updateRightSquigglyStyle;Bm.prototype.updateLeftSquigglyStyle=Bm.prototype.updateLeftSquigglyStyle;_.Z([_.H(),_.l("design:type",Object)],Bm.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Bm.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",String)],Bm.prototype,"leftSquiggly",void 0);_.Z([_.H(),_.l("design:type",String)],Bm.prototype,"rightSquiggly",void 0);
_.Z([_.il("leftSquiggly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bm.prototype,"updateLeftSquigglyStyle",null);_.Z([_.il("rightSquiggly"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bm.prototype,"updateRightSquigglyStyle",null);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Bm.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Bm.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Bm.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Bm.prototype,"actionButtonOverride",void 0);_.Z([_.D({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],Bm);
_.b(Bm,"ytd-handles-claiming-header-renderer",function(){if(tBY!==void 0)return tBY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return tBY=k},{mode:1});var TDC;var Y9=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};k.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";k.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";k.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";k.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
k.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";k.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";k.image0SquigglyBackground=k.image0LightSquigglyBackground;k.image1SquigglyBackground=k.image1LightSquigglyBackground;k.image3SquigglyBackground=k.image3LightSquigglyBackground;return k};
_.y(Y9,_.p);_.I=Y9.prototype;_.I.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.I.onDataChanged=function(){this.updateTitleAndImages()};
_.I.onThemeChanged=function(){this.updateTitleAndImages()};
_.I.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&(this.isDarkTheme=k)};
_.I.updateImage0SquigglyBackground=function(){_.VO(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.I.updateImage1SquigglyBackground=function(){_.VO(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.I.updateImage3SquigglyBackground=function(){_.VO(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.I.updateTitleAndImages=function(){var k,E;((k=this.data)==null?void 0:(E=k.titleImages)==null?void 0:E.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))};
Y9.prototype.updateImage3SquigglyBackground=Y9.prototype.updateImage3SquigglyBackground;Y9.prototype.updateImage1SquigglyBackground=Y9.prototype.updateImage1SquigglyBackground;Y9.prototype.updateImage0SquigglyBackground=Y9.prototype.updateImage0SquigglyBackground;Y9.prototype.onThemeChanged=Y9.prototype.onThemeChanged;Y9.prototype.onDataChanged=Y9.prototype.onDataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Y9.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Y9.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"title0",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"title1",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"title2",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"title3",void 0);
_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"title4",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"image0",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"image1",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"image2",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"image3",void 0);_.Z([_.H(),_.l("design:type",Object)],Y9.prototype,"image4",void 0);_.Z([_.H(),_.l("design:type",String)],Y9.prototype,"image0SquigglyBackground",void 0);
_.Z([_.H(),_.l("design:type",String)],Y9.prototype,"image1SquigglyBackground",void 0);_.Z([_.H(),_.l("design:type",String)],Y9.prototype,"image3SquigglyBackground",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Y9.prototype,"onDataChanged",null);_.Z([_.il("isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Y9.prototype,"onThemeChanged",null);
_.Z([_.il("image0SquigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Y9.prototype,"updateImage0SquigglyBackground",null);_.Z([_.il("image1SquigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Y9.prototype,"updateImage1SquigglyBackground",null);
_.Z([_.il("image3SquigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Y9.prototype,"updateImage3SquigglyBackground",null);_.Z([_.D({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Y9);
_.b(Y9,"ytd-handles-claiming-title-images-section-renderer",function(){if(TDC!==void 0)return TDC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return TDC=k},{mode:1});var wbd;var Wm=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(Wm,_.p);Wm.prototype.ready=function(){var k=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(k)};
Wm.prototype.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&this.set("isDarkTheme",k)};
Wm.prototype.onCopyButtonClick=function(){var k=this,E,S,R;return _.c(function(V){return(E=k.data)!=null&&E.primaryChannelUrl?V.yield(navigator.clipboard.writeText(((S=k.data)==null?0:S.encodedChannelUrl)?k.data.encodedChannelUrl:"https://"+_.$n((R=k.data)==null?void 0:R.primaryChannelUrl)),0):V.jumpTo(0)})};
_.Z([_.H(),_.l("design:type",Object)],Wm.prototype,"data",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Wm.prototype,"ytComponentBehavior",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Wm.prototype,"isDarkTheme",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Wm.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.D({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],Wm);
_.b(Wm,"ytd-handles-claiming-update-social-renderer",function(){if(wbd!==void 0)return wbd;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return wbd=k},{mode:1});var PHd;var F_=function(){var k=_.p.apply(this,arguments)||this;k.JSC$16203_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";k.JSC$16203_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};k.squigglyBackground=k.JSC$16203_squigglyBackgroundLight;return k};
_.y(F_,_.p);F_.prototype.updateSquigglyBackgroundStyle=function(){_.VO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
F_.prototype.ready=function(){var k=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",k);this.squigglyBackground=k?this.JSC$16203_squigglyBackgroundDark:this.JSC$16203_squigglyBackgroundLight};
F_.prototype.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&(this.set("isDarkTheme",k),this.squigglyBackground=k?this.JSC$16203_squigglyBackgroundDark:this.JSC$16203_squigglyBackgroundLight)};
F_.prototype.updateSquigglyBackgroundStyle=F_.prototype.updateSquigglyBackgroundStyle;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],F_.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],F_.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],F_.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",String)],F_.prototype,"squigglyBackground",void 0);_.Z([_.il("squigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],F_.prototype,"updateSquigglyBackgroundStyle",null);_.Z([_.D({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],F_);
_.b(F_,"ytd-handles-claiming-vanity-info-renderer",function(){if(PHd!==void 0)return PHd;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return PHd=k},{mode:1});var BDd;var y8=function(){var k=_.p.apply(this,arguments)||this;k.JSC$16206_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";k.JSC$16206_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";k.squigglyBackground=k.JSC$16206_squigglyBackgroundLight;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(y8,_.p);_.I=y8.prototype;_.I.ready=function(){var k=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(k)};
_.I.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&(this.set("isDarkTheme",k),this.squigglyBackground=k?this.JSC$16206_squigglyBackgroundDark:this.JSC$16206_squigglyBackgroundLight)};
_.I.updateSquigglyBackgroundStyle=function(){_.VO(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.I.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.I.detached=function(){this.stop()};
_.I.stop=function(){this.playerElement.stop()};
_.I.setupVideoPlayer=function(){var k=this,E,S;return _.c(function(R){E=k.data.videoId;S="http://i1.ytimg.com/vi/"+E+"/maxresdefault.jpg";k.playerElement.loadVideoWithPlayerVars({video_id:E,iurlhq:S});_.KR(R)})};
y8.prototype.onDataChanged=y8.prototype.onDataChanged;y8.prototype.updateSquigglyBackgroundStyle=y8.prototype.updateSquigglyBackgroundStyle;_.Z([_.H({value:!1}),_.l("design:type",Boolean)],y8.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",String)],y8.prototype,"squigglyBackground",void 0);_.Z([_.JO("#player"),_.l("design:type",Object)],y8.prototype,"playerElement",void 0);_.Z([_.H(),_.l("design:type",Object)],y8.prototype,"data",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],y8.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.il("squigglyBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y8.prototype,"updateSquigglyBackgroundStyle",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y8.prototype,"onDataChanged",null);
_.Z([_.D({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],y8);
_.b(y8,"ytd-handles-claiming-video-item-renderer",function(){if(BDd!==void 0)return BDd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return BDd=k},{mode:1});var YSY;var X_=function(){var k=_.mi.apply(this,arguments)||this;k.dragging=!1;k.dragMouseStart=0;k.dragOffsetStart=0;k.containerWidthDiff=0;k.boundPrevClick=function(){k.set("offset",oF(k,k.offset-(k.scrollDistance||320)))};
k.boundNextClick=function(){k.set("offset",oF(k,k.offset+(k.scrollDistance||320)))};
k.boundScrollContainerMouseDown=function(E){k.dragMouseStart=E.clientX;k.dragOffsetStart=k.offset;k.dragging=!0};
k.boundScrollContainerDrag=function(E){k.dragging&&k.set("offset",oF(k,k.dragOffsetStart-(E.clientX-k.dragMouseStart)))};
k.boundMouseUp=function(){k.onMouseUp()};
k.boundWheelScroll=function(E){var S=0;Math.abs(E.deltaX)>=Math.abs(E.deltaY)?S=E.deltaX:E.shiftKey&&(S=E.deltaY);S!==0&&(k.offset+=S,E.stopPropagation(),E.preventDefault())};
k.boundChipCloudChipScrollIntoView=function(E){(E=E.detail)&&k.scrollChipIntoView(E)};
return k};
_.y(X_,_.mi);X_.prototype.attached=function(){var k=_.Cc(this.hostElement).querySelector("#scroll-container");k.addEventListener("wheel",this.boundWheelScroll);k.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);k.style.touchAction="pan-y";k.addEventListener("pointerdown",this.boundScrollContainerMouseDown);k.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
X_.prototype.detached=function(){var k=_.Cc(this.hostElement).querySelector("#scroll-container");k.removeEventListener("wheel",this.boundWheelScroll);k.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);k.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);k.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
X_.prototype.reset=function(){this.set("offset",0);_.JB(this,this.setContainerWidthDiff);_.JB(this,this.setButtonsState)};
var oF=function(k,E){return Math.min(Math.max(E,0),k.containerWidthDiff)};
_.I=X_.prototype;_.I.onMouseUp=function(){this.dragging=!1};
_.I.transformContainer=function(){this.offset=oF(this,this.offset);var k=_.Mg("HTML_DIR")==="rtl"?"":"-";_.Cc(this.hostElement).querySelector("#chips").style.transform="translateX("+k+this.offset+"px)";_.JB(this,this.setButtonsState)};
_.I.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=oF(this,this.offset));this.atStart=this.offset<=0};
_.I.setContainerWidthDiff=function(){var k=_.Cc(this.hostElement).querySelector("#scroll-container"),E=_.Cc(this.hostElement).querySelector("#chips");k&&E&&(this.containerWidthDiff=E.clientWidth-k.clientWidth)};
_.I.scrollChipIntoView=function(k){var E=_.Cc(this.hostElement).querySelector("#scroll-container");if(E){var S=this.atStart?0:106,R=this.atEnd?0:106;k.offsetLeft<this.offset+S?this.offset=oF(this,k.offsetLeft-S):k.offsetLeft+k.clientWidth>this.offset+E.clientWidth-R&&(this.offset=oF(this,k.offsetLeft+k.clientWidth+R-E.clientWidth))}};
X_.prototype.transformContainer=X_.prototype.transformContainer;_.Z([_.H({value:0}),_.l("design:type",Number)],X_.prototype,"offset",void 0);_.Z([_.H({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],X_.prototype,"atStart",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],X_.prototype,"atEnd",void 0);_.Z([_.H(),_.l("design:type",Number)],X_.prototype,"scrollDistance",void 0);
_.Z([_.il("offset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],X_.prototype,"transformContainer",null);_.Z([_.eN()],X_);var W9z;var F9T;var Xb8=_.f(function(k){var E=k.data;k=_.n(_.yg(!1,void 0,"bob3J"));var S=k.next().value,R=k.next().value;k=function(N){if((E==null?void 0:E().state)!==1){var h,J;(J=(h=E()).onTap)==null||J.call(h,N)}};
var V={};return _.e("chip-shape",{class:"ytChipShapeHost","on:focusin":_.RZ(function(){var N=_.en().resolve(_.mz(_.tr));if(N){R(N.isKeyBoardInUse());var h,J;(J=(h=E()).onFocusIn)==null||J.call(h)}return!1}),
"on:focusout":_.RZ(function(){R(!1);return!1})},_.e(yMd,{shouldWrapInButton:function(){return E().type!==2},
selected:function(){return E().state===0},
onClick:k,isDropdown:function(){return E().type===1},
accessibilityLabel:function(){return E().type===1?void 0:E().accessibilityLabel}},_.e("div",{class:_.SQ("ytChipShapeChip",function(){a:switch(E==null?void 0:E().state){case 0:var N="ytChipShapeActive";
break a;case 1:N="ytChipShapeDisabled";break a;default:N="ytChipShapeInactive"}return N},function(){var N=E().type===1||E().type===2,h=E();
return N||h!=null&&h.startIcon?h==null||!h.startIcon||h!=null&&h.text?N?"ytChipShapeEndIconPadding":(h==null?0:h.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var N=E();
if((N==null?void 0:N.style)===0&&(N==null?void 0:N.state)===0){var h;N=((h=_.en().resolve(_.mz(_.jF)))==null?0:h())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else N="";return N},(V.ytChipShapeFocused=function(){var N;
return S()&&((N=E())==null?void 0:N.state)!==1},V))},_.e(_.t,{cond:function(){return E().startIcon},
then:function(){return _.e(_.i_,{icon:function(){var N;return(N=E())==null?void 0:N.startIcon},
className:_.SQ(function(){return E().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var N=E(),h,J=(h=_.en().resolve(_.mz(_.jF)))==null?void 0:h();
return(N==null?void 0:N.style)===0&&(N==null?void 0:N.state)===0&&J?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return E().text},_.e(oYA,{shape:E,
onClick:k}),_.e(_.B5,{model:{borderRadius:"8px"}}))))},"Jc");
Xb8.idomCompat=!0;var yMd=_.f(function(k){var E=_.RZ(function(S){k.onClick(S);return!1});
return _.e(_.t,{cond:k.shouldWrapInButton,then:function(){return _.e("button",{class:"ytChipShapeButtonReset","on:click":E,role:function(){return k.isDropdown()?"combobox":"tab"},
"aria-label":k.accessibilityLabel,"aria-selected":k.selected},k.children)},
else:function(){return k.children}})},"Kc"),oYA=_.f(function(k){var E=k.shape;
var S=k.onClick;var R=_.RZ(function(V){S(V);return!1});
return _.e(_.D_,null,_.e(_.xk,{when:function(){return E().type===1}},function(){return _.e(_.i_,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.e(_.xk,{when:function(){return E().type===2}},function(){return _.e("button",{class:"ytChipShapeButtonReset",
"on:click":R},_.e(_.i_,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.e(_.xk,{when:function(){return E().type===0}},function(){return _.e(_.tj,null)}))},"Lc");_.qi(Xb8,"chip-shape",{props:{data:_.Nq}});var gN=function(){var k=_.p.apply(this,arguments)||this;k.disableDeselectEvent=!1;k.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return k};
_.y(gN,_.p);_.I=gN.prototype;_.I.onSelectChipCommand=function(k){if(!this.selected&&this.data&&(k=_.W(k,ZFj),k.targetId&&k.targetId===this.data.targetId))this.onTap()};
_.I.onFilterChipTransformCommand=function(k){if(!this.selected&&this.data){var E;(k=(E=_.W(k,jKC))==null?void 0:E.chipUniqueId)&&k===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.I.dataChanged=function(){var k=this;_.JB(this,function(){k.data&&k.data.isSelected&&!k.selected&&(k.scrollChipIntoView(),k.onTap())})};
_.I.computeChipStyle=function(k){return k!=null?k:"STYLE_DEFAULT"};
_.I.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.qe(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.qe(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.I.onFocus=function(){var k=_.en().resolve(_.mz(_.tr));k&&k.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.I.scrollChipIntoView=function(){_.Me(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.mt.Object.defineProperties(gN.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return ZDi({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
gN.prototype.onFocus=gN.prototype.onFocus;gN.prototype.onTap=gN.prototype.onTap;gN.prototype.dataChanged=gN.prototype.dataChanged;_.Z([_.g(_.y7),_.l("design:type",Object)],gN.prototype,"ironButtonState",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],gN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],gN.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],gN.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.YD),_.l("design:type",Object)],gN.prototype,"ironA11yKeysBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],gN.prototype,"disableDeselectEvent",void 0);_.Z([_.H(),_.l("design:type",Object)],gN.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.icon"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gN.prototype,"hasIcon",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.uniqueId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gN.prototype,"isGnomeChip",null);_.Z([_.H({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.l("design:type",String)],gN.prototype,"chipStyle",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],gN.prototype,"selected",void 0);
_.Z([_.U("data","selected"),_.l("design:type",Object),_.l("design:paramtypes",[])],gN.prototype,"chipShapeData",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gN.prototype,"dataChanged",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gN.prototype,"onTap",null);
_.Z([_.nv("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],gN.prototype,"onFocus",null);_.Z([_.U_({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],gN);
_.b(gN,"yt-chip-cloud-chip-renderer",function(){if(F9T===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;W9z===void 0&&(W9z=document.createElement("template"));var R=W9z;S.call(E,R.content.cloneNode(!0),k.content.firstChild);F9T=k}k=F9T;return k},{mode:2});var gYz=_.K5.persistentPanelVisibleSelector,UO=function(){var k=_.p.apply(this,arguments)||this;k.isDarkTheme=!1;k.notSticky=!1;k.transparentBackground=!1;k.shouldHide=!1;k.disableSticky=!1;k.fluidWidth=!1;k.isClipList=!1;k.defaultChipIndex=0;k.isPlaylist=!1;k.playlistVotingAnimationEnabled=_.Y("web_enable_voting_animation");k.toolbarHeight=0;k.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return k};
_.y(UO,_.p);_.I=UO.prototype;
_.I.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}}}}}};
_.I.attached=function(){var k=this;document.addEventListener("scroll",_.Ic(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var E;this.toolbarHeight=((E=document.querySelector("ytd-masthead"))==null?void 0:E.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(S){k.handleIntersect(S)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){k.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.I.detached=function(){var k;(k=this.intersectionObserver)==null||k.disconnect();var E;(E=this.resizeObserver)==null||E.disconnect();document.removeEventListener("scroll",_.Ic(this,this.updateChipBarWidthAndTop))};
_.I.dataChanged=function(){var k=this,E,S,R;((R=_.W((E=this.data)==null?void 0:(S=E.contents)==null?void 0:S[0],lY8))==null?void 0:R.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var V=this.findSelectedChipIndex();this.selectedIndex!==V&&(this.selectedIndex=-1);_.JB(this,function(){k.selectedIndex=V;k.updating=!1;k.ytScrollableChipCloudBehavior.reset()})};
_.I.findSelectedChipIndex=function(){var k;if((k=this.data)==null||!k.contents)return 0;k=this.data.contents;for(var E=0;E<k.length;E++){var S=void 0;if((S=_.W(k[E],lY8))==null?0:S.isSelected)return E}return 0};
_.I.computeStyle=function(k){return k};
_.I.handleChipCloudChipSelectAction=function(k){k=this.JSC$16227_chipsSelector.indexOf(k);k>-1&&this.JSC$16227_chipsSelector.selectIndex(k)};
_.I.handleChipCloudChipDeselectAction=function(){if(_.Y("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var k,E,S,R=(S=_.W((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E[0],lY8))==null?void 0:S.navigationEndpoint;R&&_.qe(this.hostElement,"yt-browse-section-list-reload-endpoint",[R]);this.JSC$16227_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.I.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.I.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.I.onResize=function(){this.updateLayout()};
_.I.updateLayout=function(){var k=this.ytScrollableChipCloudBehavior;_.JB(k,k.setContainerWidthDiff);k=this.ytScrollableChipCloudBehavior;_.JB(k,k.setButtonsState)};
_.I.onDarkModeToggledAction=function(k){this.isDarkTheme=k};
_.I.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.I.handleIntersect=function(k){this.notSticky=this.isChannelPageGrid||this.disableSticky||k[0].intersectionRatio===1};
_.I.updateDimensions=function(){var k=this.ytRendererBehavior.parentComponent;if(k){var E,S=(E=k.headerElement)!=null?E:k;_.VO(this.hostElement,{"--ytd-rich-grid-chips-bar-width":S.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.I.updateSelectedIndexFromBinding=function(k){this.selectedIndex=k.detail.value};
_.I.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var k;(k=this.sortFilterHeaderRendererElement)==null||k.setAttribute("is-playlist-page-with-filters","")}};
_.I.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(jFA(!this.notSticky))};
_.mt.Object.defineProperties(UO.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 k,E,S=(k=this.data)==null?void 0:(E=k.contents)==null?void 0:E.find(function(R){return _.W(R,OG4)});
return{sortFilterHeaderRenderer:_.W(S,OG4)}}}});
UO.prototype.dispatchChipBarIsSticky=UO.prototype.dispatchChipBarIsSticky;UO.prototype.isPlaylistPageChanged=UO.prototype.isPlaylistPageChanged;UO.prototype.updateChipBarWidthAndTop=UO.prototype.updateChipBarWidthAndTop;UO.prototype.onResize=UO.prototype.onResize;UO.prototype.onPersistentPanelVisibleChanged=UO.prototype.onPersistentPanelVisibleChanged;UO.prototype.onGuideIsExpandedChanged=UO.prototype.onGuideIsExpandedChanged;UO.prototype.dataChanged=UO.prototype.dataChanged;
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],UO.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.KS),_.l("design:type",Object)],UO.prototype,"ironResizableBehavior",void 0);_.Z([_.g(),_.l("design:type",X_)],UO.prototype,"ytScrollableChipCloudBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],UO.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],UO.prototype,"data",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],UO.prototype,"selectedIndex",void 0);_.Z([_.H({value:320}),_.l("design:type",Number)],UO.prototype,"scrollDistance",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UO.prototype,"isDarkTheme",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UO.prototype,"notSticky",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UO.prototype,"transparentBackground",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.l("design:type",String)],UO.prototype,"componentStyle",void 0);_.Z([_.H({selector:_.Uqh}),_.l("design:type",Boolean)],UO.prototype,"guideIsExpanded",void 0);
_.Z([_.H({selector:gYz}),_.l("design:type",Boolean)],UO.prototype,"persistentPanelVisible",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UO.prototype,"shouldHide",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UO.prototype,"disableSticky",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UO.prototype,"fluidWidth",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UO.prototype,"isClipList",void 0);
_.Z([_.H(),_.l("design:type",Object)],UO.prototype,"defaultChipIndex",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UO.prototype,"isPlaylist",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],UO.prototype,"playlistVotingAnimationEnabled",void 0);_.Z([_.JO("#chips"),_.l("design:type",Object)],UO.prototype,"JSC$16227_chipsSelector",void 0);
_.Z([_.JO("ytd-sort-filter-header-renderer"),_.l("design:type",HTMLElement)],UO.prototype,"sortFilterHeaderRendererElement",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],UO.prototype,"updating",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"dataChanged",null);
_.Z([_.il("guideIsExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"onGuideIsExpandedChanged",null);_.Z([_.il("persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"onPersistentPanelVisibleChanged",null);_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"onResize",null);
_.Z([_.ac("isChannelPageGrid","disableSticky","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"updateChipBarWidthAndTop",null);_.Z([_.U("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UO.prototype,"isChannelPageGrid",null);_.Z([_.U("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UO.prototype,"isHashtagLandingPage",null);
_.Z([_.il("isPlaylistPage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"isPlaylistPageChanged",null);_.Z([_.U("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UO.prototype,"isPlaylistPage",null);_.Z([_.U("componentStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UO.prototype,"isDisableDeselectEvent",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UO.prototype,"sortFilterHeaderRendererData",null);_.Z([_.H({reflectToAttribute:!0,selector:_.xqh}),_.l("design:type",String)],UO.prototype,"frostedGlassMode",void 0);_.Z([_.il("notSticky"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UO.prototype,"dispatchChipBarIsSticky",null);_.Z([_.D({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],UO);
_.b(UO,"ytd-feed-filter-chip-bar-renderer",function(){if(YSY!==void 0)return YSY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return YSY=k},{mode:1});var URz;var HnY=_.f(function(k){var E=k.data;var S=k.buttonIndex;var R=k.selectedIndex;var V=k.onSelect;var N=function(){return S()===R()},h=function(){var J,m;
return(m=(J=E().text)==null?void 0:J.content)!=null?m:""};
k=_.fub();return _.e("yt-toggleable-image-button-view-model",{class:function(){var J={};J=(J.toggleableImageButtonViewModelHost=!0,J[""]=!0,J.toggleableImageButtonViewModelSemiTransparent=R()!==-1&&!N(),J);return _.wd(J)},
tabindex:0,"aria-label":h,"aria-pressed":N,role:"button","on:keydown":k,"on:click":_.RZ(function(){V(E().onSubmitCommand);return!1})},_.e(_.t,{cond:function(){return E().logo},
then:function(J){return _.e(_.vM,{data:J,className:function(){var m={};m=(m.toggleableImageButtonViewModelImage=!0,m.toggleableImageButtonViewModelCircularRadius=!(!E().backgroundColor||!E().backgroundColorDarkMode),m.toggleableImageButtonViewModelGradientRing=!!(N()&&E().backgroundColor&&E().backgroundColorDarkMode),m);return _.wd(m)},
alt:h,useWidth:!1,style:function(){if(N()&&E().backgroundColor&&E().backgroundColorDarkMode){var m=pc(Number(E().backgroundColorDarkMode),"1");var a=pc(Number(E().backgroundColor),"1");m="background: linear-gradient(180deg,"+m+","+a+") border-box;"}else m="";return m}})}}),_.e(_.B5,{model:{borderRadius:"16px"}}),_.e("p",{class:function(){var J={};
J=(J.toggleableImageButtonViewModelLabel=!0,J.toggleableImageButtonViewModelBoldText=N(),J);return _.wd(J)}},_.e(_.VB,{text:function(){return E().text}})))},"Mc");
HnY.idomCompat=!0;var pbA=_.f(function(k){var E=k.data;k=_.n(_.yg({index:-1,command:{}},void 0,"GM3umb"));var S=k.next().value,R=k.next().value;return _.e("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.e("div",{class:"nudgeFormViewModelFormOptions"},_.e(_.cp,{data:function(){return E().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(V,N){return _.e(HnY,{data:V.data,buttonIndex:N,selectedIndex:function(){return S().index},
onSelect:function(h){R({index:N(),command:h})}})}})),_.e(_.VB,{text:function(){return E().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.e("div",{class:"nudgeFormViewModelSubmit"},_.e(_.cp,{data:function(){return E().submitButton}},{buttonViewModel:function(V){return _.e(K9Y,{data:V.data,
isDisabled:function(){return S().index===-1},
onClick:function(){_.AV(S().command)}})}})))},"Nc");
pbA.idomCompat=!0;var K9Y=_.f(function(k){var E=_.HX(function(){return Object.assign({},k.data(),{state:k.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.e(_.yB,{data:E,onClick:k.onClick})},"Oc");_.qi(pbA,"yt-nudge-form-view-model",{props:{data:_.Nq}});var Hm=function(){var k=_.p.apply(this,arguments)||this;k.roundedContainer=!0;k.buttonUpdate=_.Y("web_modern_buttons");k.isDarkMode=!1;k.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return k};
_.y(Hm,_.p);_.I=Hm.prototype;_.I.computeNudgeStyle=function(k){return k?"modernized-nudge":""};
_.I.handleDarkModeToggledAction=function(k){this.isDarkMode=k};
_.I.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.I.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"}}}};
_.I.computeIsHorizontalButtons=function(k){return k?!!k.applyModernizedStyle&&!!k.enableHorizontalButtons&&!!k.secondaryButton:!1};
_.mt.Object.defineProperties(Hm.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=(k=this.data)==null?void 0:k.backgroundStyle)!=null?E:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=(k=this.data)==null?void 0:k.contentsLocation)!=null?E:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null?0:k.lightIconImage)}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Hm.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Hm.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],Hm.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Hm.prototype,"actionHandlerBehavior",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("isHideEnclosingAction"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Hm.prototype,"isHidden",null);_.Z([_.H(),_.l("design:type",Object)],Hm.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hm.prototype,"roundedContainer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hm.prototype,"buttonUpdate",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.l("design:type",String)],Hm.prototype,"nudgeStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.trimStyle"),_.l("design:type",String),_.l("design:paramtypes",[])],Hm.prototype,"trimStyle",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.backgroundStyle"),_.l("design:type",String),_.l("design:paramtypes",[])],Hm.prototype,"backgroundStyle",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.contentsLocation"),_.l("design:type",String),_.l("design:paramtypes",[])],Hm.prototype,"contentsLocation",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.disableDropShadow"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Hm.prototype,"noShadow",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.lightIconImage"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Hm.prototype,"noIcon",null);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.l("design:type",Boolean)],Hm.prototype,"isHorizontalButtons",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Object)],Hm.prototype,"isDarkMode",void 0);_.Z([_.D({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Hm);
_.b(Hm,"ytd-feed-nudge-renderer",function(){if(URz!==void 0)return URz;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return URz=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var AM4;var rMC;var Kb=function(){var k=_.p.apply(this,arguments)||this;k.collapsed=!1;k.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return k};
_.y(Kb,_.p);Kb.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"}}}};
Kb.prototype.handleRatingSelect=function(){var k;((k=this.data)==null?0:k.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
Kb.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Kb.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Kb.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Kb.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.Ob),_.l("design:type",Object)],Kb.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Kb.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Kb.prototype,"collapsed",void 0);_.Z([_.D({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],Kb);
_.b(Kb,"ytd-slimline-survey-renderer",function(){if(rMC!==void 0)return rMC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return rMC=k},{mode:1});var uBC;var pb=function(){return _.p.apply(this,arguments)||this};
_.y(pb,_.p);pb.prototype.maybeGetBackgroundColor=function(k){return this.isDarkMode?k.section2Color:k.section3Color};
pb.prototype.colorPaletteChanged=function(){var k=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;k&&(k==null?0:k.secondaryTitleColor)&&this.maybeGetBackgroundColor(k)?(this.hostElement.style.backgroundColor=_.HT(this.maybeGetBackgroundColor(k)),this.hostElement.style.color=_.HT(k.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
pb.prototype.colorPaletteChanged=pb.prototype.colorPaletteChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],pb.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],pb.prototype,"data",void 0);_.Z([_.H({selector:function(k){return k.ui.darkModeIsEnabled}}),
_.l("design:type",Boolean)],pb.prototype,"isDarkMode",void 0);_.Z([_.H(),_.l("design:type",Object)],pb.prototype,"lightColorPalette",void 0);_.Z([_.H(),_.l("design:type",Object)],pb.prototype,"darkColorPalette",void 0);_.Z([_.il("darkColorPalette","lightColorPalette","data","isDarkMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pb.prototype,"colorPaletteChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],pb);
_.b(pb,"ytd-endorsement-header-renderer",function(){if(uBC!==void 0)return uBC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return uBC=k},{mode:1});_.qi(_.sV,"yt-decorated-avatar-view-model",{props:{data:_.Nq,className:_.Nq}});_.Au=new _.QE("VIEW_TRANSITION_MANAGER_TOKEN");var rN=function(){var k=_.p.apply(this,arguments)||this;k.fullHeight=_.Y("web_rich_grid_media_full_height");k.showChannelAvatar=!0;k.hasPlaylistThumbnail=!1;k.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};k.registerThumbnailForPageTransition=function(){_.Y("web_thumbnail_to_watch_transition")&&_.xRd(_.en().resolve(_.Au),k.thumbnail)};
return k};
_.y(rN,_.p);_.I=rN.prototype;
_.I.configureRendererStamper=function(){return{lazyLoadMenu:Ky,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"}}}};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.shouldLazyLoadMenu=function(){var k=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.Y("kevlar_modern_downloads_page")||!k};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16252_inlinePreviewHoverListener=oE({mediaRenderer:this,lockupElement:this.JSC$16252_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.I.getVideoPreviewOpts=function(){var k={},E;if((E=this.data)==null?0:E.multipleInlinePlaybackEndpoint)k=WvY;this.isRadio&&(k=YKd);return k};
_.I.clearInlinePreviewHoverListeners=function(){var k;(k=this.JSC$16252_inlinePreviewHoverListener)==null||L9(k)};
_.I.getOwner=function(){var k,E,S;return((k=this.data)==null?void 0:(E=k.channelThumbnailSupportedRenderers)==null?void 0:E.channelThumbnailWithLinkRenderer)||_.W((S=this.data)==null?void 0:S.showProviderChannelThumbnail,M7j)};
_.I.updateLockupSize=function(){var k;((k=this.getOwner())==null?0:k.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.I.getFeedbackEndpoint=function(k){if(_.W(k,_.wy))return k;var E,S;k=(S=(E=_.W(k,_.CI))==null?void 0:E.commands)!=null?S:[];E=_.n(k);for(S=E.next();!S.done;S=E.next())if(S=this.getFeedbackEndpoint(S.value))return S;return null};
_.I.computeNavigationEndpoint=function(k){return uEj(k==null?void 0:k.navigationEndpoint)};
_.I.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var k=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(k)!==JSON.stringify(this.data)&&this.set("data",k)}};
_.I.onDataChanged=function(){var k=this,E=this.getOwner();if(E){this.set("data.owner",E);var S,R,V,N,h,J=((S=this.data)==null?void 0:(R=S.shortBylineText)==null?void 0:(V=R.runs)==null?void 0:(N=V[0])==null?void 0:N.text)||((h=E.name)==null?void 0:h.simpleText);this.set("data.owner.title",J)}var m,a,T,w,P,B;E=((m=this.data)==null?void 0:(a=m.thumbnailRenderer)==null?void 0:a.playlistVideoThumbnailRenderer)||((T=this.data)==null?void 0:(w=T.thumbnailRenderer)==null?void 0:w.playlistCustomThumbnailRenderer)||
((P=this.data)==null?void 0:(B=P.thumbnailRenderer)==null?void 0:B.showCustomThumbnailRenderer);var F;((F=this.data)==null?0:F.thumbnail)||!E||this.set("data.thumbnail",E.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){k.updateLockupSize()});
var K;if(m=((K=this.data)==null?void 0:K.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(m);var r;((r=this.dismissActionToReplayEntity)==null?0:r.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.I.onHiddenChanged=function(){this.updateLockupSize()};
_.I.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.qe(this.hostElement,"yt-terminate-video-preview-action");else{var k;(k=this.videoTitleLink)==null||k.focus()}};
_.I.metadataColorChanged=function(){var k;if(this.metadataColor&&((k=this.videoTitle)==null?0:k.style))this.videoTitle.style.color=_.HT(this.metadataColor);else{var E,S;!this.metadataColor&&((E=this.videoTitle)==null?0:(S=E.style)==null?0:S.color)&&(this.videoTitle.style.color="")}};
_.I.onDetailsClick=function(k){var E=this.computedNavigationEndpoint;E&&(_.v9(_.vT(k),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Me(this.hostElement,"yt-navigate",{endpoint:E}))};
_.I.onRendererTap=function(){this.registerThumbnailForPageTransition();var k,E,S=((k=this.data)==null?void 0:k.serviceEndpoint)||this.getFeedbackEndpoint((E=this.data)==null?void 0:E.navigationEndpoint);S&&_.W(S,_.wy)&&this.ytComponentBehavior.resolveCommand(S)};
_.I.onMouseDown=function(k){var E=k.target,S=this.computedNavigationEndpoint,R;k=E.href||((R=_.W(S==null?void 0:S.commandMetadata,_.Sd))==null?void 0:R.url);R=E.data||S;k&&R&&oVb(k,R)};
_.I.computeVideoTitleText=function(){var k;if((k=this.data)==null?0:k.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.I.computeHasPlaylistThumbnail=function(k){var E,S,R,V,N;if((((E=k.thumbnailRenderer)==null?0:E.playlistVideoThumbnailRenderer)||((S=k.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer)||((R=k.thumbnailRenderer)==null?0:R.showCustomThumbnailRenderer)||((V=k.thumbnailRenderer)==null?0:V.playlistVideoThumbnailRenderer)||((N=k.thumbnailRenderer)==null?0:N.playlistCustomThumbnailRenderer))&&k.thumbnailOverlays)for(E=0;E<k.thumbnailOverlays.length;E++)if(S=void 0,(S=k.thumbnailOverlays[E])==
null?0:S.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.mt.Object.defineProperties(rN.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.Y("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var k;return(k=this.data)==null?void 0:k.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var k;return(k=this.data)==null?void 0:k.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.JSC$16252_inlinePreviewHoverListener)==null?0:zD(k))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.VYC(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:k.videoId)||((E=this.data)==null?void 0:E.playlistId)||""}}});
rN.prototype.onMouseDown=rN.prototype.onMouseDown;rN.prototype.metadataColorChanged=rN.prototype.metadataColorChanged;rN.prototype.onIsDismissedChanged=rN.prototype.onIsDismissedChanged;rN.prototype.onHiddenChanged=rN.prototype.onHiddenChanged;rN.prototype.onDataChanged=rN.prototype.onDataChanged;rN.prototype.handleReloadDownloadsInfo=rN.prototype.handleReloadDownloadsInfo;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],rN.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],rN.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],rN.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],rN.prototype,"ytdReduxBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],rN.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],rN.prototype,"entitySelectorType",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rN.prototype,"noEndpoints",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],rN.prototype,"isRadio",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],rN.prototype,"miniMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],rN.prototype,"fullHeight",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],rN.prototype,"showDarkVideoMetadata",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rN.prototype,"showLightVideoMetadata",void 0);_.Z([_.H(),_.l("design:type",Number)],rN.prototype,"metadataColor",void 0);_.Z([_.H(),_.l("design:type",Object)],rN.prototype,"showChannelAvatar",void 0);_.Z([_.H(),_.l("design:type",Boolean)],rN.prototype,"hidden",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],rN.prototype,"showYtInteraction",void 0);
_.Z([_.H(),_.l("design:type",String)],rN.prototype,"dismissedContentId",void 0);_.Z([_.H({selectorArgs:["dismissedContentId"],selector:nS1}),_.l("design:type",Object)],rN.prototype,"dismissActionToReplayEntity",void 0);
_.Z([_.H({selectorArgs:["entitySelectorType","mediaId"],selector:function(k,E,S){if(_.Y("kevlar_modern_downloads_page")&&S&&E&&E!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(E){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var R=$qh(k,S);if(R){E=_.Xf(k,S);var V=Up(k,S),N=OGC(k,S);k=Ho(k,S);var h=i6m(R,E,V,N);V=h.shortViewCountText;var J=h.publishedTimeText;h=h.badges;var m=k>0;N=IVj(R,E,N,k);R=_.Jp(E)||E==="TRANSFER_STATE_FAILED"||E==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!hp(R.policyEntity)?
void 0:A1R(S,k,R.videoEntity.lengthSeconds);E==="TRANSFER_STATE_PAUSED_BY_USER"&&S&&!_.Y("dl_resume_click_killswitch")&&(R={offlineVideoEndpoint:{videoId:S,action:"ACTION_RESUME"}});S={shortViewCountText:V,publishedTimeText:J,badges:h,isWatched:m,navigationEndpoint:R,thumbnailOverlays:N}}else S=void 0;return S;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(E=fYm(k,S))if(R=_.g8(k,S),N=_.vBb(k,S),R!=="TRANSFER_STATE_UNKNOWN"){S=ngm(E,R,N,S,_.o7(k));break a}S=void 0}return S;default:_.dg(new _.LC("Error: entitySelectorType defined but not matched in selector.",
k,E))}}}),
_.l("design:type",Object)],rN.prototype,"entityDrivenState",void 0);_.Z([_.H({computed:"computeVideoTitleText(data)"}),_.l("design:type",Object)],rN.prototype,"videoTitleText",void 0);_.Z([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.l("design:type",Object)],rN.prototype,"hasPlaylistThumbnail",void 0);_.Z([_.H({computed:"computeNavigationEndpoint(data)"}),_.l("design:type",Object)],rN.prototype,"computedNavigationEndpoint",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],rN.prototype,"typographyBump",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("typographyBump"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rN.prototype,"typographyBumpV2",null);_.Z([_.JO("#video-title"),_.l("design:type",HTMLElement)],rN.prototype,"videoTitle",void 0);_.Z([_.JO("#video-title-link"),_.l("design:type",HTMLElement)],rN.prototype,"videoTitleLink",void 0);
_.Z([_.JO("#thumbnail"),_.l("design:type",HTMLElement)],rN.prototype,"thumbnail",void 0);_.Z([_.JO("#dismissible"),_.l("design:type",HTMLElement)],rN.prototype,"JSC$16252_dismissibleMedia",void 0);_.Z([_.U("data.menu"),_.l("design:type",Object),_.l("design:paramtypes",[])],rN.prototype,"lazyLoadMenu",null);_.Z([_.U("data.menu"),_.l("design:type",Object),_.l("design:paramtypes",[])],rN.prototype,"immediateLoadMenu",null);
_.Z([_.ac("entityDrivenState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rN.prototype,"handleReloadDownloadsInfo",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rN.prototype,"onDataChanged",null);_.Z([_.ac("hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rN.prototype,"onHiddenChanged",null);
_.Z([_.il("isDismissed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rN.prototype,"onIsDismissedChanged",null);_.Z([_.il("metadataColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rN.prototype,"metadataColorChanged",null);_.Z([_.nv("mousedown"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],rN.prototype,"onMouseDown",null);
_.Z([_.U("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rN.prototype,"isHovered",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rN.prototype,"useAvatar",null);_.Z([_.U("data","entitySelectorType"),_.l("design:type",String),_.l("design:paramtypes",[])],rN.prototype,"mediaId",null);_.Z([_.D({is:"ytd-rich-grid-media",disableElementRegistration:!0})],rN);
var L94=_.O_()(rN,"ytd-rich-grid-media",function(){if(AM4!==void 0)return AM4;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return AM4=k},{mode:_.GN("kevlar_poly_si_batch_j072")?1:2});var j5p;var uy=function(){var k=_.p.apply(this,arguments)||this;k.removeMaxWidth=!0;k.insetMetadata=!1;return k};
_.y(uy,_.p);_.I=uy.prototype;_.I.configureRendererStamper=function(){return{innerMenu:Ky,outerMenu:Object.assign({},Ky,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.onDataChanged=function(){var k,E=((k=this.data)==null?void 0:k.trackingParams)||"";E&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(E));var S;((S=this.dismissActionToReplayEntity)==null?0:S.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16257_inlinePreviewHoverListener=oE({mediaRenderer:this,lockupElement:this.JSC$16257_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:Fv4})};
_.I.clearInlinePreviewHoverListeners=function(){var k;(k=this.JSC$16257_inlinePreviewHoverListener)==null||L9(k)};
_.I.onRendererTap=function(){var k,E,S=(k=this.data)==null?void 0:(E=k.serviceEndpoints)==null?void 0:E[0];_.W(S,_.wy)&&this.componentBehavior.resolveCommand(S)};
_.I.onDetailsClick=function(k){var E,S=(E=this.data)==null?void 0:E.navigationEndpoint;S&&(_.v9(_.vT(k),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(S))};
_.I.onShow=function(){var k=this.data;k.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(k.onFirstVisibleCommand),delete k.onFirstVisibleCommand)};
_.mt.Object.defineProperties(uy.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var k;return this.insetMetadata?void 0:(k=this.data)==null?void 0:k.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var k;return this.insetMetadata?(k=this.data)==null?void 0:k.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var k=this.data;if(k!=null&&k.badge&&(k=_.W(k.badge,$qT))){var E,S,R;return[{metadataBadgeRenderer:{label:((E=k.label)==null?void 0:(S=E.runs)==null?void 0:S[0].text)||((R=k.label)==null?void 0:R.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var k=this.data;return Object.assign({},k.headline,{accessibility:k.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return this.isSlimShort?(k=this.computedTitle)==null?void 0:(E=k.accessibility)==null?void 0:(S=E.accessibilityData)==null?void 0:S.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.JSC$16257_inlinePreviewHoverListener)==null?0:zD(k))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
uy.prototype.onDataChanged=uy.prototype.onDataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],uy.prototype,"componentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],uy.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.Ob),_.l("design:type",Object)],uy.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],uy.prototype,"ytdReduxBehavior",void 0);_.Z([_.JO("ytd-thumbnail"),_.l("design:type",HTMLElement)],uy.prototype,"thumbnail",void 0);_.Z([_.JO("#dismissible"),_.l("design:type",HTMLElement)],uy.prototype,"JSC$16257_dismissibleMedia",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],uy.prototype,"removeMaxWidth",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],uy.prototype,"insetMetadata",void 0);_.Z([_.H(),_.l("design:type",String)],uy.prototype,"dismissedContentId",void 0);_.Z([_.H({selectorArgs:["dismissedContentId"],selector:nS1}),_.l("design:type",Object)],uy.prototype,"dismissActionToReplayEntity",void 0);_.Z([_.U("insetMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],uy.prototype,"thumbnailObjectFit",null);
_.Z([_.U("data","insetMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],uy.prototype,"innerMenu",null);_.Z([_.U("data","insetMetadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],uy.prototype,"outerMenu",null);_.Z([_.H(),_.l("design:type",Object)],uy.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],uy.prototype,"miniMode",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uy.prototype,"onDataChanged",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],uy.prototype,"shortsBadges",null);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uy.prototype,"isShort",null);
_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uy.prototype,"isSlimShort",null);_.Z([_.U("data","isShort"),_.l("design:type",Object),_.l("design:paramtypes",[])],uy.prototype,"computedTitle",null);_.Z([_.U("isSlimShort","computedTitle"),_.l("design:type",Object),_.l("design:paramtypes",[])],uy.prototype,"computedAccessibilityLabel",null);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uy.prototype,"shouldForce2By3",null);_.Z([_.U("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],uy.prototype,"isHovered",null);_.Z([_.D({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],uy);
_.b(uy,"ytd-rich-grid-slim-media",function(){if(j5p!==void 0)return j5p;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return j5p=k},{mode:_.GN("kevlar_poly_si_batch_j063")?1:2});var DRz;var $RC;var x9=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(x9,_.p);x9.prototype.computeIcon=function(k){return k&&k.iconType?"yt-sys-icons:"+k.iconType.toLowerCase():""};
x9.prototype.onMouseEnter=function(){this.isHovered=!0};
x9.prototype.onMouseLeave=function(){this.isHovered=!1};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],x9.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],x9.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],x9.prototype,"isHovered",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],x9.prototype,"darkerDarkTheme",void 0);_.Z([_.D({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],x9);
_.b(x9,"ytd-expand-on-hover-card-renderer",function(){if($RC!==void 0)return $RC;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return $RC=k},{mode:1});var fzC,vYd=function(){if(fzC!==void 0)return fzC;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return fzC=k};_.B9("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Lb=function(){var k=_.p.apply(this,arguments)||this;k.compactStyle=!1;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(Lb,_.p);_.I=Lb.prototype;_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.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"}}}};
_.I.computeHideDot=function(k){return!(k&&k.subscriberCountText&&k.videoCountText)||this.compactStyle};
_.I.hasDualButtons=function(k){return k&&k.purchaseButton&&k.subscribeButton};
_.I.backgroundColorChanged=function(){if(this.data!==void 0){var k=this.data.backgroundColor;this.isDarkTheme&&(k=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=k!=null?_.HT(k):"transparent"}};
_.I.onDarkModeToggledAction=function(k){this.isDarkTheme=k};
_.I.onTap=function(k){var E,S,R=((E=this.data)==null?void 0:E.navigationEndpoint)||((S=this.data)==null?void 0:S.serviceEndpoint);_.W(R,_.xh)&&(R&&_.en().resolve(_.t3).resolveCommand(R,{form:{element:this.hostElement}}),k.preventDefault())};
_.I.computeChannelEndpoint=function(k){return _.W(k,_.xh)?null:k};
_.I.computeHrefEndpoint=function(k){return _.W(k,_.xh)?null:this.componentBehavior.computeHref_(k)};
_.I.computeChannelRendererStyle=function(k){return k};
_.I.computeIconSize=function(k){return k?108:136};
_.mt.Object.defineProperties(Lb,{template:{configurable:!0,enumerable:!0,get:function(){return vYd()}}});
Lb.prototype.backgroundColorChanged=Lb.prototype.backgroundColorChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Lb.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],Lb.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Lb.prototype,"componentBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Lb.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Lb.prototype,"isDarkTheme",void 0);_.Z([_.H({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.l("design:type",String)],Lb.prototype,"channelRendererStyle",void 0);_.Z([_.H({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Lb.prototype,"dualButtons",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],Lb.prototype,"useBiggerThumbs",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.P_("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],Lb.prototype,"biggerThumbStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Lb.prototype,"compactStyle",void 0);_.Z([_.il("data","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lb.prototype,"backgroundColorChanged",null);_.Z([_.D({is:"ytd-channel-renderer",disableElementRegistration:!0})],Lb);_.b(Lb,"ytd-channel-renderer",function(){return vYd()},{mode:1});var bn2;var Znp;_.B9("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var jp=function(){var k=_.p.apply(this,arguments)||this;k.displayItemCount=2;k.collections=_.Y("web_modern_collections_v2");k.hasPlaylistThumbnail=!1;k.stackThumbnailSize="large";return k};
_.y(jp,_.p);_.I=jp.prototype;_.I.attached=function(){this.updateInlinePreviewHoverListeners()};
_.I.detached=function(){this.clearInlinePreviewHoverListeners()};
_.I.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.I.computeFirstVideos=function(k,E){return k&&E?k.slice(0,E):[]};
_.I.computeThumbnailWidth=function(k,E){return k?E==="BIG"?500:E==="MASSIVE"?600:E==="MEDIUM"?450:420:360};
_.I.computeThumbnailHeight=function(k,E){return k?E==="BIG"?280:E==="MASSIVE"?337:234:202};
_.I.clearInlinePreviewHoverListeners=function(){var k;(k=this.JSC$16270_inlinePreviewHoverListener)==null||L9(k)};
_.I.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16270_inlinePreviewHoverListener=oE({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:WvY,thumbnailElement:this.thumbnail})};
_.I.computeHasPlaylistThumbnail=function(k){var E,S;if((((E=k.thumbnailRenderer)==null?0:E.playlistVideoThumbnailRenderer)||((S=k.thumbnailRenderer)==null?0:S.playlistCustomThumbnailRenderer))&&k.thumbnailOverlays)for(E=0;E<k.thumbnailOverlays.length;E++)if(S=void 0,(S=k.thumbnailOverlays[E])==null?0:S.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.mt.Object.defineProperties(jp.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.JSC$16270_inlinePreviewHoverListener)==null?0:zD(k))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
jp.prototype.dataChanged=jp.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],jp.prototype,"ytdLockupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],jp.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],jp.prototype,"displayItemCount",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],jp.prototype,"useBiggerThumbs",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.P_("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],jp.prototype,"biggerThumbsStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],jp.prototype,"collections",void 0);_.Z([_.H({computed:"computeHasPlaylistThumbnail(data)"}),_.l("design:type",Object)],jp.prototype,"hasPlaylistThumbnail",void 0);_.Z([_.H(),_.l("design:type",String)],jp.prototype,"stackThumbnailSize",void 0);_.Z([_.JO("ytd-thumbnail"),_.l("design:type",HTMLElement)],jp.prototype,"thumbnail",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jp.prototype,"dataChanged",null);_.Z([_.U("lockupIsHovered"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],jp.prototype,"isHovered",null);_.Z([_.D({is:"ytd-radio-renderer",disableElementRegistration:!0})],jp);
_.b(jp,"ytd-radio-renderer",function(){if(Znp!==void 0)return Znp;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Znp=k},{mode:_.GN("kevlar_poly_si_batch_j058")?1:2});var dRd;_.B9("itemSectionRenderer","showRenderer","ytd-show-renderer");var Dj=function(){return _.p.apply(this,arguments)||this};
_.y(Dj,_.p);Dj.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Dj.prototype.computeThumbnailWidth=function(k){return k?360:246};
Dj.prototype.computeUseProminentThumbs=function(k){return k};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Dj.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Dj.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Dj.prototype,"isSearch",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.l("design:type",Boolean)],Dj.prototype,"useProminentThumbs",void 0);_.Z([_.D({is:"ytd-show-renderer",disableElementRegistration:!0})],Dj);
_.b(Dj,"ytd-show-renderer",function(){if(dRd!==void 0)return dRd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return dRd=k},{mode:1});_.B9("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var $9=function(){var k=_.p.apply(this,arguments)||this;k.isRichGrid=!1;return k};
_.y($9,_.p);$9.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"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$9.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],$9.prototype,"isRichGrid",void 0);_.Z([_.D({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],$9);
_.b($9,"ytd-feed-entry-renderer",function(){if(bn2!==void 0)return bn2;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return bn2=k},{mode:1});var s5T;var fb=function(){return _.p.apply(this,arguments)||this};
_.y(fb,_.p);fb.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.Z([_.g(_.zm),_.l("design:type",Object)],fb.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],fb.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],fb.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Wo,value:3}),_.l("design:type",Number)],fb.prototype,"itemsPerRow",void 0);
_.Z([_.D({is:"ytd-link-card-renderer",disableElementRegistration:!0})],fb);
_.b(fb,"ytd-link-card-renderer",function(){if(s5T!==void 0)return s5T;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return s5T=k},{mode:1});var lzY;var by=function(){return _.p.apply(this,arguments)||this};
_.y(by,_.p);_.I=by.prototype;_.I.configureRendererStamper=function(){return{"data.menu":Ky,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.I.onRendererTap=function(k){if(!this.ytdDismissibleItemBehavior.isDismissed){var E,S=(E=this.data)==null?void 0:E.navigationEndpoint;S&&!_.v9(_.vT(k),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(S)?_.v9(_.vT(k),this.hostElement,["A"])||_.Me(this.hostElement,"yt-navigate",{endpoint:S}):this.ytComponentBehavior.resolveCommand(S,{}))}};
_.I.maybeComputeHref=function(k){return this.ytComponentBehavior.computeHref_(k,!0)};
_.I.getNavigationCommand=function(k){return this.isNavigationCommand(k)?k:null};
_.I.isNavigationCommand=function(k){return k?_.W(k,_.Ny)||_.W(k,_.jm)||_.W(k,_.Oc)?!0:!1:!1};
by.prototype.onRendererTap=by.prototype.onRendererTap;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],by.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],by.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],by.prototype,"ytComponentBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],by.prototype,"data",void 0);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],by.prototype,"onRendererTap",null);_.Z([_.D({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],by);
_.b(by,"ytd-lumiere-promo-item-image-renderer",function(){if(lzY!==void 0)return lzY;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return lzY=k},{mode:1});var MB5;var Zj=function(){return _.p.apply(this,arguments)||this};
_.y(Zj,_.p);Zj.prototype.computeLandscapeThumbnail=function(){var k;return((k=this.data)==null?void 0:k.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Zj.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Zj.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],Zj.prototype,"miniMode",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Wo}),_.l("design:type",Number)],Zj.prototype,"itemsPerRow",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.l("design:type",Boolean)],Zj.prototype,"landscapeThumbnail",void 0);_.Z([_.D({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],Zj);
_.b(Zj,"ytd-lumiere-shelf-details-renderer",function(){if(MB5!==void 0)return MB5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return MB5=k},{mode:_.GN("kevlar_poly_si_batch_j076")?1:2});var qS5;var dN=function(){return _.p.apply(this,arguments)||this};
_.y(dN,_.p);dN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],dN.prototype,"data",void 0);_.Z([_.D({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],dN);
_.b(dN,"ytd-primetime-promo-details-renderer",function(){if(qS5!==void 0)return qS5;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return qS5=k},{mode:1});var z0p;var sO=function(){return _.p.apply(this,arguments)||this};
_.y(sO,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sO.prototype,"data",void 0);_.Z([_.D({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],sO);
_.b(sO,"ytd-panel-show-style-metadata-renderer",function(){if(z0p!==void 0)return z0p;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return z0p=k},{mode:1});var Q5Y;var ly=function(){return _.p.apply(this,arguments)||this};
_.y(ly,_.p);_.I=ly.prototype;_.I.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.I.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.I.computeThumbnail=function(k){if(k)return k.smallFormFactorBackgroundThumbnail||k.largeFormFactorBackgroundThumbnail};
_.I.maybeComputeHref=function(k){return this.ytComponentBehavior.computeHref_(k,!0)};
_.I.isNavigationCommand=function(k){return k?_.W(k,_.Ny)||_.W(k,_.jm)||_.W(k,_.Oc)?!0:!1:!1};
_.I.getNavigationCommand=function(k){return this.isNavigationCommand(k)?k:null};
ly.prototype.onPanelTap=ly.prototype.onPanelTap;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ly.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ly.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],ly.prototype,"roundedContainer",void 0);_.Z([_.H({reflectToAttribute:!0,value:_.Y("web_modern_buttons")}),_.l("design:type",Boolean)],ly.prototype,"modernButtons",void 0);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ly.prototype,"onPanelTap",null);_.Z([_.D({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],ly);
_.b(ly,"ytd-primetime-promo-panel-renderer",function(){if(Q5Y!==void 0)return Q5Y;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Q5Y=k},{mode:1});_.qi(_.f(function(k){k=_.dJ(k,{data:{},useFullWidth:!1});var E=k.data,S=k.useFullWidth;k={};return _.e("teaser-card-view-model",{class:_.SQ("ytTeaserCardViewModelHost",(k.ytTeaserCardViewModelUseFullWidth=function(){return S()},k))},_.e(_.t,{cond:function(){return E().onTap},
then:function(R){return _.e(_.P5,{className:"ytTeaserCardViewModelLink",command:R},_.e("div",{class:"ytTeaserCardViewModelImageContainer"},_.e(_.t,{cond:function(){return E().image},
then:function(V){return _.e(_.vM,{data:V,className:"ytTeaserCardViewModelImage",alt:""})}})),_.e("p",{class:"ytTeaserCardViewModelCaption"},function(){return E().caption}))}}))},"Pc"),"teaser-card-view-model",{props:{data:_.Nq,
useFullWidth:_.Nq}});_.qi(_.f(function(k){var E=k.data;var S=function(){var R;return _.Hp((R=E())==null?void 0:R.iconThemedImage)};
return _.e("yt-edu-card-view-model",null,_.e(_.BW,{contentId:function(){return E().nudgeId}},function(){return _.e("div",{class:_.SQ("ytEduCardViewModelHost",function(){return E().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.e("div",{class:"ytEduCardViewModelTopCornerButton"},_.e(_.cp,{data:function(){return E().dismissButton}},{buttonViewModel:_.yB})),_.e("div",{class:"ytEduCardViewModelContentWrapper"},_.e("div",{class:"ytEduCardViewModelHeaderImage"},_.e(_.t,
{cond:S,
then:function(R){return _.e(_.vM,{data:R,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.e("div",{class:"ytEduCardViewModelTextContainer"},_.e("div",{class:"ytEduCardViewModelTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e("div",{class:"ytEduCardViewModelSubtitle"},_.e(_.VB,{text:function(){return E().subtitle}}))),_.e("div",{class:"ytEduCardViewModelContent"},_.e(_.cp,{data:function(){return E().form}},{nudgeFormViewModel:pbA}))),_.e("div",{class:_.SQ("ytEduCardViewModelButtonWrapper",
function(){return E().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.e(_.cp,{data:function(){return E().primaryButton}},{buttonViewModel:function(R){return _.e("div",{class:"ytEduCardViewModelPrimaryButton"},_.e(_.yB,{data:R.data}))}}),_.e(_.cp,{data:function(){return E().secondaryButton}},{buttonViewModel:function(R){return _.e("div",{class:"ytEduCardViewModelSecondaryButton"},_.e(_.yB,{data:R.data}))}})))}))},"Qc"),"yt-edu-card-view-model",{props:{data:_.Nq}});var Onj=new _.QE("RICH_GRID_VIDEO_RENDERER_TOKEN");_.qi(_.f(function(k){var E=k.data;var S=k.showYtInteractionInContent;var R=function(){return!!E().selectableFeedback};
k=_.n(_.yg(!1,void 0,"qxtgaf"));var V=k.next().value,N=k.next().value;_.b$(function(){var P=_.W(E().primaryButton,_.QK);(P==null?0:P.isToggled)&&N(P.isToggled)});
k=_.RZ(function(P){if(!R())return!1;if(V()){var B;var F=(B=E().selectableFeedback)==null?void 0:B.onDeselect}else{var K;F=(K=E().selectableFeedback)==null?void 0:K.onSelect}F&&_.AV(F,{form:{element:P.target}});N(!V());if(P=_.W(E().primaryButton,_.QK))P.isToggled=V();return!1});
var h=function(){if(!R()){var P,B=(P=E().loggingDirectives)==null?void 0:P.trackingParams;B&&_.FE(_.en().resolve(_.fG),B)}},J=_.vSl(),m=function(){var P;
return R()?(P=E().selectableFeedback)==null?void 0:P.a11yLabel:void 0},a=function(){return R()?{toggled:V()}:{}},T=_.en().resolve(_.mz(Onj)),w={};
return _.e("yt-feedback-item-renderer",{class:_.SQ("ytFeedbackItemRendererHost",(w.ytFeedbackItemRendererSelectableFeedback=R,w)),"on:click":k,"on:keydown":J,title:m,"aria-label":m,"aria-pressed":function(){return R()?V():void 0},
tabindex:function(){return R()?0:void 0},
role:function(){return R()?"button":void 0}},_.e("div",{class:"ytFeedbackItemRendererContentContainer"},_.e(_.cp,{data:function(){return E().content}},{videoRenderer:function(P){return _.e(T,{data:P.data,
showYtInteraction:S})},
lockupViewModel:function(P){return _.e(_.y5,{data:P.data,containerType:2})}})),_.e("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.e(_.cp,{data:function(){return E().primaryButton}},{toggleButtonViewModel:function(P){return _.e(_.bL,{data:P.data,
buttonShapeOverrides:a,disableExplicitClickLogging:!0,onToggle:h})}})))},"Rc"),"yt-feedback-item-renderer",{props:{data:_.Nq,
showYtInteractionInContent:_.Nq}});var MW=function(){var k=_.p.apply(this,arguments)||this;k.isShortsGrid=!1;k.isCompactGrid=!1;k.isShortsPanelGrid=!1;k.renderedFromRichGrid=!1;k.isInFirstColumn=!1;k.noGutterMargins=!1;k.noBottomMargin=!1;k.halfBottomMargin=!1;k.isInlineGroupItem=!1;k.insetMetadata=!1;k.noBottomMarginInAds=!0;k.force16By9ThumbnailAspectRatio=!1;k.useCompactList=!1;k.containerType=2;k.thumbnailTargetWidth=9999;k.isResponsiveGrid=!1;k.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};k.hoverListener=
k.hover.bind(k);k.leaveListener=k.leave.bind(k);k.highlighted=!1;k.JSC$16306_unsubscribeFromInlinePreviewIsActive=function(){};
return k};
_.y(MW,_.p);_.I=MW.prototype;_.I.computeContainerType=function(){return this.useCompactList?3:2};
_.I.itemWidthChanged=function(){var k;this.thumbnailTargetWidth=(k=this.itemWidth)!=null?k:9999};
_.I.updateIsInFirstColumn=function(){var k;this.isInFirstColumn=((k=this.data)==null?void 0:k.colIndex)===0};
_.I.observerContainerType=function(){if(this.lockup){var k=this.lockup;k.containerType=this.containerType;k.sizing=this.sizing;k.typographyBump=this.typographyBump;k.itemWidth=this.itemWidth}this.richGridMedia&&_.Y("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.Y("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.I.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",eduCardViewModel:"yt-edu-card-view-model",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]]"}}}}}};
_.I.leave=function(k){k=k.relatedTarget;var E=document.querySelector("ytd-video-preview");k&&E&&_.kT(E).contains(k)||this.removeAndCleanupHighlight()};
_.I.hover=function(){var k;!this.highlighted&&(k=this.data)!=null&&k.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(k=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:k,boxShadow:"0 0 0 10px "+k})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.I.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};
_.I.registerHoverHighlightListeners=function(){var k=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16306_unsubscribeFromInlinePreviewIsActive=_.Hq(_.vo(),_.ArI,function(E){k.highlighted&&!E&&k.removeAndCleanupHighlight()})};
_.I.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16306_unsubscribeFromInlinePreviewIsActive()};
_.I.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.I.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.I.getBackgroundColor=function(){var k,E,S=(k=this.data)==null?void 0:(E=k.onFocusEffect)==null?void 0:E.onFocusColor;if(S){if(document.documentElement.hasAttribute("dark")&&(S==null?0:S.darkTheme))return Ag(S==null?void 0:S.darkTheme);if(S==null?0:S.lightTheme)return Ag(S==null?void 0:S.lightTheme)}};
_.I.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var k=_.Fe(),E,S,R;k&&((E=this.data)==null?0:E.trackingParams)&&((S=this.data)==null?void 0:S.colIndex)!=null&&((R=this.data)==null?void 0:R.rowIndex)!=null&&_.fz(k,_.tV(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.I.isSlimMediaRenderer=function(k){return!!_.W(k==null?void 0:k.content,_.eVT)||!!_.W(k==null?void 0:k.content,m5d)||!!_.W(k==null?void 0:k.content,_.Zr)||!!_.W(k==null?void 0:k.content,LyC)};
_.I.isPostRenderer=function(){var k,E;return!!_.W((k=this.data)==null?void 0:k.content,Afd)||!!_.W((E=this.data)==null?void 0:E.content,rf4)};
_.I.computeIsGameCardShelf=function(){var k;return!!_.W((k=this.data)==null?void 0:k.content,soY)};
_.I.computeIsMiniGameCardShelf=function(){var k,E;return!!_.W((k=this.data)==null?void 0:k.content,NZC)||!!_.W((E=this.data)==null?void 0:E.content,IrY)};
_.I.computeIsTeaserCard=function(){var k;return!!_.W((k=this.data)==null?void 0:k.content,IrY)};
_.I.computeIsSelectableFeedbackItem=function(){var k,E;return!((E=_.W((k=this.data)==null?void 0:k.content,iKT))==null||!E.selectableFeedback)};
_.I.computeContainsLumierePosters=function(){var k,E;return((E=_.W((k=this.data)==null?void 0:k.content,bYY))==null?void 0:E.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.I.computeIsExpandOnHoverCardShelf=function(){var k;return!!_.W((k=this.data)==null?void 0:k.content,vtC)};
_.I.computeIsLinkCardShelf=function(){var k;return!!_.W((k=this.data)==null?void 0:k.content,zbY)};
_.I.computeIsReelItemStyleAvatarCircle=function(k){var E;return((E=_.W(k==null?void 0:k.content,_.Zr))==null?void 0:E.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.I.computeIsLinkCardFullWidth=function(k,E){var S;return((S=_.W(k==null?void 0:k.content,zbY))==null?void 0:S.useFullWidth)||E<=2};
_.mt.Object.defineProperties(MW.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var k;return _.Y("web_hover_effect_refactor")&&_.W((k=this.data)==null?void 0:k.content,_.C6T)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.Y("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var k;if(_.Y("web_hover_effect_refactor")&&_.W((k=this.data)==null?void 0:k.content,_.C6T))return!1;var E;return!((E=this.data)==null||!E.onFocusEffect)||_.Y("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 k;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.Y("web_hover_effect_refactor")?(k=this.data)==null?void 0:k.onFocusEffect:void 0}}}});
MW.prototype.richGridHoverHighlightChanged=MW.prototype.richGridHoverHighlightChanged;MW.prototype.observerContainerType=MW.prototype.observerContainerType;MW.prototype.updateIsInFirstColumn=MW.prototype.updateIsInFirstColumn;MW.prototype.itemWidthChanged=MW.prototype.itemWidthChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],MW.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],MW.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],MW.prototype,"ytdLockupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],MW.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.l("design:type",Boolean)],MW.prototype,"isPost",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.l("design:type",Boolean)],MW.prototype,"containsLumierePosters",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.l("design:type",Boolean)],MW.prototype,"isSlimMedia",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.l("design:type",Boolean)],MW.prototype,"isGameCardShelf",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.l("design:type",Boolean)],MW.prototype,"isMiniGameCardShelf",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.l("design:type",Boolean)],MW.prototype,"isTeaserCard",void 0);_.Z([_.H({computed:"computeIsSelectableFeedbackItem(data)"}),_.l("design:type",Boolean)],MW.prototype,"isSelectableFeedbackItem",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"isShortsGrid",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],MW.prototype,"isSlimGrid",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"isCompactGrid",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"isShortsPanelGrid",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.l("design:type",Boolean)],MW.prototype,"isExpandOnHoverCardShelf",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.l("design:type",Boolean)],MW.prototype,"isLinkCardShelf",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Wo,value:3}),_.l("design:type",Number)],MW.prototype,"itemsPerRow",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"renderedFromRichGrid",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"isInFirstColumn",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"noGutterMargins",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"noBottomMargin",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"halfBottomMargin",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"isInlineGroupItem",void 0);_.Z([_.H(),_.l("design:type",Object)],MW.prototype,"insetMetadata",void 0);_.Z([_.H(),_.l("design:type",Object)],MW.prototype,"noBottomMarginInAds",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],MW.prototype,"isShelfItem",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.l("design:type",Boolean)],MW.prototype,"isReelItemStyleAvatarCircle",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.l("design:type",Boolean)],MW.prototype,"isLinkCardFullWidth",void 0);_.Z([_.H(),_.l("design:type",Object)],MW.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"useCompactList",void 0);_.Z([_.H(),_.l("design:type",String)],MW.prototype,"sizing",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],MW.prototype,"typographyBump",void 0);_.Z([_.H(),_.l("design:type",Number)],MW.prototype,"itemWidth",void 0);_.Z([_.H(),_.l("design:type",Boolean)],MW.prototype,"isHomeShelf",void 0);_.Z([_.H(),_.l("design:type",Boolean)],MW.prototype,"isHomeGrid",void 0);
_.Z([_.JO("yt-lockup-view-model"),_.l("design:type",HTMLElement)],MW.prototype,"lockup",void 0);_.Z([_.JO("ytd-rich-grid-media"),_.l("design:type",HTMLElement)],MW.prototype,"richGridMedia",void 0);_.Z([_.JO("ytd-ad-slot-renderer"),_.l("design:type",HTMLElement)],MW.prototype,"adSlotRenderer",void 0);_.Z([_.H({computed:"computeContainerType(useCompactList)"}),_.l("design:type",Object)],MW.prototype,"containerType",void 0);_.Z([_.H(),_.l("design:type",Object)],MW.prototype,"thumbnailTargetWidth",void 0);
_.Z([_.U("showYtInteractionOnRichItem"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MW.prototype,"showYtInteractionOnRichGridMedia",null);_.Z([_.U("isSelectableFeedbackItem","richGridHoverHighlight"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MW.prototype,"showYtInteractionOnRichItem",null);_.Z([_.U("typographyBump","isHomeGrid"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MW.prototype,"richTypographyBump",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data","isShortsGrid","isCompactGrid"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],MW.prototype,"richGridHoverHighlight",null);_.Z([_.U("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.l("design:type",Number),_.l("design:paramtypes",[])],MW.prototype,"shortsLockupViewModelAspectRatio",null);_.Z([_.U("isInlineGroupItem"),_.l("design:type",Number),_.l("design:paramtypes",[])],MW.prototype,"shortsLockupViewModelScrimStyle",null);
_.Z([_.il("itemWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MW.prototype,"itemWidthChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MW.prototype,"updateIsInFirstColumn",null);_.Z([_.il("containerType","sizing","typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MW.prototype,"observerContainerType",null);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MW.prototype,"isResponsiveGrid",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],MW.prototype,"lockupExperiments",null);_.Z([_.il("richGridHoverHighlight"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MW.prototype,"richGridHoverHighlightChanged",null);_.Z([_.D({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],MW);
_.GqA=_.O_()(MW,"ytd-rich-item-renderer",function(){if(DRz===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);DRz=k}k=DRz;return k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var ODC={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var Jie=_.DE(_.Vi("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Cze={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},EQi={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},SK1={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var CH8;var qW=function(){var k=_.p.apply(this,arguments)||this;k.useResponsiveGrid=!1;k.hidden=!1;k.isShowMoreHidden=!1;k.isShowLessHidden=!0;k.hasExpansionButton=!1;k.isInnerShelf=!1;k.allVideosCount=0;k.allPlaylistCount=0;k.haveSmartDownloadsCompleted=!1;k.restrictContentsOverflow=!1;k.firstShownIndex=0;k.horizontalOffset=0;k.atEnd=!0;k.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
k.nextClick=function(){var E;(E=k.data)!=null&&E.contents&&(k.firstShownIndex+=k.currentElementsPerRow,k.updateHorizontalOffset(),k.updateHorizontalItemVisibility())};
k.previousClick=function(){var E;(E=k.data)!=null&&E.contents&&(k.firstShownIndex-=k.currentElementsPerRow,k.updateHorizontalOffset(),k.updateHorizontalItemVisibility())};
return k};
_.y(qW,_.p);_.I=qW.prototype;
_.I.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:_.Mg("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.I.attached=function(){this.requestElementsPerRow()};
_.I.refreshGridLayoutNew=function(){var k;if((k=this.data)!=null&&k.contents&&this.containerWidth){var E;((E=this.data.responsiveContainerConfiguration)==null?0:E.responsiveSize)?(k=_.eLm(this.data.responsiveContainerConfiguration,this.containerWidth),k=_.Uf(Object.assign({},k,{standardUnitMinWidth:this.standardUnitMinWidth}))):k=_.Uf({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=k.typographyBump;if(this.elementsPerRow!==
k.numItems||this.gutter!==k.gutter)this.elementsPerRow=k.numItems,this.gutter=k.gutter,this.itemWidth=k.itemWidth,_.VO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":k.gutter+"px"})}};
_.I.computeSizing=function(){if(!this.isLumiere){var k=_.Lmi(this.data);return k?k:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.I.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.I.computeButton=function(k){var E=_.W(k,_.dZ);k=Object.assign({},_.W(k,_.dZ));return E?(k.text||(k.text={simpleText:k.tooltip}),k.style="STYLE_MONO_OUTLINE",k.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",k):E};
_.I.onRowIndexChange=function(){var k=_.Fe(),E,S;((E=this.data)==null?0:E.trackingParams)&&((S=this.data)==null?void 0:S.rowIndex)!=null&&k&&_.fz(k,_.tV(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.I.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var k,E=((k=this.getRichItemRenderers()[0])==null?void 0:k.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*E;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.I.requestElementsPerRow=function(){_.Me(this.hostElement,"yt-request-elements-per-row")};
_.I.onUpdateElementsPerRowAction=function(k,E,S,R,V,N){if(this.containerWidth!==N&&(this.containerWidth=N,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&k&&E&&S&&R&&V&&(this.elementsPerRow!==k||this.postsPerRow!==E||this.slimItemsPerRow!==S||this.gameCardsPerRow!==R||this.miniGameCardsPerRow!==V)&&(this.elementsPerRow=k,this.postsPerRow=E,this.slimItemsPerRow=S,this.gameCardsPerRow=R,this.miniGameCardsPerRow=V,this.updateItemVisibility())};
_.I.isExpandedChanged=function(){var k=this.getRichItemRenderers(),E=this.isExpanded;k.forEach(function(S){S.halfBottomMargin=E})};
_.I.isCollapsedChanged=function(){var k=this.getRichItemRenderers(),E=this.isCollapsed;k.forEach(function(S){S.noBottomMargin=E})};
_.I.getRichItemRenderers=function(){return _.Cc(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.I.updateItemVisibility=function(){var k=this;if(this.data&&this.data.contents){var E=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(R,V){var N;((N=k.data)==null?0:N.isExpanded)?(R.hidden=V>E-1,R.ytRendererBehavior.markDirty()):R.hidden=V>k.currentElementsPerRow-1||V>E-1});
var S=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||S||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||S||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.I.setHeightToSingleRow=function(){var k=this.getRichItemRenderers(),E=Number.parseInt(getComputedStyle(k[0]).marginBottom,10)||0;k=k.slice(0,this.currentElementsPerRow).reduce(function(S,R){return Math.max(S,R.getBoundingClientRect().height+E)},0);
this.contents.style.height=k+"px"};
_.I.focusNextExpandedItem=function(){var k;((k=this.data)==null?0:k.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.I.focusItem=function(k,E){var S=this.getRichItemRenderers();if(S[k]&&(k=S[k].querySelector(".focus-on-expand"))){if(E){var R;(R=S[this.currentElementsPerRow])==null||R.scrollIntoView({behavior:"smooth",block:"center"})}k.focus({preventScroll:!0})}};
_.I.onDataChange=function(){var k=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var E;if((E=this.data)==null?0:E.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.JB(this,function(){k.updateItemVisibility()});
var S;if((S=this.data)==null?0:S.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.VO(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),E=0;E<this.data.contents.length;E++)S=_.W(this.data.contents[E],_.U6)||{},S.colIndex=E,S.rowIndex=this.data.rowIndex};
_.I.handleRerenderDownloadsData=function(){_.Y("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())};
_.I.blockInlinePreview=function(k){var E=this,S;return _.c(function(R){(S=E.inlinePreviewIsEnabled)&&E.ytdReduxBehavior.dispatch(_.LAz(!1));return R.return(new Promise(function(V){k(function(){S&&E.ytdReduxBehavior.dispatch(_.LAz(!0));V()})}))})};
_.I.expandShelf=function(){var k=this;if(this.data){var E,S=(E=_.W(this.data.showMoreButton,_.dZ))==null?void 0:E.trackingParams;S&&_.FE(_.JV(),S);this.set("data.isExpanded",!0);this.blockInlinePreview(function(R){k.setHeightToSingleRow();k.updateItemVisibility();k.contents.style.height=k.contents.scrollHeight+"px";_.ZJ.addJob(function(){k.contents.style.height="auto";k.focusNextExpandedItem();R()},2,200)})}};
_.I.collapseShelf=function(){var k=this;return _.c(function(E){if(E.nextAddress==1){if(!k.data)return E.return();k.set("data.isExpanded",!1);return E.yield(k.blockInlinePreview(function(S){k.contents.style.height=k.contents.scrollHeight+"px";k.setHeightToSingleRow();_.ZJ.addJob(function(){k.updateItemVisibility();k.contents.style.height="auto";S()},2,200)}),2)}_.Me(k.hostElement,"yt-rich-shelf-renderer-collapse",k.data.trackingParams);
k.focusItem(0,!1);_.KR(E)})};
_.I.updateArrowButtonStatus=function(){this.getRichItemRenderers();var k,E;var S=((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=S};
_.I.onChildElementFocus=function(k){this.hasChevronButtons&&(k=k.target.closest("#contents > *"),this.contents.contains(k)&&(k.offsetLeft<this.horizontalOffset?this.previousClick():k.offsetLeft+k.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.I.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Mg("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.I.updateHorizontalOffset=function(){var k=this.getRichItemRenderers(),E,S;var R=((E=this.data)==null?void 0:(S=E.contents)==null?void 0:S.length)||0;var V;k=((V=k[0])==null?void 0:V.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>R?this.firstShownIndex=R-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*k};
_.I.isSlimMediaShelfRenderer=function(){var k,E,S,R=(S=_.W((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E[0],_.U6))==null?void 0:S.content;return!!(_.W(R,_.eVT)||_.W(R,m5d)||_.W(R,_.Zr)||_.W(R,LyC))};
_.I.isGameCardShelf=function(){var k,E,S,R=(S=_.W((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E[0],_.U6))==null?void 0:S.content;return!!_.W(R,soY)};
_.I.isMiniGameCardShelf=function(){var k,E,S,R=(S=_.W((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E[0],_.U6))==null?void 0:S.content;return!!_.W(R,NZC)||!!_.W(R,IrY)};
_.I.hasGameBoxArtAvatarStyle=function(){var k;return((k=this.data)==null?void 0:k.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.I.hasRoundedGameBoxArtAvatarStyle=function(){var k;return((k=this.data)==null?void 0:k.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.I.isShortsShelf=function(){var k,E,S,R=(S=_.W((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E[0],_.U6))==null?void 0:S.content;return!!_.W(R,_.Zr)||!!_.W(R,LyC)};
_.I.isPostShelfRenderer=function(){var k,E,S,R=(S=_.W((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E[0],_.U6))==null?void 0:S.content;return!(!_.W(R,Afd)&&!_.W(R,rf4))};
_.I.isLumiereShelf=function(){var k,E,S=_.W((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E[0],_.U6);return!!_.W(S==null?void 0:S.content,bYY)};
_.I.isLumiereShelfWithPosters=function(){var k,E,S=_.W((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E[0],_.U6),R;return((R=_.W(S==null?void 0:S.content,bYY))==null?void 0:R.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.I.isExpandOnHoverCardShelf=function(){var k,E,S,R=(S=_.W((k=this.data)==null?void 0:(E=k.contents)==null?void 0:E[0],_.U6))==null?void 0:S.content;return!!_.W(R,vtC)};
_.I.computeHasFeaturedBadge=function(){var k,E,S=_.W((k=this.data)==null?void 0:(E=k.badges)==null?void 0:E[0],_.nDd);return S?S.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.I.computeHasPaygatedFeaturedBadge=function(){var k,E,S=_.W((k=this.data)==null?void 0:(E=k.badges)==null?void 0:E[0],_.nDd);return S?(S==null?void 0:S.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.I.computeHeaderHidden=function(){var k,E,S,R,V,N;return!((k=this.data)==null?0:k.icon)&&!((E=this.data)==null?0:E.title)&&!((S=this.data)==null?0:S.subtitle)&&!((R=this.data)==null?0:R.thumbnail)&&!((V=this.data)==null?0:V.badges)&&!((N=this.data)==null?0:N.menu)};
_.I.showCtaButton=function(){var k;return!((k=this.data)==null||!k.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.I.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.I.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.I.computeForce16By9ThumbnailAspectRatio=function(){var k,E;return((k=this.data)==null?void 0:(E=k.responsiveContainerConfiguration)==null?void 0:E.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.I.onSectionReactiveDismissal=function(k,E,S){var R,V;var N=(R=this.data)==null?void 0:(V=R.targetingContext)==null?void 0:V.targetGroupId;this&&N&&E.targetGroupId&&N.includes(E.targetGroupId)?(R=this.rowIndex,k=R===void 0?!1:!(E.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&R<=k)):k=!1;k&&(this.hidden=S)};
_.mt.Object.defineProperties(qW.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null?0:k.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var k=this.elementsPerRow;this.isPostShelfRenderer()?k=this.postsPerRow:this.isSlimMediaShelfRenderer()?k=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?k=this.slimItemsPerRow-1:this.isGameCardShelf()?k=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(k=this.miniGameCardsPerRow);return k}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.Y("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null?0:k.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var k,E;return!((k=this.data)==null||!k.previousButton)&&!((E=this.data)==null||!E.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 k;return((k=_.en().resolve(_.ZD).getCurrentPage())==null?void 0:k.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R;return!((k=this.data)==null?0:(E=k.thumbnail)==null?0:(S=E.accessibility)==null?0:(R=S.accessibilityData)==null?0:R.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
qW.prototype.onChildElementFocus=qW.prototype.onChildElementFocus;qW.prototype.handleRerenderDownloadsData=qW.prototype.handleRerenderDownloadsData;qW.prototype.onDataChange=qW.prototype.onDataChange;qW.prototype.isCollapsedChanged=qW.prototype.isCollapsedChanged;qW.prototype.isExpandedChanged=qW.prototype.isExpandedChanged;qW.prototype.onRowIndexChange=qW.prototype.onRowIndexChange;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],qW.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],qW.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],qW.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],qW.prototype,"ytdReduxBehavior",void 0);
_.Z([_.H({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.l("design:type",Object)],qW.prototype,"useResponsiveGrid",void 0);_.Z([_.H(),_.l("design:type",Object)],qW.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],qW.prototype,"standardUnitMinWidth",void 0);_.Z([_.H({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],qW.prototype,"elementsPerRow",void 0);_.Z([_.H({value:3}),_.l("design:type",Number)],qW.prototype,"postsPerRow",void 0);
_.Z([_.H({value:6}),_.l("design:type",Number)],qW.prototype,"slimItemsPerRow",void 0);_.Z([_.H({value:6}),_.l("design:type",Number)],qW.prototype,"gameCardsPerRow",void 0);_.Z([_.H({value:6}),_.l("design:type",Number)],qW.prototype,"miniGameCardsPerRow",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qW.prototype,"hidden",void 0);_.Z([_.H(),_.l("design:type",Object)],qW.prototype,"isShowMoreHidden",void 0);
_.Z([_.H(),_.l("design:type",Object)],qW.prototype,"isShowLessHidden",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qW.prototype,"hasExpansionButton",void 0);_.Z([_.U("data.isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qW.prototype,"isExpanded",null);_.Z([_.U("data.isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qW.prototype,"isCollapsed",null);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qW.prototype,"isInnerShelf",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.l("design:type",Boolean)],qW.prototype,"isShorts",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.l("design:type",Boolean)],qW.prototype,"isLumiere",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.l("design:type",Boolean)],qW.prototype,"hasBoxArtThumbnailStyle",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.l("design:type",Boolean)],qW.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.l("design:type",Boolean)],qW.prototype,"hasFeaturedBadge",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.l("design:type",Boolean)],qW.prototype,"hasPaygatedFeaturedBadge",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.l("design:type",Boolean)],qW.prototype,"isHeaderHidden",void 0);_.Z([_.H({selector:_.Dq1}),_.l("design:type",Object)],qW.prototype,"allVideosCount",void 0);_.Z([_.H({selector:mu1}),_.l("design:type",Object)],qW.prototype,"allPlaylistCount",void 0);_.Z([_.H({selector:qNe}),_.l("design:type",Object)],qW.prototype,"haveSmartDownloadsCompleted",void 0);
_.Z([_.H({selectorArgs:["entitySelectorType"],selector:function(k,E){if(_.Y("kevlar_modern_downloads_page")&&E&&E!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var S=k.entities;switch(E){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":E=_.w8(S);k=Sj(E);var R=_.co(E);S=_.Bo(S);S=_.lD(Vej(R,S,E.length));return{contents:k,subtitle:S};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return S=_.w8(S),{contents:Sj(S)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return S=
_.Po(S),{contents:Sj(S)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return S=_.aYC(S),{contents:Sj(S)};default:_.dg(new _.LC("Error: entitySelectorType defined but not matched in selector.",k,E))}}}}),
_.l("design:type",Object)],qW.prototype,"entityDrivenRichShelfData",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.l("design:type",Boolean)],qW.prototype,"hasTopCtaButton",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.l("design:type",Boolean)],qW.prototype,"hasBottomCtaButton",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.l("design:type",Boolean)],qW.prototype,"force16By9ThumbnailAspectRatio",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qW.prototype,"restrictContentsOverflow",void 0);_.Z([_.H({selector:_.rre}),_.l("design:type",Boolean)],qW.prototype,"inlinePreviewIsEnabled",void 0);_.Z([_.H({computed:"computeSizing(data)"}),_.l("design:type",String)],qW.prototype,"sizing",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],qW.prototype,"typographyBump",void 0);_.Z([_.H(),_.l("design:type",Number)],qW.prototype,"itemWidth",void 0);_.Z([_.H(),_.l("design:type",Object)],qW.prototype,"firstShownIndex",void 0);_.Z([_.H(),_.l("design:type",Object)],qW.prototype,"horizontalOffset",void 0);_.Z([_.H(),_.l("design:type",Object)],qW.prototype,"atEnd",void 0);_.Z([_.JO("#contents"),_.l("design:type",HTMLElement)],qW.prototype,"contents",void 0);
_.Z([_.il("data.rowIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qW.prototype,"onRowIndexChange",null);_.Z([_.il("isExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qW.prototype,"isExpandedChanged",null);_.Z([_.il("isCollapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qW.prototype,"isCollapsedChanged",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qW.prototype,"onDataChange",null);_.Z([_.il("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qW.prototype,"handleRerenderDownloadsData",null);_.Z([_.nv("focusin"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],qW.prototype,"onChildElementFocus",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data","isHomePage"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qW.prototype,"isTruncated",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qW.prototype,"showBottomDivider",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],qW.prototype,"hasChevronButtons",null);
_.Z([_.U("firstShownIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],qW.prototype,"previousButtonOverride",null);_.Z([_.U("atEnd"),_.l("design:type",Object),_.l("design:paramtypes",[])],qW.prototype,"nextButtonOverride",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qW.prototype,"isHomePage",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qW.prototype,"thumbnailAriaHidden",null);
_.Z([_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],qW.prototype,"entitySelectorType",null);_.Z([_.D({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],qW);
_.k0d=_.O_()(qW,"ytd-rich-shelf-renderer",function(){if(CH8===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);CH8=k}k=CH8;return k},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var EwY;_.qi(_.t7,"yt-badge-view-model",{props:{data:_.Nq,class:_.Nq,workaroundShortsIsThumbnailBadge:_.Nq,modern:_.Nq}});_.qi(UL2,"yt-slimline-survey-view-model",{props:{data:_.Nq}});var zO=function(){var k=_.p.apply(this,arguments)||this;k.tileLottieAnimationRef={};k.backgroundLottieAnimationRef={};k.isOnHoverBehaviorForLottieEnabled=!0;k.useBiggerShowcaseImage=_.Y("enable_desktop_search_bigger_thumbs");k.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return k};
_.y(zO,_.p);_.I=zO.prototype;_.I.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.I.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"}}}};
_.I.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var k=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);k!==this.hasTile&&this.set("hasTile",k);k=this.hasLogo(this.data)||!!this.data.badgeText;k!==this.hasMetadata&&this.set("hasMetadata",k);k=this.data.overflowButton?!1:k;k!==this.showLogoImage&&this.set("showLogoImage",k);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.I.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.I.currentColorChanged=function(){this.updateButtonPalette()};
_.I.computeBackgroundStyle=function(k){if(k&&this.data){var E=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var S=_.Q_((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);S&&E.push('background-image: url("'+S+'");')}var R;((R=k.basicColorData)==null?void 0:R.backgroundColor)!==void 0&&E.push("background-color: "+_.Kc(k.basicColorData.backgroundColor)+";");return E.join("")}};
_.I.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&this.set("isDarkTheme",k)};
_.I.getCurrentLogo=function(k,E){if(k)return E?k.darkLogoImage:k.lightLogoImage};
_.I.getCurrentStaticTileImage=function(k,E){if(this.hasStaticTile(k))return k.darkTileImage?E?k.darkTileImage:k.tileImage:k.tileImage};
_.I.computeTitleStyle=function(k){if(this.data&&this.data.title&&k&&k.basicColorData&&k.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.HT(k.basicColorData.foregroundTitleColor)+";"};
_.I.computeSubtitleStyle=function(k){if(this.data&&this.data.subtitle&&k&&k.basicColorData&&k.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.HT(k.basicColorData.foregroundBodyColor)+";"};
_.I.computeSupplementalStyle=function(k){if(this.data&&this.data.supplementalText&&k&&k.supplementalTextColor!==void 0)return k=_.HT(k.supplementalTextColor),"color:"+k+";--yt-endpoint-color:"+k+";--yt-endpoint-hover-color:"+k+";--yt-endpoint-visited-color:"+k+";--yt-formatted-string-bold-font-weight:700;"};
_.I.computeDismissIconStyle=function(k){var E,S;if((k==null?0:(E=k.dismissButtonColorData)==null?0:E.foregroundTitleColor)&&(k==null?0:(S=k.dismissButtonColorData)==null?0:S.backgroundColor))return"--yt-button-color:"+_.Kc(k.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Kc(k.dismissButtonColorData.backgroundColor)+";"};
_.I.computeOverflowIconStyle=function(k){var E,S;if((k==null?0:(E=k.dismissButtonColorData)==null?0:E.foregroundTitleColor)&&(k==null?0:(S=k.dismissButtonColorData)==null?0:S.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Kc(k.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Kc(k.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Kc(k.dismissButtonColorData.foregroundTitleColor)+";"};
_.I.computeBannerStyle=function(k){return k?k.toLowerCase().replace(/_/g,"-"):""};
_.I.computeLocation=function(k){switch(k==null?void 0:k.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.I.shouldShowTileSection=function(k,E,S){return!this.shouldExpandLogo(k,E,S)&&E};
_.I.shouldShowExpandedLogoSection=function(k,E,S){return this.shouldExpandLogo(k,E,S)&&k!==void 0&&this.hasLogo(k)};
_.I.shouldExpandLogo=function(k,E,S){return k&&E?!1:S>=2};
_.I.hasStaticTile=function(k){return!(k==null||!k.tileImage)};
_.I.hasTileLottie=function(k){var E;return!!(k==null?0:(E=k.tileLottie)==null?0:E.url)};
_.I.hasLogo=function(k){return this.getCurrentLogo(k,this.isDarkTheme)!==void 0};
_.I.getLogoHeight=function(k){return this.logoWithPadding(k)?"26":"20"};
_.I.getExpandedLogoHeight=function(k){return this.logoWithPadding(k)?"31":"24"};
_.I.getLogoImageId=function(k){return this.logoWithPadding(k)?"logo-image-with-padding":"logo-image"};
_.I.getMaxTitleFontSize=function(k){return k.overrideTitleMaxFontSize?String(k.overrideTitleMaxFontSize):"36"};
_.I.hasBackgroundLottie=function(k){var E;return!!(k==null?0:(E=k.backgroundLottie)==null?0:E.url)};
_.I.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var k,E;(k=this.tileLottieAnimationRef)==null||(E=k.lottieEl)==null||E.play();var S,R;(S=this.backgroundLottieAnimationRef)==null||(R=S.lottieEl)==null||R.play()}};
_.I.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var k,E;(k=this.tileLottieAnimationRef)==null||(E=k.lottieEl)==null||E.pause();var S,R;(S=this.backgroundLottieAnimationRef)==null||(R=S.lottieEl)==null||R.pause()}};
_.I.pauseLottie=function(){var k,E;(k=this.tileLottieAnimationRef)==null||(E=k.lottieEl)==null||E.pause();var S,R;(S=this.backgroundLottieAnimationRef)==null||(R=S.lottieEl)==null||R.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.I.performPrimaryButtonAction=function(){var k,E,S;((k=this.data)==null?0:(E=k.primaryButton)==null?0:(S=E.buttonRenderer)==null?0:S.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.I.requestElementsPerRow=function(){_.Me(this.hostElement,"yt-request-elements-per-row")};
_.I.updateButtonPalette=function(){if(this.data&&this.currentColorData){var k;((k=this.data.dismissButton)==null?0:k.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 E;if((E=this.data.primaryButton)==null?0:E.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 S;if((S=this.data.secondaryButton)==
null?0:S.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 R;((R=this.data.primaryButton)==null?0:R.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var V;((V=this.data.secondaryButton)==null?0:V.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var N;((N=this.data.primaryButton)==null?0:N.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.I.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var k=this.getTileLottieDataBasedOnTheme(),E,S;if(k.url!==((E=this.tileLottiePlayerProps)==null?void 0:(S=E.animationConfig)==null?void 0:S.path)){var R,V;(R=this.tileLottieAnimationRef)==null||(V=R.lottieEl)==null||V.destroy();var N;this.isOnHoverBehaviorForLottieEnabled=!((N=k.settings)==null?0:N.autoplay);var h,J;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(J=(h=k.settings)==null?void 0:h.autoplay)!=null?J:!1,loop:this.getLottieLoopValue(k.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof k.url==="string"?this.tileLottiePlayerProps.animationConfig.path=k.url:this.tileLottiePlayerProps.animationConfig.animationData=k.url}}};
_.I.getOverflowButton=function(k){return _.W(k.overflowButton,vB2)};
_.I.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var k=this.getBackgroundLottieDataBasedOnTheme(),E,S;if(k.url!==((E=this.backgroundLottiePlayerProps)==null?void 0:(S=E.animationConfig)==null?void 0:S.path)){var R,V;(R=this.backgroundLottieAnimationRef)==null||(V=R.lottieEl)==null||V.destroy();var N;this.isOnHoverBehaviorForLottieEnabled=!((N=k.settings)==null?0:N.autoplay);var h,J;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(J=(h=k.settings)==null?void 0:h.autoplay)!=null?J:!1,loop:this.getLottieLoopValue(k.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof k.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=k.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
k.url}}};
_.I.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var k;((k=this.tileLottieAnimationRef)==null?void 0:k.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var E;((E=this.backgroundLottieAnimationRef)==null?void 0:E.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.I.getTileLottieDataBasedOnTheme=function(){var k;if(this.isDarkTheme&&((k=this.data)==null?0:k.darkThemeTileLottie))return this.data.darkThemeTileLottie;var E;return((E=this.data)==null?0:E.tileLottie)?this.data.tileLottie:{}};
_.I.getBackgroundLottieDataBasedOnTheme=function(){var k;if(this.isDarkTheme&&((k=this.data)==null?0:k.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var E;return((E=this.data)==null?0:E.backgroundLottie)?this.data.backgroundLottie:{}};
_.I.onUpdateElementsPerRowAction=function(k){k&&this.elementsPerRow!==k&&(this.elementsPerRow=k)};
_.I.getLottieLoopValue=function(k){return k?k.loop!==void 0?k.loop:k.loopCount?k.loopCount-1:!0:!0};
_.I.logoWithPadding=function(k){var E,S,R;return(k=(E=this.getCurrentLogo(k,this.isDarkTheme))==null?void 0:(S=E.thumbnails)==null?void 0:(R=S[0])==null?void 0:R.height)&&k%31===0?!0:!1};
zO.prototype.currentColorChanged=zO.prototype.currentColorChanged;zO.prototype.themeChanged=zO.prototype.themeChanged;zO.prototype.dataChanged=zO.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],zO.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],zO.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],zO.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],zO.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],zO.prototype,"primaryButton",void 0);_.Z([_.H(),_.l("design:type",Object)],zO.prototype,"secondaryButton",void 0);
_.Z([_.H({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],zO.prototype,"elementsPerRow",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],zO.prototype,"isDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],zO.prototype,"hasTile",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],zO.prototype,"hasMetadata",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],zO.prototype,"showLogoImage",void 0);_.Z([_.H(),_.l("design:type",Object)],zO.prototype,"currentColorData",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.l("design:type",String)],zO.prototype,"bannerStyle",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.l("design:type",String)],zO.prototype,"location",void 0);
_.Z([_.H(),_.l("design:type",Object)],zO.prototype,"tileLottiePlayerProps",void 0);_.Z([_.H(),_.l("design:type",Object)],zO.prototype,"tileLottieAnimationRef",void 0);_.Z([_.H(),_.l("design:type",Object)],zO.prototype,"backgroundLottiePlayerProps",void 0);_.Z([_.H(),_.l("design:type",Object)],zO.prototype,"backgroundLottieAnimationRef",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],zO.prototype,"useBiggerShowcaseImage",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],zO.prototype,"isHideEnclosingAction",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zO.prototype,"dataChanged",null);_.Z([_.ac("isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zO.prototype,"themeChanged",null);
_.Z([_.ac("currentColorData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zO.prototype,"currentColorChanged",null);_.Z([_.D({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],zO);
_.b(zO,"ytd-statement-banner-renderer",function(){if(EwY!==void 0)return EwY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return EwY=k},{mode:1});var SdY;var Q8=function(){var k=_.p.apply(this,arguments)||this;k.isSearch=!1;k.hideShelfHeader=!1;k.engagementPanel=!1;k.disableMouseScroll=!0;k.useFloorScrolling=!0;return k};
_.y(Q8,_.p);Q8.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Vi("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Vi("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Q8.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Q8.prototype.onDataChanged=Q8.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Q8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Q8.prototype,"isSearch",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Q8.prototype,"hideShelfHeader",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Q8.prototype,"engagementPanel",void 0);_.Z([_.H(),_.l("design:type",Object)],Q8.prototype,"disableMouseScroll",void 0);_.Z([_.H(),_.l("design:type",Object)],Q8.prototype,"useFloorScrolling",void 0);_.Z([_.H(),_.l("design:type",Object)],Q8.prototype,"data",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Q8.prototype,"onDataChanged",null);
_.Z([_.D({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Q8);
_.b(Q8,"ytd-reel-shelf-renderer",function(){if(SdY!==void 0)return SdY;var k=document.createElement("template");_.X(k,'\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="header" class="style-scope ytd-reel-shelf-renderer">\n  <div id="image-container" class="style-scope ytd-reel-shelf-renderer">\n    <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-reel-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-reel-shelf-renderer">\n    </yt-icon>\n  </div>\n  <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-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>\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return SdY=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var Rad;var VcC;VcC=_.ry(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.NLj=_.BH(VcC);var I1C=_.f(function(k){var E=k.data;k=k.useSmallFont;var S={},R={};return _.e("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.e(_.t,{cond:function(){return E().favicon},
then:function(V){return _.e(_.vM,{data:V,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.e("div",{class:"ytChannelExternalLinkViewModelContainer"},_.e(_.VB,{text:function(){return E().title},
className:_.SQ("ytChannelExternalLinkViewModelTitle",(S.ytChannelExternalLinkViewModelTitleSmallFont=k,S)),ellipsisTruncate:!0,userInput:!0}),_.e(_.VB,{text:function(){return E().link},
className:_.SQ("ytChannelExternalLinkViewModelLink",(R.ytChannelExternalLinkViewModelLinkSmallFont=k,R)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Sc");
I1C.idomCompat=!0;_.qi(I1C,"yt-channel-external-link-view-model",{props:{data:_.Nq,useSmallFont:_.Nq}});_.B9("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var OO=function(){var k=_.p.apply(this,arguments)||this;k.revealButtonClass="button";k.businessEmailDisplayState="HIDE_SECTION";return k};
_.y(OO,_.p);_.I=OO.prototype;_.I.refit=function(){var k=this;_.xT(function(){_.zR(k.hostElement,"yt-refit-popups-action")});
_.JB(this,function(){_.zR(k.hostElement,"yt-refit-popups-action")})};
_.I.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.KI(_.NLj),this.businessEmailDisplayState="CAPTCHA")};
_.I.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"};
_.I.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.I.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"}}}};
_.I.computeEmailHref=function(k){return"mailto:"+k};
_.I.computeSafeUrl=function(k){if(k)return _.ZF(k)};
_.I.linkEndpoint=function(k){return _.W(k.onTap,_.gX)};
_.I.linkEndpointToHref=function(k){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(k))};
_.I.onYtServiceRequestCompleted=function(k){var E;if((E=k.detail.data)==null?0:E.businessEmail)this.businessEmail=k.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var S;if((S=k.detail.data)==null?0:S.errorMessage)this.businessEmailErrorMessage=k.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.I.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var k=this.JSC$16420_captchaTextarea.value;if(k){k={recaptcha_response_token:k,channel_id:this.metadata.channelId};var E=_.W(this.metadata.onBusinessEmailRevealClickCommand,_.gX);E&&this.ytComponentBehavior.resolveCommand(E,{form:k})}}};
_.I.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.mt.Object.defineProperties(OO.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var k;return _.W((k=this.data)==null?void 0:k.metadata,ly2)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.W(this.metadata.businessEmailRevealButton,_.qz)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var k=new URL(this.metadata.canonicalChannelUrl);return k.host+k.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 _.W(this.metadata.learnMoreOnTap,_.gX)}}});
OO.prototype.onYtServiceRequestCompleted=OO.prototype.onYtServiceRequestCompleted;OO.prototype.businessEmailMetadataChanged=OO.prototype.businessEmailMetadataChanged;OO.prototype.refit=OO.prototype.refit;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],OO.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.JO("#g-recaptcha-response"),_.l("design:type",HTMLTextAreaElement)],OO.prototype,"JSC$16420_captchaTextarea",void 0);_.Z([_.H(),_.l("design:type",Object)],OO.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],OO.prototype,"revealButtonClass",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],OO.prototype,"metadata",null);
_.Z([_.U("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],OO.prototype,"revealButton",null);_.Z([_.U("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],OO.prototype,"channelDisplayUrl",null);_.Z([_.ac("metadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OO.prototype,"refit",null);_.Z([_.U("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],OO.prototype,"formattedDescription",null);
_.Z([_.U("metadata","learnMoreCommand"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],OO.prototype,"shouldRendereVerifiedPhoneStatus",null);_.Z([_.U("metadata"),_.l("design:type",Object),_.l("design:paramtypes",[])],OO.prototype,"learnMoreCommand",null);_.Z([_.H(),_.l("design:type",String)],OO.prototype,"businessEmailDisplayState",void 0);_.Z([_.H(),_.l("design:type",String)],OO.prototype,"businessEmail",void 0);
_.Z([_.H(),_.l("design:type",String)],OO.prototype,"businessEmailErrorMessage",void 0);_.Z([_.ac("metadata"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OO.prototype,"businessEmailMetadataChanged",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],OO.prototype,"onYtServiceRequestCompleted",null);_.Z([_.D({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],OO);
_.b(OO,"ytd-about-channel-renderer",function(){if(Rad!==void 0)return Rad;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Rad=k},{mode:1});var nwY;var GO=function(){return _.p.apply(this,arguments)||this};
_.y(GO,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],GO.prototype,"data",void 0);_.Z([_.D({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],GO);
_.b(GO,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(nwY!==void 0)return nwY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return nwY=k},{mode:1});var i8T;var Cb=function(){return _.p.apply(this,arguments)||this};
_.y(Cb,_.p);Cb.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Cb.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],Cb.prototype,"aligment",void 0);_.Z([_.D({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Cb);
_.b(Cb,"ytd-channel-list-sub-menu-renderer",function(){if(i8T!==void 0)return i8T;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return i8T=
k},{mode:1});var ha5;var kG=function(){return _.p.apply(this,arguments)||this};
_.y(kG,_.p);kG.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}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],kG.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],kG.prototype,"data",void 0);_.Z([_.D({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],kG);
_.b(kG,"ytd-channel-sub-menu-renderer",function(){if(ha5!==void 0)return ha5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ha5=k},{mode:1});var J8d;var c8d;var En=function(){var k=_.p.apply(this,arguments)||this;k.isCompact=!1;return k};
_.y(En,_.p);_.mt.Object.defineProperties(En.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var k,E;return((E=_.W((k=this.data)==null?void 0:k.endpoint,_.Oc))==null?void 0:E.target)==="TARGET_NEW_WINDOW"}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],En.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],En.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],En.prototype,"isCompact",void 0);_.Z([_.U("isCompact"),_.l("design:type",Number),_.l("design:paramtypes",[])],En.prototype,"thumbnailWidth",null);
_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],En.prototype,"openNewWindow",null);_.Z([_.D({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],En);
_.b(En,"ytd-media-lockup-renderer",function(){if(c8d!==void 0)return c8d;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return c8d=k},{mode:1});var m$d;var Sa=function(){return _.p.apply(this,arguments)||this};
_.y(Sa,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Sa.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Sa.prototype,"data",void 0);_.Z([_.D({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Sa);
_.b(Sa,"ytd-structured-description-channel-lockup-renderer",function(){if(m$d!==void 0)return m$d;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return m$d=k},{mode:1});var eaT;var R9=function(){var k=_.p.apply(this,arguments)||this;k.isCompact=!1;k.collections=_.Y("web_modern_collections_v2");k.collectionsStackColor=_.Y("modernize_structured_description_playlist_lockups_v2");return k};
_.y(R9,_.p);R9.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:_.Y("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.mt.Object.defineProperties(R9.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R,V,N;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(k=this.data)==null?void 0:(E=k.thumbnail)==null?void 0:E.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(S=this.data)==null?void 0:(R=S.thumbnail)==null?void 0:R.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(V=this.data)==null?void 0:(N=V.thumbnail)==
null?void 0:N.vibrantColorPalette:void 0}}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],R9.prototype,"componentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],R9.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],R9.prototype,"showSidePanelThumbnailOverlay",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],R9.prototype,"isCompact",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],R9.prototype,"collections",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],R9.prototype,"collectionsStackColor",void 0);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],R9.prototype,"twoLineTitle",null);
_.Z([_.U("data","collections","collectionsStackColor"),_.l("design:type",Object),_.l("design:paramtypes",[])],R9.prototype,"collectionStack",null);_.Z([_.D({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],R9);
_.b(R9,"ytd-structured-description-playlist-lockup-renderer",function(){if(eaT!==void 0)return eaT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return eaT=k},{mode:1});var a1T;var Vy=function(){return _.p.apply(this,arguments)||this};
_.y(Vy,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Vy.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Vy.prototype,"data",void 0);_.Z([_.D({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],Vy);
_.b(Vy,"ytd-structured-description-video-lockup-renderer",function(){if(a1T!==void 0)return a1T;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return a1T=k},{mode:2});var ND=function(){return _.p.apply(this,arguments)||this};
_.y(ND,_.p);
ND.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}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ND.prototype,"data",void 0);_.Z([_.D({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],ND);
_.b(ND,"ytd-compact-infocard-renderer",function(){if(J8d!==void 0)return J8d;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return J8d=k},{mode:1});var tcC;var I9=function(){var k=_.p.apply(this,arguments)||this;k.useModernCollectionsV2=_.Y("web_modern_collections_v2");return k};
_.y(I9,_.p);I9.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.mt.Object.defineProperties(I9.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],I9.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],I9.prototype,"ytdReduxBehavior",void 0);_.Z([_.H({selector:_.XS}),_.l("design:type",Object)],I9.prototype,"isGridViewEnabled",void 0);
_.Z([_.U("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],I9.prototype,"watchFeedBigThumbs",null);_.Z([_.U("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"168"}),_.l("design:type",String),_.l("design:paramtypes",[])],I9.prototype,"thumbnailWidth",null);_.Z([_.U("isGridViewEnabled","data"),_.H({reflectToAttribute:!0,value:"94"}),_.l("design:type",String),_.l("design:paramtypes",[])],I9.prototype,"customThumbnailSize",null);
_.Z([_.H(),_.l("design:type",Object)],I9.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],I9.prototype,"useModernCollectionsV2",void 0);_.Z([_.D({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],I9);
_.b(I9,"ytd-compact-playlist-renderer",function(){if(tcC!==void 0)return tcC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return tcC=k},{mode:1});var TL5;var nE=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.roundedContainer=!0;k.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return k};
_.y(nE,_.p);_.I=nE.prototype;_.I.attached=function(){this.requestElementsPerRow()};
_.I.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"}}}};
_.I.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.I.computeViewStyle=function(k){return k.style?k.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.I.onUpdateElementsPerRowAction=function(k){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&k===1};
_.I.requestElementsPerRow=function(){_.Me(this.hostElement,"yt-request-elements-per-row")};
nE.prototype.dataChanged=nE.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],nE.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],nE.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],nE.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],nE.prototype,"actionHandlerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],nE.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],nE.prototype,"hideThumbnail",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.l("design:type",String)],nE.prototype,"viewStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],nE.prototype,"darkerDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],nE.prototype,"roundedContainer",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nE.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],nE);
_.b(nE,"ytd-compact-promoted-item-renderer",function(){if(TL5!==void 0)return TL5;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return TL5=k},{mode:1});var w4Y;var ij=function(){var k=_.p.apply(this,arguments)||this;k.collections=_.Y("web_modern_collections_v2");return k};
_.y(ij,_.p);ij.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
ij.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
ij.prototype.onYtNavigate=function(k,E){var S=this;if(E.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",E)){var R=this.get("watchEndpoint.videoId",E.endpoint),V=_.zR(this.hostElement,"yt-get-current-video-id-action")[0];_.Y("kevlar_mix_handle_first_endpoint_different")&&R&&V&&R!==V||(k.stopPropagation(),_.l_().getPlayerPromise().then(function(N){if(N.getPlayerState()===0&&S.data.secondaryNavigationEndpoint)var h=S.data.secondaryNavigationEndpoint;else{h=
Object.assign({},E.endpoint);var J=_.W(h.commandMetadata,_.Sd);J&&(N=Math.floor(N.getCurrentTime()),J.url=_.Iu(J.url,{t:N}),!_.Y("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(J=_.W(h,_.jm)))&&(J.startTimeSeconds=N)}_.Me(S.hostElement,"yt-navigate",{endpoint:h})}))}};
_.mt.Object.defineProperties(ij.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R,V,N;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(k=this.data)==null?void 0:(E=k.thumbnail)==null?void 0:E.sampledThumbnailColor,vibrantColorPalette:(S=this.data)==null?void 0:(R=S.thumbnail)==null?void 0:R.vibrantColorPalette,darkColorPalette:(V=this.data)==null?void 0:(N=V.thumbnail)==null?void 0:N.darkColorPalette,experimentEnabled:this.collections}}}});
ij.prototype.onYtNavigate=ij.prototype.onYtNavigate;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.UN.YtEndpointBehavior),_.l("design:type",Object)],ij.prototype,"ytEndpointBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],ij.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.g(_.VD),_.l("design:type",Object)],ij.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],ij.prototype,"ytdReduxBehavior",void 0);_.Z([_.H({selector:_.XS}),_.l("design:type",Object)],ij.prototype,"isGridViewEnabled",void 0);_.Z([_.U("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ij.prototype,"watchFeedBigThumbs",null);
_.Z([_.U("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],ij.prototype,"thumbnailWidth",null);_.Z([_.H(),_.l("design:type",Object)],ij.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ij.prototype,"collections",void 0);_.Z([_.U("data","collections"),_.l("design:type",Object),_.l("design:paramtypes",[])],ij.prototype,"collectionStack",null);
_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],ij.prototype,"onYtNavigate",null);_.Z([_.D({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],ij);
_.b(ij,"ytd-compact-radio-renderer",function(){if(w4Y!==void 0)return w4Y;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return w4Y=k},{mode:1});var PV5;var hn=function(){return _.p.apply(this,arguments)||this};
_.y(hn,_.p);hn.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
hn.prototype.computeRendererStyle=function(k){return k.style?k.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.Z([_.H(),_.l("design:type",Object)],hn.prototype,"data",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],hn.prototype,"rendererBehavior",void 0);_.Z([_.H({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.l("design:type",String)],hn.prototype,"rendererStyle",void 0);_.Z([_.D({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],hn);
_.b(hn,"ytd-compact-text-promo-renderer",function(){if(PV5!==void 0)return PV5;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return PV5=k},{mode:1});var BLz;var Jn=function(){var k=_.p.apply(this,arguments)||this;k.isShortsStyle=!1;return k};
_.y(Jn,_.p);_.I=Jn.prototype;_.I.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"}}}};
_.I.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Me(this.hostElement,"yt-disable-lockup-interaction"):_.Me(this.hostElement,"yt-enable-lockup-interaction"))};
_.I.isMetaBlockEmpty=function(k){return!k||!k.longBylineText&&!k.shortBylineText&&!k.shortViewCountText&&!k.viewCountText};
_.I.computeHasOneLineTitle=function(k){return this.forceOneLineTitle||!(k==null||!k.buttons)};
_.I.computeDisableInteraction=function(){var k;return!((k=this.data)==null?0:k.navigationEndpoint)};
_.I.hasSingularTopStandaloneBadge=function(){var k;return!((k=this.data)==null||!k.topStandaloneBadge)};
_.mt.Object.defineProperties(Jn.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("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 k;return this.hasSingularTopStandaloneBadge()?[(k=this.data)==null?void 0:k.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var k;return this.shouldShowTopBadges?((k=this.data)==null?void 0:k.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Jn.prototype.disableInteractionChanged=Jn.prototype.disableInteractionChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],Jn.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],Jn.prototype,"ytdLockupBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],Jn.prototype,"ytdReduxBehavior",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.l("design:type",Boolean)],Jn.prototype,"metaBlockEmpty",void 0);_.Z([_.H({selector:_.XS}),_.l("design:type",Object)],Jn.prototype,"isGridViewEnabled",void 0);_.Z([_.U("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Jn.prototype,"watchFeedBigThumbs",null);
_.Z([_.U("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],Jn.prototype,"thumbnailWidth",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Jn.prototype,"isShortsStyle",void 0);_.Z([_.H(),_.l("design:type",Object)],Jn.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.l("design:type",Boolean)],Jn.prototype,"hasOneLineTitle",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],Jn.prototype,"hideThumbnail",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Jn.prototype,"forceOneLineTitle",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.l("design:type",Boolean)],Jn.prototype,"disableInteraction",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Jn.prototype,"musicMetadataVideoLockup",void 0);
_.Z([_.il("disableInteraction"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Jn.prototype,"disableInteractionChanged",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Jn.prototype,"shouldShowTopBadges",null);_.Z([_.U("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],Jn.prototype,"topBadges",null);
_.Z([_.U("shouldShowTopBadges","data"),_.l("design:type",Array),_.l("design:paramtypes",[])],Jn.prototype,"inlineMetadataBadges",null);_.Z([_.U("shouldShowTopBadges"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Jn.prototype,"shouldShowBadgesBelowMetadata",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Jn.prototype,"compactTitleClass",null);_.Z([_.D({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Jn);
_.b(Jn,"ytd-compact-video-renderer",function(){if(BLz!==void 0)return BLz;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return BLz=k},{mode:_.GN("kevlar_poly_si_batch_j067")?1:2});var Yd5;_.B9("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var cj=function(){return _.p.apply(this,arguments)||this};
_.y(cj,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cj.prototype,"data",void 0);_.Z([_.D({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],cj);
_.b(cj,"ytd-counterfactual-renderer",function(){if(Yd5!==void 0)return Yd5;var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Yd5=k},{mode:1});var Wp4;var m3=function(){var k=_.p.apply(this,arguments)||this;k.hidden=!1;return k};
_.y(m3,_.p);m3.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.en().resolve(_.t3).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
m3.prototype.computeHidden=function(k){return!!k};
_.mt.Object.defineProperties(m3.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}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],m3.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.l("design:type",Object)],m3.prototype,"hidden",void 0);_.Z([_.U("data.label"),_.l("design:type",String),_.l("design:paramtypes",[])],m3.prototype,"label",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],m3.prototype,"value",null);
_.Z([_.D({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],m3);
_.b(m3,"ytd-dropdown-item-renderer",function(){if(Wp4!==void 0)return Wp4;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Wp4=k},{mode:1});var Fp8;var y85;var ea=function(){return _.p.apply(this,arguments)||this};
_.y(ea,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ea.prototype,"data",void 0);_.Z([_.H({computed:"getSimpleString(data.label)"}),_.l("design:type",String)],ea.prototype,"label",void 0);_.Z([_.D({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],ea);
_.b(ea,"ytd-navigation-dropdown-item-renderer",function(){if(y85!==void 0)return y85;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return y85=k},{mode:1});var a9=function(){var k=_.p.apply(this,arguments)||this;k.disabled=!1;k.value="";k.noLabelFloat=!1;k.noUnderline=!1;k.usePrimaryColor=!1;k.hasBackground=!1;k.verticalAlign="top";k.autosize=!1;k.minAutosizeWidth=100;k.autosizeFont="14px Roboto";return k};
_.y(a9,_.p);_.I=a9.prototype;_.I.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"}}}};
_.I.open=function(){this.inputEl.open()};
_.I.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.I.dataChanged=function(){this.reset()};
_.I.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("value-changed",this.value))};
_.I.stopPropagation=function(k){k.stopPropagation()};
_.I.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var k=this.canvas.getContext("2d");k&&(k.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(k.measureText(this.inputEl.value).width)+24)+"px")}};
_.I.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var k=0,E=this.data.entries.length;k<E;k++){var S=this.data.entries[k],R;for(R in S)if(S.hasOwnProperty(R)){var V=S[R];if("isSelected"in V&&V.isSelected)return"stringValue"in V?V.stringValue||"":"int32Value"in V?V.int32Value||0:0}}return null};
_.I.updateValueFromBinding=function(k){this.value=k.detail.value};
_.mt.Object.defineProperties(a9.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 k=0,E=this.data.entries.length;k<E;k++){var S=this.data.entries[k],R;for(R in S)if(S.hasOwnProperty(R)){var V=S[R];if("isSelected"in V&&V.isSelected&&"label"in V)return this.ytRendererBehavior.getSimpleString(V.label)}}return null}}});
a9.prototype.autoSizeLabel=a9.prototype.autoSizeLabel;a9.prototype.stopPropagation=a9.prototype.stopPropagation;a9.prototype.valueChangedForBinding=a9.prototype.valueChangedForBinding;a9.prototype.dataChanged=a9.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],a9.prototype,"ytRendererStamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],a9.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],a9.prototype,"disabled",void 0);_.Z([_.H(),_.l("design:type",Object)],a9.prototype,"value",void 0);_.Z([_.H(),_.l("design:type",Object)],a9.prototype,"noLabelFloat",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],a9.prototype,"noUnderline",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],a9.prototype,"theme",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],a9.prototype,"usePrimaryColor",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],a9.prototype,"hasBackground",void 0);_.Z([_.H(),_.l("design:type",Object)],a9.prototype,"verticalAlign",void 0);_.Z([_.H(),_.l("design:type",Object)],a9.prototype,"autosize",void 0);_.Z([_.H(),_.l("design:type",Object)],a9.prototype,"minAutosizeWidth",void 0);_.Z([_.H(),_.l("design:type",Object)],a9.prototype,"autosizeFont",void 0);
_.Z([_.JO("#entries"),_.l("design:type",Object)],a9.prototype,"entries",void 0);_.Z([_.JO("#input"),_.l("design:type",Object)],a9.prototype,"inputEl",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a9.prototype,"dataChanged",null);_.Z([_.ac("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a9.prototype,"valueChangedForBinding",null);
_.Z([_.nv("iron-overlay-opened"),_.nv("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],a9.prototype,"stopPropagation",null);_.Z([_.nv("iron-select"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],a9.prototype,"autoSizeLabel",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],a9.prototype,"label",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],a9);
_.b(a9,"ytd-dropdown-renderer",function(){if(Fp8!==void 0)return Fp8;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Fp8=k},{mode:1});var owd;var tn=function(){var k=_.p.apply(this,arguments)||this;k.isConstrainedList=!1;return k};
_.y(tn,_.p);tn.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"}}}};
tn.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
tn.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
tn.prototype.computeViewAllHidden=function(k,E){return k||!E.viewAllEndpoint};
tn.prototype.fillRestIfNoShowMore=tn.prototype.fillRestIfNoShowMore;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],tn.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.TF.YtLazyListBehavior),_.l("design:type",Object)],tn.prototype,"ytLazyListBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tn.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],tn.prototype,"isConstrainedList",void 0);_.Z([_.ac("data","canShowMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tn.prototype,"fillRestIfNoShowMore",null);_.Z([_.D({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],tn);
_.b(tn,"ytd-expanded-shelf-contents-renderer",function(){if(owd!==void 0)return owd;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return owd=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var X4z;var Ty=function(){return _.p.apply(this,arguments)||this};
_.y(Ty,_.p);Ty.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}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ty.prototype,"data",void 0);_.Z([_.D({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],Ty);
_.b(Ty,"ytd-feed-channel-filter-header-renderer",function(){if(X4z!==void 0)return X4z;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return X4z=k},{mode:1});var gwT;var U$T;var H8Y;var wI=function(){return _.p.apply(this,arguments)||this};
_.y(wI,_.p);_.I=wI.prototype;_.I.onClick=function(k){var E,S=(E=this.data)==null?void 0:E.sectionEndpoint;!_.v9(_.vT(k),this.hostElement,["A".toString()])&&S&&_.Me(this.hostElement,"yt-navigate",{endpoint:S})};
_.I.computeHasSectionEndpoint=function(k){return(k==null?void 0:k.sectionEndpoint)!==void 0};
_.I.computeShowHeaderAsLink=function(k){return(k==null?void 0:k.header)!==void 0&&(k==null?void 0:k.sectionEndpoint)!==void 0};
_.I.computeShowSubheaderAsLink=function(k){return(k==null?void 0:k.subheader)!==void 0&&(k==null?void 0:k.sectionEndpoint)!==void 0&&(k==null?void 0:k.header)===void 0};
_.I.getHeaderAsLinkClass=function(k){var E=[],S;(k==null?0:(S=k.headerIcon)==null?0:S.iconType)&&E.push("header-link-active");return E.join(" ")};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],wI.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],wI.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],wI.prototype,"data",void 0);
_.Z([_.H({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],wI.prototype,"hasSectionEndpoint",void 0);_.Z([_.H({computed:"computeShowHeaderAsLink(data)"}),_.l("design:type",Boolean)],wI.prototype,"showHeaderAsLink",void 0);_.Z([_.H({computed:"computeShowSubheaderAsLink(data)"}),_.l("design:type",Boolean)],wI.prototype,"showSubheaderAsLink",void 0);_.Z([_.D({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],wI);
_.b(wI,"ytd-medical-panel-section-renderer",function(){if(H8Y!==void 0)return H8Y;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return H8Y=k},{mode:1});var Pj=function(){var k=_.p.apply(this,arguments)||this;k.isExpanded=!1;k.roundedContainer=!0;k.skipRoundingTop=!1;k.toggleExpandableSection=function(){k.isExpanded=!k.isExpanded};
return k};
_.y(Pj,_.p);
Pj.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]]"}}}}}};
Pj.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Pj.prototype.dataChanged=Pj.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Pj.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Pj.prototype,"isExpanded",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Pj.prototype,"roundedContainer",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Pj.prototype,"skipRoundingTop",void 0);_.Z([_.H(),_.l("design:type",Object)],Pj.prototype,"toggleExpandableSection",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pj.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Pj);
_.b(Pj,"ytd-medical-panel-content-renderer",function(){if(U$T!==void 0)return U$T;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return U$T=k},{mode:1});_.B9("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Bj=function(){var k=_.p.apply(this,arguments)||this;k.roundedContainer=!0;k.extractOverlay=!1;k.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");k.hasTitle=!1;k.linkIcon="OPEN_IN_NEW";k.isDismissed=!1;return k};
_.y(Bj,_.p);Bj.prototype.onOverlayConditionsChange=function(){var k=_.Cc(this.hostElement).querySelector("ytd-info-panel-content-renderer");k&&(k.set("extractOverlay",this.extractOverlay),k.set("roundedContainer",this.roundedContainer))};
Bj.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"}}}};
Bj.prototype.computeHasTitle=function(k){return!(k==null||!k.title)};
Bj.prototype.onClick=function(k){var E,S=(E=this.data)==null?void 0:E.headerEndpoint;!_.v9(_.vT(k),this.hostElement,["BUTTON".toString()])&&S&&this.ytComponentBehavior.resolveCommand(S)};
_.mt.Object.defineProperties(Bj.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 k;return((k=this.data)==null?void 0:k.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:k.disableBottomDivider)||!((E=this.data)==null?0:E.title)}}});
Bj.prototype.onOverlayConditionsChange=Bj.prototype.onOverlayConditionsChange;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Bj.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Bj.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Bj.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Bj.prototype,"ytdReduxBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Bj.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Bj.prototype,"roundedContainer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Bj.prototype,"extractOverlay",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Bj.prototype,"amsterdamEnabled",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.l("design:type",Object)],Bj.prototype,"hasTitle",void 0);
_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.background"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bj.prototype,"background",null);_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.titleStyle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bj.prototype,"titleStyle",null);
_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.U("data.titleStyle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bj.prototype,"showLinkIcon",null);_.Z([_.H(),_.l("design:type",String)],Bj.prototype,"linkIcon",void 0);_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bj.prototype,"hideDivider",null);
_.Z([_.H({selectorArgs:["data.dismissStateEntityKey"],selector:function(k,E){k=_.Ep(k.entities,"dismissState",E);return(k==null?void 0:k.isDismissed)||(k==null?void 0:k.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(k==null?void 0:k.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.l("design:type",Object)],Bj.prototype,"isDismissed",void 0);_.Z([_.il("roundedContainer","extractOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bj.prototype,"onOverlayConditionsChange",null);_.Z([_.D({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Bj);
_.b(Bj,"ytd-info-panel-container-renderer",function(){if(gwT!==void 0)return gwT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return gwT=k},{mode:1});var KpC;_.B9("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var YG=function(){return _.p.apply(this,arguments)||this};
_.y(YG,_.p);YG.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
YG.prototype.computeStyle=function(k){return k?k:""};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],YG.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],YG.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.l("design:type",String)],YG.prototype,"titleStyle",void 0);
_.Z([_.D({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],YG);
_.O_()(YG,"ytd-item-section-header-renderer",function(){if(KpC===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);KpC=k}k=KpC;return k},{allowedProps:["data"],
mode:1});var p4C;var A8T,r8j=function(){return A8T!==void 0?A8T:A8T=document.createElement("template")};
document.head.appendChild(r8j().content);var uUp;_.Wj=new _.QE("VOTING_ANIMATION_CONTROLLER_TOKEN");var Lpd=_.f(function(k){var E=k.data;var S=_.VH("div"),R=_.VH("div");k=_.n(_.yg("VOTE_STATUS_NONE",void 0,"YPH5mf"));var V=k.next().value,N=k.next().value,h=_.iK(aNe,function(){var P;return(P=E())==null?void 0:P.entityKey}),J=_.Y("web_enable_voting_animation")||_.Y("enable_music_web_cairo_voting_animation");
_.b$(function(){var P;((P=E().initialState)==null?0:P.status)&&N(E().initialState.status)});
var m=function(){var P,B,F=(B=(P=E().initialState)==null?void 0:P.votes)!=null?B:0,K;P=(K=E().initialState)==null?void 0:K.status;return P==="VOTE_STATUS_UPVOTED"?F-1:P==="VOTE_STATUS_DOWNVOTED"?F+1:F},a=function(){return V()==="VOTE_STATUS_UPVOTED"?m()+1:V()==="VOTE_STATUS_DOWNVOTED"?m()-1:m()},T=function(P){var B=P?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
N(B);var F=a(),K=_.en().resolve(_.mz(_.Wj)),r=h();r&&(P&&(r==null?0:r.upvoteDefaultButtonOnTap)?_.AV(r.upvoteDefaultButtonOnTap,{form:{element:S.value},disableClickTracking:!0}):(r==null?0:r.upvoteToggledButtonOnTap)&&_.AV(r.upvoteToggledButtonOnTap,{form:{element:S.value},disableClickTracking:!0}));var x;P=(x=r==null?void 0:r.enableOptimisticReordering)!=null?x:E().enableOptimisticReordering;J&&K&&E().itemId&&P&&x$z(K,E().itemId,F,B)},w=function(P){var B=P?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
N(B);var F=a(),K=_.en().resolve(_.mz(_.Wj)),r=h();r&&(P&&(r==null?0:r.downvoteDefaultButtonOnTap)?_.AV(r.downvoteDefaultButtonOnTap,{form:{element:R.value},disableClickTracking:!0}):(r==null?0:r.downvoteToggledButtonOnTap)&&_.AV(r.downvoteToggledButtonOnTap,{form:{element:R.value},disableClickTracking:!0}));var x;P=(x=r==null?void 0:r.enableOptimisticReordering)!=null?x:E().enableOptimisticReordering;J&&K&&E().itemId&&P&&x$z(K,E().itemId,F,B)};
k={};k=_.SQ("ytVotingViewModelVoteCount",(k.ytVotingViewModelVoteCountDisabled=function(){return E().isDisabled},k));
return _.e("voting-view-model",{class:"ytVotingViewModelHost"},_.e("div",{el:S},_.e(_.cp,{data:function(){var P=_.W(E().upvoteButton,_.QK);return{toggleButtonViewModel:Object.assign({},P,{isToggled:V()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(P){return _.e(_.bL,{data:P.data,
onToggle:T})}})),_.e("div",{class:k},function(){var P,B,F;
return V()==="VOTE_STATUS_UPVOTED"?(P=E().initialState)==null?void 0:P.compactVotesUpvoted:V()==="VOTE_STATUS_DOWNVOTED"?(B=E().initialState)==null?void 0:B.compactVotesDownvoted:(F=E().initialState)==null?void 0:F.compactVotes}),_.e("div",{el:R},_.e(_.cp,{data:function(){var P=_.W(E().downvoteButton,_.QK);
return{toggleButtonViewModel:Object.assign({},P,{isToggled:V()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(P){return _.e(_.bL,{data:P.data,
onToggle:w})}})))},"Tc");_.qi(_.f(function(k){var E=k.data;return _.e("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.e("div",{class:_.SQ("ytEngagementBarViewModelEngagementBarWrapper",k.className)},_.e(_.cp,{data:function(){return E().actions}},{votingViewModel:Lpd})))},"Uc"),"engagement-bar-view-model",{props:{data:_.Nq,
className:_.Nq}});var Fv=function(){var k=_.p.apply(this,arguments)||this;k.playlistVotingAnimationEnabled=_.Y("web_enable_voting_animation");k.downloadProgress=0;k.transferState="TRANSFER_STATE_UNKNOWN";k.downloadState="DOWNLOAD_STATE_UNKNOWN";k.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";k.offlineVideoPolicyExpirationTimestamp=0;return k};
_.y(Fv,_.p);_.I=Fv.prototype;_.I.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"}}}};
_.I.canReorderChanged=function(){this.persistentDragHandle=_.Y("kevlar_playlist_drag_handles")&&this.canReorder};
_.I.onDrag=function(){if(this.thumbnail){var k=_.Cc(this.thumbnail).querySelector("yt-image");k&&(k.shouldRenderLazy=!1)}};
_.I.onMenuOverlayChanged=function(k,E){this.menuOpened=E};
_.I.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.I.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.I.onContentsTap=function(k){var E,S=(E=this.data)==null?void 0:E.serviceEndpoints;if(S&&S.length===1&&_.W(S[0],YPi)&&!_.v9(_.vT(k),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(S[0]);else{var R;(E=(R=this.data)==null?void 0:R.navigationEndpoint)&&_.Y("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?jPC(_.en().resolve(_.yb),E):(_.g_().playlistSuggestionsShelfActivation=
!0,_.D$Y(_.en().resolve(_.yb),E)):E&&!_.v9(_.vT(k),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.Y("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Me(this.hostElement,"yt-navigate",{endpoint:E}):this.ytComponentBehavior.resolveCommand(E))}};
_.I.computeStyle=function(k){return k?k.toLowerCase().replace(/_/g,"-"):""};
_.I.computeThumbnailWidth=function(k){return k==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.I.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=i6m(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))}};
_.I.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.I.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.I.dataChanged=function(){if(this.data){var k,E,S,R=((k=this.downloadRenderData)==null?void 0:k.badges)&&((E=this.downloadRenderData)==null?void 0:E.badges)!==((S=this.data)==null?void 0:S.badges),V,N,h;k=((V=this.downloadRenderData)==null?void 0:V.thumbnailOverlays)&&((N=this.downloadRenderData)==null?void 0:N.thumbnailOverlays)!==((h=this.data)==null?void 0:h.thumbnailOverlays);(!this.downloadRenderData||R||k)&&this.downloadStateChanged()}};
_.I.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var k,E,S=(k=this.data.menu)==null?void 0:(E=k.menuRenderer)==null?void 0:E.items;if(S)for(k=_.n(S),E=k.next();!E.done;E=k.next())if(E=E.value,S=void 0,_.W((S=E.menuServiceItemRenderer)==null?void 0:S.serviceEndpoint,_.vF)){var R=S=void 0,V=void 0;E=(S=E)==null?void 0:(R=S.menuServiceItemRenderer)==null?void 0:(V=R.serviceEndpoint)==null?void 0:V.playlistEditEndpoint;V=R=void 0;if(S=(R=E)==null?void 0:(V=R.actions)==null?void 0:
V[0])R=void 0,S.setVideoId=(R=this.data)==null?void 0:R.setVideoId;V=R=S=void 0;if(E=(S=E)==null?void 0:(R=S.clientActions)==null?void 0:(V=R[0])==null?void 0:V.playlistRemoveVideosAction)S=void 0,E.setVideoIds=[(S=this.data)==null?void 0:S.setVideoId]}}};
_.mt.Object.defineProperties(Fv.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Fv.prototype.setVideoIdChanged=Fv.prototype.setVideoIdChanged;Fv.prototype.dataChanged=Fv.prototype.dataChanged;Fv.prototype.downloadStateChanged=Fv.prototype.downloadStateChanged;Fv.prototype.onMenuOverlayChanged=Fv.prototype.onMenuOverlayChanged;Fv.prototype.canReorderChanged=Fv.prototype.canReorderChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Fv.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Fv.prototype,"ytdReduxBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Fv.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],Fv.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],Fv.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Fv.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Fv.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fv.prototype,"canReorder",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fv.prototype,"menuOpened",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fv.prototype,"handleIsHovered",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fv.prototype,"persistentDragHandle",void 0);_.Z([_.H(),_.l("design:type",Object)],Fv.prototype,"downloadRenderData",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],Fv.prototype,"styleType",void 0);_.Z([_.H({computed:"computeThumbnailWidth(data.style)"}),_.l("design:type",Number)],Fv.prototype,"thumbnailWidth",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Fv.prototype,"isDownloads",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Fv.prototype,"playlistVotingAnimationEnabled",void 0);
_.Z([_.H({selector:Up,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],Fv.prototype,"downloadProgress",void 0);_.Z([_.H(),_.l("design:type",Number)],Fv.prototype,"relativeDateReference",void 0);_.Z([_.H({selector:_.Xf,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],Fv.prototype,"transferState",void 0);_.Z([_.H({selector:OGC,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],Fv.prototype,"downloadState",void 0);
_.Z([_.H({selector:Lyh,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],Fv.prototype,"offlinePolicyAction",void 0);_.Z([_.H({selector:jAI,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],Fv.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.Z([_.H({selector:$qh,selectorArgs:["data.videoId"]}),_.l("design:type",Object)],Fv.prototype,"entityInfo",void 0);_.Z([_.H({selector:_.Ff}),_.l("design:type",Boolean)],Fv.prototype,"miniplayerIsActive",void 0);
_.Z([_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],Fv.prototype,"playlistVideoId",null);_.Z([_.JO("#thumbnail"),_.l("design:type",Object)],Fv.prototype,"thumbnail",void 0);_.Z([_.ac("canReorder"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fv.prototype,"canReorderChanged",null);
_.Z([_.nv("yt-menu-overlay-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Boolean]),_.l("design:returntype")],Fv.prototype,"onMenuOverlayChanged",null);_.Z([_.ac("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fv.prototype,"downloadStateChanged",null);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fv.prototype,"dataChanged",null);_.Z([_.ac("data.setVideoId"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fv.prototype,"setVideoIdChanged",null);_.Z([_.D({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Fv);
_.b(Fv,"ytd-playlist-video-renderer",function(){if(uUp!==void 0)return uUp;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);k.content.insertBefore(r8j().content.cloneNode(!0),k.content.firstChild);return uUp=k},{mode:1});var $$2;var yy=function(){return _.p.apply(this,arguments)||this};
_.y(yy,_.p);_.Z([_.H(),_.l("design:type",Object)],yy.prototype,"data",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yy.prototype,"rendererBehavior",void 0);_.Z([_.D({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],yy);
_.b(yy,"ytd-premium-browse-footer-renderer",function(){if($$2!==void 0)return $$2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return $$2=k},{mode:1});var f1d;var o9=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return k};
_.y(o9,_.p);_.I=o9.prototype;_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.handleDarkModeToggledAction=function(k){this.isDarkTheme=k};
_.I.computeHeaderLogoThumbnail=function(k,E){if(k)return E?k.darkLogo:k.lightLogo};
_.I.computeHeaderLogoHeight=function(k,E){var S,R,V;return(k=(S=this.computeHeaderLogoThumbnail(k,E))==null?void 0:(R=S.thumbnails)==null?void 0:(V=R[0])==null?void 0:V.height)&&k%31===0?"31":"24"};
_.I.computeHeaderLogoMarginBottom=function(k,E){return this.computeHeaderLogoHeight(k,E)==="24"?"0":"-7"};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],o9.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],o9.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],o9.prototype,"isDarkTheme",void 0);_.Z([_.H({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.l("design:type",Object)],o9.prototype,"themeLogo",void 0);
_.Z([_.H({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.l("design:type",String)],o9.prototype,"logoHeight",void 0);_.Z([_.H({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.l("design:type",String)],o9.prototype,"logoMarginBottom",void 0);_.Z([_.D({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],o9);
_.b(o9,"ytd-primetime-promo-header-renderer",function(){if(f1d!==void 0)return f1d;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return f1d=k},{mode:1});var vwA;_.Xv=_.f(function(k){var E=k.className;var S=k.data;var R=k.isOverlay;var V=k.maxLinesOverride;var N=k.useMediumText;var h=function(){return S().alwaysShowTruncationText},J=function(){return S().truncationText},m=function(){return N!==void 0&&N()?"medium":"small"},a=function(){return R!==void 0&&R()?"overlay":"default"},T=function(){var F,K;
return(K=(F=_.W(S().rendererContext,_.n9))==null?void 0:F.label)!=null?K:""};
k=_.n(_.yg(!1,void 0,"OKr1o"));var w=k.next().value,P=k.next().value;k=_.RZ(function(){S().expandOnTap&&P(!w());return!1});
var B={};return _.e("yt-description-preview-view-model",{el:_.Z0(_.FX(function(){return S().rendererContext})),
class:_.SQ("ytDescriptionPreviewViewModelHost",E,(B.ytDescriptionPreviewViewModelClickable=function(){var F;return!((F=_.W(S().rendererContext,OiC))==null||!F.onTap)},B.ytDescriptionPreviewViewModelIsOverlay=R,B)),
"on:click":k},_.e(_.t,{cond:function(){return S().description},
then:function(F){return _.e(_.t,{cond:w,then:function(){var K={};return _.e("div",{class:_.SQ("ytDescriptionPreviewViewModelDescription",(K.ytDescriptionPreviewViewModelDescriptionMediumText=N,K))},_.e(_.VB,{text:F}))},
else:function(){return _.e(MP5,{text:F,alwaysShowTruncationText:h,truncationText:J,maxLines:function(){var K;return(K=V==null?void 0:V())!=null?K:S().maxLines},
textStyle:a,accessibilityLabel:T,textSize:m})}})}}))},"Vc");
_.Xv.idomCompat=!0;var Z8C=_.f(function(k){var E=_.RZ(function(V){var N;(N=k.onClick)==null||N.call(k,V)}),S={},R={};
return _.e("yt-shelf-header-layout",{class:_.SQ("yt-shelf-header-layout",(S["yt-shelf-header-layout--disable-horizontal-padding"]=k.disableHorizontalPadding,S["yt-shelf-header-layout--disable-vertical-padding"]=k.disableVerticalPadding,S["yt-shelf-header-layout--responsive"]=k.useResponsiveLayout,S["yt-shelf-header-layout--narrow"]=function(){var V,N;return((V=k.useResponsiveLayout)==null?void 0:V.call(k))&&((N=k.forceSmallLayout)==null?void 0:N.call(k))},S["yt-shelf-header-layout--is-overlay"]=k.isOverlay,
S["yt-shelf-header-layout--tappable"]=k.isInteractive,S)),
"on:click":E,tabindex:function(){var V;return((V=k.isInteractive)==null?0:V.call(k))?0:void 0}},_.e("div",{class:"yt-shelf-header-layout__header-row"},_.e(_.t,{cond:k.leadingIcon,
then:function(V){return _.e("div",{class:"yt-shelf-header-layout__leading-icon"},_.e(_.i_,{icon:V}))},
else:function(){return _.e(_.t,{cond:k.hasLeadingImage,then:function(){var V,N={};return _.e("div",{class:_.SQ("yt-shelf-header-layout__leading-image",(N["yt-shelf-header-layout__leading-image--circular-image"]=k.circularImage,N))},(V=k.leadingImage)==null?void 0:V.call(k))}})}}),_.e("div",{class:"yt-shelf-header-layout__label-container"},_.e(_.t,{cond:k.hasSuperlabel,
then:function(){var V;return _.e("div",{class:"yt-shelf-header-layout__superlabel"},(V=k.superlabel)==null?void 0:V.call(k))}}),_.e("div",{class:"yt-shelf-header-layout__title-row"},_.e(b8Y,{text:k.title,
className:_.SQ("yt-shelf-header-layout__title",(R["yt-shelf-header-layout__title--small-title"]=k.forceSmallLayout,R)),tagLevel:k.tagLevel}),_.e(_.t,{cond:k.hasDetail,then:function(){var V;return _.e("div",{class:"yt-shelf-header-layout__detail"},(V=k.detail)==null?void 0:V.call(k))}})),_.e(_.t,{cond:k.hasSublabel,
then:function(){var V;return _.e("div",{class:"yt-shelf-header-layout__sublabel"},(V=k.sublabel)==null?void 0:V.call(k))}})),_.e(_.t,{cond:k.hasTrailingActions,
then:function(){var V;return _.e("div",{class:"yt-shelf-header-layout__trailing-actions"},(V=k.trailingActions)==null?void 0:V.call(k))}})),_.e(_.t,{cond:k.hasBottomAccessory,
then:function(){var V;return _.e("div",{class:"yt-shelf-header-layout__bottom-accessory"},(V=k.bottomAccessory)==null?void 0:V.call(k))}}))},"Wc");
Z8C.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var b8Y=_.f(function(k){var E=k.text;var S=k.className;var R=k.tagLevel;return _.e(_.D_,null,_.e(_.xk,{when:function(){return(R==null?void 0:R())===0}},function(){return _.e("h2",{class:S},E())}),_.e(_.xk,{when:function(){return(R==null?void 0:R())===1}},function(){return _.e("h3",{class:S},E())}),_.e(_.xk,{when:function(){return(R==null?void 0:R())===2}},function(){return _.e("h4",{class:S},E())}),_.e(_.LV,null,function(){return _.e("h2",{class:S},E())}))},"Xc");var l12,d$d,sP2;_.gI=_.f(function(k){var E=k.className;var S=k.data;var R=k.disableHorizontalPadding;var V=k.disableVerticalPadding;var N=k.forceSmallLayout;var h=k.useResponsiveLayout;k=k.isOverlay;return _.e("yt-section-header-view-model",{class:_.SQ("ytSectionHeaderViewModelHost",E),style:_.nU({"background-color":function(){return R3(S().backgroundColor)?_.Kc(R3(S().backgroundColor)):void 0}})},_.e(Z8C,{hasDetail:!1,
title:function(){return _.e(_.VB,{text:function(){return S().headline}})},
hasTitle:!0,sublabel:function(){return _.e(d$d,{data:S})},
hasSublabel:function(){return!!S().sublabel||!!S().bottomBadge},
superlabel:function(){return _.e(sP2,{data:S})},
hasSuperlabel:function(){return!!S().superlabel||!!S().topBadge},
leadingImage:function(){return _.e(l12,{leadingAccessory:function(){return S().leadingAccessory}})},
hasLeadingImage:function(){return!!S().leadingAccessory},
trailingActions:function(){return _.e(_.cp,{data:function(){return S().trailingActions}},{flexibleActionsViewModel:_.l6})},
hasTrailingActions:function(){return!!S().trailingActions},
disableHorizontalPadding:R,disableVerticalPadding:V,forceSmallLayout:N,useResponsiveLayout:h,isOverlay:k,isInteractive:function(){return!!_.Yh(S().rendererContext)},
onClick:function(J){if(_.Wp(S().rendererContext)){var m=_.Yh(S().rendererContext);m&&_.HM(m,{form:{element:J.target,event:J}})}},
bottomAccessory:function(){return _.e(_.cp,{data:function(){return S().bottomAccessory}},{descriptionPreviewViewModel:_.Xv})},
hasBottomAccessory:function(){return!!S().bottomAccessory}}))},"Yc");
l12=_.f(function(k){var E=k.leadingAccessory;return _.e(_.tj,null,_.e(_.t,{cond:function(){var S;return(S=E().image)!=null?S:_.Hp(E().themedImage)},
then:function(S){return _.e(_.vM,{data:S,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.e(_.t,{cond:function(){return _.W(E().avatar,_.y3)},
then:function(S){return _.e(_.dw,{data:S})}}))},"Zc");
d$d=_.f(function(k){var E=k.data;return _.e(_.tj,null,_.e(_.t,{cond:function(){return _.W(E().bottomBadge,Mfp)},
then:function(S){var R={};return _.e(_.t7,{data:S,class:_.SQ((R.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!S()&&!!E().sublabel},R))})}}),_.e(_.t,{cond:function(){return E().sublabel},
then:function(S){return _.e(_.VB,{text:S})}}))},"$c");
sP2=_.f(function(k){var E=k.data;return _.e(_.tj,null,_.e(_.t,{cond:function(){return _.W(E().topBadge,Mfp)},
then:function(S){var R={};return _.e(_.t7,{data:S,class:_.SQ((R.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!S()&&!!E().superlabel},R))})}}),_.e(_.t,{cond:function(){return E().superlabel},
then:function(S){return _.e(_.VB,{text:S})}}))},"ad");_.qi(_.gI,"yt-section-header-view-model",{props:{data:_.Nq,className:_.Nq,disableHorizontalPadding:_.Nq,disableVerticalPadding:_.Nq,forceSmallLayout:_.Nq,useResponsiveLayout:_.Nq,isOverlay:_.Nq}});_.B9("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Un=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return k};
_.y(Un,_.p);_.I=Un.prototype;_.I.attached=function(){this.requestElementsPerRow()};
_.I.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"}}}};
_.I.onDataChange=function(){var k=this;_.JB(this,function(){k.updateItemVisibility()})};
_.I.onUpdateElementsPerRowAction=function(k){k&&this.elementsPerRow!==k&&(this.elementsPerRow=k,this.updateItemVisibility())};
_.I.updateItemVisibility=function(){var k=this;this.data&&this.data.panels&&_.Cc(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(E,S){E.hidden=S>k.elementsPerRow-1})};
_.I.requestElementsPerRow=function(){_.Me(this.hostElement,"yt-request-elements-per-row")};
Un.prototype.onDataChange=Un.prototype.onDataChange;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Un.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],Un.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Un.prototype,"actionHandlerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Un.prototype,"data",void 0);_.Z([_.H({value:3}),_.l("design:type",Number)],Un.prototype,"elementsPerRow",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Un.prototype,"onDataChange",null);_.Z([_.D({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Un);
_.b(Un,"ytd-primetime-promo-renderer",function(){if(vwA!==void 0)return vwA;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vwA=k},{mode:1});var McC;var Hj=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return k};
_.y(Hj,_.p);Hj.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
Hj.prototype.handleButtonRefreshAction=function(k){if(k=_.W(k,mNY))this.set("data.button",k.membershipButton),this.notifyPath("data.button")};
_.mt.Object.defineProperties(Hj.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:(E=k.avatars)==null?void 0:E.slice(0,8))||[]}}});
_.Z([_.H(),_.l("design:type",Object)],Hj.prototype,"data",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Hj.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Hj.prototype,"rendererBehavior",void 0);_.Z([_.U("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],Hj.prototype,"avatars",null);
_.Z([_.D({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],Hj);
_.b(Hj,"ytd-recognition-shelf-renderer",function(){if(McC!==void 0)return McC;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return McC=k},{mode:1});var qdC;var zaC;var KE=function(){var k=_.p.apply(this,arguments)||this;k.modernButtons=_.Y("web_modern_buttons");return k};
_.y(KE,_.p);_.I=KE.prototype;
_.I.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]]"}}}}}};
_.I.dataChanged=function(){this.collapsed=!0};
_.I.computeVisibleItems=function(k,E){return k!==void 0&&k.items?E?k.items.slice(0,this.data.collapsedItemCount):k.items:[]};
_.I.computeHideShowMore=function(k,E,S){return k>=E||!S};
_.I.computeHideShowAll=function(k,E,S){return!(k&&E)||S};
_.I.onMoreClick=function(){this.collapsed=!1};
_.mt.Object.defineProperties(KE.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Y("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.P_("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.Y("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
KE.prototype.dataChanged=KE.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],KE.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],KE.prototype,"isSearch",void 0);
_.Z([_.H({computed:"computeVisibleItems(data,collapsed)"}),_.l("design:type",Array)],KE.prototype,"visibleItems",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],KE.prototype,"collapsed",void 0);_.Z([_.H({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.l("design:type",Boolean)],KE.prototype,"hideShowMore",void 0);
_.Z([_.H({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.l("design:type",Boolean)],KE.prototype,"hideShowAll",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],KE.prototype,"modernButtons",void 0);_.Z([_.U("isSearch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KE.prototype,"typographyBump",null);
_.Z([_.U("isSearch"),_.l("design:type",Object),_.l("design:paramtypes",[])],KE.prototype,"lockupExperiments",null);_.Z([_.U("isSearch"),_.l("design:type",String),_.l("design:paramtypes",[])],KE.prototype,"thumbnailWidth",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KE.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],KE);
_.b(KE,"ytd-vertical-list-renderer",function(){if(zaC!==void 0)return zaC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return zaC=k},{mode:1});var QPd=_.ry(["#"]);_.B9("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var pE=function(){var k=_.p.apply(this,arguments)||this;k.isConstrainedList=!1;return k};
_.y(pE,_.p);_.I=pE.prototype;
_.I.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"}}}};
_.I.computeThumbnailStyle=function(k){return k||""};
_.I.computePlaceAnnotationUnderTitle=function(){var k;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((k=this.data)==null?void 0:k.thumbnailStyle)||"")};
_.I.computeHrefWithDefault=function(k){return this.ytComponentBehavior.computeHref_(k)||_.iRe(QPd)};
_.I.computeIsPromoShelf=function(k){var E;return(k=k==null?void 0:(E=k[0])==null?void 0:E.metadataBadgeRenderer)?k.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.I.computePlaceBadgeBesideTitle=function(k){var E;return(k==null?0:(E=k[0])==null?0:E.metadataBadgeRenderer)?!this.computeIsPromoShelf(k):!1};
_.I.computeMenuIcon=function(k){return this.computeIsPromoShelf(k)?"yt-icons:more_vert":"yt-icons:more"};
_.I.onDataChange=function(){var k,E;((k=this.data)==null?0:(E=k.content)==null?0:E.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.I.onLockupRequested=function(k){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&k.detail&&k.detail.videoIds){for(var E=this.data.content.gridRenderer.items,S=new Set,R=_.n(k.detail.videoIds),V=R.next();!V.done;V=R.next())S.add(V.value);k.detail.returnValue=E.filter(function(N){return N.gridVideoRenderer&&N.gridVideoRenderer.videoId&&S.has(N.gridVideoRenderer.videoId)}).map(function(N){return N.gridVideoRenderer})}};
_.I.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
pE.prototype.onLockupRequested=pE.prototype.onLockupRequested;pE.prototype.onDataChange=pE.prototype.onDataChange;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],pE.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],pE.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],pE.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],pE.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.KS),_.l("design:type",Object)],pE.prototype,"ironResizableBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],pE.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],pE.prototype,"isSearch",void 0);_.Z([_.H(),_.l("design:type",Object)],pE.prototype,"isConstrainedList",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("kevlar_fluid_dismiss")}}),
_.l("design:type",Boolean)],pE.prototype,"enableFluidDismiss",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.l("design:type",String)],pE.prototype,"thumbnailStyle",void 0);_.Z([_.H({computed:"computeMenuIcon(data.badges)"}),_.l("design:type",String)],pE.prototype,"menuIcon",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.l("design:type",Boolean)],pE.prototype,"featuredPromo",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pE.prototype,"onDataChange",null);_.Z([_.nv("yt-lockup-requested"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],pE.prototype,"onLockupRequested",null);_.Z([_.D({is:"ytd-shelf-renderer",disableElementRegistration:!0})],pE);
_.b(pE,"ytd-shelf-renderer",function(){if(qdC!==void 0)return qdC;var k=document.createElement("template");_.X(k,'\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          <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n          </yt-img-shadow>\n          <div id="title-text" class="style-scope ytd-shelf-renderer">\n            <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\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          </div>\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return qdC=k},{mode:1});var O8A;var An=function(){return _.p.apply(this,arguments)||this};
_.y(An,_.p);An.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.mt.Object.defineProperties(An.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],An.prototype,"data",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],An.prototype,"isPlaylist",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],An.prototype,"isClipList",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],An.prototype,"isPlaylistPageWithFilters",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],An.prototype,"hasTitle",null);_.Z([_.H(),_.U("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.l("design:type",Object),_.l("design:paramtypes",[])],An.prototype,"isRightAligned",null);
_.Z([_.D({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],An);
_.b(An,"ytd-sort-filter-header-renderer",function(){if(O8A!==void 0)return O8A;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return O8A=k},{mode:1});var G0d;var rI=function(){var k=_.p.apply(this,arguments)||this;k.enableRightArrowHidden=_.Y("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return k};
_.y(rI,_.p);rI.prototype.attached=function(){var k=this;this.enableRightArrowHidden&&(this.JSC$16549_throttledOnResize=new _.NJ(function(){var E;(E=k.ytdHorizontalListBehavior)==null||E.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var E;
(E=k.JSC$16549_throttledOnResize)==null||E.fire()}),this.resizeObserver.observe(this.hostElement))};
rI.prototype.detached=function(){if(this.enableRightArrowHidden){var k;(k=this.resizeObserver)==null||k.disconnect();var E;(E=this.JSC$16549_throttledOnResize)==null||E.dispose()}};
rI.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]]"}}}}}};
rI.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.mt.Object.defineProperties(rI.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.Y("enable_creator_details_shelf_m2")){var k=[],E;((E=this.data)==null?0:E.creatorVideosButton)&&k.push(this.data.creatorVideosButton);var S;((S=this.data)==null?0:S.creatorAboutButton)&&k.push(this.data.creatorAboutButton);E=_.n(this.data.creatorCustomUrlButtons||[]);for(S=E.next();!S.done;S=E.next())k.push(S.value);return k}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.Y("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rI.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.wR.YtdHorizontalListBehavior),_.l("design:type",Object)],rI.prototype,"ytdHorizontalListBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rI.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],rI.prototype,"engagementPanel",void 0);
_.Z([_.H(),_.l("design:type",Object)],rI.prototype,"enableRightArrowHidden",void 0);_.Z([_.U("enableRightArrowHidden","atEnd"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rI.prototype,"hideRightArrow",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],rI.prototype,"creatorCustomUrlButtons",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data","creatorCustomUrlButtons"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],rI.prototype,"showCreatorCustomUrlButtons",null);_.Z([_.U("showCreatorCustomUrlButtons"),_.l("design:type",Number),_.l("design:paramtypes",[])],rI.prototype,"channelAvatarSize",null);_.Z([_.D({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],rI);
_.b(rI,"ytd-video-description-infocards-section-renderer",function(){if(G0d!==void 0)return G0d;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return G0d=k},{mode:_.GN("kevlar_poly_si_batch_j067")?1:2});var CVz;var uj=function(){return _.p.apply(this,arguments)||this};
_.y(uj,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],uj.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],uj.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon_(data.infoIcon)"}),_.l("design:type",Object)],uj.prototype,"infoIcon",void 0);_.Z([_.D({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],uj);
_.b(uj,"ytd-eom-settings-disclaimer-renderer",function(){if(CVz!==void 0)return CVz;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return CVz=k},{mode:1});var k3Y;var xG=function(){return _.p.apply(this,arguments)||this};
_.y(xG,_.p);_.mt.Object.defineProperties(xG.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.suppressPaddingDisclaimer)}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],xG.prototype,"componentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],xG.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],xG.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],xG.prototype,"suppressPaddingDisclaimer",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],xG);
_.b(xG,"ytd-product-list-header-renderer",function(){if(k3Y!==void 0)return k3Y;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return k3Y=k},{mode:1});var EI5;var LE=function(){return _.p.apply(this,arguments)||this};
_.y(LE,_.p);LE.prototype.computeThumbnailStyle=function(k){if(k&&(k=_.HT(k)))return"background-color:"+k+";"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],LE.prototype,"rendererBehaviors",void 0);_.Z([_.H(),_.l("design:type",Object)],LE.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],LE);
_.b(LE,"ytd-hashtag-tile-renderer",function(){if(EI5!==void 0)return EI5;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return EI5=k},{mode:1});var Sw8;var ja=function(){return _.p.apply(this,arguments)||this};
_.y(ja,_.p);ja.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}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ja.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],ja);
_.b(ja,"ytd-sponsorships-alert-renderer",function(){if(Sw8!==void 0)return Sw8;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Sw8=k},{mode:1});var RSC;var Dp=function(){return _.p.apply(this,arguments)||this};
_.y(Dp,_.p);Dp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.mt.Object.defineProperties(Dp.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.Y("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.Y("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.Z([_.g(_.Ob),_.l("design:type",Object)],Dp.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],Dp.prototype,"ytdLockupBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Dp.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.Z([_.H({selector:_.XS}),_.l("design:type",Object)],Dp.prototype,"isGridViewEnabled",void 0);
_.Z([_.U("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Dp.prototype,"watchFeedBigThumbs",null);_.Z([_.U("isGridViewEnabled"),_.H({reflectToAttribute:!0}),_.l("design:type",String),_.l("design:paramtypes",[])],Dp.prototype,"thumbnailWidth",null);_.Z([_.H(),_.l("design:type",Object)],Dp.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Dp);
_.b(Dp,"ytd-compact-movie-renderer",function(){if(RSC!==void 0)return RSC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return RSC=k},{mode:1});var VRd;var NCj;var IfT=_.Mg("HTML_DIR")==="rtl",$G=function(){var k=_.p.apply(this,arguments)||this;k.engagementPanel=!1;k.maxLines=2;k.expandButtonOffset=0;k.showExpandButton=!1;k.isTruncated=!1;k.isExpanded=!1;k.currentSnippetType=2;k.alwaysShowExpandButton=!1;k.JSC$16566_lastWidth=NaN;k.observer=null;k.left=0;k.right=0;k.mid=0;k.longestSnippetLength=0;k.isFinalSnippet=!1;k.isFirstMutation=!1;k.isResetMutation=!1;k.OVERFLOW_THRESHOLD=5;return k};
_.y($G,_.p);_.I=$G.prototype;_.I.onClick=function(k){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.v9(_.vT(k)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;if((E=window.getSelection())==null||!E.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.I.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.I.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.I.updateTextOnSnippetTypeChange=function(){_.Y("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.I.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.I.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.dg(new _.LC("AttributedSnippet is empty when the description is not empty",this.text))};
_.I.mutationCallback=function(){if(this.observer!=null){var k=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var E=Math.floor(k*this.maxLines/8);this.setSnippetText(this.text,E);E!==0||this.attributedTextIsEmpty()||_.dg(new _.LC("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;k=k*this.maxLines/8;this.left=0;var S;this.right=Math.min(k*2,(S=(E=this.simpleText)==null?void 0:E.length)!=null?S: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)}}};
_.I.mutationObserve=function(k){var E=this;this.observer||(this.observer=new MutationObserver(function(){E.mutationCallback()}));
this.observer.observe(k,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.I.attached=function(){var k=this;_.JB(this,function(){k.resize()})};
_.I.isExpandedChanged=function(){_.Me(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.I.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)};
_.I.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var k="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((IfT?"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",k);this.snippetContainer.style.setProperty("mask-image",
k)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(IfT?"right":"left",this.expandButtonOffset+"px")};
_.I.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.I.setSnippetText=function(k,E){k||(k={});if(_.D0(k)){var S=Lh(k,E);S.attachmentRuns||S.commandRuns||S.decorationRuns||S.styleRuns||S.alignment||S.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:Lh(k,E),headerRuns:fMR(E,this.headerRuns)},this.currentSnippetType=0):_.dg(new _.LC("Tried to set snippet text when HTML element was null",k)):(this.plainSnippetText.textContent=uY(k.content||"",E),this.currentSnippetType=2)}else{a:{S=tee(k,E);if(S.runs){S=_.n(S.runs);for(var R=
S.next();!R.done;R=S.next())if(R=R.value,R.bold||R.deemphasize||R.italics||R.strikethrough||R.textColor||R.navigationEndpoint||_.W(R,ov)){S=!0;break a}}S=!1}S?this.formattedSnippetText?(this.formattedSnippetText.text=tee(k,E),this.currentSnippetType=1):_.dg(new _.LC("Tried to set snippet text when HTML element was null",k)):(this.plainSnippetText.textContent=uY(_.$n(k),E),this.currentSnippetType=2)}};
_.I.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.I.attributedTextIsEmpty=function(){var k=this.text;if(!_.D0(k))return!0;var E;return((E=k.content)==null?void 0:E.length)===0?!0:!1};
_.I.resize=function(k){if(this.snippetText){if(k===void 0?0:k)this.JSC$16566_lastWidth=NaN;var E=this.hostElement.offsetWidth;if(E!==this.JSC$16566_lastWidth&&!this.isExpanded)if(this.JSC$16566_lastWidth=E,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;k=0;var S,R;E=Math.min(E*this.maxLines/8*2,(R=(S=this.simpleText)==null?void 0:S.length)!=null?R:0)-1;for(S=0;k<=E;)R=Math.floor(k+(E-k)/2),this.setSnippetText(this.text,R),this.isOverflowing()?E=R-1:(k=R+1,S=R);this.setSnippetText(this.text,S);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.I.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.I.onExpandClick=function(){var k=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.Y("inline_expander_reset_focus_killswitch")||_.JB(this,function(){var E;((E=_.en().resolve(_.mz(_.tr)))==null?0:E.isKeyBoardInUse())&&_.VF(k.hostElement)});
_.Me(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.I.onCollapseClick=function(){this.collapse();_.Me(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.I.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.I.computeExpandButtonOffset=function(){var k=this.expandSizer;return k?IfT?k.offsetParent?k.offsetParent.offsetWidth-k.offsetWidth-k.offsetLeft:0:k.offsetLeft:0};
_.mt.Object.defineProperties($G.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.D0(this.text)?this.text.content||"":_.$n(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 _.D0(this.text)?!0:this.text&&_.Y("web_replace_formatted_with_attributed_string")&&cTb(this.text)?(this.text=_.y_(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}}});
$G.prototype.onTextChanged=$G.prototype.onTextChanged;$G.prototype.updateMaskAndExpandButtonOffset=$G.prototype.updateMaskAndExpandButtonOffset;$G.prototype.updateSnippetContainerMaxHeight=$G.prototype.updateSnippetContainerMaxHeight;$G.prototype.isExpandedChanged=$G.prototype.isExpandedChanged;$G.prototype.updateTextOnSnippetTypeChange=$G.prototype.updateTextOnSnippetTypeChange;$G.prototype.updateIsFormattedExpanded=$G.prototype.updateIsFormattedExpanded;$G.prototype.updateIsAttributedExpanded=$G.prototype.updateIsAttributedExpanded;
$G.prototype.onClick=$G.prototype.onClick;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],$G.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$G.prototype,"text",void 0);_.Z([_.H(),_.l("design:type",Array)],$G.prototype,"headerRuns",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],$G.prototype,"engagementPanel",void 0);_.Z([_.H(),_.l("design:type",Object)],$G.prototype,"maxLines",void 0);
_.Z([_.H(),_.l("design:type",String)],$G.prototype,"expandLabel",void 0);_.Z([_.H(),_.l("design:type",String)],$G.prototype,"collapseLabel",void 0);_.Z([_.H(),_.l("design:type",Object)],$G.prototype,"expandCommand",void 0);_.Z([_.H(),_.l("design:type",Object)],$G.prototype,"expandButtonOffset",void 0);_.Z([_.U("text"),_.l("design:type",String),_.l("design:paramtypes",[])],$G.prototype,"simpleText",null);
_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$G.prototype,"onClick",null);_.Z([_.U("text","isExpanded"),_.l("design:type",Object),_.l("design:paramtypes",[])],$G.prototype,"expandedText",null);_.Z([_.U("headerRuns","isExpanded"),_.l("design:type",Object),_.l("design:paramtypes",[])],$G.prototype,"expandedHeaderRuns",null);
_.Z([_.U("text"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],$G.prototype,"hasAttributedStringText",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],$G.prototype,"showExpandButton",void 0);_.Z([_.U("collapseLabel","isExpanded"),_.l("design:type",Object),_.l("design:paramtypes",[])],$G.prototype,"showCollapseButton",null);_.Z([_.H(),_.l("design:type",Object)],$G.prototype,"isTruncated",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],$G.prototype,"isExpanded",void 0);_.Z([_.H(),_.l("design:type",Boolean)],$G.prototype,"isAttributedExpanded",void 0);_.Z([_.il("isExpanded","hasAttributedStringText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$G.prototype,"updateIsAttributedExpanded",null);_.Z([_.H(),_.l("design:type",Boolean)],$G.prototype,"isFormattedExpanded",void 0);
_.Z([_.il("isExpanded","hasAttributedStringText"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$G.prototype,"updateIsFormattedExpanded",null);_.Z([_.H(),_.l("design:type",Number)],$G.prototype,"currentSnippetType",void 0);_.Z([_.U("currentSnippetType"),_.l("design:type",Object),_.l("design:paramtypes",[])],$G.prototype,"useAttributedSnippet",null);
_.Z([_.U("currentSnippetType"),_.l("design:type",Object),_.l("design:paramtypes",[])],$G.prototype,"useFormattedSnippet",null);_.Z([_.U("currentSnippetType"),_.l("design:type",Object),_.l("design:paramtypes",[])],$G.prototype,"usePlainSnippet",null);_.Z([_.H(),_.l("design:type",Object)],$G.prototype,"alwaysShowExpandButton",void 0);_.Z([_.il("currentSnippetType"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$G.prototype,"updateTextOnSnippetTypeChange",null);
_.Z([_.H(),_.l("design:type",Object)],$G.prototype,"attributedSnippetText",void 0);_.Z([_.JO("#snippet"),_.l("design:type",HTMLElement)],$G.prototype,"snippetContainer",void 0);_.Z([_.JO("#snippet-text"),_.l("design:type",HTMLElement)],$G.prototype,"snippetText",void 0);_.Z([_.JO("#plain-snippet-text"),_.l("design:type",HTMLElement)],$G.prototype,"plainSnippetText",void 0);_.Z([_.JO("#formatted-snippet-text"),_.l("design:type",Object)],$G.prototype,"formattedSnippetText",void 0);
_.Z([_.JO("#attributed-snippet-text"),_.l("design:type",Object)],$G.prototype,"attributedSnippetTextEl",void 0);_.Z([_.JO("#expand"),_.l("design:type",HTMLElement)],$G.prototype,"expandButton",void 0);_.Z([_.JO("#expand-sizer"),_.l("design:type",HTMLElement)],$G.prototype,"expandSizer",void 0);_.Z([_.ac("isExpanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$G.prototype,"isExpandedChanged",null);
_.Z([_.il("isExpanded","maxLines"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$G.prototype,"updateSnippetContainerMaxHeight",null);_.Z([_.il("isTruncated","showExpandButton","expandButtonOffset"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$G.prototype,"updateMaskAndExpandButtonOffset",null);
_.Z([_.ac("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$G.prototype,"onTextChanged",null);_.Z([_.D({is:"ytd-text-inline-expander",disableElementRegistration:!0})],$G);
_.b($G,"ytd-text-inline-expander",function(){if(NCj===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);NCj=k}k=NCj;return k},{mode:2});var fE=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return k};
_.y(fE,_.p);fE.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
fE.prototype.handleUpdateDescriptionAction=function(k){if(k=_.W(k,_.BwC))if(k.attributedDescription)this.set("data.attributedDescriptionBodyText",k.attributedDescription);else if(k.description){var E;((E=this.data)==null?0:E.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.y_(k.description)):this.set("data.descriptionBodyText",k.description)}};
_.mt.Object.defineProperties(fE.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var k,E;return!((k=this.data)==null||!k.attributedDescriptionBodyText)||!((E=this.data)==null||!E.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null?0:k.collapsedLineCount){var E;return(E=this.data)==null?void 0:E.collapsedLineCount}k=_.wO("web_watch_description_collapsed_default_lines",12);if(_.Y("ww_desc_line_page_size_ks"))return k;E=Math.round(_.iv().height*_.wO("web_watch_description_screen_height_percentage",.5)/20);return Math.max(E,k)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return(S=(k=this.data)==null?void 0:k.descriptionBodyText)!=null?S:(E=this.data)==null?void 0:E.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.sourceAttributions}}});
fE.prototype.panelContentVisibleChanged=fE.prototype.panelContentVisibleChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],fE.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fE.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],fE.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],fE.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],fE.prototype,"panelContentVisible",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],fE.prototype,"engagementPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],fE.prototype,"shortsPanel",void 0);_.Z([_.JO("#inline-expander"),_.l("design:type",Object)],fE.prototype,"inlineExpander",void 0);
_.Z([_.il("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fE.prototype,"panelContentVisibleChanged",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],fE.prototype,"hasDescriptionText",null);_.Z([_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],fE.prototype,"collapsedLines",null);
_.Z([_.U("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.l("design:type",Object),_.l("design:paramtypes",[])],fE.prototype,"descriptionText",null);_.Z([_.U("data","data.headerRuns"),_.l("design:type",Object),_.l("design:paramtypes",[])],fE.prototype,"headerRuns",null);_.Z([_.U("data","data.sourceAttributions"),_.l("design:type",Object),_.l("design:paramtypes",[])],fE.prototype,"sourceAttributions",null);
_.Z([_.D({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],fE);
_.b(fE,"ytd-expandable-video-description-body-renderer",function(){if(VRd!==void 0)return VRd;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return VRd=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var nIT;var i7C=_.f(function(k){var E=k.data;return _.e("factoid-renderer",{class:"ytwFactoidRendererHost"},_.e("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return E().accessibilityText}},_.e("span",{class:"ytwFactoidRendererValue"},_.e(_.VB,{text:function(){return E().value}})),_.e("span",{class:"ytwFactoidRendererLabel"},_.e(_.VB,{text:function(){return E().label}}))))},"bd");_.qi(i7C,"factoid-renderer",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;return _.e("upload-time-factoid-renderer",null,_.e(_.cp,{data:function(){return E().factoid}},{factoidRenderer:i7C}))},"cd"),"upload-time-factoid-renderer",{props:{data:_.sk}});_.qi(_.f(function(k){var E=k.data;return _.e("view-count-factoid-renderer",null,_.e(_.cp,{data:function(){return E().factoid}},{factoidRenderer:i7C}))},"dd"),"view-count-factoid-renderer",{props:{data:_.sk}});var vj=function(){var k=_.p.apply(this,arguments)||this;k.shortsPanel=!1;k.engagementPanel=!1;k.watchWhileSdp=_.Y("shorts_desktop_watch_while_sdp");return k};
_.y(vj,_.p);vj.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"}}}}};
_.mt.Object.defineProperties(vj.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var k;return(k=this.data)==null?void 0:k.channel}}});
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],vj.prototype,"componentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],vj.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],vj.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],vj.prototype,"shortsPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],vj.prototype,"engagementPanel",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],vj.prototype,"watchWhileSdp",void 0);_.Z([_.U("shortsPanel","engagementPanel","data.channel"),_.l("design:type",Object),_.l("design:paramtypes",[])],vj.prototype,"showChannelInfo",null);_.Z([_.D({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],vj);
_.b(vj,"ytd-video-description-header-renderer",function(){if(nIT!==void 0)return nIT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return nIT=k},{mode:1});var hSC;var bj=function(){return _.p.apply(this,arguments)||this};
_.y(bj,_.p);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],bj.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],bj.prototype,"noPadding",void 0);_.Z([_.H(),_.l("design:type",Object)],bj.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],bj);
_.b(bj,"ytd-list-item-view-model",function(){if(hSC!==void 0)return hSC;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return hSC=k},{mode:1});var JFz;var cFz;var mCp;var eSd;var Zp=function(){var k=_.p.apply(this,arguments)||this;k.adaptiveFullWidth=!1;k.modernButtons=_.Y("web_modern_buttons");k.buttonOverrides={style:"call-to-action",type:"filled"};k.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return k};
_.y(Zp,_.p);Zp.prototype.handleSetTimestamp_=function(k){this.data&&this.data.shortUrl&&(_.Cc(this.hostElement).querySelector("#share-url").value=k.isSet?_.ju(this.data.shortUrl,"t",k.timestamp):this.data.shortUrl)};
Zp.prototype.handleSignalActionCopyShareUrl_=function(k,E){(_.Y("killswitch_copy_link_target_check")||_.Cc(this.hostElement).querySelector("#copy-button")===E)&&this.copyUrlToClipboard()};
Zp.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Cc(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
Zp.prototype.computeStyle_=function(k){return k?k.toLowerCase().replace(/_/g,"-"):""};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Zp.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Zp.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.l("design:type",String)],Zp.prototype,"rendererStyle",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Zp.prototype,"adaptiveFullWidth",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Zp.prototype,"modernButtons",void 0);_.Z([_.H(),_.l("design:type",Object)],Zp.prototype,"buttonOverrides",void 0);_.Z([_.U_({is:"yt-copy-link-renderer",disableElementRegistration:!0})],Zp);
_.b(Zp,"yt-copy-link-renderer",function(){if(eSd===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;mCp===void 0&&(mCp=document.createElement("template"));var R=mCp;S.call(E,R.content.cloneNode(!0),k.content.firstChild);eSd=k}k=eSd;return k},{mode:2});_.B9("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var dI=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return k};
_.y(dI,_.p);_.I=dI.prototype;_.I.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.I.attached=function(){this.keyboardFocused=!1};
_.I.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var k=_.en().resolve(_.mz(_.tr));k&&(this.keyboardFocused=k.isKeyBoardInUse())}};
_.I.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.I.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}};
_.I.onChange_=function(){if(this.data){var k=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;k&&this.ytComponentBehavior.resolveCommand(k);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.I.handleUpdateToggleAction_=function(k){(k=_.W(k,D7p))&&this.data&&k.targetId==this.data.targetId&&this.set("data.toggled",k.toggled)};
_.I.toBoolean_=function(k){return!!k};
_.I.reset=function(){};
_.I.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("data-changed",this.data))};
_.I.updateDataToggledFromBinding=function(k){this.set("data.toggled",k.detail.value)};
dI.prototype.dataChangedForBinding=dI.prototype.dataChangedForBinding;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],dI.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],dI.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],dI.prototype,"ytRendererBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],dI.prototype,"data",void 0);_.Z([_.H({computed:"computeDescription_(data.*)"}),_.l("design:type",Object)],dI.prototype,"description_",void 0);_.Z([_.H({value:function(){return!!_.en().resolve(_.mz(_.tr))&&_.Y("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.l("design:type",Boolean)],dI.prototype,"useKeyboardFocused",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],dI.prototype,"keyboardFocused",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dI.prototype,"dataChangedForBinding",null);_.Z([_.U_({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],dI);
_.b(dI,"yt-toggle-form-field-renderer",function(){if(cFz===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;JFz===void 0&&(JFz=document.createElement("template"));var R=JFz;S.call(E,R.content.cloneNode(!0),k.content.firstChild);cFz=k}k=cFz;return k},{mode:2});var afj;var tRY;var sn=function(){var k=_.p.apply(this,arguments)||this;k.isDarkTheme=!1;k.isSearch=!1;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.noTopMargin=_.Y("kevlar_watch_no_top_margin");k.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 k};
_.y(sn,_.p);_.I=sn.prototype;_.I.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}}}}}};
_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.I.dataChanged=function(){var k=this.getSelectedIndex();if(k>0)this.selected=k;else{this.selected=0;var E,S;(E=this.ytScrollableChipCloudBehavior)==null||(S=E.reset)==null||S.call(E)}};
_.I.getSelectedIndex=function(){var k;if((k=this.data)==null||!k.chips)return-1;k=-1;for(var E,S=0;S<((E=this.data)==null?void 0:E.chips.length);S++){var R=void 0,V=void 0;if((R=this.data)==null?0:(V=R.chips[S].chipCloudChipRenderer)==null?0:V.isSelected){k=S;break}}return k};
_.I.onResize=function(){var k=this.ytScrollableChipCloudBehavior;_.JB(k,k.setContainerWidthDiff);k=this.ytScrollableChipCloudBehavior;_.JB(k,k.setButtonsState)};
_.I.onDarkModeToggledAction=function(k){this.isDarkTheme=k};
_.I.handleRelatedChipCommand=function(k,E){k=this.JSC$16593_chipsSelector.indexOf(E);k!==-1&&this.JSC$16593_chipsSelector.selectIndex(k)};
_.I.handleChipCloudChipSelectAction=function(k){k=this.JSC$16593_chipsSelector.indexOf(k);k>-1&&this.JSC$16593_chipsSelector.selectIndex(k)};
_.I.handleChipCloudChipDeselectAction=function(){var k=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16593_chipsSelector&&((k==null?0:k.continuationCommand)?_.Qw(this.hostElement,[k]):(k==null?0:k.searchEndpoint)?this.ytComponentBehavior.resolveCommand(k):k&&_.Ot(this.hostElement,[k],this.hostElement),this.JSC$16593_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.I.updateSelectedFromBinding=function(k){this.selected=k.detail.value};
sn.prototype.onResize=sn.prototype.onResize;sn.prototype.dataChanged=sn.prototype.dataChanged;sn.prototype.isSearchChanged=sn.prototype.isSearchChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],sn.prototype,"actionHandlerBehavior",void 0);
_.Z([_.g(_.KS),_.l("design:type",Object)],sn.prototype,"ironResizableBehavior",void 0);_.Z([_.g(),_.l("design:type",X_)],sn.prototype,"ytScrollableChipCloudBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],sn.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sn.prototype,"data",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],sn.prototype,"selected",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],sn.prototype,"isDarkTheme",void 0);_.Z([_.H({value:160}),_.l("design:type",Number)],sn.prototype,"scrollDistance",void 0);_.Z([_.H(),_.l("design:type",Object)],sn.prototype,"isSearch",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],sn.prototype,"darkerDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],sn.prototype,"noTopMargin",void 0);
_.Z([_.JO("#chips"),_.l("design:type",Object)],sn.prototype,"JSC$16593_chipsSelector",void 0);_.Z([_.il("isSearch"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sn.prototype,"isSearchChanged",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sn.prototype,"dataChanged",null);_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sn.prototype,"onResize",null);
_.Z([_.U_({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],sn);
_.b(sn,"yt-chip-cloud-renderer",function(){if(tRY===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;afj===void 0&&(afj=document.createElement("template"));var R=afj;S.call(E,R.content.cloneNode(!0),k.content.firstChild);tRY=k}k=tRY;return k},{mode:2});var TCY,wcC=function(){return TCY!==void 0?TCY:TCY=document.createElement("template")};
document.head.appendChild(wcC().content);var Pq8;var BCC=document.head,Ywp=BCC.appendChild,WK5;if(Pq8===void 0){var FKC=document.createElement("template");_.X(FKC,"");FKC.content.insertBefore(wcC().content.cloneNode(!0),FKC.content.firstChild);Pq8=FKC}WK5=Pq8;Ywp.call(BCC,WK5.content);var yFz=_.f(function(k){var E=k.data;return _.e("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.e("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.e("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.e(_.t,{cond:function(){return _.Hp(E().image)},
then:function(S){return _.e("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.e(_.vM,{data:S,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.e("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.e(_.VB,{text:function(){return E().title}})),_.e("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.e(_.VB,{text:function(){return E().subtitle}})))),_.e(_.t,{cond:function(){var S;
return(S=E())==null?void 0:S.hasBottomDivider},
then:function(){return _.e("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"ed");var oI4=_.f(function(k){var E=k.data;return _.e("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.e("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.e(_.cp,{data:function(){var S;return(S=E().offerPlanDetailsItem)!=null?S:[]}},{offerPlanDetailsItemViewModel:function(S){return _.e("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.e(yFz,{data:S.data}))}})),_.e("div",null,_.e(_.t,{cond:function(){return E().hasBottomDivider},
then:function(){return _.e("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.e("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.e("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.e("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.e("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"fd");var XcA=_.f(function(k){var E=k.data;k=_.n(_.yg(!1,void 0,"MrXxy"));var S=k.next().value,R=k.next().value,V=_.RZ(function(){R(!S());return!1}),N=function(){var h;
return(h=E().offerPlanDetailsContainer)!=null?h:[]};
return _.e("lp-complex-offer-card-details-view-model",null,_.e("div",null,_.e(_.t,{cond:function(){return S()},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.e("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":V,"aria-expanded":S},_.e(_.VB,{text:function(){return E().expandedTitle}})),_.e("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.e(_.cp,{data:N},{offerPlanDetailsContainerViewModel:function(h){return _.e("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.e(oI4,{data:h.data}))}})),_.e("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.e(_.VB,{text:function(){return E().legalText}})))},
else:function(){return _.e("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":V,"aria-expanded":S},_.e(_.VB,{text:function(){return E().collapsedTitle}}),_.e("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.e(_.i_,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"gd");var gI2=_.f(function(k){var E=k.data;return _.e("lp-complex-offer-card-option-view-model",null,_.e("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.e(_.t,{cond:function(){return E().topDividerText},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.e("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.e("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.e("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.e(_.VB,{text:function(){return E().topDividerText}}))))}}),_.e(_.t,{cond:function(){return E().description},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.e(_.VB,{text:function(){return E().description}}))}}),_.e(_.t,{cond:function(){return E().planPricingPrimary},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.e(_.VB,{text:function(){return E().planPricingPrimary}}))}}),_.e(_.t,{cond:function(){return E().planPricingSecondary},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.e(_.VB,{text:function(){return E().planPricingSecondary}}))}}),_.e(_.t,{cond:function(){return E().primaryButton},
then:function(){return _.e("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.e(_.cp,{data:function(){return E().primaryButton}},{buttonViewModel:function(S){return _.e(_.yB,{data:S.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"hd");var UCj=_.f(function(k){var E=k.data;var S=function(){var N;return((N=E())==null?void 0:N.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
k={};var R={},V={};return _.e("ytm-lp-complex-offer-card-view-model",null,_.e("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.e("div",{class:_.SQ((k.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=S,k),"ytmLpComplexOfferCardViewModelCardContainer")},_.e(_.t,{cond:function(){var N;return(N=E())==null?void 0:N.bannerText},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.e("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.e(_.VB,{text:function(){return E().bannerText}})))}}),_.e(_.t,{cond:function(){return _.Hp(E().logo)},
then:function(N){var h={};return _.e("div",{class:_.SQ((h.ytmLpComplexOfferCardViewModelLogoAlignLeft=S,h),"ytmLpComplexOfferCardViewModelLogo")},_.e(_.vM,{data:N,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.e("div",{class:_.SQ((R.ytmLpComplexOfferCardViewModelTitleAlignLeft=S,R),"ytmLpComplexOfferCardViewModelTitle")},_.e(_.VB,{text:function(){return E().title}})),_.e(_.t,{cond:function(){var N;
return(N=E())==null?void 0:N.subtitle},
then:function(){var N={};return _.e("div",{class:_.SQ((N.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=S,N),"ytmLpComplexOfferCardViewModelSubtitle")},_.e(_.VB,{text:function(){return E().subtitle}}))}}),_.e(_.t,{cond:function(){return E().planPricingPrimary},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.e(_.VB,{text:function(){return E().planPricingPrimary}}))}}),_.e(_.t,{cond:function(){return E().planPricingSecondary},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.e(_.VB,{text:function(){return E().planPricingSecondary}}))}}),_.e(_.t,{cond:function(){return E().purchaseButton},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.e(_.cp,{data:function(){return E().purchaseButton}},{buttonViewModel:function(N){return _.e(_.yB,{data:N.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.e(_.t,{cond:function(){var N;
return(N=E())==null?void 0:N.offerOptions},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.e(_.cp,{data:function(){return E().offerOptions}},{lpComplexOfferCardOptionViewModel:gI2}))}}),_.e("div",{class:_.SQ((V.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=S,V),"ytmLpComplexOfferCardViewModelLegalText")},_.e(_.VB,{text:function(){return E().legalText}})),_.e(_.t,{cond:function(){var N;
return(N=E())==null?void 0:N.offerCardDetails},
then:function(){return _.e("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.e(_.cp,{data:function(){return E().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:XcA}))}}))))},"id");var H7d=_.f(function(k){var E=k.data;var S=function(){var h;return((h=E())==null?void 0:h.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
k={};var R={},V={},N={};return _.e("ytm-lp-complex-offer-card-section-view-model",null,_.e("div",{class:_.SQ("ytmLpComplexOfferCardSectionViewModelHost")},_.e("div",{class:_.SQ((k.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=S,k),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.e("div",{class:_.SQ((R.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=S,R),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.e("h2",{class:_.SQ((V.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
S,V),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.e(_.VB,{text:function(){return E().title}}))),_.e(_.t,{cond:function(){var h;
return(h=E())==null?void 0:h.subtitle},
then:function(){var h={},J={};return _.e("div",{class:_.SQ((h.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=S,h),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.e("div",{class:_.SQ((J.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=S,J),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.e(_.VB,{text:function(){return E().subtitle}})))}}),_.e("div",{class:_.SQ((N.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=S,N),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.e(_.cp,{data:function(){var h;
return(h=E().offerPlans)!=null?h:[]}},{lpComplexOfferCardViewModel:function(h){return _.e("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.e(UCj,{data:h.data}))}})))))},"jd");var KKj=_.f(function(k){return _.e("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.e("div",{class:"ytLpCouponBannerViewModelIcon"},_.e(_.i_,{icon:function(){return"price_tag"}})),_.e("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.e("div",{class:"ytLpCouponBannerViewModelContent"},_.e("div",{class:"ytLpCouponBannerViewModelHeading"},_.e(_.VB,{text:function(){var E;
return(E=k.data())==null?void 0:E.title}})),_.e("div",{class:"ytLpCouponBannerViewModelBody"},_.e(_.VB,{text:function(){var E;
return(E=k.data())==null?void 0:E.subtitle}})))))},"kd");
KKj.idomCompat=!0;_.lj=Iw4.getInstance();var pcY;pcY=_.f(function(k){return _.e("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":k.shouldAriaHideContent},_.e("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:k.questionId},_.e(_.VB,{text:k.question})))},"ld");
_.AFz=_.f(function(k){var E=k.data;var S=k.themeOverride;k=_.n(_.yg(!1,void 0,"pNli2b"));var R=k.next().value,V=k.next().value;k=_.RZ(function(){V(!R());return!1});
var N=function(){return R()?"EXPAND_LESS":"EXPAND_MORE"},h=("faq-container"+_.HY(_.lj)).toString(),J="faq-question-and-answers-section-question"+_.HY(_.lj),m={},a={};
return _.e("faq-entry-view-model",null,_.e("div",{class:_.SQ("ytLpFaqEntryViewModelHost",(m.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return S==null?void 0:S().useDarkTheme},m))},_.e("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":k,role:"button","aria-expanded":R,"aria-labelledby":J.toString(),"tab-index":"0"},_.e(pcY,{question:function(){return E().question},
questionId:J,shouldAriaHideContent:!0}),_.e(_.t,{cond:function(){return R()!==void 0},
then:function(){return _.e("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.e(_.i_,{icon:N,ariaHidden:!0}),_.e("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.e("div",{class:_.SQ("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(a.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!R()},a))},_.e("div",{id:h},_.e(_.jw,{each:function(){return E().answers||[]}},function(T){return _.e("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.e(_.VB,
{text:T}))})))))},"md");
_.AFz.idomCompat=!0;var rFj=_.f(function(k){var E=k.data;var S=k.themeOverride;k={};return _.e("lp-faq-section-view-model",null,_.e("div",{class:_.SQ("yt-lp-faq-section-view-model",(k["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},k["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(S==null||!S().useDarkTheme)},k))},_.e("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.e(_.t,{cond:function(){return E().header},
then:function(R){return _.e("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.e(_.VB,{text:R}))}}),_.e("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.e(_.cp,{data:function(){return E().faqs}},{faqEntryViewModel:function(R){return _.e(_.AFz,{data:R.data,
themeOverride:S})}})),_.e("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.e(_.jw,{each:function(){return E().footers||[]}},function(R){return _.e(_.VB,{text:R})})),_.e(_.t,{cond:function(){return E().legal},
then:function(R){return _.e("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.e(_.VB,{text:R}))}}))))},"nd");
rFj.idomCompat=!0;var uxC=_.f(function(k){var E=k.data;var S=k.themeOverride;_.b$(function(){var h=E().gtmId;h&&_.$N(h,_.Mg("GL",""))});
var R={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var h,J,m;return(m=(h=E().logo)==null?void 0:(J=h.accessibilityData)==null?void 0:J.label)!=null?m:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},V=_.en().resolve(_.mz(_.jF)),N=function(){return V&&V()||(S==null?void 0:S().useDarkTheme)};
return _.e("lp-header-section-view-model",null,_.e("div",{class:function(){var h=E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",J=E().marginType==="LP_SECTION_MARGIN_TYPE_TOP",m=S==null?void 0:S().useDarkTheme,a=["lp-header-section-view-model"];h&&a.push("lp-header-section-view-model--ptc-layout-type");J&&a.push("lp-header-section-view-model__lp-header-section-margin");m&&a.push("lp-header-section-view-model--premium-force-dark-mode");return a.join(" ")}},_.e(_.t,{cond:function(){return E().logo},
then:function(){return _.e("div",null,_.e(_.t,{cond:N,then:function(){return _.e(_.t,{cond:function(){var h;return(h=E().logo)==null?void 0:h.imageDark},
then:function(h){return _.e(_.vM,Object.assign({},{data:h},R))}})},
else:function(){return _.e(_.t,{cond:function(){var h;return(h=E().logo)==null?void 0:h.imageLight},
then:function(h){return _.e(_.vM,Object.assign({},{data:h},R))}})}}))}}),_.e(_.t,{cond:function(){return E().title},
then:function(h){return _.e("div",{class:"lp-header-section-view-model__lp-header-title"},_.e(_.VB,{text:h}))}}),_.e("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.e(_.t,{cond:function(){return E().subtitles},
then:function(h){return _.e(_.jw,{each:h},function(J){return _.e("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.e(_.VB,{text:J}))})}})),_.e(_.t,{cond:function(){return E().additionalInfo},
then:function(h){return _.e("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.e(_.VB,{text:h}))}}),_.e("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.e(_.t,{cond:function(){return E().primaryButton},
then:function(h){return _.e("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.e(_.cp,{data:h},{buttonViewModel:_.yB}))}}),_.e(_.t,{cond:function(){return E().secondaryButton},
then:function(h){return _.e("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.e(_.cp,{data:h},{buttonViewModel:_.yB}))}})),_.e(_.t,{cond:function(){return E().otherOffersInfo},
then:function(h){return _.e("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.e(_.VB,{text:h}))}}),_.e("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.e(_.t,{cond:function(){return E().billingInfo},
then:function(h){return _.e(_.jw,{each:h},function(J){return _.e("div",null,_.e(_.VB,{text:J}))})}}))))},"od");
uxC.idomCompat=!0;var xC4=_.f(function(k){var E=k.data;var S=_.Zk(k.themeOverride,{useDarkTheme:!1});k={};k=_.SQ("ytmLpHeadlineSectionViewModelHost",(k.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return S().useDarkTheme},k));
return _.e("lp-headline-section-view-model",null,_.e("div",{class:k},_.e(_.t,{cond:function(){return E().title},
then:function(R){return _.e("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.e(_.VB,{text:R}))}}),_.e(_.t,{cond:function(){return E().subtitle},
then:function(R){return _.e("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.e(_.VB,{text:R}))}})))},"pd");var LKT=_.f(function(k){var E=k.data;var S=k.themeOverride;var R=_.en().resolve(_.mz(_.jF)),V=function(){return R&&R()||(S==null?void 0:S().useDarkTheme)},N=function(){var a,T;
var w=V()?(a=E().textBackgroundImage)==null?void 0:a.imageDark:(T=E().textBackgroundImage)==null?void 0:T.imageLight;return iJ1((w==null?void 0:w.sources)||[])},h=function(){var a,T;
return V()?(a=E().featureImage)==null?void 0:a.imageDark:(T=E().featureImage)==null?void 0:T.imageLight},J=function(){return E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},m=function(){var a,T;
return V()?(a=E().logo)==null?void 0:a.imageDark:(T=E().logo)==null?void 0:T.imageLight};
return _.e("ytm-lp-large-feature-section-view-model",null,_.e("div",{class:function(){var a=E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",T=E().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",w=(E().index||0)%2===1,P=S==null?void 0:S().useDarkTheme,B=["yt-lp-large-feature-section-view-model"];a?B.push("yt-lp-large-feature-section-view-model--music-feature-type"):T?B.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):w||B.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
P&&B.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return B.join(" ")}},_.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.e(_.t,{cond:h,
then:function(){return _.e(_.vM,{data:function(){return h()},
alt:function(){var a,T,w;return(w=(a=E().featureImage)==null?void 0:(T=a.accessibilityData)==null?void 0:T.label)!=null?w:""},
contentMode:J})}})),_.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var a;return((a=N())==null?0:a.url)?"background-image: url("+_.ZF(N().url)+");":""}},_.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.e(_.t,{cond:m,
then:function(){return _.e(_.vM,{data:function(){return m()},
alt:function(){var a,T,w;return(w=(a=E().logo)==null?void 0:(T=a.accessibilityData)==null?void 0:T.label)!=null?w:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.e(_.t,{cond:function(){return E().eyebrowText},
then:function(){return _.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.e(_.VB,{text:function(){return E().eyebrowText}}))}}),_.e(_.t,{cond:function(){return E().title},
then:function(){return _.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.e(_.VB,{text:function(){return E().title}}))}}),_.e(_.t,{cond:function(){return E().subtitles},
then:function(){return _.e("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.e(_.jw,{each:function(){return E().subtitles||[]}},function(a){return _.e(_.VB,{text:a})}))}})))))},"qd");
LKT.idomCompat=!0;var jId=_.f(function(k){return _.e("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.e("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.e(_.i_,{icon:function(){var E;return(E=k.data())==null?void 0:E.iconType},
className:function(){var E;switch((E=k.data())==null?void 0:E.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 E;return((E=k.data())==null?void 0:E.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.e("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.e(_.VB,{text:function(){var E;
return(E=k.data())==null?void 0:E.text},
className:function(){var E;return((E=k.data())==null?void 0:E.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"rd");var DC8=_.f(function(k){k=_.dJ(k,{config:void 0,themeOverride:void 0});var E=k.data,S=k.config,R=k.themeOverride;k={};k=_.SQ("ytmLpOfferCardOptionViewModelHost",(k.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var J;return(J=R())==null?void 0:J.useDarkTheme},k));
var V=_.RZ(function(){var J,m;(J=S())==null||(m=J.handleRadioButtonClick)==null||m.call(J,E());return!1}),N=function(){var J;
return(J=S())==null?void 0:J.shouldDisplayRadioButton},h=function(){var J;
return(J=E().featureListItems)!=null?J:[]};
return _.e("ytm-lp-offer-card-option-view-model",null,_.e("div",{class:k,"on:click":_.RZ(function(){if(N()){var J,m;(J=S())==null||(m=J.handleRadioButtonClick)==null||m.call(J,E())}return!1})},_.e(_.t,{cond:N,
then:function(){return _.e("div",null,_.e("input",{type:"radio","on:click":V,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var J;return!((J=S())==null||!J.isOptionSelected)}}))}}),_.e("div",null,_.e("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.e(_.VB,{text:function(){return E().eyebrowText}})),_.e("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.e(_.VB,
{text:function(){return E().subtitle}})),_.e(_.t,{cond:function(){return h().length>0},
then:function(){return _.e("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.e(_.cp,{data:h},{lpFeatureListItemViewModel:jId}))}}),_.e("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.e(_.VB,{text:function(){return E().description}})))))},"sd");
DC8.idomCompat=!0;var $CC=_.f(function(k){var E=k.data;var S=k.themeOverride;k=_.n(_.IZ(function(){var N,h=(N=E().offerOptions)==null?void 0:N[0];return _.W(h,KyY)||{}}));
var R=k.next().value,V=k.next().value;k={};return _.e("ytm-lp-offer-card-view-model",null,_.e("div",{class:_.SQ("ytmLpOfferCardViewModelHost",(k.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(S==null||!S().useDarkTheme)},k))},_.e("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.e(_.t,{cond:function(){return E().titleIconType},
then:function(){return _.e("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.e(_.i_,{icon:function(){var N;return((N=E().titleIconType)==null?void 0:N.toString())||""}}))}}),_.e("div",{class:"ytmLpOfferCardViewModelTitleText"},_.e(_.VB,{text:function(){return E().title}})),_.e(_.cp,{data:function(){return E().titleBadge}},{badgeViewModel:function(N){return _.e("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.e(_.t7,{data:N.data}))}})),_.e("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.e(_.cp,{data:function(){return E().offerOptions}},{lpOfferCardOptionViewModel:function(N){var h=N.data;
return _.e(_.tj,null,_.e("div",{class:"ytmLpOfferCardViewModelDivider"}),_.e(DC8,{data:h,config:function(){var J;return{shouldDisplayRadioButton:(E().offerOptions||[]).length>1,isOptionSelected:h().id===((J=R())==null?void 0:J.id),handleRadioButtonClick:function(m){return void V(m)}}},
themeOverride:S}))}})),_.e("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.e(_.cp,{data:function(){var N;
return(N=R())==null?void 0:N.purchaseButtonOverride}},{buttonViewModel:_.yB}))))},"td");
$CC.idomCompat=!0;var ffT=_.f(function(k){var E=k.data;var S=k.themeOverride;k={};k=_.SQ("ytmLpOfferCardSectionViewModelHost",(k.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var R;return S==null?void 0:(R=S())==null?void 0:R.useDarkTheme},k));
return _.e("ytm-lp-offer-card-section-view-model",null,_.e("div",{class:k},_.e(_.t,{cond:function(){return E().title!==void 0},
then:function(){return _.e("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.e("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.e(_.VB,{text:function(){return E().title}})),_.e(_.t,{cond:function(){return E().subtitle},
then:function(){return _.e("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.e(_.VB,{text:function(){return E().subtitle}}))}}))}}),_.e("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.e(_.cp,{data:function(){return E().offerCards}},{lpOfferCardViewModel:function(R){return _.e("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.e($CC,{data:R.data,
themeOverride:S}))}})),_.e(_.t,{cond:function(){return E().footer},
then:function(){return _.e("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.e(_.VB,{text:function(){return E().footer}}))}})))},"ud");var vIY=_.f(function(k){var E=k.data;return _.e("lp-offer-table-cell-content-view-model",null,_.e("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.e(_.D_,null,_.e(_.xk,{when:function(){return E().title}},function(){return _.e(_.VB,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return E().title}})}),_.e(_.xk,{when:function(){return E().subTitle}},function(){return _.e(_.VB,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return E().subTitle}})}),_.e(_.xk,{when:function(){return E().featureDescription}},function(){return _.e(_.VB,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return E().featureDescription}})}),_.e(_.xk,{when:function(){return E().description}},function(){return _.e(_.VB,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return E().description}})}),_.e(_.xk,{when:function(){return E().iconType}},function(){return _.e("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.e(_.i_,{icon:function(){return E().iconType.toString()}}))}),_.e(_.xk,{when:function(){return E().purchaseButton}},function(){return _.e(_.cp,{data:function(){return E().purchaseButton}},{buttonViewModel:function(S){return _.e("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.e(_.yB,
{data:S.data}))}})}),_.e(_.xk,{when:function(){return E().note}},function(){return _.e(_.VB,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return E().note}})}),_.e(_.xk,{when:function(){return E().featureDetail}},function(){return _.e(_.VB,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return E().featureDetail}})}),_.e(_.xk,{when:function(){return E().badge}},function(){return _.e(_.cp,{data:function(){return E().badge}},{badgeViewModel:_.t7})}))))},"vd");
vIY.idomCompat=!0;var b7p=_.f(function(k){var E=k.data;return _.e("lp-offer-table-cell-view-model",null,_.e("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(E().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;"}}},_.e(_.cp,{data:function(){return E().contents}},{lpOfferTableCellContentViewModel:vIY})))},
"wd");
b7p.idomCompat=!0;var Z7T=_.f(function(k){var E=k.data;var S=k.lpTableIsFirstRow;var R=k.lpTableIsLastRow;var V=function(){return(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},N=function(){return(S==null?0:S())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(R==null?0:R())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.e("ytm-lp-offer-table-row-view-model",null,_.e("div",{class:"ytLpOfferTableRowViewModelHost"},_.e(_.cp,{data:function(){return E().rowHeaderCell}},{lpOfferTableCellViewModel:function(h){return _.e("div",{class:V},_.e(b7p,{data:h.data}))}}),_.e(_.cp,{data:function(){return E().contentCells}},{lpOfferTableCellViewModel:function(h){return _.e("div",{class:N},_.e(b7p,{data:h.data}))}})))},"xd");
Z7T.idomCompat=!0;var dCC=_.f(function(k){var E=k.data;var S=k.themeOverride;var R=_.en().resolve(_.mz(_.jF)),V=function(){return _.W(E().logo,Oyz)||{}};
k={};return _.e("ytm-lp-offer-table-section-view-model",null,_.e("div",{class:"ytLpOfferTableViewModelHost"},_.e(_.t,{cond:function(){var N,h;return R&&R()||(S==null?0:S().useDarkTheme)?(N=V())==null?void 0:N.imageDark:(h=V())==null?void 0:h.imageLight},
then:function(N){return _.e(_.vM,{data:N,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var h,J,m;return(m=(h=V())==null?void 0:(J=h.accessibilityData)==null?void 0:J.label)!=null?m:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.e(_.VB,{text:function(){return E().subtitle}})),_.e(_.t,{cond:function(){return E().disclaimers},
then:function(N){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.e(_.jw,{each:N},function(h){return _.e("div",null,_.e(_.VB,{text:h}))}))}}),_.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.e(_.cp,{data:function(){return E().rows}},{lpOfferTableRowViewModel:function(N,h){return _.e(Z7T,{data:N.data,
lpTableIsFirstRow:function(){return h()===0},
lpTableIsLastRow:function(){return h()===E().rows.length-1}})}})),_.e("div",{class:_.SQ((k.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return E().hasFooterBackground},k))},_.e(_.t,{cond:function(){return E().footer},
then:function(){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.e(_.VB,{text:function(){return E().footer}}))}}),_.e(_.t,{cond:function(){return E().footerTitle},
then:function(){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.e(_.VB,{text:function(){return E().footerTitle}}))}}),_.e(_.t,{cond:function(){return E().footerDescription},
then:function(){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.e(_.VB,{text:function(){return E().footerDescription}}))}}),_.e(_.t,{cond:function(){return E().footerDescriptions},
then:function(N){return _.e("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.e(_.jw,{each:N},function(h){return _.e("div",null,_.e(_.VB,{text:h}))}))}}))))},"yd");
dCC.idomCompat=!0;var sIA=_.f(function(k){var E=k.data;var S=k.themeOverride;var R=_.en().resolve(_.mz(_.jF)),V=function(){var J;return S==null?void 0:(J=S())==null?void 0:J.useDarkTheme},N=function(){var J,m;
return R&&R()||V()?(J=E().image)==null?void 0:J.imageDark:(m=E().image)==null?void 0:m.imageLight};
k={};k=_.SQ("ytmLpSmallFeatureSectionViewModelHost",(k.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=V,k));var h=function(){var J,m,a;return(a=(J=E().image)==null?void 0:(m=J.accessibilityData)==null?void 0:m.label)!=null?a:""};
return _.e("ytm-lp-small-feature-section-view-model",{class:k},_.e(_.t,{cond:function(){return N()&&!I31},
then:function(){return _.e("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.e(_.vM,{data:function(){return N()},
alt:h,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.e("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.e("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.e(_.t,{cond:function(){return E().title},
then:function(J){return _.e(_.VB,{text:J})}})),_.e("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.e(_.VB,{text:function(){return E().description}}))))},"zd");
sIA.idomCompat=!0;var lf2=_.f(function(k){var E=k.data;var S=k.themeOverride;k={};return _.e("ytm-lp-small-feature-section-group-view-model",null,_.e("div",{class:_.SQ("ytmLpSmallFeatureSectionGroupViewModelHost",(k.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(S==null||!S().useDarkTheme)},k))},_.e("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.e(_.cp,{data:function(){return E().smallFeatures}},{lpSmallFeatureSectionViewModel:function(R){return _.e("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.e(sIA,{data:R.data,
themeOverride:S}))}}))))},"Ad");
lf2.idomCompat=!0;_.qi(_.f(function(k){var E=k.data;var S=function(){return E().forcedTheme==="USER_INTERFACE_THEME_DARK"},R=function(){return E().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},V=function(){var h="",J,m;
var a=_.en().resolve(_.mz(_.jF));a=S()||(a==null?0:a())?(J=E().themedImageViewModel)==null?void 0:J.imageDark:(m=E().themedImageViewModel)==null?void 0:m.imageLight;(J=iJ1((a==null?void 0:a.sources)||[]))&&J.url&&(h=R()?"background-image: linear-gradient(to bottom, transparent, "+(E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.ZF(J.url)+");":"background-image: url("+_.ZF(J.url)+");");return h},N=function(){return{useDarkTheme:S()}};
k={};return _.e("yt-section-group-view-model",null,_.e("div",{class:_.SQ("yt-lp-section-group-view-model",(k["yt-lp-section-group-view-model--premium-force-dark-mode"]=S,k["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return E().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},k))},_.e(_.t,{cond:function(){return V().length},
then:function(){var h={};return _.e("div",{class:_.SQ("yt-lp-section-group-view-model__bg-image",(h["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=R,h)),style:V})}}),_.e("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.e(_.cp,{data:function(){return E().sections}},{lpFaqSectionViewModel:function(h){return _.e(rFj,{data:h.data,
themeOverride:N})},
lpHeaderSectionViewModel:function(h){return _.e(uxC,{data:h.data,themeOverride:N})},
lpHeadlineSectionViewModel:function(h){return _.e(xC4,{data:h.data,themeOverride:N})},
lpLargeFeatureSectionViewModel:function(h){return _.e(LKT,{data:h.data,themeOverride:N})},
lpOfferCardSectionViewModel:function(h){return _.e(ffT,{data:h.data,themeOverride:N})},
lpComplexOfferCardSectionViewModel:function(h){return _.e(H7d,{data:h.data})},
lpOfferTableSectionViewModel:function(h){return _.e(dCC,{data:h.data,themeOverride:N})},
lpSmallFeatureSectionGroupViewModel:function(h){return _.e(lf2,{data:h.data,themeOverride:N})},
lpCouponBannerViewModel:function(h){return _.e(KKj,{data:h.data})}}))))},"Bd"),"yt-section-group-view-model",{props:{data:_.Nq}});var PxI=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.MRj=_.f(function(k){function E(){if(PxI.has(k.data().displayType)){var a=!R(),T;if((T=k.disableDeselection)==null||!T.call(k)||a){k.data().selected=a;T=Object.assign({},h(),{selected:a});J(T);var w;(w=k.callback)==null||w.call(k,T,a)}}}
var S=_.VH("chip-view-model"),R=function(){var a,T;return!!(((a=k.selected)==null?void 0:a.call(k))!==void 0?(T=k.selected)==null?0:T.call(k):h().selected)},V=_.n(_.IZ(k.data)),N=V.next().value;
V=V.next().value;var h=N,J=V,m=_.iK(wPR,function(){return k.data().chipEntityKey||""});
return _.e("chip-view-model",{class:"ytChipViewModelHost",el:S},_.e(Xb8,{data:function(){var a,T=Object.assign({},h(),{selected:R()}),w=m(),P=(a=k.disableDeselection)==null?void 0:a.call(k);a:switch(T.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":a=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":a=3;break a;default:a=0}return{text:(w==null?void 0:w.text)||T.text,state:T.disabled?1:T.selected?0:2,type:a,onTap:B2t(T,S,E,P),
accessibilityLabel:T.accessibilityLabel||T.text}}}))},"Cd");
_.MRj.idomCompat={callbacks:{callback:!0}};_.qwj=_.f(function(k){var E=_.iK(T21,function(){var h;return(h=k.data())==null?void 0:h.chipBarStateEntityKey}),S=function(){return k.data().disableDeselection},R=_.n(_.IZ(function(){var h;
if(((h=E())==null?void 0:h.selectedIndex)!=void 0)return E().selectedIndex;var J,m;h=_.n(((J=k.data())==null?void 0:(m=J.chips)==null?void 0:m.entries())||[]);for(J=h.next();!J.done;J=h.next()){J=_.n(J.value);m=J.next().value;J=J.next().value;var a=void 0;if((a=_.W(J,_.zg))==null?0:a.selected)return m}return-1})),V=R.next().value,N=R.next().value;
return _.e("chip-bar-view-model",{class:_.SQ("ytChipBarViewModelHost",k.className),role:"tablist"},_.e(_.cp,{data:function(){return k.data().chips}},{chipViewModel:function(h,J){return _.e("div",{class:"ytChipBarViewModelChipWrapper"},_.e(_.MRj,{data:h.data,
selected:function(){return J()===V()},
callback:function(m,a){m=!!a;a=J();N(m?a:-1);var T,w=(T=k.data())==null?void 0:T.chipBarStateEntityKey;w&&m&&_.bl(_.mj("chipBarStateEntity",w,{key:w,selectedIndex:a}))},
disableDeselection:k.disableDeselection||S}))}}))},"Dd");_.qi(_.qwj,"chip-bar-view-model",{props:{data:_.sk,className:_.sk,disableDeselection:_.sk}});_.zS2=_.f(function(k){var E=k.data;k={};return _.e("divider-view-model",{class:_.SQ("dividerViewModelHost",(k.dividerViewModelInsetThinPadding=function(){return E().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},k))},_.e("div",{class:_.SQ("dividerViewModelBaseDivider",function(){return YKt(E().dividerStyle)}),
style:_.nU({"background-color":function(){return E().backgroundColor?_.HT(E().backgroundColor):void 0}})}))},"Ed");
_.zS2.idomCompat=!0;_.qi(_.zS2,"divider-view-model",{props:{data:_.Nq}});var Nh=new Map,Vx=new Map,yil=0,I3;var pPt=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],uW1={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var QId,O7C;QId=function(k){return function(E){return function(){return(E==null?void 0:E())!==void 0?String(E())+k:void 0}}};
_.MD=QId("px");O7C=QId("s");var G3C=B5I(function(k){return k.targetGroupId}).useUpdatableData;_.kw5=_.f(function(k){function E(kb){return function(){var TI=K().numItemsPerGridRow,a1=kb()*TI;TI=a1+TI;var Ah,th;return(th=(Ah=R().contents)==null?void 0:Ah.slice(a1,TI))!=null?th:[]}}
var S=_.dJ(k,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),R=S.data,V=S.layoutContainerWidth,N=S.shouldUseOwnContainerSize,h=S.marginSettings,J=kKC(),m=_.n(G3C(function(){var kb,TI;return{targetGroupId:(kb=R().targetingContext)==null?void 0:(TI=kb.targetGroupId)==null?void 0:TI[0]}})).next().value;
S=_.n(_.yg(!0,void 0,"f25nob"));var a=S.next().value,T=S.next().value,w=function(){var kb,TI=(kb=_.W(R().showMoreButton,_.qz))==null?void 0:kb.trackingParams;TI&&_.FE(_.JV(),TI);T(!1)},P=function(){var kb,TI=(kb=_.W(R().showLessButton,_.qz))==null?void 0:kb.trackingParams;
TI&&_.FE(_.JV(),TI);T(!0)};
S=_.VH("grid-shelf-view-model");var B=_.Lvi(S,{canHaveZeroSize:!1}),F=function(){var kb;return(kb=R().contentAspectRatio)!=null?kb:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},K=_.HX(function(){var kb=_.Uf({containerWidth:N()&&B.width()>0?B.width()||V():V(),
sizing:"EXTRA_COMPACT",marginSettings:h(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:kb.maxContainerWidth,numItemsPerGridRow:kb.numItems,contentPadding:N()?kb.margin:kb.contentMargin,itemWidth:kb.itemWidth,itemMargin:kb.gutter/2}},void 0,"b3gcJf"),r=function(){if(R().enableVerticalExpansion){if(a())return x();
var kb,TI,a1=(TI=(kb=R().contents)==null?void 0:kb.length)!=null?TI:0;return Math.ceil(a1/K().numItemsPerGridRow)}return K().numItemsPerGridRow<=2?2:1},x=function(){var kb;
return Math.ceil(((kb=R().minCollapsedItemCount)!=null?kb:1)/K().numItemsPerGridRow)},L=function(){return R().enableVerticalExpansion&&R().showLessButton&&!a()&&r()>x()},q=function(){var kb,TI;
return R().enableVerticalExpansion&&R().showMoreButton&&a()&&((TI=(kb=R().contents)==null?void 0:kb.length)!=null?TI:0)>K().numItemsPerGridRow*x()},M=function(){return!L()},d=function(){return!q()},z={};
return _.e("grid-shelf-view-model",{class:_.SQ("ytGridShelfViewModelHost",k.className,(z.ytGridShelfViewModelHostHasBottomButton=function(){return L()||q()},z.ytGridShelfViewModelHostIsDismissed=function(){var kb,TI=(kb=m())!=null?kb:{};
kb=TI.behavior;var a1=TI.isDismissed,Ah=TI.stamperContextTargetId;TI=TI.stamperIndex;if(!(_.Y("mweb_see_fewer_shorts_group_dismissal")&&a1&&kb&&Ah))return!1;var th;a1=J;for(var He,ve,Xm=((He=a1)==null?0:He.targetId)?_.dt((ve=a1)==null?void 0:ve.targetId):void 0;((th=a1)==null?0:th.parent)&&Xm!==Ah;)a1=a1.parent,ve=He=void 0,Xm=((He=a1)==null?0:He.targetId)?_.dt((ve=a1)==null?void 0:ve.targetId):void 0;th=Xm===Ah?a1:void 0;if(!th)return!1;var U5;Ah=th==null?void 0:(U5=th.stamperIndex)==null?void 0:
U5.call(th);return kb==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||kb==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Ah!=null&&TI!=null&&Ah>TI},z)),
el:S,style:_.nU({"margin-left":(0,_.MD)(function(){return K().contentPadding}),
"margin-right":(0,_.MD)(function(){return K().contentPadding})})},_.e(_.t,{cond:function(){return _.W(R().header,n82)},
then:function(kb){return _.e(_.gI,{data:kb,disableHorizontalPadding:!0})}}),_.e("div",null,_.e(_.jw,{each:function(){return Array(r())}},function(kb,TI){return _.e(Cq8,{className:k.className,
items:E(TI),responsiveGridShelfLayout:K,contentAspectRatio:F})})),_.e("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.e(_.cp,{data:function(){return R().showMoreButton}},{buttonViewModel:function(kb){return _.e("div",{hidden:d},_.e(_.yB,{data:kb.data,
onClick:w}))}}),_.e(_.cp,{data:function(){return R().showLessButton}},{buttonViewModel:function(kb){return _.e("div",{hidden:M},_.e(_.yB,{data:kb.data,
onClick:P}))}})))},"Gd");
_.kw5.idomCompat=!0;var Cq8=_.f(function(k){var E=k.items;var S=k.responsiveGridShelfLayout;var R=k.contentAspectRatio;k=k.className;var V=_.VH("div");FvC(V,function(){a:{var h=V.value;for(var J=E(),m=[],a=0;a<J.length;a++){var T=_.W(J[a],LyC);if(!T||T==null||!T.inlinePlayerData){h=null;break a}var w=h.children.item(a);if(!w){h=null;break a}m.push({thumbnailElement:w,videoData:T})}h={gridVideoPreviewData:{gridItems:m}}}return h});
var N=(0,_.MD)(function(){return-S().itemMargin});
return _.e("div",{el:V,class:_.SQ("ytGridShelfViewModelGridShelfRow",k),style:_.nU({"margin-left":N,"margin-right":N})},_.e(_.cp,{data:E,replacementWrapper:function(h){return _.e(EMA,{responsiveGridShelfLayout:S},h)}},{shortsLockupViewModel:function(h){return _.e(EMA,{responsiveGridShelfLayout:S},_.e(Kv4,{data:h.data,
aspectRatio:function(){return R()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.Y("mweb_enable_one_line_title_on_shorts")?1:_.Y("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(h){return _.e(EMA,{responsiveGridShelfLayout:S},_.e(_.y5,{data:h.data}))}}))},"Hd"),EMA=_.f(function(k){return _.e("div",{style:_.nU({width:(0,_.MD)(function(){return k.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+k.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},k.children)},"Id");
_.kw5.idomCompat=!0;_.qi(_.kw5,"grid-shelf-view-model",{props:{data:_.Nq,layoutContainerWidth:_.Nq,shouldUseOwnContainerSize:_.Nq,marginSettings:_.Nq,className:_.Nq}});_.SLd=_.f(function(k){var E=_.n(_.yg(!1,void 0,"FVl30c")),S=E.next().value,R=E.next().value;E={};return _.e("yt-alert-banner-view-model",{class:_.SQ("ytAlertBannerViewModelHost",k.className,function(){var V;a:switch((V=k.data())==null?void 0:V.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":V="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":V="ytAlertBannerViewModelWarning";break a;default:V="ytAlertBannerViewModelInformational"}return V},(E.ytAlertBannerViewModelDismissed=
S,E.ytAlertBannerViewModelFullbleed=k.fullbleed,E.ytAlertBannerViewModelNarrow=k.narrow,E.ytAlertBannerViewModelIsInRichGrid=k.isInRichGrid,E))},_.e(_.t,{cond:function(){var V;
return!((V=k.data())==null?0:V.hideIcon)},
then:function(){return _.e("div",{class:"ytAlertBannerViewModelIcon"},_.e(_.i_,{icon:function(){return"info_circle"}}))}}),_.e("div",{class:"ytAlertBannerViewModelOuterContainer"},_.e("div",{class:"ytAlertBannerViewModelContainer"},_.e("div",{class:"ytAlertBannerViewModelContent"},_.e("div",{class:"ytAlertBannerViewModelHeading"},_.e(_.VB,{text:function(){var V;
return(V=k.data())==null?void 0:V.heading}})),_.e("div",{class:"ytAlertBannerViewModelBody"},_.e(_.VB,{text:function(){var V;
return(V=k.data())==null?void 0:V.body}})))),_.e(_.cp,{data:function(){var V;
return(V=k.data())==null?void 0:V.actionButton}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.e(_.cp,{data:function(){var V;
return(V=k.data())==null?void 0:V.dismissButton}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var N;((N=k.data())==null?0:N.disableLocalDismissBehavior)||R(!0)}})}}))},"Jd");_.qi(_.SLd,"yt-alert-banner-view-model",{props:{data:_.Nq,fullbleed:_.Nq,narrow:_.Nq,isInRichGrid:_.Nq,className:_.Nq}});var RT8;_.VxY=_.f(function(k){return _.e("basic-content-view-model",{class:_.SQ("ytBasicContentViewModelHost",_.Zk(k.className))},_.e(_.t,{cond:function(){return k.data().headline},
then:function(E){return _.e("div",{class:"ytBasicContentViewModelHeadline"},_.e(_.VB,{text:E}))}}),_.e(_.jw,{each:function(){return k.data().paragraphs||[]},
keyBy:"INDEX"},function(E){return _.e("div",{class:"ytBasicContentViewModelParagraph"},_.e(_.t,{cond:function(){var S=E();return!!(S.header||S.customHeader||S.headline)},
then:function(){return _.e(RT8,{paragraph:E})}}),_.e(_.t,{cond:function(){return E().asset||E().text},
then:function(){return _.e("div",{class:"ytBasicContentViewModelParagraphContent"},_.e(_.t,{cond:function(){return E().asset},
then:function(S){return _.e("div",{class:"ytBasicContentViewModelParagraphAsset"},_.e(_.cp,{data:S},{contentPreviewImageViewModel:_.TQ}))}}),_.e(_.t,{cond:function(){return E().text},
then:function(S){return _.e("div",{class:"ytBasicContentViewModelParagraphText"},_.e(_.VB,{text:S}))}}))}}))}))},"Kd");
RT8=_.f(function(k){var E=k.paragraph;return _.e(_.tj,null,_.e(_.t,{cond:function(){return E().headline},
then:function(S){return _.e(_.VB,{text:S,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.e(_.cp,{data:function(){return E().header||E().customHeader}},{sectionHeaderViewModel:function(S){return _.e(_.gI,{data:S.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ld");var NaY=_.f(function(k){function E(){var B,F;m((F=(B=V)==null?void 0:B.isKeyBoardInUse())!=null?F:!1)}
function S(){m(!1)}
function R(){var B;return J()?(B=k.focusedClassName)==null?void 0:B.call(k):""}
var V=_.en().resolve(_.mz(_.tr)),N=_.n(_.yg(!1,void 0,"zbdw0d")),h=N.next().value;N=N.next().value;var J=h,m=N,a=function(){var B,F;return((B=k.toggleable)==null?0:B.call(k))?(F=k.toggled)==null?void 0:F.call(k):void 0},T=_.RZ(function(B){var F,K=(F=k.command)==null?void 0:F.call(k);
K&&_.en().resolve(_.t3).resolveCommand(K);var r;(r=k.onClick)==null||r.call(k,B)}),w=_.RZ(E),P=_.RZ(S);
return _.e(_.t,{cond:function(){var B;if(B=k.command){B=k.command();B=Bol(B);var F=B.href;B=!(!B.navigatingCommand||!F)}return B},
then:function(){return _.e(_.P5,Object.assign({},{command:k.command,style:k.style,ariaDescribedby:k.ariaDescribedby,ariaHidden:k.ariaHidden,ariaLabel:k.ariaLabel,ariaLabelledby:k.ariaLabelledby,ariaSelected:k.ariaSelected,disabled:k.disabled,dir:k.dir,tabIndex:k.tabIndex,target:k.target,title:k.title,onClick:k.onClick},{className:_.SQ("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",k.className,function(){return R()}),
onFocusin:E,onFocusout:S,ariaCurrent:function(){var B,F;return(F=(B=k.ariaCurrent)==null?void 0:B.call(k))!=null?F:a()}}),k.children)},
else:function(){return _.e("button",{"on:click":T,"on:focusin":w,"on:focusout":P,class:_.SQ("ytButtonOrAnchorHost","ytButtonOrAnchorButton",k.className,function(){return R()}),
style:k.style,"aria-describedby":k.ariaDescribedby,"aria-hidden":k.ariaHidden,"aria-label":k.ariaLabel,"aria-labelledby":k.ariaLabelledby,"aria-pressed":a,dir:k.dir,disabled:k.disabled,tabindex:k.tabIndex,title:k.title},k.children)}})},"Md");var I4d=_.f(function(k){k=_.dJ(k,{disabled:!1});var E=k.active,S=k.disabled;k={};k=_.SQ("ytSwitchShapeTrack",(k.ytSwitchShapeTrackActive=function(){return E()},k.ytSwitchShapeTrackDisabled=function(){return S()},k));
var R={};R=_.SQ("ytSwitchShapeKnob",(R.ytSwitchShapeKnobActive=function(){return E()},R));
return _.e("switch-shape",{class:"ytSwitchShapeHost"},_.e("div",{class:k}),_.e("div",{class:R}))},"Nd");var nM5=_.f(function(k){var E=_.dJ(k,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),S=E.data;k=E.className;var R=E.handleOnTapEventInParent,V=E.parentActive,N=E.onTap;E=_.n(_.IZ(function(){var P;return(P=V())!=null?P:S().switchedOnByDefault||!1}));
var h=E.next().value,J=E.next().value,m=function(){return S().isDisabled},a=_.VH("button");
E=_.RZ(function(P){return P.key==="Enter"?(P.preventDefault(),a.value.click(),!1):!0});
var T=_.RZ(function(P){if(S().handleOnTapEventInParent||R())return!0;if(m())return!1;if(N)return N(P),!0;Dum(S(),h(),P);J(!h());return!1}),w={};
w=_.SQ("ytSwitchButtonViewModelButton",(w.ytSwitchButtonViewModelTappable=function(){return!m()},w));
return _.e("switch-button-view-model",{class:_.SQ("ytSwitchButtonViewModelHost",k)},_.e("button",{el:a,class:w,"on:click":T,"on:keydown":E,"aria-label":function(){return h()?S().a11yLabelSwitchedOn:S().a11yLabelSwitchedOff},
"aria-checked":h,"aria-disabled":m,role:"switch"},_.e(I4d,{active:h,disabled:m})))},"Od");var iN4=_.f(function(k){var E=k.data;var S=k.isLeading;var R=k.hideSelectionTextChevron;var V=k.isToggled;var N=function(){return S()?E().leadingImage:E().trailingImage},h=function(){a:switch(E().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var T="expand_more";
break a;default:T="chevron_right"}return T};
k={};var J=_.SQ("yt-list-item-view-model__image-container",(k["yt-list-item-view-model__leading"]=S,k["yt-list-item-view-model__trailing"]=function(){return!S()},k)),m=_.SQ("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
k={};var a=_.SQ("yt-list-item-view-model__accessory",(k["yt-list-item-view-model__leading"]=S,k["yt-list-item-view-model__trailing"]=function(){return!S()},k));
return _.e(_.t,{cond:function(){var T=E(),w=S();return!!(w&&(T.leadingImage||T.leadingAccessory)||!w&&(T.trailingImage||T.trailingButton||T.trailingButtons||T.selectionText))},
then:function(){return _.e(_.tj,null,_.e(_.t,{cond:N,then:function(T){return _.e("div",{class:J,"aria-hidden":"true"},_.e(_.vM,{data:T,alt:"",preserveWidth:!0,preserveHeight:!0,className:m,isToggled:V}))}}),_.e(_.t,{cond:function(){return S()&&E().leadingAccessory},
then:function(){return _.e("div",{class:J},_.e(_.cp,{data:function(){return E().leadingAccessory}},{avatarViewModel:function(T){return _.e(_.dw,{data:T.data,
avatarButtonCustomClassName:m})},
collectionThumbnailViewModel:function(T){return _.e(yoj,{data:T.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.e(_.t,{cond:function(){return!S()&&E().trailingButton},
then:function(){return _.e("div",{class:"yt-list-item-view-model__button-container"},_.e(_.cp,{data:function(){return E().trailingButton}},{buttonViewModel:function(T){return _.e(_.yB,{data:T.data,
className:a})}}))}}),_.e(_.t,{cond:function(){var T;
return!S()&&((T=E().trailingButtons)==null?void 0:T.buttons)},
then:function(){return _.e("div",{class:"yt-list-item-view-model__button-container"},_.e(_.cp,{data:function(){var T;return(T=E().trailingButtons)==null?void 0:T.buttons}},{buttonViewModel:function(T){return _.e(_.yB,{data:T.data,
className:a})},
accountLinkButtonViewModel:function(T){return _.e(mcY,{data:T.data,className:a})},
switchButtonViewModel:function(T){return _.e(nM5,{data:T.data,className:a})},
subscribeButtonViewModel:function(T){return _.e(_.dR,{data:T.data,isOverlay:!1,animateWidth:!1,className:a})},
toggleButtonViewModel:function(T){return _.e(_.bL,{data:T.data,className:a})}}))}}),_.e(_.t,{cond:function(){return!S()&&!!E().selectionText},
then:function(){return _.e(_.tj,null,_.e(_.VB,{text:function(){return E().selectionText},
className:_.SQ("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.e(_.t,{cond:function(){return!(R==null?0:R())},
then:function(){return _.e(_.i_,{icon:h,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Pd");var hTd=_.f(function(k){var E=k.data;return _.e(_.t,{cond:function(){return E().title||E().subtitle},
then:function(){return _.e("div",{class:"yt-list-item-view-model__text-wrapper"},_.e(_.t,{cond:function(){return E().title},
then:function(S){return _.e("div",{class:"yt-list-item-view-model__title-wrapper"},_.e(_.VB,{text:S,className:"yt-list-item-view-model__title"}))}}),_.e(_.t,{cond:function(){return E().subtitle},
then:function(S){return _.e(_.VB,{text:S,className:"yt-list-item-view-model__subtitle"})}}))}})},"Qd");var J_2=_.f(function(k){var E=k.data;var S=k.hideSelectionTextChevron;var R=k.TrailingAccessory;var V=k.isToggled;var N=k.disabled;var h=k.isSelectItem;var J=k.isCompact;var m=k.inPopup;var a=k.disableHorizontalPadding;var T=k.isTappableWithoutSelect;var w=k.useButtonOrAnchor;var P=k.onTap;var B=function(){return _.e(hTd,{data:E,onTap:P,useButtonOrAnchor:w,isTappableWithoutSelect:T,isToggled:V})};
k={};return _.e("div",{class:_.SQ("yt-list-item-view-model__label",(k["yt-list-item-view-model__container"]=function(){return!(h==null?0:h())},k["yt-list-item-view-model__container--disabled"]=function(){return!!E().isDisabled||!(N==null||!N())},k["yt-list-item-view-model__container--has-subtitle"]=function(){return!!E().subtitle},k["yt-list-item-view-model__container--compact"]=J,k["yt-list-item-view-model__container--tappable"]=T,k["yt-list-item-view-model__container--in-popup"]=m,k["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(a==null?void 0:a())&&!(h==null?0:h())},k))},_.e(iN4,{data:E,
isLeading:!0,hideSelectionTextChevron:S,isToggled:V}),_.e(_.t,{cond:function(){return(w==null?void 0:w())&&(T==null?void 0:T())},
then:function(){return _.e(NaY,{command:function(){return _.Yh(E().rendererContext)},
onClick:P,className:"yt-list-item-view-model__button-or-anchor",toggleable:V!==void 0,toggled:V},_.e(B,null))},
else:function(){return _.e(B,null)}}),_.e(_.t,{cond:function(){return!!R},
then:function(){return _.e("div",{class:"yt-list-item-view-model__trailing"},R&&_.e(R,null))},
else:function(){return _.e(iN4,{data:E,isLeading:!1,hideSelectionTextChevron:S,isToggled:V})}}))},"Rd");var msz=_.f(function(k){var E=_.dJ(k,{checked:!1});k=E.name;var S=E.onChange,R=E.onClick,V=E.checked,N=E.labelRenderable,h=E.hasLeadingLabel,J=E.labelClass,m=E.isCompact,a=E.selectElementClass;E=E.disableHorizontalPadding;var T="checkbox"+_.HY(_.lj),w=_.RZ(function(F){R==null||R(F);return!1}),P=_.RZ(function(F){S==null||S(F);
return!1}),B={};
return _.e("checkbox-shape",null,_.e("label",{class:_.SQ("ytCheckboxShapeHost",J,(B.ytCheckboxShapeHostCompact=m,B.ytCheckboxShapeDisableHorizontalPadding=E,B))},_.e("input",{class:"ytCheckboxShapeInput",id:T,checked:V,name:k,type:"checkbox","prop:checked":V,"on:change":P,"on:click":w}),_.e(_.t,{cond:function(){return!(h==null?0:h())},
then:function(){return _.e(c_z,{isLeading:!0,selectElementClass:a})}}),_.e(_.t,{cond:function(){return!!N},
then:function(){return _.e("div",{class:"ytCheckboxShapeLabel"},N==null?void 0:N())}}),_.e(_.t,{cond:h,
then:function(){return _.e(c_z,{isLeading:!1,selectElementClass:a})}})))},"Sd");
msz.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var c_z=_.f(function(k){var E=k.selectElementClass;k={};return _.e("div",{class:_.SQ("ytCheckboxShapeCheckbox",E,(k.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(E==null?0:E())},k)),
"aria-hidden":"true"},_.e(_.i_,{icon:_.Y("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.e(_.i_,{icon:_.Y("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Td");_.qD=_.f(function(k){var E=k.name;var S=k.onChange;var R=k.onClick;var V=k.checked;var N=k.labelRenderable;var h=k.useCheckIcon;var J=k.hasLeadingLabel;var m=k.labelClass;var a=k.isCompact;var T=k.selectElementClass;var w=k.ariaLabel;k=k.className;var P="radio"+_.HY(_.lj),B=_.VH("input"),F=_.RZ(function(z){B.value.checked=!(V==null||!V());S==null||S(z);return!1}),K=_.RZ(function(z){R==null||R(z);
return!1}),r=_.RZ(function(z){_.Y("enable_ios_webview_radio_button_responsiveness")&&(z.preventDefault(),B.value.click())}),x=_.n(_.yg(!1,void 0,"TcCZlf")),L=x.next().value,q=x.next().value;
x=_.RZ(function(){var z;((z=_.en().resolve(_.mz(_.tr)))==null?0:z.isKeyBoardInUse())&&q(!0)});
var M=_.RZ(function(){q(!1)}),d={};
return _.e("radio-shape",{class:_.SQ("yt-radio-shape",k)},_.e("input",{el:B,class:"yt-radio-shape__input",id:P,"prop:checked":V,name:E,type:"radio","on:change":F,"on:click":K,"aria-label":w,"on:focusin":x,"on:focusout":M}),_.e("label",{class:_.SQ("yt-radio-shape__label-container",m,(d["yt-radio-shape--compact"]=a,d["yt-radio-shape__label-container--keyboard-focused"]=L,d)),for:P,"on:click":r},_.e(_.t,{cond:function(){return!(J==null?0:J())},
then:function(){return _.e(eT8,{checked:V,useCheckIcon:h,isLeading:!0,selectElementClass:T})}}),_.e(_.t,{cond:function(){return!!N},
then:function(){return _.e("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(w==null?0:w())?"true":"false"}},N==null?void 0:N())}}),_.e(_.t,{cond:J,
then:function(){return _.e(eT8,{checked:V,useCheckIcon:h,isLeading:!1,selectElementClass:T})}})))},"Ud");
_.qD.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var eT8=_.f(function(k){var E=k.useCheckIcon;var S=k.selectElementClass;k=function(){return(E==null?0:E())?"CHECK":_.Y("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var R={};return _.e("div",{class:_.SQ("yt-radio-shape__radio",S,(R["yt-radio-shape__radio--check-icon"]=E,R["yt-radio-shape__radio--radio-default-style"]=function(){return!(S==null?0:S())},R)),
"aria-hidden":"true"},_.e(_.i_,{icon:k}),_.e(_.i_,{icon:k,active:function(){return!(E==null?0:E())}}))},"Vd");_.zy=_.f(function(k){var E=k.data;var S=k.isMenuItem;var R=k.isCompact;var V=k.onTap;var N=k.trailingAccessory;var h=k.hideSelectionTextChevron;var J=k.disabled;var m=k.inPopup;var a=k.disableHorizontalPadding;var T=k.isOverlay;var w=k.isToggled;var P=k.ariaLabel;k=k.ariaPressed;var B=!_.Y("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),F=_.gb(function(Xm){return vQ1(E(),Xm)}),K=function(){return _.Y("enable_web_shorts_captions_language_command")||_.Y("web_shorts_audio_track_picker")||
E().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},r=function(){return K()?Object.assign({},E(),F().data):E()},x=_.ZkI(function(){return r().rendererContext}),L=function(){return!(r().isSelected===void 0||!r().selectionStyle||r().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},q=function(){return(_.Wp(r().rendererContext)||V)&&!L()},M={},d=_.SQ("yt-list-item-view-model__container",(M["yt-list-item-view-model__container--tappable"]=function(){return _.Wp(r().rendererContext)||
L()},M["yt-list-item-view-model__container--compact"]=R,M["yt-list-item-view-model__container--in-popup"]=m,M["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(a==null?void 0:a())&&L()},M)),z=function(){return r().leadingImage||r().leadingAccessory},kb=_.SQ("yt-list-item-view-model__image-container",function(){return z()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
M=_.RZ(function(Xm){var U5;if(U5=B)U5=r().selectionStyle,U5=U5==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||U5==="LIST_ITEM_SELECTION_STYLE_RADIO"||U5==="LIST_ITEM_SELECTION_STYLE_DEFAULT";U5||ve||V==null||V(Xm)});
var TI=_.fub(),a1=_.n(_.yg(!1,void 0,"q9Dj4b")),Ah=a1.next().value,th=a1.next().value,He=function(){return _.e(J_2,{data:r,hideSelectionTextChevron:h,TrailingAccessory:N,isToggled:w,disabled:J,isSelectItem:L,isCompact:R,inPopup:m,disableHorizontalPadding:a,isTappableWithoutSelect:q,useButtonOrAnchor:ve,onTap:V})},ve=_.Y("web_button_or_anchor_list_item");
a1={};return _.e("yt-list-item-view-model",{el:_.Z0(_.FX(function(){return r().rendererContext},void 0,void 0,ve?["A".toString(),
"BUTTON".toString()]:[]),ve&&V?bkh(V):void 0,ksA(function(){return q==null?void 0:q()},{focusin:function(){var Xm;
((Xm=_.en().resolve(_.mz(_.tr)))==null?0:Xm.isKeyBoardInUse())&&th(!0)},
focusout:function(){th(!1)}})),
class:_.SQ("yt-list-item-view-model",(a1["yt-list-item-view-model--is-overlay"]=T,a1["yt-list-item-view-model--keyboard-focused"]=Ah,a1["yt-list-item-view-model--hidden"]=function(){return K()?F().isHidden:!1},a1)),
role:function(){return(S==null?0:S())?"menuitem":"listitem"},
tabindex:function(){var Xm=q();Xm=ve?void 0:V||Xm?0:void 0;return Xm},
"on:keydown":TI,"on:click":M,"aria-label":function(){var Xm;return(P==null?void 0:P())||((Xm=x())==null?void 0:Xm.label)},
"aria-pressed":k},_.e(_.t,{cond:L,then:function(){return _.e(_.D_,null,_.e(_.xk,{when:function(){return r().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.e(msz,{labelRenderable:He,
isCompact:R,checked:function(){return r().isSelected},
hasLeadingLabel:function(){return!!z()},
labelClass:d,selectElementClass:kb,disableHorizontalPadding:a,onClick:B?V:void 0})}),_.e(_.xk,{when:function(){return r().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.e(_.qD,{labelRenderable:He,
isCompact:R,checked:function(){return r().isSelected},
hasLeadingLabel:function(){return!!z()},
labelClass:d,selectElementClass:kb,onClick:B?V:void 0})}),_.e(_.xk,{when:function(){return r().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.e(_.qD,{labelRenderable:He,
isCompact:R,checked:function(){return r().isSelected},
hasLeadingLabel:function(){return!!z()},
labelClass:d,selectElementClass:kb,useCheckIcon:!0,onClick:B?V:void 0})}),_.e(_.LV,null,He))},
else:He}))},"Wd");
_.zy.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.Qy=_.f(function(k){var E=function(){return k.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.e("yt-linear-layout-view-model",{class:_.SQ("ytLinearLayoutViewModelHost",function(){a:switch(k.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var S="ytLinearLayoutViewModelHorizontal";break a;default:S="ytLinearLayoutViewModelVertical"}return S},function(){var S=k.data().linearLayoutContainerConfiguration;
return S?[duC(S==null?void 0:S.flexDirection),skj(S==null?void 0:S.justifyContent),lNC(S==null?void 0:S.alignItems)].join(" "):""})},_.e(_.cp,{data:function(){return k.data().items}},{lockupViewModel:function(S){return _.e("div",{style:_.nU({"margin-bottom":function(){return E()?void 0:"8px"},
"margin-right":function(){return E()?"8px":void 0}})},_.e(_.y5,{data:S.data,
containerType:function(){return E()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return E()?void 0:"33%"}}))},
basicContentViewModel:function(S){return _.e("div",{style:_.nU({"margin-bottom":function(){return E()?void 0:"8px"},
"margin-right":function(){return E()?"8px":void 0}})},_.e(_.VxY,{data:S.data}))},
linearLayoutViewModel:function(S){return _.e("div",{style:_.nU({"margin-bottom":function(){return E()?void 0:"8px"},
"margin-right":function(){return E()?"8px":void 0}})},_.e(_.Qy,{data:S.data}))},
thumbnailViewModel:function(S){return _.e("div",{style:_.nU({width:function(){return"100%"},
"margin-bottom":function(){return E()?void 0:"8px"},
"margin-right":function(){return E()?"8px":void 0}})},_.e(_.cW,{data:S.data}))},
descriptionPreviewViewModel:function(S){return _.e("div",{style:_.nU({"margin-bottom":function(){return E()?void 0:"8px"},
"margin-right":function(){return E()?"8px":void 0}})},_.e(_.Xv,{data:S.data}))},
listItemViewModel:function(S){return _.e("div",{style:_.nU({"margin-bottom":function(){return E()?void 0:"8px"},
"margin-right":function(){return E()?"8px":void 0}})},_.e(_.zy,{data:S.data}))}}))},"Xd");_.qi(_.Qy,"yt-linear-layout-view-model",{props:{data:_.Nq}});_.On=_.f(function(k){var E=k.data;var S=k.callback;var R=k.selectionBehavior;var V=k.disableChipsScrollAnimation;var N=_.Nm("div");k=_.n(_.yg(!0,void 0,"aUEsOc"));var h=k.next().value,J=k.next().value;k=_.n(_.yg(!1,void 0,"V0aKld"));var m=k.next().value,a=k.next().value,T=!1,w=0;_.vC(function(){J(F());a(K())});
k=_.n(_.IZ(function(){var kb={};return E().autoselectedChipIndex!=null?(kb[E().autoselectedChipIndex]=!0,kb):{}}));
var P=k.next().value,B=k.next().value,F=function(){var kb=N.value;return kb==null||kb.scrollLeft-1<=0},K=function(){var kb=N.value;
return kb==null?!1:kb.scrollLeft+1>=(kb==null?NaN:kb.scrollWidth)-(kb==null?NaN:kb.clientWidth)},r=function(){return E().isHorizontallyScrollable},x=function(kb){N.value!=null&&(_.Mg("HTML_DIR")==="rtl"&&(kb=-kb),N.value.scrollBy({left:kb,
behavior:(V==null?0:V())?"instant":"smooth"}))},L=function(){x(-320)},q=function(){x(320)},M=_.RZ(function(kb){T=!0;
w=kb.clientX}),d=_.RZ(function(kb){if(T){kb=kb.clientX;
var TI=kb-w;w=kb;var a1;(a1=N.value)==null||a1.scrollBy({left:-TI})}}),z=_.RZ(function(){var kb=F(),TI=K();
kb!==h()&&J(kb);TI!==m()&&a(TI)});
_.cn("pointerup",function(){T&&(T=!1)});
return _.e("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.e(_.BW,{contentId:function(){return E().contentId},
useModernStyle:!0},function(){var kb={},TI={};return _.e("div",null,_.e(_.t,{cond:function(){return E().title},
then:function(){return _.e("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.e("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return E().title}),_.e(_.cp,{data:function(){return E().overflowButton}},{buttonViewModel:_.yB}))}}),_.e("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.e(_.t,{cond:function(){return E().previousButton},
then:function(){var a1={};return _.e("div",{class:_.SQ("ytChipsShelfViewModelLeftArrowContainer",(a1.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return h()},a1))},_.e(_.cp,{data:function(){return E().previousButton}},{buttonViewModel:function(Ah){return _.e(_.yB,{data:Ah.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:L})}}))}}),_.e("div",{el:N,
"on:pointerdown":M,"on:pointermove":d,"on:scroll":z,class:_.SQ("ytChipsShelfViewModelChipsScrollContainer",(kb.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=r,kb))},_.e("div",{class:_.SQ("ytChipsShelfViewModelChipsContainer",(TI.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=r,TI.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,TI)),role:"tablist"},_.e(_.cp,{data:function(){return E().contents}},{chipViewModel:function(a1,Ah){return _.e("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.e(_.MRj,{data:a1.data,
callback:function(th,He){var ve=Ah(),Xm,U5=(Xm=R==null?void 0:R())!=null?Xm:0;U5===1||U5===2?(Xm={},B((Xm[ve]=He,Xm))):(Xm={},B(Object.assign({},P(),(Xm[ve]=He,Xm))));S==null||S(th,He,ve)},
disableDeselection:function(){return(R==null?void 0:R())===1},
selected:function(){return!!P()[Ah()]}}))}}))),_.e(_.t,{cond:function(){return E().nextButton},
then:function(){var a1={};return _.e("div",{class:_.SQ("ytChipsShelfViewModelRightArrowContainer",(a1.ytChipsShelfViewModelRightArrowContainerIsHidden=m,a1))},_.e(_.cp,{data:function(){return E().nextButton}},{buttonViewModel:function(Ah){return _.e(_.yB,{data:Ah.data,
className:"ytChipsShelfViewModelRightArrow",onClick:q})}}))}})))}))},"Zd");
_.On.idomCompat={callbacks:{callback:!0}};_.qi(_.On,"chips-shelf-view-model",{props:{data:_.Nq,callback:_.sk,selectionBehavior:_.Nq,disableChipsScrollAnimation:_.Nq}});_.qi(_.f(function(k){return _.e("yt-comment-filter-context-view-model",{class:_.SQ("ytCommentFilterContextHost",k.className)},_.e(_.VB,{text:function(){return k.data().text}}))},"$d"),"yt-comment-filter-context-view-model",{props:{data:_.Nq,
className:_.sk}});_.a4d=_.f(function(k){var E=k.data;var S=k.onTap;var R=k.onSwitch;var V=k.overrideDisabled;k=k.disableHorizontalPadding;var N=_.n(_.IZ(function(){var B;return((B=fNb(w()))==null?void 0:B.switchedOnByDefault)||!1})),h=N.next().value,J=N.next().value;
N=_.n(_.yg(!1,void 0,"ZHBkbb"));var m=N.next().value,a=N.next().value,T=_.Y("web_button_or_anchor_list_item"),w=function(){var B;if(!(B=E().switchButton)){var F=E();B=V==null?void 0:V();F={switchOnCommand:F.switchOnCommand,switchOffCommand:F.switchOffCommand,switchedOnByDefault:F.switchedOnByDefault,isDisabled:F.isDisabled,handleOnTapEventInParent:!T,a11yLabelSwitchedOn:F.a11yLabelSwitchedOn,a11yLabelSwitchedOff:F.a11yLabelSwitchedOff};B!==void 0&&(F.isDisabled=B);B={switchButtonViewModel:F}}return B},
P=function(B){var F=fNb(w());
!F||F.isDisabled||E().ignoreTapUntilCommandCompletes&&m()||(S==null||S(B),Dum(F,h(),B,E().ignoreTapUntilCommandCompletes,a),J(!h()),R==null||R(h()))};
return _.e("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.e(_.zy,{data:function(){return{title:E().title,subtitle:E().attributedSubtitle,leadingImage:E().leadingImage,leadingAccessory:E().leadingAccessory,isDisabled:E().isDisabled}},
onTap:P,isToggled:T?h:void 0,trailingAccessory:function(){return _.e(_.cp,{data:w},{switchButtonViewModel:function(B){return _.e(nM5,{data:B.data,parentActive:h,handleOnTapEventInParent:!!S&&!T,onTap:T?P:void 0})}})},
disableHorizontalPadding:k}))},"ae");var txd=_.f(function(k){var E=_.n(_.IZ(function(){var V,N;return!!((V=k.data())==null?0:(N=V.initialState)==null?0:N.isToggled)})),S=E.next().value,R=E.next().value;
E=_.RZ(function(){R(!S())});
return _.e("toggleable-list-item-view-model",{el:_.Z0(_.FX(function(){return k.data().rendererContext})),
class:_.SQ("toggleableListItemViewModelHost",k.className),"on:click":E},_.e(_.t,{cond:function(){if(S()){var V=k.data().toggledListItem;V=_.W(V,_.eq)}else V=k.data().defaultListItem,V=_.W(V,_.eq);return V},
then:function(V){return _.e(_.zy,{data:V,isToggled:S,ariaLabel:function(){var N=S()?k.data().toggledListItem:k.data().defaultListItem,h;N=(h=_.W(N,_.eq))==null?void 0:h.rendererContext;var J;return(J=_.W(N,_.n9))==null?void 0:J.label},
ariaPressed:function(){return S()}})}}))},"be");var Ta4=_.Vi("DOWNLOAD",{},"Download"),whT=_.Vi("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),PUC=_.Vi("RETRY",{},"Retry"),Bap=_.Vi("PAUSE_DOWNLOADING",{},"Pause downloading"),YLd=_.Vi("RESUME_DOWNLOAD",{},"Resume download"),Meh={text:Ta4,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},ir={text:whT,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},QkI={text:PUC,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
qKj={text:Bap,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},zLe={text:YLd,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var WeC=_.f(function(k){var E=function(){var J=k.data();J=_.Yh(J.rendererContext);var m;return(m=_.W(J,_.IE))==null?void 0:m.videoId},S=_.gb(function(J){var m=E(),a=Cxi(k.data());
return m?_.Xf(J,m):a?_.g8(J,a):"TRANSFER_STATE_UNKNOWN"}),R=_.iK(_.QAh,E),V=_.gb(function(J){return _.ZGe(J,E(),Cxi(k.data()))}),N=function(){return GEb(S(),R(),_.Yh(k.data().rendererContext),!!Cxi(k.data()))},h=function(){return V()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.e("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:h},_.e(_.t,{cond:function(){return!h()},
then:function(){return _.e(_.t,{cond:N,then:function(J){return _.e(_.jw,{each:J},function(m){return _.e(_.zy,{data:m,isCompact:k.isCompact,isMenuItem:k.isMenuItem,inPopup:k.inPopup,disableHorizontalPadding:k.disableHorizontalPadding})})}})}}))},"ce");
WeC.idomCompat=!0;_.Fe4=_.f(function(k){var E=k.data;var S=k.isCompact;var R=k.hideSelectionTextChevron;var V=k.inPopup;var N=k.isOverlay;var h=k.disableHorizontalPadding;var J=function(){return k8A(E())&&(V==null?void 0:V())};
k=_.RZ(function(a){if(V!=null&&V()&&_.Y("web_enable_arrow_key_navigation_in_dropdown")){var T=_.nbC(a.currentTarget),w=T.length;if(w!==0){var P=Array.prototype.indexOf.call(T,document.activeElement);switch(a.key){case "ArrowDown":a.preventDefault();var B;(B=T[(P+1)%w])==null||B.focus();break;case "ArrowUp":a.preventDefault();var F;(F=T[P===-1?w-1:(P-1+w)%w])==null||F.focus()}}}});
var m={};return _.e("yt-list-view-model",{class:_.SQ("ytListViewModelHost",(m.ytListViewModelHostKaiosSpatNav=I31&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",m.ytListViewModelCollectionThumbnailClass=function(){return Rnh(E())},m)),
role:function(){return J()?"menu":"list"},
style:_.nU({"max-height":function(){var a,T=(a=E())==null?void 0:a.visibleElementCount;if(T)return Rnh(E())?(T+.5)*48+"px":(T+.5)*40+"px"}}),
"on:keydown":k},_.e(_.cp,{data:function(){return E().listItems}},{listItemViewModel:function(a){return _.e(_.zy,{data:a.data,
isMenuItem:J,isCompact:S,hideSelectionTextChevron:R,inPopup:V,isOverlay:N,disableHorizontalPadding:h})},
toggleableListItemViewModel:function(a){return _.e(txd,{data:a.data})},
downloadListItemViewModel:function(a){return _.e(WeC,{data:a.data,isMenuItem:J,isCompact:S,inPopup:V,disableHorizontalPadding:h})},
switchListItemViewModel:function(a){return _.e(_.a4d,{data:a.data,disableHorizontalPadding:h})}}))},"de");
_.Fe4.idomCompat=!0;var y_Y=_.f(function(k){var E=k.data;var S=k.isOverlay;k={};return _.e("yt-course-perks-view-model",{class:_.SQ("ytwCoursePerksViewModelHost",(k.ytwCoursePerksViewModelHostOverlay=S,k))},_.e("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e("div",null,_.e(_.t,{cond:function(){return E().perks},
then:function(R){return _.e(_.Fe4,{data:function(){return{listItems:R()}},
isCompact:!0,isOverlay:S})}})))},"ee");_.qi(y_Y,"yt-course-perks-view-model",{props:{data:_.sk,isOverlay:_.sk}});_.qi(_.f(function(k){var E=k.data;return _.e("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.e("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.e(_.VB,{text:function(){return E().progressSummary}})),_.e("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.e("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.nU({width:function(){return E().progressPercentage*100+"%"}})})))},"fe"),"yt-course-progress-view-model",{props:{data:_.Nq}});var oM8=_.f(function(k){var E={};return _.e("yt-progress-view-model",{class:_.SQ("ytwProgressViewModelHost",(E.ytwProgressViewModelHostOverlay=_.Zk(k.isOverlay,!1),E))},_.e(_.t,{cond:function(){return k.data().progressSummary},
then:function(S){return _.e("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.e(_.VB,{text:S}))}}),_.e("div",{class:"ytwProgressViewModelHostProgressContainer"},_.e(_.t,{cond:function(){return k.data().leadingLabel},
then:function(S){return _.e("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.e(_.VB,{text:S}))}}),_.e("div",{class:"ytwProgressViewModelHostProgressBar"},_.e("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(k.data().progressPercentage||0)*100+"%"}}))))},"ge");var Gy=_.f(function(k){var E=k.starNumber;var S=k.data;var R=function(){var V;return((V=S())==null?void 0:V.rating)||0};
return _.e(_.t,{cond:function(){return E()},
then:function(V){return _.e(_.D_,null,_.e(_.xk,{when:function(){return R()>=V()-.25}},function(){return _.e("div",{class:"ytStarRatingViewModelHostStar"},_.e(_.i_,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.e(_.xk,{when:function(){return R()>=V()-.75}},function(){return _.e("div",{class:"ytStarRatingViewModelHostStar"},_.e(_.i_,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.e(_.LV,null,function(){return _.e("div",{class:"ytStarRatingViewModelHostStar"},_.e(_.i_,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"he"),Xhd=_.f(function(k){k=k.data;
return _.e("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.e(Gy,{starNumber:1,data:k}),_.e(Gy,{starNumber:2,data:k}),_.e(Gy,{starNumber:3,data:k}),_.e(Gy,{starNumber:4,data:k}),_.e(Gy,{starNumber:5,data:k}))},"ie");_.qi(_.f(function(k){var E=_.dJ(k,{}).data;return _.e("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.e("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.e(_.VB,{text:function(){var S;return(S=E())==null?void 0:S.title}})),_.e("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.e(_.t,{cond:function(){return E().starProgressViewModels},
then:function(S){return _.e("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.e(_.cp,{data:S},{progressViewModel:oM8}))}}),_.e("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.e("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.e(_.VB,{text:function(){var S;
return(S=E())==null?void 0:S.averageRatingLabel}})),_.e(_.t,{cond:function(){return E().zeroStateText},
then:function(S){return _.e("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.e(_.VB,{text:S}))}}),_.e(_.t,{cond:function(){return E().starRatingViewModel},
then:function(S){return _.e("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.e(_.cp,{data:S},{starRatingViewModel:Xhd}))}}),_.e("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.e(_.VB,{text:function(){var S;
return(S=E())==null?void 0:S.totalRatingsCountLabel}})))))},"je"),"yt-course-ratings-view-model",{props:{data:_.sk}});var gM4;gM4={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"}};_.Usd=_.f(function(k){var E=_.VH("yt-learning-journey-loader-view-model"),S=_.RE();_.vC(function(){requestAnimationFrame(function(){var V;(V=S.lottieEl)==null||V.addEventListener("DOMLoaded",function(){var N;(N=k.onLottieLoaded)==null||N.call(k)})});
var R=k.data().browseEndpoint;R&&_.AV(R)});
return _.e("yt-learning-journey-loader-view-model",{class:_.SQ("learningJourneyLoaderViewModelHost",k.className),"data-target-id":function(){var R;return((R=k.data)==null?void 0:R.call(k).targetId)||""},
el:E},_.e(_.KG,{className:_.SQ("learningJourneyLoaderViewModelLoader",k.className),animationName:function(){return gM4.animationConfig.name},
data:gM4,animationRef:S}))},"le");_.qi(_.Usd,"yt-learning-journey-loader-view-model",{props:{data:_.Nq,className:_.sk,onLottieLoaded:_.sk}});var Nlm=new Set,Vs1=null;var HNz=_.f(function(k){var E=void 0,S=function(){return k.data()},R=function(){return!!mO(JQ(S())).optionColor},V=_.n(_.yg(-1,void 0,"Oxve9b")),N=V.next().value,h=V.next().value,J=function(w){return S().correctAnswerIndex===w},m=function(){return N()!==-1};
V=_.n(_.yg("",void 0,"DZG7ze"));var a=V.next().value,T=V.next().value;return _.e("learning-journey-quiz-view-model",{class:_.SQ("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",k.className),style:_.nU({background:function(){return mO(JQ(S())).backgroundColor}})},_.e("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},a),_.e(_.t,{cond:function(){return!!S().video},
then:function(){return _.e("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.nU({background:function(){return mO(JQ(S())).videoBackgroundColor}})},_.e(_.cp,{data:function(){return S().video}},{lockupViewModel:function(w){return _.e(_.y5,{data:w.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.e("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.e("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.e("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.e(_.t,{cond:function(){return!!S().aiGeneratedQuizLabel},
then:function(){return _.e("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.e(_.VB,{text:function(){return S().aiGeneratedQuizLabel}}))}}),_.e("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.nU({"align-items":function(){return S().overflowMenu?"start":"center"}})},_.e("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.nU({"min-height":function(){return S().overflowMenu?"48px":"26px"}})},_.e("div",{class:"learningJourneyQuizYoututorText",
style:_.nU({color:function(){return mO(JQ(S())).primaryTextColor}})},_.e(_.VB,{text:function(){return S().questionHeaderText}})))),_.e("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.nU({color:function(){return mO(JQ(S())).secondaryTextColor}})},_.e(_.VB,{text:function(){var w=S();
return m()?w.explanationText:w.questionSubheaderText}}))),_.e("div",{role:"group",
class:_.SQ("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.e(_.jw,{each:function(){return S().optionsData||[]}},function(w,P){var B={};
return _.e("button",{class:_.SQ("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(B.learningJourneyQuizViewModelHostQuizHover=function(){return!m()},B.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=R,B.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return m()&&J(P())},B.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var F;
if(F=N()!==S().correctAnswerIndex)F=P(),F=N()===F;return F},B)),
"on:click":_.RZ(function(){if(m())return!1;h(P());var F,K;T(J(P())?((F=S().successTitle)==null?void 0:F.content)||"":((K=S().failureTitle)==null?void 0:K.content)||"");return!1}),
style:_.nU({background:"transparent"}),"aria-description":function(){var F,K;return m()?J(P())?(F=S().successTitle)==null?void 0:F.content:(K=S().failureTitle)==null?void 0:K.content:""},
"aria-disabled":m,el:_.Z0(function(F){_.hQ(271905,F,E,function(K){E=K})}),
"client-ve-type":271905},_.e("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.e(_.VB,{text:w.optionText}),_.e(_.t,{cond:function(){var F=P(),K;if(K=m())K=N()===F||J(F);return K},
then:function(){var F={};return _.e(_.i_,{className:_.SQ("learningJourneyQuizYoututorOptionIcon",(F.learningJourneyQuizViewModelHostQuizPulse=function(){return N()===S().correctAnswerIndex&&J(P())},F)),
size:24,icon:function(){return J(P())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.e(_.t,{cond:m,
then:function(){return _.e("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.e("div",{class:"learningJourneyQuizYoututorExplanationText"},_.e(_.VB,{text:function(){return S().explanationHeaderText}})),_.e(_.VB,{text:function(){return S().optionsData[N()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"me");
HNz.idomCompat=!0;var KeC;_.phj=_.f(function(k){var E=null,S=null,R=null,V=function(){return k.data()},N=function(){var M=V();
var d=_.en().resolve(_.mz(_.jF));M=d!=null&&d()?M.darkThemeColorPalette:M.lightThemeColorPalette;return{primaryTextColor:ej(M,0),secondaryTextColor:ej(M,1),optionColor:ej(M,2),backgroundColor:ej(M,3),videoBackgroundColor:ej(M,4)}},h=function(){return!!N().optionColor},J=_.n(_.yg(-1,void 0,"QDu8Oe")),m=J.next().value,a=J.next().value,T=function(M){return m()===M},w=function(M){return V().correctAnswerIndex===M},P=function(){return m()!==-1},B=function(){return m()===V().correctAnswerIndex},F=function(){var M=
V(),d=P(),z=B();
return d?z?M.successTitle:M.failureTitle:M.questionHeaderText},K=function(){var M=P(),d=B();
return M?d?264685:264684:264683},r=function(){var M=V();
return P()?M.explanationText:M.questionSubheaderText},x=function(){return!!V().video},L=function(M){return B()&&w(M)},q=_.RZ(function(){a(-1);
return!1});
return _.e(_.t,{cond:function(){return V().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.e(HNz,{data:function(){return V()}})},
else:function(){return _.e("learning-journey-quiz-view-model",{class:_.SQ("learningJourneyQuizViewModelHost",k.className),style:_.nU({background:function(){return N().backgroundColor}})},_.e(_.t,{cond:x,
then:function(){return _.e("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.nU({background:function(){return N().videoBackgroundColor}})},_.e(_.cp,{data:function(){return V().video}},{lockupViewModel:function(M){return _.e(_.y5,{data:M.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.e("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.e("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.e("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.e(_.t,{cond:function(){return!!V().aiGeneratedQuizLabel},
then:function(){return _.e("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.e(_.VB,{text:function(){return V().aiGeneratedQuizLabel}}))}}),_.e("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.nU({"align-items":function(){return V().overflowMenu?"start":"center"}})},_.e("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.nU({"min-height":function(){return V().overflowMenu?"48px":"26px"}})},_.e("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.Z0(function(M){_.hQ(K(),M,E,function(d){E=d})}),
style:_.nU({color:function(){return N().primaryTextColor}}),
"client-ve-type":K},_.e(_.VB,{text:F}))),_.e("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.e(_.t,{cond:P,then:function(){return _.e("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.Z0(function(M){_.hQ(264687,M,S,function(d){S=d})}),
"on:click":q,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.e("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.nU({fill:function(){return N().primaryTextColor}})},_.e("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"})))}}),
_.e(_.cp,{data:function(){return V().overflowMenu}},{buttonViewModel:function(M){return _.e(_.yB,{data:M.data})}}))),_.e("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.Z0(function(M){_.hQ(264688,M,R,function(d){R=d})}),
style:_.nU({color:function(){return N().secondaryTextColor}}),
"client-ve-type":264688},_.e(_.VB,{text:r}))),_.e("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.e(_.jw,{each:function(){return V().optionsData||[]}},function(M,d){var z={};
return _.e("button",{class:_.SQ("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(z.learningJourneyQuizViewModelHostQuizHover=function(){return!P()},z.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=h,z.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return L(d())},z.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!B()&&T(d())},z.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return P()&&
!T(d())},z)),
"on:click":_.RZ(function(){if(P())return!1;a(d());return!1}),
style:_.nU({background:function(){var kb=d();return P()&&T(kb)?"":h()?N().optionColor:"transparent"}}),
"aria-disabled":P,"client-ve-type":264686},_.e("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.e(_.t,{cond:P,then:function(){return _.e(KeC,{isOptionCorrect:w,optionIndex:d,isOptionSelectedAndCorrect:L,colors:N})}}),_.e(_.VB,{text:M.optionText})))})))))}})},"ne");
KeC=_.f(function(k){var E={};return _.e("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var S=k.optionIndex();return k.isOptionCorrect(S)?"0 0 24 24":"0 -960 960 960"},
class:_.SQ("learningJourneyQuizViewModelHostQuizOptionIconLeading",(E.learningJourneyQuizViewModelHostQuizPulse=function(){return k.isOptionSelectedAndCorrect(k.optionIndex())},E)),
style:_.nU({fill:function(){return k.colors().primaryTextColor}})},_.e("path",{d:function(){var S=k.optionIndex();
return k.isOptionCorrect(S)?"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"}}))},"oe");
_.phj.idomCompat=!0;_.qi(_.phj,"learning-journey-quiz-view-model",{props:{data:_.Nq,className:_.Nq}});var A_Y=_.f(function(k){var E=_.n((0,_.qK5)(function(){var h;return{targetId:(h=k.data().config)==null?void 0:h.suspenseKey,contents:[k.data()]}})).next().value,S=_.en().resolve(_.t3),R=function(){var h=E().contents.length>0?E().contents[0]:void 0;
return h==null?void 0:h.config},V=function(){var h;
return(h=R())==null?void 0:h.entityTriggerConfig},N=_.iK(cWt,function(){var h,J;
return(J=(h=V())==null?void 0:h.entityKey)!=null?J:""});
_.vX(function(){var h,J,m,a=(m=Number((h=V())==null?void 0:(J=h.invalidationTimestamp)==null?void 0:J.seconds))!=null?m:0,T,w,P;if(((P=Number((T=N())==null?void 0:(w=T.lastUpdated)==null?void 0:w.seconds))!=null?P:0)>a){var B;(h=(B=R())==null?void 0:B.continuationCommand)&&S.resolveCommand(h)}},"FaC8z");
return _.e("yt-suspense-view-model",{class:_.SQ("ytSuspenseViewModelHost")},_.e(_.cp,{data:function(){var h;return(h=R())==null?void 0:h.contents}},{lockupViewModel:_.y5}))},"qe");var r_d=_.f(function(k){var E=_.dJ(k,{palette:void 0,isLastItem:!1}),S=E.palette,R=E.isLastItem,V=function(){return k.data().isHighlighted},N=function(){var m;
return nat((m=S())==null?void 0:m.iconDisabledColor)},h=function(){var m;
return nat((m=S())==null?void 0:m.primaryTitleColor)},J=function(){var m;
return nat((m=S())==null?void 0:m.secondaryTitleColor)};
E={};return _.e("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.Z0(_.FX(function(){return k.data().rendererContext}))},_.e(_.cp,{data:function(){return k.data().thumbnail}},{thumbnailViewModel:_.cW}),_.e("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.e("div",{class:_.SQ("ytMacroMarkerListItemViewModelTimeDescription",(E.ytMacroMarkerListItemViewModelHighlighted=V,E)),
style:_.nU({"background-color":function(){return V()?h():N()},
color:function(){return V()?"":J()}})},_.e(_.VB,{text:function(){return k.data().timestamp}})),_.e("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.nU({"background-color":function(){return R()?"transparent":N()}})}),_.e("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(V()?h():J())}},_.e(_.VB,{text:function(){return k.data().title}}))))},"re");_.CE=_.f(function(k){function E(iC){L("transform:translateX("+(_.Mg("HTML_DIR")==="rtl"?"":"-")+iC+"px)")}
function S(iC){return Math.min(Math.max(iC,0),x()-kb())}
function R(){var iC=d()+th();return V()?(Math.round(kb()/iC)||1)*iC:0}
var V=function(){return k.data().items||[]},N=function(){return k.data().previousButton},h=function(){return k.data().nextButton},J=function(){var iC,hC;
return(hC=(iC=k.disableArrows)==null?void 0:iC.call(k))!=null?hC:!1},m=function(){var iC;
return!((iC=k.forceNarrowLayout)==null||!iC.call(k))},a=_.HX(function(){var iC;
return!((iC=k.centerAlignItems)==null||!iC.call(k))&&x()<=kb()},void 0,"Uto0kc"),T=_.VH("horizontal-shelf-view-model"),w=_.VH("div"),P=_.n(_.yg(0,void 0,"G0xZB")),B=P.next().value,F=P.next().value;
P=_.n(_.yg(0,void 0,"kqCYFf"));var K=P.next().value,r=P.next().value,x=K;K=_.n(_.yg("",void 0,"Hh6Uye"));P=K.next().value;var L=K.next().value;K=_.n(_.yg(0,void 0,"yMGBKb"));var q=K.next().value,M=K.next().value,d=q;K=_.n(_.yg(0,void 0,"VChthd"));q=K.next().value;var z=K.next().value,kb=q;K=_.n(_.yg(!1,void 0,"qJlhhe"));var TI=K.next().value,a1=K.next().value;K=_.n(_.yg(0,void 0,"x7H94"));q=K.next().value;var Ah=K.next().value,th=q;K=_.n(_.yg(0,void 0,"ksuUee"));var He=K.next().value,ve=K.next().value;
K=_.n(_.yg("50%",void 0,"uxCxde"));var Xm=K.next().value,U5=K.next().value,l4=function(){var iC,hC=(iC=k.data())==null?void 0:iC.responsiveContainerConfiguration,Y2,It;return hC?xcI(hC==null?void 0:hC.responsiveSize):(It=(Y2=k.sizing)==null?void 0:Y2.call(k))!=null?It:"STANDARD"};
K=_.HX(function(){return!J()&&B()>0},void 0,"XK60w");
q=_.HX(function(){return!J()&&B()<x()-kb()},void 0,"D22LVd");
var gY=function(){F(S(B()-R()));E(B())},IC=function(){F(S(B()+R()));
E(B())},md=function(){T.value!==null&&Lj()},Kj;
_.b$(function(){Lj();window.ResizeObserver?(Kj=new ResizeObserver(_.ta(md,0)),Kj.observe(T.value)):window.addEventListener("resize",md)});
_.bI(function(){if(window.ResizeObserver){var iC;(iC=Kj)==null||iC.disconnect()}else window.removeEventListener("resize",md)});
var Lj=function(){var iC=T.value.clientWidth,hC=k.includeMargin!==void 0?k.includeMargin():!1,Y2;var It=k.hasPeek!==void 0?k.hasPeek():!((Y2=k.data())==null||!Y2.hasPeek);iC=_.Uf({containerWidth:iC,hasPeek:It,sizing:l4(),marginSettings:hC?m()?4:1:0});Ah(iC.gutter);ve(iC.margin);M(iC.itemWidth);a1(iC.maxContainerWidth<528||m());z(iC.maxContainerWidth);V()&&r((iC.itemWidth+iC.gutter)*V().length-iC.gutter);if(V()){var Wz;if(((Wz=k.thumbnailAspectRatio)==null?void 0:Wz.call(k))!==void 0){var VP;U5(d()/
L8b((VP=k.thumbnailAspectRatio)==null?void 0:VP.call(k))/2+"px")}else U5("50%")}},H0={},TG={};
return _.e("horizontal-shelf-view-model",{class:_.SQ("ytwHorizontalShelfViewModelHost",k.className),el:T},_.e(_.t,{cond:function(){var iC;return k.data().header&&!((iC=k.horizontalShelfExperiments)==null?0:iC.call(k).hideHeader)},
then:function(){return _.e("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.nU({width:function(){return kb()+"px"},
padding:function(){return"0 "+He()+"px"}})},_.e(_.cp,{data:function(){return k.data().header}},{sectionHeaderViewModel:function(iC){return _.e(_.gI,{data:iC.data,
disableHorizontalPadding:!0,forceSmallLayout:TI,useResponsiveLayout:!0})}}))}}),_.e("div",{class:_.SQ("ytwHorizontalShelfViewModelOuterContainer",(H0.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return a()},H0)),
style:_.nU({"margin-top":function(){var iC,hC=k.data().header&&!((iC=k.horizontalShelfExperiments)==null?0:iC.call(k).hideHeader),Y2;return(((Y2=k.ensureMarginTop)==null?0:Y2.call(k))&&!hC?12:0)+"px"}})},_.e("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.nU({width:function(){return kb()+"px"},
padding:function(){return"0 "+He()+"px"},
overflow:function(){return J()?"auto":"hidden"}})},_.e("div",{class:_.SQ("ytwHorizontalShelfViewModelItems",(TG.ytwHorizontalShelfViewModelCenterAlignItems=function(){return a()},TG)),
el:w,style:P},_.e(_.cp,{data:V},{macroMarkerListItemViewModel:function(iC,hC){return _.e("div",{style:_.nU({width:function(){return d()+"px"},
"margin-right":function(){return(hC()===V().length-1?0:th())+"px"}})},_.e(r_d,{data:iC.data,
palette:_.Zk(k.palette),isLastItem:function(){return hC()===V().length-1}}))},
lockupViewModel:function(iC,hC){var Y2=iC.data;return _.e("div",{style:_.nU({width:function(){return d()+"px"},
"margin-right":function(){return(hC()===V().length-1?0:th())+"px"}})},_.e(_.y5,{data:Y2,
containerType:4,sizing:l4,protectBackground:k.protectBackground,thumbnailFixedWidth:function(){return ia1(Y2())+"px"},
thumbnailTargetWidth:function(){return ia1(Y2())}}))},
suspenseViewModel:function(iC,hC){return _.e("div",{style:_.nU({width:function(){return d()+"px"},
"margin-right":function(){return(hC()===V().length-1?0:th())+"px"}})},_.e(A_Y,{data:iC.data}))}}))),_.e(_.t,{cond:K,
then:function(){return _.e("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.nU({top:function(){return Xm()}})},_.e(_.cp,{data:N},{buttonViewModel:function(iC){return _.e(_.yB,{data:iC.data,
onClick:gY})}}))}}),_.e(_.t,{cond:q,
then:function(){return _.e("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.nU({top:function(){return Xm()}})},_.e(_.cp,{data:h},{buttonViewModel:function(iC){return _.e(_.yB,{data:iC.data,
onClick:IC})}}))}})))},"se");
_.CE.idomCompat=!0;var uh8=_.f(function(k){var E=function(){return k.data().targetId||""},S=function(){var K;
return((K=k.data())==null?void 0:K.expansionEntityKey)||""},R=_.iK(_.JWA,S),V=!0,N=function(){var K;
return((K=R())==null?void 0:K.value)===E()},h=function(K){_.bl(_.mj("stringEntity",S(),{key:S(),
value:K?E():""}))};
_.vC(function(){V=!1;k.data().isExpanded&&h(!0)});
var J=function(){if(N()){var K=!0;k.onCollapse!==void 0&&(K=k.onCollapse());K&&h(!1)}else h(!0)},m=_.RZ(J),a=function(){var K;
return(((K=k.accordionStyle)==null?void 0:K.call(k))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},T=_.VH("div"),w=function(){var K,r;
return(r=(K=_.W(k.data().rendererContext,_.n9))==null?void 0:K.label)!=null?r:""},P=function(){var K,r;
return{disabled:(K=k.hideIfNotExpanded)==null?void 0:K.call(k),ariaHidden:(r=k.hideIfNotExpanded)==null?void 0:r.call(k)}},B={},F={};
return _.e("yt-accordion-item-view-model",{class:_.SQ("ytAccordionItemViewModelHost",k.className,(B.ytAccordionItemViewModelExpanded=function(){return N()},B.ytAccordionItemViewModelHidden=function(){var K;
return(K=k.hideIfNotExpanded)==null?void 0:K.call(k)},B.ytAccordionItemViewModelMini=a,B)),
"data-target-id":E},_.e("div",{class:"ytAccordionItemViewModelContainer"},_.e("div",{class:"ytAccordionItemViewModelLeftSection","on:click":m,title:w,"aria-hidden":function(){var K;return(K=k.hideIfNotExpanded)==null?void 0:K.call(k)}},_.e(_.VB,{text:function(){return k.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:w})),_.e("div",{class:"ytAccordionItemViewModelRightSection"},_.e(_.cp,{data:function(){return N()?k.data().expandButton:k.data().collapseButton}},{buttonViewModel:function(K){return _.e(_.yB,{data:K.data,
className:"ytAccordionItemViewModelToggleButton",onClick:J,buttonOverrides:P})}}))),_.e("div",{class:"ytAccordionItemViewModelContainer"},_.e("div",{class:_.SQ("ytAccordionItemViewModelContent",(F.ytAccordionItemViewModelExpandedSubtitle=function(){return N()},F)),
el:T,style:_.nU({"max-height":function(){return V?"auto":N()?T.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!N()}},_.e(_.t,{cond:function(){return!a()},
then:function(){return _.e(_.VB,{text:function(){return k.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.e(_.cp,{data:function(){return k.data().content}},{horizontalShelfViewModel:function(K){return _.e(_.CE,{data:K.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ue");_.xs8=_.f(function(k){var E=_.n((0,_.qK5)(k.data)).next().value,S=function(){return k.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},R=function(){return S()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},V=_.n(_.yg(!0,void 0,"AbejLb")),N=V.next().value,h=V.next().value,J=function(){return R()&&N()},m=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){h(!N())}}},a=_.RZ(function(){E().onTitleTap&&_.AV(E().onTitleTap||{})});
V={};return _.e("yt-accordion-view-model",{class:_.SQ("ytAccordionViewModelHost",(V.ytAccordionViewModelMinimized=function(){return J()},V)),
"data-target-id":function(){return k.data().targetId||""}},_.e(_.t,{cond:function(){return R()||!!E().title},
then:function(){return _.e("div",{class:"ytAccordionViewModelHeader"},_.e("div",{class:"ytAccordionViewModelTitleSection"},_.e("div",{class:"ytAccordionViewModelTitleWrapper"},_.e(_.t,{cond:function(){return!!k.data().headerIcon},
then:function(){return _.e(_.i_,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var T;return(T=k.data().headerIcon)==null?void 0:T.iconType}})}}),_.e("div",{class:"ytAccordionViewModelTitle",
"on:click":a},_.e(_.VB,{className:"ytAccordionViewModelTitleText",text:function(){return E().title}})))),_.e("div",{class:"ytAccordionViewModelButtonSection"},_.e(_.t,{cond:R,
then:function(){return _.e(_.FA,{data:m,iconName:function(){return J()?"chevron_down":"chevron_collapse"}})}})))}}),_.e("div",{class:"ytAccordionViewModelContent"},_.e(_.cp,{data:function(){return E().contents}},{accordionItemViewModel:function(T){return _.e(uh8,{data:T.data,
className:"ytAccordionViewModelRow",accordionStyle:S,hideIfNotExpanded:J,onCollapse:function(){return R()?(h(!0),!1):!0}})}})),_.e("div",null,_.e(_.t,{cond:function(){return!R()&&(!!E().disclaimerFooter||!!E().footer)},
then:function(){return _.e("div",{class:"ytAccordionViewModelFooter"},_.e(_.VB,{text:function(){return E().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.e(_.cp,{data:function(){return k.data().footer}},{flexibleActionsViewModel:function(T){return _.e(_.l6,{data:T.data,
layout:0})}}))}})))},"ve");_.qi(_.xs8,"yt-accordion-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=null,S=null,R,V=(R=_.en().resolve(_.mz(_.jF)))==null?void 0:R(),N=_.n(_.yg(!1,void 0,"h3atzd"));R=N.next().value;var h=N.next().value;N=_.n(_.yg(!0,void 0,"UTh8db"));var J=N.next().value,m=N.next().value,a=_.VH("textarea",function(r){_.hQ(264503,r,E,function(x){E=x})}),T=function(r){h(!0);
r={learningJourneyFormData:{query:r}};_.AV(k.data().searchEndpoint||{},{form:{formData:r}});return!1},w=_.RZ(function(r){r.target.closest("button-view-model")&&h(!0)});
N=_.RZ(function(){m(a.value.value.length===0)});
var P=_.RZ(function(r){if(r.key==="Enter"&&!r.shiftKey&&!J()){var x=r.target;r.preventDefault();T(x.value)}}),B={},F={},K={};
return _.e("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.e("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.e(_.vM,{data:function(){return k.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.e("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.e("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.e("div",{class:_.SQ("ytLearningJourneyZeroStateSearchBar",(B.ytLearningJourneyZeroStateSearchBarDark=V,B))},_.e("textarea",{class:_.SQ("ytLearningJourneyZeroStateTextInput",(F.ytLearningJourneyZeroStateTextInputDark=V,F)),el:a,"on:keyup":N,"on:keydown":P,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.e("div",{class:_.SQ("ytLearningJourneyZeroStateSearchButtonContainer",(K.ytLearningJourneyZeroStateSearchButtonContainerDark=V,K))},_.e(_.yB,{data:function(){return _.W(k.data().searchButton,_.qz)},
className:"search-button",onClick:function(){return T(a.value.value)},
buttonOverrides:function(){return{disabled:J(),style:V?"mono-inverse":"mono",size:"XL"}}}))),_.e(_.t,{cond:function(){return!!k.data().errorBanner},
then:function(){return _.e("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.Z0(function(r){_.hQ(264617,r,S,function(x){S=x})})},_.e(_.cp,{data:function(){return k.data().errorBanner}},{alertBannerViewModel:function(r){return _.e(_.SLd,{data:r.data,
"client-ve-type":264617})}}))}})),_.e(_.t,{cond:R,
then:function(){return _.e("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.e(_.cp,{data:function(){return k.data().loader}},{learningJourneyLoaderViewModel:function(r){return _.e(_.Usd,{data:r.data})}}))},
else:function(){return _.e("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.e(_.t,{cond:function(){return!!k.data().learningJourneyShelf},
then:function(){return _.e("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.e("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return k.data().learningJourneySectionTitle}),_.e(_.cp,{data:function(){return k.data().learningJourneyShelf}},{horizontalShelfViewModel:function(r){return _.e(_.CE,{data:r.data,
centerAlignItems:!0})}}))}}),_.e("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.e("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return k.data().suggestedJourneySectionTitle}),_.e("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":w},_.e(_.cp,{data:function(){return k.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(r){return _.e(_.l6,{data:r.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"we"),"yt-learning-journey-zero-state",{props:{data:_.Nq}});var LeT=_.f(function(k){var E=k.data;return _.e("ytvl-live-leaderboard-item-action-content-view-model",{class:_.SQ("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.e(_.VB,{text:function(){var S;return(S=E())==null?void 0:S.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.e(_.cp,{data:function(){return E().actionButton}},{buttonViewModel:function(S){return _.e(_.yB,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:S.data})}}))},"xe");var jyY=_.f(function(k){var E=k.data;return _.e("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.SQ("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.e(_.VB,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var S;return(S=E())==null?void 0:S.displayName},
ellipsisTruncate:!0}),_.e(_.cp,{data:function(){return E().badge}},{buttonViewModel:function(S){return _.e(_.yB,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:S.data})}}))},"ye");_.qi(_.f(function(k){var E=k.data;return _.e("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.e("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.e(_.VB,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var S;return(S=E())==null?void 0:S.rank}})),_.e("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.e(_.cp,{data:function(){return E().avatar}},{avatarViewModel:_.dw})),_.e("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.e(_.cp,{data:function(){return E().content}},{liveLeaderboardItemChannelContentViewModel:jyY,
liveLeaderboardItemActionContentViewModel:LeT})),_.e(_.VB,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var S;return(S=E())==null?void 0:S.points}}))},"ze"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;return _.e("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.e(_.VB,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var S,R;return(S=E())==null?void 0:(R=S.ranking)==null?void 0:R.rank}}),_.e("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.e(_.cp,{data:function(){return E().avatar}},{avatarViewModel:_.dw})),_.e(_.VB,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var S,R;return(S=E())==null?void 0:(R=S.channelContent)==null?void 0:R.channelName}}),_.e(_.VB,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var S;return(S=E())==null?void 0:S.points}}))},"Ae"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Nq}});var Dsd=_.f(function(k){k=_.dJ(k,{wrapper:!1}).wrapper;return _.e(_.t,{cond:k,then:function(){return _.e("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.e("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.e("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Be");
Dsd.idomCompat=!0;var $sC=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],f42=_.f(function(k){var E=k.data;var S=_.Z0(),R=_.HX(function(){return E().command},void 0,"fyYsT");
_.vX(function(){R()&&_.HM(R(),{form:{element:S.value}})},"B0nxdb");
return _.e("div",{el:S,class:"YtQrCodeRendererHostContainer"},_.e(_.t,{cond:function(){return E().qrCodeImage},
then:function(V){return _.e(_.vM,{data:V,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.e(_.t,{cond:function(){return E().spinner},
then:function(){return _.e(Dsd,null)}})}}),_.e(_.t,{cond:function(){return E().label},
then:function(V){return _.e(_.VB,{text:V,className:"YtQrCodeRendererHostLabel"})}}),_.e(_.t,{cond:function(){return E().labels},
then:function(V){return _.e("div",{class:"YtQrCodeRendererHostLabels"},_.e(_.jw,{each:V},function(N){return _.e(_.VB,{text:N})}))}}))},"Ee");_.qi(_.f(function(k){var E=k.data;var S=_.HX(function(){return E().qrEntityKey},void 0,"M0PrY"),R=_.HX(function(){return E().deleteEntityOnDismiss},void 0,"QZa4g"),V=_.HX(function(){return E().command},void 0,"wEOxUe"),N=_.iK(rAI,S);
k=_.HX(function(){return E().qrCodeImage},void 0,"UO5oub");
var h=_.HX(function(){return E().style&&$sC.includes(E().style)},void 0,"Op9kZd"),J=_.e9({visibilityCallback:function(m){m&&V()&&_.HM(V())},
showOption:{calledOnce:!0,state:"visible"}});_.b$(function(){_.bI(function(){R()&&S()&&_.vu().dispatch(_.mj("qrCodeEntity",S()))})});
return _.e("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.Z0(J)},_.e(_.t,{cond:h,then:function(){return _.e(_.t,{cond:N,then:function(m){return _.e(f42,{data:m})}})}}),_.e(_.t,{cond:k,
then:function(m){return _.e(_.vM,{data:m,alt:""})}}))},"Ce"),"yt-qr-code-renderer",{props:{data:_.Nq}});var bNT=_.f(function(k){var E=function(){return _.Kc(1728053247&(k.barColor!==void 0?R3(k.barColor()):4278190080))};
return _.e("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.e(vMd,{animationDelay:0,percentWidth:100,barColor:function(){return E()}}),_.e("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.e("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+E()}})),_.e(vMd,{animationDelay:0,
percentWidth:100,barColor:function(){return E()}}),_.e(vMd,{animationDelay:600,
percentWidth:60,barColor:function(){return E()}}))},"Fe"),vMd=_.f(function(k){return _.e("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+k.percentWidth()+"%"}},_.e("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var E=k.animationDelay(),S=k.barColor();return"animation-delay:"+E+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+S+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ge");var ZNT;_.dsd=_.f(function(k){function E(r){h(r)}
var S=k.data;var R=_.VH("yt-video-overview-view-model"),V=_.Nm("div");k=_.n(_.yg(-1,void 0,"qaDSu"));var N=k.next().value,h=k.next().value;k=_.n(_.yg(0,void 0,"Vz681c"));var J=k.next().value,m=k.next().value,a={},T=_.iK(hnh,function(){return S().asyncDataEntityKey}),w=function(){var r;
if((r=T())==null?0:r.videoOverviewViewModel){var x;return _.W((x=T())==null?void 0:x.videoOverviewViewModel,SbC)}return S()};
_.b$(function(){m(Math.min((R.value.clientWidth-24)/4-8,72))});
var P=function(r){h(r);(V==null?0:V.value)&&V.value.children[r]&&V.value.children[r].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
FvC(R,function(){var r;if((r=w())==null||!r.inlinePlaybackEndpoint)return null;var x;r=a==null?void 0:(x=a.thumbnailElRef)==null?void 0:x.value;if(!r)return null;var L;x=(L=w())==null?void 0:L.inlinePlaybackEndpoint;L=_.W(x,BBj);return{multipleVideoPreviewData:{data:(L==null?0:L.playerDescriptors)&&(L==null?0:L.playerDescriptors.length)?L.playerDescriptors:[],thumbnailElement:r,trackingParams:"test",callbacks:{onPlaybackStarted:P},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var B=function(){var r;return((r=w())==null?void 0:r.headerSubtext)!==void 0?!0:!1},F=function(){var r,x=R3((r=w())==null?void 0:r.titleColor);
return x?"color: "+_.Kc(x)+";":void 0},K=function(){var r,x=R3((r=w())==null?void 0:r.subtextColor);
return x?"color: "+_.Kc(x)+";":void 0};
return _.e("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:R,style:function(){var r,x=R3((r=w())==null?void 0:r.backgroundColor);return x?"background-color: "+_.Kc(x)+";":void 0}},_.e(_.t,{cond:function(){var r;
return(r=w())==null?void 0:r.isLoading},
then:function(){return _.e(bNT,{barColor:function(){var r;return(r=w())==null?void 0:r.titleColor}})},
else:function(){return _.e(_.tj,null,_.e("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.e("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return F()}},_.e(_.VB,{text:function(){var r;
return(r=w())==null?void 0:r.headerText}})),_.e(_.t,{cond:B,
then:function(){return _.e("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.e("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return K()}},_.e(_.i_,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.e("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return K()}},_.e(_.VB,{text:function(){var r;
return(r=w())==null?void 0:r.headerSubtext}})))}})),_.e("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.e(_.cp,{data:function(){var r;
return(r=w())==null?void 0:r.thumbnail}},{thumbnailViewModel:function(r){return _.e(_.cW,{data:r.data,
aspectRatio:0,playbackRef:B4h(a)})}})),_.e(_.t,{cond:function(){var r,x,L,q;
return((r=w())==null?void 0:(x=r.listItems)==null?void 0:x.length)!==void 0&&((L=w())==null?void 0:(q=L.listItems)==null?void 0:q.length)>0?!0:!1},
then:function(){return _.e("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:V},_.e(_.jw,{each:function(){var r;return(r=w())==null?void 0:r.listItems}},function(r,x){return _.e(ZNT,{image:r.image,
index:x,isSelected:function(){return x()===N()},
onClick:E,itemWidth:J})}))}}),_.e("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.e("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return F()}},_.e(_.VB,{text:function(){var r,x,L,q,M,d,z;
return(z=(r=w())==null?void 0:(x=r.listItems)==null?void 0:(L=x[N()])==null?void 0:L.headline)!=null?z:(q=w())==null?void 0:(M=q.listItems)==null?void 0:(d=M[0])==null?void 0:d.headline}})),_.e("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return K()}},_.e(_.VB,{text:function(){var r,x,L,q,M,d,z;
return(z=(r=w())==null?void 0:(x=r.listItems)==null?void 0:(L=x[N()])==null?void 0:L.subtext)!=null?z:(q=w())==null?void 0:(M=q.listItems)==null?void 0:(d=M[0])==null?void 0:d.subtext}}))))}}))},"He");
ZNT=_.f(function(k){var E=k.image;var S=k.itemWidth;var R=k.index;var V=k.isSelected;var N=k.onClick;k=_.RZ(function(){R!==void 0&&N!==void 0&&N(R());return!1});
var h={};return _.e("div",{class:_.SQ("ytGenAiVideoOverviewViewModelCarouselItem",(h.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return V==null?void 0:V()},h)),
style:function(){return"width: "+S()+"px;"},
"on:click":k},_.e(_.vM,{data:E,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.e(_.t,{cond:function(){return V==null?void 0:V()},
then:function(){return _.e("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.e("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ie");
_.dsd.idomCompat=!0;_.qi(_.dsd,"yt-video-overview-view-model",{props:{data:_.Nq}});_.syY=_.f(function(k){var E=k.data;var S=k.topbarOffset;var R,V=((R=_.en().resolve(_.mz(_.jF)))==null?void 0:R())||!1;return _.e("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var N=E();var h,J,m=V?(h=N.config)==null?void 0:h.darkThemeBackgroundColor:(J=N.config)==null?void 0:J.lightThemeBackgroundColor;N=m?_.HT(m):void 0;N="background-color: "+N+";";S!==void 0&&(N+="top: -"+S()+"px;");return N},
"aria-hidden":!0},_.e(_.t,{cond:function(){var N,h,J;return!!((N=E().backgroundImageConfig)==null?0:(h=N.image)==null?0:(J=h.sources)==null?0:J.length)},
then:function(){return _.e(_.vM,{data:function(){var N;return(N=E().backgroundImageConfig)==null?void 0:N.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.e("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+J5I(V,E().gradientColorConfig)+";"}}))},"Je");
_.syY.idomCompat=!0;var l4d=_.f(function(k){var E=k.data;var S=k.isOverlay;return _.e("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.e("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.e(_.cp,{data:function(){return E().header}},{sectionHeaderViewModel:function(R){return _.e(_.gI,{data:R.data,
isOverlay:S})}})),_.e("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.e(_.cp,{data:function(){return E().channelInfoButtons}},{flexibleActionsViewModel:_.l6})),_.e("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.e(_.cp,{data:function(){return E().description}},{descriptionPreviewViewModel:function(R){return _.e(_.Xv,{data:R.data,
isOverlay:S})}})))},"Ke");
l4d.idomCompat=!0;var Mxd=_.f(function(k){var E=k.data;var S={};return _.e("factoid-view-model",{class:_.SQ("ytwFactoidViewModelHost",(S.ytwFactoidViewModelHostOverlay=k.isOverlay,S))},_.e(_.VB,{text:function(){return E().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.e(_.VB,{text:function(){return E().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Le");
Mxd.idomCompat=!0;var qL5=_.f(function(k){var E=k.data;var S=k.isOverlay;return _.e("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.e(_.cp,{data:function(){return E().factoids}},{factoidViewModel:function(R){return _.e(Mxd,{data:R.data,
isOverlay:S})}}))},"Me");
qL5.idomCompat=!0;_.zTd=_.f(function(k){var E=k.data;var S=k.isOverlay;return _.e("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.e(_.cp,{data:function(){return E().items}},{channelInfoViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(l4d,{data:R.data,
isOverlay:S}))},
coursePerksViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(y_Y,{data:R.data,isOverlay:S}))},
descriptionPreviewViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(_.Xv,{data:R.data,isOverlay:S}))},
factoidsRowViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(qL5,{data:R.data,isOverlay:S}))},
progressViewModel:function(R){return _.e("div",{class:"ytwCourseMetadataViewModelHostItem"},_.e(oM8,{data:R.data,isOverlay:S}))}}))},"Ne");var QyT=_.f(function(k){return _.e("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.e(_.cp,{data:function(){return k.data().content}},{courseMetadataViewModel:function(E){return _.e(_.zTd,{data:E.data,
isOverlay:k.isOverlay})},
progressViewModel:function(E){return _.e(oM8,{data:E.data})}}))},"Oe");var ONT=_.f(function(k){var E=k.data;k=k.className;var S=function(){var V;return _.Wp((V=E())==null?void 0:V.rendererContext)},R={};
R=(R.dynamicTextViewModelHost=!0,R.dynamicTextViewModelHostTappable=function(){return S()},R);
return _.e("yt-dynamic-text-view-model",{el:_.Z0(_.FX(function(){var V;return(V=E())==null?void 0:V.rendererContext})),
role:function(){return S()?"link":void 0},
tabindex:function(){return S()?0:void 0},
class:_.SQ(k,R)},_.e("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var V,N,h;return(h=(N=_.W((V=E())==null?void 0:V.rendererContext,_.n9))==null?void 0:N.label)!=null?h:""}},_.e(_.VB,{text:function(){return E().text},
userInput:!0})))},"Pe");
ONT.idomCompat=!0;_.km=_.f(function(k){var E=k.data;var S=k.isPositionRelative;var R=_.m0i("(max-width: 527.9px)"),V=function(){var N,h;return(h=(N=E())==null?void 0:N.style)!=null?h:"IMAGE_BANNER_STYLE_FULL_BLEED"};
k={};return _.e("yt-image-banner-view-model",{el:_.Z0(_.FX(function(){var N;return(N=E())==null?void 0:N.rendererContext})),
class:_.SQ((k.ytImageBannerViewModelHost=!0,k.ytImageBannerViewModelInset=function(){return enh(V())},k.ytImageBannerViewModelPositionAbsolute=function(){return _.dt(!0)&&!(S==null?0:S())},k.ytImageBannerViewModelSmallInset=function(){return enh(V())&&R()},k.ytImageBannerViewModelTappable=function(){var N;
return _.Wp((N=E())==null?void 0:N.rendererContext)},k))},_.e(_.t,{cond:function(){var N;
return(N=E())==null?void 0:N.image},
then:function(){return _.e(_.vM,{data:function(){return E().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.e(_.cp,{data:function(){var N;
return(N=E())==null?void 0:N.overlays}},{thumbnailHoverOverlayViewModel:Zo}))},"Qe");
_.km.idomCompat=!0;var GwT;GwT=_.f(function(k){var E=k.condition;var S=k.content;return _.e(_.t,{cond:E,then:function(){return _.e("div",{class:"yt-page-header-view-model__scroll-container"},S())},
else:function(){return S()}})},"Re");
_.CU2=_.f(function(k){var E=k.data;var S=k.noPadding;var R=k.enableBanner;var V=k.cinematicContainerTopbarOffset;var N=k.allowCinematicContainerOverflow;var h=k.displayAsSidebar;var J=k.displayAsPanel;var m=k.alwaysUseMediumTextDescription;var a=aUi(),T=function(){return!!E().image||!!E().animatedImage},w=function(){return!!E().background},P=function(){return(h==null?0:h())||(J==null?0:J())?1:a()},B=function(){return P()===1},F=function(){return B()||P()===2},K=function(){return P()===4},r=function(){var He=
E();
var ve=!!E().heroImage;var Xm=P(),U5=tsi(E()),l4=h==null?void 0:h(),gY=!He.metadata,IC;if(IC=ve?_.W(He.heroImage,qz8):_.W(He.animatedImage||He.image,qz8)){He=IC.style;var md=IC.layoutMode;if(md!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(IC=zci(qTI(IC)),ve)ve=c5e(Xm,He,md,IC,l4);else b:if(gY)ve=Xm===1?{size:48}:{size:72};else switch(Xm){case 1:ve={size:72};break b;case 2:ve={size:120};break b;default:ve=U5<4?{size:120}:{size:160}}else ve=void 0}else ve={size:0};return ve};
k={};k=_.SQ((k["yt-page-header-view-model"]=!0,k["yt-page-header-view-model--no-padding"]=function(){return!(S==null||!S())},k["yt-page-header-view-model--small-top-padding"]=function(){return B()&&!E().actions&&!(J==null?0:J())||P()===2&&!(T()||E().heroImage)},k["yt-page-header-view-model--small-bottom-padding"]=function(){return F()&&!E().actions&&!(J==null?0:J())},k["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(N==null?0:N())},k["yt-page-header-view-model--display-as-sidebar"]=
h,k));
var x={},L=_.SQ((x["yt-page-header-view-model__page-header-headline"]=!0,x["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var He;return(He=r())==null?void 0:He.allowFullWidth},x)),q=function(){var He;
return F()&&!((He=r())==null?0:He.allowFullWidth)},M=function(){return B()&&(!!E().heroImage||T())&&tsi(E())>0},d=function(){return M()&&(J==null?void 0:J())};
x={};var z=_.SQ((x["yt-page-header-view-model__page-header-title"]=!0,x["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!M()},x["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return M()&&!d()},x["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=d,x["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=w,x));
x={};var kb=_.SQ((x["yt-page-header-view-model__page-header-headline-image"]=!0,x["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!E().heroImage&&F()},x));
x={};var TI=_.SQ((x["yt-page-header-view-model__page-header-banner-container"]=R,x["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var He;return(R==null?void 0:R())&&((He=_.W(E().banner,_.QQC))==null?void 0:He.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},x));
x={};var a1=_.SQ((x["yt-page-header-view-model__page-header-content-metadata"]=!0,x["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=w,x));x={};var Ah=_.SQ((x["yt-page-header-view-model__page-header-flexible-actions"]=!0,x["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!E().metadata||F()},x["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!F()},x));
x={};var th=_.SQ((x["yt-page-header-view-model__page-header-attribution"]=!0,x["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=w,x));return _.e("yt-page-header-view-model",{class:k},_.e(_.t,{cond:w,then:function(){return _.e("div",{class:"yt-page-header-view-model__page-header-background"},_.e(_.cp,{data:function(){return E().background}},{cinematicContainerViewModel:function(He){return _.e(_.syY,{data:He.data,
topbarOffset:V})}}))}}),_.e(GwT,{condition:function(){return!(h==null||!h())},
content:function(){return _.e("div",{class:"yt-page-header-view-model__page-header-content"},_.e(_.t,{cond:function(){return(R==null?void 0:R())&&E().banner},
then:function(){return _.e("div",{class:TI},_.e(_.cp,{data:function(){return E().banner}},{imageBannerViewModel:_.km}))}}),_.e("div",{class:L},_.e(_.t,{cond:T,
then:function(){return _.e(_.cp,{data:function(){var He;if(!(He=E().animatedImage)){He=E();if(T()){var ve=He=Object.assign({},He),Xm=P(),U5=tsi(E()),l4=ve.image,gY=_.W(l4,zzC),IC=gY==null?void 0:gY.avatar,md=_.W(IC,_.y3);if(l4&&IC&&md){switch(Xm){case 1:md.avatarImageSize="AVATAR_SIZE_XL";break;case 2:md.avatarImageSize="AVATAR_SIZE_XXL";break;default:U5<4?md.avatarImageSize="AVATAR_SIZE_XXL":md.avatarImageSize="AVATAR_SIZE_XXXL"}_.Fd(IC,_.y3,Object.assign({},md));gY.avatar=Object.assign({},IC);_.Fd(l4,
zzC,Object.assign({},gY));ve.image=Object.assign({},l4)}}He=He.image}return He}},{contentPreviewImageViewModel:function(He){return _.e(_.TQ,{data:He.data,
className:kb,imageSizeConfig:r})},
decoratedAvatarViewModel:function(He){return _.e(_.sV,{data:He.data,className:kb})}})}}),_.e(_.t,{cond:function(){return!!E().heroImage&&!q()},
then:function(){return _.e(_.cp,{data:function(){return E().heroImage}},{contentPreviewImageViewModel:function(He){return _.e(_.TQ,{data:He.data,
className:kb,imageSizeConfig:r})}})}}),_.e("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.e(_.t,{cond:function(){return!!E().heroImage&&q()},
then:function(){return _.e("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.e(_.cp,{data:function(){return E().heroImage}},{contentPreviewImageViewModel:function(He){return _.e(_.TQ,{data:He.data,
className:kb,imageSizeConfig:r})}}))}}),_.e(_.cp,{data:function(){return E().title}},{dynamicTextViewModel:function(He){return _.e(ONT,{data:He.data,
className:z})}}),_.e(_.cp,{data:function(){return E().metadata}},{contentMetadataViewModel:function(He){return _.e(_.PW,{data:He.data,
layout:function(){return B()?1:0},
className:a1,isOverlay:w,useMediumText:K})}}),_.e(_.t,{cond:function(){return E().description&&!B()},
then:function(){return _.e(_.cp,{data:function(){return E().description}},{descriptionPreviewViewModel:function(He){return _.e(_.Xv,{data:He.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:w,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:function(){return(m==null?void 0:m())||K()}})}})}}),_.e(_.t,{cond:function(){return E().attribution&&!F()},
then:function(){return _.e(_.cp,{data:function(){return E().attribution}},{attributionViewModel:function(He){return _.e(wu,{data:He.data,
className:th,useMediumText:K})}})}}),_.e(_.t,{cond:function(){return E().actions&&!F()},
then:function(){return _.e(_.cp,{data:function(){return E().actions}},{flexibleActionsViewModel:function(He){return _.e(_.l6,{data:He.data,
layout:function(){return Tlh(P())},
className:Ah})}})}}))),_.e("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.e(_.t,{cond:function(){return E().description&&B()},
then:function(){return _.e(_.cp,{data:function(){return E().description}},{descriptionPreviewViewModel:function(He){return _.e(_.Xv,{data:He.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:w,maxLinesOverride:function(){return B()?void 0:1},
useMediumText:function(){return(m==null?void 0:m())||K()}})}})}}),_.e(_.t,{cond:function(){return E().attribution&&F()},
then:function(){return _.e(_.cp,{data:function(){return E().attribution}},{attributionViewModel:function(He){return _.e(wu,{data:He.data,
className:th,useMediumText:K})}})}}),_.e(_.t,{cond:function(){return E().actions&&F()},
then:function(){return _.e(_.cp,{data:function(){return E().actions}},{flexibleActionsViewModel:function(He){return _.e(_.l6,{data:He.data,
layout:function(){return Tlh(P())},
className:Ah})}})}})),_.e("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.e(_.cp,{data:function(){return E().bottomMetadataFlexibleContainer}},{flexibleContainer:function(He){return _.e(QyT,{data:He.data,
isOverlay:w})}})))}}))},"Se");
_.CU2.idomCompat=!0;_.qi(_.f(function(k){var E=_.n(_.yg(!1,void 0,"vvzTj")),S=E.next().value,R=E.next().value;return _.e("yt-official-card-view-model",{class:_.SQ("ytOfficialCardViewModelHost",k.className),style:_.nU({"background-color":function(){var V,N=R3((V=k.data())==null?void 0:V.backgroundColor);return N?_.Kc(N):void 0}})},_.e(_.cp,{data:function(){return k.data().header}},{pageHeaderViewModel:function(V){return _.e(_.CU2,{data:V.data,
noPadding:!0})}}),_.e(_.cp,{data:function(){return k.data().contents}},{horizontalShelfViewModel:function(V){return _.e(_.CE,{data:V.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.e(_.t,{cond:S,
then:function(){return _.e("div",{class:"ytOfficialCardViewModelExpandedContent"},_.e(_.cp,{data:function(){return k.data().expandedContents}},{horizontalShelfViewModel:function(V){return _.e(_.CE,{data:V.data,
sizing:"MINI"})}}),_.e("div",{class:"ytOfficialCardViewModelCollapseButton"},_.e(_.cp,{data:function(){return k.data().collapseButton}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
onClick:function(){R(!S())}})}})))},
else:function(){return _.e("div",{class:"ytOfficialCardViewModelExpandButton"},_.e(_.cp,{data:function(){return k.data().expandButton}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
onClick:function(){R(!S())}})}}))}}))},"Te"),"yt-official-card-view-model",{props:{data:_.Nq,
className:_.Nq}});var kIP=_.f(function(k){var E,S=(E=_.en().resolve(_.mz(_.jF)))==null?void 0:E();return _.e("ytw-search-friction-view-model",{class:_.SQ("ytwSearchFrictionViewModelHost",k.className)},_.e("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.e("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.e(_.t,{cond:function(){return S&&k.data().darkThemeImage?k.data().darkThemeImage:k.data().image},
then:function(R){return _.e(_.vM,{data:R,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.e(_.cp,{data:function(){return k.data().overflowMenuButton}},{buttonViewModel:function(R){return _.e(_.yB,{data:R.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.e(_.VB,{text:function(){return k.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.e(_.jw,{each:function(){return k.data().bodyText||[]}},function(R){return _.e(_.VB,{text:R,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.e(_.cp,{data:function(){return k.data().actions}},{buttonViewModel:function(R){return _.e(_.yB,{data:R.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.e(_.VB,{text:function(){return k.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.e(_.VB,{text:function(){return k.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Ue");
kIP.idomCompat=!0;_.qi(kIP,"ytw-search-friction-view-model",{props:{data:_.Nq,className:_.Nq}});_.EC=_.f(function(k){var E=_.VH("markdown-div"),S,R=(S=_.en().resolve(_.mz(_.jF)))==null?void 0:S();_.vX(function(){var V=E.value;var N=new jb2,h=new Map(N.JSC$9293_sanitizerTable.globalAttributePolicies);h.set("style",{policyAction:4});N.JSC$9293_sanitizerTable=new T4(N.JSC$9293_sanitizerTable.allowedElements,N.JSC$9293_sanitizerTable.elementPolicies,N.JSC$9293_sanitizerTable.allowedGlobalAttributes,h,N.JSC$9293_sanitizerTable.globallyAllowedAttributePrefixes);var J=["data-time"];if(J===void 0)h=
new Set(N.JSC$9293_sanitizerTable.globallyAllowedAttributePrefixes),h.add("data-"),N.JSC$9293_sanitizerTable=new T4(N.JSC$9293_sanitizerTable.allowedElements,N.JSC$9293_sanitizerTable.elementPolicies,N.JSC$9293_sanitizerTable.allowedGlobalAttributes,N.JSC$9293_sanitizerTable.globalAttributePolicies,h);else{h=new Set(N.JSC$9293_sanitizerTable.allowedGlobalAttributes);J=_.n(J);for(var m=J.next();!m.done;m=J.next()){m=m.value;if(m.indexOf("data-")!==0)throw Error("ka`"+m);h.add(m)}N.JSC$9293_sanitizerTable=
new T4(N.JSC$9293_sanitizerTable.allowedElements,N.JSC$9293_sanitizerTable.elementPolicies,h,N.JSC$9293_sanitizerTable.globalAttributePolicies,N.JSC$9293_sanitizerTable.globallyAllowedAttributePrefixes)}h=new Set(N.JSC$9293_sanitizerTable.allowedGlobalAttributes);h.add("class");N.JSC$9293_sanitizerTable=new T4(N.JSC$9293_sanitizerTable.allowedElements,N.JSC$9293_sanitizerTable.elementPolicies,h,N.JSC$9293_sanitizerTable.globalAttributePolicies,N.JSC$9293_sanitizerTable.globallyAllowedAttributePrefixes);
_.nR(V,_.AEp(N.build(),PFm(k.text())));BlR(E.value)},"OZ439c");
S={};return _.e("div",null,_.e("markdown-div",{class:_.SQ("ytwMarkdownDivHost",(S.ytwMarkdownDivDark=R,S.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var V;return((V=k.isSmallText)==null?void 0:V.call(k))||!1},S.ytwMarkdownDivHostWrapCodeBlocks=function(){var V;
return((V=k.wrapCodeBlocks)==null?void 0:V.call(k))||!1},S.ytwMarkdownDivHostEnableDefaultStyling=function(){var V;
return!((V=k.disableDefaultStyling)==null?0:V.call(k))},S)),
el:E}))},"We");
_.EC.idomCompat=!0;var EbW=_.f(function(k){var E=k.imageData;var S=_.Zk(k.isInList,!1),R=function(){return S()?{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 _.e("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.e(_.t,{cond:function(){return E().image},
then:function(V){return _.e(_.vM,{data:V,alt:function(){return R().alt},
contentMode:function(){return R().contentMode},
targetWidth:function(){return R().targetWidth},
targetHeight:function(){return R().targetHeight},
className:function(){return R().className}})}}),_.e("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.e("div",{class:_.SQ("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.e(_.VB,{text:function(){return E().title}})),_.e(_.jw,{each:function(){var V;
return(V=E().description)!=null?V:[]}},function(V){return _.e("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.e(SS,{content:V}))})))},"Xe"),SjI=_.f(function(k){var E=k.list;
var S=function(){var R;return(R=E().items)!=null?R:[]};
return _.e("div",{class:"ytwGenAiRichTextViewModelListContent"},_.e(_.t,{cond:function(){return E().title},
then:function(R){return _.e("div",{class:_.SQ("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.e(_.VB,{text:R}))}}),_.e(_.t,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.e("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.e(_.jw,{each:S},function(R){return _.e("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.e(SS,{content:R,isInList:!0}))}))}}),_.e(_.t,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.e("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.e(_.jw,{each:S},function(R){return _.e("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.e(SS,{content:R,isInList:!0}))}))}}),_.e(_.t,{cond:function(){return E().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.e("div",{class:"ytwGenAiRichTextViewModelImageList"},_.e(_.jw,{each:S},function(R){return _.e("div",{class:"ytwGenAiRichTextViewModelListItem"},_.e(SS,{content:R,isInList:!0}))}))}}))},"Ye"),RiI=_.f(function(k){var E=k.table;
return _.e("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.e("thead",null,_.e("tr",null,_.e(_.jw,{each:function(){var S,R;return(R=(S=E().header)==null?void 0:S.cells)!=null?R:[]}},function(S){return _.e("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.e(_.jw,{each:function(){return S.contents}},function(R){return _.e(SS,{content:R})}))}))),_.e("tbody",null,_.e(_.jw,{each:function(){var S;
return(S=E().rows)!=null?S:[]}},function(S){return _.e("tr",null,_.e(_.jw,{each:function(){return S.cells}},function(R){return _.e("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.e(_.jw,{each:function(){return R.contents}},function(V){return _.e(SS,{content:V})}))}))})))},"Ze"),SS=_.f(function(k){var E=k.content;
var S=_.Zk(k.isInList,!1),R=function(){var V,N;return(N=(V=E().contentBlock)==null?void 0:V.contents)!=null?N:[]};
return _.e("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.e(_.t,{cond:function(){return E().text},
then:function(V){return _.e(_.VB,{className:"ytwGenAiRichTextViewModelText",text:V})}}),_.e(_.t,{cond:function(){return E().image},
then:function(V){return _.e(EbW,{imageData:V,isInList:S})}}),_.e(_.t,{cond:function(){return E().list},
then:function(V){return _.e(SjI,{list:V})}}),_.e(_.t,{cond:function(){return E().contentBlock},
then:function(){return _.e("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.e(_.jw,{each:R},function(V){return _.e(SS,{content:V,isInList:!1})}))}}),_.e(_.t,{cond:function(){return E().table},
then:function(V){return _.e(RiI,{table:V})}}))},"$e"),VhI=_.f(function(k){var E={};
E=_.wd("ytwGenAiRichTextViewModelHost",(E.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.P_("search_overview_link_style")),E));return _.e("gen-ai-rich-text-view-model",{class:E},_.e(SS,{content:function(){return k.data().content}}))},"af");_.N1G=_.f(function(k){var E=k.data;var S=function(){var K;return((K=E().loadingUi)!=null?K:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},R=function(){return E().isLoading&&(S()==="UNSPECIFIED"||S()==="GHOST_CARD")},V=function(){return!E().isLoading},N=function(){return!!E().content&&!E().contents},h=function(){return!!E().contents},J=function(){return!!E().nextQueryButtons},m=function(){return E().isLoading&&S()==="INVISIBLE"},a=function(){var K,r;
return(r=(K=E().headerIcon)==null?void 0:K.iconType)!=null?r:""},T=function(){var K;
return(K=E().content)!=null?K:""},w=function(){return!!E().sourcesSection},P,B=!((P=_.en().resolve(_.mz(_.jF)))==null||!P()),F=_.HX(function(){var K=[],r=E().contents;
if(r)for(var x=0;x<r.length;x++){var L=_.W(r&&r[x],EPC);L&&K.push(L)}return K},void 0,"gcCsZb");
_.b$(function(){E().isLoading||_.o_("so_re",void 0,"search_overview_answer")});
return _.e("ytd-overview-answer-view-model",{class:function(){var K={};K=(K.ytdOverviewAnswerViewModelHost=!0,K.ytdOverviewAnswerViewModelDarkBackground=B&&!m(),K.ytdOverviewAnswerViewModelLightBackground=!B&&!m(),K);return _.wd(K)}},_.e(_.t,{cond:function(){return!m()},
then:function(){return _.e(_.tj,null,_.e("h2",null,_.e("div",{class:"ytdOverviewAnswerViewModelHeader"},_.e(_.t,{cond:a,then:function(K){return _.e("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.e(_.i_,{icon:K}))}}),_.e("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.e("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return E().headerText}),_.e("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.e(_.VB,{text:function(){return E().headerSubtext}}))))),_.e(_.t,{cond:R,
then:function(){return _.e(Yeh,null)}}),_.e(_.t,{cond:V,
then:function(){return _.e(_.tj,null,_.e(_.t,{cond:N,then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelText"},_.e(_.EC,{text:T,isSmallText:!0}))}}),_.e(_.t,{cond:h,
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelRichText"},_.e(_.jw,{each:F},function(K){return _.e(VhI,{data:K})}))}}),_.e(_.t,{cond:J,
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.e(_.cp,{data:function(){return E().nextQueryButtons}},{buttonViewModel:function(K){return _.e(_.yB,{data:K.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.CE}))}}),_.e("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.e("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.e(_.t,{cond:function(){return!!_.W(E().likeButtonViewModel,_.Dr)&&!!_.W(E().dislikeButtonViewModel,_.j_)},
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.e(_.q1,{data:function(){return _.W(E().likeButtonViewModel,_.Dr)},
disableIconAnimation:!0}),_.e(_.M1,{data:function(){return _.W(E().dislikeButtonViewModel,_.j_)}}))}})),_.e(_.t,{cond:function(){var K;
return(K=E().sourcesSection)==null?void 0:K.headerText},
then:function(K){return _.e("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.e(_.VB,{text:K}))}})),_.e(_.t,{cond:w,
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelSources"},_.e(_.cp,{data:function(){var K;return(K=E().sourcesSection)==null?void 0:K.sourcesShelf}},{buttonViewModel:_.yB,
horizontalShelfViewModel:function(K){return _.e(_.CE,{data:K.data,includeMargin:!0,hasPeek:!0})}}))}}),_.e(_.t,{cond:function(){return E().disclaimerText},
then:function(){return _.e("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.e(_.VB,{text:function(){return E().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"bf");var IRx=_.f(function(k){var E=_.dJ(k,{}).data;return _.e("yt-shopping-content-line-item-view-model",{class:_.SQ("ytShoppingContentLineItemViewModelHost")},_.e(_.VB,{text:function(){var S;return(S=E().text)==null?void 0:S.attributedString}}))},"cf");_.RM=_.f(function(k){k=_.dJ(k,{});var E=k.data,S={};return _.e("yt-shopping-content-line-view-model",{class:_.SQ("ytShoppingContentLineViewModelHost",k.className,(S.ytShoppingContentLineViewModelTruncateText=function(){return!E().wrapContent},S)),
style:_.nU({"--shopping-content-line-gap":function(){return E().itemGap?E().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return E().lineHeight?E().lineHeight+"px":void 0}})},_.e(_.jw,{each:function(){return(E().items||[]).map(function(R){return _.W(R,csY)}).filter(function(R){return!!R})}},function(R){return _.e(IRx,{data:R})}))},"df");var nba=_.f(function(k){var E=k.data;var S=function(){var N;return((N=E().image)==null?void 0:N.height)||48},R=function(){var N;
return((N=E().image)==null?void 0:N.width)||48},V=function(){return"width: "+R()+"px; height: "+S()+"px;"};
return _.e("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var N,h,J,m=((N=_.en().resolve(_.mz(_.jF)))==null?0:N())?(h=E())==null?void 0:h.darkThemeBackgroundColor:(J=E())==null?void 0:J.lightThemeBackgroundColor;return"background-color: "+(m?_.Kc(m):"")+";"},
el:_.Z0(_.FX(function(){var N;return(N=E())==null?void 0:N.rendererContext}))},_.e(_.t,{cond:function(){var N,h;
return(h=(N=E().image)==null?void 0:N.image)!=null?h:E().thumbnail},
then:function(N){return _.e("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var h;return"background-color: "+(((h=E().image)==null?0:h.backgroundColor)?_.Kc(E().image.backgroundColor):"")+";"+V()}},_.e(_.vM,{data:N,
height:S,width:R,style:V,alt:""}))}}),_.e("div",{class:"ytShoppingDescriptionItemViewModelText"},_.e(_.cp,{data:function(){return E().line1}},{shoppingContentLineViewModel:function(N){return _.e(_.RM,{data:N.data})}}),_.e(_.cp,{data:function(){return E().line2}},{shoppingContentLineViewModel:function(N){return _.e(_.RM,{data:N.data})}}),_.e(_.cp,{data:function(){return E().line3}},{shoppingContentLineViewModel:function(N){return _.e(_.RM,{data:N.data})}})))},"ef");var ilR=_.f(function(k){var E=k.data;var S=k.active;var R=_.VH("transcript-segment-view-model");_.vX(function(){var V,N,h,J=((V=_.en().resolve(_.mz(_.jF)))==null?0:V())?(N=E())==null?void 0:N.darkThemeColorPalette:(h=E())==null?void 0:h.lightThemeColorPalette;J&&(J.additiveBackground&&R.value.style.setProperty("--timestamp-active-background-color",_.Kc(J.additiveBackground)),J.textSecondary&&R.value.style.setProperty("--timestamp-active-color",_.HT(J.textSecondary)))},"TnVCnb");
k={};return _.e("transcript-segment-view-model",{class:_.SQ("ytwTranscriptSegmentViewModelHost",(k.ytwTranscriptSegmentViewModelHostActive=S,k.ytwTranscriptSegmentViewModelHostModern=_.Y("enable_timeline_view_modern_transcript")||_.Y("enable_timeline_view_modern_transcript_fe"),k)),el:R},_.e(_.t,{cond:function(){var V;return(V=E())==null?void 0:V.timestamp},
then:function(V){var N={};return _.e(_.tj,null,_.e("div",{class:_.SQ("ytwTranscriptSegmentViewModelTimestamp",(N.ytwTranscriptSegmentViewModelTimestampActive=S,N)),"aria-hidden":!0},V),_.e("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var h=V().split(":").map(Number),J=_.n(h.reverse());h=J.next().value;var m=J.next().value;J=J.next().value;return _.uR1({hours:J,minutes:m,seconds:h})}))}}),_.e(_.VB,{text:function(){var V,N,h;
return(h=(V=E())==null?void 0:V.attributedText)!=null?h:{content:(N=E())==null?void 0:N.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"gf");var hiU=_.f(function(k){var E=k.data;return _.e("div",{class:"videoAttributesSectionViewModelHeader"},_.e("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.e("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return E().headerTitle}),_.e(_.t,{cond:function(){return E().headerInfoButton},
then:function(){return _.e(_.cp,{data:function(){return E().headerInfoButton}},{buttonViewModel:function(S){return _.e(_.yB,{data:S.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.e(_.t,{cond:function(){return E().headerSubtitle},
then:function(){return _.e("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return E().headerSubtitle})}}))},"hf"),JhU=_.f(function(k){function E(K){return Math.max(Math.min(K,0),a()-J())}
var S=k.data;var R;k=_.VH("div",function(K){var r=function(){T(K.clientWidth)};
r();window.ResizeObserver&&(R=new ResizeObserver(r),R.observe(K))});
var V=_.VH("div",function(K){m(K.scrollWidth)}),N=_.n(_.yg(0,void 0,"C3XQAe")),h=N.next().value;
N=N.next().value;var J=h,m=N;N=_.n(_.yg(0,void 0,"db7y3"));h=N.next().value;N=N.next().value;var a=h,T=N;h=_.n(_.yg(0,void 0,"RchC7"));var w=h.next().value,P=h.next().value;_.bI(function(){var K;(K=R)==null||K.disconnect()});
var B=function(){P(E(w()+a()))},F=function(){P(E(w()-a()))};
return _.e("yt-video-attributes-section-view-model",null,_.e("div",{class:"videoAttributesSectionViewModelHost"},_.e(_.t,{cond:function(){return S().headerTitle},
then:function(){return _.e(hiU,{data:S})}}),_.e("div",{class:_.SQ("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:k},_.e("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.nU({transform:function(){var K=w();_.Mg("HTML_DIR")==="rtl"&&(K*=-1);return"translateX("+K+"px)"}}),
el:V},_.e(_.cp,{data:function(){return S().videoAttributeViewModels}},{videoAttributeViewModel:QBY}))),_.e(_.cp,{data:function(){return S().footerButton}},{buttonViewModel:function(K){return _.e(_.yB,{data:K.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.e(_.t,{cond:function(){return w()<0&&S().previousButton},
then:function(){return _.e("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.e(_.cp,{data:function(){return S().previousButton}},{buttonViewModel:function(K){return _.e(_.yB,{data:K.data,
onClick:B})}}))}}),_.e(_.t,{cond:function(){return w()>a()-J()&&S().nextButton},
then:function(){return _.e("div",{class:"videoAttributesSectionViewModelRightArrow"},_.e(_.cp,{data:function(){return S().nextButton}},{buttonViewModel:function(K){return _.e(_.yB,{data:K.data,
onClick:F})}}))}})))},"jf");
JhU.idomCompat=!0;var chR=_.f(function(k){var E=k.data;var S=k.active;var R={},V={};return _.e("timeline-item-view-model",{class:_.SQ("ytwTimelineItemViewModelHost",(R.ytwTimelineItemViewModelHostChapterChild=k.chapterChild,R.ytwTimelineItemViewModelModern=_.Y("enable_timeline_view_modern_transcript")||_.Y("enable_timeline_view_modern_transcript_fe"),R))},_.e("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.e("div",{class:_.SQ("ytwTimelineItemViewModelTimestamp",(V.ytwTimelineItemViewModelTimestampActive=
S,V))},function(){return E().timestamp})),_.e("div",{class:"ytwTimelineItemViewModelContentItems"},_.e(_.cp,{data:function(){return E().contentItems}},{transcriptSegmentViewModel:function(N){return _.e(ilR,{data:N.data,
active:S})},
videoAttributesSectionViewModel:JhU})))},"kf");var mAT=_.f(function(k){var E=k.data;k={};return _.e("timeline-chapter-view-model",{class:_.SQ("ytwTimelineChapterViewModelHost")},_.e("div",{class:_.SQ("ytwTimelineChapterViewModelTitle",(k.ytwTimelineChapterViewModelModern=_.Y("enable_timeline_view_modern_transcript")||_.Y("enable_timeline_view_modern_transcript_fe"),k))},function(){return E().title}),_.e(_.cp,{data:function(){return E().contents}},{timelineItemViewModel:function(S){return _.e(chR,{data:S.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(S){return _.e(JhU,{data:S.data})}}))},"lf");var eiP=_.f(function(k){var E=k.data;var S=_.VH("macro-markers-panel-item-view-model"),R=_.iK(_.gVm,function(){var N;return(N=E().markersEngagementPanelSyncEntityKey)!=null?N:""}),V=function(){var N;
return((N=R())==null?void 0:N.activeItemIndex)===E().index};
k=_.RZ(function(N){var h,J,m,a,T;return _.c(function(w){if(w.nextAddress==1)return N.stopPropagation(),_.Bp(_.Pp(N),S.value,["A".toString(),"BUTTON".toString()])?w.return():(h=_.Uk(E().onTap))?w.yield(_.Ef(),2):w.return();J=w.yieldResult;a=(m=_.W(h,_.jm))==null?void 0:m.startTimeSeconds;a===void 0||(T=J)!=null&&T.seekTo(a,!0);_.KR(w)})});
return _.e("macro-markers-panel-item-view-model",{class:_.SQ("ytwMacroMarkersPanelItemViewModelHost",{"is-active":V}),el:S,"on:click":k,tabindex:0,role:"button"},_.e(_.cp,{data:function(){var N;return(N=E())==null?void 0:N.item}},{timelineChapterViewModel:function(N){return _.e(mAT,{data:N.data,
active:V})},
timelineItemViewModel:function(N){return _.e(chR,{data:N.data,active:V})},
videoAttributeViewModel:QBY,shoppingDescriptionItemViewModel:nba}))},"mf");
eiP.idomCompat=!0;_.qi(eiP,"macro-markers-panel-item-view-model",{props:{data:_.Nq}});_.qi(JhU,"yt-video-attributes-section-view-model",{props:{data:_.Nq}});var aRT=_.f(function(k){var E=function(){var S,R,V;return(V=(S=k.data().leadingLogoAccessibility)==null?void 0:(R=S.accessibilityData)==null?void 0:R.label)!=null?V:""};
return _.e("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.e(_.t,{cond:function(){return k.data().leadingLogo},
then:function(S){return _.e(_.vM,{className:"ytwFantasySectionHeaderViewModelLogo",data:S,alt:E})}}),_.e("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.e(_.VB,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return k.data().title}}),_.e(_.VB,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return k.data().subtitle}})),_.e(_.cp,{data:function(){return k.data().trailingButton}},{buttonViewModel:function(S){return _.e(_.yB,{data:S.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"nf");var thY=_.f(function(k){var E={};E=_.SQ("ytwFantasyTeamViewModelHost",(E.ytwFantasyTeamViewModelCompact=function(){var V;return!((V=k.compact)==null||!V.call(k))},E.ytwFantasyTeamViewModelUser=function(){return k.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},E.ytwFantasyTeamViewModelOpponent=function(){return k.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},E));
var S=function(){var V,N,h;return(h=(V=k.data().teamLogoAccessibility)==null?void 0:(N=V.accessibilityData)==null?void 0:N.label)!=null?h:""},R=_.iK(KgC,function(){return k.data().teamEntityKey});
return _.e("ytw-fantasy-team-view-model",{class:E},_.e(_.t,{cond:function(){return k.data().teamLogo},
then:function(V){return _.e(_.vM,{className:"ytwFantasyTeamViewModelLogo",data:V,alt:S})}}),_.e("div",{class:"ytwFantasyTeamViewModelMetadata"},_.e("div",{class:"ytwFantasyTeamViewModelHeader"},_.e(_.VB,{className:"ytwFantasyTeamViewModelScore",
text:function(){var V;return(V=R())==null?void 0:V.score}}),_.e(_.i_,{icon:function(){var V;
return(V=R())==null?void 0:V.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.e(_.VB,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var V;return(V=R())==null?void 0:V.projectedScore}})),_.e(_.VB,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return k.data().primaryText}}),_.e(_.VB,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return k.data().secondaryText}}),_.e(_.VB,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return k.data().tertiaryText}})),_.e(_.VB,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var V;return(V=R())==null?void 0:V.score}}))},"of");_.qi(_.f(function(k){return _.e("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.e("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.e(_.cp,{data:function(){return k.data().summaryHeader}},{fantasySectionHeaderViewModel:aRT})),_.e(_.cp,{data:function(){return k.data().userTeam}},{fantasyTeamViewModel:thY}),_.e(_.cp,{data:function(){return k.data().opponentTeam}},{fantasyTeamViewModel:thY}))},"pf"),"fantasy-league-summary-view-model",{props:{data:_.Nq}});var T10=_.f(function(k){var E=_.dJ(k,{shape:{},useCustomTabRenderable:!1}),S=E.shape;E=E.useCustomTabRenderable;var R=k.customTabRenderable,V=function(){return S().disabled},N=function(){return S().selected},h=function(){return S().title},J=function(){return S().icon},m=_.VH("yt-tab-shape");
k=_.RZ(function(w){var P;if(!V()&&((P=S().aTagConfig)==null?0:P.onclick))S().aTagConfig.onclick(w);return!1});
var a=_.RZ(function(w){if(w.key==="Enter"||w.key==="ArrowUp"||w.key==="ArrowDown")w.preventDefault(),m.value.click();return!1}),T={};
return _.e("yt-tab-shape",{class:_.SQ("yt-tab-shape",function(){return S().className},(T["yt-tab-shape__tab--last-tab"]=function(){return S().isLastTab},T["yt-tab-shape--host-disabled"]=V,T["yt-tab-shape--host-clickable"]=!R,T)),
role:R?void 0:"tab","aria-selected":N!=null?N:!1,"aria-disabled":V,tabindex:R?void 0:0,"on:click":k,"on:keydown":a,el:m,"tab-identifier":function(){return S().identifier},
"tab-title":h},_.e(_.t,{cond:E,then:function(){return R()},
else:function(){var w={},P={};return _.e(_.tj,null,_.e("div",{class:_.SQ("yt-tab-shape__tab",(w["yt-tab-shape__tab--tab-selected"]=N,w))},_.e(_.t,{cond:J,then:function(B){return _.e(_.i_,{className:"yt-tab-shape__tab-icon",icon:function(){return B().iconType}})}}),h),_.e("div",{class:_.SQ("yt-tab-shape__tab-bar",(P["yt-tab-shape__tab-bar--tab-bar-selected"]=N,P))}))}}))},"qf");
T10.idomCompat={callbacks:{customTabRenderable:!0}};_.PCW=_.f(function(k){var E=k.shape;k=_.n(_.yg(48,void 0,"rCewuf"));var S=k.next().value,R=k.next().value;k=_.n(_.yg(0,void 0,"aUUTWe"));var V=k.next().value,N=k.next().value,h=function(){return E().tabs},J=_.VH("yt-tab-group-shape"),m=function(){var a,T;
return(T=(a=h())==null?void 0:a.findIndex(function(w){return w.selected}))!=null?T:-1};
_.b$(function(){var a=J.value.querySelectorAll("yt-tab-shape"),T=m()>-1?a[m()]:void 0;_.ZJ.addJob(function(){R((T==null?void 0:T.getBoundingClientRect().width)||0)},8,0)});
_.vX(function(){var a=m(),T=_.ZJ.addJob(function(){var w,P=((w=J.value)==null?void 0:w.querySelectorAll("yt-tab-shape"))||[],B;R(((B=a>-1?P[a]:void 0)==null?void 0:B.getBoundingClientRect().width)||0);for(B=w=0;B<a;B++)w+=P[B].offsetWidth+24;_.Mg("HTML_DIR")==="rtl"&&(w=-w);N(w)},8,0);
_.bI(function(){_.ZJ.cancelJob(T)})},"DAb5Qb");
k={};return _.e("yt-tab-group-shape",{class:_.SQ("tabGroupShapeHost",(k.tabGroupShapeOverflowHidden=function(){return E().isOverflowHidden},k)),
el:J},_.e(_.t,{cond:h,then:function(a){return _.e(_.tj,null,_.e("div",{class:"tabGroupShapeTabs",role:"tablist"},_.e(_.jw,{each:a},function(T,w){return _.e(T10,{shape:function(){return Object.assign({},T,{isLastTab:w()===a().length-1})},
customTabRenderable:T.customTabRenderable,useCustomTabRenderable:!!T.customTabRenderable})})),_.e(weI,{width:S,
sliderOffset:V}))}}))},"sf");
_.PCW.idomCompat=!0;var weI=_.f(function(k){var E=_.Zk(k.sliderOffset,0),S=k.width;return _.e("div",{class:"tabGroupShapeSlider",style:_.nU({width:function(){return S()+"px"},
transform:function(){return"translateX("+E()+"px)"}})})},"tf");var B1W=_.f(function(k){var E=function(){var N,h,J;return(J=(N=k.data().playerLogoAccessibility)==null?void 0:(h=N.accessibilityData)==null?void 0:h.label)!=null?J:""},S=_.iK(pOA,function(){return k.data().playerEntityKey}),R={};
R=_.SQ("ytwFantasyPlayerViewModelHost",(R.ytwFantasyPlayerViewModelPlaying=function(){var N;return!((N=S())==null||!N.isPlayerPlaying)},R.ytwFantasyPlayerViewModelOnField=function(){var N;
return((N=S())==null?void 0:N.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},R.ytwFantasyPlayerViewModelRedZone=function(){var N;
return((N=S())==null?void 0:N.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},R));
var V=function(){var N,h,J,m=((N=_.en().resolve(_.mz(_.jF)))==null?0:N())?(h=k.data().playerLogoBackgroundColor)==null?void 0:h.darkTheme:(J=k.data().playerLogoBackgroundColor)==null?void 0:J.lightTheme;return m===void 0?"":_.Kc(m)};
return _.e("ytw-fantasy-player-view-model",{class:R},_.e(_.t,{cond:function(){return k.data().playerLogo},
then:function(N){return _.e("div",{class:"ytwFantasyPlayerViewModelLogo"},_.e("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.e(_.vM,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.nU({"background-color":V}),data:N,alt:E})),_.e("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.e(_.i_,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.e("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.e("div",{class:"ytwFantasyPlayerViewModelHeader"},_.e(_.VB,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var N;return(N=k.data())==null?void 0:N.playerNameText}}),_.e(_.VB,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var N;return(N=k.data())==null?void 0:N.playerDescriptionText}})),_.e("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.e(_.VB,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var N;return(N=S())==null?void 0:N.gamePeriodText}}),_.e(_.VB,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var N;return(N=k.data())==null?void 0:N.opponentTeamText}}),_.e(_.VB,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var N;return(N=S())==null?void 0:N.gameStatusText}}),_.e(_.VB,{className:_.SQ("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var N;return(N=S())==null?void 0:N.playerStatusText}})),_.e("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.e(_.VB,{text:function(){var N;
return(N=S())==null?void 0:N.playerStatsText}}))),_.e(_.VB,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var N;return(N=S())==null?void 0:N.fantasyScore}}))},"uf");var Yj0=_.f(function(k){return _.e("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.e(_.t,{cond:function(){return k.data().players},
then:function(E){return _.e(_.cp,{data:E},{fantasyPlayerViewModel:B1W})}}))},"vf");var WIY=_.f(function(k){var E=_.n(_.IZ(function(){var V;return(V=k.data().selectedTabIdentifierKey)!=null?V:""})),S=E.next().value,R=E.next().value;
_.vC(function(){var V;(V=k.setSelectedTabSignal)==null||V.call(k,S)});
return _.e("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.e("div",{class:"ytTabbedViewModelTabGroup"},_.e(_.PCW,{shape:function(){var V=k.data(),N=[],h={tabs:N};if(!V.tabs)return h;V=_.n(V.tabs);for(var J=V.next(),m={};!J.done;m={tabViewModel:void 0},J=V.next())if(m.tabViewModel=_.W(J.value,Twp),m.tabViewModel){var a=J=void 0;N.push({aTagConfig:{onclick:function(T){return function(){var w;R((w=T.tabViewModel.tabIdentifier)!=null?w:"")}}(m)},
identifier:m.tabViewModel.tabIdentifier,selected:S()===m.tabViewModel.tabIdentifier,title:(a=(J=m.tabViewModel.title)==null?void 0:J.content)!=null?a:""})}return h}})),_.e(_.cp,{data:function(){var V,N=_.n((V=k.data().tabs)!=null?V:[]);
for(V=N.next();!V.done;V=N.next())if((V=_.W(V.value,Twp))&&V.tabIdentifier===S())return V.content}},{fantasyRosterViewModel:Yj0}))},"xf");_.qi(_.f(function(k){var E=_.n(WQR()),S=E.next().value,R=E.next().value;return _.e("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.e(_.VB,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return k.data().title}}),_.e(_.t,{cond:function(){return k.data().tabbedViewModel},
then:function(V){return _.e(_.cp,{data:V},{tabbedViewModel:function(N){return _.e(WIY,{data:N.data,setSelectedTabSignal:R})}})}}),_.e(_.t,{cond:function(){var V,N=(V=_.W(k.data().tabbedViewModel,wlA))==null?void 0:V.tabs;
V=_.W(N==null?void 0:N[0],Twp);N=_.W(N==null?void 0:N[1],Twp);var h=V==null?void 0:V.tabIdentifier;if(S()===h){var J,m;if(!((J=_.W(V==null?void 0:V.content,KfA))==null?0:(m=J.players)==null?0:m.length))return k.data().noUserTeamPlayersText}else{var a,T;if(!((a=_.W(N==null?void 0:N.content,KfA))==null?0:(T=a.players)==null?0:T.length))return k.data().noOpponentTeamPlayersText}},
then:function(V){return _.e(_.VB,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:V})}}))},"yf"),"ytw-fantasy-matchup-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){return _.e("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.e(_.VB,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return k.data().title}}),_.e(_.t,{cond:function(){return k.data().matchupTeamPairs},
then:function(E){return _.e(_.jw,{each:E,keyBy:"INDEX"},function(S){return _.e("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.e(_.cp,{data:function(){return[S().firstTeam,S().secondTeam]}},{fantasyTeamViewModel:function(R){return _.e(thY,{data:R.data,
compact:!0})}}))})}}))},"zf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=function(){var V,N,h;return(h=(V=k.data().userLogoAccessibility)==null?void 0:(N=V.accessibilityData)==null?void 0:N.label)!=null?h:""},S=function(){var V,N,h;
return(h=(V=k.data().opponentLogoAccessibility)==null?void 0:(N=V.accessibilityData)==null?void 0:N.label)!=null?h:""},R=_.iK(HHI,function(){return k.data().entityKey});
return _.e("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.e("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.e(_.t,{cond:function(){return k.data().userLogo},
then:function(V){return _.e(_.vM,{className:"ytwFantasyWinProbabilityViewModelLogo",data:V,alt:E})}}),_.e("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.e(_.VB,{text:function(){return k.data().title}})),_.e(_.t,{cond:function(){return k.data().opponentLogo},
then:function(V){return _.e(_.vM,{className:"ytwFantasyWinProbabilityViewModelLogo",data:V,alt:S})}})),_.e("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.e("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.e(_.VB,{text:function(){var V;
return(V=R())==null?void 0:V.userWinNumberLabel}})),_.e("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.e("div",{class:_.SQ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.nU({flex:function(){var V,N;return(N=(V=R())==null?void 0:V.userWinNumber)!=null?N:50}})}),_.e("div",{class:_.SQ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.nU({flex:function(){var V,N;return(N=(V=R())==null?void 0:V.opponentWinNumber)!=null?N:50}})})),_.e("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.e(_.VB,{text:function(){var V;
return(V=R())==null?void 0:V.opponentWinNumberLabel}}))))},"Af"),"fantasy-win-probability-view-model",{props:{data:_.Nq}});var FIx={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},yhR=_.f(function(k){return _.e(_.cp,{data:k.button},{buttonViewModel:function(E){return _.e(_.yB,{data:E.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Bf"),oba=_.f(function(k){return _.e("ytd-backstage-locked-post-view-model",{class:_.SQ("ytdBackstageLockedPostViewModelHost",k.className)},_.e("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.e("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.e(_.cp,
{data:function(){return k.data().authorAvatar}},{decoratedAvatarViewModel:_.sV})),_.e("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.e("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.e(_.VB,{text:function(){return k.data().authorText}})),_.e("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.e(_.VB,{text:function(){return k.data().publishedTimeText}}),_.e(_.cp,{data:function(){return k.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(E){return _.e(KmC,
{data:E.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.e("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.e(_.VB,{text:function(){return k.data().contentText}})),_.e(_.D_,null,_.e(_.xk,{when:function(){return k.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.e("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.e(_.vM,{data:FIx,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.e(_.VB,{text:function(){return k.data().lockedText}}))}),_.e(_.xk,{when:function(){return k.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.e("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.e("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.e(_.vM,{data:FIx,
alt:""})),_.e(_.VB,{text:function(){return k.data().lockedText}}))})),_.e("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.e(yhR,{button:function(){return k.data().likeButton}}),_.e("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return k.data().voteCountA11y}},_.e(_.VB,{text:function(){return k.data().voteCount}})),_.e(yhR,{button:function(){return k.data().dislikeButton}}),_.e(yhR,{button:function(){return k.data().commentButton}}),_.e("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return k.data().commentCountA11y}},_.e(_.VB,{text:function(){return k.data().commentCount}}))))},"Cf");
oba.idomCompat=!0;_.qi(oba,"ytd-backstage-locked-post-view-model",{props:{data:_.Nq,className:_.Nq}});_.B9("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var V1=function(){var k=_.p.apply(this,arguments)||this;k.darkerPanels=_.Y("web_watch_darker_panels");k.commentsHidePanelButton=!1;k.isWatchGrid=!1;k.continuationShowButton=!1;k.isSearch=!1;k.isConstrainedList=!1;k.isWatch=!1;k.eligibleToSwitchToGrid=!1;k.useBigThumbs=!1;k.notSticky=!1;k.epRestyle=!1;k.isCarouselInFeed=!0;k.topSpacingZero=!1;k.continuationIsInitialLoad=!0;k.enableSqueezebackPanels=_.Y("web_shorts_enable_squeezeback_panels");k.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");
k.mastheadHeight=0;k.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};k.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return k};
_.y(V1,_.p);_.I=V1.prototype;_.I.updateLockupContainerTypes=function(k){if(this.eligibleToSwitchToGrid){var E;(E=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||E.forEach(function(S){S.containerType=k})}};
_.I.getItemsPath=function(){return"data.contents"};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.I.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",
eduCardViewModel:"yt-edu-card-view-model",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",linearLayoutViewModel:"yt-linear-layout-view-model",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:_.Y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Y("kevlar_low_priority_continuation")}}};
_.I.created=function(){};
_.I.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.I.handleIntersect=function(k){this.notSticky=k[0].intersectionRatio===1};
_.I.attached=function(){var k=this,E=_.Y("web_item_section_sticky_header_use_scroll_as_fallback");E||document.addEventListener("scroll",_.Ic(this,this.updateHeaderState));var S;this.mastheadHeight=((S=document.querySelector("ytd-masthead"))==null?void 0:S.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(R){k.handleIntersect(R)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):E&&document.addEventListener("scroll",_.Ic(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){k.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.I.detached=function(){document.removeEventListener("scroll",_.Ic(this,this.updateHeaderState));var k;(k=this.intersectionObserver)==null||k.disconnect();var E;(E=this.resizeObserver)==null||E.disconnect()};
_.I.updated=function(k){k.has("data")&&this.updateHeaderState()};
_.I.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(jFA(!this.notSticky))};
_.I.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var k=_.Cc(this.hostElement).querySelector("ytd-comments-header-renderer");k&&(k.hidePanelButton=this.commentsHidePanelButton)}};
_.I.onRetrieveLocation=function(k,E){this.containsComments()&&(this.firstCommentsLoaded=E.hasComments=!0)};
_.I.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.I.onLoadReloadContinuation=function(k,E){var S=this;k.stopPropagation();this.isReloading=!0;_.Me(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(R){var V=_.en().resolve(_.yS);R=E(R);V.postData(R).then(function(N){S.onReloadContinuationData(N)})}})};
_.I.onReloadContinuationData=function(k){if(k=this.get("response.continuationContents.itemSectionContinuation",k)||this.get("response.contents.itemSectionRenderer",k)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",k)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",k))this.set("data.contents",k.contents||k.results),k.header&&this.set("data.header",k.header),this.set("data.continuations",
k.continuations||[]);this.isReloading=!1};
_.I.computeContentsClass=function(k){return k?"reloading":""};
_.I.computeSectionIdentifier=function(k){return k==null?void 0:k.sectionIdentifier};
_.I.computeFitContainer=function(k){return(k==null?void 0:k.sectionIdentifier)==="youchat-item-section"};
_.I.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.Y("kevlar_disable_comments_auto_load")};
_.I.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.I.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.I.computeHasDestinationShelfRenderer=function(k){var E,S;return!!(k==null?0:(E=k.contents)==null?0:(S=E[0])==null?0:S.destinationShelfRenderer)};
_.I.computeHasSectionGroupViewModel=function(k){var E,S;return!!(k==null?0:(E=k.contents)==null?0:(S=E[0])==null?0:S.sectionGroupViewModel)};
_.I.computeHasQrCodeRenderer=function(k){var E,S;return!!(k==null?0:(E=k.contents)==null?0:(S=E[0])==null?0:S.qrCodeRenderer)};
_.I.computeStaticCommentsHeader=function(k){return k&&this.containsComments()};
_.I.computeEpRestyle=function(k){return _.Y("web_ep_restyling")&&k&&this.containsComments()};
_.I.computeIsContinuationCommentSection=function(k){return(k==null?void 0:k.targetId)==="shorts-engagement-panel-comments-section"||(k==null?void 0:k.targetId)==="comments-section"||(k==null?void 0:k.targetId)==="engagement-panel-comments-section"};
_.I.computeSuppressPaddingDisclaimer=function(){var k,E,S,R;return!!((k=this.data)==null?0:(E=k.contents)==null?0:(S=E[0])==null?0:(R=S.productListHeaderRenderer)==null?0:R.suppressPaddingDisclaimer)};
_.I.computeHeaderStyle=function(k){switch(k==null?void 0:k.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.I.dataChanged=function(){this.firstCommentsLoaded=!1};
_.I.observeDataContentsLength=function(){var k,E;((k=this.data)==null?0:(E=k.contents)==null?0:E.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.I.onYtDismissibleItemDismissedChange=function(k){this._setItemDismissed(k.type==="yt-dismissible-item-dismissed")};
_.I.triggerContinuations=function(){for(var k=_.Cc(this.hostElement).querySelector("#continuations").children,E=0;E<k.length;E++)k[E].trigger()};
_.I.triggerInitialContinuations=function(){for(var k=_.Cc(this.hostElement).querySelector("#continuations").children,E=0;E<k.length;E++)k[E].triggerIfNotPreviouslyTriggered()};
_.I.handleYtItemSectionContinuation=function(k,E){var S;E&&((S=this.data)==null?void 0:S.sectionIdentifier)!==E||(this.set("data.continuations",[k]),this.triggerContinuations())};
_.I.handleYtItemSectionReplace=function(k,E){var S;E&&((S=this.data)==null?void 0:S.sectionIdentifier)!==E||(this.set("data.contents",k),this.set("data.continuations",[]))};
_.I.computeUseHeightHack=function(k){return k&&!_.Y("kevlar_disable_height_hack")};
_.I.computeTopSpacingZero=function(k){return k};
_.I.continuationShowButtonChanged=function(){var k=_.Cc(this.hostElement).querySelector("ytd-continuation-item-renderer");k&&(k.showButton=this.continuationShowButton)};
_.I.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("data-changed",this.data))};
_.mt.Object.defineProperties(V1.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Y("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 k;return!((k=this.data)==null||!k.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return!!((k=this.data)==null?0:(E=k.contents)==null?0:(S=E[0])==null?0:S.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R,V,N,h;return!!((k=this.data)==null?0:(E=k.contents)==null?0:(S=E[0])==null?0:(R=S.shelfRenderer)==null?0:(V=R.content)==null?0:(N=V.gridRenderer)==null?0:(h=N.targetId)==null?0:h.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return!!((k=this.data)==null?0:(E=k.contents)==null?0:(S=E[0])==null?0:S.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return!!((k=this.data)==null?0:(E=k.contents)==null?0:(S=E[0])==null?0:S.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.P_("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.Y("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.Y("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
V1.prototype.dataChangedForBinding=V1.prototype.dataChangedForBinding;V1.prototype.continuationShowButtonChanged=V1.prototype.continuationShowButtonChanged;V1.prototype.onYtDismissibleItemDismissedChange=V1.prototype.onYtDismissibleItemDismissedChange;V1.prototype.observeDataContentsLength=V1.prototype.observeDataContentsLength;V1.prototype.dataChanged=V1.prototype.dataChanged;V1.prototype.onServiceRequestCompleted=V1.prototype.onServiceRequestCompleted;V1.prototype.onLoadReloadContinuation=V1.prototype.onLoadReloadContinuation;
V1.prototype.onRetrieveLocation=V1.prototype.onRetrieveLocation;V1.prototype.commentsHidePanelButtonChanged=V1.prototype.commentsHidePanelButtonChanged;V1.prototype.dispatchChipBarIsSticky=V1.prototype.dispatchChipBarIsSticky;V1.prototype.updateLockupContainerTypes=V1.prototype.updateLockupContainerTypes;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],V1.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.TF.YtLazyListBehavior),_.l("design:type",Object)],V1.prototype,"ytLazyListBehavior",void 0);_.Z([_.g(_.Nk.YtNextContinuationBehavior),_.l("design:type",Object)],V1.prototype,"ytNextContinuationBehavior",void 0);
_.Z([_.g(_.VX),_.l("design:type",Object)],V1.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],V1.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],V1.prototype,"ytdReduxBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],V1.prototype,"darkerPanels",void 0);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],V1.prototype,"engagementPanel",void 0);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"commentsHidePanelButton",void 0);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"isWatchGrid",void 0);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"continuationShowButton",void 0);_.Z([_.H({computed:"computeIsContinuationCommentSection(data)"}),_.l("design:type",Boolean)],V1.prototype,"continuationIsCommentsSection",void 0);
_.Z([_.H({value:!0}),_.l("design:type",Boolean)],V1.prototype,"autoFill",void 0);_.Z([_.H(),_.l("design:type",Boolean)],V1.prototype,"continuationDisablePrescanVisibility",void 0);_.Z([_.H(),_.l("design:type",Boolean)],V1.prototype,"isReloading",void 0);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"isSearch",void 0);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"isConstrainedList",void 0);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"isWatch",void 0);
_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"eligibleToSwitchToGrid",void 0);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"useBigThumbs",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],V1.prototype,"notSticky",void 0);_.Z([_.H({selector:_.XS}),_.l("design:type",Object)],V1.prototype,"isGridViewEnabled",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.l("design:type",Object)],V1.prototype,"epRestyle",void 0);_.Z([_.U("isWatch"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V1.prototype,"hideShortsShelfHeader",null);_.Z([_.U("isSearch","isWatch"),_.l("design:type",String),_.l("design:paramtypes",[])],V1.prototype,"thumbnailWidth",null);
_.Z([_.U("isSearch","containerWidth"),_.l("design:type",Object),_.l("design:paramtypes",[])],V1.prototype,"thumbnailTargetWidth",null);_.Z([_.U("isSearch","isWatch"),_.l("design:type",String),_.l("design:paramtypes",[])],V1.prototype,"sizing",null);_.Z([_.U("isWatch","isGridViewEnabled","useBigThumbs","data"),_.H({reflectToAttribute:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],V1.prototype,"lockupContainerType",null);
_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V1.prototype,"hasHeader",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V1.prototype,"expFixPlaylistHeader",null);_.Z([_.il("lockupContainerType","data"),_.l("design:type",Function),_.l("design:paramtypes",[Number]),_.l("design:returntype")],V1.prototype,"updateLockupContainerTypes",null);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],V1.prototype,"pageSubtype",void 0);_.Z([_.H(),_.l("design:type",Number)],V1.prototype,"containerWidth",void 0);_.Z([_.H(),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V1.prototype,"isPlaylist",null);_.Z([_.H(),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V1.prototype,"isClipList",null);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"isCarouselInFeed",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V1.prototype,"isPlaylistVideoContainer",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V1.prototype,"isSearchFrictionPage",null);_.Z([_.H({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.l("design:type",Boolean)],V1.prototype,"useHeightHack",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.l("design:type",Object)],V1.prototype,"topSpacingZero",void 0);_.Z([_.H({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.l("design:type",Boolean)],V1.prototype,"showButton",void 0);_.Z([_.H(),_.l("design:type",Boolean)],V1.prototype,"firstCommentsLoaded",void 0);_.Z([_.H(),_.l("design:type",Object)],V1.prototype,"continuationIsInitialLoad",void 0);
_.Z([_.H({reflectToAttribute:!0,readOnly:!0}),_.l("design:type",Boolean)],V1.prototype,"itemDismissed",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.l("design:type",String)],V1.prototype,"sectionIdentifier",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.l("design:type",String)],V1.prototype,"fitContainer",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.l("design:type",Boolean)],V1.prototype,"hasDestinationShelfRenderer",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.l("design:type",Boolean)],V1.prototype,"staticCommentsHeader",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],V1.prototype,"enableSqueezebackPanels",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],V1.prototype,"enableAnchoredPanel",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.l("design:type",Boolean)],V1.prototype,"hasSectionGroupViewModel",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.l("design:type",Boolean)],V1.prototype,"hasQrCodeRenderer",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.l("design:type",Boolean)],V1.prototype,"suppressDisclaimerSeparator",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.l("design:type",String)],V1.prototype,"headerStyle",void 0);_.Z([_.U("isSearch"),_.l("design:type",Object),_.l("design:paramtypes",[])],V1.prototype,"lockupExperiments",null);
_.Z([_.U("isSearch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],V1.prototype,"typographyBump",null);_.Z([_.JO("#header"),_.l("design:type",HTMLElement)],V1.prototype,"header",void 0);_.Z([_.il("notSticky"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V1.prototype,"dispatchChipBarIsSticky",null);
_.Z([_.il("commentsHidePanelButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V1.prototype,"commentsHidePanelButtonChanged",null);_.Z([_.nv("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],V1.prototype,"onRetrieveLocation",null);
_.Z([_.nv("yt-load-reload-continuation"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Function]),_.l("design:returntype")],V1.prototype,"onLoadReloadContinuation",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V1.prototype,"onServiceRequestCompleted",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V1.prototype,"dataChanged",null);
_.Z([_.ac("data.contents.length"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V1.prototype,"observeDataContentsLength",null);_.Z([_.nv("yt-dismissible-item-dismissed"),_.nv("yt-dismissible-item-undismissed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],V1.prototype,"onYtDismissibleItemDismissedChange",null);
_.Z([_.il("continuationShowButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V1.prototype,"continuationShowButtonChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V1.prototype,"dataChangedForBinding",null);_.Z([_.D({is:"ytd-item-section-renderer",disableElementRegistration:!0})],V1);
_.b(V1,"ytd-item-section-renderer",function(){if(p4C!==void 0)return p4C;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return p4C=k},{mode:1});var XeP;var oal=_.DE(_.Vi("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var gbI={},y5l=(gbI[0]={title:_.lD(_.Vi("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lD(_.Vi("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.dq("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},gbI[1]={title:_.lD(_.Vi("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.dq("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},gbI);_.B9("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var N_=function(){var k=_.p.apply(this,arguments)||this;k.allVideosCount=0;k.allPlaylistCount=0;k.isOnline=!1;k.shouldRenderDownloadsBanner=!1;k.shouldRenderDownloadsBannerUpsell=!1;k.hasOptedIntoSmartDownloads=!1;k.areAllSmartDownloadsDeleted=!1;k.smartDownloadsCompleted=!1;return k};
_.y(N_,_.p);N_.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
N_.prototype.attached=function(){this.downloadsToRenderChanged()};
N_.prototype.detached=function(){this.set("renderableData",{})};
N_.prototype.downloadsToRenderChanged=function(){var k=_.vo().getState().entities,E=_.w8(k),S=_.Y("kevlar_playlist_dl_page_killswitch")?oB1(k):_.Po(k),R=_.w5I(k),V=_.Wyt(k),N=_.co(E);k=_.Bo(k);this.set("renderableData",gab(S,E,R,V,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,N,k))};
N_.prototype.downloadsToRenderChanged=N_.prototype.downloadsToRenderChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],N_.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],N_.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],N_.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],N_.prototype,"renderableData",void 0);_.Z([_.H({selector:_.Dq1}),_.l("design:type",Object)],N_.prototype,"allVideosCount",void 0);_.Z([_.H({selector:mu1}),_.l("design:type",Object)],N_.prototype,"allPlaylistCount",void 0);_.Z([_.H({selector:_.o7}),_.l("design:type",Object)],N_.prototype,"isOnline",void 0);_.Z([_.H({selector:_.sAR}),_.l("design:type",Object)],N_.prototype,"shouldRenderDownloadsBanner",void 0);
_.Z([_.H({selector:_.z1l}),_.l("design:type",Object)],N_.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.Z([_.H({selector:_.lYm}),_.l("design:type",Object)],N_.prototype,"hasOptedIntoSmartDownloads",void 0);_.Z([_.H({selector:_.M6h}),_.l("design:type",Object)],N_.prototype,"areAllSmartDownloadsDeleted",void 0);_.Z([_.H({selector:qNe}),_.l("design:type",Object)],N_.prototype,"smartDownloadsCompleted",void 0);
_.Z([_.ac("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N_.prototype,"downloadsToRenderChanged",null);_.Z([_.D({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],N_);
_.b(N_,"ytd-offline-item-section-renderer",function(){if(XeP!==void 0)return XeP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return XeP=k},
{mode:1});var UA3;var Hlt;var IM=function(){return _.p.apply(this,arguments)||this};
_.y(IM,_.p);
IM.prototype.onDataChanged=function(){if(this.JSC$16863_lastData){var k=this.getFilterClass(this.JSC$16863_lastData.status);k&&this.hostElement.classList.remove(k)}var E;(k=this.getFilterClass((E=this.data)==null?void 0:E.status))&&this.hostElement.classList.add(k);k==="selected"?_.Cc(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Cc(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");k==="disabled"?_.Cc(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Cc(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16863_lastData=this.data};
IM.prototype.getFilterClass=function(k){switch(k){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
IM.prototype.onDataChanged=IM.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],IM.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],IM.prototype,"onDataChanged",null);_.Z([_.D({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],IM);
_.b(IM,"ytd-search-filter-renderer",function(){if(Hlt!==void 0)return Hlt;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Hlt=k},{mode:_.GN("kevlar_poly_si_batch_j075")?1:2});var n4=function(){return _.p.apply(this,arguments)||this};
_.y(n4,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],n4.prototype,"data",void 0);_.Z([_.D({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],n4);
_.b(n4,"ytd-search-filter-group-renderer",function(){if(UA3!==void 0)return UA3;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return UA3=k},{mode:_.GN("kevlar_poly_si_batch_j075")?1:2});var KIx;var iN=function(){return _.p.apply(this,arguments)||this};
_.y(iN,_.p);iN.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.JH());this.isCollapsed=!this.isCollapsed};
iN.prototype.navigateToAboutTheseResultsPage=function(){var k=_.fg("https://www.youtube.com/howyoutubeworks/product-features/search/");k?_.Cg(window,k,"_blank"):_.O4(Error("ai"))};
iN.prototype.dataChanged=function(){this.isCollapsed=!0};
iN.prototype.computeShowBottomBorder=function(){var k,E,S;return!!((k=this.data)==null?0:(E=k.button)==null?0:E.toggleButtonRenderer)||!((S=this.data)==null||!S.aboutTheseResultsButton)};
iN.prototype.dataChanged=iN.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],iN.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iN.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.l("design:type",Boolean)],iN.prototype,"showBottomBorder",void 0);_.Z([_.H(),_.l("design:type",Boolean)],iN.prototype,"renderCollapsibleMenu",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],iN.prototype,"isCollapsed",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iN.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],iN);
_.b(iN,"ytd-search-sub-menu-renderer",function(){if(KIx!==void 0)return KIx;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return KIx=k},{mode:1});var peI;var AhP=new _.QE("SECTION_LIST_RENDERER_TOKEN");var rhY;var hq=function(){return _.p.apply(this,arguments)||this};
_.y(hq,_.p);hq.prototype.computeStyle=function(k){return k?k.toLowerCase().replace(/_/g,"-"):""};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],hq.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],hq.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],hq.prototype,"headerStyle",void 0);_.Z([_.D({is:"ytd-text-header-renderer",disableElementRegistration:!0})],hq);
_.b(hq,"ytd-text-header-renderer",function(){if(rhY!==void 0)return rhY;var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return rhY=k},{mode:1});var umP;var Jq=function(){return _.p.apply(this,arguments)||this};
_.y(Jq,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Jq.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Jq.prototype,"data",void 0);_.Z([_.D({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Jq);
_.b(Jq,"ytd-minor-moment-header-renderer",function(){if(umP!==void 0)return umP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return umP=k},{mode:1});var xAR;var c$=function(){return _.p.apply(this,arguments)||this};
_.y(c$,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],c$.prototype,"data",void 0);_.Z([_.D({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],c$);
_.b(c$,"ytd-minor-moment-setting-alert-renderer",function(){if(xAR!==void 0)return xAR;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return xAR=k},{mode:1});var LIt;var j1R;var m_=function(){var k=_.p.apply(this,arguments)||this;k.booleanSettingById=!1;k.smartDownloadsEnabledVE=_.kh(128287);k.smartDownloadsDisabledVE=_.kh(128286);k.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return k};
_.y(m_,_.p);_.I=m_.prototype;_.I.attachSmartDownloadsSettingVes=function(){var k;this.activeVeForLogging||((k=this.data)==null?void 0:k.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Bq(_.JV(),this.smartDownloadsEnabledVE),_.Bq(_.JV(),this.smartDownloadsDisabledVE))};
_.I.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Me(this.hostElement,"yt-settings-switch-ready")};
_.I.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.I.onSwitchChange=function(k){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(k=_.bv(k).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.Y("kevlar_settings_switch_resolve_command_killswitch")?_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(k)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.I.handleUpdateSettingsSwitch=function(k){(k=_.W(k,Q0d))&&this.data&&this.data.id===k.id&&this.set("data.enabled",!!k.enabled)};
_.I.onToggleSettingsSwitch=function(k,E){this.data&&this.data.id===k&&this.set("data.enabled",E!=null?E:!this.data.enabled)};
_.I.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.nw.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.I.maybeLogSmartDownloadsSettingVisibility=function(){var k=_.Fe(),E;k&&((E=this.data)==null?void 0:E.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Lz(k,[this.smartDownloadsEnabledVE]),_.jd(k,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Lz(k,[this.smartDownloadsDisabledVE]),_.jd(k,[this.smartDownloadsEnabledVE])))};
_.I.maybeLogSmartDownloadsSettingClick=function(){var k;((k=this.data)==null?void 0:k.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.Wq(_.JV(),this.activeVeForLogging)};
_.I.updateDataEnabledFromBinding=function(k){this.set("data.enabled",k.detail.value)};
_.mt.Object.defineProperties(m_.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var k=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!k&&(k=this.ytRendererBehavior.getSimpleString(this.data.title));return k}}});
m_.prototype.dataChanged=m_.prototype.dataChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],m_.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],m_.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],m_.prototype,"ytComponentBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],m_.prototype,"data",void 0);_.Z([_.H({selector:function(k,E){if(Object.keys(k==null?void 0:k.entities).length)switch(E){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return X5m(k.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.l("design:type",Object)],m_.prototype,"booleanSettingById",void 0);_.Z([_.H(),_.l("design:type",Yu)],m_.prototype,"activeVeForLogging",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],m_.prototype,"toggleAriaLabel",null);_.Z([_.ac("data"),_.ac("booleanSettingById"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],m_.prototype,"dataChanged",null);
_.Z([_.D({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],m_);
_.b(m_,"ytd-settings-switch-renderer",function(){if(j1R!==void 0)return j1R;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return j1R=k},{mode:1});var eS=function(){return _.p.apply(this,arguments)||this};
_.y(eS,_.p);eS.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}}}}};
_.mt.Object.defineProperties(eS.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var k=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(k+=" remove-left-margin");this.data.extraBottomSpace&&(k+=" extra-bottom-space");return k}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],eS.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],eS.prototype,"contentsClassName",null);_.Z([_.D({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],eS);
_.b(eS,"ytd-minor-moment-setting-section-renderer",function(){if(LIt!==void 0)return LIt;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return LIt=k},{mode:1});var DAx;var aM=function(){return _.p.apply(this,arguments)||this};
_.y(aM,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],aM.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],aM.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],aM.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],aM);
_.b(aM,"ytd-empty-product-details-renderer",function(){if(DAx!==void 0)return DAx;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return DAx=k},{mode:1});var $AP;var fRW;var tq=function(){var k=_.p.apply(this,arguments)||this;k.expanded=!0;return k};
_.y(tq,_.p);tq.prototype.getBadgeRowClass=function(k,E,S){for(var R=_.n(this.hostElement.querySelectorAll("yt-img-shadow")),V=R.next();!V.done;V=R.next())V.value.onShow();k=k.selected;return S?k!==-1?k===E?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(k!==void 0?k:0)===E?"badge-line":"badge-hidden"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tq.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],tq.prototype,"expanded",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],tq);
_.b(tq,"ytd-sponsorships-loyalty-badges-renderer",function(){if(fRW!==void 0)return fRW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return fRW=k},{mode:1});var vbR;var Tj=function(){var k=_.p.apply(this,arguments)||this;k.expanded=!0;return k};
_.y(Tj,_.p);Tj.prototype.getContainerClasses=function(k,E){k=k?"expanded":"collapsed";E&&(k+=" item");return k};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Tj.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Tj.prototype,"expanded",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Tj);
_.b(Tj,"ytd-sponsorships-perk-renderer",function(){if(vbR!==void 0)return vbR;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vbR=k},{mode:1});var bl0;var w6=function(){var k=_.p.apply(this,arguments)||this;k.expanded=!0;return k};
_.y(w6,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],w6.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],w6.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],w6.prototype,"expanded",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],w6);
_.b(w6,"ytd-sponsorships-perks-renderer",function(){if(bl0!==void 0)return bl0;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return bl0=k},{mode:1});var P$=function(){var k=_.p.apply(this,arguments)||this;k.isCollapsed=!1;return k};
_.y(P$,_.p);P$.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
P$.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
P$.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var k;this.expandCollapseButton=_.W((k=this.data)==null?void 0:k.expandButton,_.dZ)}else{var E;this.expandCollapseButton=_.W((E=this.data)==null?void 0:E.collapseButton,_.dZ)}};
P$.prototype.updateExpandCollapseButton=P$.prototype.updateExpandCollapseButton;P$.prototype.onDataChanged=P$.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],P$.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],P$.prototype,"isCollapsed",void 0);_.Z([_.H(),_.l("design:type",Object)],P$.prototype,"expandCollapseButton",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],P$.prototype,"onDataChanged",null);_.Z([_.ac("data","isCollapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],P$.prototype,"updateExpandCollapseButton",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],P$);
_.b(P$,"ytd-sponsorships-expandable-perks-renderer",function(){if($AP!==void 0)return $AP;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return $AP=k},{mode:1});var ZlR;var B$=function(){return _.p.apply(this,arguments)||this};
_.y(B$,_.p);B$.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],B$.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],B$.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],B$);
_.b(B$,"ytd-sponsorships-actionable-message-renderer",function(){if(ZlR!==void 0)return ZlR;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return ZlR=k},{mode:1});var dA3;var Ym=function(){return _.p.apply(this,arguments)||this};
_.y(Ym,_.p);_.I=Ym.prototype;_.I.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.I.getExpansionIcon=function(k){return k?"COLLAPSE":"EXPAND"};
_.I.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.I.computeMessageContainerStyle=function(k){var E=k.expandableItems?" style-clickable":"";return k.messageContainerStyle?k.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+E:"style-unspecified"+E};
_.I.isSinglePerk=function(k){return!!k.messageContainerStyle&&(k.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||k.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.I.onExpandedChanged=function(){var k=this;if(this.expanded)for(var E=_.n(this.hostElement.querySelectorAll("yt-img-shadow")),S=E.next();!S.done;S=E.next())S.value.onShow();_.JB(this,function(){_.Me(k.hostElement,"yt-refit")})};
_.I.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Ym.prototype.onDataChanged=Ym.prototype.onDataChanged;Ym.prototype.onExpandedChanged=Ym.prototype.onExpandedChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ym.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ym.prototype,"expanded",void 0);
_.Z([_.il("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ym.prototype,"onExpandedChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ym.prototype,"onDataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Ym);
_.b(Ym,"ytd-sponsorships-expandable-message-renderer",function(){if(dA3!==void 0)return dA3;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return dA3=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var s1U;var W$=function(){return _.p.apply(this,arguments)||this};
_.y(W$,_.p);W$.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"}}}}};
W$.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.W(this.data.endButton,_.dZ).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
W$.prototype.onDataChanged=W$.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],W$.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],W$.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],W$.prototype,"onDataChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],W$);
_.b(W$,"ytd-sponsorships-heading-renderer",function(){if(s1U!==void 0)return s1U;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return s1U=k},{mode:1});var lRt;var FJ=function(){return _.p.apply(this,arguments)||this};
_.y(FJ,_.p);_.Z([_.H(),_.l("design:type",Object)],FJ.prototype,"data",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],FJ);
_.b(FJ,"ytd-sponsorships-links-renderer",function(){if(lRt!==void 0)return lRt;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return lRt=k},{mode:1});var Mht;var y1=function(){return _.p.apply(this,arguments)||this};
_.y(y1,_.p);_.I=y1.prototype;_.I.onDataChanged=function(){if(this.data&&this.data.expandableItems){var k;(k=_.Cc(this.hostElement).querySelector("tp-yt-paper-button"))==null||k.setAttribute("role","button")}else{var E;(E=_.Cc(this.hostElement).querySelector("tp-yt-paper-button"))==null||E.removeAttribute("role")}};
_.I.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.I.getExpansionIcon=function(k){return k?"COLLAPSE":"EXPAND"};
_.I.getTileClasses=function(k){return k?"tile expandable-tile":"tile"};
_.I.getButtonDisabled=function(k){return k?void 0:""};
y1.prototype.onDataChanged=y1.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],y1.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],y1.prototype,"expanded",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],y1.prototype,"onDataChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],y1);
_.b(y1,"ytd-sponsorships-list-tile-renderer",function(){if(Mht!==void 0)return Mht;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Mht=k},{mode:1});var qj3;var zit;var oM=function(){return _.p.apply(this,arguments)||this};
_.y(oM,_.p);oM.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],oM.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],oM);
_.b(oM,"ytd-sponsorships-promotion-renderer",function(){if(zit!==void 0)return zit;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return zit=k},{mode:1});var Q1A;var XJ=function(){return _.p.apply(this,arguments)||this};
_.y(XJ,_.p);XJ.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],XJ.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],XJ);
_.b(XJ,"ytd-sponsorships-purchase-option-renderer",function(){if(Q1A!==void 0)return Q1A;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Q1A=k},{mode:1});var OlY;var GIt;var CCY=function(){return _.p.apply(this,arguments)||this};
_.y(CCY,_.p);_.Z([_.H(),_.l("design:type",Object)],CCY.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],CCY);
_.b(CCY,"ytd-ypc-offer-promo-renderer",function(){if(GIt!==void 0)return GIt;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return GIt=k},{mode:1});var g6=function(){return _.p.apply(this,arguments)||this};
_.y(g6,_.p);_.I=g6.prototype;
_.I.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"}}}}};
_.I.expansionCTA=function(k,E){return k&&(E?k.collapseCallToAction:k.expansionCallToAction)};
_.I.getExpansionIcon=function(k){return k?"COLLAPSE":"EXPAND"};
_.I.expansionCallToActionTap=function(){var k=this;this.expanded=!this.expanded;_.JB(this,function(){_.Me(k.hostElement,"yt-refit")})};
_.I.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var k,E=(k=this.data)==null?void 0:k.onVisible;E&&this.ytComponentBehavior.resolveCommand(E)};
_.I.computeDisplayTitle=function(k){return!(!k||this.titledisplaystatus!=="show")};
_.I.computeDisplaySeparator=function(){return!1};
_.I.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
g6.prototype.onDataChanged=g6.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],g6.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],g6.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],g6.prototype,"data",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],g6.prototype,"expanded",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],g6.prototype,"purchaseButtonClicked",void 0);_.Z([_.H({reflectToAttribute:!0,value:"show"}),_.l("design:type",String)],g6.prototype,"titledisplaystatus",void 0);_.Z([_.H({computed:"computeDisplayTitle(data.title)"}),_.l("design:type",Boolean)],g6.prototype,"displayTitle",void 0);
_.Z([_.H({computed:"computeDisplaySeparator(data)"}),_.l("design:type",Boolean)],g6.prototype,"displaySeparator",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g6.prototype,"onDataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],g6);
_.b(g6,"ytd-sponsorships-tier-renderer",function(){if(OlY!==void 0)return OlY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return OlY=k},{mode:2});var UC=function(){return _.p.apply(this,arguments)||this};
_.y(UC,_.p);
UC.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],UC.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],UC);
_.b(UC,"ytd-sponsorships-management-renderer",function(){if(qj3!==void 0)return qj3;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return qj3=k},{mode:1});var kYP;var H$=function(){return _.p.apply(this,arguments)||this};
_.y(H$,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],H$.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],H$);
_.b(H$,"ytd-open-in-native-app-view-model",function(){if(kYP!==void 0)return kYP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return kYP=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var E2I;var S5W;var RAT=_.ry(["top-"]),VTt=_.ry(["bottom-"]),NYW=_.ry(["left-"]),IC3=_.ry(["right-"]),n2A={},ijt=function(k,E,S){k.removeAttribute("top-"+S);k.removeAttribute("bottom-"+S);k.removeAttribute("left-"+S);k.removeAttribute("right-"+S);E&&(E.top&&_.hE([_.To(RAT)],k,"top-"+S,E.top),E.bottom&&_.hE([_.To(VTt)],k,"bottom-"+S,E.bottom),E.left&&_.hE([_.To(NYW)],k,"left-"+S,E.left),E.right&&_.hE([_.To(IC3)],k,"right-"+S,E.right))};
n2A.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(k){var E,S=_.Cc((E=this.hostElement)!=null?E:this),R;E=this.cardItemBoxBehaviorMarginTargetId&&S?S.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(R=this.hostElement)!=null?R:this;ijt(E,k,"margin")},
cardItemContainerPaddingChanged_:function(k){var E,S=_.Cc((E=this.hostElement)!=null?E:this),R;E=this.cardItemBoxBehaviorPaddingTargetId&&S?S.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(R=this.hostElement)!=null?R:this;ijt(E,k,"padding")}}];var K4={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 hA2;var JC3;var p4=function(){return _.p.apply(this,arguments)||this};
_.y(p4,_.p);p4.prototype.textColorChanged_=function(){this.hostElement.style.color=K4[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
p4.prototype.textColorChanged_=p4.prototype.textColorChanged_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.Z([_.g(n2A.YtCardItemBoxBehavior),_.l("design:type",Object)],p4.prototype,"ytCardItemBoxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],p4.prototype,"data",void 0);_.Z([_.il("data.textColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p4.prototype,"textColorChanged_",null);
_.Z([_.U_({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],p4);
_.b(p4,"yt-card-item-text-renderer",function(){if(JC3===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;hA2===void 0&&(hA2=document.createElement("template"));var R=hA2;S.call(E,R.content.cloneNode(!0),k.content.firstChild);JC3=k}k=JC3;return k},{mode:2});var cCT;var mpP;var Aq=function(){return _.p.apply(this,arguments)||this};
_.y(Aq,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Aq.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Aq.prototype,"data",void 0);_.Z([_.U_({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Aq);
_.b(Aq,"yt-card-item-badge-renderer",function(){if(mpP===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;cCT===void 0&&(cCT=document.createElement("template"));var R=cCT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);mpP=k}k=mpP;return k},{mode:2});var eA0;var aCP;var r6=function(){return _.p.apply(this,arguments)||this};
_.y(r6,_.p);r6.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],r6.prototype,"data",void 0);_.Z([_.U_({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],r6);
_.b(r6,"yt-card-item-text-collection-renderer",function(){if(aCP===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;eA0===void 0&&(eA0=document.createElement("template"));var R=eA0;S.call(E,R.content.cloneNode(!0),k.content.firstChild);aCP=k}k=aCP;return k},{mode:2});var tTA;var TYR;var uN=function(){return _.p.apply(this,arguments)||this};
_.y(uN,_.p);uN.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]]"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],uN.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Number)],uN.prototype,"iconSize",void 0);_.Z([_.U_({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],uN);
_.b(uN,"yt-card-item-text-with-button-renderer",function(){if(TYR===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;tTA===void 0&&(tTA=document.createElement("template"));var R=tTA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);TYR=k}k=TYR;return k},{mode:2});var xm=function(){return _.p.apply(this,arguments)||this};
_.y(xm,_.p);xm.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],xm.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],xm.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],xm.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],xm);
_.b(xm,"ytd-commerce-cart-summary-line-item-renderer",function(){if(S5W!==void 0)return S5W;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return S5W=k},{mode:1});_.B9("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var L4=function(){var k=_.p.apply(this,arguments)||this;k.hidden=!1;return k};
_.y(L4,_.p);_.I=L4.prototype;_.I.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"}}}}};
_.I.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.I.updateSummary=function(){var k=this.commerceCartCheckoutButtonEntity,E;if(((E=this.data)==null?0:E.cartButton)&&k.checkoutSummaryText){var S,R=tQ((S=this.data)==null?void 0:S.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+R+".cardItemTextRenderer.text",Tb(k.checkoutSummaryText));if(k.checkoutDetailText){var V;S=tQ((V=this.data)==null?void 0:V.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+S+".cardItemTextRenderer.text",Tb(k.checkoutDetailText))}if(k.checkoutAdditionalMetadataText){var N;
V=tQ((N=this.data)==null?void 0:N.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",Tb(k.checkoutAdditionalMetadataText))}}else k.estimatedTotalPrice&&(N=tQ((R=this.data)==null?void 0:R.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+N+".cardItemTextRenderer.text",Tb(k.estimatedTotalPrice)))};
_.I.updateIsHidden=function(){var k,E=(k=this.commerceCartCheckoutButtonEntity)==null?void 0:k.isHidden;E!==void 0&&(this.hidden=E)};
_.I.updateCheckoutButton=function(){var k,E=(k=this.commerceCartCheckoutButtonEntity)==null?void 0:k.isDisabled;E!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",E);var S;k=(S=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:S.innertubeCommand;k!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",k);var R;S=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.checkoutButtonText;S!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:S})};
L4.prototype.entityChanged=L4.prototype.entityChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],L4.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],L4.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],L4.prototype,"fullWidth",void 0);_.Z([_.H(),_.l("design:type",Object)],L4.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],L4.prototype,"compact",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],L4.prototype,"hidden",void 0);
_.Z([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Iu1}),_.l("design:type",Object)],L4.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Z([_.il("commerceCartCheckoutButtonEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L4.prototype,"entityChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],L4);
_.b(L4,"ytd-commerce-cart-checkout-button-renderer",function(){if(E2I!==void 0)return E2I;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return E2I=k},{mode:2});var wzU;_.P4Y={};
_.P4Y.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",_.Ic(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Ic(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(k){!this.tappableItemBehaviorTapEnabled||k.keyCode!==13&&k.keyCode!==32||k.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var k=this.data.onTap;k.ypcGetCartEndpoint?(_.Qw(this.hostElement,[k]),this.tappableItemBehaviorTapEnabled=!1):k.ypcOffersEndpoint?_.Qw(this.hostElement,[k]):_.Ot(this.hostElement,[k],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(k){this.tappableItemBehaviorTapEnabled=!!k},
tappableItemBehaviorOnTapEnabledChanged_:function(){var k=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(k.setAttribute("tabIndex",0),k.setAttribute("role","button")):(k.removeAttribute("tabIndex"),k.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(k){k.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var BY2;var Y50;var jS=function(){return _.p.apply(this,arguments)||this};
_.y(jS,_.p);jS.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Yv("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Yv("sharingToggleButtonAndDefaultButton")}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],jS.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jS.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],jS.prototype,"data",void 0);_.Z([_.U_({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],jS);
_.b(jS,"yt-card-item-actions-renderer",function(){if(Y50===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;BY2===void 0&&(BY2=document.createElement("template"));var R=BY2;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Y50=k}k=Y50;return k},{mode:2});var WdR;var Fd0;var yC3;var o2P;var Xz3;var g2P;var Db=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return k};
_.y(Db,_.p);Db.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
Db.prototype.handleDarkModeToggledAction_=function(k){this.isDarkTheme_=k};
Db.prototype.computeThemeImage_=function(k,E){if(!k||!k.imageLight)return!1;this.isCircular_=k.isCircular;k.imageWidth&&(this.hostElement.style.width=k.imageWidth+"px");k.imageHeight&&(this.hostElement.style.height=k.imageHeight+"px");k.borderWidth&&(this.image.style.borderWidth=k.borderWidth+"px",this.image.style.borderStyle="solid");k.borderColor&&(this.image.style.borderColor=_.Kc(k.borderColor));return E&&k.imageDark?k.imageDark:k.imageLight};
Db.prototype.computeThemeIcon_=function(k){var E,S;if(!(k==null?0:(E=k.themedIcon)==null?0:(S=E.icon)==null?0:S.iconType))return!1;this.icon.style.color=K4[k.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(k.imageWidth||18)+"px";this.icon.style.height=(k.imageHeight||18)+"px";return _.SF(k.themedIcon.icon.iconType)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(n2A.YtCardItemBoxBehavior),_.l("design:type",Object)],Db.prototype,"ytCardItemBoxBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Db.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Db.prototype,"data",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Db.prototype,"fit",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Db.prototype,"isDarkTheme_",void 0);_.Z([_.H({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.l("design:type",Object)],Db.prototype,"themeImage_",void 0);_.Z([_.H({computed:"computeThemeIcon_(data)"}),_.l("design:type",Object)],Db.prototype,"themeIcon_",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Object)],Db.prototype,"isCircular_",void 0);
_.Z([_.JO("#image"),_.l("design:type",Object)],Db.prototype,"image",void 0);_.Z([_.JO("#icon"),_.l("design:type",Object)],Db.prototype,"icon",void 0);_.Z([_.U_({is:"yt-themed-image-renderer",disableElementRegistration:!0})],Db);
_.b(Db,"yt-themed-image-renderer",function(){if(g2P===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Xz3===void 0&&(Xz3=document.createElement("template"));var R=Xz3;S.call(E,R.content.cloneNode(!0),k.content.firstChild);g2P=k}k=g2P;return k},{mode:2});var $m=function(){return _.p.apply(this,arguments)||this};
_.y($m,_.p);$m.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"}}}}};
$m.prototype.computeImagePlacement_=function(k){return k||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$m.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$m.prototype,"data",void 0);_.Z([_.H({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.l("design:type",String)],$m.prototype,"imagePlacement",void 0);
_.Z([_.U_({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],$m);
_.b($m,"yt-card-item-text-with-image-renderer",function(){if(o2P===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;yC3===void 0&&(yC3=document.createElement("template"));var R=yC3;S.call(E,R.content.cloneNode(!0),k.content.firstChild);o2P=k}k=o2P;return k},{mode:2});var f4=function(){return _.p.apply(this,arguments)||this};
_.y(f4,_.p);f4.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"}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],f4.prototype,"data",void 0);_.Z([_.U_({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],f4);
_.b(f4,"yt-card-item-error-renderer",function(){if(Fd0===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;WdR===void 0&&(WdR=document.createElement("template"));var R=WdR;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Fd0=k}k=Fd0;return k},{mode:2});var Up0;var HjR;_.B9("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var v$=function(){return _.p.apply(this,arguments)||this};
_.y(v$,_.p);_.I=v$.prototype;
_.I.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"}}}}};
_.I.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.I.backgroundColorChanged_=function(){var k,E=(k=this.data)==null?void 0:k.backgroundColor;k=K4[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Cc(this.hostElement).querySelector("#main-content").style.backgroundColor=k};
_.I.headerPromoBackgroundColorChanged_=function(){var k,E=(k=this.data)==null?void 0:k.headerPromoBackgroundColor;k=K4[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Cc(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=k};
_.I.errorRendererVisibilityChanged_=function(){var k=this.isExpanded_,E;this.isErrorRendererVisible_=!((E=this.data)==null||!E.errorRenderer)&&!k};
_.I.onYtToggleButton_=function(k,E){this.isExpanded_=E.toggled};
v$.prototype.onYtToggleButton_=v$.prototype.onYtToggleButton_;v$.prototype.errorRendererVisibilityChanged_=v$.prototype.errorRendererVisibilityChanged_;v$.prototype.headerPromoBackgroundColorChanged_=v$.prototype.headerPromoBackgroundColorChanged_;v$.prototype.backgroundColorChanged_=v$.prototype.backgroundColorChanged_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(n2A.YtCardItemBoxBehavior),_.l("design:type",Object)],v$.prototype,"ytCardItemBoxBehavior",void 0);_.Z([_.g(_.P4Y.YtTappableItemBehavior),_.l("design:type",Object)],v$.prototype,"ytTappableItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],v$.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],v$.prototype,"isExpanded_",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],v$.prototype,"isErrorRendererVisible_",void 0);_.Z([_.il("data.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v$.prototype,"backgroundColorChanged_",null);_.Z([_.il("data.headerPromoBackgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v$.prototype,"headerPromoBackgroundColorChanged_",null);
_.Z([_.il("data.errorRenderer","isExpanded_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],v$.prototype,"errorRendererVisibilityChanged_",null);_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Object]),_.l("design:returntype")],v$.prototype,"onYtToggleButton_",null);_.Z([_.U_({is:"yt-card-item-renderer",disableElementRegistration:!0})],v$);
_.b(v$,"yt-card-item-renderer",function(){if(HjR===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;Up0===void 0&&(Up0=document.createElement("template"));var R=Up0;S.call(E,R.content.cloneNode(!0),k.content.firstChild);HjR=k}k=HjR;return k},{mode:2});_.B9("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var bN=function(){var k=_.p.apply(this,arguments)||this;k.hidden=!1;return k};
_.y(bN,_.p);_.I=bN.prototype;_.I.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.I.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.I.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var k,E=(k=this.commerceCartHeaderEntity)==null?void 0:k.isHidden;E!==void 0&&(this.hidden=E)}};
_.I.updateTitle=function(){var k=this.commerceCartHeaderEntity.isDisabled,E,S,R=(S=_.W((E=this.data)==null?void 0:E.item,lod))==null?void 0:S.headingRenderer;R&&(E=tQ(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+E+".0.cardItemTextRenderer.textColor",k?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.I.updateSummaryText=function(){var k=this.commerceCartHeaderEntity;if(this.compact){var E,S,R=(S=_.W((E=this.data)==null?void 0:E.item,lod))==null?void 0:S.headingRenderer;R&&(E=tQ(R,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+E+".1.cardItemTextRenderer.text",k.shortHeaderSummaryText?Tb(k.shortHeaderSummaryText):k.headerSummaryText?Tb(k.headerSummaryText):""))}else{var V;if(E=(V=_.W((R=this.data)==null?void 0:R.item,lod))==null?void 0:V.additionalInfoRenderer)E=tQ(E,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".text",k.headerSummaryText?Tb(k.headerSummaryText):"")}};
_.I.updateCheckoutButton=function(){var k=this.commerceCartHeaderEntity,E,S,R=(S=_.W((E=this.data)==null?void 0:E.item,lod))==null?void 0:S.additionalInfoRenderer;E=tQ(R,"buttonRenderer");var V;S=(V=this.commerceCartHeaderEntity)==null?void 0:V.isButtonDisabled;var N;V=(N=this.commerceCartHeaderEntity)==null?void 0:N.isButtonHidden;S!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".buttonRenderer.isDisabled",S);V!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
V);var h;k=(h=k.checkoutButtonCommand)==null?void 0:h.innertubeCommand;k!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+E+".buttonRenderer.command",k)};
bN.prototype.entityChanged=bN.prototype.entityChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],bN.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bN.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],bN.prototype,"compact",void 0);_.Z([_.H({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(k,E){return _.Ep(k.entities,"commerceCartHeaderEntity",E)}}),
_.l("design:type",Object)],bN.prototype,"commerceCartHeaderEntity",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bN.prototype,"hidden",void 0);_.Z([_.il("commerceCartHeaderEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bN.prototype,"entityChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],bN);
_.b(bN,"ytd-commerce-cart-header-renderer",function(){if(wzU!==void 0)return wzU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return wzU=k},{mode:1});var KdW;var pz3=_.ta(function(k,E){var S;return(S=k.onChangeCallback)==null?void 0:S.call(k,E)},1E3),ACI=_.f(function(k){var E=k.data;
var S=k.iconMinus;k=k.iconPlus;var R=function(){return!!E().disabled},V=_.n(_.yg(0,void 0,"mKh0af")),N=V.next().value,h=V.next().value;
V=_.RZ(function(){if(N()===1){var w,P;(P=(w=E()).onRemoveCommand)==null||P.call(w)}w=N()>E().maxValue?E().maxValue:N()-1;h(w);pz3(E(),w);return!1});
var J=_.RZ(function(){if(N()===E().maxValue)return!1;var w=N()+1;h(w);pz3(E(),w);return!1});
_.vC(function(){h(E().value)});
var m={},a={},T={};return _.e("quantity-incrementer-shape",null,_.e("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.e("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return N()===(E().onRemoveCommand?0:1)||R()},
"aria-label":function(){return N()!==1?E().minusLabel:E().minimumReachedLabel},
"on:click":V},_.e(_.B5,{model:{circular:!0}}),_.e("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.e("div",{class:_.SQ("ytSpecQuantityIncrementerShapeIcon",(m.ytSpecQuantityIncrementerShapeIconDisabled=function(){return R()||N()===(E().onRemoveCommand?0:1)},m))},S()))),_.e("div",{class:_.SQ("ytSpecQuantityIncrementerShapeText",(a.ytSpecQuantityIncrementerShapeTextInvalid=function(){return N()>E().maxValue},a.ytSpecQuantityIncrementerShapeTextDisabled=R,a))},N),_.e("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return N()>=E().maxValue||R()},
"aria-label":function(){return N()!==E().maxValue?E().plusLabel:E().maximumReachedLabel},
"on:click":J},_.e(_.B5,{model:{circular:!0}}),_.e("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.e("div",{class:_.SQ("ytSpecQuantityIncrementerShapeIcon",(T.ytSpecQuantityIncrementerShapeIconDisabled=function(){return N()>=E().maxValue||R()},T))},k())))))},"Ef");_.qi(_.f(function(k){function E(){S().onRemoveCommand&&_.AV(S().onRemoveCommand)}
var S=k.data;var R=_.iK(Wxm,function(){return S().quantityIncrementerEntityKey});
return _.e("yt-quantity-incrementer-view-model",null,_.e(ACI,{data:function(){var V=S(),N;var h=R()?!((N=R())==null||!N.disabled):!1;var J;N=R()?(J=R())==null?void 0:J.quantity:S().quantity;return KQb(V,h,E,N)},
iconMinus:function(){return _.e(_.i_,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.e(_.i_,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Ff"),"yt-quantity-incrementer-view-model",{props:{data:_.Nq}});var Zb=function(){var k=_.p.apply(this,arguments)||this;k.compact=!1;k.hasQuantityIncrementer=!1;return k};
_.y(Zb,_.p);Zb.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"}}}};
Zb.prototype.computeHasQuantityIncrementer=function(){var k;return!!_.W((k=this.data)==null?void 0:k.picker,QxA)};
Zb.prototype.onLabelClick=function(){var k;(k=this.dropdownEl)==null||k.open()};
_.Z([_.JO("ytd-dropdown-renderer"),_.l("design:type",Object)],Zb.prototype,"dropdownEl",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Zb.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Zb.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],Zb.prototype,"quantityColor",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Zb.prototype,"compact",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.l("design:type",Object)],Zb.prototype,"hasQuantityIncrementer",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],Zb);
_.b(Zb,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(KdW!==void 0)return KdW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return KdW=k},{mode:1});var rCT;var u8G;var d6=function(){return _.p.apply(this,arguments)||this};
_.y(d6,_.p);d6.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
d6.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
d6.prototype.updateTitle=function(){var k=this.disabledCartItemEntity;k.disableActionName&&this.set("data.title",Tb(k.disableActionName))};
d6.prototype.updateButton=function(){var k,E=(k=this.disabledCartItemEntity.undoCommand)==null?void 0:k.innertubeCommand;E!==void 0&&(this.set("data.actionButton.buttonRenderer.command",E),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
d6.prototype.entityChanged=d6.prototype.entityChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],d6.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(k,E){return _.Ep(k.entities,"disabledCartItemEntity",E)}}),
_.l("design:type",Object)],d6.prototype,"disabledCartItemEntity",void 0);_.Z([_.H(),_.l("design:type",Object)],d6.prototype,"data",void 0);_.Z([_.il("disabledCartItemEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],d6.prototype,"entityChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],d6);
_.b(d6,"ytd-disabled-cart-item-renderer",function(){if(u8G!==void 0)return u8G;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return u8G=k},{mode:1});_.B9("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var sC=function(){var k=_.p.apply(this,arguments)||this;k.compact=!1;k.hidden=!1;k.errorHidden=!1;k.noOnTap=!1;return k};
_.y(sC,_.p);_.I=sC.prototype;
_.I.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"}}}};
_.I.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.I.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var k=this.firstButtonElement;k.alignByText=!0;k.iconAlignByText=!0}};
_.I.computeNoOnTap=function(k){return!k};
_.I.updateQuantityColor=function(){if(this.pickerElement){var k,E=(k=this.commerceCartItemEntity)==null?void 0:k.quantityColor;this.pickerElement.quantityColor=E}};
_.I.updateTotalPriceColor=function(){var k,E=(k=this.commerceCartItemEntity)==null?void 0:k.totalPriceColor;if(E){var S;k=_.W((S=this.data)==null?void 0:S.quantityPicker,qVz);if(S=_.W(k==null?void 0:k.price,ME5))S.textColor=E}};
_.I.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var k,E=(k=this.commerceCartItemEntity)==null?void 0:k.isHidden;E!==void 0&&(this.hidden=E)}};
_.I.updateHideErrorMessage=function(){var k,E=(k=this.commerceCartItemEntity)==null?void 0:k.hideErrorMessage;E!==void 0&&(this.errorHidden=E)};
_.I.updateQuantity=function(){var k=this,E,S=(E=this.commerceCartItemEntity)==null?void 0:E.quantity,R;E=(R=this.commerceCartItemEntity)==null?void 0:R.totalPrice;if(S){this.updateTotalPriceColor();this.updateQuantityColor();var V;R=_.W((V=this.data)==null?void 0:V.quantityPicker,qVz);if(V=_.W(R==null?void 0:R.price,ME5))V.text=E?{simpleText:E.content}:void 0;if(E=_.W(R==null?void 0:R.picker,QxA))E.quantity=S;var N;if(V=(N=_.W(R==null?void 0:R.picker,M6T))==null?void 0:N.entries){N=!1;E=void 0;V=
_.n(V);for(R=V.next();!R.done;R=V.next())R=R.value,R.dropdownItemRenderer&&(E||(E=R.dropdownItemRenderer),R.dropdownItemRenderer.isSelected=!1,S===R.dropdownItemRenderer.int32Value&&(N=!0,R.dropdownItemRenderer.isSelected=!0));!N&&E&&(E.isSelected=!0)}_.JB(this,function(){var h;k.set("data.quantityPicker",_.fO.unsafeClone((h=k.data)==null?void 0:h.quantityPicker))})}};
sC.prototype.onYtRendererstamperFinished=sC.prototype.onYtRendererstamperFinished;sC.prototype.entityChanged=sC.prototype.entityChanged;_.Z([_.H(),_.l("design:type",Object)],sC.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],sC.prototype,"compact",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],sC.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sC.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],sC.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],sC.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(k,E){return _.Ep(k.entities,"commerceCartItemEntity",E)}}),
_.l("design:type",Object)],sC.prototype,"commerceCartItemEntity",void 0);_.Z([_.H(),_.l("design:type",Object)],sC.prototype,"quantityPicker",void 0);_.Z([_.H(),_.l("design:type",Object)],sC.prototype,"compactQuantityPicker",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],sC.prototype,"hidden",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],sC.prototype,"errorHidden",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.l("design:type",Object)],sC.prototype,"noOnTap",void 0);_.Z([_.JO("ytd-commerce-cart-item-quantity-picker-renderer"),_.l("design:type",Object)],sC.prototype,"pickerElement",void 0);_.Z([_.JO("yt-button-renderer"),_.l("design:type",Element)],sC.prototype,"firstButtonElement",void 0);
_.Z([_.il("commerceCartItemEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sC.prototype,"entityChanged",null);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sC.prototype,"onYtRendererstamperFinished",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],sC);
_.b(sC,"ytd-commerce-cart-item-renderer",function(){if(rCT!==void 0)return rCT;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return rCT=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var xpA;var Lda;var lN=function(){return _.p.apply(this,arguments)||this};
_.y(lN,_.p);lN.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}}}}}};
lN.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
lN.prototype.updateCheckoutLineItems=function(){var k,E=(k=this.commerceCartCheckoutButtonEntity)==null?void 0:k.checkoutLineItems;E&&(k=E.map(function(S){a:{var R=S.price,V=S.description;switch(S.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":S={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Tb(V),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:Tb(R),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:S={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Tb(V),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:Tb(R),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 S}),this.set("data.summaryLineItems",k))};
lN.prototype.updateIsHidden=function(){var k,E=(k=this.commerceCartCheckoutButtonEntity)==null?void 0:k.isHidden;E!==void 0&&(this.hostElement.hidden=E)};
lN.prototype.entityChanged=lN.prototype.entityChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],lN.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],lN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],lN.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],lN.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],lN.prototype,"data",void 0);_.Z([_.H({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:Iu1}),_.l("design:type",Object)],lN.prototype,"commerceCartCheckoutButtonEntity",void 0);_.Z([_.il("commerceCartCheckoutButtonEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lN.prototype,"entityChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],lN);
_.b(lN,"ytd-commerce-cart-summary-renderer",function(){if(Lda!==void 0)return Lda;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Lda=k},{mode:1});var jC3={};jC3.InjectBehavior=[E9I.InjectBehavior];var DpG;var $pa;var M_=function(){return _.p.apply(this,arguments)||this};
_.y(M_,_.p);
M_.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:_.Yv("menuRenderer")}}};
M_.prototype.onMenuTap=function(k){k.stopPropagation()};
_.mt.Object.defineProperties(M_.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 k,E;return!(((k=this.data)==null||!k.sectionHeading)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var k,E;return!(((k=this.data)==null||!k.image)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var k,E;return!(((k=this.data)==null||!k.menu)&&((E=this.data)==null?void 0:E.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],M_.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.P4Y.YtTappableItemBehavior),_.l("design:type",Object)],M_.prototype,"ytTappableItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],M_.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.accessibilityData"),_.l("design:type",String),_.l("design:paramtypes",[])],M_.prototype,"ariaLabel",null);_.Z([_.U("data.sectionHeading","data.layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],M_.prototype,"sectionHeadingVisible",null);_.Z([_.U("data.image","data.layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],M_.prototype,"imageVisible",null);
_.Z([_.U("data.menu","data.layout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],M_.prototype,"menuVisible",null);_.Z([_.U_({is:"yt-activity-item-renderer",disableElementRegistration:!0})],M_);
_.b(M_,"yt-activity-item-renderer",function(){if($pa===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;DpG===void 0&&(DpG=document.createElement("template"));var R=DpG;S.call(E,R.content.cloneNode(!0),k.content.firstChild);$pa=k}k=$pa;return k},{mode:2});var fCA;var v2t;var bjU;var Zj3;var q_=function(){return _.p.apply(this,arguments)||this};
_.y(q_,_.p);
q_.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"}}}}};
q_.prototype.backgroundColorChanged_=function(){var k,E=(k=this.data)==null?void 0:k.backgroundColor;this.hostElement.style.backgroundColor=K4[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
q_.prototype.backgroundColorChanged_=q_.prototype.backgroundColorChanged_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],q_.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],q_.prototype,"data",void 0);
_.Z([_.il("data.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q_.prototype,"backgroundColorChanged_",null);_.Z([_.U_({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],q_);
_.b(q_,"yt-offer-item-upsell-renderer",function(){if(Zj3===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;bjU===void 0&&(bjU=document.createElement("template"));var R=bjU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Zj3=k}k=Zj3;return k},{mode:2});_.B9("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var zj=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};k.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return k};
_.y(zj,_.p);_.I=zj.prototype;
_.I.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:_.Yv("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.I.computeContainerStyle_=function(k){return k};
_.I.computeContainerIsHidden_=function(k){return k&&!!k.isHidden};
_.I.computeShowSpinner_=function(k,E){return k&&E==="in-progress"};
_.I.computeShowMoreContentsButton_=function(k,E,S,R,V){return!(!(R&&R.length||V&&V.length&&S)||!k||E)};
_.I.onToggleButton_=function(k){var E=this;k.stopPropagation();this.isExpanded_=k.detail&&k.detail.toggled;var S,R;this.isExpanded_&&!this.data.continuationSection.length&&((S=this.data)==null?0:(R=S.continuation)==null?0:R.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Me(this.hostElement,"yt-load-next-continuation",function(V){return E.getContinuationUrl_(E.data.continuation.onClickContinuationData,V)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Qw(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.I.onShowMoreContentsButtonClicked_=function(k){var E=this;k.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Me(this.hostElement,"yt-load-next-continuation",function(S){return E.getContinuationUrl_(E.data.continuations[0].nextContinuationData,S)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Qw(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.I.getContinuationUrl_=function(k,E){var S=k.continuation;k=k.clickTrackingParams;var R=_.Fe();k&&R&&_.Dv(R,_.tV(k));return _.Iu(E,{continuation:S})};
_.I.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var k=_.Cc(this.hostElement).querySelector("#continuation-section");k&&(k=k.querySelectorAll("ytmusic-item-section-renderer"))&&k.forEach(function(E){return E.classList.add("memberships-and-purchases")})};
_.I.dataChanged_=function(){var k;this.isExpanded_=!((k=this.data)==null||!k.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.I.updateCardOnClickCommand_=function(k){k=_.W(k,DYY);var E,S;this.data&&((E=this.data)==null?0:E.targetId)&&k&&k.targetId===((S=this.data)==null?void 0:S.targetId)&&k.onClickCommand&&(this.data.onClickCommand=k.onClickCommand,this.isOnClickCommand_=!0)};
_.I.backgroundColorChanged_=function(){var k,E=(k=this.data)==null?void 0:k.backgroundColor;this.hostElement.style.backgroundColor=K4[E||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
zj.prototype.backgroundColorChanged_=zj.prototype.backgroundColorChanged_;zj.prototype.dataChanged_=zj.prototype.dataChanged_;zj.prototype.nextContinuationDataUpdated_=zj.prototype.nextContinuationDataUpdated_;zj.prototype.onToggleButton_=zj.prototype.onToggleButton_;_.Z([_.g(_.VX),_.l("design:type",Object)],zj.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],zj.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Nk.YtNextContinuationBehavior),_.l("design:type",Object)],zj.prototype,"ytNextContinuationBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.Z([_.g(jC3.InjectBehavior),_.l("design:type",Object)],zj.prototype,"injectBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],zj.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],zj.prototype,"compact",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],zj.prototype,"isExpanded_",void 0);_.Z([_.H({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.l("design:type",String)],zj.prototype,"containerStyle_",void 0);_.Z([_.H({value:"not-started"}),_.l("design:type",String)],zj.prototype,"continuationStatus_",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.l("design:type",Boolean)],zj.prototype,"showSpinner_",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],zj.prototype,"isOnClickCommand_",void 0);_.Z([_.H({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.l("design:type",Boolean)],zj.prototype,"showMoreContentsButton_",void 0);
_.Z([_.H({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(k,E){return!E||k.entities?null:_.Ep(k.entities,"cardItemContainerEntity",E)}}),
_.l("design:type",Object)],zj.prototype,"cardItemContainerEntity_",void 0);_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],zj.prototype,"onToggleButton_",null);_.Z([_.nv("yt-next-continuation-data-updated"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zj.prototype,"nextContinuationDataUpdated_",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zj.prototype,"dataChanged_",null);_.Z([_.il("data.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zj.prototype,"backgroundColorChanged_",null);_.Z([_.U_({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],zj);
_.b(zj,"yt-card-item-container-renderer",function(){if(v2t===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;fCA===void 0&&(fCA=document.createElement("template"));var R=fCA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);v2t=k}k=v2t;return k},{mode:2});var Q1=function(){return _.p.apply(this,arguments)||this};
_.y(Q1,_.p);Q1.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"}}}};
Q1.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Q1.prototype.computeLoadingHidden=function(){var k;return!((k=this.commerceCartPageStateEntity)==null?0:k.cartActionInProgress)};
Q1.prototype.updateNotification=function(){var k,E=(k=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:k.summaryText;E&&this.set("data.cartNotification",Tb(E))};
Q1.prototype.notificationEntityChanged=Q1.prototype.notificationEntityChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],Q1.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Q1.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Q1.prototype,"data",void 0);_.Z([_.H({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(k,E){return _.Ep(k.entities,"commerceCartExpandableNotificationEntity",E)}}),
_.l("design:type",Object)],Q1.prototype,"commerceCartExpandableNotificationEntity",void 0);_.Z([_.H({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(k,E){return _.Ep(k.entities,"commerceCartPageStateEntity",E)}}),
_.l("design:type",Object)],Q1.prototype,"commerceCartPageStateEntity",void 0);_.Z([_.JO("#spinner"),_.l("design:type",HTMLElement)],Q1.prototype,"spinner",void 0);_.Z([_.il("commerceCartExpandableNotificationEntity","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Q1.prototype,"notificationEntityChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Q1);
_.b(Q1,"ytd-commerce-cart-renderer",function(){if(xpA!==void 0)return xpA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return xpA=k},{mode:1});var dpP;var OC=function(){var k=_.p.apply(this,arguments)||this;k.bigImage=!1;return k};
_.y(OC,_.p);_.mt.Object.defineProperties(OC.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.placeholderImageUrl}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],OC.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OC.prototype,"bigImage",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],OC.prototype,"placeholderImageUrl",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],OC);
_.b(OC,"ytd-empty-product-shelf-renderer",function(){if(dpP!==void 0)return dpP;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return dpP=k},{mode:1});var sC3;var Gj=function(){var k=_.p.apply(this,arguments)||this;k.itemStyle="link-item";k.watchMetadataRefresh=!1;k.skinnyMode=!1;k.metaPanel=!1;k.inStructuredDescription=!1;k.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};k.updateOnResizeDebouncer=null;return k};
_.y(Gj,_.p);_.I=Gj.prototype;_.I.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.I.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"}}}}};
_.I.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.I.attachVEs=function(k){k.trackingParams&&_.JV().graftServerVe(k.trackingParams)};
_.I.handleUpdateMerchShelfAction=function(k){var E=this,S=_.W(k.updateMerchandiseShelfAction.merchandiseShelf,_.Jsd);S&&(S.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){E.attachVEs(S);E.data=S},Number(S.renderDelayMs))):(this.attachVEs(S),this.data=S))};
_.I.updateOnResize=function(){if(this.JSC$17031_scrollContainer!==void 0&&this.JSC$17031_scrollContainer.clientWidth!==0&&this.items!==void 0){var k=this.JSC$17031_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-k));this.ytdHorizontalListBehavior.reposition_();var E;switch((E=this.data)==null?void 0:E.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var S,
R;((S=this.data)==null?void 0:(R=S.items)==null?void 0:R.length)===1?this.itemStyle="cta-item":this.itemStyle=k>=740?"large-item":"small-item"}}};
_.I.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.N7(this.updateOnResizeDebouncer,_.MN.after(100),this.updateOnResize)};
Gj.prototype.debouncedUpdateOnResize=Gj.prototype.debouncedUpdateOnResize;Gj.prototype.dataChanged=Gj.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.wR.YtdHorizontalListBehavior),_.l("design:type",Object)],Gj.prototype,"ytdHorizontalListBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Gj.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Gj.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Gj.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gj.prototype,"itemStyle",void 0);_.Z([_.H({value:6}),_.l("design:type",Number)],Gj.prototype,"initialCount",void 0);
_.Z([_.H({value:"data.items"}),_.l("design:type",String)],Gj.prototype,"itemsPath",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gj.prototype,"watchMetadataRefresh",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gj.prototype,"skinnyMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gj.prototype,"metaPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gj.prototype,"inStructuredDescription",void 0);
_.Z([_.JO("#items"),_.l("design:type",HTMLDivElement)],Gj.prototype,"items",void 0);_.Z([_.JO("#scroll-container"),_.l("design:type",HTMLDivElement)],Gj.prototype,"JSC$17031_scrollContainer",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gj.prototype,"dataChanged",null);_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gj.prototype,"debouncedUpdateOnResize",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Gj);
_.b(Gj,"ytd-merch-shelf-renderer",function(){if(sC3!==void 0)return sC3;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return sC3=k},{mode:2});var lCI;var C4=function(){var k=_.p.apply(this,arguments)||this;k.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 k};
_.y(C4,_.p);_.I=C4.prototype;
_.I.addBackstagePostAction=function(k){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(k=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",k))&&(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:k}):this.set("data.contents",[{backstagePostThreadRenderer:k}]))};
_.I.addBackstageCommentAction=function(k){var E=this.get("addBackstageCommentAction.parentId",k);k=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",k);if(E&&k){E=this.postIdToIndices(E);for(var S=0;S<E.length;S++){var R=E[S];if(R<0)break;R="data.contents."+R+".backstagePostThreadRenderer.comments";this.get(R)&&(this.get(R+".backstageCommentsRenderer.contents")&&this.push(R+".backstageCommentsRenderer.contents",{commentThreadRenderer:k}),this.get(R+".backstageCommentsRenderer.teaserContents")?
this.push(R+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:k}):this.set(R+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:k}]))}}};
_.I.addBackstageReplyAction=function(k){var E=this.get("addBackstageReplyAction.parentId",k);k=this.get("addBackstageReplyAction.renderer.commentRenderer",k);E&&k&&this.setCreatorReply(E,k)};
_.I.banAuthorAction=function(k){var E=this.get("banAuthorAction.commentId",k);E&&(k=this.get("banAuthorAction.parentCommentId",k)||this.getParentPostId(E),this.removeFromStream(E,k))};
_.I.hideReportedCommentAction=function(k){var E=this.get("hideReportedCommentAction.commentId",k);E&&((k=this.get("hideReportedCommentAction.parentCommentId",k))||(k=this.getParentPostId(E)),this.removeFromStream(E,k))};
_.I.replaceBackstageCommentAction=function(k){var E=this.get("replaceBackstageCommentAction.commentId",k),S=this.get("replaceBackstageCommentAction.parentId",k);k=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",k);if(E&&S&&k){S=this.postIdToIndices(S);for(var R=0;R<S.length;R++){var V=S[R];if(V<0)break;var N=this.commentIdToIndex(E,V,!1);if(N>=0){var h=this.get("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+N+".commentThreadRenderer.replies.commentRepliesRenderer");
h&&(k.replies={commentRepliesRenderer:h});this.splice("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",N,1,{commentThreadRenderer:k})}N=this.commentIdToIndex(E,V,!0);if(N>=0){if(h=this.get("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(N+".commentThreadRenderer.replies.commentRepliesRenderer")))k.replies={commentRepliesRenderer:h};this.splice("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
N,1,{commentThreadRenderer:k})}}}};
_.I.replaceBackstagePostAction=function(k){var E=this.get("replaceBackstagePostAction.itemId",k);if(E){E=this.postIdToIndices(E);for(var S=0;S<E.length;S++){var R=E[S];if(R<0)break;var V=this.getPostRendererType(R),N=this.get("replaceBackstagePostAction.renderer."+V,k);if(!N&&V!=="sharedPostRenderer")break;var h=!1;N||(h=!0,N=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",k));if(!N)break;var J={};h?(_.Fd(J,KrY,N),this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
J)):(_.Fd(J,new _.z_(V),N),this.set("data.contents."+R+".backstagePostThreadRenderer.post",J))}}};
_.I.replaceBackstageReplyAction=function(k){var E=this.get("replaceBackstageReplyAction.replyId",k),S=this.get("replaceBackstageReplyAction.parentId",k);k=this.get("replaceBackstageReplyAction.renderer.commentRenderer",k);E&&k&&S&&this.setCreatorReply(S,k)};
_.I.removeCommentAction=function(k){var E=this.get("removeCommentAction.commentId",k);if(E){var S=this.get("removeCommentAction.parentCommentId",k);S&&this.get("removeCommentAction.isCreatorReply",k)?this.setCreatorReply(S,void 0):(S||(S=this.getParentPostId(E)),this.removeFromStream(E,S))}};
_.I.setCreatorReply=function(k,E){var S=this.getParentPostId(k);if(S){S=this.postIdToIndices(S);for(var R=0;R<S.length;R++){var V=S[R];if(V<0)break;var N=this.commentIdToIndex(k,V,!1);if(N>=0){var h="data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+N;N=h+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";h+=".commentThreadRenderer.replies";E==void 0?(this.set(h,{}),this.set(N,!1)):(this.set(h,{commentRepliesRenderer:{teaserContents:[{commentRenderer:E}]}}),
this.set(h+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(N,!0))}N=this.commentIdToIndex(k,V,!0);N>=0&&(N="data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+N,V=N+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",N+=".commentThreadRenderer.replies",E==void 0?(this.set(N,{}),this.set(V,!1)):(this.set(N,{commentRepliesRenderer:{teaserContents:[{commentRenderer:E}]}}),this.set(V,!0)))}}};
_.I.removeFromStream=function(k,E){if(E){E=this.postIdToIndices(E);for(var S=0;S<E.length;S++){var R=E[S];if(R<0)break;var V=this.commentIdToIndex(k,R,!1);V>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",V,1);V=this.commentIdToIndex(k,R,!0);V>=0&&this.splice("data.contents."+R+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",V,1);R="data.contents."+R+".backstagePostThreadRenderer.post.backstagePostRenderer";
V=R+".backstageAttachment.pollRenderer.votedCommentId";this.get(V)===k&&(this.set(V,null),this.set(R+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(E=this.postIdToIndices(k).reverse(),S=0;S<E.length;S++){R=E[S];if(R<0)break;V=this.getPostRendererType(R);var N=this.get("backstagePostThreadRenderer.post."+V,this.data.contents[R]);N.postId===k?this.splice("data.contents",R,1):V==="sharedPostRenderer"&&this.set("data.contents."+R+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);N.scheduledPublishTimeSec&&_.qe(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.I.postIdToIndices=function(k){for(var E=[],S=0;S<this.data.contents.length;S++){var R=this.getPostRendererType(S);this.get("backstagePostThreadRenderer.post."+R+".postId",this.data.contents[S])===k&&E.push(S);if(R==="sharedPostRenderer"){var V=this.get("backstagePostThreadRenderer.post."+R+".originalPost.backstagePostRenderer.postId",this.data.contents[S]);R=this.get("backstagePostThreadRenderer.post."+R+".originalPost.postRenderer.postId",this.data.contents[S]);V!==k&&R!==k||E.push(S)}}return E};
_.I.commentIdToIndex=function(k,E,S){if(E<0)return-1;var R,V,N,h,J=_.W((R=this.data)==null?void 0:(V=R.contents)==null?void 0:(N=V[E])==null?void 0:(h=N.backstagePostThreadRenderer)==null?void 0:h.comments,UN8);return(E=S?J==null?void 0:J.teaserContents:J==null?void 0:J.contents)&&E.length?E.findIndex(function(m){return _.W(m,iFT).comment.commentRenderer.commentId===k}):-1};
_.I.getParentPostId=function(k){k=k.split(".");if(k[1])return k[0]};
_.I.getPostRendererType=function(k){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[k])?"sharedPostRenderer":"backstagePostRenderer"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],C4.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],C4.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:_.Y("enable_community_page_on_desktop")}),_.l("design:type",Boolean)],C4.prototype,"useSmallerPostContainer",void 0);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-backstage-items"})],C4);
_.b(C4,"ytd-backstage-items",function(){if(lCI!==void 0)return lCI;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return lCI=
k},{mode:1});var MTa;var q5x={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},kU=function(){var k=_.p.apply(this,arguments)||this;k.disablePrescanVisibility=!0;k.canScheduleJobs=!0;k.engagementPanel=!1;k.hidePanelButton=!1;k.isWatchGrid=
!1;k.hasShownSubscribersOnlyDisclaimer=!1;k.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_"};k.TEST_ONLY=void 0;return k};
_.y(kU,_.p);_.I=kU.prototype;_.I.created=function(){this.initCommentsCsi_();_.Y("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.Y("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.I.contentsChanged_=function(){var k;(k=this.data)!=null&&k.contents&&this.tickForCommentsTimer_("cml")};
_.I.headerChanged_=function(){var k;(k=this.data)!=null&&k.header&&this.tickForCommentsTimer_("cmhl")};
_.I.initCommentsCsi_=function(){_.yi("wn_comments");var k=_.Fe();k&&_.BE({clientScreenNonce:k},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.I.createCommentAction_=function(k){k=_.fO.unsafeClone(k);var E,S;if(k=(E=_.W(k,C5Y))==null?void 0:(S=E.contents)==null?void 0:S.commentThreadRenderer){var R,V,N,h,J,m;!this.isBackstage&&((R=this.data)==null?0:(V=R.header)==null?0:(N=V.commentsHeaderRenderer)==null?0:(h=N.createRenderer)==null?0:(J=h.commentSimpleboxRenderer)==null?0:(m=J.zeroStep)==null?0:m.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var a,
T,w;this.isBackstage&&_.W((a=this.data)==null?void 0:(T=a.header)==null?void 0:(w=T.commentsHeaderRenderer)==null?void 0:w.zeroStateMessage,pgC)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(k)}};
_.I.doReplyInsert_=function(k,E,S,R){R?this.splice(k,R,0,E):this.push(k,E)};
_.I.getRepliesPath_=function(k){return"data.contents."+k+".commentThreadRenderer.replies"};
_.I.getRepliesContentsPath_=function(k,E){k=this.getRepliesPath_(k);return E?k+".commentRepliesRenderer.teaserContents":k+".commentRepliesRenderer.contents"};
_.I.showSubscribersOnlyDisclaimer_=function(k){(k=k.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(k=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(k))&&(_.qe(this.hostElement,"yt-open-popup-action",[k,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.I.createCommentReplyAction_=function(k){k=_.fO.unsafeClone(k);var E=_.W(k,kzC);if(k=E==null?void 0:E.contents){var S=this.commentIdToIndex_(E==null?void 0:E.parentCommentId);if(!(S<0)){var R=this.getRepliesPath_(S);if(this.get(R)){E=E.replyToCommentId;R=this.getRepliesContentsPath_(S,!1);if(this.get(R)){var V=this.get(R).length,N=R+"."+(V-1)+".continuationItemRenderer";this.get(N+".button")?(N=this.replyIdToIndex_(E,S,!1),this.doReplyInsert_(R,k,N,V-1)):this.get(N)||(V=this.replyIdToIndex_(E,S,
!1),this.doReplyInsert_(R,k,V,null))}R=this.getRepliesContentsPath_(S,!0);this.get(R)?(S=this.replyIdToIndex_(E,S,!0),(!E||S>=0)&&this.doReplyInsert_(R,k,S,null)):this.set(R,[k])}else this.set(R,{commentRepliesRenderer:{teaserContents:[k]}})}}};
_.I.hideReportedCommentAction_=function(k){var E=_.W(k,YDz);if(k=E==null?void 0:E.commentId)(E=this.get("parentCommentId",E))||(E=this.getParentCommentId_(k)),this.remove_(k,E)};
_.I.getParentCommentId_=function(k){k=k.split(".");if(k[1])return k[0]};
_.I.removeCommentAction_=function(k){var E=_.W(k,NhC);if(k=E==null?void 0:E.commentId)E=(E==null?void 0:E.parentCommentId)||this.getParentCommentId_(k),this.remove_(k,E)};
_.I.pinCommentAction_=function(k){k=_.fO.unsafeClone(k);var E=_.W(k,VG8);E!=null&&E.commentId&&(k=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",k))&&(this.remove_(E.commentId),this.insert_(k,!0))};
_.I.unpinCommentAction_=function(k){k=_.fO.unsafeClone(k);k=_.W(k,Iqd);if(k!=null&&k.commentId){var E,S,R=(E=k.actionResult)==null?void 0:(S=E.update)==null?void 0:S.commentThreadRenderer;R&&(this.remove_(k.commentId),this.insert_(R))}};
_.I.banAuthorAction_=function(k){var E=_.W(k,Gkp);E!=null&&E.commentId&&(k=E.commentId,E=E.parentCommentId||this.getParentCommentId_(k),this.remove_(k,E))};
_.I.handleScrollToCommentElement_=function(k){this.nearestScrollParent||(this.nearestScrollParent=pBC(k));this.isCommentVisibleInScrollParent(k)||k.scrollIntoView({behavior:"smooth",block:"start"})};
_.I.isCommentVisibleInScrollParent=function(k){if(!this.nearestScrollParent)return!1;k=k.getBoundingClientRect();var E=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return k.top>=E.top&&k.bottom<=E.bottom};
_.I.commentIdToIndex_=function(k){var E;return k&&(E=this.data)!=null&&E.contents?this.data.contents.findIndex(function(S){S=S.commentThreadRenderer;var R;return k===((S==null?void 0:S.commentViewModel)&&((R=_.W(S.commentViewModel,aq2))==null?void 0:R.commentId))}):-1};
_.I.insert_=function(k,E){E=E===void 0?!1:E;var S,R;if((S=this.data)==null?0:(R=S.contents)==null?0:R.some(function(N){return!!N.commentThreadRenderer}))for(S=0,R=this.data.contents.length;S<R;S++){var V=this.data.contents[S].commentThreadRenderer;
if(q5x[k.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=q5x[V.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){E&&q5x[k.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===q5x[V.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",S,1,{commentThreadRenderer:k}):this.splice("data.contents",S,0,{commentThreadRenderer:k});break}}else this.set("data.contents",[{commentThreadRenderer:k}])};
_.I.doReplyRemove_=function(k,E,S){k=this.replyIdToIndex_(k,E,S);k<0||(E=this.getRepliesContentsPath_(E,S),this.splice(E,k,1))};
_.I.remove_=function(k,E){E=this.commentIdToIndex_(E);E<0?(E=this.commentIdToIndex_(k),E<0||this.splice("data.contents",E,1)):_.Y("web_delhi_comment_threads")||(this.doReplyRemove_(k,E,!1),this.doReplyRemove_(k,E,!0))};
_.I.replyIdToIndex_=function(k,E,S){if(E<0)return-1;E=this.getRepliesContentsPath_(E,S);E=this.get(E);if(!E||!E.length)return-1;S=0;for(var R=E.length;S<R;S++){var V=void 0,N=void 0;if(((V=E[S])==null?void 0:(N=V.commentViewModel)==null?void 0:N.commentId)===k)return S}return-1};
_.I.tickForCommentsTimer_=function(k){_.Xy(k,void 0,"wn_comments")};
_.I.reloadComments_=function(k){k=_.W(k,m7C);_.W(k==null?void 0:k.command,_.H9)&&_.Qw(this.hostElement,[k==null?void 0:k.command])};
_.mt.Object.defineProperties(kU.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return!!((k=this.data)==null?0:(E=k.header)==null?0:(S=E.commentsHeaderRenderer)==null?0:S.isBackstageContent)}}});
_.mt.Object.defineProperties(kU,{template:{configurable:!0,enumerable:!0,get:function(){if(MTa===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);MTa=k}k=MTa;return k}}});
kU.prototype.showSubscribersOnlyDisclaimer_=kU.prototype.showSubscribersOnlyDisclaimer_;kU.prototype.headerChanged_=kU.prototype.headerChanged_;kU.prototype.contentsChanged_=kU.prototype.contentsChanged_;_.Z([_.g(_.Jy),_.l("design:type",Object)],kU.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.Vp1.YtHostElementBehavior),_.l("design:type",Object)],kU.prototype,"ytHostElementBehavior",void 0);
_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",Function)],kU.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],kU.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],kU.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.header.commentsHeaderRenderer.isBackstageContent"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],kU.prototype,"isBackstage",null);_.Z([_.H(),_.l("design:type",Object)],kU.prototype,"disablePrescanVisibility",void 0);_.Z([_.H(),_.l("design:type",Object)],kU.prototype,"canScheduleJobs",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],kU.prototype,"engagementPanel",void 0);
_.Z([_.H(),_.l("design:type",Object)],kU.prototype,"hidePanelButton",void 0);_.Z([_.H(),_.l("design:type",Object)],kU.prototype,"isWatchGrid",void 0);_.Z([_.H(),_.l("design:type",Object)],kU.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.Z([_.il("data.contents"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kU.prototype,"contentsChanged_",null);
_.Z([_.il("data.header"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kU.prototype,"headerChanged_",null);_.Z([_.nv("yt-show-subscribers-only-disclaimer"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],kU.prototype,"showSubscribersOnlyDisclaimer_",null);_.Z([_.D({is:"ytd-comments"})],kU);var E1=function(){return _.mi.apply(this,arguments)||this};
_.y(E1,_.mi);_.I=E1.prototype;_.I.bindIf=function(k,E,S){return k?E:S};
_.I.bindIfDefined=function(k,E){return k!==void 0?k:E};
_.I.booleanString=function(k){return(!!k).toString()};
_.I.equals=function(){for(var k=_.sX.apply(0,arguments),E=k[0],S=1;S<k.length;S++)if(E!=k[S])return!1;return!0};
_.I.isGreaterThan=function(k,E){return k>E};
_.I.isLessThan=function(k,E){return k<E};
_.I.logicalAND=function(){for(var k=_.sX.apply(0,arguments),E=!!k[0],S=1;S<k.length;S++)E=E&&!!k[S];return E};
_.I.logicalOR=function(){for(var k=_.sX.apply(0,arguments),E=!!k[0],S=1;S<k.length;S++)E=E||!!k[S];return E};
_.I.toBool=function(k){return!!k};
E1.prototype.toBool=E1.prototype.toBool;E1.prototype.logicalOR=E1.prototype.logicalOR;E1.prototype.logicalAND=E1.prototype.logicalAND;E1.prototype.isLessThan=E1.prototype.isLessThan;E1.prototype.isGreaterThan=E1.prototype.isGreaterThan;E1.prototype.equals=E1.prototype.equals;E1.prototype.booleanString=E1.prototype.booleanString;E1.prototype.bindIfDefined=E1.prototype.bindIfDefined;E1.prototype.bindIf=E1.prototype.bindIf;_.Z([_.eN()],E1);_.zAW=[E1.prototype];var QC2;var OjR;var Sg=function(){return _.p.apply(this,arguments)||this};
_.y(Sg,_.p);Sg.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Sg.prototype.onBackIconTap_=function(){window.history.back()};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Sg.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Sg.prototype,"data",void 0);_.Z([_.U_({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Sg);
_.b(Sg,"yt-header-with-back-renderer",function(){if(OjR===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;QC2===void 0&&(QC2=document.createElement("template"));var R=QC2;S.call(E,R.content.cloneNode(!0),k.content.firstChild);OjR=k}k=OjR;return k},{mode:2});var GYx;var C4A;var Ri=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(Ri,_.p);_.I=Ri.prototype;_.I.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.I.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&(this.isDarkTheme=k,this.setUrl())};
_.I.dataChanged=function(){var k=this;if(this.data){var E=this.setUrl();E&&_.zn({destination:window,iframe:this.iframe,origin:_.fBT(E.toString()),channelName:"yt-iframe",onMessage:function(S){(S=k.getCommunicationCommand(S.data))&&k.ytComponentBehavior.resolveCommand(S)},
onEstablished:function(){}})}};
_.I.setUrl=function(){if(this.data&&this.data.iframeUrl){var k=_.dv(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(k)return _.GB(this.iframe,k),k}};
_.I.getCommunicationCommand=function(k){var E;if((E=this.data)!=null&&E.onCommunicationCommandsMap){E=this.data.onCommunicationCommandsMap.find(function(V){return V.key===k});
if(E==null?0:E.value)return E==null?void 0:E.value;try{var S=HyT(_.k2(k)),R=this.data.onCommunicationCommandsMap.find(function(V){return V.key===(S==null?void 0:S.getMethodName())});
if(R==null?0:R.value)return R==null?void 0:R.value}catch(V){}}};
Ri.prototype.dataChanged=Ri.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ri.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Ri.prototype,"actionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ri.prototype,"data",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ri.prototype,"isDarkTheme",void 0);_.Z([_.JO("#iframe"),_.l("design:type",HTMLIFrameElement)],Ri.prototype,"iframe",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ri.prototype,"dataChanged",null);_.Z([_.U_({is:"yt-iframe-renderer",disableElementRegistration:!0})],Ri);
_.b(Ri,"yt-iframe-renderer",function(){if(C4A===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;GYx===void 0&&(GYx=document.createElement("template"));var R=GYx;S.call(E,R.content.cloneNode(!0),k.content.firstChild);C4A=k}k=C4A;return k},{mode:2});_.V0=function(k){_.r7.call(this);this.callback=k;this.bezier=new DBp(0,0,.4,0,.2,1,1,1);this.delay=new _.tB(this.next,window,this);this.JSC$17072_animating=!1;_.Wy(this,this.delay)};
_.y(_.V0,_.r7);_.V0.prototype.isAnimating=function(){return this.JSC$17072_animating};
_.V0.prototype.start=function(k,E,S){this.config={from:k,to:E,duration:S,startTime:(0,_.ev)()};this.JSC$17072_animating=!0;this.next()};
_.V0.prototype.stop=function(){this.delay.stop();this.JSC$17072_animating=!1;this.config=void 0};
_.V0.prototype.next=function(){if(this.config){var k=this.config,E=k.from,S=k.to,R=k.duration;k=k.startTime;var V=(0,_.ev)()-k;k=this.bezier;R=fgz(k,V/R);if(R==0)k=k.y0;else if(R==1)k=k.y3;else{V=w9(k.y0,k.y1,R);var N=w9(k.y1,k.y2,R);k=w9(k.y2,k.y3,R);V=w9(V,N,R);N=w9(N,k,R);k=w9(V,N,R)}k=_.Bt(k,0,1);this.callback(E+(S-E)*k);k<1?this.delay.start():this.JSC$17072_animating=!1}};_.N9=new _.QE("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var kG3={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},SAx=function(k,E,S,R){_.r7.call(this);this.JSC$17083_miniAppId=k;this.localReleaseId=E;this.derivedDeviceInterface=S;this.isForeground=R;this.JSC$17083_playNonceResolver=new _.kl;this.playPingTimerId=NaN;this.playPingIntervalMs=_.wO("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.wO("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.Y("enable_displaying_ppn");this.JSC$17083_miniAppClientDataProvider=_.en().resolve(_.N9);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;EW0(this);var V=setTimeout(function(){_.dg(new _.LC("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17083_playNonceResolver.promise.then(function(){clearTimeout(V)})};
_.y(SAx,_.r7);var VIP=function(k,E){k.JSC$17083_playNonceResolver.resolve(E!=null?E:Pi(8));k.enableDisplayingPpn&&RYA(k).then(function(S){k.JSC$17083_miniAppClientDataProvider.clientData.set("post_play_nonce",S)})},RYA=function(k){return _.c(function(E){return E.nextAddress==1?E.yield(k.JSC$17083_playNonceResolver.promise,2):E.return(E.yieldResult)})},EW0=function(k){var E,S;
_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$17083_playNonceResolver.promise,2);E=R.yieldResult;S={miniAppInfo:{externalPostId:k.JSC$17083_miniAppId,localReleaseId:k.localReleaseId,postPlayNonce:E,derivedDeviceInterface:k.derivedDeviceInterface}};_.BE(S);_.KR(R)})},IxW=function(k){k.state!==0?_.dg(new _.LC("[MiniAppPlayLogger] recordPlayStart failed with state "+kG3[k.state])):(k.state=1,Ii(k,"ma_cl"),n$(k,"PLAY_EVENT_TYPE_PLAY_START"),NUI(k))},nWW=function(k){k.isForeground=!1;
n$(k,"PLAY_EVENT_TYPE_PLAY_PAUSE")},iPT=function(k){k.state!==1&&k.state!==2?_.dg(new _.LC("[MiniAppPlayLogger] recordPlayEnd failed with state "+kG3[k.state])):(k.state=3,window.clearInterval(k.playPingTimerId),k.playPingTimerId=NaN,M_j(),n$(k,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},hY0=function(k,E){k.state===2&&k.gameReady&&(k.firstClickRecorded?Date.now()-k.clickRecordedMs<k.playClickIntervalMs||(k.clickRecordedMs=Date.now(),n$(k,"PLAY_EVENT_TYPE_PLAY_CLICK")):E&&(Ii(k,"ma_fua"),n$(k,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),k.firstClickRecorded=!0,k.clickRecordedMs=Date.now()))};
SAx.prototype.logError=function(k){var E=this,S;_.c(function(R){if(R.nextAddress==1)return k.metadata.externalPostId=E.JSC$17083_miniAppId,S=k.metadata,R.yield(Promise.race([E.JSC$17083_playNonceResolver.promise,new Promise(function(V){setTimeout(function(){V("")},3E4)})]),2);
S.postPlayNonce=R.yieldResult;k.metadata.localReleaseId=E.localReleaseId;k.loggingError.level="WARNING";_.bM(k.loggingError,k.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:k.metadata});_.KR(R)})};
var JRx=function(k,E,S,R){var V,N,h,J,m,a;_.c(function(T){if(T.nextAddress==1)return T.yield(k.JSC$17083_playNonceResolver.promise,2);V=T.yieldResult;N={externalPostId:k.JSC$17083_miniAppId,localReleaseId:k.localReleaseId,postPlayNonce:V,sdkVersion:S,api:E};R!==void 0&&(N.networkRequestsMeasurement={networkRequests:_.eo(R,1),cachedRequests:_.eo(R,2),transferredBytes:_.eo(R,3)},(h=R)==null?0:_.Vk(h,G6,6))&&(N.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((J=_.Tp(R,
G6,6))==null?void 0:wF(J,1))||"0",cacheHits:((m=_.Tp(R,G6,6))==null?void 0:wF(m,2))||"0",cachedBytes:((a=_.Tp(R,G6,6))==null?void 0:wF(a,3))||"0"});_.f2("miniAppSdkUsage",N);_.KR(T)})},m22=function(k,E,S){var R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L;
_.c(function(q){if(q.nextAddress==1)return q.yield(k.JSC$17083_playNonceResolver.promise,2);R=q.yieldResult;V={externalPostId:k.JSC$17083_miniAppId,localReleaseId:k.localReleaseId,postPlayNonce:R,sdkVersion:S,measurementWindow:{startTimestampMs:String(ez(E,1)),endTimestampMs:String(ez(E,2))},frameRate:{averageFrameTimeDeltaMs:a4(E,3),averageFrameIdleTimeMs:a4(E,4)}};_.Vk(E,CS,5)&&(V.networkRequests={networkRequests:(N=IJ(E))==null?void 0:_.eo(N,1),cachedRequests:(h=IJ(E))==null?void 0:_.eo(h,2),transferredBytes:(J=
IJ(E))==null?void 0:_.eo(J,3),sameOriginStatusCodeToCounts:cRG((m=IJ(E))==null?void 0:x2j(m,4)),crossOriginStatusCodeToCounts:cRG((a=IJ(E))==null?void 0:x2j(a,5))},(T=IJ(E))==null?0:_.Vk(T,G6,6))&&(V.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((w=IJ(E))==null?void 0:(P=_.Tp(w,G6,6))==null?void 0:wF(P,1))||"0",cacheHits:((B=IJ(E))==null?void 0:(F=_.Tp(B,G6,6))==null?void 0:wF(F,2))||"0",cachedBytes:((K=IJ(E))==null?void 0:(r=_.Tp(K,G6,6))==null?void 0:wF(r,3))||"0"});_.Vk(E,
W0C,7)&&(V.gameCapture={averageFrameTimeDeltaMs:(x=_.Tp(E,W0C,7))==null?void 0:a4(x,1),averageFrameIdleTimeMs:(L=_.Tp(E,W0C,7))==null?void 0:a4(L,2)});_.f2("miniAppPerformanceMetrics",V);_.KR(q)})},eY2=function(k,E){var S,R;
return _.c(function(V){if(V.nextAddress==1)return V.yield(k.JSC$17083_playNonceResolver.promise,2);S=V.yieldResult;R={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:k.JSC$17083_miniAppId,postPlayNonce:S,miniAppReleaseId:k.localReleaseId},derivedDeviceInterface:k.derivedDeviceInterface,adTriggerType:E,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.f2("miniAppAdEvent",R);_.KR(V)})};
SAx.prototype.disposeInternal=function(){_.r7.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var n$=function(k,E,S,R){S=S===void 0?{}:S;R=R===void 0?!1:R;var V,N,h,J;_.c(function(m){if(m.nextAddress==1)return V=k.isForeground,N=k.beforeReady,m.yield(k.JSC$17083_playNonceResolver.promise,2);h=m.yieldResult;J={externalPostId:k.JSC$17083_miniAppId,localReleaseId:k.localReleaseId,derivedDeviceInterface:k.derivedDeviceInterface,postPlayNonce:h,type:E};S.sequenceGroup=h;J.playState=N?"PLAY_STATE_NOT_READY":V?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.f2("miniAppPlayEvent",J,
S);R&&_.vv();_.KR(m)})},Ii=function(k,E){var S;
_.c(function(R){if(R.nextAddress==1)return S=(0,_.ev)(),R.yield(k.JSC$17083_playNonceResolver.promise,2);_.o_(E,S);_.KR(R)})},NUI=function(k){isNaN(k.playPingTimerId)&&(k.playPingTimerId=_.yf(function(){k.state!==1&&k.state!==2?_.dg(new _.LC("[MiniAppPlayLogger] reportPlayPing failed with state "+kG3[k.state])):n$(k,"PLAY_EVENT_TYPE_PLAY_PING")},k.playPingIntervalMs))},cRG=function(k){return Array.from(k.entries()).map(function(E){var S=_.n(E);
E=S.next().value;S=S.next().value;return{key:E,value:S}})};var axP=function(){},tIP=function(k,E){k.showMiniAppAdCommand=E.showMiniAppAdCommand;
k.isEmbeddedInWebview=E.isEmbeddedInWebview;k.playLogger=E.playLogger},w0G=function(k,E){var S;
return _.c(function(R){if(R.nextAddress==1){if(!k.showMiniAppAdCommand||!k.isEmbeddedInWebview)return R.return(TUI(k,E));k.adResolver=new _.kl;var V=new pK;S=_.wv(V,3,E);Yz(k.showMiniAppAdCommand,RK5(S));return R.yield(k.adResolver.promise,2)}return R.return(R.yieldResult)})};
axP.prototype.onAdFinished=function(k){k=C1z(k);var E;(E=this.adResolver)==null||E.resolve(k)};
var TUI=function(k,E){var S;return _.c(function(R){if(R.nextAddress==1)R=R.yield((S=k.playLogger)==null?void 0:eY2(S,D01(E)),2);else{var V=R.return;var N=new GAd;N=_.wv(N,1,2);R=V.call(R,N)}return R})};var Paa=new _.QE("INNERTUBE_MANAGER_TOKEN");var BUU=function(){this.callbacks={}};
BUU.prototype.initialize=function(k){var E=this;this.callbacks=k;window.youtubewebview?window.youtubewebview.onmessage=function(S){YAx(E,S)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(S){YAx(E,S)})};
var YAx=function(k,E){if(E.data)try{var S=HyT(E.data);if(_.F3(_.R4(S,1))!=null){var R=OS5(_.t2(S,2));switch(S.getMethodName()){case "yt-mini-app-load-audio-state":var V,N;(N=(V=k.callbacks).onAudioStateLoaded)==null||N.call(V,_.mV(R,K2(R,KK,1)));break;case "yt-mute-mini-app":var h,J;(J=(h=k.callbacks).onMuteMiniApp)==null||J.call(h);break;case "yt-unmute-mini-app":var m,a;(a=(m=k.callbacks).onUnmuteMiniApp)==null||a.call(m);break;case "yt-playable-exit":var T,w;(w=(T=k.callbacks).onExit)==null||w.call(T);
break;case "yt-post-play-nonce":var P,B;(B=(P=k.callbacks).onPostPlayNonceReceived)==null||B.call(P,PS(R,2,KK));break;case "yt-confirm-exit-mini-app":var F,K;(K=(F=k.callbacks).confirmExitMiniApp)==null||K.call(F);break;case "yt-confirm-exit-mini-app-edu":var r,x;(x=(r=k.callbacks).confirmExitMiniAppEdu)==null||x.call(r);break;case "yt-benchmarking-response":var L,q;(q=(L=k.callbacks).onNativeBenchmarkingMessageReceived)==null||q.call(L,PS(R,2,KK));break;case "yt-mini-app-load-3p-consent-state":var M,
d;(d=(M=k.callbacks).multiplayer3pAckStateLoaded)==null||d.call(M,_.mV(R,K2(R,KK,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var z,kb;(kb=(z=k.callbacks).exitMiniAppSeenStateLoaded)==null||kb.call(z,_.mV(R,K2(R,KK,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var TI,a1;(a1=(TI=k.callbacks).onNavigateToNewMiniApp)==null||a1.call(TI);break;case "yt-game-data-available":var Ah,th;(th=(Ah=k.callbacks).onGameDataAvailable)==null||th.call(Ah,PS(R,2,KK));break;case "yt-pause-mini-app":var He,
ve;(ve=(He=k.callbacks).onPauseMiniApp)==null||ve.call(He);break;case "yt-resume-mini-app":var Xm,U5;(U5=(Xm=k.callbacks).onResumeMiniApp)==null||U5.call(Xm);break;case "yt-playable-ad-finished":var l4,gY;(gY=(l4=k.callbacks).onAdFinished)==null||gY.call(l4,PS(R,2,KK))}}else _.dg(Error("bi"))}catch(IC){_.bM(Error("ci"))}else _.dg(Error("di"))};var fUI=function(k){this.rpcErrorCode=k};var i0=function(k,E,S){this.intervalMs=k;this.apiFunc=E;this.type=S;this.schedulerReady=!0};
i0.prototype.call=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1){if(E.type!==1&&k===E.cachedValue)return R.return();E.pendingApiRequestResolver||(E.pendingApiRequestResolver=new _.kl);S=E.pendingApiRequestResolver.promise;E.cachedValue=k;return R.yield(WT3(E),2)}return R.return(S)})};
i0.prototype.flush=function(k){k=k===void 0?!1:k;var E=this;return _.c(function(S){return E.cachedValue===void 0?S.return():S.yield(E.apiFunc(E.cachedValue,k),0)})};
var WT3=function(k){var E,S,R;return _.c(function(V){switch(V.nextAddress){case 1:if(!k.schedulerReady||!k.pendingApiRequestResolver)return V.return();k.schedulerReady=!1;E=k.pendingApiRequestResolver;k.pendingApiRequestResolver=void 0;_.F5(V,2);if(k.cachedValue===void 0){V.jumpTo(4);break}return V.yield(k.apiFunc(k.cachedValue),5);case 5:S=V.yieldResult,E.resolve(S);case 4:_.Sv(V,3);break;case 2:R=_.UY(V),E.reject(R);case 3:setTimeout(function(){return _.c(function(N){k.schedulerReady=!0;return N.yield(WT3(k),
0)})},k.intervalMs),_.KR(V)}})};var Za1=window.location.origin+"/miniapp_cloudsaves",vab=[400,401],FTP=_.wO("cloud_save_game_data_rate_limit_ms",3E3),X0P=function(k){var E=this;this.JSC$17127_miniAppId=k;this.loadAttempts=0;this.cloudSaveIntervalMs=FTP;this.initialDownloadDataSucceeded=!1;this.JSC$17127_playNonceResolver=new _.kl;this.scottyUploadRateLimiter=new i0(this.cloudSaveIntervalMs,function(S,R){return yRx(E,S,R)},2);
this.downloadDataPromise=oWW(this);this.downloadDataPromise.then(function(){E.initialDownloadDataSucceeded=!0}).catch(function(){})},gWP=function(k,E){E.then(function(S){return k.JSC$17127_playNonceResolver.resolve(S)})},U22=function(k){return _.c(function(E){return k.cachedData===void 0?E.return(k.downloadDataPromise):E.return(k.cachedData)})},HPG=function(k,E){return _.c(function(S){k.cachedData=E;
if(!k.initialDownloadDataSucceeded)throw Error("ei");return S.yield(k.scottyUploadRateLimiter.call(E),0)})},KT2=function(){return new Promise(function(k){setTimeout(k,1E3,"")})},p0G=function(k,E){var S,R;
return _.c(function(V){if(V.nextAddress==1)return S=k.JSC$17127_miniAppId,V.yield(Promise.race([k.JSC$17127_playNonceResolver.promise,KT2()]),2);R={"X-YouTube-MiniAppId":S,"X-YouTube-PostPlayNonce":V.yieldResult};"DELEGATED_SESSION_ID"in _.s4&&cX1(E,R);return V.return(R)})},yRx=function(k,E,S){S=S===void 0?!1:S;
return _.c(function(R){return $0I()?_.Y("enable_cloud_save_error_popup_after_retry")?R.return(new Promise(function(V,N){var h,J,m,a,T;return _.c(function(w){switch(w.nextAddress){case 1:h=0,J=!0,a=m=null;case 2:if(!(J&&h++<2)){w.jumpTo(4);break}_.F5(w,5);return w.yield(ARY(k,E,S),7);case 7:m=w.yieldResult;J=m.ok?!1:!vab.includes(m.status);_.Sv(w,2);break;case 5:a=T=_.UY(w);J=baI(a);w.jumpTo(2);break;case 4:m?m.ok?(hc(k,FTP),V()):(hc(k,k.cloudSaveIntervalMs*2),N(Error("fi`"+String(m.status),{cause:{rpcErrorCode:m.status}}))):
(hc(k,k.cloudSaveIntervalMs*2),N(a||Error("gi"))),_.KR(w)}})})):R.return(new Promise(function(V,N){var h,J;
return _.c(function(m){if(m.nextAddress==1){if(k.JSC$17127_miniAppId==="")return N(Error("hi")),m.return();_.F5(m,2);return m.yield(ARY(k,E,S),4)}if(m.nextAddress!=2)return h=m.yieldResult,h.ok?(hc(k,FTP),V()):(hc(k,k.cloudSaveIntervalMs*2),N(Error("fi`"+String(h.status),{cause:{rpcErrorCode:h.status}}))),_.Sv(m,0);J=_.UY(m);hc(k,k.cloudSaveIntervalMs*2);N(J);_.KR(m)})})):R.return()})},ARY=function(k,E,S){S=S===void 0?!1:S;
var R,V,N;return _.c(function(h){if(h.nextAddress==1)return R=_.xW((new TextEncoder).encode(E)),V=d0I(),h.yield(p0G(k,V),2);N=h.yieldResult;return h.return(fetch(V,{method:"POST",body:new Blob([R]),headers:N,keepalive:S}))})},oWW=function(k){var E,S;
return _.c(function(R){if(R.nextAddress==1){if(!$0I())return R.return("");if(k.JSC$17127_miniAppId==="")throw Error("hi");if(k.loadAttempts>2)return R.return(k.downloadDataPromise);_.F5(R,2);return R.yield(rRR(k),4)}if(R.nextAddress!=2)return E=R.yieldResult,R.return(E);S=_.UY(R);if(baI(S)&&++k.loadAttempts<2)return R.return(oWW(k));throw S;})},rRR=function(k){var E,S,R,V,N;
return _.c(function(h){switch(h.nextAddress){case 1:return _.F5(h,2),E=d0I(),h.yield(p0G(k,E),4);case 4:return S=h.yieldResult,h.yield(fetch(E,{method:"GET",headers:S}),5);case 5:return R=h.yieldResult,R.ok?h.yield(R.text(),6):h.return(Promise.reject(Error("ii`"+String(R.status),{cause:new fUI(R.status)})));case 6:return V=h.yieldResult,h.return((new TextDecoder).decode(_.k2(V)));case 2:return N=_.UY(h),h.return(Promise.reject(N))}})},hc=function(k,E){k.cloudSaveIntervalMs=E;
k.scottyUploadRateLimiter.intervalMs=k.cloudSaveIntervalMs};
X0P.prototype.flush=function(){var k=this;return _.c(function(E){return k.initialDownloadDataSucceeded?E.yield(k.scottyUploadRateLimiter.flush(!0),0):E.return()})};var u3a=VK(RJ(1),E6(1)),x2A=VK(RJ(1),E6(3)),Jc=function(k){this.callbacks=k};
_.I=Jc.prototype;_.I.onAudioToggled=function(k,E){(E===void 0||E)&&_.BT("yt-mini-app-is-audio-enabled",k,2592E3)};
_.I.onPause=function(){this.onAudioToggled(!1,!1)};
_.I.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.I.returnNativeBenchmarkingMessage=function(){};
_.I.sendGameData=function(){};
_.I.sendStartGameFrameCapture=function(){};
var sah=function(k,E,S){this.callbacks=k;var R=this;this.sdkVersion=new _.kl;this.channel=new lxd(_.zn({destination:window,iframe:E,origin:(new URL(S.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var V=cA;var N=RJ(5);var h=new it4;h=_.Y7(h,1,1E4);N=_.gk(N,4,T$Y,h);V(R,N);R.onAudioToggled(R.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){R.sdkVersion.resolve("")},1E4)};
_.y(sah,Jc);_.I=sah.prototype;_.I.onAudioToggled=function(k,E){Jc.prototype.onAudioToggled.call(this,k,E===void 0?!0:E);E=cA;var S=RJ(2),R=new Imp;k=_.w7(R,1,k);k=_.gk(S,3,T$Y,k);E(this,k)};
_.I.onPause=function(){Jc.prototype.onPause.call(this);cA(this,RJ(3))};
_.I.onResume=function(){Jc.prototype.onResume.call(this);cA(this,RJ(4))};
_.I.returnNativeBenchmarkingMessage=function(k){var E=cA,S=RJ(6);var R=E6(_.Vk(k,vN,1)?1:2);k=_.Vk(k,vN,1)?k:null;R=_.gk(R,5,S_,k);E(this,VK(S,R))};
_.I.sendGameData=function(k){var E=cA,S=RJ(7);k=_.gk(S,5,T$Y,k);E(this,k)};
_.I.sendStartGameFrameCapture=function(){cA(this,RJ(9))};
var m6=function(k,E,S){var R,V,N;return _.c(function(h){if(h.nextAddress==1)return R=k.callbacks,V=R.onSdkCalled,N=E,h.yield(k.sdkVersion.promise,2);V.call(R,N,h.yieldResult,S);_.KR(h)})};
sah.prototype.onMessage=function(){var k=this;return zYC(nK,function(E){var S,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z,kb,TI,a1,Ah,th,He,ve,Xm,U5,l4,gY,IC,md,Kj,Lj,H0,TG,iC,hC,Y2,It,Wz,VP,LR,Mp;return _.c(function(tC){switch(tC.nextAddress){case 1:if(!XY8(E.data))return _.dg(Error("ji")),tC.return();S=_.Tn(E.data,1);_.Y("enable_iframe_message_get_type_via_fields")&&(R=E.data,S=V=_.Tn(R,1));switch(S){case 8:if(E.data.hasMetadata()){var aC=k.sdkVersion,Rt=aC.resolve;var zI=E.data.getMetadata();zI=_.t2(zI,
1);Rt.call(aC,zI);clearTimeout(k.sdkVersionTimeoutId)}break;case 6:return tC.jumpTo(2);case 16:if(!_.Nx(E.data,B$4,14,i3))return tC.return();N=_.BS(E.data,B$4,14,i3);(J=(h=k.callbacks).onGameFrameReceived)==null||J.call(h,N);return tC.return();case 17:if(!_.Nx(E.data,Pdz,15,i3))return tC.return();(a=(m=k.callbacks).onGameAudioReceived)==null||a.call(m,_.BS(E.data,Pdz,15,i3));return tC.return();case 1:if(aC=_.BS(E.data,cz4,2,i3))switch(_.Tn(aC,1)){case 1:k.callbacks.onFirstFrameReady();if(_.Y("enable_network_request_logging_on_game_events")&&
_.Vk(aC,CS,4)){m6(k,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Tp(aC,CS,4));break}m6(k,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(zI=(Rt=k.callbacks).onGameReady)==null||zI.call(Rt);if(_.Y("enable_network_request_logging_on_game_events")&&_.Vk(aC,CS,4)){m6(k,"MINI_APP_SDK_API_GAME_READY",_.Tp(aC,CS,4));break}m6(k,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Nx(aC,kj,3,mwY))k.callbacks.onResourceLoaded(_.BS(aC,kj,3,mwY))}return tC.return();case 3:return tC.jumpTo(3);case 4:return tC.jumpTo(4);
case 2:return tC.jumpTo(5);case 9:return tC.jumpTo(6);case 10:return k.callbacks.onClick(),tC.return();case 5:return tC.jumpTo(7);case 11:if(!_.Nx(E.data,Q7,9,i3))return tC.return();T=_.BS(E.data,Q7,9,i3);(P=(w=k.callbacks).onBenchmarkingMessageReceived)==null||P.call(w,T);aC=E.reply;Rt=RJ(1);zI=E6(1);var Bz=new Q7;var W0=new Uint8Array(cCd(T,K2(T,EH8,6))|0);Bz=oW(Bz,5,EH8,_.AC(W0,!1));zI=_.gk(zI,5,S_,Bz);aC.call(E,VK(Rt,zI));return tC.return();case 12:return tC.jumpTo(8);case 13:return tC.jumpTo(9);
case 15:if(!_.Y("enable_open_yt_content"))return E.reply(x2A),tC.return();if(!_.Nx(E.data,wYz,12,i3))return E.reply(VK(RJ(1),E6(2))),tC.return();aC=_.BS(E.data,wYz,12,i3);B=_.t2(aC,1);k.callbacks.onOpenYTContent(B);E.reply(u3a);return tC.return();case 14:return tC.jumpTo(10);default:return tC.return()}tC.jumpTo(0);break;case 2:if(!_.Nx(E.data,Nz,5,i3))return tC.return();Rt=E.data;aC=K2(Rt,i3,5);Rt=Rt.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;F=$2h(Rt,Rt[_.Vd]|0,Nz,aC)||Nz[v21]||(Nz[v21]=
bj1(Nz));aC=_.cy(F,O9,1,_.mb());K=_.n(aC);r=K.next();case 12:if(r.done){tC.jumpTo(14);break}x=r.value;L=new _.LC;L.level=_.Tn(x,2)===1?"WARNING":"ERROR";q=Ms1(x.getSource());return tC.yield(k.sdkVersion.promise,15);case 15:M={source:q,sdkVersion:tC.yieldResult};_.SI(_.R4(x,6))!=null?(L.message=x.getMessage(),L.stack=_.t2(x,5),M.sdkErrorType=qeA(_.Tn(x,6)),_.SI(_.R4(x,7))!=null&&(M.sdkApi=znl(_.Tn(x,7)))):L.stack=void 0;z=d=void 0;(z=(d=k.callbacks).onError)==null||z.call(d,{loggingError:L,metadata:M});
r=K.next();tC.jumpTo(12);break;case 14:return tC.return();case 3:return _.F5(tC,16),aC=tC.yield,Rt=k.callbacks,zI=Rt.onSave,Bz=_.BS(E.data,nH4,4,i3),Bz=_.t2(Bz,1),aC.call(tC,zI.call(Rt,Bz),18);case 18:E.reply(u3a);_.Sv(tC,17);break;case 16:return kb=_.UY(tC),TI=WZ,a1=kb,Ah=k.callbacks,th="MINI_APP_SDK_API_SAVE_DATA",tC.yield(k.sdkVersion.promise,19);case 19:TI(a1,Ah,th,tC.yieldResult),E.reply(x2A);case 17:return tC.yield(m6(k,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return tC.return();case 4:return _.F5(tC,
21),tC.yield(k.callbacks.onLoad(),23);case 23:He=tC.yieldResult;aC=E.reply;Rt=RJ(1);zI=E6(1);Bz=new nH4;Bz=_.uh(Bz,1,He);zI=_.gk(zI,3,S_,Bz);aC.call(E,VK(Rt,zI));_.Sv(tC,22);break;case 21:return ve=_.UY(tC),Xm=WZ,U5=ve,l4=k.callbacks,gY="MINI_APP_SDK_API_LOAD_DATA",tC.yield(k.sdkVersion.promise,24);case 24:Xm(U5,l4,gY,tC.yieldResult),E.reply(x2A);case 22:return tC.yield(m6(k,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return tC.return();case 5:_.F5(tC,26);k.callbacks.onSendHighScore(Z7(_.BS(E.data,
yzY,3,i3).getValue()));E.reply(VK(RJ(1),E6(1)));_.Sv(tC,27);break;case 26:return IC=_.UY(tC),md=WZ,Kj=IC,Lj=k.callbacks,H0="MINI_APP_SDK_API_SEND_SCORE",tC.yield(k.sdkVersion.promise,28);case 28:md(Kj,Lj,H0,tC.yieldResult),E.reply(x2A);case 27:return tC.yield(m6(k,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return tC.return();case 6:if(!_.Nx(E.data,oHz,8,i3)){tC.jumpTo(30);break}aC=tC.yield;Rt=_.BS(E.data,oHz,8,i3);Rt=_.Tn(Rt,1);return aC.call(tC,m6(k,znl(Rt)),30);case 30:return tC.return();case 7:return aC=
E.reply,Rt=RJ(1),zI=E6(1),Bz=k.callbacks.getLanguage(),zI=oW(zI,4,S_,YW(Bz)),aC.call(E,VK(Rt,zI)),tC.yield(m6(k,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return tC.return();case 8:if(!_.Nx(E.data,F0A,10,i3))return tC.return();TG=_.BS(E.data,F0A,10,i3);iC=k.callbacks;hC=iC.onSdkPerformanceUpdate;return tC.yield(k.sdkVersion.promise,33);case 33:return hC.call(iC,TG,tC.yieldResult),tC.return();case 9:aC=E.data;Rt=K2(aC,i3,11);if(_.F3(_.R4(aC,Rt))==null)return E.reply(VK(RJ(1),E6(2))),tC.return();
Y2=PS(E.data,11,i3);k.callbacks.onShareInviteCode(Y2);E.reply(u3a);return tC.yield(m6(k,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return tC.return();case 10:if(_.Nx(E.data,N$5,13,i3)){tC.jumpTo(35);break}return tC.yield(k.callbacks.onShowMiniAppAd(2),36);case 36:return It=tC.yieldResult,E.reply(VK(RJ(1),amY(It))),tC.yield(m6(k,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return tC.return();case 35:aC=_.BS(E.data,N$5,13,i3);a:switch(_.Tn(aC,1)){case 1:aC={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:aC={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:aC={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Wz=aC;VP=Wz.adType;LR=Wz.sdkApi;aC=tC.yield;Rt=k.callbacks;zI=Rt.onShowMiniAppAd;Bz=_.BS(E.data,N$5,13,i3);Bz=_.t2(Bz,2);return aC.call(tC,zI.call(Rt,VP,Bz||void 0),38);case 38:return Mp=tC.yieldResult,E.reply(VK(RJ(1),amY(Mp))),tC.yield(m6(k,LR),39);case 39:return tC.return()}})})};
var cA=function(k,E){_.c(function(S){k.channel.send(E);_.KR(S)})},Fw=function(k,E,S){this.callbacks=k;
var R=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;k=Cuj(E,(new URL(S.toString())).origin);this.gameSnacks=new igj(k);this.gameSnacks.page.onReady(function(){R.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){R.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var V,N;(N=(V=R.callbacks).onGameReady)==null||N.call(V)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(V,N){try{R.callbacks.onSendHighScore(N)}catch(h){WZ(h,R.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(V,N){var h;return _.c(function(J){if(J.nextAddress==1)return _.F5(J,2),J.yield(R.callbacks.onSave(R.decoder.decode(N)),4);if(J.nextAddress!=2)return _.Sv(J,0);h=_.UY(J);WZ(h,R.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return J.return()})});
this.gameSnacks.storage.onLoad(function(){var V,N;return _.c(function(h){if(h.nextAddress==1)return _.F5(h,2),h.yield(R.callbacks.onLoad(),4);if(h.nextAddress!=2)return V=h.yieldResult,h.return(R.encoder.encode(V));N=_.UY(h);WZ(N,R.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return h.return(R.encoder.encode(""))})});
this.gameSnacks.init()};
_.y(Fw,Jc);Fw.prototype.onAudioToggled=function(k,E){Jc.prototype.onAudioToggled.call(this,k,E===void 0?!0:E);var S;(S=this.gameSnacks)==null||S.audio.update(k)};
Fw.prototype.onPause=function(){Jc.prototype.onPause.call(this);var k;(k=this.gameSnacks)==null||k.game.pause()};
Fw.prototype.onResume=function(){Jc.prototype.onResume.call(this);var k;(k=this.gameSnacks)==null||k.game.resume()};var LTG=QaC,jt2=_.f(function(k){var E=k.data;var S=k.loadingProgress;var R=k.forPaused;k=_.n(_.yg("",void 0,"LYYTdd"));var V=k.next().value,N=k.next().value;k=_.n(_.yg(!1,void 0,"K0waae"));var h=k.next().value,J=k.next().value,m=[],a=function(){return"transform: scaleX("+(_.dt(S)||0)+")"},T=null,w=function(){return E()&&T!==null&&T!==void 0?T:T=E().showAnniversaryAnimation?6:LTG()};
_.vX(function(){var K;if(E().timeOutMessages&&((K=E().timeOutMessages)==null?0:K.length)){T=null;K=_.n(m);for(var r=K.next();!r.done;r=K.next())clearTimeout(r.value);m.length=0;Oal(E().timeOutMessages,m,N,J)}},"BNu9j");
var P=function(){return!!E().persistentErrorMessageTitle},B=function(){return S!==void 0},F=function(){return E().title};
return _.e("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.e("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.e("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.e("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var K,r=(K=E().backgroundImage)==null?void 0:K.sources,x;return(r==null?0:r.length)?"background-image: url("+((x=r[0])==null?void 0:x.url)+")":""}}),_.e("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.e(_.t,{cond:function(){return!P()&&!(R==null?0:R())},
then:function(){var K={};return _.e("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.e("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.e(_.KG,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+w()},
data:function(){var r="loading_animation_"+w();return{animationConfig:{name:r,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+r+".json",loop:!0,autoplay:!0}}}})),_.e("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.e(_.t,{cond:F,
then:function(){return _.e("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},F)}}),_.e("p",{class:_.SQ("miniAppSplashScreenViewModelTimeoutMessage",(K.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return h()},K)),
"aria-live":"polite"},V),_.e(_.t,{cond:B,then:function(){return _.e("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.e("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:a}))}})))}}),_.e(_.t,{cond:P,
then:function(){return _.e("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.e("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return E().persistentErrorMessageTitle}),_.e(_.t,{cond:function(){return!!E().persistentErrorMessageDescription},
then:function(){return _.e("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return E().persistentErrorMessageDescription})}}))}}),_.e(_.t,{cond:R,
then:function(){return _.e("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.e("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.e("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},F))}})))},"Hf");var D20=new _.QE("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var $2R=hj;hj=function(k){function E(S){if(S){var R,V;(R=S.__spec)==null||(V=R.didUnmount)==null||V.call(R);for(R=0;R<S.childNodes.length;R++)E(S.childNodes[R])}}
$2R==null||$2R(k);YX(function(){for(var S=0;S<k.length;S++)E(k[S])})};var fx3=_.f(function(k){var E=k.data;var S=k.score;var R=k.formattedScore;var V=k.onScoreChanged;var N=k.isEmbeddedInWebview;var h=_.Nm("yt-mini-app-score-button-view-model"),J=function(){var B;return _.W(E==null?void 0:(B=E())==null?void 0:B.buttonViewModel,_.qz)},m=function(){var B;
return(S==null?void 0:S())||Number(E==null?void 0:(B=E())==null?void 0:B.lastScore)||0},a=function(){var B;
return(R==null?void 0:R())||((B=J())==null?void 0:B.title)||""},T,w=1;
if(k=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))k=Number(k),w=isNaN(k)?1:k/100;_.vX(function(){V==null||V(m());var B;var F=_.Uk((B=J())==null?void 0:B.onTap);if(F){B=_.W(F,Z6d);var K,r,x;B=_.W(B==null?void 0:(K=B.panelLoadingStrategy)==null?void 0:(r=K.inlineContent)==null?void 0:(x=r.dialogViewModel)==null?void 0:x.customContent,V_2)}else B=void 0;if(K=B)K.score=a()},"Aekez");
k=_.RZ(function(){var B,F,K=E==null?void 0:(B=E())==null?void 0:(F=B.loggingDirectives)==null?void 0:F.trackingParams;K&&_.FE(_.en().resolve(_.fG),K);return!1});
_.b$(function(){if(h.value){var B=h.value.querySelector("button"),F=J();B&&F&&G8m(B,F);_.cn("yt-share-playable-with-high-score",function(){var K=m().toString(),r=E==null?void 0:E().onShareHighScoreCommand,x=E==null?void 0:E().highScoreShareClientParamIdentifier,L=N==null?void 0:N();r&&(L?(x=new Kw5,K=_.uh(x,2,K),Yz(r,K.JSC$12523_serializeBinary())):x&&(_.en().resolve(D20).clientParams.set(x,{miniAppClientParams:{highScore:K}}),uV1(r,!1)))})}});
var P=function(){var B=J();B&&(S==null?0:S())&&B.accessibilityText&&(B.accessibilityText=B.accessibilityText.replace(T,a()));T=a();return{numberValue:m(),numberText:a(),heightPx:36,fontSizeMultiplier:w,shouldAnimate:!(S==null||!S())&&!0}};
return _.e("yt-mini-app-score-button-view-model",{class:function(){var B={};return _.wd("miniAppScoreButtonViewModelHost",(B.miniAppScoreButtonViewModelIsVisible=m()!==0,B))},
el:h,"on:click":k},TvC(!1,function(){return _.e("span",{style:"display:none;"},m)}),_.e(_.cp,{data:function(){var B;
return E==null?void 0:(B=E())==null?void 0:B.buttonViewModel}},{buttonViewModel:function(B){return _.e(_.yB,{data:B.data,
animatedTextProps:P})}}))},"Jf");var sta=_.f(function(k){var E,S=(E=_.Yl("yt-mini-app-is-theater-mode-enabled"))!=null?E:!1,R=_.Y("enable_playable_container_save_button"),V=_.Y("enable_play_next_destination_page_in_toolbar");E={};return _.e("ytm-mini-app-top-bar-view-model",null,_.e("div",{class:_.SQ("yt-mini-app-top-bar-view-model",(E["yt-mini-app-top-bar-view-model--mobile"]=!1,E["yt-mini-app-top-bar-view-model--desktop"]=!0,E))},_.e("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.e(_.t,{cond:function(){var N;return!!k.data().backButtonEdu&&
!((N=k.isExitMiniAppSeen)==null?0:N.call(k))},
then:function(){return _.e(_.cp,{data:function(){return k.data().backButtonEdu}},{buttonViewModel:_.yB})},
else:function(){return _.e(_.cp,{data:function(){return k.data().backButton}},{buttonViewModel:_.yB})}}),_.e(_.t,{cond:function(){return k.data().viewAllButton&&!0},
then:function(){return _.e(_.cp,{data:function(){return k.data().viewAllButton}},{buttonViewModel:_.yB})}}),_.e(_.t,{cond:function(){return k.data().title&&!0},
then:function(){return _.e("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return k.data().title})}})),_.e("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.e(_.t,{cond:function(){var N;
return(N=k.isDesktopPlayPage)==null?void 0:N.call(k)},
then:function(){return _.e(_.tj,null,_.e(vWx,{highScoreButton:function(){return k.data().highScoreButton},
score:k.score,formattedScore:k.formattedScore,onScoreChanged:k.onScoreChanged,isEmbeddedInWebview:k.isEmbeddedInWebview}),_.e(bPT,{enableSaveButton:function(){return _.dt(R)},
saveButton:function(){return k.data().saveButton},
isSaved:k.isSaved,onSaveToggled:function(){return k.onSaveToggled}}),_.e(ZPP,{menuButton:function(){return k.data().menuButton}}))},
else:function(){return _.e(_.t,{cond:function(){return!1},
then:function(){return _.e(_.cp,{data:function(){return k.data().playPageButton}},{buttonViewModel:function(N){return _.e(_.yB,{data:N.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.e(vWx,{highScoreButton:function(){return k.data().highScoreButton},
score:k.score,formattedScore:k.formattedScore,onScoreChanged:k.onScoreChanged,isEmbeddedInWebview:k.isEmbeddedInWebview})}})}})),_.e("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.e(_.cp,{data:function(){return k.data().muteButton}},{toggleButtonViewModel:function(N){var h=N.data;
return _.e(_.bL,{data:function(){var J,m;return Object.assign({},h(),{isToggled:(m=(J=k.isAudioEnabled)==null?void 0:J.call(k))!=null?m:!0})},
onToggle:k.onAudioToggled,useOutlinedIcon:!0})}}),_.e(_.cp,{data:function(){return k.data().theatreModeButton}},{toggleButtonViewModel:function(N){var h=N.data;
return _.e("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.e(_.bL,{data:function(){return Object.assign({},h(),{isToggled:S})},
useOutlinedIcon:!0}))}}),_.e(d23,{fullscreenButton:function(){return k.data().fullscreenButton}}),_.e(_.t,{cond:function(){return _.dt(V)&&k.data().viewAllButton&&!1},
then:function(){return _.e(_.cp,{data:function(){return k.data().viewAllButton}},{buttonViewModel:_.yB})}}),_.e(_.t,{cond:function(){var N;
return!((N=k.isDesktopPlayPage)==null?0:N.call(k))},
then:function(){return _.e(_.tj,null,_.e(bPT,{enableSaveButton:function(){return _.dt(R)},
saveButton:function(){return k.data().saveButton},
isSaved:k.isSaved,onSaveToggled:function(){return k.onSaveToggled}}),_.e(ZPP,{menuButton:function(){return k.data().menuButton}}))}}))))},"Kf");
sta.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var ZPP=_.f(function(k){return _.e(_.cp,{data:k.menuButton},{buttonViewModel:_.yB})},"Lf"),bPT=_.f(function(k){var E=k.enableSaveButton;
var S=k.saveButton;var R=k.isSaved;var V=k.onSaveToggled;return _.e(_.t,{cond:function(){return E()&&!(S==null||!S())},
then:function(){return _.e(_.cp,{data:function(){var N=_.W(S==null?void 0:S(),_.QK),h;return{toggleButtonViewModel:Object.assign({},N,{isToggled:(h=R==null?void 0:R())!=null?h:!(N==null||!N.isToggled)})}}},{toggleButtonViewModel:function(N){return _.e(_.bL,{data:N.data,
onToggle:V})}})}})},"Mf"),vWx=_.f(function(k){var E=k.highScoreButton;
var S=k.score;var R=k.formattedScore;var V=k.onScoreChanged;var N=k.isEmbeddedInWebview;return _.e(_.cp,{data:E},{miniAppScoreButtonViewModel:function(h){return _.e(fx3,{data:h.data,score:S,formattedScore:R,onScoreChanged:V,isEmbeddedInWebview:N})}})},"Nf"),d23=_.f(function(k){k=k.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.e(_.tj,null):_.e(_.cp,{data:k},{buttonViewModel:_.yB})},"Of");_.lxP=new _.QE("DESKTOP_CURRENT_PAGE");var GGa=_.f(function(k){var E=k.data;var S=_.Y("force_active_time_logging_webview"),R=!1,V=new BUU,N=void 0,h=void 0,J=_.en().resolve(Paa),m=new axP,a=void 0,T=void 0,w=[],P=void 0,B=void 0,F=!1,K=!1,r=!1,x=!1,L=new _.kl,q=_.en().resolve(D20),M=_.en().resolve(_.N9),d=_.en().resolve(_.mz(p6)),z,kb=(z=_.en().resolve(_.mz(_.lxP)))==null?void 0:z.getCurrentPage(),TI=!1,a1=0,Ah=function(Qt){Qt.preventDefault();return Qt.returnValue=""},th;
k=_.n(_.yg(!((th=_.Yl("yt-mini-app-is-audio-enabled"))!=null&&!th),void 0,"WhYQTd"));var He=k.next().value,ve=k.next().value,Xm;th=_.n(_.yg(!((Xm=_.Yl("exit-mini-app-seen-state"))==null||!Xm),void 0,"jxhCJb"));var U5=th.next().value,l4=th.next().value;Xm=_.n(_.yg(!1,void 0,"MuvDfe"));var gY=Xm.next().value,IC=Xm.next().value;Xm=_.n(_.yg(void 0,void 0,"u9DLoc"));var md=Xm.next().value,Kj=Xm.next().value;Xm=_.n(_.yg(void 0,void 0,"rykyJb"));var Lj=Xm.next().value,H0=Xm.next().value;Xm=_.n(_.yg(!0,void 0,
"d8FUvf"));var TG=Xm.next().value,iC=Xm.next().value;Xm=_.n(_.yg(!1,void 0,"x9XwUb"));var hC=Xm.next().value,Y2=Xm.next().value;Xm=_.n(_.yg(!1,void 0,"bcquyc"));var It=Xm.next().value,Wz=Xm.next().value;Xm=_.n(_.yg(void 0,void 0,"FMAC5b"));var VP=Xm.next().value,LR=Xm.next().value;Xm=_.n(_.yg(0,void 0,"HUGJEb"));var Mp=Xm.next().value,tC=Xm.next().value,aC=_.VH("mini-app-container-view-model"),Rt=function(){return E().isEmbeddedInWebview},zI=function(){return E().hasPlayNextShelf};
_.cn("yt-page-type-changed",function(Qt){if(_.Y("enable_is_mini_app_page_active_bugfix"))Qt.detail.newPageSubtype==="mini_app"&&Qt.detail.newPageType==="ytd-browse"||!TG()||EY();else if(Qt=_.WP1()==="mini_app",Qt!==TG())if(iC(Qt),Qt){var X3;Qt=(X3=E().playableId)==null?void 0:X3.toString();Qt!==void 0&&window.location.href.includes(Qt)&&!K&&(x=!0,Bz(),YJ.value&&HH(YJ.value))}else Qt||EY()});
_.cn("yt-action",function(Qt){Qt.detail.actionName==="yt-engagement-panel-visible-changed"&&Qt.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Qt.detail.args[2]==="PAmini_app_panel"&&EY();_.Y("enable_is_mini_app_page_active_bugfix")?Qt.detail.actionName==="yt-history-load"&&!TG()&&(kb==null?0:kb.active)?(iC(!0),Bz(),YJ.value&&HH(YJ.value)):Qt.detail.actionName==="yt-history-load"&&TG()&&!E().isEmbeddedInWebview&&Jx():TG()&&Qt.detail.actionName==="yt-history-load"&&(x?x=!1:E().isEmbeddedInWebview||
Jx())});
_.bI(function(){W0()});
_.vX(function(){Bz()},"bLMzme");
var Bz=function(){var Qt=E().playableId,X3=E().localReleaseId,dU=E().derivedDeviceInterface;if(K)_.dg(new _.LC("[MiniAppContainerViewModel] onEnter was called more than once"));else{K=!0;N=new SAx(Qt,X3,dU,document.visibilityState==="visible");IxW(N);h=new X0P(Qt);MIa(J,Qt);tIP(m,{showMiniAppAdCommand:E().showMiniAppAdCommand,isEmbeddedInWebview:E().isEmbeddedInWebview,playLogger:N});Ozh()&&(B=document.body.style.backgroundColor,_.pT(document.body,"background-color","black"));k6();Dx();L=new _.kl;
if(E().isEmbeddedInWebview){if(Qt=(new URLSearchParams(window.location.search)).get("postPlayNonce"))VIP(N,Qt),TI=!0;V.initialize({onAudioStateLoaded:function(c0){C2(c0)},
onMuteMiniApp:function(){C2(!1)},
onUnmuteMiniApp:function(){C2(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(c0){TI||(VIP(N,c0),TI=!0)},
confirmExitMiniApp:function(){var c0,tx,zo;return _.c(function(lk){if(lk.nextAddress==1)return E().confirmExitMiniAppCommand?lk.yield(Promise.race([L.promise,Promise.resolve(!1)]),2):lk.return();(c0=lk.yieldResult)?!E().confirmExitMiniAppCommandEdu||(zo=(tx=U5)==null?void 0:tx())!=null&&zo?Eo(E().confirmExitMiniAppCommand):(Eo(E().confirmExitMiniAppCommandEdu),_.BT("exit-mini-app-seen-state","true",2592E6)):Eo(E().closeMiniAppCommand);_.KR(lk)})},
onNativeBenchmarkingMessageReceived:function(c0){c0=RpT(_.rkt(c0));if(_.Nx(c0,_.PZ,3,k_C)){var tx=_.BS(c0,_.PZ,3,k_C),zo=x01();var lk=Z7(zo.getSeconds())-Z7(tx.getSeconds());tx=_.eo(zo,2)-_.eo(tx,2);lk<0&&tx>0?(lk+=1,tx-=1E9):lk>0&&tx<0&&(--lk,tx+=1E9);lk=(new vN).setSeconds(lk);lk=_.EX(lk,2,_.nP(tx),0);_.Xo(c0,1,lk)}var Iv;(Iv=T)==null||Iv.returnNativeBenchmarkingMessage(c0)},
multiplayer3pAckStateLoaded:function(c0){Jx(c0)},
exitMiniAppSeenStateLoaded:function(c0){E().confirmExitMiniAppCommandEdu&&l4(c0)},
onNavigateToNewMiniApp:function(){Eo(E().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(c0){c0=new URLSearchParams(c0);var tx=void 0;c0.has("invite_code")&&(tx=new JzC,c0=c0.get("invite_code"),tx=_.uh(tx,1,c0));if(c0=tx){var zo;(zo=T)==null||zo.sendGameData(c0)}},
onPauseMiniApp:function(){R=!0;pP()},
onResumeMiniApp:function(){R=!0;dP()},
onAdFinished:function(c0){m.onAdFinished(c0)}});
E().showMultiplayer3pConsentDialogCommand||L.resolve(!0);Eo(E().onContainerReadyCommand)}else VIP(N),L.resolve(!0);gWP(h,RYA(N));RYA(N).then(function(c0){c0={miniAppPlayData:{postPlayNonce:c0}};var tx,zo=(tx=E().loggingDirectives)==null?void 0:tx.trackingParams;zo&&_.JV().stateChanged(zo,c0)});
Qt=E().showSignInDialogCommand;!$0I()&&Qt&&(_.BT("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Eo(Qt));E().confirmExitMiniAppCommand&&d&&(Qt=A5C(E().confirmExitMiniAppCommand))&&(d.customConfirmationCommand=Qt)}},W0=function(){B&&_.pT(document.body,"background-color",B);
F=!1;P&&P.release();h.flush().catch(function(Qt){_.dg(Qt)});
J.flush().catch(function(Qt){_.dg(Qt)});
iPT(N);fZ();T=void 0;qAP(q)},EY=function(){iC(!1);
W0();IC(!1);LR(void 0);Kj(void 0);H0(void 0);a1=0;tC(0);K=!1},pP=function(){var Qt;
(Qt=T)==null||Qt.onPause();P&&P.release();h.flush().catch(function(X3){_.dg(X3)});
J.flush().catch(function(X3){_.dg(X3)});
nWW(N);Y2(!0)},dP=function(){var Qt;
(Qt=T)==null||Qt.onResume();Dx();Qt=N;Qt.isForeground=!0;n$(Qt,"PLAY_EVENT_TYPE_PLAY_RESUME");Y2(!1)},C2=function(Qt){var X3;
(X3=T)==null||X3.onAudioToggled(Qt);ve(Qt)},Jx=function(Qt){E().showMultiplayer3pConsentDialogCommand&&(E().isEmbeddedInWebview&&Qt!==void 0&&L.resolve(Qt),!Qt&&_.WP1()==="mini_app"&&Eo(E().showMultiplayer3pConsentDialogCommand))},Qd=function(){var Qt,X3,dU,c0;
return _.c(function(tx){if(tx.nextAddress==1){!E().isLivestream||E().disableVideoCapture||(Qt=T)!=null&&Qt.sendStartGameFrameCapture();X3=(new URL(window.location.href)).searchParams;if(X3.has("invite_code")){var zo=new JzC,lk=X3.get("invite_code");dU=_.uh(zo,1,lk);(c0=T)==null||c0.sendGameData(dU)}gY()||(IC(!0),zo=N,zo.state!==1?_.dg(new _.LC("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+kG3[zo.state])):(_.B_("mini_app_ids_without_game_ready").includes(zo.JSC$17083_miniAppId)&&(zo.gameReady=
!0),zo.state=2,zo.beforeReady=!1,Ii(zo,"ma_ffr"),n$(zo,"PLAY_EVENT_TYPE_PLAY_READY")));return tx.yield(L.promise,2)}Eo(E().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();E().isEmbeddedInWebview||Jx();_.KR(tx)})},ot=function(){var Qt=N;
Qt.gameReady=!0;Ii(Qt,"ma_gr")},N2=function(Qt){var X3;
return _.c(function(dU){if(dU.nextAddress==1)return _.F5(dU,2),dU.yield(HPG(h,Qt),4);if(dU.nextAddress!=2)return _.Sv(dU,0);X3=_.UY(dU);Eo(E().showSavingErrorPopupCommand);throw X3;})},BX=function(){var Qt,X3;
return _.c(function(dU){if(dU.nextAddress==1)return _.F5(dU,2),dU.yield(U22(h),4);if(dU.nextAddress!=2)return Qt=dU.yieldResult,dU.return(Qt);X3=_.UY(dU);Eo(E().showLoadingErrorDialogCommand);throw X3;})},ik=function(Qt){N.logError(Qt)},jo=function(Qt,X3,dU){JRx(N,Qt,X3,dU)},YO=function(Qt,X3){m22(N,Qt,X3)},nO=function(){!S&&E().isEmbeddedInWebview||_.cv();
hY0(N,!0);F||(window.addEventListener("beforeunload",Ah,{capture:!0}),F=!0)},mG=function(Qt){var X3,dU,c0,tx,zo,lk,Iv;
return _.c(function(jQ){if(jQ.nextAddress==1)return J&&(!a||a<Qt)&&Qt>0?jQ.yield(zYR(J,Qt),3):jQ.jumpTo(0);X3=jQ.yieldResult;dU=_.n(X3);c0=dU.next().value;tx=dU.next().value;zo=c0;lk=tx;((Iv=zo)==null?0:Iv.displayString)&&lk&&(Kj(lk),H0(zo.displayString));_.KR(jQ)})},pl=function(Qt){var X3=E().onBenchmarkingMessageReceivedCommand;
if(X3){var dU=x01();_.gk(Qt,3,k_C,dU);Yz(X3,VyT(Qt))}},fl=function(Qt){var X3=E().onGameFrameReceivedCommand;
if(X3){var dU=new pK;var c0=new CAY;var tx=ez(Qt,1);c0=_.AD(c0,1,tx);Qt=_.t2(Qt,2);Qt=_.uh(c0,2,Qt);dU=_.Xo(dU,2,Qt);Yz(X3,RK5(dU))}},MA=function(Qt){var X3=E().onGameAudioDataReceivedCommand;
if(X3){var dU=new pK;var c0=new Ejz;Qt=_.t2(Qt,1);c0=_.uh(c0,1,Qt);dU=_.Xo(dU,4,c0);Yz(X3,RK5(dU))}},yd=function(){var Qt=new URLSearchParams(window.location.search);
if(E().isEmbeddedInWebview&&Qt&&Qt.get("override_hl")==="true"&&Qt.get("hl"))return Qt.get("hl");Qt=document.documentElement.lang;return Qt!==""?Qt:Kr},wU=function(Qt){var X3=E().onShareInviteCodeCommand;
if(X3)if(E().isEmbeddedInWebview){var dU=new Kw5;Qt=_.uh(dU,1,Qt);Yz(X3,AU2(Qt))}else dU=E().inviteCodeShareClientParamIdentifier,q.clientParams.set(dU,{miniAppClientParams:{inviteCode:Qt}}),Eo(X3)},rk=function(Qt){var X3,dU,c0;
return _.c(function(tx){if(tx.nextAddress==1)return X3=E().onMiniAppOpenYtContentRequested,J&&_.Y("enable_open_yt_content")&&X3?tx.yield(QtG(J,Qt),3):tx.jumpTo(0);dU=tx.yieldResult;if(dU==="OK")if(E().isEmbeddedInWebview){var zo=new zmY;c0=oW(zo,2,KK,YW(Qt));Yz(X3,G62(c0))}else M.clientData.set("video_id",Qt),Eo(X3);_.KR(tx)})},AR=function(Qt){a1+=_.eo(Qt,3);
Qt=Math.min(Math.log(1+a1/15E6*9)/Math.log(10),.99);tC(Qt);X8(Qt)},X8=_.ta(function(Qt){var X3=E().updateLoadingProgressCommand;
if(X3){var dU=new zmY;Qt=oW(dU,3,KK,_.qp(Qt));Yz(X3,G62(Qt))}},100),oC=function(Qt){return w0G(m,Qt)},Dx=function(){var Qt,X3;
((Qt=_.JMb())==null?void 0:(X3=Qt.wakeLock)==null?void 0:X3.request)!=null&&_.JMb().wakeLock.request("screen").then(function(dU){P=dU}).catch(function(){})},YJ=_.Nm("iframe");
_.vX(function(){E().isSupportedCountry&&($0I()||_.Y("enable_sign_in_promo")||!E().showSignInDialogCommand?YJ.value&&HH(YJ.value):Eo(E().onMiniAppReadyCommand))},"ASuFde");
var Pz=function(){return _.e("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return gY()?0:-1},
el:YJ})},HH=function(Qt,X3){X3=X3===void 0?!1:X3;
var dU=$O();dU&&(X3||dU.toString()!==Qt.getAttribute("src"))&&(T=lU1(E().source,{isAudioEnabled:He,onFirstFrameReady:Qd,onGameReady:ot,onSave:N2,onLoad:BX,onError:ik,onSdkCalled:jo,onSdkPerformanceUpdate:YO,onClick:nO,onSendHighScore:mG,onBenchmarkingMessageReceived:pl,getLanguage:yd,onShareInviteCode:wU,onResourceLoaded:AR,onOpenYTContent:rk,onShowMiniAppAd:oC,onGameFrameReceived:fl,onGameAudioReceived:MA},Qt,dU),eF(Qt,"load",function(){Ii(N,"ma_il");eF(Qt,"load",function(){HH(Qt,!0)})}),_.GB(Qt,
dU))},$O=function(){var Qt=E().url;
if(Qt&&(Qt=_.dv(Qt),Qt!==null)){if(E().source&&E().source==="MINI_APP_SOURCE_GAMESNACKS")Qt=_.Yy(Qt,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.Y("enable_origin_query_parameter_bugfix")){var X3=_.mJ(_.t0I(Qt.toString()));X3=new URLSearchParams(X3||"");X3.set("origin",window.location.origin);X3=X3.toString();Qt=_.AJ(Qt).toString();Qt=_.pg(DVp.exec(Qt)[0]+(X3.trim()?"#"+X3:""))}return Qt}},vU=function(){var Qt={};
Qt=_.SQ("yt-mini-app-container-view-model__loading-screen",(Qt["yt-mini-app-container-view-model__loading-screen--fade-out"]=gY,Qt));var X3=function(){return gY()?1:Mp()};
return _.e("div",{class:Qt},_.e(_.cp,{data:function(){return E().splashScreen}},{miniAppSplashScreenViewModel:function(dU){return _.e(jt2,{data:dU.data,
loadingProgress:X3})}}))},Om=function(){var Qt={};
return _.e("div",{class:_.SQ("yt-mini-app-container-view-model__pause-interstitial",(Qt["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!hC()},Qt["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=hC,Qt))},_.e(_.cp,{data:function(){return E().splashScreen}},{miniAppSplashScreenViewModel:function(X3){return _.e(jt2,{data:X3.data,
forPaused:!0})}}))},k6=function(){w=[];
w.push(_.wX(window,"visibilitychange",function(){r||R&&Rt()||(document.visibilityState==="visible"?dP():pP())}));
w.push(_.wX(window,"pagehide",function(){W0()}));
w.push(_.wX(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&aC.value.dispatchEvent(new Event("tap"))},0)}));
w.push(_.wX(aC.value,"pointerdown",function(){hY0(N,!1)},!0));
w.push(_.wX(aC.value,"pause",function(){r=!0;pP()}));
w.push(_.wX(aC.value,"play",function(){r=!1;dP()}));
w.push(_.wX(aC.value,"exit",function(){W0()}));
var Qt=navigator.keyboard,X3=Qt&&Qt.lock;w.push(_.wX(window,OhY,function(){Wz(CYC());CYC()?(E().hasPlayNextShelf&&EM("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Lc("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),X3&&Qt.lock(["Escape"])):(E().hasPlayNextShelf&&Lc("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),EM("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),X3&&Qt.unlock())}));
E().showMultiplayer3pConsentDialogCommand&&w.push(_.wX(window,"yt-playables-ack-3p-data-usage",function(){OPW(J)}));
E().confirmExitMiniAppCommandEdu&&w.push(_.wX(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.BT("exit-mini-app-seen-state","true",2592E6)}));
E().onGameAudioDataReceivedCommand&&w.push(_.wX(window,"message",function(dU){dU=dU.event_;var c0,tx=(c0=YJ.value)==null?void 0:c0.src;if(tx&&dU.origin===(new URL(tx)).origin&&dU.data&&dU.data.type==="GAME_AUDIO"&&dU.data.audio&&dU.data.audio.length>0)if(_.Y("enable_sending_unwrapped_game_audio_as_serialized_metadata"))jaR(E().onGameAudioDataReceivedCommand,dU.data.audio);else{var zo=new FileReader;zo.onload=function(){var lk=new pK;var Iv=new Ejz;Iv=_.uh(Iv,1,zo.result);lk=_.Xo(lk,4,Iv);Yz(E().onGameAudioDataReceivedCommand,
RK5(lk))};
zo.readAsDataURL(new Blob([dU.data.audio]))}}))},fZ=function(){w.forEach(function(Qt){av(Qt)});
window.removeEventListener("beforeunload",Ah,{capture:!0})},Eo=function(Qt){Qt&&uV1(Qt,E().isEmbeddedInWebview||!1)},Lc=function(Qt,X3){Qt=_.n(aC.value.getElementsByClassName(Qt));
for(var dU=Qt.next();!dU.done;dU=Qt.next())dU.value.classList.add(X3)},EM=function(Qt,X3){Qt=_.n(aC.value.getElementsByClassName(Qt));
for(var dU=Qt.next();!dU.done;dU=Qt.next())dU.value.classList.remove(X3)};
return function(){var Qt={};Qt=_.SQ("yt-mini-app-container-view-model",(Qt["yt-mini-app-container-view-model--desktop"]=!0,Qt["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return E().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Qt["yt-mini-app-container-view-model--ios-web-view"]=Ozh(),Qt["yt-mini-app-container-view-model--no-top-bar"]=function(){return!E().topBar},Qt["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return E().hasPlayNextShelf},Qt["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return E().hasPlayNextShelf},Qt["yt-mini-app-container-view-model--show-peek-below"]=function(){return!It()&&E().hasPlayNextShelf},Qt));
var X3={};X3=_.SQ("yt-mini-app-container-view-model__content",(X3["yt-mini-app-container-view-model__content--desktop-content"]=!0,X3["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return E().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},X3["yt-mini-app-container-view-model--desktop-play-page"]=function(){return E().hasPlayNextShelf},X3));
return _.e("mini-app-container-view-model",{el:aC},_.e("div",{class:Qt},_.e(_.t,{cond:function(){return E().topBar&&!It()},
then:function(){return _.e(_.cp,{data:function(){return E().topBar}},{miniAppTopBarViewModel:function(dU){return _.e(sta,{data:dU.data,
isAudioEnabled:He,onAudioToggled:function(c0){C2(c0)},
score:md,formattedScore:Lj,onScoreChanged:function(c0){a=c0},
isEmbeddedInWebview:Rt,isSaved:VP,onSaveToggled:function(c0){LR(c0)},
isExitMiniAppSeen:U5,isDesktopPlayPage:zI})}})}}),_.e("div",{class:X3},_.e(_.t,{cond:TG,
then:function(){return Pz()}}),_.e(_.t,{cond:function(){return E().isLivestream},
then:function(){return Om()}}),_.e(_.t,{cond:function(){return!E().isEmbeddedInWebview},
then:function(){return vU()}}))))}()},"Rf");
GGa.idomCompat=!0;_.qi(GGa,"mini-app-container-view-model",{props:{data:_.Nq}});var CaI=_.f(function(k){var E=k.data;return _.e("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.e("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.RZ(function(){var S=E().onTap;S&&_.AV(S)})},_.e(_.t,{cond:function(){return E().icon},
then:function(S){return _.e(_.i_,{icon:function(){return S().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.e("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return E().title})))},"Sf");
CaI.idomCompat=!0;var kB3=_.f(function(k){var E=_.VH("div"),S=_.n(_.yg(void 0,void 0,"dg3xff")),R=S.next().value,V=S.next().value;S=_.n(_.yg(void 0,void 0,"AgHNfc"));var N=S.next().value,h=S.next().value;S=_.n(_.yg(void 0,void 0,"fuTKCc"));var J=S.next().value,m=S.next().value,a=function(){var x=R();return x!==void 0?Math.abs(x):void 0},T=function(){var x=a();
return x===void 0||x<=3},w=function(){var x=a();
var L=N(),q=J();x=x!==void 0&&L!==void 0&&q!==void 0?L-q-x:void 0;return x===void 0||x<=3},P=function(x){E.value&&E.value.scrollBy({top:0,
left:(_.Mg("HTML_DIR")==="rtl"?-1:1)*x*E.value.clientWidth,behavior:"smooth"})},B=function(){var x;
V((x=E.value)==null?void 0:x.scrollLeft);var L;h((L=E.value)==null?void 0:L.scrollWidth);var q;m((q=E.value)==null?void 0:q.clientWidth)},F=function(){P(-.5)},K=function(){P(.5)};
S=_.RZ(function(){B()});
_.vC(function(){B();if(E.value&&window.ResizeObserver){var x=new ResizeObserver(B);x.observe(E.value);_.bI(function(){x.disconnect()})}});
var r={};return _.e("yt-sponsorships-scrollable-shelf",{class:_.SQ("ytdSponsorshipsScrollableShelfHost",k.className)},_.e("div",{class:_.SQ("ytdSponsorshipsScrollableShelfContent",(r.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return k.data().previousButton&&k.data().nextButton&&!T()&&!w()},r.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return k.data().previousButton&&!T()&&w()},r.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return k.data().nextButton&&
T()&&!w()},r)),
el:E,"on:scroll":S},k.children),_.e(_.t,{cond:function(){return!T()},
then:function(){return _.e(_.cp,{data:function(){return k.data().previousButton}},{buttonViewModel:function(x){return _.e(_.yB,{data:x.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:F})}})}}),_.e(_.t,{cond:function(){return!w()},
then:function(){return _.e(_.cp,{data:function(){return k.data().nextButton}},{buttonViewModel:function(x){return _.e(_.yB,{data:x.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:K})}})}}))},"Uf");
kB3.idomCompat=!0;var SXA=_.f(function(k){var E=k.data;k={};return _.e("yt-sponsorships-hub",{class:_.SQ("ytdSponsorshipsHubHost",(k.ytdSponsorshipsHubHostIndented=function(){return E().indented},k))},_.e("div",{class:"ytdSponsorshipsHubHeader"},_.e("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.e("div",{class:"ytdSponsorshipsHubAvatar"},_.e(_.cp,{data:function(){return E().avatar}},{avatarViewModel:_.dw})),_.e(_.t,{cond:function(){return E().badgeImage},
then:function(S){return _.e("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.e("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.e("div",{class:"ytdSponsorshipsHubBadge"},_.e(_.vM,{data:S,targetWidth:24,targetHeight:24,alt:""}))))}})),_.e("div",{class:"ytdSponsorshipsHubDetails"},_.e("div",{class:"ytdSponsorshipsHubTierName"},function(){return E().tierName}),_.e("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return E().membershipType}),_.e("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return E().membershipDurationOrExpiry})),_.e("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.e(_.cp,{data:function(){return E().manageButton}},{buttonViewModel:function(S){return _.e(_.yB,{data:S.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.e(_.cp,{data:function(){return E().actionMenuButton}},{buttonViewModel:function(S){return _.e(_.yB,{data:S.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.e("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return E().perksTitle}),_.e(kB3,{data:function(){return{previousButton:E().previousPerkButton,
nextButton:E().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.e("div",{class:"ytdSponsorshipsHubPerkCards"},_.e(_.cp,{data:function(){return E().perkCards}},{sponsorshipsHubPerkCardViewModel:CaI}),_.e(_.t,{cond:function(){return E().viewAllPerksButton},
then:function(S){return _.e(EJY,{data:S})}}))))},"Vf");
SXA.idomCompat=!0;var EJY=_.f(function(k){var E=k.data;return _.e("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.e(_.cp,{data:function(){return E().button}},{buttonViewModel:_.yB}),_.e("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.e("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return E().title}),_.e("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return E().subtitle})))},"Wf");
EJY.idomCompat=!0;_.qi(SXA,"yt-sponsorships-hub",{props:{data:_.Nq}});_.Rsa=_.f(function(k){var E=k.data;return _.e("yt-dual-avatar-view-model",{class:_.SQ("ytDualAvatarViewModelHost",k.className),style:_.nU({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var S;return((S=E().badgeCutoutRadius)!=null?S:14)+"px"}})},_.e("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.e(_.cp,{data:function(){return E().startAvatar}},{avatarViewModel:_.dw}),_.e(_.cp,{data:function(){return E().endAvatar}},{avatarViewModel:_.dw})),_.e(_.cp,{data:function(){return E().badge}},
{contentPreviewImageViewModel:function(S){return _.e("div",{class:"ytDualAvatarViewModelBadge"},_.e(_.TQ,{data:S.data}))}}))},"Xf");
_.Rsa.idomCompat=!0;var NkT=_.f(function(k){var E=k.data;var S,R=!((S=_.en().resolve(_.mz(_.jF)))==null||!S());k=_.HX(function(){var T,w,P=R?(T=E().header)==null?void 0:T.backgroundColorDarkMode:(w=E().header)==null?void 0:w.backgroundColorLightMode;if(P!==void 0)return _.Kc(P)},void 0,"TDdh7d");
S=_.HX(function(){var T,w;return R?(T=E().header)==null?void 0:T.backgroundImagePart1Dark:(w=E().header)==null?void 0:w.backgroundImagePart1Light},void 0,"X0peMe");
var V=_.HX(function(){var T,w;return R?(T=E().header)==null?void 0:T.backgroundImagePart2Dark:(w=E().header)==null?void 0:w.backgroundImagePart2Light},void 0,"an0Hzd"),N=_.HX(function(){return _.Mg("HTML_DIR")==="rtl"},void 0,"BltEgb"),h=_.VH("yt-sponsorships-perks-list"),J=!1,m=function(){var T=h.value;
if(T&&!J){var w,P=(w=T.parentElement)==null?void 0:w.parentElement;if(P)for(T=T.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),w=0;w<T.length;++w){var B=T[w];if(B instanceof HTMLElement){P.scrollTo({top:B.offsetTop+B.clientHeight/2-P.clientHeight/2,behavior:"smooth"});J=!0;break}}}};
_.b$(function(){var T=h.value;if(T&&window.ResizeObserver){var w=new ResizeObserver(m);w.observe(T);_.bI(function(){w.disconnect()})}});
var a={};return _.e("yt-sponsorships-perks-list",{el:h,class:_.SQ("ytdSponsorshipsPerksListHost",(a.ytdSponsorshipsPerksListHorizontalPadding=function(){return E().horizontalPaddingEnabled},a))},_.e("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.e("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.nU({"background-color":k})},_.e("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.e(_.t,{cond:S,then:function(T){var w={};return _.e("div",{class:_.SQ((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,w.ytdSponsorshipsPerksListFlipped=N,w))},_.e(_.vM,{data:T,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.e("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.e(_.t,{cond:V,
then:function(T){var w={};return _.e("div",{class:_.SQ((w.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=R,w.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!R,w.ytdSponsorshipsPerksListFlipped=N,w))},_.e(_.vM,{data:T,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.e("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.e(_.cp,{data:function(){var T;
return(T=E().header)==null?void 0:T.dualAvatar}},{dualAvatarViewModel:_.Rsa})))),_.e("div",{class:"ytdSponsorshipsPerksListBody"},_.e("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return E().title}),_.e(_.t,{cond:function(){return E().perks},
then:function(T){return _.e(_.jw,{each:T},function(w,P){var B={};return _.e("div",{class:_.SQ("ytdSponsorshipsPerksListPerkContainer",(B.ytdSponsorshipsPerksListSelectedPerk=function(){var F=P(),K=E().selectedPerkIndex;return F===K},B))},_.e(_.t,{cond:function(){return P()>0},
then:function(){return _.e("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.e("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.e(_.t,{cond:function(){return w.icon},
then:function(F){return _.e(_.i_,{icon:function(){return F().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.e("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.e("div",{class:"ytdSponsorshipsPerksListPerkTitle"},w.title),_.e("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.e(_.VB,{text:w.description})),_.e(_.t,{cond:function(){return w.instructions},
then:function(){var F,K;return _.e("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.e("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(F=w.instructions)==null?void 0:F.title),_.e("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.e(_.VB,{text:(K=w.instructions)==null?void 0:K.text})))}}))),_.e(_.t,{cond:function(){return w.emoji},
then:function(F){return _.e("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.e(_.jw,{each:function(){return F()}},function(K){return _.e(_.vM,{data:K,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.e(VrT,{data:w}))})}})))},"Yf");
NkT.idomCompat=!0;var VrT=_.f(function(k){var E=k.data;var S=function(h,J){return h===J},R=function(){var h=E();
h=_.W(h==null?void 0:h.badgesShelf,Lwz);return h!==void 0&&h!==null?h:{previousButton:{},nextButton:{}}},V=_.Nm("div"),N=function(){var h=V.value;
if(h){var J=h.parentElement;if(J){h=h.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var m=0;m<h.length;++m){var a=h[m];if(a instanceof HTMLElement){J.scrollTo({left:a.offsetLeft+a.clientWidth/2-J.clientWidth/2,behavior:"instant"});break}}}}};
_.b$(function(){var h=V.value;if(h){var J=new ResizeObserver(N);J.observe(h);_.bI(function(){J.disconnect()})}});
return _.e("div",null,_.e(_.t,{cond:function(){return E().badges},
then:function(h){return _.e(kB3,{data:R},_.e("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:V},_.e(_.jw,{each:function(){return h()}},function(J,m){var a={},T={},w={};
return _.e("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.e(_.t,{cond:function(){return m()>0},
then:function(){return _.e("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.e("div",{class:_.SQ("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(a.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return S(m(),E().currentBadgeIndex)},a.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!S(m(),E().currentBadgeIndex)},a))},_.e("div",{class:_.SQ("ytdSponsorshipsPerksListLoyaltyBadge",(T.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return S(m(),
E().currentBadgeIndex)},T.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!S(m(),E().currentBadgeIndex)},T))},_.e(_.t,{cond:function(){return J.image},
then:function(P){var B={};return _.e("div",{class:_.SQ((B.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return S(m(),E().currentBadgeIndex)},B.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!S(m(),E().currentBadgeIndex)},B))},_.e(_.vM,{data:P,
alt:""}))}})),_.e("div",{class:_.SQ("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(w.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return S(m(),E().currentBadgeIndex)},w))},J.title)))})))}}))},"Zf");
VrT.idomCompat=!0;_.qi(NkT,"yt-sponsorships-perks-list",{props:{data:_.Nq}});_.qi(_.f(function(k){return _.e("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.e(_.t,{cond:function(){return k.data().image},
then:function(E){return _.e(_.vM,{className:"ytwFantasyEmptyStateViewModelImage",data:E,ariaHidden:!0,alt:""})}}),_.e(_.VB,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return k.data().title}}),_.e(_.VB,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return k.data().subtitle}}),_.e(_.cp,{data:function(){return k.data().primaryButton}},{buttonViewModel:function(E){return _.e(_.yB,{data:E.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"$f"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Nq}});var IFA;var nJR=_.f(function(k){var E=k.data;var S=k.uniqueId;var R=k.overrides;k=_.HX(function(){var V,N=((V=E().timedAnimationData)==null?void 0:V.animationTiming)||[];return{uniqueId:S(),timings:N,experimentEnabled:N.length>0,enabled:N.length>0}},void 0,"hiuXI");
return _.e("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.e(MZC,{settings:k},_.e(_.cp,{data:function(){return E().buttonRenderer}},{buttonRenderer:function(V){return _.e(_.IT,{data:V.data,
buttonOverrides:R})}})))},"ag");
nJR.idomCompat=!0;_.qi(nJR,"timed-animation-button-renderer",{props:{data:_.Nq,uniqueId:_.Nq,overrides:_.Nq}});var eg=function(){var k=_.p.apply(this,arguments)||this;k.hideJoinButtonBeforeSubscribed=_.Y("hide_join_button_before_subscribed");k.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return k};
_.y(eg,_.p);_.I=eg.prototype;_.I.hasShowDialogCommand=function(k){return!!_.W(k,Z6d)};
_.I.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"}}}};
_.I.updateJoinButtonOverrides=function(){var k,E;(k=_.Cc(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(E=k.polymerController)==null||E.set("overrides",this.joinButtonOverrides);if(k=_.Cc(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))k.overrides=this.joinButtonOverrides};
_.I.handleButtonRefreshAction=function(k){if(k=_.W(k,mNY))this.set("data.membershipButton",k.membershipButton),this.notifyPath("data.membershipButton")};
_.I.onYtServiceRequestError=function(k){_.A0(this.hostElement,k.detail.error.message)};
_.I.onKeydown=function(k){if(k.key==="Enter"){var E;(E=this.data)!=null&&E.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.I.handleUnsubscribeAction=function(){var k,E,S;((k=this.data)==null?void 0:(E=k.membershipButton)==null?void 0:(S=E.buttonRenderer)==null?void 0:S.style)==="STYLE_PRIMARY"&&_.Cc(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.mt.Object.defineProperties(eg.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.subscriptionStateEntity)==null||!k.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var k,E=(k=this.data)==null?void 0:k.membershipButton,S;k=(E==null?void 0:E.buttonRenderer)||_.W(E==null?void 0:(S=E.timedAnimationButtonRenderer)==null?void 0:S.buttonRenderer,_.dZ);return(k==null?void 0:k.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(k==null?void 0:k.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(k==null?void 0:k.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var k;if(this.hasShowDialogCommand((k=this.data)==null?void 0:k.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var k;if(this.hasShowDialogCommand((k=this.data)==null?void 0:k.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.attributedTitle)}}});
eg.prototype.onYtServiceRequestError=eg.prototype.onYtServiceRequestError;eg.prototype.updateJoinButtonOverrides=eg.prototype.updateJoinButtonOverrides;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],eg.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],eg.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],eg.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],eg.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],eg.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.A$),_.l("design:type",Object)],eg.prototype,"ironButtonState",void 0);_.Z([_.H(),_.l("design:type",Object)],eg.prototype,"data",void 0);_.Z([_.U("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.l("design:type",Object),_.l("design:paramtypes",[])],eg.prototype,"hideJoin",null);
_.Z([_.H(),_.l("design:type",String)],eg.prototype,"subscribeKey",void 0);_.Z([_.H({selectorArgs:["subscribeKey"],selector:kre}),_.l("design:type",Object)],eg.prototype,"subscriptionStateEntity",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],eg.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.Z([_.U("subscriptionStateEntity"),_.H({reflectToAttribute:!0}),_.l("design:type",Object),_.l("design:paramtypes",[])],eg.prototype,"subscribed",null);
_.Z([_.U("subscribed","data.membershipButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],eg.prototype,"joinButtonOverrides",null);_.Z([_.U("data.navigationEndpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],eg.prototype,"channelNameTabIndex",null);_.Z([_.U("data.navigationEndpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],eg.prototype,"channelNameRole",null);
_.Z([_.U("data.attributedTitle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eg.prototype,"hasAttributedTitle",null);_.Z([_.il("joinButtonOverrides"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eg.prototype,"updateJoinButtonOverrides",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],eg.prototype,"onYtServiceRequestError",null);
_.Z([_.D({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],eg);
var igP=_.O_()(eg,"ytd-video-owner-renderer",function(){if(IFA===void 0){var k=document.createElement("template");_.X(k,'\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]]" ellipsis-truncate="true" hidden$="[[!hasAttributedTitle]]" no-pre-wrap="true" no-wrap="true" 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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);IFA=k}k=IFA;return k},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.qi(_.f(function(k){var E=k.data;var S;k=_.n(_.yg(!((S=_.Yl("yt-mini-app-is-theater-mode-enabled"))==null||!S),void 0,"i2pjVd"));var R=k.next().value,V=k.next().value;S=_.n(_.yg(!1,void 0,"ga7V5c"));var N=S.next().value,h=S.next().value;_.b$(function(){var a=_.wX(window,OhY,function(){h(CYC())});
_.bI(function(){av(a)})});
var J;S=(J=_.en().resolve(_.mz(AhP)))!=null?J:function(){return _.e("div",null)};
_.Rs("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){V(!0);_.BT("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.Rs("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){V(!1);_.BT("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
J={};k={};var m={};return _.e("mini-app-play-page-renderer",{class:_.SQ("miniAppPlayPageRendererHost",(J.miniAppPlayPageRendererHostDetailsView=function(){return!R()},J))},_.e("div",{class:_.SQ("miniAppPlayPageRendererGameContainer",(k.miniAppPlayPageRendererGameContainerDetailsView=function(){return!R()},k))},_.e(_.cp,{data:function(){return E().containerViewModel}},{miniAppContainerViewModel:GGa}),_.e(_.t,{cond:function(){return E().channel&&E().subscribeButton},
then:function(){var a={};return _.e("div",{class:_.SQ("miniAppPlayPageRendererChannelContainer",(a.miniAppPlayPageRendererHideVisibility=function(){return N()},a))},_.e(_.cp,{data:function(){return E().channel}},{videoOwnerRenderer:function(T){return _.e(igP,{data:T.data})}}),_.e(_.cp,{data:function(){return E().subscribeButton}},{subscribeButtonViewModel:function(T){return _.e(_.dR,{data:T.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.e(_.t,{cond:function(){return!R()&&E().description},
then:function(){var a={};return _.e("div",{class:_.SQ("miniAppPlayPageRendererMiniAppDescriptionWrapper",(a.miniAppPlayPageRendererHideVisibility=function(){return N()},a))},_.e("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return E().description}))}})),_.e("div",{class:_.SQ("miniAppPlayPageRendererPlayNextContainer",(m.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!R()},m.miniAppPlayPageRendererHideVisibility=function(){return N()},m))},_.e(_.cp,{data:function(){return E().sectionList}},
{sectionListRenderer:S})))},"bg"),"mini-app-play-page-renderer",{props:{data:_.Nq}});var ai=function(){var k=_.p.apply(this,arguments)||this;k.isSearch=!1;k.isConstrainedList=!1;k.hasChipsBar=!1;k.inReplyPanel=!1;k.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"}};k.monitorScroll=!0;k.SCROLL_ANIMATION_DURATION_MS=300;k.nextContinuation={continuationType:"sectionListContinuation"};return k};
_.y(ai,_.p);_.I=ai.prototype;
_.I.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(k){switch(k.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:_.Y("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.Y("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.I.created=function(){var k=this;this.JSC$17222_scrollAnimation=new _.V0(function(E){k.hostElement.scrollTop=E})};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.I.getItemsPath=function(){return"data.contents"};
_.I.replacePrimaryContent=function(k){this.set("data.contents",k)};
_.I.computeHasSortFilter=function(k){return!!k&&!!k.sortFilterSubMenuRenderer};
_.I.computeShouldScrollInPanel=function(k){var E;return!!(k==null?0:(E=k.scrollPaneStyle)==null?0:E.scrollable)};
_.I.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.E_(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.I.scrollToTop=function(){this.hostElement.scrollTop=0};
_.I.scrollToItemSection=function(k){if(k=this.getItemByIdentifier(k))k=this.getScrollPositionForItem(k),this.hostElement.scrollTop!==k&&this.JSC$17222_scrollAnimation.start(this.hostElement.scrollTop,k,this.SCROLL_ANIMATION_DURATION_MS)};
_.I.getItemByIdentifier=function(k){var E=this.contents.querySelectorAll("ytd-item-section-renderer");if(E&&E.length!==0){var S=Array.from(E).findIndex(function(R){return R.sectionIdentifier===k});
return E[S===-1?0:S]}};
_.I.getScrollPositionForItem=function(k){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===k)return 0;k=_.so(k).y+this.hostElement.scrollTop-_.so(this.hostElement).y;return Math.min(k,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.mt.Object.defineProperties(ai.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.targetId)==="browse-feedFEclips"}}});
ai.prototype.onScroll=ai.prototype.onScroll;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.TF.YtLazyListBehavior),_.l("design:type",Object)],ai.prototype,"ytLazyListBehavior",void 0);_.Z([_.g(_.Nk.YtNextContinuationBehavior),_.l("design:type",Object)],ai.prototype,"ytNextContinuationBehavior",void 0);
_.Z([_.g(_.zAW),_.l("design:type",Object)],ai.prototype,"ytBooleanLogicBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],ai.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ai.prototype,"data",void 0);_.Z([_.H({value:2}),_.l("design:type",Number)],ai.prototype,"initialCount",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],ai.prototype,"autoFill",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.l("design:type",Boolean)],ai.prototype,"hasSortFilter",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.l("design:type",Boolean)],ai.prototype,"hideBottomSeparator",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.l("design:type",Boolean)],ai.prototype,"shouldScrollInPanel",void 0);
_.Z([_.H(),_.l("design:type",Object)],ai.prototype,"isSearch",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ai.prototype,"isConstrainedList",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],ai.prototype,"responsiveSizing",void 0);_.Z([_.H(),_.l("design:type",Object)],ai.prototype,"hasChipsBar",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],ai.prototype,"pageSubtype",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ai.prototype,"engagementPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ai.prototype,"liveChatEngagementPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ai.prototype,"inReplyPanel",void 0);_.Z([_.JO("#action-button"),_.l("design:type",HTMLElement)],ai.prototype,"actionButton",void 0);_.Z([_.H(),_.l("design:type",Object)],ai.prototype,"scrollUpButtonData",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ai.prototype,"engagementPanelDropdown",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ai.prototype,"engagementPanelDialog",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ai.prototype,"isClipList",null);_.Z([_.JO("#contents"),_.l("design:type",HTMLElement)],ai.prototype,"monitorScrollElement",void 0);_.Z([_.JO("#contents"),_.l("design:type",HTMLElement)],ai.prototype,"contents",void 0);
_.Z([_.nv("scroll"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ai.prototype,"onScroll",null);_.Z([_.D({is:"ytd-section-list-renderer",disableElementRegistration:!0})],ai);
var hsA=_.O_()(ai,"ytd-section-list-renderer",function(){if(peI===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);peI=k}k=peI;return k},{mode:1});var JJx;var cJ0;var mUA;var esP;var tc=function(){return _.p.apply(this,arguments)||this};
_.y(tc,_.p);tc.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
tc.prototype.onLikeButtonClick=function(k){k.stopPropagation();k.preventDefault()};
_.mt.Object.defineProperties(tc.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)!=null&&k.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)})}}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],tc.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],tc.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],tc.prototype,"ytRendererStamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tc.prototype,"data",void 0);
_.Z([_.H({selectorArgs:["data.likeStatusEntityKey"],selector:U3}),_.l("design:type",Object)],tc.prototype,"likeStatusEntity",void 0);_.Z([_.U("data","likeStatusEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],tc.prototype,"likeButtonRenderer",null);_.Z([_.D({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],tc);
_.b(tc,"ytd-slim-metadata-toggle-button-renderer",function(){if(esP!==void 0)return esP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return esP=k},{mode:1});var TH=function(){var k=_.p.apply(this,arguments)||this;k.minimizePipBreakages=_.Y("web_pip_minimize_breakages");k.showEqualizer=_.Y("web_enable_playlist_video_lockup_equalizer");k.watchColorUpdate=_.Y("kevlar_watch_color_update");k.actionMap={};return k};
_.y(TH,_.p);_.I=TH.prototype;_.I.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"}}}};
_.I.computeEditableClass=function(k){return k&&k.menu?"editable":""};
_.I.computeSelected=function(k){return!(k==null||!k.selected)};
_.I.computeUseColorPalette=function(k){return!!((k==null?0:k.lightColorPalette)&&(k==null?0:k.darkColorPalette))};
_.I.computeLargerPlaylistThumbs=function(k,E){return _.Y("web_enable_playlist_bigger_thumbnails")&&!E};
_.I.computeShowPlayIcon=function(k){return!!k&&_.Y("web_use_play_icon_for_playlist_panel_video_renderer")};
_.I.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.I.onYtServiceRequestSent=function(k,E){E.endpoint&&this.isHideEnclosingAction(E.endpoint)&&!this.selected&&eOY(_.kN(),this.data.videoId)};
_.I.isHideEnclosingAction=function(k){var E=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",k);k=this.get("likeEndpoint.status",k)==="INDIFFERENT";return E||k};
_.I.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.I.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.mt.Object.defineProperties(TH.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("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 k;return!!(this.withinMiniplayer&&((k=this.data)==null?0:k.actionButtons))}}});
TH.prototype.onYtServiceRequestSent=TH.prototype.onYtServiceRequestSent;TH.prototype.canReorderChanged=TH.prototype.canReorderChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],TH.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.VD),_.l("design:type",Object)],TH.prototype,"ytdLockupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],TH.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],TH.prototype,"withinMiniplayer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],TH.prototype,"minimizePipBreakages",void 0);_.Z([_.H({computed:"computeSelected(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],TH.prototype,"selected",void 0);
_.Z([_.H({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],TH.prototype,"useColorPalette",void 0);_.Z([_.H({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.l("design:type",Boolean)],TH.prototype,"largerPlaylistThumbs",void 0);_.Z([_.H(),_.l("design:type",Object)],TH.prototype,"showEqualizer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],TH.prototype,"canReorder",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],TH.prototype,"touchPersistentDragHandle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],TH.prototype,"handleIsHovered",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],TH.prototype,"watchColorUpdate",void 0);_.Z([_.H(),_.l("design:type",String),_.l("design:paramtypes",[])],TH.prototype,"reorderIcon",null);
_.Z([_.H({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.l("design:type",Boolean)],TH.prototype,"showPlayIcon",void 0);_.Z([_.H(),_.l("design:type",String),_.l("design:paramtypes",[])],TH.prototype,"playIcon",null);_.Z([_.U("largerPlaylistThumbs"),_.l("design:type",Number),_.l("design:paramtypes",[])],TH.prototype,"thumbnailWidth",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],TH.prototype,"showActionButtons",null);
_.Z([_.ac("canReorder"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],TH.prototype,"canReorderChanged",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],TH.prototype,"onYtServiceRequestSent",null);_.Z([_.D({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],TH);
_.b(TH,"ytd-playlist-panel-video-renderer",function(){if(mUA!==void 0)return mUA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return mUA=k},{mode:2});var wi=function(){return _.p.apply(this,arguments)||this};
_.y(wi,_.p);wi.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],wi.prototype,"data",void 0);_.Z([_.D({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],wi);
_.b(wi,"ytd-playlist-panel-supported-items",function(){if(cJ0!==void 0)return cJ0;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return cJ0=
k},{mode:1});EhA=!0;bLd("\\P{N}");var kSt;var aFG=_.Vi("END_OF_PLAYLIST",void 0,"End of playlist"),trt=_.Vi("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),PA=function(){var k=_.p.apply(this,arguments)||this;k.minimizePipBreakages=_.Y("web_pip_minimize_breakages");k.hideHeaderText=!1;k.useColorPalette=!1;k.collapsed=!1;k.collapsedPreServerOverride="not_tracked";k.isHovered=!1;k.modernPanels=_.Y("kevlar_watch_modern_panels");k.expandLabel=_.Vi("MINIPLAYER_EXPAND_LABEL");k.collapseLabel=_.Vi("MINIPLAYER_COLLAPSE_LABEL");
k.isFloating=!1;k.metaPanel=!1;k.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};k.currentIndex=void 0;return k};
_.y(PA,_.p);_.I=PA.prototype;
_.I.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"}}}};
_.I.created=function(){this.scrollThrottle=new _.NJ(this.onThrottledScroll,1E3,this)};
_.I.onMouseEnter=function(){this.isHovered=!0};
_.I.onMouseLeave=function(){this.isHovered=!1};
_.I.computeOverflowMenuData=function(k){return k&&k.menu?k.menu:null};
_.I.computeCollapsible=function(k){return!k};
_.I.computeHasPlaylistButtons=function(k){return!(!k||!k.playlistButtons)};
_.I.computeHasSeparateSaveButton=function(k){return!(!k||!k.saveButton)};
_.I.computeHasToolbarButton=function(k,E){return!(!k||!(E||k.saveButton||k.menu))};
_.I.computePlaylistType=function(k){if(k&&k.playlistId)return k.playlistId.substring(0,4)};
_.I.computeCanReorder=function(k){return k?k.playlistId&&k.playlistId.startsWith("TLPQ")?!0:!!k.isEditable&&!k.isInfinite:!1};
_.I.attached=function(){var k=this;try{_.en().resolve(_.z7).setPlaylistComponent(this.hostElement)}catch(E){if(_.Y("kevlar_park_on_playlist_token_killswitch"))throw E;_.O7().parkOrScheduleJob(function(){_.en().resolve(_.z7).setPlaylistComponent(k.hostElement)},2,"ci")}_.st(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.I.detached=function(){_.lW(this.hostElement)};
_.I.computeTrailingIcon=function(k,E,S){return S?E?"yt-icons:collapse":"yt-icons:close":E?"yt-icons:expand":_.Y("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.I.computeIndexMessage=function(k,E){return Rlh(k+1)+" / "+Rlh(E)};
_.I.onRenderStamperFinished=function(){if(this.scrollForStampDom){var k=!0;this.isHovered&&(k=!1);if(this.collapsed||this.hidden)k=!1;k&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.I.collapseChanged=function(){var k=this;this.collapsed||(_.kq(this.ytTaskEmitterBehavior.getTaskManager(),function(){k.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.I.hiddenChanged=function(){var k=this;this.hidden||_.kq(this.ytTaskEmitterBehavior.getTaskManager(),function(){k.scrollToCurrentVideo()})};
_.I.setupReordering=function(){var k=_.Cc(this.hostElement).querySelector("#items");b4j?_.uZY(this.ytReorderableBehavior,k,k,"playlist-drag-handle"):_.uZY(this.ytReorderableBehavior,k,k)};
_.I.scrollToCurrentVideo=function(){var k=this;_.ZJ.addJob(function(){var E=_.Cc(k.hostElement).querySelector("#items");if(E){E.style.setProperty("padding-bottom","");var S=_.Cc(k.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(S){E=S.parentElement||_.Y$(document);var R=E||_.Y$(document);var V=_.so(S),N=_.so(R),h=_.gyC(R);if(R==_.Y$(document)){var J=V.x-R.scrollLeft;V=V.y-R.scrollTop}else J=V.x-N.x-h.left,V=V.y-N.y-h.top;S=F7p(S);N=R.clientHeight-
S.height;h=R.scrollLeft;var m=R.scrollTop;h+=J-(R.clientWidth-S.width)/2;R=new _.bh(h,m+(V-N/2));E.scrollLeft=R.x;E.scrollTop=R.y}}},8)};
_.I.dataChanged=function(){var k=this;_.red(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.JB(this,function(){_.uM(k.ytTaskEmitterBehavior.getTaskManager(),function(){k.ytRendererBehavior.markDirty();k.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.I.onFullBleedPlayerChanged=function(){_.Y("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.I.onFullscreenChanged=function(){_.Y("web_watch_imax_theater_mode")||_.Y("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.I.updateNowPlayingOverlay=function(){_.Y("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.I.onPlaylistLockupNowPlaying=function(k,E){E&&(this.activeNowPlayingRenderer=E);this.updateNowPlayingOverlay()};
_.I.onScroll=function(){this.scrollThrottle.fire()};
_.I.onThrottledScroll=function(){var k=this;_.uM(this.ytTaskEmitterBehavior.getTaskManager(),function(){k.ytRendererBehavior.markDirty()})};
_.I.onToggleExpanded=function(k){!this.collapsible||k&&(_.bv(k).tagName==="A"||_.v9(_.vT(k),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.I.setCollapsed=function(k){this.collapsible&&(this.collapsed=k,_.zR(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.I.handleCollapsedFromData=function(k){if(k){var E=k.playlistPanelCollapseState;E==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||E==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),E=E==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==E&&this.setCollapsed(E)):this.currentPlaylistId!==k.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(E=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==E&&this.setCollapsed(E),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=k.playlistId}};
_.I.handleDrop=function(k){var E=k.currDragItem;k=E.data.playlistSetVideoId;var S=_.$b(E.parentNode.childNodes,E),R=void 0;S>0&&(R=E.parentNode.childNodes[S-1].data.playlistSetVideoId);E=_.kN();if(E.responsePlaylistData&&E.responsePlaylistData.contents){var V=O6C(k,E.responsePlaylistData);E.responsePlaylistData=(0,_.fO.unsafeClone)(E.responsePlaylistData);$Al(E.responsePlaylistData.contents,V,S);E.queueProxy?Zb8(E.queueProxy,V,S,k,R):E.playlistProxy&&Zb8(E.playlistProxy,V,S,k,R);_.EE(E,_.SM(E,E.response?
E.response.autoplayRenderer:void 0))}};
_.I.handleDarkModeChange=function(k){k!==this.isDarkTheme&&(this.isDarkTheme=k)};
_.I.colorPaletteChanged=function(){var k,E=((k=this.data)==null?void 0:k.contents)||[],S;k=_.n(E);for(E=k.next();!E.done;E=k.next()){E=E.value;var R=void 0;if((R=E.playlistPanelVideoRenderer)==null?0:R.selected){k=E.playlistPanelVideoRenderer;R=E=void 0;(S=this.isDarkTheme?(E=k)==null?void 0:E.darkColorPalette:(R=k)==null?void 0:R.lightColorPalette)&&_.wb(this.hostElement,S);break}}this.useColorPalette=!!S};
_.mt.Object.defineProperties(PA.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.moveThreeDotsMenuToMainHeader)&&_.Y("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var k=_.en().resolve(_.mz(_.z7)),E;if(((E=this.data)==null?0:E.contents)&&(k==null?0:k.hasAutoplayData())){var S;if(((S=this.playlistLoopStateEntity)==null?void 0:S.state)==="PLAYLIST_LOOP_STATE_ONE"){if(k=this.data.currentIndex,k!==void 0){var R,V;var N=(R=this.data.contents[k])==null?void 0:(V=R.playlistPanelVideoRenderer)==null?void 0:V.title}}else{var h,J=(h=_.W(k.getAutoplayEndpoint(),_.jm))==null?void 0:h.videoId,m,a;N=(m=this.data.contents.find(function(T){var w;
return((w=T.playlistPanelVideoRenderer)==null?void 0:w.videoId)===J}))==null?void 0:(a=m.playlistPanelVideoRenderer)==null?void 0:a.title}return N}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)!=null&&k.nextVideoLabel?this.nextVideoTitle?_.$n(this.data.nextVideoLabel)+":":aFG:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var k;if(((k=this.data)==null?0:k.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.Y("web_mix_long_byline_from_data"))return _.DE(trt);var E;return(E=this.data)==null?void 0:E.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R=(k=this.data)==null?void 0:(E=k.playlistButtons)==null?void 0:(S=E.menuRenderer)==null?void 0:S.topLevelButtons;if(R)for(k=_.n(R),E=k.next();!E.done;E=k.next())if(E=E.value,E.playlistLoopButtonRenderer)return E.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var k;return!!(this.collapsed&&((k=this.data)==null?0:k.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
PA.prototype.colorPaletteChanged=PA.prototype.colorPaletteChanged;PA.prototype.onPlaylistLockupNowPlaying=PA.prototype.onPlaylistLockupNowPlaying;PA.prototype.updateNowPlayingOverlay=PA.prototype.updateNowPlayingOverlay;PA.prototype.onFullscreenChanged=PA.prototype.onFullscreenChanged;PA.prototype.onFullBleedPlayerChanged=PA.prototype.onFullBleedPlayerChanged;PA.prototype.dataChanged=PA.prototype.dataChanged;PA.prototype.hiddenChanged=PA.prototype.hiddenChanged;PA.prototype.collapseChanged=PA.prototype.collapseChanged;
PA.prototype.onRenderStamperFinished=PA.prototype.onRenderStamperFinished;PA.prototype.onMouseLeave=PA.prototype.onMouseLeave;PA.prototype.onMouseEnter=PA.prototype.onMouseEnter;_.Z([_.g(_.KS),_.l("design:type",Object)],PA.prototype,"ironResizableBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(p85.YtPlaylistPanelBehavior),_.l("design:type",Object)],PA.prototype,"ytPlaylistPanelBehavior",void 0);_.Z([_.g(_.Jr.YtTaskEmitterBehavior),_.l("design:type",Object)],PA.prototype,"ytTaskEmitterBehavior",void 0);_.Z([_.g(_.xKC),_.l("design:type",Object)],PA.prototype,"ytReorderableBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],PA.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],PA.prototype,"ytdReduxBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],PA.prototype,"actionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],PA.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],PA.prototype,"autoplayData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],PA.prototype,"withinMiniplayer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],PA.prototype,"minimizePipBreakages",void 0);
_.Z([_.H({computed:"setMenuData_(data)"}),_.l("design:type",Object)],PA.prototype,"menuRendererData",void 0);_.Z([_.H({computed:"computeOverflowMenuData(data)"}),_.l("design:type",Object)],PA.prototype,"overflowMenuDataTopRow",void 0);_.Z([_.H({computed:"computeOverflowMenuData(data)"}),_.l("design:type",Object)],PA.prototype,"overflowMenuData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],PA.prototype,"hideHeaderText",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],PA.prototype,"useColorPalette",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.l("design:type",Boolean)],PA.prototype,"collapsible",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],PA.prototype,"collapsed",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],PA.prototype,"hidden",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.l("design:type",Boolean)],PA.prototype,"hasPlaylistButtons",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.l("design:type",Boolean)],PA.prototype,"hasSeparateSaveButton",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.l("design:type",Boolean)],PA.prototype,"hasToolbar",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.l("design:type",String)],PA.prototype,"playlistType",void 0);_.Z([_.H(),_.l("design:type",Object)],PA.prototype,"isHovered",void 0);_.Z([_.H({selectorArgs:["playlistLoopStateEntityKey"],selector:_.v5.playlistLoopStateEntitySelector}),_.l("design:type",Object)],PA.prototype,"playlistLoopStateEntity",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],PA.prototype,"modernPanels",void 0);
_.Z([_.H({value:56}),_.l("design:type",Number)],PA.prototype,"scrollMargin",void 0);_.Z([_.H({computed:"computeCanReorder(data)"}),_.l("design:type",Boolean)],PA.prototype,"canReorder",void 0);_.Z([_.H(),_.l("design:type",Object)],PA.prototype,"expandLabel",void 0);_.Z([_.H(),_.l("design:type",Object)],PA.prototype,"collapseLabel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],PA.prototype,"isFloating",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],PA.prototype,"metaPanel",void 0);_.Z([_.H({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.l("design:type",String)],PA.prototype,"trailingIcon",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],PA.prototype,"isDarkTheme",void 0);_.Z([_.H({selector:_.Ff}),_.l("design:type",Boolean)],PA.prototype,"miniplayerIsActive",void 0);_.Z([_.H({selector:function(k){return k.watch.playerState}}),
_.l("design:type",Number)],PA.prototype,"playerState",void 0);_.Z([_.H({selector:_.oZ}),_.l("design:type",Boolean)],PA.prototype,"isFullscreen",void 0);_.Z([_.H({selector:_.yQ}),_.l("design:type",Boolean)],PA.prototype,"isTheaterMode",void 0);_.Z([_.H(),_.l("design:type",Object)],PA.prototype,"activeNowPlayingRenderer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],PA.prototype,"moveThreeDotMenuToTopRow",null);
_.Z([_.U("data","autoplayData","playlistLoopStateEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],PA.prototype,"nextVideoTitle",null);_.Z([_.U("data","nextVideoTitle"),_.l("design:type",String),_.l("design:paramtypes",[])],PA.prototype,"nextVideoLabel",null);_.Z([_.U("collapsed"),_.l("design:type",String),_.l("design:paramtypes",[])],PA.prototype,"buttonAriaLabel",null);
_.Z([_.U("data","playlistId","longBylineText"),_.l("design:type",Object),_.l("design:paramtypes",[])],PA.prototype,"mixLongByLine",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],PA.prototype,"playlistLoopStateEntityKey",null);_.Z([_.nv("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"onMouseEnter",null);
_.Z([_.nv("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"onMouseLeave",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data","collapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],PA.prototype,"showNextVideoHeader",null);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"onRenderStamperFinished",null);
_.Z([_.il("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"collapseChanged",null);_.Z([_.il("hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"hiddenChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"dataChanged",null);
_.Z([_.U("isTheaterMode","isFullscreen"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],PA.prototype,"isFullBleedPlayer",null);_.Z([_.il("isTheaterMode","isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"onFullBleedPlayerChanged",null);_.Z([_.il("isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"onFullscreenChanged",null);
_.Z([_.il("playerState","miniplayerIsActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"updateNowPlayingOverlay",null);_.Z([_.nv("yt-playlist-lockup-now-playing-active"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],PA.prototype,"onPlaylistLockupNowPlaying",null);
_.Z([_.il("data","isDarkTheme"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PA.prototype,"colorPaletteChanged",null);_.Z([_.D({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],PA);
_.TkA=_.O_()(PA,"ytd-playlist-panel-renderer",function(){if(JJx===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);JJx=k}k=JJx;return k},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var wUY;var BA=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("web_button_rework");return k};
_.y(BA,_.p);BA.prototype.computeShouldButtonBeVertical=function(k,E){return k||E};
BA.prototype.onYtServiceRequestSent=function(k,E){(k=_.W(E.endpoint,_.yx))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.mj("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:k.status})):this.handleLikeEndpoint(k))};
BA.prototype.computelikeStatusEntityKey=function(k){return k==null?void 0:k.likeStatusEntityKey};
BA.prototype.handleLikeEndpoint=function(k){k.status==="LIKE"?this.JSC$17248_ytdDislikeToggleButtonRenderer.toggle(!1):k.status==="DISLIKE"?this.JSC$17248_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17248_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17248_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.mt.Object.defineProperties(BA.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var k;return nCj(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(k=this.likeStatusEntity)==null?void 0:k.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var k;if(this.data&&((k=this.data)==null||!k.hideDislikeButton)){var E;return nCj(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(E=this.likeStatusEntity)==null?void 0:E.likeStatus)}}}});
BA.prototype.onYtServiceRequestSent=BA.prototype.onYtServiceRequestSent;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],BA.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],BA.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],BA.prototype,"vertical",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],BA.prototype,"textTransform",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],BA.prototype,"useShortsIcon",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],BA.prototype,"underIconLabel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],BA.prototype,"modern",void 0);_.Z([_.H({value:"left"}),_.l("design:type",String)],BA.prototype,"buttonTooltipPosition",void 0);
_.Z([_.H(),_.l("design:type",Object)],BA.prototype,"overrides",void 0);_.Z([_.JO("#like-button"),_.l("design:type",Object)],BA.prototype,"JSC$17248_ytdLikeToggleButtonRenderer",void 0);_.Z([_.JO("#dislike-button"),_.l("design:type",Object)],BA.prototype,"JSC$17248_ytdDislikeToggleButtonRenderer",void 0);_.Z([_.U("data","likeStatusEntity.likeStatus","useShortsIcon"),_.l("design:type",Object),_.l("design:paramtypes",[])],BA.prototype,"likeButton",null);
_.Z([_.U("data","likeStatusEntity.likeStatus","useShortsIcon"),_.l("design:type",Object),_.l("design:paramtypes",[])],BA.prototype,"dislikeButton",null);_.Z([_.H({computed:"computelikeStatusEntityKey(data)"}),_.l("design:type",String)],BA.prototype,"likeStatusEntityKey",void 0);_.Z([_.H({selectorArgs:["likeStatusEntityKey"],selector:U3}),_.l("design:type",Object)],BA.prototype,"likeStatusEntity",void 0);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],BA.prototype,"onYtServiceRequestSent",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],BA);
var Put=_.O_()(BA,"ytd-like-button-renderer",function(){if(wUY===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);wUY=k}k=wUY;return k},{mode:1});_.BkA={};
_.BkA.YtConditionalRendererBehavior=[_.O.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(k,E){var S=this,R,V;return _.c(function(N){switch(N.nextAddress){case 1:if(!E)return S.hidden=!0,S.showSpinner=!1,N.return();if((R=k)==null?0:(V=R.visibilityCondition)==null?0:V.mode)switch(k.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return N.jumpTo(5);default:return N.jumpTo(6)}S.showSpinner=
!1;S.hidden=!0;return N.yield(S.shouldShow_(k),4);case 4:S.hidden=!N.yieldResult;N.jumpTo(0);break;case 5:return N.yield(S.shouldShow_(k),8);case 8:S.showSpinner=N.yieldResult;S.hidden=!1;N.jumpTo(0);break;case 6:return S.showSpinner=!1,N.yield(S.shouldShow_(k),9);case 9:S.hidden=!N.yieldResult,_.KR(N)}})},
shouldShow_:function(k){return k&&k.supportedDatas&&k.supportedDatas.rendererVisibilityConditionData&&k.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(k.supportedDatas.rendererVisibilityConditionData.showIf):k&&k.visibilityCondition&&k.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(k.visibilityCondition.showIf):k&&k.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(k.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(k){switch(k){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(k){switch(k){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var k=_.qe(this.hostElement,"yt-get-mdx-status");return k.length==1&&k[0].connected},
isLocationPermissionGranted_:function(){var k;return _.c(function(E){return E.nextAddress==1?navigator.permissions?E.yield(navigator.permissions.query({name:"geolocation"}),3):E.jumpTo(2):E.nextAddress!=2?(k=E.yieldResult,E.return(Promise.resolve(k.state==="granted"))):E.return(Promise.resolve(!1))})}}];var YXY=qC1("yt-icon",{callbackProps:["onKeydown"]}),W$P=_.Y("kevlar_use_wil_icons")?_.f(function(k){var E=k.icon;var S=k.active;var R=k.className;var V=k.style;var N=k.dataSelected;var h=k.dataDisabled;var J=k.role;var m=k.themeOverride;var a=k.animateIcon;var T=k.ariaHidden;var w=k.ariaExpanded;var P=k.ariaLabel;var B=k.tabindex;var F=k.id;var K=k.iconFilter;var r=k.gradientColor;var x=k.onKeydown;var L=function(){var d=E==null?void 0:E(),z=null,kb=void 0;d&&(d=JYY(d),d=W6l(d),d.length&&(z=d[1],
kb=d[0]));return{iconName:z,iconSetName:kb}},q=function(){return cYp(L().iconName,S==null?void 0:S(),void 0,void 0,L().iconSetName,_.en().resolve(_.Rv))},M=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:K==null?void 0:K(),iconColor:r==null?void 0:r()}};
return _.e(_.t,{cond:a,then:function(){return _.e(YXY,{icon:E,active:S,className:R,style:V,dataSelected:N,dataDisabled:h,role:J,themeOverride:m,ariaHidden:T,ariaExpanded:w,ariaLabel:P,tabindex:B,id:F,iconFilter:K,gradientColor:r,onKeydown:x})},
else:function(){return _.e(_.t,{cond:q,then:function(d){return _.e("span",{class:_.SQ("ytIconWrapperHost",R),role:J,"aria-label":P,"aria-hidden":T,tabindex:function(){return isNaN(Number(B==null?void 0:B()))?void 0:Number(B==null?void 0:B())},
id:F,style:V,"on:keydown":_.RZ(function(z){return void(x==null?void 0:x(z))})},_.e(lSh,{data:d,
options:M}))}})}})},"cg"):YXY;var F$a=function(k){var E=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];BXl();_.J6("ytglobal.ytUtilActivityCallback_",function(){_.zR(k,"yt-user-activity")});
new JD(function(){return E.JSC$17264_onMouseMove});
document.addEventListener("scroll",function(){return E.onScroll});
window.addEventListener("resize",function(){return E.onResize})},yJT=function(k,E,S){E in k.eventJobIds||(S=_.eH().addLowPriorityJob(function(){_.cv();
delete k.eventJobIds[E]},S),k.eventJobIds[E]=S)};
F$a.prototype.onScroll=function(k){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):k.target===document&&yJT(this,"scroll",200)};
F$a.prototype.onResize=function(){yJT(this,"resize",200)};
F$a.prototype.JSC$17264_onMouseMove=function(){yJT(this,"mousemove",100)};
_.ef=function(k){k.scrollEventsToIgnore+=1;k.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){k.scrollEventsToIgnore--},500))};var oJI=function(k){this.element=k;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
oJI.prototype.showFeedbackDialog=function(k,E,S,R){var V=XUT();if(!V)return!1;var N=Pmh();N.productId=V;E&&(N.flow="submit",N.report={description:E});S&&(XUT()==="59"?N.callback=_.Ga(function(){_.f2("userFeedbackEvent",{});S()}):N.callback=_.Ga(S));
N.bucket=R||_.Mg("GOOGLE_FEEDBACK_BUCKET","Other");gJx(N);k=UUG(this,"GFEEDBACK",k);try{_.kk5(N,k)}catch(h){return _.O4(h),!1}return!0};
oJI.prototype.showHelpDialog=function(k,E,S){var R=this,V=XUT();if(!V)return!1;var N={helpCenterPath:"/youtube",productData:UUG(this,"GUIDED_HELP",S)};gJx(N);var h=Pmh();h.context=k||N.productData.context||"default";h.defaultHelpArticleId=E;h.enableSendFeedback=!0;(_.CV("gapi.load")||function(J,m){return m()})("client",function(){try{var J=EZd(V,N);
if(_.Y("web_always_load_chat_support")&&!R.chatSupportLoaded)try{J.JSC$9970_loadChatSupport(h),R.chatSupportLoaded=!0}catch(m){}J.startHelp(h)}catch(m){_.O4(m)}})};
var XUT=function(){var k=_.Mg("GOOGLE_FEEDBACK_PRODUCT_ID");k||_.O4(Error("ni"));return k},gJx=function(k){k&&(k.locale=_.Y("kevlar_help_use_locale")?_.Mg("INNERTUBE_CONTEXT_HL","en"):_.Mg("HTML_LANG","en"))},UUG=function(k,E,S){var R=k.productData;
delete R.origin;R.device=_.Be();var V;a:{if(V=document.createElement("canvas")){var N=V.getContext("experimental-webgl",{stencil:!0});if(N){var h=N.getExtension("WEBGL_debug_renderer_info");if(h){V=N.getParameter(h.UNMASKED_RENDERER_WEBGL);break a}}if(N=V.getContext("webgl")){V=N.getParameter(N.RENDERER);break a}}V=null}R.gpu=V;R.isSDC=!!_.Mg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(V=_.Mg("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.fO.extend(R,V);_.Tf1(E,R);_.wQ1(R);(k=_.zR(k.element,"yt-get-autonav-pause-debug-state"))&&
k.length&&(R.autonav_pause_state=k[0]);k=_.pO();R.browser_resolution=k.width+"\u00d7"+k.height+"@"+(window.devicePixelRatio||1)+"x";S&&_.fO.extend(R,S);return R};
oJI.prototype.resetProductData=function(){this.productData={}};var Hg0=function(k){this.feedbackManager=new oJI(k)};
Hg0.prototype.showFeedbackDialog=function(k,E,S,R){return this.feedbackManager.showFeedbackDialog(k,E,S,R)};
Hg0.prototype.showHelpDialog=function(k,E,S){return this.feedbackManager.showHelpDialog(k,E,S)};var K$P=function(){this.baseUrl="";this.aTag=document.createElement("a")},Dfd=function(k,E,S){S=S===void 0?{}:S;
S.pbj||(S.pbj=1);S=_.Rve(E,S);k.baseUrl&&S&&!_.nC(S)[1]&&!_.iJ(S)&&(E=k.baseUrl,nl(E,"/")&&(E=E.slice(0,-1)),_.I1(S,"/")&&(S=S.slice(1)),S=E+"/"+S);MU(k.aTag,_.fg(S||""));return k.aTag.href};
K$P.prototype.fetchData=function(k){return _.Jk1(k)};
K$P.prototype.postData=function(k,E){var S={method:"POST"};if(E){for(var R=_.n(Object.keys(E)),V=R.next();!V.done;V=R.next()){V=V.value;var N=E[V];_.qA(N)&&(E[V]=JSON.stringify(N))}S.postParams=E}return _.Jk1(k,S)};
_.$fC=function(k,E,S,R,V){k=Dfd(k,E,S);if(!k)throw R=Error("oi"),Object.assign(R,{params:E}),R;return _.Jk1(k,V,R)};
K$P.prototype.requestDataForServiceEndpoint=function(k,E){if(_.W(k,_.USm))return this.fetchData("/getAccountSwitcherEndpoint");E=E||{};var S=_.W(k,IG5);S?E.se=S.base64EncodedServiceEndpoint:E.sej=JSON.stringify(k);(S=_.Fe())&&_.Y("enable_service_ajax_csn")&&(E.csn=S);E.theme=_.aR();_.W(k,X6i)&&_.Mg("DELEGATION_CONTEXT")&&(E.delegation_context=JSON.stringify(_.Mg("DELEGATION_CONTEXT")));S=null;for(var R in k)if(nl(R,"Endpoint")||nl(R,"Command")){S=R;break}if(!S){var V=Error("pi");Object.assign(V,{params:k});
_.kcm(V,"WARNING");return new _.yF(function(h,J){J(V)})}R={name:S};
var N;(S=(N=_.W(k,_.Ev))==null?void 0:N.signal)&&(R.signal=S);(N=_.Vf(window.location.href))&&N.internalcountrycode&&(R.internalcountrycode=N.internalcountrycode);N="/service_ajax";_.Y("debug_forward_web_query_parameters")&&(N=_.tdt(N,window.location.search));N=_.Iu(N,R);k.clickTrackingParams&&_.vi(N,{itct:k.clickTrackingParams});return this.postData(N,E)};_.pUP=new _.QE("GFEEDBACK_TOKEN");var AJR;var rJG;var uo0;var xUP;var YU=function(){var k=_.p.apply(this,arguments)||this;k.compact=!1;k.dismissButtonDisabled=!1;return k};
_.y(YU,_.p);YU.prototype.computeHasIcon_=function(k){return!!k};
YU.prototype.isSignInIcon_=function(k){return k=="yt-icons:prompted_sign_in"};
YU.prototype.onDismissButtonClick=function(){var k=this,E=this.data.disableOnClick,S,R=(S=this.data.dismissButton)==null?void 0:S.buttonRenderer;E&&!this.dismissButtonDisabled&&R&&setTimeout(function(){k.dismissButtonDisabled=!0},0)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.BkA.YtConditionalRendererBehavior),_.l("design:type",Object)],YU.prototype,"ytConditionalRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],YU.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon_(data.icon)"}),_.l("design:type",Object)],YU.prototype,"icon_",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.l("design:type",Boolean)],YU.prototype,"hasIcon_",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.l("design:type",Boolean)],YU.prototype,"signInIcon_",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],YU.prototype,"compact",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],YU.prototype,"dismissButtonDisabled",void 0);
_.Z([_.U_({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],YU);
_.b(YU,"yt-player-error-message-renderer",function(){if(xUP===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;uo0===void 0&&(uo0=document.createElement("template"));var R=uo0;S.call(E,R.content.cloneNode(!0),k.content.firstChild);xUP=k}k=xUP;return k},{mode:2});var L$W;var jS0;var WA=function(){return _.p.apply(this,arguments)||this};
_.y(WA,_.p);WA.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
WA.prototype.computeIcon_=function(k){return k?"yt-icons:"+k.iconType.toLowerCase():"error_outline"};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],WA.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],WA.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],WA.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon_(data.icon)"}),_.l("design:type",Object)],WA.prototype,"icon_",void 0);_.Z([_.U_({is:"yt-player-kav-renderer",disableElementRegistration:!0})],WA);
_.b(WA,"yt-player-kav-renderer",function(){if(jS0===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;L$W===void 0&&(L$W=document.createElement("template"));var R=L$W;S.call(E,R.content.cloneNode(!0),k.content.firstChild);jS0=k}k=jS0;return k},{mode:2});var WUe=_.ry(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.qi(_.f(function(k){var E=_.VH("div"),S=_.n(_.yg(0,void 0,"jxh75d")),R=S.next().value,V=S.next().value;S=_.n(_.yg(null,void 0,"F5Zm8"));var N=S.next().value,h=S.next().value;_.b$(function(){FUt(E.value,V,h);E.value.scrollIntoView()});
S=yk1.bind(null,k.data,R);_.cn("resize",function(){var J=N();if(R()===1&&J!==null){var m;(m=window.grecaptcha)==null||m.reset(J)}});
return _.e("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.e("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.e("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var J,m;return(J=k.data().accessibility)==null?void 0:(m=J.accessibilityData)==null?void 0:m.label}),_.e(_.VB,{text:S,
className:_.SQ("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.e("div",{el:E,class:"ytwPlayerCaptchaViewModelGridItem"})))},"dg"),"yt-player-captcha-view-model",{props:{data:_.sk}});var oCb=!1;_.DUR=_.f(function(k){var E=k.data;return _.e("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.e(_.t,{cond:function(){return E().icon},
then:function(S){return _.e("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.e(_.vM,{data:S,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.e(_.t,{cond:function(){return E().title},
then:function(S){return _.e("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.e(_.VB,{text:S}))}}),_.e(_.t,{cond:function(){return E().description},
then:function(S){return _.e("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.e(_.VB,{text:S}))}}),_.e(_.cp,{data:function(){return E().primaryButton}},{buttonViewModel:function(S){return _.e(_.yB,{data:S.data,
className:"interstitialViewModelFlexItem"})}}),_.e(_.cp,{data:function(){return E().secondaryButton}},{buttonViewModel:function(S){return _.e(_.yB,{data:S.data,
className:"interstitialViewModelFlexItem"})}}))},"eg");
_.DUR.idomCompat=!0;var $UY=_.f(function(k){var E=k.data;_.Ui();return _.e("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.e("div",{class:"playerInterstitialRendererScrim"},_.e(_.cp,{data:function(){return E().content}},{interstitialViewModel:_.DUR})))},"fg");
$UY.idomCompat=!0;_.qi($UY,"yt-player-interstitial-renderer",{props:{data:_.Nq}});var F0=function(){var k=_.p.apply(this,arguments)||this;k.noBackground=!1;k.compact=!1;k.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return k};
_.y(F0,_.p);F0.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"}}}};
F0.prototype.onUpdatePlayerErrorMessageCommand_=function(k){if(_.W(k,BAT)){var E;if(k=(E=_.W(k,BAT))==null?void 0:E.newPlayerErrorMessageRenderer)this.data=k}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],F0.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],F0.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],F0.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],F0.prototype,"status",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],F0.prototype,"noBackground",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],F0.prototype,"compact",void 0);_.Z([_.U_({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],F0);
var fF2=_.O_()(F0,"yt-playability-error-supported-renderers",function(){if(rJG===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;AJR===void 0&&(AJR=document.createElement("template"));var R=AJR;S.call(E,R.content.cloneNode(!0),k.content.firstChild);rJG=k}k=rJG;return k},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var vJt=qC1("ytd-button-renderer");var XQC=void 0,UQA=void 0;var pQt=new fnd;var bg2=function(k){this.store=k;this.tIH=new _.ZC5},a4t=function(k,E,S){var R,V;
if(!(V=((R=E.playabilityStatus)==null?void 0:R.status)!=="OK")){k=k.store;var N;V=E.offlineState&&((N=E.videoDetails)==null?0:N.videoId)?_.Y("enable_pl_r_c_cd")?bM1(k.getState().entities,E.videoDetails.videoId):!!t61(k.getState().entities,E.videoDetails.videoId):!1}if(V)return!0;V=LU1(E);if(V===1){if(_.Y("ab_v_vid_sig")){var h,J=(h=E.videoDetails)==null?void 0:h.videoId;if(!J||!S||J!==S){var m;E=new _.LC("282054944_vid",{hcf:S,seb:(m=E.videoDetails)==null?void 0:m.videoId});_.bM(E)}}return!0}u7l=
0;var a,T;m=(J=E.auxiliaryUi)==null?void 0:(a=J.messageRenderers)==null?void 0:(T=a.bkaEnforcementMessageViewModel)==null?void 0:T.displayType;if(V!==3&&(m==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||m==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;m={reason:_.lD(_.Vi("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.Y("ks_something_wrong_learn_more")?MPj("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.lD(_.Vi("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:_.lD("282054944")};ZgY(E,{playerErrorMessageRenderer:m});return!1},txt=function(k,E){if(Oye(E)){_.RR(1,!0);
var S=(S=Oye(E))&&_.gCh()?S:void 0;S?(ZgY(E,{enforcementMessageViewModel:S}),k.tIH.increment("IN_PLAYER"),_.RR(5)):(k.tIH.increment("SKIP_DISPLAY"),_.RR(2))}},ZgY=function(k,E){k.playabilityStatus=Object.assign({},k.playabilityStatus,{status:"ERROR",
errorScreen:E});k.videoDetails=void 0};
bg2.prototype.handleResponse=function(k,E){if(k.playabilityStatus){var S,R,V,N=(E==null?void 0:(S=E.innerTubeRequest)==null?void 0:S.videoId)||(E==null?void 0:(R=E.innerTubeRequest)==null?void 0:(V=R.playerRequest)==null?void 0:V.videoId);a4t(this,k,N)&&txt(this,k)}};
bg2[au]=[ZI];var mse=new _.QE("ADBLOCK_DETECTION_SERVICE_TOKEN");var AQ=function(k){this.hWn=k};
AQ.prototype.bindInnertubeChallengeFetcher=function(k){this.hWn.bicf(k)};
AQ.prototype.registerChallengeFetchedCallback=function(k){this.hWn.bcr(k)};
AQ.prototype.getLatestChallengeResponse=function(){return this.hWn.blc()};var dUU;dUU=_.ry(["https://static.doubleclick.net/instream/ad_status.js"]);_.sSA=_.BH(dUU);var zsx;_.y0=function(k,E,S){var R=this;this.network=k;this.options=E;this.networkStatusManager=S;this.z5=null;if(E.useBotguardEverywhere){var V=new _.kl;this.z5=V.promise;_.Vt.ytAtRC&&_.aE(_.ZJ,function(){var N,h;return _.c(function(J){if(J.nextAddress==1){if(!_.Vt.ytAtRC)return J.return();N=lFP(null);return J.yield(R.pN(N),2)}h=J.yieldResult;_.Vt.ytAtRC&&_.Vt.ytAtRC(JSON.stringify(h));_.KR(J)})});
vCI().then(function(N){var h,J,m,a;return _.c(function(T){if(T.nextAddress==1)return N.bindInnertubeChallengeFetcher(function(w){return R.pN(lFP(w))}),T.yield(s2j(),2);
h=T.yieldResult;J=N.getLatestChallengeResponse();m=J.challenge;if(!m)throw Error("qi");a={challenge:m,z1:p9(m),vm:h,bgChallenge:new HZ};V.resolve(a);N.registerChallengeFetchedCallback(function(w){w=w.challenge;if(!w)throw Error("ri");w={challenge:w,z1:p9(w),vm:h,bgChallenge:new HZ};R.z5=Promise.resolve(w)});
_.KR(T)})})}else E.preload&&Mr2(this,new Promise(function(N){_.uM(_.ZJ,function(){N(qXT(R))},0)}))};
zsx=function(k){var E={preload:!0,useBotguardEverywhere:!0},S=!1;if(typeof E==="boolean")var R={preload:E};else typeof E==="undefined"?R={preload:!0}:(R=E,S=!!E.nub);E=S?void 0:new _.Ec;_.y0.instance=new _.y0(k,R,E);return _.y0.instance};
_.y0.prototype.jiY=function(){var k=this;return _.c(function(E){return E.nextAddress==1?E.yield(Promise.race([k.z5,null]),2):E.return(!!E.yieldResult)})};
_.y0.prototype.hQn=function(k,E,S){var R=this,V,N,h;return _.c(function(J){R.z5===null&&Mr2(R,qXT(R));V=!1;N={};h=function(){var m,a,T;return _.c(function(w){switch(w.nextAddress){case 1:return w.yield(R.z5,2);case 2:m=w.yieldResult;N.challenge=m.challenge;if(!m.vm){"c1a"in m.z1&&(N.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");w.jumpTo(3);break}a=Object.assign({},{c:m.challenge,e:k},E);_.F5(w,4);V=!0;return w.yield(m.vm.snapshot({xe:a}),6);case 6:(T=w.yieldResult)?N.webResponse=T:N.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.Sv(w,3);break;case 4:_.UY(w),N.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(k==="ENGAGEMENT_TYPE_PLAYBACK"){var P=m.z1,B={};if(P.c6a){var F=Number(_.Mg("DCLKSTAT",0));B.reportingStatus=String(Number(P.c)^(isNaN(F)?0:F))}P.c6b&&(B.broadSpectrumDetectionResult=String(Number(P.c)^Number(_.Mg("CATSTAT",0))));N.adblockReporting=B}return w.return(N)}})};
return J.return(Promise.race([h(),QSa(S,function(){var m=Object.assign({},N);V&&(m.error="ATTESTATION_ERROR_VM_TIMEOUT");return m})]))})};
var lFP=function(k){var E={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};k&&(E.interpreterHash=k);return E},qXT=function(k,E){E=E===void 0?0:E;
var S,R,V,N,h,J,m,a,T,w,P,B;return _.c(function(F){switch(F.nextAddress){case 1:S=lFP(dg5().rcB);if(_.Y("att_fet_ks"))return _.F5(F,7),F.yield(k.pN(S),9);_.F5(F,4);return F.yield(OgW(k,S),6);case 6:h=F.yieldResult;V=h.dE7;N=h.mE8;R=h;_.Sv(F,3);break;case 4:return _.UY(F),_.dg(Error("si`"+E)),GBG(k,864E5),F.return({challenge:"",z1:{},vm:void 0,bgChallenge:void 0});case 9:R=F.yieldResult;if(!R)throw Error("ti");if(!R.challenge)throw Error("ui");V=R.challenge;N=p9(V);if("c1a"in N&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("vi");
_.Sv(F,3);break;case 7:J=_.UY(F);_.dg(J);E++;if(E>=5)return _.dg(Error("si`"+E)),GBG(k,864E5),F.return({challenge:"",z1:{},vm:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,E-1)+Math.random()*1E3;return F.return(new Promise(function(K){_.uM(_.ZJ,function(){K(qXT(k,E))},m)}));
case 3:a=fPi(N);GBG(k,a*1E3);T=void 0;if(!("c1a"in N&&R.bgChallenge)){F.jumpTo(10);break}w=$QC(R.bgChallenge);_.F5(F,11);return F.yield(l_z(dg5(),w),13);case 13:_.Sv(F,12);break;case 11:return P=_.UY(F),_.dg(P),F.return({challenge:V,z1:N,vm:T,bgChallenge:w});case 12:return _.F5(F,14),T=new _.K3({challenge:w,lM3:{vc:"aGIf"}}),F.yield(T.rOe,16);case 16:_.Sv(F,10);break;case 14:B=_.UY(F),_.dg(B),T=void 0;case 10:return F.return({challenge:V,z1:N,vm:T,bgChallenge:w})}})};
_.y0.prototype.pN=function(k){var E=this,S;return _.c(function(R){S=E.networkStatusManager;if(!S||S.isNetworkAvailable())return R.return(E.network.pN(k));_.gq("att_pna",void 0,"attestation_challenge_fetch");return R.return(new Promise(function(V){S.listenOnce("publicytnetworkstatus-online",function(){E.network.pN(k).then(V)})}))})};
var CuA=function(k){if(!k)throw Error("ti");if(!k.challenge)throw Error("ui");var E=k.challenge,S=p9(E);if("c1a"in S&&(!k.bgChallenge||!k.bgChallenge.program))throw Error("vi");return Object.assign({},k,{dE7:E,mE8:S})},OgW=function(k,E){var S,R,V,N,h;
return _.c(function(J){switch(J.nextAddress){case 1:S=void 0,R=0,V={};case 2:if(!(R<5)){J.jumpTo(4);break}if(!(R>0)){J.jumpTo(5);break}V.xnh=1E3*Math.pow(2,R-1)+Math.random()*1E3;return J.yield(new Promise(function(m){return function(a){_.uM(_.ZJ,function(){a(void 0)},m.xnh)}}(V)),5);
case 5:return _.F5(J,7),J.yield(k.pN(E),9);case 9:return N=J.yieldResult,J.return(CuA(N));case 7:S=h=_.UY(J),h instanceof Error&&_.dg(h);case 8:R++;V={xnh:void 0};J.jumpTo(2);break;case 4:throw S;}})},Mr2=function(k,E){k.z5=E},kPU=function(k){var E,S,R;
return _.c(function(V){if(V.nextAddress==1)return V.yield(Promise.race([k.z5,null]),2);E=V.yieldResult;var N=qXT(k);k.z5=N;(S=E)==null||(R=S.vm)==null||R.dispose();_.KR(V)})},GBG=function(k,E){var S=Date.now()+E,R=function(){var V;
return _.c(function(N){V=S-Date.now();return V<1E3?N.yield(kPU(k),0):(_.uM(_.ZJ,R,Math.min(V,6E4)),N.jumpTo(0))})};
R()},QSa=function(k,E){return new Promise(function(S){_.uM(_.ZJ,function(){S(E())},k)})};var EeR=function(){};
EeR.prototype.processContext=function(k){var E=_.y0.instance;if(!E)return _.E7();var S=MAi(k);return S?new ko(E.hQn(S,dQe(k),500).then(function(R){var V;(k==null?0:(V=k.innerTubeRequest)==null?0:V.context)||(k.innerTubeRequest.context={});V=k.innerTubeRequest.context;V.request||(V.request={});V.request.attestationResponseData=R})):_.E7()};var SYA=function(k){this.innertubeTransportService=k};
SYA.prototype.pN=function(k){_.gq("att_fsr",void 0,"attestation_challenge_fetch");return _.qF(this.innertubeTransportService,k,_.bg(_.o_8)).then(function(E){_.gq("att_frr",void 0,"attestation_challenge_fetch");return E})};_.R5P=function(k){this.innertubeTransportService=k};var VOU=new _.QE("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var NPW=function(){},neT=function(k,E,S,R,V){var N=_.Mg("YPC_MB_URL");
_.Aml(N).then(function(){IeA(N,k,E,S,R,V)})},IeA=function(k,E,S,R,V,N){try{var h=_.DI.payments.business.integration,J=_.DI.payments.business.integration.Style.create().withMaterialDesignStyle(),m=h.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.Y("enable_window_constrained_buy_flow_dialog")&&(m=m.usingPopupStyle("windowConstrained"));N&&(m=m.usingCloseCallback(N));var a=S?S:_.Mg("YPC_GB_LANGUAGE"),T=_.Mg("SESSION_INDEX");h.bootstrap.fromPaymentsUrl(k);h.bootstrap.asMashupMode(m).usingGaiaIndex(T).usingLocale(a).usingStyle(J).usingDefaultActivityStatusChangeHandler().inStandaloneContext(h.standaloneContextAuthId.forGaia()).purchaseManager(E,function(w){R&&R(w)}).load(void 0,V)}catch(w){throw V&&V(w),_.bM(w),w;
}};var iR0=new _.QE("PURCHASE_MANAGER_TOKEN");var h5P=function(){var k=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return k.videos},
getContinuationsPresent:function(){return k.continuationsPresent},
setVideos:function(E){k.videos=E},
getRecommendedVideos:function(){return k.recommendedVideos},
setRecommendedVideos:function(E){k.recommendedVideos=E}}};
h5P.prototype.addVideos=function(k){k&&(this.videos=k.filter(function(E){return!!_.zl1(E)}).map(function(E){var S=_.zl1(E);
a:{var R;if(E.playlistVideoRenderer&&((R=E.playlistVideoRenderer)==null?0:R.voteSortTiebreaker))var V=E.playlistVideoRenderer.voteSortTiebreaker;else{if(_.W(E,ur)){var N;if(R=(V=_.W(E,ur))==null?void 0:(N=V.playlistItemData)==null?void 0:N.voteSortTiebreaker){V=R;break a}}V=""}}return{itemId:S,videoId:_.GSj(E),voteCount:_.CmA(E),voteSortTiebreaker:V}}),this.continuationsPresent=!!_.W(k[k.length-1],_.jj))};
var JEG=function(k,E){return k.videos.findIndex(function(S){return S.itemId===E})},cEU=function(k,E){return k.recommendedVideos.findIndex(function(S){return S.itemId===E})},mVT=function(k){k={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:k}}}}};_.en().resolve(_.t3).resolveCommand(k)};var e5t=function(){h5P.apply(this,arguments)};
_.y(e5t,h5P);
var x$z=function(k,E,S,R){if(!k.parentElem)throw Error("Ai");var V=JEG(k,E);V===-1&&(V=cEU(k,E),V=V!==-1?V+k.videos.length:-1);if(V===-1)throw Error("Bi");var N=V>=k.videos.length?k.recommendedVideos[V-k.videos.length]:k.videos[V];N.voteCount=S;N.voteSortTiebreaker=Date.now().toString();V>=k.videos.length?k.recommendedVideos.splice(V-k.videos.length,1):k.videos.splice(V,1);var h=k.videos;for(var J=0,m=h.length-1;J<=m;){var a=Math.floor((J+m)/2);if(h[a].voteCount<N.voteCount)m=a-1;else if(h[a].voteCount>N.voteCount)J=
a+1;else{a:{var T=N.voteSortTiebreaker;var w=h[a].voteSortTiebreaker;if(T.length!==w.length)T=T.length>w.length;else{for(var P=0;P<T.length;P++){var B=T.charCodeAt(P),F=w.charCodeAt(P);if(B>F){T=!0;break a}if(B<F)break}T=!1}}T?m=a-1:J=a+1}}h=J;if(h===-1)throw Error("Ci");k.videos.splice(h,0,N);V!==h&&ae3(k,V,h,E,S,R)},ae3=function(k,E,S,R,V,N){var h,J=(h=k.parentElem)==null?void 0:h.children,m=Math.min(E,S),a=Math.max(E,S);
if(J)for(h=m;h<=a;h++)J[h].style.viewTransitionName="item-"+String(h);document.startViewTransition(function(){if(k.parentElem){var T=k.parentElem.children;if(!(!T||E<0||E>=T.length||S<0||S>=T.length)){var w=T[E];if(w){w.remove();k.showRefreshPill=S>=k.videos.length-1&&k.continuationsPresent;if(!k.showRefreshPill){T=T[S]||null;var P;(P=k.parentElem)==null||P.insertBefore(w,T)}_.Me(k.parentElem,"yt-update-video-data-voting-animation",{toIdx:S,itemId:R,newVoteCount:V,voteStatus:N,hideItem:k.showRefreshPill})}}}}).finished.then(function(){if(J)for(var T=
m;T<=a;T++)J[T].style.viewTransitionName="";
if(k.showRefreshPill)mVT(_.Vi("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var w;if(w=T=(w=k.parentElem)==null?void 0:w.children[S])w=T.getBoundingClientRect(),T=w.bottom,w=!(w.top>=0&&T<=k.clientHeight);w&&(w=_.Na(E>S?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(E-S)),mVT(w))}})};var wdx=function(k,E){var S=this;k?this.innertubeTransportServicePromise=Promise.resolve(k):E&&(this.innertubeTransportServicePromise=E(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new i0(3E3,function(R){return tO0(S,R)},0);
this.validateMiniAppVideoIdRateLimiter=new i0(3E3,function(R){return TPI(S,R)},1)},MIa=function(k,E){k.JSC$17374_miniAppId=E;
k.reportMiniAppValueRateLimiter=new i0(3E3,function(S){return tO0(k,S)},0);
k.validateMiniAppVideoIdRateLimiter=new i0(3E3,function(S){return TPI(k,S)},1)},zYR=function(k,E){var S;
return _.c(function(R){if(R.nextAddress==1)return R.yield(k.reportMiniAppValueRateLimiter.call(E),2);S=R.yieldResult;return R.return([S,E])})},tO0=function(k,E){var S,R,V,N,h,J,m;
return _.c(function(a){switch(a.nextAddress){case 1:return a.yield(k.innertubeTransportServicePromise,2);case 2:return S=a.yieldResult,R=_.bg(paA),V=Date.now(),N={externalPostId:k.JSC$17374_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(V/1E3),nanos:Math.round(V%1E3*1E6)},intValue:""+E}},_.F5(a,3),a.yield(_.qF(S,N,R),5);case 5:h=a.yieldResult;_.Sv(a,4);break;case 3:throw J=_.UY(a),J;case 4:if(h){if("error"in h&&h.error)throw h.error;if(h.errorMetadata)throw Error("Di`"+
h.errorMetadata.status);if(m=h.userStatResult)return a.return(m);throw Error("Ei");}throw Error("Fi");}})},OPW=function(k){var E,S,R,V,N;
_.c(function(h){switch(h.nextAddress){case 1:return h.yield(k.innertubeTransportServicePromise,2);case 2:return E=h.yieldResult,S=_.bg(paA),R={externalPostId:k.JSC$17374_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.F5(h,3),h.yield(_.qF(E,R,S),5);case 5:V=h.yieldResult;_.Sv(h,4);break;case 3:throw N=_.UY(h),N;case 4:if(V==null)throw Error("Fi");if("error"in V&&V.error)throw V.error;if(V.errorMetadata)throw Error("Di`"+V.errorMetadata.status);_.KR(h)}})};
wdx.prototype.flush=function(){var k=this;return _.c(function(E){return E.nextAddress==1?E.yield(k.reportMiniAppValueRateLimiter.flush(),2):E.yield(k.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var QtG=function(k,E){return _.c(function(S){return S.nextAddress==1?S.yield(k.validateMiniAppVideoIdRateLimiter.call(E),2):S.return(S.yieldResult)})},TPI=function(k,E){var S,R,V,N,h,J;
return _.c(function(m){switch(m.nextAddress){case 1:return m.yield(k.innertubeTransportServicePromise,2);case 2:return S=m.yieldResult,R=_.bg(FDY),V={videoId:E},_.F5(m,3),m.yield(_.qF(S,V,R),5);case 5:N=m.yieldResult;_.Sv(m,4);break;case 3:throw h=_.UY(m),h;case 4:if(N){if("error"in N&&N.error)throw N.error;if(N.errorMetadata)throw Error("Di`"+N.errorMetadata.status);if(J=N.playabilityStatus)return m.return(J.status);throw Error("Gi");}throw Error("Fi");}})};
wdx[au]=[_.mz(_.oR),_.mz(Va4)];var PtT=function(){this.clientData=new Map};
PtT.prototype.getData=function(k){return this.clientData.get(k)};var BPT=function(k){this.store=k};
BPT.prototype.handleResponse=function(k){(k=_.W(k.frameworkUpdates,$v))&&_.I7(k,this.store)};
BPT[au]=[_.q5];var YYU=new _.QE("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Wo3,Foa;_.oi=new _.QE("FLOW_STATE_MANAGER_TOKEN");Wo3=function(){this.flowStates=new Map};
Foa=function(k,E){k=_.n(k.flowStates.values());for(var S=k.next();!S.done;S=k.next())if(S=S.value,S.flowRenderer.targetId===E)return S};var yEW=function(k,E){this.JSC$17399_reduxStore=k;this.JSC$17399_flowStateManager=E};
_.y(yEW,kp);
yEW.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P,B,F;return _.c(function(K){S=_.W(k,_.DlT);R=S.stepId;V=S.targetId;N=Foa(E.JSC$17399_flowStateManager,V);J=(h=N)==null?void 0:h.flowRenderer;m=J.flowStateEntityKey;a=_.xz(E.JSC$17399_reduxStore.getState(),m);if(!a)return K.return();T=a.currentStepId;B=(P=(w=a)==null?void 0:w.stepIdStack)!=null?P:[];F=T===B[B.length-1]?R:T;E.JSC$17399_reduxStore.dispatch(_.wE("flowStateEntity",m,{currentStepId:R,stepIdStack:[F]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.KR(K)})};
var oeP=function(){yEW.apply(this,arguments)};
_.y(oeP,yEW);oeP[au]=[_.q5,_.oi];var XdW=function(k,E,S){this.JSC$17406_reduxStore=k;this.JSC$17406_flowStateManager=E;this.JSC$17406_commandHandler=S};
_.y(XdW,kp);
XdW.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P,B,F,K;return _.c(function(r){R=_.W(k,_.$ld);V=R.targetId;N=Foa(S.JSC$17406_flowStateManager,V);J=(h=N)==null?void 0:h.flowRenderer;m=J.flowStateEntityKey;a=_.xz(S.JSC$17406_reduxStore.getState(),m);P=[].concat(_.$e((w=(T=a)==null?void 0:T.stepIdStack)!=null?w:[]));B=P.pop();((F=a)==null?void 0:F.currentStepId)===B&&(B=P[P.length-1]);if(!B)return(K=R.onFirstStepCommand)&&S.JSC$17406_commandHandler.resolveCommand(K,E),r.return();
S.JSC$17406_reduxStore.dispatch(_.wE("flowStateEntity",m,{currentStepId:B,stepIdStack:P}));_.KR(r)})};
var ge3=function(){XdW.apply(this,arguments)};
_.y(ge3,XdW);ge3[au]=[_.q5,_.oi,_.t3];var UVt=function(k,E){this.innertubeTransportService=k;this.JSC$17411_commandHandler=E};
_.y(UVt,kp);UVt.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J;return _.c(function(m){if(m.nextAddress==1){R=_.W(k,fTj);if(!R)return m.return();_.F5(m,2);return m.yield(_.xv(S.innertubeTransportService,k),4)}if(m.nextAddress!=2){V=m.yieldResult;if(!V)return m.return();(N=V.updateFlowCommand)&&S.JSC$17411_commandHandler.resolveCommand(N,E);return _.Sv(m,0)}_.UY(m);(J=(h=R)==null?void 0:h.onFailureCommand)&&S.JSC$17411_commandHandler.resolveCommand(J,E);_.KR(m)})};
var HRU=function(){UVt.apply(this,arguments)};
_.y(HRU,UVt);HRU[au]=[_.oR,_.t3];var KoI=function(k,E){this.JSC$17417_flowStateManager=k;this.JSC$17417_commandHandler=E};
_.y(KoI,kp);
KoI.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h;return _.c(function(J){R=_.W(k,_.bSd);V=R.targetId;N=Foa(S.JSC$17417_flowStateManager,V);if(!N)return J.return(Promise.resolve());var m=N,a=(h=R.steps)!=null?h:[],T,w=(T=m.flowRenderer.steps)!=null?T:[];a=[].concat(_.$e(w),_.$e(a));m.flowRenderer.steps=a;R.flowContinuationCommand&&(N.flowRenderer.flowContinuationCommand=R.flowContinuationCommand);R.entityUpdateCommand&&S.JSC$17417_commandHandler.resolveCommand(R.entityUpdateCommand,E);
return J.return(Promise.resolve())})};
var X0=function(){KoI.apply(this,arguments)};
_.y(X0,KoI);X0[au]=[_.oi,_.t3];var pdA={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 AE2=new _.QE("ICON_SET_TOKEN"),rET=new _.QE("ICON_URL_PROVIDER_TOKEN"),u5P=new _.QE("PREFETCH_ICONS_TOKEN"),xVR=new _.QE("ICON_MAP_FN_TOKEN");var gi={},LoT=(gi.ACCESS_TIME="clock",gi.ACCOUNT_BOX="person_account",gi.ACCOUNT_BOX_CAIRO="person_account_cairo",gi.ACCOUNT_CIRCLE="person_circle",gi.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",gi.ACCOUNT_LINKED="account_link_success",gi.ACCOUNT_UNLINKED="account_link",gi.ADD_FRIEND="people",gi.ADD_MODERATOR="shield_add",gi.ADD_TO_LIBRARY="bookmark",gi.ADD_TO_PLAYLIST="add",gi.ADD_TO_QUEUE_TAIL="list_queue",gi.ADD_TO_REMOTE_QUEUE="list_music",gi.ADD_TO_WATCH_LATER="clock",gi.ADD_VIDEO_LINK="film_strip_add",
gi.ALERT_WARN_RED="alert_triangle",gi.ARROW_BACK="arrow_left",gi.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",gi.ARROW_DROP_DOWN="chevron_down",gi.ARROW_DROP_UP="chevron_up",gi.ARROW_FORWARD="arrow_right",gi.ARTIST="person_music",gi.AUDIOTRACK="audio",gi.AUTO_AWESOME="sparkle",gi.AVATAR_ANONYMOUS="person_circle",gi.AVATAR_LOGGED_OUT="person_circle",gi.BACK="arrow_left",gi.BAR_CHART="bar_graph",gi.BLOCK="slash_circle_left",gi.BLOCK_USER="slash_circle_left",gi.BOOKMARK_BORDER="bookmark",
gi.BREAKING_NEWS_ALT_1="article_alert",gi.BROADCAST_CAIRO="podcast_cairo",gi.BUG_REPORT="bug",gi.CAMERA_ALT="camera",gi.CAMPAIGN="megaphone",gi.CANCEL="x_circle",gi.CAPTIONS="closed_caption",gi.CAST_OUTLINE="chromecast",gi.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",gi.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",gi.CHAT="message_bubble_left",gi.CHAT_BUBBLE="message_bubble_empty",gi.CHAT_SPARK="spark_message_bubble_left",gi.CHECK_BOX_OUTLINE_BLANK="box_empty",gi.CHECK_CIRCLE_OUTLINE="check_circle",
gi.CHECK_CIRCLE_THICK="check_circle",gi.CLARIFY="article_clarify",gi.CLOSED_CAPTION_SELECTED="closed_caption",gi.CLOSE="x_mark",gi.CLOUD_UPLOAD="cloud_arrow_up",gi.COLLAPSE="chevron_up",gi.COLLAPSE_CAIRO="chevron_up_cairo",gi.COLLECTION="layers",gi.COLOR_LENS="palette",gi.COMMENT="message_bubble_right",gi.CONSENT_SHIELD="person_shield",gi.CONTENT_CUT="scissors",gi.CONTENT_CUT_CAIRO="scissors_cairo",gi.COURSE=_.Y("web_enable_course_icon_update")?"creator_academy":"lightbulb",gi.COURSE_CAIRO=_.Y("web_enable_course_icon_update")?
"creator_academy_cairo":"lightbulb_cairo",gi.CREATION_LIVE="radar_live",gi.CREATION_POST="box_pencil",gi.CREATION_UPLOAD="my_videos",gi.CREATION_UPLOAD_RED="upload",gi.CREATOR_METADATA_MONETIZATION="dollar_sign",gi.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",gi.CREATOR_STUDIO="youtube_studio",gi.DASHBOARD="grid_asymmetrical",gi.DELETE="trash_can",gi.DELETE_SWEEP="trash_can",gi.DESKTOP="laptop",gi.DISLIKE="thumb_down",gi.DISLIKE_SELECTED="thumb_down",gi.DISMISSAL="x_mark",gi.DISMISS_QUEUE=
"list_remove",gi.DONE_ALL="check_double",gi.DOWN_ARROW="arrow_down",gi.DO_NOT_DISTURB="slash_circle_left",gi.DRAFT="paper_corner_folded",gi.DRAG_HANDLE="bars_2",gi.EDIT="pencil",gi.EMOJI="face_very_happy",gi.EMOJI_FLAGS="flag",gi.EMOJI_OBJECTS="lightbulb",gi.EMOJI_PEOPLE="face_very_happy",gi.EMOJI_RECENT="clock",gi.EMPTY_HEART="heart",gi.EMPTY_LIKE="thumb_up",gi.ERROR_BLACK="alert_circle",gi.ERROR_OUTLINE="alert_circle",gi.EXIT_APP="arrow_in",gi.EXIT_TO_APP="arrow_in",gi.EXPAND="chevron_down",gi.EXPAND_ALL=
"chevron_expand",gi.EXPAND_CAIRO="chevron_down_cairo",gi.EXPAND_LESS="chevron_up",gi.EXPAND_MORE="chevron_down",gi.EXPLORE="compass",gi.EXPLORE_DESTINATION="compass",gi.EXTERNAL_LINK="open_new",gi.FAB_UPLOAD="upload",gi.FACE_HAPPY_OUTLINE="face_happy",gi.FACT_CHECK="article_check",gi.FASHION_LOGO="fashion",gi.FASHION_LOGO_CAIRO="fashion_cairo",gi.FAVORITE="heart",gi.FEEDBACK="message_bubble_alert",gi.FEEDBACK_CAIRO="message_bubble_alert_cairo",gi.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",gi.FILL_ARROW_SOLID_UP_16=
"arrow_solid_up",gi.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",gi.FILTER="menu_filter",gi.FIRST_PAGE="chevron_first",gi.FLAG="flag",gi.FULL_HEART="heart",gi.GAME_CONSOLE_DPAD="game_console_dpad",gi.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",gi.GAMING_LOGO="gaming",gi.GAMING_LOGO_CAIRO="gaming_cairo",gi.GO_TO_PAGE="arrow_right",gi.GROUPS="people_group",gi.HAPPY="face_happy",gi.HEALTH_AND_SAFETY="shield_plus",gi.HELP="question_circle",gi.HELP_CAIRO="question_circle_cairo",gi.HELP_OUTLINE=
"question_circle",gi.HIDE="slash_circle_left",gi.IMAGE="image",gi.INFINITY_ICON="infinity",gi.INFO="info_circle",gi.INFO_OUTLINE="info_circle",gi.INSERT_CHART="bar_graph_box_vertical",gi.INSERT_CHART_OUTLINED="bar_graph_box_vertical",gi.INSERT_PHOTO="image",gi.KEEP="pin",gi.KEEP_OFF="pin_off",gi.KEYBOARD="keyboard",gi.KEYBOARD_ARROW_DOWN="chevron_down",gi.KEYBOARD_ARROW_UP="chevron_up",gi.KIDS_BLOCK="slash_circle_left",gi.LANGUAGE="globe",gi.LAST_PAGE="chevron_last",gi.LAUNCH="open_new",gi.LEARNING=
"lightbulb",gi.LEARNING_CAIRO="lightbulb_cairo",gi.LIBRARY_ADD=RFi("library_add"),gi.LIBRARY_OUTLINE="library",gi.LIBRARY_REMOVE=RFi(),gi.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",gi.LIKES_PLAYLIST="thumb_up",gi.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",gi.LIKE="thumb_up",gi.LIKE_SELECTED="thumb_up",gi.LIVE="radar_live",gi.LIVE_CAIRO="radar_live_cairo",gi.LIVE_UNLISTED="link",gi.LOCATION_ON="location_point",gi.LOCATION_PIN="location_point",gi.LOOP="arrow_repeat",gi.LOOP_ACTIVE="arrow_repeat",gi.LOOP_ONE=
"arrow_repeat_1",gi.LOOP_ONE_ACTIVE="arrow_repeat_1",gi.MEH="face_meh",gi.MEMBERS_ONLY_MODE_OFF="message_bubble_left",gi.MESSAGE="message_bubble_left",gi.MICROPHONE_ON="mic",gi.MIX="youtube_mix",gi.MONETIZATION_ON="dollar_sign_circle",gi.MONEY_FILL="dollar_sign_container",gi.MONEY_FILL_JPY="yen_sign_container",gi.MONEY_HEART="dollar_sign_heart",gi.MORE_HORIZ="overflow_horizontal",gi.MORE_VERT="overflow_vertical",gi.MUSIC="audio",gi.MUSIC_CAIRO="audio_cairo",gi.MUSIC_NOTE_SYMBOL="music",gi.MUSIC_SHUFFLE=
"arrow_shuffle",gi.MY_CHANNEL="person_circle",gi.MY_LOCATION="location_point",gi.NEWS_STORY="news",gi.NEXT="chevron_right",gi.NOTIFICATIONS="bell",gi.NOTIFICATIONS_ACTIVE="bell_on",gi.NOTIFICATIONS_CAIRO="bell_cairo",gi.NOTIFICATIONS_DONE_CHECKMARK="check",gi.NOTIFICATIONS_INBOX="bell",gi.NOTIFICATIONS_NONE="bell",gi.NOTIFICATIONS_OFF="bell_off",gi.NOT_INTERESTED="slash_circle_left",gi.OFFICIAL_ARTIST_BADGE="audio",gi.OFFLINE_CLOUD="cloud_off",gi.OFFLINE_DOWNLOAD="download",gi.OFFLINE_DOWNLOAD_CAIRO=
"download_cairo",gi.OFFLINE_PAUSE="pause",gi.OPEN_IN_NEW="open_new",gi.OUTLINE_ADJUST="adjust",gi.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",gi.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",gi.OUTLINE_BAG="bag",gi.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",gi.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",gi.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",gi.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",gi.PAID="dollar_sign",gi.PAUSE_OUTLINED="pause",gi.PAYMENT="credit_card",gi.PERSON_RADAR_FILLED=
"person_radar",gi.PHONE_DOWNLOAD="mobile_download",gi.PLAYABLES_LOGO="tic_tac_toe",gi.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",gi.PLAYLISTS="list_play_arrow",gi.PLAYLISTS_CAIRO="list_play_arrow_cairo",gi.PLAYLIST_ADD=RFi("list_add"),gi.PLAYLIST_ADD_CHECK=RFi("list_check"),gi.PLAYLIST_PLAY="list_play_arrow",gi.PLAY_ALL="play_arrow",gi.PLAY_CIRCLE="play_arrow_circle",gi.PLAY_OUTLINED="play_arrow_circle",gi.PRIVACY_INFO="shield",gi.PRIVACY_PRIVATE="lock",gi.PRIVACY_PUBLIC="earth",gi.PRIVACY_UNLISTED=
"link",gi.PROMOTE="megaphone",gi.PURCHASES="price_tag",gi.PURCHASE_SUPER_CHAT="super_chat",gi.PURCHASE_SUPER_STICKER="super_sticker",gi.QUESTION_ANSWER="message_bubble_question",gi.QUEUE_PLAY_LAST="list_queue_last",gi.QUEUE_PLAY_NEXT="list_play_arrow",gi.REMIX_FILLED="youtube_shorts_remix",gi.REMOVE="bar_circle",gi.REMOVE_CIRCLE="bar_circle",gi.REMOVE_CIRCLE_OUTLINE="bar_circle",gi.REMOVE_DONE="check_double_off",gi.REMOVE_FROM_HISTORY="bar_circle",gi.REMOVE_FROM_PLAYLIST="bar_circle",gi.REMOVE_MODERATOR=
"shield_off",gi.REPLAY="arrow_circle",gi.REPLAY_10="skip_back_10",gi.REPORT_PROBLEM="alert_triangle",gi.SAD="face_sad",gi.SAVE_PLAYLIST="bookmark",gi.SCHEDULE="clock",gi.SCHOOL="creator_academy",gi.SCREEN_FULLSCREEN="screen_full",gi.SEARCH_HISTORY="arrow_time",gi.SELL="price_tag",gi.SETTINGS="gear",gi.SETTINGS_CAIRO="gear_cairo",gi.SETTINGS_LIGHT="gear",gi.SETTINGS_MATERIAL="gear",gi.SHARE_ARROW="share",gi.SHIELD_WITH_AVATAR="person_shield",gi.SHOPPING_BAG="bag",gi.SHOPPING_BAG_CAIRO="bag_cairo",
gi.SHOPPING_CART="cart",gi.SHORTS_COMMENT="youtube_shorts_message_bubble_right",gi.SHORTS_DISLIKE="youtube_shorts_thumb_down",gi.SHORTS_LIKE="youtube_shorts_thumb_up",gi.SHORTS_SHARE="youtube_shorts_share",gi.SHUFFLE="arrow_shuffle",gi.SLOW_MODE_OFF="message_bubble_left",gi.SOCIAL="people",gi.SORT="menu_sort",gi.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",gi.SPEED_1X="1x",gi.SPEED_1_POINT_2X="1_point_2x",gi.SPEED_1_POINT_5X="1_point_5x",gi.SPEED_1_POINT_8X="1_point_8x",gi.SPEED_2X="2x",gi.SPEED_POINT_2X=
"point_2x",gi.SPEED_POINT_8X="point_8x",gi.SPONSORSHIP_STAR="star_circle",gi.STAFF_PICK="spotlight",gi.START_DVR="add",gi.STAR_BORDER="star",gi.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",gi.STICKER_EMOTICON="face_happy",gi.STOP_DVR="stop",gi.SUBSCRIBE="youtube_logo_icon",gi.SUBSCRIBE_PLUS="add_cairo",gi.SUBSCRIPTION_MANAGER="gear",gi.SUPERVISOR_ACCOUNT="people",gi.SUPER_CHAT_FOR_GOOD="hands_heart",gi.SWAP_HORIZ="arrow_swap_horizontal",gi.SWITCH_ACCOUNTS="person_account",gi.TAB_ACCOUNT="person",
gi.TAB_ACTIVITY="bell",gi.TAB_BOOKMARK="bookmark",gi.TAB_EXPLORE="compass",gi.TAB_HOME="home",gi.TAB_HOME_CAIRO="home_cairo",gi.TAB_INBOX="mail",gi.TAB_LIKED="thumb_up",gi.TAB_MUSIC_PREMIUM="youtube_music",gi.TAB_SHORTS="youtube_shorts",gi.TAB_SHORTS_CAIRO="youtube_shorts_cairo",gi.TAB_SUBSCRIPTIONS="subscriptions",gi.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",gi.TAB_TRENDING="fire",gi.TIMER="stopwatch",gi.TRAILER="youtube_originals",gi.TRENDING="fire",gi.TRENDING_CAIRO="fire_cairo",gi.TRENDING_DOWN=
"rating_down",gi.TRENDING_UP="rating_up",gi.TROPHY="trophy",gi.TROPHY_CELEBRATIONS="fireworks",gi.TUNE="adjust",gi.UNBLOCK_USER="bar_circle",gi.UNLIMITED="youtube_logo_icon",gi.UNPLUGGED_LIVE_GUIDE="radar_live",gi.UNPLUGGED_SPORTS="eye_off",gi.UPLOADS="library",gi.UP_ARROW="arrow_up",gi.VERTICAL_ALIGN_BOTTOM="download",gi.VERY_HAPPY="face_very_happy",gi.VERY_SAD="face_very_sad",gi.VIDEOGAME_ASSET="gaming",gi.VIDEOS="play_arrow_circle",gi.VIDEO_CALL="video_camera_add",gi.VIDEO_LIBRARY_WHITE="library",
gi.VIDEO_YOUTUBE="youtube_logo_icon",gi.VIEW_LIST="list_view",gi.VIEW_LIST_CAIRO="list_view_cairo",gi.VISIBILITY="eye",gi.VISIBILITY_OFF="eye_off",gi.VOLUME_MUTE="volume_off",gi.VOLUME_UP="volume_on",gi.WALLPAPER="image",gi.WARNING="alert_triangle",gi.WATCH_HISTORY="arrow_time",gi.WATCH_HISTORY_CAIRO="arrow_time_cairo",gi.WATCH_LATER="clock",gi.WATCH_LATER_CAIRO="clock_cairo",gi.WATCH_RELATED_MIX="youtube_mix",gi.WHAT_TO_WATCH="home",gi.YOUTUBE_MUSIC_MONOCHROME="youtube_music",gi.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",gi.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",gi.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",gi.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",gi.YT_OUTLINE_MUSIC_24="music",gi);var U1={},jbW=(U1.ACCESS_TIME="clock",U1.ACCOUNT_BOX="person_square",U1.ACCOUNT_BOX_CAIRO="person_square",U1.ACCOUNT_CIRCLE="person_circle",U1.ACCOUNT_CIRCLE_CAIRO="person_circle",U1.ACCOUNT_LINKED="account_link",U1.ACCOUNT_UNLINKED="account_link",U1.ADD_CIRCLE="add_circle",U1.ADD_CIRCLE_OUTLINE="add_circle",U1.ADD_FRIEND="person_child",U1.ADD_MODERATOR="shield_add",U1.ADD_TO_LIBRARY="bookmark",U1.ADD_TO_PLAYLIST="add",U1.ADD_TO_QUEUE_TAIL="queue",U1.ADD_TO_REMOTE_QUEUE="playlist_audio",U1.ADD_TO_WATCH_LATER=
"clock",U1.ADD_VIDEO_LINK="film_strip_add",U1.ADMIN_PANEL_SETTINGS="person_gear",U1.ALERT_WARN_RED="alert_triangle",U1.ALIGN_LEFT="text_align_left",U1.ARROWS_ALERT="arrow_split_alert",U1.ARROW_BACK="arrow_left",U1.ARROW_CIRCLE="arrow_counterclockwise",U1.ARROW_CIRCLE_PLAY="replay",U1.ARROW_CIRCLE_RIGHT="arrow_clockwise",U1.ARROW_DIAGONAL="arrow_up_left",U1.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",U1.ARROW_DROP_DOWN="triangle_down",U1.ARROW_DROP_UP="triangle_up",U1.ARROW_FORWARD="arrow_right",U1.ARROW_PAUSE=
"pause_history",U1.ARROW_UNDO="undo",U1.ARTICLE="text_page",U1.ARTICLE_ALERT="text_page_alert",U1.ARTICLE_CHECK="text_page_check",U1.ARTICLE_CLARIFY="text_page_info",U1.ARTIST="person_audio",U1.AUDIOTRACK="audio",U1.AUDIO_BADGE="audio_badge",U1.AUDIO_SURROUND="surround_sound",U1.AUTO_AWESOME="sparkles",U1.AVATAR_ANONYMOUS="person_circle",U1.AVATAR_LOGGED_OUT="person_circle",U1.BACK="arrow_left",U1.BAR_CHART="chart_bar",U1.BAR_CIRCLE="minus_circle",U1.BAR_HORIZONTAL="minus",U1.BLOCK="circle_slash",
U1.BLOCK_USER="circle_slash",U1.BOOKMARK_BORDER="bookmark",U1.BOX_OPEN_CHECK="quiz",U1.BOX_PENCIL="square_pencil",U1.BOX_STACK_3="square3_stack",U1.BREAKING_NEWS_ALT_1="text_page_alert",U1.BROADCAST="podcast",U1.BROADCAST_CAIRO="podcast",U1.BUG_REPORT="bug",U1.CAMERA_ALT="camera",U1.CAMPAIGN="megaphone",U1.CANCEL="x_circle",U1.CAPTIONS="closed_captions",U1.CAST_ICON="chromecast",U1.CAST_OUTLINE="chromecast",U1.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",U1.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
U1.CHAT="text_bubble",U1.CHAT_BUBBLE="bubble",U1.CHECK_BOX="check_square",U1.CHECK_BOX_OUTLINE_BLANK="square",U1.CHECK_CIRCLE_FILLED="check_circle",U1.CHECK_CIRCLE_OUTLINE="check_circle",U1.CHECK_CIRCLE_THICK="check_circle",U1.CHECK_DOUBLE="check_done",U1.CHECK_DOUBLE_OFF="check_done_slash",U1.CHEVRON_LEFT="chevron_left",U1.CHEVRON_RIGHT="chevron_right",U1.CHEVRON_RIGHT_CAIRO="chevron_right",U1.CIRCLES_OVERLAP="account_link",U1.CLAPPERBOARD_CAIRO="clapperboard",U1.CLARIFY="text_page_info",U1.CLOCK_ARROWS=
"clock_split",U1.CLOCK_ARROWS_ALERT="clock_split_alert",U1.CLOSED_CAPTION="closed_captions",U1.CLOSED_CAPTION_SELECTED="closed_captions",U1.CLOSE="x",U1.CLOUD_UPLOAD="cloud_arrow_up",U1.COLLAPSE="chevron_up",U1.COLLAPSE_CAIRO="chevron_up",U1.COLLECTION="square3d_stack",U1.COLOR_LENS="paint_palette",U1.COMMENT="text_bubble",U1.CONSENT_SHIELD="person_shield",U1.CONTENT_CUT="scissors",U1.CONTENT_CUT_CAIRO="scissors",U1.COURSE="graduation_cap",U1.COURSE_CAIRO="graduation_cap",U1.CREATION_LIVE="live",
U1.CREATION_POST="square_pencil",U1.CREATION_UPLOAD="video",U1.CREATION_UPLOAD_RED="upload",U1.CREATOR_ACADEMY="graduation_cap",U1.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",U1.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",U1.CREATOR_STUDIO="youtube_studio",U1.DARK_THEME="theme",U1.DELETE="trash_can",U1.DELETE_SWEEP="trash_can",U1.DESKTOP="laptop",U1.DISLIKE="thumb_down",U1.DISLIKE_SELECTED="thumb_down",U1.DISMISSAL="x",U1.DISMISS_QUEUE="playlist_x",U1.DOGFOOD="pawprint",U1.DOLLAR_SIGN=
"dollar_sign_circle",U1.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",U1.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",U1.DOWN_ARROW="arrow_down",U1.DO_NOT_DISTURB="circle_slash",U1.DRAFT="document",U1.DRAG_HANDLE="equal",U1.EARTH="globe",U1.EDIT="pencil",U1.EMOJI="face_very_happy",U1.EMOJI_FLAGS="flag",U1.EMOJI_OBJECTS="lightbulb",U1.EMOJI_PEOPLE="face_very_happy",U1.EMOJI_RECENT="clock",U1.EMPTY_HEART="heart",U1.EMPTY_LIKE="thumb_up",U1.ERROR_BLACK="alert_circle",U1.ERROR_OUTLINE="alert_circle",U1.ERROR_WHITE=
"alert_circle",U1.EXIT_APP="arrow_in",U1.EXIT_TO_APP="arrow_in",U1.EXPAND="chevron_down",U1.EXPAND_ALL="chevron_expand",U1.EXPAND_CAIRO="chevron_down",U1.EXPAND_LESS="chevron_up",U1.EXPAND_MORE="chevron_down",U1.EXPLORE="compass",U1.EXPLORE_DESTINATION="compass",U1.EXTERNAL_LINK="arrow_up_right",U1.EYE_OFF="eye_slash",U1.FAB_UPLOAD="upload",U1.FACE_HAPPY_OUTLINE="face_happy",U1.FACE_MEH="face_neutral",U1.FACT_CHECK="text_page_check",U1.FASHION_LOGO="fashion",U1.FASHION_LOGO_CAIRO="fashion",U1.FAVORITE=
"thumb_up",U1.FEEDBACK="alert_bubble",U1.FEEDBACK_CAIRO="alert_bubble",U1.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",U1.FILL_ARROW_SOLID_UP_16="arrow_solid_up",U1.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",U1.FIRST_PAGE="chevron_left_end",U1.FLAG_CAIRO="flag",U1.FLASH_OFF="flash_slash",U1.FLASH_ON="flash",U1.FULL_HEART="heart",U1.GAMING_LOGO="gaming",U1.GAMING_LOGO_CAIRO="gaming",U1.GO_TO_PAGE="arrow_right",U1.GRID_ASYMMETRICAL="dashboard",U1.GROUPS="person3",U1.HAND_SWIPE_LEFT="gesture_swipe_left",
U1.HAND_SWIPE_RIGHT="gesture_swipe_right",U1.HAPPY="face_happy",U1.HEALTH_AND_SAFETY="shield_health",U1.HEART_BOX="heart_cube",U1.HELP="help_circle",U1.HELP_CAIRO="help_circle",U1.HELP_OUTLINE="help_circle",U1.HIDE="circle_slash",U1.INCOGNITO_CAIRO="incognito",U1.INFINITY_ICON="infinity",U1.INFO="info_circle",U1.INFO_OUTLINE="info_circle",U1.INSERT_CHART="chart_bar_square",U1.INSERT_CHART_OUTLINED="chart_bar_square",U1.INSERT_PHOTO="image",U1.KEEP="pin",U1.KEEP_OFF="pin_slash",U1.KEYBOARD="keyboard",
U1.KEYBOARD_ARROW_DOWN="chevron_down",U1.KEYBOARD_ARROW_UP="chevron_up",U1.KIDS_BLOCK="circle_slash",U1.LANGUAGE="globe",U1.LAST_PAGE="chevron_right_end",U1.LAUNCH="arrow_up_right",U1.LEARNING="lightbulb",U1.LEARNING_CAIRO="lightbulb",U1.LIBRARY_ADD="bookmark",U1.LIBRARY_IMAGE="image_stack",U1.LIBRARY_MUSIC="audio_square_stack",U1.LIBRARY_OUTLINE="play_square_stack",U1.LIBRARY_REMOVE="bookmark",U1.LIBRARY_SAVED="check_square_stack",U1.LIKES_PLAYLIST="thumb_up",U1.LIKES_PLAYLIST_CAIRO="thumb_up",U1.LIKE=
"thumb_up",U1.LIKE_SELECTED="thumb_up",U1.LIST_QUEUE="queue",U1.LIVE_CAIRO="live",U1.LIVE_UNLISTED="link",U1.LOCATION_ON="location_pin",U1.LOCATION_PIN="location_pin",U1.LOCATION_POINT="location_pin",U1.LOOP="repeat",U1.LOOP_ACTIVE="repeat",U1.LOOP_ONE="repeat1",U1.LOOP_ONE_ACTIVE="repeat1",U1.MEET="google_meet",U1.MEH="face_neutral",U1.MEMBERSHIPS="memberships",U1.MEMBERS_ONLY_MODE_OFF="text_bubble",U1.MENU_FILTER="filter",U1.MESSAGE="text_bubble",U1.MESSAGE_BUBBLE_GEAR="bubble_gear",U1.MESSAGE_BUBBLE_LEFT=
"text_bubble",U1.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",U1.MESSAGE_BUBBLE_OVERLAP="bubble_stack",U1.MESSAGE_BUBBLE_QUESTION="help_bubble",U1.MICROPHONE_ON="mic",U1.MONETIZATION_ON="dollar_sign_circle",U1.MONEY_FILL="dollar_sign_rectangle",U1.MONEY_FILL_JPY="yen_sign_rectangle",U1.MONEY_HAND="dollar_sign_circle_hand",U1.MONEY_HEART="dollar_sign_heart",U1.MOON_Z="sleep_timer",U1.MORE_HORIZ="overflow_horizontal",U1.MORE_VERT="overflow_vertical",U1.MUSIC="audio",U1.MUSIC_CAIRO="audio",U1.MUSIC_EXPLICIT_BADGE=
"explicit",U1.MUSIC_NEW_RELEASE="audio_badge",U1.MUSIC_NOTE_SYMBOL="audio",U1.MUSIC_SCISSORS="audio_scissors",U1.MUSIC_SHUFFLE="shuffle",U1.MY_CHANNEL="person_circle",U1.MY_LOCATION="location_pin",U1.MY_VIDEOS="video",U1.MY_VIDEOS_CAIRO="video",U1.NEWS_CAIRO="news",U1.NEWS_STORY="news",U1.NEXT="chevron_right",U1.NOTE_ADD="bubble_pencil",U1.NOTIFICATIONS="bell",U1.NOTIFICATIONS_ACTIVE="bell_waves",U1.NOTIFICATIONS_CAIRO="bell",U1.NOTIFICATIONS_DONE_CHECKMARK="check",U1.NOTIFICATIONS_INBOX="bell",U1.NOTIFICATIONS_NONE=
"bell",U1.NOTIFICATIONS_OFF="bell_slash",U1.NOT_INTERESTED="circle_slash",U1.OFFICIAL_ARTIST_BADGE="audio",U1.OFFLINE_CLOUD="cloud_slash",U1.OFFLINE_DOWNLOAD="download",U1.OFFLINE_DOWNLOAD_CAIRO="download",U1.OFFLINE_PAUSE="pause",U1.OPEN_IN_NEW="arrow_up_right",U1.OUTLINE_ADJUST="adjust",U1.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",U1.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",U1.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",U1.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",U1.OUTLINE_BAG="bag",U1.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",U1.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",U1.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",U1.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",U1.PAID="dollar_sign_circle",U1.PAUSE_OUTLINED="pause",U1.PAYMENT="credit_card",U1.PEOPLE="person_child",U1.PEOPLE_2="person2_rectangle",U1.PEOPLE_GROUP="person3",U1.PEOPLE_NOTE="bubble_asterisk",U1.PERSON_2="person2",U1.PERSON_ACCOUNT="person_square_stack",U1.PERSON_MINUS="person_x",U1.PERSON_MUSIC="person_audio",U1.PERSON_RADAR="person_waves",
U1.PERSON_RADAR_FILLED="person_waves",U1.PERSON_SETTING="person_gear",U1.PHONE="phone",U1.PHONE_DOWNLOAD="mobile_arrow_down",U1.PICTURE_IN_PICTURE="picture_in_picture",U1.PLAYABLES_LOGO="playables",U1.PLAYABLES_LOGO_CAIRO="playables",U1.PLAYLISTS="playlist",U1.PLAYLISTS_CAIRO="playlist",U1.PLAYLIST_ADD_CHECK="bookmark",U1.PLAY_ALL="play",U1.PLAY_ARROW="play",U1.PLAY_ARROW_CIRCLE="play_circle",U1.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",U1.PLAY_CIRCLE="play_circle",U1.PLAY_OUTLINED="play_circle",
U1.PODCAST_ADD="podcast_add",U1.PODCAST_CHECK="podcast_check",U1.PRIVACY_INFO="shield_x",U1.PRIVACY_PRIVATE="lock",U1.PRIVACY_PUBLIC="globe",U1.PRIVACY_UNLISTED="link",U1.PROMOTE="megaphone",U1.PURCHASES="price_tag",U1.PURCHASE_SUPER_CHAT="super_chat",U1.PURCHASE_SUPER_STICKER="super_sticker",U1.QUESTION_ANSWER="help_bubble",U1.QUESTION_CIRCLE="help_circle",U1.QUEUE_PLAY_LAST="queue_last",U1.QUEUE_PLAY_NEXT="queue_next",U1.QUOTATION_MARK="quote",U1.RADAR_LIVE="live",U1.REMOVE="minus_circle",U1.REMOVE_CIRCLE=
"minus_circle",U1.REMOVE_CIRCLE_OUTLINE="minus_circle",U1.REMOVE_FROM_HISTORY="minus_circle",U1.REMOVE_FROM_PLAYLIST="minus_circle",U1.REMOVE_MODERATOR="shield_slash",U1.REPLAY="arrow_counterclockwise",U1.REPLAY_10="skip10_back",U1.REPLAY_ARROW="replay",U1.REPORT_PROBLEM="alert_triangle",U1.RSS_OFF="rss_slash",U1.SAD="face_sad",U1.SAVE_PLAYLIST="bookmark",U1.SCHEDULE="clock",U1.SCHOOL="graduation_cap",U1.SCREEN_DEFAULT="player_default",U1.SCREEN_FULLSCREEN="player_full_enter",U1.SCREEN_LIGHT="ambient_mode",
U1.SCREEN_ROTATION="rotate_portrait",U1.SCREEN_SWITCH="player_switch",U1.SCREEN_THEATRE="player_theater",U1.SEARCH_CAIRO="search",U1.SEARCH_HISTORY="history",U1.SELL="price_tag",U1.SETTINGS="gear",U1.SETTINGS_CAIRO="gear",U1.SETTINGS_LIGHT="gear",U1.SETTINGS_MATERIAL="gear",U1.SETTINGS_REMOTE="remote_waves",U1.SHARE="share",U1.SHARE_ARROW="share",U1.SHARE_CAIRO="share",U1.SHIELD="shield_x",U1.SHIELD_OFF="shield_slash",U1.SHIELD_WITH_AVATAR="person_shield",U1.SHOPPING_BAG="bag",U1.SHOPPING_BAG_CAIRO=
"bag",U1.SHOPPING_CART="cart",U1.SHORTS_COMMENT="text_bubble",U1.SHORTS_DISLIKE="thumb_down",U1.SHORTS_LIKE="thumb_up",U1.SHORTS_SHARE="share",U1.SKIP_FORWARD_30="skip30_forward",U1.SLASH_CIRCLE_RIGHT="circle_slash",U1.SLOW_MODE="bubble_slow",U1.SLOW_MODE_OFF="text_bubble",U1.SOCIAL="person_child",U1.SPARKLE="sparkles",U1.SPARK_IMAGE="image_spark",U1.SPARK_RADAR="spark_waves",U1.SPARK_VIDEO="video_spark",U1.SPEAKER_GROUP="speaker_stack",U1.SPEAKER_OFF="speaker_slash",U1.SPEED_1X="n1x",U1.SPEED_1_POINT_2X=
"n1point2x",U1.SPEED_1_POINT_5X="n1point5x",U1.SPEED_1_POINT_8X="n1point8x",U1.SPEED_2X="n2x",U1.SPONSORSHIP_STAR="star_circle",U1.SPORTS="basketball",U1.SPOTLIGHT="spotlight",U1.STAFF_PICK="spotlight",U1.START_DVR="add",U1.STAR_BORDER="star",U1.STAR_CIRCLE_RIBBON="memberships_gift",U1.STAR_HALF="star_half_filled",U1.STAR_SHOOTING="hype",U1.STICKER="sticker",U1.STICKER_EMOTICON="face_happy",U1.STOP_DVR="stop",U1.SUBSCRIBE="youtube",U1.SUBSCRIBE_PLUS="add",U1.SUBSCRIPTION_MANAGER="gear",U1.SUPERSTAR=
"super_star",U1.SUPERVISOR_ACCOUNT="person_child",U1.SUPER_CHAT_FOR_GOOD="hands_heart",U1.SWAP_HORIZ="arrow_swap_horizontal",U1.SWITCH_ACCOUNTS="person_square_stack",U1.TAB_ACCOUNT="person",U1.TAB_ACTIVITY="bell",U1.TAB_BOOKMARK="bookmark",U1.TAB_EXPLORE="compass",U1.TAB_HOME="home",U1.TAB_HOME_CAIRO="home",U1.TAB_INBOX="mail",U1.TAB_LIKED="thumb_up",U1.TAB_MUSIC_PREMIUM="youtube_music",U1.TAB_SHORTS="shorts",U1.TAB_SHORTS_CAIRO="shorts",U1.TAB_SUBSCRIPTIONS="subscriptions",U1.TAB_SUBSCRIPTIONS_CAIRO=
"subscriptions",U1.TAB_TRENDING="trending",U1.TARGET="target",U1.TARGET_ADD="target_add",U1.TEMPLATE_ADD="template_add",U1.TEXT="font",U1.TIMER="stopwatch",U1.TRENDING_CAIRO="trending",U1.TRENDING_DOWN="arrow_trend_down",U1.TRENDING_UP="arrow_trend_up",U1.TROPHY_CAIRO="trophy",U1.TROPHY_CELEBRATIONS="fireworks",U1.TROPHY_STAR="star_trophy",U1.TUNE="adjust",U1.TV_OFF="tv_slash",U1.UNBLOCK_USER="minus_circle",U1.UNFAVORITE="thumb_down",U1.UNLIMITED="youtube",U1.UNPLUGGED_LIVE_GUIDE="live",U1.UNPLUGGED_SPORTS=
"eye_slash",U1.UPLOADS="play_square_stack",U1.UP_ARROW="arrow_up",U1.VERTICAL_ALIGN_BOTTOM="chevron_down_end",U1.VERTICAL_ALIGN_TOP="chevron_up_end",U1.VERY_HAPPY="face_very_happy",U1.VERY_SAD="face_very_sad",U1.VIDEOS="play_circle",U1.VIDEO_CALL="video_camera_add",U1.VIDEO_LIBRARY_WHITE="play_square_stack",U1.VIDEO_QUALITY_4K="n4k",U1.VIDEO_QUALITY_8K="n8k",U1.VIDEO_YOUTUBE="youtube",U1.VIEW_LIST_CAIRO="view_list",U1.VIEW_MODULE="view_column3_row2",U1.VISIBILITY="eye",U1.VISIBILITY_OFF="eye_slash",
U1.VOLUME_DOWN="volume_min",U1.VOLUME_MUTE="volume_mute",U1.VOLUME_OFF="volume_mute",U1.VOLUME_STABLE="stable_volume",U1.VOLUME_UP="volume_max",U1.WALLPAPER="image",U1.WARNING="alert_triangle",U1.WATCH_HISTORY="history",U1.WATCH_HISTORY_CAIRO="history",U1.WATCH_LATER="clock",U1.WATCH_LATER_CAIRO="clock",U1.WATCH_RELATED_MIX="mix",U1.WHAT_TO_WATCH="home",U1.YOUTUBE_LINKED_TV="tv_mobile",U1.YOUTUBE_MUSIC_MONOCHROME="youtube_music",U1.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",U1.YOUTUBE_SHORTS_ARROW_DOWN=
"arrow_down",U1.YOUTUBE_SHORTS_ARROW_UP="arrow_up",U1.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",U1.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",U1.YOUTUBE_SHORTS_OUTLINE_24="shorts",U1);var DV2={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,3,24],[1,3,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_add:[[1,1,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:[[0,5,24],[1,5,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,13,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,15,24],[1,15,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,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,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_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,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:[[0,9,24],[1,9,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 $VY={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,2,18],[1,2,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_add:[[1,1,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,13,18],[1,13,24],[1,13,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,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,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,3,18],[1,3,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,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,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,9,24],[1,9,18],[1,9,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 feG={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"},HA=function(k){this.iconUrlProvider=k};
HA.prototype.resolveIcon=function(k,E){var S=feG[k.iconName.toUpperCase()];S&&(k.iconName=S);var R=k.iconName;R=R.replace(/-/g,"_");k=Object.assign({},k,{iconName:this.mapIconTypeToStandardName(R,!!S)||R.toLowerCase()});if(_.Y("enable_web_delhi_icons")||S){var V;return Eie($VY,k,((V=this.iconUrlProvider)==null?void 0:V.getYtStandardUrl)||NsI,E)}var N;return Eie(DV2,k,((N=this.iconUrlProvider)==null?void 0:N.getYtStandardUrl)||VUI,E)};
HA.prototype.mapIconTypeToStandardName=function(k,E){return _.Y("enable_web_delhi_icons")||E?jbW[k.toUpperCase()]:LoT[k.toUpperCase()]};
HA[au]=[_.mz(rET)];var ve2=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),bRA=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),ZRa=function(k){this.urlProvider=this.iconUrlProvider=k};
_.y(ZRa,HA);
ZRa.prototype.resolveIcon=function(k,E){k.iconName==="youtube_logo"&&(k.iconName="yt-logo-updated");if(k.iconName==="youtube_premium_logo"||k.iconName==="youtube_red_logo")k.iconName="yt-logo-red-updated";var S=Object.assign({},k);k.iconName==="menu"&&(_.Y("enable_web_delhi_icons")||(S.iconName="bars_3"),S.iconStyle="youtube_outline");k.iconSetName==="socialNetworksRound"&&(k.iconName==="mail"&&(S.iconName="email"),k.iconName==="embed"&&(S.iconSize=60));k.iconName==="more"&&(S.iconName="overflow_horizontal");
k.iconName==="fullscreen"&&(S.iconName="screen_full");k.iconName==="premium_standalone"&&(S.iconName="premium_standalone_cairo");_.Y("enable_connect_icon_update_web")&&k.iconName==="account_linked"&&(S.iconName="circles_overlap_check",S.iconStyle="youtube_fill");_.Y("enable_connect_icon_update_web")&&k.iconName==="account_unlinked"&&(S.iconName="circles_overlap",S.iconStyle="youtube_outline");ve2.has(k.iconName)&&(S.iconStyle="youtube_fill");_.Y("enable_web_delhi_icons")&&(k.iconName==="playlist_add"&&
(S.iconName="bookmark"),k.iconName==="offline_pin"&&(S.iconName="arrow_down_circle",S.iconStyle="youtube_fill"),bRA.has(k.iconName)&&(S.iconName+="_updated"));k=Object.assign({},S,{iconName:(HA.prototype.mapIconTypeToStandardName.call(this,S.iconName)||S.iconName).toLowerCase()});var R;return(k=Eie(pdA,k,((R=this.urlProvider)==null?void 0:R.getUrl)||IhI,E))?k:HA.prototype.resolveIcon.call(this,S,E)};
ZRa[au]=[_.mz(rET)];_.dVT=1;var K$=function(k,E){this.JSC$17438_commandHandler=k;this.innertubeTransportService=E};
_.y(K$,kp);K$.prototype.resolveCommand=function(k,E){var S=this,R,V,N;return _.c(function(h){return(R=_.W(k,V7d))?h.return(sbU(S,R,(V=E)==null?void 0:(N=V.form)==null?void 0:N.element)):h.return()})};
var sbU=function(k,E,S){E={profileCardContext:E.profileCardContext,profileOwnerExternalChannelId:E.profileOwnerExternalChannelId};var R=_.bg(I52);return _.qF(k.innertubeTransportService,E,R).then(function(V){if(!V)throw new _.LC("GetProfileCard failed");if(V=V.popupCommand){k.JSC$17438_commandHandler.resolveCommand(V,{form:{element:S}});_.Pq(_.JV(),66557);V=V==null?void 0:V.clickTrackingParams;var N=_.Wi();V&&N&&_.JV().graftServerVe(V,N)}})};
K$[au]=[_.t3,_.oR];var p$=function(){};
_.y(p$,kp);p$.prototype.resolveCommand=function(k){var E,S;return _.c(function(R){E=_.W(k,eCT);if(!E)return R.return();S=Number(E.enableDelayedPacfLoggingTvMs);if(isNaN(S)){var V=gM();uVY(V,E,0)}else uVY(gM(),E,S);_.KR(R)})};_.Ac=function(){};
_.y(_.Ac,kp);
_.Ac.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a;return _.c(function(T){R=_.W(k,ayz);N=(V=E.form)==null?void 0:V.element;J=(h=N)==null?void 0:h.closest("ytd-enforcement-message-view-model");if(!R||!J)return T.return();S.allowAdsAction||(m=R.fundingChoiceInstructionPageUrl,S.allowAdsAction=new Ng5(window,_.dv(m)));var w=S.allowAdsAction;w.wallElement=J;w.allowAdsPopup.style.setProperty("display","flex","important");var P=w.scrollManager;P.originalBodyOverflow=P.JSC$9995_domHelper.JSC$9321_document_.body.style.overflow;P.JSC$9995_domHelper.JSC$9321_document_.body.style.overflow=
"hidden";w.wallElement.style.setProperty("display","none","important");Tv4(w.accessibilityManager,w.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((a=S.allowAdsAction.allowAdsPopup)&&a instanceof HTMLElement)for(w=_.n(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),P=w.next();!P.done;P=w.next()){var B=_.n(P.value);P=B.next().value;B=B.next().value;a.style.setProperty(P,B)}_.KR(T)})};
_.Ac.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var ri=function(){};
_.y(ri,kp);ri.prototype.resolveCommand=function(k){var E;return _.c(function(S){E=_.W(k,BRp);if(!E)return S.return();HdC(k);_.KR(S)})};var leT=new _.QE("SESSION_STORAGE");var u0=function(k){this.sessionStorage=k("conversations")};
_.y(u0,kp);u0.prototype.resolveCommand=function(k){var E=this,S;return _.c(function(R){S=_.W(k,Xg8);if(!S)return R.return();S.conversationId?E.sessionStorage.set("conversation_id",S.conversationId):E.sessionStorage.remove("conversation_id");_.KR(R)})};
u0[au]=[leT];var xU=function(k){this.JSC$17458_commandHandler=k};
_.y(xU,kp);
xU.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a;return _.c(function(T){if(T.nextAddress==1){S=_.W(k,d55);if((R=S)==null||!R.text||!navigator.clipboard)return T.return();_.F5(T,2);return T.yield(navigator.clipboard.writeText(S.text),4)}if(T.nextAddress!=2){if(!S.successActions||S.successActions.length===0)return T.return();V=_.n(S.successActions);for(N=V.next();!N.done;N=V.next())h=N.value,E.JSC$17458_commandHandler.resolveCommand(h);return _.Sv(T,0)}_.UY(T);if(!S.failureActions||S.failureActions.length===
0)return T.return();J=_.n(S.failureActions);for(m=J.next();!m.done;m=J.next())a=m.value,E.JSC$17458_commandHandler.resolveCommand(a);_.KR(T)})};
xU[au]=[_.t3];var L$=function(k){this.JSC$17462_commandHandler=k};
_.y(L$,kp);
L$.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P;return _.c(function(B){switch(B.nextAddress){case 1:R=_.W(k,ggC);if(!R)return B.return();_.F5(B,2);if(!R.imageBytes&&!R.imageUrl)throw Error("Hi");if(!R.imageUrl){if(R.imageBytes){N=R.imageBytes;h=N.replace(/-/g,"+").replace(/_/g,"/");var F=hFt(h);V=_.dk(F)}B.jumpTo(4);break}return B.yield(fetch(R.imageUrl),5);case 5:return J=B.yieldResult,B.yield(J.blob(),6);case 6:m=B.yieldResult,V=_.dk(m);case 4:w=(a=E)==null?void 0:(T=a.form)==
null?void 0:T.element;P=document.createElement("a");MU(P,V);w.appendChild(P);P.download="";P.click();w.removeChild(P);URL.revokeObjectURL(_.DF(V));R.successCommand&&S.JSC$17462_commandHandler.resolveCommand(R.successCommand);_.Sv(B,0);break;case 2:_.UY(B),R.errorCommand&&S.JSC$17462_commandHandler.resolveCommand(R.errorCommand),_.KR(B)}})};
L$[au]=[_.t3];var jg=function(k){this.store=k};
_.y(jg,kp);jg.prototype.resolveCommand=function(k){var E=this,S,R,V;return _.c(function(N){R=(S=_.W(k,_.k31))==null?void 0:S.entityBatchUpdate;if(!R)return N.jumpTo(0);V=Object.assign({},R,{mutations:[].concat(_.$e(R.mutations||[]))});return N.yield(_.I7(V,E.store),0)})};var MO2=function(k){this.JSC$17469_commandHandler=k;this.feedbackDialogMap=new Map};
MO2.prototype.openDialog=function(k,E){(k=this.feedbackDialogMap.get(k))&&this.JSC$17469_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:k}},E)};
MO2[au]=[_.t3];var D6=new _.QE("FEEDBACK_CONTROLLER_TOKEN");var $U=new _.QE("APP_STORE_TOKEN");var f$=function(k,E){this.store=k;this.controller=E};
_.y(f$,kp);f$.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M;return _.c(function(d){if(d.nextAddress==1){R=_.W(k,_.wy);if(N=(V=R)==null?void 0:V.contentId)for(J=_.n(((h=R)==null?void 0:h.actions)||[]),m=J.next();!m.done;m=J.next())a=m.value,qYT(S,a,N);P=(T=E)==null?void 0:(w=T.form)==null?void 0:w.element;return d.yield(_.Qw(P,[k,{impression:(B=E)==null?void 0:B.disableClickTracking}]).catch(function(){}),2)}F=d.yieldResult;
((K=F)==null?0:(r=K.data)==null?0:(x=r.feedbackResponses)==null?0:x.length)&&(q=(L=F.data.feedbackResponses[0])==null?void 0:L.followUpDialog)&&N&&(M=S.controller)!=null&&M.feedbackDialogMap.set(N,q);_.KR(d)})};
var qYT=function(k,E,S){var R=_.W(E,_.CI);if(R){R=_.n(R.commands||[]);for(var V=R.next();!V.done;V=R.next())qYT(k,V.value,S)}_.W(E,_.WF)&&k.store.dispatch(_.mj("commandEntity",CPj(S),{key:S,command:E}));_.W(E,cfC)&&k.store.dispatch(_.mj("commandEntity",CPj(S),{key:S,command:E}))};
f$[au]=[$U,D6];var vA=function(k){this.controller=k};
_.y(vA,kp);vA.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h;return _.c(function(J){R=_.W(k,_.zU);N=(V=R)==null?void 0:V.targetId;if(((h=R)==null?void 0:h.signal)!=="TELL_US_WHY"||!N)return J.return();S.controller.openDialog(N,E);_.KR(J)})};
vA[au]=[D6];var b0=function(k){this.store=k};
_.y(b0,kp);b0.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a;return _.c(function(T){R=_.W(k,CVe);N=(V=R)==null?void 0:V.contentId;m=(h=E)==null?void 0:(J=h.form)==null?void 0:J.element;a=_.Qw(m,[k]);N&&S.undo(N);return T.yield(a,0)})};
b0.prototype.undo=function(k){this.store.dispatch(_.mj("commandEntity",CPj(k),{key:k,command:void 0}))};
b0[au]=[$U];var Z6=function(k){this.JSC$17484_commandHandler=k};
_.y(Z6,kp);Z6.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a;return _.c(function(T){S=_.W(k,vDC);R=S.flowStateKey;V=S.validationFailureCommand;N=S.submitValidFormCommand;h=VSm(_.xz,[R||""]);J=_.W(h,dlz);((m=J)==null?0:m.isValid)&&N&&E.JSC$17484_commandHandler.resolveCommand(N);((a=J)==null?0:a.isValid)||!V||E.JSC$17484_commandHandler.resolveCommand(V);_.KR(T)})};
Z6[au]=[_.t3];var di=function(k){this.innertubeTransportService=k};
_.y(di,kp);di.prototype.resolveCommand=function(k,E){var S=this,R;return _.c(function(V){return V.yield(_.xv(S.innertubeTransportService,k,(R=E)==null?void 0:R.form).then(function(N){var h,J;E==null||(h=E.commandController)==null||(J=h.onSuccess)==null||J.call(h,k,N)},function(N){var h,J;
E==null||(h=E.commandController)==null||(J=h.onServerError)==null||J.call(h,k,N)}),0)})};
di[au]=[_.oR];var s1=function(){};
_.y(s1,kp);s1.prototype.resolveCommand=function(k){var E,S,R,V;return _.c(function(N){if(E=_.W(k,_.jxd)){if(S=E.gtmId)R=_.Mg("GL",""),_.$N(S,R);(V=E.gtmData)&&_.fM(V)}_.KR(N)})};var l0=function(k,E,S){this.innertubeTransportService=k;this.JSC$17495_actionRouter=E;this.JSC$17495_screenManager=S};
_.y(l0,kp);l0.prototype.resolveCommand=function(k){var E=this,S,R;return _.c(function(V){S=_.W(k,DNC);if(!S)return V.return();R=S.command;if(!R)return V.return();E.JSC$17495_actionRouter.triggerAction("yt-insert-rich-section-action",S);return V.yield(_.xv(E.innertubeTransportService,R,{disableCache:!0}).then(function(N){k.clickTrackingParams&&(N==null?0:N.trackingParams)&&E.JSC$17495_screenManager.graftServerVe(N.trackingParams,_.tV(k.clickTrackingParams))}),0)})};
l0[au]=[_.oR,Iq,_.fG];cmI.bind(null,EW);var z5W=cmI.bind(null,QkY);eFh.bind(null,EW);var QbA=eFh.bind(null,QkY);tUm.bind(null,EW);var ORI=tUm.bind(null,QkY);var M9=function(){};
_.y(M9,kp);
M9.prototype.resolveCommand=function(k){var E,S,R,V,N,h,J,m,a,T;return _.c(function(w){E=_.W(k,Wsd);if(!E)return w.return();R=((S=E.operations)==null?void 0:S.operations)||[];V=_.n(R);for(N=V.next();!N.done;N=V.next())if(h=N.value,h.insertItemSectionContent){var P=h.insertItemSectionContent,B=P.contents||[];P.insertByPositionInSection?z5W(P.insertByPositionInSection.sectionTargetId,B,P.insertByPositionInSection.position):P.insertByRelativePositionInSection&&P.insertByRelativePositionInSection.sectionTargetId&&P.insertByRelativePositionInSection.itemTargetId&&
QbA(P.insertByRelativePositionInSection.sectionTargetId,P.insertByRelativePositionInSection.itemTargetId,B,P.insertByRelativePositionInSection.relativePosition)}else h.replaceSection?(P=h.replaceSection,B={},P.replaceByTargetId?B=P.replaceByTargetId:P.replaceByGroupId&&(B={targetId:P.replaceByGroupId.groupId,newContent:P.replaceByGroupId.newContent,undoKey:""}),B.newContent&&CxA(B.targetId,{continuationItems:[B.newContent]})):h.removeItem?(P=h.removeItem,P.removeByTargetId&&P.sectionTargetId&&ORI(P.sectionTargetId,
P.removeByTargetId.targetIds||[])):h.removeSection&&(h.removeSection.removeByTargetId?(J=void 0,GPY(((J=h.removeSection)==null?void 0:J.removeByTargetId.targetIds)||[])):h.removeSection.removeByGroupId&&(m=void 0,GPY(((m=h.removeSection)==null?void 0:m.removeByGroupId.groupIds)||[])));T=((a=E.operations)==null?void 0:a.scrollConfig)||{};CtP(T);_.KR(w)})};
var GPY=function(k){k=_.n(k);for(var E=k.next();!E.done;E=k.next())CxA(E.value,{continuationItems:[]})},CtP=function(k){if(k.scrollToItem){var E=k.scrollToItem.item||{},S=E.itemTargetId;
E=E.sectionTargetId;if(S&&E){var R=document.querySelector("[data-target-id="+E+"]"),V=R==null?void 0:R.querySelector("[data-target-id="+S+"]");R&&V&&setTimeout(function(){var N=V.offsetTop-R.offsetTop,h;if(((h=k.scrollToItem)==null?void 0:h.scrollPosition)==="SCROLL_POSITION_CENTER")N-=R.offsetHeight/2,N+=V.offsetHeight/2;else{var J;((J=k.scrollToItem)==null?void 0:J.scrollPosition)==="SCROLL_POSITION_END"&&(N-=R.offsetHeight,N+=V.offsetHeight)}R.scroll({top:N,behavior:"smooth"})},100)}}};var q9=new _.QE("CLIENT_NAME_TOKEN");var koU=new _.QE("DEFAULT_STORE_EXPIRATION_TOKEN");var eTm=new _.QE("CLIENT_LOCATION_SERVICE_TOKEN");var zH=function(k,E,S){this.clientName=k||_.Mg("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=E||_.wV.getInstance();this.JSC$17523_commandHandler=S||_.V_.instance};
_.y(zH,kp);zH.prototype.resolveCommand=function(k){var E=this,S,R;return _.c(function(V){R=(S=_.W(k,S7d))==null?void 0:S.onComplete;E.clientLocationService.clearLocationPlayabilityToken(E.clientName);R&&E.JSC$17523_commandHandler.resolveCommand(R);_.KR(V)})};
zH[au]=[q9,eTm,_.t3];var Q0=function(k){this.innertubeTransportService=k};
_.y(Q0,kp);Q0.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h;return _.c(function(J){N=(R=E)==null?void 0:(V=R.form)==null?void 0:V.element;return J.yield(_.xv(S.innertubeTransportService,k,(h=E)==null?void 0:h.form).then(function(m){tCm(N,new CustomEvent("yt-service-request-completed"),{data:m},_.Mg("openPopupConfig"))}),0)})};
Q0[au]=[_.oR];var O1=function(){};
_.y(O1,kp);O1.prototype.resolveCommand=function(k){var E,S;return _.c(function(R){E=_.W(k,q9C);S=document.querySelector("mini-app-container-view-model");if(!E||!S)return R.return();E.isPlaying?S.dispatchEvent(new Event("play")):S.dispatchEvent(new Event("pause"));_.KR(R)})};var GH=function(){};
_.y(GH,kp);GH.prototype.resolveCommand=function(k){var E,S,R,V,N,h,J;return _.c(function(m){E=_.W(k,plp);if((S=E)==null||!S.paramKeys)return m.return();R=E.paramKeys;V=_.Gx(window.location.href);N=_.n(R);for(h=N.next();!h.done;h=N.next())J=h.value,V.JSC$10027_queryData_.remove(J);window.history.replaceState(window.history.state,document.title,V.toString());_.KR(m)})};var EyW=function(){this.dropdownMap=new Map};_.SoT=new _.QE("DROPDOWN_CONTROLLER_TOKEN");var C$=function(k){this.controller=k};
_.y(C$,kp);C$.prototype.resolveCommand=function(k){var E=this,S,R,V,N;return _.c(function(h){S=_.W(k,iyp);if(!S)return h.return();R=S;V=R.dropdownId;N=R.selectedOptionIndex;if(V===void 0||N===void 0)return h.return();var J=E.controller.dropdownMap.get(V);J&&J(N);_.KR(h)})};
C$[au]=[_.SoT];var kd=function(k){this.controller=k};
_.y(kd,kp);kd.prototype.resolveCommand=function(k){var E=this,S;return _.c(function(R){return(S=_.W(k,T_C))?R.yield(E.controller.closeDialog(),0):R.return()})};
kd[au]=[_.v3];var S3=function(k){this.controller=k};
_.y(S3,kp);S3.prototype.resolveCommand=function(k){var E=this,S,R;return _.c(function(V){S=_.W(k,CfC);if(!S)return V.return();var N,h=S.panelIdentifier||((N=S.identifier)==null?void 0:N.tag);if(!h)throw Error("Ii");return(R=h)?V.yield(E.controller.hidePanel(R),0):V.jumpTo(0)})};
S3[au]=[_.$g];var Rj=function(k){this.controller=k};
_.y(Rj,kp);Rj.prototype.resolveCommand=function(k){var E=this,S;return _.c(function(R){return(S=_.W(k,vg5))?R.yield(E.controller.closeSheet(),0):R.return()})};
Rj[au]=[_.f6];var Vl=function(k,E){this.innertubeTransportService=k;this.controller=E};
_.y(Vl,kp);Vl.prototype.resolveCommand=function(k){var E=this,S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return S=_.W(k,kMA),(R=S)!=null&&R.panelId?h.yield(E.controller.getReloadContinuation(S.panelId),2):h.return();if(h.nextAddress!=3)return(V=h.yieldResult)?h.yield(_.xv(E.innertubeTransportService,k,{continuation:V}),3):h.return();N=h.yieldResult;return h.yield(E.controller.updatePanel({identifier:S.panelId,panelContents:N.content,shouldFocus:!1}),0)})};
Vl[au]=[_.oR,_.$g];var NE=function(k,E,S){this.innertubeTransportService=k;this.JSC$17564_screenManager=E;this.JSC$17564_commandHandler=S};
_.y(NE,kp);
NE.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J;return _.c(function(m){if(m.nextAddress==1){S=_.W(k,_.MMY);if(!S)return m.return();if(S.commands)for(R=_.n(S.commands),V=R.next();!V.done;V=R.next())N=V.value,E.JSC$17564_commandHandler.resolveCommand(N,{disableClickTracking:!0});h=_.tV(k.clickTrackingParams);_.Pq(E.JSC$17564_screenManager,21760,h,{layer:7,parentLayer:0});return m.yield(_.xv(E.innertubeTransportService,k),2)}J=m.yieldResult;if(!J)return m.return();E.JSC$17564_screenManager.graftServerVe(J.trackingParams,h,
7);_.KR(m)})};
NE[au]=[_.oR,_.fG,_.t3];var Ij=new _.QE("PANEL_LOADING_STRATEGY_TOKEN");var nd=function(k,E){this.controller=k;this.panelLoadingStrategy=E};
_.y(nd,kp);
nd.prototype.resolveCommand=function(k,E){var S=this,R,V,N;return _.c(function(h){R=_.W(k,Z6d);if((V=R)==null||!V.panelLoadingStrategy)return h.return();N=function(J){var m,a,T,w,P,B,F,K,r,x;return _.c(function(L){a=_.W((m=J.dialogViewModel)==null?void 0:m.header,hbd);T={viewModel:J.dialogViewModel};w={};if(F=_.Y("web_enable_dialog_header_label")?(P=a)==null?void 0:(B=P.headline)==null?void 0:B.content:void 0)w.ariaLabel=F;R.dismissOnBackgroundTap===!1&&(w.isModal=!0);return J.dialogViewModel?L.yield(S.controller.openDialog(T,
(x=(K=E)==null?void 0:(r=K.form)==null?void 0:r.element)!=null?x:document.body,w),0):L.return()})};
return h.yield(S.panelLoadingStrategy.execute({command:k,data:R.panelLoadingStrategy,renderFn:N,createScreenConfig:{layer:4}}),0)})};
nd[au]=[_.v3,Ij];var io=function(k,E,S){this.innertubeTransportService=k;this.controller=E;this.JSC$17584_screenManager=S};
_.y(io,kp);
io.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x;return _.c(function(L){switch(L.nextAddress){case 1:R=_.W(k,_.Te);if(!R)return L.return();var q,M=R.panelIdentifier||((q=R.identifier)==null?void 0:q.tag);if(!M)throw Error("Ii");V=M;return L.yield(S.controller.isVisible(V,!0),2);case 2:if((N=L.yieldResult)&&R.blockIfPanelOpen)return L.return();m=(J=(h=S.controller).getPanelContent)==null?void 0:J.call(h,V);if(!(q=m))if(R){var d;q=((d=R.globalConfiguration)==null?void 0:
d.initialState)||R.engagementPanel;if(d=!q)d=!!(R==null?0:(M=R.engagementPanelPresentationConfigs)==null?0:M.engagementPanelPopupPresentationConfig);d&&(q=_.Tsl(R.panelIdentifier,R.identifier))}else q=void 0;a=q;T=R.engagementPanelPresentationConfigs;w=R.engagementPanelExtras;return L.yield(S.controller.showPanel({identifier:V,panelContents:a,config:T,extras:w,target:(P=E)==null?void 0:(B=P.form)==null?void 0:B.element}),3);case 3:if(!R.globalConfiguration){L.jumpTo(0);break}if(R.globalConfiguration.reuseModelAndState&&
_.Y("enable_ai_companion")&&(r=(K=(F=S.controller).getPanelContent)==null?void 0:K.call(F,V)))return L.return();_.Pq(S.JSC$17584_screenManager,32633);return L.yield(_.xv(S.innertubeTransportService,k),5);case 5:return x=L.yieldResult,S.JSC$17584_screenManager.graftServerVe(x.trackingParams),L.yield(S.controller.updatePanel({identifier:V,panelContents:x.content,shouldFocus:!0,extras:w,updatePanelContinuationData:x.updatePanelContinuationData}),0)}})};
io[au]=[_.oR,_.$g,_.fG];var hT=function(k,E){this.controller=k;this.panelLoadingStrategy=E};
_.y(hT,kp);hT.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T;return _.c(function(w){R=_.W(k,_.Jl1);if((V=R)==null||!V.panelLoadingStrategy)return w.return();J=RhY(S.controller,(N=E)==null?void 0:(h=N.form)==null?void 0:h.element);a=(m=R.contextualSheetPresentationConfig)==null?void 0:m.position;T=function(P){return _.c(function(B){return P.sheetViewModel?B.yield(S.controller.openSheet({viewModel:P.sheetViewModel,sheetPosition:a},J),0):B.return()})};
return w.yield(S.panelLoadingStrategy.execute({command:k,data:R.panelLoadingStrategy,renderFn:T,createScreenConfig:{layer:0}}),0)})};
hT[au]=[_.f6,Ij];var JT=function(k,E){this.controller=k;this.JSC$17595_commandHandler=E};
_.y(JT,kp);JT.prototype.resolveCommand=function(k,E){var S=this,R,V,N;return _.c(function(h){if(h.nextAddress==1){R=_.W(k,VM4);var J=_.W(R.showCommand,_.Te),m,a,T=(a=J==null?void 0:J.panelIdentifier)!=null?a:J==null?void 0:(m=J.identifier)==null?void 0:m.tag;if(!T)throw Error("Ji");V=T;return h.yield(S.controller.isVisible(V),2)}return(N=h.yieldResult)?h.yield(S.controller.hidePanel(V),0):h.yield(S.JSC$17595_commandHandler.resolveCommand(R.showCommand,E),0)})};
JT[au]=[_.$g,_.t3];var cG=function(k,E,S){this.innertubeTransportService=k;this.controller=E;this.JSC$17598_screenManager=S};
_.y(cG,kp);
cG.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z,kb;return _.c(function(TI){switch(TI.nextAddress){case 1:return R=S=_.W(k,iGd),V=R.targetPanelIdentifier,N=R.contentSourcePanelIdentifier,h=R.globalConfiguration,((J=V)==null?0:J.tag)&&((m=N)==null?0:m.tag)?h?TI.yield(E.controller.showPanel({identifier:V.tag,panelContents:_.Tsl(V.tag,V)}),5):TI.yield((P=(w=E.controller).getPanel)==null?void 0:P.call(w,N.tag),4):TI.return();case 4:B=TI.yieldResult;a=(F=B)==
null?void 0:(r=(K=F).getPanelContent)==null?void 0:r.call(K);TI.jumpTo(3);break;case 5:return TI.yield(_.xv(E.innertubeTransportService,k),6);case 6:x=TI.yieldResult,((L=x)==null?0:L.trackingParams)&&E.JSC$17598_screenManager.graftServerVe(x.trackingParams),a=(q=x)==null?void 0:q.content,T=(M=x)==null?void 0:M.updatePanelContinuationData;case 3:if(z=(d=a)==null?void 0:d.engagementPanelSectionListRenderer)return TI.yield(E.controller.showPanel({identifier:V.tag,panelUpdatableFields:{content:z.content,
secondaryHeaderContent:(kb=z.header)!=null?kb:{},targetId:z.targetId},updatePanelContinuationData:T}),0);TI.jumpTo(0)}})};
cG[au]=[_.oR,_.$g,_.fG];var mX=function(){};
_.y(mX,kp);mX.prototype.resolveCommand=function(k){var E,S,R;return _.c(function(V){if(V.nextAddress==1)return(E=_.W(k,mFY))?V.yield(_.Ef(),2):V.return();S=V.yieldResult;if(!S)return V.return();var N=S,h=(R=E)==null?void 0:R.languageCode,J;(N==null?0:(J=N.isReady)==null?0:J.call(N))&&(h=wRi(N,h))&&N.setAudioTrack(h);_.KR(V)})};var e3=function(){};
_.y(e3,kp);var V1I=function(k){var E;return _.c(function(S){E=_.Mg("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;k.JSC$17609_mainAppPlayer=new i6(E);document.addEventListener("yt-page-data-updated",k.JSC$17609_pauseOnNavigation.bind(k));_.KR(S)})};
e3.prototype.JSC$17609_pauseOnNavigation=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1)return E=k.JSC$17609_mainAppPlayer,R.yield(E.api,2);S=R.yieldResult;S.pauseVideo();_.KR(R)})};
var NTP=function(k,E,S){var R;return _.c(function(V){R=k.JSC$17609_mainAppPlayer;return V.yield(R.loadVideoWithPlayerVars({videoId:E,audio_only:"1",player_params:S}),0)})};
e3.prototype.pauseVideo=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1)return E=k.JSC$17609_mainAppPlayer,R.yield(E.api,2);S=R.yieldResult;S.pauseVideo();_.KR(R)})};
e3.prototype.playVideo=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1)return E=k.JSC$17609_mainAppPlayer,R.yield(E.api,2);S=R.yieldResult;S.playVideo();_.KR(R)})};
var IB2=function(k){var E,S;return _.c(function(R){if(R.nextAddress==1)return E=k.JSC$17609_mainAppPlayer,R.yield(E.api,2);S=R.yieldResult;S.mute();_.KR(R)})},nyA=function(k){var E,S;
return _.c(function(R){if(R.nextAddress==1)return E=k.JSC$17609_mainAppPlayer,R.yield(E.api,2);S=R.yieldResult;S.unMute();_.KR(R)})},iOx=function(k,E){return _.c(function(S){switch(S.nextAddress){case 1:switch(E){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return S.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return S.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return S.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return S.jumpTo(5)}S.jumpTo(0);break;case 2:return S.yield(k.playVideo(),7);case 7:S.jumpTo(0);break;case 3:return S.yield(k.pauseVideo(),8);case 8:S.jumpTo(0);break;case 4:return S.yield(IB2(k),9);case 9:S.jumpTo(0);break;case 5:return S.yield(nyA(k),10);case 10:S.jumpTo(0)}})};
e3.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P;return _.c(function(B){return B.nextAddress==1?(S=_.W(k,fq5),((R=S)==null?0:R.newPlaybackParams)||((V=S)==null?0:V.controlAction)?E.JSC$17609_mainAppPlayer?B.jumpTo(2):B.yield(V1I(E),2):B.return()):((N=S)==null?0:N.newPlaybackParams)?(m=(h=S)==null?void 0:(J=h.newPlaybackParams)==null?void 0:J.externalVideoId,P=(w=(a=S)==null?void 0:(T=a.newPlaybackParams)==null?void 0:T.playerParams)!=null?w:"",m?B.yield(NTP(E,m,P),0):B.return()):
B.yield(iOx(E,S.controlAction),0)})};var aj=function(k){this.JSC$17616_commandHandler=k};
_.y(aj,kp);
aj.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J;return _.c(function(m){if(m.nextAddress==1)return(S=_.W(k,efC))?m.yield(_.Ef(),2):m.return();R=m.yieldResult;if(!R)return m.return();var a=R,T=(V=S)==null?void 0:V.languageCode,w=(N=S)==null?void 0:N.isAutoTranslated;a.getVideoData&&_.Bsl(a).length&&((T=Wnj(a,T,w))?a.setOption("captions","track",T):(a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{})));h=R.isSubtitlesOn()?_.Vi("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Vi("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");J=_.d8(h,5E3);E.JSC$17616_commandHandler.resolveCommand(J);_.KR(m)})};
aj[au]=[_.t3];var tT=function(k,E){this.shortsPlayerPromise=k;this.JSC$17620_commandHandler=E};
_.y(tT,kp);
tT.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a;return _.c(function(T){if(T.nextAddress==1)return(S=_.W(k,x5Y))?T.yield(E.shortsPlayerPromise,2):T.return();R=T.yieldResult;var w=Fne(R);w!=null&&w.length||(R.loadModule("captions"),w=Fne(R));V=w;if((N=V)==null||!N.length)return h=_.Vi("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),J=_.d8(h),E.JSC$17620_commandHandler.resolveCommand(J),T.return();R.toggleSubtitles();m=R.isSubtitlesOn()?_.Vi("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Vi("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");a=_.d8(m);E.JSC$17620_commandHandler.resolveCommand(a);_.KR(T)})};
tT[au]=[_.Hbd,_.t3];var Tv=function(k){this.JSC$17623_actionRouter=k;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(E,S){E.triggerAction("yt-dismiss-shopping-timely-shelf-action",S)}]])};
_.y(Tv,kp);Tv.prototype.resolveCommand=function(k){var E=this,S,R,V;return _.c(function(N){S=_.W(k,wq4);if((R=S)==null||!R.overlayId)return N.return();V=E.dismissPlayerOverlayActions.get(S.overlayId);if(!V)throw Error("Ki`"+S.overlayId);V(E.JSC$17623_actionRouter,S);_.KR(N)})};
Tv[au]=[Iq];var wo=function(k){this.JSC$17627_playerPromise=k};
_.y(wo,kp);wo.prototype.resolveCommand=function(k){var E=this,S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return(S=_.W(k,SE5))?h.yield(E.JSC$17627_playerPromise,2):h.return();R=h.yieldResult;V=R.getVideoData().video_id;S.videoId===V&&(N=Number(S.offsetFromVideoStartMilliseconds),N>=0&&R.seekTo(N/1E3));_.KR(h)})};
wo[au]=[_.QQ];var hhG=_.kn("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),PG=function(k){this.store=k};
_.y(PG,kp);
var JxG=function(k){var E,S,R,V;return _.c(function(N){if(N.nextAddress==1)return E=_.Mg("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,S=_.Mg("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,R=E||S,k.JSC$17631_mainAppPlayer=new i6(R),N.yield(k.JSC$17631_mainAppPlayer.api,2);V=N.yieldResult;V.addEventListener("onStateChange",k.JSC$17631_playerStateChangeListener.bind(k));document.addEventListener("yt-page-data-updated",k.JSC$17631_pauseOnNavigation.bind(k));window.addEventListener("state-navigatestart",
k.JSC$17631_pauseOnNavigation.bind(k));_.KR(N)})};
PG.prototype.JSC$17631_playerStateChangeListener=function(k){switch(k){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"}cxY(this)};
var cxY=function(k){k.store.dispatch(_.mj("sfvAudioItemCurrentlyPlayingEntity",hhG,{key:hhG,externalVideoId:k.externalVideoId,sfvAudioItemPlaybackState:k.playbackState,nowPlayingEntityValue:k.nowPlayingEntityValue}))};
PG.prototype.JSC$17631_pauseOnNavigation=function(){var k=this,E,S,R,V;return _.c(function(N){if(N.nextAddress==1){if(!k.JSC$17631_mainAppPlayer){var h=new _.LC("Error: mainAppPlayer is unavailable",k.JSC$17631_mainAppPlayer);_.bM(h);return N.return()}return N.yield(k.JSC$17631_mainAppPlayer.api,2)}E=N.yieldResult;R=(S=E)==null?void 0:S.getPlayerState();R!==1||(V=E)!=null&&V.pauseVideo();_.KR(N)})};
PG.prototype.playVideo=function(k,E,S){var R=this,V,N;return _.c(function(h){if(h.nextAddress==1)return h.yield((V=R.JSC$17631_mainAppPlayer)==null?void 0:V.api,2);N=h.yieldResult;if(!R.JSC$17631_mainAppPlayer||!N){var J=new _.LC("Error: mainAppPlayer is unavailable",R.JSC$17631_mainAppPlayer);_.bM(J);return h.return()}return h.yield(R.JSC$17631_mainAppPlayer.loadVideoWithPlayerVars({videoId:R.externalVideoId,audio_only:"1",start:k/1E3,end:k/1E3+E,player_params:S}),0)})};
PG.prototype.pauseVideo=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1){if(!k.JSC$17631_mainAppPlayer){var V=new _.LC("Error: mainAppPlayer is unavailable",k.JSC$17631_mainAppPlayer);_.bM(V);return R.return()}return R.yield(k.JSC$17631_mainAppPlayer.api,2)}E=R.yieldResult;(S=E)==null||S.pauseVideo();_.KR(R)})};
PG.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M;return _.c(function(d){if(d.nextAddress==1)return S=_.W(k,p55),V=(R=S)==null?void 0:R.nowPlayingEntityValue,h=(N=S)==null?void 0:N.externalVideoId,w=Number((T=(J=S)==null?void 0:(m=J.defaultStartPoints)==null?void 0:(a=m[0])==null?void 0:a.offsetMs)!=null?T:"0"),x=Number((r=(P=S)==null?void 0:(B=P.defaultStartPoints)==null?void 0:(F=B[0])==null?void 0:(K=F.duration)==null?void 0:K.seconds)!=null?r:"15"),M=(q=
(L=S)==null?void 0:L.playerParams)!=null?q:"",V&&h?E.JSC$17631_mainAppPlayer?d.jumpTo(2):d.yield(JxG(E),2):d.return();if(d.nextAddress!=6){if(E.nowPlayingEntityValue&&V===E.nowPlayingEntityValue)return E.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?d.yield(E.pauseVideo(),0):d.yield(E.playVideo(w,x,M),0);E.externalVideoId=h;E.nowPlayingEntityValue=V;E.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return d.yield(E.playVideo(w,x,M),6)}cxY(E);return d.jumpTo(0)})};
PG[au]=[ZI];var BG=function(k){this.JSC$17649_commandHandler=k};
_.y(BG,kp);BG.prototype.resolveCommand=function(k,E){var S=this,R,V,N;return _.c(function(h){if(h.nextAddress==1)return(R=_.W(k,aa4))?h.yield(_.Ef(),2):h.return();V=h.yieldResult;if(!V)return h.return();(N=ymA(V))&&S.JSC$17649_commandHandler.resolveCommand(N,E);_.KR(h)})};
BG[au]=[_.t3];var Yd=function(k){this.JSC$17655_commandHandler=k};
_.y(Yd,kp);Yd.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J;return _.c(function(m){if(m.nextAddress==1)return(R=_.W(k,tKA))?m.yield(_.Ef(),2):m.return();V=m.yieldResult;if(!V)return m.return();(N=HBj(V))?S.JSC$17655_commandHandler.resolveCommand(N,E):(h=_.Vi("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),J=_.d8(h),S.JSC$17655_commandHandler.resolveCommand(J));_.KR(m)})};
Yd[au]=[_.t3];var WG=function(k){this.JSC$17658_playerPromise=k};
_.y(WG,kp);WG.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h;return _.c(function(J){if(J.nextAddress==1){S=_.W(k,RVd);if(!S)return J.return();R=S.overlayRenderer;return R?(V=_.W(R,Xl5))?J.yield(E.JSC$17658_playerPromise,3):J.jumpTo(0):J.return()}N=J.yieldResult;N.renderChapterSeekingAnimation(1,_.$n(V.text),(h=V.icon)==null?void 0:h.iconType);_.KR(J)})};
WG[au]=[_.QQ];var FL=function(k){this.store=k};
_.y(FL,kp);
FL.prototype.resolveCommand=function(k){var E=this,S,R,V;return _.c(function(N){if(N.nextAddress==1){S=_.W(k,vx4);if(!S)return N.return();R="";(V=E.store.getState().collabInviteLink)&&S.id===V.playlistId?R=V.inviteLinkURL:S.shortUrl&&(R=S.shortUrl);return R?N.yield(navigator.clipboard.writeText(R),3):N.jumpTo(0)}var h={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Vi("COPY_LINK_SUCCESS_TOAST")}}}}};_.en().resolve(_.t3).resolveCommand(h);_.KR(N)})};
FL[au]=[$U];var yl=function(k,E){this.innertubeTransportService=k;this.JSC$17668_commandHandler=E};
_.y(yl,kp);yl.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P;return _.c(function(B){if(B.nextAddress==1)return(R=_.W(k,_.Mz))?B.yield(_.xv(S.innertubeTransportService,k,(V=E)==null?void 0:V.form),2):B.return();(N=B.yieldResult)&&N.errorMetadata&&(h=N,J=_.d8(h.error.message),S.JSC$17668_commandHandler.resolveCommand(J));m=N;if((a=m)==null?0:a.actions)for(T=_.n(m.actions),w=T.next();!w.done;w=T.next())P=w.value,S.JSC$17668_commandHandler.resolveCommand(P);_.KR(B)})};
yl[au]=[_.oR,_.t3];var oj=function(){};
_.y(oj,kp);oj.prototype.resolveCommand=function(k){var E;return _.c(function(S){E=_.W(k,pDd);if(!E)return S.return();(new X$2(E)).show();_.KR(S)})};_.XL=new _.QE("PLAYLIST_EDIT_CONTROLLER_TOKEN");var go=function(k,E,S,R){this.store=k;this.innertubeTransportService=E;this.controller=S;this.JSC$17676_commandHandler=R};
_.y(go,kp);
go.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z,kb,TI,a1,Ah,th,He;return _.c(function(ve){if(ve.nextAddress==1){R=_.W(k,_.vF);if(!R)return ve.return();if(R.clientActions){V=_.n(R.clientActions);for(N=V.next();!N.done;N=V.next())h=N.value,S.JSC$17676_commandHandler.resolveCommand(h);var Xm,U5=E==null?void 0:(Xm=E.form)==null?void 0:Xm.element;U5&&_.Me(U5,"yt-dismissible-item-action",R.clientActions)}return ve.yield(_.xv(S.innertubeTransportService,k,(J=
E)==null?void 0:J.form),2)}if(m=ve.yieldResult)m.errorMetadata?(a=m,T=_.d8(a.error.message),S.JSC$17676_commandHandler.resolveCommand(T),"error"in m&&((w=E)==null?0:(P=w.commandController)==null?0:P.onServerError)&&((B=E)==null||(F=B.commandController)==null||F.onServerError(k,m))):(K=E)==null||(r=K.commandController)==null||(L=(x=r).onSuccess)==null||L.call(x,k,m);q=m;((M=q)==null?0:M.collaborationInviteLink)&&R.playlistId&&(_.Y("web_enable_invite_collaborators_link")||_.Y("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
S.store.dispatch(_.zX({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:R.playlistId,inviteLinkUrl:q.collaborationInviteLink}}));((d=q)==null?0:d.redirectEndpoint)&&S.JSC$17676_commandHandler.resolveCommand(q.redirectEndpoint);((z=q)==null?0:(kb=z.newHeader)==null?0:kb.playlistHeaderRenderer)?mjP(S.controller,q.newHeader.playlistHeaderRenderer):((TI=q)==null?0:(a1=TI.newHeader)==null?0:a1.musicEditablePlaylistDetailHeaderRenderer)&&mjP(S.controller,q.newHeader.musicEditablePlaylistDetailHeaderRenderer);
S.controller.playlistVideoListElement&&((Ah=q)==null?0:(th=Ah.playlistEditResults)==null?0:(He=th[0])==null?0:He.playlistEditVideoAddedResultData)&&((U5=S.controller.playlistVideoListElement)==null||U5.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:q.playlistEditResults[0].playlistEditVideoAddedResultData})));_.KR(ve)})};
go[au]=[$U,_.oR,_.XL,_.t3];var UM=function(k,E){this.controller=k;this.JSC$17686_commandHandler=E};
_.y(UM,kp);UM.prototype.resolveCommand=function(k,E){var S=this,R,V,N;return _.c(function(h){R=_.W(k,bFd);S.controller.showRefreshPill&&((V=R)==null?0:V.command)&&(S.JSC$17686_commandHandler.resolveCommand((N=R)==null?void 0:N.command,E),S.controller.showRefreshPill=!1);_.KR(h)})};
UM[au]=[_.Wj,_.t3];var HG=function(k,E){this.store=k;this.JSC$17690_commandHandler=E||_.V_.instance};
_.y(HG,kp);HG.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P;return _.c(function(B){R=_.W(k,S9Y);V=S.store.getState().radioButtonGroup;if((N=R)==null?0:N.command)S.JSC$17690_commandHandler.resolveCommand((h=R)==null?void 0:h.command,E);else if(V&&((J=R)==null?void 0:J.formId)===V.currentFormId)for(m=Object.values(V.commandsMap),a=_.n(m),T=a.next();!T.done;T=a.next())w=T.value,(P=_.Uk(w))&&S.JSC$17690_commandHandler.resolveCommand(P,E);_.KR(B)})};
HG[au]=[_.q5];var Kd=new _.QE("USER_PREFS");var pd=function(k){this.JSC$17695_prefCookie=k};
_.y(pd,kp);pd.prototype.resolveCommand=function(k){var E=this,S;return _.c(function(R){(S=_.W(k,Fs8))&&typeof S.useListView==="boolean"&&(_.iD(0,155,S.useListView),E.JSC$17695_prefCookie.save());_.KR(R)})};
pd[au]=[Kd];var AT=function(k){this.JSC$17699_prefCookie=k};
_.y(AT,kp);AT.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h;return _.c(function(J){S=_.W(k,rHC);if((R=S)==null||!R.gl)return J.return();V=S.gl;N={persist_gl:"1",gl:V};E.JSC$17699_prefCookie.set("gl",V);E.JSC$17699_prefCookie.save();h=M1Y(N);_.xl(h);_.KR(J)})};
AT[au]=[Kd];var ro=function(k){this.JSC$17703_prefCookie=k};
_.y(ro,kp);ro.prototype.resolveCommand=function(k){var E=this,S,R;return _.c(function(V){S=_.W(k,d74);if(!S)return V.return();R=!1;S.flagNum&&typeof S.value==="boolean"?(_.iD(0,S.flagNum,S.value),R=!0):S.key&&typeof S.stringValue==="string"&&(E.JSC$17703_prefCookie.set(S.key,S.stringValue),R=!0);R&&E.JSC$17703_prefCookie.save();_.KR(V)})};
ro[au]=[Kd];var uo=new _.QE("PREF_STORAGE_PROMISE_TOKEN");var xd=function(k){this.JSC$17707_prefStoragePromise=k};
_.y(xd,kp);xd.prototype.resolveCommand=function(k){var E=this,S,R;return _.c(function(V){if(V.nextAddress==1)return(S=_.W(k,lqj))?V.yield(E.JSC$17707_prefStoragePromise,2):V.return();R=V.yieldResult;return R===void 0||S.key===void 0||S.value===void 0?V.return():V.yield(R.set(S.key,S.value),0)})};
xd[au]=[uo];var eh2=function(k){this.innertubeTransportService=k};
_.y(eh2,kp);eh2.prototype.resolveCommand=function(k,E){var S=this,R,V;return _.c(function(N){(R=_.W(k,_.kmd))&&R&&R.isFirstRequest&&(_.yi("search_overview_answer"),_.o_("so_rq",void 0,"search_overview_answer"));return N.yield(_.xv(S.innertubeTransportService,k,(V=E)==null?void 0:V.form),0)})};
eh2[au]=[_.oR];var aBT=function(){};
_.y(aBT,kp);
aBT.prototype.resolveCommand=function(k){var E,S,R,V,N,h,J,m,a;return _.c(function(T){E=_.W(k,EN4);if((S=E)==null?0:S.sectionIdentifier){if(E.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(V=(R=document.getElementsByTagName(E.sectionIdentifier))==null?void 0:R.item(0))V.scrollIntoView({behavior:"smooth"}),(N=JVj(V))&&N.focus({preventScroll:!0});return T.return()}h=document.querySelector("[section-identifier="+E.sectionIdentifier+"]");J=document.querySelector("[section-identifier="+E.referenceSectionIdentifier+
"]");if(!h)return T.return();m=E.verticalScrollOffsetDp?E.verticalScrollOffsetDp:0;J&&(m-=J.offsetTop);window.scrollTo({top:h.offsetTop+m,behavior:"smooth"});(a=JVj(h))&&a.focus({preventScroll:!0})}_.KR(T)})};var Ld=function(k){this.JSC$17719_commandHandler=k};
_.y(Ld,kp);
Ld.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m;return _.c(function(a){if(a.nextAddress==1){S=_.W(k,U1p);if(!S||!S.imageBytes||!navigator.clipboard)return a.return();if(S.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.bM(Error("Mi")),a.return();_.F5(a,2);V=(R=S)==null?void 0:R.imageBytes;N=V.replace(/-/g,"+").replace(/_/g,"/");h=hFt(N);J={};m=[new ClipboardItem((J[h.type]=h,J))];return a.yield(navigator.clipboard.write(m),4)}if(a.nextAddress!=2)return S.successCommand&&
E.JSC$17719_commandHandler.resolveCommand(S.successCommand),_.Sv(a,0);_.UY(a);S.errorCommand&&E.JSC$17719_commandHandler.resolveCommand(S.errorCommand);_.KR(a)})};
Ld[au]=[_.t3];var j3=function(k,E){this.innertubeTransportService=k;this.JSC$17723_commandHandler=E};
_.y(j3,kp);j3.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J;return _.c(function(m){if(m.nextAddress==1)return(R=_.W(k,H6j))?m.yield(_.xv(S.innertubeTransportService,k,(V=E)==null?void 0:V.form),2):m.return();(N=m.yieldResult)&&N.errorMetadata&&R.onFailureCommand&&S.JSC$17723_commandHandler.resolveCommand(R.onFailureCommand);h=N;((J=h)==null?0:J.shareCommand)&&S.JSC$17723_commandHandler.resolveCommand(h.shareCommand,E);_.KR(m)})};
j3[au]=[_.oR,_.t3];var DM=function(){};
_.y(DM,kp);DM.prototype.resolveCommand=function(k){var E,S;return _.c(function(R){E=_.W(k,$7p);if(!E||!navigator.share)return R.return();S={url:E.url};try{return R.return(navigator.share(S))}catch(V){}_.KR(R)})};var $d=function(){};
_.y($d,kp);$d.prototype.resolveCommand=function(){return _.c(function(k){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.KR(k)})};var fd=function(k){this.JSC$17733_navigationConfirmationService=k};
_.y(fd,kp);fd.prototype.resolveCommand=function(){var k=this;return _.c(function(E){k.JSC$17733_navigationConfirmationService.cancelPendingNavigation();_.KR(E)})};
fd[au]=[p6];var vG=function(k){this.JSC$17736_screenManager=k};
_.y(vG,kp);vG.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a;return _.c(function(T){V=(R=E.form)==null?void 0:R.event;h=(N=E.form)==null?void 0:N.element;if(!V)throw new _.LC("Event not passed in when resolving command");J=_.n(V.composedPath());for(m=J.next();!m.done;m=J.next())if(a=m.value,a.tagName==="YT-COPY-LINK-RENDERER")return a.copyUrlToClipboard(),h&&_.Ab(S.JSC$17736_screenManager,h),T.return();_.KR(T)})};
vG[au]=[_.fG];var bo=function(){this.JSC$17740_miniAppClientDataProvider=_.en().resolve(_.N9)};
_.y(bo,kp);bo.prototype.resolveCommand=function(){var k=this,E,S;return _.c(function(R){if(k.JSC$17740_miniAppClientDataProvider.clientData.has("video_id")){var V=k.JSC$17740_miniAppClientDataProvider,N=V.clientData.get("video_id");N&&V.clientData.delete("video_id");E="https://youtube.com/watch?v="+N;S=_.fg(E);if(S===void 0)throw Error("Ni`"+E);_.Cg(window,S)}_.KR(R)})};var ZM=function(){};
_.y(ZM,kp);ZM.prototype.resolveCommand=function(){return _.c(function(k){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.KR(k)})};var sM=function(){};
_.y(sM,kp);sM.prototype.resolveCommand=function(){var k;return _.c(function(E){if(E.nextAddress==1)return E.yield(_.G6b(window.document.documentElement),2);(k=document.querySelector("mini-app-container-view-model iframe"))&&k.focus();_.KR(E)})};var lo=function(k){this.JSC$17747_navigationConfirmationService=k};
_.y(lo,kp);
lo.prototype.resolveCommand=function(){var k=this;return _.c(function(E){var S=k.JSC$17747_navigationConfirmationService,R=_.en().resolve(_.uO),V;if(((V=S.navigateParams)==null?void 0:V.data)!==void 0){var N;_.Hi5(R,S.navigateParams.endpoint,S.navigateParams.data,(N=S.navigateParams.navigationType)!=null?N:1,S.navigateParams.tempData,S.navigateParams.isMiniplayer,void 0,!0);S.navigateParams=void 0;S.customConfirmationCommand=void 0}else S.navigateParams&&(R.navigate(S.navigateParams.endpoint,S.navigateParams.reload,
S.navigateParams.params,S.navigateParams.tempData,S.navigateParams.requestType,S.navigateParams.createScreenConfig,!0),S.navigateParams=void 0,S.customConfirmationCommand=void 0);_.KR(E)})};
lo[au]=[p6];var ME=function(){};
_.y(ME,kp);ME.prototype.resolveCommand=function(){return _.c(function(k){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.KR(k)})};var qE=function(k){this.JSC$17752_prefStorage=k};
_.y(qE,kp);qE.prototype.resolveCommand=function(){var k=this,E,S;return _.c(function(R){switch(R.nextAddress){case 1:return R.yield(k.JSC$17752_prefStorage,2);case 2:return(E=R.yieldResult)?R.yield(E.set("sfvle",!1),3):R.return();case 3:return R.yield(E.set("sfvles",!0),4);case 4:S=_.nz(),_.iD(0,203,!1),_.iD(0,204,!0),S.save(),_.KR(R)}})};
qE[au]=[uo];var zv=function(k){this.JSC$17755_prefStorage=k};
_.y(zv,kp);zv.prototype.resolveCommand=function(){var k=this,E,S;return _.c(function(R){switch(R.nextAddress){case 1:return R.yield(k.JSC$17755_prefStorage,2);case 2:return(E=R.yieldResult)?R.yield(E.set("sfvle",!0),3):R.return();case 3:return R.yield(E.set("sfvles",!0),4);case 4:S=_.nz(),_.iD(0,203,!0),_.iD(0,204,!0),S.save(),_.KR(R)}})};
zv[au]=[uo];_.t1I=new _.QE("SNACKBAR_CONTROLLER_TOKEN");_.TTU=new _.QE("SHOULD_SHOW_PIVOT_BAR_TOKEN");var Ql=function(k){this.controller=k};
_.y(Ql,kp);Ql.prototype.resolveCommand=function(k){var E=this,S;return _.c(function(R){S=_.W(k,b6z);if(!S)return R.return();var V=E.controller;V.closeSnackbarFn&&V.closeSnackbarFn();_.KR(R)})};
Ql[au]=[_.t1I];var OM=function(k,E){this.controller=k;this.sheetController=E};
_.y(OM,kp);OM.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m;return _.c(function(a){R=_.W(k,d12);if(!R)return a.return();h=RhY(S.sheetController,(V=E)==null?void 0:(N=V.form)==null?void 0:N.element);J=_.W(R.content,VE2);if(!J)return a.return();var T=S.controller,w=J,P=(m=R.animationStyle)!=null?m:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(T.showSnackbarFn)T.showSnackbarFn({snackbarViewModel:w,animationStyle:P,durationMs:R.durationSeconds*1E3,target:h});else throw Error("wj");_.KR(a)})};
OM[au]=[_.t1I,_.f6];var Gv=function(){};
_.y(Gv,kp);Gv.prototype.resolveCommand=function(k){var E;return _.c(function(S){E=_.W(k,s0Y);if(!E||typeof E.key!=="string"||typeof E.value!=="string")return S.return();window.localStorage.setItem(E.key,E.value);_.KR(S)})};var Cd=function(k){this.store=k};
_.y(Cd,kp);Cd.prototype.resolveCommand=function(k){var E=this,S;return _.c(function(R){S=_.W(k,G0t);if(!S||!S.stepId||!S.token)return R.return();E.store.dispatch(Aud({stepId:S.stepId,token:S.token,isSelected:!1}));_.KR(R)})};
Cd[au]=[$U];var kK=function(k,E,S){this.innertubeTransportService=k;this.store=E;this.JSC$17774_screenManager=S};
_.y(kK,kp);
kK.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z,kb,TI,a1;return _.c(function(Ah){S=_.W(k,EIj);if(!S||(R=S.stepIds)==null||!R.length)return Ah.return();V=E.store.getState().talkToRecs;N=[];h=[];J=_.n(S.stepIds);for(m=J.next();!m.done;m=J.next())for(a=m.value,T=void 0,(w=(T=V.stepStates[a])==null?void 0:T.userQuery)&&h.push({userQuery:w.userQuery,userQueryToken:w.token}),B=P=void 0,F=(B=(P=V.stepStates[a])==null?void 0:P.selectionStates)!=null?B:{},K=_.n(Object.entries(F)),
r=K.next();!r.done;r=K.next())x=r.value,L=_.n(x),q=L.next().value,M=L.next().value,d=q,z=M,z.isSelected&&N.push(d);kb={selectedChipTokens:N,userQueries:h,submittedStepIds:S.stepIds};TI={browseTalk2recsFormData:kb};S.browseEndpoint?(a1=k,_.Fd(a1,_.Ny,S.browseEndpoint)):S.command&&(a1=S.command);return a1?Ah.yield(_.xv(E.innertubeTransportService,a1,{formData:TI,disableCache:!0}).then(function(th){(th==null?0:th.trackingParams)&&E.JSC$17774_screenManager.graftServerVe(th==null?void 0:th.trackingParams)}),
0):Ah.return()})};
kK[au]=[_.oR,$U,_.fG];var EZ=function(k){this.store=k};
_.y(EZ,kp);EZ.prototype.resolveCommand=function(k){var E=this,S;return _.c(function(R){S=_.W(k,O8i);if(!S||!S.stepId||!S.token)return R.return();E.store.dispatch(Aud({stepId:S.stepId,token:S.token,isSelected:!0}));_.KR(R)})};
EZ[au]=[$U];var St=function(k){this.store=k};
_.y(St,kp);St.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J;return _.c(function(m){R=_.W(k,$Nd);if(!R||!R.stepId||!R.userQueryToken)return m.return();J=(h=(V=E)==null?void 0:(N=V.form)==null?void 0:N.userQuery)!=null?h:"";S.store.dispatch(_.zX({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:R.stepId,userQueryToken:R.userQueryToken,userQuery:J}}));_.KR(m)})};
St[au]=[$U];_.wHt=new _.QE("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Rm=function(k){this.controller=k};
_.y(Rm,kp);Rm.prototype.resolveCommand=function(k){var E=this,S,R,V,N;return _.c(function(h){S=_.W(k,G7T);if(!S)return h.return();R=S;V=R.id;N=R.isVisible;if(V===void 0||N===void 0)return h.return();var J;(J=E.controller.timelyActionsMap.get(V))==null||J(V,N);_.KR(h)})};
Rm[au]=[_.wHt];var PhP=function(){this.timelyActionsMap=new Map};var VZ=function(k){this.JSC$17800_commandHandler=k};
_.y(VZ,kp);VZ.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h;return _.c(function(J){S=_.W(k,_.JfY);if(!S)return J.return();N=(R=S.item)==null?void 0:(V=R.notificationTextRenderer)==null?void 0:V.successResponseText;if(!N)return J.return();h=_.ZE(N);E.JSC$17800_commandHandler.resolveCommand(h);_.KR(J)})};
VZ[au]=[_.t3];var Nr=function(k,E){this.innertubeTransportService=k;this.JSC$17805_playerApiPromise=E};
_.y(Nr,kp);
Nr.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T;return _.c(function(w){if(w.nextAddress==1)return w.yield(E.JSC$17805_playerApiPromise,2);S=w.yieldResult;R=S.getOption("captions","track");V=Object.assign({},_.W(k,_.emd));(h=(N=S.getVideoData())==null?void 0:N.video_id)?V.externalVideoId=h:_.kr(Error("Oi"));if((J=R)==null?0:J.languageCode)V.languageCode=R.languageCode;if((m=R)==null?0:m.kind)V.kind=R.kind;if((a=R)==null?0:a.name)V.name=R.name;T=Object.assign({},k,{getTranscriptEndpoint:V});return w.yield(_.xv(E.innertubeTransportService,
T),0)})};
Nr[au]=[_.oR,_.QQ];var Im=function(){};
_.y(Im,kp);Im.prototype.resolveCommand=function(k){var E,S,R,V,N,h,J,m;return _.c(function(a){E=_.W(k,EDd);if((S=E)==null||!S.paramKeyValuePairs)return a.return();R=window.location.href;V=_.n(E.paramKeyValuePairs);for(N=V.next();!N.done;N=V.next())h=N.value,h.key&&h.value&&(J={},R=_.N3(R,(J[h.key]=h.value,J)));m=_.en().resolve(_.Uz);_.gR(m,R);_.KR(a)})};_.nJ=new _.QE("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var iB=function(k,E,S){this.controller=k;this.JSC$17812_playerApiPromise=E;this.innertubeTransportService=S};
_.y(iB,kp);
iB.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x;return _.c(function(L){if(L.nextAddress==1){S=_.W(k,WBd);if((R=S)==null||!R.watchEndpoint)return L.return();V=new gj;N=V.JSC$13266_getRequest(S.watchEndpoint);if(!N)return L.return();h=S.watchEndpoint.clickTrackingParams;return L.yield(_.qF(E.innertubeTransportService,N.innerTubeRequest,N.input,h,N.config),2)}if(L.nextAddress!=3)return J=L.yieldResult,L.yield(E.JSC$17812_playerApiPromise,3);m=L.yieldResult;m.updateVideoData({raw_watch_next_response:J});
if(F=(a=J)==null?void 0:(T=a.contents)==null?void 0:(w=T.twoColumnWatchNextResults)==null?void 0:(P=w.results)==null?void 0:(B=P.results)==null?void 0:B.contents)r=(K=F.find(function(q){return q.videoPrimaryInfoRenderer}))==null?void 0:K.videoPrimaryInfoRenderer,((x=r)==null?0:x.subtitle)&&BTP(E.controller,r.subtitle);
_.KR(L)})};
iB[au]=[_.nJ,_.QQ,_.oR];var Yot=function(){this.subtitleChangeCallbackMap=new Map},BTP=function(k,E){k=_.n(k.subtitleChangeCallbackMap.values());
for(var S=k.next();!S.done;S=k.next())S=S.value,S(E)};var hK=function(k,E){this.JSC$17822_commandHandler=k;this.innertubeTransportService=E};
_.y(hK,kp);
hK.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q;return _.c(function(M){switch(M.nextAddress){case 1:return(N=(R=E)==null?void 0:(V=R.form)==null?void 0:V.element)&&_.Xw(N),h=_.nz().get("hl"),J="",_.F5(M,2),M.yield(rmi(h),4);case 4:J=M.yieldResult;_.Sv(M,3);break;case 2:return _.UY(M),N&&_.gE(N),_.bM(Error("Qi"),"ERROR"),M.return();case 3:m=_.W(k,u7j);if(!m)return N&&_.gE(N),M.return();(w=(a=m.commerceActionConfig)==null?void 0:(T=a.commandLifeCycleConfig)==null?
void 0:T.onStartCommand)&&S.JSC$17822_commandHandler.resolveCommand(w);return M.yield(_.xv(S.innertubeTransportService,k,{client_data:{paymentsClientToken:{token:J}}}),5);case 5:(P=M.yieldResult)?(N&&_.gE(N),((r=P)==null?0:r.command)&&S.JSC$17822_commandHandler.resolveCommand(P.command),(q=(x=m.commerceActionConfig)==null?void 0:(L=x.commandLifeCycleConfig)==null?void 0:L.onSuccessCommand)&&S.JSC$17822_commandHandler.resolveCommand(q)):(N&&_.gE(N),_.bM(Error("Ri")),(K=(B=m.commerceActionConfig)==
null?void 0:(F=B.commandLifeCycleConfig)==null?void 0:F.onFailureCommand)&&S.JSC$17822_commandHandler.resolveCommand(K)),_.KR(M)}})};
hK[au]=[_.t3,_.oR];var JK=function(k,E,S){this.store=k;this.JSC$17838_commandHandler=E;this.innertubeTransportService=S};
_.y(JK,kp);
JK.prototype.resolveCommand=function(k,E){var S=this,R,V,N,h,J,m,a,T,w;return _.c(function(P){R=_.W(k,xYY);V=R.googlePaymentPayload;R.onStartCommand&&S.JSC$17838_commandHandler.resolveCommand(R.onStartCommand);N=V.encryptedPurchaseParams;h=V.ypcLogWalletAnalyticDataEndpoint;J=R.serializedTransactionFlowLoggingParams;m=V.serializedPaymentsClientParams;a=R.ypcCujContext;w=LnA(S.innertubeTransportService,(T=E)==null?void 0:T.form,N,h,J,m,a);return P.return(w.then(function(B){uCI(E==null?void 0:E.form,
!1);var F=S.store,K=S.JSC$17838_commandHandler,r=B.integratorData;r==null||r===""||B.error!=null?(String(B.error)==="-1"&&R.onDismissCommand?K.resolveCommand(R.onDismissCommand):String(B.error)!=="-1"&&R.onFailureCommand&&K.resolveCommand(R.onFailureCommand),String(B.error)!=="-1"&&String(B.error)!=="132"&&_.bM(Error("Si"),"ERROR")):(R.googlePaymentEntityKey&&F.dispatch(_.mj("commerceAcquisitionClientPayloadEntity",R.googlePaymentEntityKey,{key:R.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:r,
fundsGuaranteeCallbackClientData:B.integratorClientCallbackData}}})),R.onSuccessCommand&&K.resolveCommand(R.onSuccessCommand));_.GR()},function(B){uCI(E==null?void 0:E.form,!1);
_.bM(B,"ERROR");R.onFailureCommand&&S.JSC$17838_commandHandler.resolveCommand(R.onFailureCommand)}))})};
JK[au]=[ZI,_.t3,_.oR];var cr=function(k,E){this.JSC$17842_commandHandler=k;this.purchaseManager=E};
_.y(cr,kp);
cr.prototype.resolveCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T;return _.c(function(w){S=_.W(k,LBT);((R=S)==null?0:(V=R.commandLifeCycleConfig)==null?0:V.onStartCommand)&&E.JSC$17842_commandHandler.resolveCommand(S.commandLifeCycleConfig.onStartCommand);if(!((N=S)==null?0:(h=N.googlePaymentPurchaseManagerPayload)==null?0:h.securePayloadBytes))return _.bM(Error("Ti"),"ERROR"),w.return();J=yVj(_.k2(S.googlePaymentPurchaseManagerPayload.securePayloadBytes));m=_.nz().get("hl");a=_.LU();neT(J.serialize(),
m,function(P){a.resolve(P)},function(P){a.reject(P)},a.resolve);
T=a.promise;return w.return(T.then(function(P){if(P)if(P==null?0:P.errorCode){_.bM(Error("Ui`"+P.errorCode),"ERROR");var B,F;((B=S)==null?0:(F=B.commandLifeCycleConfig)==null?0:F.onFailureCommand)&&E.JSC$17842_commandHandler.resolveCommand(S.commandLifeCycleConfig.onFailureCommand)}else if(P==null?0:P.isCancelled){var K,r;((K=S)==null?0:(r=K.commandLifeCycleConfig)==null?0:r.onCancelCommand)&&E.JSC$17842_commandHandler.resolveCommand(S.commandLifeCycleConfig.onCancelCommand)}else{var x,L;((x=S)==
null?0:(L=x.commandLifeCycleConfig)==null?0:L.onSuccessCommand)&&E.JSC$17842_commandHandler.resolveCommand(S.commandLifeCycleConfig.onSuccessCommand)}},function(P){_.bM(P,"ERROR");
var B,F;((B=S)==null?0:(F=B.commandLifeCycleConfig)==null?0:F.onFailureCommand)&&E.JSC$17842_commandHandler.resolveCommand(S.commandLifeCycleConfig.onFailureCommand)}))})};
cr[au]=[_.t3,iR0];var W7I=function(k,E){this.JSC$17850_commandHandler=k;this.commandAllowlistOverride=E;var S;this.commandAllowlist=(S=this.commandAllowlistOverride)!=null?S:DD};
W7I.prototype.handleResponse=function(k,E,S){var R,V=E==null?void 0:(R=E.config)==null?void 0:R.command;if(!V||this.commandAllowlist.some(function(N){return!!_.W(V,N)})){E=void 0;
S!==void 0&&(E={form:{element:S}});k.onResponseReceivedCommand&&this.JSC$17850_commandHandler.resolveCommand(k.onResponseReceivedCommand,E);k.onResponseReceivedAction&&this.JSC$17850_commandHandler.resolveCommand(k.onResponseReceivedAction,E);k.onResponseReceivedEndpoint&&this.JSC$17850_commandHandler.resolveCommand(k.onResponseReceivedEndpoint,E);k.command&&this.JSC$17850_commandHandler.resolveCommand(k.command,E);if(k.onResponseReceivedCommands)for(S=_.n(k.onResponseReceivedCommands),R=S.next();!R.done;R=
S.next())this.JSC$17850_commandHandler.resolveCommand(R.value,E);if(k.onResponseReceivedActions)for(S=_.n(k.onResponseReceivedActions),R=S.next();!R.done;R=S.next())this.JSC$17850_commandHandler.resolveCommand(R.value,E);if(k.onResponseReceivedEndpoints)for(S=_.n(k.onResponseReceivedEndpoints),R=S.next();!R.done;R=S.next())this.JSC$17850_commandHandler.resolveCommand(R.value,E);if(k.actions)for(k=_.n(k.actions),S=k.next();!S.done;S=k.next())this.JSC$17850_commandHandler.resolveCommand(S.value,E)}};
W7I[au]=[_.t3,_.mz(AWm)];var F72=new _.QE("INNERTUBE_TOKEN_SERVICE");var yx3=new _.QE("SCHEDULER_TOKEN");var oy3=function(k){this.scheduler=k;k={};this.tokenMap=(k.app={},k.user={},k)};
oy3.prototype.handleResponse=function(k,E){if(!E)throw Error("Vi");var S;if(k=(S=k.responseContext)==null?void 0:S.innertubeTokenJar){if(k.appTokens){var R,V,N;S=(R=E.innerTubeRequest.context)==null?void 0:(V=R.request)==null?void 0:(N=V.innertubeTokenJar)==null?void 0:N.appTokens;XHA(this,k.appTokens,this.tokenMap.app,S)}if(k.userTokens){var h,J,m;E=(h=E.innerTubeRequest.context)==null?void 0:(J=h.request)==null?void 0:(m=J.innertubeTokenJar)==null?void 0:m.userTokens;XHA(this,k.userTokens,this.tokenMap.user,
E)}}};
oy3.prototype.processContext=function(k){k.request||(k.request={});var E=Object.keys(this.tokenMap.app).length,S=Object.keys(this.tokenMap.user).length;if(E||S)k.request.innertubeTokenJar={},E&&(k.request.innertubeTokenJar.appTokens=[].concat(_.$e(Object.values(this.tokenMap.app).flat()))),S&&(k.request.innertubeTokenJar.userTokens=[].concat(_.$e(Object.values(this.tokenMap.user).flat())))};
var XHA=function(k,E,S,R){E=_.n(E);for(var V=E.next(),N={};!V.done;N={token$jscomp$139:void 0},V=E.next()){N.token$jscomp$139=V.value;if(N.token$jscomp$139.type===void 0)throw new _.LC("InnerTube token has no type",N.token$jscomp$139);if(N.token$jscomp$139.clearTokens)S[N.token$jscomp$139.type]=[];else if(N.token$jscomp$139.value!==void 0){S[N.token$jscomp$139.type]||(S[N.token$jscomp$139.type]=[]);if(R!==void 0&&R.length){V=_.n(R);for(var h=V.next(),J={};!h.done;J={requestToken:void 0},h=V.next())J.requestToken=
h.value,h=S[N.token$jscomp$139.type].findIndex(function(m){return function(a){return a===m.requestToken||(0,_.fO.equals)(a,m.requestToken)}}(J)),h>-1&&S[N.token$jscomp$139.type].splice(h,1)}S[N.token$jscomp$139.type].push(N.token$jscomp$139);
N.token$jscomp$139.maxAgeSeconds&&Number(N.token$jscomp$139.maxAgeSeconds)>0&&k.scheduler.addLowPriorityJob(function(m){return function(){var a=S[m.token$jscomp$139.type].indexOf(m.token$jscomp$139);a>-1&&S[m.token$jscomp$139.type].splice(a,1)}}(N),Number(N.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.LC("InnerTube token has no value",N.token$jscomp$139);
}};
oy3[au]=[yx3];var gyx=new _.QE("LOCAL_INNERTUBE_ROUTER_TOKEN"),UjA=new _.QE("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var ml=function(k){this.serviceMap=k};
ml.prototype.shouldPreferLocalResponse=function(k,E){return(k=HOU(this,k))?k.shouldPreferLocalResponse(E):!1};
ml.prototype.localInnertubeResponse=function(k,E){var S=this,R;return _.c(function(V){return(R=HOU(S,k))?V.return(R.localInnertubeResponse(E)):V.return(Promise.reject(Error("Wi")))})};
ml.prototype.canProvideFallbackResponse=function(k,E){return(k=HOU(this,k))?k.canProvideFallbackResponse(E):!1};
ml.prototype.localFallbackInnertubeResponse=function(k,E){var S=this,R;return _.c(function(V){return(R=HOU(S,k))?V.return(R.localFallbackInnertubeResponse(E)):V.return(Promise.reject(Error("Wi")))})};
var HOU=function(k,E){E=_.Xu(E);return E?(k=k.serviceMap[E])?k:null:null};
ml[au]=[UjA];var ib=function(){};
ib.prototype.shouldPreferLocalResponse=function(){return!1};
ib.prototype.localInnertubeResponse=function(){return _.c(function(k){return k.return(Promise.reject(Error("Xi")))})};
ib.prototype.canProvideFallbackResponse=function(){return!0};
ib.prototype.localFallbackInnertubeResponse=function(){var k,E,S;return _.c(function(R){k=Ei("CLOSE_POPUP");E={openPopupAction:Dvh()};S={actions:[k,E]};return R.return(S)})};var b8I=function(k,E){this.JSC$17899_upliftPromise=k;this.store=E};
_.I=b8I.prototype;_.I.shouldPreferLocalResponse=function(k){var E=k.videoId,S;if(S=E)S=bM1(this.store.getState().entities,k.videoId);return S&&ZMt(this.store.getState().entities,E)?fhe(this.store.getState().entities,k.playlistId):!1};
_.I.localInnertubeResponse=function(k){var E=this,S;return _.c(function(R){return(S=E.getPlayerResponse(k))?R.return(Promise.resolve(S)):R.return(Promise.reject(Error("Yi")))})};
_.I.canProvideFallbackResponse=function(k){return!!k.videoId};
_.I.localFallbackInnertubeResponse=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(E.JSC$17899_upliftPromise,2);S=E.getPlayerResponse(k);var V;S?V=R.return(Promise.resolve(S)):V=ei(E.store.getState().entities,k.videoId)?R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.lD(_.Vi("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:qR1()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
R.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.lD(_.Vi("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:MPj()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return V})};
_.I.getPlayerResponse=function(k){return t61(this.store.getState().entities,k.videoId)};var nm=function(k,E){this.localPlayerService=k;this.localWatchNextService=E};
nm.prototype.shouldPreferLocalResponse=function(k){var E=k.playerRequest;k=k.watchNextRequest;return!!(E&&this.localPlayerService.shouldPreferLocalResponse(E)&&k&&this.localWatchNextService.shouldPreferLocalResponse(k))};
nm.prototype.localInnertubeResponse=function(k){var E=this,S,R,V,N;return _.c(function(h){if(h.nextAddress==1){S=k.playerRequest;R=k.watchNextRequest;if(!S||!R)throw new _.LC("Missing streaming request",k);return h.yield(E.localPlayerService.localInnertubeResponse(S),2)}if(h.nextAddress!=3)return V=h.yieldResult,h.yield(E.localWatchNextService.localInnertubeResponse(R),3);N=h.yieldResult;return h.return({playerResponse:V,watchNextResponse:N})})};
nm.prototype.canProvideFallbackResponse=function(k){var E=k.playerRequest;k=k.watchNextRequest;return!!(E&&this.localPlayerService.canProvideFallbackResponse(E)&&k&&this.localWatchNextService.canProvideFallbackResponse(k))};
nm.prototype.localFallbackInnertubeResponse=function(k){var E=this,S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return S=k.playerRequest,R=k.watchNextRequest,S&&R?h.yield(E.localPlayerService.localFallbackInnertubeResponse(S),2):h.return(Promise.reject(new _.LC("Missing streaming request",k)));if(h.nextAddress!=3)return V=h.yieldResult,h.yield(E.localWatchNextService.localFallbackInnertubeResponse(R),3);N=h.yieldResult;return h.return({playerResponse:V,watchNextResponse:N})})};var Vb=function(k){this.JSC$17909_persistentStorePromiseAccessor=k};
Vb.prototype.shouldPreferLocalResponse=function(){return!1};
Vb.prototype.localInnertubeResponse=function(){return _.c(function(k){return k.return(Promise.reject(Error("Zi")))})};
Vb.prototype.canProvideFallbackResponse=function(){return!0};
Vb.prototype.localFallbackInnertubeResponse=function(){var k=this,E,S;return _.c(function(R){return R.nextAddress==1?R.yield(k.JSC$17909_persistentStorePromiseAccessor(),2):R.nextAddress!=3?(E=R.yieldResult)?R.yield(E.get("service:guide:fallback"),3):R.return(Promise.reject(Error("$i"))):(S=R.yieldResult)&&_.vZ(S)?R.return(vi1(_.vZ(S))):R.return(Promise.reject(Error("aj")))})};var h9=function(){};
h9.prototype.shouldPreferLocalResponse=function(){return!1};
h9.prototype.localInnertubeResponse=function(){return _.c(function(k){return k.return(Promise.reject(Error("bj")))})};
h9.prototype.canProvideFallbackResponse=function(){return!0};
h9.prototype.localFallbackInnertubeResponse=function(){var k,E,S;return _.c(function(R){k=Ei("CLOSE_POPUP");E={openPopupAction:Dvh()};S={actions:[k,E]};return R.return(S)})};var RO=function(){this.urlMap=K72;this.fallbackCommand=_.U7};
RO.prototype.shouldPreferLocalResponse=function(k){return(k=k.url)?!!pHU(this,k):!1};
RO.prototype.localInnertubeResponse=function(k){var E=this,S;return _.c(function(R){return(S=k.url)?R.return(AxI(k,pHU(E,S))):R.return(Promise.reject(Error("cj")))})};
RO.prototype.canProvideFallbackResponse=function(){return!0};
RO.prototype.localFallbackInnertubeResponse=function(k){var E=this,S,R,V,N,h,J,m;return _.c(function(a){S=k.url;if(!S)return a.return(AxI(k,E.fallbackCommand));if(R=pHU(E,S))return a.return(AxI(k,R));V=void 0;N=_.Xu(S);N==="/watch"&&(h=_.Qo(S,"v"))&&(m=(J=_.Qo(S,"list"))!=null?J:void 0,V=_.sv(h,m));V||(V=E.fallbackCommand);return a.return(AxI(k,V))})};
var pHU=function(k,E){if(E)return k.urlMap[_.AI(E)]},AxI=function(k,E){E&&k.parentTrackingParams&&(E.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:k.parentTrackingParams}},E.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:E})};var NX=function(k,E,S){this.JSC$17919_upliftPromise=k;this.store=E;this.JSC$17919_persistentStorePromiseAccessor=S};
NX.prototype.shouldPreferLocalResponse=function(){return!1};
NX.prototype.localInnertubeResponse=function(){return _.c(function(k){return k.return(Promise.reject(Error("dj")))})};
NX.prototype.canProvideFallbackResponse=function(){return!0};
NX.prototype.localFallbackInnertubeResponse=function(){var k=this;return _.c(function(E){return E.return(rxW(k))})};
var rxW=function(k){var E,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(f9(k.JSC$17919_upliftPromise,k.store),2);E=R.yieldResult;S={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[$vR(E)]}}}};return R.return(u1U(k,S))})},u1U=function(k,E){var S,R;
return _.c(function(V){if(V.nextAddress==1)return V.yield(k.JSC$17919_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3)return S=V.yieldResult,V.yield(br(S),3);R=V.yieldResult;return V.return({responseContext:{},contents:E,topbar:R})})};var EB=function(k,E,S){this.JSC$17926_upliftPromise=k;this.store=E;this.JSC$17926_persistentStorePromiseAccessor=S};
EB.prototype.shouldPreferLocalResponse=function(k){var E=k.videoId;return E&&bM1(this.store.getState().entities,E)&&ZMt(this.store.getState().entities,E)?fhe(this.store.getState().entities,k.playlistId):!1};
EB.prototype.localInnertubeResponse=function(k){var E=this,S,R;return _.c(function(V){if(V.nextAddress==1)return(S=k.videoId)?V.yield(E.JSC$17926_upliftPromise,2):V.return(Promise.reject(Error("ej")));if(V.nextAddress!=3)return V.yield(xjP(E,k,S),3);R=V.yieldResult;return V.return(L7R(E,R,S))})};
EB.prototype.canProvideFallbackResponse=function(k){return k.videoId?!0:!1};
EB.prototype.localFallbackInnertubeResponse=function(k){var E=this,S,R,V,N;return _.c(function(h){switch(h.nextAddress){case 1:return(S=k.videoId)?h.yield(E.JSC$17926_upliftPromise,2):h.return(Promise.reject(Error("ej")));case 2:return h.yield(xjP(E,k,S),3);case 3:R=h.yieldResult;if(ei(E.store.getState().entities,S)){h.jumpTo(4);break}return h.yield(f9(E.JSC$17926_upliftPromise,E.store),5);case 5:return V=h.yieldResult,h.return(jhY(R,V));case 4:return bM1(E.store.getState().entities,S)&&ZMt(E.store.getState().entities,
S)?h.return(L7R(E,R,S)):(N={title:_.lD(_.Vi("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:qR1()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},h.return(jhY(R,N)))}})};
var xjP=function(k,E,S){var R,V,N,h,J;return _.c(function(m){if(m.nextAddress==1)return R=E.playlistId,V=_.sv(S,R),m.yield(k.JSC$17926_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3)return N=m.yieldResult,m.yield(br(N),3);h=m.yieldResult;J={responseContext:{},currentVideoEndpoint:V,topbar:h};return m.return(J)})},L7R=function(k,E,S){if(k=ei(k.store.getState().entities,S)){var R;
S=k.videoEntity;var V,N={title:Ma(S.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.qa((R=S.localizedStrings)==null?void 0:R.viewCount),viewCount:_.qa((V=S.localizedStrings)==null?void 0:V.viewCount)}}};S.publishedTimestampMillis&&(N.dateText=_.qa(vPt(new Date(Number(S.publishedTimestampMillis)))));R={videoPrimaryInfoRenderer:N};V=k.videoEntity;k=k.channelEntity;k={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Ma(_.Vi("SHOW_MORE",void 0,"Show more")),
showLessText:Ma(_.Vi("SHOW_LESS",void 0,"Show less")),description:V.formattedDescription,owner:{videoOwnerRenderer:{title:Ma(k.title),thumbnail:k.avatar}}}};E.contents={twoColumnWatchNextResults:{results:{results:{contents:[R,k]}}}}}return E},jhY=function(k,E){k.contents={singleColumnWatchNextResults:{results:{results:{contents:[$vR(E)]}}}};
return k};var IO=function(k,E,S){this.JSC$17931_upliftPromise=k;this.store=E;this.JSC$17931_persistentStorePromiseAccessor=S};
IO.prototype.shouldPreferLocalResponse=function(){return!1};
IO.prototype.localInnertubeResponse=function(){return _.c(function(k){return k.return(Promise.reject(Error("fj")))})};
IO.prototype.canProvideFallbackResponse=function(){return!0};
IO.prototype.localFallbackInnertubeResponse=function(){var k=this,E,S,R,V;return _.c(function(N){switch(N.nextAddress){case 1:return N.yield(k.JSC$17931_persistentStorePromiseAccessor(),2);case 2:return E=N.yieldResult,N.yield(br(E),3);case 3:return S=N.yieldResult,R={responseContext:{},topbar:S},N.yield(k.JSC$17931_upliftPromise,4);case 4:return N.yield(f9(k.JSC$17931_upliftPromise,k.store),5);case 5:return V=N.yieldResult,R.watchStatus={backgroundPromoRenderer:V},N.return(R)}})};_.DjW=new _.QE("ENDPOINT_MAP");var $j0=function(){var k=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return k.sequenceMap}}},yAC=function(k,E,S){var R,V=(R=E.config)==null?void 0:R.sequenceStrategy;
if(!V)return S();k.sequenceMap.has(V.sequenceKey)||k.sequenceMap.set(V.sequenceKey,[]);k=k.sequenceMap.get(V.sequenceKey);switch(V.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return fBI(k,E,S);case "REQUEST_SEQUENCE_TYPE_REPLACE":return vyY(k,E,S);default:throw new _.LC("Request could not be sequenced",E);}},fBI=function(k,E,S){var R,V,N;
return _.c(function(h){k.length>0?(V=k[k.length-1],R=V.responsePromise.then(function(){return S()})):R=S();
N={request:E,responsePromise:R};k.push(N);bOt(k,N);return h.return(N.responsePromise)})},vyY=function(k,E,S){S=S();
if(k.length>0)for(var R=_.n(k),V=R.next();!V.done;V=R.next())V.value.responsePromise=S;var N={request:E,responsePromise:S};k.push(N);bOt(k,N);return Promise.resolve().then(function(){return k.indexOf(N)>0?N.responsePromise.then(function(h){return Object.assign({},h,{sequenceMetaData:{skipProcessing:!0}})}):N.responsePromise})},bOt=function(k,E){E.responsePromise.then(function(){var S=k.indexOf(E);
S>-1&&k.splice(S,1)})};var ZOx=new _.QE("REQUEST_SEQUENCING");var et=function(){};
_.y(et,yW);et.prototype.getApiPaths=function(){return[]};
et.prototype.getExtension=function(k){return _.W(k,S05)};
et.prototype.JSC$13266_buildRequest=function(k,E){k.recaptchaToken=E.recaptchaToken};
et.prototype.getApiUrl=function(){return"/das_captcha"};var am=function(){};
_.y(am,yW);am.prototype.getApiPaths=function(){return A74};
am.prototype.getExtension=function(k){return _.W(k,uGY)};
am.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.createBackstagePostParams&&(k.createBackstagePostParams=E.createBackstagePostParams);S.comment_text&&(k.commentText=S.comment_text);if(S.attached_video_id)k.videoAttachment={videoId:S.attached_video_id};else if(S.image_poll_options)k.pollAttachmentData={options:S.image_poll_options};else if(S.poll_options)k.pollAttachment={choices:S.poll_options};else if(S.quiz_options)k.quizAttachmentData={options:S.quiz_options};else if(S.image_blob_id)k.imageAttachment=
{encryptedBlobId:S.image_blob_id},S.source_video_id&&(k.imageAttachment.sourceExternalVideoId=S.source_video_id),S.image_preview_coordinates&&(k.imageAttachment.previewCoordinates=JSON.parse(S.image_preview_coordinates));else if(S.images_data)k.imagesAttachment={imagesData:S.images_data};else if(S.clip_external_video_id!==void 0||S.clip_offset_ms!==void 0||S.clip_duration_ms!==void 0){var R,V,N,h,J;k.clipAttachment={externalVideoId:(N=S.clip_external_video_id)!=null?N:"",offsetMs:(h=(R=S.clip_offset_ms)==
null?void 0:R.toString())!=null?h:"",durationMs:(J=(V=S.clip_duration_ms)==null?void 0:V.toString())!=null?J:""}}else S.shared_post_id&&(k.sharedPostAttachment={postId:S.shared_post_id});S.tagged_video_id&&(k.postCreationData={taggedVideoId:S.tagged_video_id});S.access_restrictions&&(typeof S.access_restrictions==="number"&&(E=S.access_restrictions,k.accessRestrictions={restriction:E!==1&&E===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof S.access_restrictions==="string"&&
(k.accessRestrictionsParams=S.access_restrictions));S.scheduled_publish_time_sec&&(k.scheduledPublishTimeSec=S.scheduled_publish_time_sec.toString())};var tK=function(){};
_.y(tK,yW);tK.prototype.getApiPaths=function(){return $ZA};
tK.prototype.getExtension=function(k){return _.W(k,HGj)};
tK.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.decorateMessageParams&&(k.params=E.decorateMessageParams);S.text&&(k.text=S.text)};var Th=function(){};
_.y(Th,yW);Th.prototype.getApiPaths=function(){return NMT};
Th.prototype.getExtension=function(k){return _.W(k,xNj)};
Th.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;S.video_id&&(k.videoId=S.video_id)};var wn=function(){};
_.y(wn,yW);wn.prototype.getApiPaths=function(){return Jvz};
wn.prototype.getExtension=function(k){return _.W(k,_.Ev)};
wn.prototype.JSC$13266_buildRequest=function(k,E,S){S.suggestions_query&&(k.input=S.suggestions_query)};var Pr=function(){};
_.y(Pr,yW);Pr.prototype.getApiPaths=function(){return dkj};
Pr.prototype.getExtension=function(k){return _.W(k,LrC)};
Pr.prototype.JSC$13266_buildRequest=function(k,E,S){S.comment_text!==void 0&&(k.commentText=S.comment_text);S.scheduled_publish_time_sec&&(k.scheduledPublishTimeSec=S.scheduled_publish_time_sec.toString());k.updateBackstagePostParams=E.updateBackstagePostParams};var Br=function(){};
_.y(Br,yW);Br.prototype.getApiPaths=function(){return rE};
Br.prototype.getExtension=function(k){return _.W(k,_.H9)};
Br.prototype.JSC$13266_buildRequest=function(k,E,S){S.formData&&(k.formData=S.formData);E.token?k.continuation=E.token:E.continuationTokenKey&&(S=_.vo().getState(),E=_.Ep(S.entities,"continuationTokenEntity",E.continuationTokenKey))&&(k.continuation=String(E.continuationToken))};
var djU=function(){};
_.y(djU,yW);_.I=djU.prototype;_.I.getApiPaths=function(){return rE};
_.I.getExtension=function(k){return _.W(k,_.Ny)};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$13273_getStoreKey=function(k){if((k=this.getExtension(k))&&k.browseId){var E={browseId:k.browseId};k.browseEndpointContextSupportedConfigs&&(E.browseEndpointContextSupportedConfigs=JSON.stringify(k.browseEndpointContextSupportedConfigs));k.params&&(E.params=k.params);k.query&&(E.query=k.query);return _.LI("browse",E)}};
_.I.JSC$13266_buildRequest=function(k,E,S){E.browseId&&(k.browseId=E.browseId);E.params&&(k.params=E.params);E.query&&(k.query=E.query);S.formData?k.formData=S.formData:E.formData&&(k.formData=E.formData);E.browseId==="FEsubscriptions"&&_.nz().getFlag(155)&&(k.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");E.browseId==="SPaccount_playback"&&(S=_.nz(),k.formData||(k.formData={}),k.formData.accountSettingsFormData={flagCaptionsDefaultOff:S.getFlag(65),flagAutoCaptionsDefaultOn:S.getFlag(66),
flagDisableInlinePreview:S.getFlag(186),flagAudioDescriptionDefaultOn:S.getFlag(198)});if(E.browseId==="FEwhat_to_watch"){S=_.nz();var R=S.getFlag(196);S.getFlag(197)&&(k.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:R}}})}E.browseId==="FEwhat_to_watch"&&(E=_.nz().getFlag(186),k.inlineSettingStatus=E?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.I.getRequestConfig=function(k,E){E=E===void 0?{}:E;var S={};if(k=this.JSC$13273_getStoreKey(k,E))S.storeStrategy={storeKey:k,disableCache:E.disableCache};_.Y("web_log_browse_ticks_ks")||(S.requestTick="br_s",S.responseTick="br_r");return S};var YK=function(){};
_.y(YK,yW);YK.prototype.getApiPaths=function(){return XWd};
YK.prototype.getExtension=function(k){return _.W(k,J$T)};
YK.prototype.JSC$13266_buildRequest=function(k,E,S){k.legacyYoutubeChannelUsername=S.legacyYouTubeChannelUsername||"";k.legacyYoutubeChannelPassword=S.legacyYouTubeChannelPassword||""};var Wr=function(){};
_.y(Wr,yW);Wr.prototype.getApiPaths=function(){return rv8};
Wr.prototype.getExtension=function(k){return _.W(k,ZYC)};
Wr.prototype.JSC$13266_buildRequest=function(k,E,S){S.recaptcha_response_token&&(k.recaptchaResponseToken=S.recaptcha_response_token);S.channel_id&&(k.channelId=S.channel_id)};var FH=function(){};
_.y(FH,yW);FH.prototype.getApiPaths=function(){return snC};
FH.prototype.getExtension=function(k){return _.W(k,zC5)};
FH.prototype.JSC$13266_buildRequest=function(k,E,S){E.externalChannelId&&(k.externalChannelId=E.externalChannelId);S.handle&&(k.handleUpdate={handle:S.handle},E.handleEditSource&&(k.handleUpdate.handleEditSource=E.handleEditSource))};var yZ=function(){};
_.y(yZ,yW);yZ.prototype.getApiPaths=function(){return zjC};
yZ.prototype.getExtension=function(k){return _.W(k,wDp)};
yZ.prototype.JSC$13266_buildRequest=function(k,E,S){E.request&&(k.channelId=E.request.channelId);var R;if(S==null?0:(R=S.uploadDefaults)==null?0:R.emojiReactionSet)k.uploadDefaultsRequest||(k.uploadDefaultsRequest={}),k.uploadDefaultsRequest.emojiReactionSet=S.uploadDefaults.emojiReactionSet};var om=function(){};
_.y(om,yW);om.prototype.getApiPaths=function(){return GC2};
om.prototype.getExtension=function(k){return _.W(k,dN8)};
om.prototype.JSC$13266_buildRequest=function(k,E,S){E.externalChannelId&&(k.externalChannelId=E.externalChannelId);E.channelHandleEntityKey&&(k.channelHandleEntityKey=E.channelHandleEntityKey);E.handleEditSource&&(k.handleEditSource=E.handleEditSource);S.handle?k.handle=S.handle:S.name&&(k.name=S.name)};var XH=function(){};
_.y(XH,yW);XH.prototype.getApiPaths=function(){return Hs8};
XH.prototype.getExtension=function(k){return _.W(k,htC)};
XH.prototype.JSC$13266_buildRequest=function(k,E){E.actions?k.actions=E.actions:E.action&&(k.actions=[E.action])};var gn=function(){};
_.y(gn,yW);gn.prototype.getApiPaths=function(){return K1T};
gn.prototype.getExtension=function(k){return _.W(k,_.H9)};
gn.prototype.JSC$13266_buildRequest=function(k,E){E.token&&(k.continuation=E.token)};var UZ=function(){};
_.y(UZ,yW);UZ.prototype.getApiPaths=function(){return RjT};
UZ.prototype.getExtension=function(k){return _.W(k,_.H9)};
UZ.prototype.JSC$13266_buildRequest=function(k,E){k.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";E.token&&(k.fetchCommentsParams={continuation:E.token})};var Hr=function(){};
_.y(Hr,yW);Hr.prototype.getApiPaths=function(){return xZd};
Hr.prototype.getExtension=function(k){return _.W(k,iXd)};
Hr.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.createReplyParams&&(k.createReplyParams=E.createReplyParams);E.commentText&&(k.commentText=_.$n(E.commentText));S.comment_text&&(k.commentText=S.comment_text);S.image_blob_id&&(k.imageAttachment={encryptedBlobId:S.image_blob_id});S.botguard_response&&(k.botguardResponse=S.botguard_response)};
_.mt.Object.defineProperties(Hr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KJ=function(){};
_.y(KJ,yW);KJ.prototype.getApiPaths=function(){return L1Y};
KJ.prototype.getExtension=function(k){return _.W(k,_.nPT)};
KJ.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.createCommentParams&&(k.createCommentParams=E.createCommentParams);E.commentText&&(k.commentText=_.$n(E.commentText));E.videoPositionMention&&(k.videoPositionMention=E.videoPositionMention);E.sources&&(k.sources=E.sources);S.comment_text&&(k.commentText=S.comment_text);S.attached_video_id?k.videoAttachment={videoId:S.attached_video_id}:S.poll_options?k.pollAttachment={choices:S.poll_options}:S.image_blob_id?k.imageAttachment=
{encryptedBlobId:S.image_blob_id}:S.shared_post_id&&(k.sharedPostAttachment={postId:S.shared_post_id});S.access_restrictions&&typeof S.access_restrictions==="number"&&(E=S.access_restrictions,k.accessRestrictions={restriction:E!==1&&E===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});S.botguard_response&&(k.botguardResponse=S.botguard_response)};
_.mt.Object.defineProperties(KJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pJ=function(){};
_.y(pJ,yW);pJ.prototype.getApiPaths=function(){return l5T};
pJ.prototype.getExtension=function(k){return _.W(k,cyz)};
pJ.prototype.JSC$13266_buildRequest=function(k,E,S){E.commentText&&(k.replyText=_.$n(E.commentText));S.comment_text&&(k.replyText=S.comment_text);k.updateReplyParams=E.updateReplyParams};
_.mt.Object.defineProperties(pJ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var AK=function(){};
_.y(AK,yW);AK.prototype.getApiPaths=function(){return M4d};
AK.prototype.getExtension=function(k){return _.W(k,Jyp)};
AK.prototype.JSC$13266_buildRequest=function(k,E,S){E.commentText&&(k.commentText=_.$n(E.commentText));S.comment_text&&(k.commentText=S.comment_text);k.updateCommentParams=E.updateCommentParams};
_.mt.Object.defineProperties(AK.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rn=function(){};
_.y(rn,yW);rn.prototype.getApiPaths=function(){return qWT};
rn.prototype.getExtension=function(k){return _.W(k,erC)};
rn.prototype.JSC$13266_buildRequest=function(k,E){E.settings&&(k.settings=E.settings)};var uB=function(){};
_.y(uB,yW);uB.prototype.getApiPaths=function(){return QT8};
uB.prototype.getExtension=function(k){return _.W(k,sKC)};
uB.prototype.JSC$13266_buildRequest=function(k,E){E.channelCreationToken&&(k.channelCreationToken=E.channelCreationToken);E.source&&(k.source=E.source)};var xK=function(){};
_.y(xK,yW);xK.prototype.getApiPaths=function(){return ulC};
xK.prototype.getExtension=function(k){return _.W(k,q0Y)};
xK.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;if(S.name&&(S.given_name||S.family_name))k=new _.LC("channel creation cannot set both GAIA and YouTube names",E),_.bM(k);else{if(E.zeroStepChannelCreationParams){if(!S.comment_text){k=new _.LC("zero_step_create_comment_params but no zero_step_texts",E);_.bM(k);return}k.zeroStepChannelCreationParams=E.zeroStepChannelCreationParams;k.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(k.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
S.comment_text,S.botguard_response&&(k.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=S.botguard_response))}k.channelCreationToken=E.channelCreationToken;S.given_name&&(k.givenName=S.given_name);S.family_name&&(k.familyName=S.family_name);E.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(k.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(S.name||S.handle||S.avatar_url||S.encryptedBlobId||S.isNameChanged!==void 0||S.isHandleChanged!==void 0||S.isDefaultProfilePhoto!==
void 0||S.obakeImageSource)k.overrideChannelCreationParams={},S.name&&(k.overrideChannelCreationParams.name=S.name),S.handle&&(k.overrideChannelCreationParams.handle=S.handle),S.avatar_url&&(k.overrideChannelCreationParams.avatarUrl=S.avatar_url),S.encryptedBlobId&&(k.overrideChannelCreationParams.blobEncryptionId=S.encryptedBlobId),S.enableIdentityForAllChannelCreationDialog&&(S.encryptedBlobId?k.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
S.isDefaultProfilePhoto!==void 0&&(k.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=S.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),S.isNameChanged!==void 0&&(k.overrideChannelCreationParams.identityForAllChannelCreationNameTag=S.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),S.isHandleChanged!==
void 0&&(k.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=S.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),S.obakeImageSource&&(k.overrideChannelCreationParams.obakeImageSourceType=S.obakeImageSource))}};var LJ=function(){};
_.y(LJ,yW);LJ.prototype.getApiPaths=function(k){return(k=this.getExtension(k))&&k.status==="DISLIKE"?ZsY:k&&k.status==="INDIFFERENT"?UkY:t4A};
LJ.prototype.getExtension=function(k){return _.W(k,_.yx)};
LJ.prototype.JSC$13266_buildRequest=function(k,E){E.target&&(k.target=E.target);if(E=this.getParams(E))k.params=E};
LJ.prototype.getParams=function(k){switch(k==null?void 0:k.status){case "DISLIKE":return k.dislikeParams;case "INDIFFERENT":return k.removeLikeParams;default:return k==null?void 0:k.likeParams}};var jt=function(){};
_.y(jt,yW);jt.prototype.getApiPaths=function(){return Dkz};
jt.prototype.getExtension=function(k){return _.W(k,WwC)};
jt.prototype.JSC$13266_buildRequest=function(k,E){E.settingItemId&&(k.settingItemId=E.settingItemId);E.stringValue!=null&&E.stringValue!==void 0?k.newValue={stringValue:E.stringValue}:E.intValue?k.newValue={intValue:E.intValue}:E.boolValue!==null&&E.boolValue!==void 0?k.newValue={boolValue:E.boolValue}:(k=new _.LC("Unknown value type for SetSettingEndpoint.",E),_.bM(k))};var Di=function(){};
_.y(Di,yW);Di.prototype.getApiPaths=function(){return vpd};
Di.prototype.getExtension=function(k){return _.W(k,$1C)||void 0};
Di.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.channelIds&&(k.channelIds=E.channelIds);E.siloName&&(k.siloName=E.siloName);E.params&&(k.params=E.params);S.botguardResponse&&(k.botguardResponse=S.botguardResponse);S.feature&&(k.clientFeature=S.feature)};
_.mt.Object.defineProperties(Di.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $K=function(){};
_.y($K,yW);$K.prototype.getApiPaths=function(){return ZQj};
$K.prototype.getExtension=function(k){return _.W(k,FwT)||void 0};
$K.prototype.JSC$13266_buildRequest=function(k,E){E.channelIds&&(k.channelIds=E.channelIds);E.siloName&&(k.siloName=E.siloName);E.params&&(k.params=E.params)};
_.mt.Object.defineProperties($K.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fJ=function(k){this.shareClientParamsProvider=k};
_.y(fJ,yW);fJ.prototype.getApiPaths=function(){return sGh};
fJ.prototype.getExtension=function(k){return _.W(k,l2d)||_.W(k,_.MMY)||_.W(k,sg5)};
fJ.prototype.JSC$13266_buildRequest=function(k,E){E.serializedShareEntity&&(k.serializedSharedEntity=E.serializedShareEntity);if(E.clientParamIdentifier){var S;if((S=this.shareClientParamsProvider)==null?0:S.clientParams.has(E.clientParamIdentifier)){S=this.shareClientParamsProvider;E=E.clientParamIdentifier;var R=S.clientParams.get(E);R&&S.clientParams.delete(E);k.clientParams=R}}};
fJ[au]=[D20];var vr=function(){};
_.y(vr,yW);vr.prototype.getApiPaths=function(){return F15};
vr.prototype.getExtension=function(k){return _.W(k,Y9d)};
vr.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var bB=function(){};
_.y(bB,yW);bB.prototype.getApiPaths=function(){return dZC};
bB.prototype.getExtension=function(k){return _.W(k,w7Y)};
bB.prototype.JSC$13266_buildRequest=function(k,E){E.dismissal&&(k.items=[E.dismissal])};
_.mt.Object.defineProperties(bB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Zi=function(){};
_.y(Zi,yW);Zi.prototype.getApiPaths=function(){return ej5};
Zi.prototype.getExtension=function(k){return _.W(k,_.wy)||void 0};
Zi.prototype.JSC$13266_buildRequest=function(k,E,S){k.feedbackTokens=[];E.feedbackToken&&k.feedbackTokens.push(E.feedbackToken);if(E=E.cpn||S.cpn)k.feedbackContext={cpn:E};k.isFeedbackTokenUnencrypted=!!S.is_feedback_token_unencrypted;k.shouldMerge=!1;S.extra_feedback_tokens&&(k.shouldMerge=!0,k.feedbackTokens=k.feedbackTokens.concat(S.extra_feedback_tokens))};
_.mt.Object.defineProperties(Zi.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dn=function(){};
_.y(dn,yW);dn.prototype.getApiPaths=function(){return ej5};
dn.prototype.getExtension=function(k){return _.W(k,_.Ev)};
dn.prototype.JSC$13266_buildRequest=function(k,E,S){S.feedback_tokens&&(k.feedbackTokens=S.feedback_tokens,k.shouldMerge=!0)};
_.mt.Object.defineProperties(dn.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var sZ=function(){};
_.y(sZ,yW);sZ.prototype.getApiPaths=function(){return ej5};
sZ.prototype.getExtension=function(k){return _.W(k,CVe)};
sZ.prototype.JSC$13266_buildRequest=function(k,E){E.undoToken&&(k.feedbackTokens=[E.undoToken]);E.isUndoTokenUnencrypted&&(k.isFeedbackTokenUnencrypted=E.isUndoTokenUnencrypted)};
_.mt.Object.defineProperties(sZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lB=function(){};
_.y(lB,yW);lB.prototype.getApiPaths=function(){return CwT};
lB.prototype.getExtension=function(k){return _.W(k,aT2)};
lB.prototype.JSC$13266_buildRequest=function(k,E){E.nextEndpoint&&_.W(E.nextEndpoint,_.Oc)?k.nextEndpoint={urlEndpoint:_.W(E.nextEndpoint,_.Oc)}:E.nextEndpoint&&_.W(E.nextEndpoint,_.jm)&&(k.nextEndpoint={watchEndpoint:_.W(E.nextEndpoint,_.jm)});E.setRacy&&(k.setRacy=E.setRacy);E.setControvercy&&(k.setControvercy=E.setControvercy)};var Mr=function(k){this.JSC$18112_storeWithEntities=k};
_.y(Mr,yW);Mr.prototype.getApiPaths=function(){return l8j};
Mr.prototype.getExtension=function(k){return _.W(k,fTj)};
Mr.prototype.JSC$13266_buildRequest=function(k,E){E.flowId&&(k.flowId=E.flowId);E.targetId&&(k.targetId=E.targetId);E.continuation&&(k.continuation=E.continuation);var S=E.flowStateEntityKey;if(E.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&S&&this.JSC$18112_storeWithEntities){var R;if(E=(R=this.JSC$18112_storeWithEntities.getState())==null?void 0:R.entities)if(R=_.Ov(S).entityType,R=_.Ep(E,R,S))k.flowState=R,k.flowStateEntityKey=S}};
_.mt.Object.defineProperties(Mr.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Mr[au]=[ZI];var sh0=function(){};
_.y(sh0,yW);_.I=sh0.prototype;_.I.getApiPaths=function(){return mk8};
_.I.JSC$13273_getStoreKey=function(){return _.LI("guide")};
_.I.getRequestConfig=function(){var k=this.JSC$13273_getStoreKey(),E;k&&(E={storeStrategy:{storeKey:k}});return E};
_.I.isNavigationCommand=function(){return!0};
_.I.getExtension=function(k){return _.W(k,_.Ev)};
_.I.JSC$13266_buildRequest=function(k){k.fetchLiveState=!0};var qr=function(){};
_.y(qr,yW);qr.prototype.getApiPaths=function(){return g_8};
qr.prototype.getExtension=function(k){return _.W(k,VDA)};
qr.prototype.JSC$13266_buildRequest=function(){};var zh=function(){};
_.y(zh,yW);zh.prototype.getApiPaths=function(){return UZC};
zh.prototype.getExtension=function(k){return _.W(k,NHC)};
zh.prototype.JSC$13266_buildRequest=function(){};var QZ=function(){};
_.y(QZ,yW);QZ.prototype.getApiPaths=function(){return W1C};
QZ.prototype.getExtension=function(k){return _.W(k,_.H9)};
QZ.prototype.JSC$13266_buildRequest=function(k,E){E.token&&(k.continuation=E.token);var S,R;k==null||(S=k.context)==null||(R=S.user)==null||delete R.onBehalfOfUser};
QZ.prototype.getRequestConfig=function(k){var E={},S;if(((S=this.getExtension(k))==null?void 0:S.sessionIndex)!==void 0){var R;E={authStrategy:{sessionIndex:(R=this.getExtension(k))==null?void 0:R.sessionIndex}}}return E};var OZ=function(){};
_.y(OZ,yW);OZ.prototype.JSC$13266_getRequest=function(k){var E=this.getExtension(k),S=k="";if(E==null?0:E.popup)k="true";if(E==null?0:E.disableSignout)S="true";E={};return{input:"/getAccountSwitcherEndpoint",requestShell:xu("/getAccountSwitcherEndpoint","GET",(E["X-YouTube-Delegation-Context"]=_.Mg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),E["X-YouTube-Account-Switcher-Popup"]=k,E["X-YouTube-Account-Switcher-Disable-Signout"]=S,E)),innerTubeRequest:{}}};
OZ.prototype.getApiPaths=function(){return[]};
OZ.prototype.getExtension=function(k){return _.W(k,_.USm)};
OZ.prototype.JSC$13266_buildRequest=function(){};var Gh=function(){};
_.y(Gh,yW);Gh.prototype.JSC$13266_getRequest=function(k){var E="/cross_account_channel_transfer";(k=this.getExtension(k))&&(E=srb(E,{target_session:k.targetSessionIndex,source_rapt:k.sourceRapt,rapt:k.targetRapt}));return{input:E,requestShell:xu(E,"GET"),innerTubeRequest:{}}};
Gh.prototype.getApiPaths=function(){return[]};
Gh.prototype.getExtension=function(k){return _.W(k,iYz)};
Gh.prototype.JSC$13266_buildRequest=function(){};var CJ=function(){};
_.y(CJ,yW);CJ.prototype.getApiPaths=function(){return MYA};
CJ.prototype.isNavigationCommand=function(){return!0};
CJ.prototype.getExtension=function(k){return _.W(k,_.Ev)};
CJ.prototype.JSC$13266_buildRequest=function(k){var E=_.nz().get("gsml","");E&&(k.safetyModeLockerObfuscatedGaiaId=E);k.userInterfaceTheme=_.aR(!0);_.tg()?k.deviceTheme="DEVICE_THEME_SELECTED":_.wWt()?k.deviceTheme="DEVICE_THEME_SUPPORTED":k.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var n1=function(){};
_.y(n1,yW);n1.prototype.getApiPaths=function(){return W1C};
n1.prototype.getExtension=function(k){return _.W(k,hC4)};
n1.prototype.JSC$13266_buildRequest=function(k,E){if(E&&E.requestType&&(k.requestType=E.requestType,E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var S=E.nextUrl;S&&(_.Mm1(S)||J3(S))&&(k.nextNavendpoint={urlEndpoint:{url:S}})}E&&E.channelSwitcherQuery&&(k.channelSwitcherQuery=E.channelSwitcherQuery);E&&E.triggerChannelCreation&&(k.triggerChannelCreation=E.triggerChannelCreation);var R;if(E==null?0:(R=E.contentOwnerConfig)==
null?0:R.externalContentOwnerId)k.contentOwnerConfig=E.contentOwnerConfig;k.callCircumstance=E&&E.requestType&&E.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var V,N;E=k==null?void 0:(V=k.context)==null?void 0:(N=V.user)==null?void 0:N.onBehalfOfUser;if(E!==void 0){k.obfuscatedSelectedGaiaId=E;var h,J;k==null||(h=k.context)==null||(J=h.user)==null||delete J.onBehalfOfUser}var m,a;if(V=k==null?void 0:(m=k.context)==null?void 0:(a=m.user)==null?
void 0:a.serializedDelegationContext)k.selectedSerializedDelegationContext=V};var is=function(){};
_.y(is,yW);is.prototype.getApiPaths=function(){return y7C};
is.prototype.getExtension=function(k){return _.W(k,qE4)};
is.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var hY=function(){};
_.y(hY,yW);hY.prototype.getApiPaths=function(){return r78};
hY.prototype.getExtension=function(k){return _.W(k,_.Njj)};
hY.prototype.JSC$13266_buildRequest=function(k,E){if(E=E.createBroadcastRequest)k.useMasks=E.useMasks,k.broadcastType=E.broadcastType,k.broadcastSource=E.broadcastSource,k.broadcastMetadata=E.broadcastMetadata,k.broadcastMetadataMask=E.broadcastMetadataMask,k.videoMetadata=E.videoMetadata,k.videoMetadataMask=E.videoMetadataMask,k.liveChatSettingsUpdate=E.liveChatSettingsUpdate,k.liveChatSettingsUpdateMask=E.liveChatSettingsUpdateMask,k.cloneVideoId=E.cloneVideoId,k.cloneWithOverrides=E.cloneWithOverrides,
k.targetEntity=E.targetEntity,k.scheduledRedirectMetadata=E.scheduledRedirectMetadata};var JY=function(){};
_.y(JY,yW);JY.prototype.getApiPaths=function(){return jTd};
JY.prototype.getExtension=function(k){return _.W(k,OKj)};
JY.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.params&&(k.params=E.params);S.questionText&&(k.questionText=S.questionText);S.optionText&&S.optionText.length>0&&(k.optionText=S.optionText)};var c1=function(){};
_.y(c1,yW);c1.prototype.getApiPaths=function(){return f8C};
c1.prototype.getExtension=function(k){return _.W(k,zKY)};
c1.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var m8=function(){};
_.y(m8,yW);m8.prototype.getApiPaths=function(){return GQY};
m8.prototype.getExtension=function(k){return _.W(k,sJ8)};
m8.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var e5=function(){};
_.y(e5,yW);e5.prototype.getApiPaths=function(){return kC4};
e5.prototype.getExtension=function(k){return _.W(k,lr2)};
e5.prototype.JSC$13266_buildRequest=function(k,E,S){E.params&&(k.params=E.params);E.continuation&&(k.continuation=E.continuation);S.currentPlayerState&&S.currentPlayerState.playerOffsetMs&&(k.currentPlayerState={playerOffsetMs:S.currentPlayerState.playerOffsetMs.toString()})};var aN=function(){};
_.y(aN,yW);aN.prototype.getApiPaths=function(){return EpA};
aN.prototype.getExtension=function(k){return _.W(k,dzC)};
aN.prototype.JSC$13266_buildRequest=function(k,E,S){E.params&&(k.params=E.params);S.continuation&&(k.continuation=S.continuation);"hidden"in S&&(k.webClientInfo={isDocumentHidden:S.hidden});S.isInvalidationTimeoutRequest&&(k.isInvalidationTimeoutRequest=S.isInvalidationTimeoutRequest);S.invalidationPayload&&(E=ZKz(_.k2(c_(S.invalidationPayload))),k.invalidationPayloadLastPublishAtUsec=wF(E,2));S.reloadActionPanel&&(k.reloadActionPanel=S.reloadActionPanel);S.fullReload&&(k.fullReload=S.fullReload);
S.currentPlayerState&&(k.currentPlayerState=S.currentPlayerState)};var tY=function(){};
_.y(tY,yW);tY.prototype.getApiPaths=function(){return TMC};
tY.prototype.getExtension=function(k){return _.W(k,QJ5)};
tY.prototype.JSC$13266_buildRequest=function(k,E){k.params=E.params};var T$=function(){};
_.y(T$,yW);T$.prototype.getApiPaths=function(){return CiY};
T$.prototype.getExtension=function(k){return _.W(k,Jr5)};
T$.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var wr=function(){};
_.y(wr,yW);wr.prototype.getApiPaths=function(){return SW8};
wr.prototype.getExtension=function(k){return _.W(k,cr8)};
wr.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var P1=function(){};
_.y(P1,yW);P1.prototype.getApiPaths=function(){return wad};
P1.prototype.getExtension=function(k){return _.W(k,GgA)};
P1.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var B1=function(){};
_.y(B1,yW);B1.prototype.getApiPaths=function(){return BMz};
B1.prototype.getExtension=function(k){return _.W(k,C3Y)};
B1.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var YE=function(){};
_.y(YE,yW);YE.prototype.getApiPaths=function(){return HQ5};
YE.prototype.getExtension=function(k){return _.W(k,OMd)};
YE.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var W1=function(){};
_.y(W1,yW);W1.prototype.getApiPaths=function(){return LDz};
W1.prototype.getExtension=function(k){return _.W(k,_.k7Y)};
W1.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.params&&(k.params=E.params);S.client_message_id&&(k.clientMessageId=S.client_message_id);S.recaptcha_token&&(k.recaptchaToken=S.recaptcha_token);S.rich_message&&S.rich_message.text_segments?(E=S.rich_message.text_segments.map(function(R){var V={};R.text&&(V.text=R.text);R.emoji_id&&(V.emojiId=R.emoji_id);return V}),k.richMessage={textSegments:E}):S.message&&(k.message=S.message);
S.currentPlayerState&&(k.currentPlayerState=S.currentPlayerState)};var FK=function(){};
_.y(FK,yW);FK.prototype.getApiPaths=function(){return jnY};
FK.prototype.getExtension=function(k){return _.W(k,Eop)};
FK.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var yj=function(){};
_.y(yj,yW);yj.prototype.getApiPaths=function(){return bQp};
yj.prototype.getExtension=function(k){return _.W(k,RfC)};
yj.prototype.JSC$13266_buildRequest=function(k,E,S){E.isUserInitiated&&(k.isUserInitiated=E.isUserInitiated);E.initiationSource&&(k.initiationSource=E.initiationSource);S.locationInfo&&(k.context.client.locationInfo=S.locationInfo)};var oN=function(){};
_.y(oN,yW);oN.prototype.getApiPaths=function(){return Pw4};
oN.prototype.getExtension=function(k){return _.W(k,I2z)};
oN.prototype.JSC$13266_buildRequest=function(k,E,S){E.metadataUpdateRequest&&(E=E.metadataUpdateRequest,k.encryptedVideoId=E.encryptedVideoId,E.liveChat&&(E=E.liveChat,k.liveChat||(k.liveChat={}),E.performAsExternalChannelId&&(k.liveChat.performAsExternalChannelId=E.performAsExternalChannelId),E.source&&(k.liveChat.source=E.source)));var R;if(S==null?0:(R=S.liveChat)==null?0:R.liveChatSettings)k.liveChat||(k.liveChat={}),S=S.liveChat.liveChatSettings,k.liveChat.newLiveChatSettings=S,k.liveChat.newLiveChatSettingsMask||
(k.liveChat.newLiveChatSettingsMask={}),S.emojiReactionSet&&(k.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var XK=function(){};
_.y(XK,yW);XK.prototype.getApiPaths=function(){return OQC};
XK.prototype.getExtension=function(k){return _.W(k,_.yUY)};
XK.prototype.JSC$13266_buildRequest=function(k,E,S){S.continuation?k.continuation=S.continuation:E.videoId&&(k.videoId=E.videoId);S.clientParams&&(k.clientParams=S.clientParams)};var gr=function(){};
_.y(gr,yW);gr.prototype.getApiPaths=function(){return RjT};
gr.prototype.getExtension=function(k){return _.W(k,_.fK)};
gr.prototype.JSC$13266_buildRequest=function(k,E){k.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";k.fetchCommentsParams={};E.videoId&&(k.fetchCommentsParams.encryptedVideoId=E.videoId);E.postId&&(k.fetchCommentsParams.postId=E.postId);E.externalChannelId&&(k.fetchCommentsParams.externalChannelId=E.externalChannelId);E.linkedCommentId&&(k.fetchCommentsParams.linkedCommentId=E.linkedCommentId);(0,_.fO.isEmpty)(k.fetchCommentsParams)&&delete k.fetchCommentsParams};var Ul=function(){};
_.y(Ul,yW);Ul.prototype.getApiPaths=function(){return rE};
Ul.prototype.JSC$13266_buildRequest=function(k){k.browseId="FEnotifications_inbox"};
Ul.prototype.getExtension=function(k){return _.W(k,_.Ev)};var H1=function(){};
_.y(H1,yW);H1.prototype.getApiPaths=function(){return RjT};
H1.prototype.JSC$13266_buildRequest=function(k,E){E.signal==="GET_NOTIFICATIONS_MENU"&&(k.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");E.ctoken&&(k.ctoken=E.ctoken)};
var lBU=function(){};
_.y(lBU,H1);lBU.prototype.getExtension=function(k){return _.W(k,_.Ev)};
var M1G=function(){};
_.y(M1G,H1);M1G.prototype.getExtension=function(k){return _.W(k,c$j)};var K1=function(){};
_.y(K1,yW);K1.prototype.getApiPaths=function(){return hjj};
K1.prototype.getExtension=function(k){return _.W(k,_.Ev)};
K1.prototype.JSC$13266_buildRequest=function(){};var p1=function(){};
_.y(p1,yW);p1.prototype.getApiPaths=function(){return YWC};
p1.prototype.getExtension=function(k){return _.W(k,aGC)||void 0};
p1.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params);E.secondaryParams&&(k.secondaryParams=E.secondaryParams)};var AY=function(){};
_.y(AY,yW);AY.prototype.getApiPaths=function(){return WDC};
AY.prototype.getExtension=function(k){return _.W(k,zVp)};
AY.prototype.JSC$13266_buildRequest=function(k,E){E.undo&&(k.undo=E.undo);E.serializedOptOut&&(k.serializedOptOut=E.serializedOptOut);E.serializedRecordInteractionsRequest&&(k.serializedRecordInteractionsRequest=E.serializedRecordInteractionsRequest)};var rr=function(){};
_.y(rr,yW);rr.prototype.getApiPaths=function(){return opT};
rr.prototype.getExtension=function(k){return _.W(k,Qgp)};
rr.prototype.JSC$13266_buildRequest=function(k,E){E.serializedInteractionsRequest&&(k.serializedRecordNotificationInteractionsRequest=E.serializedInteractionsRequest)};var us=function(){};
_.y(us,yW);us.prototype.getApiPaths=function(){return lP1};
us.prototype.getExtension=function(k){return _.W(k,LaC)};
us.prototype.JSC$13266_buildRequest=function(k,E,S){E=E===void 0?{}:E;S=S===void 0?{}:S;E.videoId?k.videoId=E.videoId:E.playlistId&&(k.playlistId=E.playlistId);var R,V=(R=E.offlineWebClientEligibility)!=null?R:S.offlineWebClientEligibility;V&&(k.offlineWebClientEligibility=V);var N;if(R=(N=E.preferredFormatType)!=null?N:S.preferredFormatType)k.preferredFormatType=R;var h;if(N=(h=E.lastOfflineQualitySettingsSavedMs)!=null?h:S.lastOfflineQualitySettingsSavedMs)k.lastOfflineQualitySettingsSavedMs=N;
E.params&&(k.params=E.params)};var xE=function(){};
_.y(xE,yW);xE.prototype.getApiPaths=function(){return NF};
xE.prototype.getExtension=function(k){return _.W(k,_.H9)};
xE.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.token&&(k.continuation=E.token);S.formData&&(k.formData=S.formData)};var L1=function(){};
_.y(L1,yW);L1.prototype.getApiPaths=function(){return NF};
L1.prototype.getExtension=function(k){return _.W(k,kMA)};
L1.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;k.continuation=S.continuation};var j5=function(){};
_.y(j5,yW);j5.prototype.getApiPaths=function(){return NF};
j5.prototype.getExtension=function(k){return _.W(k,_.Te)};
j5.prototype.JSC$13266_buildRequest=function(k,E){var S,R=E.panelIdentifier||((S=E.identifier)==null?void 0:S.tag);R&&(k.panelId=R);var V;if((V=E.globalConfiguration)==null?0:V.params){var N;k.params=(N=E.globalConfiguration)==null?void 0:N.params}};
_.mt.Object.defineProperties(j5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var DH=function(){};
_.y(DH,yW);DH.prototype.getApiPaths=function(){return NF};
DH.prototype.getExtension=function(k){return _.W(k,Z6d)};
DH.prototype.JSC$13266_buildRequest=function(k,E){E.panelLoadingStrategy&&swA(k,E.panelLoadingStrategy)};var $E=function(){};
_.y($E,yW);$E.prototype.getApiPaths=function(){return NF};
$E.prototype.getExtension=function(k){return _.W(k,nBC)};
$E.prototype.JSC$13266_buildRequest=function(k,E){E.loadingStrategy&&swA(k,E.loadingStrategy)};var f1=function(){};
_.y(f1,yW);f1.prototype.getApiPaths=function(){return NF};
f1.prototype.getExtension=function(k){return _.W(k,_.Jl1)};
f1.prototype.JSC$13266_buildRequest=function(k,E){E.panelLoadingStrategy&&swA(k,E.panelLoadingStrategy)};var v1=function(){};
_.y(v1,yW);v1.prototype.getApiPaths=function(){return NF};
v1.prototype.getExtension=function(k){return _.W(k,iGd)};
v1.prototype.JSC$13266_buildRequest=function(k,E){var S,R=(S=E.contentSourcePanelIdentifier)==null?void 0:S.tag;R&&(k.panelId=R);var V;if((V=E.globalConfiguration)==null?0:V.params){var N;k.params=(N=E.globalConfiguration)==null?void 0:N.params}};var bs=function(){};
_.y(bs,yW);bs.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
bs.prototype.getExtension=function(k){return _.W(k,h14)};
bs.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var ZH=function(){};
_.y(ZH,yW);ZH.prototype.getApiPaths=function(){return Qn8};
ZH.prototype.getExtension=function(k){return _.W(k,mq2)};
ZH.prototype.JSC$13266_buildRequest=function(k,E){E.externalChannelId&&(k.externalChannelId=E.externalChannelId);E.superChatAction&&(k.superChatAction=E.superChatAction);E.superStickersAction&&(k.superStickersAction=E.superStickersAction)};var dr=function(){};
_.y(dr,yW);dr.prototype.getApiPaths=function(){return qhd};
dr.prototype.getExtension=function(k){return _.W(k,Rt8)||_.W(k,DSA)};
dr.prototype.JSC$13266_buildRequest=function(k,E){E.videoIds?k.videoIds=E.videoIds:E.videoId&&(k.videoIds=[E.videoId]);E.playlistId&&(k.playlistId=E.playlistId);E.params&&(k.params=E.params);k.excludeWatchLater=!1};var sl=function(){};
_.y(sl,yW);sl.prototype.getApiPaths=function(){return DZC};
sl.prototype.getExtension=function(k){return _.W(k,_.Mz)};
sl.prototype.JSC$13266_buildRequest=function(k,E,S){S.create_playlist_title?k.title=S.create_playlist_title:E.title&&(k.title=E.title);if(S.create_playlist_privacy_status&&typeof S.create_playlist_privacy_status==="number"){a:{var R=S.create_playlist_privacy_status;if(R!==0){if(R===1){R="PUBLIC";break a}if(R===2){R="UNLISTED";break a}}R="PRIVATE"}k.privacyStatus=R}else E.privacyStatus&&(k.privacyStatus=E.privacyStatus);S.create_playlist_description&&(k.description=S.create_playlist_description);E.videoIds&&
(k.videoIds=E.videoIds);E.params&&(k.params=E.params);E.sourcePlaylistId&&(k.sourcePlaylistId=E.sourcePlaylistId)};var ls=function(){};
_.y(ls,yW);ls.prototype.getApiPaths=function(){return v_C};
ls.prototype.getExtension=function(k){return _.W(k,m8j)};
ls.prototype.JSC$13266_buildRequest=function(k,E){k.playlistId=E.playlistId};var Mo=function(){};
_.y(Mo,yW);Mo.prototype.getApiPaths=function(){return V4p};
Mo.prototype.getExtension=function(k){return _.W(k,ZMd)};
Mo.prototype.JSC$13266_buildRequest=function(k,E){E.playlistId&&(k.playlistId=E.playlistId);E.params&&(k.params=E.params)};var qo=function(){};
_.y(qo,yW);qo.prototype.getApiPaths=function(){return yvd};
qo.prototype.getExtension=function(k){return _.W(k,_.vF)||void 0};
qo.prototype.JSC$13266_buildRequest=function(k,E){E.actions&&(k.actions=E.actions);E.params&&(k.params=E.params);E.playlistId&&(k.playlistId=E.playlistId)};var z$=function(){};
_.y(z$,yW);_.I=z$.prototype;_.I.getApiPaths=function(){return Xad};
_.I.getExtension=function(k){return _.W(k,_.hg)};
_.I.JSC$13266_buildRequest=function(k,E){E.videoId&&(k.playerRequest={videoId:E.videoId},E.playerParams&&(k.playerRequest.params=E.playerParams),E.racyCheckOk&&(k.playerRequest.racyCheckOk=!!E.racyCheckOk),E.contentCheckOk&&(k.playerRequest.contentCheckOk=!!E.contentCheckOk));E.params&&(k.params=E.params);E.inputType&&(k.inputType=E.inputType);k.disablePlayerResponse=!0};
_.I.getRequestConfig=function(k){var E;(k=this.JSC$13273_getStoreKey(k))&&(E={storeStrategy:{storeKey:k}});_.Y("web_log_reels_ticks")&&(E=E||{},E.requestTick="r_wrs",E.responseTick="r_wrr");return E};
_.I.JSC$13273_getStoreKey=function(k){k=this.getExtension(k);if(k!=null&&k.videoId){var E={videoId:k.videoId};k.params&&(E.params=k.params);return _.LI("reel_item_watch",E)}};var Qj=function(){};
_.y(Qj,yW);_.I=Qj.prototype;_.I.getApiPaths=function(){return gp5};
_.I.getExtension=function(k){return _.W(k,_.hg)};
_.I.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;k.sequenceParams=E.sequenceParams;var R;((R=S)==null?0:R.contentPlaybackContext)&&_.Y("web_shorts_prefetch_service_enabled")&&(k.playbackContext={contentPlaybackContext:S.contentPlaybackContext})};
_.I.JSC$13273_getStoreKey=function(k){if(_.Y("web_enable_delay_shorts_sequence_call")||_.Y("shorts_controller_retrieve_seedless_sequence_v2"))if(k=this.getExtension(k),k==null?0:k.sequenceParams)return _.LI("reel_watch_sequence",{sequenceParams:k.sequenceParams})};
_.I.getRequestConfig=function(k){k=this.JSC$13273_getStoreKey(k);var E;k&&(E={storeStrategy:{storeKey:k}});E=E||{};E.requestTick="r_wsrs";E.responseTick="r_wsrr";E.processorTick="r_wsrp";return E};
var Ol=function(){};
_.y(Ol,yW);Ol.prototype.getApiPaths=function(){return gp5};
Ol.prototype.getExtension=function(k){return _.W(k,_.H9)};
Ol.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.token&&(k.continuation=E.token);var R;((R=S)==null?0:R.contentPlaybackContext)&&_.Y("web_shorts_prefetch_service_enabled")&&(k.playbackContext={contentPlaybackContext:S.contentPlaybackContext})};
Ol.prototype.getRequestConfig=function(k){k=this.JSC$13273_getStoreKey(k);var E;k&&(E={storeStrategy:{storeKey:k}});E=E||{};E.requestTick="r_wsrs";E.responseTick="r_wsrr";E.processorTick="r_wsrp";return E};var G$=function(){};
_.y(G$,yW);G$.prototype.getApiPaths=function(){return sTY};
G$.prototype.getExtension=function(k){return _.W(k,_.joC)};
G$.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.flagAction&&(k.action=E.flagAction);E.flagRequestType&&(k.flagRequestType=E.flagRequestType);E.additionalDetailCheckboxChecked&&(k.additionalDetailCheckboxChecked=E.additionalDetailCheckboxChecked);E.legalCheckboxChecked&&(k.legalCheckboxChecked=E.legalCheckboxChecked);E={};S.flag_issue_type!==void 0&&(E.issue=S.flag_issue_type);S.flag_affiliation!==void 0&&(E.affiliation=S.flag_affiliation);S.flag_full_name&&(E.fullName=S.flag_full_name);
Object.keys(E).length&&(k.legalReportDetails=E);if(S.flag_description||S.text)k.userComments=S.flag_description||S.text;E={};S.minutes!==void 0&&S.seconds!==void 0&&(E.minutes=S.minutes,E.seconds=S.seconds);S.vss_id&&(E.vssId=S.vss_id);Object.keys(E).length&&(k.videoReportDetails=E);E={};S.video_ids&&(E.videoIds=S.video_ids);S.impersonated_channel_url&&(E.impersonatedChannelUrl=S.impersonated_channel_url);Object.keys(E).length&&(k.channelAbuseReportDetails=E)};
_.mt.Object.defineProperties(G$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var C1=function(){};
_.y(C1,yW);C1.prototype.getApiPaths=function(){return OsC};
C1.prototype.getExtension=function(k){return _.W(k,ctz)};
C1.prototype.JSC$13266_buildRequest=function(k,E){E.blockedForKidsContent&&(k.blockedForKidsContent=E.blockedForKidsContent)};var kV=function(){};
_.y(kV,yW);kV.prototype.getApiPaths=function(){return KDC};
kV.prototype.getExtension=function(k){return _.W(k,jDb)};
kV.prototype.JSC$13266_buildRequest=function(k,E,S){k.params=E.params;S.impersonated_channel_url&&(k.impersonatedChannelUrl=S.impersonated_channel_url)};var Er=function(){};
_.y(Er,yW);Er.prototype.getApiPaths=function(){return a5Y};
Er.prototype.getExtension=function(k){return _.W(k,_.mzY)};
Er.prototype.JSC$13266_buildRequest=function(k,E){E.items&&(k.items=E.items);E.kidGaiaId&&(k.kidGaiaId=E.kidGaiaId)};var SC=function(){};
_.y(SC,yW);SC.prototype.getApiPaths=function(){return zkT};
SC.prototype.getExtension=function(k){return _.W(k,_.kmd)};
SC.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params);E.targetId&&(k.targetId=E.targetId)};var Rp=function(){};
_.y(Rp,yW);Rp.prototype.getApiPaths=function(){return uI8};
Rp.prototype.getExtension=function(k){return _.W(k,mlp)};
Rp.prototype.JSC$13266_buildRequest=function(k,E){E.externalVideoId&&(k.externalVideoId=E.externalVideoId);E.query&&(k.query=E.query);E.sourceTimelines&&(k.sourceTimelines=E.sourceTimelines)};var VJ=function(){};
_.y(VJ,yW);VJ.prototype.getApiPaths=function(){return xkj};
VJ.prototype.getExtension=function(k){return _.W(k,_.H9)||void 0};
VJ.prototype.JSC$13266_buildRequest=function(k,E){E.token&&(k.continuation=E.token)};
_.qoW=function(){};
_.y(_.qoW,yW);_.I=_.qoW.prototype;_.I.getApiPaths=function(){return xkj};
_.I.getExtension=function(k){return _.W(k,_.IR)||void 0};
_.I.isNavigationCommand=function(){return!0};
_.I.JSC$13273_getStoreKey=function(k,E){E=E===void 0?{}:E;if(!E.disableCache&&(k=this.getExtension(k))&&k.query)return E={query:k.query},k.params&&(E.params=k.params),_.LI("search",E)};
_.I.JSC$13266_buildRequest=function(k,E,S){E.query&&(k.query=E.query);E.params&&(k.params=E.params);if(!_.Y("web_forward_suggest_stats_killswitch")){var R=_.W(E,Lcj);R&&(k.suggestStats=R)}var V;!_.Y("kevlar_searchbox_stats_killswitch")&&((V=S.tempData)==null?0:V.gs_l)&&!_.W(E,Lcj)&&(k.webSearchboxStatsUrl="/search?oq="+(S.tempData.oq||"")+"&gs_l="+S.tempData.gs_l);var N;if((N=S.tempData)==null?0:N.entityMid)E=k.suggestionSearchParams||{},E.entityMid=S.tempData.entityMid,k.suggestionSearchParams=E;
if(_.Y("enable_desktop_vdcbg_components")||_.Y("enable_inline_muted_playback_on_web_search"))E=_.nz().getFlag(186),k.inlineSettingStatus=E?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";var h;((h=S.tempData)==null?0:h.isFromShorts)&&_.Y("web_pass_shorts_context_to_search")&&(k.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.I.getRequestConfig=function(k,E){E=E===void 0?{}:E;k=this.JSC$13273_getStoreKey(k,E);var S;k&&(S={storeStrategy:{storeKey:k}});_.Y("web_log_search_ticks_ks")||(S=S||{},S.requestTick="sr_s",S.responseTick="sr_r");return S};var Nf=function(){};
_.y(Nf,yW);Nf.prototype.getApiPaths=function(){return np2};
Nf.prototype.getExtension=function(k){return _.W(k,H6j)};
Nf.prototype.JSC$13266_buildRequest=function(k,E){E.serializedGetSharingProviderDataParams&&(k.serializedGetSharingProviderDataParams=E.serializedGetSharingProviderDataParams)};var Ip=function(){};
_.y(Ip,yW);Ip.prototype.getApiPaths=function(){return iQ2};
Ip.prototype.getExtension=function(k){return _.W(k,A$p)};
Ip.prototype.JSC$13266_buildRequest=function(k,E){E.endpoint&&(k.endpoint=E.endpoint);E.action&&(k.action=E.action)};var nH=function(){};
_.y(nH,yW);nH.prototype.getApiPaths=function(){return bsj};
nH.prototype.getExtension=function(k){return _.W(k,et2)};
nH.prototype.JSC$13266_buildRequest=function(k,E){k.videoId=E.videoId;E.scheduledRedirectMetadataSourceVideoId&&(k.scheduledRedirectMetadata={sourceVideoId:E.scheduledRedirectMetadataSourceVideoId})};var i8=function(){};
_.y(i8,yW);i8.prototype.getApiPaths=function(){return $kY};
i8.prototype.getExtension=function(k){return _.W(k,_.aoT)};
i8.prototype.JSC$13266_buildRequest=function(k,E){k.params=E.params;k.correctionText=E.correctionText};var hA=function(){};
_.y(hA,yW);hA.prototype.getApiPaths=function(){return Zej};
hA.prototype.getExtension=function(k){return _.W(k,_.emd)};
hA.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params);k.searchQuery=E.searchQuery;k.languageCode=E.languageCode;k.kind=E.kind;k.name=E.name;k.externalVideoId=E.externalVideoId};var JA=function(){};
_.y(JA,yW);JA.prototype.getApiPaths=function(){return E08};
JA.prototype.getExtension=function(k){return _.W(k,KBA)};
JA.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.params=E.params)};var cO=function(k){this.JSC$18383_storeWithEntities=k};
_.y(cO,yW);cO.prototype.getApiPaths=function(){return pWA};
cO.prototype.getExtension=function(k){return _.W(k,AZz)||_.W(k,u7j)};
cO.prototype.JSC$13266_buildRequest=function(k,E,S){S.client_data&&(k.clientData=S.client_data);if(E.commerceActionConfig){var R=E.commerceActionConfig;E=R.actionId;R=R.commerceActionParams;E&&(k.actionId=E);R&&(k.commerceActionParams=R)}else{var V=E.actionId,N=E.commerceActionParams;S=E.entityKeys;V&&(k.actionId=V);N&&(k.commerceActionParams=N);var h;E=(R=this.JSC$18383_storeWithEntities)==null?void 0:(h=R.getState())==null?void 0:h.entities;if(S&&E){R=[];h=_.n(S);for(S=h.next();!S.done;S=h.next())if(V=
S.value,S=_.Ov(V).entityType,V=_.Ep(E,S,V))N={},R.push((N[S]=V,N));k.entityMutationPayloads=R}}};
cO.prototype.getRequestConfig=function(k){var E,S=(E=_.W(k,AZz))==null?void 0:E.requestSequenceType;if(S&&k.clickTrackingParams&&S!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:k.clickTrackingParams,sequenceType:S}}};
cO[au]=[ZI];var mg=function(){};
_.y(mg,yW);mg.prototype.getApiPaths=function(){return Ssz};
mg.prototype.getExtension=function(k){return _.W(k,_.GDY)};
mg.prototype.JSC$13266_buildRequest=function(k,E){E.feedbackData&&(k.feedbackData=E.feedbackData);E.params&&(k.itemParams=E.params)};
_.mt.Object.defineProperties(mg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var eC=function(){};
_.y(eC,yW);eC.prototype.getApiPaths=function(){return RHC};
eC.prototype.getExtension=function(k){return _.W(k,CRC)};
eC.prototype.JSC$13266_buildRequest=function(k,E,S){S.payments_payload&&(k.paymentsPayload=S.payments_payload);S.offer_params&&(k.offerParams=S.offer_params);E.transactionParams&&(k.transactionParams=E.transactionParams)};var ap=function(){};
_.y(ap,yW);ap.prototype.getApiPaths=function(){return V24};
ap.prototype.getExtension=function(k){return _.W(k,_.kQ5)};
ap.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.buybucketParams&&(k.buybucketData={params:E.buybucketParams},E.stickerParams?k.buybucketData.stickerParams=E.stickerParams:(S.rich_chat_message?k.buybucketData.richChatMessage=S.rich_chat_message:S.chat_message_text&&(k.buybucketData.chatMessageText=S.chat_message_text),S.purchase_price_micros&&(k.buybucketData.purchasePriceMicros=S.purchase_price_micros.toString())));E.donationAmountMicros&&(k.tipAmountMicros=E.donationAmountMicros,
E.tipParams&&(k.tipParams=E.tipParams));E.offerParams&&(k.offerParams=E.offerParams);E.productData&&(k.productData=E.productData);E.transactionParams&&(k.transactionParams=E.transactionParams)};var tA=function(){};
_.y(tA,yW);tA.prototype.getApiPaths=function(){return NQC};
tA.prototype.getExtension=function(k){return _.W(k,Rkz)};
tA.prototype.JSC$13266_buildRequest=function(k,E){E.updateFopParams&&(k.updateFopParams=E.updateFopParams)};var TK=function(){};
_.y(TK,yW);TK.prototype.getApiPaths=function(){return IQC};
TK.prototype.getExtension=function(k){return _.W(k,_.xh)};
TK.prototype.JSC$13266_buildRequest=function(k,E){E.couponCode&&(k.couponCode=E.couponCode);E.params&&(k.itemParams=E.params)};var wp=function(){};
_.y(wp,yW);wp.prototype.getApiPaths=function(){return n04};
wp.prototype.getExtension=function(k){return _.W(k,_.rZ8)};
wp.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;E.params&&(k.params=E.params);S.ctk&&(k.clientToken=S.ctk)};var PO=function(k){this.JSC$18418_storeWithEntities=k};
_.y(PO,yW);PO.prototype.getApiPaths=function(){return iWd};
PO.prototype.getExtension=function(k){return _.W(k,_.O6)};
PO.prototype.JSC$13266_buildRequest=function(k,E,S){S.purchase_price_micros&&(k.productData={pdgData:{purchasePriceMicros:S.purchase_price_micros.toString()}},S.rich_chat_message&&(k.productData.pdgData.richChatMessage=S.rich_chat_message),S.currency_code&&(k.productData.pdgData.currencyCode=S.currency_code));E.transactionParams&&(k.transactionParams=E.transactionParams);E.clientLocationContext&&(k.clientLocationContext=E.clientLocationContext);S.payments_payload&&(k.paymentsPayload=S.payments_payload);
S.funds_guarantee_callback_client_data&&(k.fundsGuaranteeCallbackClientData=S.funds_guarantee_callback_client_data);var R,V;S=(R=this.JSC$18418_storeWithEntities)==null?void 0:(V=R.getState())==null?void 0:V.entities;if(E.entityKeys&&S){R=[];E=_.n(E.entityKeys);for(V=E.next();!V.done;V=E.next()){var N=V.value;V=_.Ov(N).entityType;if(N=_.Ep(S,V,N)){var h={};R.push((h[V]=N,h))}}k.entityMutationPayloads=R}};
PO[au]=[ZI];var BO=function(){};
_.y(BO,yW);BO.prototype.getApiPaths=function(){return hHd};
BO.prototype.getExtension=function(k){return _.W(k,E_T)};
BO.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;S.backend_analytics&&(k.serializedBackendAnalyticsEvent=S.backend_analytics);E.offerParams&&(k.offerParams=E.offerParams)};var YV=function(){};
_.y(YV,yW);YV.prototype.getApiPaths=function(){return IQC};
YV.prototype.getExtension=function(k){return _.W(k,YPi)};
YV.prototype.JSC$13266_buildRequest=function(k,E){E.params&&(k.itemParams=E.params)};var WO=function(){};
_.y(WO,yW);WO.prototype.getApiPaths=function(){return JG4};
WO.prototype.getExtension=function(k){return _.W(k,_.$Yd)};
WO.prototype.JSC$13266_buildRequest=function(k,E,S){S.resume_time_ms&&(k.resumeTimeMs=S.resume_time_ms);E.pauseParams&&(k.pauseParams=E.pauseParams)};var FM=function(){};
_.y(FM,yW);FM.prototype.getApiPaths=function(){return cGA};
FM.prototype.getExtension=function(k){return _.W(k,_.ShT)};
FM.prototype.JSC$13266_buildRequest=function(k,E,S){S=S===void 0?{}:S;S.c&&(k.redeemCode=S.c);S.rd&&(k.riskData=S.rd);S.ctk&&(k.clientToken=S.ctk)};var yJ=function(){};
_.y(yJ,yW);yJ.prototype.getApiPaths=function(){return mt4};
yJ.prototype.getExtension=function(k){return _.W(k,_.foC)};
yJ.prototype.JSC$13266_buildRequest=function(k,E){E.resumeParams&&(k.resumeParams=E.resumeParams)};var op=function(k,E){this.clientName=k;this.defaultExpirationDelayMs=E};
op.prototype.put=function(k,E){var S=this,R;return _.c(function(V){R=Object.assign({},E.data);R.key=k;R.clientName=S.clientName;R.expireTimestampMs===void 0&&(R.expireTimestampMs=(Math.round((0,_.ev)())+S.defaultExpirationDelayMs).toString());return V.return(S.putInternal(k,R))})};
op[au]=[q9,koU];var zhR=function(){op.apply(this,arguments);this.JSC$18448_responseStore=new Map};
_.y(zhR,op);_.I=zhR.prototype;_.I.get=function(k){var E=this;return _.c(function(S){return S.return(oQ(E,k))})};
_.I.putInternal=function(k,E){var S=this,R,V,N;return _.c(function(h){R=S.defaultExpirationDelayMs;E.expireTimestampMs&&(R=Number(E.expireTimestampMs)-Math.round((0,_.ev)()),V=_.wO("mweb_override_response_store_expiration_ms"),V>0&&V<R&&(R=V));N=setTimeout(function(){S.remove(k)},R);
S.JSC$18448_responseStore.set(k,{entryData:E,timer:N});_.KR(h)})};
_.I.remove=function(k){var E=this;return _.c(function(S){QhA(E,k);_.KR(S)})};
_.I.removeAll=function(){var k=this;return _.c(function(E){k.JSC$18448_responseStore.forEach(function(S){clearTimeout(S.timer)});
k.JSC$18448_responseStore.clear();_.KR(E)})};
_.I.has=function(k){return!!this.JSC$18448_responseStore.get(k)};
_.I.getKeys=function(){return this.JSC$18448_responseStore.keys()};
var oQ=function(k,E){if(k=k.JSC$18448_responseStore.get(E))return new _.yD(k.entryData)},QhA=function(k,E){var S=k.JSC$18448_responseStore.get(E);
S&&(clearTimeout(S.timer),k.JSC$18448_responseStore.delete(E))};var lh1;var zFh=function(k,E,S){op.call(this,k,E);this.token=S};
_.y(zFh,op);_.I=zFh.prototype;_.I.get=function(k){var E=this,S,R;return _.c(function(V){return V.nextAddress==1?V.yield(qyt(E.token),2):V.nextAddress!=3?(S=V.yieldResult,V.yield(S.get("ResponseStore",[k,E.clientName]),3)):(R=V.yieldResult)?V.return(new _.yD(R)):V.return(void 0)})};
_.I.putInternal=function(k,E){var S=this,R;return _.c(function(V){if(V.nextAddress==1)return V.yield(qyt(S.token),2);R=V.yieldResult;return V.yield(R.put("ResponseStore",E),0)})};
_.I.remove=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(qyt(E.token),2);S=R.yieldResult;return R.return(S.delete("ResponseStore",[k,E.clientName]))})};
_.I.removeAll=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return S.yield(qyt(k.token),2);E=S.yieldResult;return S.yield(BqY(E,IDBKeyRange.only(k.clientName)),0)})};
_.I.has=function(){throw Error("gj");};_.XM=new _.QE("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var OOP=function(k){var E;this.stateTagsData=(E=k.responseContext)==null?void 0:E.stateTags},GoY=function(k){var E;
return((E=k.stateTagsData)==null?void 0:E.stateTagsModified)||[]};var Chx;Chx=function(k){this.JSC$18461_responseStore=k};
_.UB=function(k,E,S){if(!_.Y("state_tags_killswitch")){var R=new OOP(E);if(GoY(R).length>0){var V=k.JSC$18461_responseStore.getKeys();V=_.n(V);for(var N=V.next();!N.done;N=V.next()){N=N.value;var h=oQ(k.JSC$18461_responseStore,N);if(h){var J=_.vZ(h);a:{var m=void 0;h=GoY(R);J=((m=(new OOP(J)).stateTagsData)==null?void 0:m.relevantStateTags)||[];m=_.n(J);for(J=m.next();!J.done;J=m.next())if(J=J.value,J.stateTag!=null&&h.includes(J.stateTag)&&J.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){h=
!0;break a}h=!1}h&&QhA(k.JSC$18461_responseStore,N)}}}}var a;R=(a=E.responseContext)==null?void 0:a.maxAgeSeconds;S&&R&&Number(R)>0&&(E=GZ(E,R),k.JSC$18461_responseStore.put(S,new _.yD(E)))};
Chx.prototype.handleResponse=function(k,E){if(!E)throw Error("hj");var S,R;E=(S=E.config)==null?void 0:(R=S.storeStrategy)==null?void 0:R.storeKey;_.UB(this,k,E)};
Chx[au]=[_.Fk];_.hTI=new _.QE("STORE_RESPONSE_PROCESSOR_TOKEN");var kx3=function(k){this.JSC$18464_responseStore=k};
kx3.prototype.handleResponse=function(k,E){if(E.input.match(_.bg(gp5))){var S;if(k==null?0:(S=k.entries)==null?0:S.length)for(k=_.n(k.entries),E=k.next();!E.done;E=k.next()){S=E.value.command;var R=void 0;E=(R=_.W(S,_.hg))==null?void 0:R.unserializedPrefetchData;if(!S||!E)break;R=(new z$).JSC$13273_getStoreKey(S);var V=_.W(E,DqC),N=void 0,h=void 0,J=void 0,m=void 0,a=void 0,T=void 0,w=((N=V)==null?0:(h=N.responseContext)==null?0:h.maxAgeSeconds)&&Number((J=V)==null?void 0:(m=J.responseContext)==null?
void 0:m.maxAgeSeconds)>0?Number((a=V)==null?void 0:(T=a.responseContext)==null?void 0:T.maxAgeSeconds):600;R&&w>0&&(V=GZ(V,w),this.JSC$18464_responseStore.put(R,new _.yD(V)));S=(new XQ).JSC$13273_getStoreKey(S);E=_.W(E,Wyd);m=J=h=N=V=R=void 0;a=((R=E)==null?0:(V=R.responseContext)==null?0:V.maxAgeSeconds)&&Number((N=E)==null?void 0:(h=N.responseContext)==null?void 0:h.maxAgeSeconds)>0?Number((J=E)==null?void 0:(m=J.responseContext)==null?void 0:m.maxAgeSeconds):600;S&&a>0&&(E=GZ(E,a),this.JSC$18464_responseStore.put(S,
new _.yD(E)))}}};
kx3[au]=[_.Fk];var E4G=function(k,E){this.innertubeTransportService=k;this.JSC$18467_commandHandler=E};
E4G.prototype.submitForm=function(k,E,S,R,V){var N=this,h,J,m,a,T,w;return _.c(function(P){if(P.nextAddress==1)return h={submitId:k,formData:E,submitBehavior:S,params:R},J=_.bg(f54),P.yield(_.qF(N.innertubeTransportService,h,J,V),2);m=P.yieldResult;if(!m)return P.return(Promise.reject(new _.LC("Submit API returned an undefined response. Submit ID: "+k)));a=m;(w=(T=a)==null?void 0:T.onResponseReceived)&&N.JSC$18467_commandHandler.resolveCommand(w);return P.return(a)})};
E4G[au]=[_.oR,_.t3];var gp=function(){this.scheduler=_.eH()},SaY;
gp.prototype.pause=function(){throw Error("ij");};
gp.prototype.resume=function(){throw Error("ij");};
gp.prototype.queue=function(k){var E=this,S=_.LU(),R=_.uM(this.scheduler,function(){try{var V;if(_.V_.instance)var N=_.V_.instance;else{var h=new _.LC("Error: Unexpected uninitialized CommandHandler.");_.bM(h);N=void 0}(V=N)==null||V.resolveCommand(k.command);S.resolve()}catch(J){S.reject(J)}});
S.promise.thenCatch(function(V){V instanceof _.o3&&E.scheduler.cancelJob(R)});
return S.promise};
gp.prototype.queueAll=function(k){var E=new Map;k=_.n(k);for(var S=k.next();!S.done;S=k.next())S=S.value,E.set(S.id,this.queue(S));return E};var VoT=function(k,E){var S=this;this.taskModel=k;this.onTaskCancelledCallback=E;this.resolver=_.LU();k=k.proto.prefetchConfig;if(!k)throw Error("jj");if(!k.prefetchAction)throw Error("kj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(R){R instanceof _.o3&&(R2A(S,S.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),S.onTaskCancelledCallback(S.taskModel.id,S.jobId),S.tick("pcc"));
throw R;});
this.timerName=this.taskModel.id;_.yi(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
VoT.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 R2A=function(k,E){_.BE({prefetchInfo:{cancellationReason:E}},k.timerName)};
VoT.prototype.tick=function(k){_.o_(k,void 0,this.timerName)};var HO=function(){var k=this;this.scheduler=_.eH();this.maxInflightTasks=_.wO("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.wO("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new kbj;this.onTaskCancelled=function(E,S){S&&k.scheduler.cancelJob(S);N7T(k,E);Ur(k,3)}},I7W=function(){HO.instance||(HO.instance=new HO);
return HO.instance};
HO.prototype.pause=function(){this.prefetchCoordinatorState=0};
HO.prototype.resume=function(){Ur(this,0)};
HO.prototype.queue=function(k){k=n4P(this,k);Ur(this,1);return k};
HO.prototype.queueAll=function(k){var E=new Map;k=_.n(k);for(var S=k.next();!S.done;S=k.next())S=S.value,E.set(S.id,n4P(this,S));Ur(this,1);return E};
var n4P=function(k,E){var S=k.allPrefetchTasks.get(E.id);if(S)return S.cancellablePromise;try{var R=new VoT(E,k.onTaskCancelled)}catch(N){return _.BM(N)}S=R;S.tick("pcq");var V={prefetchInfo:{taskId:S.taskModel.id,isPrefetch:!0,fetchAction:S.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:S.taskModel.command.clickTrackingParams}};S.taskModel.csn&&(V.clientScreenNonce=S.taskModel.csn);_.BE(V,S.timerName);k.allPrefetchTasks.set(E.id,R);k.drainingHeap.insert(-R.getPriority(),R);return R.cancellablePromise},
Ur=function(k,E){k.prefetchCoordinatorState===E&&(k.prefetchCoordinatorState=2,iuG(k))},iuG=function(k){for(var E={};k.prefetchCoordinatorState!==0;E={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(k.inflightPrefetchTasks.size>=k.maxInflightTasks){k.prefetchCoordinatorState=3;break}E.prefetchTask$jscomp$1=k.drainingHeap.remove();if(!E.prefetchTask$jscomp$1){k.prefetchCoordinatorState=1;break}E.taskId$jscomp$3=E.prefetchTask$jscomp$1.taskModel.id;if(k.allPrefetchTasks.has(E.taskId$jscomp$3)){var S=-1;k.coordinatorTimeoutMs>0&&(S=_.uM(k.scheduler,function(R){return function(){KH(k,R.taskId$jscomp$3,Error("lj"))}}(E),k.coordinatorTimeoutMs));
k.inflightPrefetchTasks.set(E.taskId$jscomp$3,S);if(!k.JSC$18484_commandHandler){if(!_.V_.instance){KH(k,E.taskId$jscomp$3,Error("mj"));continue}k.JSC$18484_commandHandler=_.V_.instance}a:switch(E.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":S=1;break a;default:S=0}E.prefetchTask$jscomp$1.jobId=k.scheduler.addJob(function(R){return function(){R.prefetchTask$jscomp$1.tick("pcr");try{k.JSC$18484_commandHandler.resolveCommand(R.prefetchTask$jscomp$1.taskModel.command)||
KH(k,R.taskId$jscomp$3,Error("nj"))}catch(V){KH(k,R.taskId$jscomp$3,V)}}}(E),S,0)}}},h2T=function(k,E){(E=N7T(k,E))!=null&&(E.resolver.resolve(),E.tick("pce"));
Ur(k,3)},KH=function(k,E,S){(E=N7T(k,E,S))!=null&&(E.resolver.reject(S),E.tick("pcc"),R2A(E,"CANCELLATION_REASON_ERROR"),Math.random()<=_.wO("prefetch_coordinator_error_logging_sampling_rate")&&(S=new _.LC("Prefetch Command failed.",E.taskModel.id,S.message),_.bM(S)));
Ur(k,3)},N7T=function(k,E,S){var R=k.allPrefetchTasks.get(E);
R?((S=k.inflightPrefetchTasks.get(E))&&S!==-1&&k.scheduler.cancelJob(S),k.inflightPrefetchTasks.delete(E),k.allPrefetchTasks.delete(E)):_.dg(new _.LC("Unexpected missing prefetch task when deleting task.",E,S==null?void 0:S.message));return R};var JPY=function(k,E,S,R,V){this.id=k;this.triggerOn=E;this.cancelOn=S;this.command=R;this.proto=V};
_.mt.Object.defineProperties(JPY.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var cPG=function(){this.JSC$18489_prefetchCoordinator=I7W();SaY||(SaY=new gp);this.defaultCoordinator=SaY},mTt;
cPG.getInstance=function(){mTt||(mTt=new cPG);return mTt};
cPG.prototype.get=function(k){switch(k){case 0:return this.JSC$18489_prefetchCoordinator;default:return this.defaultCoordinator}};var pH=function(){this.coordinatorSupplier=cPG.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},to0=function(k){var E=_.Fe()||void 0,S=Object.keys(e2a)[0];
if(S){var R=k.taskIdByTriggerId.get(S);if(R!=null){k.taskIdByTriggerId.delete(S);S=[];R=_.n(R);for(var V=R.next();!V.done;V=R.next())if(V=k.tasks.get(V.value))E!=="UNDEFINED_CSN"&&(V.csn=E),S.push(V);S=G5m(S);E=[];S=_.n(S);for(R=S.next();!R.done;R=S.next()){V=_.n(R.value);R=V.next().value;V=V.next().value;R=k.coordinatorSupplier.get(R).queueAll(V);R=_.n(R);var N=R.next();for(V={};!N.done;V={taskId$jscomp$9:void 0},N=R.next()){var h=_.n(N.value);N=h.next().value;h=h.next().value;V.taskId$jscomp$9=
N;N=h;E.push(V.taskId$jscomp$9);k.queuedPromisesByTask.set(V.taskId$jscomp$9,_.Ws(N,function(J){return function(){a7P(k,J.taskId$jscomp$9)}}(V)))}}}}else _.dg(new _.LC("Unexpected malformed TriggerEvent."))};
pH.prototype.trigger=function(k,E){var S=this,R=this.tasks.get(k);if(!R||this.queuedPromisesByTask.has(k))return!1;T7G(this,k,R.triggerOn);E!=="UNDEFINED_CSN"&&(R.csn=E);E=this.coordinatorSupplier.get(R.taskType).queue(R);this.queuedPromisesByTask.set(k,_.Ws(E,function(){a7P(S,k)}));
return!0};
pH.prototype.cancel=function(k){var E=this.queuedPromisesByTask.get(k);if(E)E.cancel();else return a7P(this,k)};
var a7P=function(k,E){k.queuedPromisesByTask.delete(E);var S=k.tasks.get(E);if(!S)return!1;k.tasks.delete(E);T7G(k,E,S.triggerOn);(S=OBi(S.cancelOn))&&(k=k.taskIdByCancelId.get(S))&&k.delete(E);return!0},T7G=function(k,E,S){(S=Object.keys(S)[0])&&(k=k.taskIdByTriggerId.get(S))&&k.delete(E)};var e2a={taskRegistered:{}},AA=function(){pH.instance||(pH.instance=new pH);this.JSC$18498_taskManager=pH.instance};
_.y(AA,kp);
AA.prototype.resolveCommand=function(k){var E=this,S,R;return _.c(function(V){S=_.W(k,fVA);if((R=S)==null||!R.tasks){var N=new _.LC("RegisterTasksCommand is missing tasks.");_.bM(N);return V.return()}N=E.JSC$18498_taskManager;for(var h=_.n(S.tasks),J=h.next();!J.done;J=h.next())if(J=J.value,J=J.id&&J.triggerOn&&J.cancelOn&&J.command?new JPY(J.id,J.triggerOn,J.cancelOn,J.command,J):void 0,J){var m=Object.keys(J.triggerOn)[0];if(m){var a=OBi(J.cancelOn);a?(N.tasks.set(J.id,J),N.taskIdByTriggerId.has(m)||N.taskIdByTriggerId.set(m,
new Set),N.taskIdByTriggerId.get(m).add(J.id),N.taskIdByCancelId.has(a)||N.taskIdByCancelId.set(a,new Set),N.taskIdByCancelId.get(a).add(J.id)):_.dg(new _.LC("Unexpected malformed cancelOn field."))}else _.dg(new _.LC("Unexpected malformed triggerOn field."))}else _.dg(new _.LC("Unexpected malformed Task proto."));to0(E.JSC$18498_taskManager);_.KR(V)})};var wy3={},Pkt=(wy3.rendered={priority:_.Y("web_adaptive_early_init")?8:0,callback:function(){var k={};k.numCpu=navigator.hardwareConcurrency;var E={};E.ramGb=_.Vt.navigator.deviceMemory;var S={staticContext:{}};E.ramGb&&Pei(E.ramGb)&&(S.staticContext.memoryTotalKbytes=(E.ramGb*1048576).toString());k.numCpu&&Pei(k.numCpu)&&(S.staticContext.cpuCores=k.numCpu);if(_.Y("web_enable_adaptive_appl_signal")){k={};E=P3R();E=E.length>0?E[0]:void 0;var R,V=(R=_.Uv("rses_dpj"))!=null?R:E==null?void 0:E.tick.rses_dpj,
N;R=(N=_.Uv("rsef_dpj"))!=null?N:E==null?void 0:E.tick.rsef_dpj;V&&Number(V)>0&&R&&Number(R)>0&&(N=Math.ceil(Number(R)-Number(V)),N>0&&(k.loadLatency=N));k.loadLatency&&Pei(k.loadLatency)&&(S.appL=k.loadLatency.toString())}_.f2("applicationStarted",S);Bxh=S;_.Y("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",Y$1)}},wy3);var B7G=new _.QE("WINDOW_ON_ERROR"),YaI=new _.QE("ERROR_WEIGHT_MAPS"),WbY=new _.QE("INIT_ERROR");var FbG={},yPP=(FbG.initialized={priority:10,callback:function(k){k.injector.resolve(WbY)()}},FbG);var o4T=function(){},XyI=function(){var k=_.CV("meta_logger_impl");
k||(k=new o4T,_.J6("meta_logger_impl",k));return k},g4P=function(){XyI().csiSubscriptionKey=vl1("meta_logging_csi_event",function(k){var E=k.timerName;
if(k=k.timelineData){_.yi(E,{startTime:k.startTime},E);k.infos&&_.BE(k.infos,E);for(var S=_.n(Object.keys(k.ticks)),R=S.next();!R.done;R=S.next())R=R.value,_.o_(R,k.ticks[R],E)}})};
o4T.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&dyA(this.csiSubscriptionKey)};var UTA={},HuG=(UTA.initialized={priority:10,callback:function(){g4P()}},UTA);var KbA=function(k,E){this.innertubeClientName=k;this.JSC$18509_prefCookie=E};
KbA.prototype.record=function(){if(_.Y("web_li_record_binary_eval_tick")){var k=_.Uv("rsef_dpj");var E=_.Uv("rses_dpj");k=k!==void 0&&E!==void 0?Math.round(k-E):void 0;if(k!==void 0&&k>0){E=_.Yl(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var S=this.poolSize;if(!(E.valuesSeen>=1E9)){if(E.valuesSample.length<S)E.valuesSample.push(k);else{var R=Math.floor(Math.random()*(E.valuesSeen+1));R<S&&(E.valuesSample[R]=k)}E.valuesSeen+=1}_.BT(this.storagePrefix+"-"+this.innertubeClientName,
E,2592E3);k=E.valuesSample;E=C7i(k);k=k.length<this.poolSize?void 0:E<400?1:E<1700?2:3;k!==void 0&&(this.JSC$18509_prefCookie.set(this.cookiePrefix+this.innertubeClientName,k),this.JSC$18509_prefCookie.save())}}else _.WT(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18509_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18509_prefCookie.save()};
KbA[au]=[q9,Kd];var pyP=function(){KbA.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.y(pyP,KbA);var APW=new _.QE("PAGE_LOAD_TIME_TOKEN");var rP3=function(k){this.signal=k;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;k.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.uM(_.ZJ,this.disableLoggingAndSendPayload,1E4)};
rP3.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.ZJ.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),ubR(this))};
var ubR=function(k){var E=_.Wi();if(E){var S={webClientComponentsData:{components:Array.from(k.ids,function(R){return{id:R}})}};
k.ids.clear();_.JV().visualElementStateChanged(E,S)}};var xTU=_.W9({a11y:_.YO4});_.LbA=_.FS(xTU)(xTU.a11y,{ephemeralActionSelector:function(k){return k.ephemeralAction||null}});var jXt=_.W9({continuation:_.yuC});var DTW=_.FS(jXt)(jXt.continuation,{continuationCommandSelector:function(k){return k.continuationCommand}});var $TG=new _.QE("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var rp=function(k,E){this.JSC$18538_storeWithEntities=k;this.JSC$18538_commandHandler=E;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
rp.prototype.start=function(){this.JSC$18538_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
rp.prototype.observeDownloadingEntities=function(){var k=_.jgm(this.JSC$18538_storeWithEntities.getState().entities).map(function(R){return D5h(R)});
if(k.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var E={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:z4j()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.lD(_.Vi("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18538_commandHandler.resolveCommand(E)}this.downloadingEntities=k}else if(this.downloadingEntities.length){var S=Lcl(this.JSC$18538_storeWithEntities.getState().entities).map(function(R){return D5h(R)});
this.downloadingEntities.filter(function(R){return S.includes(R)}).length&&(k={openPopupAction:jwt()},this.JSC$18538_commandHandler.resolveCommand(k));
this.downloadingEntities=[]}};
rp[au]=[ZI,_.t3];var f7a;_.u8=function(k,E,S,R,V,N,h,J){this.JSC$18541_playerApiPromise=k;this.JSC$18541_commandHandler=E;this.JSC$18541_screenManager=S;this.offlineWebClientEligibility=R;this.JSC$18541_prefStorage=V;this.JSC$18541_actionRouter=N;this.entityTypeMap=h;this.JSC$18541_persistentStorePromiseAccessor=J;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
f7a=function(){var k=_.en().resolve(_.u8),E;_.c(function(S){if(S.nextAddress==1)return k.downloadFailureListenerBound?S.return():S.yield(k.JSC$18541_playerApiPromise,2);E=S.yieldResult;E.addEventListener("onOfflineOperationFailure",function(R){if(R.failureReason&&R.entityKey&&R.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(R.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var V=_.Ov(R.entityKey).entityId;V&&k.JSC$18541_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
V)}else if(_.Y("kevlar_woffle")){V=k.JSC$18541_commandHandler;var N=V.resolveCommand;R=R.failureReason;var h=_.Vi("TRANSFER_FAILED",void 0,"Download failed");R==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(h=_.Vi("STORAGE_FULL",void 0,"Storage full"));N.call(V,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.lD(h),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
k.downloadFailureListenerBound=!0;_.KR(S)})};
_.u8.prototype.deleteVideo=function(k,E){var S=this,R,V,N;return _.c(function(h){if(h.nextAddress==1)return h.yield(S.JSC$18541_playerApiPromise,2);R=h.yieldResult;N={offlineLoggingData:{offlineDeleteReason:(V=E)!=null?V:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return h.yield(R.queueOfflineAction(k,S.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",N),0)})};
_.u8.prototype.pauseVideoDownload=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(E.JSC$18541_playerApiPromise,2);S=R.yieldResult;S.pauseVideoDownload(k);_.KR(R)})};
_.u8.prototype.resumeVideoDownload=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(E.JSC$18541_playerApiPromise,2);S=R.yieldResult;return R.yield(S.resumeVideoDownload(k),0)})};
_.u8[au]=[_.QQ,_.t3,_.fG,$TG,uo,Iq,wmY,og];var v4a=new _.QE("DOWNLOAD_STATE_STORE_TOKEN");var buP=function(k,E){this.JSC$18561_persistentStorePromiseAccessor=k;this.store=E;this.upliftCompletionResolver=new _.kl},sXA=function(){var k=_.en().resolve(ZuP),E;
_.c(function(S){switch(S.nextAddress){case 1:if(k.upliftImplPromise)return S.return(k.upliftImplPromise);_.F5(S,2);k.upliftImplPromise=dTa(k);return S.yield(k.upliftImplPromise,4);case 4:k.upliftCompletionResolver.resolve();_.Sv(S,3);break;case 2:throw E=_.UY(S),k.upliftCompletionResolver.reject(E),E;case 3:return S.return(k.upliftImplPromise)}})},dTa=function(k){var E,S,R;
return _.c(function(V){switch(V.nextAddress){case 1:return _.qg("LOGGED_IN")?V.yield(k.JSC$18561_persistentStorePromiseAccessor(),2):V.return();case 2:E=V.yieldResult;if(!E)return _.o_("vdeur"),V.return();_.o_("vdeus");_.F5(V,3);return V.yield(l7U(E),5);case 5:S=V.yieldResult;k.store.dispatch(Wc1(S));E.observe(function(N){FcI(k.store,N)});
_.Sv(V,4);break;case 3:throw R=_.UY(V),_.o_("vdeur"),R;case 4:_.o_("vdeuc"),_.KR(V)}})},l7U=function(k){var E;
return _.c(function(S){if(S.nextAddress==1)return S.yield(NDI(k),2);E=S.yieldResult;return S.return(E.reduce(function(R,V){if(!V.data||!V.key||!V.entityType)return R;R[V.entityType]||(R[V.entityType]={});R[V.entityType][V.key]=V.data;return R},{}))})};
buP[au]=[og,_.q5];var ZuP;ZuP=new _.QE("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.xV=new _.QE("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var LH=function(k,E){this.JSC$18564_persistentStorePromiseAccessor=k;this.transportService=E};
LH.prototype.refresh=function(){var k=this,E,S,R,V;return _.c(function(N){if(N.nextAddress==1)return _.qg("LOGGED_IN")?N.yield(k.JSC$18564_persistentStorePromiseAccessor(),2):N.return();if(N.nextAddress!=3)return(E=N.yieldResult)?N.yield(ZBt(E),3):N.return();if((S=N.yieldResult)&&!(Number(S.data.refreshTimestampMs||0)<(0,_.ev)()))return N.return();R={browseId:"SPaccount_downloads"};V=_.bg(rE);_.qF(k.transportService,R,V).then(function(h){var J;if(E&&(h==null?void 0:(J=h.responseContext)==null?void 0:
J.maxAgeSeconds)!==0){var m;J=(h==null?void 0:(m=h.responseContext)==null?void 0:m.maxAgeSeconds)||604800;m=String(Math.floor((0,_.ev)())+J*1E3);E.put("service:downloads_settings:fallback",new _.yD({innertubeResponse:h,refreshTimestampMs:m}))}});
_.KR(N)})};
LH[au]=[_.XM,_.oR];var jC=function(k,E){this.JSC$18568_playerPromise=k;this.store=E;this.started=!1};
jC.prototype.start=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return k.started?S.return():S.yield(k.JSC$18568_playerPromise,2);E=S.yieldResult;E.addEventListener("onOrchestrationBecameLeader",k.updateIsLeader.bind(k,!0));E.addEventListener("onOrchestrationLostLeader",k.updateIsLeader.bind(k,!1));if(E.isOrchestrationLeader)k.updateIsLeader(E.isOrchestrationLeader());else{var R=new _.LC("Function isOrchestrationLeader is undefined",{"player.isReady":E.isReady(),"player.playVideo":E.playVideo?
"defined":"undefined"});_.bM(R);k.updateIsLeader(!1)}k.started=!0;_.KR(S)})};
jC.prototype.updateIsLeader=function(k){this.store.dispatch(_.zX({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:k}}))};
jC[au]=[_.QQ,_.q5];var MoY=function(k,E){this.networkStatusManager=k;this.JSC$18571_prefStoragePromise=E;this.redirectsToPreload=["https://youtube.com"]},qaI=function(){var k=_.en().resolve(MoY),E,S,R,V,N,h;
_.c(function(J){switch(J.nextAddress){case 1:return J.yield(k.JSC$18571_prefStoragePromise,2);case 2:E=J.yieldResult;if(!(S=E)){J.jumpTo(3);break}return J.yield(E.get("yt-redirect-prefetch-id"),4);case 4:S=J.yieldResult;case 3:if(S||!k.networkStatusManager.isNetworkAvailable())return J.return();R={cache:"reload",redirect:"manual"};V=_.n(k.redirectsToPreload);N=V.next();case 5:if(N.done){if(!E){J.jumpTo(0);break}return J.yield(E.set("yt-redirect-prefetch-id",!0,86400),0)}h=N.value;_.F5(J,8);return J.yield(_.Vt.fetch(h,
R),10);case 10:_.Sv(J,6);break;case 8:_.UY(J);case 6:N=V.next(),J.jumpTo(5)}})};var z2Y=function(k){this.JSC$18577_pageManager=k};
z2Y[au]=[_.ZD];_.QXT=new _.QE("PAGE_CONTENT_EXTRACTOR_TOKEN");var DS=function(k){k?(this.container=k,this.containerWasInjected=!0):this.containerWasInjected=!1};
DS.prototype.openDialog=function(k,E,S){var R=this,V;return _.c(function(N){(V=R.container)==null||V.openDialog(k,E,S);_.KR(N)})};
DS.prototype.closeDialog=function(){var k=this,E;return _.c(function(S){(E=k.container)==null||E.closeDialog();_.KR(S)})};
DS.prototype.isDialogOpen=function(){var k=this,E,S;return _.c(function(R){return R.return((S=(E=k.container)==null?void 0:E.isDialogOpen())!=null?S:!1)})};
DS[au]=[_.mz(GrC)];_.OuU=new _.QE("POPUP_CONTROLLER_TOKEN");var GxP=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
GxP.prototype.registerPanel=function(k,E){if(k){this.panelMap.set(k,E);var S=this.pendingPanelResolvers.get(k);S&&(S.resolve(E),this.pendingPanelResolvers.delete(k))}};
GxP.prototype.getPanel=function(k){var E=this,S;return _.c(function(R){return(S=E.panelMap.get(k))?R.return(S):R.return(Cka(E,k))})};
var Cka=function(k,E){var S,R;return _.c(function(V){if(S=k.pendingPanelResolvers.get(E))return V.return(S.promise);R=new _.kl;k.pendingPanelResolvers.set(E,R);return V.return(R.promise)})},kLt=function(k,E){GxP.call(this);
var S=this;this.popupController=k;this.persistentPanelController=E;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return S.panelMap.size}}};
_.y(kLt,GxP);_.I=kLt.prototype;_.I.getReloadContinuation=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(E.getPanel(k),2);S=R.yieldResult;return R.return(S.getReloadContinuation())})};
_.I.showPanel=function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P,B;return _.c(function(F){if(F.nextAddress==1){S=k;R=S.identifier;V=S.panelContents;N=S.config;h=S.extras;J=S.panelUpdatableFields;m=S.updatePanelContinuationData;a=k.target;m&&E.updatePanelContinuationDatas.set(R,m);if((T=N)==null?0:(w=T.engagementPanelPopupPresentationConfig)==null?0:w.popupType)if(P=N.engagementPanelPopupPresentationConfig.popupType,a===void 0&&(a=document.body),P==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!E.persistentPanelController)return _.dg(new _.LC("Persistent panel controller is not available.")),
F.return();var K=E.persistentPanelController;K.persistentPanelIdentifiers.has(R)||(K.persistentPanelWrapper.appendChild(K.engagementPanelElement({panelIdentifier:R},{isPersistentPanel:!0})),K.persistentPanelIdentifiers.add(R));a:switch(_.K5.currentPageSubTypeSelector(K.store.getState())){case "watch":var r="WATCH";break a;default:r="APP"}_.EO3(K,r);K.store.dispatch(WAY(!0))}else{if(P==="PANEL_POPUP_TYPE_DIALOG"||P==="PANEL_POPUP_TYPE_DROPDOWN"){K=F.return;r=E.popupController;var x=r.openPopup;a:switch(P){case "PANEL_POPUP_TYPE_DIALOG":var L=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":L="DROPDOWN";break a;default:throw Error("pj`"+P);}return K.call(F,x.call(r,R,V,L,a))}_.dg(new _.LC("Popup type "+P+" not supported in PanelController."))}return F.yield(E.getPanel(R),2)}B=F.yieldResult;(V||J)&&B.updatePanel(V,!1,h,J);B.showPanel(h);_.KR(F)})};
_.I.hidePanel=function(k){var E=this,S,R;return _.c(function(V){if(V.nextAddress==1)return V.yield(E.getPanel(k),2);S=V.yieldResult;S.hidePanel();E.popupController.closePopup(k);(R=E.persistentPanelController)!=null&&R.persistentPanelIdentifiers.has(k)&&R.store.dispatch(WAY(!1));_.KR(V)})};
_.I.isVisible=function(k,E){var S=this,R;return _.c(function(V){if(V.nextAddress==1)return E&&!S.panelMap.has(k)?V.return(!1):V.yield(S.getPanel(k),2);R=V.yieldResult;return V.return(R.isVisible())})};
_.I.updatePanel=function(k){var E=this,S,R,V,N,h,J,m,a;return _.c(function(T){if(T.nextAddress==1){S=k;R=S.identifier;V=S.panelContents;N=S.shouldFocus===void 0?!1:S.shouldFocus;h=S.extras;J=S.panelUpdatableFields;m=S.updatePanelContinuationData;if(!V&&!J)return T.return();m&&E.updatePanelContinuationDatas.set(R,m);return T.yield(E.getPanel(R),2)}a=T.yieldResult;a.updatePanel(V,N,h,J);V&&_.Y("enable_ai_companion")&&E.registerPanelContent(R,V);_.KR(T)})};
_.I.registerPanelContent=function(k,E){k&&this.panelContentMap.set(k,E)};
_.I.unregisterPanelContent=function(k){this.panelContentMap.delete(k)};
_.I.getPanelContent=function(k){return this.panelContentMap.get(k)};
_.I.getUpdatePanelContinuationData=function(k){return this.updatePanelContinuationDatas.get(k)};
kLt[au]=[_.OuU,_.mz(_.b6)];var $V=function(k,E){this.innertubeTransportService=k;this.JSC$18595_screenManager=E},SmY=function(k){var E;
return!((E=k.panelLoadingStrategy)==null||!E.requestTemplate)};
$V.prototype.makeRequest=function(k){var E=this,S,R;return _.c(function(V){switch(V.nextAddress){case 1:if(!SmY(E)){V.jumpTo(2);break}_.F5(V,3);return V.yield(_.xv(E.innertubeTransportService,k),5);case 5:return S=V.yieldResult,S?V.return(S.content):(_.bM(Error("qj")),V.return(void 0));case 3:R=_.UY(V),_.bM(R);case 2:return V.return(void 0)}})};
$V.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
$V.prototype.execute=function(k){var E=this,S,R,V,N,h,J,m,a,T,w;return _.c(function(P){if(P.nextAddress==1){S=k;R=S.data;V=S.fallbackVe;N=S.parentVe;h=S.createScreenConfig;J=S.renderFn;m=S.command;E.panelLoadingStrategy=R;var B,F,K=((B=E.panelLoadingStrategy)==null?0:B.screenVe)?(F=E.panelLoadingStrategy)==null?void 0:F.screenVe:V;K&&_.Pq(E.JSC$18595_screenManager,K,N,h);return(a=E.getContent())?P.yield(J(a),2):P.jumpTo(2)}return P.nextAddress!=4?SmY(E)?P.yield(E.makeRequest(m),4):P.return():(w=T=
P.yieldResult)?P.yield(J(w),0):P.return()})};
$V[au]=[_.oR,_.fG];var Rw2;Rw2=function(k,E){this.engagementPanelElement=k;this.store=E;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%"};
_.EO3=function(k,E){var S=k.persistentPanelContainerMap.get(E);S?S.contains(k.persistentPanelWrapper)||(k=k.persistentPanelWrapper,_.lY=!0,_.Mi.set(k,!0),S.insertBefore(k,null),_.Mi.delete(k),_.lY=!1):_.dg(new _.LC("Persistent panel container not found for surface "+E+"."))};
Rw2[au]=[Cnp,_.q5];var fH=function(){};
fH.prototype.getContainer=function(){return _.ZZ()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
fH.prototype.openSheet=function(k,E){var S=this,R,V,N,h,J,m;return _.c(function(a){switch(a.nextAddress){case 1:return R={stack:[],error:void 0,hasError:!1},_.F5(a,2,3),V=Nn,a.yield(S.isSheetOpen(),5);case 5:N=a.yieldResult;zTt(R,Fqi(V));if(N){if(_.Y("web_close_sheet_if_same_target_killswitch")&&E&&S.currentTarget===E)return(h=S.getContainer())==null||h.closeSheet(),a.return();S.pendingData={data:k,target:RhY(S,E)};return a.return()}k.viewModel&&(k={viewModel:k.viewModel,sheetPosition:k.sheetPosition});
(J=S.getContainer())==null||J.openSheet(k,E);S.currentTarget=E;case 3:_.ob(a);Qyh(R);_.gP(a,0);break;case 2:m=_.UY(a),R.error=m,R.hasError=!0,a.jumpTo(3)}})};
fH.prototype.closeSheet=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return S.yield((E=k.getContainer())==null?void 0:E.closeSheet(),2);if(S.nextAddress!=4)return k.currentTarget=void 0,k.pendingData?S.yield(k.openSheet(k.pendingData.data,k.pendingData.target),4):S.jumpTo(0);k.pendingData=void 0;_.KR(S)})};
fH.prototype.isSheetOpen=function(){var k=this,E,S;return _.c(function(R){return R.return((S=(E=k.getContainer())==null?void 0:E.isSheetOpen())!=null?S:!1)})};
var RhY=function(k,E){if(!_.Y("web_parent_target_for_sheets"))return E;var S,R;return(R=(S=k.getContainer())==null?void 0:S.getParentTarget(E))!=null?R:E};var dE=window.documentPictureInPicture;var wbI=_.ry(["dark"]),PHt=_.ry(["system-icons"]),BDt=_.ry(["typography"]),YSI=_.ry(["lang"]),W9e=_.ry(["style"]),e01=_.ry(["dir"]),az1=_.ry(["rounded-container"]),tB1=_.ry(["style"]),yMI=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],vO=function(k){this.JSC$18612_clientRoot=k;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
vO.prototype.openWindow=function(k){var E=this,S,R;return _.c(function(V){switch(V.nextAddress){case 1:if(!window.documentPictureInPicture||!_.Kl()||E.currentPipWindow)return V.return(!1);_.F5(V,2);return V.yield((R=dE?dE:null)==null?void 0:R.requestWindow(k),4);case 4:S=V.yieldResult;_.Sv(V,3);break;case 2:return _.UY(V),V.return(!1);case 3:if(!S)return V.return(!1);S.addEventListener("pagehide",function(){V$P(E)});
S.addEventListener("resize",E.handlePipWindowResize);F9h(S);Xbm(S);wMI(S);return V.yield(mR1(S),5);case 5:if(!h0e())return V.return(!1);E.currentPipWindow=S;E.JSC$18612_eventForwarder=oYi(S,E.JSC$18612_clientRoot);E.pipWindowResizeDelay=new _.tB(function(){E.currentPipWindow&&_.qe(E.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.KO(E.currentPipWindow.innerWidth,E.currentPipWindow.innerHeight)])},S);
E.pipWindowResizeDelay.start();return V.return(!0)}})};
vO.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var V$P=function(k){if(k.currentPipWindow){var E,S;(E=dE?dE:null)==null||(S=E.window)==null||S.close();k.currentPipWindow.removeEventListener("resize",k.handlePipWindowResize);var R;(R=k.pipWindowResizeDelay)==null||R.dispose();k.pipWindowResizeDelay=void 0;var V;(V=k.JSC$18612_eventForwarder)==null||V.stop();k.JSC$18612_eventForwarder=void 0;E=_.n(k.onCloseCallbacks);for(S=E.next();!S.done;S=E.next())S=S.value,S();k.onCloseCallbacks=[];k.currentPipWindow=null}};
vO.prototype.getWindow=function(){return this.currentPipWindow};
var NtY=function(k,E){var S;(S=k.onCloseCallbacks)==null||S.push(E)};
vO.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Kl()};
_.mt.Object.defineProperties(vO.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
vO[au]=[tZA];var IKW=new _.QE("PICTURE_IN_PICTURE_CONTROLLER");var gYe=function(k,E){this.lengthY=this.lengthX=0;this.lengthX=E.x-k.x;this.lengthY=E.y-k.y};var nOY=function(){},mjP=function(k,E){var S;
(S=k.headerElement)==null||S.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:E}))};var ioY=function(){};
ioY.prototype.openPopup=function(k,E,S,R){var V=this,N;return _.c(function(h){if(!V.container)return h.return();N={openPopupAction:{popup:E,popupType:S,uniqueId:k}};return h.return(V.container.handleOpenPopupAction(N,R))})};
ioY.prototype.closePopup=function(k){this.container&&this.container.closePopup(k)};var hwA=function(){this.openTunnels=new Map},oL1=function(k,E,S){if(rMR(S)){var R=_.Qo(S,"gclid");
S={handleEvent:function(J){E&&!E.closed&&typeof E.postMessage==="function"&&J&&J.origin&&J.source===E&&J.data&&J.data.action==="gcl_setup"&&E.postMessage(Object.assign({},{action:"gcl_transfer"},R&&{gclid:R},{gadSource:2}),J.origin)}};
for(var V=_.n(k.openTunnels),N=V.next();!N.done;N=V.next()){var h=_.n(N.value);N=h.next().value;h=h.next().value;if(N.closed)try{window.removeEventListener("message",h),k.openTunnels.delete(N)}catch(J){_.bM(J)}}E&&k.openTunnels.size<15&&(k.openTunnels.set(E,S),window.addEventListener("message",S))}};var JNa=function(){this.clientParams=new Map},qAP=function(k){for(var E=_.n(k.clientParams.keys()),S=E.next();!S.done;S=E.next())S=S.value,S.startsWith("yt-mini-app-share")&&k.clientParams.delete(S)};var cNG=function(k,E){_.r7.call(this);var S=this;this.shortsController=k;this.storeWithShorts=E;k=_.Hq(this.storeWithShorts,_.MVm,function(R){if(R){var V,N=(V=S.shortsController.getRoot())==null?void 0:V.getPlayer(),h;(V=(h=S.shortsController.alternativePlayerContainerElement)==null?void 0:h.getPlayerContainer())&&(N==null||N.appendTo(V))}else{var J;h=(J=S.shortsController.alternativePlayerContainerElement)==null?void 0:J.getPlayerContainer().querySelector("#player");V=S.shortsController.activeIndex;
(J=(N=S.shortsController.getRoot())==null?void 0:N.querySelector('ytd-reel-video-renderer[id="'+V+'"] #player-container'))&&(h==null||h.appendTo(J,void 0,!0))}});
this.addOnDisposeCallback(k)};
_.y(cNG,_.r7);var b8=function(k,E,S,R){var V=this;this.storeWithShorts=k;this.ephemeralResponseStore=E;this.innertubeTransportService=S;this.innertubeTransportLoader=R;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.gb(_.dd);this.isShortsPipActive=_.gb(_.sf);this.nextReelVe=_.kh(56921);this.prevReelVe=_.kh(56922);this.backButtonVe=_.kh(22156);this.TEST_ONLY={getActiveModules:function(){return V.activeModules}}},mn3=function(k){k.unsubscribeFromStore=
_.Hq(k.storeWithShorts,_.l3b,function(E){k.initOrDisposeActiveModules(E);
!E&&k.storeWithShorts.getState().shorts.isFullscreen&&(_.dW(document.documentElement),k.storeWithShorts.dispatch(_.o9d(!1)))});
k.initOrDisposeActiveModules(_.l3b(k.storeWithShorts.getState()))},W_C,F_T,ewP;
b8.prototype.initOrDisposeActiveModules=function(k){k?this.activeModules.push(new cNG(this,this.storeWithShorts)):(_.hP(this.activeModules),this.activeModules.length=0)};
b8.prototype.registerRootElement=function(k){this.rootElement=k;mn3(this)};
b8.prototype.getRoot=function(){return this.rootElement};
b8.prototype.setActiveIndex=function(k){this.activeIndex=k};
_.tS2=function(k,E){var S,R,V,N,h,J,m;return _.c(function(a){switch(a.nextAddress){case 1:return S=new z$,(R=S.JSC$13273_getStoreKey(E))&&k.ephemeralResponseStore.has(R)?a.yield(k.ephemeralResponseStore.get(R),7):a.yield(ewP(k,E),4);case 4:V=a.yieldResult;if(!R){a.jumpTo(3);break}N=GZ(V,3600);return a.yield(k.ephemeralResponseStore.put(R,new _.yD(N)),3);case 7:V=(h=a.yieldResult)==null?void 0:_.vZ(h);case 3:return((J=V)==null?0:J.replacementEndpoint)&&(m=_.W(V.replacementEndpoint,_.hg))&&V.sequenceContinuation&&
(m.sequenceParams=V.sequenceContinuation),a.return(V)}})};
W_C=function(k,E){E=(new Qj).JSC$13273_getStoreKey(E);return!!E&&k.ephemeralResponseStore.has(E)};
F_T=function(k,E,S){var R,V,N,h,J;_.c(function(m){if(m.nextAddress==1){R=new Qj;V=R.JSC$13273_getStoreKey(E);if(!V)return m.return();if(S.reelWatchSequenceResponse)return N=GZ(S.reelWatchSequenceResponse,3600),k.ephemeralResponseStore.put(V,new _.yD(N)),m.jumpTo(0);if(!k.ephemeralResponseStore.has(V))return m.jumpTo(0);J=S;return m.yield(k.ephemeralResponseStore.get(V),4)}J.reelWatchSequenceResponse=(h=m.yieldResult)==null?void 0:_.vZ(h);_.KR(m)})};
ewP=function(k,E){var S=S===void 0?{}:S;var R,V,N;return _.c(function(h){switch(h.nextAddress){case 1:if(k.innertubeTransportService){R=k.innertubeTransportService;h.jumpTo(2);break}if(!k.innertubeTransportLoader){_.O4(Error("sj"));h.jumpTo(2);break}return h.yield(k.innertubeTransportLoader(),4);case 4:R=h.yieldResult;case 2:return h.yield((V=R)==null?void 0:_.xv(V,E,S),5);case 5:return N=h.yieldResult,h.return(N)}})};
_.mt.Object.defineProperties(b8.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
b8[au]=[Ibj,_.Fk,_.mz(_.oR),_.mz(Va4)];_.aKI=new _.QE("STORAGE_MANAGER_TOKEN");var lzI=["touchmove","scroll"];var t$G=!1;var $Rh=!1;var MBj={onSpanEnd:function(k){k.parentId==null&&(t$G||(j5A(),setInterval(j5A,6E5),t$G=!0),fz1(k,"web_tracing_action"))}};var qSj=URL.createObjectURL;var z0A=console.log;var TtR=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},wXY;
TtR.prototype.enqueue=function(k,E){E===1?this.currentPersistentToast=k:this.queue.push(k);this.openToast()};
TtR.prototype.openToast=function(){var k;(k=this.currentToast)!=null&&k.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.ZS=new _.QE("TOAST_MANAGER_TOKEN");var PIt=new _.QE("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Bt2=new _.QE("VIEW_TRANSITION_COORDINATOR_TOKEN");var Ymt=function(k){this.config=k;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;k=_.n(k.transitionConfigs);for(var E=k.next();!E.done;E=k.next())E=_.n(E.value).next().value,this.transitionTasksMap.set(E,[])};
Ymt.prototype.registerElement=function(k,E,S){S=S===void 0?!1:S;for(var R=_.n(Object.keys(E)),V=R.next(),N={};!V.done;N={viewTransitionName:void 0},V=R.next()){V=V.value;N.viewTransitionName=E[V];var h=this.elementTasksMap.get(k),J=void 0;if((J=h)==null?0:J.has(V)){_.Zd(new _.LC("Element already registered for transition",k.tagName,V));break}h=h||new Map;h.set(V,{beforeTransition:function(m){return function(){k.style.viewTransitionName=m.viewTransitionName}}(N),
afterTransition:function(){k.style.viewTransitionName&&(k.style.viewTransitionName="")},
runOnce:S});this.elementTasksMap.set(k,h)}};
_.XX=function(k,E){var S=k.elementTasksMap.get(E);S&&(S.clear(),S.size===0&&k.elementTasksMap.delete(E))};
Ymt[au]=[PIt];var Fh2=_.f(function(k){var E=_.VH("yt-expandable-metadata-header-view-model"),S=_.RZ(function(R){if(!_.Bp(_.Pp(R),E.value,["A".toString(),"BUTTON".toString()])){var V;(V=k.expandedCallback)==null||V.call(k,!1)}});
return _.e("yt-expandable-metadata-header-view-model",{el:E,class:"ytExpandableMetadataHeaderViewModelHost"},_.e(_.t,{cond:function(){return k.expanded()},
then:function(){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":S},_.e("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.e(_.t,{cond:function(){return k.data().expandedTitleImage},
then:function(R){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.e(_.vM,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:R}))}}),_.e("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.e("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.e(_.VB,{text:function(){return k.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.e(_.VB,{text:function(){return k.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.e(_.VB,{text:function(){return k.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.e("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.e(_.cp,{data:function(){return k.data().infoButton}},{buttonViewModel:_.yB}),_.e(_.cp,{data:function(){return k.data().collapseButton}},{buttonViewModel:function(R){return _.e(_.yB,{data:R.data,
onClick:function(){var V;(V=k.expandedCallback)==null||V.call(k,!1)}})}})))},
else:function(){return _.e(Wh0,Object.assign({},k))}}))},"hg"),yNI=_.f(function(k){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.e(_.t,{cond:function(){return k.data().collapsedLabelImage},
then:function(E){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.e(_.vM,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:E,alt:""}))}}),_.e(_.VB,{text:function(){return k.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"ig"),Wh0=_.f(function(k){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.RZ(function(){var E;return void((E=k.expandedCallback)==null?void 0:E.call(k,!0))})},_.e("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.e(_.t,{cond:function(){return k.data().collapsedImage},
then:function(E){return _.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.e(_.vM,{height:20,preserveHeight:!0,preserveWidth:!0,data:E,alt:""}))}}),_.e(_.t,{cond:function(){return k.data().showLeadingCollapsedLabel},
then:function(){return _.e(yNI,Object.assign({},k))}}),_.e("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.e(_.VB,{text:function(){return k.data().collapsedTitle}}))),_.e("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.e(_.t,{cond:function(){return!k.data().showLeadingCollapsedLabel},
then:function(){return _.e(yNI,Object.assign({},k))}}),_.e(_.cp,{data:function(){return k.data().infoButton}},{buttonViewModel:_.yB}),_.e(_.cp,{data:function(){return k.data().expandButton}},{buttonViewModel:function(E){return _.e(_.yB,{data:E.data,
onClick:function(){var S;(S=k.expandedCallback)==null||S.call(k,!0)}})}})))},"jg");_.oOa=_.f(function(k){var E=_.n(_.IZ(function(){return k.data().initiallyExpanded})),S=E.next().value,R=E.next().value,V,N=(V=_.en().resolve(_.mz(_.jF)))==null?void 0:V(),h=function(){var J=k.data().colorData;
if(J)return N?J==null?void 0:J.darkColorPalette:J==null?void 0:J.lightColorPalette};
return _.e("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.nU({"background-color":function(){var J=h();return(J==null?0:J.section2Color)?_.Kc(J.section2Color):""}})},_.e(_.cp,{data:function(){return k.data().header}},{expandableMetadataHeaderViewModel:function(J){return _.e(Fh2,{data:J.data,
expanded:function(){return!!S()},
expandedCallback:function(m){R(m)}})}}),_.e(_.t,{cond:function(){return S()},
then:function(){return _.e("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.e(_.cp,{data:function(){return k.data().expandedContent}},{horizontalShelfViewModel:function(J){return _.e(_.CE,{data:J.data,
includeMargin:!0,forceNarrowLayout:!0,palette:h})},
videoSummaryContentViewModel:function(J){return _.e(OD4,{data:J.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(J){return _.e(_.y5,{data:J.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(J){return _.e(_.VxY,{data:J.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.e(_.cp,{data:function(){return k.data().expandedBottomButtons}},{buttonViewModel:function(J){return _.e("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.e(_.yB,{data:J.data}))}}))}}))},"kg");var XX3=_.f(function(k){var E=k.text;var S=k.marqueeSpacing;var R=k.scrollDelay;var V=k.scrollDuration;var N=k.enableMarqueeScroll;k=k.large;var h=_.n(_.yg(!1,void 0,"WyNYFf")),J=h.next().value,m=h.next().value,a=_.n(_.yg(0,void 0,"OoTdhe"));h=a.next().value;var T=a.next().value,w=_.VH("marquee-scroll");a=_.VH("div");var P=_.VH("span"),B=_.en().resolve(_.$X);_.vX(function(){if(N()){var r=P.value.getBoundingClientRect().width,x=w.value.getBoundingClientRect().width;if(r>x){var L=(B==="ltr"?-1:1)*(r+
(S?S():16));Promise.resolve().then(function(){m(!0);T(L)})}}},"dv0Anf");
var F={},K={};return _.e("marquee-scroll",{class:_.SQ("ytMarqueeScrollHost",(F.ytMarqueeScrollHostLarge=k,F)),el:w},_.e("div",{id:"marquee-scroll-inner-container",class:_.SQ("ytMarqueeScrollInnerContainer",(K.ytMarqueeScrollAnimationEnabled=function(){return J()},K)),
el:a,style:_.nU({gap:S?(0,_.MD)(S):"16px","animation-duration":V?O7C(V):"16s","animation-delay":R?O7C(R):"3s","--marquee-translate":(0,_.MD)(h)})},_.e("span",{el:P,dir:"auto"},_.e(_.VB,{text:E,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.e(_.t,{cond:J,then:function(){return _.e("span",{"aria-hidden":"true",dir:"auto"},_.e(_.VB,{text:E,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"mg");_.gOt=_.f(function(k){var E=k.data;var S=k.overlayDensity;k=_.RZ(function(){E().onTapCommand&&_.AV(E().onTapCommand);return!1});
var R=_.fub(),V=function(){return(S==null?void 0:S())===1?22:16},N={};
return _.e("reel-sound-metadata-view-model",{class:_.SQ("ytReelSoundMetadataViewModelHost",(N.ytReelSoundMetadataViewModelHostLarge=function(){return(S==null?void 0:S())===1},N)),
"on:click":k,tabindex:0,role:"button","on:keydown":R},_.e("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.e(_.t,{cond:function(){return E().musicIcon},
then:function(h){return _.e(_.vM,{data:h,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:V})}}),_.e("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.e(XX3,{text:function(){return E().soundMetadata},
enableMarqueeScroll:function(){return!!E().enableMarqueeScroll},
large:function(){return(S==null?void 0:S())===1}}))))},"ng");var Un3,HoT,dp,rNa,xnP,ANt,DnY,jea;Un3=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];HoT=_.wO("wil_icon_max_concurrent_fetches",Infinity);
dp=function(k,E,S){var R=this;this.iconSet=k;this.appDirection=E;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Vt.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.Y("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.Y("wil_icon_network_first");this.renderWhenIdle=_.Y("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.Y("wil_icon_load_immediately");this.isPurging=!1;k=function(){R.cacheStorageAvailable&&(R.cacheStorageAsync=_.Vt.caches.open("yt-icons").then(function(N){return R.cacheStorageSync=N}).catch(function(){R.cacheStorageAvailable=!1}))};
S=(S==null?void 0:S())||{};S=_.n(Object.entries(S));for(E=S.next();!E.done;E=S.next()){var V=_.n(E.value);E=V.next().value;V=V.next().value;V=HC(V);KhW(V);this.iconCache[E]=V.cloneNode(!0)}this.isPurging=pXU(this);this.isPurging instanceof Promise?this.isPurging.then(k):k()};
_.dfb=function(k,E){var S=k.resolveIcon(E);return S?k.renderingMode===1?ANt(k,S,k.renderingMode):(E=k.iconCache[S.url])?(E=E.cloneNode(!0),rNa(k,E),ANt(k,S,k.renderingMode,E)):_.uFW(k,S).then(function(R){var V=R?0:1;rNa(k,R);return ANt(k,S,V,R)}):(_.Zd(new _.LC("Icon not found",{iconShape:E})),function(){})};
rNa=function(k,E){if(E){k.counter+=1;k="_yt"+k.counter;E=[E].concat(_.$e(E.getElementsByTagName("*")));E=_.n(E);for(var S=E.next();!S.done;S=E.next())if(S=S.value,S.tagName==="style"&&S.textContent)S.textContent=xnP(S.textContent,k,!0);else for(var R=_.n(S.attributes),V=R.next();!V.done;V=R.next()){V=V.value;V.name==="id"&&(V.value+=k);["mask","fill","clip-path"].includes(V.name)&&(V.value=xnP(V.value,k));if(V.name==="style"){var N=S.style;try{N.cssText=xnP(N.cssText,k,!0)}catch(T){var h=void 0,J=
void 0,m=void 0,a=void 0;sr({error:((h=T)==null?void 0:(m=(J=h).toString)==null?void 0:m.call(J))||"",el:S.outerHTML,style:!!N,cssText:(a=N)==null?void 0:a.cssText})}}V.name==="xlink:href"&&(V.value=V.value.replace(/#(.*)/,"#$1"+k))}}};
xnP=function(k,E,S){var R=/url\(["']?#(.*?)["']?\)/;(S===void 0?0:S)&&(R=/url\(["']?#(.*?)["']?\)/g);return k.replace(R,"url(#$1"+E+")")};
ANt=function(k,E,S,R){return function(V,N){var h;var J=Object.assign({},{iconWidth:E.size+"px",iconHeight:E.size+"px",iconDisplay:"block"},N,{iconColor:(h=N==null?void 0:N.iconColor)!=null?h:"currentcolor"});h=_.g7("DIV");N=J.iconColor;var m=J.iconFilter;J="width: "+J.iconWidth+"; height: "+J.iconHeight+"; display: "+J.iconDisplay+";";m&&(J+=" filter: "+m+";");S===0&&(J+=" fill: "+N+";");S===1&&(m=E.url,J+=" -webkit-mask: url("+m+") no-repeat center / cover; mask: url("+(m+") no-repeat center / cover; background-color: ")+
N);E.allowMirroring&&k.appDirection==="rtl"&&(J+=" transform: scale(-1, 1); transform-origin: center center;");h.setAttribute("style",J);S===0&&R&&h.appendChild(R);V.appendChild(h)}};
_.uFW=function(k,E){var S,R,V;return _.c(function(N){S=function(h){return zB(h)};
R=E.url;if(!LhP(R))throw Error("uj");V=jea(k,R);return N.return(V.then(function(h){return h.clone().text()}).then(function(h){var J=S(h);
h=E.size;var m=_.g7("DIV");_.nR(m,J);J=_.Ua(m.firstElementChild!==void 0?m.firstElementChild:_.Sod(m.firstChild,!0));h=KhW(J,h);k.iconCache[R]=h.cloneNode(!0);delete k.responsePromises[R];return h}).catch(function(){}))})};
DnY=function(k){var E,S=(E=k.requestAninmationFrameResolver)==null?void 0:E.promise;S||(k.requestAninmationFrameResolver=new _.kl,S=k.requestAninmationFrameResolver.promise,_.Vt.requestAnimationFrame(function(){var R;(R=k.requestAninmationFrameResolver)==null||R.resolve();k.requestAninmationFrameResolver=null}));
return S};
jea=function(k,E){var S,R;return _.c(function(V){if(V.nextAddress==1)return k.waitForAnimationFrame?V.yield(DnY(k),2):V.jumpTo(2);S=k.responsePromises[E];S||(R=function(){var N,h,J;return _.c(function(m){switch(m.nextAddress){case 1:if(!k.cacheStorageAvailable){N=void 0;m.jumpTo(2);break}if(h=k.cacheStorageSync){m.jumpTo(3);break}return m.yield(k.cacheStorageAsync,4);case 4:h=m.yieldResult;case 3:N=h;case 2:return J=N,k.isNetworkFirstStrategy?m.return(k.fetchAndUpdateCache(E,J).catch(k.getCacheStorageResponse.bind(k,
E,J))):m.return(k.getCacheStorageResponse(E,J).catch(k.fetchAndUpdateCache.bind(k,E,J)))}})},S=k.renderWhenIdle?new Promise(function(N,h){_.uM(_.ZJ,function(){R().then(N).catch(h)},10)}):R(),k.responsePromises[E]=S);
return V.return(S.catch(function(N){delete k.responsePromises[E];sr({error:(N==null?0:N.toString)?N.toString():"",url:E});throw N;}))})};
dp.prototype.fetchAndUpdateCache=function(k,E){var S=this;return _.c(function(R){return R.return($nG(S,k).then(function(V){fK2(S,k,V,E);return V}))})};
var $nG=function(k,E){var S;return _.c(function(R){if(k.numFetches<HoT)return k.numFetches+=1,R.return(vOW(k,E).finally(function(){--k.numFetches;if(Object.keys(k.queuedResponseResolvers).length){var V=Object.keys(k.queuedResponseResolvers)[0],N=k.queuedResponseResolvers[V];delete k.queuedResponseResolvers[V];N.resolve($nG(k,V))}}));
S=new _.kl;k.queuedResponseResolvers[E]=S;return R.return(S.promise)})},vOW=function(k,E,S){S=S===void 0?2:S;
var R;return _.c(function(V){R={credentials:"same-origin",priority:"low"};return V.return(_.Vt.fetch(E,R).then(function(N){return N.ok?N:Promise.reject(Error("vj`"+N.status+"`"+N.statusText))}).catch(function(N){if(S>0)return vOW(k,E,S-1);
throw N;}))})},fK2=function(k,E,S,R){_.c(function(V){return R?V.return(new Promise(function(N){_.uM(_.ZJ,function(){var h,J;
return _.c(function(m){switch(m.nextAddress){case 1:if(!k.isNetworkFirstStrategy){h=void 0;m.jumpTo(2);break}return m.yield(R.match(E).catch(function(){}),3);
case 3:h=m.yieldResult;case 2:if(J=h){m.jumpTo(4);break}return m.yield(R.put(E,S.clone()).catch(function(a){sr({error:(a==null?0:a.toString)?a.toString():"",url:E})}),4);
case 4:N(),_.KR(m)}})},50)})):V.return()})};
dp.prototype.getCacheStorageResponse=function(k,E){return _.c(function(S){return E?S.return(E.match(k).then(function(R){return R&&R.ok?R:Promise.reject()})):S.return(Promise.reject())})};
var KhW=function(k,E){E===void 0||k.getAttribute("viewBox")||k.setAttribute("viewBox","0 0 "+E+" "+E);k.setAttribute("focusable","false");k.setAttribute("aria-hidden","true");try{k.style.pointerEvents="none",k.style.display="inherit",k.style.width="100%",k.style.height="100%"}catch(V){var S;sr({error:((S=V)==null?0:S.toString)?V.toString():""});try{k.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(N){var R;sr({error:((R=N)==null?0:R.toString)?N.toString():
""})}}return k},LhP=function(k){for(var E=_.n(Un3),S=E.next();!S.done;S=E.next())if(k.startsWith(S.value)&&k.endsWith(".svg"))return!0;
return!1};
dp.prototype.resolveIcon=function(k){return this.iconSet.resolveIcon(k)};
var sr=function(k){_.dg(new _.LC("Error in IconManager",k))},pXU=function(k){if(_.Y("wil_icons_cache_purge_killswitch"))return!1;
try{var E=_.Vt.localStorage}catch(N){return!1}if(!E||!k.cacheStorageAvailable)return!1;var S=function(N){try{var h;(h=E)==null||h.setItem("yt-icons-last-purged",N.toString())}catch(m){var J;sr({error:((J=m)==null?0:J.toString)?m.toString():""})}},R=Number(E.getItem("yt-icons-last-purged"));
if(!R)return R=new Date,R=R.setDate(R.getDate()-Math.floor(Math.random()*90+1)),S(R),!1;if(function(N,h){N=new Date(N);h=new Date(h);return h.getMonth()-N.getMonth()+12*(h.getFullYear()-N.getFullYear())}(R,Date.now())<3)return!1;
try{return _.Vt.caches.delete("yt-icons").then(function(N){N&&S(Date.now());return N}).catch(function(){return!1}).finally(function(){k.isPurging=!1})}catch(N){var V;
sr({error:((V=N)==null?0:V.toString)?N.toString():""});return!1}};
dp[au]=[AE2,_.$X,_.mz(xVR)];_.l8=function(k,E){this.iconManager=k;this.iconsToFetch=E};
_.l8[au]=[_.Rv,_.mz(u5P)];var bo3=function(){};var Zo3=function(k,E,S){this.requestKey=k;this.vbq=E;this.fW4=S;this.fwN=function(){return new XMLHttpRequest};
this.qW4=void 0;this.qmK=[]};
Zo3.prototype.getLatestChallengeResponse=function(){return this.fW4};
var NO2=function(k,E,S){var R,V,N,h;return _.c(function(J){if(J.nextAddress==1){_.yi("attestation_challenge_fetch");_.o_("att_fs",void 0,"attestation_challenge_fetch");if(!k.qW4)throw new _.y4(9,"Missing fetcher");return J.yield(k.qW4(E,S),2)}R=J.yieldResult;N=(V=R)==null?void 0:V.bgChallenge;if(!N)throw new _.y4(15,"Missing field");k.fW4=R;k.qmK.forEach(function(m){m(R)});
h=$QC(N);_.o_("att_fc",void 0,"attestation_challenge_fetch");YA("attestation_challenge_fetch");return J.return(h)})},U3j=function(k,E){var S,R,V,N,h;
return _.c(function(J){switch(J.nextAddress){case 1:S=new Py(100,3E5,.25,2),R=void 0;case 2:if(!(S.currBackoffCount_<10)){J.jumpTo(4);break}_.F5(J,5);if(!(S.currBackoffCount_>0)){J.jumpTo(7);break}return J.yield(Onl(S.getValue()),7);case 7:return J.yield(dnT(k,E),9);case 9:return V=J.yieldResult,J.return(V);case 5:N=_.UY(J);N instanceof _.y4?R=N:(h=N instanceof Error?N.message:"Unknown",R=new _.y4(9,h));t$Y(S);J.jumpTo(2);break;case 4:if(R)throw R;throw new _.y4(9,"Unknown error");}})},dnT=function(k,
E){E=q4Y(zu4(new Mw8,E),k.requestKey);
var S=new _.kl,R=k.fwN();R.open("POST",k.vbq);R.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");R.setRequestHeader("Content-Type","application/json+protobuf");R.onload=function(){if(_.nAC(R)){var V=RdY(R.responseText);S.resolve(V)}else S.reject(new _.y4(_.c3m(_.Yr(R)),R.statusText))};
R.onerror=function(){S.reject(new _.y4(_.c3m(_.Yr(R)),R.statusText))};
R.send(E.serialize());return S.promise};var lKU=function(k){this.networkStatusManager=k;this.isDownloaded=dvA===void 0?function(){return!1}:dvA;
this.isReady=!1;this.gv8=sex(this)},sex=function(k){var E;
return _.c(function(S){if(S.nextAddress==1)return S.yield(s2j(),2);if(S.nextAddress!=3)return E=S.yieldResult,S.yield(PkC(E),3);k.fS=S.yieldResult;CHm(k.fS).then(function(){k.isReady=!0});
return S.return(k.fS)})},M$0=function(k,E,S){k.fS?(k=k.fS.u4n({xe:S,
hxA:!0,gLx:!0}),E.serviceIntegrityDimensions={poToken:k}):_.bM(Error("xj"))};
lKU.prototype.processContext=function(k){var E=this;if(!k.input.match(_.bg(FDY)))return _.E7();var S=k.innerTubeRequest,R=S.videoId;return!R||this.isDownloaded(S)||this.networkStatusManager&&!this.fS&&!this.networkStatusManager.isNetworkAvailable()?_.E7():this.fS?this.isReady?(M$0(this,S,R),_.E7()):new ko(CHm(this.fS).then(function(){M$0(E,S,R)})):new ko(this.gv8.then(function(V){return _.c(function(N){if(N.nextAddress==1)return N.yield(CHm(V),2);
M$0(E,S,R);_.KR(N)})}))};var qmP=new _.QE("WEB_PO_CONTEXT_PROCESSOR");var zwY=function(k,E){var S=this;this.aOl=0;var R;this.jLA=(R=E==null?void 0:E.jLA)!=null?R:window;this.networkStatusManagerPromise=E==null?void 0:E.networkStatusManagerPromise;var V;this.requestKey=(V=E==null?void 0:E.requestKey)!=null?V:_.P_("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var N;this.zdY=(N=E==null?void 0:E.zdY)!=null?N:function(m){return new p3(m)};
var h;R=(h=E==null?void 0:E.jXO)!=null?h:function(m,a,T){return new Zo3(m,a,T)};
this.bgChallenge=$QC(k.bgChallenge);this.ttlSeconds=fPi(p9(k.challenge||""));this.kc=R(this.requestKey,_.Y("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Vt.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",k);this.uXe=E==null?void 0:E.uXe;Gqi(this.kc);var J;this.hJ0=(J=E==null?void 0:E.hJ0)!=null?J:function(m){_.wX(S.jLA.document,"visibilitychange",
function(){S.jLA.document.visibilityState==="visible"&&m()})}},Oot=function(k){if(!k.vm){var E={maxAttempts:5,
jBq:k.ttlSeconds*1E3};k0t(k.jLA);k.vm=k.zdY({kc:k.kc,lM3:{disable:_.Y("html5_web_po_disable_remote_logging"),vc:"aGIf",bPu:Sve("html5_web_po_experiment_ids"),bHL:_.Y("wpo_dis_lfdms")?0:1E3,cs2:function(R){var V=oG5.get(R);V||(V=new ynY(R),V=new yo(V),oG5.set(R,V));return V}},
hK2:E,tJu:k.bgChallenge,zsb:EwI});k.aOl=Date.now();kV8(k.vm,function(){k.aOl=Date.now()});
zuC(k.vm,function(){return _.c(function(R){return R.return(Qe2(k))})});
var S=k.j5A.bind(k);k.networkStatusManagerPromise&&k.ttlSeconds>0&&k.networkStatusManagerPromise.then(function(R){R.listen("publicytnetworkstatus-online",S)});
k.hJ0(S)}};
zwY.prototype.j5A=function(){if(Date.now()>this.aOl+this.ttlSeconds*1E3){var k;(k=this.vm)==null||C$5(k)}};
var Qe2=function(k){if(k.e7X)return k.e7X;if(!k.vm)throw Error("yj");k.e7X=new xs({vm:k.vm,kc:k.kc,m3A:!0,onError:EwI,hK2:k.uXe});return k.e7X},RaI=function(k,E){k=new zwY(k,E);
Oot(k);Qe2(k)};var GLP=_.LbA.ephemeralActionSelector,Mf=function(k,E){this.store=k;this.queue=[];E==null||E.addEventListener("yt-navigate-start",this.reset.bind(this))};
Mf.prototype.enqueue=function(k){var E=k.command,S=k.durationMs,R=k.elementToFocus;var V=k.label;var N=k.elementToFocus;k.command?V=_.Vi("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:V,shortcut:_.Vi("SHIFT_PLUS_ENTER")}):N&&(k=V+". "+_.Vi("SHIFT_PLUS_ENTER")+" for more information.",V=_.Vi("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:V,shortcut:_.Vi("SHIFT_PLUS_ENTER")},k));S={announcement:V,durationMs:S!=null?S:8E3};E?S.command=E:R&&(R.classList.add("ephemeral-action-focusable-element"),S.selector=R.tagName+
".ephemeral-action-focusable-element");this.queue.push(S);CI0(this)};
Mf.prototype.activate=function(k){var E=GLP(this.store.getState());if(E){if(E==null?0:E.command)_.HM(E.command),this.store.dispatch(BNY(null));if(E==null?0:E.selector)E=document.querySelector(E.selector),_.Mnm(E);k.preventDefault()}};
var CI0=function(k){if(!GLP(k.store.getState())&&k.queue.length){var E=k.queue.shift();E&&(k.previousAnnouncement===E.announcement&&(E.announcement+="\u00a0"),k.store.dispatch(BNY(E)),k.previousAnnouncement=E.announcement,k.timeoutId=setTimeout(function(){if(E.selector){var S;(S=document.querySelector(E.selector))==null||S.classList.remove("ephemeral-action-focusable-element")}k.store.dispatch(BNY(null));CI0(k)},E.durationMs))}};
Mf.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(BNY(null));this.queue.length=0;this.timeoutId=void 0};
Mf[au]=[_.q5,_.mz(_.uO)];_.qf=new _.QE("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var kaR=new _.QE("AUTH_SERVICE_TOKEN");var I1h=_.ry(["about:blank"]),NLl;var EkP=new _.QE("API_IFRAME_TOKEN"),S4t=new _.QE("FETCH_FN_TOKEN"),RuP=new _.QE("PARSE_FN_TOKEN"),VwY=new _.QE("WINDOW_REQUEST_TOKEN"),N0T=new _.QE("TEXT_DECODER_TOKEN");var IJT;IJT=new _.QE("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.I_A=new _.QE("MISC_UI_SHARED_FLAGS_TOKEN");var nkU=function(){};
nkU.prototype.getFlag=function(k){if(k.configType!==2)throw Error("zj");return iVW(k)};
var iVW=function(k){switch(k.flagType){case "bool":return _.Y(k.flagName);case "int":return _.jT(_.wO(k.flagName));case "double":return _.wO(k.flagName);case "string":return _.P_(k.flagName);case "int32_list":return Sve(k.flagName);case "int64_list":return Sve(k.flagName).map(function(E){return _.jT(E)});
case "string_list":return _.B_(k.flagName);default:throw Error("Aj");}};var zK=function(k,E,S){E=E===void 0?{}:E;KY.call(this,S===void 0?"uninitialized":S);this.env=k;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}];E.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=E.shouldWaitOnAsyncImmediate)};
_.y(zK,KY);zK.prototype.init=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?R.yield(k(E.env),2):(k(E.env),R.jumpTo(2));if(R.nextAddress!=4)return E.jobSet?R.yield(E.jobSet.completedResolver.promise,4):R.jumpTo(4);S=_.O7();S.parkOrScheduleJob(function(){E.transition("rendering")},10,"ci");
_.KR(R)})};
zK.prototype.initialRender=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?R.yield(k(E.env),2):(k(E.env),R.jumpTo(2));if(R.nextAddress!=4)return E.jobSet?R.yield(E.jobSet.completedResolver.promise,4):R.jumpTo(4);S=_.O7();S.parkOrScheduleJob(function(){E.transition("rendered")},10,"cr");
_.KR(R)})};
zK.prototype.afterRenderImmediate=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return E.processPluginOptions.shouldWaitOnAsyncImmediate?R.yield(k(E.env),2):(k(E.env),R.jumpTo(2));if(R.nextAddress!=4)return E.jobSet?R.yield(E.jobSet.completedResolver.promise,4):R.jumpTo(4);S=_.O7();S.parkOrScheduleJob(function(){E.transition("after-render-deferred")},10,"carml");
_.KR(R)})};
zK.prototype.afterRenderDeferred=function(k){var E=this;return _.c(function(S){k(E.env);_.KR(S)})};_.l$("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var huA={},JjW=(huA.rendered={priority:0,callback:function(k){fvC(k.injector.resolve(xf))}},huA);var NaI=new _.QE("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),cja=new _.QE("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var mg3=function(k){this.callbackFnMap=k;this.configMap={}};
mg3.prototype.handleResponse=function(k){var E;if(k=(E=k.responseContext)==null?void 0:E.serviceTrackingParams)for(E=_.n(k),k=E.next();!k.done;k=E.next()){k=k.value;var S=k.params,R=k.service;if(S&&R){this.configMap[R]||(this.configMap[R]=new OEY);k=this.configMap[R];var V=void 0,N=(V=this.callbackFnMap)==null?void 0:V[R];S=_.n(S);for(R=S.next();!R.done;R=S.next())V=R.value,R=V.key,V=V.value,R&&V&&(k.set(R,V),N&&N(R,V))}}};
mg3.prototype.getConfig=function(k){return this.configMap[k]||void 0};
mg3[au]=[_.mz(cja)];var euW=!1,w41=0,eah=null,TLj=null;var a_P=new _.QE("NETWORK_SLI_TOKEN");var twY=function(k,E,S,R,V){this.networkSli=k;this.fetchFn=E;this.parseFn=S;this.requestFn=R;this.JSC$18741_textDecoder=V};
twY.prototype.fetch=function(k,E,S){var R=this,V,N,h;return _.c(function(J){V=T0I(R,k,E);h=(N=R.fetchFn)!=null?N:fetch;return J.return(h(V).then(function(m){return R.handleResponse(m,S)}).catch(function(m){_.dg(m);
if((S==null?0:S.expectJsonStrict)&&m instanceof pM&&m.errorType===1)return Promise.reject(m)}))})};
var FgY=function(k,E,S,R){var V,N,h,J,m,a,T;return _.c(function(w){switch(w.nextAddress){case 1:return V=T0I(k,E,S),_.F5(w,2),w.yield(fetch(V),4);case 4:N=w.yieldResult;_.Sv(w,3);break;case 2:throw _.UY(w),new pM(2,"Failed to parse streaming response",V.url);case 3:if(!N.redirected&&!N.ok)throw(h=k.networkSli)==null||h.failure(),new _.LC("Streaming fetch request not ok",V.url);if(!N.body)throw new _.LC("No response body in streaming response",V.url);J={};if(_.Y("web_streaming_fast"))return m=N.body.getReader(),
w.return(wCR(k,m,J,R));a=N.body.pipeThrough(new TextDecoderStream).getReader();T=new _.V7;return w.return(P$t(k,a,T,TKj,J,R))}})},T0I=function(k,E,S){if(k.networkSli){var R=_.Xu(_.bW(E,"key"))||"/UNKNOWN_PATH";
k.networkSli.start(R)}R=S;_.Y("wug_networking_gzip_request")&&(R=ak1(S));var V;return new ((V=k.requestFn)!=null?V:window.Request)(E,R)},wCR=function(k,E,S,R){var V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d,z,kb,TI,a1,Ah,th,He,ve,Xm,U5,l4,gY,IC;
return _.c(function(md){switch(md.nextAddress){case 1:V=k.JSC$18741_textDecoder?new k.JSC$18741_textDecoder("utf-8"):new TextDecoder("utf-8"),N=[],J=h=0,_.F5(md,2,3);case 5:return md.yield(E.read(),8);case 8:m=md.yieldResult;a=m.value;if(T=m.done){w=0;if(N.length>h)for(w=N[h].length-J,P=h+1;P<N.length;P++)w+=N[P].length;w>0&&(B=PVj(N,w,h,J),F=B.indexOf(123),K=B.lastIndexOf(125),F!==-1&&K!==-1&&K>F&&(r=B.subarray(F,K+1),x=JSON.parse(V.decode(r)),TKj(S,x),L=void 0,(L=R)==null||L(S,x)));q=void 0;(q=
k.networkSli)==null||q.success();return md.return(S)}N.push(a);M=h;for(d=J;M<N.length;)if(z=N[M],kb=z.indexOf(10,d),kb===-1){if(M===N.length-1)break;M++;d=0}else{TI=M;a1=kb+1;Ah=0;if(h===TI)Ah=a1-J;else{Ah=N[h].length-J;for(th=h+1;th<TI;th++)Ah+=N[th].length;Ah+=a1}He=PVj(N,Ah,h,J,TI,a1);ve=He.indexOf(123);Xm=He.lastIndexOf(125);if(ve!==-1&&Xm!==-1&&Xm>ve){U5=He.subarray(ve,Xm+1);try{l4=JSON.parse(V.decode(U5)),TKj(S,l4),gY=void 0,(gY=R)==null||gY(S,l4)}catch(Kj){throw new pM(1,"Failed to parse streaming response object",
V.decode(U5));}}h=M;d=J=kb+1;J===z.length&&(h++,J=0,M=h,d=0)}md.jumpTo(5);break;case 3:_.ob(md);E.releaseLock();_.gP(md,0);break;case 2:IC=_.UY(md);if(IC instanceof pM)throw IC;throw new pM(1,"Failed to process streaming response");}})},P$t=function(k,E,S,R,V,N){var h,J,m,a,T,w,P,B,F;
return _.c(function(K){if(K.nextAddress==1)return K.yield(E.read(),2);h=K.yieldResult;J=h.value;if(m=h.done)return(a=k.networkSli)==null||a.success(),K.return(V);try{T=S.parse(J)}catch(r){throw new pM(1,"Failed to parse streaming response",J);}if(T!=null)for(w=_.n(T),P=w.next();!P.done;P=w.next())B=P.value,R(V,B),F=void 0,(F=N)==null||F(V,B);return K.return(P$t(k,E,S,R,V,N))})};
twY.prototype.handleResponse=function(k,E){var S,R=(S=this.parseFn)!=null?S:JSON.parse;S=k.text().then(function(V){if((E==null?0:E.jspbResponseCtor)&&k.ok)return zsR(E.jspbResponseCtor,V);V=V.replace(")]}'","");if((E==null?0:E.expectJsonStrict)&&V)try{var N=R(V)}catch(J){throw new pM(1,"JSON parsing failed after fetch");}var h;return(h=N)!=null?h:R(V)});
k.redirected||k.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),S=S.then(function(V){_.dg(new _.LC("Error: API fetch failed",k.status,k.url,V));return Object.assign({},V,{errorMetadata:{status:k.status}})}));
return S};
twY[au]=[_.mz(a_P),_.mz(S4t),_.mz(RuP),_.mz(VwY),_.mz(N0T)];var B0P=new _.QE("NETWORK_MANAGER_TOKEN");var Y4t=[1,2,4,8,16,30],FNa=function(k){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=k.maxTimeMs;this.maxFrameCount=k.maxFrameCount===void 0?Math.ceil(60*k.maxTimeMs/1E3):k.maxFrameCount;k=_.n(Y4t);for(var E=k.next();!E.done;E=k.next())this.brokenFrameSummarizers.push(new WNI(E.value/60*1E3))},yjP=function(k){var E=k.frameCountInternal>=k.maxFrameCount;
return k.elapsedTimeMs>=k.maxTimeMs||E};
FNa.prototype.summarize=function(){for(var k=[],E=_.n(this.brokenFrameSummarizers),S=E.next();!S.done;S=E.next())S=S.value,S=S.brokenFrameCount!==0?{severityMs:Math.round(S.targetFrameTimeMs),eventCount:S.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(S.averageDurationBetweenEventsMs)}:void 0,S&&k.push(S);return{summaries:k,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.mt.Object.defineProperties(FNa.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 WNI=function(k){this.targetFrameTimeMs=k;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.mt.Object.defineProperties(WNI.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var okW=function(){};
okW.prototype.start=function(k,E){var S=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var R=new FNa({maxTimeMs:k});this.monitor=R;this.lastSummaryInternal=void 0;this.metadataToLog=E;return new Promise(function(V){var N=function(h){if(h===void 0)S.stop(),V(void 0);else if(S.monitor!==R)h=Object.assign({},R.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),V(h);else{var J=S.monitor;if(!yjP(J)){J.frameCountInternal++;if(J.prevTime===
void 0)J.startTime=h;else for(var m=h-J.prevTime,a=_.n(J.brokenFrameSummarizers),T=a.next();!T.done;T=a.next()){T=T.value;var w=T.currTimeMs;T.currTimeMs+=m;m>T.targetFrameTimeMs+2&&(T.brokenFrameCount++,T.timeOfFirstBrokenFrameMs===void 0&&(T.timeOfFirstBrokenFrameMs=w),T.timeOfLastBrokenFrameMs=w)}J.prevTime=h}yjP(S.monitor)?V(S.stop()):_.ZJ.addJob(N,5,0)}};
_.ZJ.addJob(N,5,0)})};
okW.prototype.stop=function(k){if(!this.monitor)return this.lastSummaryInternal;var E=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(E.monitoringDurationMs){k=k!=null?k:this.metadataToLog;var S={droppedFramesSummary:E,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};k&&(S[k.type]=k.data);_.f2("manualSmoothnessMeasurement",S)}this.monitor=void 0;this.lastSummaryInternal=E;this.metadataToLog=void 0;return E};_.XCT=new _.QE("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var gkY;gkY=function(k){this.JSC$18763_expiringStorage=new Dn(k)};
_.UgW=function(k){if(_.BLe()&&(k=_.s_b(_.uJ()+"::"+k)))return new gkY(k)};
gkY.prototype.set=function(k,E,S){S=S!==void 0?Date.now()+S:void 0;this.JSC$18763_expiringStorage.set(k,E,S)};
gkY.prototype.get=function(k){return this.JSC$18763_expiringStorage.get(k)};
gkY.prototype.remove=function(k){this.JSC$18763_expiringStorage.remove(k)};_.QJ=function(){};
_.QJ.getInstance=function(){var k=_.CV("ytglobal.storage_");k||(k=new _.QJ,_.J6("ytglobal.storage_",k));return k};
_.QJ.prototype.estimate=function(){var k,E,S;return _.c(function(R){k=navigator;return((E=k.storage)==null?0:E.estimate)?R.return(k.storage.estimate()):((S=k.webkitTemporaryStorage)==null?0:S.queryUsageAndQuota)?R.return(Ydj()):R.return()})};
_.J6("ytglobal.storageClass_",_.QJ);var U$h=0;var x$e=!1;var HVa=_.ry(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),KNP=_.ry(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var K72={"/":_.U7,"/?feature=ytca":_.U7,"/feed/downloads":_.sBC};var pCG=DTW.continuationCommandSelector,SH=function(k,E,S){this.JSC$18779_upliftPromise=k;this.store=E;this.JSC$18779_persistentStorePromiseAccessor=S};
SH.prototype.shouldPreferLocalResponse=function(k){return k.browseId==="FEdownloads"||k.browseId==="FEsmart_downloads"&&_.Y("kevlar_modern_downloads_page")?!0:!1};
SH.prototype.localInnertubeResponse=function(k){var E=this;return _.c(function(S){return k.browseId==="FEdownloads"?_.Y("kevlar_modern_downloads_page")?S.return(AjY(E)):S.return(rjP(E)):k.browseId==="FEsmart_downloads"&&_.Y("kevlar_modern_downloads_page")?S.return(u4G(E)):S.return(Promise.reject(Error("Cj")))})};
SH.prototype.canProvideFallbackResponse=function(){return!0};
SH.prototype.localFallbackInnertubeResponse=function(k){var E=this,S,R,V;return _.c(function(N){switch(N.nextAddress){case 1:return N.yield(E.JSC$18779_persistentStorePromiseAccessor(),2);case 2:S=N.yieldResult;if(k.browseId!=="SPaccount_downloads"||!S){N.jumpTo(3);break}return N.yield(ZBt(S),4);case 4:if(R=N.yieldResult)return N.return(_.vZ(R));case 3:return k.browseId==="FEwhat_to_watch"?N.return(xg0(E)):(V=_.Y("web_offline_continuation_automatic_retry")||_.Y("web_offline_continuation_retry_button"))&&
k.continuation?N.return(LNt(E)):N.return(j20(E))}})};
var xg0=function(k){var E;return _.c(function(S){if(S.nextAddress==1)return S.yield(k.JSC$18779_upliftPromise,2);E=_.aYC(k.store.getState().entities);return E.length?S.return(Dgt(k,E)):S.return(j20(k))})},rjP=function(k){var E,S;
return _.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$18779_upliftPromise,2);if(R.nextAddress!=3)return E=$gt([{offlineItemSectionRenderer:{}}]),R.yield(f_a(k,E),3);S=R.yieldResult;S.onResponseReceivedActions=[Ei("REFRESH_DOWNLOADS")];return R.return(S)})},AjY=function(k){var E,S,R,V,N,h,J,m,a,T,w,P,B,F,K,r;
return _.c(function(x){if(x.nextAddress==1)return x.yield(k.JSC$18779_upliftPromise,2);if(x.nextAddress!=3)return E=k.store.getState(),S=E.entities,R=_.w8(S),V=_.Po(S),N=_.lYm(E),h=_.sAR(E),J=_.M6h(E),m=_.w5I(S),a=_.co(R),T=_.Bo(S),w=_.Wyt(S),P=_.z1l(E),B=_.o7(E),F={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.INI(R,V,m,w,N,h,a,T,J,P,B),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},K="",_.Y("kevlar_modern_downloads_skip_downloads_title")||
(K=_.Vi("DOWNLOADS",void 0,"Downloads")),x.yield(vkA(k,F,K),3);r=x.yieldResult;r.onResponseReceivedActions=[Ei("REFRESH_DOWNLOADS")];return x.return(r)})},u4G=function(k){var E,S,R,V,N,h,J,m,a;
return _.c(function(T){if(T.nextAddress==1)return T.yield(k.JSC$18779_upliftPromise,2);if(T.nextAddress!=3)return E=k.store.getState(),S=E.entities,R=_.w8(S),V=_.co(R),N=_.Bo(S),h={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.ike(R),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},J=_.Vi("SMART_DOWNLOADS",void 0,"Smart downloads"),m=Vej(V,N),T.yield(vkA(k,h,J,m),3);a=T.yieldResult;a.onResponseReceivedActions=
[Ei("REFRESH_DOWNLOADS")];return T.return(a)})},j20=function(k){var E,S;
return _.c(function(R){if(R.nextAddress==1)return R.yield(f9(k.JSC$18779_upliftPromise,k.store),2);E=R.yieldResult;S=$gt([$vR(E)]);return R.return(f_a(k,S))})},LNt=function(k){var E,S,R,V;
return _.c(function(N){if(N.nextAddress==1)return E={},S=pCG(k.store.getState()),_.Fd(E,_.H9,S),N.yield(f9(k.JSC$18779_upliftPromise,k.store,E,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);R=N.yieldResult;V={};_.Fd(V,_.PG4,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:R}}}],targetId:"browse-feedFEwhat_to_watch"});return N.return({responseContext:{},onResponseReceivedActions:[V]})})},$gt=function(k){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:k}}}}]}}},Dgt=function(k,E){var S,R;
return _.c(function(V){var N={contents:Sj(E)};S=N&&N.contents?N:{};_.Y("kevlar_modern_downloads_page")&&(S=Object.assign({},_.hLe(E),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));R={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:S}}}]}};return V.return(f_a(k,R))})},f_a=function(k,E){var S,R;
return _.c(function(V){if(V.nextAddress==1)return V.yield(k.JSC$18779_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3)return S=V.yieldResult,V.yield(br(S),3);R=V.yieldResult;return V.return({responseContext:{},contents:E,topbar:R})})},vkA=function(k,E,S,R){var V,N;
return _.c(function(h){if(h.nextAddress==1)return h.yield(k.JSC$18779_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3)return V=h.yieldResult,h.yield(br(V),3);N=h.yieldResult;var J=h.return;var m=S;var a=R;m=m===void 0?"":m;a=a===void 0?"":a;m={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:m}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Vi("SETTINGS",void 0,"Settings"),accessibilityText:_.Vi("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:_.dq("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:a}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:m};
return J.call(h,{responseContext:{},contents:E,topbar:N,header:{pageHeaderRenderer:m}})})};var bV2=function(){this.moduleRegistry={};this.fetchCount=0};
bV2.prototype.isFetching=function(){return this.fetchCount>0};
var oO=function(k,E){k.moduleRegistry[E.toString()]={asyncId:E,isFetching:!1};return k};
bV2.prototype.JSC$18790_loadModules=function(){for(var k=this,E=new Map,S=[],R=_.n(_.sX.apply(0,arguments)),V=R.next();!V.done;V=R.next()){V=V.value;var N=this.moduleRegistry[V];N?N.resolver?E.set(V,N.resolver):(N.resolver=new _.kl,E.set(V,N.resolver),S.push(N.asyncId),N.isFetching=!0):(N=new _.kl,E.set(V,N),N.resolve(void 0))}S.length&&(this.fetchCount+=1,_.Ws(_.YN.getMultipleAsync.apply(_.YN,_.$e(S)).then(function(h){for(var J=0;J<S.length;J++){var m=h[J],a=k.moduleRegistry[S[J].toString()];a.isFetching=
!1;a.resolver.resolve(m)}}).catch(function(h){for(var J=_.n(S),m=J.next();!m.done;m=J.next()){m=m.value;
var a=k.moduleRegistry[m.toString()];a.resolver=void 0;a.isFetching=!1;E.get(m.toString()).reject(h)}}),function(){--k.fetchCount}));
return Promise.all([].concat(_.$e(E.values())).map(function(h){return h.promise}))};_.Xr=new _.QE("MODULE_REGISTRY_TOKEN");var ZVR={},dgA=(ZVR.rendered={priority:0,callback:function(k){a:{var E=void 0;try{var S;b:{if(_.V4A()){var R=_.dal(_.uJ()+"::pom");if(R){var V=new jM(R);break b}}V=void 0}var N=(S=V)==null?void 0:S.get("role_text");if(!N)break a;E={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:N}]}}}}}}catch(m){}E&&k.injector.resolve(_.t3).resolveCommand(E)}try{var h=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(h){var J=JSON.parse(h);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
J&&k.injector.resolve(_.t3).resolveCommand(J)}}catch(m){}}},ZVR);var s2A,l_0={},Mw3=(l_0.initialized={priority:10,callback:function(){s2A=ct()}},l_0.rendering={callback:function(k){var E;
return _.c(function(S){if(S.nextAddress==1)return S.yield(s2A,2);E=S.yieldResult;if(!E.endpoint)throw Error("Ej`"+_.Vt.location.href);t9(k,E);_.KR(S)})}},l_0);var q4U={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.$e(_.Y("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(k){var E=k.stack;if(E.includes("chrome://")||E.includes("chrome-extension://")||k.message.includes("chrome-extension://")||E.includes("moz-extension://")||E.includes("local.adguard.org")||E.includes("auctioneer3.50million.club")||E.includes("youtubedownloader")||
E.includes("youtube_home_page")||E.includes("is_youtube_video_no_longer_available")||E.includes("switchScreenSizeHack")||E.includes("yt_main_big_banner.js")||E.includes("YouTubeCenter.js")||E.includes("/mytube.js")||E.includes("JSON.parseWrapper")||E.includes("/inj_js/common.js")||E.includes("firebug-lite")||E.includes(".repl.co/")||E.includes("linkfix")||E.includes("playAfterAd")||k.message.includes("Access is denied for this document")&&E.includes("<anonymous>")||k.fileName==="user-script"||k.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
E.includes("<anonymous>"))return!0;if(E.includes("https://www.youtube.com"))return!1;k=E.split("\n");if(!k.length)return!1;if(k.length<=3&&E.includes("s.onloadeddata"))return!0;E=0;for(var S=_.n(k),R=S.next();!R.done;R=S.next())R=R.value,(R.includes("https://")||R.includes("http://"))&&E++;return E/k.length>.95},
weight:0},{callback:function(k){return k.message==="Unknown Error"&&k.name.indexOf("NS_")===0},
weight:100},{callback:function(k){if(!_.qX)return!1;var E=k.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||k.message.includes("available to complete this operation"),S=k.stack.includes("webcomponents")&&k.message==="Object doesn't support this action";k=k.message.includes("object that does not implement interface Element");return E||S||k},
weight:0},{callback:function(k){return k.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(k){return k.message==="Operation is not supported"&&(k.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(k){return k.stack.includes("eval code (eval (code:1:1)")||k.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(k){return k.message.includes("Permission denied")&&k.stack.includes("this.domHandler")?!0:k.name.includes("TypeError")&&k.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(k){if(!k.stack)return!1;var E=k.stack.trim().split("\n");E.length&&E[0].endsWith("Error: "+k.message)&&E.shift();E.length&&E[E.length-1].includes("at window.onerror (")&&E.pop();if(!E.length)return!0;if(k.message==="Script error.")return E[0].includes("www.youtube.com")||E.length>=2&&E[0].startsWith("at new")&&E[1].startsWith("at window.onerror");if(k.message==="Unexpected token")return!0;k=_.n(E);for(E=k.next();!E.done;E=k.next())if(E=E.value,!(E.includes("<anonymous>")||
E.startsWith("load@")||E.startsWith("global code@")||E.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(k){return k.message==="Cannot read property 'experiments'"&&k.stack.includes("/s/player/")},
weight:500},{callback:function(k){return k.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(k){return k.stack.includes("/embed.js")?(k.params&&k.params&&(k.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.Y("use_error_suppression"))var k=_.Mg("SUPPRESS_CLIENT_ERRORS",!1);else{if(k=_.Cm)k=/Chrome\/(\d+)/.exec(_.Be()),k=(k?parseFloat(k[1]):NaN)>=66;k=!(k||_.Ge&&_.OB(65)||_.zV&&_.OB(12.1)||iX&&_.OB(79))}return k},
weight:500}]};var zua={},Q2R=(zua.initialized={priority:10,callback:function(k){k.injector.addProvider({provide:tZA,useValue:k.root});k.injector.addProvider({provide:B7G,useValue:fDj});k.injector.addProvider({provide:YaI,useValue:q4U});var E={};k.injector.addProvider((E.provide=WbY,E.useFactory=function(S,R){return function(){SSm(S,R)}},E[au]=[B7G,
YaI],E));k.injector.addProvider({provide:H3,useClass:H3})}},zua);var OVa={},GaI=(OVa.initialized={priority:3,callback:function(){var k;if(k=j_h()){k=k.replace("/",".");var E=_.nz();E.set("tz",k);E.save();k=!0}else k=!1;k||(k=_.nz(),k.set("utco",-Math.floor((new Date).getTimezoneOffset())),k.save())}},OVa);var C$A={},kV3=(C$A.initialized={priority:10,callback:function(k){k.injector.resolve(H3).start();k=_.jk();var E=_.qg("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.qg("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.qg("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.qg("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.qh(_.oDI(),{mainAppWeb:Object.assign({},k,{pageType:E})});_.qh(gDC(),{mainAppWeb:Object.assign({},k,{pageType:E})});
_.qh(Ul1(),{mainAppWeb:k});_.qh(HS1(),{mainAppWeb:k});GRC(function(){_.Gb(Ul1(),"FAILURE");_.Gb(HS1(),"FAILURE")});
zah();QPI();qhI()}},C$A);var ErR={},SgW=(ErR.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.o_("dl"),_.O7().processSignal("pcl");else{var k=function(){_.o_("dl");_.O7().processSignal("pcl");window.removeEventListener("load",k)};
window.addEventListener("load",k)}}},ErR);var RIY={},Vn2=(RIY.rendering={priority:0,callback:function(){var k=_.O7();k.parkOrScheduleJob(function(){k.processSignal("eocs")},10,"eor",5E3)}},RIY);var NOW=function(){};
_.y(NOW,kp);
NOW.prototype.resolveCommand=function(k,E){var S,R,V,N,h,J,m,a;return _.c(function(T){V=(S=_.W(k,_.$5Y))==null?void 0:(R=S.dialog)==null?void 0:R.commentReplyDialogRenderer;if(!V)throw new _.LC("No dialog in createCommentReplyDialogEndpoint");h=(N=E.form)==null?void 0:N.event;if(!h)throw new _.LC("Event not passed in when resolving command");J=_.n(h.composedPath());for(m=J.next();!m.done;m=J.next())if(a=m.value,a.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||a.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return a.showReplyDialog(V),T.return();
_.KR(T)})};var Or=function(){};
_.y(Or,kp);Or.prototype.resolveCommand=function(k){var E,S,R;return _.c(function(V){if(V.nextAddress==1)return E=_.W(k,Gz8),(S=E)!=null&&S.externalChannelId?V.yield((0,_.Vjl)("NSzT5"),2):V.return();R=_.Int;return V.yield(R(E.externalChannelId),0)})};var GK=function(k){this.pageRequestService=k;this.JSC$18808_prefetchCoordinator=I7W()};
_.y(GK,kp);GK.prototype.resolveCommand=function(k){var E=this,S,R,V,N;return _.c(function(h){if(h.nextAddress==1){S=_.W(k,PLY);if((R=S)==null||!R.taskId)throw Error("Fj");V=S.taskId;_.F5(h,2);return h.yield(_.B68(E.pageRequestService,k,{},"").then(function(J){if(!J)throw Error("Gj");},function(J){throw Error("Hj`"+J);
}),4)}if(h.nextAddress!=2)return h2T(E.JSC$18808_prefetchCoordinator,V),_.Sv(h,0);
N=_.UY(h);KH(E.JSC$18808_prefetchCoordinator,V,N);_.KR(h)})};
GK[au]=[J9];var CH=function(k,E){this.innertubeTransportService=k;this.JSC$18812_commandHandler=E};
_.y(CH,kp);CH.prototype.resolveCommand=function(k){var E=this,S,R,V;return _.c(function(N){if(N.nextAddress==1){S=_.W(k,WwC);if(S.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||S.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")R=S.boolValue?2:1,_.nw.getInstance().setState(R,!0,!0);return N.yield(_.xv(E.innertubeTransportService,k),2)}V=N.yieldResult;nrt(E,V);_.KR(N)})};
var nrt=function(k,E){E.actions&&E.actions.forEach(function(S){k.JSC$18812_commandHandler.resolveCommand(S)})};
CH[au]=[_.oR,_.t3];var k3={},Eq=(k3.addToPlaylistEndpoint=Zv(Q0),k3.addToToastAction=Zv(VZ),k3.adsControlFlowOpportunityReceivedCommand=Zv(p$),k3.audioTrackSelectActionCommand=Zv(mX),k3.backgroundAudioPlaybackCommand=Zv(e3),k3.captionLanguageSelectActionCommand=Zv(aj),k3.captionPickerEndpoint=Zv(tT),k3.changeMiniAppPlayStateCommand=Zv(O1),k3.changeTimelyActionVisibilityCommand=Zv(Rm),k3.channelCreationFormEndpoint=Zv(di),k3.clearLocationCommand=Zv(zH),k3.clearUrlParamCommand=Zv(GH),k3.copyLinkCommand=Zv(FL),k3.copyTextEndpoint=
Zv(xU),k3.createCommentReplyDialogEndpoint=K2h(NOW),k3.createPlaylistServiceEndpoint=Zv(yl),k3.dismissDialogEndpoint=Zv(kd),k3.dismissPlayerOverlayCommand=Zv(Tv),k3.entityUpdateCommand=Zv(jg),k3.feedbackEndpoint=Zv(f$),k3.getAnswerCommand=Zv(eh2),k3.getPaymentsClientTokenCommand=Zv(hK),k3.getTranscriptEndpoint=Zv(Nr),k3.googlePaymentBillingCommand=Zv(JK),k3.googlePaymentPurchaseManagerCommand=Zv(cr),k3.hideEngagementPanelEndpoint=Zv(S3),k3.hideSheetCommand=Zv(Rj),k3.hideSnackbarCommand=Zv(Ql),k3.insertRichSectionCommand=
Zv(l0),k3.listMutationCommand=Zv(M9),k3.logGtmCommand=Zv(s1),k3.notifyDropdownOptionSelectedCommand=Zv(C$),k3.openAdAllowlistInstructionCommand=Zv(_.Ac),k3.openOnePickAddVideoModalCommand=Zv(oj),k3.persistSubscriptionsDisplayPreferencesCommand=Zv(pd),k3.pingingEndpoint=Zv(ri),k3.playlistEditEndpoint=Zv(go),k3.playlistVotingRefreshPopupCommand=Zv(UM),k3.profileCardCommand=Zv(K$),k3.refreshPanelEndpoint=Zv(Vl),k3.saveImageToDeviceEndpoint=Zv(L$),k3.scrollToSectionEndpoint=K2h(aBT),k3.seekToVideoTimestampCommand=
Zv(wo),k3.selectCountryCommand=Zv(AT),k3.setCookieCommand=Zv(ro),k3.setLocalStorageCommand=Zv(Gv),k3.setPrefStorageEntryCommand=Zv(xd),k3.setSettingEndpoint=Zv(CH),k3.sfvAudioItemPlaybackCommand=Zv(PG),k3.shareImageCommand=Zv(Ld),k3.sharingProviderDataCommand=Zv(j3),k3.showAudioTrackPickerActionCommand=Zv(BG),k3.showCaptionLanguageSelectActionCommand=Zv(Yd),k3.showCreatorChatbotEngagementPanelCommand=Zv(Or),k3.showDialogCommand=Zv(nd),k3.showEngagementPanelEndpoint=Zv(io),k3.showSheetCommand=Zv(hT),
k3.showSnackbarCommand=Zv(OM),k3.showTransientPlayerScrimOverlayCommand=Zv(WG),k3.submitFormWithValidationFlowCommand=Zv(Z6),k3.talkToRecsDeselectCommand=Zv(Cd),k3.talkToRecsNextCommand=Zv(kK),k3.talkToRecsSelectCommand=Zv(EZ),k3.talkToRecsUpdateTextCommand=Zv(St),k3.toggleEngagementPanelCommand=Zv(JT),k3.undoFeedbackEndpoint=Zv(b0),k3.updateEngagementPanelContentCommand=Zv(cG),k3.updateUrlParamCommand=Zv(Im),k3.updateVideoMetadataCommand=Zv(iB),k3.verifyCommand=Zv(di),k3.webNativeShareCommand=Zv(DM),
k3.webSubmitFormCommand=Zv(HG),k3.ACK_PLAYABLES_3P_DATA_CONSENT=Zv($d),k3.CANCEL_NAVIGATION=Zv(fd),k3.COPY_SHARE_URL=Zv(vG),k3.MINI_APP_EXIT_DIALOG_SEEN=Zv(ZM),k3.MINI_APP_OPEN_URL=Zv(bo),k3.REQUEST_MINI_APP_FULLSCREEN=Zv(sM),k3.RESUME_NAVIGATION=Zv(lo),k3.SHARE_PLAYABLE_WITH_HIGH_SCORE=Zv(ME),k3.TELL_US_WHY=Zv(vA),k3);_.Y("web_enable_prefetching_videos_on_home")&&(Eq.prefetchWatchCommand=Zv(GK),Eq.registerTasksCommand=Zv(AA));
_.Y("enable_share_panel_navigation_logging_fix_on_web")&&(Eq.shareEntityServiceEndpoint=Zv(NE));_.Y("web_use_flow_state_manager")&&(Eq.flowNextStepCommand=Zv(oeP),Eq.flowPrevStepCommand=Zv(ge3),Eq.getFlowCommand=Zv(HRU),Eq.updateFlowCommand=Zv(X0));_.Y("enable_ai_companion")&&(Eq.updateConversationIdCommand=Zv(u0));var K4C=Object.assign({},Eq);var iCU={},hIa=(iCU.initialized={priority:10,callback:RS1},iCU);var J3R={},c33=(J3R.initialized={callback:function(k){var E={},S={};nLh().install((E.document_disposed={callback:function(){_.Y("finalize_all_timelines")?M_j():PE();a1h("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.Wkl();var R=k.injector.resolve(H3);R.intervalId!==void 0&&(R.intervalId&&_.ZJ.cancelJob(R.intervalId),R.intervalId=void 0,--R.currentPartitionIndex,R=VZC(R),R>0&&ekj({mainAppWeb:_.jk(),survivalSli:{partitionMinute:R,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));NuC(Gg);CK!=null&&
CK.flush();zJ&&zJ.snapshotAndFlush();R=_.n(oG5.values());for(var V=R.next();!V.done;V=R.next())V.value.snapshotAndFlush()}},E),(S.flush_logs={callback:function(){_.vv()}},S))}},J3R);var m3A={},eIP=(m3A.rendered={priority:0,callback:function(){var k=new D3C;k.increment("STARTED");if(_.Mg("LOGGED_IN")&&!_.Mg("IS_DBSC",!1)&&_.Mg("SERVER_VERSION")!=="test"&&_.Mg("SERVER_VERSION")!=="dev"&&!Wo8()&&!YYY()){k.increment("EXECUTING");var E=document.createElement("iframe");E.style.display="none";_.aem(E,2,_.ZF("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(E);k.increment("DONE")}}},
m3A);var an2={},tnU=(an2.rendered={callback:function(){I7W().resume()}},an2);var TOA={acknowledgeChannelTouStrikeCommand:Jg(vr),addToPlaylistServiceEndpoint:Jg(dr),addToPlaylistEndpoint:Jg(dr),addUpcomingEventReminderEndpoint:Jg(is),browseEndpoint:Jg(djU),channelCreationFormEndpoint:Jg(uB),channelCreationServiceEndpoint:Jg(xK),claimLegacyYoutubeChannelEndpoint:Jg(YK),clearSearchHistoryEndpoint:Jg(qr),clearWatchHistoryEndpoint:Jg(zh),commerceActionCommand:cT(cO),createBackstagePostEndpoint:Jg(am),createBroadcastCommand:Jg(hY),createCommentEndpoint:Jg(KJ),createCommentReplyEndpoint:Jg(Hr),
createLiveChatPollEndpoint:Jg(JY),createPlaylistServiceEndpoint:Jg(sl),crossAccountChannelTransferEndpoint:Jg(Gh),deleteLiveChatMessageCommand:Jg(c1),deletePlaylistEndpoint:Jg(ls),deleteVideoEndpoint:Jg(nH),dismissalEndpoint:Jg(bB),feedbackEndpoint:Jg(Zi),flagEndpoint:Jg(G$),getAccountSwitcherEndpoint:Jg(OZ),verifyCommand:Jg(et),getAccountsListInnertubeEndpoint:Jg(n1),getCommentsFromInboxCommand:Jg(gr),getDownloadActionCommand:Jg(us),getFlowCommand:cT(Mr),getKidsBlocklistPickerCommand:Jg(C1),getNotificationMenuEndpoint:Jg(M1G),
getPaymentInstrumentsParamsCommand:Jg(wp),getPaymentsClientTokenCommand:cT(cO),getPdgBuyFlowCommand:Jg(bs),getReportFormEndpoint:Jg(kV),getSearchInVideoCommand:Jg(Rp),getAnswerCommand:Jg(SC),getSurveyCommand:Jg(Ip),getTranscriptEndpoint:Jg(hA),getPostVideoPreviewEndpoint:Jg(Th),decorateMessageEndpoint:Jg(tK),likeEndpoint:Jg(LJ),liveChatActionEndpoint:Jg(tY),liveChatEndpoint:Jg(aN),liveChatItemContextMenuEndpoint:Jg(m8),liveChatPurchaseMessageEndpoint:Jg(T$),liveChatReplayEndpoint:Jg(e5),manageLiveChatUserEndpoint:Jg(P1),
metadataUpdateCommand:Jg(oN),moderateLiveChatEndpoint:Jg(B1),modifyChannelNotificationPreferenceEndpoint:Jg(p1),notificationOptOutEndpoint:Jg(AY),openSuperStickerBuyFlowCommand:Jg(wr),performCommentActionEndpoint:Jg(XH),playlistEditEndpoint:Jg(qo),playlistEditorEndpoint:Jg(Mo),recordNotificationInteractionsEndpoint:Jg(rr),reelWatchEndpoint:Jg(z$),refreshPanelEndpoint:Jg(L1),removeUpcomingEventReminderEndpoint:Jg(YE),resolveLocationCommand:Jg(yj),revealBusinessEmailCommand:Jg(Wr),searchEndpoint:Jg(_.qoW),
sendLiveChatMessageEndpoint:Jg(W1),sendLiveChatVoteEndpoint:Jg(FK),setSettingEndpoint:Jg(jt),shareEntityServiceEndpoint:cT(fJ),sharingProviderDataCommand:Jg(Nf),showEngagementPanelEndpoint:Jg(j5),showMoreDrawerCommand:Jg($E),showSheetCommand:Jg(f1),showDialogCommand:Jg(DH),subscribeEndpoint:Jg(Di),transcriptSubmitCaptionCorrectionCommand:Jg(i8),undoFeedbackEndpoint:Jg(sZ),unsubscribeEndpoint:Jg($K),updateBackstagePostEndpoint:Jg(Pr),updateCommentEndpoint:Jg(AK),updateCommentReplyEndpoint:Jg(pJ),updateCommentsSettingsEndpoint:Jg(rn),
updateCreatorChannelInnertubeCommand:Jg(yZ),updateKidsBlacklistEndpoint:Jg(Er),updateEngagementPanelContentCommand:Jg(v1),updatePdgFeatureEnablementCommand:Jg(ZH),updatedMetadataEndpoint:Jg(XK),validateChannelHandleCommand:Jg(om),updateChannelPageSettingsEndpoint:Jg(FH),verifyAgeEndpoint:Jg(lB),watchEndpoint:cT(XQ),whitelistEditEndpoint:Jg(JA),ypcCancelRecurrenceEndpoint:Jg(mg),ypcCompleteTransactionEndpoint:Jg(eC),ypcFixInstrumentEndpoint:Jg(tA),ypcGetCartEndpoint:Jg(ap),ypcGetOffersEndpoint:Jg(TK),
ypcHandleTransactionEndpoint:cT(PO),ypcLogWalletAnalyticDataEndpoint:Jg(BO),ypcOffersEndpoint:Jg(YV),ypcPauseSubscriptionCommand:Jg(WO),ypcRedeemCodeEndpoint:Jg(FM),ypcResumeSubscriptionCommand:Jg(yJ),ypcUpdateFopEndpoint:Jg(tA)},SW={},w_Y=(SW.GET_ACCOUNT_MENU=Jg(CJ),SW.GET_NOTIFICATIONS_MENU=Jg(lBU),SW.GET_NOTIFICATIONS_INBOX=Jg(Ul),SW.GET_UNSEEN_NOTIFICATION_COUNT=Jg(K1),SW.GET_USER_MENTION_SUGGESTIONS=Jg(wn),SW.LOAD_GUIDE=Jg(sh0),SW.SUBMIT_FEEDBACK=Jg(dn),SW),RD={},PJY=(RD.CONTINUATION_REQUEST_TYPE_BROWSE=
Jg(Br),RD.CONTINUATION_REQUEST_TYPE_SEARCH=Jg(VJ),RD.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Jg(UE),RD.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Jg(QZ),RD.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Jg(UZ),RD.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Jg(gn),RD.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Jg(Ol),RD.CONTINUATION_REQUEST_TYPE_GET_PANEL=Jg(xE),RD),BOU={player:cT(XQ),watchNext:Jg(gj)},YgP={player:cT(XQ),reelItemWatch:Jg(z$),reelWatchSequence:Jg(Qj)},WzG={watchEndpoint:cT(HI)},FzU=
{commandEndpointMap:TOA,signalEndpointMap:w_Y,continuationEndpointMap:PJY,watchEndpointMap:BOU,reelWatchEndpointMap:YgP,streamingEndpointMap:WzG};var y3U,orU,X_T;_.grt=((orU=(y3U=window).matchMedia)==null?void 0:(X_T=orU.call(y3U,"(prefers-reduced-motion: reduce)"))==null?void 0:X_T.matches)||!document.startViewTransition;var U3P={},HCW={disableAllTransitions:_.grt,ignoredErrors:(U3P.DOCUMENT_HIDDEN=!0,U3P.WINDOW_SIZE_CHANGED=!0,U3P.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,U3P),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 Kzt=_.ry("\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            --ytd-vtm-watch-next-exit-ms: ,ms;\n            --ytd-vtm-watch-next-wait-ms: ,ms;\n            --ytd-vtm-watch-next-enter-ms: ,ms;\n          }\n      ".split(",")),p_U=function(k){this.viewTransitionCoordinator=
k;this.isBrowseTransitionEnabled=_.P_("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.Y("web_thumbnail_to_watch_transition");this.isLockupThumbnailRegistrationEnabled=_.Y("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.Y("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.P_("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.Y("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=
this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;k=_.Vt.navigator.deviceMemory;this.isUltraHighBucketDevice=k>=8||k===void 0?!0:!1;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){k=_.wO("web_page_transition_exit_ms");var E=_.wO("web_page_transition_wait_ms"),S=_.wO("web_page_transition_enter_fast_ms"),R=_.wO("web_page_transition_watch_exit_ms"),V=_.wO("web_page_transition_watch_wait_ms"),
N=_.wO("web_page_transition_watch_enter_ms"),h=_.wO("web_page_transition_watch_next_exit_ms"),J=_.wO("web_page_transition_watch_next_wait_ms"),m=_.wO("web_page_transition_watch_next_enter_fast_ms"),a=_.wO("web_page_transition_enter_ms"),T=_.wO("web_page_transition_watch_next_enter_ms");this.enableFasterTransitions&&this.isUltraHighBucketDevice&&(a=S,T=m);isNaN(k)&&isNaN(E)&&isNaN(a)&&isNaN(R)&&isNaN(V)&&isNaN(N)&&isNaN(h)&&isNaN(J)&&isNaN(T)||!(k=$je(Kzt,k,E,a,R,V,N,h,J,T))||(E=document.createElement("style"),
E.textContent=PtI(k),document.head.appendChild(E))}};
p_U.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var k={};this.viewTransitionCoordinator.registerElement(document.documentElement,(k.slide="root-slide",k["lockup-to-watch"]="root-lockup-to-watch",k["learning-journey"]="root-learning-journey",k))}};
_.xRd=function(k,E){k.isLockupToWatchTransitionEnabled&&k.isLockupThumbnailRegistrationEnabled&&(k.registeredLockupThumbnail?k.lockupThumbnailRegisteredFromWatchEndpoint?_.dg(new _.LC("Lockup thumbnail registration order is incorrect.")):_.dg(new _.LC("Lockup thumbnail already registered.")):(k.registeredLockupThumbnail=E,_.A3P(k,E)))};
_.A3P=function(k,E){var S={};k.viewTransitionCoordinator.registerElement(E,(S["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",S),!0)};
p_U[au]=[Bt2];var VRt={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 Ifh=["videoPrimaryInfoRenderer","title"],nIh=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var r30;r30=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.uuG=_.f(function(k){k=_.dJ(k,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var E=k.data,S=k.playlistData,R=k.expanded,V=k.onExpandClick,N=k.isReadyToResume,h=function(){var T;return!((T=S())==null||!T.contents)},J=function(){var T=S();
return T&&T.totalVideos&&T.currentIndex!==void 0?T.currentIndex+1+" / "+T.totalVideos:""};
k=_.RZ(function(){_.Va(_.en().resolve(_.yb));return!1});
var m=_.RZ(function(){h()&&V&&V()}),a={};
return _.e("ytd-miniplayer-info-bar",{class:_.SQ("ytdMiniplayerInfoBarHost",(a.ytdMiniplayerInfoBarHasPlaylistData=h,a)),"on:click":m},_.e("div",{class:"ytdMiniplayerInfoBarContent"},_.e("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":k},_.e(_.VB,{text:function(){var T=E();var w=S();if(w==null?0:w.contents){var P;T=(P=_.kDA(w))==null?void 0:P.title}else T=T==null?void 0:T.miniplayerTitle;return i71(T)},
noEndpoints:!0,ellipsisTruncate:!0})),_.e("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.e(_.t,{cond:N,then:function(){return _.e(w22,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:r30})}}),_.e("h1",null,_.e(_.VB,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var T=E();var w=S();T=N()?{simpleText:_.Vi("CONTINUE_WATCHING",void 0,"Continue watching")}:(w==null?0:w.contents)?w.titleText:T==null?void 0:T.miniplayerSubtitle;return i71(T)},
noEndpoints:!0,ellipsisTruncate:!0})),_.e(_.t,{cond:function(){return!!J()&&!N()},
then:function(){return _.e("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.e("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.e("span",null,J))}}))),_.e(_.t,{cond:h,
then:function(){return _.e("div",{class:"ytdMiniplayerInfoBarExpand"},_.e(_.FA,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(T){V&&(V(),T.stopPropagation())}}},
iconName:function(){return R()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"pg");var x3G;x3G=_.f(function(k){return _.e("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.e(_.FA,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:k.onTap}},
iconName:"yt-icons:close"}))},"qg");
_.Lz2=_.f(function(k){k=_.dJ(k,{playabilityStatus:void 0,isDisabled:!1});var E=k.size,S=k.playabilityStatus,R=k.isDisabled,V=_.VH("div");k=_.n(_.yg(void 0,void 0,"y6THVb"));var N=k.next().value,h=k.next().value;k=_.gb(_.sf);var J=!1,m=function(){return E().height<=0};
_.vX(function(){var P=E(),B=m(),F=N();F&&!B&&F.setInternalSize(P.width,P.height)},"qu2eI");
_.vC(function(){var P,B,F;return _.c(function(K){if(K.nextAddress==1){P=_.en().resolve(_.yb);B=P.getPlayerElement();if(!P.isMiniplayerActive()||!B||!V.value)return K.return();B.appendTo(V.value);return K.yield(B.getPlayerPromise(),2)}F=K.yieldResult;F.setSizeStyle(!1,!0);h(F);_.KR(K)})});
_.bI(function(){a()});
_.vX(function(){var P=N();if(P)if(R()){var B=P.getPlayerState();(J=B===-1||B===1||B===3)&&P.pauseVideo()}else a()},"mCtQKc");
var a=function(){if(J){J=!1;var P;(P=N())==null||P.playVideo()}},T=_.RZ(function(){_.Va(_.en().resolve(_.yb))}),w={};
return _.e("ytd-miniplayer-player-container",{class:_.SQ("ytdMiniplayerPlayerContainerHost",(w.ytdMiniplayerPlayerContainerHidden=m,w.ytdMiniplayerPlayerContainerHostShortsPip=k,w)),style:_.nU({width:function(){return E().width+"px"},
height:function(){return E().height+"px"}})},_.e("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:V}),_.e(_.t,{cond:function(){return!!S()&&!_.K91(S())},
then:function(){return _.e(fF2,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var P;return((P=S())==null?void 0:P.errorScreen)||null},
status:function(){var P;return((P=S())==null?void 0:P.status)||null}})}}),_.e(_.t,{cond:R,
then:function(){return _.e("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":T},_.e(x3G,{onTap:function(){_.en().resolve(_.yb).close()}}))}}))},"ug");_.juT=_.f(function(k){var E=k.toastData;var S=_.VH("ytd-miniplayer-toast");k=_.n(_.IZ(function(){return!!E()}));
var R=k.next().value,V=k.next().value;k=_.n(_.yg(!1,void 0,"BvfNQe"));var N=k.next().value,h=k.next().value,J=function(){var T;return _.$n((T=E())==null?void 0:T.data.title)};
_.b$(function(){_.v7.requestAvailability();E()&&V(!1)});
var m,a;_.vX(function(){R()&&(_.Me(S.value,"iron-announce",{text:E().label+" "+J()}),m&&_.ZJ.cancelJob(m),m=_.ZJ.addLowPriorityJob(function(){h(!0)},2500))},"no1dZb");
_.vX(function(){N()&&(a&&_.ZJ.cancelJob(a),a=_.ZJ.addLowPriorityJob(function(){V(!1);h(!1)},300))},"G3yPNe");
k={};return _.e("ytd-miniplayer-toast",{el:S,class:_.SQ("ytdMiniplayerToastHost",(k.ytdMiniplayerToastOpening=function(){return R()},k.ytdMiniplayerToastClosing=function(){return N()},k))},_.e(_.t,{cond:function(){var T;
return(T=E())==null?void 0:T.data},
then:function(T){return _.e(gRY,{className:"ytdMiniplayerToastThumbnail",data:T,width:78})}}),_.e("div",{class:"ytdMiniplayerToastInfo"},_.e("div",{class:"ytdMiniplayerToastLabel"},function(){var T;
return(T=E())==null?void 0:T.label}),_.e("div",{class:"ytdMiniplayerToastTitle"},J)))},"xg");var Pqm;var WKj=null;var $3a=_.f(function(k){var E=k.progressState;var S=k.multiMarkersPlayerBarRenderer;var R=k.progressBarWidth;var V=function(){return Xci(S())},N=function(){return H7t(E())},h=function(){return R()*(E().playedTime/E().videoDuration)};
return _.e("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.e(_.jw,{each:V},function(J,m){return _.e(D3x,{modifiedProps:N,chapters:V,index:m,playedProgressWidth:h,backgroundGradientPosition:function(){var a=N(),T=V(),w=m(),P=h();return(a.playedTime-Wt(_.W(T[w],Yq)))/a.playedTime*P}})}))},"yg"),D3x=_.f(function(k){var E=k.modifiedProps;
var S=k.chapters;var R=k.index;var V=k.playedProgressWidth;var N=k.backgroundGradientPosition;k={};k=_.SQ("ytChapteredProgressBarChapteredPlayerBarChapter",(k.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return h().isScrubbing},k.ytChapteredProgressBarHoveredMacroMarker=function(){return h().scrubberHovering},k.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return h().videoPosition==="seen"},k));
var h=function(){return KKl(E(),S(),R())},J=function(){var m=E();
var a=S(),T=R();if(KKl(m,a,T).videoPosition!=="active")m=0;else{var w=Wt(_.W(a[T],Yq));m=(m.playedTime-w)/((Wt(_.W(a[T+1],Yq))||m.videoDuration)-w)}return m};
return _.e("div",{class:k,style:_.nU({width:function(){var m=E(),a=S(),T=R(),w=_.W(a[T],Yq);a=_.W(a[T+1],Yq);return(a?Wt(a)-Wt(w):m.videoDuration-Wt(w))/m.videoDuration*100+"%"},
"background-color":function(){a:{var m=h();switch(m.videoPosition){case "pending":m=m.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":m=m.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:m=""}}return m},
"background-size":function(){return(pc1(h())?V():"")+"px"},
"background-position-x":function(){return(pc1(h())?N():"")+"px"}})},_.e("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var m=E(),a=S(),T=R();if(KKl(m,a,T).videoPosition==="seen")var w=0;else w=Wt(_.W(a[T],Yq)),a=Wt(_.W(a[T+1],Yq))||m.videoDuration,m=m.videoDuration*m.percentLoaded,w=a<=m?1:w>=m?0:(m-w)/(a-w);return"width: "+w*100+"%"}}),_.e("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.nU({width:function(){return J()*100+"%"},
"background-size":function(){return(pc1(h(),J())?V():"")+"px"},
"background-position-x":function(){return(pc1(h(),J())?N():"")+"px"}})}))},"zg");var fnP=function(k,E){E=E===void 0?PbT:E;var S,R=[],V,N=!1;return function(){var h=_.sX.apply(0,arguments);if(N&&S===this&&E(h,R))return V;V=k.apply(this,h);N=!0;S=this;R=h;return V}}(function(k){var E=k.heatMarkers,S=k.minHeightDp===void 0?0:k.minHeightDp,R=k.maxHeightDp===void 0?60:k.maxHeightDp;
var V=V===void 0?!1:V;var N=1E3/E.length;k=[];k.push({x:0,y:100});for(var h=0;h<E.length;h++){var J=void 0,m=((J=_.W(E[h],o84))==null?void 0:J.heatMarkerIntensityScoreNormalized)||0;J=(h+.5)*N;m=100-_.Bt(m*100,S/321*100,R/321*100);h!==0||V||k.push({x:0,y:m});k.push({x:J,y:m});h===E.length-1&&k.push({x:1E3,y:m})}k.push({x:1E3,y:100});E="";for(S=0;S<k.length;S++)V=k[S],S===0?V="M "+V.x.toFixed(1)+","+V.y.toFixed(1):(R=URe(k[S-1],k[S-2],V),N=URe(V,k[S-1],k[S+1],!0),V=" C "+(R.x.toFixed(1)+","+R.y.toFixed(1)+
" "+N.x.toFixed(1)+","+N.y.toFixed(1)+" "+V.x.toFixed(1)+","+V.y.toFixed(1))),E+=V;return E});var vrT=_.f(function(k){var E=k.progressBarProps;var S=k.config;var R={};k=_.SQ("ytHeatSeekerHost",(R.ytHeatSeekerHighContrast=k.highContrast,R));var V=function(){return eSt(S().chapterData)};
return _.e("yt-progress-bar-heatseeker",{class:k,style:function(){var N;return"height: 320px; display: "+(E().isDragging&&((N=V())==null?0:N.heatMarkers)?"block":"none")}},_.e(_.t,{cond:V,
then:function(N){return _.e(_.t,{cond:function(){return N().heatMarkers},
then:function(){return _.e("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.e("path",{d:function(){return fnP(N())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ag");var bC2=_.f(function(k){var E=k.progressBarProps;var S=k.config;k={};k=_.SQ("ytProgressBarLineProgressBarLine",(k.ytProgressBarLineProgressBarLineRounded=function(){return S().rounded},k.ytProgressBarLineProgressBarLineBottomInset=function(){return S().position===2},k));
return _.e("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.e("div",{class:k},_.e("div",{class:"ytProgressBarLineProgressBarBackground"}),_.e("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+E().percentLoaded*100+"%"}}),_.e("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var R=E();return"width: "+(R.videoDuration?_.Bt(R.hoveredTime/R.videoDuration,0,1):0)*100+"%"}}),_.e("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+JFe(E())*100+"%"}})))},"Bg");
bC2.idomCompat=!0;var ZCA=_.f(function(k){var E=k.progressBarProps;var S=k.playheadData;var R=k.interpolateDotPosition;var V=k.hidePlayhead;k={};var N=_.SQ("ytProgressBarPlayheadProgressBarPlayheadDot",(k.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return E().isDragging},k.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!E().isDragging&&V()},k));
return _.e("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.nU({"margin-left":function(){return cFe(E())*100+"%"},
transform:function(){return"translateX(-"+(R()?cFe(E())*12:6)+"px)"}})},_.e(_.t,{cond:function(){var h;
return(h=_.Zk(S)())==null?void 0:h.playheadImage},
then:function(h){var J={};return _.e("div",{class:_.SQ("ytProgressBarPlayheadProgressBarPlayheadCustom",(J.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return E().isDragging},J.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!E().isDragging&&V()},J)),
style:_.nU({"transform-origin":function(){return(R()?cFe(E())*20:10)+"px center"}})},_.e(_.vM,{data:h,
alt:"","aria-hidden":"true"}))},
else:function(){return _.e("div",{class:N,style:_.nU({"transform-origin":function(){return(R()?cFe(E())*12:6)+"px center"}})})}}))},"Cg");
ZCA.idomCompat=!0;var NS=function(k,E,S,R,V,N){this.getProgressBarRect=k;this.updateProgressBarRect=E;this.getFilmstripYPosition=S;this.setFineScrubbingDraggedTime=R;this.updateFilmStripDraggedYDistance=V;this.resetFilmStripYOffset=N;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.NJ(this.onThrottledSeek,100,this)},d3P=function(k,E,S){return function(R){k.handleClick(R,E(),S())}},Mn3=function(k,E){return function(S){sut(k,
S,lnP(S),E())}},qgA=function(k,E){return function(S){sut(k,S,{x:S.clientX,
y:S.clientY},E())}},QuP=function(k,E,S){return function(R){var V=E(),N=S();
zI2(k,R,lnP(R),V,N,!0);if(N.onTouchMove)N.onTouchMove(V)}},GV2=function(k,E,S){return function(R){OCY(k,R,E(),S())}},CJR=function(k,E){return function(){k.handleMouseLeave(E())}},kp2=function(k,E,S){return function(){var R=E(),V=S();
ID(k,R,V);if(V.onTouchEnd)V.onTouchEnd(R)}},EZP=function(k,E,S){return function(){var R=E(),V=S();
ID(k,R,V);if(V.onTouchEnd)V.onTouchEnd(R)}},SQY=function(k,E,S){return function(){ID(k,E(),S())}},RdG=function(k){return function(E){if(E.keyCode===39||E.keyCode===38){var S,R;
(S=k())==null||(R=S.playerApi)==null||R.seekBy(5,void 0,void 0,72)}else if(E.keyCode===37||E.keyCode===40){var V,N;(V=k())==null||(N=V.playerApi)==null||N.seekBy(-5,void 0,void 0,71)}}},VvP=function(k,E,S){return function(R){!S().disableScrubbing&&k.startPosition&&OCY(k,R,E(),S())}},Nvx=function(k,E,S){return function(){if(!S().disableScrubbing)if(k.startPosition){var R=E(),V=S();
ID(k,E(),S());if(V.onTouchEnd)V.onTouchEnd(R)}else E().setState({isDragging:!1})}},lnP=function(k){k=k.touches[0];
return{x:k.clientX,y:k.clientY}},OCY=function(k,E,S,R){if(E.buttons!==1){if(E.movementX||E.movementY)E.preventDefault(),E.stopPropagation(),k=IJI(k,S,E.clientX),S.setState({isHovering:!0,
hoveredTime:k*S.videoDuration})}else nZ3(S),zI2(k,E,{x:E.clientX,y:E.clientY},S,R,!1)};
NS.prototype.handleMouseLeave=function(k){nZ3(k)};
var nZ3=function(k){k.isHovering&&k.setState({isHovering:!1,hoveredTime:0})},sut=function(k,E,S,R){k.startPosition||(k.startPosition=S,k.updateProgressBarRect(),k.controlsWereVisibleBeforeDragging=R.controlsVisible,E.stopPropagation(),_.Y("medium_progress_bar_modification")||E.preventDefault())},zI2=function(k,E,S,R,V,N){if(k.startPosition)if(N&&V.isInlinePlayback&&k.startPosition&&!k.hasDraggedTheMinimumDistance&&Math.abs(S.y-k.startPosition.y)>Math.abs(S.x-k.startPosition.x))ID(k,R,V);
else if(E.preventDefault(),E.stopPropagation(),R.videoDuration&&(k.startPosition&&!k.hasDraggedTheMinimumDistance&&(k.hasDraggedTheMinimumDistance=Math.abs(S.x-k.startPosition.x)>=1),V.enableFineScrubbing&&(k.startPosition&&(k.isDraggedForFineScrubbing=-(S.y-k.startPosition.y)>=60),!k.startPosition||S.y>=k.startPosition.y||(R.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:AFe(R.draggedTime,R,V.chapterData)}),k.setFineScrubbingDraggedTime(R.draggedTime),k.updateFilmStripDraggedYDistance(k.startPosition.y,
S.y,R))),k.hasDraggedTheMinimumDistance)){E=IJI(k,R,S.x);if(k.isDraggedForFineScrubbing){var h;(h=R.playerApi)==null||h.pauseVideo();R.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:R.draggedTime,filmStripXDistance:AFe(E*R.videoDuration,R,V.chapterData)})}V.enableFineScrubbing&&(!V.enableFineScrubbing||k.getFilmstripYPosition(R)<68)||R.setState({draggedTime:E*R.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:k.controlsWereVisibleBeforeDragging});var J;(J=
V.cancelAutohideControlsFn)==null||J.call(V)}},ID=function(k,E,S){var R=S.enableFineScrubbing&&E.fineScrubbingActiveState!=="off";
if(E.isDragging||R){R={isDragging:!1,playedTime:E.draggedTime,controlsVisible:k.controlsWereVisibleBeforeDragging};S.enableFineScrubbing&&E.fineScrubbingActiveState!=="on"&&(k.resetFilmStripYOffset(),R.fineScrubbingActiveState="off");var V=V===void 0?WKj:V;var N=_.Fe(0);if(N&&V){var h=Math.round(E.playedTime*1E3),J=Math.round(E.draggedTime*1E3);h>2147483647||J>2147483647||_.$A(N,V,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(h),endMediaTimeMs:String(J),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}E.setState(R);
k.seekThrottle.fire(E.draggedTime,E,7);_.Y("mweb_new_progress_bar_play_on_seek")&&k.resumeVideo(E);S.unmuteOnSeek&&(S=E.playerApi,E.volumeMuted&&(S==null||S.unMute()))}else E.setState({controlsVisible:!E.controlsVisible}),(N=S.triggerAutohideControlsAfterDelayFn)==null||N.call(S);k.startPosition=null;k.hasDraggedTheMinimumDistance=!1;k.isDraggedForFineScrubbing=!1;k.controlsWereVisibleBeforeDragging=!1};
NS.prototype.handleClick=function(k,E,S){this.updateProgressBarRect();k.stopPropagation();k=IJI(this,E,k.clientX)*E.videoDuration;E.setState({playedTime:k});if(E.playerState!==2){var R;(R=S.triggerAutohideControlsAfterDelayFn)==null||R.call(S)}this.seekThrottle.fire(k,E,7)};
var IJI=function(k,E,S){k=k.getProgressBarRect(E);return _.Bt(0,(S-k.left)/k.width,1)};
NS.prototype.resumeVideo=function(k){if(k.draggedTime<k.videoDuration){var E;(E=k.playerApi)==null||E.playVideo()}};
NS.prototype.onThrottledSeek=function(k,E,S){if(E=E.playerApi){var R;if((R=E.getVideoData())==null?0:R.isLive)R=this.getProgressState(E),k+=(R==null?void 0:R.seekableStart)||0;E.seekTo(k,void 0,void 0,void 0,S)}};
NS.prototype.getProgressState=function(k){var E=k==null?void 0:k.getPresentingPlayerType();return k==null?void 0:k.getProgressState(E)};var J6U,hdx,c60,edT,ixU,aJA,tvR,Tva,wV0;J6U=_.f(function(k){var E=k.progressBarProps;var S=k.config;var R=k.progressBarWidthPx;var V=k.chapterData;var N=jIt(E,function(){return S().isShortsPage}),h=function(){return!E().isHovering&&!S().isShortsPage};
k={};var J=_.SQ("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(k.ytPlayerStoryboardHostMwebShorts=function(){return S().isShortsPage&&!1},k));
return _.e("yt-player-storyboard",null,_.e(_.t,{cond:function(){return E().isDragging||E().isHovering},
then:function(){return _.e(_.t,{cond:N,then:function(m){return _.e(_.t,{cond:h,then:function(){return _.e("div",{class:J,"aria-hidden":"true"},_.e(ixU,{props:E,config:S,isBigboard:!0,chapterData:V}))},
else:function(){return _.e(hdx,{props:E,frame:m,config:S,progressBarWidthPx:R,chapterData:V})}})}})}}))},"Dg");
_.mG0=_.f(function(k){var E=k.progressBarProps;var S=jIt(E,k.isShortsPage);return _.e("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.e(_.t,{cond:function(){return E().isDragging||E().isHovering},
then:function(){return _.e(_.t,{cond:S,then:function(R){return _.e(c60,{frame:R,props:E,isBigboard:!0})}})}}))},"Eg");
hdx=_.f(function(k){var E=k.props;var S=k.frame;var R=k.config;var V=k.progressBarWidthPx;k=k.chapterData;var N={};N=_.SQ("ytPlayerStoryboardHost",(N.ytPlayerStoryboardHostMwebShorts=function(){return R().isShortsPage&&!1},N.ytPlayerStoryboardHostInlinePlayer=function(){return R().isInlinePlayer},N.ytPlayerStoryboardHostFadeIn=function(){return R().useFadeInAnimation},N));
return _.e("div",{class:N,"aria-hidden":"true",style:function(){var h=E(),J=rFl(S()),m=V();h=ux1(h)/h.videoDuration;var a=m*h,T=J/2+6;J=m-(J/2+6);return"left: "+(a<=T?T/m*100:a>=J?J/m*100:h*100)+"%"}},_.e(_.t,{cond:function(){var h=E();
return!(R().isShortsPage&&h.videoDuration<15)},
then:function(){return _.e(c60,{frame:S,props:E,isBigboard:!1})}}),_.e(ixU,{props:E,
config:R,isBigboard:!1,chapterData:k}))},"Fg");
c60=_.f(function(k){var E=k.frame;var S=k.props;var R=k.isBigboard;var V=function(){var J,m;return(m=(J=S().playerApi)==null?void 0:J.getVideoContentRect())!=null?m:{width:0,height:0}},N=function(){return rFl(E())},h=function(){var J=E();
return J?J.height/J.rows:0};
k={};k=_.SQ((k.ytPlayerStoryboardBigboardImageWrapper=R,k.ytPlayerStoryboardStoryboardImageWrapper=function(){return!R()},k));
return _.e("div",{class:k,style:function(){return"width: "+(R()?V().width:N())+"px; height: "+(R()?V().height:h())+"px;"}},_.e(edT,{frame:E,
storyboardWidth:N,storyboardHeight:h,storyboardScale:function(){return(R()?V().width:N())/N()}}))},"Gg");
edT=_.f(function(k){var E=k.frame;var S=k.storyboardWidth;var R=k.storyboardHeight;var V=k.storyboardScale;var N=function(){var h=E().row,J=E().column,m=S(),a=R(),T=V();return{left:-J*m*T,top:-h*a*T}};
return _.e("img",{src:function(){return E().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+N().left+"px; top: "+N().top+"px; width: "+E().width*V()+"px; height: "+E().height*V()+"px;"}})},"Hg");
ixU=_.f(function(k){var E=k.props;var S=k.config;var R=k.isBigboard;var V=k.chapterData;k={};k=_.SQ("ytPlayerStoryboardMetadata",(k.ytPlayerStoryboardMetadataBigboard=R,k));return _.e("div",{class:k},_.e(_.t,{cond:R,then:function(){return _.e(_.tj,null,_.e(aJA,{props:E,config:S}),_.e(_.t,{cond:function(){a:{var N=E();var h=S(),J=V(),m;if((h==null?0:h.activeChapter)&&((m=_.W(h==null?void 0:h.activeChapter,Yq))==null?0:m.title))N=!0;else{h=_.n(afl(J));for(h=h.next();!h.done;h=h.next()){N=(h=_.W(h.value,
g8T))&&xCC(N,h);break a}N=!1}}return N},
then:function(){return _.e(tvR,{props:E,config:S,isBigboard:!0,chapterData:V})}}))},
else:function(){return _.e(_.tj,null,_.e(tvR,{props:E,config:S,isBigboard:!0,chapterData:V}),_.e(aJA,{props:E,config:S}))}}))},"Ig");
aJA=_.f(function(k){var E=k.props;var S=k.config;k={};k=_.SQ("ytPlayerStoryboardTimestamp",(k.ytPlayerStoryboardTimestampShorts=function(){return S().isShortsPage},k.ytPlayerStoryboardTimestampIsHovering=function(){return E().isHovering||S().isShortsPage&&!0},k));
return _.e("div",{class:k},_.e(_.tj,null,function(){return _.LKh(ux1(E()))}))},"Jg");
tvR=_.f(function(k){var E=k.props;var S=k.config;var R=k.isBigboard;var V=k.chapterData;k={};R=_.SQ("ytPlayerStoryboardTitle",(k.ytPlayerStoryboardTitleBigboard=R,k));return _.e("div",{class:R},_.e(_.t,{cond:function(){return!S().isShortsPage},
then:function(){return _.e(Tva,{props:E,activeChapter:function(){return S().activeChapter},
chapterData:V})}}))},"Kg");
Tva=_.f(function(k){var E=k.props;var S=k.activeChapter;var R=k.chapterData;return _.e(_.tj,null,_.e(_.jw,{each:function(){return afl(R())},
keyBy:"INDEX"},function(V){return _.e(_.tj,null,_.e(_.t,{cond:function(){return _.W(V(),g8T)&&xCC(E(),_.W(V(),g8T))},
then:function(){return _.e(wV0,{timedMarker:function(){return _.W(V(),g8T)}})}}))}),_.e(_.t,{cond:function(){var V;
return S()&&((V=_.W(S(),Yq))==null?void 0:V.title)},
then:function(V){return _.e(_.VB,{text:V,noPreWrap:!0})}}))},"Lg");
wV0=_.f(function(k){var E=k.timedMarker;return _.e(_.tj,null,_.e("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.e(_.i_,{icon:function(){return E().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.e(_.VB,{text:function(){return E().label},
noPreWrap:!0}))},"Mg");_.PXA=_.f(function(k){var E=k.progressBarProps;var S=k.playheadData;var R=k.config;k=_.VH("yt-progress-bar");var V=_.VH("div"),N=_.VH("div"),h=_.n(_.yg({width:0,left:0},void 0,"WloVn")),J=h.next().value,m=h.next().value,a=function(){N.value&&m(N.value.getBoundingClientRect())},T=function(){J().width<=0&&a();
return J()};
_.cn("resize",a);var w=new NS(T,function(){},function(){return 0},function(){},function(){},function(){}),P=function(){return E()};
h=_.n(_.yg(!1,void 0,"u8BZZb"));var B=h.next().value,F=h.next().value;h=_.RZ(function(){F(!0);R().position===2?setTimeout(function(){a()},100):a()});
var K=_.RZ(function(){F(!1);CJR(w,P)()}),r=_.RZ(function(Xm){R().doSeekOnClick&&d3P(w,P,R)(Xm);
return!1}),x=_.RZ(function(Xm){Mn3(w,P)(Xm);
return!1}),L=_.RZ(function(Xm){qgA(w,P)(Xm);
return!1}),q=_.RZ(function(Xm){QuP(w,P,R)(Xm);
return!1}),M=_.RZ(function(Xm){GV2(w,P,R)(Xm);
return!1}),d=_.RZ(function(){kp2(w,P,R)();
return!1}),z=_.RZ(function(){EZP(w,P,R)();
return!1}),kb=_.RZ(function(){SQY(w,P,R)();
return!1}),TI=_.RZ(function(Xm){RdG(P)(Xm);
return!1});
_.cn("mousemove",VvP(w,P,R));_.cn("mouseup",Nvx(w,P,R));_.b$(function(){FK1(V.value);F(!1);a();Nvx(w,P,R)()});
var a1={};a1=_.SQ("ytPlayerProgressBarHost",function(){return R().className},(a1.ytPlayerProgressBarHostReadOnly=function(){return R().disableScrubbing},a1.ytPlayerProgressBarHostHidden=function(){return R().hideProgressBar&&!B()},a1.ytPlayerProgressBarHostLowerPlayer=function(){return R().position===0},a1.ytPlayerProgressBarHostBottomEdge=function(){return R().position===1},a1.ytPlayerProgressBarHostBottomInset=function(){return R().position===2},a1.ytPlayerProgressBarHostCustom=function(){return R().position===
3},a1));
var Ah={},th=_.SQ("ytPlayerProgressBarBackground",(Ah.ytPlayerProgressBarBackgroundHide=function(){return R().position===2&&!B()&&!E().isDragging},Ah));
Ah={};Ah=_.SQ("ytPlayerProgressBarDragContainer",(Ah.ytPlayerProgressBarDragContainerBottomEdge=function(){return R().position===1},Ah));
var He={};He=_.SQ("ytPlayerProgressBarProgressBar",(He.ytPlayerProgressBarProgressBarInset=function(){return R().position===2},He.ytPlayerProgressBarProgressBarInsetMinimized=function(){return R().position===2&&!B()&&!E().isDragging},He));
var ve=function(){return Math.floor(JFe(E())*100)};
return _.e("yt-progress-bar",{el:k,class:a1},_.e(_.t,{cond:function(){return R().position===2},
then:function(){return _.e("div",{class:th})}}),_.e("div",{el:V,
"on:click":r,"on:touchstart":x,"on:touchmove":q,"on:mouseenter":h,"on:mousedown":L,"on:mouseleave":K,"on:mousemove":M,"on:mouseup":z,"on:touchend":d,"on:touchcancel":kb,"on:keydown":TI,class:Ah,role:"slider","aria-valuenow":ve,"aria-valuetext":function(){return ve()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return E().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Vi("SEEK_SLIDER")},_.e("div",{el:N,class:He},_.e(vrT,{progressBarProps:E,config:R,highContrast:function(){return!!R().isInlinePlayback}}),_.e(_.t,{cond:function(){return R().chapterData&&tRI(R().chapterData)},
then:function(){return _.e($3a,{progressState:E,multiMarkersPlayerBarRenderer:function(){return R().chapterData},
progressBarWidth:function(){return J().width}})},
else:function(){return _.e(bC2,{progressBarProps:E,config:R})}}),_.e(ZCA,{progressBarProps:E,
playheadData:S,interpolateDotPosition:function(){return R().position!==2},
hidePlayhead:function(){return R().playheadDotBehavior===1&&!B()}}))),_.e(J6U,{progressBarProps:E,
config:function(){return{activeChapter:UCl(E(),R().chapterData),getProgressBarWidthPx:function(){return T().width},
isShortsPage:!!R().isShortsPage,isInlinePlayer:!!R().isInlinePlayback,useFadeInAnimation:!!R().isInlinePlayback}},
progressBarWidthPx:function(){return J().width},
chapterData:function(){return R().chapterData}}))},"Ng");
_.PXA.idomCompat=!0;Object.assign({},_.TC1(),{setState:function(){},
domMeasurements:{},appApi:_.hSR(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var BvP;
_.YQP=_.f(function(){var k,E=(k=_.Fr(DCm().playerApi))!=null?k:void 0;k=_.n(_.yg(!1,void 0,"Z9NQ1b"));var S=k.next().value,R=k.next().value;k=_.n(_.yg(!1,void 0,"HoVJXe"));var V=k.next().value,N=k.next().value;k=_.n(_.yg(!1,void 0,"DWCY3"));var h=k.next().value,J=k.next().value;k=_.n(_.yg(!1,void 0,"g4C2Zd"));var m=k.next().value,a=k.next().value;k=_.n(_.yg(0,void 0,"lmVfFb"));var T=k.next().value,w=k.next().value;k=_.n(_.yg(0,void 0,"mFLbzb"));var P=k.next().value,B=k.next().value;k=_.n(_.yg(!1,void 0,
"hQN4Wb"));var F=k.next().value,K=k.next().value;k=_.n(_.yg(0,void 0,"WWU0fb"));var r=k.next().value,x=k.next().value;k=_.n(_.yg(0,void 0,"MJ7LMd"));var L=k.next().value,q=k.next().value;k=_.n(_.yg("",void 0,"hnomOe"));var M=k.next().value,d=k.next().value;k=_.n(_.yg(-1,void 0,"ARe3pf"));var z=k.next().value,kb=k.next().value,TI=_.HX(function(){var a1={controlsVisible:S(),isOverlayHidden:V(),shouldWaitToHideControls:h(),isDragging:m(),isHovering:F(),videoDuration:r(),playedTime:L(),videoId:M(),draggedTime:P(),
hoveredTime:T(),playerState:z()};return Object.assign({},_.TC1(),a1,{domMeasurements:{},setState:function(Ah){Ah.controlsVisible!==void 0&&R(Ah.controlsVisible);Ah.isOverlayHidden!==void 0&&N(Ah.isOverlayHidden);Ah.shouldWaitToHideControls!==void 0&&J(Ah.shouldWaitToHideControls);Ah.isDragging!==void 0&&a(Ah.isDragging);Ah.isHovering!==void 0&&K(Ah.isHovering);Ah.draggedTime!==void 0&&B(Ah.draggedTime);Ah.hoveredTime!==void 0&&w(Ah.hoveredTime);Ah.videoDuration!==void 0&&x(Ah.videoDuration);Ah.playedTime!==
void 0&&q(Ah.playedTime);Ah.videoId!==void 0&&d(Ah.videoId);Ah.playerState!==void 0&&kb(Ah.playerState)},
appApi:_.hSR(),playerApi:E})},void 0,"Au4PIf");
_.vC(function(){E==null||E.addEventListener("onVideoProgress",YwA(TI));E==null||E.addEventListener("onVideoDataChange",BCR(TI));E==null||E.addEventListener("onStateChange",wc1(TI))});
_.bI(function(){if(E==null?0:E.isReady())E==null||E.removeEventListener("onVideoProgress",YwA(TI)),E==null||E.removeEventListener("onVideoDataChange",BCR(TI)),E==null||E.removeEventListener("onStateChange",wc1(TI))});
return _.e("desktop-shorts-player-controls",null,_.e(BvP,{playerControlsProps:TI}))},"Pg");
BvP=_.f(function(k){var E=k.playerControlsProps;return _.e("div",{class:"desktopShortsPlayerControlsHost"},_.e(_.PXA,{progressBarProps:E,config:function(){return{isShortsPage:!0,hideProgressBar:E().videoDuration<30&&E().playerState!==2&&!E().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Qg");_.Wqa=_.f(function(k){function E(a1){a1!==0||w()?a1>50&&(w()||!B())?(P(!1),F(!0)):a1<=50&&(w()||B())&&(P(!1),F(!1)):P(!0)}
function S(a1,Ah){var th;return _.c(function(He){if(He.nextAddress==1)return He.yield(_.Ef(),2);th=He.yieldResult;Ah&&th?(th.unMute(!0),a1&&(ffh(a1,th.getVolume()),r(th.getVolume()))):th&&(th.mute(!0),a1&&ffh(a1,0));_.KR(He)})}
function R(a1){var Ah,th;return _.c(function(He){if(He.nextAddress==1)return He.yield(_.Ef(),2);Ah=He.yieldResult;th=50;Ah&&(th=Ah.getVolume(),Ah.isMuted()?ffh(a1,0):ffh(a1,th));r(th);_.KR(He)})}
var V=k.orientation;k=_.VH("desktop-shorts-volume-controls");var N=_.VH("button"),h=_.Nm("input"),J=_.n(_.yg(!1,void 0,"MvN0Tc")),m=J.next().value,a=J.next().value,T=_.n(_.yg(!1,void 0,"aSjsEb"));J=T.next().value;T=T.next().value;var w=J,P=T;T=_.n(_.yg(!0,void 0,"FUh46d"));J=T.next().value;T=T.next().value;var B=J,F=T;J=_.n(_.yg(50,void 0,"yPke4d"));var K=J.next().value,r=J.next().value;J=_.HX(function(){var a1=w();return _.Y("web_shorts_keyboard_enable_mute_shortcut")?a1?_.Vi("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Vi("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):a1?_.Vi("UNMUTE_VOLUME",void 0,"Unmute"):_.Vi("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
T=_.HX(function(){var a1=w(),Ah=B();return{sources:[{clientResource:{imageName:a1?_.Y("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Ah?_.Y("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.Y("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var x=_.HX(function(){var a1=K();return w()?a1+"% volume muted":a1+"% volume"},void 0,"xZsRmc"),L=_.HX(function(){return V()==="vertical_down"},void 0,"FVqYmb");
_.b$(function(){function a1(){a(!0)}
function Ah(){a(!1)}
h&&h.value&&(h.value.addEventListener("focus",a1),h.value.addEventListener("focusout",Ah),R(h.value).then(function(){E(Number(vII(h.value)))}));
N&&N.value&&(N.value.addEventListener("focus",a1),N.value.addEventListener("focusout",Ah));_.bI(function(){var th;h==null||(th=h.value)==null||th.removeEventListener("focus",a1);var He;h==null||(He=h.value)==null||He.removeEventListener("focusout",Ah);var ve;N==null||(ve=N.value)==null||ve.removeEventListener("focus",a1);var Xm;N==null||(Xm=N.value)==null||Xm.removeEventListener("focusout",Ah)})});
var q=_.RZ(function(){if(h&&h.value){var a1=Number(vII(h.value));$Ch(a1);r(a1);h.value.style.setProperty("--gradient-percent",a1+"%");E(a1)}return!1}),M=_.RZ(function(){h&&h.value&&(S(h.value,w()),P(!w()));
return!1}),d={},z={},kb={},TI={};
return _.e("desktop-shorts-volume-controls",{"on:pointerleave":_.RZ(function(){a(!1)}),
"on:pointerenter":_.RZ(function(){a(!0)}),
class:_.SQ("ytdDesktopShortsVolumeControlsHost",(d.ytdDesktopShortsVolumeControlsHostVertical=L,d.ytdDesktopShortsVolumeControlsHostModern=_.Y("web_shorts_modern_controls"),d.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.Y("web_shorts_modern_controls")&&m()},d)),
el:k},_.e(_.t,{cond:function(){return!L()},
then:function(){var a1={};return _.e("div",{class:_.SQ("ytdDesktopShortsVolumeControlsBackgroundScrim",(a1.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=m,a1.ytdDesktopShortsVolumeControlsBackgroundScrimModern=_.Y("web_shorts_modern_controls"),a1))})}}),_.e("div",{class:_.SQ((z.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=L,z))},_.e("button",{"aria-label":J,
title:J,el:N,"on:click":M,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},T?_.e(_.vM,{data:T,alt:J,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.e("div",{class:_.SQ("ytdDesktopShortsVolumeControlsSliderContainer",(kb.ytdDesktopShortsVolumeControlsSliderContainerExpanded=m,kb.ytdDesktopShortsVolumeControlsSliderContainerVertical=L,kb.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=L,kb.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return m()&&
L()},kb))},_.e("input",{"aria-label":_.Vi("VOLUME"),
title:_.Vi("VOLUME"),el:h,"on:input":q,type:"range",class:_.SQ("ytdDesktopShortsVolumeControlsNativeSlider",(TI.ytdDesktopShortsVolumeControlsNativeSliderModern=_.Y("web_shorts_modern_controls"),TI)),id:"volume-input",role:"slider","aria-valuenow":K,"aria-valuetext":x,"aria-valuemin":0,"aria-valuemax":100})))},"Rg");_.FqY=_.f(function(k){var E=k.data;var S=k.extractOverlay;k={};return _.e("player-disclosure-view-model",{class:_.SQ("ytwPlayerDisclosureViewModelHost",(k.ytwPlayerDisclosureViewModelExtractOverlay=function(){return S==null?void 0:S()},k))},_.e(_.P5,{command:function(){return E().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.e(_.t,{cond:function(){return E().iconName},
then:function(R){return _.e(_.i_,{icon:R})}}),_.e("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return E().text}),_.e(_.t,{cond:function(){return E().showEndChevron},
then:function(){return _.e(_.i_,{icon:"CHEVRON_RIGHT"})}})))},"Sg");var y60=_.f(function(k){var E=k.data;var S=k.overlayDensity;k={};return _.e("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.e(_.cp,{data:function(){return E().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(R){var V=R.data;
return _.e(_.sV,{data:function(){return(S==null?void 0:S())===1?Object.assign({},V(),{avatar:{avatarViewModel:Object.assign({},_.W(V().avatar,_.y3),{avatarImageSize:"AVATAR_SIZE_M"})}}):V()}})}}),_.e(_.cp,{data:function(){return E().avatarStackViewModel}},{avatarStackViewModel:function(R){return _.e(_.lR,{data:R.data})}}),_.e(_.VB,{className:_.SQ("ytReelChannelBarViewModelChannelName",(k.ytReelChannelBarViewModelChannelNameLarge=function(){return(S==null?void 0:S())===1},k)),
text:function(){return E().channelName},
linkInheritColor:!0,userInput:!0}),_.e("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.e(_.cp,{data:function(){return E().subscribeButtonViewModel}},{subscribeButtonViewModel:function(R){var V=R.data;
return _.e(_.dR,{data:function(){return(S==null?void 0:S())===1?Object.assign({},V(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},V().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):V()},
isOverlay:!1})},
buttonViewModel:_.yB})),_.e("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.e(_.cp,{data:function(){var R,V;return(V=_.W((R=E())==null?void 0:R.sponsorButtonViewModel,jAd))==null?void 0:V.sponsorButton}},{buttonViewModel:function(R){return _.e(_.yB,{data:R.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Tg");var oZ3=_.f(function(k){var E=function(){var V;return((V=k.overlayDensity)==null?void 0:V.call(k))===1},S=function(){return E()?22:16},R={};
return _.e("yt-reel-multi-format-link-view-model",{class:_.SQ("ytReelMultiFormatLinkViewModelHost",(R.ytReelMultiFormatLinkViewModelHostTall=!0,R.ytReelMultiFormatLinkViewModelHostLarge=function(){return E()},R))},_.e(_.P5,{ariaLabel:function(){return k.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return k.data().command}},_.e("h3",{class:function(){return E()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.e(_.t,{cond:function(){return k.data().icon},
then:function(V){return _.e(_.vM,{data:V,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:S})}}),_.e(_.VB,{text:function(){return k.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ug");
oZ3.idomCompat=!0;var XVx=_.f(function(k){var E=k.data;var S=k.overlayDensity;var R=k.extractOverlay;var V=_.VH("yt-shorts-suggested-action-view-model");k=_.n(_.yg(!1,void 0,"S60Hzc"));var N=k.next().value,h=k.next().value;k=_.n(_.yg(!1,void 0,"O76chf"));var J=k.next().value,m=k.next().value,a=function(){return E().isMultiLineSa},T=_.iK(AAI,function(){var d,z;
return(z=(d=E().toggleableContent)==null?void 0:d.entityKey)!=null?z:""}),w=function(){var d,z,kb;
return(kb=E().toggleableContent)!=null&&kb.entityKey?(z=(d=T())==null?void 0:d.value)!=null?z:!1:!1},P=function(){var d,z,kb,TI,a1,Ah,th,He,ve,Xm,U5;
return E().toggleableContent?w()?(d=E().toggleableContent)==null?void 0:d.toggledData:(z=E().toggleableContent)==null?void 0:z.untoggledData:{primaryText:(He=(kb=E().defaultContent)==null?void 0:kb.primaryText)!=null?He:E().text,secondaryText:(TI=E().defaultContent)==null?void 0:TI.secondaryText,onTapCommand:(ve=(a1=E().defaultContent)==null?void 0:a1.onTapCommand)!=null?ve:E().onTapCommand,icon:(Xm=(Ah=E().defaultContent)==null?void 0:Ah.icon)!=null?Xm:E().icon,image:(U5=(th=E().defaultContent)==
null?void 0:th.image)!=null?U5:E().image}},B=function(){return a()?E().trailingTapTarget:void 0},F=function(d,z){return function(){return N()?z:d}},K=function(){return{leadingSection:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(S==null?void 0:S())===1?F("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):F("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:F("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:F("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
k={};k=_.SQ((k.ytShortsSuggestedActionViewModelStaticHost=function(){return!a()},k.ytShortsSuggestedActionViewModelDynamicHost=a,k.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return a()&&J()},k.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return a()&&!J()},k.ytShortsSuggestedActionViewModelExtractOverlay=function(){return R==null?void 0:R()},k));
_.b$(function(){if(a()){var d=0,z;if((z=E().animationParams)==null?0:z.shouldExpand){var kb,TI;d=((TI=(kb=E().animationParams)==null?void 0:kb.expansionDelaySecs)!=null?TI:0)*1E3}var a1,Ah=((a1=E().animationParams)==null?0:a1.shouldExpand)?setTimeout(function(){h(!0)},d):void 0,th,He;
d=((th=E().animationParams)==null?0:th.visibilityDelaySecs)?((He=E().animationParams)==null?NaN:He.visibilityDelaySecs)*1E3:0;var ve=setTimeout(function(){m(!0)},d);
_.bI(function(){Ah&&clearTimeout(Ah);clearTimeout(ve)})}});
var r=function(d){_.AV(d,Object.assign({},{form:{element:V.value}}))},x=_.RZ(function(){var d,z=(d=P())==null?void 0:d.onTapCommand;
z&&r(z)}),L=_.RZ(function(){var d,z;
if(d=(z=B())==null?void 0:z.onTapCommand)return r(d),!1}),q=_.nU({"vertical-align":"bottom",
"border-radius":function(){var d;return a()?((d=E().defaultContent)==null?0:d.isCircleImage)?"50%":"4px":"0px"},
width:function(){var d,z,kb;return a()&&((d=E().defaultContent)==null?0:d.imageSize)?((kb=(z=E().defaultContent)==null?void 0:z.imageSize)!=null?kb:24)+"px":null},
height:function(){var d,z,kb;return a()&&((d=E().defaultContent)==null?0:d.imageSize)?((kb=(z=E().defaultContent)==null?void 0:z.imageSize)!=null?kb:24)+"px":null}}),M={};
return _.e("yt-shorts-suggested-action-view-model",{class:k,el:V},_.e("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.e("button",{class:_.SQ(function(){return a()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var d;
return(d=E().useFullRoundedBorder)!=null&&d?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!B()&&a()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":a()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var d;
return(d=E().disableFixedHeight)!=null&&d?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(M.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(S==null?void 0:S())===1},M.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return R==null?void 0:R()},M)),
"on:click":x},_.e(_.B5,{model:{color:4}}),_.e("div",{class:_.SQ(function(){return a()?K().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.e(_.t,{cond:function(){var d;
return(d=P())==null?void 0:d.image},
then:function(d){return _.e(_.vM,{data:d,alt:"",className:function(){return a()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:q})}}),_.e(_.t,{cond:function(){var d,z;
return(d=P())==null?void 0:(z=d.icon)==null?void 0:z.iconType},
then:function(d){return _.e(_.i_,{icon:d,active:w,className:function(){return a()?N()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.e("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.e(_.t,{cond:function(){var d;
return(d=P())==null?void 0:d.primaryText},
then:function(d){var z={};return _.e("div",{class:_.SQ("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(z.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(S==null?void 0:S())===1},z))},_.e(_.VB,{text:d}))}}),_.e(_.t,{cond:function(){var d;
return(d=P())==null?void 0:d.secondaryText},
then:function(d){return _.e("div",{class:function(){return K().secondaryText()}},_.e(_.VB,{text:d}))}}))),_.e(_.t,{cond:B,
then:function(d){return _.e("div",{class:_.SQ(function(){return K().trailingSection()},function(){var z,kb;
return(R==null?void 0:R())&&((kb=(z=K()).trailingSectionExtractOverlay)==null?void 0:kb.call(z))||""}),
"aria-label":function(){var z;return(z=d().a11yLabel)!=null?z:""},
"on:click":L,role:"button",tabindex:0},_.e(_.B5,{model:{color:4}}),_.e(_.i_,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Vg");var gZU=_.f(function(k){var E=k.data;var S=k.overlayDensity;var R=_.VH("yt-shorts-video-title-view-model");k=_.RZ(function(h){if(_.Bp(_.Pp(h),R.value,["A".toString()]))return!1;(h=E().truncatedTextOnTapCommand)&&_.AV(h);return!1});
var V={},N={};return _.e("yt-shorts-video-title-view-model",{el:R,class:_.SQ("ytShortsVideoTitleViewModelHost",(V.ytShortsVideoTitleViewModelHostClickable=function(){return!!E().truncatedTextOnTapCommand},V)),
"on:click":k},_.e("h2",{class:_.SQ("ytShortsVideoTitleViewModelShortsVideoTitle",(N.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(S==null?void 0:S())===1},N))},_.e(_.VB,{text:function(){return E().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(S==null?void 0:S())===1}})))},"Wg");_.UGt=_.f(function(k){var E=k.data;var S=k.overlayDensity;var R=k.extractOverlay;var V=function(){return(S==null?void 0:S())===1};
return _.e("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.e(_.cp,{data:function(){return E().metadataItems}},{badgeViewModel:function(N){N=N.data;
return _.e("div",{class:_.SQ(function(){return V()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.e(_.t7,{data:N}))},
playerDisclosureViewModel:function(N){N=N.data;return _.e("div",{class:_.SQ(function(){return V()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.e(_.FqY,{data:N,
extractOverlay:R}))},
shortsSuggestedActionViewModel:function(N){N=N.data;return _.e("div",{class:_.SQ(function(){return V()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.e(XVx,{data:N,
overlayDensity:S,extractOverlay:R}))},
reelChannelBarViewModel:function(N){N=N.data;var h={};return _.e("div",{class:_.SQ("ytReelMetapanelViewModelMetapanelItem",(h.ytReelMetapanelViewModelExpansive=function(){return V()},h))},_.e(y60,{data:N,
overlayDensity:S}))},
reelMultiFormatLinkViewModel:function(N){N=N.data;var h={};return _.e("div",{class:_.SQ("ytReelMetapanelViewModelMetapanelItem",(h.ytReelMetapanelViewModelExpansive=function(){return V()},h))},_.e(oZ3,{data:N,
overlayDensity:S}))},
shortsVideoTitleViewModel:function(N){N=N.data;var h={};return _.e("div",{class:_.SQ("ytReelMetapanelViewModelMetapanelItem",(h.ytReelMetapanelViewModelExpansive=function(){return V()},h))},_.e(gZU,{data:N,
overlayDensity:S}))},
reelSoundMetadataViewModel:function(N){N=N.data;var h={};return _.e("div",{class:_.SQ("ytReelMetapanelViewModelMetapanelItem",(h.ytReelMetapanelViewModelExpansive=function(){return V()},h))},_.e(_.gOt,{data:N,
overlayDensity:S}))},
toggleButtonViewModel:function(N){N=N.data;var h={};return _.e("div",{class:_.SQ("ytReelMetapanelViewModelMetapanelItem",(h.ytReelMetapanelViewModelExpansive=function(){return V()},h))},_.e(_.bL,{data:N}))}}))},"Xg");var HxU=_.f(function(k){var E=_.dJ(k,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),S=E.size,R=E.onTap,V=E.disabled,N=E.tooltipText;return _.e("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.e(_.FA,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:S(),disabled:V(),tooltipText:N(),onTap:R}},
iconName:k.iconType}))},"Yg"),KqU=_.f(function(k){function E(T){T.stopPropagation();
T.code==="ArrowUp"?(T.preventDefault(),dC1(J.value)):T.code==="ArrowDown"?(T.preventDefault(),sIi(J.value)):T.code==="KeyM"?b7A():(T.code==="KeyK"||T.code==="Space")&&Z7h(m())}
var S=_.dJ(k,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});k=S.previousButtonDisabled;var R=S.nextButtonDisabled,V=S.data,N=S.playabilityStatus,h=S.previewThumbnail,J=_.VH("ytd-shorts-miniplayer-overlay"),m=_.gb(_.uAl),a;_.vC(function(){(a=_.dT(J.value))&&a.addEventListener("keydown",E)});
_.bI(function(){var T;(T=a)==null||T.removeEventListener("keydown",E)});
S=function(){var T,w,P;return(T=V())==null?void 0:(w=T.reelPlayerOverlayRenderer)==null?void 0:(P=w.likeButton)==null?void 0:P.likeButtonRenderer};
return _.e("ytd-shorts-miniplayer-overlay",{el:J,class:"ytdShortsMiniplayerOverlayHost"},_.e("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.nU({"background-image":function(){var T=h();return T?'url("'+_.Q_(T.thumbnails)+'")':""}})}),_.e("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.e("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.e(HxU,{iconType:function(){var T=m();
return T===2||T===-1||T===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Z7h(m())},
tooltipText:function(){var T=m();return T===1||T===3?_.Vi("PLAYER_LABEL_PAUSE"):_.Vi("PLAYER_LABEL_PLAY")}}),_.e(_.Wqa,{orientation:"horizontal_right"})),_.e("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.e(HxU,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:k,onTap:function(){dC1(J.value)},
tooltipText:_.Vi("PREVIOUS_VIDEO_LABEL")}),_.e(HxU,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:R,onTap:function(){sIi(J.value)},
tooltipText:_.Vi("NEXT_VIDEO_LABEL")}),_.Y("web_shorts_pip_like_button")?_.e("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.e(Put,{buttonTooltipPosition:"left",data:S,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.e("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.e(_.t,{cond:function(){var T,w;return _.W((T=V())==null?void 0:(w=T.reelPlayerOverlayRenderer)==null?void 0:w.metapanel,
_.rrz)},
then:function(T){return _.e("div",{class:_.SQ("ytdShortsMiniplayerOverlayInteractive")},_.e(_.UGt,{data:T}))}})),_.e("div",{class:_.SQ("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var T;return!((T=V())==null||!T.adsOverlay)||N()&&!Hn1(N())}},_.e("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.e(_.YQP,null)))),_.e(_.t,{cond:function(){var T=V(),w,P;
T=_.W(T==null?void 0:(w=T.adsOverlay)==null?void 0:(P=w.fulfillmentContent)==null?void 0:P.fulfilledLayout,P54);return _.W(T==null?void 0:T.renderingContent,otj)},
then:function(T){return _.e("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.e(CFz,{data:T}))}}))},"$g");var lfb=_.f(function(){var k=_.n(_.yg(new _.KO(NaN,NaN),void 0,"hq9Bjf")),E=k.next().value,S=k.next().value;k=_.n(_.yg(!1,void 0,"Mu3aZc"));var R=k.next().value,V=k.next().value,N=_.n(_.yg(!1,void 0,"LGtoFb"));k=N.next().value;var h=N.next().value,J=_.en().resolve(_.yb).miniplayerPropSignalMap[0],m=J.data,a=J.shortsData,T=J.nextButtonDisabled,w=J.shortsPreviewThumbnail,P=J.previousButtonDisabled,B=J.externalPlaylistData;N=J.toastData;var F=J.playabilityStatus,K=J.isDisabled,r=J.playerVe,x=J.closeVe;
J=_.gb(_.sf);_.Rs("yt-pip-window-resized",function(d){S(d)});
_.Rs("yt-activate-pip-miniplayer",function(){return _.c(function(d){h(!0);_.KR(d)})});
var L=function(){var d;return!((d=B())==null||!d.contents)&&R()},q=function(){var d=E(),z=!!m(),kb=L();
d=d.clone();z&&(d.height-=76);kb&&(d.height-=285);return d},M=function(){V(!R())};
_.vX(function(){var d=r(),z=_.Fe(11),kb=_.Wi(11);z&&kb&&d&&(_.rq(z,kb,d),kb=x())&&(_.uD(z,d,[kb]),_.Lz(z,[kb]))},"fHkmfb");
return _.e("ytd-pip-container",{class:"ytdPipContainerHost"},_.e(_.t,{cond:k,then:function(){return _.e(_.Lz2,{isDisabled:K,playabilityStatus:F,size:q})}}),_.e(_.t,{cond:m,
then:function(){return _.e(_.uuG,{data:m,expanded:R,onExpandClick:M,playlistData:B})}}),_.e(_.t,{cond:L,
then:function(){return _.e("div",{class:"ytdPipContainerPlaylistPanel"},_.e(_.TkA,{data:B,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.e(_.t,{cond:J,
then:function(){return _.e(KqU,{data:a,nextButtonDisabled:T,previousButtonDisabled:P,playabilityStatus:F,previewThumbnail:w})}}),_.e("div",{class:"ytdPipContainerToast"},_.e(_.juT,{toastData:N})))},"bh");var n0=function(k,E){var S=this;this.pipController=k;this.JSC$18947_clientRoot=E;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=NCl();this.watchPipEnabled=_.Y("web_watch_pip");this.shortsPipEnabled=_.Y("web_shorts_pip");this.JSC$18947_watchWhileEnabled=_.Y("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;_.Hq(_.vo(),HGl,function(R){S.isSingleOptionSurveyActive=R});
this.JSC$18947_onPlayerPlayVideo=this.JSC$18947_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);_.E2(_.GU.getInstance(),this.miniplayerServiceActionMap,this.JSC$18947_clientRoot);k.pictureInPictureSupported()&&_.f2("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},YG2,fJI,Lqt,vZY,bxT,jPC;
n0.prototype.handleMediaSessionPipActivation=function(){var k=this,E;return _.c(function(S){_.g_().mediaSessionPipActivation=!0;E=_.en().resolve(_.ZD);return E.isOnWatch()&&k.watchPipEnabled?(_.g_().watchPipActivation=!0,_.pVY(k,E.data),S.jumpTo(0)):E.isOnShorts()&&k.shortsPipEnabled?(_.g_().shortsPipActivation=!0,_.A6P(k),S.jumpTo(0)):k.isMiniplayerActive()&&k.watchPipEnabled&&!k.watchWhileMode?S.yield(r6A(k),0):S.jumpTo(0)})};
var r6A=function(k){var E,S,R,V;return _.c(function(N){if(N.nextAddress==1)return E=!k.miniplayerToPipMode,S=k.playerElement,R=k.miniplayerData,V=k.watchResponse,N.yield(k.deactivate(),2);if(N.nextAddress!=3)return E?(_.g_().mediaSessionPipActivation=!0,_.g_().watchPipActivation=!0):_.g_().miniplayerButtonActivation=!0,N.yield(k.activate(S,R,V),3);k.miniplayerToPipMode=E;_.KR(N)})};
n0.prototype.onDownloadedVideoDeleted=function(k){var E,S=_.W((E=this.miniplayerData)==null?void 0:E.watchEndpoint,_.jm),R,V;S&&((R=this.watchResponse)==null?void 0:(V=R.playerResponse)==null?void 0:V.offlineState)!==void 0&&(E=S.videoId)&&k&&E===k&&this.close()};
n0.prototype.onShowMiniplayerCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P;return _.c(function(B){switch(B.nextAddress){case 1:return S=_.W(k,B_C),V=(R=S)==null?void 0:R.miniplayerCommand,N=_.W(V,_.jm),V&&N&&!E.active?B.yield(_.Lw.getInstance(),2):B.return();case 2:return h=B.yieldResult,B.yield((J=h)==null?void 0:J.get("yt-miniplayer-shown-video-id"),3);case 3:m=B.yieldResult;a=N.videoId;if(!a||m===a)return B.return();T=_.en().resolve(_.ZD);if(T.isOnWatch())return _.dg(Error("Qj")),B.return();
w={channelItem:{externalId:btoa(a)}};E.readyToResumeVe=_.kh(121253,void 0,void 0,w);_.g_().showMiniplayerCommandActivation=!0;return B.yield(_.D$Y(E,V,!0),4);case 4:return E.active&&(_.ip(E,{readyToResumeVe:E.readyToResumeVe,isReadyToResume:!0}),E.isReadyToResume=!0),B.yield((P=h)==null?void 0:P.set("yt-miniplayer-shown-video-id",N.videoId),5);case 5:E.readyToResumeVe=void 0,_.KR(B)}})};
n0.prototype.init=function(k){this.miniplayerEl?_.dg(new _.LC("MiniplayerService already initialized.")):this.miniplayerEl=k};
n0.prototype.isInitialized=function(){var k=!!this.miniplayerEl;k||_.dg(new _.LC("MiniplayerService used before initialized."));return k};
_.pVY=function(k,E){if(k.isInitialized()){var S=_.Pt(E.response,!1,E.playerResponse),R=_.en().resolve(_.ZD).getPlayerFromWatch();_.g_().currentEndpoint=S.watchEndpoint||null;k.activate(R,S,E)}};
_.A6P=function(k){if(k.isInitialized()){var E=_.en().resolve(_.ZD).getPlayerFromShorts();k.activate(E)}};
YG2=function(k,E){var S;(S=!k.isInitialized())||(S=_.en().resolve(_.ZD).isOnWatch()&&k.watchPipMode,S=!(k.isMiniplayerActive()&&(_.g_().userActivation||_.g_().lockupActivation||S)));if(S)return!1;uTR(k,E)?_.Va(k):jPC(k,E);return k.watchPipMode?!_.en().resolve(_.ZD).isOnWatch():!0};
n0.prototype.isMiniplayerActive=function(){return this.active};
var uTR=function(k,E){var S;E=(S=_.W(E,_.jm))==null?void 0:S.videoId;var R,V;k=(V=_.W((R=k.miniplayerData)==null?void 0:R.watchEndpoint,_.jm))==null?void 0:V.videoId;return E!=null&&E===k};
n0.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Me(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.qe(this.miniplayerEl,"yt-navigate-home-action"))};
_.D$Y=function(k,E,S,R){S=S===void 0?!1:S;var V,N,h;return _.c(function(J){switch(J.nextAddress){case 1:if(k.active){J.jumpTo(2);break}V=_.en().resolve(_.ZD);if(h=(N=k.playerElement)!=null?N:V.getPlayerFromWatch()){J.jumpTo(3);break}return J.yield(_.en().resolve(_.QQ),4);case 4:h=V.getPlayerFromWatch();case 3:if(!h){_.dg(Error("Sj"));J.jumpTo(2);break}return J.yield(k.activate(h,R),2);case 2:return k.active?J.yield(jPC(k,E,S),0):J.return()}})};
n0.prototype.activate=function(k,E,S){var R=this,V,N,h,J,m,a,T,w,P;return _.c(function(B){switch(B.nextAddress){case 1:if(!R.isInitialized())return B.return();if(!k)return _.dg(Error("Sj")),B.return();if(_.fQ8()||R.isMiniplayerActive())var F=!0;else F=_.g_().watchPipActivation||_.g_().watchWhileActivation,_.en().resolve(_.ZD).isOnWatch()&&!F?(_.dg(new _.LC("miniplayer activated on watch page")),F=!0):F=_.g_().watchWhileActivation?R.userDeactivatedWatchWhile||!!document.pictureInPictureElement||h0e():
!1;if(F)return $tA(),B.return();V=_.g_().mediaSessionPipActivation;N=_.g_().shortsPipActivation;h=_.g_().watchPipActivation;m=(J=_.g_().watchWhileActivation)||h;a=h||N;if(!R.pictureInPictureEnabled()||!a){B.jumpTo(2);break}return B.yield(xGP(R,V),3);case 3:if(!B.yieldResult)return _.dg(Error("Rj")),$tA(),B.return();case 2:return R.setActive(!0),R.watchResponse=S,R.playerElement=k,R.updateMiniplayerData(E),B.yield(Lqt(R,k),4);case 4:if(!R.active)return _.dg(new _.LC("miniplayer deactivated during activation")),
R.removePlayerListeners(),B.return();F=_.en().resolve(_.z7);F.addEventListener("yt-navigate",_.Ic(R,R.onPlaylistNavigate));F.addEventListener("yt-playlist-data-updated",_.Ic(R,R.JSC$18947_onPlaylistDataUpdated));R.JSC$18947_onPlaylistDataUpdated();$tA();R.JSC$18947_watchWhileEnabled&&_.jHR(R,J);R.pictureInPictureEnabled()&&R.shortsPipEnabled&&(R.shortsPipMode=N,_.vo().dispatch(Xmj(R.shortsPipMode)));R.pictureInPictureEnabled()&&R.watchPipEnabled&&(R.watchPipMode=h,_.cMR(R.handleMediaSessionPipActivation));
R.player&&(T=R.player.getPlayerState(),w=T===1,_.vo().dispatch(xWp(T)),_.zR(R.miniplayerEl,"yt-miniplayer-play-state-changed",[w]),_.g_().isVideoPlaying=w);_.zR(R.miniplayerEl,"yt-miniplayer-endpoint-changed");DGT(R);_.$Gx(R);if(R.shortsPipMode||R.watchPipMode)B=B.yield(_.qe(R.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{F=B.yield;var K=_.qe(R.miniplayerEl,"yt-activate-miniplayer",[m])[0];B=F.call(B,K,6)}return B;case 6:if(R.watchResponse){F=R.getScreenLayer();K=_.Fe(0);var r=J$h(0);K&&r&&
(_.or(K,r,F),F===0&&iSh(void 0,0))}fJI(R);vZY(R,!0);(P=R.getPlayerElement())==null||P.focusOnPlayer();_.KR(B)}})};
n0.prototype.updateMiniplayerData=function(k){this.miniplayerData=k;_.ip(this,{data:k})};
_.$Gx=function(k){var E,S,R=((E=k.miniplayerData)==null?void 0:(S=E.miniplayerRenderer)==null?void 0:S.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";E=k.watchWhileMode||k.watchPipMode?R&&!_.en().resolve(_.ZD).isOnWatch():R;_.ip(k,{isDisabled:E});var V,N;S=_.W((V=k.miniplayerData)==null?void 0:(N=V.miniplayerRenderer)==null?void 0:N.minimizedEndpoint,_.Xg);E&&S&&_.en().resolve(_.f6).openSheet({openPopupActionCommand:{openPopupAction:S}},k.miniplayerEl)};
fJI=function(k){if(k.watchResponse&&!bxT(k)){var E,S=(E=k.watchResponse.playerResponse)==null?void 0:E.trackingParams;S&&(_.ip(k,{expandVe:_.kh(35989),closeVe:_.kh(34699),readyToResumeCloseVe:_.kh(131070),repositionVe:_.kh(226204),resizeVe:_.kh(226205)}),_.ip(k,{playerVe:_.tV(S)}))}};
Lqt=function(k,E){return _.c(function(S){if(S.nextAddress==1)return E.preparePlayer(),S.yield(E.getPlayerPromise(),2);k.player=S.yieldResult;k.player&&(k.player.addEventListener("onPlayVideo",k.JSC$18947_onPlayerPlayVideo),k.player.addEventListener("onCloseMiniplayer",k.onPlayerCloseMiniplayer),k.player.addEventListener("onExpandMiniplayer",k.onPlayerExpandMiniplayer),k.player.addEventListener("onStateChange",k.onPlayerStateChange));_.KR(S)})};
_.I=n0.prototype;_.I.JSC$18947_onPlayerPlayVideo=function(k){var E=k.sessionData&&"autonav"in k.sessionData,S;k.sessionData&&k.sessionData.itct&&(S=k.sessionData.itct);var R=k.watchEndpoint;E=R&&E?_.sDh(R,S):_.sv(k.videoId,k.listId||void 0,S);k.sessionData&&_.vi(_.W(E.commandMetadata,_.Sd).url,k.sessionData);jPC(this,E)};
_.I.onPlayerExpandMiniplayer=function(){_.Va(this)};
_.I.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.I.onPlayerStateChange=function(){if(this.player){var k=this.player.getPlayerState(),E=k===1;_.vo().dispatch(xWp(k));_.vo().dispatch(_.DWY(k));_.zR(this.miniplayerEl,"yt-miniplayer-play-state-changed",[E]);_.g_().isVideoPlaying=E;if(k===0){E=!_.nw.getInstance().isAutoplaySetExplicitly();var S,R,V,N,h,J,m=(S=this.watchResponse.response)==null?void 0:(R=S.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(N=V.autoplay)==null?void 0:(h=N.autoplay)==null?void 0:(J=h.autoplayExplicitChoiceDialogRenderer)==
null?void 0:J.confirmDialogRenderer;E&&m&&this.player.setAutonavState(1)}k===0&&this.watchWhileMode&&this.deactivate()}};
_.I.onPlaylistNavigate=function(k,E){var S=this,R,V,N,h,J,m,a;return _.c(function(T){if(T.nextAddress==1){if(!_.W(E.endpoint,_.jm))return T.return();_.g_().currentEndpoint=E.endpoint;_.zR(S.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.en().resolve(_.ZD).isOnWatch()&&(S.watchWhileMode||S.watchPipMode))return T.return();k.stopPropagation();(N=(V=_.W((R=E.endpoint)==null?void 0:R.commandMetadata,_.Sd))==null?void 0:V.url)&&E.tempData&&!_.fO.isEmpty(E.tempData)&&_.vi(N,E.tempData);h={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};J=new DDz(function(){return S.getPlayerElement()},h,{layer:S.getScreenLayer()});
m=function(w){J.processChunk({endpoint:E.endpoint,data:w})};
ZxP(S);S.miniplayerFetchRequest=dGP(S,E.endpoint,m);_.F5(T,2);return T.yield(S.miniplayerFetchRequest,4)}if(T.nextAddress!=2)return a=T.yieldResult,sH3(S,a),_.Sv(T,0);_.UY(T);_.KR(T)})};
_.I.JSC$18947_onPlaylistDataUpdated=function(){var k=_.en().resolve(_.z7).getPlaylistData();this.hasPlaylistData=!!k;_.ip(this,{externalPlaylistData:k||{}})};
_.I.close=function(k){if(this.isInitialized())if(k){if(!((this.watchWhileMode||this.watchPipMode)&&_.en().resolve(_.ZD).isOnWatch()||this.shortsPipMode)){var E;(E=this.getPlayerElement())==null||E.stop()}this.deactivate()}else _.kN().closeMiniplayer(this.miniplayerEl)};
_.I.deactivate=function(k){var E=this,S,R,V,N;return _.c(function(h){if(h.nextAddress==1){if(!E.isInitialized()||!E.active)return h.return();E.setActive(!1);ZxP(E);(S=!!k&&uTR(E,k))&&E.isSingleOptionSurveyActive&&_.qe(E.miniplayerEl,"yt-show-watch-page-survey",[E.isSingleOptionSurveyActive]);return h.yield(lJW(E),2)}if(h.nextAddress!=3){vZY(E,!1);E.isReadyToResume=!1;E.watchResponse=void 0;E.updateMiniplayerData(void 0);E.shortsPipMode&&(E.shortsPipMode=!1,_.vo().dispatch(Xmj(E.shortsPipMode)),V$P(E.pipController),
(R=E.player)==null||R.setInternalSize(NaN,NaN));E.watchPipMode&&(E.watchPipMode=!1,V$P(E.pipController));(V=E.watchWhileMode)&&_.jHR(E,!1);E.removePlayerListeners();var J=_.en().resolve(_.z7);J.removeEventListener("yt-navigate",_.Ic(E,E.onPlaylistNavigate));J.removeEventListener("yt-playlist-data-updated",_.Ic(E,E.JSC$18947_onPlaylistDataUpdated));_.g_().currentEndpoint=null;_.zR(E.miniplayerEl,"yt-miniplayer-endpoint-changed");E.playerElement=null;$tA();if(E.shortsPipMode||E.watchPipMode)h=h.jumpTo(3);
else{J=h.yield;var m=_.qe(E.miniplayerEl,"yt-deactivate-miniplayer",[S,V])[0];h=J.call(h,m,3)}return h}(N=E.player)==null||N.setInternalSize(NaN,NaN);E.player=null;_.KR(h)})};
var lJW=function(k){var E;return _.c(function(S){E=_.en().resolve(_.ZD);return k.shortsPipMode?S.yield(E.movePlayerToShorts(k.playerElement),0):S.yield(E.movePlayerToWatch(k.playerElement),0)})};
n0.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18947_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
n0.prototype.setActive=function(k){this.active=k;this.isSingleOptionSurveyActive?_.qe(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.qe(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.vo().dispatch(_.zX({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.jHR=function(k,E){k.watchWhileMode=E;_.ip(k,{watchWhile:E})};
vZY=function(k,E){if(!bxT(k))if(k.shortsPipMode||k.watchPipMode){var S;(S=k.player)==null||S.setDocumentPictureInPicture(E)}else{var R;(R=k.player)==null||R.setMinimized(E)}};
bxT=function(k){return k.watchWhileMode&&_.Y("kevlar_watch_while_counterfactual")};
_.Va=function(k){var E;return _.c(function(S){switch(S.nextAddress){case 1:if(!k.isInitialized())return S.return();_.F5(S,2);return S.yield(k.miniplayerFetchRequest,4);case 4:_.Sv(S,3);break;case 2:_.UY(S);case 3:k.watchResponse&&k.miniplayerData&&k.miniplayerData.watchEndpoint?(E={url:k.watchResponse.url,endpoint:k.miniplayerData.watchEndpoint,data:k.watchResponse,miniplayer:!0},_.Me(k.miniplayerEl,"yt-navigate-cache",E)):k.miniplayerData&&k.miniplayerData.watchEndpoint&&_.Me(k.miniplayerEl,"yt-navigate",
{endpoint:k.miniplayerData.watchEndpoint}),_.KR(S)}})};
jPC=function(k,E,S){var R,V,N,h;return _.c(function(J){if(J.nextAddress==1){if(uTR(k,E))return J.return();_.g_().currentEndpoint=E;_.zR(k.miniplayerEl,"yt-miniplayer-endpoint-changed");_.zR(k.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.g_().isVideoPlaying=!1;R={clientParams:{miniplayer:!0,autoSaveToQueue:!S}};V=new DDz(function(){return k.getPlayerElement()},R,{layer:k.getScreenLayer(),
parentLayer:0},void 0,k.readyToResumeVe);N=function(m){var a,T,w=Object.assign({},(a=m.playerResponse)==null?void 0:(T=a.playerConfig)==null?void 0:T.playbackStartConfig,{startPaused:!0}),P;S&&((P=m.playerResponse)==null?0:P.playerConfig)&&(m.playerResponse.playerConfig.playbackStartConfig=w);V.processChunk({endpoint:E,data:m})};
ZxP(k);k.miniplayerFetchRequest=dGP(k,E,N);_.F5(J,2);return J.yield(k.miniplayerFetchRequest,4)}if(J.nextAddress!=2)return h=J.yieldResult,sH3(k,h),_.Sv(J,0);_.UY(J);_.KR(J)})};
n0.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var ZxP=function(k){k.miniplayerFetchRequest&&(k.miniplayerFetchRequest.cancel&&k.miniplayerFetchRequest.cancel("Active request obsolete"),k.miniplayerFetchRequest=null)},dGP=function(k,E,S){var R=_.As.instance,V,N=(V=_.W(E.commandMetadata,_.Sd))==null?void 0:V.url,h;
V=!N||_.Y("disable_miniplayer_tempdata")?{}:(h=Qoi(N))!=null?h:{};return gy(R,E,V,window.location.href,"watch",function(J,m){S(m)},function(J){return J!==k.miniplayerFetchRequest})},sH3=function(k,E){var S;
_.c(function(R){if(!E)return R.return();k.watchResponse=E;fJI(k);DGT(k);S=_.Pt(E.response,!1,E.playerResponse);if(k.isMiniplayerActive()){E.response&&(k.playerElement.watchNextData=E.response);var V=_.fO.getValueByKeys.apply(_.fO,[E].concat(_.$e(qOp)));_.fO.getValueByKeys.apply(_.fO,[E].concat(_.$e(Cyz)))&&V&&_.en().resolve(_.z7).setAutoplayRenderer(V);if(V)if(_.Y("kevlar_is_pupi_enabled")){var N,h,J,m,a,T=((N=E.response)==null?0:(h=N.playerOverlays)==null?0:(J=h.playerOverlayRenderer)==null?0:(m=
J.autonavToggle)==null?0:(a=m.autoplaySwitchButtonRenderer)==null?0:a.enabled)?2:1;_.nw.getInstance().setState(T,!1,!1)}else N=hK1()?2:1,(T=k.player)==null||T.setAutonavState(N);k.updateMiniplayerData(S);_.$Gx(k)}_.KR(R)})},DGT=function(k){var E,S,R=(E=k.watchResponse)==null?void 0:(S=E.playerResponse)==null?void 0:S.playabilityStatus,V;
E=R==null?void 0:(V=R.miniplayer)==null?void 0:V.miniplayerRenderer;(E==null?void 0:E.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&E.minimizedEndpoint&&_.Qw(k.miniplayerEl,[E.minimizedEndpoint]);_.ip(k,{playabilityStatus:R})};
n0.prototype.openToast=function(k,E){_.ip(this,{toastData:{data:k,label:E}})};
_.ip=function(k,E){(0,k.miniplayerPropSignalMap[1])(E)};
n0.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var k;return this.playerElement?this.playerElement:(k=_.Cc(this.miniplayerEl).querySelector("#player-container"))==null?void 0:k.firstElementChild};
n0.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var xGP=function(k,E){E=E===void 0?!1:E;var S,R,V,N,h,J,m;return _.c(function(a){if(a.nextAddress==1){S=navigator.userActivation.isActive||E;if(!S||!k.pictureInPictureSupported())return a.return(!1);R=MvT(k);V=R.width;N=R.height;return a.yield(k.pipController.openWindow({width:V,height:N}),2)}h=a.yieldResult;J=k.pipController.getWindow();if(!J||!h)return a.return(!1);J.document.body.style.overflow="hidden";m=MRl(J);NtY(k.pipController,function(){qQP(k);m()});
return a.return(!0)})},MvT=function(k){var E=_.g_().shortsPipActivation,S,R;
k=E?.5625:(R=(S=k.player)==null?void 0:S.getVideoAspectRatio())!=null?R:16/9;S=Math.min(window.innerWidth,window.innerHeight)/2;E=E?0:76;return k>1?new _.KO(S,E+S/k):new _.KO(S*k,E+S)},qQP=function(k){var E;
_.c(function(S){E=_.en().resolve(_.ZD);return E.isOnWatch()&&k.watchPipMode||E.isOnShorts()&&k.shortsPipMode?S.yield(k.deactivate(),0):k.miniplayerToPipMode?S.yield(r6A(k),0):k.watchPipMode?S.yield(_.Va(k),0):S.jumpTo(0)})};
n0.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.mt.Object.defineProperties(n0.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
n0[au]=[IKW,tZA];var zdI="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(" "),
QH3="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(" "),OxG="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
GpG="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");_.CX3=_.f(function(k){return _.e("yt-channel-attribution-view-model",{class:_.SQ("ytChannelAttributionViewModelHost",k.className)},_.e("div",{class:"ytChannelAttributionViewModelUpper"},_.e(_.cp,{data:function(){return k.data().avatar}},{decoratedAvatarViewModel:_.sV}),_.e("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.e(_.VB,{text:function(){return k.data().title}}))),_.e("div",{class:"ytChannelAttributionViewModelBottom"},_.e(_.VB,{text:function(){return k.data().subtitle}})))},"dh");var kUR=_.f(function(k){var E=_.n(_.yg(!1,void 0,"MFRKRb")),S=E.next().value,R=E.next().value,V=function(){return k.data().activeRenderer},N=function(){return k.data().inactiveRenderer};
return _.e("yt-channel-disclosure-view-model",{"on:mouseleave":_.RZ(function(){R(!1)}),
"on:mouseover":_.RZ(function(){R(!0)}),
class:_.SQ("ytChannelDisclosureViewModelHost",k.className)},_.e(_.t,{cond:function(){return S()},
then:function(){return _.e(_.cp,{data:V},{channelAttributionViewModel:_.CX3})},
else:function(){return _.e(_.cp,{data:N},{decoratedAvatarViewModel:_.sV})}}))},"eh");var EfA=null;var ScP={},RxP=(ScP.initialized={priority:10,callback:function(k){var E=_.en();E.addProvider({provide:IJT,useClass:nkU});E.addProvider({provide:_.I_A,useFactory:function(){return new nZ8}});
E.addProvider({provide:q9,useValue:_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});E.addProvider({provide:koU,useValue:5184E6});E.addProvider({provide:yx3,useValue:_.eH()});E.addProvider({provide:APW,useClass:PBd});E.addProvider({provide:S4,useClass:S4});E.addProvider({provide:_.QQ,useFactory:function(){return g9C.promise}});
E.addProvider({provide:_.Hbd,useFactory:function(){return _.UW8.promise}});
E.addProvider({provide:jze,useValue:function(){var m;return((m=_.s3())==null?void 0:m.getPlayer())||null}});
var S={};E.addProvider((S.provide=_.XM,S.useFactory=function(m,a){return function(){return QwA(m,a)}},S[au]=[q9,
koU],S));S={};E.addProvider((S.provide=_.Fk,S.useClass=zhR,S[au]=[q9,koU],S));S={};E.addProvider((S.provide=_.hTI,S.useClass=Chx,S[au]=[_.Fk],S));E.addProvider({provide:$U,useFactory:_.vo});E.addProvider({provide:ZI,useFactory:_.vo});E.addProvider({provide:v4a,useFactory:_.vo});E.addProvider({provide:Ibj,useFactory:_.vo});E.addProvider({provide:_.q5,useFactory:_.vo});E.addProvider({provide:og,useValue:_.VV});E.addProvider({provide:kaR,useClass:qp1});E.addProvider({provide:YYU,useClass:BPT});E.addProvider({provide:cO,
useClass:cO});E.addProvider({provide:XQ,useClass:XQ});E.addProvider({provide:gj,useClass:gj});E.addProvider({provide:HI,useClass:HI});E.addProvider({provide:PO,useClass:PO});E.addProvider({provide:Mr,useClass:Mr});E.addProvider({provide:fJ,useClass:fJ});E.addProvider({provide:_.DjW,useValue:FzU});E.addProvider({provide:_.fG,useFactory:_.JV});E.addProvider({provide:Kd,useFactory:_.nz});S={};E.addProvider((S.provide=l1b,S.useFactory=function(m){return function(a){var T=T===void 0?{}:T;var w,P,B=(P=
_.W((w=a.endpoint)==null?void 0:w.commandMetadata,_.Sd))==null?void 0:P.rootVe;if(B){var F,K;if(w=a.previousCsn||((K=_.W((F=a.endpoint)==null?void 0:F.commandMetadata,GiA))==null?void 0:K.parentCsn)){var r=r===void 0?{}:r;if(w!==_.Fe(r.layer)||B!==J$h(r.layer))t8m(w,r.cttAuthInfo,r.layer||0),iSh(w,r.layer||0),F=r.layer||0,_.l$(hmI(F===void 0?0:F),B);T.parentCsn=w}a.endpoint&&w?YsA(m,a.endpoint,T):_.Pq(m,B,void 0,T);var x;((x=a.response)==null?0:x.trackingParams)&&m.graftServerVe(a.response.trackingParams);
var L;((L=a.playerResponse)==null?0:L.trackingParams)&&m.graftServerVe(a.playerResponse.trackingParams);var q;((q=a.reelWatchSequenceResponse)==null?0:q.trackingParams)&&m.graftServerVe(a.reelWatchSequenceResponse.trackingParams)}}},S[au]=[_.fG],S));
S={};E.addProvider((S.provide=ZuP,S.useClass=buP,S[au]=[og,_.q5],S));S={};E.addProvider((S.provide=jC,S.useClass=jC,S[au]=[_.QQ,_.q5],S));S={};E.addProvider((S.provide=rp,S.useClass=rp,S[au]=[ZI,_.t3],S));E.addProvider({provide:_.OuU,useClass:ioY});S={};E.addProvider((S.provide=_.$g,S.useClass=kLt,S[au]=[_.OuU,_.mz(_.b6)],S));E.addProvider({provide:_.nJ,useClass:Yot});S={};E.addProvider((S.provide=iB,S.useClass=iB,S[au]=[_.nJ,_.QQ,_.oR],S));E.addProvider({provide:_.f6,useClass:fH});E.addProvider({provide:_.t1I,
useClass:bo3});E.addProvider({provide:_.v3,useClass:DS});_.Y("enable_ai_companion")&&(E.addProvider({provide:_.b6,useClass:Rw2}),E.addProvider({provide:_.eEp,useClass:AiY}),E.addProvider({provide:_.QXT,useClass:z2Y}),E.addProvider({provide:u0,useClass:u0}),E.addProvider({provide:a$p,useValue:kUR}));S={};E.addProvider((S.provide=_.XL,S.useClass=nOY,S[au]=[_.XL],S));E.addProvider({provide:_.Wj,useClass:e5t});E.addProvider({provide:di,useClass:di});E.addProvider({provide:e3,useClass:e3});E.addProvider({provide:Q0,
useClass:Q0});S={};E.addProvider((S.provide=K$,S.useClass=K$,S[au]=[_.t3,_.oR],S));E.addProvider({provide:Ij,useClass:$V});S={};E.addProvider((S.provide=hT,S.useClass=hT,S[au]=[_.f6,Ij],S));S={};E.addProvider((S.provide=Rj,S.useClass=Rj,S[au]=[_.f6],S));_.Y("web_enable_feedback_endpoint_resolver")&&(S={},E.addProvider((S.provide=f$,S.useClass=f$,S[au]=[$U,D6],S)),E.addProvider({provide:D6,useClass:MO2}));_.Y("web_enable_feedback_endpoint_resolver_batch_2")&&(S={},E.addProvider((S.provide=b0,S.useClass=
b0,S[au]=[$U],S)),S={},E.addProvider((S.provide=vA,S.useClass=vA,S[au]=[D6],S)));S={};E.addProvider((S.provide=nd,S.useClass=nd,S[au]=[_.v3,Ij],S));S={};E.addProvider((S.provide=kd,S.useClass=kd,S[au]=[_.v3],S));S={};E.addProvider((S.provide=io,S.useClass=io,S[au]=[_.oR,_.$g],S));S={};E.addProvider((S.provide=NE,S.useClass=NE,S[au]=[_.oR,_.fG],S));E.addProvider({provide:Ld,useClass:Ld});S={};E.addProvider((S.provide=HG,S.useClass=HG,S[au]=[$U],S));E.addProvider({provide:OM,useClass:OM});E.addProvider({provide:Ql,
useClass:Ql});S={};E.addProvider((S.provide=Cd,S.useClass=Cd,S[au]=[$U],S));S={};E.addProvider((S.provide=kK,S.useClass=kK,S[au]=[_.oR,$U],S));S={};E.addProvider((S.provide=EZ,S.useClass=EZ,S[au]=[$U],S));S={};E.addProvider((S.provide=St,S.useClass=St,S[au]=[$U],S));S={};E.addProvider((S.provide=S3,S.useClass=S3,S[au]=[_.$g],S));S={};E.addProvider((S.provide=vG,S.useClass=vG,S[au]=[_.fG],S));S={};E.addProvider((S.provide=qE,S.useClass=qE,S[au]=[uo],S));S={};E.addProvider((S.provide=zv,S.useClass=
zv,S[au]=[uo],S));E.addProvider({provide:sM,useClass:sM});E.addProvider({provide:lo,useClass:lo});E.addProvider({provide:fd,useClass:fd});S={};E.addProvider((S.provide=JT,S.useClass=JT,S[au]=[_.$g,_.t3],S));E.addProvider({provide:M9,useClass:M9});S={};E.addProvider((S.provide=Vl,S.useClass=Vl,S[au]=[_.oR,_.$g],S));E.addProvider({provide:O1,useClass:O1});S={};E.addProvider((S.provide=go,S.useClass=go,S[au]=[$U,_.oR,_.XL],S));S={};E.addProvider((S.provide=yl,S.useClass=yl,S[au]=[_.oR,_.t3],S));E.addProvider({provide:iDd,
useValue:iBI});E.addProvider({provide:tPT,useValue:Sli});E.addProvider({provide:oj,useClass:oj});S={};E.addProvider((S.provide=FL,S.useClass=FL,S[au]=[$U],S));S={};E.addProvider((S.provide=UM,S.useClass=UM,S[au]=[_.Wj,_.t3],S));S={};E.addProvider((S.provide=Z6,S.useClass=Z6,S[au]=[_.t3],S));E.addProvider({provide:jg,useFactory:function(){return new jg(_.vo())}});
E.addProvider({provide:eTm,useFactory:_.wV.getInstance});S={};E.addProvider((S.provide=zH,S.useClass=zH,S[au]=[q9,eTm,_.t3],S));E.addProvider({provide:s1,useClass:s1});E.addProvider({provide:p$,useClass:p$});E.addProvider({provide:ri,useClass:ri});E.addProvider({provide:_.Ac,useClass:_.Ac});E.addProvider({provide:Nr,useClass:Nr});S={};E.addProvider((S.provide=PG,S.useClass=PG,S[au]=[ZI],S));S={};E.addProvider((S.provide=mX,S.useClass=mX,S[au]=[_.t3],S));S={};E.addProvider((S.provide=BG,S.useClass=
BG,S[au]=[_.t3],S));S={};E.addProvider((S.provide=Yd,S.useClass=Yd,S[au]=[_.t3],S));_.Y("web_enable_prefetching_videos_on_home")&&(E.addProvider({provide:AA,useClass:AA}),E.addProvider({provide:GK,useClass:GK}));S={};E.addProvider((S.provide=VZ,S.useClass=VZ,S[au]=[_.t3],S));E.addProvider({provide:xU,useClass:xU});S={};E.addProvider((S.provide=j3,S.useClass=j3,S[au]=[_.oR,_.t3],S));S={};E.addProvider((S.provide=L$,S.useClass=L$,S[au]=[_.t3],S));S={};E.addProvider((S.provide=CH,S.useClass=CH,S[au]=
[_.oR,_.t3],S));E.addProvider({provide:Or,useClass:Or});E.addProvider({provide:tT,useClass:tT});S={};E.addProvider((S.provide=aj,S.useClass=aj,S[au]=[ZI,_.t3],S));E.addProvider({provide:Tv,useClass:Tv});S={};E.addProvider((S.provide=JK,S.useClass=JK,S[au]=[ZI,_.t3,_.oR],S));S={};E.addProvider((S.provide=cr,S.useClass=cr,S[au]=[_.t3],S));S={};E.addProvider((S.provide=hK,S.useClass=hK,S[au]=[_.t3,_.oR],S));S={};E.addProvider((S.provide=WG,S.useClass=WG,S[au]=[_.QQ],S));S={};E.addProvider((S.provide=
wo,S.useClass=wo,S[au]=[_.QQ],S));E.addProvider({provide:ro,useClass:ro});E.addProvider({provide:xd,useClass:xd});E.addProvider({provide:Gv,useClass:Gv});E.addProvider({provide:DM,useClass:DM});E.addProvider({provide:AT,useClass:AT});E.addProvider({provide:GH,useClass:GH});E.addProvider({provide:pd,useClass:pd});_.Y("kevlar_enable_mss_lazy_load")&&E.addProvider({provide:_.Xr,useClass:bV2});E.addProvider({provide:_.KM,useClass:b8});E.addProvider({provide:Iq,useFactory:function(){return _.GU.getInstance()}});
E.addProvider({provide:$TG,useFactory:inj});E.addProvider({provide:uo,useFactory:function(){return _.Lw.getInstance()}});
E.addProvider({provide:wmY,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});S={};E.addProvider((S.provide=_.u8,S.useClass=_.u8,S[au]=[_.QQ,_.t3,_.fG,$TG,uo,Iq,wmY,og],S));E.addProvider({provide:_.Uz,useClass:krz});E.addProvider({provide:_.SoT,useClass:EyW});S={};E.addProvider((S.provide=C$,S.useClass=C$,S[au]=[_.SoT],S));S={};E.addProvider((S.provide=_.xV,S.useFactory=function(m){return m.upliftCompletionResolver.promise},S[au]=[ZuP],S));
S=_.qg("IS_SHELL_LOAD")?"aa":"eocs";var R=_.qg("IS_SHELL_LOAD")?3:2;_.O7().parkOrScheduleJob(function(){sXA()},R,S);
_.O7().parkOrScheduleJob(function(){_.en().resolve(jC).start()},2,"eocs");
_.O7().parkOrScheduleJob(function(){f7a()},2,"eocs");
_.O7().parkOrScheduleJob(function(){_.en().resolve(rp).start()},2,"eocs");
_.Y("kevlar_debug_data_app_registration_ks")||e9l();E.addProvider({provide:_.eQ,useValue:new F$a(k.root)});E.addProvider({provide:QF,useValue:new mBI});E.addProvider({provide:_.pUP,useValue:new Hg0(k.root)});E.addProvider({provide:_.yS,useValue:new K$P});E.addProvider({provide:_.uO,useClass:AU});E.addProvider({provide:IKW,useClass:vO});_.Y("kevlar_network_sli_killswitch")||E.addProvider({provide:a_P,useValue:Nid});E.addProvider({provide:EkP,useFactory:nw1});_.Y("web_bind_fetch")&&(S={},E.addProvider((S.provide=
S4t,S.useFactory=i8h,S[au]=[_.mz(EkP)],S)));_.Y("web_bind_window_request")&&(S={},E.addProvider((S.provide=VwY,S.useFactory=haj,S[au]=[_.mz(EkP)],S)));_.Y("web_bind_text_decoder")&&(S={},E.addProvider((S.provide=N0T,S.useFactory=J8t,S[au]=[_.mz(EkP)],S)));S={};E.addProvider((S.provide=UjA,S.useFactory=Z8R,S[au]=[_.xV,$U,_.XM],S));S={};E.addProvider((S.provide=gyx,S.useClass=ml,S[au]=[UjA],S));E.addProvider({provide:ZOx,useClass:$j0});E.addProvider({provide:F72,useClass:oy3});S=[].concat(_.$e(DD));
_.Y("web_continuation_response_processing")&&S.push(_.H9);S.push(AZz);_.Y("enable_share_panel_navigation_logging_fix_on_web")&&S.push(_.MMY);E.addProvider({provide:AWm,useValue:S});E.addProvider({provide:TaC,useClass:W7I});E.addProvider({provide:B0P,useClass:twY});S={};E.addProvider((S.provide=mse,S.useClass=bg2,S[au]=[ZI],S));_.ZJ.addLowPriorityJob(function(){KU1()});
S={};E.addProvider((S.provide=hoY,S.useFactory=function(m){return function(a){var T,w=(T=_.W(a.commandMetadata,_.Sd))==null?void 0:T.url;if(!w)throw new _.LC("No URL for PBJ Command",a);w=srb(w,{pbj:"1"});T=cX1(w,{})||{};T=Object.assign({},T,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Mg("STS").toString()});a=_.Ug({command:JSON.stringify(a),session_token:_.Mg("XSRF_TOKEN")});return m.fetch(w,{method:"POST",headers:T,body:a})}},S[au]=[B0P],S));
E.addProvider({provide:cja,useFactory:function(){var m={};return m.CSI=m$I(),m.ECATCHER=c8I(),m}});
E.addProvider({provide:NaI,useClass:mg3});S=[];S.push(E.resolve(F72));R={};R=(R.client_location=_.wV.getInstance(),R.consistency=_.W1h(),R.entities=E.resolve(YYU),R.response_received_commands=E.resolve(TaC),R.store=E.resolve(_.hTI),R.tokens=E.resolve(F72),R.service_params=E.resolve(NaI),R);if(_.Y("web_shorts_prefetch_service_enabled")){var V=new kx3(E.resolve(_.Fk));R.shorts_prefetch=V}R.adblock_detection=E.resolve(mse);E.addProvider({provide:_.Ec,useClass:_.Ec});V=E.resolve(_.DjW);var N=[];_.Y("PremiumClientSharedConfig__enable_att_context_processor")&&
(E.addProvider({provide:VOU,useClass:EeR}),N.push(E.resolve(VOU)));if(_.Y("owl_pl_await")){var h={};E.addProvider((h.provide=qmP,h.useFactory=function(m){return new lKU(m)},h[au]=[_.Ec],h));
N.push(E.resolve(qmP))}P85(V,E.resolve(B0P),E.resolve(kaR),R,E.resolve(_.Fk),S,N,E.resolve(gyx),E.resolve(ZOx));E.addProvider({provide:_.oR,useValue:_.rb.instance});_.Y("start_client_gcf")&&E.addProvider({provide:xf,useValue:j_T()});E.addProvider({provide:MoY,useFactory:function(){return new MoY(_.en().resolve(_.Ec),_.Lw.getInstance())}});
_.O7().parkOrScheduleJob(function(){qaI()},1,"eocs");
S={};E.addProvider((S.provide=LH,S.useClass=LH,S[au]=[_.XM,_.oR],S));E.addProvider({provide:_.aKI,useFactory:_.QJ.getInstance});_.O7().parkOrScheduleJob(function(){_.en().resolve(LH).refresh()},0,"eocs");
Jqz(FzU.watchEndpointMap||{},V.reelWatchEndpointMap||{},k.injector.resolve(_.oR));E.addProvider({provide:J9,useValue:_.As.instance});_.Y("kevlar_signal_collection_killswitch")||(S={},E.addProvider((S.provide=pyP,S.useClass=pyP,S[au]=[q9,Kd],S)),_.O7().parkOrScheduleJob(function(){_.en().resolve(pyP).record()},1,"eocs"));
_.Y("web_debug_handler_registration_killswitch")||_.O7().parkOrScheduleJob(function(){cdC("DOWNLOAD_PES",nY1);_.Y("offline_client_state_export_ks")||cdC("OFFLINE_CLIENT_STATE",VBt)},0,"eocs");
_.Y("kevlar_prevent_polymer_dynamic_font_load")&&_.O7().parkOrScheduleJob(function(){var m=[_.BH(HVa),_.BH(KNP)];m=_.n(m);for(var a=m.next();!a.done;a=m.next()){a=a.value;var T=document.createElement("link");_.JE(T,a,"stylesheet");document.head.appendChild(T)}},1,"eocs");
S=k.injector.resolve(_.oR);_.R5P.instance=new _.R5P(S);be1(zsx(new SYA(S)));S={};k.injector.addProvider((S.provide=mF,S.useFactory=function(m){(m=m==null?void 0:m.getCurrentPage())?m=m.visibilityObserver:(EfA||(EfA=UZ1()),m=EfA);return m},S[au]=[_.mz(_.ZD)],S.skipCache=!0,S));
E.addProvider({provide:_.yb,useClass:n0});E.addProvider({provide:p6,useClass:nSY});k.injector.addProvider({provide:Vtp,useValue:W$P});E.addProvider({provide:MV8,useValue:VAI});_.Y("web_cow_button_renderer_wiz_token")&&E.addProvider({provide:l32,useValue:vJt});E.addProvider({provide:Cnp,useValue:CFe});E.addProvider({provide:_.jF,useValue:tA1});k=E.addProvider;wXY||(wXY=new TtR);k.call(E,{provide:_.ZS,useValue:wXY});E.addProvider({provide:_.$X,useValue:_.Mg("HTML_DIR")==="rtl"?"rtl":"ltr"});E.addProvider({provide:AE2,
useClass:ZRa});E.addProvider({provide:_.Rv,useClass:dp});_.en().addProvider({provide:u5P,useValue:_.Y("enable_web_delhi_icons")?QH3.concat(GpG):zdI.concat(OxG)});E.addProvider({provide:_.l8,useClass:_.l8});E.addProvider({provide:_.XCT,useValue:new okW});E.addProvider({provide:Paa,useClass:wdx});E.addProvider({provide:$d,useClass:$d});E.addProvider({provide:bo,useClass:bo});k={};E.addProvider((k.provide=cG,k.useClass=cG,k[au]=[_.oR,_.$g],k));E.addProvider({provide:Im,useClass:Im});E.addProvider({provide:D20,
useClass:JNa});E.addProvider({provide:ME,useClass:ME});E.addProvider({provide:Onj,useValue:L94});E.addProvider({provide:_.N9,useClass:PtT});_.Y("enable_payments_purchase_manager")&&E.addProvider({provide:iR0,useClass:NPW});E.addProvider({provide:leT,useFactory:function(){return function(m){return _.UgW(m)}}});
E.addProvider({provide:_.wHt,useClass:PhP});k={};E.addProvider((k.provide=Rm,k.useClass=Rm,k[au]=[_.wHt],k));E.addProvider({provide:ZM,useClass:ZM});E.addProvider({provide:AhP,useValue:hsA});E.addProvider({provide:o55,useValue:_.oOa});E.addProvider({provide:XKb,useClass:hwA});E.addProvider({provide:PIt,useValue:HCW});k={};E.addProvider((k.provide=Bt2,k.useClass=Ymt,k[au]=[PIt],k));k={};E.addProvider((k.provide=_.Au,k.useClass=p_U,k[au]=[Bt2],k));k={};E.addProvider((k.provide=_.qf,k.useClass=Mf,k[au]=
[_.q5,_.uO],k));if(_.Y("web_explore_hub_on_hover")||_.Y("web_client_explore_hub_on_hover"))k={},E.addProvider((k.provide=l0,k.useClass=l0,k[au]=[_.oR,Iq],k));if(_.Y("web_enable_renderer_logger")){var J=new sEe;Eje(function(){J.abort()});
E.addProvider({provide:reI,useValue:new rP3(J.signal)})}E.addProvider({provide:IHC,useValue:Lgj});E.addProvider({provide:T5t,useClass:E4G});_.Y("web_use_flow_state_manager")&&(E.addProvider({provide:_.oi,useClass:Wo3}),k={},E.addProvider((k.provide=X0,k.useClass=X0,k[au]=[_.oi,_.t3],k)))}},ScP);var VlI={},NgA=(VlI.initialized={priority:10,callback:function(){if(!euW){BXl();a1h("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.yf(_.I_(a1h,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.Y("log_heartbeat_with_lifecycles")){var k={};c3.instance||(c3.instance=new c3);c3.instance.install((k.document_visible={callback:tch,priority:10},k.document_hidden={callback:tch,priority:10},k))}else _.hD(document,"visibilitychange",tch);euW=!0}(k=_.Fe())&&k!=="UNDEFINED_CSN"&&ITl(k)}},VlI);var IdW={},nfa=(IdW.initialized={callback:function(k){var E=_.kh(232091),S=k.injector.resolve(_.fG);_.Bq(S,E);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?qwl()&&_.Wq(S,E):(k=k.injector.resolve(leT)("refresh_detector"))&&(k.get("first_tab_load")?_.Wq(S,E):k.set("first_tab_load","1"))}},IdW);var i23={},hxA=(i23.initialized={priority:10,callback:SLt},i23);var JDI={},cDA=(JDI.initialized={priority:0,callback:function(){var k=new jud,E="other";_.Cm?E="chrome":_.Ge?E="firefox":_.zV?E="safari":iX&&(E="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(S){k.increment(_.rO(),S,E)}).catch(function(){k.increment(_.rO(),!1,E)}):k.increment(_.rO(),!1,E)}},JDI);var mdA={},exa=(mdA.rendering={priority:8,callback:RTm},mdA);var adx={},tlx=(adx.rendering={priority:10,callback:PUh},adx.rendered={callback:whh},adx),TgR={},wv3=(TgR.rendering={callback:PUh},TgR.rendered={callback:whh},TgR);var PMP=!1,BgU={},Ycx=(BgU.initialized={priority:10,callback:function(){PMP||(sdh({didPatch:function(k){k.el&&gwh(k.el,k.props)},
didUnmount:function(k){owt(k.el)}}),PMP=!0)}},BgU);var WE2=/^\/shorts\/?$/;_.l$("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:{}}}}}}});_.Y("kevlar_enable_mss")&&(_.Qut(new gl8),NE1());
(function(){var k=document.querySelector("ytd-app");if(!k)throw Error("Tj");k=new zK({root:k,injector:_.en()});k.install(NgA);var E={};k.install((E.initialized={priority:10,callback:PwC},E));_.Y("wp_lat_b")&&(E={},k.install((E.initialized={priority:10,callback:function(){VcR()}},E)));
E={};k.install((E.rendered={priority:0,callback:t4i},E));E={};k.install((E.rendered={priority:0,callback:function(){_.ZJ.addLowPriorityJob(function(){_.dVT>1&&(iQb(),ejj())},4E4)}},E));
k.install(SgW);k.install(nfa);k.install(Ycx);D$1();k.install(c33);k.install(Q2R);k.install(kV3);k.install(yPP);k.install(HuG);k.install(hIa);k.install(RxP);_.Y("kevlar_enable_mss_lazy_load")&&k.install(hxA);k.install(GaI);k.install(cDA);if(!_.qg("IS_SHELL_LOAD")||_.Y("kevlar_fetch_initial_data_promise_client")||_.Y("sw_nav_preload_pbj")){var S=_.Xu(window.location.href);E=S&&S==="/watch";S=S&&S.match(WE2);E?k.install(wv3):S?k.install(exa):k.install(tlx)}else k.install(Mw3);k.install(Vn2);_.Y("web_enable_prefetching_videos_on_home")&&
k.install(tnU);_.Y("start_client_gcf")&&k.install(JjW);k.install(Pkt);(new D3C).increment("INSTALLED");k.install(eIP);k.install(dgA);k.transition("initialized");Q51()})();
_.Cr=[[["bDB3aGVka2luZCNhYTdyNnQ=","d3Rla292YWx1ZSNzNG13M2hw"],"TExJU0VDT05EUyNzancwYzhndzdtcndBRF9QTEFDRU1FTlRfS0lORF9NSQ=="]];_.GJ=["bENhbGxiYWNrcyNxcDRtNTF1YTF3M3BnbG9iYQ==","dHlEZXRlY3RlZCNpNzlrZHZqaHY1bWlvbkFibm9ybWFsaQ==","Z2lvbkFkU2tpcCM4NnZ3MHUzbTFy","cl9yZXNwb25zZSNzbmxyN3Bxam5lNmNyYXdfcGxheWU=","ZXBsYXllckFkcyNtdXd0em1hZWNscQ=="];_.Rg="bENhbGxiYWNrcyNxcDRtNTF1YTF3M3BnbG9iYQ== dHlEZXRlY3RlZCNpNzlrZHZqaHY1bWlvbkFibm9ybWFsaQ== Z2lvbkFkU2tpcCM4NnZ3MHUzbTFy cl9yZXNwb25zZSNzbmxyN3Bxam5lNmNyYXdfcGxheWU= ZV9za2lwc19rcyNuN2x4NmtybHNvNHh3ZWJfcGxheWxpc3RfcXVldWVfbXVsdGlwbA== eHJhYl9zYV9lZiNpcGE4N2g2cWJp ZXBsYXllckFkcyNtdXd0em1hZWNscQ==".split(" ");
_._ModuleManager_initialize=function(k,E){if(!_.D7){if(!_.$4)return;_.Qut(_.$4())}_.D7.setAllModuleInfoString(k,E)};
_._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{
_.ma=function(k,E,S,R,V){var N={};E&&(N[E]=S);R?N.errorType=R:V&&(N.errorReason=V);_.f2(k,N);_.vv()};
_.eW=function(k){var E=_.O7();return _.IpC(E,k,1)};
_.F6({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 k=this.query;k&&(this.full||k[0]==="("||(k="("+k+")"),this._mq=window.matchMedia(k),this._add(),this.queryHandler(this._mq))},
queryHandler:function(k){this._setQueryMatches(k.matches)}});var upW;var xd3;var LEU=function(){};
_.I=LEU.prototype;_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._noinkChanged=function(){};
_.I._focusedChanged=function(){};
_.I._createRipple=function(){};
_.I.registered=function(){};
_.I._invalidChanged=function(){};
_.I.hasValidator=function(){};
_.I.validate=function(){};
_.I._getValidity=function(){};
_.I._requiredChanged=function(){};
_.I._valueChanged=function(){};
_.I._checkedChanged=function(){};
_.I._buttonStateChanged=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
LEU=_.F6({is:"tp-yt-paper-radio-button",_template:function(){if(xd3!==void 0)return xd3;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;upW===void 0&&(upW=document.createElement("template"));var R=upW;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return xd3=k},
behaviors:[_.bT5],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(){_.JB(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var k=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),E=Math.floor(3*k);E%2!==k%2&&E++;this.updateStyles({"--paper-radio-button-ink-size":E+"px"})}})}});var jWT;var DdT;_.F6({_template:function(){if(DdT!==void 0)return DdT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;jWT===void 0&&(jWT=document.createElement("template"));var R=jWT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return DdT=k},
is:"tp-yt-paper-radio-group",behaviors:[_.r9d],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(k){var E=this._valueToItem(k);if(!E||!E.hasAttribute("disabled")){if(this.selected){E=this._valueToItem(this.selected);if(this.selected==k)if(this.allowEmptySelection)k="";else{E&&(E.checked=!0);return}E&&
(E.checked=!1)}_.Dk.select.apply(this,[k]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(k){this._focusPrevious();k.preventDefault();this._activateFocusedItem()},
_onDownKey:function(k){this._focusNext();k.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(k){_.A9d._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(k){_.A9d._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.Dk._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.H7._resetTabindices.apply(this,arguments);this.items.forEach(function(k){k.removeAttribute("aria-selected")},this)}});var $dW;_.B9("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var aD=function(){return _.p.apply(this,arguments)||this};
_.y(aD,_.p);_.I=aD.prototype;_.I.computeHasPrimaryIcon=function(k){return!(!k.icon&&!k.thumbnail)};
_.I.computeHasSecondary=function(k){return!(!k.secondaryIcon&&!k.secondaryNotificationText)};
_.I.computeHideSecondaryString=function(k){return!_.Y("disable_hide_empty_secondary_string")&&!k.secondaryNotificationText};
_.I.computeCompactLinkStyle=function(k){return k?k.toLowerCase().replace(/_/g,"-"):""};
_.I.computeHasFitHeight=function(k){return k==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.I.isActiveEndpoint=function(k){return(k=this.get("commandMetadata.webCommandMetadata.url",k))?_.Xu(window.location.href)!=="/account_transfer_channel"&&_.Xu(window.location.href)!=="/gaia_link"&&_.Xu(window.location.href)!=="/channel_switcher"||k!=="/account"?_.Xu(window.location.href)===k:!0:!1};
_.I.onTap=function(){var k;((k=this.data)==null?0:k.serviceEndpoint)&&_.Qw(this.hostElement,[this.data.serviceEndpoint])};
aD.prototype.onTap=aD.prototype.onTap;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],aD.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],aD.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.l("design:type",Boolean)],aD.prototype,"active",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.l("design:type",String)],aD.prototype,"compactLinkStyle",void 0);
_.Z([_.H({computed:"computeIcon_(data.icon)"}),_.l("design:type",Object)],aD.prototype,"icon",void 0);_.Z([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.l("design:type",Object)],aD.prototype,"secondaryIcon",void 0);_.Z([_.H({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],aD.prototype,"hasSecondary",void 0);_.Z([_.H({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],aD.prototype,"hideSecondaryString",void 0);
_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aD.prototype,"onTap",null);_.Z([_.D({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],aD);
_.b(aD,"ytd-compact-link-renderer",function(){if($dW!==void 0)return $dW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return $dW=k},{mode:1});var fdG;_.B9("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var tW=function(){var k=_.p.apply(this,arguments)||this;k.role="link";k.tabindex="0";k.actionMap=_.Y("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 k};
_.y(tW,_.p);_.I=tW.prototype;_.I.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.aR()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.I.getCurrentTheme=function(){return _.tg()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.aR()};
_.I.onThemeSelected=function(k,E){var S=k||E?k:_.ek(),R=(S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!S&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.PiR(_.Xu(window.location.href));_.iD(0,165,k);_.iD(0,174,E);this.prefs.save();R&&_.qe(this.hostElement,"yt-dark-mode-toggled-action",[S]);_.qe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.I.onTap=function(){this.data.serviceEndpoint&&_.Qw(this.hostElement,[this.data.serviceEndpoint])};
_.I.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.I.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.I.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
tW.prototype.onTap=tW.prototype.onTap;tW.prototype.dataChanged=tW.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],tW.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.z6),_.l("design:type",Object)],tW.prototype,"paperItemBehaviors",void 0);_.Z([_.H(),_.l("design:type",Object)],tW.prototype,"data",void 0);_.Z([_.H({value:function(){return _.nz()}}),
_.l("design:type",_.G_)],tW.prototype,"prefs",void 0);_.Z([_.H(),_.l("design:type",Object)],tW.prototype,"label",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],tW.prototype,"role",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],tW.prototype,"tabindex",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tW.prototype,"dataChanged",null);
_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tW.prototype,"onTap",null);_.Z([_.D({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],tW);
_.O_()(tW,"ytd-toggle-theme-compact-link-renderer",function(){if(fdG===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);fdG=k}k=fdG;return k},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var b2R,Z2A;_.TW=function(k){return!!k.getOptions("captions")};
_.vfP=function(k){return(k=k.getOption("captions","track"))?!!k.displayName:!1};
_.wK=function(k,E){_.hQ(E,k,function(){return b2R[E]},function(S){b2R[E]=S;
if(!_.Y("mweb_player_ve_show_ks")){var R=_.Fe(0);R&&S&&_.xA(R,S)}})};
_.P6=function(k){(k=b2R[k])&&_.Wq(_.JV(),k)};
b2R={};var ddT;/*

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
*/
_.F6({_template:function(){if(ddT!==void 0)return ddT;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;Z2A===void 0&&(Z2A=document.createElement("template"));var R=Z2A;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return ddT=k},
is:"tp-yt-paper-checkbox",behaviors:[_.bT5],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.JB(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var k=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),E="px",S=k.match(/[A-Za-z]+$/);S!==null&&(E=S[0]);k=parseFloat(k);S=8/3*k;E==="px"&&(S=Math.floor(S),S%2!==k%2&&S++);this.updateStyles({"--paper-checkbox-ink-size":S+
E})}})},
_computeCheckboxClass:function(k,E){var S="";k&&(S+="checked ");E&&(S+="invalid");return S},
_computeCheckmarkClass:function(k){return k?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.fX2._createRipple.call(this)}});var sWG=new _.z_("radioButtonSurveyOptionRenderer"),ldG=new _.z_("checkboxSurveyOptionRenderer");var Ml3;var qcI;var zxT=0,B6=function(){var k=_.p.call(this)||this;k.selected=!1;k.isOverlay=!1;k.inputId="toggle-option-"+zxT;zxT++;return k};
_.y(B6,_.p);B6.prototype.onTap=function(){_.Me(this.hostElement,"ytd-toggle-option-clicked")};
_.Z([_.H(),_.l("design:type",String)],B6.prototype,"label",void 0);_.Z([_.H(),_.l("design:type",String)],B6.prototype,"inputId",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],B6.prototype,"selected",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],B6.prototype,"isOverlay",void 0);_.Z([_.D({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.l("design:paramtypes",[])],B6);
_.b(B6,"ytd-toggle-option-renderer",function(){if(qcI!==void 0)return qcI;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return qcI=k},{mode:1});var Y3=function(){var k=_.p.apply(this,arguments)||this;k.isToggleOption=!1;k.isOverlay=!1;return k};
_.y(Y3,_.p);Y3.prototype.onTap=function(k){k.preventDefault();this.data&&(k=!this.data.checked,this.set("data.checked",k),_.Me(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:k,value:this.data.value}))};
_.mt.Object.defineProperties(Y3.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
Y3.prototype.onTap=Y3.prototype.onTap;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Y3.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Y3.prototype,"isToggleOption",void 0);_.Z([_.H(),_.l("design:type",Object)],Y3.prototype,"isOverlay",void 0);_.Z([_.U("data.responseText"),_.l("design:type",String),_.l("design:paramtypes",[])],Y3.prototype,"label",null);
_.Z([_.nv("ytd-toggle-option-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Y3.prototype,"onTap",null);_.Z([_.D({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],Y3);
_.b(Y3,"ytd-checkbox-survey-option-renderer",function(){if(Ml3!==void 0)return Ml3;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Ml3=k},{mode:1});var QWY;var O2P;var W6=function(){var k=_.p.apply(this,arguments)||this;k.checked=!1;k.isToggleOption=!1;return k};
_.y(W6,_.p);W6.prototype.onTap=function(){this.data&&(this.checked?_.qe(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.qe(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
W6.prototype.onTap=W6.prototype.onTap;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],W6.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],W6.prototype,"checked",void 0);_.Z([_.H(),_.l("design:type",Object)],W6.prototype,"isToggleOption",void 0);_.Z([_.nv("ytd-toggle-option-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],W6.prototype,"onTap",null);
_.Z([_.D({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],W6);
_.b(W6,"ytd-radio-button-survey-option-renderer",function(){if(O2P!==void 0)return O2P;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return O2P=k},{mode:1});var FN=function(){var k=_.p.apply(this,arguments)||this;k.disableAnimation=!1;k.isToggleOption=!0;k.followUpSurveyCommand=null;k.selectedRatingEndpoint=null;k.isSlimlineSurveyFollowUp=!1;k.isShortsStyle=!1;k.styleOverrideAttribute=!0;k.isDarkMode=!1;k.isSubmitted=!1;k.roundedContainer=!0;k.improveShortsResponseRate=_.Y("web_improve_shorts_response_rate");k.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 k};
_.y(FN,_.p);_.I=FN.prototype;
_.I.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"}}}}};
_.I.attached=function(){var k=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(S){var R;if((R=S[0])!=null&&R.isIntersecting){_.iY().reportShown(k.hostElement);var V;(V=k.intersectionObserver)==null||V.unobserve(k.hostElement)}},{rootMargin:"0px",
threshold:.6});var E;(E=this.intersectionObserver)==null||E.observe(this.hostElement)};
_.I.onDarkModeToggledAction=function(k){this.isDarkMode=k};
_.I.dataChanged=function(){var k;if(((k=this.data)==null?void 0:k.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var E;((E=this.data)==null?void 0:E.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var S,R,V,N;this.darkColorPalette=(S=this.data)==null?void 0:(R=S.inlineContent)==null?void 0:(V=R.compactVideoRenderer)==null?void 0:(N=V.thumbnail)==null?
void 0:N.darkColorPalette;var h,J,m,a;this.lightColorPalette=(h=this.data)==null?void 0:(J=h.inlineContent)==null?void 0:(m=J.compactVideoRenderer)==null?void 0:(a=m.thumbnail)==null?void 0:a.lightColorPalette;var T,w;if(((T=this.data)==null?0:(w=T.inlineContent)==null?0:w.compactVideoRenderer)&&this.isShortsStyle){var P,B,F,K;k=_.Q_((P=this.data)==null?void 0:(B=P.inlineContent)==null?void 0:(F=B.compactVideoRenderer)==null?void 0:(K=F.thumbnail)==null?void 0:K.thumbnails);_.VO(this.hostElement,
{"--yt-background-url":"url("+k+")"})}};
_.I.handleRequestCompletion=function(){this.hostElement.hidden&&_.Me(this.hostElement,"yt-dismissible-item-dismissed")};
_.I.onPopupClosed=function(k){var E;((E=k.detail)==null?void 0:E.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.qe(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.I.handleInlineSurveyRatingSelect=function(k,E){var S=this;this.selectedRatingEndpoint=k;this.followUpSurveyCommand=E;this.expanded=!!k;this.getOptionRenderers().forEach(function(R,V){S.notifyPath("followUpSurveyCommand.followUpOptions."+V+".checkboxSurveyOptionRenderer.checked");S.set("followUpSurveyCommand.followUpOptions."+V+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),k=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.qe(this.hostElement,"yt-reel-non-video-content-dismissal-command",[k]))};
_.I.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.qe(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var k,E=(k=this.data)==null?void 0:k.dismissalEndpoint;E&&this.ytComponentBehavior.resolveCommand(E)}};
_.I.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.qe(this.hostElement,"yt-close-popup-action"))};
_.I.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var k=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{k=this.getOptionRenderers().filter(function(R){return R.checked});
if(k.length===0)return;k=k.map(function(R){return R.responseEndpoint})}var E=[];
k.forEach(function(R,V){V!==0&&(R=_.W(R,_.wy))&&R.feedbackToken&&E.push(R.feedbackToken)});
if(k=k[0]){var S={};E.length>0&&(S.extra_feedback_tokens=E);this.ytComponentBehavior.resolveCommand(k,{form:S})}}};
_.I.getOptionRenderers=function(){var k=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(E){k.isSingleSelect=!!_.W(E,sWG);return k.isSingleSelect?_.W(E,sWG):_.W(E,ldG)}):[]};
_.I.handleInlineSurveyOptionSelect=function(k){k=this.optionSelector.indexOf(k);k!==-1&&this.optionSelector.selectIndex(k)};
_.I.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.I.maybeGetBackgroundColor=function(k){return this.isDarkMode?k.section2Color:k.section3Color};
_.I.colorPaletteChanged=function(){var k=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;k=k&&this.maybeGetBackgroundColor(k);this.dismissibleEl.style.backgroundColor=!k||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.HT(k)};
_.mt.Object.defineProperties(FN.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
FN.prototype.colorPaletteChanged=FN.prototype.colorPaletteChanged;FN.prototype.onPopupClosed=FN.prototype.onPopupClosed;FN.prototype.handleRequestCompletion=FN.prototype.handleRequestCompletion;FN.prototype.dataChanged=FN.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],FN.prototype,"actionHandlerBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],FN.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],FN.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.JO("#follow-up-survey-options"),_.l("design:type",Object)],FN.prototype,"optionSelector",void 0);_.Z([_.H(),_.l("design:type",Object)],FN.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],FN.prototype,"disableAnimation",void 0);_.Z([_.H(),_.l("design:type",Object)],FN.prototype,"isToggleOption",void 0);_.Z([_.H(),_.l("design:type",Object)],FN.prototype,"followUpSurveyCommand",void 0);_.Z([_.H(),_.l("design:type",Object)],FN.prototype,"selectedRatingEndpoint",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],FN.prototype,"expanded",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],FN.prototype,"isSlimlineSurveyFollowUp",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],FN.prototype,"isShortsStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],FN.prototype,"styleOverrideAttribute",void 0);_.Z([_.H(),_.l("design:type",Boolean)],FN.prototype,"isSingleSelect",void 0);_.Z([_.H(),_.l("design:type",Object)],FN.prototype,"isDarkMode",void 0);
_.Z([_.H(),_.l("design:type",Object)],FN.prototype,"lightColorPalette",void 0);_.Z([_.H(),_.l("design:type",Object)],FN.prototype,"darkColorPalette",void 0);_.Z([_.U("selectedRatingEndpoint","isShortsStyle"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],FN.prototype,"isOptionSelected",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],FN.prototype,"roundedContainer",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],FN.prototype,"improveShortsResponseRate",void 0);_.Z([_.JO("#dismissible"),_.l("design:type",HTMLElement)],FN.prototype,"dismissibleEl",void 0);_.Z([_.JO("#dismiss-button yt-icon-button"),_.l("design:type",HTMLElement)],FN.prototype,"dismissButtonEl",void 0);_.Z([_.JO("#inline-survey-header yt-icon-button"),_.l("design:type",HTMLElement)],FN.prototype,"inlineHeaderDismissButtonEl",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FN.prototype,"dataChanged",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FN.prototype,"handleRequestCompletion",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],FN.prototype,"onPopupClosed",null);
_.Z([_.il("darkColorPalette","lightColorPalette","isDarkMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FN.prototype,"colorPaletteChanged",null);_.Z([_.D({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],FN);
_.b(FN,"ytd-inline-survey-renderer",function(){if(QWY!==void 0)return QWY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return QWY=k},{mode:1});var GUx=["en-CA","en","es-MX","fr-CA"];_.CMa=_.f(function(k){var E=_.dJ(k,{isOverlay:!1,isModern:!1}),S=E.captionIconType,R=E.onClick;k=E.ariaLabel;var V=E.ariaPressed,N=E.isOverlay,h=E.isModern;E=_.VH("button",function(a){_.wK(a,127299)});
var J=_.RZ(function(a){_.P6(127299);R==null||R(a);return!1}),m={};
return _.e("ytm-closed-captioning-button",{class:_.SQ("ytmClosedCaptioningButtonHost",(m.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return S()===-1&&N()},m.ytmClosedCaptioningButtonIconDisabled=function(){return S()===-1&&!N()},m))},_.e("button",{el:E,
class:"ytmClosedCaptioningButtonButton",title:k,"aria-label":k,"aria-pressed":V,"on:click":J},_.e(_.i_,{icon:function(){var a="",T=h();var w=T?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";T=T?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var P=_.nz().get("hl");w=!P||GUx.includes(P)?w:T;T=S();switch(T){case -1:case 0:a=w;break;case 1:a=w+"_FILLED";break;default:_.s5(T)}return a}})))},"fh");
_.CMa.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.ue=function(k){return function(E,S){var R=k||S.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(E,S,{get:function(){var V;return this.$?this.$[R]:(V=_.hO(this))==null?void 0:V.querySelector("#"+R)},
enumerable:!0,configurable:!0})}};_.xL=function(k){k=k===void 0?!1:k;_.r7.call(this);this.pubSub_=new _.H_(k);_.Wy(this,this.pubSub_)};
_.dy(_.xL,_.r7);_.xL.prototype.subscribe=function(k,E,S){return this.isDisposed()?0:this.pubSub_.subscribe(k,E,S)};
_.xL.prototype.unsubscribe=function(k,E,S){return this.isDisposed()?!1:this.pubSub_.unsubscribe(k,E,S)};
_.xL.prototype.unsubscribeByKey=function(k){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(k)};
_.xL.prototype.publish=function(k,E){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var bNI=function(){_.ma("ypcRedeemFlowStarted")},ZNI=function(k){_.ma("ypcRedeemFlowFailed",void 0,void 0,void 0,k)},dsP=function(k,E,S){E&&S&&(k.videos.forEach(function(R){R.videoId===E&&(R.itemId=S)}),k.recommendedVideos.forEach(function(R){R.videoId===E&&(R.itemId=S)}))};var syU;var l4P;/*

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
*/
_.F6({_template:function(){if(l4P!==void 0)return l4P;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;syU===void 0&&(syU=document.createElement("template"));var R=syU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return l4P=k},
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(k,E){var S=this._resolveSrc(k);S!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",k===""||E?this._setLoading(!1):(this._resolvedSrc=S,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 k=this.$.sizedImgDiv.style,E=this.$.placeholder.style;k.backgroundSize=E.backgroundSize=this.sizing;k.backgroundPosition=E.backgroundPosition=this.sizing?this.position:"";k.backgroundRepeat=E.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(k){k=_.Pn(k,this.$.baseURIAnchor.href);k.length>=2&&k[0]==="/"&&k[1]!=="/"&&(k=(location.origin||location.protocol+"//"+location.host)+k);return k}});var MxT;var qLA;_.F6({_template:function(){if(qLA!==void 0)return qLA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;MxT===void 0&&(MxT=document.createElement("template"));var R=MxT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return qLA=k},
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(k){return k?"false":"true"},
_headingChanged:function(k){var E=this.getAttribute("heading"),S=this.getAttribute("aria-label");typeof S==="string"&&S!==E||this.setAttribute("aria-label",k)},
_computeHeadingClass:function(k){return k?" over-image":""},
_computeAnimated:function(k){return k}});var zTP=new _.z_("addRendererToItemSectionAction");var QyI;var Ou=function(){return _.p.apply(this,arguments)||this};
_.y(Ou,_.p);Ou.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ou.prototype,"rendererBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],Ou.prototype,"dismissibleItemBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ou.prototype,"rendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ou.prototype,"data",void 0);_.Z([_.D({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Ou);
_.b(Ou,"ytd-comment-history-entry-renderer",function(){if(QyI!==void 0)return QyI;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return QyI=k},{mode:1});var ONI;_.B9("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.B9("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var GS=function(){return _.p.apply(this,arguments)||this};
_.y(GS,_.p);_.I=GS.prototype;_.I.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.onKeyUp=function(k){if(k.keyCode===13)this.onTap()};
_.I.onTap=function(){this.data.recordClickEndpoint&&_.en().resolve(_.t3).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var k=this.data.navigationEndpoint;k&&_.W(k,_.fK)&&_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}})};
_.I.readChanged=function(){var k;_.E_(this.hostElement,"unread",!((k=this.data)==null?0:k.read))};
_.I.dataChanged=function(){this.data&&_.E_(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.I.computeThumbnailSize=function(){var k;return((k=this.data)==null?0:k.highPriorityNotification)?32:48};
_.I.getEndpointURL=function(k){return k&&!_.W(k,_.fK)?this.componentBehavior.computeHref_(k):null};
_.I.getEndpointData=function(k){return k&&!_.W(k,_.fK)?k:null};
GS.prototype.computeThumbnailSize=GS.prototype.computeThumbnailSize;GS.prototype.dataChanged=GS.prototype.dataChanged;GS.prototype.readChanged=GS.prototype.readChanged;GS.prototype.onKeyUp=GS.prototype.onKeyUp;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],GS.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],GS.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],GS.prototype,"data",void 0);_.Z([_.H({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.l("design:type",Number)],GS.prototype,"thumbnailSize",void 0);_.Z([_.nv("keyup"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],GS.prototype,"onKeyUp",null);
_.Z([_.il("data.read"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GS.prototype,"readChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GS.prototype,"dataChanged",null);_.Z([_.il("data.highPriorityNotification"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GS.prototype,"computeThumbnailSize",null);
_.Z([_.D({is:"ytd-notification-renderer",disableElementRegistration:!0})],GS);
_.b(GS,"ytd-notification-renderer",function(){if(ONI!==void 0)return ONI;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ONI=k},{mode:1});var GwI;var Ce=function(){return _.p.apply(this,arguments)||this};
_.y(Ce,_.p);Ce.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"}}}};
Ce.prototype.computeActionButtonClass=function(k){return!k.actionButtons||k.actionButtons.length<=1?"single-button":k.description?"vertical-buttons":"horizontal-buttons"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ce.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ce.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ce.prototype,"data",void 0);_.Z([_.D({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Ce);
_.b(Ce,"ytd-playlist-show-metadata-renderer",function(){if(GwI!==void 0)return GwI;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return GwI=k},{mode:1});var CUW;_.B9("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var ki=function(){return _.p.apply(this,arguments)||this};
_.y(ki,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ki.prototype,"data",void 0);_.Z([_.D({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],ki);
_.b(ki,"ytd-purchase-item-renderer",function(){if(CUW!==void 0)return CUW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return CUW=k},{mode:1});var kIg;var EbJ={};EbJ.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(k){if(k)return k.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(k){if(k==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.B9("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Ey=function(){return _.p.apply(this,arguments)||this};
_.y(Ey,_.p);Ey.prototype.onYtNavigate=function(k){var E=this.openPopupBehavior.getNavigationEndpointPopupAction(k.detail.endpoint);E&&(k.stopPropagation(),this.openPopupBehavior.openPopup(E))};
Ey.prototype.onYtNavigate=Ey.prototype.onYtNavigate;_.Z([_.g(EbJ.YtSimpleTextSectionBehavior),_.l("design:type",Object)],Ey.prototype,"ytSimpleTextSectionBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],Ey.prototype,"openPopupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ey.prototype,"data",void 0);
_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ey.prototype,"onYtNavigate",null);_.Z([_.D({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Ey);
_.b(Ey,"ytd-simple-text-section-renderer",function(){if(kIg!==void 0)return kIg;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return kIg=k},{mode:1});var Sjr;_.B9("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Rir=function(){return _.p.apply(this,arguments)||this};
_.y(Rir,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Rir.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Rir.prototype,"data",void 0);_.Z([_.D({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Rir);
_.b(Rir,"ytd-unlimited-page-feature-info-renderer",function(){if(Sjr!==void 0)return Sjr;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Sjr=k},{mode:1});var Vhr;var N1B;var SU=function(){return _.p.apply(this,arguments)||this};
_.y(SU,_.p);SU.prototype.dataChanged=function(){if(this.data){var k=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);k&&(k=_.zT(k,screen.width),this.hostElement.style.backgroundImage="url("+k+")")}};
SU.prototype.dataChanged=SU.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],SU.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SU.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],SU);
_.b(SU,"ytd-post-redemption-section-renderer",function(){if(N1B!==void 0)return N1B;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return N1B=k},{mode:1});var IRF;var Rw=function(){return _.p.apply(this,arguments)||this};
_.y(Rw,_.p);Rw.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Rw.prototype,"data",void 0);_.Z([_.D({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],Rw);
_.b(Rw,"ytd-ypc-post-redemption-renderer",function(){if(IRF!==void 0)return IRF;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return IRF=k},{mode:1});_.B9("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var V2=function(){var k=_.p.apply(this,arguments)||this;k.MIN_CODE_LENGTH=12;k.MAX_CODE_LENGTH=24;return k};
_.y(V2,_.p);_.I=V2.prototype;_.I.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.I.created=function(){this.riskService=new _.Knl;this.loadPaymentThenable=_.Aml(_.Mg("YPC_MB_URL"))};
_.I.ready=function(){var k=this;this.code.addEventListener("keypress",function(E){k.onCodeInputKeypress(E)})};
_.I.dataChanged=function(){var k=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(E){E=_.n(E);for(var S=E.next();!S.done;S=E.next())S=S.value,S.type==="attributes"&&S.attributeName==="dark"&&k.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.I.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var k=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+k+")")}};
_.I.computeRedeemButton=function(k){(k=this.get("redeemButton.buttonRenderer",k))&&(k=Object.assign({},k,{serviceEndpoint:void 0}));return k};
_.I.onRedeemButtonTap=function(k){k.stopPropagation();bNI();this.redeemCode()};
_.I.redeemCode=function(){var k=this;this.isLoading=!0;var E=this.riskService.init();_.Ys([E,this.loadPaymentThenable]).then(function(){var S=k.data.redeemButton.buttonRenderer.serviceEndpoint,R=_.pRl(),V=_.DI.payments.business.integration.ClientTokenFactory.createClientToken(_.W(S,_.ShT).countryCode,R);R={c:k.code.value.trim(),rd:window.btoa(R),ctk:V};S&&_.en().resolve(_.t3).resolveCommand(S,{form:Object.assign({},R,{element:k.hostElement})})},function(){k.showGenericError();
ZNI("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.O4(Error("Go"))})};
_.I.onYtServiceRequestCompleted=function(k){k.stopPropagation();this.isLoading=!1;var E,S;this.errorMessage=(E=k.detail)==null?void 0:(S=E.data)==null?void 0:S.errorMessage;var R,V;this.postRedemptionRenderer=(R=k.detail)==null?void 0:(V=R.data)==null?void 0:V.renderer;var N,h;if(k=(N=k.detail)==null?void 0:(h=N.data)==null?void 0:h.redirectEndpoint)this.isLoading=!0,_.Me(this.hostElement,"yt-navigate",{endpoint:k});this.errorMessage?ZNI("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
k)&&_.ma("ypcRedeemFlowSucceeded")};
_.I.onYtServiceRequestError=function(k){k.stopPropagation();this.isLoading=!1;if(k=this.get("detail.error.message",k))this.errorMessage=_.DE(k);ZNI("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.I.onInvokeInstrumentManagerActionCompleted=function(k){k.stopPropagation();this.redeemCode()};
_.I.onInvokeInstrumentManagerActionError=function(k){k.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",k)){case "instrumentManagerLoadError":this.showGenericError();ZNI("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();ZNI("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.ma("ypcRedeemFlowCancelled")}};
_.I.onInput=function(){var k=this;_.Lv(this,"onInput",function(){var E=k.code.value.trim();k.redeemButtonDisabled=E.length<k.MIN_CODE_LENGTH||E.length>k.MAX_CODE_LENGTH},200)};
_.I.onCodeInputKeypress=function(k){k.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(bNI(),this.redeemCode())};
_.I.computeImageUrl=function(k){return k?_.zT(k.thumbnails,600):null};
_.I.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
V2.prototype.onInvokeInstrumentManagerActionError=V2.prototype.onInvokeInstrumentManagerActionError;V2.prototype.onInvokeInstrumentManagerActionCompleted=V2.prototype.onInvokeInstrumentManagerActionCompleted;V2.prototype.onYtServiceRequestError=V2.prototype.onYtServiceRequestError;V2.prototype.onYtServiceRequestCompleted=V2.prototype.onYtServiceRequestCompleted;V2.prototype.dataChanged=V2.prototype.dataChanged;
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],V2.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],V2.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],V2.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",Boolean)],V2.prototype,"redeemButtonDisabled",void 0);
_.Z([_.H(),_.l("design:type",Object)],V2.prototype,"errorMessage",void 0);_.Z([_.H(),_.l("design:type",Object)],V2.prototype,"postRedemptionRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],V2.prototype,"observer",void 0);_.Z([_.JO("#code"),_.l("design:type",HTMLInputElement)],V2.prototype,"code",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],V2.prototype,"dataChanged",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],V2.prototype,"onYtServiceRequestCompleted",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],V2.prototype,"onYtServiceRequestError",null);
_.Z([_.nv("yt-invoke-instrument-manager-action-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],V2.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.Z([_.nv("yt-invoke-instrument-manager-action-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],V2.prototype,"onInvokeInstrumentManagerActionError",null);_.Z([_.D({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],V2);
_.b(V2,"ytd-redeem-code-renderer",function(){if(Vhr!==void 0)return Vhr;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Vhr=k},{mode:1});var nbu;_.B9("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Nv=function(){var k=_.p.apply(this,arguments)||this;k.businessEmailDisplayState="HIDE_SECTION";return k};
_.y(Nv,_.p);_.I=Nv.prototype;_.I.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}}}}}};
_.I.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"};
_.I.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.I.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.KI(_.NLj),this.businessEmailDisplayState="CAPTCHA"))};
_.I.onYtServiceRequestCompleted=function(k){var E;if((E=k.detail.data)==null?0:E.businessEmail)this.businessEmail=k.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var S;if((S=k.detail.data)==null?0:S.errorMessage)this.businessEmailErrorMessage=k.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.I.computeEmailHref=function(k){return"mailto:"+k};
_.I.computeSafeUrl=function(k){if(k)return _.ZF(k)};
_.I.onBusinessEmailCaptchaSubmit=function(){var k;(k=this.data)!=null&&k.onBusinessEmailRevealClickCommand&&(k=this.JSC$21951_captchaTextarea.value)&&(k={recaptcha_response_token:k,channel_id:this.data.channelId},_.en().resolve(_.t3).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},k,{element:this.hostElement})}))};
_.I.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.mt.Object.defineProperties(Nv.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 k,E;return!((k=this.data)==null||!k.primaryLinks)&&!((E=this.data)==null?0:E.links)&&this.data.primaryLinks.every(function(S){return S.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var k,E;return!((k=this.data)==null||!k.primaryLinks)&&!((E=this.data)==null?0:E.links)&&!this.shouldShowNewLinks}}});
Nv.prototype.onYtServiceRequestCompleted=Nv.prototype.onYtServiceRequestCompleted;Nv.prototype.dataChanged=Nv.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Nv.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.JO("#g-recaptcha-response"),_.l("design:type",HTMLTextAreaElement)],Nv.prototype,"JSC$21951_captchaTextarea",void 0);_.Z([_.H(),_.l("design:type",Object)],Nv.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],Nv.prototype,"businessEmailDisplayState",void 0);_.Z([_.H(),_.l("design:type",String)],Nv.prototype,"businessEmail",void 0);_.Z([_.H(),_.l("design:type",String)],Nv.prototype,"businessEmailErrorMessage",void 0);
_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nv.prototype,"hideDetailsSection",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Nv.prototype,"dataChanged",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nv.prototype,"shouldShowNewLinks",null);_.Z([_.U("data","shouldShowLinks"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Nv.prototype,"shouldShowLegacyLinks",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Nv.prototype,"onYtServiceRequestCompleted",null);_.Z([_.D({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Nv);
_.b(Nv,"ytd-channel-about-metadata-renderer",function(){if(nbu!==void 0)return nbu;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return nbu=k},{mode:1});var ilJ;_.B9("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Iw=function(){return _.p.apply(this,arguments)||this};
_.y(Iw,_.p);Iw.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]]"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Iw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Iw.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],Iw.prototype,"lockupContainerType",void 0);_.Z([_.H(),_.l("design:type",String)],Iw.prototype,"thumbnailFixedWidth",void 0);
_.Z([_.D({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Iw);
_.b(Iw,"ytd-channel-featured-content-renderer",function(){if(ilJ!==void 0)return ilJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ilJ=k},{mode:1});var hik;_.B9("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var nB=function(){var k=_.p.apply(this,arguments)||this;k.roundContainer=!0;k.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return k};
_.y(nB,_.p);_.I=nB.prototype;_.I.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.I.dataChanged=function(){this.imageWidth=this.imageHeight=24;var k=this.data;k.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!k.style&&k.image&&k.image.thumbnails.length&&(k=k.image.thumbnails[0],this.imageWidth=k.width||0,this.imageHeight=k.height||0)};
_.I.computeSource=function(k){return k.secondarySource?_.$n(k.secondarySource):_.$n(k.source)};
_.I.computeClarifyStyle=function(k){return k?k.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.I.isLargeStyle=function(k){return k==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.I.computeBackgroundStyle=function(k){return k?k.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.I.computeHasActionButton=function(k){return!!k.actionButton};
_.I.computeHasBottomSection=function(k){return!!k.ctaHasBottomSection};
_.I.computeIsSourceMissing=function(k){return k.ctaHasBottomSection===!1?!0:k&&this.computeSource(k)?!1:!0};
_.I.computeSecondaryEndpoint=function(k){return k.secondaryEndpoint||k.endpoint};
nB.prototype.dataChanged=nB.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],nB.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],nB.prototype,"imageWidth",void 0);_.Z([_.H(),_.l("design:type",Number)],nB.prototype,"imageHeight",void 0);
_.Z([_.H({computed:"computeSecondaryEndpoint(data)"}),_.l("design:type",Object)],nB.prototype,"secondaryEndpoint",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.l("design:type",Boolean)],nB.prototype,"hasActionButton",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.l("design:type",Boolean)],nB.prototype,"hasBottomSection",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.l("design:type",Boolean)],nB.prototype,"missingSource",void 0);_.Z([_.H({computed:"computeIcon_(data.icon)"}),_.l("design:type",String)],nB.prototype,"icon",void 0);_.Z([_.H({computed:"computeIcon_(data.secondaryIcon)"}),_.l("design:type",String)],nB.prototype,"secondaryIcon",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.l("design:type",String)],nB.prototype,"clarifyStyle",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.l("design:type",String)],nB.prototype,"backgroundStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],nB.prototype,"roundContainer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],nB.prototype,"amsterdamEnabled",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nB.prototype,"dataChanged",null);
_.Z([_.D({is:"ytd-clarification-renderer",disableElementRegistration:!0})],nB);
_.b(nB,"ytd-clarification-renderer",function(){if(hik!==void 0)return hik;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return hik=k},{mode:1});var Jhk;var chJ;var i7=function(){var k=_.p.apply(this,arguments)||this;k.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return k};
_.y(i7,_.p);_.I=i7.prototype;_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.I.computeIcon=function(k){return k?"yt-icons:"+k.toLowerCase():null};
_.I.computeUseContacts=function(k){return!!k.contacts&&k.contacts.length>0};
_.I.computePhoneContact=function(k){var E,S;return(E=k.contacts)==null?void 0:(S=E.find(function(R){var V;return(R==null?void 0:(V=R.icon)==null?void 0:V.iconType)==="PHONE"}))==null?void 0:S.actionText};
_.I.computeSmsContact=function(k){var E,S;return(E=k.contacts)==null?void 0:(S=E.find(function(R){var V;return(R==null?void 0:(V=R.icon)==null?void 0:V.iconType)==="SMS"}))==null?void 0:S.actionText};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],i7.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],i7.prototype,"amsterdamEnabled",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.l("design:type",Boolean)],i7.prototype,"useContacts",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.l("design:type",String)],i7.prototype,"phoneContact",void 0);_.Z([_.D({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],i7);
_.b(i7,"ytd-single-action-emergency-support-renderer",function(){if(chJ!==void 0)return chJ;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return chJ=k},{mode:1});_.B9("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var hm=function(){var k=_.p.apply(this,arguments)||this;k.roundedContainer=!0;k.amsterdamEnabled=_.Y("enable_desktop_amsterdam_info_panels");return k};
_.y(hm,_.p);hm.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"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],hm.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],hm.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],hm.prototype,"roundedContainer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],hm.prototype,"amsterdamEnabled",void 0);
_.Z([_.D({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],hm);
_.b(hm,"ytd-emergency-onebox-renderer",function(){if(Jhk!==void 0)return Jhk;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Jhk=k},{mode:1});var mA$;_.B9("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Jm=function(){return _.p.apply(this,arguments)||this};
_.y(Jm,_.p);Jm.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Jm.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Jm.prototype,"data",void 0);_.Z([_.D({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Jm);
_.b(Jm,"ytd-exploratory-results-renderer",function(){if(mA$!==void 0)return mA$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return mA$=k},{mode:1});var eig;_.B9("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var cR=function(){var k=_.p.apply(this,arguments)||this;k.messageData=null;return k};
_.y(cR,_.p);_.I=cR.prototype;_.I.onServiceRequestCompleted=function(k,E){k=E.actions||[];E=0;for(var S=k.length;E<S;E++){var R=k[E],V=void 0,N=void 0;if((V=_.W(R,_.WF))==null?0:(N=V.item)==null?0:N.messageRenderer)this.messageData=_.W(R,_.WF).item.messageRenderer}};
_.I.dataChanged=function(){var k=this.data;this.hostElement.hidden=!1;_.E_(this.hostElement,"is-channel",k&&!k.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.I.computeThumbnailWidth=function(k){return k?126:56};
_.I.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.I.onSubmitTap=function(){var k=this.data,E=this.selectedResponseIndex;k!==void 0&&E!==void 0&&(k=k.responses[E],k.responseData&&_.en().resolve(_.t3).resolveCommand(k.responseData,{form:{element:this.hostElement}}))};
_.I.onDismissTap=function(){this.hostElement.hidden=!0;var k=this.data;k!==void 0&&k.dismissalEndpoint&&_.en().resolve(_.t3).resolveCommand(k.dismissalEndpoint,{form:{element:this.hostElement}})};
_.I.updateSelectedResponseIndexFromBinding=function(k){this.selectedResponseIndex=k.detail.value};
cR.prototype.onSelectedResponseIndexChange=cR.prototype.onSelectedResponseIndexChange;cR.prototype.dataChanged=cR.prototype.dataChanged;cR.prototype.onServiceRequestCompleted=cR.prototype.onServiceRequestCompleted;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cR.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],cR.prototype,"messageData",void 0);
_.Z([_.H(),_.l("design:type",Number)],cR.prototype,"selectedResponseIndex",void 0);_.Z([_.JO("#submit-button"),_.l("design:type",HTMLButtonElement)],cR.prototype,"submitButton",void 0);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],cR.prototype,"onServiceRequestCompleted",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cR.prototype,"dataChanged",null);
_.Z([_.il("selectedResponseIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cR.prototype,"onSelectedResponseIndexChange",null);_.Z([_.D({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],cR);
_.b(cR,"ytd-feedback-elicitation-single-question-renderer",function(){if(eig!==void 0)return eig;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return eig=k},{mode:1});var aR$;var mn=function(){return _.p.apply(this,arguments)||this};
_.y(mn,_.p);mn.prototype.computeThumbnailWidth=function(k){return k?602:428};
mn.prototype.updateWideFromBinding=function(k){this.wide=k.detail.value};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],mn.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],mn.prototype,"wide",void 0);_.Z([_.D({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],mn);
_.b(mn,"ytd-newspaper-hero-video-renderer",function(){if(aR$!==void 0)return aR$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return aR$=k},{mode:1});var ths;var T1U=function(){return _.p.apply(this,arguments)||this};
_.y(T1U,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],T1U.prototype,"rendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],T1U.prototype,"data",void 0);_.Z([_.D({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],T1U);
_.b(T1U,"ytd-newspaper-mini-video-renderer",function(){if(ths!==void 0)return ths;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ths=k},{mode:1});var wer;_.B9("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var eU=function(){return _.p.apply(this,arguments)||this};
_.y(eU,_.p);eU.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"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],eU.prototype,"data",void 0);_.Z([_.D({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],eU);
_.b(eU,"ytd-newspaper-renderer",function(){if(wer!==void 0)return wer;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return wer=k},{mode:1});var PCJ;_.B9("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var aw=function(){var k=_.p.apply(this,arguments)||this;k.isSegment=!1;k.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};k.nextContinuation={continuationType:"playlistVideoListContinuation"};return k};
_.y(aw,_.p);_.I=aw.prototype;_.I.attached=function(){_.en();var k;(k=_.en().resolve(_.mz(_.XL)))!=null&&(k.playlistVideoListElement=this.hostElement)};
_.I.detached=function(){var k;(k=_.en().resolve(_.mz(_.XL)))!=null&&(k.playlistVideoListElement=void 0);k=_.en().resolve(_.mz(_.Wj));_.Y("web_enable_voting_animation")&&k&&(k.parentElem=void 0,k.videos=[],k.continuationsPresent=!1,k.showRefreshPill=!1)};
_.I.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"}}}}}};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.I.dataChanged=function(){var k=_.en().resolve(_.mz(_.Wj));if(_.Y("web_enable_voting_animation")&&this.data&&k){var E=_.Cc(this.hostElement).querySelector("#contents");E&&(k.parentElem=E);k.addVideos(this.data.contents)}_.red(this.ytReorderableBehavior)};
_.I.onRendererstamperFinished=function(){this.canReorder&&_.uZY(this.ytReorderableBehavior,_.Cc(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.I.onPlaylistReloading=function(){this.isReloading=!0};
_.I.onUpdateSetVideoId=function(k){if(k.detail&&this.data&&this.data.contents){var E=k.detail;k=this.data.contents.findIndex(function(V){var N;return((N=V.playlistVideoRenderer)==null?void 0:N.videoId)===E.videoId});
if(!(k<0)&&E.setVideoId&&(this.set("data.contents."+k+".playlistVideoRenderer.setVideoId",E.setVideoId),_.Y("web_enable_voting_animation"))){var S;if(k=_.W((S=this.data.contents[k].playlistVideoRenderer)==null?void 0:S.engagementBar,_.QGe)){var R;(R=k.actions)==null||R.forEach(function(V){if(V=_.W(V,_.OeA))V.itemId=E.setVideoId})}(S=_.en().resolve(_.mz(_.Wj)))&&dsP(S,E.videoId,E.setVideoId)}}};
_.I.computeContentsClass=function(k){return k?"reloading":""};
_.I.computeIsSortable=function(k,E){return k&&E>0&&!this.isSegment&&!_.Y("shorts_in_playlists_web")};
_.I.computeIsEditable=function(k){return k};
_.I.computeCanReorder=function(k){return k};
_.I.handlePlaylistRemoveVideosAction=function(k){if(this.get("playlistRemoveVideosAction.setVideoIds",k)&&this.data&&this.data.contents){k=_.W(k,_.yHY).setVideoIds;for(var E=this.data.contents.length-1;E>=0;){var S=this.data.contents[E].playlistVideoRenderer;S&&S.setVideoId&&k.includes(S.setVideoId)&&this.splice("data.contents",E,1);E--}_.qe(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.I.updateIndices=function(){if(this.data&&this.data.contents)for(var k=0;k<this.data.contents.length;k++)this.set("data.contents."+k+".playlistVideoRenderer.index",_.DE(String(k+1)))};
_.I.handleDrop=function(k){k=k.currDragItem;var E=_.$b(k.parentNode.childNodes,k),S=this.data.contents.splice(Number(_.$n(k.data.index))-1,1)[0];this.data.contents.splice(E,0,S);E=E?this.get("contents."+(E-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();k=this.buildReorderServiceEndpoint(k.data.setVideoId,E);this.ytComponentBehavior.resolveCommand(k)};
_.I.buildReorderServiceEndpoint=function(k,E){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",k),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",E),this.data.onReorderEndpoint):null};
_.I.handleUpdatePlaylistAction=function(k){var E;(k=_.W((E=_.W(k,_.ox8))==null?void 0:E.updatedRenderer,_.yr8))&&this.canReorder!==k.canReorder&&this.set("data.canReorder",k.canReorder);k&&k.contents&&(this.set("data.contents",k.contents),this.isReloading=!1);k&&k.continuations&&this.set("data.continuations",k.continuations)};
_.I.handleAddRendererToItemSectionAction=function(k){var E,S=(E=_.W(k,zTP))==null?void 0:E.renderer,R;S&&((R=_.W(k,zTP))==null?void 0:R.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,S),k=_.en().resolve(_.mz(_.Wj)),_.Y("web_enable_voting_animation")&&k&&(S&&(E=_.zl1(S))&&k.recommendedVideos.push({itemId:E,videoId:_.GSj(S),voteCount:_.CmA(S),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.I.isVotingEnabledOnPlaylist=function(k){if(!k)return!1;k=_.n(k);for(k=k.next();!k.done;k=k.next()){var E=void 0;return!!_.W((E=k.value.playlistVideoRenderer)==null?void 0:E.engagementBar,_.QGe)}return!1};
_.I.onAppendContinuationItemsActionFinished=function(){var k;this.isVotingEnabledOnPlaylist((k=this.data)==null?void 0:k.contents)&&(this.updateIndices(),k=_.en().resolve(_.mz(_.Wj)),_.Y("web_enable_voting_animation")&&k&&this.data&&k.addVideos(this.data.contents))};
_.I.updateVideoData=function(k){if(k.detail&&this.data&&this.data.contents){var E=k.detail;k=E.toIdx;var S=E.itemId,R=E.newVoteCount,V=E.voteStatus;E=E.hideItem;var N,h,J=(N=this.data)==null?void 0:(h=N.contents)==null?void 0:h.findIndex(function(w){return _.zl1(w)===S});
if(!(J<0)){N=this.data.contents[J];var m;if((m=N.playlistVideoRenderer)==null?0:m.voteCount)N.playlistVideoRenderer.voteCount=R;var a;if(m=_.W((a=N.playlistVideoRenderer)==null?void 0:a.engagementBar,_.QGe)){var T;(T=m.actions)==null||T.forEach(function(w){(w=_.W(w,_.OeA))&&w.initialState&&(w.initialState.votes=R,w.initialState.status=V)})}this.data.contents.splice(J,1);
E||this.data.contents.splice(k,0,N);this.updateIndices()}}};
aw.prototype.updateVideoData=aw.prototype.updateVideoData;aw.prototype.onAppendContinuationItemsActionFinished=aw.prototype.onAppendContinuationItemsActionFinished;aw.prototype.onUpdateSetVideoId=aw.prototype.onUpdateSetVideoId;aw.prototype.onPlaylistReloading=aw.prototype.onPlaylistReloading;aw.prototype.onRendererstamperFinished=aw.prototype.onRendererstamperFinished;aw.prototype.dataChanged=aw.prototype.dataChanged;
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],aw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],aw.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.Nk.YtNextContinuationBehavior),_.l("design:type",Object)],aw.prototype,"ytNextContinuationBehavior",void 0);
_.Z([_.g(_.xKC),_.l("design:type",Object)],aw.prototype,"ytReorderableBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],aw.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],aw.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],aw.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],aw.prototype,"isReloading",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],aw.prototype,"isSegment",void 0);_.Z([_.H({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.l("design:type",Boolean)],aw.prototype,"isSortable",void 0);_.Z([_.H({computed:"computeIsEditable(data.isEditable)"}),_.l("design:type",Boolean)],aw.prototype,"isEditable",void 0);_.Z([_.H({computed:"computeCanReorder(data.canReorder)"}),_.l("design:type",Boolean)],aw.prototype,"canReorder",void 0);
_.Z([_.H({value:101}),_.l("design:type",Number)],aw.prototype,"scrollMargin",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aw.prototype,"dataChanged",null);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aw.prototype,"onRendererstamperFinished",null);
_.Z([_.nv("yt-playlist-reloading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aw.prototype,"onPlaylistReloading",null);_.Z([_.nv("yt-update-set-video-id"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],aw.prototype,"onUpdateSetVideoId",null);
_.Z([_.nv("yt-append-continuation-items-action-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aw.prototype,"onAppendContinuationItemsActionFinished",null);_.Z([_.nv("yt-update-video-data-voting-animation"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],aw.prototype,"updateVideoData",null);_.Z([_.D({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],aw);
_.b(aw,"ytd-playlist-video-list-renderer",function(){if(PCJ!==void 0)return PCJ;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return PCJ=k},{mode:_.GN("kevlar_poly_si_batch_j047")?1:2});var B1J;var tm=function(){return _.p.apply(this,arguments)||this};
_.y(tm,_.p);tm.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"}}}}};
tm.prototype.onTextWrapperTap=function(k){var E=this.data&&this.data.navigationEndpoint;E&&!_.v9(_.vT(k),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Me(this.hostElement,"yt-navigate",{endpoint:E})};
tm.prototype.dataChanged=function(){var k=this.get("data.offerButton.buttonRenderer.serviceEndpoint");k&&k.commandMetadata&&_.W(k.commandMetadata,_.gZ)&&_.W(k.commandMetadata,_.gZ).fireAutomatically&&_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}})};
tm.prototype.dataChanged=tm.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.VD),_.l("design:type",Object)],tm.prototype,"ytdLockupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tm.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],tm.prototype,"useBiggerThumbs",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.P_("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],tm.prototype,"biggerThumbsStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],tm.prototype,"leftAligned",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],tm.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-movie-renderer"})],tm);
_.b(tm,"ytd-movie-renderer",function(){if(B1J!==void 0)return B1J;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return B1J=k},{mode:1});var YjU;var T5=function(){var k=_.p.apply(this,arguments)||this;k.rounded=!0;k.pageAttachedTo=void 0;k.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return k};
_.y(T5,_.p);T5.prototype.attached=function(){this.pageAttachedTo=_.en().resolve(_.ZD).getCurrentPage();_.Me(this.hostElement,"yt-player-attached",this.player)};
T5.prototype.detached=function(){var k;if((k=this.pageAttachedTo)==null?0:k.hostElement)_.Me(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
T5.prototype.dataChanged=function(){var k;if((k=this.data)==null?0:k.videoId)k={video_id:this.data.videoId,autoplay:!0},!_.Y("miniplayer_stop_channel_video_autoplay_killswitch")&&_.en().resolve(_.yb).isMiniplayerActive()&&(k.pause_at_start=!0,k.autoplay=!1),this.player.loadVideoWithPlayerVars(k)};
T5.prototype.handleSignalActionPausePlayer=function(){_.l_().pause()};
T5.prototype.dataChanged=T5.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],T5.prototype,"data",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],T5.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],T5.prototype,"rounded",void 0);_.Z([_.JO("#player"),_.l("design:type",Object)],T5.prototype,"player",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T5.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],T5);
_.b(T5,"ytd-channel-video-player-renderer",function(){if(YjU!==void 0)return YjU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return YjU=k},{mode:1});var WIs;var FIF;var yhJ;var ws=function(){var k=_.p.apply(this,arguments)||this;k.playing=!1;k.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Oj(k);k.active=!1;return k};
_.y(ws,_.p);_.I=ws.prototype;_.I.detached=function(){this.stop()};
_.I.play=function(){var k=this,E,S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return k.active=!0,E=k.get("data.inlinePlaybackEndpoint.watchEndpoint"),S=E.videoId||k.data.videoId,R=E.startTimeSeconds||0,V=E.playerParams||null,_.Y("kevlar_player_update_killswitch")?h.yield(k.playerEl.update({args:{video_id:S,startSeconds:R,player_params:V}}),2):(k.playerEl.loadVideoWithPlayerVars({video_id:S,startSeconds:R,player_params:V,autoplay:!0}),h.jumpTo(2));if(h.nextAddress!=4)return h.yield(k.playerEl.getPlayerPromise(),
4);N=h.yieldResult;N.unloadModule("annotations_module");N.addEventListener("onStateChange",function(J){k.onPlayerStateChange(J)});
_.KR(h)})};
_.I.onPlayerStateChange=function(k){if(this.active)switch(this.playing=k===1,k){case 1:_.Me(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Me(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.I.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.I.resize=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return S.yield(k.playerEl.getPlayerPromise(),2);E=S.yieldResult;E.setSize(NaN,NaN);_.KR(S)})};
_.Z([_.H(),_.l("design:type",Object)],ws.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ws.prototype,"playing",void 0);_.Z([_.H(),_.l("design:type",Object)],ws.prototype,"playerId",void 0);_.Z([_.JO("#player"),_.l("design:type",Object)],ws.prototype,"playerEl",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],ws);
_.b(ws,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(yhJ!==void 0)return yhJ;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return yhJ=k},{mode:1});var obu;var XeN;var PR=function(){var k=_.p.apply(this,arguments)||this;k.width=0;return k};
_.y(PR,_.p);_.I=PR.prototype;_.I.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Ic(this,this.onEnded));this.mp4El.addEventListener("error",_.Ic(this,this.onError))};
_.I.detached=function(){this.videoEl.removeEventListener("ended",_.Ic(this,this.onEnded));this.mp4El.removeEventListener("error",_.Ic(this,this.onError))};
_.I.play=function(){var k=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var E=this.videoEl.play();E?E.then(function(){k.handleVideoStartPlaying()}).catch(function(){_.Me(k.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Me(this.hostElement,"yt-video-thumbnail-not-playing")};
_.I.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.I.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.I.dataChanged=function(){var k;if((k=this.data)==null?0:k.thumbnailPlaceholder)k=_.zT(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+k+")";this.stop();this.autoplay&&this.play()};
_.I.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.I.onEnded=function(){this.stop();_.Me(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.I.onError=function(){_.Me(this.hostElement,"yt-video-thumbnail-error")};
_.I.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.I.getVideoThumbnail=function(k){if(k&&k.length)return k[0]};
PR.prototype.dataChanged=PR.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],PR.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],PR.prototype,"animatePlaceholderOnEntrance",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],PR.prototype,"autoplay",void 0);_.Z([_.H({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.l("design:type",Object)],PR.prototype,"videoThumbnail",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],PR.prototype,"loop",void 0);_.Z([_.H(),_.l("design:type",Boolean)],PR.prototype,"isVideoPlaying",void 0);_.Z([_.H(),_.l("design:type",Object)],PR.prototype,"width",void 0);_.Z([_.JO("#mp4"),_.l("design:type",HTMLElement)],PR.prototype,"mp4El",void 0);_.Z([_.JO("#placeholder"),_.l("design:type",HTMLElement)],PR.prototype,"placeholderEl",void 0);_.Z([_.JO("#video"),_.l("design:type",HTMLVideoElement)],PR.prototype,"videoEl",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PR.prototype,"dataChanged",null);_.Z([_.U_({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],PR);
_.b(PR,"yt-video-as-thumbnail-details",function(){if(XeN===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;obu===void 0&&(obu=document.createElement("template"));var R=obu;S.call(E,R.content.cloneNode(!0),k.content.firstChild);XeN=k}k=XeN;return k},{mode:2});var BR=function(){var k=_.p.apply(this,arguments)||this;k.disableGridStateAware=!1;k.animationEnabled=_.Y("enable_web_ketchup_hero_animation");k.transitioningOut=!1;k.narrow=!1;k.narrower=!1;k.isCarouselInFeed=!1;k.videoTimeoutJobId=0;k.panelTimeoutJobId=0;k.panelTimeoutJobStartMs=0;k.actionMap={"yt-window-resized":"onWindowResized"};return k};
_.y(BR,_.p);_.I=BR.prototype;_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.I.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var k;this.player&&((k=this.data)==null?0:k.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.I.attached=function(){this.onWindowResized()};
_.I.detached=function(){this.clearTimeouts()};
_.I.onWindowResized=function(){this.updateSize()};
_.I.computePanelLayout=function(k){return k&&k.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.I.playVideo=function(){var k;this.video&&((k=this.data)==null?0:k.videoThumbnail)&&this.video.play();var E;this.player&&((E=this.data)==null?0:E.inlinePlaybackRenderer)&&this.player.play()};
_.I.stopVideo=function(){var k;this.video&&((k=this.data)==null?0:k.videoThumbnail)&&this.video.stop();var E;this.player&&((E=this.data)==null?0:E.inlinePlaybackRenderer)&&this.player.stop()};
_.I.transitionOut=function(){var k=this;this.transitioningOut=!0;return new Promise(function(E){var S=function(){_.Cc(k.hostElement).querySelector("#action-button").removeEventListener("animationend",S);_.ZJ.cancelJob(R);E();k.transitioningOut=!1};
var R=_.uM(_.ZJ,S,1E3);_.Cc(k.hostElement).querySelector("#action-button").addEventListener("animationend",S);k.player&&(k.player.playing=!1)})};
_.I.computeMetadataOrder=function(k){return k&&k.metadataOrder&&k.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?k.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.I.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.I.computeAvatarSize=function(k){return k&&k.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.I.onContentClick=function(k){if(!_.v9(_.vT(k),this.hostElement,["A".toString(),"BUTTON".toString()])){var E;if((E=this.data)==null?0:E.navigationEndpoint){var S;this.componentBehavior.resolveCommand((S=this.data)==null?void 0:S.navigationEndpoint)}}};
_.I.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.I.setBackgroundImage=function(k){if(k=this.getBackgroundImageUrl(k))_.Cc(this.hostElement).querySelector("#hero").style.backgroundImage="url("+k+")"};
_.I.setScrimLayer=function(k){var E=this.getScrimLayerColorStops(k);k=((k==null?void 0:k.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(k=180);_.Mg("HTML_DIR")==="rtl"&&(k=-k);E&&(_.Cc(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+k+"deg, "+E+")")};
_.I.isNarrower=function(){return this.hostElement.clientWidth<BR.NARROW_VERSION_SIZE};
_.I.getScrimLayerColorStops=function(){var k,E=(k=this.data)==null?void 0:k.scrimColorValues;if(!E)return null;if(E.length===1)return k=_.Kc(E[0]),k+" 0%, "+k+" 100%";if(E.length===3){var S=[0,72,98];return E.map(function(R,V){return _.Kc(R)+" "+S[V]+"%"}).join(",")}return null};
_.I.getBackgroundImageUrl=function(k){return k&&k.largeFormFactorBackgroundThumbnail?_.zT((k.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||k.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.I.onPlaying=function(){this.startVideoTimeout()};
_.I.onEnded=function(){this.rotate()};
_.I.startPanelTimeout=function(){var k=this;if(!this.panelTimeoutJobId){var E=this.get("data.minPanelDisplayDurationMs");E&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.uM(_.ZJ,function(){k.rotate()},E))}};
_.I.startVideoTimeout=function(){var k=this;if(!this.videoTimeoutJobId){_.ZJ.cancelJob(this.panelTimeoutJobId);var E=Date.now()-this.panelTimeoutJobStartMs;E=Math.max(0,this.get("data.minPanelDisplayDurationMs")-E);E=Math.max(this.get("data.minVideoPlayDurationMs")||0,E);this.videoTimeoutJobId=_.uM(_.ZJ,function(){k.rotate()},E)}};
_.I.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.ZJ.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.ZJ.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.I.rotate=function(){this.clearTimeouts();_.Me(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.mt.Object.defineProperties(BR.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Cc(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Cc(this.hostElement).querySelector("#video")}}});
_.mt.Object.defineProperties(BR,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
BR.prototype.onEnded=BR.prototype.onEnded;BR.prototype.onPlaying=BR.prototype.onPlaying;BR.prototype.dataChanged=BR.prototype.dataChanged;_.Z([_.g(_.CX),_.l("design:type",Object)],BR.prototype,"ytdGridStateAwareBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],BR.prototype,"componentBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],BR.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Z([_.g(_.zAW),_.l("design:type",Object)],BR.prototype,"ytBooleanLogicBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],BR.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],BR.prototype,"disableGridStateAware",void 0);_.Z([_.H(),_.l("design:type",Object)],BR.prototype,"data",void 0);_.Z([_.H({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.l("design:type",String)],BR.prototype,"panelLayout",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],BR.prototype,"animationEnabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],BR.prototype,"transitioningOut",void 0);
_.Z([_.H({computed:"computeMetadataOrder(data)"}),_.l("design:type",Boolean)],BR.prototype,"metadataOrder",void 0);_.Z([_.H({computed:"computeByline(data)"}),_.l("design:type",Object)],BR.prototype,"byline",void 0);_.Z([_.H({computed:"computeAvatarSize(data)"}),_.l("design:type",Number)],BR.prototype,"avatarSize",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],BR.prototype,"narrow",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],BR.prototype,"narrower",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],BR.prototype,"layoutStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],BR.prototype,"isCarouselInFeed",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BR.prototype,"dataChanged",null);_.Z([_.nv("yt-default-promo-panel-renderer-playing"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BR.prototype,"onPlaying",null);
_.Z([_.nv("yt-default-promo-panel-renderer-ended"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BR.prototype,"onEnded",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],BR);
_.b(BR,"ytd-default-promo-panel-renderer",function(){if(FIF!==void 0)return FIF;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return FIF=k},{mode:1});_.B9("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Yi=function(){var k=_.p.apply(this,arguments)||this;k.narrower=!1;k.dotMenuVisible=!1;k.paginationThumbnailsVisible=!1;k.active=!0;k.disableGridStateAware=!1;k.actionMap={"yt-window-resized":"onWindowResized"};return k};
_.y(Yi,_.p);_.I=Yi.prototype;_.I.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]]"}}}}}};
_.I.attached=function(){document.addEventListener("yt-page-type-changed",_.Ic(this,this.onPageTypeChange));this.currentPageSubtype=_.VYC(location.pathname);this.onWindowResized()};
_.I.detached=function(){this.jobId&&_.ZJ.cancelJob(this.jobId);this.updateSizeJobId&&_.ZJ.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Ic(this,this.onPageTypeChange))};
_.I.onPageTypeChange=function(k){this.active=k.detail.newPageSubtype===this.currentPageSubtype};
_.I.onWindowResized=function(){this.updateSize()};
_.I.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.I.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.I.setCarouselItem=function(k){k>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.ZJ.cancelJob(this.jobId);var E=this.getCurrentPanelElement();E&&E.stopVideo();this.currentItemIndex=k%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(E||(E=this.getCurrentPanelElement()),E.playVideo()):this.startRotationJob()};
_.I.scrollThumbnails=function(k){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var E=this.getCurrentPaginationElement();if(E){var S=_.Cc(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?S.style.transform="translateX(0)":(E=E.offsetWidth+8,S.style.transform="translateX(-"+E*(k-Math.ceil(Math.floor(this.overlay.offsetWidth/E)/2)+1)+"px)")}}};
_.I.onDataChanged=function(){var k=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.kq(_.ZJ,function(){var E;(E=k.getCurrentPanelElement())==null||E.updateSize();k.updateSize()}))};
_.I.getCurrentPanelElement=function(){return _.Cc(_.Cc(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.I.getCurrentPaginationElement=function(){return _.Cc(_.Cc(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.I.getNavigationClass=function(k,E){return k===E?"selected":""};
_.I.getNavigationDurationStyle=function(k){return"animation-duration:"+(this.get("data.carouselItems."+k+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.I.onNavigationTap=function(k){var E=this,S=k.model.index;S!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){E.setCarouselItem(S)}),this.autorotateActive=!1)};
_.I.onVideoThumbnailEnded=function(){var k=this;if(this.shouldRotate()){var E=this.getCurrentPaginationElement();E&&(E.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){E.classList.remove("finished");k.setNextCarouselItem()}))}};
_.I.onVideoThumbnailError=function(){this.startRotationJob()};
_.I.onVideoNotPlaying=function(){this.startRotationJob()};
_.I.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.I.startRotationJob=function(){var k=this;_.ZJ.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.ZJ.addLowPriorityJob(function(){k.getCurrentPanelElement().transitionOut().then(function(){k.setNextCarouselItem()})},this.rotationTimeout))};
_.I.computeDotMenuVisible=function(k,E){return!!k&&!!k.carouselItems&&k.carouselItems.length>1&&!k.paginationThumbnails||!!E};
_.I.computePaginationThumbnailsVisible=function(k,E){var S,R;return((R=k==null?void 0:(S=k.paginationThumbnails)==null?void 0:S.length)!=null?R:0)>1&&!E};
_.I.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.I.computePaginatorAlignment=function(k){return(k==null?void 0:k.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.I.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.I.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.I.isNarrower=function(k){return(k!=null?k:0)<BR.NARROW_VERSION_SIZE};
Yi.prototype.activeChanged=Yi.prototype.activeChanged;Yi.prototype.onVideoNotPlaying=Yi.prototype.onVideoNotPlaying;Yi.prototype.onVideoThumbnailError=Yi.prototype.onVideoThumbnailError;Yi.prototype.onVideoThumbnailEnded=Yi.prototype.onVideoThumbnailEnded;Yi.prototype.onDataChanged=Yi.prototype.onDataChanged;_.Z([_.g(_.CX),_.l("design:type",Object)],Yi.prototype,"ytdGridStateAwareBehavior",void 0);
_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],Yi.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Yi.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Yi.prototype,"currentItem",void 0);
_.Z([_.H(),_.l("design:type",Number)],Yi.prototype,"currentItemIndex",void 0);_.Z([_.H(),_.l("design:type",Number)],Yi.prototype,"rotationTimeout",void 0);_.Z([_.H(),_.l("design:type",Number)],Yi.prototype,"loopCount",void 0);_.Z([_.H({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.l("design:type",String)],Yi.prototype,"paginatorAlignment",void 0);_.Z([_.H(),_.l("design:type",Number)],Yi.prototype,"jobId",void 0);
_.Z([_.H(),_.l("design:type",Number)],Yi.prototype,"updateSizeJobId",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Yi.prototype,"isCarouselInFeed",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Yi.prototype,"narrower",void 0);_.Z([_.H({computed:"computeDotMenuVisible(data, narrower)"}),_.l("design:type",Object)],Yi.prototype,"dotMenuVisible",void 0);
_.Z([_.H({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.l("design:type",Object)],Yi.prototype,"paginationThumbnailsVisible",void 0);_.Z([_.H({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.l("design:type",String)],Yi.prototype,"layoutType",void 0);_.Z([_.H({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],Yi.prototype,"autorotateActive",void 0);_.Z([_.H(),_.l("design:type",Object)],Yi.prototype,"active",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Yi.prototype,"disableGridStateAware",void 0);_.Z([_.JO("#overlay"),_.l("design:type",HTMLElement)],Yi.prototype,"overlay",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yi.prototype,"onDataChanged",null);
_.Z([_.nv("yt-video-thumbnail-ended"),_.nv("yt-default-promo-panel-renderer-rotate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yi.prototype,"onVideoThumbnailEnded",null);_.Z([_.nv("yt-video-thumbnail-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yi.prototype,"onVideoThumbnailError",null);
_.Z([_.nv("yt-video-thumbnail-not-playing"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yi.prototype,"onVideoNotPlaying",null);_.Z([_.ac("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Yi.prototype,"activeChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Yi);
_.b(Yi,"ytd-carousel-item-renderer",function(){if(WIs!==void 0)return WIs;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return WIs=k},{mode:2});var gbr;var UAo;var HlS;var KIF;var WR=function(){var k=_.p.apply(this,arguments)||this;k.originalQuery=null;k.originalEndpoint=null;return k};
_.y(WR,_.p);WR.prototype.computeShowOriginalQueryWithoutEndpoint_=function(k,E){return!(!k||E)};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],WR.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],WR.prototype,"correctedText",void 0);_.Z([_.H(),_.l("design:type",Object)],WR.prototype,"correctedQuery",void 0);_.Z([_.H(),_.l("design:type",Object)],WR.prototype,"correctedEndpoint",void 0);_.Z([_.H(),_.l("design:type",Object)],WR.prototype,"originalText",void 0);_.Z([_.H(),_.l("design:type",Object)],WR.prototype,"originalQuery",void 0);
_.Z([_.H(),_.l("design:type",Object)],WR.prototype,"originalEndpoint",void 0);_.Z([_.H({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.l("design:type",Boolean)],WR.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.Z([_.U_({is:"yt-search-query-correction",disableElementRegistration:!0})],WR);
_.b(WR,"yt-search-query-correction",function(){if(KIF===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;HlS===void 0&&(HlS=document.createElement("template"));var R=HlS;S.call(E,R.content.cloneNode(!0),k.content.firstChild);KIF=k}k=KIF;return k},{mode:2});_.B9("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var per=function(){return _.p.apply(this,arguments)||this};
_.y(per,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],per.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],per.prototype,"data",void 0);_.Z([_.U_({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],per);
_.b(per,"yt-did-you-mean-renderer",function(){if(UAo===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;gbr===void 0&&(gbr=document.createElement("template"));var R=gbr;S.call(E,R.content.cloneNode(!0),k.content.firstChild);UAo=k}k=UAo;return k},{mode:2});var AhN;var rhs;_.B9("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var umg=function(){return _.p.apply(this,arguments)||this};
_.y(umg,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],umg.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],umg.prototype,"data",void 0);_.Z([_.U_({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],umg);
_.b(umg,"yt-including-results-for-renderer",function(){if(rhs===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;AhN===void 0&&(AhN=document.createElement("template"));var R=AhN;S.call(E,R.content.cloneNode(!0),k.content.firstChild);rhs=k}k=rhs;return k},{mode:2});var xAJ;var LIS;_.B9("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var FC=function(){return _.p.apply(this,arguments)||this};
_.y(FC,_.p);FC.prototype.computeExtraClasses_=function(k,E){var S="";k&&(S+=" "+k.toLowerCase().replace(/_/g,"-"));E&&(S+=" "+E.toLowerCase().replace(/_/g,"-"));return S};
FC.prototype.computeUrlImg_=function(){var k=this.data;k.image&&(_.Cc(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.zT(k.image.thumbnails,Number.MAX_VALUE)+")")};
FC.prototype.computeUrlImg_=FC.prototype.computeUrlImg_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],FC.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FC.prototype,"computeUrlImg_",null);_.Z([_.U_({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],FC);
_.b(FC,"yt-music-pass-feature-info-renderer",function(){if(LIS===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;xAJ===void 0&&(xAJ=document.createElement("template"));var R=xAJ;S.call(E,R.content.cloneNode(!0),k.content.firstChild);LIS=k}k=LIS;return k},{mode:2});var j1J;var DAF;_.B9("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var $Ag=function(){return _.p.apply(this,arguments)||this};
_.y($Ag,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$Ag.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$Ag.prototype,"data",void 0);_.Z([_.U_({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],$Ag);
_.b($Ag,"yt-no-results-found-showing-results-for-renderer",function(){if(DAF===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;j1J===void 0&&(j1J=document.createElement("template"));var R=j1J;S.call(E,R.content.cloneNode(!0),k.content.firstChild);DAF=k}k=DAF;return k},{mode:2});var fRJ;var vbJ;_.B9("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var blU=function(){return _.p.apply(this,arguments)||this};
_.y(blU,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],blU.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],blU.prototype,"data",void 0);_.Z([_.U_({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],blU);
_.b(blU,"yt-results-without-quotes-renderer",function(){if(vbJ===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;fRJ===void 0&&(fRJ=document.createElement("template"));var R=fRJ;S.call(E,R.content.cloneNode(!0),k.content.firstChild);vbJ=k}k=vbJ;return k},{mode:2});var ZlJ;var dAo;_.B9("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var s1k=function(){return _.p.apply(this,arguments)||this};
_.y(s1k,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],s1k.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],s1k.prototype,"data",void 0);_.Z([_.U_({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],s1k);
_.b(s1k,"yt-search-no-results-renderer",function(){if(dAo===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;ZlJ===void 0&&(ZlJ=document.createElement("template"));var R=ZlJ;S.call(E,R.content.cloneNode(!0),k.content.firstChild);dAo=k}k=dAo;return k},{mode:2});var lRS;var MhS;_.B9("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var qjo=function(){return _.p.apply(this,arguments)||this};
_.y(qjo,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qjo.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],qjo.prototype,"data",void 0);_.Z([_.U_({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],qjo);
_.b(qjo,"yt-showing-results-for-renderer",function(){if(MhS===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;lRS===void 0&&(lRS=document.createElement("template"));var R=lRS;S.call(E,R.content.cloneNode(!0),k.content.firstChild);MhS=k}k=MhS;return k},{mode:2});var ziS;var Q1X;var Ols;var GIS;var y2=function(){var k=_.p.apply(this,arguments)||this;k.answerExpanded=!1;return k};
_.y(y2,_.p);y2.prototype.toggleAnswer_=function(k){var E=_.bv(k);E&&E.classList.contains("yt-simple-endpoint")||(k.preventDefault(),k.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
y2.prototype.toggleAnswer_=y2.prototype.toggleAnswer_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],y2.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],y2.prototype,"answerExpanded",void 0);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],y2.prototype,"toggleAnswer_",null);
_.Z([_.U_({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],y2);
_.b(y2,"yt-generic-faq-question-renderer",function(){if(GIS===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Ols===void 0&&(Ols=document.createElement("template"));var R=Ols;S.call(E,R.content.cloneNode(!0),k.content.firstChild);GIS=k}k=GIS;return k},{mode:2});_.B9("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var ow=function(){return _.p.apply(this,arguments)||this};
_.y(ow,_.p);ow.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ow.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ow.prototype,"data",void 0);_.Z([_.U_({is:"yt-faq-section-renderer",disableElementRegistration:!0})],ow);
_.b(ow,"yt-faq-section-renderer",function(){if(Q1X===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;ziS===void 0&&(ziS=document.createElement("template"));var R=ziS;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Q1X=k}k=Q1X;return k},{mode:2});var CCs;var kYN;_.B9("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var XC=function(){return _.p.apply(this,arguments)||this};
_.y(XC,_.p);
XC.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"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],XC.prototype,"data",void 0);_.Z([_.U_({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],XC);
_.b(XC,"yt-offer-item-expanded-renderer",function(){if(kYN===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;CCs===void 0&&(CCs=document.createElement("template"));var R=CCs;S.call(E,R.content.cloneNode(!0),k.content.firstChild);kYN=k}k=kYN;return k},{mode:2});var E2r;var S5J;_.B9("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var gs=function(){return _.p.apply(this,arguments)||this};
_.y(gs,_.p);
gs.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"}}}}};
gs.prototype.computeFullWidthMode=function(k){return!(!k||!k.fullWidthMode)};
gs.prototype.computeBorderlessMode=function(k){return!(!k||!k.borderlessMode)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],gs.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],gs.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.l("design:type",Boolean)],gs.prototype,"fullWidthMode",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.l("design:type",Boolean)],gs.prototype,"borderlessMode",void 0);_.Z([_.U_({is:"yt-offer-item-renderer",disableElementRegistration:!0})],gs);
_.b(gs,"yt-offer-item-renderer",function(){if(S5J===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;E2r===void 0&&(E2r=document.createElement("template"));var R=E2r;S.call(E,R.content.cloneNode(!0),k.content.firstChild);S5J=k}k=S5J;return k},{mode:2});var RA$;var VTS;_.B9("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Uy=function(){return _.p.apply(this,arguments)||this};
_.y(Uy,_.p);Uy.prototype.computeAriaLevel_=function(k){return this.getLevelID_(k)};
Uy.prototype.getLevelID_=function(k){return(k=k.match(/[0-9]+$/))&&k.length==1?k[0]:"1"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Uy.prototype,"data",void 0);_.Z([_.H({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.l("design:type",String)],Uy.prototype,"ariaLevel",void 0);_.Z([_.H({value:"heading",reflectToAttribute:!0}),_.l("design:type",String)],Uy.prototype,"role",void 0);
_.Z([_.H({value:-1,reflectToAttribute:!0}),_.l("design:type",Number)],Uy.prototype,"tabindex",void 0);_.Z([_.U_({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Uy);
_.b(Uy,"yt-subscription-product-header-renderer",function(){if(VTS===void 0){var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;RA$===void 0&&(RA$=document.createElement("template"));var R=RA$;S.call(E,R.content.cloneNode(!0),k.content.firstChild);VTS=k}k=VTS;return k},{mode:2});var NYJ;var ICo;_.B9("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var HR=function(){return _.p.apply(this,arguments)||this};
_.y(HR,_.p);HR.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:_.Yv("menuRenderer"),events:!0}}};
HR.prototype.onStampFinished_=function(){_.Cc(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
HR.prototype.onStampFinished_=HR.prototype.onStampFinished_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],HR.prototype,"data",void 0);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HR.prototype,"onStampFinished_",null);
_.Z([_.U_({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],HR);
_.b(HR,"yt-subscription-product-renderer",function(){if(ICo===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;NYJ===void 0&&(NYJ=document.createElement("template"));var R=NYJ;S.call(E,R.content.cloneNode(!0),k.content.firstChild);ICo=k}k=ICo;return k},{mode:2});var n2X;var ijS;_.B9("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var KB=function(){return _.p.apply(this,arguments)||this};
_.y(KB,_.p);KB.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
KB.prototype.imageScrimColorValuesChanged_=function(){var k,E=(k=this.data)==null?void 0:k.imageScrimColorValues;_.Cc(this.hostElement).querySelector("#scrim").style.backgroundColor=E?_.Kc(E[0]):"transparent"};
KB.prototype.imageScrimColorValuesChanged_=KB.prototype.imageScrimColorValuesChanged_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],KB.prototype,"data",void 0);
_.Z([_.il("data.imageScrimColorValues"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KB.prototype,"imageScrimColorValuesChanged_",null);_.Z([_.U_({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],KB);
_.b(KB,"yt-subscription-product-upsell-offer-renderer",function(){if(ijS===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;n2X===void 0&&(n2X=document.createElement("template"));var R=n2X;S.call(E,R.content.cloneNode(!0),k.content.firstChild);ijS=k}k=ijS;return k},{mode:2});var hAU;var JCo;var cC$;var mpN;var eAU;var aCN;var pB=function(){return _.p.apply(this,arguments)||this};
_.y(pB,_.p);pB.prototype.onYtServiceRequestError_=function(k){_.A0(this.hostElement,k.detail.error.message)};
pB.prototype.onYtServiceRequestError_=pB.prototype.onYtServiceRequestError_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],pB.prototype,"data",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],pB.prototype,"collapsible",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],pB.prototype,"isManageRed",void 0);
_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],pB.prototype,"onYtServiceRequestError_",null);_.Z([_.U_({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],pB);
_.b(pB,"yt-single-ypc-offer-renderer",function(){if(aCN===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;eAU===void 0&&(eAU=document.createElement("template"));var R=eAU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);aCN=k}k=aCN;return k},{mode:2});var Am=function(){return _.p.apply(this,arguments)||this};
_.y(Am,_.p);Am.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Am.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Am.prototype,"isManageRed",void 0);_.Z([_.U_({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],Am);
_.b(Am,"yt-single-ypc-offer-list-renderer",function(){if(mpN===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;cC$===void 0&&(cC$=document.createElement("template"));var R=cC$;S.call(E,R.content.cloneNode(!0),k.content.firstChild);mpN=k}k=mpN;return k},{mode:2});var tTX;var TYJ;_.B9("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var rs=function(){return _.p.apply(this,arguments)||this};
_.y(rs,_.p);rs.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rs.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rs.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],rs.prototype,"isManageRed",void 0);_.Z([_.U_({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],rs);
_.b(rs,"yt-ypc-offers-list-renderer",function(){if(TYJ===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;tTX===void 0&&(tTX=document.createElement("template"));var R=tTX;S.call(E,R.content.cloneNode(!0),k.content.firstChild);TYJ=k}k=TYJ;return k},{mode:2});_.B9("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var u7=function(){return _.p.apply(this,arguments)||this};
_.y(u7,_.p);
u7.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}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],u7.prototype,"data",void 0);_.Z([_.U_({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],u7);
_.b(u7,"yt-unlimited-manage-subscription-page-renderer",function(){if(JCo===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;hAU===void 0&&(hAU=document.createElement("template"));var R=hAU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);JCo=k}k=JCo;return k},{mode:2});var wzk;var P4s;var xi=function(){return _.p.apply(this,arguments)||this};
_.y(xi,_.p);_.I=xi.prototype;_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.I.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.onKeypress_=function(k){k.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.I.handleHeaderTap_=function(k){k.preventDefault();k.stopPropagation();this.expandOffers_()};
_.I.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.I.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
xi.prototype.dataChanged_=xi.prototype.dataChanged_;_.Z([_.g(_.YD),_.l("design:type",Object)],xi.prototype,"ironA11yKeysBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],xi.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],xi.prototype,"offersVisible_",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xi.prototype,"dataChanged_",null);_.Z([_.U_({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],xi);
_.b(xi,"yt-collapsible-ypc-offer-renderer",function(){if(P4s===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;wzk===void 0&&(wzk=document.createElement("template"));var R=wzk;S.call(E,R.content.cloneNode(!0),k.content.firstChild);P4s=k}k=P4s;return k},{mode:2});var BYU;var Y5U;_.B9("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var LB=function(){return _.p.apply(this,arguments)||this};
_.y(LB,_.p);_.I=LB.prototype;_.I.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.I.dataChanged_=function(){if(this.data.backgroundImage){var k=_.zT(this.data.backgroundImage.thumbnails,screen.width),E=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=E?"linear-gradient(180deg, "+E+"), url("+k+")":"url("+k+")";this.data.gtmId&&_.$N(this.data.gtmId,_.Mg("GL",""))}};
_.I.onYtServiceRequestError_=function(k){_.A0(this.hostElement,k.detail.error.message)};
_.I.getScrimLayerColorStops_=function(){var k,E,S=(k=this.data.unlimitedHeaderV2Data)==null?void 0:(E=k.unlimitedHeaderV2Data)==null?void 0:E.scrimLayerColors;if(!S)return null;var R=100/S.length;return S.map(function(V,N){N*=R;return _.Kc(V)+" "+N+"%"}).join(",")};
_.I.computeLogoWithPadding=function(k){var E,S,R;return(k=(E=k.unlimitedLogoImage)==null?void 0:(S=E.thumbnails)==null?void 0:(R=S[0])==null?void 0:R.height)&&k%31===0?!0:!1};
LB.prototype.onYtServiceRequestError_=LB.prototype.onYtServiceRequestError_;LB.prototype.dataChanged_=LB.prototype.dataChanged_;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.Z([_.H({computed:"computeLogoWithPadding(data)"}),_.l("design:type",Boolean)],LB.prototype,"logoWithPadding",void 0);
_.Z([_.H(),_.l("design:type",Object)],LB.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LB.prototype,"dataChanged_",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],LB.prototype,"onYtServiceRequestError_",null);_.Z([_.U_({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],LB);
_.b(LB,"yt-unlimited-page-header-renderer",function(){if(Y5U===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;BYU===void 0&&(BYU=document.createElement("template"));var R=BYU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Y5U=k}k=Y5U;return k},{mode:2});var WdJ;var FdU;_.B9("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var jU=function(){return _.p.apply(this,arguments)||this};
_.y(jU,_.p);jU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],jU.prototype,"data",void 0);_.Z([_.U_({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],jU);
_.b(jU,"yt-unlimited-user-notification-renderer",function(){if(FdU===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;WdJ===void 0&&(WdJ=document.createElement("template"));var R=WdJ;S.call(E,R.content.cloneNode(!0),k.content.firstChild);FdU=k}k=FdU;return k},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.QRY=_.f(function(k){var E=_.dJ(k,{numberOfChips:5}).numberOfChips;return _.e("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.e(_.jw,{each:function(){return Array(E==null?void 0:E())}},function(){return _.e("div",{class:"ytGhostChipShelfChip"})}))},"Ti");_.OcG=_.f(function(k){var E=function(){var h;return((h=k.data)==null?void 0:h.call(k).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},S=_.RE(),R=_.en().resolve(_.$X);
_.vC(function(){requestAnimationFrame(function(){var h;(h=S.lottieEl)==null||h.addEventListener("DOMLoaded",function(){var J;(J=k.onLottieLoaded)==null||J.call(k)})})});
var V=function(){var h;return(h=k.data)==null?void 0:h.call(k).loadingAnimationA11yLabel},N={};
return _.e("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var h;return((h=k.data)==null?void 0:h.call(k).targetId)||""},
"aria-label":function(){return V()||""},
role:function(){return V()?"progressbar":void 0}},_.e(_.KG,{"aria-hidden":"true",
className:_.SQ((N.ytChatLoadingViewModelRtl=R==="rtl",N)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:E()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||E()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:E()}}},
animationRef:S}))},"Vi");
}catch(e){_._DumpException(e)}
try{
var KFU,pna,AwI,utW,xmW,LF2,js0,Dmt,$mx,flP,M9G,L0,llU,bZA,sst,dm3,ZZU,v6T,q2t,zRW,QsT,OZP,jW,G2x,C2x,SJ0,$3,k9R,bp,Dc,f0,EFG,v6,RGI,VXW,NcY,Iwa,nFT,ift,hGA,cB2,m6A,eGa,awT,tXI,TcR,wkP,PcU,Bcx,WtU,Ft3,yBP,XkG,U6t,Kta,pk3,ABG,rBU,x6A,LtA,jda,D6a,$63,fwP,vFY,ZfA,MXT,lw0,d6U,qJW,sdR,zG0,Cc3,G9A,QdT,OfP,dK,kRT,StY,RPR,VmP,JIG,cIP,meI,eP2,aZa,tmY,TWW,wiW,PWx,BWP,WSt,FSW,yIU,ouW,XiR,gut,UeP,HIT,pi0,nux;
_.up=function(k){var E=new _.LC("Error accessing DB");return _.r7m().then(function(S){return new Promise(function(R,V){try{var N=S.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(k);N.onsuccess=function(){var h=N.result;R(h?h.value:null)};
N.onerror=function(){E.params={key:k,source:"onerror"};V(E)}}catch(h){E.params={key:k,
thrownError:String(h)},V(E)}})},function(){return null})};
_.HZ3=function(k,E){var S=_.JEI(E);S!=="javascript:"&&S!=="data:"&&k.setAttribute("href",E)};
KFU=function(k,E){return _.Ep(k.entities,"inlineExpansionEntity",E)};
pna=function(k,E){return _.Ep(k.entities,"flowStateEntity",E)};
AwI=function(k,E){if(k&&E){var S=_.h0();S().set(k,E);_.tJI(S())}};
_.rwt=function(k,E){if(k&&E){var S=_.h0();S().set(k,E);_.tJI(S())}};
utW=function(k,E){return _.Ep(k.entities,"contextNoteUserRatingEntityPayload",E)};
xmW=function(k){return _.jh(k,function(E){return E.languageCode==="en"})};
LF2=function(k){var E=x3;if(_.vfP(k))k.setOption("captions","stickyLoading",{}),k.setOption("captions","track",{});else{var S=_.jh(_.Bsl(k),function(R){return R.displayName===E});
k.setOption("captions","track",S)}};
js0=function(k){if(!k)return 0;var E=k.getPresentingPlayerType(),S=k.getVideoData();return S&&S.isLive?(k=k.getProgressState(E),k.seekableEnd-k.seekableStart):k.getDuration(E)};
Dmt=function(k,E){for(var S=_.n(Object.keys(k)),R=S.next();!R.done;R=S.next())if(R=R.value,k[R]!==E[R])return!1;return!0};
$mx=function(){return document.getElementById("player-control-overlay")};
flP=function(k){k!==-1&&!_.Y("player_controls_log_creation_killswitch")&&$mx()&&(_.o_("pcu_cs",k),_.o_("pcu_ce"))};
M9G=function(k,E){var S=_.Zk(k,{}),R=v6T("top",E),V=v6T("bottom",E),N=v6T("left",E),h=v6T("right",E);return _.nU({top:function(){return L0(S().position,R)},
bottom:function(){return L0(S().position,V)},
left:function(){return L0(S().position,N)},
right:function(){return L0(S().position,h)},
position:function(){return L0(S().positionType,bZA)},
height:function(){return L0(S().height,jW)},
width:function(){return L0(S().width,jW)},
"min-width":function(){return L0(S().minWidth,jW)},
"min-height":function(){return L0(S().minHeight,jW)},
"max-width":function(){return L0(S().maxWidth,jW)},
"max-height":function(){return L0(S().maxHeight,jW)},
"aspect-ratio":function(){return L0(S().aspectRatio,String)},
"margin-top":function(){return L0(S().margin,R)},
"margin-bottom":function(){return L0(S().margin,V)},
"margin-left":function(){return L0(S().margin,N)},
"margin-right":function(){return L0(S().margin,h)},
"padding-top":function(){return L0(S().padding,R)},
"padding-bottom":function(){return L0(S().padding,V)},
"padding-left":function(){return L0(S().padding,N)},
"padding-right":function(){return L0(S().padding,h)},
"flex-direction":function(){return L0(S().flexDirection,ZZU)},
"justify-content":function(){return L0(S().justifyContent,dm3)},
"align-items":function(){return L0(S().alignItems,sst)},
"flex-grow":function(){return L0(S().flexGrow,String)},
"flex-shrink":function(){return L0(S().flexShrink,String)},
"flex-basis":function(){return L0(S().flexBasis,jW)},
"align-self":function(){return L0(S().alignSelf,sst)},
"flex-wrap":function(){return L0(S().flexWrap,llU)},
"align-content":function(){return L0(S().alignContent,sst)}})};
L0=function(k,E){return k!==void 0?E(k):void 0};
llU=function(k){switch(k){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
bZA=function(k){switch(k){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
sst=function(k){switch(k){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"}};
dm3=function(k){switch(k){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"}};
ZZU=function(k){switch(k){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"}};
v6T=function(k,E){var S=E==="rtl";switch(k){case "top":var R=q2t;break;case "bottom":R=zRW;break;case "left":R=QsT;break;default:R=OZP}return function(V){return L0(R(V,S),jW)}};
q2t=function(k){var E=k.top;var S=k.vertical;k=k.all;var R;return(R=E!=null?E:S)!=null?R:k};
zRW=function(k){var E=k.bottom;var S=k.vertical;k=k.all;var R;return(R=E!=null?E:S)!=null?R:k};
QsT=function(k,E){var S=k.left;var R=k.end;var V=k.start;var N=k.horizontal;k=k.all;var h,J;return(J=(h=S!=null?S:E?R:V)!=null?h:N)!=null?J:k};
OZP=function(k,E){var S=k.right;var R=k.end;var V=k.start;var N=k.horizontal;k=k.all;var h,J;return(J=(h=S!=null?S:E?V:R)!=null?h:N)!=null?J:k};
jW=function(k){var E=k.value;switch(k.unit){case "YPC_DIMENSION_UNIT_POINT":return E+"px";case "YPC_DIMENSION_UNIT_FRACTION":return E+"%";default:return""+E}};
G2x=function(k){switch(k){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"}};
C2x=function(k){var E=k!=null?k:{};k=E.fontRole;var S=E.fontSize;E=E.fontWeight;if(k!==null&&S!==null)switch(k){case "YPC_FONT_ROLE_DISPLAY":switch(S){case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(S){case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return E===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(S){case "YPC_FONT_SIZE_XL":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return E==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
SJ0=function(k,E,S){function R(w){return Object.values(w).map(function(P){var B=P.productId;P=P.pricingOptionIndex;return Dc(V(B).pricingOptions,P).pricingOptionId})}
function V(w){return m().get(w)}
function N(w){w=R(w);S(w)}
function h(w,P){return Array.from($3(w.pricingOptions)).filter(function(B){B=_.n(B);B.next();B=B.next().value;return f0(B.pricingGroupAttributes,P)}).map(function(B){return _.n(B).next().value})}
var J=v6([k,E],function(w,P){var B=w==null?void 0:w.selectedPricingOptions;w={};var F=!0;if(B&&P.length)for(var K=_.n(P),r=K.next();!r.done;r=K.next()){r=r.value;var x=k9R(r.pricingOptions,function(M){a:{M=M.pricingOptionId;for(var d=_.n(B),z=d.next();!z.done;z=d.next())if(z.value===M){M=!0;break a}M=!1}return M});
if(x>=0){F=!1;var L=Dc(r.pricingOptions,x),q=void 0;w[r.groupId]={productId:r.productId,pricingOptionIndex:x,pricingGroupAttributes:(q=L)==null?void 0:q.pricingGroupAttributes}}}F&&P.length&&(F=Dc(P[0].pricingOptions,0),w[P[0].groupId]={productId:P[0].productId,pricingOptionIndex:0,pricingGroupAttributes:F==null?void 0:F.pricingGroupAttributes});return w}),m=v6([E],function(w){return new Map(w.map(function(P){return[P.productId,
P]}))}),a=v6([E],function(w){var P=new Map;
w=_.n(w);for(var B=w.next();!B.done;B=w.next()){var F=B.value;B=F.groupId;var K=F.productId;F=_.n($3(F.pricingOptions));for(var r=F.next();!r.done;r=F.next()){var x=_.n(r.value);r=x.next().value;x=x.next().value;P.set(x.pricingOptionId,{groupId:B,productId:K,index:r,pricingOption:x,pricingGroupAttributes:x.pricingGroupAttributes})}}return P}),T=v6([E],function(w){var P=new Map;
w=_.n(w);for(var B=w.next();!B.done;B=w.next()){var F=B.value;B=F.groupId;var K=F.productId,r=void 0;F=_.n($3((r=F.pricingGroups)!=null?r:[]));for(r=F.next();!r.done;r=F.next()){var x=_.n(r.value);r=x.next().value;x=x.next().value;P.set(x.pricingGroupId,{groupId:B,productId:K,index:r,pricingGroup:x,pricingGroupAttributes:x.pricingGroupAttributes})}}return P});
return{getProductById:V,isProductSelected:function(w){var P=V(w);if(!P)return!1;var B;return((B=J()[P.groupId])==null?void 0:B.productId)===w},
getSelectedPricingOptions:function(){return Object.values(J()).map(function(w){var P=w.productId;w=w.pricingOptionIndex;return Dc(V(P).pricingOptions,w)})},
getSelectedPricingGroupAttributesByGroupId:function(w){var P;return(w=(P=J()[w])==null?void 0:P.pricingGroupAttributes)?Array.from(w):void 0},
getSelectedProductByGroupId:function(w){var P;return(w=(P=J()[w])==null?void 0:P.productId)?V(w):void 0},
onProductSelected:function(w){var P=V(w);if(P){var B=J(),F;if(((F=B[P.groupId])==null?void 0:F.productId)!==w){var K=(F=(K=B[P.groupId])==null?void 0:K.productId)?V(F):void 0;var r;F=(r=B[P.groupId])==null?void 0:r.pricingGroupAttributes;var x;r=(x=B[P.groupId])==null?void 0:x.pricingOptionIndex;if(K&&r!==void 0)if(F){x=h(K,F).indexOf(r);if(x===-1)throw Error("Uj`"+r+"`"+K.productId);r=h(P,F);x=x<r.length?r[x]:r.length>0?r[0]:0}else x=r<bp(P.pricingOptions)?r:0;else x=0;bp(P.pricingOptions)<=x&&(x=
0);r=Dc(P.pricingOptions,x);var L;K={};N(Object.assign({},B,(K[P.groupId]={productId:w,pricingOptionIndex:x,pricingGroupAttributes:(L=r==null?void 0:r.pricingGroupAttributes)!=null?L:[]},K)))}}},
onPricingOptionSelected:function(w){var P=a().get(w);if(P){w=P.groupId;var B=P.productId;P=P.index;var F=J(),K,r;if(((K=F[w])==null?void 0:K.productId)!==B||((r=F[w])==null?void 0:r.pricingOptionIndex)!==P){var x,L;K={};N(Object.assign({},F,(K[w]={productId:B,pricingOptionIndex:P,pricingGroupAttributes:(L=(x=F[w])==null?void 0:x.pricingGroupAttributes)!=null?L:[]},K)))}}},
onPricingGroupSelected:function(w){var P=T().get(w);if(P){w=P.groupId;var B=P.productId,F=P.pricingGroup.pricingGroupAttributes,K=V(B);if(K){P=J();var r=P[w].pricingGroupAttributes,x;if(((x=P[w])==null?void 0:x.productId)!==B||!f0(EFG(r,bp(F)),F)){x=Array.from(F);for(F=bp(F);F<bp(r);F++){var L="",q=!1,M=Array.from(x);M.push(Dc(r,F));for(var d=_.n(K.pricingGroups),z=d.next();!z.done;z=d.next())if(z=z.value,f0(z.pricingGroupAttributes,M)){x.push(Dc(r,F));q=!0;break}else L===""&&bp(z.pricingGroupAttributes)===
M.length&&f0(EFG(z.pricingGroupAttributes,x.length),x)&&(L=Dc(z.pricingGroupAttributes,F));q||x.push(L)}L=P[w].pricingOptionIndex;F=[];q=new Map;M=0;K=_.n($3(K.pricingOptions));for(d=K.next();!d.done;d=K.next())z=_.n(d.value),d=z.next().value,z=z.next().value,f0(z.pricingGroupAttributes,x)&&F.push(d),f0(z.pricingGroupAttributes,r)&&q.set(d,M++);F.length===0?r=0:(r=q.get(L),r=r!==void 0&&r<F.length?F[r]:F[0]);K={};N(Object.assign({},P,(K[w]={productId:B,pricingOptionIndex:r,pricingGroupAttributes:x},
K)))}}}},
onClearGroupSelected:function(w){var P=J();P[w]&&(P=Object.fromEntries(Object.entries(P).filter(function(B){return _.n(B).next().value!==w})),N(P))}}};
$3=function(k){return function S(){var R,V,N,h,J;return _.lr(S,function(m){switch(m.nextAddress){case 1:_.X5(m,2),R=0,V=_.n(k),N=V.next();case 4:if(N.done){m.jumpTo(2);break}h=N.value;J=_.Mh;return m.yield([R++,h],7);case 7:J(m.yieldResult);N=V.next();m.jumpTo(4);break;case 2:_.ob(m),_.gP(m,0)}})}()};
k9R=function(k,E){k=_.n($3(k));for(var S=k.next();!S.done;S=k.next()){var R=_.n(S.value);S=R.next().value;R=R.next().value;if(E(R))return S}return-1};
bp=function(k){var E=0;for(k=k[Symbol.iterator]();!k.next().done;)++E;return E};
Dc=function(k,E){k=_.n($3(k));for(var S=k.next();!S.done;S=k.next()){var R=_.n(S.value);S=R.next().value;R=R.next().value;if(S===E)return R}};
f0=function(k,E){if(!k&&!E)return!0;if(!k||!E)return!1;k=Array.from(k);E=Array.from(E);if(k.length!==E.length)return!1;for(var S=0;S<k.length;S++)if(k[S]!==E[S])return!1;return!0};
EFG=function(k,E){E=E===void 0?Infinity:E;var S=[];k=_.n($3(k));for(var R=k.next();!R.done;R=k.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;if(R>=E)break;R>=0&&S.push(V)}return S};
v6=function(k,E){var S,R;return function(){for(var V=k.map(function(h){return h()}),N=0;N<V.length;N++)if(!S||V[N]!==S[N]){S=V;
R=E.apply(null,_.$e(V));break}return R}};
RGI=function(k,E,S){var R=[];k=_.n(k);for(var V=k.next();!V.done;V=k.next()){V=V.value;var N=void 0;((N=E)==null?0:N.length)&&!f0(V.pricingGroupAttributes,E)||R.push({pricingOption:V,isSelected:S.includes(V.pricingOptionId)})}return R};
VXW=function(k,E){return _.Ep(k.entities,"pdpStateEntity",E)};
NcY=function(k){var E,S;return!!(k.productId&&k.groupId&&((E=k.pricingOptions)==null?0:E.length)&&k.pricingOptions.every(function(R){return R.pricingOptionId})&&((S=k.pricingGroups)==null||!S.length||Array.isArray(k.pricingGroups)&&k.pricingGroups.every(function(R){return R.pricingGroupId&&R.pricingGroupAttributes&&R.pricingGroupAttributes.length>0})))};
Iwa=function(k,E,S){return SJ0(k,v6([E],function(R){return R.filter(NcY)}),S)};
nFT=function(k){var E=void 0,S;for(S in k)if(k.hasOwnProperty(S)){E=S;break}return E};
ift=function(k,E){return E.length===0?[k]:[k.slice(0,E[0]),k.slice(E[0])].filter(function(S){return S.length>0})};
hGA=function(k){switch(k){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""}};
cB2=function(k,E,S,R){R=Object.assign({},R);_.Fd(R,JBP,{selectedOptionId:k,primaryButtonOverride:S});_.vu().dispatch(_.mj("flowStateEntity",E,R))};
m6A=function(k){switch(k){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"}};
eGa=function(k){switch(k){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"}};
awT=function(k,E){if(E)return"ytCardViewModelCardSelected";switch(k){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
tXI=function(k,E){E.includes(k)?E=E.filter(function(S){return S!==k}):E.push(k);
return[].concat(_.$e(E))};
TcR=function(k,E){return _.Ep(k.entities,"contextNoteFeedEntityPayload",E)};
wkP=function(k,E){switch(k){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return E==null?void 0:E.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return E==null?void 0:E.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return E==null?void 0:E.ratingNotHelpfulText}};
PcU=function(k,E){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:k.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:k.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:k.deleteDialogTitle}]},dialogMessages:[{runs:[{text:k.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:k.deleteActionText}]},command:{performCommentActionEndpoint:{action:E}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:k.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
Bcx=function(k,E,S){var R;if(k&&((R=E())==null?0:R.includes(k))){var V;S((V=E())==null?void 0:V.filter(function(N){return N!==k}))}else S([].concat(_.$e(E()||[]),[k]))};
WtU=function(k,E){if(k){var S=[];E=_.n((E==null?void 0:E.checkboxes)||[]);for(var R=E.next();!R.done;R=E.next()){R=_.W(R.value,YJG);var V=void 0;((V=R)==null?0:V.value)&&k.includes(R.key||"")&&S.push(R.value)}return S}};
Ft3=function(k){k.style.height="auto";k.style.height=k.scrollHeight+"px"};
yBP=function(k){return[k.syncStep,k.asyncStep].filter(function(E){return E!==void 0})};
XkG=function(k){var E,S,R;if(k=(E=k.structuredContextNoteFormSchema)==null?void 0:(S=E.fieldSchemas)==null?void 0:(R=S.noteBody)==null?void 0:R.validationSchema)for(E=_.n(yBP(k)),S=E.next();!S.done;S=E.next()){S=S.value.rules;if(!S)break;S=_.n(S);for(S=S.next();!S.done;S=S.next())return _.W(S.value,_.oF0)}};
U6t=function(k){if(k){k=_.n(yBP(k));for(var E=k.next();!E.done;E=k.next()){E=E.value.rules;if(!E)break;E=_.n(E);for(E=E.next();!E.done;E=E.next())return _.W(E.value,gFx)}}};
Kta=function(k){if(k){k=_.n(yBP(k));for(var E=k.next();!E.done;E=k.next()){E=E.value.rules;if(!E)break;E=_.n(E);for(E=E.next();!E.done;E=E.next())return _.W(E.value,Hfa)}}};
pk3=function(k){k=/^https?:\/\//.test(k)?k:"http://"+k;try{var E=_.Gx(k)}catch(S){return!1}if(E.toString()!==k)return!1;k=E.JSC$10027_domain_.split(".");return k.length>1&&k.every(function(S){return!!S})};
ABG=function(k,E,S,R){var V;R=(V=R.structuredContextNoteData)==null?void 0:V.createCommentEndpoint;if(V=_.W(R,_.nPT))return V.commentText=_.DE(k),V.videoPositionMention=E,V.sources=S,R};
rBU=function(k){return k==null?void 0:k.stringValue};
x6A=function(k,E,S){k=k.map(function(R,V){return{listItemViewModel:{title:R.title,subtitle:R.subtitle,leadingImage:R.leadingImage,trailingImage:V===E?unI:void 0,rendererContext:{commandContext:{onTap:R.onTap}}}}});
return Object.assign({},S&&{header:{panelHeaderViewModel:{title:S}}},{content:{listViewModel:{listItems:k}}})};
LtA=function(k,E){if(k&&E)switch(E){case "SELECTION_TYPE_BOOL":return k.boolValue;case "SELECTION_TYPE_INT":return k.intValue;case "SELECTION_TYPE_STRING":return k.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return k.privacyStatusValue}};
jda=function(k){var E;k=(E=k.options)==null?void 0:E.findIndex(function(S){return S.isSelected});
return k===void 0?-1:k};
D6a=function(k,E,S){var R=function(){return k().label},V={},N=_.SQ("ytDropdownViewModelLabel",(V.ytDropdownViewModelLabelError=E,V));
return _.e(_.t,{cond:function(){return k().label&&!(S()===-1&&k().label&&!k().placeholderText)},
then:function(){return _.e("div",{class:N},_.e(_.VB,{text:R}))}})};
$63=function(k,E){var S={};S=_.SQ("ytDropdownViewModelTitle",(S.ytDropdownViewModelTitlePlaceholder=function(){return E()===-1},S));
return _.e("div",{class:S},_.e(_.VB,{text:function(){var R=k();var V=E();if(V===-1)R=R.placeholderText?R.placeholderText:R.label;else{var N,h;R=(N=R.options)==null?void 0:(h=N[V])==null?void 0:h.title}return R}}))};
fwP=function(k,E){var S=function(){return k().hint};
return _.e(_.tj,null,_.e(_.t,{cond:function(){return S()&&!E()},
then:function(){return _.e("div",{class:_.SQ("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.e(_.VB,{text:S,className:"ytDropdownViewModelSupportText"}))}}),_.e(_.t,{cond:E,
then:function(){return _.e("div",{id:"dropdown-view-model-error",role:"alert",class:_.SQ("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.e(_.i_,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.e(_.VB,{text:E,className:"ytDropdownViewModelSupportText"}))}}))};
vFY=function(k,E){var S=_.en().resolve(_.SoT);_.b$(function(){var R=k().id;R&&S!=null&&S.dropdownMap.set(R,E)})};
ZfA=function(k){k=_.W(k.scheduleButton,bfa);k=_.W(k==null?void 0:k.primaryButton,_.qz);k=_.W(k==null?void 0:k.onTap,_.gX);var E,S,R=((S=_.W(k,_.CI))==null?void 0:S.commands)||[k];S=_.n(R);for(k=S.next();!k.done&&!(E=_.W(k.value,_.Njj));k=S.next());var V;E=(V=E)==null?void 0:V.createBroadcastRequest;if(!E)throw Error("ak");return E};
MXT=function(k,E,S){S=S===void 0?{}:S;var R,V;return _.c(function(N){if(R=d6U(E))return N.return(R);(V=sdR(k,E,S))&&lw0(E,V);return N.return(V)})};
lw0=function(k,E){var S=qJW(k);S&&E.then(function(R){_.en().resolve(_.Fk).put(S,new _.yD({innertubeResponse:R}))})};
d6U=function(k){if(k=qJW(k)){var E=_.en().resolve(_.Fk);if(E.has(k))return E.get(k).then(function(S){return S==null?void 0:_.vZ(S)})}return null};
qJW=function(k){var E=_.W(k.endpoint,_.jm);if(E!=null&&E.videoId)return E={videoId:E.videoId},_.Y("web_imp_player_mute_params")&&(E.mutedAtStart=k.startPlaybackInMutedState),_.LI("inline_playback",E)};
sdR=function(k,E,S){k=_.xv(k,E.endpoint,zG0(E,S)).then(function(R){return R});
return Promise.resolve(k)};
zG0=function(k,E){E=_.Y("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!k.startPlaybackInMutedState},E):Object.assign({},{vis:5,autonav:"1"},E);var S;E={contentPlaybackContext:_.m5(E,(S=_.W(k.endpoint.commandMetadata,_.Sd))==null?void 0:S.url,window.location.href)};_.Y("web_imp_player_mute_params")&&(E.overrideMutedAtStart=!k.startPlaybackInMutedState);return E};
Cc3=function(k,E){var S=window.MutationObserver;S&&(Zc=new S(function(R,V){R=_.n(R);for(var N=R.next();!N.done;N=R.next()){N=N.value;var h;if(h=N.type==="childList"&&N.target)a:{h=k;N=QdT(N.target);h=QdT(h);for(var J=null,m=0;m<N.length;m++)if(h.includes(N[m])){if(m===0){h=!1;break a}J=N[m];break}J?(N=OfP(N,J),h=OfP(h,J),h=N<h):h=!1}if(h){E();V.disconnect();break}}}),(S=G9A())&&Zc.observe(S,{childList:!0,
subtree:!0}))};
G9A=function(){var k=document.getElementsByTagName("ytd-rich-grid-renderer");if(k.length>0)return k[0];k=document.getElementsByTagName("ytd-section-list-renderer");return k.length>0?k[0]:null};
QdT=function(k){for(var E=[];k;)E.push(k),k=k.parentElement;return E};
OfP=function(k,E){var S=Array.from(E.children);E=k.indexOf(E);return E>0?S.indexOf(k[E-1]):-1};
dK=function(k,E,S){S=S===void 0?{}:S;return _.Vi(k,S,E)};
kRT=function(k){switch(k){case "MUSIC":return!0;default:return!1}};
StY=function(k){if(k=k==null?void 0:k.find(function(R){var V,N;return((V=_.W(R,EuP))==null?void 0:(N=V.inlinePlaybackBadgeData)==null?void 0:N.replicateAsTimestamp)===!0}))if(k=_.W(k,EuP),k==null?0:k.icon){var E,S;
if((k=(E=_.JKt(k.icon))==null?void 0:(S=E.clientResource)==null?void 0:S.imageName)&&kRT(k))return k}};
RPR=function(k){return k==null?void 0:k.filter(function(E){return E.premiereTrailerBadgeRenderer})};
VmP=function(k){var E,S=k==null?void 0:(E=k.find(function(m){return m.thumbnailOverlayTimeStatusRenderer}))==null?void 0:E.thumbnailOverlayTimeStatusRenderer,R,V;
if((S==null?0:(R=S.icon)==null?0:R.iconType)&&kRT(S==null?void 0:(V=S.icon)==null?void 0:V.iconType)){var N;return{icon:S==null?void 0:(N=S.icon)==null?void 0:N.iconType}}var h;if(E=k==null?void 0:(h=k.find(function(m){return m.thumbnailOverlayBadgeViewModel}))==null?void 0:h.thumbnailOverlayBadgeViewModel)if(h=StY(E.thumbnailBadges))return{icon:h};
var J;if(k=k==null?void 0:(J=k.find(function(m){return m.thumbnailBottomOverlayViewModel}))==null?void 0:J.thumbnailBottomOverlayViewModel)if(J=StY(k.badges))return{icon:J};
return{}};
JIG=function(k,E){var S=NW3,R=_.n(_.yg(IZG(new nux(function(){},S,E)),void 0,"PAnyd")),V=R.next().value,N=R.next().value,h=new nux(function(J){N(J)},S,E);
_.vX(function(){Promise.resolve().then(function(){var J,m=(J=k())!=null?J:{};h.playerControlsData=m;_.Y("player_controls_skip_double_signal_old")&&(h.lastSeenPlayerApi=_.Fr(m.playerApi));_.Y("player_controls_skip_double_signal_old")||(h.lastSeenPlayerApi=_.Fr(m.playerApi));iIP(h)});
_.bI(function(){hPP(h)})},"HikUP");
_.bI(function(){hPP(h)});
return function(){return V()}};
cIP=function(k){return function(E){var S=k(),R={playerState:E};if(E===1){var V;(V=S.playerApi)==null||V.loadModule("captions")}if(E===0){var N;(N=S.playerApi)==null||N.unloadModule("captions")}E!==-1&&S.setState(R)}};
meI=function(k){return function(E){k().setState({playbackRate:E})}};
eP2=function(k){return function(E){var S=k(),R=S.playerApi,V=R==null?void 0:R.getVideoData(),N=(V==null?void 0:V.isLive)||!1;V=V==null?void 0:V.video_id;N={videoDuration:js0(R||void 0),isLive:N,videoId:V};N.videoId!==S.videoId&&(N=Object.assign({},_.TC1(R),N));if(E==null?0:E.playertype)N.playerType=E.playertype;if(R){N.captionsAvailable=_.TW(R);E=N;var h;V=(h=R.getStoryboardLevel(R.getNumberOfStoryboardLevels()-1))==null?void 0:h.intervalMs;E.storyboardInterval=V?V/1E3:void 0;N.captionsAvailable&&
(N.captionsEnabled=_.vfP(R))}N.volumeMuted=!(R==null||!R.isMuted());S.setState(N)}};
aZa=function(k){return function(E){var S=k(),R=S.playerApi;if(R){var V=R.getPresentingPlayerType();E={playedTime:E||0,percentLoaded:R.getVideoLoadedFraction(),playerType:V};S.playerState===0&&(E.playedTime=S.videoDuration);S.isLive&&(V=R.getProgressState(V),E.playedTime-=V.seekableStart,E.videoDuration=js0(R));if(S.playerType===1)R=!1;else{var N;if((N=S.uxConfig)==null?0:N.showCuedOverlay){var h;R=!((h=S.playerApi)==null?0:h.getPlayerStateObject(S.playerType).isDomPaused)}else R=!0}R&&delete E.playedTime;
S.setState(E)}}};
tmY=function(k){return function(){var E=k(),S,R,V,N={volume:(V=(S=E.playerApi)==null?void 0:S.getVolume())!=null?V:0,volumeMuted:!((R=E.playerApi)==null||!R.isMuted())};E.setState(N)}};
TWW=function(k){return function(){var E=k(),S=E.playerApi;if(S){var R={captionsAvailable:_.TW(S)};R.captionsAvailable&&(R.captionsEnabled=_.vfP(S));E.setState(R)}}};
wiW=function(k){return function(){var E=k();if(E.playerApi&&!(E.volumeMuted||E.controlsVisible&&E.isProbablyAScreenreaderUser)){E.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var S;(S=document.querySelector(".player-control-play-pause-icon"))==null||S.focus()}}};
PWx=function(k){return{appApi:Object.assign({},_.hSR(),{showCaptionsToggleToast:function(E){var S,R;(R=(S=k()).showCaptionsToggleToast)==null||R.call(S,E)},
openInMiniplayer:function(){var E,S;(S=(E=k()).openInMiniplayer)==null||S.call(E)}})}};
BWP=function(k,E){var S,R,V;return!!(k==null?0:(S=k.playerResponse)==null?0:(R=S.playerConfig)==null?0:(V=R.inlinePlaybackConfig)==null?0:V.showScrubbingControls)&&!(E==null?0:E.hideScrubbingControls)};
_.YtU=function(k){var E=!k.miniplayerIsActive;return[5,2,0].includes(k.miniplayerPlaybackState)||E};
WSt={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};FSW=function(k){this.onStepChangeCallback=function(){};
this.flowRenderer=k};
FSW.prototype.getCurrentStep=function(){var k=this,E;return((E=this.flowRenderer.steps)!=null?E:[]).map(function(S){return _.W(S,_.HF)}).find(function(S){return S&&S.stepId===k.currentStepId})};
yIU=function(k,E){var S=E.flowStateEntityKey,R=k.flowStates.get(S);if(R)return R;E=new FSW(E);k.flowStates.set(S,E);return E};
ouW=function(k,E){for(var S=_.n(k.flowStates.entries()),R=S.next();!R.done;R=S.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;if(V.flowRenderer.targetId===E){k.flowStates.delete(R);break}}};
XiR=function(k,E){k.onStepChangeCallback=E;k.onStepChangeCallback(k.getCurrentStep())};
gut=function(k,E){var S=k.getCurrentStep();if(!S||S.stepId!==E){var R;((R=k.flowRenderer.steps)!=null?R:[]).map(function(V){return _.W(V,_.HF)}).find(function(V){return V&&V.stepId===E})&&(k.currentStepId=E,k.onStepChangeCallback(k.getCurrentStep()))}};
UeP=function(k,E){var S,R,V,N,h;_.c(function(J){if(!E.length)return J.return([]);S=[];R=_.n(E);for(V=R.next();!V.done;V=R.next())N=V.value,(h=k.resolveIcon(N))&&!k.iconCache[h.url]&&S.push(_.uFW(k,h).then(function(){}).catch(function(){}));
return J.return(Promise.all(S))})};
HIT=function(k,E){var S=[];E=(new Set(E)).values();E=_.n(E);for(var R=E.next();!R.done;R=E.next()){R=R.value;for(var V=_.n(Object.values(WSt)),N=V.next();!N.done;N=V.next())S.push({iconName:R,iconStyle:N.value})}UeP(k.iconManager,S)};
_.KSx=function(k,E,S){var R=S!=null?S:k.iconsToFetch;R!=null&&R.length?E!==void 0&&E>=0?_.uM(_.ZJ,function(){HIT(k,R)},E):HIT(k,R):Promise.resolve()};
pi0={sharedUi:_.FA5,a11y:_.YO4,entities:{}};_.AIY=function(){return _.zX({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
nux=function(k,E,S){var R=this;this.renderFn=k;this.listeners=E;this.context=S;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var V;this.lastSeenPlayerApi=_.Fr((V=this.playerControlsData)==null?void 0:V.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.TC1(),void 0);_.Y("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){IZG(R).setState({playerState:-1});R.resetRecentlyNavigatedJobId&&_.ZJ.cancelJob(R.resetRecentlyNavigatedJobId);
R.recentlyNavigated=!0;R.resetRecentlyNavigatedJobId=_.ZJ.addJob(function(){R.recentlyNavigated=!1},8,1E4)})};
nux.prototype.setState=function(k){if(!_.Y("mweb_player_skip_no_op_state_changes")||!Dmt(k,this.state))if(this.state=Object.assign({},this.state,k),!_.Y("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)k=-1,_.Y("player_controls_log_creation_killswitch")||$mx()||(k=(0,_.ev)()),_.o_("pcu_s"),_.o_("pcu_se"),_.o_("pcu_rs"),this.renderFn(IZG(this)),_.o_("pcu_re"),flP(k),_.ZJ.addJob(function(){_.o_("pcu_ap")},8)};
var IZG=function(k){var E;var S=_.Fr((E=k.playerControlsData)==null?void 0:E.playerApi);return Object.assign({},k.state,{setState:k.boundSetState,domMeasurements:{progressBarLineRect:k.progressBarLineRect},playerApi:S,appApi:k.context.appApi,playerContainer:k.context.playerContainer,playerControlContainer:k.context.playerControlContainer,uxConfig:k.context.uxConfig})},iIP=function(k){k.listeners.forEach(function(E){k.eventListenerCleanupFunctions.push(E.register(function(){return IZG(k)},function(){return k.getData()}))})},
hPP=function(k){k.eventListenerCleanupFunctions.forEach(function(E){E()});
k.eventListenerCleanupFunctions.length=0};
nux.prototype.getData=function(){return this.playerControlsData};
var rIx=new _.z_("crowdsourcedContextUserRatingFormFlowState");var uet=new _.z_("noteViewModel");var sq=new _.z_("abuseReportFlowState");var xeU=new _.z_("feedbackFormFlowState");var LSx=new _.z_("inputBoxViewModel");_.oF0=new _.z_("lengthValidationRule");var gFx=new _.z_("regexValidationRule");var Hfa=new _.z_("selectedValidationRule");var jrW=new _.z_("talkToRecsViewModel");var DeG=new _.z_("creatorGoalSetUpFlowDropdownItemViewModel");var $eI=new _.z_("creatorGoalSetUpFlowDropdownViewModel");var EuP=new _.z_("thumbnailBadgeViewModel");var fZG=new _.z_("checkboxGroupViewModel");var YJG=new _.z_("checkboxItemViewModel");_.lp=new _.z_("radioButtonGroupViewModel");var vuY=new _.z_("radioButtonItemViewModel");var bfa=new _.z_("panelFooterViewModel");var bII=new _.z_("ypcCancelRecurrenceCommand");var ZI0=new _.z_("cancellationFlowState");var JBP=new _.z_("premiumPurchaseFlowState");var dea=new _.z_("surveyAnswerCardRenderer");var srW=new _.z_("showMoreButtonRenderer");var lZR;var Mmt,qtG=function(){if(Mmt!==void 0)return Mmt;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;lZR===void 0&&(lZR=document.createElement("template"));var R=lZR;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return Mmt=k};var MS=function(){var k=_.p.apply(this,arguments)||this;k.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";k.goalDescription="";k.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";k.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";k.startButtonId="start-button";k.exampleButtonId="example-button";return k};
_.y(MS,_.p);_.I=MS.prototype;_.I.getGoalDropdownItems=function(){var k,E;return(E=_.W((k=this.data)==null?void 0:k.purchaseTargetDropdown,$eI))==null?void 0:E.dropdownItems};
_.I.getTimerDropdownItems=function(){var k,E;return(E=_.W((k=this.data)==null?void 0:k.timerDropdown,$eI))==null?void 0:E.dropdownItems};
_.I.getColorDropdownItems=function(){var k,E;return(E=_.W((k=this.data)==null?void 0:k.colorDropdown,$eI))==null?void 0:E.dropdownItems};
_.I.getDropdownItemText=function(k){var E;return(E=_.W(k,DeG))==null?void 0:E.itemLabel};
_.I.getDropdownItemValue=function(k){k=_.W(k,DeG);return(k==null?void 0:k.timeLimit)||(k==null?void 0:k.purchaseTarget)||(k==null?void 0:k.eligiblePurchaseType)};
_.I.updateFlowState=function(k){_.qe(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:k}])};
_.I.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.I.updateGoalValue=function(k){this.goal=k.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.I.onTextValueChanged=function(k){this.goalDescription=k.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.I.updateTimerValue=function(k){this.timer=k.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.I.updateTierValue=function(k){this.tier=k.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.I.getButtonViewModel=function(k){k=(k==null?void 0:k.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var E,S=_.W((E=this.data)==null?void 0:E.startGoalButton,_.qz);return Object.assign({},S,{state:k})};
_.mt.Object.defineProperties(MS,{template:{configurable:!0,enumerable:!0,get:function(){return qtG()}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],MS.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],MS.prototype,"goal",void 0);_.Z([_.H(),_.l("design:type",Object)],MS.prototype,"goalDescription",void 0);_.Z([_.H(),_.l("design:type",Object)],MS.prototype,"timer",void 0);_.Z([_.H(),_.l("design:type",Object)],MS.prototype,"tier",void 0);
_.Z([_.H(),_.l("design:type",Object)],MS.prototype,"startButtonId",void 0);_.Z([_.H(),_.l("design:type",Object)],MS.prototype,"exampleButtonId",void 0);_.Z([_.U_({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],MS);_.b(MS,"yt-creator-goal-set-up-flow-view-model",function(){return qtG()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var zPI;zPI=Object.assign({},{continuation:_.yuC,download:_.PyC,canvas:_.ezj,reportChannelAbuse:_.KAp,ui:_.tfA,share:_.pm8,talkToRecs:_.rup,watch:_.Za,ypc:_.$WC,radioButtonGroup:_.cUI,collabInviteLink:_.hzt},pi0,{voiceSearch:_.P6I,shorts:_.bf});_.qS=_.W9(zPI);_.Qr3=_.FS(_.qS);var OIP;var GRt;var CWR;var kX0=function(){return _.p.apply(this,arguments)||this};
_.y(kX0,_.p);_.Z([_.H(),_.l("design:type",Object)],kX0.prototype,"data",void 0);_.Z([_.U_({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],kX0);
_.b(kX0,"yt-survey-answer-card-renderer",function(){if(CWR===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;GRt===void 0&&(GRt=document.createElement("template"));var R=GRt;S.call(E,R.content.cloneNode(!0),k.content.firstChild);CWR=k}k=CWR;return k},{mode:2});var EAt;var Sv0;var zW=function(){return _.p.apply(this,arguments)||this};
_.y(zW,_.p);_.I=zW.prototype;_.I.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.I.selectedItemChanged=function(k){_.qe(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[k.feedbackToken||""]}])};
_.I.surveyAnswerCardRendererClicked=function(k){if(k.target&&_.W(k.model.item,dea)){var E=k.target;k=_.W(k.model.item,dea);k.onTapCommand?_.Ot(E,[k.onTapCommand],E):this.data.onTapCommand&&_.Ot(E,[this.data.onTapCommand],E);this.selectedItemChanged(k)}};
_.I.checkIsCancellationStyle=function(k){return k==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.I.updateSelectedItemFromBinding=function(k){this.selectedItem=k.detail.value};
zW.prototype.onSelectedItemChanged=zW.prototype.onSelectedItemChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],zW.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],zW.prototype,"selectedItem",void 0);_.Z([_.H({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.l("design:type",Boolean)],zW.prototype,"isCancellationStyle",void 0);
_.Z([_.il("selectedItem"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zW.prototype,"onSelectedItemChanged",null);_.Z([_.U_({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],zW);
_.b(zW,"yt-survey-flow-step-renderer",function(){if(Sv0===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;EAt===void 0&&(EAt=document.createElement("template"));var R=EAt;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Sv0=k}k=Sv0;return k},{mode:2});var Qa=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return k};
_.y(Qa,_.p);Qa.prototype.handleSurveyFlowStepOptionChanged=function(k){this.ytdReduxBehavior.dispatch(_.zX({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:k}));_.qe(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:k}}])};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Qa.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Qa.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Qa.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Qa);
_.b(Qa,"ytd-survey-flow-step-renderer",function(){if(OIP!==void 0)return OIP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return OIP=k},{mode:1});_.Iv3=_.f(function(k){var E=k.data;var S=k.hideDivider;var R=k.isChannelInfoCard;k={};return _.e("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.e("div",{class:_.SQ("yt-profile-identity-info-view-model__frame",(k["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!E().channelBanner},k))},_.e(RMG,{profileIdentityInfoData:E}),_.e("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.e("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.e(_.cp,{data:function(){return E().avatar}},{avatarViewModel:_.dw})),_.e(VdP,{profileIdentityInfoData:E})),_.e(_.t,{cond:function(){return E().channelDescription},
then:function(V){var N={};return _.e("div",{class:_.SQ((N["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(R==null||!R())},N["yt-profile-identity-info-view-model__channel-description"]=function(){return!(R==null?0:R())},N))},V)}}),_.e(Nqt,{profileIdentityInfoData:E}),_.e(_.t,{cond:function(){return!(S==null?0:S())},
then:function(){return _.e("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"gh");
_.Iv3.idomCompat=!0;var Nqt=_.f(function(k){var E=k.profileIdentityInfoData;return _.e("div",{class:"yt-profile-identity-info-view-model__buttons"},_.e(_.jw,{each:function(){return E().subscribeButton?[E().subscribeButton,E().channelAccess]:[E().channelAccess]}},function(S){return _.e("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.e("div",{class:"yt-profile-identity-info-view-model--button"},_.e(_.cp,{data:function(){return S}},{buttonViewModel:_.yB,
subscribeButtonViewModel:_.dR})))}))},"hh"),VdP=_.f(function(k){var E=k.profileIdentityInfoData;
return _.e("div",{class:"yt-profile-identity-info-view-model__trio"},_.e("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.e(nAa,{profileIdentityInfoData:E}),_.e(_.cp,{data:function(){return E().threeDotMenu}},{buttonViewModel:_.yB})),_.e(izT,{profileIdentityInfoData:E}))},"ih"),nAa=_.f(function(k){var E=k.profileIdentityInfoData;
return _.e("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.e("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return E().channelDisplayName}),_.e(_.t,{cond:function(){return E().verifiedOrOacBadge},
then:function(S){return _.e("div",{class:"yt-profile-identity-info-view-model__badge"},_.e(_.vM,{data:function(){return{thumbnails:[{url:S().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"jh"),RMG=_.f(function(k){var E=k.profileIdentityInfoData;
return _.e("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.e(_.cp,{data:function(){var S=E().channelBanner;if(S)return{imageBannerViewModel:{image:S.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(S){return _.e("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.e(_.km,{data:S.data,
isPositionRelative:!0}))}}))},"kh"),izT=_.f(function(k){var E=k.profileIdentityInfoData;
return _.e("div",{class:"yt-profile-identity-info-view-model__metadata"},_.e("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.e("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return E().channelHandle}),_.e(_.t,{cond:function(){return E().channelPronouns&&E().channelHandle},
then:function(){return _.e("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.e("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return E().channelPronouns})),_.e("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.e("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return E().leftOfBulletInfo}),_.e(_.t,{cond:function(){return E().leftOfBulletInfo&&E().rightOfBulletInfo},
then:function(){return _.e("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.e("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return E().rightOfBulletInfo})))},"lh");var hM2;var Oq=function(){return _.p.apply(this,arguments)||this};
_.y(Oq,_.p);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Oq.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Oq.prototype,"data",void 0);_.Z([_.D({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Oq);
_.b(Oq,"ytd-channel-history-renderer",function(){if(hM2!==void 0)return hM2;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return hM2=k},{mode:1});var JXT;var cXt=function(){return _.p.apply(this,arguments)||this};
_.y(cXt,_.p);_.Z([_.H(),_.l("design:type",Object)],cXt.prototype,"data",void 0);_.Z([_.D({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],cXt);
_.b(cXt,"ytd-feature-enablement-info-renderer",function(){if(JXT!==void 0)return JXT;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return JXT=k},{mode:1});var maI;var eMU;var GW=function(){var k=_.p.apply(this,arguments)||this;k.textBoxMaxLength=_.Y("enable_tvod_campaign_code_integration")?15:12;return k};
_.y(GW,_.p);_.I=GW.prototype;_.I.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.I.onSubmit=function(){var k=this.data.serviceEndpoint,E=_.W(k,_.xh);E&&k&&(E.couponCode=this.userInput,_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}}))};
_.I.validate=function(){var k=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=k&&!this.data.errorMessage;this.showErrorMessage=k&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.Y("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.I.computeStyle=function(k){return k};
_.I.computeShowValidationBelowInput=function(k){return k!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.I.updateUserInputFromBinding=function(k){this.userInput=k.currentTarget.value};
_.I.updateShowErrorMessageFromBinding=function(k){this.showErrorMessage=k.detail.value};
_.mt.Object.defineProperties(GW.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
GW.prototype.dataChanged=GW.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],GW.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],GW.prototype,"userInput",void 0);_.Z([_.H(),_.l("design:type",Boolean)],GW.prototype,"disableApplyButton",void 0);_.Z([_.H(),_.l("design:type",Boolean)],GW.prototype,"hideApplyButton",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],GW.prototype,"hideErrorMessage",void 0);_.Z([_.H(),_.l("design:type",Boolean)],GW.prototype,"showTick",void 0);_.Z([_.H(),_.l("design:type",Boolean)],GW.prototype,"showErrorMessage",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],GW.prototype,"couponStyle",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.l("design:type",Boolean)],GW.prototype,"showValidationBelowInput",void 0);_.Z([_.H(),_.l("design:type",Object)],GW.prototype,"textBoxMaxLength",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],GW.prototype,"dataChanged",null);
_.Z([_.U("showTick","showErrorMessage","userInput"),_.l("design:type",String),_.l("design:paramtypes",[])],GW.prototype,"validationState",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],GW);
_.b(GW,"ytd-ypc-coupon-renderer",function(){if(eMU!==void 0)return eMU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return eMU=k},{mode:1});var C0=function(){return _.p.apply(this,arguments)||this};
_.y(C0,_.p);C0.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"}}}};
C0.prototype.computeStyle=function(k){return k};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],C0.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],C0.prototype,"buttonStyle",void 0);_.Z([_.D({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],C0);
_.b(C0,"ytd-flow-bottom-bar-renderer",function(){if(maI!==void 0)return maI;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return maI=k},{mode:1});var av0;var tdP;var Tq0;var kL=function(){return _.p.apply(this,arguments)||this};
_.y(kL,_.p);kL.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
kL.prototype.focus=function(k){this.title&&_.VF(this.title,k)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],kL.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],kL.prototype,"data",void 0);_.Z([_.JO("#title"),_.l("design:type",HTMLElement)],kL.prototype,"title",void 0);_.Z([_.D({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],kL);
_.b(kL,"ytd-flow-top-bar-renderer",function(){if(Tq0!==void 0)return Tq0;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Tq0=k},{mode:1});var wEY;var PD2;var BqU;var E$=function(){return _.p.apply(this,arguments)||this};
_.y(E$,_.p);E$.prototype.freeTextValueChanged=function(){_.qe(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
E$.prototype.updateFreeTextValueFromBinding=function(k){this.freeTextValue=k.detail.value};
_.mt.Object.defineProperties(E$.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(E=(k=this.data)==null?void 0:k.responseMaxLength)!=null?E:500,R;return((R=this.freeTextValue)!=null?R:"").length>=S?"maxed-out":""}}});
E$.prototype.freeTextValueChanged=E$.prototype.freeTextValueChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],E$.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],E$.prototype,"freeTextValue",void 0);_.Z([_.JO("#user-input"),_.l("design:type",HTMLTextAreaElement)],E$.prototype,"input",void 0);
_.Z([_.U("freeTextValue"),_.l("design:type",Object),_.l("design:paramtypes",[])],E$.prototype,"characterLimitClass",null);_.Z([_.il("freeTextValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],E$.prototype,"freeTextValueChanged",null);_.Z([_.U_({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],E$);
_.b(E$,"yt-free-text-input-flow-step-renderer",function(){if(BqU===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;PD2===void 0&&(PD2=document.createElement("template"));var R=PD2;S.call(E,R.content.cloneNode(!0),k.content.firstChild);BqU=k}k=BqU;return k},{mode:2});var S0=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return k};
_.y(S0,_.p);S0.prototype.handleFreeTextFlowStepInputChanged=function(k){_.qe(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:k}}])};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],S0.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],S0.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],S0.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],S0);
_.b(S0,"ytd-free-text-input-flow-step-renderer",function(){if(wEY!==void 0)return wEY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return wEY=k},{mode:1});var YvP;var WGR;var FGa=function(){return _.p.apply(this,arguments)||this};
_.y(FGa,_.p);_.Z([_.H(),_.l("design:type",Object)],FGa.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],FGa);
_.b(FGa,"ytd-metadata-line-renderer",function(){if(WGR!==void 0)return WGR;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return WGR=k},{mode:1});var Rz=function(){return _.p.apply(this,arguments)||this};
_.y(Rz,_.p);Rz.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Rz.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Rz.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Rz.prototype,"isMasthead",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Rz);
_.b(Rz,"ytd-media-product-renderer",function(){if(YvP!==void 0)return YvP;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return YvP=k},{mode:1});var yXY;var VR=function(){return _.p.apply(this,arguments)||this};
_.y(VR,_.p);VR.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
VR.prototype.onBillboardImageLoaded=function(){_.Me(this.hostElement,"yt-refit")};
VR.prototype.onBillboardImageLoaded=VR.prototype.onBillboardImageLoaded;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],VR.prototype,"data",void 0);_.Z([_.JO("#billboardImage"),_.l("design:type",Object)],VR.prototype,"billboardImage",void 0);_.Z([_.nv("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VR.prototype,"onBillboardImageLoaded",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],VR);
_.b(VR,"ytd-billboard-masthead-renderer",function(){if(yXY!==void 0)return yXY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return yXY=k},{mode:1});var oAP;var NH=function(){var k=_.p.apply(this,arguments)||this;k.smallSize=!1;return k};
_.y(NH,_.p);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],NH.prototype,"ytComponentBehaviorType",void 0);_.Z([_.H(),_.l("design:type",Object)],NH.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],NH.prototype,"smallSize",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],NH);
_.b(NH,"ytd-bullet-formatted-string",function(){if(oAP!==void 0)return oAP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return oAP=k},{mode:1});var XEG;var Iz=function(){return _.p.apply(this,arguments)||this};
_.y(Iz,_.p);Iz.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Iz.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Iz);
_.b(Iz,"ytd-offer-detail-renderer",function(){if(XEG!==void 0)return XEG;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return XEG=k},{mode:1});var gA2;var nA=function(){return _.p.apply(this,arguments)||this};
_.y(nA,_.p);nA.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],nA.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],nA);
_.b(nA,"ytd-offer-detail-step-renderer",function(){if(gA2!==void 0)return gA2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return gA2=k},{mode:1});var Ua3;var ie=function(){var k=_.p.apply(this,arguments)||this;k.isInOfferModule=!1;return k};
_.y(ie,_.p);_.I=ie.prototype;_.I.computeHasEndpoint=function(){var k;return!((k=this.data)==null||!k.onClickCommand)};
_.I.dataChanged=function(){var k;if((k=this.data)==null?0:k.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")};
_.I.detached=function(){var k;if((k=this.data)==null?0:k.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.I.handleClickEvent=function(){var k;if((k=this.data)==null?0:k.onClickCommand){var E;this.componentBehavior.resolveCommand((E=this.data)==null?void 0:E.onClickCommand)}};
_.I.onContentKeyDown=function(k){k.key==="Enter"?this.handleClickEvent(k):k.key===" "&&k.preventDefault()};
_.I.onContentKeyUp=function(k){k.key===" "&&this.handleClickEvent(k)};
ie.prototype.dataChanged=ie.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ie.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ie.prototype,"data",void 0);_.Z([_.H({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ie.prototype,"hasEndpoint",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ie.prototype,"isInOfferModule",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ie.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],ie);
_.b(ie,"ytd-channel-masthead-renderer",function(){if(Ua3!==void 0)return Ua3;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Ua3=k},{mode:1});var HzR;var hd=function(){var k=_.p.apply(this,arguments)||this;k.thumbnailObjectFit="CONTAIN";k.thumbnailObjectPosition="LEFT";k.isExpanded=!1;return k};
_.y(hd,_.p);_.I=hd.prototype;_.I.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.I.dataChanged=function(){this.resetStates()};
_.I.computeisTapOnOfferInfoContainerEnabled=function(){var k;return((k=this.data)==null?void 0:k.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.I.onExpandBtnClick=function(){var k,E=_.W((k=this.data)==null?void 0:k.showMoreButtonRenderer,srW);E&&_.FE(_.JV(),E.trackingParams);this.isExpanded=!this.isExpanded};
_.I.onOfferInfoClick=function(k){this.isTapOnOfferInfoContainerEnabled&&(_.v9(_.vT(k)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.b_(_.vT(k)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.I.onBottomBarClick=function(){this.executeTapCommand()};
_.I.executeTapCommand=function(){var k,E=(k=this.data)==null?void 0:k.tapCommand;E&&this.ytComponentBehavior.resolveCommand(E)};
_.I.resetStates=function(){this.isExpanded=!1};
_.mt.Object.defineProperties(hd.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var k=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),E,S,R;return((E=this.data)==null?void 0:E.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&k&&!!((S=this.data)==null?0:(R=S.benefits)==null?0:R.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((E=_.W((k=this.data)==null?void 0:k.showMoreButtonRenderer,srW))==null?void 0:E.showMoreButtonTitle)||((S=this.data)==null?void 0:S.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((E=_.W((k=this.data)==null?void 0:k.showMoreButtonRenderer,srW))==null?void 0:E.showLessButtonTitle)||((S=this.data)==null?void 0:S.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var k;return(k=this.showLessButtonTitle)!=null?k:""}var E;return(E=this.showMoreButtonTitle)!=null?E:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.data)==null?void 0:k.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((E=this.data)==null?0:E.footerTitle)||((S=this.data)==null?0:S.footerSubtitle))}}});
hd.prototype.dataChanged=hd.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],hd.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],hd.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",String)],hd.prototype,"thumbnailObjectFit",void 0);
_.Z([_.H(),_.l("design:type",String)],hd.prototype,"thumbnailObjectPosition",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.l("design:type",Boolean)],hd.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.Z([_.H(),_.l("design:type",Object)],hd.prototype,"isExpanded",void 0);_.Z([_.H(),_.l("design:type",Object)],hd.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon_(data.footerIcon)"}),_.l("design:type",String)],hd.prototype,"icon",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],hd.prototype,"dataChanged",null);_.Z([_.U("data.thumbnail"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],hd.prototype,"hasThumbnail",null);_.Z([_.U("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],hd.prototype,"enableExpandButton",null);
_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],hd.prototype,"enableOfferContentIcon",null);_.Z([_.U("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.l("design:type",Object),_.l("design:paramtypes",[])],hd.prototype,"showMoreButtonTitle",null);_.Z([_.U("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.l("design:type",Object),_.l("design:paramtypes",[])],hd.prototype,"showLessButtonTitle",null);
_.Z([_.U("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.l("design:type",String),_.l("design:paramtypes",[])],hd.prototype,"expandedBtnText",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],hd.prototype,"enableBottomBar",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],hd);
_.b(hd,"ytd-offer-card-renderer",function(){if(HzR!==void 0)return HzR;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return HzR=k},{mode:1});var KGP;var Jd=function(){return _.p.apply(this,arguments)||this};
_.y(Jd,_.p);Jd.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"}}}};
Jd.prototype.onClick=function(k){if(!_.v9(k.composedPath()||[],this.hostElement,["A".toString()])){var E,S;if((k=(S=_.W((E=this.data)==null?void 0:E.actionButton,_.dZ))==null?void 0:S.command)&&!this.ytComponentBehavior.resolveCommand(k)){var R;(R=_.JV())==null||R.clickCommand(k);_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}})}}};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Jd.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Jd.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Jd.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Jd.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Jd);
_.b(Jd,"ytd-offer-content-renderer",function(){if(KGP!==void 0)return KGP;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return KGP=k},{mode:1});var pEt;var cK=function(){return _.p.apply(this,arguments)||this};
_.y(cK,_.p);cK.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.mt.Object.defineProperties(cK.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var k,E;return!((k=this.data)==null||!k.title)||!((E=this.data)==null||!E.description)}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cK.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],cK.prototype,"hasHeaderData",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],cK);
_.b(cK,"ytd-offer-section-renderer",function(){if(pEt!==void 0)return pEt;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return pEt=k},{mode:1});var AXa;var mk=function(){return _.p.apply(this,arguments)||this};
_.y(mk,_.p);
mk.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"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],mk.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],mk);
_.b(mk,"ytd-offer-selection-step-renderer",function(){if(AXa!==void 0)return AXa;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return AXa=k},{mode:1});var rXt;var e0=function(){return _.p.apply(this,arguments)||this};
_.y(e0,_.p);e0.prototype.computeStyle=function(k){return k};
e0.prototype.computeImageWidth=function(k){return k==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.Z([_.H({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.l("design:type",String)],e0.prototype,"containerStyle",void 0);_.Z([_.H({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.l("design:type",String)],e0.prototype,"imageWidth",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],e0.prototype,"data",void 0);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],e0);
_.b(e0,"ytd-confirmation-masthead-renderer",function(){if(rXt!==void 0)return rXt;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return rXt=k},{mode:1});var uy2;var az=function(){return _.p.apply(this,arguments)||this};
_.y(az,_.p);az.prototype.computeStyle=function(k){return k};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],az.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.l("design:type",String)],az.prototype,"containerStyle",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],az);
_.b(az,"ytd-purchase-complete-detail-renderer",function(){if(uy2!==void 0)return uy2;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return uy2=k},{mode:1});var xaR;var td=function(){var k=_.p.apply(this,arguments)||this;k.scriptsAppended=!1;return k};
_.y(td,_.p);td.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"}}}};
td.prototype.onDataChanged=function(){var k=this.get("data.gtmId");k&&(_.$N(k,_.Mg("GL","")),this.setupConversionTracking())};
td.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var k=document.createElement("noscript");k.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(k);this.scriptsAppended=!0}};
td.prototype.onDataChanged=td.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],td.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],td.prototype,"scriptsAppended",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],td.prototype,"onDataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],td);
_.b(td,"ytd-purchase-complete-step-renderer",function(){if(xaR!==void 0)return xaR;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return xaR=k},{mode:1});var LGx;var Tt=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(Tt,_.p);Tt.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Tt.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Tt.prototype,"darkerDarkTheme",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Tt);
_.b(Tt,"ytd-ypc-transaction-error-message-renderer",function(){if(LGx!==void 0)return LGx;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return LGx=k},{mode:1});var j_I;var DaU;var wx=function(){var k=_.p.apply(this,arguments)||this;k.handlePhoneVerificationSuccess=function(E){if(k.isValidPhoneVerificationCompletionMessageEvent(E)){var S;((S=k.data)==null?0:S.nextStepCommand)&&k.ytComponentBehavior.resolveCommand(k.data.nextStepCommand)}};
return k};
_.y(wx,_.p);wx.prototype.isValidPhoneVerificationCompletionMessageEvent=function(k){if(k.data!=="yt-phone-verification-complete")return!1;k=_.iJ(k.origin);return k!==null&&k.includes("youtube.com")};
wx.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
wx.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],wx.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],wx.prototype,"data",void 0);_.Z([_.U_({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],wx);
_.b(wx,"yt-feature-enablement-soft-entry-renderer",function(){if(DaU===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;j_I===void 0&&(j_I=document.createElement("template"));var R=j_I;S.call(E,R.content.cloneNode(!0),k.content.firstChild);DaU=k}k=DaU;return k},{mode:1});var $aU;var fvR;var vAP;var bzP;var Zz2=function(){return _.p.apply(this,arguments)||this};
_.y(Zz2,_.p);_.Z([_.H(),_.l("design:type",Object)],Zz2.prototype,"data",void 0);_.Z([_.U_({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Zz2);
_.b(Zz2,"yt-benefits-item-renderer",function(){if(bzP===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;vAP===void 0&&(vAP=document.createElement("template"));var R=vAP;S.call(E,R.content.cloneNode(!0),k.content.firstChild);bzP=k}k=bzP;return k},{mode:2});var daP;var s_W;var PK=function(){return _.p.apply(this,arguments)||this};
_.y(PK,_.p);PK.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
PK.prototype.computeisWithoutPadding=function(){var k;return((k=this.data)==null?void 0:k.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],PK.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.l("design:type",Boolean)],PK.prototype,"isWithoutPadding",void 0);_.Z([_.U_({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],PK);
_.b(PK,"yt-benefits-section-renderer",function(){if(s_W===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;daP===void 0&&(daP=document.createElement("template"));var R=daP;S.call(E,R.content.cloneNode(!0),k.content.firstChild);s_W=k}k=s_W;return k},{mode:2});var BK=function(){return _.p.apply(this,arguments)||this};
_.y(BK,_.p);BK.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
BK.prototype.computeisUsingLargeWidth=function(){var k;return((k=this.data)==null?void 0:k.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],BK.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],BK.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.l("design:type",Boolean)],BK.prototype,"isUsingLargeWidth",void 0);_.Z([_.U_({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],BK);
_.b(BK,"yt-benefits-flow-step-renderer",function(){if(fvR===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;$aU===void 0&&($aU=document.createElement("template"));var R=$aU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);fvR=k}k=fvR;return k},{mode:2});var lvA;var MdP;var YL=function(){return _.p.apply(this,arguments)||this};
_.y(YL,_.p);YL.prototype.checkIsUsingLargeWidth=function(){var k;return((k=this.data)==null?void 0:k.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.Z([_.H(),_.l("design:type",Object)],YL.prototype,"data",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.l("design:type",Boolean)],YL.prototype,"isUsingLargeWidth",void 0);_.Z([_.U_({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],YL);
_.b(YL,"yt-confirmation-flow-step-renderer",function(){if(MdP===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;lvA===void 0&&(lvA=document.createElement("template"));var R=lvA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);MdP=k}k=MdP;return k},{mode:2});var qvt;var zMW;var Q_x=function(){return _.p.apply(this,arguments)||this};
_.y(Q_x,_.p);_.Z([_.H(),_.l("design:type",Object)],Q_x.prototype,"data",void 0);_.Z([_.U_({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],Q_x);
_.b(Q_x,"yt-info-flow-step-renderer",function(){if(zMW===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;qvt===void 0&&(qvt=document.createElement("template"));var R=qvt;S.call(E,R.content.cloneNode(!0),k.content.firstChild);zMW=k}k=zMW;return k},{mode:2});var OzR;var GXI;var CDU=function(){return _.p.apply(this,arguments)||this};
_.y(CDU,_.p);_.Z([_.H(),_.l("design:type",Object)],CDU.prototype,"data",void 0);_.Z([_.U_({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],CDU);
_.b(CDU,"yt-info-list-flow-step-renderer",function(){if(GXI===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;OzR===void 0&&(OzR=document.createElement("template"));var R=OzR;S.call(E,R.content.cloneNode(!0),k.content.firstChild);GXI=k}k=GXI;return k},{mode:2});var kJ2=_.f(function(k){var E=k.data;return _.e("styled-text-view-model",{class:_.SQ("ytStyledTextViewModelHost",function(){return C2x(E().fontAttributes)},function(){return G2x(E().color)})},_.e(_.VB,{text:function(){return E().text},
ariaLabel:function(){var S,R,V;return(V=(S=E().accessibility)==null?void 0:(R=S.accessibilityData)==null?void 0:R.label)!=null?V:""}}))},"mh");
kJ2.idomCompat=!0;var EnW=_.f(function(k){var E=function(){var V,N,h,J;return(J=(h=(V=k.alt)==null?void 0:V.call(k))!=null?h:(N=k.data().accessibilityData)==null?void 0:N.label)!=null?J:""},S=function(){return k.data().imageWidth},R=function(){return k.data().imageHeight};
return _.e("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.e(_.t,{cond:function(){var V=k.data();if(V){var N,h,J;var m=((N=_.en().resolve(_.mz(_.jF)))==null?0:N())?(h=V.imageDark)!=null?h:V.imageLight:(J=V.imageLight)!=null?J:V.imageDark}else m=void 0;return m},
then:function(V){return _.e(_.vM,Object.assign({},k,{data:V,alt:E,targetWidth:S,targetHeight:R,preserveHeight:!0,preserveWidth:!0}))}}))},"nh");
EnW.idomCompat=!0;var WK=_.f(function(k){var E=k.data;k=_.Zk(function(){return E().slots},[]);
var S=_.Zk(function(){return E().layoutProperties},{}),R=_.en().resolve(_.$X);
return _.e("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:M9G(S,R)},_.e(_.jw,{each:k,keyBy:"INDEX"},function(V){return _.e("div",{class:"ytContainerLayoutViewModelSlot",style:M9G(function(){return V().layoutProperties},R)},_.e(_.cp,{data:function(){return V().contents}},{containerLayoutViewModel:WK,
badgeViewModel:_.t7,buttonViewModel:_.yB,styledTextViewModel:kJ2,contentPreviewImageViewModel:function(N){return _.e(_.TQ,{data:N.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(N){return _.e(EnW,{data:N.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"oh");
WK.idomCompat=!0;var SpP=_.f(function(k){var E=k.data;var S=k.stateFns;var R=function(){var a=E(),T=a.productId;return!(!a.clearGroupId&&!T)},V=function(){var a=E(),T=a.clearGroupId;
return(a=a.productId)?S().isProductSelected(a):T?S().getSelectedProductByGroupId(T)==null:!1},N=function(a){var T=E(),w=T.clearGroupId;
if(T=T.productId)S().onProductSelected(T),a==null||a.forEach(function(P){_.AV(P)});
else if(w)S().onClearGroupSelected(w)},h=function(){var a=E(),T=a.clearGroupId;
if(a=a.productId){var w;return"group:"+(((w=S().getProductById(a))==null?void 0:w.groupId)||"")}return T?"group:"+T:""},J=_.Zk(function(){return E().header},[]),m=_.Zk(function(){return E().body},[]);
return _.e("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.e(_.t,{cond:function(){return J().length>0||R()},
then:function(){return _.e("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.e("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.e(_.cp,{data:J},{containerLayoutViewModel:function(a){return _.e("div",{class:"ytPdpCardSectionViewModelContentItem"},_.e(WK,{data:a.data}))},
styledTextViewModel:function(a){return _.e("div",{class:"ytPdpCardSectionViewModelContentItem"},_.e(kJ2,{data:a.data}))}})),_.e(_.t,{cond:R,
then:function(){return _.e("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.e(_.qD,{checked:V,name:h,onChange:function(){N(E().onSelect)}}))}}))}}),_.e(_.t,{cond:function(){return m().length>0},
then:function(){return _.e("div",null,_.e(_.cp,{data:m},{containerLayoutViewModel:function(a){return _.e("div",{class:"ytPdpCardSectionViewModelContentItem"},_.e(WK,{data:a.data}))}}))}}))},"ph");
SpP.idomCompat=!0;var Re3=_.f(function(k){var E=k.data;var S=k.stateFns;return _.e("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.e(_.t,{cond:function(){return E().banner},
then:function(R){return _.e("div",{class:"ytPdpCardViewModelBanner"},_.e(_.VB,{text:R}))}}),_.e(_.cp,{data:function(){return E().sections}},{pdpCardSectionViewModel:function(R){R=R.data;
var V={};return _.e("div",{class:_.SQ("ytPdpCardViewModelSectionContainer",(V.ytPdpCardViewModelShowDividers=function(){return E().showDividers},V))},_.e(SpP,{data:R,
stateFns:S}))}}))},"qh");
Re3.idomCompat=!0;var ViG=_.f(function(k){var E=k.data;var S=k.isOverlay;k={};return _.e("pdp-masthead-view-model",{class:_.SQ("ytPdpMastheadViewModelHost",(k.ytPdpMastheadViewModelIsOverlay=S,k))},_.e(_.cp,{data:function(){return E().image}},{contentPreviewImageViewModel:_.TQ,
themedImageViewModel:function(R){return _.e(EnW,{data:R.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.e(_.t,{cond:function(){return E().title},
then:function(R){return _.e("h1",{class:"ytPdpMastheadViewModelHeading"},_.e(_.VB,{text:R,isOverlay:S}))}}),_.e(_.jw,{each:function(){var R;
return(R=E().finePrint)!=null?R:[]}},function(R){return _.e("div",{class:"ytPdpMastheadViewModelFinePrint"},_.e(_.VB,{text:R,
isOverlay:S}))}))},"rh");
ViG.idomCompat=!0;var N80=_.f(function(k){var E=k.data;var S=k.stateFns;var R=function(){return"pdp-pricing-group-selector-"+E().pricingGroupAttributeIds},V=_.Zk(function(){return E().pricingGroupSelectorSectionHeader});
return _.e("pdp-pricing-group-selector-view-model",null,_.e(_.t,{cond:function(){return!!V()},
then:function(){return _.e(_.cp,{data:V},{sectionHeaderViewModel:function(N){N=N.data;var h={};return _.e("div",{class:_.SQ("ytPdpPricingGroupSelectorViewModelSectionHeader",(h.ytPdpPricingGroupSelectorViewModelFullBleed=!0,h.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,h))},_.e(_.gI,{data:N}))}})}}),_.e("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.e(_.jw,{each:function(){var N=S().getSelectedProductByGroupId(E().groupId);
if(!N)return _.Zd(Error("Vj`"+E().groupId)),[];var h,J=(h=E().pricingGroupAttributeIds)!=null?h:[],m;if((m=N.pricingGroups)==null||!m.length||!J.length)return[];h=N.pricingGroups.filter(function(P){return J.length?P.pricingGroupAttributes.every(function(B){return J.includes(B)}):!1});
N=[];if(J.length>0){h=[].concat(_.$e(h));m=_.n(J);for(var a=m.next(),T={};!a.done;T={targetAttrId:void 0},a=m.next())T.targetAttrId=a.value,a=h.findIndex(function(P){return function(B){return B.pricingGroupAttributes.includes(P.targetAttrId)}}(T)),a!==-1&&(N.push(h[a]),h.splice(a,1))}var w=S().getSelectedPricingGroupAttributesByGroupId(E().groupId);
return N.map(function(P){var B=!1;w&&P.pricingGroupAttributes&&(B=f0(P.pricingGroupAttributes,w));return{pricingGroup:P,isSelected:B}})},
keyBy:function(N){return N.pricingGroup.pricingGroupId}},function(N){return _.e("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.e("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.e(_.cp,{data:function(){return N().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:WK})),_.e("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.e(_.qD,{checked:function(){return N().isSelected},
name:R,onClick:function(){var h=N().pricingGroup;S().onPricingGroupSelected(h.pricingGroupId);if(h=_.Uk(h.onSelectPricingGroup)){var J;(J=_.en().resolve(_.t3))==null||J.resolveCommand(h)}}})))})))},"sh");
N80.idomCompat=!0;var IEY=_.f(function(k){var E=k.data;var S=k.stateFns;var R=function(){var h=S().getSelectedPricingOptions().map(function(a){return a.pricingOptionId}),J=S().getSelectedProductByGroupId(E().groupId);
if(!J)return _.Zd(Error("Wj`"+E().groupId)),[];var m=S().getSelectedPricingGroupAttributesByGroupId(E().groupId);return RGI(J.pricingOptions,m,h)},V=_.Zk(function(){return E().pricingOptionSelectorSectionHeader}),N=function(){return R().length>1};
return _.e("pdp-pricing-option-selector-view-model",null,_.e(_.t,{cond:function(){return!!V()&&N()},
then:function(){return _.e(_.cp,{data:V},{sectionHeaderViewModel:function(h){h=h.data;var J={};return _.e("div",{class:_.SQ("ytPdpPricingOptionSelectorViewModelSectionHeader",(J.ytPdpPricingOptionSelectorViewModelFullBleed=!0,J.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,J))},_.e(_.gI,{data:h}))}})}}),_.e(_.t,{cond:N,
then:function(){return _.e("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.e(_.jw,{each:R,keyBy:"INDEX"},function(h){return _.e("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.e("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.e(_.cp,{data:function(){return h().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:WK})),_.e("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.e(_.qD,{checked:function(){return h().isSelected},
onClick:function(){S().onPricingOptionSelected(h().pricingOption.pricingOptionId);var J=h().pricingOption.onSelectPricingOption;if(J=_.Uk(J)){var m;(m=_.en().resolve(_.t3))==null||m.resolveCommand(J)}}})))}))}}))},"th");
IEY.idomCompat=!0;var nnx=_.f(function(k){var E=k.data;var S=k.stateFns;return _.e("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.e(_.cp,{data:function(){var R,V;return(V=(R=S().getSelectedPricingOptions()[0])==null?void 0:R.primaryButton)!=null?V:E().emptyStateButton}},{buttonViewModel:_.yB}))},"uh");
nnx.idomCompat=!0;var irI=_.f(function(k){var E=k.stateFns;return _.e("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.e(_.cp,{data:function(){return E().getSelectedPricingOptions().flatMap(function(S){return S.summaryLines}).filter(function(S){return!!S})}},{containerLayoutViewModel:function(S){return _.e("div",{class:"ytPdpSummaryViewModelLineItem"},_.e(WK,{data:S.data}))}}))},"vh");
irI.idomCompat=!0;var het=_.f(function(k){function E(r){var x=h();_.bl(_.wE("pdpStateEntity",x,{key:x,selectedPricingOptions:r}))}
var S=k.data;var R=k.internalScrolling;var V=k.stateFnsForTesting;var N=_.Zk(function(){return S().allProducts},[]),h=_.Zk(function(){return S().pdpStateEntityKey},""),J=_.iK(VXW,h),m=_.HX(function(){_.dt(!0);
var r;return(r=V==null?void 0:V())!=null?r:Iwa(J,N,E)},void 0,"ryrrHe"),a=_.Zk(function(){return S().body},[]),T=_.Zk(function(){return S().columnBreakHints},[]),w=function(){return S().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},P=function(){return w()||S().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},B=_.HX(function(){var r=_.Hp(S().background),x;
if(r==null?0:(x=r.sources)==null?0:x.length){var L=L===void 0?!0:L;r=_.eqR(void 0,r.sources,void 0,L,L?1E3:void 0,L?void 0:1E3)}else r=null;return r},void 0,"UVFJic");
k=_.nU({"--pdp-view-model-background":function(){return B()?"url("+B()+")":void 0}});
var F={};R=_.SQ("ytPdpViewModelHost",(F.ytPdpViewModelHasBackground=function(){return P()||!!B()},F.ytPdpViewModelHasDarkBackground=P,F.ytPdpViewModelHasScrim=w,F.ytPdpViewModelInternalScrolling=_.Zk(R,!1),F));
var K=function(r){var x={};return _.SQ("ytPdpViewModelItem",(x.ytPdpViewModelFullBleed=function(){return nFT(r())==="dividerViewModel"||nFT(r())==="sectionHeaderViewModel"},x.ytPdpViewModelNoVerticalPadding=function(){return nFT(r())==="sectionHeaderViewModel"},x))};
_.b$(function(){var r=S().onStartCommand;if(r&&(r=_.Uk(r))){var x;(x=_.en().resolve(_.t3))==null||x.resolveCommand(r)}});
return _.e("pdp-view-model",{class:R,style:k},_.e("div",{class:"ytPdpViewModelColumnContainer"},_.e(_.jw,{each:function(){return ift(a(),T())},
keyBy:"INDEX"},function(r){return _.e("div",{class:"ytPdpViewModelColumn"},_.e(_.cp,{data:r},{containerLayoutViewModel:function(x,L){x=x.data;return _.e("div",{class:K(function(){return r()[L()]})},_.e(WK,{data:x}))},
dividerViewModel:function(x,L){x=x.data;return _.e("div",{class:K(function(){return r()[L()]})},_.e(_.zS2,{data:x}))},
pdpCardViewModel:function(x,L){x=x.data;return _.e("div",{class:K(function(){return r()[L()]})},_.e(Re3,{data:x,
stateFns:m}))},
pdpMastheadViewModel:function(x,L){x=x.data;return _.e("div",{class:K(function(){return r()[L()]})},_.e(ViG,{data:x,
isOverlay:P}))},
pdpPricingGroupSelectorViewModel:function(x,L){x=x.data;return _.e("div",{class:K(function(){return r()[L()]})},_.e(N80,{data:x,
stateFns:m}))},
pdpPricingOptionSelectorViewModel:function(x,L){x=x.data;return _.e("div",{class:K(function(){return r()[L()]})},_.e(IEY,{data:x,
stateFns:m}))},
pdpPrimaryButtonViewModel:function(x,L){x=x.data;return _.e("div",{class:K(function(){return r()[L()]})},_.e(nnx,{data:x,
stateFns:m}))},
pdpSummaryViewModel:function(x,L){x=x.data;return _.e("div",{class:K(function(){return r()[L()]})},_.e(irI,{data:x,
stateFns:m}))},
sectionHeaderViewModel:function(x,L){x=x.data;return _.e("div",{class:K(function(){return r()[L()]})},_.e(_.gI,{data:x}))}}))})))},"wh");
het.idomCompat=!0;_.qi(het,"pdp-view-model",{props:{data:_.Nq,stateFnsForTesting:_.sk,internalScrolling:_.sk}});var JpI=_.f(function(k){var E=k.data;var S=k.className;var R=_.iK(_.xz,function(){return E().flowStateEntityKey});
return _.e("ytm-premium-purchase-button-renderer",{class:_.SQ("ytPremiumPurchaseButtonRendererHost",S)},_.e(_.cp,{data:function(){var V;return(V=_.W(R(),JBP))==null?void 0:V.primaryButtonOverride}},{buttonRenderer:function(V){return _.e(_.IT,{data:V.data,
className:S})},
buttonViewModel:function(V){return _.e(_.yB,{data:V.data,className:S})}}))},"xh");
JpI.idomCompat=!0;var cpP=_.f(function(k){var E=k.data;k=k.className;var S=function(){return hGA(E().style)},R=_.SQ("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",S),V=_.SQ("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",S);
return _.e("yt-flow-bottom-bar-renderer",{class:_.SQ("yt-flow-bottom-bar-renderer",k,S)},_.e(_.cp,{data:function(){return E().secondaryButton}},{buttonRenderer:function(N){return _.e(_.IT,{data:N.data,
className:V})},
buttonViewModel:function(N){return _.e(_.yB,{data:N.data,className:V})},
premiumPurchaseButtonRenderer:function(N){return _.e(JpI,{data:N.data,className:V})}}),_.e(_.cp,{data:function(){return E().primaryButton}},{buttonRenderer:function(N){return _.e(_.IT,{data:N.data,
className:R})},
buttonViewModel:function(N){return _.e(_.yB,{data:N.data,className:R})},
premiumPurchaseButtonRenderer:function(N){return _.e(JpI,{data:N.data,className:R})}}))},"yh");
cpP.idomCompat=!0;_.qi(cpP,"yt-flow-bottom-bar-renderer",{props:{data:_.Nq,className:_.Nq}});var mIG=_.f(function(k){var E=_.SQ(k.className,"ytOfferSummaryRendererHost");return _.e("yt-offer-summary-renderer",{class:E},_.e("div",{class:"ytOfferSummaryRendererTextContainer"},_.e("div",{class:"ytOfferSummaryRendererEyebrowText"},_.e(_.VB,{text:function(){return k.data().eyebrowText}})),_.e("div",{class:"ytOfferSummaryRendererTitle"},_.e(_.VB,{text:function(){return k.data().title}})),_.e("div",{class:"ytOfferSummaryRendererSubtitle"},_.e(_.VB,{text:function(){return k.data().subtitle}})),_.e("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.e(_.jw,{each:function(){var S;
return(S=k.data().featureListData)!=null?S:[]}},function(S){var R;
return _.e("div",{class:"ytOfferSummaryRendererFeatureList"},_.e(_.i_,{icon:(R=S.icon)==null?void 0:R.iconType,active:function(){return S.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(S.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"}}}),_.e("div",{class:"ytOfferSummaryRendererFeatureListText"},_.e(_.VB,{text:S.text,
className:function(){return S.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.e("div",{class:"ytOfferSummaryRendererDescription"},_.e(_.VB,{text:function(){return k.data().description}}))))},"zh");_.qi(_.f(function(k){var E={};E=_.SQ("ytOfferSummaryFlowStepRendererHost",(E.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=k.shouldDisableHeaderTopMargin,E));return _.e("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:E},_.e("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.e("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.e(_.VB,{text:function(){return k.data().header}})),_.e("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.e(_.VB,{text:function(){return k.data().subtitle}}))),_.e("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.e(_.cp,{data:function(){return k.data().offerSummary}},{offerSummaryRenderer:function(S){return _.e(mIG,{data:S.data,
className:k.flowClassName})}})))},"Ah"),"yt-offer-summary-flow-step-renderer",{props:{data:_.sk,
flowClassName:_.sk,flowStateEntityKey:_.sk,shouldDisableHeaderTopMargin:_.sk}});var eet=_.f(function(k){var E=k.data;var S=k.className;var R=k.flowStateEntityKey;var V=k.selectionStepStyle;k=_.RZ(function(m){var a=E(),T=R==null?void 0:R();m.target&&(m.stopPropagation(),m=T||"",T=_.xz(_.vu().getState(),m),a=Object.assign({},T,{premiumPurchaseFlowState:{selectedOptionId:a.optionId,primaryButtonOverride:a.primaryButtonOverride}}),_.vu().dispatch(_.mj("flowStateEntity",m,a)));return!1});
var N=function(){return(R==null?void 0:R())||""},h=_.iK(_.xz,N);
_.b$(function(){var m=E(),a=N(),T=h();m.defaultSelected&&a!==""&&m.primaryButtonOverride&&cB2(m.optionId||"",a,m.primaryButtonOverride,T)});
var J={};return _.e("ytm-option-item-renderer",{"on:click":k,class:_.SQ(S,"ytm-option-item-renderer",(J["ytm-option-item-renderer--lp2-style"]=function(){return(V==null?void 0:V())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},J))},_.e("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.e("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var m=E(),a=N(),T=h();T=_.W(T,JBP);return(T?(T==null?void 0:T.selectedOptionId)||"":m.defaultSelected&&a!==""?(m==null?void 0:m.optionId)||"":"")===E().optionId},
name:("input"+_.HY(_.lj)).toString()})),_.e("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.e(_.cp,{data:function(){return E().titleBadge}},{badgeViewModel:function(m){return _.e(_.t7,{data:m.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.e(_.t,{cond:function(){return E().eyebrowText},
then:function(){return _.e("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.e(_.VB,{text:function(){return E().eyebrowText}}))}}),_.e("div",{class:"ytm-option-item-renderer__option-item-title"},_.e(_.VB,{text:function(){return E().title}})),_.e("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.e(_.VB,{text:function(){return E().subtitle}})),_.e(_.t,{cond:function(){return E().featureListData},
then:function(){return _.e("div",{class:"ytm-option-item-renderer__feature-list-data"},_.e(_.jw,{each:function(){return E().featureListData||[]}},function(m){var a,T=(a=m.icon)==null?void 0:a.iconType;
a:switch(m.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":a="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":a="ytm-option-item-renderer__feature-list-icon-small";break a;default:a="ytm-option-item-renderer__feature-list-icon-default"}return _.e("div",{class:"ytm-option-item-renderer__feature-list"},_.e(_.i_,{icon:T,className:a,active:function(){return m.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.e("div",{class:"ytm-option-item-renderer__feature-list-text"},_.e(_.VB,{text:m.text,
className:function(){return m.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.e("div",{class:"ytm-option-item-renderer__option-item-description"},_.e(_.VB,{text:function(){return E().description}}))))},"Bh");var aEA=_.f(function(k){var E=k.data;var S=k.flowClassName;var R=k.flowStateEntityKey;var V=k.selectionStepStyle;return _.e("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.e("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.e("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.e(_.VB,{text:function(){return E().title}}),_.e(_.cp,{data:function(){return E().titleBadge}},{badgeViewModel:function(N){return _.e(_.t7,{data:N.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.e(_.t,{cond:function(){return E().subtitle},
then:function(){return _.e("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.e(_.VB,{text:function(){return E().subtitle}}))}}),_.e(_.t,{cond:function(){return E().featureListData},
then:function(N){return _.e("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.e(_.jw,{each:N},function(h){var J;return _.e("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.e(_.i_,{icon:(J=h.icon)==null?void 0:J.iconType,active:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(h.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"}}}),_.e("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.e(_.VB,{text:h.text,
className:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.e(_.t,{cond:function(){return E().secondaryTitle},
then:function(){return _.e("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.e(_.VB,{text:function(){return E().secondaryTitle}}))}}),_.e(_.jw,{each:function(){return E().sectionDisclaimers||[]}},function(N){return _.e("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.e(_.VB,{text:N}))})),_.e(_.cp,{data:function(){return E().optionItems}},{optionItemRenderer:function(N){return _.e("div",{class:"ytOptionSectionRendererOptionItem"},_.e(eet,{data:N.data,
className:S,flowStateEntityKey:R,selectionStepStyle:V}))}}),_.e(_.t,{cond:function(){return E().offerText},
then:function(){return _.e("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.e(_.VB,{text:function(){return E().offerText}}))}}))},"Ch");
aEA.idomCompat=!0;var tiT=_.f(function(k){var E=k.data;var S=k.flowClassName;var R=k.flowStateEntityKey;k=k.isDesktop;var V=function(){var a;return(a=E().flowStateEntityKey)!=null?a:R==null?void 0:R()},N=function(){return(V==null?void 0:V())||""},h=function(){return E().style},J=_.iK(_.xz,N);
_.b$(function(){var a=E(),T=N(),w=J();!_.W(w,JBP)&&a.noPreselect&&T!==""&&a.defaultButtonOverride&&cB2("default",T,a.defaultButtonOverride,w)});
var m={};return _.e("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.SQ("ytm-option-selection-flow-step-renderer",(m["ytm-option-selection-flow-step-renderer--desktop"]=k,m["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return E().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},m))},_.e("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"},
_.e("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.e(_.VB,{text:function(){return E().header}})),_.e("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.e(_.VB,{text:function(){return E().subtitle}}))),_.e(_.cp,{data:function(){return E().optionItems||[]}},{optionItemRenderer:function(a){return _.e("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.e(eet,{data:a.data,
className:S,flowStateEntityKey:V,selectionStepStyle:h}))},
optionSectionRenderer:function(a){return _.e("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.e(aEA,{data:a.data,flowClassName:S,flowStateEntityKey:V,selectionStepStyle:h}))}}))},"Dh");
tiT.idomCompat=!0;_.qi(tiT,"yt-option-selection-flow-step-renderer",{props:{data:_.Nq,flowClassName:_.Nq,flowStateEntityKey:_.Nq,isDesktop:_.Nq}});_.FO=_.f(function(k){var E=_.dJ(k,{type:1,disablePadding:!1,disablePrimaryButton:!1}),S=E.data,R=E.type;k=E.disablePadding;var V=E.disablePrimaryButton,N=E.onClickPrimaryButton,h=function(){return S().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},J=function(){return{disabled:V(),
state:V()?"disabled":"active"}},m=function(){return S().leadingLabel||S().trailingLabel};
E={};return _.e("yt-panel-footer-view-model",{class:_.SQ("yt-panel-footer-view-model",(E["yt-panel-footer-view-model--hide-divider"]=function(){return S().shouldHideDivider},E["yt-panel-footer-view-model--disable-padding"]=k,E))},_.e(_.t,{cond:m,
then:function(){var a={},T={};return _.e("div",{class:_.SQ("yt-panel-footer-view-model__text-row",(a["yt-panel-footer-view-model--row-bottom-padding"]=function(){var w=S();return!(!w.leadingLabel&&!w.trailingLabel||!w.primaryButton&&!w.secondaryButton)},a))},_.e(_.VB,{text:function(){return S().leadingLabel},
className:_.SQ((T["yt-panel-footer-view-model--text-padding"]=m,T))}),_.e(_.VB,{text:function(){return S().trailingLabel}}))}}),_.e(_.t,{cond:h,
then:function(){var a={};return _.e("div",{class:"yt-panel-footer-view-model__button-stack"},_.e("div",{class:_.SQ("yt-panel-footer-view-model__primary-button",(a["yt-panel-footer-view-model__button-stack--top-button"]=function(){return S().secondaryButton},a))},_.e(_.cp,{data:function(){return S().primaryButton}},{buttonViewModel:function(T){return _.e(_.yB,{data:T.data,
buttonOverrides:J,onClick:N})}})),_.e(_.cp,{data:function(){return S().secondaryButton}},{buttonViewModel:_.yB}))}}),_.e(_.t,{cond:function(){return!h()},
then:function(){var a={},T={},w={};return _.e("div",{class:_.SQ("yt-panel-footer-view-model__button-row",(a["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===R()},a))},_.e("div",{class:_.SQ("yt-panel-footer-view-model__button-row--left-button",(T["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===R()},T["yt-panel-footer-view-model__button-row--hidden"]=function(){return!S().secondaryButton||0===R()},T["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===R()},T))},_.e(_.cp,{data:function(){return S().secondaryButton}},{buttonViewModel:_.yB})),_.e("div",{class:_.SQ("yt-panel-footer-view-model__primary-button",(w["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===R()||1===R()},w["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===R()},w))},_.e(_.cp,{data:function(){return S().primaryButton}},{buttonViewModel:function(P){return _.e(_.yB,{data:P.data,
buttonOverrides:J,onClick:N})}})))}}))},"Eh");
_.FO.idomCompat=!0;_.T83=_.f(function(k){k=_.dJ(k,{disablePadding:!1});var E=k.data,S=k.disablePadding;k=_.mKi(function(){return E().formId});
var R=k.submitForm,V=k.isValid,N=k.isSubmitting;return _.e("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.e(_.cp,{data:function(){return E().panelFooter}},{panelFooterViewModel:function(h){return _.e(_.FO,{data:h.data,
onClickPrimaryButton:function(){R()},
disablePrimaryButton:function(){return!V()||N()},
disablePadding:S})}}))},"Fh");_.qi(_.T83,"yt-form-footer-view-model",{props:{data:_.Nq,disablePadding:_.Nq}});var woU=_.f(function(k){var E=_.Y("enable_user_rating_web");return _.e("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.e("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.e(_.t,{cond:function(){var S;return(S=k.data())==null?void 0:S.image},
then:function(S){return _.e(_.vM,{data:S,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.e("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.e(_.VB,{text:function(){var S;
return(S=k.data())==null?void 0:S.title}})),_.e("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.e(_.VB,{text:function(){var S;
return(S=k.data())==null?void 0:S.subtitle}})),_.e(_.t,{cond:function(){return!E},
then:function(){return _.e(_.cp,{data:function(){var S;return(S=k.data())==null?void 0:S.viewTipsButton}},{buttonViewModel:function(S){return _.e(_.yB,{data:S.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Gh");_.qi(woU,"yt-contributor-zero-state-view-model",{props:{data:_.Nq}});var Pga=_.f(function(k){var E=function(){var S;return(S=k.data())==null?void 0:S.image};
return _.e("yt-featured-content-item-view-model",{class:_.SQ("ytFeaturedContentItemViewModelHost")},_.e("div",{class:_.SQ(function(){return E()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.e("div",{class:function(){return E()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.e(_.t,{cond:E,
then:function(){return _.e("div",{class:"ytFeaturedContentItemViewModelImage"},_.e(_.cp,{data:function(){return k.data().image}},{themedImageViewModel:function(S){return _.e(EnW,{data:S.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.e(_.t,{cond:function(){var S;
return!E()&&((S=k.data())==null?void 0:S.iconName)},
then:function(){return _.e("div",{class:"ytFeaturedContentItemViewModelIcon"},_.e(_.i_,{icon:function(){return k.data().iconName}}))}}),_.e("div",{class:"ytFeaturedContentItemViewModelContent"},_.e(_.t,{cond:function(){var S;
return(S=k.data())==null?void 0:S.title},
then:function(){return _.e("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.e(_.VB,{text:function(){return k.data().title}}))}}),_.e(_.t,{cond:function(){var S;
return(S=k.data())==null?void 0:S.body},
then:function(){return _.e("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.e(_.VB,{text:function(){return k.data().body}}))}})))))},"Hh");var B82=_.f(function(k){var E=function(){var V;return m6A((V=k.data())==null?void 0:V.titleFontSize)},S=function(){var V;
return eGa((V=k.data())==null?void 0:V.descriptionFontSize)},R=function(){var V;
return((V=k.data())==null?void 0:V.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.e("yt-landing-page-view-model",{class:_.SQ("ytLandingPageViewModelHost",k.className)},_.e("div",{class:"ytLandingPageViewModelHeader"},_.e(_.t,{cond:function(){var V;return(V=k.data())==null?void 0:V.bannerImage},
then:function(V){return _.e("div",{class:"ytLandingPageViewModelHeaderImage"},_.e(_.cp,{data:function(){return V()}},{imageBannerViewModel:function(N){return _.e(_.km,{data:N.data,
isPositionRelative:!0})}}))}}),_.e(_.t,{cond:function(){var V;
return(V=k.data())==null?void 0:V.bannerAnimation},
then:function(V){return _.e(_.KG,{data:function(){var N=V();if(N==null?0:N.url){var h;N={path:(h=N==null?void 0:N.url)!=null?h:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(N==null?0:N.payload){var J;N={animationData:JSON.parse((J=N==null?void 0:N.payload)!=null?J:""),autoplay:!0,loop:!0,renderer:"svg"}}else N=void 0;return{animationConfig:N}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.e("div",{class:"ytLandingPageViewModelHeaderTitle"},_.e(_.t,{cond:function(){var V;
return(V=k.data())==null?void 0:V.title},
then:function(V){return _.e("div",{class:_.SQ("ytLandingPageViewModelHeaderTitleContent",E)},_.e(_.VB,{text:function(){return V()}}))}}),_.e(_.t,{cond:function(){var V;
return(V=k.data())==null?void 0:V.description},
then:function(V){var N={};return _.e(_.VB,{className:_.SQ("ytLandingPageViewModelHeaderTitleDescription",S,(N.ytLandingPageViewModelHeaderTitleDescriptionMargin=R,N)),text:function(){return V()}})}}))),_.e(_.t,{cond:function(){var V,N;
return(V=k.data())==null?void 0:(N=V.featuredContentList)==null?void 0:N.length},
then:function(){return _.e("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.e(_.cp,{data:function(){return k.data().featuredContentList}},{featuredContentItemViewModel:function(V){return _.e(Pga,{data:V.data})}}))}}),_.e(_.t,{cond:function(){var V,N;
return(V=k.data())==null?void 0:(N=V.expandableContentList)==null?void 0:N.length},
then:function(){return _.e("div",{class:"ytLandingPageViewModelFaqSection"},_.e(_.cp,{data:function(){return k.data().expandableContentList}},{faqEntryViewModel:function(V){return _.e("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.e(_.AFz,{data:V.data}))}}))}}),_.e("div",{class:"ytLandingPageViewModelFooter"},_.e(_.t,{cond:function(){var V;
return(V=k.data())==null?void 0:V.legalCopy},
then:function(V){return _.e("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.e(_.VB,{text:function(){return V()}}))}}),_.e(_.t,{cond:function(){var V;
return(V=k.data())==null?void 0:V.actions},
then:function(V){return _.e("div",null,_.e(_.cp,{data:function(){return V()}},{flexibleActionsViewModel:function(N){return _.e(_.l6,{data:N.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Ih");_.qi(_.f(function(k){return _.e("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.e("div",{class:"ytLpSectionGroupViewModelContainer"},_.e(_.cp,{data:function(){return k.data().sections}},{landingPageViewModel:function(E){return _.e(B82,{data:E.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Jh"),"yt-lp-section-group-view-model",{props:{data:_.Nq}});var YpA=_.f(function(k){var E=k.data;var S=k.selectedKey;var R=k.onSelected;var V=k.groupName;var N=function(){return E().text},h=function(){return E().attributedText},J=function(){return E().subtext},m=function(){return E().attributedSubtext},a=_.e("div",{class:"ytRadioButtonItemViewModelLabel"},_.e(_.t,{cond:N,
then:function(){return _.e("div",null,N)}}),_.e(_.t,{cond:h,
then:function(){return _.e(_.VB,{text:h})}}),_.e(_.t,{cond:J,
then:function(){return _.e("div",{class:"ytRadioButtonItemViewModelSubText"},J)}}),_.e(_.t,{cond:m,
then:function(){return _.e("div",{class:"ytRadioButtonItemViewModelSubText"},_.e(_.VB,{text:m}))}})),T=function(){if(h()){var P;
return(P=h())==null?void 0:P.content}return N()},w=function(){if(m()){var P;
return(P=m())==null?void 0:P.content}return J()};
k={};return _.e("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.e(_.qD,{name:V,checked:function(){return!(S==null||!S()||E().key!==(S==null?void 0:S()))},
onChange:function(P){R==null||R(P.target,E(),V==null?void 0:V())},
labelRenderable:function(){return a},
ariaLabel:function(){return w()?T()+", "+w():T()},
className:_.SQ((k.ytRadioButtonItemViewModelSubTitle=function(){return!!E().subtext},k))}))},"Kh");_.WCx=_.f(function(k){var E=k.data;var S=function(){var R;return _.Wp((R=E())==null?void 0:R.rendererContext)};
k={};return _.e("content-list-item-view-model",{el:_.Z0(_.FX(function(){return E().rendererContext})),
class:_.SQ("ytContentListItemViewModelHost",(k.ytContentListItemViewModelTappable=S,k)),role:function(){return S()?"listitem":void 0},
tabindex:function(){return S()?0:void 0}},_.e("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.e("div",{class:"ytContentListItemViewModelImageContainer"},_.e(_.t,{cond:function(){return E().image},
then:function(R){return _.e(_.vM,{data:R,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.e(_.cp,{data:function(){var R;
return(R=E())==null?void 0:R.avatar}},{avatarViewModel:_.dw})),_.e("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.e("div",{class:_.SQ("ytContentListItemViewModelTitle",function(){a:{switch(E().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var R="ytContentListItemViewModelProminentTitle";
break a}R=void 0}return R})},_.e(_.VB,{text:function(){return E().title}})),_.e("div",{class:"ytContentListItemViewModelMetadata"},_.e(_.cp,{data:function(){return E().metadata}},{contentMetadataViewModel:function(R){return _.e(_.PW,{data:R.data,
layout:1})}})))),_.e("div",{class:"ytContentListItemViewModelActionButton"},_.e(_.cp,{data:function(){var R;
return(R=E())==null?void 0:R.actionButton}},{buttonViewModel:_.yB,
toggleButtonViewModel:_.bL})))},"Lh");var FC2=_.f(function(k){var E=k.data,S=function(){var V;return(V=E())==null?void 0:V.description},R=function(){var V;
return(V=E())==null?void 0:V.title};
return _.e("ytfc-youth-basic-section-header-view-model",{class:_.SQ("ytfcYouthBasicSectionHeaderViewModelHost",k.className)},_.e("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.e(_.cp,{data:function(){var V;return(V=E())==null?void 0:V.avatar}},{avatarViewModel:_.dw}),_.e(_.t,{cond:function(){var V;
return _.Hp((V=E())==null?void 0:V.themedImage)},
then:function(V){return _.e(_.vM,{data:V,alt:function(){var N,h;return(h=(N=R())==null?void 0:N.content)!=null?h:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.e("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.e(_.t,{cond:R,
then:function(){return _.e(_.VB,{text:R,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.e("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.e(_.cp,{data:function(){var V;
return(V=E())==null?void 0:V.bottomBadge}},{badgeViewModel:function(V){return _.e("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.e(_.t7,{data:V.data}))}}),_.e(_.t,{cond:S,
then:function(){return _.e(_.VB,{text:S,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Mh");var ypG=_.f(function(k){var E=k.data;return _.e("ytfc-youth-section-body-view-model",{class:_.SQ("ytfcYouthSectionBodyViewModelHost",k.className)},_.e(_.cp,{data:function(){var S;return(S=E())==null?void 0:S.topContent}},{avatarStackViewModel:function(S){return _.e(_.lR,{data:S.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.e(_.VB,{text:function(){var S;
return(S=E())==null?void 0:S.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Nh");var onU=_.f(function(k){var E=_.n(_.yg(!1,void 0,"i2FDU")),S=E.next().value,R=E.next().value,V=function(){return k.data().inlineExpansionEntityKey},N=_.iK(KFU,V),h=function(){if(k.isSelected!==void 0)return k.isSelected();
if(V()){var m;return(m=N())==null?void 0:m.expanded}return S()};
E={};var J={};return _.e("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.RZ(function(){k.isSelected!==void 0||V()||R(!S())})},_.e("div",{class:"ytInlineExpanderViewModelHeader"},_.e(_.cp,{data:function(){return k.data().headerContent}},{youthBasicSectionHeaderViewModel:FC2}),_.e("div",{class:_.SQ("ytInlineExpanderViewModelButton",(E.ytInlineExpanderViewModelButtonExpanded=h,E))},_.e(_.FA,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:h(),accessibilityLabel:h()?_.Vi("SHOW_LESS",void 0,"Show Less"):_.Vi("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.e("div",{class:_.SQ("ytInlineExpanderViewModelBody",(J.ytInlineExpanderViewModelBodyExpanded=h,J)),"aria-hidden":function(){return!h()}},_.e("div",{class:"ytInlineExpanderViewModelBodyContent"},_.e(_.cp,{data:function(){return k.data().bodyContent}},{youthSectionBodyViewModel:ypG}))))},"Oh");var XoG=new _.QE("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.gn0=_.f(function(k){var E=function(){return k.data().background},S=function(){return k.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},R=function(){return k.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},V=_.en().resolve(_.mz(XoG));
return _.e("yt-card-view-model",{el:_.Z0(_.FX(function(){return k.data().rendererContext})),
class:_.SQ("ytCardViewModelHost",k.className)},_.e(_.BW,{contentId:function(){return k.data().contentId}},function(){return _.e("div",{class:_.SQ("ytCardViewModelCardViewModelInner",function(){var N;
return awT(k.data().cardStyle,(N=k.isSelected)==null?void 0:N.call(k))},function(){if(k.isSelected===void 0){var N;
a:{switch((N=k.data().cardState)==null?void 0:N.selectionState){case "CARD_SELECTION_STATE_SELECTED":N="ytCardViewModelSelected";break a}N=void 0}return N}})},_.e(_.cp,{data:E},{cinematicContainerViewModel:function(N){return _.e(_.syY,{data:N.data})}}),_.e("div",{class:"ytCardViewModelContentWrapper"},_.e(_.t,{cond:function(){return!S()},
then:function(){var N={};return _.e("div",{class:"ytCardViewModelTopContentContainer"},_.e("div",{class:"ytCardViewModelTopContent"},_.e(_.cp,{data:function(){return k.data().topContent}},{contentListItemViewModel:function(h){return _.e(_.WCx,{data:h.data})},
linearLayoutViewModel:_.Qy})),_.e("div",{class:_.SQ("ytCardViewModelInlineTrailingAction",(N.ytCardViewModelInlineCenterTrailingAction=R,N))},_.e(_.cp,{data:function(){return k.data().trailingAction}},{buttonViewModel:function(h){return _.e(_.yB,{data:h.data})}})))}}),_.e("div",{class:"ytCardViewModelBodyContent"},_.e(_.cp,{data:function(){return k.data().bodyContent}},Object.assign({},{channelAttributionViewModel:_.CX3,
contentListItemViewModel:_.WCx,descriptionPreviewViewModel:_.Xv,inlineExpanderViewModel:function(N){return _.e(onU,{data:N.data,isSelected:k.isSelected})},
linearLayoutViewModel:_.Qy,listItemViewModel:_.zy},V&&{contentSectionViewModel:V})))),_.e(_.t,{cond:function(){return S()},
then:function(){return _.e("div",{class:"ytCardViewModelOverlayTrailingAction"},_.e(_.cp,{data:function(){return k.data().trailingAction}},{buttonViewModel:function(N){return _.e(_.yB,{data:N.data})}}))}}))}))},"Ph");var UI0=_.f(function(k){var E=k.data,S=k.className,R=k.onSelected,V=k.selectedKey,N=k.groupName;k=_.n(_.yg(!1,void 0,"zyw1Be"));var h=k.next().value,J=k.next().value,m=function(){if(V!==void 0){var a=V();return!(!a||E().key!==a)}return h()};
k=_.RZ(function(a){R?R(a.currentTarget,E(),N==null?void 0:N()):J(!h())});
return _.e("yt-selectable-item-view-model",{class:_.SQ("ytSelectableItemViewModelHost",S),"on:click":k,"prop:checked":m},_.e(_.cp,{data:function(){return E().content}},{cardViewModel:function(a){return _.e(_.gn0,{data:a.data,
isSelected:m})}}))},"Qh");_.HrP=_.f(function(k){var E=k.data;var S=k.onSelected;var R=k.selectedKey;var V=k.groupName;var N=function(){return(V==null?void 0:V())||E().key};
return _.e("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.e("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.e(_.cp,{data:function(){return E().radioButtons}},{radioButtonItemViewModel:function(h){return _.e(YpA,{data:h.data,
onSelected:S,selectedKey:R,groupName:N})},
selectableItemViewModel:function(h){return _.e("div",{class:"ytRadioButtonGroupViewModelSelectableItem"},_.e(UI0,{data:h.data,onSelected:S,selectedKey:R,groupName:N}))}})))},"Rh");var KCx=_.f(function(k){_.b$(function(){if(k.controlledMode()&&k.data().defaultSelected)_.bM(Error("Xj"));else{var N;!k.controlledMode()&&((N=k.selected)==null?0:N.call(k))&&_.bM(Error("Yj"))}});
var E=_.n(_.IZ(function(){if(!k.controlledMode())return k.data().defaultSelected})),S=E.next().value,R=E.next().value,V=function(){if(!k.controlledMode())return S();
var N;return(N=k.selected)==null?void 0:N.call(k)};
return _.e("yt-checkbox-item-view-model",{class:_.SQ("ytCheckboxItemViewModelHost",k.className)},_.e(_.zy,{data:function(){var N=k.data(),h=V();return{title:N.text,subtitle:N.subtext,superlabel:N.superlabel,isSelected:!!h,isDisabled:N.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!k.controlledMode()&&R(!S());var N,h;(h=k.onTap)==null||h.call(k,!!V(),k.data(),(N=k.groupName)==null?void 0:N.call(k))},
isCompact:k.isCompact}))},"Sh");var po2=_.f(function(k){var E=k.data;var S=k.controlledMode;var R=k.selectedKeys;var V=k.onItemTap;var N=k.groupName;var h=function(){return(N==null?void 0:N())||E().key};
_.b$(function(){S()&&E().defaultSelectedKeys?_.bM(Error("Zj")):!S()&&(R==null?0:R())&&_.bM(Error("$j"))});
k=_.n(_.IZ(function(){if(!S())return E().defaultSelectedKeys}));
var J=k.next().value,m=k.next().value,a=function(T,w,P){T=[];!S()&&w.key&&(T=tXI(w.key,J()||[]),m(T));V==null||V(w,T,P)};
return _.e("yt-checkbox-group-view-model",{class:_.SQ("ytCheckboxGroupViewModelHost")},_.e("fieldset",{class:_.SQ("ytCheckboxGroupViewModelFieldset")},_.e(_.cp,{data:function(){return E().checkboxes}},{checkboxItemViewModel:function(T){var w=T.data;
return _.e(KCx,{data:w,controlledMode:!0,selected:function(){var P=S()?(R==null?void 0:R())||[]:J()||[],B=w().key;return B?P.includes(B):!1},
onTap:a,groupName:h})}})))},"Th");var yR=_.f(function(k){var E=_.iK(TcR,_.Zk(function(){var J;return(J=k.data())==null?void 0:J.noteFeedEntityKey},"")),S=_.iK(utW,_.Zk(function(){var J;
return(J=k.data())==null?void 0:J.userRatingEntityKey},"")),R=_.Y("enable_user_rating_web"),V=function(){var J,m,a;
return((J=E())==null?0:J.contributorNote)?(m=E())==null?void 0:m.contributorNote:(a=k.data())==null?void 0:a.existingNote},N=function(){var J,m;
return!!S()&&!!wkP((J=S())==null?void 0:J.helpfulnessValue,(m=k.data())==null?void 0:m.noteData)};
if(R){var h={};return _.e("yt-note-view-model",{class:_.SQ("ytNoteViewModelHostUserRating",(h.ytNoteViewModelHostUserRatingPublishedNote=function(){var J,m,a,T;return((J=k.data())==null?void 0:(m=J.noteData)==null?void 0:m.isPublished)&&!((a=k.data())==null?0:(T=a.noteData)==null?0:T.isUserRatingForm)},h))},_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.e(_.t,{cond:function(){var J,m;
return(J=k.data())==null?void 0:(m=J.noteData)==null?void 0:m.isPinned},
then:function(){return _.e(_.i_,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.e(_.t,{cond:function(){var J,m;return(J=k.data())==null?void 0:(m=J.noteData)==null?void 0:m.isPublished},
then:function(){return _.e(_.i_,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.e(_.cp,{data:function(){var J;
return(J=k.data())==null?void 0:J.metadata}},{contentMetadataViewModel:_.PW}),_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var J,m;
return(m=_.W((J=k.data())==null?void 0:J.metadata,_.E8Y))==null?void 0:m.delimiter}),_.e(_.VB,{text:function(){var J;
return(J=V())==null?void 0:J.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.e(_.t,{cond:function(){var J,m;return!((J=k.data())==null?0:(m=J.noteData)==null?0:m.isUserRatingForm)},
then:function(){return _.e(_.cp,{data:function(){var J,m,a,T,w,P,B,F=!!((J=k.data())==null?0:(m=J.noteData)==null?0:m.isPinned);J=N();m=(a=k.data())==null?void 0:a.noteData;a=(T=E())==null?void 0:(w=T.contributorNote)==null?void 0:w.deleteAction;T=(P=k.data())==null?void 0:P.overflowButtonNoteWithRatingOnTapOverride;P=(B=k.data())==null?void 0:B.overflowButton;return F?PcU(m,a):J?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:T}}:P}},{buttonViewModel:function(J){return _.e(_.yB,{data:J.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.e("div",{class:"ytNoteViewModelNoteContent"},_.e(_.VB,{text:function(){var J;
return(J=V())==null?void 0:J.text}})),_.e(_.t,{cond:function(){var J,m,a,T;
return!((J=k.data())==null?0:(m=J.noteData)==null?0:m.isPinned)&&!((a=k.data())==null?0:(T=a.noteData)==null?0:T.isUserRatingForm)},
then:function(){return _.e(_.t,{cond:N,then:function(){return _.e("div",{class:"ytNoteViewModelUserRatingContainer"},_.e(_.VB,{text:function(){var J,m;return wkP((J=S())==null?void 0:J.helpfulnessValue,(m=k.data())==null?void 0:m.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.e(_.cp,{data:function(){var J;return(J=k.data())==null?void 0:J.userRatingButton}},{buttonViewModel:function(J){return _.e(_.yB,{data:J.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.e(_.t,{cond:function(){var J,m,a,T;
return!((J=k.data())==null?0:(m=J.noteData)==null?0:m.ignoreDivider)&&!((a=k.data())==null?0:(T=a.noteData)==null?0:T.isUserRatingForm)},
then:function(){return _.e("div",{class:"ytNoteViewModelDivider"},_.e(_.cp,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(J){return _.e(_.zS2,{data:J.data})}}))}}))}return _.e("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.e(_.t,{cond:function(){var J,m;return(J=k.data())==null?void 0:(m=J.noteData)==null?void 0:m.isPinned},
then:function(){return _.e(_.i_,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.e(_.t,{cond:function(){var J,m;return(J=k.data())==null?void 0:(m=J.noteData)==null?void 0:m.isPublished},
then:function(){return _.e(_.i_,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.e(_.t,{cond:function(){return R},
then:function(){return _.e(_.cp,{data:function(){var J;return(J=k.data())==null?void 0:J.metadata}},{contentMetadataViewModel:function(J){return _.e(_.PW,{data:J.data})}})}}),_.e(_.VB,{text:function(){var J,m;
return(J=k.data())==null?void 0:(m=J.noteData)==null?void 0:m.headerText}}),_.e("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.e(_.VB,{text:function(){var J,m;
return(J=k.data())==null?void 0:(m=J.noteData)==null?void 0:m.delimiter}})),_.e(_.VB,{text:function(){var J,m;
return(J=E())==null?void 0:(m=J.contributorNote)==null?void 0:m.publishedTimeText}})),_.e(_.cp,{data:function(){var J,m,a;
return PcU((J=k.data())==null?void 0:J.noteData,(m=E())==null?void 0:(a=m.contributorNote)==null?void 0:a.deleteAction)}},{buttonViewModel:function(J){return _.e(_.yB,{data:J.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.e("div",{class:"ytNoteViewModelNoteContent"},_.e(_.VB,{text:function(){var J,m;
return(J=E())==null?void 0:(m=J.contributorNote)==null?void 0:m.text}})))},"Uh");
yR.idomCompat=!0;_.qi(_.f(function(k){var E=_.Zk(function(){var L;return(L=k.data())==null?void 0:L.flowStateEntityKey},""),S=_.iK(_.xz,E),R=_.iK(TcR,_.Zk(function(){var L;
return(L=k.data())==null?void 0:L.noteFeedEntityKey},"")),V=_.n(_.IZ(function(){var L;
return(L=_.W(k.data().helpfulnessValue,_.lp))==null?void 0:L.defaultSelectedKey})),N=V.next().value,h=V.next().value;
V=_.n(_.IZ(function(){var L,q,M;return(M=_.W((L=_.W(k.data().helpfulnessValue,_.lp))==null?void 0:(q=L.radioButtons)==null?void 0:q.find(function(d){var z;return((z=_.W(d,vuY))==null?void 0:z.key)===N()}),vuY))==null?void 0:M.value}));
var J=V.next().value,m=V.next().value;V=_.n(_.IZ(function(){var L;return(L=_.W(k.data().helpfulReasons,fZG))==null?void 0:L.defaultSelectedKeys}));
var a=V.next().value,T=V.next().value;V=_.n(_.IZ(function(){var L;return(L=_.W(k.data().notHelpfulReasons,fZG))==null?void 0:L.defaultSelectedKeys}));
var w=V.next().value,P=V.next().value,B=function(L,q){h(q.key);m(q.value);T([]);P([])},F=function(){var L,q;
return((L=J())==null?void 0:L.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((q=J())==null?void 0:q.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},K=function(){var L,q;
return((L=J())==null?void 0:L.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((q=J())==null?void 0:q.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},r=function(L){Bcx(L.key,a,T)},x=function(L){Bcx(L.key,w,P)};
_.b$(function(){var L,q,M;AwI((L=k.data())==null?void 0:(q=L.userRatingFormSchema)==null?void 0:q.id,{isValid:function(){return!!N()},
formData:function(){var d=J(),z=WtU(a(),_.W(k.data().helpfulReasons,fZG)),kb=WtU(w(),_.W(k.data().notHelpfulReasons,fZG));d={helpfulnessValue:d==null?void 0:d.noteHelpfulnessValue};if(z){d.helpfulReasons=[];z=_.n(z);for(var TI=z.next();!TI.done;TI=z.next()){TI=TI.value;var a1=void 0;if((a1=TI)==null?0:a1.noteHelpfulReason)a1=void 0,d.helpfulReasons.push((a1=TI)==null?void 0:a1.noteHelpfulReason)}}if(kb)for(d.notHelpfulReasons=[],kb=_.n(kb),z=kb.next();!z.done;z=kb.next())if(z=z.value,TI=void 0,(TI=
z)==null?0:TI.noteNotHelpfulReason)TI=void 0,d.notHelpfulReasons.push((TI=z)==null?void 0:TI.noteNotHelpfulReason);return{userRatingFormData:d}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(M=_.W(S(),rIx))==null?void 0:M.submitFormParams},onSubmitResult:function(){var d,z=(d=_.W(S(),rIx))==null?void 0:d.userRatingEntityKey,kb;d={key:z,helpfulnessValue:(kb=J())==null?void 0:kb.noteHelpfulnessValue};z&&_.bl(_.mj("contextNoteUserRatingEntityPayload",z,d));var TI;z=(TI=k.data())==null?void 0:TI.viewNoteFlowStepId;var a1;if((a1=R())==null||!a1.contributorNote){var Ah;z=(Ah=k.data())==null?void 0:Ah.zeroStateFlowStepId}(TI=
Object.assign({},S()))&&z&&(TI.currentStepId=z,TI.stepIdStack=[z],_.bl(_.mj("flowStateEntity",E(),TI)));TI=_.en().resolve(_.t3);var th;(a1=(th=k.data())==null?void 0:th.ratingSubmittedSnackbarCommand)&&TI&&TI.resolveCommand(a1)},
disableDuringSubmission:!0})});
return _.e("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.e(_.cp,{data:function(){var L=_.W(S(),rIx);if(L){var q;var M={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:L==null?void 0:(q=L.note)==null?void 0:q.headerText}]}],delimiter:"\u2022"}},existingNote:L.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else M=void 0;return M}},{noteViewModel:function(L){return _.e("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.e(yR,{data:L.data}))}}),_.e(_.cp,{data:function(){var L;
return(L=k.data())==null?void 0:L.helpfulnessValue}},{radioButtonGroupViewModel:function(L){return _.e("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.e(_.HrP,{data:L.data,
onSelected:B,selectedKey:N}))}}),_.e(_.t,{cond:F,
then:function(){return _.e("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.e("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.e(_.VB,{text:function(){var L;return(L=k.data())==null?void 0:L.helpfulReasonQuestion}})),_.e(_.cp,{data:function(){var L;
return(L=k.data())==null?void 0:L.helpfulReasons}},{checkboxGroupViewModel:function(L){return _.e(po2,{data:L.data,
onItemTap:r,selectedKeys:a,controlledMode:!0})}}))}}),_.e(_.t,{cond:K,
then:function(){return _.e("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.e("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.e(_.VB,{text:function(){var L;return(L=k.data())==null?void 0:L.notHelpfulReasonQuestion}})),_.e(_.cp,{data:function(){var L;
return(L=k.data())==null?void 0:L.notHelpfulReasons}},{checkboxGroupViewModel:function(L){return _.e(po2,{data:L.data,
onItemTap:x,selectedKeys:w,controlledMode:!0})}}))}}),_.e(_.t,{cond:function(){return!F()&&!K()},
then:function(){return _.e(_.cp,{data:function(){var L;return(L=k.data())==null?void 0:L.helpfulNoteFeatures}},{alertBannerViewModel:function(L){return _.e("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.e(_.SLd,{data:L.data}))}})}}))},"Vh"),"yt-note-user-rating-view-model",{props:{data:_.Nq}});_.qi(yR,"yt-note-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=_.iK(TcR,_.Zk(function(){var S;return(S=k.data())==null?void 0:S.noteFeedEntityKey},""));
return _.e("yt-notes-wrapper-view-model",{class:_.SQ("ytNotesWrapperViewModelHost")},_.e(_.t,{cond:function(){var S,R,V;return!((S=k.data())==null||!S.existingNotes)||!((R=k.data())==null||!R.currentNote)&&!((V=E())==null||!V.contributorNote)},
then:function(){return _.e(_.tj,null,_.e(_.cp,{data:function(){var S,R,V,N;return((R=_.W((S=k.data())==null?void 0:S.currentNote,uet))==null?0:(V=R.noteData)==null?0:V.isPublished)?(N=k.data())==null?void 0:N.currentNote:void 0}},{noteViewModel:function(S){return _.e(yR,{data:S.data})}}),_.e(_.cp,{data:function(){var S;
return(S=k.data())==null?void 0:S.existingNotes}},{noteViewModel:function(S){var R=S.data;
return _.e(_.t,{cond:function(){var V,N;return(V=R())==null?void 0:(N=V.noteData)==null?void 0:N.isPublished},
then:function(){return _.e(yR,{data:R})}})}}),_.e(_.cp,{data:function(){var S,R,V,N,h;
return((R=_.W((S=k.data())==null?void 0:S.currentNote,uet))==null?0:(V=R.noteData)==null?0:V.isPublished)||(N=E())==null||!N.contributorNote?void 0:(h=k.data())==null?void 0:h.currentNote}},{noteViewModel:function(S){return _.e(yR,{data:S.data})}}),_.e(_.cp,{data:function(){var S;
return(S=k.data())==null?void 0:S.existingNotes}},{noteViewModel:function(S){var R=S.data;
return _.e(_.t,{cond:function(){var V,N;return!((V=R())==null?0:(N=V.noteData)==null?0:N.isPublished)},
then:function(){return _.e(yR,{data:R})}})}}))},
else:function(){return _.e(_.cp,{data:function(){var S;return(S=k.data())==null?void 0:S.zeroStateData}},{contributorZeroStateViewModel:woU})}}))},"Wh"),"yt-notes-wrapper-view-model",{props:{data:_.Nq}});var oz=_.f(function(k){var E=_.dJ(k,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),S=E.label,R=E.text,V=E.placeholder,N=E.hint;k=E.rows;var h=E.overflowStyle,J=E.outline,m=E.disabled,a=E.disableNewLines,T=E.characterLimit,w=E.validation,P=E.onInput,B=_.VH("textarea");E=_.n(_.IZ(function(){return R()}));
var F=E.next().value,K=E.next().value;E=_.n(_.yg(!1,void 0,"u9PDq"));var r=E.next().value,x=E.next().value,L=function(){x(!0)},q=function(){x(!1)};
_.b$(function(){var ve=B.value,Xm=h(),U5=F();Xm==="expand-vertically"&&U5&&Ft3(ve);B.value.addEventListener("focusin",L);B.value.addEventListener("focusout",q)});
_.bI(function(){B.value.removeEventListener("focusin",L);B.value.removeEventListener("focusout",q)});
var M=function(){var ve;return(ve=w())==null?void 0:ve.validate(F())},d=function(){return T()&&!M()&&F().length>T().maxChars},z=function(){return!!M()||d()};
E=_.RZ(function(ve){if(!ve.currentTarget)return!1;ve=ve.currentTarget;K(ve.value);h()==="expand-vertically"&&Ft3(ve);P==null||P(ve.value);return!0});
var kb=_.RZ(function(ve){a()&&ve.key==="Enter"&&ve.preventDefault();return!1}),TI=_.RZ(function(){B.value.focus()}),a1=function(){return V()||S()},Ah={},th={},He={};
return _.e("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.e("div",{class:_.SQ("ytStandardsTextareaShapeTextareaContainer",(Ah.ytStandardsTextareaShapeTextareaContainerOutline=J,Ah.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=m,Ah.ytStandardsTextareaShapeTextareaContainerOutlineError=z,Ah)),"on:click":TI},_.e("label",{class:_.SQ("ytStandardsTextareaShapeLabel",(th.ytStandardsTextareaShapeLabelFocused=r,th.ytStandardsTextareaShapeLabelDisabled=m,th.ytStandardsTextareaShapeLabelError=
function(){return z()&&!m()},th.ytStandardsTextareaShapeLabelHidden=function(){return!r()&&!F()&&!!a1()},th))},S),_.e("div",{class:_.SQ("ytStandardsTextareaShapePlaceholder",(He.ytStandardsTextareaShapePlaceholderVisible=function(){return!r()&&!F()},He)),
"aria-hidden":"true"},a1),_.e("textarea",{el:B,class:"ytStandardsTextareaShapeTextarea",rows:k,disabled:m,placeholder:a1,"on:input":E,"on:keydown":kb},F)),_.e(_.t,{cond:function(){return N()&&!z()},
then:function(){var ve={};return _.e("div",{class:_.SQ("ytStandardsTextareaShapeHint",(ve.ytStandardsTextareaShapeHintDisabled=m,ve))},_.e("div",{class:"ytStandardsTextareaShapeHintHintMessage"},N))}}),_.e(_.t,{cond:M,
then:function(){return _.e(ApP,{disabled:m},_.e("div",{class:"ytStandardsTextareaShapeErrorMessage"},M))}}),_.e(_.t,{cond:T,
then:function(ve){return _.e(_.t,{cond:d,then:function(){return _.e(ApP,{disabled:m},_.e("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return ve().errorMessage}),_.e("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return F().length+"/"+ve().maxChars}))}})}}))},"Xh");
oz.idomCompat={callbacks:{onInput:!0}};var ApP=_.f(function(k){var E={};return _.e("div",{class:_.SQ("ytStandardsTextareaShapeError",(E.ytStandardsTextareaShapeErrorDisabled=k.disabled,E)),role:"alert"},_.e(_.i_,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),k.children)},"Yh");_.rpP=_.f(function(k){var E=k.data;return _.e("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.e(oz,{text:k.text,label:function(){var S;return(S=E().contentProperties)==null?void 0:S.labelText},
placeholder:function(){var S;return(S=E().contentProperties)==null?void 0:S.placeholderText},
hint:function(){var S;return(S=E().contentProperties)==null?void 0:S.hintText},
outline:function(){var S;return!((S=E().displayProperties)==null?0:S.hideBorder)},
overflowStyle:function(){var S;return((S=E().displayProperties)==null?0:S.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:k.disabled,disableNewLines:function(){var S;return(S=E().displayProperties)==null?void 0:S.disableNewLines},
onInput:k.onInput,characterLimit:k.characterLimit,validation:k.validation,rows:function(){var S;return(S=E().displayProperties)==null?void 0:S.rows}}))},"Zh");_.ufY=_.f(function(k){var E=k.data;return _.e("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.e(oz,{text:k.text,label:function(){var S;return(S=E().contentProperties)==null?void 0:S.labelText},
placeholder:function(){var S;return(S=E().contentProperties)==null?void 0:S.placeholderText},
hint:function(){var S;return(S=E().contentProperties)==null?void 0:S.hintText},
outline:function(){var S;return!((S=E().displayProperties)==null?0:S.hideBorder)},
overflowStyle:function(){var S;return((S=E().displayProperties)==null?0:S.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var S;return(S=E().displayProperties)==null?void 0:S.disableNewLines},
onInput:k.onInput,characterLimit:k.characterLimit,validation:k.validation,rows:function(){var S;return(S=E().displayProperties)==null?void 0:S.rows}}))},"$h");var xI0=_.f(function(k){var E=_.n(_.IZ(function(){var a1,Ah;return((a1=k.data().structuredContextNoteFormSchema)==null?0:(Ah=a1.initialValues)==null?0:Ah.noteBody)?k.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),S=E.next().value,R=E.next().value;
E=_.n(_.IZ(function(){k.data();return!1}));
var V=E.next().value,N=E.next().value;E=_.n(_.IZ(function(){k.data();return!1}));
var h=E.next().value,J=E.next().value;E=_.n(_.IZ(function(){var a1,Ah;return((a1=k.data().structuredContextNoteFormSchema)==null?0:(Ah=a1.initialValues)==null?0:Ah.timestamp)?k.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var m=E.next().value,a=E.next().value;E=_.n(_.IZ(function(){k.data();return!1}));
var T=E.next().value,w=E.next().value;E=_.n(_.IZ(function(){var a1,Ah;return((a1=k.data().structuredContextNoteFormSchema)==null?0:(Ah=a1.initialValues)==null?0:Ah.sources)?[k.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var P=E.next().value,B=E.next().value;E=_.n(_.IZ(function(){k.data();return!1}));
var F=E.next().value,K=E.next().value;E=_.n(_.IZ(function(){return!1}));
var r=E.next().value,x=E.next().value;_.b$(function(){var a1;_.rwt((a1=k.data().structuredContextNoteFormSchema)==null?void 0:a1.id,{isSubmitting:r,onSubmit:function(){x(!0);var Ah=ABG(S(),m(),P(),k.data()),th=_.en().resolve(_.t3);Ah&&th&&th.resolveCommand(Ah,{commandController:{onSuccess:function(){x(!1)}}})},
isValid:function(){return V()&&!h()&&!T()&&!F()}})});
var L=function(a1){if(a1!==void 0&&(R(a1),!V()&&a1.length>0&&N(!0),V())){var Ah=XkG(k.data());if(Ah){var th=Ah.minLength;Ah=Ah.maxLength;th&&a1.length<th?J(!0):Ah&&a1.length>Ah?J(!0):J(!1)}}},q=function(a1){if(a1!==void 0){a(a1);
if(a1.length>0){var Ah,th,He,ve,Xm=U6t((Ah=k.data())==null?void 0:(th=Ah.structuredContextNoteFormSchema)==null?void 0:(He=th.fieldSchemas)==null?void 0:(ve=He.timestamp)==null?void 0:ve.validationSchema);if(Xm&&(Ah=Xm.regex)&&!(new RegExp(Ah)).test(a1)){w(!0);return}}w(!1)}},M=function(a1){if(a1!==void 0){var Ah=a1.split(/[ \n]/).map(function(th){return th.trim()});
B(Ah);if(a1.length>0)for(a1=_.n(Ah),Ah=a1.next();!Ah.done;Ah=a1.next())if(!pk3(Ah.value)){K(!0);return}K(!1)}},d=function(){return{validate:function(a1){if(V()){var Ah=XkG(k.data());
if(Ah){var th=Ah.minLength;Ah=Ah.translations;if(th&&a1.length<th)return Ah==null?void 0:Ah.minLengthErrorMessage}}}}},z=function(){var a1=XkG(k.data()),Ah=a1==null?void 0:a1.maxLength,th;
a1=a1==null?void 0:(th=a1.translations)==null?void 0:th.maxLengthErrorMessage;if(Ah&&a1)return{maxChars:Ah,errorMessage:a1}},kb=function(){return{validate:function(a1){if(a1){var Ah,th,He,ve,Xm=U6t((Ah=k.data())==null?void 0:(th=Ah.structuredContextNoteFormSchema)==null?void 0:(He=th.fieldSchemas)==null?void 0:(ve=He.timestamp)==null?void 0:ve.validationSchema);
if(Xm&&(Ah=Xm.regex,Xm=Xm.translations,Ah&&!(new RegExp(Ah)).test(a1)))return Xm==null?void 0:Xm.regexErrorMessage}}}},TI=function(){return{validate:function(a1){if(a1){var Ah,th,He,ve,Xm=Kta((Ah=k.data())==null?void 0:(th=Ah.structuredContextNoteFormSchema)==null?void 0:(He=th.fieldSchemas)==null?void 0:(ve=He.sources)==null?void 0:ve.validationSchema);
if(Xm&&(Ah=Xm.translations,Ah==null?0:Ah.selectedErrorMessage))for(a1=a1.split(/[ \n]/).map(function(U5){return U5.trim()}),a1=_.n(a1),th=a1.next();!th.done;th=a1.next())if(!pk3(th.value))return a1=void 0,(a1=Ah)==null?void 0:a1.selectedErrorMessage}}}};
return _.e("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.e("div",{class:"ytStructuredContextNoteViewModelTextField"},_.e(_.cp,{data:function(){var a1;return(a1=k.data())==null?void 0:a1.noteContents}},{textFormFieldViewModel:function(a1){return _.e(_.ufY,{data:a1.data,
onInput:L,validation:d,characterLimit:z})},
textFieldViewModel:function(a1){return _.e(_.rpP,{data:a1.data,onInput:L,validation:d,characterLimit:z})}})),_.e("div",{class:"ytStructuredContextNoteViewModelTextField"},_.e(_.cp,{data:function(){var a1;
return(a1=k.data())==null?void 0:a1.noteTimestamp}},{textFormFieldViewModel:function(a1){return _.e(_.ufY,{data:a1.data,
onInput:q,validation:kb})},
textFieldViewModel:function(a1){return _.e(_.rpP,{data:a1.data,onInput:q,validation:kb})}})),_.e("div",{class:"ytStructuredContextNoteViewModelTextField"},_.e(_.cp,{data:function(){var a1;
return(a1=k.data())==null?void 0:a1.noteSources}},{textFormFieldViewModel:function(a1){return _.e(_.ufY,{data:a1.data,
onInput:M,validation:TI})},
textFieldViewModel:function(a1){return _.e(_.rpP,{data:a1.data,onInput:M,validation:TI})}})))},"ai");
xI0.idomCompat=!0;_.qi(xI0,"yt-structured-context-note-view-model",{props:{data:_.Nq}});var LCA=_.f(function(k){var E=_.n(_.IZ(function(){var N;if((N=k.controlled)==null?0:N.call(k))return[];var h;return(((h=k.data())==null?void 0:h.chips)||[]).map(function(J){J=_.W(J,_.zg);if(J==null?0:J.selected)return rBU(J.chipValue)}).filter(function(J){return J!==void 0})})),S=E.next().value,R=E.next().value,V=function(N){var h=rBU(N.chipValue);
if(h!==void 0){var J;if((J=k.controlled)==null?0:J.call(k))return void k.controlled().onTap(h);N=S().includes(h)?[].concat(_.$e(S().filter(function(a){return a!==h}))):[].concat(_.$e(S()),[h]);
R(N);var m;if((m=k.uncontrolled)==null?0:m.call(k))k.uncontrolled().onUpdate(N)}};
return _.e("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.e(_.jw,{each:function(){return k.data().chips||[]}},function(N){return _.e("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.e(_.MRj,{data:function(){return _.W(N,_.zg)},
selected:function(){var h;if(h=_.W(N,_.zg)){var J=rBU(h.chipValue);if(J!==void 0){var m;h=((m=k.controlled)==null?0:m.call(k))?k.controlled().selectedValues.includes(J):S().includes(J)}else h=void 0}else h=!1;return h},
callback:V}))}))},"bi");var j7P=_.f(function(k){var E=k.data;var S=function(){var J;return((J=E())==null?void 0:J.flowStateKey)||""},R=_.iK(_.xz,S),V=function(){var J;
return(J=_.W(R(),xeU))==null?void 0:J.chips},N=function(J){if(J!==void 0){var m=V()||[];
m=m.find(function(a){return a===J})?m.filter(function(a){return a!==J}):[].concat(_.$e(m),[J]);
m=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.W(R(),xeU),{chips:m})});_.bl(_.mj("flowStateEntity",S(),m))}},h=function(){var J;
return _.W((J=E())==null?void 0:J.inputBox,LSx)};
k=_.ta(function(J){var m=h();m=!(m==null?0:m.maxChars)||J.length<=m.maxChars;J=Object.assign({},R(),{feedbackFormFlowState:Object.assign({},_.W(R(),xeU),{detail:J}),abuseReportFlowState:Object.assign({},_.W(R(),sq),{navigationEnabled:m})});_.bl(_.mj("flowStateEntity",S(),J))},150);
return _.e("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.e("div",{class:"ytFeedbackFormViewModelChips"},_.e(_.cp,{data:function(){var J;return(J=E())==null?void 0:J.chipSelection}},{chipSelectionFormFieldViewModel:function(J){return _.e(LCA,{data:J.data,
controlled:function(){return{selectedValues:V()||[],onTap:N}}})}})),_.e("div",{class:"ytFeedbackFormViewModelInputBox"},_.e(oz,{text:function(){var J;
return(J=_.W(R(),xeU))==null?void 0:J.detail},
placeholder:function(){var J;return((J=h())==null?void 0:J.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var J=h();if(J&&J.maxChars)return{maxChars:J.maxChars,errorMessage:J.maxCharsExceededErrorMessage||""}},
onInput:k})),_.e("div",{class:"ytFeedbackFormViewModelFooterText"},_.e(_.VB,{text:function(){return E().footerText}})))},"ci");
j7P.idomCompat=!0;_.qi(j7P,"yt-feedback-form-view-model",{props:{data:_.Nq}});var DIx=_.f(function(k){var E=k.data;var S=_.iK(pna,function(){return E().flowStateKey||""}),R=function(){var V;
_.AV((V=_.W(S(),sq))==null?void 0:V.navigationCommand)};
return _.e("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.e("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.e(_.cp,{data:function(){return E().cancelButton}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:R})}}),_.e(_.cp,{data:function(){var V;
if(E().navButton){var N=Object;var h=N.assign,J=_.W(E().navButton,_.qz),m=((V=_.W(S(),sq))==null?0:V.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",a,T;V=_.W((a=_.W(S(),sq))==null?void 0:a.navigationCommand,_.gX);a=(T=_.W(V,_.Oc))==null?void 0:T.url;N={buttonViewModel:h.call(N,{},J,{state:m,iconName:a?"OPEN_IN_NEW":""})}}else N=void 0;return N}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:R})}})))},"di");
DIx.idomCompat=!0;_.qi(DIx,"yt-report-form-bottom-bar-view-model",{props:{data:_.Nq}});var $IY=_.f(function(k){var E=k.nextStep;return _.e("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.e("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.e(_.i_,{icon:function(){return E().iconName||""}})),_.e("div",null,_.e(_.VB,{text:function(){return E().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ei"),fET=_.f(function(k){var E=k.data;
var S,R=(S=_.en().resolve(_.mz(_.jF)))==null?void 0:S(),V=_.iK(_.xz,function(){return E().flowStateKey||""});
return _.e("yt-report-form-confirmation-page-view-model",{class:function(){var N;return((N=_.W(V(),sq))==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.e("div",{class:function(){var N;
return((N=_.W(V(),sq))==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.e(_.vM,{data:function(){return R&&E().imageDark?E().imageDark:E().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.e("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.e("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return E().confirmationHeader}),_.e("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.e(_.VB,{text:function(){return E().confirmationText}})),_.e("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.e(_.VB,{text:function(){return E().lawEnforcementText}})),
_.e("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return E().whatToExpectHeader}),_.e(_.t,{cond:function(){return E().nextSteps},
then:function(N){return _.e("div",null,_.e(_.jw,{each:N},function(h){return _.e($IY,{nextStep:h})}))}}),_.e(_.t,{cond:function(){return E().legalReportText},
then:function(N){return _.e("div",null,_.e(_.VB,{text:N,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"fi");
fET.idomCompat=!0;_.qi(fET,"yt-report-form-confirmation-page-view-model",{props:{data:_.Nq}});var vnY=_.f(function(k){var E=k.data;var S=function(){var N;return((N=_.W(E().inputBox,LSx))==null?void 0:N.maxChars)||500},R=function(){return E().flowStateKey||""},V=_.iK(_.xz,R);
k=_.ta(function(N){N=Object.assign({},V(),{flowFormState:{isValid:N.length<=S()},abuseReportFlowState:{userComments:N,navigationEnabled:!(N.length>S()),isReportFormDirty:!0}});_.vu().dispatch(_.wE("flowStateEntity",R(),N))},150);
_.b$(function(){var N=Object.assign({},V(),{flowFormState:{isValid:!0}});_.vu().dispatch(_.wE("flowStateEntity",R(),N))});
return _.e("yt-report-form-details-page-view-model",{class:function(){var N;return((N=_.W(V(),sq))==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.e("h1",{class:function(){var N;
return((N=_.W(V(),sq))==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return E().detailsPageHeader}),_.e("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.e(_.VB,{text:function(){return E().bodyText}})),_.e("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.e(oz,{label:function(){var N;
return((N=_.W(E().inputBox,LSx))==null?void 0:N.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var N;return{errorMessage:((N=_.W(E().inputBox,LSx))==null?void 0:N.maxCharsExceededErrorMessage)||"",maxChars:S()}},
onInput:k})))},"gi");
vnY.idomCompat=!0;_.qi(vnY,"yt-report-form-details-page-view-model",{props:{data:_.Nq}});var brY=_.f(function(k){var E=k.data;var S=function(){return E().flowStateKey||""},R=_.iK(_.xz,S),V=function(){return _.W(R(),sq)};
return _.e("yt-report-form-reason-select-page-view-model",{class:function(){var N;return((N=V())==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.e("h1",{class:function(){var N;
return((N=V())==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return E().pageHeader}),_.e("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.e(_.VB,{text:function(){return E().bodyText}})),_.e("div",{class:function(){var N;
return((N=V())==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.e(_.HrP,{data:function(){return _.W(E().radioButtonGroup,_.lp)},
onSelected:function(N,h){N=Object.assign({},R(),{abuseReportFlowState:Object.assign({},V(),{reasonKey:h.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:h.command})});_.bl(_.mj("flowStateEntity",S(),N))},
selectedKey:function(){var N;return(N=V())==null?void 0:N.reasonKey},
groupName:"report-form-reason-select-page"})))},"hi");
brY.idomCompat=!0;_.qi(brY,"yt-report-form-reason-select-page-view-model",{props:{data:_.Nq}});var ZrT=_.f(function(k){var E=k.data;var S,R=(S=_.en().resolve(_.mz(_.jF)))==null?void 0:S();return _.e("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.e("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.e(_.vM,{data:function(){return R&&E().imageDark?E().imageDark:E().image},
alt:""})),_.e("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.e("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return E().header}),_.e(_.VB,{text:function(){return E().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"ii");
ZrT.idomCompat=!0;_.qi(ZrT,"yt-report-form-sign-in-page-view-model",{props:{data:_.Nq}});_.dIa=(0,_.Qr3)(_.qS.talkToRecs,{talkToRecsStateSelector:function(k){return k}});_.qi(_.f(function(k){var E=k.data;var S=_.gb(_.dIa.talkToRecsStateSelector),R=function(){return E().titleSuperscript},V=function(){return E().answersShelf},N=function(){return E().videoShelf},h=function(){var TI;
return(TI=E().textInputPlaceholder)==null?void 0:TI.content},J=function(){return E().showOpenTextInput},m=function(){var TI;
return(TI=E().textInputValue)==null?void 0:TI.content},a=function(){return E().isMultiTurnFlow?E().resetButtonViewModel:void 0},T="",w=function(){return E().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
k=_.n(_.yg("",void 0,"EFTZDb"));var P=k.next().value,B=k.next().value;k=_.n(_.yg(!1,void 0,"OgB5Cc"));var F=k.next().value,K=k.next().value,r=function(){return{state:F()||P()?"active":"disabled",disabled:!(F()||P())}};
_.vC(function(){if(J()){m()&&B(m());var TI;if(!a()&&((TI=S())==null?0:TI.stepStates)){var a1;TI=Object.keys((a1=S())==null?void 0:a1.stepStates);a1=TI[TI.length-1];var Ah,th;(a1=(Ah=S().stepStates[a1])==null?void 0:(th=Ah.userQuery)==null?void 0:th.userQuery)&&B(a1);_.bl(_.AIY())}}});
var x=function(TI){var a1=E().onUpdateText;a1&&_.AV(a1,{form:{userQuery:TI}});B(TI)},L=_.ta(function(TI){x(TI.target.value.trim())},150),q=_.RZ(function(TI){var a1;
T=(a1=TI.target.value)==null?void 0:a1.trim();L(TI);return!1}),M=_.RZ(function(TI){TI.key==="Enter"&&(F()||P())&&(x(TI.target.value.trim()),z());
return!1}),d=function(TI,a1){K(a1);
if(a1){if(E().isMultiTurnFlow&&!T){var Ah;x((Ah=TI==null?void 0:TI.text)!=null?Ah:"")}E().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&z()}else B(T)},z=function(){var TI=void 0,a1=_.W(E().nextButtonViewModel,_.qz),Ah,th;
if(a1==null?0:(Ah=a1.loggingDirectives)==null?0:(th=Ah.clientVeSpec)==null?0:th.uiType){var He,ve;TI=_.kh((He=a1.loggingDirectives)==null?void 0:(ve=He.clientVeSpec)==null?void 0:ve.uiType)}(a1=E().onNextStepCommand)&&_.AV(a1,{clickedVisualElement:TI})};
k=_.VH("yt-talk-to-recs-view-model");var kb={};return _.e("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:k},_.e("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.e(_.cp,{data:function(){return E().topCornerButton}},{buttonViewModel:_.yB})),_.e("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.e("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.e(_.VB,{text:function(){return E().title}}),_.e(_.t,{cond:R,
then:function(){return _.e("sup",{class:"ytwTalkToRecsSuperScript"},_.e(_.VB,{text:R}))}})),_.e("div",{class:"ytwTalkToRecsSubtitle"},_.e(_.VB,{text:function(){return E().subtitle}})),_.e("div",{class:"ytwTalkToRecsResultsShelf"},_.e(_.t,{cond:V,
then:function(){return _.e(_.cp,{data:V},{chipsShelfViewModel:function(TI){return _.e("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.e(_.On,{data:TI.data,callback:d,selectionBehavior:w}))}})}}),_.e(_.t,{cond:N,
then:function(){return _.e(_.cp,{data:N},{horizontalShelfViewModel:function(TI){return _.e("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.e(_.CE,{data:TI.data,thumbnailAspectRatio:0}))}})}})),_.e("div",{class:_.SQ("ytwTalkToRecsRefinementContainer",(kb.ytwTalkToRecsBottomMargin=function(){return E().isMultiTurnFlow},kb))},_.e(_.t,{cond:J,
then:function(){return _.e("div",{class:"ytwTalkToRecsUserInputBox"},_.e("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:h,value:P,"on:input":q,"on:keyup":M,maxlength:200}))}}),_.e(_.cp,{data:function(){return E().isMultiTurnFlow?E().nextButtonViewModel:void 0}},{buttonViewModel:function(TI){return _.e("div",{class:"ytwTalkToRecsFlowControlButtons"},_.e(_.yB,{data:TI.data,
buttonOverrides:r}))}}),_.e(_.cp,{data:a},{buttonViewModel:function(TI){return _.e("div",{class:"ytwTalkToRecsFlowControlButtons"},_.e(_.yB,{data:TI.data,
onClick:function(){var a1=_.W(E().resetButtonViewModel,_.qz);x(P());(a1=a1==null?void 0:a1.onTap)&&_.AV(a1)}}))}}))))},"ki"),"yt-talk-to-recs-view-model",{props:{data:_.Nq}});var unI={sources:[{clientResource:{imageName:"CHECK"}}]};_.s7U=_.f(function(k){var E=_.VH("div");k=_.dJ(k,{error:void 0});var S=k.data,R=k.error,V=k.onSelected;k=_.n(_.IZ(function(){return jda(S())}));
var N=k.next().value,h=k.next().value;vFY(S,function(P){h(P);var B,F,K=LtA((B=S().options)==null?void 0:(F=B[P])==null?void 0:F.value,S().type);V==null||V(K);E.value.focus()});
k=_.RZ(function(){if(!S().disabled){var P=S(),B=N(),F=E.value;P.options&&(P=x6A(P.options,B,P.label),_.en().resolve(_.f6).openSheet({viewModel:P},F))}});
var J=_.vSl(),m=function(){return!!R()},a=function(){return!!S().disabled},T={},w={};
return _.e("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.e("div",{class:_.SQ("ytDropdownViewModelDropdownContainer",(T.ytDropdownViewModelDropdownContainerErrorBorder=m,T.ytDropdownViewModelDropdownContainerDisabled=a,T)),"on:click":k,el:E,role:"combobox",tabindex:0,"on:keydown":J,"aria-invalid":m,"aria-disabled":a,"aria-describedby":function(){return m()?"dropdown-view-model-error":void 0}},_.e("div",{class:"ytDropdownViewModelText"},D6a(S,m,N),$63(S,N)),_.e("div",{class:_.SQ("ytDropdownViewModelChevronDown",
(w.ytDropdownViewModelChevronDownDisabled=a,w))},_.e(_.i_,{icon:"CHEVRON_DOWN"}))),fwP(S,R))},"li");_.qi(_.f(function(k){var E=k.data;var S=function(V){var N=ZfA(E());N.videoMetadata||(N.videoMetadata={});N.videoMetadata.sponsorshipsMetadata||(N.videoMetadata.sponsorshipsMetadata={});N.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(V)},R=function(V){var N=ZfA(E());
N.scheduledRedirectMetadata||(N.scheduledRedirectMetadata={});N.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(V)};
return _.e("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.e("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.e("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.e(_.VB,{text:function(){return E().title}}),_.e(_.i_,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.e(_.VB,{text:function(){return E().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.e(_.cp,{data:function(){return E().tierChoices}},{dropdownViewModel:function(V){return _.e("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.e(_.s7U,{data:V.data,
onSelected:S}))}}),_.e(_.cp,{data:function(){return E().startTimeChoices}},{dropdownViewModel:function(V){return _.e("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.e(_.s7U,{data:V.data,
onSelected:R}))}}),_.e(_.VB,{text:function(){return E().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.e("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.e(_.cp,{data:function(){return E().scheduleButton}},{panelFooterViewModel:_.FO})))},"mi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;k=k.className===void 0?"":k.className;var S=_.iK(pna,function(){return E().flowStateEntityKey||""}),R={};
R=_.SQ("ytFlowBottomBarViewModelFlowBottomBarButtons",(R.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},R));
var V={},N=_.SQ("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",R,(V.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},V.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},V));
V={};var h=_.SQ("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",R,(V.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},V.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},V));
R={};R=_.SQ("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},R.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return E().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
R));
k=_.SQ("ytFlowBottomBarViewModelHost",k);return _.e("yt-flow-bottom-bar-view-model",{class:k},_.e(_.t,{cond:function(){var J;return(J=E())==null?void 0:J.textSection},
then:function(J){return _.e("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.e(_.VB,{text:J}))}}),_.e("div",{class:R},_.e(_.cp,{data:function(){return E().secondaryButton}},{buttonViewModel:function(J){return _.e(_.yB,{data:J.data,
className:h})}}),_.e(_.cp,{data:function(){return E().primaryButton}},{buttonViewModel:function(J){return _.e(_.yB,{data:J.data,
className:N,buttonOverrides:function(){var m;return{disabled:!((m=S())==null||!m.primaryButtonDisabled)}}})}})))},"ni"),"yt-flow-bottom-bar-view-model",{props:{data:_.Nq,
className:_.sk}});var lEG="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),XO=function(){var k=_.p.apply(this,arguments)||this;k.enableScrollingFix=!0;k.bottomBar=!1;k.fitContent=!1;return k};
_.y(XO,_.p);_.I=XO.prototype;_.I.ready=function(){_.Y("enable_pdp_icon_prefetch")&&_.KSx(_.en().resolve(_.l8),0,lEG)};
_.I.focus=function(k){this.topBar?_.VF(this.topBar,k):this.paperDialog.focus(k)};
_.I.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19335_scroller&&(this.JSC$19335_scroller.dialogElement=this.paperDialog,this.JSC$19335_scroller.attached&&typeof this.JSC$19335_scroller.attached==="function"&&this.JSC$19335_scroller.attached())};
_.I.onDataChanged=function(){var k;this.fitContent=!((k=this.data)==null||!k.fitContent);var E;this.bottomBar=!((E=this.data)==null||!E.bottomBar)};
_.I.onProgressChanged=function(){var k,E,S=((E=(k=this.data)==null?void 0:k.progress)!=null?E:0)*100;this.progressElement.style.width=S+"%"};
_.I.isProgressHidden=function(){var k;return!((k=this.data)==null?0:k.progress)};
_.I.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(k){return k&&!k.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
XO.prototype.onProgressChanged=XO.prototype.onProgressChanged;XO.prototype.onDataChanged=XO.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],XO.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],XO.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XO.prototype,"enableScrollingFix",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XO.prototype,"bottomBar",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XO.prototype,"fitContent",void 0);_.Z([_.JO("#progress"),_.l("design:type",HTMLElement)],XO.prototype,"progressElement",void 0);_.Z([_.JO("#scroller"),_.l("design:type",Object)],XO.prototype,"JSC$19335_scroller",void 0);_.Z([_.JO("ytd-flow-top-bar-renderer"),_.l("design:type",HTMLElement)],XO.prototype,"topBar",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XO.prototype,"onDataChanged",null);_.Z([_.il("data.progress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XO.prototype,"onProgressChanged",null);_.Z([_.D({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],XO);
_.b(XO,"ytd-flow-step-renderer",function(){if(tdP!==void 0)return tdP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return tdP=k},{mode:1});var gx=function(k){this.resolveCommand=k;this.steps={}},Mi2=function(k,E){E=_.n(E||[]);
for(var S=E.next();!S.done;S=E.next()){S=S.value;var R=Object.values(S)[0],V=void 0;if((V=R)==null?0:V.stepId)k.steps[R.stepId]=S}},zea=function(k,E){var S,R,V,N,h;
return _.c(function(J){if((S=k.state)==null||!S.currentStepId)return J.return(void 0);R=k.getCurrentStep();if(!R)return J.return(qpt(k));if(V=_.W(R,_.HF))k.logVEScreen(V),((N=V)==null?0:N.onStepStartCommand)&&k.resolveCommand((h=V)==null?void 0:h.onStepStartCommand,{});V&&E&&(k.logFlowEvent(V,E),E.steps&&!E.steps.includes(R)&&E.steps.push(R));return J.return(R)})};
gx.prototype.back=function(){var k;(k=this.state)!=null&&k.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
gx.prototype.handleUpdateFlowCommand=function(k){k.steps&&Mi2(this,k.steps);k.entityUpdateCommand&&this.resolveCommand(k.entityUpdateCommand,{});k.flowContinuationCommand&&(k=k.flowContinuationCommand)&&(this.getFlowContinuationCommand=k);this.awaitFlowContinuation&&(k=this.getCurrentStep(),this.awaitFlowContinuation(k),this.awaitFlowContinuation=void 0)};
gx.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var qpt=function(k){return _.c(function(E){return k.getFlowContinuationCommand?E.return(new Promise(function(S){k.awaitFlowContinuation=S;k.getFlowContinuationCommand&&k.resolveCommand(k.getFlowContinuationCommand,{flow_state:k.state})})):E.return(Promise.resolve(void 0))})};
gx.prototype.getCurrentStep=function(){var k;if((k=this.state)!=null&&k.currentStepId)return this.steps[this.state.currentStepId]};
gx.prototype.logVEScreen=function(k){var E;((E=k.screenLoggingData)==null?0:E.screenVeType)&&_.Pq(_.JV(),k.screenLoggingData.screenVeType)};
gx.prototype.logFlowEvent=function(k,E){var S,R,V,N;((S=E.flowLoggingData)==null?0:S.eventNamespace)&&((R=k.flowEventData)==null?0:R.eventType)&&((V=k.flowEventData)==null?0:V.eventMetadata)&&((N=E.flowLoggingData)==null?0:N.flowType)&&(k=_.Ex(E.flowLoggingData.eventNamespace,k.flowEventData.eventType,k.flowEventData.eventMetadata),_.Sk().logFlowEvent(k,E.flowLoggingData.flowType))};
_.mt.Object.defineProperties(gx.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.state)==null?void 0:k.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.state)!=null&&k.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(E,S){S.key&&S.value&&(E[S.key]=S.value);return E},{})}}});var U$=function(){var k=_.p.apply(this,arguments)||this;k.flowState=_.Y("web_use_flow_state_manager")?void 0:new gx(function(E,S){S=S===void 0?{}:S;_.V_.instance.resolveCommand(E,{form:{form:S,element:k.hostElement}})});
k.JSC$19346_flowStateManager=_.Y("web_use_flow_state_manager")?_.en().resolve(_.oi):void 0;k.currentTargetId="";k.initialState=!0;k.isLoading=!1;k.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"};k.containsTalkToRecs=!1;return k};
_.y(U$,_.p);_.I=U$.prototype;_.I.onPopupClosed=function(k){if(!k||this.hostElement===k.detail.popupRenderer){if(this.JSC$19346_flowStateManager){var E;((E=this.data)==null?0:E.flowStateEntityKey)&&this.JSC$19346_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.I.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"}}}};
_.I.focus=function(k){var E=this;_.xT(function(){var S=_.Cc(E.hostElement).querySelector("ytd-flow-step-renderer");(S==null?0:S.topBar)?S.focus(k):E.topBar&&_.VF(E.topBar,k)},1)};
_.I.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.I.computeTopBarHidden=function(k){var E;return!((E=_.W(k,_.HF))==null||!E.topBarOverride)};
_.I.onCurrentFlowChange=function(){if(this.JSC$19346_flowStateManager&&this.data&&this.flow){var k=yIU(this.JSC$19346_flowStateManager,this.data),E;k&&((E=this.flow)==null?0:E.currentStepId)&&(gut(k,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.I.observeData=function(){var k=this;if(this.JSC$19346_flowStateManager){var E=this.currentTargetId,S,R,V=(R=(S=this.data)==null?void 0:S.targetId)!=null?R:"";E!==V&&E&&ouW(this.JSC$19346_flowStateManager,E);this.currentTargetId=V;this.data&&XiR(yIU(this.JSC$19346_flowStateManager,this.data),function(N){N&&(k.initialState=!1,k.currentFlowStep={flowStepRenderer:N},k.isLoading=!k.currentFlowStep,k.autofocusAndRefit(),k.updateContainsTalkToRecs(),k.logVEScreen(),k.logFlowEvent())})}};
_.I.dataChanged=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1){if(!k.flowState)return R.return();((E=k.data)==null?0:E.steps)&&Mi2(k.flowState,k.data.steps);if((S=k.data)==null?0:S.flowContinuationCommand){var V=k.flowState,N=k.data.flowContinuationCommand;N&&(V.getFlowContinuationCommand=N)}return R.yield(zea(k.flowState,k.data),2)}k.currentFlowStep=R.yieldResult;_.KR(R)})};
_.I.flowChanged=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1){if(!k.flowState||!k.flow)return S.return();k.flowState.state=k.flow;k.isLoading=!0;return S.yield(zea(k.flowState,k.data),2)}E=S.yieldResult;if(!E||k.flow.isLoading)return S.return();k.currentFlowStep=E;k.initialState=!1;k.isLoading=!1;k.autofocusAndRefit();k.updateContainsTalkToRecs();_.KR(S)})};
_.I.logVEScreen=function(){var k,E,S=(k=_.W(this.currentFlowStep,_.HF))==null?void 0:(E=k.screenLoggingData)==null?void 0:E.screenVeType;S&&_.Pq(_.en().resolve(_.fG),S)};
_.I.logFlowEvent=function(){var k=_.W(this.currentFlowStep,_.HF),E,S,R,V,N,h;(this==null?0:(E=this.data)==null?0:(S=E.flowLoggingData)==null?0:S.eventNamespace)&&(this==null?0:(R=this.data)==null?0:(V=R.flowLoggingData)==null?0:V.flowType)&&(k==null?0:(N=k.flowEventData)==null?0:N.eventType)&&(k==null?0:(h=k.flowEventData)==null?0:h.eventMetadata)&&(k=_.Ex(this.data.flowLoggingData.eventNamespace,k.flowEventData.eventType,k.flowEventData.eventMetadata),_.Sk().logFlowEvent(k,this.data.flowLoggingData.flowType))};
_.I.updateContainsTalkToRecs=function(){var k,E=(k=_.W(this.currentFlowStep,_.HF))==null?void 0:k.content;this.containsTalkToRecs=!!E&&!!_.W(E,jrW)};
_.I.autofocusAndRefit=function(){var k=this,E=_.en().resolve(_.mz(_.tr)),S=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),R=document.querySelector("yt-report-form-confirmation-page-view-model"),V=document.querySelector("yt-report-form-details-page-view-model"),N=document.querySelector("yt-report-form-reason-select-page-view-model"),h=document.querySelector("yt-contributor-zero-state-view-model"),
J=document.querySelector("yt-structured-context-note-view-model"),m=document.querySelector("yt-note-view-model");(!S&&E&&E.isKeyBoardInUse()||R||!S&&V||!S&&N||h||J||m)&&_.Nd(this.hostElement);_.JB(this,function(){_.Me(k.hostElement,"yt-refit")})};
_.I.handleUpdateFlowCommand=function(k){this.flowState?this.data&&(k=_.W(k,_.bSd),k.targetId===this.data.targetId&&(k.flowContinuationCommand&&(this.data.flowContinuationCommand=k.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(k),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(k)};
_.I.handleFlowNextStepCommand=function(k){this.JSC$19346_flowStateManager?this.ytComponentBehavior.resolveCommand(k):this.data&&this.flow&&this.flow.key&&(k=_.W(k,_.DlT),k.targetId===this.data.targetId&&(k=k.stepId||"",this.ytdReduxBehavior.dispatch(_.wE("flowStateEntity",this.flow.key,{currentStepId:k,stepIdStack:(this.flow.stepIdStack||[]).concat(k)}))))};
_.I.handleFlowPrevStepCommand=function(k){if(this.JSC$19346_flowStateManager)this.ytComponentBehavior.resolveCommand(k);else if(this.data&&this.flow&&this.flow.key&&(k=_.W(k,_.$ld),k.targetId===this.data.targetId)){var E=[].concat(_.$e(this.flow.stepIdStack||[]));E.length>1?(E.pop(),this.ytdReduxBehavior.dispatch(_.wE("flowStateEntity",this.flow.key,{currentStepId:E[E.length-1],stepIdStack:E}))):k.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(k.onFirstStepCommand)}};
_.I.handleYpcCancelRecurrenceCommand=function(k){if(this.data&&this.flow&&this.flow.key&&(k=_.W(k,bII),k.targetId===this.data.targetId&&k.endpointCommand)){var E=_.W(this.flow,ZI0);E&&_.W(k.endpointCommand,_.GDY)&&(_.W(k.endpointCommand,_.GDY).feedbackData=E.surveyFeedback);this.ytComponentBehavior.resolveCommand(k.endpointCommand)}};
_.I.handlePartialUpdateFlowStateEntity=function(k){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.wE("flowStateEntity",this.flow.key,k,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
U$.prototype.flowChanged=U$.prototype.flowChanged;U$.prototype.dataChanged=U$.prototype.dataChanged;U$.prototype.observeData=U$.prototype.observeData;U$.prototype.onCurrentFlowChange=U$.prototype.onCurrentFlowChange;U$.prototype.onPopupClosed=U$.prototype.onPopupClosed;_.Z([_.g(_.zm),_.l("design:type",Object)],U$.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],U$.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],U$.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],U$.prototype,"initialState",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],U$.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",Object)],U$.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],U$.prototype,"currentFlowStep",void 0);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],U$.prototype,"onPopupClosed",null);
_.Z([_.H({selectorArgs:["data.flowStateEntityKey"],selector:pna}),_.l("design:type",Object)],U$.prototype,"flow",void 0);_.Z([_.JO("ytd-flow-top-bar-renderer"),_.l("design:type",HTMLElement)],U$.prototype,"topBar",void 0);_.Z([_.il("data","flow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],U$.prototype,"onCurrentFlowChange",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],U$.prototype,"observeData",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],U$.prototype,"dataChanged",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],U$.prototype,"containsTalkToRecs",void 0);_.Z([_.ac("flow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],U$.prototype,"flowChanged",null);_.Z([_.D({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],U$);
_.Q7W=_.O_()(U$,"ytd-flow-root-renderer",function(){if(av0!==void 0)return av0;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return av0=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var Ora;var Zc=null;_.qi(_.f(function(k){return _.e("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.e("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.e(_.VB,{text:function(){return k.data().text}}),_.e("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"oi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Nq}});var GJ2=_.f(function(k){var E=k.playerControlsProps;var S=k.isShortsPage;return _.e("yt-bigboard",null,_.e(_.t,{cond:function(){return E().isDragging},
then:function(){return _.e("div",{class:"ytBigboardStoryboardHost"},_.e(_.mG0,{progressBarProps:E,isShortsPage:S}))}}))},"pi");
GJ2.idomCompat=!0;_.HK={ACCOUNT_LABEL:dK("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:dK("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:dK("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:dK("AD_BADGE_HINT"),AD_BADGE_TEXT:dK("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:dK("ALL_CHANNELS_LABEL"),AMBIENT_MODE:dK("AMBIENT_MODE"),AMBIENT_MODE_OFF:dK("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:dK("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:dK("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:dK("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:dK("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:dK("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:dK("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:dK("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:dK("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:dK("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:dK("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:dK("AUTO_ZOOM","Auto zoom"),BACK:dK("BACK"),CANCEL:dK("CANCEL"),CHANNEL_SWITCHER_LABEL:dK("CHANNEL_SWITCHER_LABEL"),CLOSE:dK("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:dK("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:dK("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:dK("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:dK("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:dK("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:dK("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:dK("COMMENT_MODAL_CONTENT"),CONFIRM_OK:dK("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:dK("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:dK("COPIED_TO_CLIPBOARD"),COPY:dK("COPY"),COPY_DEBUG_INFO:dK("COPY_DEBUG_INFO"),COPY_EMBED_CODE:dK("COPY_EMBED_CODE"),
COPY_LINK_LABEL:dK("COPY_LINK_LABEL"),COPY_VIDEO_URL:dK("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:dK("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:dK("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:dK("DELETE_FROM_DOWNLOADS"),DIALOG:dK("DIALOG"),DONE:dK("DONE"),DOWNLOAD:dK("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:dK("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:dK("FLAG_CONFIRM"),FLAG_CONTENT:dK("FLAG_CONTENT"),FLAG_LABEL:dK("FLAG_LABEL"),FLAG_TITLE:dK("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:dK("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:dK("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:dK("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:dK("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:dK("HIDE_SEARCH_FILTERS_LABEL"),HOME:dK("HOME","Home"),INVALID_RESPONSE_RECEIVED:dK("INVALID_RESPONSE_RECEIVED"),LIBRARY:dK("LIBRARY","Library"),LISTENING:dK("LISTENING"),LOADING:dK("LOADING"),LONG_PRESS_MIC_TO_SPEAK:dK("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:dK("LOOP"),MENU_DESKTOP:dK("MENU_DESKTOP"),
MENU_EXIT:dK("MENU_EXIT"),MENU_FEEDBACK:dK("MENU_FEEDBACK"),MENU_HELP:dK("MENU_HELP"),MENU_IMPRESSUM:dK("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:dK("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:dK("MENU_SETTINGS"),MENU_SIGN_IN:dK("MENU_SIGN_IN"),MENU_TITLE:dK("MENU_TITLE"),MENU_YOUR_DATA:dK("MENU_YOUR_DATA"),MORE_INFO:dK("MORE_INFO"),MORE_OPTIONS:dK("MORE_OPTIONS"),MUTE_VOLUME:dK("MUTE_VOLUME"),NEW_PLAYLIST:dK("NEW_PLAYLIST"),NEXT_VIDEO:dK("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:dK("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:dK("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:dK("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:dK("NOT_FOUND_TITLE"),NO_DOWNLOADS:dK("NO_DOWNLOADS"),NO_MIC_INPUT:dK("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:dK("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:dK("OOPS_MESSAGE"),OPEN_APP:dK("OPEN_APP"),OPEN_YOUTUBE:dK("OPEN_YOUTUBE"),PAUSE:dK("PAUSE"),PLAY:dK("PLAY"),PLAYER_CAPTION:dK("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:dK("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:dK("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:dK("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:dK("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:dK("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:dK("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:dK("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:dK("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:dK("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:dK("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:dK("PLAYER_MINIMIZE"),PLAYER_NEXT:dK("PLAYER_NEXT"),PLAYER_PAUSE:dK("PLAYER_PAUSE"),PLAYER_PLAY:dK("PLAYER_PLAY"),
PLAYER_PREVIOUS:dK("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:dK("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:dK("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:dK("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:dK("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:dK("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:dK("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:dK("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:dK("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:dK("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:dK("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:dK("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:dK("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:dK("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:dK("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:dK("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:dK("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:dK("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:dK("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:dK("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:dK("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:dK("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:dK("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:dK("PLAY_ALL"),PLEASE_FIX_ERRORS:dK("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:dK("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:dK("PREVIOUS_VIDEO"),PRIVACY_POLICY:dK("PRIVACY_POLICY"),RELOAD:dK("RELOAD"),REQUIRED_LABEL:dK("REQUIRED_LABEL"),SAVE_PLAYLIST:dK("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:dK("SCRUB_SLIDE_USER_EDU"),SEARCH:dK("SEARCH","Search"),
SEARCH_APPEND_LABEL:dK("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:dK("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:dK("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:dK("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:dK("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:dK("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:dK("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:dK("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:dK("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:dK("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:dK("SEEK_SLIDER"),SETTINGS_LABEL:dK("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:dK("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:dK("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:dK("SHOW_LESS"),SHOW_MORE:dK("SHOW_MORE"),SHOW_PLAYER_CONTROLS:dK("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:dK("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:dK("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:dK("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:dK("SIGN_IN_ON_WEB"),STABLE_VOLUME:dK("STABLE_VOLUME"),STABLE_VOLUME_OFF:dK("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:dK("STABLE_VOLUME_ON"),STATS_FOR_NERDS:dK("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:dK("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:dK("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:dK("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:dK("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:dK("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:dK("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:dK("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:dK("TIMESTAMP_SECONDS"),TOGGLE_OFF:dK("TOGGLE_OFF"),TOGGLE_ON:dK("TOGGLE_ON"),TRENDING:dK("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:dK("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:dK("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:dK("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:dK("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:dK("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:dK("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:dK("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:dK("VIDEO_LINK_LABEL")};var CgP=_.f(function(k){var E=k.playerApi;k=_.VH("button",function(R){_.wK(R,36843)});
var S=dK("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.e("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.e("button",{el:k,class:"ytPlayerControlsJumpForwardButtonButton",title:S,"aria-label":S,"on:click":_.RZ(function(){_.P6(36843);E&&E().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.e("span",null,_.e(_.i_,{icon:"FAST_FORWARD"}))))},"qi");var klG=_.f(function(k){var E=k.appApi;k=_.VH("button",function(R){_.wK(R,62946)});
var S=dK("OPEN_IN_MINIPLAYER");return _.e("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.e("button",{el:k,class:"ytMiniplayerButtonButton",title:S,"aria-label":S,"on:click":_.RZ(function(){_.P6(62946);var R,V;(V=(R=E()).openInMiniplayer)==null||V.call(R);return!1})},_.e(_.i_,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ri");var ElR=_.f(function(k){var E=k.playerApi;k=_.VH("button",function(N){_.wK(N,142812)});
var S=_.n(_.yg(!1,void 0,"eOMRAb")),R=S.next().value,V=S.next().value;S=function(){return dK("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(R()?1:2)})};
return _.e("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.e("button",{el:k,class:"ytPlaybackSpeedButtonButton",title:S,"aria-label":S,"on:click":_.RZ(function(){_.P6(142812);if(E){var N=E(),h=R();N.setPlaybackRate(h?1:2);V(!R())}return!1})},_.e("span",null,_.e(_.i_,{icon:function(){return R()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"si");var Sx2=_.f(function(k){var E=k.title;var S=k.ariaLabel;var R=k.icon;var V=k.command;var N=k.veType;k=_.VH("button",function(h){N&&_.wK(h,N())});
return _.e("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.e("button",{el:k,class:"ytdThumbnailOverlayButtonButton",title:E,"aria-label":S,"on:click":_.RZ(function(){N&&_.P6(N());V&&_.en().resolve(_.t3).resolveCommand(V())})},_.e(_.i_,{icon:R})))},"ti");var x3="";var RWU=_.f(function(k){var E=k.playerControlsProps,S=k.onClickFn;k=_.HX(function(){var N=E(),h=-1;N.captionsAvailable&&(h=N.captionsEnabled?1:0);return h},void 0,"MZ0Wqe");
var R=_.HX(function(){var N=E();return N.captionsAvailable?_.Vi(N.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Vi("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),V=_.HX(function(){var N=E();
N=N.captionsAvailable?N.captionsEnabled:void 0;return N},void 0,"fhuQRe");
return _.e("yt-closed-captions-toggle-button",null,_.e(_.CMa,{captionIconType:k,ariaLabel:R,ariaPressed:V,onClick:function(N){var h=E();if(h.captionsAvailable){var J=h.playerApi;if(J){var m=h.playerApi;if(m){var a=x3;if(a){m=m.getOption("captions","track");var T;x3=(T=m?m.displayName:null)!=null?T:a}else _.TW(m)?(a=_.Bsl(m),x3=a.length?(T=xmW(a))?T.displayName:a[0].displayName:""):x3=""}LF2(J);_.Y("mweb_disable_set_state_captions_killswitch")&&h.setState({captionsEnabled:!h.captionsEnabled})}}var w,
P;(P=(w=h.appApi).showCaptionsToggleToast)==null||P.call(w,h);S==null||S(N)},
isOverlay:!0}))},"ui");var VkA=_.f(function(k){var E=k.data;return _.e("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.e(_.QD,{data:function(){return{type:17,text:_.jBh(E().label)}}}))},"vi");var NVx=_.f(function(k){var E=_.SQ("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return k.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return k.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return k.size()==="small"?k.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
k.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.e("animated-seek-arrows",{class:_.SQ("ytPlayerControlsAnimatedSeekArrowsHost")},_.e("span",{class:E}),_.e("span",{class:E}),_.e("span",{class:E}))},"wi");
NVx.idomCompat=!0;var IWx=_.f(function(){var k=_.Vi("PLAYER_SECONDS",{seconds_placeholder:"30"}),E=_.n(_.yg(!1,void 0,"iRJu8c")),S=E.next().value,R=E.next().value,V=_.n(_.yg(!1,void 0,"MPnizf"));E=V.next().value;var N=V.next().value;V={};var h=_.SQ("jumpForwardOverlayOverlay",(V.jumpForwardOverlayOverlayHidden=E,V));_.b$(function(){var J=null,m=null,a=function(){J!==null&&_.eH().cancelJob(J);m!==null&&_.eH().cancelJob(m);N(!0);R(!0);_.Ch(_.eH(),function(){N(!1)});
J=_.Ch(_.eH(),function(){N(!0);m=_.Ch(_.eH(),function(){R(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",a);_.bI(function(){window.removeEventListener("jump-forward-clicked",a)})});
return _.e("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.e(_.t,{cond:S,then:function(){return _.e("div",{class:h},_.e(NVx,{direction:1,size:"large"}),_.e("div",null,k))}}))},"xi");var nlx=_.HK.MUTE_VOLUME,icU=_.HK.UNMUTE_VOLUME,hWG=_.f(function(k){var E=k.muteIconType;var S=k.onClick;var R=k.useOutlineIcon;var V=k.useDelhiIcons;k=_.VH("button",function(J){_.wK(J,28662)});
var N=function(){var J=E(),m=R==null?void 0:R(),a=V==null?void 0:V(),T="",w="";switch(J){case -1:case 0:T=m?"VOLUME_OFF":a?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";w=icU;break;case 1:T=m?"VOLUME_UP_OUTLINE":a?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";w=nlx;break;case 2:T=m?"VOLUME_DOWN_OUTLINE":a?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";w=nlx;break;default:_.s5(J)}return{iconName:T,ariaLabel:w}},h=function(){return N().ariaLabel};
return _.e("ytm-mute-button",{class:"ytmMuteButtonHost"},_.e("button",{el:k,class:"ytmMuteButtonButton",title:h,"aria-label":h,"on:click":_.RZ(function(J){_.P6(28662);S==null||S(J);return!1})},_.e("span",null,_.e(_.i_,{icon:function(){return N().iconName}}))))},"yi");var JgA=_.f(function(k){var E=k.volumeProps;var S=k.onClickFn;var R=k.useOutlineIcon;var V=k.useDelhiIcons;return _.e("yt-mute-toggle-button",null,_.e(hWG,{muteIconType:function(){var N=E();return N.volumeMuted||N.volume===0?0:N.volume>50?1:2},
onClick:function(N){var h=E().playerApi;h&&(h.isMuted()?h.unMute():h.mute(!1));S==null||S(N)},
useOutlineIcon:function(){return!(R==null||!R())},
useDelhiIcons:function(){return!(V==null||!V())}}))},"zi");
JgA.idomCompat=!0;var cg3=_.f(function(k){var E=k.data;var S=_.VH("ytm-paid-content-overlay-renderer");return _.e("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:S,"on:animationend":_.RZ(function(){S.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.e(_.P5,{command:function(){return E().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.e(_.t,{cond:function(){var R;return(R=E().icon)==null?void 0:R.iconType},
then:function(){return _.e("span",null,_.e(_.i_,{icon:function(){var R;return(R=E().icon)==null?void 0:R.iconType}}))}}),_.e("div",{class:"ytmPaidContentOverlayText"},_.e(_.VB,{text:function(){return E().text}})),_.e(_.t,{cond:function(){return E().navigationEndpoint},
then:function(){return _.e(_.i_,{icon:"CHEVRON_RIGHT"})}})))},"Ai");
cg3.idomCompat=!0;var NW3=[].concat(_.$e([{register:function(k){var E=tmY(k),S;(S=k().playerApi)==null||S.addEventListener("onVolumeChange",E);return function(){}}},
{register:function(k){var E=TWW(k);k=k().playerApi;k==null||k.addEventListener("captionschanged",E);k==null||k.addEventListener("captionssettingschanged",E);k==null||k.addEventListener("onCaptionsTrackListChanged",E);return function(){}}},
{register:function(k){if(!_.Y("mweb_screenreader_accessible_player"))return function(){};
var E=wiW(k),S=document.querySelector("video");S==null||S.addEventListener("touchend",E);return function(){S==null||S.removeEventListener("touchend",E)}}},
{register:function(k){if(!_.Y("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var E=wiW(k),S=document.querySelector("video");S==null||S.addEventListener("focus",E);return function(){S==null||S.removeEventListener("focus",E)}}}]),[{register:function(k){var E=cIP(k),S;
(S=k().playerApi)==null||S.addEventListener("onStateChange",E);return function(){}}},
{register:function(k){var E=meI(k),S;(S=k().playerApi)==null||S.addEventListener("onPlaybackRateChange",E);return function(){}}},
{register:function(k){var E=eP2(k),S;(S=k().playerApi)==null||S.addEventListener("onVideoDataChange",E);return function(){}}},
{register:function(k){var E=aZa(k),S,R;(S=k())==null||(R=S.playerApi)==null||R.addEventListener("onVideoProgress",E);return function(){}}}]);var myY=_.f(function(k){var E=k.data;var S=function(){return _.Vi("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+E().playbackRate})};
return _.e(_.t,{cond:function(){return E().playbackRate&&E().playbackRate!==1},
then:function(){return _.e("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.e("div",{class:"ytPlaybackRateOverlayOverlay"},_.e(NVx,{direction:1,size:"small"}),_.e("div",{class:"ytPlaybackRateOverlayLabel"},S)))}})},"Ci");var eWA=_.f(function(k){var E=k.data;return _.e("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.e(_.t,{cond:function(){var S,R=(S=E())==null?void 0:S.playerResponse,V;return R==null?void 0:(V=R.paidContentOverlay)==null?void 0:V.paidContentOverlayRenderer},
then:function(S){return _.e(cg3,{data:S})}}))},"Ei"),aWU=_.f(function(k){var E=k.props;
var S=k.data;var R=k.options;var V=function(){var a,T,w,P;return(a=S())==null?void 0:(T=a.playerResponse)==null?void 0:(w=T.playerConfig)==null?void 0:(P=w.inlinePlaybackConfig)==null?void 0:P.showAudioControls},N=function(){var a,T;
if(V()&&((a=R())==null?void 0:(T=a.additionalButton)==null?void 0:T.button)!==void 0){var w,P,B;a=(w=S())==null?void 0:(P=w.playerApi)==null?void 0:(B=P.getSize())==null?void 0:B.height;if(!(a===void 0||a<180)){var F,K;return(F=R())==null?void 0:(K=F.additionalButton)==null?void 0:K.button}}},h=function(){var a,T;
return(a=R())==null?void 0:(T=a.additionalButton)==null?void 0:T.thumbnailOverlayButtonRenderers},J=function(){var a,T;
return(a=R())==null?void 0:(T=a.additionalButton)==null?void 0:T.thumbnailOverlayButtonViewModels},m=function(){var a=[_.e(JgA,{volumeProps:E}),
_.e(RWU,{playerControlsProps:E})];N()===1&&a.push(_.e(CgP,{playerApi:function(){return E().playerApi}}));
N()===2&&a.push(_.e(klG,{appApi:function(){return E().appApi}}));
N()===3&&a.push(_.e(ElR,{playerApi:function(){return E().playerApi}}));
var T=h();if(N()===4&&T){T=_.n(T);for(var w=T.next(),P={};!w.done;P={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$598:void 0},w=T.next()){w=w.value;P.tooltip$jscomp$2=w.tooltip;var B=void 0,F=void 0;P.ariaLabel$jscomp$20=((B=w.accessibility)==null?void 0:(F=B.accessibilityData)==null?void 0:F.label)||P.tooltip$jscomp$2;B=void 0;P.icon$jscomp$51=(B=w.icon)==null?void 0:B.iconType;P.command$jscomp$598=w.command;P.tooltip$jscomp$2&&P.ariaLabel$jscomp$20&&P.icon$jscomp$51&&
a.push(_.e(Sx2,{title:function(K){return function(){return K.tooltip$jscomp$2}}(P),
ariaLabel:function(K){return function(){return K.ariaLabel$jscomp$20}}(P),
icon:function(K){return function(){return K.icon$jscomp$51}}(P),
command:function(K){return function(){return K.command$jscomp$598}}(P)}))}}T=J();
if(N()===4&&T)for(T=_.n(T),w=T.next(),P={};!w.done;P={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$599:void 0},w=T.next())w=w.value,P.tooltip$jscomp$3=w.title,P.ariaLabel$jscomp$21=w.accessibilityText||P.tooltip$jscomp$3,P.icon$jscomp$52=w.iconName,P.command$jscomp$599=_.Uk(w.onTap),P.tooltip$jscomp$3&&P.ariaLabel$jscomp$21&&P.icon$jscomp$52&&a.push(_.e(Sx2,{title:function(K){return function(){return K.tooltip$jscomp$3}}(P),
ariaLabel:function(K){return function(){return K.ariaLabel$jscomp$21}}(P),
icon:function(K){return function(){return K.icon$jscomp$52}}(P),
command:function(K){return function(){return K.command$jscomp$599}}(P)}));
return a};
return _.e(_.t,{cond:V,then:function(){return _.e("div",{class:"ytInlinePlayerControlsTopRightControls"},_.e(_.jw,{each:m},function(a){return _.e("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.e("div",{class:"ytInlinePlayerControlsButtonIcon"},a))}))}})},"Fi"),wTa=_.f(function(k){var E=k.props;
var S=k.data;var R=k.options;k={};k=_.SQ("ytInlinePlayerControlsBottomRightControls",(k.ytInlinePlayerControlsBottomRightControlsHidden=function(){var V;return BWP(S(),R())&&((V=R())==null?void 0:V.insetProgressBar)&&(E().isHovering||E().isDragging)},k));
return _.e("div",{class:k},_.e(tkx,{data:S}),_.e(_.t,{cond:function(){var V;return!((V=R())==null?0:V.hideTimeDisplay)},
then:function(){return _.e(TV3,{props:E,data:S})}}))},"Gi"),tkx=_.f(function(k){var E=k.data;
return _.e(_.cp,{data:function(){var S;return RPR((S=E())==null?void 0:S.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:VkA})},"Hi"),TV3=_.f(function(k){var E=k.props;
var S=k.data;return _.e(_.t,{cond:function(){return E().isLive},
then:function(){return _.e(PvY,{props:E,data:S})},
else:function(){return _.e(BVI,{props:E,data:S})}})},"Ii"),BVI=_.f(function(k){var E=k.props;
var S=k.data;var R=_.HX(function(){var V;return VmP((V=S())==null?void 0:V.thumbnailOverlays)},void 0,"mEUgMd");
return _.e("div",{class:_.SQ("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.HK.PLAYER_TIME_ELAPSED+" "+_.LKh(E().playedTime)}},_.e(_.QD,{data:function(){var V=_.LKh(E().videoDuration-E().playedTime);
return Object.assign({},{type:17,text:V},R())}}))},"Ji"),YxU=_.f(function(k){k=k.badgeShapeData;
return _.e("div",{class:_.SQ("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.e(_.QD,{data:k}))},"Ki"),PvY=_.f(function(k){var E=k.data;
k=_.HX(function(){if(_.Y("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var S,R;return(S=E())==null?void 0:(R=S.thumbnailOverlays)==null?void 0:R.find(function(V){return V.thumbnailOverlayTimeStatusRenderer||V.thumbnailOverlayBadgeViewModel})}},void 0,"daaH9");
return _.e(_.t,{cond:k,then:function(S){return _.e(_.cp,{data:S},{thumbnailOverlayTimeStatusRenderer:function(R){var V=R.data;R=_.HX(function(){return _.UbI(V(),0)},void 0,"trJFV");
return _.e(YxU,{badgeShapeData:R})},
thumbnailOverlayBadgeViewModel:function(R){return _.e(_.oRj,{data:R.data})}})},
else:function(){var S={type:18,text:_.HK.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.e(YxU,{badgeShapeData:function(){return S}})}})},"Li"),W5x=_.f(function(k){var E=k.props;
var S=k.data;var R=k.options;return _.e(_.PXA,{progressBarProps:E,config:function(){var V,N=_.W((V=S())==null?void 0:V.multiMarkersPlayerBar,_.yZ8),h;V=((h=R())==null?0:h.insetProgressBar)?2:1;var J;h=(J=R())==null?void 0:J.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:V,chapterData:N,isInlinePlayback:!0,doSeekOnClick:h,playheadDotBehavior:h?1:0}}})},"Mi");_.qi(_.f(function(k){var E=k.data;var S=k.appApi;var R=k.options;var V=JIG(E,PWx(S));k={};S={};return _.e("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.e("div",{class:_.SQ("ytInlinePlayerControlsDarkenedOverlay",(k.ytInlinePlayerControlsDarkenedOverlayShow=function(){return V().isHovering},k))}),_.e(IWx,null),_.e(myY,{data:V}),_.e(eWA,{data:E}),_.e(GJ2,{playerControlsProps:V,
isShortsPage:!1}),_.e("div",{class:_.SQ((S.ytInlinePlayerControlsControlsHidden=function(){return V().isDragging},S))},_.e(aWU,{props:V,
data:E,options:R}),_.e(wTa,{props:V,data:E,options:R})),_.e(_.t,{cond:function(){return BWP(E(),R())},
then:function(){return _.e(W5x,{props:V,data:E,options:R})}}))},"Di"),"yt-inline-player-controls",{props:{data:_.Nq,
appApi:_.sk,options:_.Nq}});var KA=function(){var k=_.p.apply(this,arguments)||this;k.opts=null;k.playerControlsData=null;k.playerControlsAppApi={openInMiniplayer:function(){k.openInMiniplayer()}};
k.playerControlsOptions={};k.noAnimation=!1;k.playbackIntentTriggered=!1;k.positionData=null;k.hidden=!0;k.active=!1;k.playing=!1;k.videoPreviewDataIndex=0;k.JSC$19388_playerPromise=null;k.player=null;k.enableAudioControls=!1;k.hasBeenUnmuted=!1;k.captionsHaveBeenTurnedOff=!1;k.JSC$19388_playerEvents=new Map;k.videoPreviewFetchRequest=null;k.scheduledPreviewEndJobId=null;k.JSC$19388_preventProgressSaveTimer=null;k.watchEndpointStartTimeUpdaterInterval=null;k.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};k.windowOnBlurFn=function(){k.deactivate()};
return k};
_.y(KA,_.p);_.I=KA.prototype;
_.I.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",
channelDisclosureViewModel:"yt-channel-disclosure-view-model"}}}};
_.I.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19388_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19388_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19388_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19388_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Ic(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Ic(this,this.onScroll))};
_.I.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Ic(this,this.onScroll))};
_.I.onPageTypeChange=function(){this.deactivate()};
_.I.onWindowResized=function(){this.deactivate()};
_.I.onCaptionsChanged=function(k){k=!!k.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!k);this.setCaptionSize()};
_.I.setCaptionSize=function(){var k;if(this.active&&!this.captionsHaveBeenTurnedOff&&((k=this.player)==null?0:k.getCaptionWindowContainerId())){var E;(E=this.player)==null||E.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.I.currentPageAllowed=function(){return!this.isWatchPage};
_.I.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.Y("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var k=this.positionData,E=k.initialTopPosition,S=k.initialHorizontalPosition;_.VO(this.hostElement,{"--ytd-video-preview-translate-left":k.finalHorizontalPosition-S+"px","--ytd-video-preview-translate-top":k.finalTopPosition-E+"px","--ytd-video-preview-original-top-position":E+
"px","--ytd-video-preview-original-horizontal-position":S+"px","--ytd-video-preview-initial-scale":"scale("+k.initialScale+")","--ytd-video-preview-width":k.videoPreviewWidth+"px","--ytd-video-preview-height":k.videoPreviewHeight+"px"});return!0};
_.I.isOutOfBounds=function(k){var E=k.initialHorizontalPosition+12;k=E+k.videoPreviewWidth>window.innerWidth;return E<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&E<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&E<72||k};
_.I.handleOpenVideoPreviewAction=function(k){var E=this,S;return _.c(function(R){if(!E.currentPageAllowed())return R.return(0);E.opts=k;return(S=E.alignVideoPreviewForAnimation(k.thumbnail))?R.return(E.activate()):R.return(0)})};
_.I.onMouseLeave=function(k){var E,S;(E=this.opts)==null||(S=E.mouseleaveCallback)==null||S.call(E);this.shouldDeactivateOnMouseLeave(k)&&this.deactivate()};
_.I.onScroll=function(){var k,E;((k=this.opts)==null?0:k.isAutoplay)&&((E=this.opts)==null?0:E.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.I.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.ZJ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.I.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.I.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",KA.JSC$19387_DEFAULT_CLICK_LOCATION_BEHAVIOR,KA.JSC$19387_CLICK_LOCATION_ID_MAP)};
_.I.shouldDeactivateOnMouseLeave=function(k){k=k.relatedTarget;if(!k)return!0;var E;return(E=this.opts)!=null&&E.mediaRenderer?!_.kT(this.opts.mediaRenderer).contains(k):!0};
_.I.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.I.onPlaybackStart=function(){var k=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$19388_preventProgressSaveTimer=
_.Ch(_.ZJ,function(){k.resetPreventProgressSaveTimer()},1E4);
var E;if((E=this.opts)==null?0:E.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Ch(_.ZJ,function(){k.hasMultipleVideoPreviews()?k.startPlaybackForNextVideo():k.deactivate()},this.opts.videoPreviewDurationMs);
var S;this.player.setGlobalCrop(((S=this.opts)==null?0:S.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.I.getRoundedCornersSize=function(){var k;if((k=this.opts)==null?0:k.roundedCornersSize){var E;return(E=this.opts)==null?void 0:E.roundedCornersSize}var S;if((S=this.opts)==null?0:S.enableRounding){var R;if(((R=this.opts)==null?void 0:R.thumbnailSize)==="small")return 1;var V;if(((V=this.opts)==null?void 0:V.thumbnailSize)==="medium")return 2;var N;if(((N=this.opts)==null?void 0:N.thumbnailSize)==="large")return 3}return _.Y("web_imp_inset_progress_bar")?3:0};
_.I.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.I.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.I.onMediaContainerClick=function(k){this.isShortcutClick(k)||(this.navigateToWatch(k),k.preventDefault(),k.stopPropagation())};
_.I.activate=function(){var k=this,E,S,R,V,N,h,J,m,a;return _.c(function(T){switch(T.nextAddress){case 1:if(!k.currentPageAllowed())return T.return(0);S=(E=k.videoPreviewData)==null?void 0:E.inlinePlaybackEndpoint;R=_.rb.instance;if(!S||!R)return T.return(0);k.playbackIntentTriggered=!0;((V=k.opts)==null?0:V.mediaRenderer)&&((N=k.opts)==null||!N.isAutoplay)&&Cc3(k.opts.mediaRenderer,function(){k.deactivate()});
_.JB(k,function(){k.revealPreviewUi()});
h={};_.Y("enable_unknown_lact_fix_on_html5")&&(_.en().resolve(_.eQ),h.lact=_.mE());k.videoPreviewFetchRequest=MXT(R,k.getInlinePlaybackRequestData(k.videoPreviewData),h);_.F5(T,2);return T.yield(k.videoPreviewFetchRequest,4);case 4:J=T.yieldResult;if(((m=J)==null?void 0:(a=m.playabilityStatus)==null?void 0:a.status)==="OK")return T.return(k.handlePlayerResponse(J));throw Error("bk");case 2:_.UY(T),k.deactivate();case 3:return T.return(1)}})};
_.I.getInlinePlaybackRequestData=function(k){var E,S=_.Y("web_imp_player_mute_params")?((E=this.opts)==null?void 0:E.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:k.inlinePlaybackEndpoint,startPlaybackInMutedState:S}};
_.I.handlePlayerResponse=function(k){var E=this,S,R,V,N,h,J,m,a,T,w,P,B;return _.c(function(F){if(F.nextAddress==1){S=E.getInlinePlaybackVideoId();if(!(((R=k)==null?0:(V=R.videoDetails)==null?0:V.videoId)&&E.currentPageAllowed()&&E.playbackIntentTriggered&&E.opts&&S))return E.deactivate(),F.return(0);if(k.videoDetails.videoId!==S)return F.return(0);E.enableAudioControls=!!((N=k.playerConfig)==null?0:(h=N.inlinePlaybackConfig)==null?0:h.showAudioControls);k.trackingParams=E.getInlinePlaybackTrackingParams();
if(!E.inlinePlayer)return F.return(0);J={};if(a=_.W((m=E.videoPreviewData)==null?void 0:m.inlinePlaybackEndpoint,_.jm))J.watch_endpoint=a;if(E.videoPreviewData){var K,r=(K=_.W(E.videoPreviewData.inlinePlaybackEndpoint,_.jm))==null?void 0:K.startTimeSeconds;r!==void 0&&(k.playerConfig||(k.playerConfig={}),k.playerConfig.playbackStartConfig||(k.playerConfig.playbackStartConfig={}),k.playerConfig.playbackStartConfig.startPosition||(k.playerConfig.playbackStartConfig.startPosition={}),k.playerConfig.playbackStartConfig.startSeconds=
r,k.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(r*1E3))}E.inlinePlayer.loadVideoWithPlayerResponse(k,J);if(E.JSC$19388_playerPromise)return F.jumpTo(2);E.JSC$19388_playerPromise=E.inlinePlayer.getPlayerPromise();return F.yield(E.JSC$19388_playerPromise,3)}F.nextAddress!=2&&(T=F.yieldResult,T.setInlinePreview(!0),w=!_.Y("web_imp_theater_bugfix"),T.setSizeStyle(!1,w),E.ytPlayerListenerBehavior.listenToPlayerEvents(T,E.JSC$19388_playerEvents),E.player=T,_.Me(E.hostElement,
"player-api-ready"));((P=E.opts)==null?0:P.showPlayerControls)&&E.videoPreviewData&&E.player&&(E.playerControlsData={playerResponse:k,isInlinePlayback:!0,thumbnailOverlays:E.videoPreviewData.thumbnailOverlays,playerApi:E.player},E.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!E.unroundCornersForPlayback,additionalButton:E.getAdditionalButtonType(E.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(B=E.opts)==null?void 0:B.hideTimeDisplay});return F.return(2)})};
_.I.revealPreviewUi=function(){var k=this;this.playbackIntentTriggered&&_.wSh(this,function(){k.hasThumbnailPositionChangedSinceTriggered()||(k.updateActiveState(!0),k.noAnimation=!1)})};
_.I.hasThumbnailPositionChangedSinceTriggered=function(){var k=this.positionData,E=this.getThumbnailPositionData();return(k==null?void 0:k.initialTopPosition)!==(E==null?void 0:E.initialTopPosition)||(k==null?void 0:k.initialHorizontalPosition)!==(E==null?void 0:E.initialHorizontalPosition)};
_.I.getThumbnailPositionData=function(){var k,E;if((E=this.opts)==null||!E.thumbnail)return null;E=this.opts.thumbnail;var S=((k=this.opts)==null?0:k.cropPlayerToFillThumbnailHorizontally)?!1:!0;var R=E.getBoundingClientRect();k=R.width;E=R.height;var V=R.top+window.scrollY;R=R.left+window.scrollX;var N=S?Math.ceil(k):k;S=S?Math.ceil(E):E;var h=k/N;k={initialScale:h,initialTopPosition:V-12*h,finalTopPosition:V-12-(S-E)/2,initialHorizontalPosition:R-(12+(N-k)/2),finalHorizontalPosition:R-12-(N-k)/
2,videoPreviewWidth:N,videoPreviewHeight:S};return k};
_.I.updateActiveState=function(k){this.active=k;this.ytdReduxBehavior.dispatch(_.zX({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:k}))};
_.I.stopPlayer=function(k){k=k.resetWatchEndpointStartTime===void 0?!1:k.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(k)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.ZJ.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.I.deactivate=function(k){k=k===void 0?{}:k;k=k.resetWatchEndpointStartTime===void 0?!1:k.resetWatchEndpointStartTime;Zc&&(Zc.disconnect(),Zc=null);this.stopPlayer({resetWatchEndpointStartTime:k});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.I.isValidThumbnailOverlayButton=function(k,E){k=k.thumbnailOverlayButtonRenderer;var S;return!!k&&!!k.tooltip&&!((S=k.icon)==null||!S.iconType)&&E.includes(k.icon.iconType)};
_.I.isValidThumbnailOverlayButtonViewModel=function(k,E){var S;k=_.W((S=k.thumbnailOverlayButtonViewModel)==null?void 0:S.overlayButton,_.qz);return!!k&&!!k.title&&!!k.iconName&&E.includes(k.iconName)};
_.I.getAdditionalButtonType=function(k){var E=this;if(_.Y("web_imp_fastforward_button"))return{button:1};if(_.Y("web_imp_miniplayer_button"))return{button:2};if(_.Y("web_imp_playback_speed_button"))return{button:3};var S=["BOX_STACK_3"],R=(k||[]).filter(function(N){return E.isValidThumbnailOverlayButton(N,S)}).map(function(N){return N.thumbnailOverlayButtonRenderer});
if(R.length)return{button:4,thumbnailOverlayButtonRenderers:R};var V=["BOX_STACK_3"];k=(k||[]).filter(function(N){return E.isValidThumbnailOverlayButtonViewModel(N,V)}).map(function(N){return _.W(N.thumbnailOverlayButtonViewModel.overlayButton,_.qz)});
if(k.length)return{button:4,thumbnailOverlayButtonViewModels:k}};
_.I.allowCaptions=function(){var k;return!((k=this.opts)==null?0:k.forceCaptionsOff)};
_.I.allowUnmuting=function(){var k;return this.enableAudioControls&&!((k=this.opts)==null?0:k.forceMutedVolume)};
_.I.beginStartTimeUpdater=function(){var k=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.yf(function(){k.updateWatchEndpointStartTime()},1E3)};
_.I.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.I.resetPreventProgressSaveTimer=function(){this.JSC$19388_preventProgressSaveTimer!==null&&(_.ZJ.cancelJob(this.JSC$19388_preventProgressSaveTimer),this.JSC$19388_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.I.updateWatchEndpointStartTime=function(k){var E=this.videoPreviewData;if(this.player&&E!=null&&E.inlinePlaybackEndpoint&&!this.JSC$19388_preventProgressSaveTimer){k=k?0:Math.floor(this.player.getCurrentTime());var S=_.W(E.navigationEndpoint,_.jm);S&&(S.startTimeSeconds=k);if(E=_.W(E.inlinePlaybackEndpoint,_.jm))E.startTimeSeconds=k}};
_.I.isShortcutClick=function(k){return!!k&&(k.ctrlKey||k.shiftKey||k.metaKey)};
_.I.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.I.openInMiniplayer=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1){S=(E=k.videoPreviewData)==null?void 0:E.navigationEndpoint;if(!S)return R.return();_.g_().lockupActivation=!0;return R.yield(_.D$Y(_.en().resolve(_.yb),S),2)}_.g_().userActivation=!0;_.KR(R)})};
_.I.navigateToWatch=function(k){var E,S=(E=this.videoPreviewData)==null?void 0:E.navigationEndpoint;if(S){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(S,k,!0);else{var R;_.Y("web_thumbnail_to_watch_transition")&&((R=this.opts)==null?0:R.thumbnail)&&_.xRd(_.en().resolve(_.Au),this.opts.thumbnail);_.Me(this.hostElement,"yt-navigate",{endpoint:S})}this.deactivate()}};
_.I.getInlinePlaybackVideoId=function(){var k,E;return(E=_.W((k=this.videoPreviewData)==null?void 0:k.inlinePlaybackEndpoint,_.jm))==null?void 0:E.videoId};
_.I.getInlinePlaybackTrackingParams=function(){var k,E;return(k=this.videoPreviewData)==null?void 0:(E=k.inlinePlaybackEndpoint)==null?void 0:E.clickTrackingParams};
_.I.hasMultipleVideoPreviews=function(){var k;return!!(((k=this.opts)==null?0:k.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.I.startPlaybackForNextVideo=function(){var k;(k=this.opts)!=null&&k.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())};
_.mt.Object.defineProperties(KA.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.opts)==null?0:k.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.opts)==null||!k.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 k;if(Array.isArray((k=this.opts)==null?void 0:k.videoPreviewData)){var E;return(E=this.opts)==null?void 0:E.videoPreviewData[this.videoPreviewDataIndex]}var S;return(S=this.opts)==null?void 0:S.videoPreviewData}}});
KA.prototype.onIsAdsVideoChange=KA.prototype.onIsAdsVideoChange;KA.prototype.onInlinePreviewIsEnabledChange=KA.prototype.onInlinePreviewIsEnabledChange;KA.prototype.optsChanged=KA.prototype.optsChanged;KA.prototype.onMouseLeave=KA.prototype.onMouseLeave;KA.JSC$19387_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);KA.JSC$19387_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"}];
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],KA.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],KA.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],KA.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],KA.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],KA.prototype,"componentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],KA.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.tU.YtSparklesClickLocationBehavior),_.l("design:type",Object)],KA.prototype,"ytSparklesClickLocationBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],KA.prototype,"opts",void 0);
_.Z([_.H(),_.l("design:type",Object)],KA.prototype,"playerControlsData",void 0);_.Z([_.H(),_.l("design:type",Object)],KA.prototype,"playerControlsAppApi",void 0);_.Z([_.H(),_.l("design:type",Object)],KA.prototype,"playerControlsOptions",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KA.prototype,"noAnimation",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KA.prototype,"hidden",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KA.prototype,"active",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KA.prototype,"playing",void 0);_.Z([_.H({selector:_.rre}),_.l("design:type",Boolean)],KA.prototype,"inlinePreviewIsEnabled",void 0);_.Z([_.H(),_.l("design:type",String)],KA.prototype,"pagePath",void 0);_.Z([_.H({selector:_.Ky1}),_.l("design:type",Boolean)],KA.prototype,"isWatchPage",void 0);
_.Z([_.U("videoPreviewData"),_.l("design:type",Object),_.l("design:paramtypes",[])],KA.prototype,"thumbnailData",null);_.Z([_.U("opts","active"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KA.prototype,"hidePlayerControls",null);_.Z([_.U("opts"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KA.prototype,"isAdsVideo",null);
_.Z([_.U("opts"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KA.prototype,"roundedCornersSmall",null);_.Z([_.U("opts"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KA.prototype,"roundedCornersMedium",null);_.Z([_.U("opts"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KA.prototype,"roundedCornersLarge",null);
_.Z([_.U("opts"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KA.prototype,"unroundCornersForPlayback",null);_.Z([_.U("opts","videoPreviewDataIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],KA.prototype,"videoPreviewData",null);_.Z([_.H(),_.l("design:type",Object)],KA.prototype,"videoPreviewDataIndex",void 0);_.Z([_.JO("#inline-player"),_.l("design:type",Object)],KA.prototype,"inlinePlayer",void 0);
_.Z([_.nv("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[MouseEvent]),_.l("design:returntype")],KA.prototype,"onMouseLeave",null);_.Z([_.ac("opts"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KA.prototype,"optsChanged",null);_.Z([_.ac("inlinePreviewIsEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KA.prototype,"onInlinePreviewIsEnabledChange",null);
_.Z([_.il("isAdsVideo"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KA.prototype,"onIsAdsVideoChange",null);_.Z([_.D({is:"ytd-video-preview",disableElementRegistration:!0})],KA);
_.b(KA,"ytd-video-preview",function(){if(Ora!==void 0)return Ora;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Ora=k},{mode:2});
}catch(e){_._DumpException(e)}
try{
var PhN,BTg,YoS;PhN=function(k){return _.Y("kevlar_watch_cinematics_invisible")||k.fullscreen&&_.Y("kevlar_watch_cinematics_invisible_in_fullscreen")||k.theater&&!k.fullscreen&&_.Y("kevlar_watch_cinematics_invisible_in_theater")};
BTg=function(){var k=document.createElement("canvas"),E=k.getContext("2d");if(!E)throw Error("Ko");_.pT(k,{position:"absolute",width:"100%",height:"100%"});return{element:k,context:E}};
YoS=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.Y("kevlar_watch_cinematics_css_blur")};
_.W7r=function(k,E,S){return Math.abs(k-E)<=(S||1E-6)};
_.F7U=function(k,E){return k==E?!0:k&&E?k.width==E.width&&k.height==E.height:!1};_.yxo=new _.z_("notificationActionRenderer");var oyo=function(k){var E=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.kl;this.element.addEventListener("load",function(){E.loaded=!0;E.resolver.resolve(E.element)});
this.element.addEventListener("error",function(){E.failed=!0});
this.element.src=k};var XHX=function(k,E){this.image=k;this.frame=E};
XHX.prototype.drawToCanvas=function(k,E){var S=this.frame.width/this.frame.columns,R=this.frame.height/this.frame.rows,V=E.offsetX,N=E.offsetY;PhN(E)?(k.fillStyle=E.fullscreen?"#000":"#0f0f0f",k.fillRect(V,N,(E==null?void 0:E.width)||S,(E==null?void 0:E.height)||R)):k.drawImage(this.image,this.frame.column*S,this.frame.row*R,S,R,V,N,(E==null?void 0:E.width)||S,(E==null?void 0:E.height)||R)};
var gyF=function(k){this.color=k};
gyF.prototype.drawToCanvas=function(k,E){var S=E.offsetX,R=E.offsetY,V=E.width,N=E.height;k.fillStyle=PhN(E)?E.fullscreen?"#000":"#0f0f0f":this.color;k.fillRect(S,R,V,N)};var wL=function(k,E){_.xL.call(this);this.playerApi=E;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.KO(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();UjX(this,k);HOk(this);this.update()};
_.y(wL,_.xL);wL.prototype.addEventListeners=function(){var k=this,E=function(){k.update()},S=function(V){k.paused||(V.type==="newdata"&&(k.mosaics.clear(),K7U(k),P4(k)),HOk(k),k.update())},R=function(){k.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",E);this.playerApi.addEventListener("onVideoDataChange",S);this.playerApi.addEventListener("onStateChange",R);this.addOnDisposeCallback(function(){k.playerApi.removeEventListener("onVideoProgress",E);k.playerApi.removeEventListener("onVideoDataChange",S);k.playerApi.removeEventListener("onStateChange",R)})};
var UjX=function(k,E){k.cinematicContainerRenderer!==E&&(k.cinematicContainerRenderer=E,K7U(k),P4(k),k.colorStoreUpdateJobId=_.ZJ.addLowPriorityJob(function(){var S;if((S=k.cinematicContainerRenderer.colorStore)!=null&&S.sampledColors){S=Infinity;for(var R=_.n(k.cinematicContainerRenderer.colorStore.sampledColors),V=R.next();!V.done;V=R.next()){V=V.value;var N=Number(V.key);N!==0&&N<S&&(S=N);N=_.Kc(V.value);k.colorStore.set(V.key,N)}k.colorStoreTimeInterval=S}}))},K7U=function(k){k.colorStoreUpdateJobId&&
(_.ZJ.cancelJob(k.colorStoreUpdateJobId),k.colorStoreUpdateJobId=void 0);
k.colorStore.clear();k.currentStoryboardColor=void 0},pHk=function(k,E){var S;
return(S=k.getStoryboardFrame(E))==null?void 0:S.url};
wL.prototype.onPlayerStateChange=function(){this.update()};
wL.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var HOk=function(k){var E=k.getStoryboardFrame(0);E&&(E=new _.KO(E.width/E.columns,E.height/E.rows),_.F7U(k.currentStoryboardSize,E)||(k.currentStoryboardSize=E,k.publish("STORYBOARD_SIZE_CHANGED",k.currentStoryboardSize)))},Axr=function(k,E){k.currentStoryboardIndex=E;
k.pendingStoryboardIndex=NaN;E=k.getStoryboardFrame(k.currentStoryboardIndex);k.currentStoryboard=new XHX(k.mosaics.get(E.url).element,E);k.publish("STORYBOARD_CHANGED",k.currentStoryboard);k.lastUpdateTime=(0,_.ev)()};
wL.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var P4=function(k){k.currentStoryboardIndex=NaN;k.pendingStoryboardIndex=NaN;k.currentStoryboard&&(k.currentStoryboard=void 0,k.publish("STORYBOARD_CHANGED",void 0));k.lastUpdateTime=NaN};
wL.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)P4(this);else{var k=this.playerApi.getPlayerState(1);if(k===-1||k===5||k===0)P4(this);else if(isNaN(this.lastUpdateTime)||!((0,_.ev)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(k=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){k=""+Math.round(k*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var E=this.colorStore.get(k);E?E!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=E,this.currentStoryboard=new gyF(E),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.ev)()):(_.dg(new _.LC("Could not find color for timestamp: "+k,this.cinematicContainerRenderer)),P4(this))}else P4(this);else rxJ(this,k)}};
var rxJ=function(k,E){var S=k.getStoryboardFrameIndex(E);if(S!==k.currentStoryboardIndex&&S!==k.pendingStoryboardIndex){E=pHk(k,S);var R=k.mosaics.get(E);R?R.loaded&&Axr(k,S):(k.pendingStoryboardIndex=S,S=new oyo(E),k.mosaics.set(E,S),S.resolver.promise.then(function(){if(!k.isDisposed()&&!k.paused&&!isNaN(k.pendingStoryboardIndex)){var V=pHk(k,k.pendingStoryboardIndex);if(V){var N;(N=k.mosaics.get(V))!=null&&N.loaded&&Axr(k,k.pendingStoryboardIndex)}else P4(k)}}))}};
wL.prototype.getStoryboardFrameIndex=function(k){var E=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(k,E)};
wL.prototype.getStoryboardFrame=function(k){var E=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,S,R;return((R=(S=this.playerApi).getStoryboardFrame)==null?void 0:R.call(S,k,E))||null};
wL.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Yw=function(k,E,S,R){R=R===void 0?!1:R;_.r7.call(this);this.cinematicContainerRenderer=E;this.playerApi=S;this.theater=this.fullscreen=!1;var V;this.ambientLightThemeEnabled=!R&&!!(E==null?0:(V=E.config)==null?0:V.enableInLightTheme);this.ambientFullscreenEnabled=R&&_.Y("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=R&&_.Y("web_cinematic_theater_mode");this.container=document.createElement("div");k.appendChild(this.container);var N;if(_.Y("web_cinematic_theater_mode")||_.Y("web_cinematic_fullscreen")||
(E==null?0:(N=E.config)==null?0:N.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);u1k(this);k=this.ambientV2Container||this.container;this.backCanvas=BTg();this.frontCanvas=BTg();k.appendChild(this.backCanvas.element);k.appendChild(this.frontCanvas.element);this.storyboardManager=new wL(E,this.playerApi);_.Wy(this,this.storyboardManager);this.addEventListeners();xjN(this)?L7J(this,100+B4(this)*3*2,100+B4(this)*3*2):jhs(this);
DjJ(this,this.storyboardManager.currentStoryboard)};
_.y(Yw,_.r7);var u1k=function(k){k.ambientV2Container?$jU(k):(_.pT(k.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+fBr(k)+", "+vys(k)+")"}),YoS()&&_.pT(k.container,"filter","blur("+_.wO("cinematic_watch_css_filter_blur_strength",40)+"px)"))},$jU=function(k){if(k.ambientV2Container){var E=k.playerApi.getVideoAspectRatio();
_.pT(k.container,{"aspect-ratio":""+E,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.pT(k.ambientV2Container,{"aspect-ratio":""+E,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+fBr(k)+", "+vys(k)+")"});YoS()&&_.pT(k.ambientV2Container,"filter","blur("+_.wO("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Yw.prototype.setFullscreen=function(k,E){this.fullscreen=k;this.theater=!!E;u1k(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),k=this.storyboardManager.currentStoryboard,bOS(this),k&&ZOF(this,k)};
Yw.prototype.addEventListeners=function(){var k=this,E=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(V){DjJ(k,V)}),S=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){jhs(k)});
this.addOnDisposeCallback(function(){k.storyboardManager.unsubscribeByKey(E);k.storyboardManager.unsubscribeByKey(S)});
if(this.ambientV2Container){var R=function(){$jU(k)};
this.playerApi.addEventListener("onVideoDataChange",R);this.addOnDisposeCallback(function(){k.playerApi.removeEventListener("onVideoDataChange",R)})}};
var jhs=function(k){if(!xjN(k)){var E=k.storyboardManager.currentStoryboardSize;isNaN(E.width)||isNaN(E.height)||L7J(k,Number(E.width)+B4(k)*3*2,Number(E.height)+B4(k)*3*2)}},L7J=function(k,E,S){k.backCanvas.element.width=E;
k.backCanvas.element.height=S;k.frontCanvas.element.width=E;k.frontCanvas.element.height=S},xjN=function(k){return k.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},DjJ=function(k,E,S){S=S===void 0?!1:S;
var R=k.frontCanvas.element.getAnimations()[0];R?(R.pause(),k.backCanvas.context.globalAlpha=Number(getComputedStyle(k.frontCanvas.element).opacity),k.frontCanvas.element.style.opacity="0",R.finish()):k.backCanvas.context.globalAlpha=1;k.backCanvas.context.drawImage(k.frontCanvas.element,0,0,k.backCanvas.element.width,k.backCanvas.element.height);bOS(k);E&&ZOF(k,E);E=E?k.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.wO("cinematic_watch_fade_out_duration",500);R=_.wO("cinematic_watch_transition_frame_rate")/
1E3;var V={};R&&(V={easing:"steps("+Math.round(E*R)+")"});(S===void 0?0:S)||k.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:E,iterations:1},V));k.frontCanvas.element.style.opacity="1"},bOS=function(k){var E=k.ambientLightThemeEnabled||k.ambientTheaterModeEnabled,S=k.ambientLightThemeEnabled||k.ambientFullscreenEnabled;
k.frontCanvas.context.fillStyle=k.theater&&E||k.fullscreen&&S?"#000":"#0f0f0f";YoS()||(k.frontCanvas.context.filter="blur(0)");k.frontCanvas.context.fillRect(0,0,k.frontCanvas.element.width,k.frontCanvas.element.height)},ZOF=function(k,E){YoS()||(k.frontCanvas.context.filter="blur("+B4(k)+"px)");
k.frontCanvas.context.globalAlpha=k.fullscreen&&k.ambientFullscreenEnabled||k.theater&&k.ambientTheaterModeEnabled?_.wO("cinematic_watch_effect_letterbox_opacity",.4):_.wO("cinematic_watch_effect_opacity",.4);var S={offsetX:B4(k)*3,offsetY:B4(k)*3,theater:k.theater,fullscreen:k.fullscreen};xjN(k)&&(S.width=100,S.height=100);E.drawToCanvas(k.frontCanvas.context,S);k.frontCanvas.context.globalAlpha=1},B4=function(k){var E;
return(E=k.cinematicContainerRenderer.config.blurStrength)!=null?E:5},fBr=function(k){var E,S;
if((k.fullscreen||k.theater)&&((E=k.cinematicContainerRenderer.config)==null?0:(S=E.watchFullscreenConfig)==null?0:S.colorSourceWidthMultiplier))return k.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var R;return(R=k.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?R:k.cinematicContainerRenderer.config.colorSourceSizeMultiplier},vys=function(k){var E,S;
if((k.fullscreen||k.theater)&&((E=k.cinematicContainerRenderer.config)==null?0:(S=E.watchFullscreenConfig)==null?0:S.colorSourceHeightMultiplier))return k.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var R;return(R=k.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?R:k.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Yw.prototype.disposeInternal=function(){_.r7.prototype.disposeInternal.call(this);this.container.remove()};
Yw.prototype.clear=function(){DjJ(this,void 0,!0)};
Yw.prototype.pause=function(){this.storyboardManager.pause()};var djk;djk=_.af(function(){var k,E,S=!((E=(k=document.createElement("canvas")).getContext)==null||!E.call(k,"2d")),R;k=!((R=CSS)==null||!R.supports("filter: blur(0)"));R=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var V;return S&&k&&R&&!((V=CSS)==null||!V.supports("aspect-ratio: 1 / 1"))});
_.W4=function(k,E){_.xL.call(this);this.container=k;this.playerApi=E;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=shU(this);this.update()};
_.y(_.W4,_.xL);_.lBk=function(k){var E=document.documentElement.hasAttribute("dark");k.isDarkModeEnabled=E;k.update()};
_.M1B=function(k,E){k.settingEnabled=E;k.update()};
_.W4.prototype.setFullscreen=function(k,E){this.fullscreen=k;this.theater=!!E;this.update()};
_.qoJ=function(k,E){k.cinematicContainerRenderer=E;k.cinematicContainerRenderer&&(k.cinematicsVe=_.kh(k.isShorts()?227858:159022),_.Bq(_.JV(),k.cinematicsVe),k.loggingClientData={watchCinematicContainerData:{presentationStyle:k.cinematicContainerRenderer.presentationStyle}});k.update()};
_.W4.prototype.isShorts=function(){var k,E;return((k=this.cinematicContainerRenderer)==null?void 0:(E=k.config)==null?void 0:E.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.W4.prototype.isAllowed=function(){var k;if(k=djk()){var E,S,R;k=((S=this.cinematicContainerRenderer)==null?void 0:S.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((R=this.cinematicContainerRenderer)==null||!R.colorStore)||((E=this.cinematicContainerRenderer)==null?void 0:E.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(k)if(_.Y("web_cinematics_pausing")){var V,N;k=this.isDarkModeEnabled||!!((V=this.cinematicContainerRenderer)==
null?0:(N=V.config)==null?0:N.enableInLightTheme)}else{var h,J;V=!!((h=this.cinematicContainerRenderer)==null?0:(J=h.config)==null?0:J.enableInLightTheme)&&(_.Mg("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);k=this.isDarkModeEnabled||V}if(h=k){var m,a;h=!((a=(m=this.prefersReducedMotionQuery)==null?void 0:m.matches)!=null&&a)}return h};
_.zhJ=function(k){(k=k.currentCinematicEffect)!=null&&(k=k.storyboardManager,k.paused=!1,HOk(k),k.update())};
_.W4.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var shU=function(k){if(!_.Y("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var E=window.matchMedia("(prefers-reduced-motion: reduce)"),S=function(){k.update()};
E.addListener(S);k.addOnDisposeCallback(function(){E.removeListener(S)});
return E}};
_.W4.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var k=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Yw(this.container,k,this.playerApi,this.isDarkModeEnabled),_.Wy(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var E=this.currentCinematicEffect;E.cinematicContainerRenderer!==
k&&(E.cinematicContainerRenderer=k,UjX(E.storyboardManager,k),u1k(E));k=_.nz();_.iD(0,194,!0);k.save();k=_.Fe();this.cinematicsVe&&k&&_.Lz(k,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(k=_.Fe(),this.cinematicsVe&&k&&_.jd(k,[this.cinematicsVe],!1,this.loggingClientData),_.nu(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.mt.Object.defineProperties(_.W4.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var sbk;var le$;_.F6({_template:function(){if(le$!==void 0)return le$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=
k.content,S=E.insertBefore;sbk===void 0&&(sbk=document.createElement("template"));var R=sbk;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return le$=k},
is:"tp-yt-iron-pages",behaviors:[_.KS,_.Dk],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var ZPN;_.d2o=function(){if(_.Y("kevlar_home_skeleton")&&!ZPN){var k=document.querySelector("#home-page-skeleton");k&&(_.o_("hgcr"),_.Ua(k),ZPN=!0)}};
ZPN=!1;_.SB=new _.z_("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var yCo,Xzo,UpU,HjJ,KdJ,pzo,ACr,rC$,u8B,Ldu,$pu,v2S,Zjo,fCX,jCo,DpB,lCr,MTu;yCo=function(k,E,S,R){var V=!1,N={contentId:void 0,contentType:"video"};E=_.n(Object.entries(E));for(var h=E.next();!h.done;h=E.next()){var J=_.n(h.value);h=J.next().value;J=J.next().value;k.includes(h)&&!S.has(J)?(N.contentId=J,S.add(J),V=!0):h==="contentType"?J==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(N.contentType="playlist"):typeof J==="object"&&J!==null&&yCo(k,J,S,R)}V&&R.push(N)};
_.o2N=function(k,E,S){E=E===void 0?5:E;if(E!==0){var R=typeof k==="function"?k():document.querySelector(k);R?(S==null?0:S.enableSmartFocus)?_.Mnm(R):R.focus():setTimeout(function(){_.o2N(k,E-1,S)},500)}};
Xzo=function(k){return String.raw.apply(String,[{raw:k}].concat(_.$e(_.sX.apply(1,arguments).map(function(E){return E instanceof Array?E.join(""):E}))))};
UpU=function(k){var E=_.sX.apply(1,arguments),S=E.length;if(!Array.isArray(k)||!Array.isArray(k.raw)||k.length!==k.raw.length||!_.F$4&&k===k.raw||!(_.F$4&&!_.yJd||_.uu(k))||S+1!==k.length)throw new TypeError("$");return new g2N(Object.freeze({strings:Object.freeze(k),args:Object.freeze(E)}))};
HjJ=function(k){return _.Rjh(_.SWm(k&16777215))<.5};
KdJ=function(k,E,S){var R=S.minimumRowsOfVideosBetweenSections===void 0?1:S.minimumRowsOfVideosBetweenSections;return k<(S.minimumRowsOfVideosAtStart===void 0?2:S.minimumRowsOfVideosAtStart)||E!==null&&k-E<=R?!1:!0};
pzo=function(k,E){var S=0,R=0;k=_.n(k);for(var V=k.next();!V.done;V=k.next()){var N=V.value;if(N.richItemRenderer)N.richItemRenderer.rowIndex=R,N.richItemRenderer.colIndex=S++,S===E&&(S=0,R++);else if(N.richGroupRenderer&&N.richGroupRenderer.numColumns!==void 0)N.richGroupRenderer.rowIndex=R,N.richGroupRenderer.colIndex=S,S+=N.richGroupRenderer.numColumns,S===E&&(S=0,R++);else if(N.richSectionRenderer){var h=V=void 0;if(N=_.W((V=N)==null?void 0:(h=V.richSectionRenderer)==null?void 0:h.content,_.ITj))N.rowIndex=
R++}}};
ACr=function(k,E){var S=E.contentElement;E=E.rendererToTagNameMap;if(S&&E&&E.size!==0){for(var R=new Map,V=_.n(S.children),N=V.next();!N.done;N=V.next()){N=N.value;var h=N.tagName.toLowerCase(),J=R.get(h);J||(J=[],R.set(h,J));J.push(N)}if(R.size!==0)for(V=Math.min(k.length,S.children.length),N=new Map,h=0;h<V;h++){J=Object.keys(k[h])[0];J=E.get(J);if(!J)break;var m=N.get(J);m===void 0&&(m=0,N.set(J,m));var a=R.get(J);if(!a||m>=a.length)break;N.set(J,m+1);J=a[m];m=S.children[h];m!==J&&(_.lY=!0,_.Mi.set(J,
!0),S.insertBefore(J,m),_.Mi.delete(J),_.lY=!1)}}};
rC$=function(k,E,S,R,V,N,h){R=R===void 0?{}:R;if(!k||!k.length)return{orderedContent:[]};k=k.slice();var J=[],m=[];V=null;for(var a=0,T=function(q){m.sort(function(z,kb){return kb.skippedOnRow-z.skippedOnRow});
for(var M,d=(M=m.shift())==null?void 0:M.content;d;)!d.richSectionRenderer&&q||J.push(d),M=void 0,d=(M=m.shift())==null?void 0:M.content},w=void 0,P=void 0,B=new Set;k.length>0||m.length>0;){for(var F=[],K=E;K>0;){var r=void 0,x=void 0,L=(x=m[0]&&m[0].skippedOnRow<a?(r=m.shift())==null?void 0:r.content:void 0)!=null?x:k.shift();
if(!L)break;if(L.richItemRenderer)r=L.richItemRenderer.targetId,x=void 0,r&&((x=h)==null?0:x.has(r))&&(x=h.get(r),!w||x&&x.timestamp>w.timestamp)&&(w=x,P&&B.add(P),P=r),F.push(L),K--;else if(L.richGroupRenderer&&L.richGroupRenderer.numColumns!==void 0)L.richGroupRenderer.numColumns<=K?(F.push(L),K-=L.richGroupRenderer.numColumns):K===E&&L.richGroupRenderer.numColumns>E?(F.push({richGroupRenderer:Object.assign({},L.richGroupRenderer,{numColumns:E})}),K=0):m.push({content:L,skippedOnRow:a});else if(L.richSectionRenderer)if(KdJ(a,
V,R)&&K===E){J.push(L);V=a;a++;continue}else m.push({content:L,skippedOnRow:a});else if(L.continuationItemRenderer){T(!0);J.push(L);K=0;break}if(K===0)J.push.apply(J,_.$e(F));else if(!S&&k.length===0){T(!1);J.push.apply(J,_.$e(F));K=0;break}}a++;w&&(J.push(w.content),a++);P=w=void 0}pzo(J,E);N&&ACr(J,N);return{orderedContent:J,pinnedContentNotShownTargetIds:B}};
u8B=function(){return _.sX.apply(0,arguments).flat().filter(function(k){return k}).join(";")};
Ldu=function(){return UpU(xpX,u8B.apply(null,_.$e(_.sX.apply(0,arguments))))};
$pu=function(k,E){if(E){var S=_.vo().getState().entities.flowStateEntity,R=jCo(k),V=[E];R&&R!==E&&V.push(R);var N=!0,h;if(S&&k.flowStateEntityKey&&((h=S[k.flowStateEntityKey])==null?void 0:h.primaryButtonDisabled)!==void 0){var J;N=!((J=S[k.flowStateEntityKey])==null||!J.primaryButtonDisabled)}DpB(k,R!=null?R:E,V,N)}};
v2S=function(k){return _.Hq(_.vo(),function(E){return E.entities.flowStateEntity},function(E,S){if(k.flowStateEntityKey){var R,V=E==null?void 0:(R=E[k.flowStateEntityKey])==null?void 0:R.currentStepId,N;
S=S==null?void 0:(N=S[k.flowStateEntityKey])==null?void 0:N.currentStepId;N=_.vo().getState().talkToRecs;if(V&&V!==S){var h;E=(E==null?void 0:(h=E[k.flowStateEntityKey])==null?void 0:h.stepIdStack)||Object.keys(N.stepStates);h=!fCX(N==null?void 0:N.stepStates[V]);DpB(k,V,E,h)}}})};
Zjo=function(k){return _.Hq(_.vo(),bjk,function(E){var S=jCo(k);if(S){var R=Object.keys(E.stepStates);E=!fCX(E==null?void 0:E.stepStates[S]);DpB(k,S,R,E)}})};
fCX=function(k){var E=Object.keys((k==null?void 0:k.selectionStates)||{}).reduce(function(N,h){return N||(k==null?void 0:k.selectionStates[h].isSelected)},!1),S,R,V=!!(k==null?0:(S=k.userQuery)==null?0:(R=S.userQuery)==null?0:R.trim());
return E||V};
jCo=function(k){if(k.flowStateEntityKey){var E,S,R=(E=_.vo().getState().entities.flowStateEntity)==null?void 0:(S=E[k.flowStateEntityKey])==null?void 0:S.currentStepId;if(R)return R}};
DpB=function(k,E,S,R){_.vo().dispatch(_.mj("flowStateEntity",k.flowStateEntityKey,{currentStepId:E,stepIdStack:S,key:k.flowStateEntityKey,primaryButtonDisabled:R}))};
_.dpN=function(k,E){return _.Ep(k.entities,"youchatPendingResponseEntity",E)};
_.sCo=function(k){return function(E){_.bl(_.mj("youchatPendingResponseEntity",k,{entityKey:k,isPendingResponse:E}))}};
lCr=function(k){k==null||k.addEventListener("DOMLoaded",function(){k.goToAndPlay(k.totalFrames-48,!0)})};
MTu=function(k){var E=[];yCo(["videoId","contentId"],k.JSC$18577_pageManager.data,new Set,E);return E};
_.q5F=function(k){return MTu(k).filter(function(E){return E.contentType==="video"}).map(function(E){return E.contentId}).filter(function(E){return E!==void 0})};
_.mN=function(k){this.__isSoyCss=!0;this.css=Xzo.apply(null,[k.strings].concat(_.$e(k.args)))};
_.mN.prototype.toString=function(){return this.css};
var g2N=function(){_.mN.apply(this,arguments)};
_.y(g2N,_.mN);var xpX=_.ry(["",""]);var zAJ;var QCU;_.F6({_template:function(){if(QCU!==void 0)return QCU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
var E=k.content,S=E.insertBefore;zAJ===void 0&&(zAJ=document.createElement("template"));var R=zAJ;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return QCU=k},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var OjJ=new _.z_("flowRootRenderer");var GYF=new _.z_("chipsShelfViewModel");var C4X=new _.z_("responsiveContainerConfiguration");_.kGo=new _.z_("engagementPanelSectionListRenderer");var EWU=function(){this.horizontal=!1},SAF=function(k,E){k.horizontal=E};
EWU.prototype.position=function(k,E,S,R){R=R===void 0?1:R;k=this.delta(k)*R+E;R=Math.max(E,S);return k>=Math.min(E,S)&&k<=R?k:S};
EWU.prototype.axis=function(k){k=this.direction(k);return k==="up"||k==="down"?"Y":"X"};var Dh=function(k,E,S){E=E===void 0?_.LM():E;this.target=k;this.manager=E;this.touchAction=S;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Dh.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(_.$e(this.events)));for(var k=_.n(this.events),E=k.next();!E.done;E=k.next())this.listen(E.value)}};
Dh.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.$e(this.events)));for(var k=_.n(this.events),E=k.next();!E.done;E=k.next())this.unlisten(E.value)}};
Dh.prototype.listen=function(k){this.eventMap[k]&&this.target.addEventListener(k,this.eventMap[k])};
Dh.prototype.unlisten=function(k){this.eventMap[k]&&this.target.removeEventListener(k,this.eventMap[k])};var $i=function(){EWU.apply(this,arguments)};
_.y($i,EWU);$i.prototype.direction=function(k){var E=k.detail;k=E.deltaY;E=E.deltaX;return k&&!this.horizontal?k>0?"down":"up":E&&this.horizontal?E>0?"right":"left":"none"};
$i.prototype.distance=function(k){return Math.abs(this.delta(k))};
$i.prototype.delta=function(k){var E=this.direction(k),S=k.detail;k=S.deltaX;S=S.deltaY;return E==="up"||E==="down"?S||0:k||0};
$i.prototype.velocity=function(k){var E=this.direction(k),S=k.detail;k=S.velocityX;S=S.velocityY;return Math.abs(E==="up"||E==="down"?S||0:k||0)};_.fB=function(k,E,S,R,V,N){V=V===void 0?new $i:V;N=N===void 0?_.LM():N;Dh.call(this,E,N,R);var h=this;this.element=k;this.target=E;this.config=S;this.input=V;this.manager=N;this.events=["panstart","panmove","panend"];this.onPanStart=function(){h.config.draggingClass&&h.element.classList.add(h.config.draggingClass);h.config.startAction&&h.config.startAction()};
this.onPanMove=function(J){var m=RYX(h,J);if(m){h.move(J,m);m.fade&&h.fade(J,m);var a=h.input.direction(J);m.moveAction&&m.moveAction(VIN(h,J,m),a)}};
this.onPanEnd=function(J){var m,a,T,w,P,B;return _.c(function(F){if(F.nextAddress==1){h.animationRequestId&&cancelAnimationFrame(h.animationRequestId);h.animationRequestId=void 0;m=RYX(h,J);if(!m)return F.return();a=m;T=a.triggerAction;w=a.fade;P=a.disableFinish;B=a.translateBack;var K=h.input.velocity(J),r=h.input.distance(J),x=h.threshold(m);return K>.3&&r>10||r>x?P?F.jumpTo(6):w?F.yield(NUr(h,J),6):F.yield(IxJ(h,J,m),6):B?F.yield(h.translateBack(J),3):F.jumpTo(3)}F.nextAddress!=3&&T&&T();h.config.draggingClass&&
h.element.classList.remove(h.config.draggingClass);h.reset();_.KR(F)})};
k=Object.keys(S.triggers);this.directions=new Set(k);SAF(this.input,this.directions.has("right")||this.directions.has("left"))};
_.y(_.fB,Dh);_.fB.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var RYX=function(k,E){E=k.input.direction(E);return k.config.triggers[E]};
_.fB.prototype.move=function(k,E){var S=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var R=S.input.axis(k),V=S.input.position(k,S.config.startPosition,E.endPosition,E.moveRatio||1);S.element.style.transform="translate"+R+"("+V+"px)";S.animationRequestId=void 0}))};
var VIN=function(k,E,S){var R=S.moveRatio||1;S=Math.abs(k.config.startPosition-S.endPosition);return Math.min(k.input.distance(E)*R,S)/S};
_.fB.prototype.fade=function(k,E){var S=E.endOpacity;k=VIN(this,k,E);k>0&&(this.element.style.opacity=""+(((S||0)-1)*k+1))};
_.fB.prototype.threshold=function(k){return k.threshold?k.threshold:Math.abs(k.endPosition-this.config.startPosition)/3};
var IxJ=function(k,E,S){var R,V,N,h,J,m,a;return _.c(function(T){if(T.nextAddress==1)return R=k.input.delta(E)+k.config.startPosition,V=k.input.axis(E),N=S,h=N.endPosition,J=N.transitionEndPosition,a=(m=J)!=null?m:h,T.yield(k.element.animate([{transform:"translate"+V+"("+R+"px)"},{transform:"translate"+V+"("+a+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);k.element.style.transform="translate"+V+"("+a+"px)";_.KR(T)})};
_.fB.prototype.translateBack=function(k){var E=this,S,R;return _.c(function(V){if(V.nextAddress==1){if(!E.element.style.transform)return V.return();S=E.input.axis(k);R=E.config.startPosition;return V.yield(E.element.animate([{transform:E.element.style.transform},{transform:"translate"+S+"("+R+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}E.element.style.transform="translate"+S+"("+R+"px)";_.KR(V)})};
var NUr=function(k,E){var S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return S=k.input.delta(E)+k.config.startPosition,R=k.input.axis(E),V=S+70,N=k.element.style.opacity===""?1:k.element.style.opacity,h.yield(k.element.animate([{transform:"translate"+R+"("+S+"px)",opacity:N},{transform:"translate"+R+"("+V+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);k.element.style.transform="translate"+R+"("+V+"px)";k.element.style.opacity="0";_.KR(h)})};var vR=function(){var k=_.mi.apply(this,arguments)||this;k._noAccessors=!0;k.scrollRate=3;k.autoScrollAnimationStart=0;k.autoScrollPaused=!1;k.autoScrollRafId=0;return k};
_.y(vR,_.mi);_.I=vR.prototype;_.I.created=function(){var k=this;this.boundAutoScrollHandler=function(E){k.autoScroll(E)}};
_.I.detached=function(){this.hostElement.removeEventListener("mouseout",_.Ic(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Ic(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Ic(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.I.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Ic(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Ic(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Ic(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Ic(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Ic(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Ic(this,this.endAutoScroll)),this.endAutoScroll())};
_.I.autoScroll=function(k){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=k);var E;if(E=!this.autoScrollPaused&&this.scrollTarget)E=this.scrollTarget,E=E.scrollHeight-E.scrollTop!==E.clientHeight;E&&(E=1E3/this.scrollRate,k-=this.autoScrollAnimationStart,k>E&&(this.scrollTarget.scrollTop+=Math.ceil(k/E),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.I.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.I.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
vR.prototype.autoScrollEnabledChanged=vR.prototype.autoScrollEnabledChanged;_.Z([_.H(),_.l("design:type",Object)],vR.prototype,"scrollRate",void 0);_.Z([_.H(),_.l("design:type",Object)],vR.prototype,"scrollTarget",void 0);_.Z([_.H(),_.l("design:type",Boolean)],vR.prototype,"autoScrollEnabled",void 0);_.Z([_.il("autoScrollEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vR.prototype,"autoScrollEnabledChanged",null);_.Z([_.eN()],vR);_.nWJ=[vR.prototype];var iP$;var b7=function(){var k=_.p.apply(this,arguments)||this;k.buttonUpdate=_.Y("web_button_rework");k.dismissButtonOverrides=_.Y("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;k.forceDarkTheme=!1;k.forceLightTheme=!1;k.dynamicTextHeight=94;k.hasOverflowButton=!1;k.isInfeedModernization=!1;return k};
_.y(b7,_.p);_.I=b7.prototype;_.I.computeUrlImg=function(k){if(k)return _.Q_(k.thumbnails)};
_.I.getLogoHeight=function(k){return this.logoWithPadding(k)?"31":"24"};
_.I.getLogoClassName=function(k){return this.logoWithPadding(k)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.I.logoWithPadding=function(k){var E,S;return(k=(E=k.thumbnails)==null?void 0:(S=E[0])==null?void 0:S.height)&&k%31===0?!0:!1};
_.I.sendImpressionEndpoints=function(k){k.impressionEndpoints&&_.Qw(this.hostElement,k.impressionEndpoints)};
_.I.observeBasicPalette=function(){var k,E,S=(k=this.data)==null?void 0:(E=k.colorData)==null?void 0:E.basicColorPaletteData;S?_.wb(this.hostElement,S):_.wb(this.hostElement,{})};
_.I.observeDataChanged=function(){var k;this.dynamicTextHeight=((k=this.data)==null?0:k.supplementalText)?74:94;var E;this.hasSupplementalText=!((E=this.data)==null||!E.supplementalText);if(_.Y("web_button_rework")){var S,R,V,N;k=(S=this.data)==null?void 0:(R=S.actionButton)==null?void 0:(V=R.buttonRenderer)==null?void 0:(N=V.colorData)==null?void 0:N.basicColorPaletteData;var h,J,m;if(!((h=this.data)==null?0:(J=h.actionButton)==null?0:(m=J.buttonRenderer)==null?0:m.style)&&k){this.computeIsInfeedModernization(this.data)||
(k.borderColor=k.foregroundTitleColor);var a,T;this.set("data.actionButton.buttonRenderer",_.fO.unsafeClone((a=this.data)==null?void 0:(T=a.actionButton)==null?void 0:T.buttonRenderer))}}};
_.I.observeDataForCounterfactual=function(){if(_.Y("kevlar_banner_cf_extra_logging")){var k;((k=this.data)==null?0:k.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.I.computeSupplementalStyle=function(){var k;if((k=this.data)!=null&&k.supplementalText){var E,S,R;if((E=this.data)==null?0:(S=E.colorData)==null?0:(R=S.basicColorPaletteData)==null?0:R.foregroundActivatedColor)return k=_.HT(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+k+"; --yt-endpoint-hover-color:"+k+"; --yt-endpoint-visited-color:"+k+"; --yt-formatted-string-bold-font-weight:700;"}};
_.I.computeForcedDarkTheme=function(){var k,E,S,R=(k=this.data)==null?void 0:(E=k.actionButton)==null?void 0:(S=E.buttonRenderer)==null?void 0:S.style,V,N,h;k=HjJ(((V=this.data)==null?void 0:(N=V.colorData)==null?void 0:(h=N.basicColorPaletteData)==null?void 0:h.backgroundColor)||0);return R&&k};
_.I.computeForcedLightTheme=function(){var k,E,S,R=(k=this.data)==null?void 0:(E=k.actionButton)==null?void 0:(S=E.buttonRenderer)==null?void 0:S.style,V,N,h;k=!HjJ(((V=this.data)==null?void 0:(N=V.colorData)==null?void 0:(h=N.basicColorPaletteData)==null?void 0:h.backgroundColor)||0);return R&&k};
_.I.computeHasOverflowButton=function(k){return!!k.overflowButton};
_.I.computeHasTitle=function(k){return!!k.title};
_.I.computeTitleMaxFontSize=function(k){return this.computeHasOverflowButton(k)?28:64};
_.I.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.I.computeIsInfeedModernization=function(){var k,E,S,R,V=(k=this.data)==null?void 0:(E=k.actionButton)==null?void 0:(S=E.buttonRenderer)==null?void 0:(R=S.colorData)==null?void 0:R.basicColorPaletteData;return(V==null?void 0:V.backgroundColor)===452984831||(V==null?void 0:V.backgroundColor)===218103808};
b7.prototype.observeDataForCounterfactual=b7.prototype.observeDataForCounterfactual;b7.prototype.observeDataChanged=b7.prototype.observeDataChanged;b7.prototype.observeBasicPalette=b7.prototype.observeBasicPalette;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],b7.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],b7.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],b7.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],b7.prototype,"buttonUpdate",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],b7.prototype,"hasSupplementalText",void 0);_.Z([_.H(),_.l("design:type",Object)],b7.prototype,"dismissButtonOverrides",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.l("design:type",Boolean)],b7.prototype,"hasTitle",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.l("design:type",Object)],b7.prototype,"forceDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.l("design:type",Object)],b7.prototype,"forceLightTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],b7.prototype,"dynamicTextHeight",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.l("design:type",Object)],b7.prototype,"hasOverflowButton",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.l("design:type",Object)],b7.prototype,"isInfeedModernization",void 0);_.Z([_.il("data.colorData.basicColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b7.prototype,"observeBasicPalette",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b7.prototype,"observeDataChanged",null);_.Z([_.il("data.isVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],b7.prototype,"observeDataForCounterfactual",null);_.Z([_.D({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],b7);
_.b(b7,"ytd-banner-promo-renderer",function(){if(iP$!==void 0)return iP$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return iP$=k},{mode:1});var hYU;var JRF;var cRB;var m2U=function(){return _.p.apply(this,arguments)||this};
_.y(m2U,_.p);_.Z([_.H(),_.l("design:type",Object)],m2U.prototype,"data",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],m2U.prototype,"ytRendererBehavior",void 0);_.Z([_.D({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],m2U);
_.b(m2U,"ytd-hashtag-grid-tile-renderer",function(){if(cRB!==void 0)return cRB;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return cRB=k},{mode:1});var Zh=function(){return _.p.apply(this,arguments)||this};
_.y(Zh,_.p);Zh.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Zh.prototype.updateRichGridTrendingHashtagsVisibility=function(){var k,E;if(((k=this.data)==null||!k.isExpanded)&&(E=this.data)!=null&&E.tiles){k=this.data.tiles.length;E=k>this.richGridItemsPerRow?this.richGridItemsPerRow+1:k;var S=Math.ceil(k/E);this.fullyVisibleRows=k%E===1&&S===2?1:Math.min(S,2);this.isShowMoreVisible=this.fullyVisibleRows<S}};
Zh.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Zh.prototype.updateRichGridTrendingHashtagsVisibility=Zh.prototype.updateRichGridTrendingHashtagsVisibility;_.Z([_.H(),_.l("design:type",Object)],Zh.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Number)],Zh.prototype,"fullyVisibleRows",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Zh.prototype,"isShowMoreVisible",void 0);_.Z([_.H({selector:_.Wo,value:0}),_.l("design:type",Number)],Zh.prototype,"richGridItemsPerRow",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Zh.prototype,"ytdReduxBehavior",void 0);_.Z([_.il("data","richGridItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zh.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.Z([_.D({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Zh);
_.b(Zh,"ytd-hashtag-grid-shelf-renderer",function(){if(JRF!==void 0)return JRF;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return JRF=k},{mode:1});var eYU;var axN;var ds=function(){var k=_.p.apply(this,arguments)||this;k.visibleVideos=[];k.hiddenVideos=[];k.modern=_.Y("web_modern_buttons");k.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(ds,_.p);_.I=ds.prototype;_.I.attached=function(){var k=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",k);this.onDarkModeToggledAction(k)};
_.I.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"}}}};
_.I.dataChanged=function(){var k=this;this.requestElementsPerRow();var E,S;this.currentColorPalette=this.isDarkTheme?(E=this.data)==null?void 0:E.darkColorData:(S=this.data)==null?void 0:S.lightColorData;var R;if((R=this.currentColorPalette)==null?0:R.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.JB(this,function(){k.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.I.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.I.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.I.computeIsFirstFeedItem=function(k){return k};
_.I.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&this.set("isDarkTheme",k);this.data&&(this.currentColorPalette=k?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.I.getCurrentLogo=function(k,E){if(k)return E?k.darkLogoImage:k.lightLogoImage};
_.I.computeTitleStyle=function(k){var E;if((E=this.data)!=null&&E.title&&k&&k.textPrimary!==void 0)return"color:"+_.HT(k.textPrimary)+";"};
_.I.computeSubtitleStyle=function(k){var E;if((E=this.data)!=null&&E.subtitle&&k&&k.textSecondary!==void 0)return"color:"+_.HT(k.textSecondary)+";"};
_.I.computeDismissIconStyle=function(k){if(this.data&&this.data.dismissButton&&k&&k.textPrimary!==void 0)return"--yt-button-color:"+_.HT(k.textPrimary)+";"};
_.I.computeOverflowButtonStyle=function(k){if(this.data&&this.data.overflowButton&&k&&k.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.HT(k.textPrimary)+";--yt-spec-icon-active-other:"+_.HT(k.textPrimary)+";"};
_.I.computeBackgroundStyle=function(k){if(k&&this.data){var E="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var S=_.Q_((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);S&&(E+='background-image:url("'+S+'");')}k.backgroundColor!==void 0&&(E+="background-color:"+_.Kc(k.backgroundColor)+";");return E}};
_.I.computeButton=function(){var k,E=Object.assign({},_.W((k=this.data)==null?void 0:k.showMoreButton,_.dZ));if(this.modern&&E){E.style="STYLE_MONO_OUTLINE";var S;if(k=(S=this.currentColorPalette)==null?void 0:S.textPrimary)E.colorData={basicColorPaletteData:{foregroundTitleColor:k,borderColor:k}}}return E};
_.I.shouldShowBottomButton=function(k,E){return!(k==null?0:k.header)&&!(k==null||!k.primaryButton)&&E<3};
_.I.checkExpanded=function(k){this.isExpanded=k&&k.content?this.hiddenVideos.length===0:!0};
_.I.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.I.getLogoHeight=function(k){return this.logoWithPadding(k)?"26":"20"};
_.I.getLogoImageId=function(k){return this.logoWithPadding(k)?"logo-image-with-padding":"logo-image"};
_.I.computeHasSectionHeader=function(k){return!!k.header};
_.I.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var k;if((k=this.data.primaryButton)==null?0:k.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 E;((E=this.data.dismissButton)==null?0:E.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var S,R;((S=this.data)==null?0:(R=S.primaryButton)==null?0:R.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.I.setVisibleVideos=function(k){if(this.data&&this.data.content)if(this.data.content.length){var E=this.data.content.length;this.data.header?k?(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.slimItemsPerRow),E)):(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow),E)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(E,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow),E)):(this.visibleVideos=this.data.content.slice(0,Math.min(E,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(E,this.elementsPerRow-1),E))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.I.setHasMovieRenderer=function(){var k;if((k=this.data)!=null&&k.content){var E;this.hasMovieRenderer=!!_.W((E=this.data)==null?void 0:E.content[0],_.eVT)}else this.hasMovieRenderer=!1};
_.I.requestElementsPerRow=function(){_.Me(this.hostElement,"yt-request-elements-per-row")};
_.I.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var k=_.n(this.hiddenMediaRenderers),E=k.next();!E.done;E=k.next())E.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(k=_.Cc(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&k.focus()}};
_.I.updateTitleSpec=function(){var k;(k=this.data)!=null&&k.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.I.logoWithPadding=function(k){var E,S,R;return(k=(E=this.getCurrentLogo(k,this.isDarkTheme))==null?void 0:(S=E.thumbnails)==null?void 0:(R=S[0])==null?void 0:R.height)&&k%31===0?!0:!1};
_.I.onUpdateElementsPerRowAction=function(k,E,S){k&&this.elementsPerRow!==k&&(this.elementsPerRow=k);S&&this.slimItemsPerRow!==S&&(this.slimItemsPerRow=S)};
ds.prototype.slimItemsPerRowChanged=ds.prototype.slimItemsPerRowChanged;ds.prototype.elementsPerRowChanged=ds.prototype.elementsPerRowChanged;ds.prototype.dataChanged=ds.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],ds.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ds.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],ds.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ds.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],ds.prototype,"currentColorPalette",void 0);_.Z([_.H(),_.l("design:type",Array)],ds.prototype,"visibleVideos",void 0);_.Z([_.H(),_.l("design:type",Array)],ds.prototype,"hiddenVideos",void 0);
_.Z([_.H(),_.l("design:type",Object)],ds.prototype,"primaryButton",void 0);_.Z([_.H({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],ds.prototype,"elementsPerRow",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ds.prototype,"isDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ds.prototype,"isExpanded",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ds.prototype,"largeTitle",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],ds.prototype,"hasMovieRenderer",void 0);_.Z([_.H(),_.l("design:type",Number)],ds.prototype,"slimItemsPerRow",void 0);_.Z([_.H(),_.l("design:type",Boolean)],ds.prototype,"showLightVideoMetadata",void 0);_.Z([_.H(),_.l("design:type",Boolean)],ds.prototype,"showDarkVideoMetadata",void 0);_.Z([_.H(),_.l("design:type",Number)],ds.prototype,"videoMetadataColor",void 0);
_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],ds.prototype,"miniMode",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.l("design:type",Boolean)],ds.prototype,"isFirstFeedItem",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.l("design:type",Boolean)],ds.prototype,"hasSectionHeader",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],ds.prototype,"roundedContainer",void 0);_.Z([_.cu("#visible-video-container ytd-rich-grid-media"),_.l("design:type",Array)],ds.prototype,"visibleMediaRenderers",void 0);_.Z([_.cu("#hidden-video-container ytd-rich-grid-media"),_.l("design:type",Array)],ds.prototype,"hiddenMediaRenderers",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ds.prototype,"modern",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ds.prototype,"dataChanged",null);_.Z([_.il("elementsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ds.prototype,"elementsPerRowChanged",null);_.Z([_.il("slimItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ds.prototype,"slimItemsPerRowChanged",null);
_.Z([_.D({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],ds);
_.b(ds,"ytd-brand-video-shelf-renderer",function(){if(axN!==void 0)return axN;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return axN=k},{mode:1});var tIg;var sy=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(sy,_.p);_.I=sy.prototype;_.I.attached=function(){var k=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",k);this.onDarkModeToggledAction(k)};
_.I.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"}}}};
_.I.dataChanged=function(){this.requestElementsPerRow();var k,E;this.currentColorPalette=this.isDarkTheme?(k=this.data)==null?void 0:k.darkColorData:(E=this.data)==null?void 0:E.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.I.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.I.computeIsFirstFeedItem=function(k){return k};
_.I.onDarkModeToggledAction=function(k){k!==this.isDarkTheme&&this.set("isDarkTheme",k);this.data&&(this.currentColorPalette=k?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(k),this.updateButtonPalette())};
_.I.shouldShowThumbnailInMetadata=function(k){return k<=1};
_.I.computeVideoMetadataColor=function(){if(this.data){var k;if((k=this.currentColorPalette)==null?0:k.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.I.computeTitleStyle=function(k){var E;if((E=this.data)!=null&&E.title&&k&&k.textPrimary!==void 0)return"color:"+_.HT(k.textPrimary)+";"};
_.I.computeSubtitleStyle=function(k){var E;if((E=this.data)!=null&&E.subtitle&&k&&k.textSecondary!==void 0)return"color:"+_.HT(k.textSecondary)+";"};
_.I.computeOverflowButtonStyle=function(k){if(this.data&&this.data.overflowButton&&k.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.HT(k.textPrimary)+";--yt-spec-icon-active-other:"+_.HT(k.textPrimary)+";"};
_.I.computeBackgroundStyle=function(k){if(k&&this.data){var E="";k.backgroundColor!==void 0&&(E+="background-color:"+_.Kc(k.backgroundColor)+";");return E}};
_.I.computeHasOverflowButton=function(k){return!!k.overflowButton};
_.I.updateButtonPalette=function(){if(this.data){var k;if((k=this.data.primaryButton)==null?0:k.buttonRenderer){var E;if((E=this.currentColorPalette)==null?0:E.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var S;((S=this.currentColorPalette)==null?0:S.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)})}}};
_.I.requestElementsPerRow=function(){_.Me(this.hostElement,"yt-request-elements-per-row")};
_.I.updateTitleSpec=function(){var k;(k=this.data)!=null&&k.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")};
_.I.onUpdateElementsPerRowAction=function(k){k&&this.elementsPerRow!==k&&(this.elementsPerRow=k)};
sy.prototype.elementsPerRowChanged=sy.prototype.elementsPerRowChanged;sy.prototype.dataChanged=sy.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],sy.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],sy.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],sy.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sy.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],sy.prototype,"currentColorPalette",void 0);_.Z([_.H(),_.l("design:type",Object)],sy.prototype,"primaryButton",void 0);
_.Z([_.H({reflectToAttribute:!0,value:3}),_.l("design:type",Number)],sy.prototype,"elementsPerRow",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],sy.prototype,"isDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],sy.prototype,"titleSize",void 0);_.Z([_.H(),_.l("design:type",Number)],sy.prototype,"videoMetadataColor",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],sy.prototype,"miniMode",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.l("design:type",Boolean)],sy.prototype,"isFirstFeedItem",void 0);_.Z([_.H({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],sy.prototype,"roundedContainer",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.l("design:type",Boolean)],sy.prototype,"hasOverflowButton",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sy.prototype,"dataChanged",null);_.Z([_.il("elementsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sy.prototype,"elementsPerRowChanged",null);_.Z([_.D({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],sy);
_.b(sy,"ytd-brand-video-singleton-renderer",function(){if(tIg!==void 0)return tIg;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return tIg=k},{mode:_.GN("kevlar_poly_si_batch_j070")?1:2});var TUr;var w0B=_.f(function(k){var E=k.data;return _.e(_.vM,{data:function(){return E().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(E().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var S=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":S=88;break a;default:S=88}return S},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return E().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"um"),BUk=_.f(function(k){var E=k.metadataRow;
var S=k.delimiter;return _.e(_.jw,{each:function(){return E().textParts||[]},
keyBy:"INDEX"},function(R,V){return _.e(_.tj,null,_.e(_.VB,{text:R,noWrap:!0,userInput:!0}),_.e(Pau,{delimiter:S,max:function(){return E().textParts.length},
index:V}))})},"vm"),Pau=_.f(function(k){var E=k.delimiter;
var S=k.max;var R=k.index;return _.e(_.t,{cond:function(){return(E==null?void 0:E())&&S()-1>R()},
then:function(){return _.e("span",null,E)}})},"wm"),YAF=_.f(function(k){var E=k.data;
k={};return _.e("yt-profile-page-header-information-view-model",{class:_.SQ("profilePageHeaderInformationViewModelHost",(k.profilePageHeaderInformationViewModelMobile=!1,k))},_.e(_.t,{cond:function(){return E().onTap},
then:function(){return _.e(_.P5,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.Uk(E().onTap)}},_.e(_.cp,{data:function(){return E().thumbnail}},{profilePageHeaderThumbnailViewModel:w0B}))},
else:function(){return _.e("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.e(_.cp,{data:function(){return E().thumbnail}},{profilePageHeaderThumbnailViewModel:w0B}))}}),_.e("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.e(_.t,{cond:function(){return E().onTap},
then:function(){return _.e(_.cp,{data:function(){return E().title}},{profilePageHeaderTitleViewModel:function(S){var R=S.data;
return _.e(_.P5,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.Uk(R().onTap)}},_.e(_.VB,{text:function(){return R().title}}))}})},
else:function(){return _.e(_.cp,{data:function(){return E().title}},{profilePageHeaderTitleViewModel:function(S){var R=S.data;
return _.e(_.VB,{text:function(){return R().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.e(_.cp,{data:function(){return E().metadata}},{profilePageHeaderMetadataViewModel:function(S){var R=S.data;
return _.e(_.t,{cond:function(){return R().metadataRows},
then:function(V){return _.e("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.e(_.jw,{each:V,keyBy:"INDEX"},function(N,h){return _.e(_.tj,null,_.e(BUk,{metadataRow:N,delimiter:" \u2022 "}),_.e(Pau,{delimiter:" \u2022 ",max:function(){return V().length},
index:h}))}))}})}})))},"xm");
YAF.idomCompat=!0;_.qi(YAF,"yt-profile-page-header-information-view-model",{props:{data:_.Nq}});var l7=function(){return _.p.apply(this,arguments)||this};
_.y(l7,_.p);l7.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],l7.prototype,"data",void 0);_.Z([_.D({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],l7);
_.b(l7,"ytd-effect-pivot-header-view-model",function(){if(TUr!==void 0)return TUr;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return TUr=
k},{mode:1});var WTo;var Mv=function(){return _.p.apply(this,arguments)||this};
_.y(Mv,_.p);Mv.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Mv.prototype,"data",void 0);_.Z([_.D({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Mv);
_.b(Mv,"ytd-source-pivot-header-renderer",function(){if(WTo!==void 0)return WTo;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return WTo=k},{mode:1});_.qi(_.gn0,"yt-card-view-model",{props:{data:_.Nq,className:_.Nq,isSelected:_.Nq}});var bjk=_.dIa.talkToRecsStateSelector;_.qi(_.f(function(k){var E=function(){return _.W(k.data().flowRoot,OjJ)};
_.b$(function(){var S=E(),R=function(){},V=function(){};
if(S){var N,h,J,m=((J=_.W((N=E())==null?void 0:(h=N.steps)==null?void 0:h[0],_.HF))==null?void 0:J.stepId)||"";$pu(S,m);R=v2S(S);V=Zjo(S)}_.bI(function(){var a=E();a&&_.vo().dispatch(_.mj("flowStateEntity",a.flowStateEntityKey));R();R=function(){};
V();V=function(){};
_.bl(_.AIY())})});
return _.e("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.e(_.BW,{contentId:function(){return k.data().contentId}},function(){return _.e("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.e(_.t,{cond:E,
then:function(S){return _.e(_.Q7W,{data:S})}}))}))},"ym"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Nq}});_.qi(_.f(function(){return _.e("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.e("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.e("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.e(_.QRY,null)),_.e(_.du4,{data:{rows:1},isExploreHub:!0}))},"zm"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.qi(_.f(function(k){var E=k.data;var S=k.standardUnitMinWidth;k=_.n((0,_.qK5)(E));var R=k.next().value,V=k.next().value,N=function(){var J,m=(J=R())==null?void 0:J.contents;return m==null||m.length===0},h=function(){V(Object.assign({},R(),{contents:[]}))};
return _.e("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.Z0(_.e9({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var J=_.W(E().chipsShelf,GYF);if(J!=null&&J!=null&&J.autoselectChipOnVisible){var m,a,T=_.W(J==null?void 0:(m=J.contents)==null?void 0:m[(a=J.autoselectedChipIndex)!=null?a:0],_.zg);T&&T.tapCommand&&_.AV(T.tapCommand)}}}))},_.e(_.BW,{contentId:function(){return E().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.e("div",null,_.e("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.e(_.cp,{data:function(){return E().header}},{sectionHeaderViewModel:function(J){return _.e(_.gI,{data:J.data,
disableHorizontalPadding:!0})}})),_.e("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.e(_.cp,{data:function(){return E().chipsShelf}},{chipsShelfViewModel:function(J){return _.e(_.On,{data:J.data,
callback:h,selectionBehavior:1})}})),_.e("div",null,_.e(_.t,{cond:N,
then:function(){return _.e("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.e(_.du4,{data:{rows:1},isExploreHub:!0}))}}),_.e(_.cp,{data:function(){var J;
return(J=R())==null?void 0:J.contents}},{richShelfRenderer:function(J){return _.e(_.k0d,{data:J.data,
isInnerShelf:!0,standardUnitMinWidth:S})}})))}))},"Am"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Nq,
standardUnitMinWidth:_.Nq}});var qv=function(){return _.p.apply(this,arguments)||this};
_.y(qv,_.p);
qv.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",eduCardViewModel:"yt-edu-card-view-model",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}}};
qv.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.Z([_.g(_.zm),_.l("design:type",Object)],qv.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],qv.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],qv.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Number)],qv.prototype,"standardUnitMinWidth",void 0);_.Z([_.D({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],qv);
_.b(qv,"ytd-rich-section-renderer",function(){if(eYU!==void 0)return eYU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return eYU=k},{mode:_.GN("kevlar_poly_si_batch_j029")?
1:2});_.qi(_.Iv3,"yt-profile-identity-info-view-model",{props:{data:_.Nq,hideDivider:_.Nq,isChannelInfoCard:_.Nq}});_.qi(_.CU2,"yt-page-header-view-model",{props:{data:_.Nq,noPadding:_.Nq,enableBanner:_.Nq,cinematicContainerTopbarOffset:_.Nq,allowCinematicContainerOverflow:_.Nq,displayAsSidebar:_.Nq,displayAsPanel:_.Nq,alwaysUseMediumTextDescription:_.Nq}});_.qi(_.f(function(k){var E=k.data;var S=function(){var V;return(V=E().numColumns)!=null?V:2},R=function(){return S()>1?3:2};
k={};return _.e("ytd-rich-grid-group",{class:_.SQ("ytdRichGridGroupHost",(k.ytdRichGridGroupHostFirstColumn=function(){return E().colIndex===0},k)),
style:_.nU({"--ytd-rich-grid-group-num-columns":S,"--ytd-rich-grid-items-per-group":R})},_.e("div",{class:"ytdRichGridGroupContents"},_.e(_.cp,{data:function(){var V;return(V=E().contents)==null?void 0:V.slice(0,R())}},{richItemRenderer:function(V){return _.e(_.GqA,{data:V.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Bm"),"ytd-rich-grid-group",{props:{data:_.Nq}});var z5=function(){var k=_.p.apply(this,arguments)||this;k.resizeOnObserverInit=!1;k.isInlinePreviewDisabled=_.Y("web_disable_inline_preview");k.disableStickyFilterBar=!1;k.transparentBackgroundChipsBar=!1;k.hideChipsBar=!1;k.isWatchDefaultLayout=!0;k.continuationShowButton=!1;k.rowReducedHorizontalMargin=!1;k.useCompactList=!1;k.manualDownloadsPresent=!1;k.smartDownloadsPresent=!1;k.isOnline=!1;k.shouldRenderDownloadsBanner=!1;k.shouldRenderDownloadsBannerUpsell=!1;k.hasOptedIntoSmartDownloads=!1;
k.elementsPerRow=4;k.typographyBump=!1;k.slimItemsPerRow=1;k.pageLoadingFromNavigation=!1;k.resizeObserver=null;k.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"};k.rendererToTagNameMap=new Map(Object.entries(k.contentMapping()).map(function(E){var S=
_.n(E);E=S.next().value;S=S.next().value;return[E,S.component]}));
k.insertedContent=new Map;return k};
_.y(z5,_.p);_.I=z5.prototype;_.I.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var k=_.n(_.Cc(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),E=k.next();!E.done;E=k.next())E.value.useCompactList=this.useCompactList};
_.I.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var k=_.n(_.Cc(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),E=k.next();!E.done;E=k.next())E=E.value,E.sizing=this.sizing,E.typographyBump=this.typographyBump};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.I.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]]"}}}};
_.I.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}}};
_.I.attached=function(){document.addEventListener("yt-page-type-changed",_.Ic(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$22141_throttledOnResize=new _.NJ(this.resizeObserved,_.wO("rich_grid_resize_delay_ms",50),this)};
_.I.detached=function(){var k;(k=this.resizeObserver)==null||k.disconnect();document.removeEventListener("yt-page-type-changed",_.Ic(this,this.onPageChange))};
_.I.insertRichSection=function(k){var E=k.richItemTargetId;k=k.richSectionRendererToInsert;E&&k&&(this.insertedContent.set(E,{content:k,timestamp:Date.now()}),this.reflowContent())};
_.I.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.I.computeIsInlinePreviewEnabled=function(k,E,S){return _.Y("web_disable_inline_preview")?!1:!S&&_.YtU({miniplayerIsActive:k,miniplayerPlaybackState:E})};
_.I.computeSizing=function(){var k=_.Lmi(this.data);if(k||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return k?this.useCompactList?"COMPACT":k:this.miniMode?"COMPACT":"STANDARD"};
_.I.updateItemMinAndMaxWidth=function(){var k=_.wO("rich_grid_max_item_width",500);k>0&&_.VO(this.hostElement,{"--ytd-rich-grid-item-max-width":k+"px"});var E;k=this.getRichItemMinWidth((E=this.hostElement)==null?void 0:E.clientWidth);k>0&&_.VO(this.hostElement,{"--ytd-rich-grid-item-min-width":k+"px"})};
_.I.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.I.resizeObserved=function(){_.zR(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.I.onPageChange=function(){var k=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.zR(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.ZJ.addJob(function(){k.pageLoadingFromNavigation=!1;k.setMasthead();k.maybeSetBigYoodle();k.forceRefreshAndLog();k.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.I.dataChanged=function(){var k=this;_.zR(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.JB(this,function(){k.updateRichItemGridPositions();k.contentsElement&&_.VO(k.hostElement,{"--ytd-rich-grid-content-offset-top":k.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.I.initResizeObserver=function(){var k=this;if(window.ResizeObserver){var E;(E=this.resizeObserver)==null||E.disconnect();var S=!1;this.resizeObserver=new ResizeObserver(function(){if(S){var R;(R=k.resizeObserver)==null||R.disconnect();var V;(V=k.JSC$22141_throttledOnResize)==null||V.fire();requestAnimationFrame(function(){var h;(h=k.JSC$22141_throttledOnResize)==null||h.fire();k.initResizeObserver()})}else if(S=!0,k.resizeOnObserverInit){var N;
(N=k.JSC$22141_throttledOnResize)==null||N.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.I.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.zR(this.hostElement,"ytd-rich-item-index-update-action")};
_.I.updateElementsPerRow=function(){_.zR(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.zX({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.zX({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.I.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.I.onRichShelfRendererCollapse=function(k){if(this.shownItems){var E=k.detail;k=this.shownItems.findIndex(function(R){var V,N;return((N=_.W(R==null?void 0:(V=R.richSectionRenderer)==null?void 0:V.content,_.ITj))==null?void 0:N.trackingParams)===E});
var S=k+1;k<0||S>=this.contentsElement.children.length||!this.shownItems[S].richItemRenderer||this.contentsElement.children[S].scrollIntoView({behavior:"smooth",block:"start"})}};
_.I.onSoftReloadPage=function(){this.scrollUpToTop()};
_.I.handleRerenderDownloadsData=function(){_.Y("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.I.handlePlaylistRemoveVideosAction=function(k){var E;if(((E=_.W(k,_.yHY))==null?0:E.setVideoIds)&&this.data&&this.data.contents){k=_.W(k,_.yHY).setVideoIds;for(E=this.data.contents.length-1;E>=0;){var S=_.W(this.data.contents[E],_.U6);(S=S&&_.W(S.content,_.Zr))&&S.setVideoId&&k.includes(S.setVideoId)&&this.splice("data.contents",E,1);E--}this.updateIndices()}};
_.I.updateIndices=function(){if(this.data&&this.data.contents)for(var k=0;k<this.data.contents.length;k++)this.set("data.contents."+k+".richItemRenderer.index",_.DE(String(k+1)))};
_.I.hasTopRowInlinePlayableVideoWithEndorsement=function(k){var E;return!((E=k.slice(0,this.getItemsPerRow()))==null||!E.some(function(S){var R;S=_.W(S==null?void 0:(R=S.richItemRenderer)==null?void 0:R.content,_.l3);var V;return(S==null?void 0:S.inlinePlaybackEndpoint)&&(S==null?void 0:(V=S.thumbnailOverlays)==null?void 0:V.some(function(N){return N.thumbnailOverlayEndorsementRenderer}))}))};
_.I.refreshGridLayoutNew=function(k,E,S,R){var V=R.postsPerRow;var N=R.slimItemsPerRow;var h=R.gameCardsPerRow;R=R.miniGameCardsPerRow;var J;if((J=this.data)==null||!J.contents||!this.containerWidth)return!1;var m;if((m=this.data.responsiveContainerConfiguration)==null?0:m.responsiveSize){var a=_.eLm(this.data.responsiveContainerConfiguration,this.containerWidth),T;J=_.Uf(Object.assign({},a,{standardUnitMinWidth:(T=this.data)==null?void 0:T.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&a.isCompactList)}else J=_.Uf({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(a=this.data)==null?void 0:a.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=J.typographyBump;T=!1;if(k||this.elementsPerRow!==J.numItems||this.postsPerRow!==V||this.slimItemsPerRow!==N||this.gameCardsPerRow!==
h||this.miniGameCardsPerRow!==R||this.gutter!==J.gutter)T=this.elementsPerRow!==J.numItems,this.elementsPerRow=J.numItems,this.postsPerRow=V,this.slimItemsPerRow=N,this.gameCardsPerRow=h,this.miniGameCardsPerRow=R,this.gutter=J.gutter,this.itemWidth=J.itemWidth,this.reflowContent(E),_.VO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":J.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(S);this.ytdReduxBehavior.dispatch(_.zX({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:J.maxContainerWidth}));return T};
_.I.refreshGridLayout=function(k,E){var S,R=(S=this.hostElement)==null?void 0:S.clientWidth;this.containerWidth=this.adjustRichGridWidth(R,!0);var V;if((V=this.data)==null||!V.contents||!this.containerWidth)return k&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(k=!0,this.pendingForceReflow=!1);S=this.getRichItemMinWidth(R);var N=this.isShortsPanel?146:194,h=this.getMiniGameCardMinWidth(),J=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;R=S=this.calcElementsPerRow(S,
J);(V=S<=3&&this.miniModeAllowed())&&(S=this.calcElementsPerRow(240,4));var m=this.calcMaxSlimElementsPerRow(S,J,this.isDefaultGrid);J=this.calcElementsPerRow(N,m);var a=this.calcElementsPerRow(this.isCompactGrid?N:154,m);N=this.calcElementsPerRow(this.isCompactGrid?N:h,m);h=!1;if(this.sizing)return this.refreshGridLayoutNew(k,E,V,{postsPerRow:R,slimItemsPerRow:J,gameCardsPerRow:a,miniGameCardsPerRow:N});if(k||this.elementsPerRow!==S||this.postsPerRow!==R||this.slimItemsPerRow!==J||this.gameCardsPerRow!==
a||this.miniGameCardsPerRow!==N)h=this.elementsPerRow!==S,this.elementsPerRow=S,this.postsPerRow=R,this.slimItemsPerRow=J,this.gameCardsPerRow=a,this.miniGameCardsPerRow=N,this.reflowContent(E),this.updateElementsPerRow(),_.VO(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)&&_.VO(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(V);_.zR(this.hostElement,"yt-rich-grid-layout-refreshed");return h};
_.I.getRichItemMinWidth=function(k){var E=_.wO("rich_grid_min_item_width",310);if(!_.Y("kevlar_disable_min_width_override")){var S,R;E=(R=(S=this.data)==null?void 0:S.minItemWidth)!=null?R:E}return E+_.H_h(k)};
_.I.calcMaxSlimElementsPerRow=function(k,E,S){return(S===void 0?0:S)?k===1?2:k%2===0?k/2*3:k+2:E*2};
_.I.adjustRichGridWidth=function(k,E){var S=_.Y("disable_rich_grid_guide_compensation");if(!this.isWatch&&!S){S=_.en().resolve(_.mz(_.kg));var R=S==null?void 0:S.guideElement;if(!(!S||S.getData()||R!=null&&R.opened||S.getMiniGuideVisible()))if(S.canFitPersistentGuide(k)&&S.getGuideExpandsAutomatically()){var V,N,h=Number((V=window.getComputedStyle(this.hostElement))==null?void 0:(N=V.getPropertyValue("--app-drawer-width"))==null?void 0:N.replace("px",""));k-=h||0}else if(S.canFitMiniGuide(k)){var J;
V=Number((h=window.getComputedStyle(this.hostElement))==null?void 0:(J=h.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:J.replace("px",""));k-=V||0}}k>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(k-=E?32:48));return k};
_.I.calcElementsPerRow=function(k,E){var S=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),R=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((S+R)/(k+R))||1,E)};
_.I.reflowContent=function(k){var E=this;if(!this.isReflowing){this.isReflowing=!0;var S,R,V=!!((S=this.data)==null?0:(R=S.contents)==null?0:R.some(function(J){return _.W(J,_.jj)}));
S=this.getItemsPerRow();var N;R=(N=this.data)==null?void 0:N.reflowOptions;k&&(_.o_("rgr_s"),_.JB(this,function(){_.o_("rgr_nrf")}));
k={};(N=_.Cc(this.hostElement).querySelector("#contents"))&&(k={contentElement:N,rendererToTagNameMap:this.rendererToTagNameMap});N=(N=this.data.contents)?N.slice():[];V=rC$(N,S,V,R,this.getRichGridStyle(),k,this.insertedContent);var h=V.orderedContent;if(V=V.pinnedContentNotShownTargetIds)for(V=_.n(V),S=V.next();!S.done;S=V.next())this.insertedContent.delete(S.value);V=function(){E.shownItems=h;E.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(h),_.JB(this,V)):V()}};
_.I.getFirstRowItems=function(k){for(var E=[],S=0;S<k.length;S++){var R=void 0,V=void 0,N=void 0,h=void 0,J=void 0,m=void 0;if(((R=k[S])==null?void 0:(V=R.richItemRenderer)==null?void 0:V.rowIndex)===0||((N=k[S])==null?void 0:(h=N.richGroupRenderer)==null?void 0:h.rowIndex)===0||((J=k[S])==null?void 0:(m=J.richSectionRenderer)==null?void 0:m.rowIndex)===0)E.push(k[S]);else break}return E};
_.I.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.I.resetInsertedContentIfNeeded=function(){(_.Y("web_explore_hub_on_hover")||_.Y("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.I.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.I.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()};
_.I.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.I.terminateVideoPreview=function(){_.zR(this.hostElement,"yt-terminate-video-preview-action")};
_.I.updateRichItemGridPositions=function(){var k={gridData:{gridColumnCount:this.elementsPerRow}},E;((E=this.data)==null?0:E.trackingParams)&&(E=_.Fe())&&_.fz(E,_.tV(this.data.trackingParams),k);_.zR(this.hostElement,"ytd-rich-item-index-update-action")};
_.I.miniModeAllowed=function(){return this.isChannelPage};
_.I.getMiniGameCardMinWidth=function(){return 154};
_.I.updateMiniMode=function(k){this.miniMode=this.miniModeAllowed()&&k;this.ytdReduxBehavior.dispatch(_.zX({type:"SET_RICH_GRID_MINI_MODE",payload:k}))};
_.I.isCurrentPage=function(){return location.pathname===this.pagePath};
_.I.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var k=_.en().resolve(_.ZD).getCurrentPage();k&&k.setScrollTop(0)}};
_.I.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.I.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.I.maybeSetBigYoodle=function(){var k,E=(k=this.data)==null?void 0:k.bigYoodle;this.bigYoodleData!==E&&(this.bigYoodleData=E)};
_.I.setMasthead=function(){var k;((k=this.data)==null?0:k.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.I.getRichGridStyle=function(){var k,E;return(E=(k=this.data)==null?void 0:k.style)!=null?E:"RICH_GRID_STYLE_UNKNOWN"};
_.I.onIsShortsGridChange=function(){var k=this.ytdReduxBehavior,E=k.dispatch,S=this.getRichGridStyle();E.call(k,_.zX({type:"SET_RICH_GRID_STYLE",payload:S}))};
_.mt.Object.defineProperties(z5.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var k;return(((k=this.data)==null?void 0:k.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var k;return(((k=this.data)==null?void 0:k.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var k=_.en().resolve(_.ZD).getCurrentPage(),E,S,R;return(((E=this.data)==null?void 0:E.targetId)==="browse-feedFEsfv_audio_pivot"||_.Y("web_enable_channel_pivot_panel")&&((S=this.data)==null?void 0:S.targetId)==="browse-feedFEsfv_channel_pivot"||_.Y("web_enable_effect_pivot_panel")&&((R=this.data)==null?void 0:R.targetId)==="browse-feedFEsfv_effect_pivot")&&(k==null?void 0:k.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.Y("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 k;return!((k=this.data)==null?0:k.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var k;return((k=_.en().resolve(_.ZD).getCurrentPage())==null?void 0:k.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var k;return((k=_.en().resolve(_.ZD).getCurrentPage())==null?void 0:k.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 k;return(((k=this.data)==null?void 0:k.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.data)==null?0:k.enableContentSpecificAspectRatio)||((E=this.data)==null?0:(S=E.responsiveContainerConfiguration)==null?0:S.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.wO("web_continuation_handler_margin",0):0}}});
z5.prototype.onIsShortsGridChange=z5.prototype.onIsShortsGridChange;z5.prototype.onReloadContinuationFinish=z5.prototype.onReloadContinuationFinish;z5.prototype.reflowContent=z5.prototype.reflowContent;z5.prototype.handleRerenderDownloadsData=z5.prototype.handleRerenderDownloadsData;z5.prototype.onRichShelfRendererCollapse=z5.prototype.onRichShelfRendererCollapse;z5.prototype.onRequestElementsPerRow=z5.prototype.onRequestElementsPerRow;z5.prototype.contentLengthChanged=z5.prototype.contentLengthChanged;
z5.prototype.dataChanged=z5.prototype.dataChanged;z5.prototype.onSizingChange=z5.prototype.onSizingChange;z5.prototype.onUseCompactListChange=z5.prototype.onUseCompactListChange;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.KS),_.l("design:type",Object)],z5.prototype,"ironResizableBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],z5.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],z5.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],z5.prototype,"componentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],z5.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],z5.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],z5.prototype,"miniMode",void 0);_.Z([_.H({value:[]}),_.l("design:type",Array)],z5.prototype,"shownItems",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],z5.prototype,"isReflowing",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],z5.prototype,"isFilteredFeed",void 0);_.Z([_.H({selector:_.Uqh}),_.l("design:type",Boolean)],z5.prototype,"guideIsExpanded",void 0);
_.Z([_.H({selectorArgs:["entitySelectorType"],selector:function(k,E){if(_.Y("kevlar_modern_downloads_page")&&E&&E!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(E){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":E=k.entities;var S=_.w8(E),R=_.Po(E),V=_.lYm(k),N=_.sAR(k),h=_.M6h(k),J=_.w5I(E),m=_.co(S),a=_.Bo(E);return _.INI(S,R,J,_.Wyt(E),V,N,m,a,h,_.z1l(k),_.o7(k));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return k=_.w8(k.entities),_.ike(k);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return k=
_.aYC(k.entities),_.hLe(k);default:_.dg(new _.LC("Error: entitySelectorType defined but not matched in selector.",k,E))}}}),
_.l("design:type",Object)],z5.prototype,"entityDrivenRichGridData",void 0);_.Z([_.H(),_.l("design:type",Object)],z5.prototype,"resizeOnObserverInit",void 0);_.Z([_.H(),_.l("design:type",Object)],z5.prototype,"bigYoodleData",void 0);_.Z([_.H(),_.l("design:type",Object)],z5.prototype,"mastheadData",void 0);_.Z([_.H(),_.l("design:type",Boolean)],z5.prototype,"isInlinePreviewDisabled",void 0);_.Z([_.H(),_.l("design:type",Object)],z5.prototype,"disableStickyFilterBar",void 0);
_.Z([_.H(),_.l("design:type",Object)],z5.prototype,"transparentBackgroundChipsBar",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z5.prototype,"hideChipsBar",void 0);_.Z([_.H(),_.l("design:type",Object)],z5.prototype,"isWatchDefaultLayout",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z5.prototype,"continuationShowButton",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z5.prototype,"rowReducedHorizontalMargin",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z5.prototype,"useCompactList",void 0);_.Z([_.H({selector:function(k){return _.Po(k.entities).length>0}}),
_.l("design:type",Object)],z5.prototype,"manualDownloadsPresent",void 0);_.Z([_.H({selector:function(k){return _.w8(k.entities).length>0}}),
_.l("design:type",Object)],z5.prototype,"smartDownloadsPresent",void 0);_.Z([_.H({selector:_.o7}),_.l("design:type",Object)],z5.prototype,"isOnline",void 0);_.Z([_.H({selector:_.sAR}),_.l("design:type",Object)],z5.prototype,"shouldRenderDownloadsBanner",void 0);_.Z([_.H({selector:_.z1l}),_.l("design:type",Object)],z5.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.Z([_.H({selector:_.lYm}),_.l("design:type",Object)],z5.prototype,"hasOptedIntoSmartDownloads",void 0);
_.Z([_.il("useCompactList"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z5.prototype,"onUseCompactListChange",null);_.Z([_.il("sizing","typographyBump"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z5.prototype,"onSizingChange",null);_.Z([_.H({selector:_.uAl}),_.l("design:type",Number)],z5.prototype,"miniplayerPlaybackState",void 0);_.Z([_.H({selector:_.Ff}),_.l("design:type",Boolean)],z5.prototype,"miniplayerIsActive",void 0);
_.Z([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.l("design:type",Boolean)],z5.prototype,"isInlinePreviewEnabled",void 0);_.Z([_.H({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.l("design:type",String)],z5.prototype,"sizing",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z5.prototype,"elementsPerRow",void 0);
_.Z([_.H(),_.l("design:type",Object)],z5.prototype,"typographyBump",void 0);_.Z([_.H(),_.l("design:type",Number)],z5.prototype,"itemWidth",void 0);_.Z([_.JO("#header"),_.l("design:type",HTMLElement)],z5.prototype,"headerElement",void 0);_.Z([_.JO("#contents"),_.l("design:type",HTMLElement)],z5.prototype,"contentsElement",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z5.prototype,"dataChanged",null);
_.Z([_.ac("data.contents.length"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z5.prototype,"contentLengthChanged",null);_.Z([_.nv("yt-request-elements-per-row"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z5.prototype,"onRequestElementsPerRow",null);
_.Z([_.nv("yt-rich-shelf-renderer-collapse"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],z5.prototype,"onRichShelfRendererCollapse",null);_.Z([_.ac("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z5.prototype,"handleRerenderDownloadsData",null);
_.Z([_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],z5.prototype,"entitySelectorType",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"isSub",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"isWatch",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"isShortsPanel",null);_.Z([_.H({reflectToAttribute:!0}),_.U("isWatch"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"reducedTopMargin",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data","isWatch","isWatchDefaultLayout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"noTopMargin",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("isInlinePreviewEnabled","shownItems"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"topRowEndorsement",null);_.Z([_.U("data.header"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"hideHeader",null);_.Z([_.nv("yt-rich-grid-reflow"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean]),_.l("design:returntype")],z5.prototype,"reflowContent",null);
_.Z([_.nv("yt-reload-continuation-finish"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z5.prototype,"onReloadContinuationFinish",null);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"isSlimGrid",null);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"isShortsGrid",null);
_.Z([_.U("data","isSlimGrid","isShortsGrid"),_.H(),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"noRichItemGutterMargins",null);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"isShortsGridSlim",null);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"isCompactGrid",null);
_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"isDefaultGrid",null);_.Z([_.U("data.targetId"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"hideChipsBarOnWatch",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z5.prototype,"onIsShortsGridChange",null);
_.Z([_.U("data.enableContentSpecificAspectRatio"),_.H(),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z5.prototype,"force16By9ThumbnailAspectRatio",null);_.Z([_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],z5.prototype,"continuationTriggerOffset",null);_.Z([_.D({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],z5);
_.b(z5,"ytd-rich-grid-renderer",function(){if(hYU!==void 0)return hYU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return hYU=k},{mode:2});var FTg=_.f(function(k){return _.e("yt-feedback-prompt-view-model",{class:_.SQ("ytFeedbackPromptViewModelHost",k.className)},_.e(_.t,{cond:function(){return k.data().text},
then:function(E){return _.e(_.VB,{text:E})}}),_.e("div",{class:"ytFeedbackPromptViewModelButtons"},_.e(_.cp,{data:function(){return k.data().likeButton}},{likeButtonViewModel:_.q1}),_.e(_.cp,{data:function(){return k.data().dislikeButton}},{dislikeButtonViewModel:_.M1})))},"Cm");var yRF=_.f(function(k){var E=k.thumbsUp,S=k.thumbsDown,R=k.rightAlignThumbs;k=_.n(_.yg(!1,void 0,"OxPsH"));var V=k.next().value,N=k.next().value;k=_.n(_.yg(!1,void 0,"V5vWne"));var h=k.next().value,J=k.next().value;k={};return _.e("div",{class:_.SQ("ytwThumbsUpDownThumbs",(k.ytwThumbsUpDownRightAlign=function(){return R==null?void 0:R()},k))},_.e(_.bL,{data:E,
onToggle:function(m){N(m);h()&&J(!1)},
buttonShapeOverrides:function(){return{toggled:V()}}}),_.e(_.bL,{data:S,
onToggle:function(m){J(m);V()&&N(!1)},
buttonShapeOverrides:function(){return{toggled:h()}}}))},"Dm");
yRF.idomCompat=!0;var X0g=_.f(function(k){var E=function(){return k.data().pendingStateEntityKey||""},S=_.iK(_.dpN,E),R=function(){var J;
if(!(J=k.disabled())){var m;J=!((m=S())==null||!m.isPendingResponse)}return J},V=_.n(_.yg(Ldu(""),void 0,"YGalFd")),N=V.next().value,h=V.next().value;
_.vC(function(){requestAnimationFrame(function(){var J=k.data().onShowAnimationMs||0;J=J>0?Ldu("--chip-animation-duration: "+J+"ms;"):Ldu("");h(J)})});
return _.e("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:N},_.e(_.jw,{each:function(){return k.data().chipData||[]},
keyBy:"REFERENCE"},function(J){return _.e(oWJ,{data:J,disabled:R,pendingStateKey:E,onError:k.onError})}))},"Fm"),oWJ=_.f(function(k){var E=_.Nm("button"),S=_.n(_.yg(!0,void 0,"hspx2d")),R=S.next().value,V=S.next().value,N=function(){return k.data().text.content},h=function(){return k.data().transparentWhenLoading},J=_.gb(_.K5.currentPageSubTypeSelector),m=function(){if(_.Y("enable_ai_companion")){var T=_.en().resolve(_.mz(_.QXT));
switch(J()){case "watch":var w,P;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(w=_.Sq())==null?void 0:(P=w.getVideoData())==null?void 0:P.video_id};case "search":var B,F;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(B=T==null?void 0:_.q5F(T))!=null?B:[],entityId:(F=(new URLSearchParams(window.location.search)).get("search_query"))!=null?F:void 0};case "companion-canvas":var K;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(K=T==null?void 0:_.q5F(T))!=null?K:[]}}}},a=_.RZ(function(T){var w,
P,B,F,K,r,x,L;
return _.c(function(q){switch(q.nextAddress){case 1:T.stopPropagation();if(k.disabled())return q.return();P=String(Math.floor(((w=_.Sq())==null?void 0:w.getCurrentTime())||0)*1E3);B="youchat-"+Date.now();F=function(){_.HM(k.data().onClick||{});var M={continuationCommand:{token:k.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},d={inputComposerFormData:{clientMessageId:B,playerOffsetMs:P,pageContext:m()}};return new Promise(function(z,kb){_.HM(M,{form:{formData:d},commandController:{onSuccess:function(TI,
a1){z(a1)},
onServerError:function(TI,a1){kb(a1.error)}}})})};
K=_.sCo(k.pendingStateKey());K(!0);_.o2N("#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");V(!1);_.F5(q,2);return q.yield(F(),4);case 4:_.Sv(q,3);break;case 2:r=_.UY(q),(L=(x=k).onError)==null||L.call(x,r);case 3:K(!1),_.KR(q)}})});
return _.e(_.t,{cond:R,then:function(){return _.e("div",{class:"ytwYouChatChipsDataChipWrapper"},_.e("button",{el:E,class:"ytwYouChatChipsDataChip","data-disabled":k.disabled,"data-transparent-loading":h,"on:click":a,tabindex:0},N))}})},"Gm");var gWg=_.f(function(k){var E=k.data;var S=k.initiallyExpanded;var R=function(){var a;return(a=E().conversationResourceData)==null?void 0:a.learningGuideData};
k=_.n(_.IZ(function(){var a;return(a=S==null?void 0:S())!=null?a:!1}));
var V=k.next().value,N=k.next().value,h=function(){N(!0)},J=_.HX(function(){var a,T;
return(T=(a=R())==null?void 0:a.sections)!=null?T:[]},void 0,"aPRmH"),m=_.HX(function(){return J().length>4},void 0,"PUPDyc");
k=_.HX(function(){var a;return!V()&&m()&&(a=R())!=null&&a.expandButton?J().slice(0,4):J()},void 0,"wUz4Ud");
return _.e("yt-conversation-resource-view-model",{class:_.SQ("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.e(_.cp,{data:k},{expandableMetadataViewModel:_.oOa}),_.e(_.t,{cond:function(){return m()&&!V()},
then:function(){return _.e("div",{id:"showMoreButton"},_.e(_.cp,{data:function(){var a;return(a=R())==null?void 0:a.expandButton}},{buttonViewModel:function(a){return _.e(_.yB,{data:a.data,
onClick:h})}}))}}))},"Hm");var U2U=_.f(function(k){var E=function(){var L;return(L=k.data().text)==null?void 0:L.content},S=function(){var L,q;
return(L=k.data().webData)==null?void 0:(q=L.textResult)==null?void 0:q.content},R=_.en().resolve(_.$X),V=_.RE(),N=function(){return k.data().chatResponseStyle},h=function(){return!k.data().transparentBackground},J=function(){return k.data().rightAlignThumbs},m=function(){return k.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||k.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},a=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:m()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:k.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},T=function(){var L;
return k.data().webData||((L=k.data().text)==null?void 0:L.content)||k.data().videoResultsData||k.data().conversationResourceViewModel||k.data().quiz||k.data().richContent},w=function(){return!!k.data().sectionHeader||T()},P=function(){var L;
return(L=k.data().videoResultsData)==null?void 0:L.videoShelf},B=function(){var L;
return(L=k.data().webData)==null?void 0:L.sourcesShelf},F=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||N()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:k.data().thumbsDownViewModel&&k.data().thumbsUpViewModel},K=function(){return _.W(k.data().thumbsUpViewModel,_.QK)},r=function(){return _.W(k.data().thumbsDownViewModel,_.QK)};
_.vC(function(){requestAnimationFrame(function(){var L;(L=k.shouldAnimateIcon)!=null&&L.call(k)&&lCr(V.lottieEl)})});
var x={};return _.e("you-chat-item-view-model",{class:_.SQ("ytwYouChatItemViewModelYouChatItemViewModel",(x.ytwYouChatItemViewModelColumnLayout=function(){return m()},x)),
"data-target-id":function(){return k.data().id||""}},_.e(_.t,{cond:function(){return k.data().removeIcon?!1:w()},
then:function(){var L={};return _.e("div",{"aria-hidden":"true"},_.e(_.KG,{className:_.SQ("ytwYouChatItemViewModelIcon",(L.ytwYouChatItemViewModelRtl=R==="rtl",L.ytwYouChatItemViewModelHidden=function(){return!(k.data().hideIcon||N()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||N()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:w())},L)),
animationName:"YOUCHAT_ICON",data:a,animationRef:V}))}}),_.e(_.t,{cond:w,
then:function(){var L={};return _.e("div",{class:_.SQ("ytwYouChatItemViewModelHost",(L.ytwYouChatItemViewModelHostNoPadding=function(){return!!k.data().sectionHeader&&!T()},L.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},L.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},L.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return N()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
L.ytwYouChatItemViewModelGradientBackground=h,L)),
role:"alert"},_.e(_.t,{cond:E,then:function(q){return _.e(_.EC,{text:q,wrapCodeBlocks:!0})}}),_.e(_.cp,{data:function(){return k.data().sectionHeader}},{sectionHeaderViewModel:function(q){var M={};
return _.e(_.gI,{data:q.data,className:_.SQ("ytwYouChatItemViewModelSectionHeader",(M.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!k.data().sectionHeader&&!T()},M)),
forceSmallLayout:!0})}}),_.e(_.t,{cond:S,
then:function(q){return _.e(_.EC,{text:q,wrapCodeBlocks:!0})}}),_.e(_.t,{cond:P,
then:function(){return _.e("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.e(_.cp,{data:function(){var q;return(q=k.data().videoResultsData)==null?void 0:q.videoShelf}},{horizontalShelfViewModel:function(q){return _.e(_.CE,{data:q.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.e(_.t,{cond:B,
then:function(){return _.e("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.e(_.cp,{data:function(){var q;return(q=k.data().webData)==null?void 0:q.sourcesShelf}},{horizontalShelfViewModel:function(q){return _.e(_.CE,{data:q.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.e(_.cp,{data:function(){return k.data().conversationResourceViewModel}},{conversationResourceViewModel:gWg}),_.e(_.cp,{data:function(){return k.data().quiz}},{learningJourneyQuizViewModel:_.phj}),_.e(_.cp,{data:function(){return k.data().richContent}},{cardViewModel:_.gn0,
linearLayoutViewModel:_.Qy}),_.e(_.t,{cond:F,then:function(){return _.e(yRF,{thumbsUp:K,thumbsDown:r,rightAlignThumbs:J})}}))}}),_.e(_.t,{cond:function(){return k.data().chipsData},
then:function(L){return _.e(X0g,{data:L,disabled:k.pending,onError:k.onError})}}))},"Jm");
U2U.idomCompat={callbacks:{onError:!0,onSend:!0}};var HPB=_.f(function(k){var E=function(){return k.data().choiceSelectedText},S=function(){return k.data().hasGradientBackground},R={};
return _.e("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.e(_.t,{cond:E,then:function(){return _.e("div",{class:"ytYouChatUserTurnChoiceSelected"},_.e(_.VB,{text:E}))}}),_.e("div",{class:_.SQ("ytYouChatUserTurnUserMessage",(R.ytYouChatUserTurnGradientContainer=S,R.ytYouChatUserTurnDefaultContainer=function(){return!S()},R))},function(){return k.data().text}))},"Km");var KTU=_.f(function(k){var E=_.n((0,_.OkT)(k.data)).next().value;return _.e("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return k.data().targetId||""}},_.e(_.cp,{data:function(){return k.data().header}},{chipBarViewModel:_.qwj}),_.e(_.cp,{data:function(){return E().contents}},{accordionViewModel:_.xs8,
alertBannerViewModel:_.SLd,chatLoadingViewModel:_.OcG,chatUserTurnViewModel:HPB,feedbackPromptViewModel:FTg,gridShelfViewModel:function(S){return _.e(_.kw5,{data:S.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.Usd,linearLayoutViewModel:_.Qy,lockupViewModel:function(S){return _.e(_.y5,{data:S.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:k.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.gI,videoOverviewViewModel:_.dsd,youChatItemViewModel:function(S){return _.e(U2U,{data:S.data,pending:!1})}}))},"Lm");_.qi(_.f(function(k){var E=_.n((0,_.OkT)(k.data)).next().value,S=_.VH("yt-section-list-renderer"),R=_.n(_.yg(void 0,void 0,"boqAXd")),V=R.next().value,N=R.next().value,h=function(){var J;return _.W((J=k.data().sectionListLayoutConfiguration)==null?void 0:J.layoutConfiguration,C4X)};
_.b$(function(){var J,m=(J=S.value)==null?void 0:J.clientWidth;if(h()){J=h();var a=J.responsiveSize;m=m<528?"CONTAINER_SIZE_NARROW":m<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var T=_.n(J.responsiveMap||[]);for(var w=T.next();!w.done;w=T.next())if(w=w.value,w.containerSize===m){T=w.containerType;break b}T=void 0}if(T&&a){b:{if(T==="CONTAINER_TYPE_VERTICAL_LIST")if(a==="RESPONSIVE_SIZE_STANDARD"){if(m!=="CONTAINER_SIZE_NARROW"){w="50%";break b}}else{w=m==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}w=void 0}J={responsiveSize:a,containerSize:m,containerType:T,force16By9ThumbnailAspectRatio:!J.enableContentSpecificAspectRatio,contentPreviewWidth:w,fullbleed:(T==="CONTAINER_TYPE_VERTICAL_LIST"||T==="CONTAINER_TYPE_GRID")&&m==="CONTAINER_SIZE_NARROW"&&!1}}else J=void 0}else J=void 0;N(J)});
return _.e("yt-section-list-renderer",{class:_.SQ("ytSectionListRendererHost",k.className),el:S,"data-target-id":function(){return k.data().targetId||""}},_.e(_.cp,{data:function(){return E().contents}},{itemSectionRenderer:function(J){return _.e(KTU,{data:J.data,
containerLayoutConfig:V})}}))},"Mm"),"yt-section-list-renderer",{props:{data:_.Nq,
className:_.sk}});var p0B;var ARs;var rRJ=function(){return _.p.apply(this,arguments)||this};
_.y(rRJ,_.p);_.Z([_.H(),_.l("design:type",Object)],rRJ.prototype,"data",void 0);_.Z([_.U_({is:"yt-alert-renderer",disableElementRegistration:!0})],rRJ);
_.b(rRJ,"yt-alert-renderer",function(){if(ARs===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;p0B===void 0&&(p0B=document.createElement("template"));var R=p0B;S.call(E,R.content.cloneNode(!0),k.content.firstChild);ARs=k}k=ARs;return k},{mode:2});
}catch(e){_._DumpException(e)}
try{
var gf0;gf0=function(k,E,S,R){S||(k?R&&(R.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||R.WINDOW_SIZE_CHANGED&&(E.width!==window.innerWidth||E.height!==window.innerHeight)||R.SAFARI_ABORTED_BY_NEW_TRANSITION&&k instanceof DOMException&&k.name==="AbortError"&&k.message.includes("Old view transition aborted by new view transition"))||_.bM(k):_.bM(Error("tj")))};
_.Udt=function(k,E){E=E===void 0?{}:E;var S,R,V,N,h,J,m,a,T,w,P,B,F;return _.c(function(K){switch(K.nextAddress){case 1:S=E;R=S.shouldWrap===void 0?!0:S.shouldWrap;V=S.skipTransitionTimeoutMs===void 0?300:S.skipTransitionTimeoutMs;N=S.beforeTransition;h=S.afterTransition;if(!R||!document.startViewTransition||document.visibilityState==="hidden")return K.return(k());J={width:window.innerWidth,height:window.innerHeight};m=!1;(a=N)==null||a();_.F5(K,2);T=document.startViewTransition(k);w=setTimeout(function(){T.skipTransition();
m=!0},V);
return K.yield(T.ready,4);case 4:return clearTimeout(w),K.yield(T.finished,5);case 5:clearTimeout(w);(P=h)==null||P();_.Sv(K,0);break;case 2:B=_.UY(K),(F=h)==null||F(),gf0(B,J,m,E.ignoredErrors),_.KR(K)}})};
_.H2U=function(k,E,S){k.persistentPanelContainerMap.set(S,E)};
_.hW=function(){for(var k=Array(36),E=0,S,R=0;R<36;R++)R==8||R==13||R==18||R==23?k[R]="-":R==14?k[R]="4":(E<=2&&(E=33554432+Math.random()*16777216|0),S=E&15,E>>=4,k[R]=_.vqj[R==19?S&3|8:S]);return k.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 KE3=_.ry(['<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>']),
pv2=_.Wiz(KE3);pv2.setAttribute("style","display: none;");document.head.appendChild(pv2.content);_.JW=_.tvh(function(k){var E=_.g7("DIV");k&&(E.className=k);E.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";k=_.g7("DIV");_.BTj(k,"200px","200px");E.appendChild(k);document.body.appendChild(E);k=E.offsetWidth-E.clientWidth;_.Ua(E);return k});var ADt;var rD0;var c6=function(){var k=_.p.apply(this,arguments)||this;k.icon=null;return k};
_.y(c6,_.p);c6.prototype.dismiss=function(){_.Me(this.hostElement,"yt-live-chat-error-message-dismiss")};
c6.prototype.computeIcon=function(k){return k&&k.iconType?"yt-icons:"+k.iconType.toLowerCase():"yt-icons:close"};
_.Z([_.H(),_.l("design:type",Object)],c6.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon(data.icon)"}),_.l("design:type",Object)],c6.prototype,"icon",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],c6);
_.b(c6,"yt-live-chat-error-message-renderer",function(){if(rD0===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;ADt===void 0&&(ADt=document.createElement("template"));var R=ADt;S.call(E,R.content.cloneNode(!0),k.content.firstChild);rD0=k}k=rD0;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Sms,RwU,V$N,Nts,hwX,mno,ewg,aKr,t$B,TtJ,wXs,f8,PIS,BtU,YmS,WhU,FhU,yNr,oOu,XXo,gOS,Uno,Ho$,KhJ,pXk,ANS,rNu,uFJ,xnN,Lhg,jeu,Dns,$nB,fKU,vOJ,boo,Zoo,lKk,qmN,QeU,OoS,GLg,CIU,dn$,seF,S4S,Rug,Vws,N0$,I_X,kaJ,iVJ;Sms=function(k,E){return _.Ep(k.entities,"liveReactionsDataEntity",E)};
RwU=function(k,E){k=_.Ep(k.entities,"booleanEntity",E);return!(!k||!k.value)};
V$N=function(k,E){var S=_.Fe();S&&k&&_.rq(S,_.tV(k),E)};
Nts=function(k,E){return _.Ep(k.entities,"timedMarkersListSyncEntity",E)};
_.IKJ=function(k){return k.watch.isWatchActive};
_.nOs=function(k){return _.yQ(k)||_.oZ(k)||_.n3b(k)};
_.ios=function(k){return!_.nOs(k)};
_.$w=function(k){return k.watch.watchScrollTop};
hwX=function(k){return k.watch.isLiveChatCollapsed};
_.JNu=function(){_.Y("web_watch_log_theater_mode")&&_.gSj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.cNB=function(k,E,S){if(!k.includes("START_TIME_PLACEHOLDER")||!k.includes("END_TIME_PLACEHOLDER"))return k;var R=new Date(0),V=new Date(0);R.setUTCMilliseconds(E);V.setUTCMilliseconds(S);return k.replace("START_TIME_PLACEHOLDER",_.xn(R,7)).replace("END_TIME_PLACEHOLDER",_.xn(V,7))};
mno=function(k,E){return _.Ep(k.entities,"booleanEntity",E)};
ewg=function(){return function(k){_.bl(_.mj("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:k}))}};
aKr=function(k){switch(k){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}};
t$B=function(k,E,S){var R=_.Uk(S);k&&E&&R&&k.getPlayerPromise().then(function(V){_.rd1(R)&&_.vv();(new _.vW(V)).executeCommand(R,E);_.Y("continue_playback_on_desktop_companion_click")||V.pauseVideo()})};
TtJ=function(k){var E=_.s3(),S;if(S=_.CV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;S=(R=S())==null?void 0:R.layoutId}else S=null;t$B(E,S,k)};
wXs=function(k){var E=_.s3(),S;if(S=_.CV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;S=(R=S())==null?void 0:R.layoutId}else S=null;t$B(E,S,k)};
f8=function(k,E){var S=k<0?"-":"";k=Math.abs(k);var R=Math.floor(k/3600),V=Math.floor(k)%3600,N=Math.floor(V/60);V=Math.floor(V)%60;var h="";(E===void 0?0:E)&&(h="."+Math.round((k-Math.floor(k))*10));return R>0?S+R+":"+(N<10?"0"+N:""+N)+":"+(V<10?"0"+V:""+V)+h:S+N+":"+(V<10?"0"+V:""+V)+h};
PIS=function(k){var E=k.match(/[^0-9:\.]/g);if(E&&E.length>0)return null;k=k.split(":");if(k.length===0||k.length>3)return null;E=1;for(var S=0;k.length>0;){var R=k.pop();if(R===void 0)break;var V=Number(R);if(R===""||isNaN(V))return null;S+=V*E;E*=60}return S};
BtU=function(k,E,S,R){k=Math.max(S,k);E=Math.min(E,R-S);k+E>R?(S=R,k=S-E):S=k+E;return{start:k,end:S}};
YmS=function(k,E,S,R,V,N){k<S?k=S:k+V>R&&(k=R-V);E>R&&(E=R);E=Math.min(k+N,Math.max(k+V,E));return{start:k,end:E}};
WhU=function(k,E,S,R,V,N){E>R?E=R:E-V<S&&(E=S+V);k<S&&(k=S);k=Math.min(E-V,Math.max(E-N,k));return{start:k,end:E}};
FhU=function(k){return _.Y("web_transcript_cue_id_killswitch")?String(k):"ytd-transcript-renderer_"+k};
yNr=function(k){return _.Y("web_transcript_cue_id_killswitch")?!0:k.startsWith("ytd-transcript-renderer")};
oOu=function(k){var E=_.s3(),S;if(S=_.CV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var R;S=(R=S())==null?void 0:R.layoutId}else S=null;t$B(E,S,k)};
XXo=function(k){k.style.height="auto";k.style.height=Math.min(k.scrollHeight||20,80)+"px"};
gOS=function(k,E,S){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:E,hasGradientBackground:S}}],insertByPositionInSection:{sectionTargetId:k,position:"INSERTION_POSITION_LAST"}}}]}}}};
Uno=function(k){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:k}}]}}}};
Ho$=function(){var k;return String(Math.floor(((k=_.Sq())==null?void 0:k.getCurrentTime())||0)*1E3)};
KhJ=function(k){var E=_.s3(),S;S=(S=_.CV("yt.www.ads.eventcache.getLastCompanionData"))?(S=S())&&S.layoutId:null;t$B(E,S,k)};
pXk=function(k){var E=_.s3(),S;S=(S=_.CV("yt.www.ads.eventcache.getLastCompanionData"))?(S=S())&&S.layoutId:null;t$B(E,S,k)};
ANS=function(k){if(k.simpleText)return[{text:k.simpleText}];var E;return(E=k.runs)!=null?E:[]};
rNu=function(k){var E=k.startEndTimeTemplate,S=k.startTimeUtcMillis;k=k.endTimeUtcMillis;if(E&&S&&k)return _.DE(_.cNB(_.$n(E),Number(S),Number(k)))};
uFJ=function(k,E){var S,R,V=k==null?void 0:(S=k.viewCount)==null?void 0:(R=S.videoViewCountRenderer)==null?void 0:R.shortViewCount;if(!E&&V)return V;var N,h;return k==null?void 0:(N=k.viewCount)==null?void 0:(h=N.videoViewCountRenderer)==null?void 0:h.viewCount};
xnN=function(k,E){var S=k==null?void 0:k.relativeDateText;return!E&&S?[S,!0]:[k==null?void 0:k.dateText,!1]};
Lhg=function(k,E,S,R,V){R=R===void 0?"":R;V=V===void 0?!1:V;var N=uFJ(k,E),h=_.n(xnN(k,E)),J=h.next().value;h=h.next().value;E=E?k==null?void 0:k.sponsorsOnlyFirstTimeLongText:k==null?void 0:k.sponsorsOnlyFirstTimeShortText;var m=[];S&&N&&m.push(N);!S&&h||!J||m.push(J);k=[V?k==null?void 0:k.subtitle:void 0].concat(_.$e(m),[E,k==null?void 0:k.stationName,k==null?void 0:k.rating,k?rNu(k):void 0,k==null?void 0:k.upNextProgramText,k==null?void 0:k.superTitleLink]).filter(function(a){return!!a});
S={runs:[]};for(V=0;V<k.length;V++)S.runs.push.apply(S.runs,_.$e(ANS(k[V]))),V<k.length-1&&S.runs.push({text:" "+R+" "});return S};
jeu=function(k){return k.filter(function(E){return!_.W(E,_.j_)})};
Dns=function(k){var E,S,R,V;if(k=k==null?void 0:(E=k.contents)==null?void 0:(S=E.twoColumnWatchNextResults)==null?void 0:(R=S.results)==null?void 0:(V=R.results)==null?void 0:V.contents){var N,h;return(h=(N=k.find(function(J){return!!J.videoPrimaryInfoRenderer}))==null?void 0:N.videoPrimaryInfoRenderer)==null?void 0:h.updatedMetadataEndpoint}};
$nB=function(k,E){var S;return(S=k.sourceConfigs)==null?void 0:S.find(function(R){return R.videoId===E})};
fKU=function(k){return k==="End of video"||k==="End of playlist"};
vOJ=function(k){var E,S,R,V;return(E=k.getWatchNextResponse())==null?void 0:(S=E.contents)==null?void 0:(R=S.twoColumnWatchNextResults)==null?void 0:(V=R.playlist)==null?void 0:V.playlist};
boo=function(k){var E,S,R,V,N,h;return(E=vOJ(k))==null?void 0:(S=E.playlistButtons)==null?void 0:(R=S.menuRenderer)==null?void 0:(V=R.topLevelButtons)==null?void 0:(N=V[0])==null?void 0:(h=N.playlistLoopButtonRenderer)==null?void 0:h.playlistLoopStateEntityKey};
Zoo=function(k){var E=_.en().resolve(_.z7),S;return(E=(S=_.W(E.getAutoplayEndpoint(),_.jm))==null?void 0:S.playlistId)&&E===k};
lKk=function(k,E,S,R,V){function N(){_.ZJ.cancelJob(v4);var h=dn$(E,S/k.getPlaybackRate()),J=h.hours,m=h.minutes;h=(h.seconds*1E3||6E4)/k.getPlaybackRate();k.setVideoTimeLeft(seF(J,m));R&&k.getPlayerState()!==0&&k.setSleepTimerTimeLeft(seF(J,m,!0));(J>0||m>0)&&!V&&(v4=_.aE(_.ZJ,N,h))}
_.ZJ.cancelJob(v4);v4=_.aE(_.ZJ,N)};
qmN=function(k,E,S){function R(){_.ZJ.cancelJob(M$U);var V=dn$(E,S),N=V.hours;V=V.minutes;var h=6E4/k.getPlaybackRate();if(N>0||V>0)k.setSleepTimerTimeLeft(seF(N,V,!0)),M$U=_.aE(_.ZJ,R,h)}
_.ZJ.cancelJob(M$U);M$U=_.aE(_.ZJ,R)};
QeU=function(k,E){var S=k.getVolume()/(E/500),R=function(V){_.ZJ.cancelJob(zws);var N=Math.floor(V-S);k.setVolume(N,!1);N>0&&(zws=_.aE(_.ZJ,function(){R(N)},500))};
_.ZJ.cancelJob(zws);zws=_.aE(_.ZJ,function(){R(k.getVolume())})};
OoS=function(k,E){_.ZJ.cancelJob(zws);E&&k.syncVolume()};
GLg=function(){var k={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Vi("SLEEP_TIMER_DISRUPTED")}}}}};_.en().resolve(_.t3).resolveCommand(k)};
CIU=function(k){return(k.getDuration()-k.getProgressState().current)*1E3};
dn$=function(k,E){k=k+E-(0,_.ev)();if(k<=0)return{hours:0,minutes:0,seconds:0};var S=new kaJ(0,0,0,0,0,0,k);k=S.getHours();E=S.getMinutes();S=S.getSeconds();S!==0&&E++;E!==0&&E%60===0&&(k++,E=0);return{hours:k,minutes:E,seconds:S}};
seF=function(k,E,S){return k>0&&E>0?S?_.Vi("TIME_LEFT_HOURS_MINUTES",{hours:k.toString(),minutes:E.toString()}):_.Vi("TIME_HOURS_MINUTES",{hours:k.toString(),minutes:E.toString()}):k>0?S?_.Na("TIME_LEFT_HOURS",k):_.Na("TIME_HOURS",k):S?_.Vi("TIME_LEFT_MINUTES",{minutes:E.toString()}):_.Vi("TIME_MINUTES",{minutes:E.toString()})};
S4S=function(k,E){if(k.timelyActions)return k.timelyActions.find(function(S){var R;return((R=_.W(S,Ekg))==null?void 0:R.cueRangeId)===E})};
Rug=function(k){var E=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Nw(k);k.keyMap_.forEach(function(S,R){_.bC(E,R)||this.remove(R)},k)};
Vws=function(k,E){k.reloadContinuationItemsCommandMatcher=E};
_.bV=function(k,E){k.insertBefore(E,k.childNodes[0]||null)};
N0$=function(k){if(k>=48&&k<=57||k>=96&&k<=106||k>=65&&k<=90||_.Qb&&k==0)return!0;switch(k){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 _.ze;default:return!1}};
I_X=function(k){if(k.altKey&&!k.ctrlKey||k.metaKey||k.keyCode>=112&&k.keyCode<=123)return!1;if(N0$(k.keyCode))return!0;switch(k.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!_.ze;default:return k.keyCode<166||k.keyCode>183}};
kaJ=function(k,E,S,R,V,N,h){this.date=typeof k==="number"?new Date(k,E||0,S||1,R||0,V||0,N||0,h||0):new Date(k&&k.getTime?k.getTime():_.ZO())};
_.dy(kaJ,_.WD);_.I=kaJ.prototype;_.I.getHours=function(){return this.date.getHours()};
_.I.getMinutes=function(){return this.date.getMinutes()};
_.I.getSeconds=function(){return this.date.getSeconds()};
_.I.getMilliseconds=function(){return this.date.getMilliseconds()};
_.I.getUTCDay=function(){return this.date.getUTCDay()};
_.I.getUTCHours=function(){return this.date.getUTCHours()};
_.I.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.I.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.I.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.I.setHours=function(k){this.date.setHours(k)};
_.I.setMinutes=function(k){this.date.setMinutes(k)};
_.I.setSeconds=function(k){this.date.setSeconds(k)};
_.I.setMilliseconds=function(k){this.date.setMilliseconds(k)};
_.I.setUTCHours=function(k){this.date.setUTCHours(k)};
_.I.setUTCMinutes=function(k){this.date.setUTCMinutes(k)};
_.I.setUTCSeconds=function(k){this.date.setUTCSeconds(k)};
_.I.setUTCMilliseconds=function(k){this.date.setUTCMilliseconds(k)};
_.I.add=function(k){_.WD.prototype.add.call(this,k);k.hours&&this.setUTCHours(this.date.getUTCHours()+k.hours);k.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+k.minutes);k.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+k.seconds)};
_.I.JSC$11326_toIsoString=function(k){var E=_.WD.prototype.JSC$11326_toIsoString.call(this,k);return k?E+"T"+_.Gn(this.getHours(),2)+":"+_.Gn(this.getMinutes(),2)+":"+_.Gn(this.getSeconds(),2):E+"T"+_.Gn(this.getHours(),2)+_.Gn(this.getMinutes(),2)+_.Gn(this.getSeconds(),2)};
_.I.equals=function(k){return this.getTime()==k.getTime()};
_.I.toString=function(){return this.JSC$11326_toIsoString()};
_.I.clone=function(){var k=new kaJ(this.date);k.firstDayOfWeek_=this.firstDayOfWeek_;k.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return k};
_.nkk=function(k){return _.zX({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:k}})};
iVJ=new _.z_("imageTileRenderer");var huX=new _.z_("adGridCardCollectionViewModel");var JjJ=new _.z_("carouselTitleViewModel");var cju=new _.z_("ctaCarouselItemViewModel");var mgo=new _.z_("textFieldViewModel");_.euJ=new _.z_("engagementPanelHeaderShowNavigationButtonCommand");var a_N=new _.z_("hideEngagementPanelScrimAction");var tws=new _.z_("setActivePanelItemAction");var T0r=new _.z_("showEngagementPanelScrimAction");var wCJ=new _.z_("updateEngagementPanelAction");var P$S=new _.z_("updateSearchInVideoResultsAction");var B0N=new _.z_("transcriptCueGroupRenderer");var Y4S=new _.z_("transcriptCueRenderer");var WNr=new _.z_("transcriptFooterRenderer");var FNu=new _.z_("engagementPanelAdSubtitleRenderer");var yjN=new _.z_("videoDescriptionFantasySectionViewModel");var okJ=new _.z_("deleteClipEngagementPanelCommand");var XC$=new _.z_("loopCommand");var gks=new _.z_("changeCreatorEndscreenVisibilityCommand");var UgJ=new _.z_("liveChatCallForQuestionsRenderer");var HVu=new _.z_("updateTimedMarkersSyncObserverCommand");var Ekg=new _.z_("timelyActionViewModel");var KNg=new _.z_("timelyActionsOverlayViewModel");var pCB=new _.z_("repeatChapterCommand");var Ajs=new _.z_("watchPlayerOverflowMenuCommand");var rjN=new _.z_("compositeVideoOverlayRenderer");var u4B=new _.z_("sortFilterSubMenuRenderer");var xgU=new _.z_("switchListItemViewModel");var LNS=new _.z_("inputComposerViewModel");var j2U=new _.z_("transcriptEditSegmentCommand");var DgS=new _.z_("transcriptUpdateSegmentTextCommand");var $gS=new _.z_("transcriptSearchBoxRenderer");var f_u=new _.z_("transcriptSegmentListRenderer");var vkX=new _.z_("transcriptSegmentRenderer");_.bVU=new _.z_("updateDateTextAction");var ZVJ=new _.z_("updateTitleAction");var dgX=new _.z_("updateViewershipAction");var s2X=new _.z_("carouselLockupRenderer");var Z1=new _.z_("expandableVideoDescriptionBodyRenderer");var l_U=new _.z_("videoDescriptionHeaderRenderer");var Mwo=new _.z_("videoDescriptionYouchatSectionViewModel");_.dL=_.wO("kevlar_watch_page_horizontal_margin",24);_.q4k=_.wO("kevlar_watch_page_columns_top_padding",24);_.zuu=426+_.dL*2;_.sd=_.wO("kevlar_watch_two_column_width_threshold",1E3);_.Q2J=_.dL*2;_.OVu=_.wO("kevlar_watch_secondary_width",402);_.Gar=_.wO("kevlar_watch_max_player_width",1280);_.C$X=_.wO("kevlar_watch_flexy_metadata_height",136);_.kVo=_.Q2J+310+_.dL;_.ErJ=_.Q2J+360+_.dL;var SgJ={PAUSE_CHAT:18};var RIs;var VnU;var lV=function(){return _.p.apply(this,arguments)||this};
_.y(lV,_.p);lV.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
lV.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var k=_.W(this.data.button,_.qz);k&&(k.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.mt.Object.defineProperties(lV,{template:{configurable:!0,enumerable:!0,get:function(){if(VnU===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;RIs===void 0&&(RIs=document.createElement("template"));var R=RIs;S.call(E,R.content.cloneNode(!0),k.content.firstChild);VnU=k}k=VnU;return k}}});
_.Z([_.g(_.zM),_.l("design:type",Object)],lV.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H({selectorArgs:["data.enabledEntityKey"],selector:RwU,observer:"onEnabledChange"}),_.l("design:type",Boolean)],lV.prototype,"enabled",void 0);_.Z([_.H(),_.l("design:type",Object)],lV.prototype,"data",void 0);_.Z([_.U_({is:"yt-disableable-button-view-model",noInjection:!0})],lV);var NOJ;var InS;var nrS=["transVert01","transVert02","transVert03"],iCk="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),M$=function(){var k=_.p.apply(this,arguments)||this;k.emojiManager=_.kP;k.isDarkTheme=document.documentElement.hasAttribute("dark");k.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};k.reactionBuckets=[];k.noEmojiIdentifier="NO_EMOJI";return k};
_.y(M$,_.p);_.I=M$.prototype;_.I.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.I.desktopFountainEmojiSizePxChanged=function(){_.VO(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.I.createUserReactionAnimation=function(k){this.createEmojiAnimation(k,!0)};
_.I.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var k;((k=this.data)==null?0:k.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.mj("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.$e(this.emojiContainer.children)).forEach(function(E){E.remove()})};
_.I.detached=function(){this.cleanupFountain()};
_.I.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var k;this.reactionBuckets=_.fO.unsafeClone((k=this.emojiFountainData)==null?void 0:k.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.I.processEmojiBucket=function(k){var E=this;if(this.reactionBuckets&&!(k>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var S=this.reactionBuckets[k];this.generateEmojiAnimations(S);if(k<this.reactionBuckets.length-1){var R;if(S==null?0:(R=S.duration)==null?0:R.seconds)this.emojiBucketTimerId=setTimeout(function(){E.processEmojiBucket(k+1)},Number(S.duration.seconds)*1E3)}}};
_.I.generateEmojiAnimations=function(k){var E=this,S=this.getRandomEmojiIdFromBucketWithOverride(k);if(S&&S!==this.noEmojiIdentifier){var R=0;k.targetEps?(R=this.linearInterpolateBounded(1,20,100,12,k.emojiSizeIndex||0),this.createEmojiAnimation(S,!1,k.emojiAnimationMs,R),R=this.getEmojiDelayMsFromTargetEps(k.targetEps)):(this.createEmojiAnimation(S),R=this.getEmojiDelayMsFromDistribution(k.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){E.generateEmojiAnimations(k)},R)}};
_.I.getRandomEmojiIdFromBucketWithOverride=function(k){if(!(k&&k.reactionsData&&k.reactionsData.length&&k.totalReactions))return this.noEmojiIdentifier;for(var E=k.totalReactions,S=1,R=_.n(k.reactionsData),V=R.next();!V.done;V=R.next())V=V.value,(V.reactionWeightOverride||V.reactionWeightOverride===0)&&V.reactionCount&&(E-=V.reactionCount,S-=V.reactionWeightOverride);R=!0;S<0&&(R=!1,E=k.totalReactions,S=1);if(R&&S>0&&E===0)if(S===1){V=0;for(var N=_.n(k.reactionsData),h=N.next();!h.done;h=N.next())h=
h.value,h.reactionCount&&h.reactionCount>0&&V++;V=1/V;N=_.n(k.reactionsData);for(h=N.next();!h.done;h=N.next())h.value.reactionWeightOverride=V}else for(V=1/(1-S),N=_.n(k.reactionsData),h=N.next();!h.done;h=N.next())h=h.value,h.reactionWeightOverride&&(h.reactionWeightOverride*=V);V=Math.random();N=0;h=_.n(k.reactionsData);for(var J=h.next();!J.done;J=h.next())if(J=J.value,J.reactionCount&&(N=(J.reactionWeightOverride||J.reactionWeightOverride===0)&&R?N+J.reactionWeightOverride:N+S*J.reactionCount/
E,N>V&&(J.reactionCount--,k.totalReactions--,J=this.reactionItemToEmojiString(J),J!==this.noEmojiIdentifier)))return J;return this.noEmojiIdentifier};
_.I.reactionItemToEmojiString=function(k){if(k.unicodeEmojiId)return k.unicodeEmojiId;if(k.emoteId)return k.emoteId;if(k.videoReactionType)switch(k.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.I.createEmojiAnimation=function(k,E,S,R){E=E===void 0?!1:E;this.lastEmojiRequestedForTesting=k;var V=k.startsWith("yt-icons:"),N=_.Gi(this.emojiManager,k);if(N||V){var h=document.createElement("emoji");h.classList.add("yt-emoji-fountain-view-model");h.classList.add(nrS[Math.floor(Math.random()*nrS.length)]);var J=document.createElement("div");J.classList.add("yt-emoji-fountain-view-model");J.classList.add("horizontal-container");J.classList.add(iCk[Math.floor(Math.random()*iCk.length)]);E?(S=document.createElement("div"),
S.classList.add("user-reaction-bubble"),S.classList.add("yt-emoji-fountain-view-model"),J.appendChild(S)):(S&&(h.style.animationDuration=S+"ms",J.style.animationDuration=S+"ms"),R&&(h.style.width=R+"px",h.style.height=R+"px"));V?(V=document.createElement("yt-icon"),V.polymerController.icon=k,R&&(V.style.width=R+"px",V.style.height=R+"px"),k=V):k=this.emojiManager.createEmoji(N,!1);k.classList.add("yt-emoji-fountain-view-model");J.appendChild(k);h.appendChild(J);this.emojiContainer.appendChild(h);
h.addEventListener("animationend",function(){h.remove()});
var m,a;if((m=this.data)==null?0:(a=m.loggingDirectives)==null?0:a.trackingParams)E=E?_.kh(183501):_.kh(183500),V$N(this.data.loggingDirectives.trackingParams,E),_.cAh(E);setTimeout(function(){h&&h.remove()},2E3)}};
_.I.getEmojiDelayMsFromDistribution=function(k){return Math.random()*(k||1)*1E3};
_.I.getEmojiDelayMsFromTargetEps=function(k){return Math.random()*2*(1/k)*1E3};
_.I.linearInterpolateBounded=function(k,E,S,R,V){V=Math.min(Math.max(V,k),S);return(E*(S-V)+R*(V-k))/(S-k)};
M$.prototype.onEmojiFountainDataEntityUpdate=M$.prototype.onEmojiFountainDataEntityUpdate;M$.prototype.desktopFountainEmojiSizePxChanged=M$.prototype.desktopFountainEmojiSizePxChanged;M$.prototype.isActiveChanged=M$.prototype.isActiveChanged;_.Z([_.H(),_.l("design:type",_.ON)],M$.prototype,"emojiManager",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],M$.prototype,"ytLiveChatReduxBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],M$.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],M$.prototype,"data",void 0);_.Z([_.H({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(k,E){return _.Ep(k.entities,"emojiFountainDataEntity",E)}}),
_.l("design:type",Object)],M$.prototype,"emojiFountainData",void 0);_.Z([_.H(),_.l("design:type",Boolean)],M$.prototype,"isActive",void 0);_.Z([_.il("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],M$.prototype,"isActiveChanged",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],M$.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",String)],M$.prototype,"lastEmojiRequestedForTesting",void 0);
_.Z([_.H({value:function(){return _.wO("desktop_fountain_emoji_size_px",20)}}),
_.l("design:type",Number)],M$.prototype,"desktopFountainEmojiSizePx",void 0);_.Z([_.il("desktopFountainEmojiSizePx"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],M$.prototype,"desktopFountainEmojiSizePxChanged",null);_.Z([_.JO("#emoji-container"),_.l("design:type",HTMLElement)],M$.prototype,"emojiContainer",void 0);
_.Z([_.il("emojiFountainData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],M$.prototype,"onEmojiFountainDataEntityUpdate",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],M$);
_.b(M$,"yt-emoji-fountain-view-model",function(){if(InS===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;NOJ===void 0&&(NOJ=document.createElement("template"));var R=NOJ;S.call(E,R.content.cloneNode(!0),k.content.firstChild);InS=k}k=InS;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var hIu;var J3J;var q$=function(){return _.p.apply(this,arguments)||this};
_.y(q$,_.p);q$.prototype.onChoiceChanged=function(){this.data&&_.VO(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
q$.prototype.onChoiceChanged=q$.prototype.onChoiceChanged;_.Z([_.H(),_.l("design:type",Object)],q$.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],q$.prototype,"onChoiceChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],q$);
_.b(q$,"yt-live-chat-banner-poll-choice",function(){if(J3J===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;hIu===void 0&&(hIu=document.createElement("template"));var R=hIu;S.call(E,R.content.cloneNode(!0),k.content.firstChild);J3J=k}k=J3J;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var c3o;var m3X;var z0=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("web_button_rework_with_live");k.small=!1;return k};
_.y(z0,_.p);z0.prototype.computeIsSmall=function(){var k;return((k=this.buttonOverrides)==null?void 0:k.size)==="S"};
z0.prototype.computeId=function(){return this.data&&this.data.targetId};
_.Z([_.g(_.QW.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],z0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Z([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",String)],z0.prototype,"id",void 0);_.Z([_.H(),_.l("design:type",Object)],z0.prototype,"buttonOverrides",void 0);_.Z([_.H(),_.l("design:type",Object)],z0.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z0.prototype,"modern",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.l("design:type",Object)],z0.prototype,"small",void 0);_.Z([_.D({disableElementRegistration:!0,is:"yt-live-chat-button"})],z0);
_.b(z0,"yt-live-chat-button",function(){if(m3X===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;c3o===void 0&&(c3o=document.createElement("template"));var R=c3o;S.call(E,R.content.cloneNode(!0),k.content.firstChild);m3X=k}k=m3X;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var eIg;var anU;var Qm=function(){var k=_.p.apply(this,arguments)||this;k.inCollapsedBanner=!1;k.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};k.questionButtonOverrides={style:"mono",type:"filled"};return k};
_.y(Qm,_.p);_.I=Qm.prototype;_.I.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]]"}}}}}};
_.I.onContextMenuButtonClick=function(k){this.ytLiveChatItemBehavior.showContextMenu(k)};
_.I.onYtRendererstamperFinished=function(){this.menuButton=_.Cc(this.hostElement).querySelector("#menu-button")};
_.I.dataChanged=function(){var k,E;if((E=_.W((k=this.data)==null?void 0:k.overflowMenuButton,_.dZ))==null?0:E.command)this.data.contextMenuEndpoint=_.W(this.data.overflowMenuButton,_.dZ).command};
_.I.onButtonClick=function(){var k,E=_.W((k=this.data)==null?void 0:k.askQuestionButton,_.dZ);if(E){if(E.trackingParams&&(k=_.tV(E.trackingParams))){var S=_.Fe();S&&_.Dv(S,k)}_.Me(this.hostElement,"innertube-command",E.command)}};
Qm.prototype.onYtRendererstamperFinished=Qm.prototype.onYtRendererstamperFinished;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],Qm.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],Qm.prototype,"ytLiveChatItemBehavior",void 0);_.Z([_.H({observer:"dataChanged"}),_.l("design:type",Object)],Qm.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Qm.prototype,"inCollapsedBanner",void 0);_.Z([_.H(),_.l("design:type",Object)],Qm.prototype,"buttonOverrides",void 0);_.Z([_.H(),_.l("design:type",Object)],Qm.prototype,"questionButtonOverrides",void 0);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qm.prototype,"onYtRendererstamperFinished",null);
_.Z([_.D({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Qm);
_.b(Qm,"yt-live-chat-call-for-questions-renderer",function(){if(anU===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;eIg===void 0&&(eIg=document.createElement("template"));var R=eIg;S.call(E,R.content.cloneNode(!0),k.content.firstChild);anU=k}k=anU;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var tnk={};tnk.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 k=this;window.requestAnimationFrame(function(){k.restoreFocusNode_||(k.restoreFocusNode_=document.activeElement);var E=_.Y82(k.hostElement);E.length&&E[E.length-1].focus()})},
isAttachedChanged_:function(k,E){k?this.focusChild_():E&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(k){this.hidden||_.vT(k).indexOf(this.hostElement)!==-1||(k.stopPropagation(),this.focusChild_())}};var TOX;var w_s;var Od=function(){return _.p.apply(this,arguments)||this};
_.y(Od,_.p);Od.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Od.prototype.onClick=function(k){k.target!==this.confirmButton&&k.target!==this.cancelButton&&(this.hidden=!0)};
_.Z([_.JO("#confirm_button"),_.l("design:type",Object)],Od.prototype,"confirmButton",void 0);_.Z([_.JO("#cancel_button"),_.l("design:type",Object)],Od.prototype,"cancelButton",void 0);_.Z([_.H(),_.l("design:type",PJs)],Od.prototype,"data",void 0);_.Z([_.H({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],Od.prototype,"hidden",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(tnk.YtLiveChatDialogBehavior),_.l("design:type",Object)],Od.prototype,"ytLiveChatDialogBehavior",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Od);
var PJs=_.b(Od,"yt-live-chat-dialog-renderer",function(){if(w_s===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;TOX===void 0&&(TOX=document.createElement("template"));var R=TOX;S.call(E,R.content.cloneNode(!0),k.content.firstChild);w_s=k}k=w_s;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var BOk;var YgN,WzB=function(){if(YgN!==void 0)return YgN;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;BOk===void 0&&(BOk=document.createElement("template"));var R=BOk;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return YgN=k};var Fzk;var y3k;var G0=function(){var k=_.p.apply(this,arguments)||this;k.tooltip=null;k.data=null;k.id="";k.active=!1;k.icon="";k.disabled=!1;k.showTooltip=!1;k.useToggledActiveState=!0;k.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return k};
_.y(G0,_.p);_.I=G0.prototype;
_.I.dataChanged=function(){var k;((k=this.data)==null?0:k.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,_.Rc)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var E;if((E=this.data)==null?0:E.disabled)this.disabled=!0};
_.I.computeId=function(k){return k};
_.I.computeIcon=function(k,E){if(!k)return"";if(this.useToggledActiveState)return"yt-icons:"+k.toLowerCase();var S,R;return E&&((S=this.data)==null?0:(R=S.toggledIcon)==null?0:R.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+k.toLowerCase()};
_.I.logPDGEntryPoint=function(){_.kQj(_.Ex("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")};
_.I.immediatelyShowTooltip=function(){var k=_.Cc(this.hostElement).querySelector("#tooltip");k.animationDelay=0;k.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};k.show()};
_.I.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.I.onClick=function(k){var E;((E=this.data)==null?0:E.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(),k.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Me(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.I.computeShowTooltip=function(k,E){return!!(k&&k.tooltip&&E)};
_.I.maybeUpdateTooltipText=function(){var k=this,E;if((E=this.data)==null?0:E.tooltip){var S=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Rc)(k.tooltip).textContent=S},250)}};
_.I.handleLiveChatActions=function(k){var E=this;k.length&&(this.id!=="creator"&&this.id!=="product-picker"||k.forEach(function(S){(S=E.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",S))&&S.durationSec===S.fullDurationSec&&E.startBubble(E.colorFromDecimal(S.startBackgroundColor))}))};
_.I.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.I.startBubble=function(k){_.VO(this.hostElement,{"--yt-live-chat-monetization-button-glow":k});this.hostElement.setAttribute("bubble","")};
_.I.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.I.colorFromDecimal=function(k){typeof k==="string"&&(k=Number(k));return"rgba("+[k>>16&255,k>>8&255,k&255,(k>>24&255)/255].join()+")"};
G0.prototype.onAnimationEnd=G0.prototype.onAnimationEnd;G0.prototype.disabledChanged=G0.prototype.disabledChanged;G0.prototype.dataChanged=G0.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],G0.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.QW.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],G0.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],G0.prototype,"data",void 0);_.Z([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",Object)],G0.prototype,"id",void 0);_.Z([_.H({notify:!0,reflectToAttribute:!0}),_.l("design:type",Object)],G0.prototype,"active",void 0);
_.Z([_.H({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.l("design:type",Object)],G0.prototype,"icon",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],G0.prototype,"disabled",void 0);_.Z([_.H({computed:"computeShowTooltip(data, disabled)"}),_.l("design:type",Object)],G0.prototype,"showTooltip",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],G0.prototype,"useToggledActiveState",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],G0.prototype,"dataChanged",null);_.Z([_.il("disabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],G0.prototype,"disabledChanged",null);_.Z([_.nv("animationend"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],G0.prototype,"onAnimationEnd",null);
_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],G0);
_.b(G0,"yt-live-chat-icon-toggle-button-renderer",function(){if(y3k===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Fzk===void 0&&(Fzk=document.createElement("template"));var R=Fzk;S.call(E,R.content.cloneNode(!0),k.content.firstChild);y3k=k}k=y3k;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var ork;var X_$;var C8=function(){return _.p.apply(this,arguments)||this};
_.y(C8,_.p);C8.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.Z([_.H(),_.l("design:type",Object)],C8.prototype,"data",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],C8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.D({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],C8);
_.b(C8,"yt-live-chat-message-input-prompt-header-renderer",function(){if(X_$===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;ork===void 0&&(ork=document.createElement("template"));var R=ork;S.call(E,R.content.cloneNode(!0),k.content.firstChild);X_$=k}k=X_$;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var grS;var U3g;var HCJ;var KzS;var p_k;var A3N;var r3U=function(){return _.p.apply(this,arguments)||this};
_.y(r3U,_.p);_.Z([_.H(),_.l("design:type",Object)],r3U.prototype,"data",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],r3U);
_.b(r3U,"yt-live-chat-message-subtext-renderer",function(){if(A3N===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;p_k===void 0&&(p_k=document.createElement("template"));var R=p_k;S.call(E,R.content.cloneNode(!0),k.content.firstChild);A3N=k}k=A3N;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var kI=function(){var k=_.p.apply(this,arguments)||this;k.subtextOnBottom=!1;k.buttonOverrides={style:"mono",type:"tonal"};return k};
_.y(kI,_.p);kI.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],kI.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],kI.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],kI.prototype,"subtextOnBottom",void 0);_.Z([_.H(),_.l("design:type",Object)],kI.prototype,"buttonOverrides",void 0);
_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],kI);
_.b(kI,"yt-live-chat-message-renderer",function(){if(KzS===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;HCJ===void 0&&(HCJ=document.createElement("template"));var R=HCJ;S.call(E,R.content.cloneNode(!0),k.content.firstChild);KzS=k}k=KzS;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var uuB;var x3B;var Ew=function(){var k=_.p.apply(this,arguments)||this;k.isRemovable=!1;k.hasPrefilledText=!1;k.isInputDirty=!1;k.overCharacterLimit=!1;k.underCharacterLimit=!1;k.showErrorMessage=!1;return k};
_.y(Ew,_.p);_.I=Ew.prototype;_.I.computeId=function(){return this.data.id};
_.I.computeInputData=function(){return this.data.inputData};
_.I.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.I.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.I.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.I.getLiveChatRichMessageInput=function(){return _.Cc(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.I.clearInput=function(){_.Cc(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.I.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.I.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.I.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.I.handleTextInputCharCountChanged=function(k){k=k.detail&&k.detail.characterCount;k!==void 0&&(this.characterCount=k,k!==0&&(this.isInputDirty=!0))};
_.I.onInputFocusOut=function(){this.isInputDirty=!0};
_.I.onClickCloseButton=function(){_.Me(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Ew.prototype.handleTextInputCharCountChanged=Ew.prototype.handleTextInputCharCountChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ew.prototype,"data",void 0);_.Z([_.H({computed:"computeId(data.id)"}),_.l("design:type",String)],Ew.prototype,"id",void 0);_.Z([_.H({computed:"computeInputData(data.inputData)"}),_.l("design:type",Object)],Ew.prototype,"inputData",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.l("design:type",Object)],Ew.prototype,"isRemovable",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.l("design:type",Object)],Ew.prototype,"hasPrefilledText",void 0);_.Z([_.H({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.l("design:type",Number)],Ew.prototype,"charactersRemaining",void 0);
_.Z([_.H(),_.l("design:type",Number)],Ew.prototype,"characterCount",void 0);_.Z([_.H(),_.l("design:type",Object)],Ew.prototype,"isInputDirty",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.l("design:type",Object)],Ew.prototype,"overCharacterLimit",void 0);_.Z([_.H({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.l("design:type",Object)],Ew.prototype,"underCharacterLimit",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.l("design:type",Object)],Ew.prototype,"showErrorMessage",void 0);_.Z([_.nv("yt-live-chat-text-input-field-renderer-character-count-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ew.prototype,"handleTextInputCharCountChanged",null);
_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Ew);
_.b(Ew,"yt-live-chat-poll-editor-input",function(){if(x3B===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;uuB===void 0&&(uuB=document.createElement("template"));var R=uuB;S.call(E,R.content.cloneNode(!0),k.content.firstChild);x3B=k}k=x3B;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var LzU;var ju$;var D3F={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},SR=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("web_button_rework_with_live");k.closeButtonOverrides={iconPosition:"icon-only"};k.startButtonOverrides={style:"mono",type:"filled"};k.addOptionButtonOverrides={style:"mono",type:"text"};return k};
_.y(SR,_.p);_.I=SR.prototype;
_.I.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"}}}}};
_.I.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var k;_.W((k=this.data)==null?void 0:k.startButton,_.dZ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.I.computeId=function(){return this.data&&this.data.id||""};
_.I.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.I.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.I.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.I.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.I.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var k=0;k<this.pollEditorInfoWithDefaults.minPollOptions;k++)this.addPollOptionData()};
_.I.getIsValidPoll=function(){var k=this;if(!this.pollEditorInfoWithDefaults)return!1;var E=this.pollEditorInfoWithDefaults,S=E.minPollOptionChars,R=E.maxPollOptionChars,V=E.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>E.maxPollQuestionChars)return!1;E=_.Cc(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(E).every(function(N,h){N=N.characterCount;!N&&V[h]&&(N=k.ytRendererBehavior.getSimpleString(V[h]).length);return N!==void 0&&N>=S&&N<=R})};
_.I.isValidPollChanged=function(){var k;_.W((k=this.data)==null?void 0:k.startButton,_.dZ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.I.addPollOptionData=function(){var k=this.pollEditorInfoWithDefaults,E=k.maxPollOptionChars,S=k.optionPlaceholderText,R=k.customOptionPlaceholderText,V=k.pollOptionData;this.currentNumPollOptions>=k.maxPollOptions||(k={liveChatPollOptionInput:{inputData:{placeholder:R[this.currentNumPollOptions]||S,maxCharacterLimit:E},maxCharacterLimit:E,minCharacterLimit:k.minPollOptionChars,hasPrefilledText:!!R[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=k.minPollOptions}},V.charCountErrorText&&
(k.liveChatPollOptionInput.charCountErrorText=V.charCountErrorText),V.charsRemainingAltLabel&&(k.liveChatPollOptionInput.charsRemainingAltLabel=V.charsRemainingAltLabel),V.removeOptionAltText&&(k.liveChatPollOptionInput.removeOptionAltText=V.removeOptionAltText),this.push("pollOptionsData",k),V=Array.from(_.Cc(_.Cc(this.hostElement).querySelector("#poll-options")).children),V.forEach(function(N,h){N.polymerController.set("data.id",h)}),_.Cc(V[V.length-1]).querySelector("#input").focus())};
_.I.getPollOptionInputValues=function(){var k=this,E=[],S=_.Cc(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),R=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(S).forEach(function(V,N){var h=null;V=V.getLiveChatRichMessageInput();var J;(V==null?0:(J=V.textSegments)==null?0:J.length)?h=_.KU(V):R[N]&&(h=k.formattedStringToLiveChatRichMessageInput(R[N]));E.push(h)});
return E};
_.I.requestCreateAndStartPoll=function(k){var E=this.getPollOptionInputValues();if(!E.some(function(R){return!R})){E={optionText:E};
var S=_.Cc(_.Cc(this.hostElement).querySelector("#poll-question")).firstChild;S&&S.liveChatRichMessageInput&&(E.questionText=_.KU(S.liveChatRichMessageInput));_.Qw(this.hostElement,[k,E])}};
_.I.selectedChanged=function(){if(this.selected){var k=_.Cc(_.Cc(this.hostElement).querySelector("#start-button")).firstElementChild;if(k){var E;(E=_.Cc(k).querySelector("#button")||_.kT(k).querySelector("button"))==null||E.focus()}}};
_.I.handleTextInputChanged=function(k){var E;((E=k.target)==null?void 0:E.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=k.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.I.handleStartButtonAction=function(k){k.detail.actionName==="yt-service-request"&&(k.stopPropagation(),(k=k.detail.args[1])&&this.requestCreateAndStartPoll(k))};
_.I.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.I.handleServiceRequestCompleted=function(k){this.createPollRequestInFlight=!1;(k=k.detail&&k.detail.data)&&k.success&&(_.Me(this.hostElement,"picker-cancelled"),_.qe(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.I.onCloseClick=function(){_.Me(this.hostElement,"picker-cancelled");_.qe(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.I.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.I.handlePollEditorInputClosed=function(k){var E=this.pollOptionsData.findIndex(function(S){return S.liveChatPollOptionInput.id===k.detail.id});
this.splice("pollOptionsData",E,1);this.isValidPoll=this.getIsValidPoll()};
_.I.onPickerCancelled=function(){this.reset()};
_.I.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var k=_.Cc(_.Cc(this.hostElement).querySelector("#poll-question")).firstChild;k&&k.setLiveChatRichMessageInput(null);if(k=_.Cc(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){k=_.n(Array.from(k));for(var E=k.next();!E.done;E=k.next())E.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.I.formattedStringToLiveChatRichMessageInput=function(k){return k.simpleText?{text_segments:[k.simpleText]}:{text_segments:k.runs}};
_.mt.Object.defineProperties(SR.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(D3F,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
SR.prototype.onPickerCancelled=SR.prototype.onPickerCancelled;SR.prototype.handlePollEditorInputClosed=SR.prototype.handlePollEditorInputClosed;SR.prototype.handleServiceRequestCompleted=SR.prototype.handleServiceRequestCompleted;SR.prototype.handleServiceRequestSent=SR.prototype.handleServiceRequestSent;SR.prototype.handleTextInputChanged=SR.prototype.handleTextInputChanged;SR.prototype.selectedChanged=SR.prototype.selectedChanged;SR.prototype.isValidPollChanged=SR.prototype.isValidPollChanged;
SR.prototype.shouldInitializePollChanged=SR.prototype.shouldInitializePollChanged;SR.prototype.dataChanged=SR.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],SR.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],SR.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],SR.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],SR.prototype,"modern",void 0);
_.Z([_.H(),_.l("design:type",Object)],SR.prototype,"closeButtonOverrides",void 0);_.Z([_.H(),_.l("design:type",Object)],SR.prototype,"startButtonOverrides",void 0);_.Z([_.H(),_.l("design:type",Object)],SR.prototype,"addOptionButtonOverrides",void 0);_.Z([_.H({computed:"computeId(data.id)",reflectToAttribute:!0}),_.l("design:type",String)],SR.prototype,"id",void 0);_.Z([_.H({value:function(){return[]}}),
_.l("design:type",Array)],SR.prototype,"pollOptionsData",void 0);_.Z([_.U("pollEditorInfoWithDefaults"),_.l("design:type",Object),_.l("design:paramtypes",[])],SR.prototype,"pollQuestionData",null);_.Z([_.H({value:0}),_.l("design:type",Number)],SR.prototype,"pollQuestionCharacterCount",void 0);_.Z([_.U("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.l("design:type",Object),_.l("design:paramtypes",[])],SR.prototype,"pollQuestionCharactersRemaining",null);
_.Z([_.H({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.l("design:type",Boolean)],SR.prototype,"overQuestionCharacterLimit",void 0);_.Z([_.U("data.pollEditorInfo"),_.l("design:type",Object),_.l("design:paramtypes",[])],SR.prototype,"pollEditorInfoWithDefaults",null);_.Z([_.H({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.l("design:type",Number)],SR.prototype,"currentNumPollOptions",void 0);
_.Z([_.H({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.l("design:type",Boolean)],SR.prototype,"hasMaxNumPollOptions",void 0);_.Z([_.U("pollEditorInfoWithDefaults","pollOptionsData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],SR.prototype,"shouldInitializePoll",null);_.Z([_.H(),_.l("design:type",Object)],SR.prototype,"isValidPoll",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],SR.prototype,"createPollRequestInFlight",void 0);_.Z([_.H(),_.l("design:type",Object)],SR.prototype,"selected",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.l("design:type",Boolean)],SR.prototype,"showQuestionErrorMessage",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SR.prototype,"dataChanged",null);_.Z([_.il("shouldInitializePoll"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SR.prototype,"shouldInitializePollChanged",null);_.Z([_.il("isValidPoll"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SR.prototype,"isValidPollChanged",null);
_.Z([_.il("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SR.prototype,"selectedChanged",null);_.Z([_.nv("yt-live-chat-text-input-field-renderer-character-count-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],SR.prototype,"handleTextInputChanged",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SR.prototype,"handleServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],SR.prototype,"handleServiceRequestCompleted",null);
_.Z([_.nv("yt-live-chat-poll-editor-input-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],SR.prototype,"handlePollEditorInputClosed",null);_.Z([_.nv("picker-cancelled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SR.prototype,"onPickerCancelled",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],SR);
_.b(SR,"yt-live-chat-poll-editor-panel-renderer",function(){if(ju$===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;LzU===void 0&&(LzU=document.createElement("template"));var R=LzU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);ju$=k}k=ju$;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var $3u;var fnN;var RI=function(){return _.p.apply(this,arguments)||this};
_.y(RI,_.p);RI.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
RI.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.mt.Object.defineProperties(RI.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var k,E;return(k=this.data)==null?void 0:(E=k.title)==null?void 0:E.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var k;return _.Uk((k=this.data)==null?void 0:k.onTapCommand)}}});
_.Z([_.g(_.UN.YtEndpointBehavior),_.l("design:type",Object)],RI.prototype,"ytEndpointBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],RI.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RI.prototype,"itemId",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],RI.prototype,"hasPromotion",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],RI.prototype,"innertubeCommand",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],RI);
_.b(RI,"yt-live-chat-product-picker-panel-item-view-model",function(){if(fnN===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;$3u===void 0&&($3u=document.createElement("template"));var R=$3u;S.call(E,R.content.cloneNode(!0),k.content.firstChild);fnN=k}k=fnN;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var vr$;var bCU;var VU=function(){var k=_.p.apply(this,arguments)||this;k.id="product-picker";k.selected=!1;k.closeButtonId="close-button";k.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return k};
_.y(VU,_.p);_.I=VU.prototype;_.I.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.I.observeSelected=function(){this.selected&&this.hostElement.focus();var k=_.Cc(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");k.length&&k[0].focus()};
_.I.onCloseBuyFlow=function(){_.Me(this.hostElement,"picker-cancelled")};
_.I.onCloseClick=function(){_.Me(this.hostElement,"picker-cancelled");var k;((k=this.data)==null?0:k.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.W(this.data.closeButton,_.qz))};
_.I.onCloseEngageWithAudienceEditorPanels=function(){_.Me(this.hostElement,"picker-cancelled")};
VU.prototype.observeSelected=VU.prototype.observeSelected;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],VU.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],VU.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],VU.prototype,"id",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],VU.prototype,"selected",void 0);_.Z([_.H(),_.l("design:type",Object)],VU.prototype,"closeButtonId",void 0);_.Z([_.il("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VU.prototype,"observeSelected",null);
_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],VU);
_.b(VU,"yt-live-chat-product-picker-panel-view-model",function(){if(bCU===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;vr$===void 0&&(vr$=document.createElement("template"));var R=vr$;S.call(E,R.content.cloneNode(!0),k.content.firstChild);bCU=k}k=bCU;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var ZCX;var d3N;var NC=function(){var k=_.p.apply(this,arguments)||this;k.iconId="";k.icon="";k.disabled=!1;k.systemIcons=_.Y("kevlar_system_icons");return k};
_.y(NC,_.p);_.I=NC.prototype;_.I.computeIconId=function(k){return k&&k.icon&&k.icon.iconType?k.icon.iconType.toLowerCase():""};
_.I.computeIcon=function(k){return k&&k.icon&&k.icon.iconType?(k=k.icon.iconType.toLowerCase(),(k.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+k):""};
_.I.computeDisabled=function(k){return!!k};
_.I.computeCommand=function(k,E){return E?void 0:k};
_.I.computeTooltip=function(k,E){return E&&k?k:""};
_.I.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.mt.Object.defineProperties(NC.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var k="",E,S,R;if((E=this.data)==null?0:(S=E.text)==null?0:(R=S.runs)==null?0:R.length)k=this.data.text.runs[0].text||"";else{var V,N;if((V=this.data)==null?0:(N=V.text)==null?0:N.simpleText)k=this.data.text.simpleText}var h,J,m;if((h=this.data)==null?0:(J=h.subtext)==null?0:(m=J.runs)==null?0:m.length)k&&(k+=". "),k+=this.data.subtext.runs[0].text||"";else{var a,T;if((a=this.data)==null?0:(T=a.subtext)==
null?0:T.simpleText)k&&(k+=". "),k+=this.data.subtext.simpleText}return k}}});
_.Z([_.g(_.UN.YtEndpointBehavior),_.l("design:type",Object)],NC.prototype,"ytEndpointBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],NC.prototype,"data",void 0);_.Z([_.H({computed:"computeIconId(data)",reflectToAttribute:!0}),_.l("design:type",Object)],NC.prototype,"iconId",void 0);
_.Z([_.H({computed:"computeIcon(data)",reflectToAttribute:!0}),_.l("design:type",Object)],NC.prototype,"icon",void 0);_.Z([_.H({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.l("design:type",Object)],NC.prototype,"disabled",void 0);_.Z([_.H({computed:"computeCommand(data.command, disabled)"}),_.l("design:type",Object)],NC.prototype,"command",void 0);_.Z([_.H({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.l("design:type",String)],NC.prototype,"tooltip",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],NC.prototype,"systemIcons",void 0);_.Z([_.U("data.text","data.subtext"),_.H(),_.l("design:type",String),_.l("design:paramtypes",[])],NC.prototype,"ariaLabel",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],NC);
_.b(NC,"yt-live-chat-product-button-renderer",function(){if(d3N===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;ZCX===void 0&&(ZCX=document.createElement("template"));var R=ZCX;S.call(E,R.content.cloneNode(!0),k.content.firstChild);d3N=k}k=d3N;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var suS;var lng;var II=function(){var k=_.p.apply(this,arguments)||this;k.selected=!1;k.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 k};
_.y(II,_.p);_.I=II.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.computeId=function(k){return k.id||""};
_.I.onCloseClick=function(){_.Me(this.hostElement,"picker-cancelled")};
_.I.observeSelected=function(){this.selected&&this.hostElement.focus();var k=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");k.length&&k[0].focus()};
_.I.onCloseBuyFlow=function(){_.Me(this.hostElement,"picker-cancelled")};
_.I.onCloseEngageWithAudienceEditorPanels=function(){_.Me(this.hostElement,"picker-cancelled")};
II.prototype.observeSelected=II.prototype.observeSelected;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],II.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],II.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],II.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],II.prototype,"data",void 0);
_.Z([_.H({computed:"computeId(data)",reflectToAttribute:!0}),_.l("design:type",String)],II.prototype,"id",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],II.prototype,"selected",void 0);_.Z([_.il("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],II.prototype,"observeSelected",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],II);
_.b(II,"yt-live-chat-product-picker-renderer",function(){if(lng===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;suS===void 0&&(suS=document.createElement("template"));var R=suS;S.call(E,R.content.cloneNode(!0),k.content.firstChild);lng=k}k=lng;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var Mno;var qgX;var zIU;var QuN;var n7=function(){return _.p.apply(this,arguments)||this};
_.y(n7,_.p);n7.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()};
n7.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
n7.prototype.created=function(){this.ids={background:_.hW(),maskOne:_.hW(),maskTwo:_.hW(),gradient:_.hW(),largeBackground:_.hW(),largeGradientOne:_.hW(),largeGradientTwo:_.hW(),largeGradientPath:_.hW()}};
n7.prototype.maybeLoadAnimationBackground=n7.prototype.maybeLoadAnimationBackground;_.Z([_.H({value:!1}),_.l("design:type",Boolean)],n7.prototype,"useLargeBackground",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],n7.prototype,"useAnimationBackground",void 0);_.Z([_.H({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.l("design:type",Boolean)],n7.prototype,"useRegularBackground",void 0);
_.Z([_.H(),_.l("design:type",Object)],n7.prototype,"ids",void 0);_.Z([_.H(),_.l("design:type",Object)],n7.prototype,"lottieAnimation",void 0);_.Z([_.JO("#animation-background"),_.l("design:type",HTMLDivElement)],n7.prototype,"animationBackground",void 0);_.Z([_.il("useAnimationBackground"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],n7.prototype,"maybeLoadAnimationBackground",null);
_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],n7);
_.b(n7,"yt-live-interactivity-component-background",function(){if(QuN===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;zIU===void 0&&(zIU=document.createElement("template"));var R=zIU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);QuN=k}k=QuN;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var iq=function(){var k=_.p.apply(this,arguments)||this;k.characterCount=0;k.showInputErrorMessage=!1;k.startQnaRequestInFlight=!1;k.modern=_.Y("web_button_rework_with_live");k.buttonOverrides={style:"mono",type:"filled"};k.closeButtonOverrides={iconPosition:"icon-only"};k.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return k};
_.y(iq,_.p);_.I=iq.prototype;
_.I.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]]"}}}}}};
_.I.onCharacterCountChanged=function(k){var E,S,R,V,N=(S=_.W(this==null?void 0:(E=this.data)==null?void 0:E.creatorCallForQuestions,UgJ))==null?void 0:(R=S.inputField)==null?void 0:(V=R.liveChatTextInputFieldRenderer)==null?void 0:V.maxCharacterLimit,h,J;N!=null&&(k==null?void 0:(h=k.detail)==null?void 0:h.characterCount)!=null&&_.W(this==null?void 0:(J=this.data)==null?void 0:J.startButton,_.dZ)&&(E=k.detail.characterCount>N,this.set("data.startButton.buttonRenderer.isDisabled",k.detail.characterCount===
0||E),this.showInputErrorMessage=E)};
_.I.onCloseClick=function(){_.Me(this.hostElement,"picker-cancelled");_.qe(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.I.onPickerCancelled=function(){var k=_.Cc(this.hostElement).querySelector("#qna-creator-text-input-field");k&&k.setLiveChatRichMessageInput(null)};
_.I.handleOpenQnaStartPanel=function(){var k=_.Cc(this.hostElement).querySelector("#qna-creator-text-input-field");k&&k.focus()};
_.I.handleStartButtonAction=function(k){var E=this;if(k.detail.actionName==="yt-service-request"&&(k.stopPropagation(),k=k.detail.args[1])){var S=_.Cc(this.hostElement).querySelector("#qna-creator-text-input-field"),R;(S==null?0:(R=S.liveChatRichMessageInput)==null?0:R.textSegments)&&S.liveChatRichMessageInput.textSegments.length!==0&&(R={rich_message:_.KU(S.liveChatRichMessageInput)},_.Qw(this.hostElement,[k,R]).then(function(){_.Me(E.hostElement,"picker-cancelled")}))}};
_.I.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.I.handleServiceRequestCompleted=function(k){var E;k=k==null?void 0:(E=k.detail)==null?void 0:E.data;(k==null?0:k.actions)&&k.actions.length>0?this.startQnaRequestInFlight=!1:_.qe(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.I.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
iq.prototype.handleServiceRequestError=iq.prototype.handleServiceRequestError;iq.prototype.handleServiceRequestCompleted=iq.prototype.handleServiceRequestCompleted;iq.prototype.handleServiceRequestSent=iq.prototype.handleServiceRequestSent;iq.prototype.onPickerCancelled=iq.prototype.onPickerCancelled;iq.prototype.onCharacterCountChanged=iq.prototype.onCharacterCountChanged;_.Z([_.H(),_.l("design:type",Object)],iq.prototype,"characterCount",void 0);
_.Z([_.H(),_.l("design:type",Object)],iq.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],iq.prototype,"showInputErrorMessage",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],iq.prototype,"startQnaRequestInFlight",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],iq.prototype,"modern",void 0);_.Z([_.H(),_.l("design:type",Object)],iq.prototype,"buttonOverrides",void 0);
_.Z([_.H(),_.l("design:type",Object)],iq.prototype,"closeButtonOverrides",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],iq.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.g(_.Eb.YtLiveChatItemBehavior),_.l("design:type",_.SD)],iq.prototype,"ytLiveChatItemBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],iq.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.nv("yt-live-chat-text-input-field-renderer-character-count-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],iq.prototype,"onCharacterCountChanged",null);_.Z([_.nv("picker-cancelled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iq.prototype,"onPickerCancelled",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],iq.prototype,"handleServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],iq.prototype,"handleServiceRequestCompleted",null);
_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],iq.prototype,"handleServiceRequestError",null);_.Z([_.D({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],iq);
_.b(iq,"yt-live-chat-qna-start-panel-renderer",function(){if(qgX===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Mno===void 0&&(Mno=document.createElement("template"));var R=Mno;S.call(E,R.content.cloneNode(!0),k.content.firstChild);qgX=k}k=qgX;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var OCs;var GVU;var hF=function(){return _.p.apply(this,arguments)||this};
_.y(hF,_.p);hF.prototype.dismiss=function(){_.Me(this.hostElement,"yt-live-chat-error-message-dismiss")};
hF.prototype.edit=function(){_.Me(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.Z([_.H(),_.l("design:type",Object)],hF.prototype,"data",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],hF);
_.b(hF,"yt-live-chat-text-actions-error-message-renderer",function(){if(GVU===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;OCs===void 0&&(OCs=document.createElement("template"));var R=OCs;S.call(E,R.content.cloneNode(!0),k.content.firstChild);GVU=k}k=GVU;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var CJJ;var kpU;var EZN;var SQs;var JF=function(){var k=_.p.apply(this,arguments)||this;k.isDarkTheme=document.documentElement.hasAttribute("dark");k.newnessDotEligible=!1;return k};
_.y(JF,_.p);JF.prototype.sendReaction=function(){var k,E,S=((k=this.data)==null?void 0:k.emojiId)||((E=this.data)==null?void 0:E.emoteId),R;S&&((R=this.data)==null?0:R.shouldTriggerAnimation)&&_.qe(this.hostElement,"yt-create-user-reaction-animation",[S]);var V;(k=_.Uk((V=this.data)==null?void 0:V.onTap))&&_.Ni(k,this.hostElement);this.showNewnessDot&&_.qe(this.hostElement,"yt-hide-newness-dot")};
JF.prototype.onClick=function(k){(!k||k.clientX||k.clientY)&&this.sendReaction()};
JF.prototype.onKeyDown=function(k){k.key!=="Enter"&&k.key!==" "||k.repeat||this.sendReaction()};
_.mt.Object.defineProperties(JF.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var k,E;return!!(((k=this.data)==null?0:k.emojiId)||((E=this.data)==null?0:E.emoteId))}}});
_.Z([_.H(),_.l("design:type",Object)],JF.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],JF.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],JF.prototype,"newnessDotEligible",void 0);_.Z([_.U("data.maybeShowNewnessDot"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],JF.prototype,"showNewnessDot",null);_.Z([_.U("data.emojiId","data.emoteId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],JF.prototype,"useYtImage",null);
_.Z([_.U_({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],JF);
_.b(JF,"yt-reaction-control-panel-button-view-model",function(){if(SQs===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;EZN===void 0&&(EZN=document.createElement("template"));var R=EZN;S.call(E,R.content.cloneNode(!0),k.content.firstChild);SQs=k}k=SQs;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var RdB;var Vvg;var cc=function(){var k=_.p.apply(this,arguments)||this;k.reactionControlPanelExpanded=!1;k.isDarkTheme=document.documentElement.hasAttribute("dark");k.newnessDotEligible=!1;return k};
_.y(cc,_.p);_.I=cc.prototype;_.I.expandedButtonsChanged=function(){var k,E;_.VO(this.hostElement,{"--expanded-buttons-height":((E=(k=this.expandedButtonsData)==null?void 0:k.length)!=null?E:0)*36+"px"})};
_.I.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}}};
_.I.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.I.onMouseLeave=function(){var k=this;this.collapseTimer=setTimeout(function(){k.reactionControlPanelExpanded=!1},500)};
_.I.onFocusIn=function(){this.onMouseEnter()};
_.I.onFocusOut=function(){this.onMouseLeave()};
_.I.onCollapsedButtonFocusIn=function(){var k=this;setTimeout(function(){var E;(E=k.expandedButtons.querySelector("button"))==null||E.focus()},100)};
_.I.onCollapsedButtonFocusOut=function(k){k.stopPropagation()};
_.mt.Object.defineProperties(cc.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var k,E;return _.fO.unsafeClone((k=this.liveReactionsData)==null?void 0:k.emojiButtonData)||((E=this.data)==null?void 0:E.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var k;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((k=this.data)==null||!k.maybeShowNewnessDot)}}});
cc.prototype.expandedButtonsChanged=cc.prototype.expandedButtonsChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],cc.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],cc.prototype,"ytLiveChatReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cc.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],cc.prototype,"reactionControlPanelExpanded",void 0);_.Z([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Sms}),_.l("design:type",Object)],cc.prototype,"liveReactionsData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],cc.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],cc.prototype,"newnessDotEligible",void 0);
_.Z([_.U("liveReactionsData","data.expandedButtons"),_.l("design:type",Object),_.l("design:paramtypes",[])],cc.prototype,"expandedButtonsData",null);_.Z([_.U("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.H({reflectToAttribute:!0}),_.l("design:type",Object),_.l("design:paramtypes",[])],cc.prototype,"showNewnessDot",null);_.Z([_.JO("#expanded-buttons"),_.l("design:type",HTMLElement)],cc.prototype,"expandedButtons",void 0);
_.Z([_.il("expandedButtonsData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cc.prototype,"expandedButtonsChanged",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],cc);
_.b(cc,"yt-reaction-control-panel-view-model",function(){if(Vvg===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;RdB===void 0&&(RdB=document.createElement("template"));var R=RdB;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Vvg=k}k=Vvg;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var mK=new _.qG("yt-live-chat"),NvF=Date.parse("2024-7-24"),eR=function(){var k=_.p.apply(this,arguments)||this;k.emojiManager=_.kP;k.newnessDotEligible=!1;k.newnessDotImpressionCounted=!1;k.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return k};
_.y(eR,_.p);_.I=eR.prototype;_.I.emojiCustomizationEnabledChanged=function(){var k;((k=this.data)==null?0:k.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((k=mK.getCreationTime("emoji-customization-count"))&&k<NvF&&mK.set("emoji-customization-count","0"),k=Number(mK.get("emoji-customization-count"))||0,k<3&&(this.newnessDotEligible=!0,mK.set("emoji-customization-count",(k+1).toString())),this.newnessDotImpressionCounted=!0)};
_.I.hideNewnessDot=function(){this.newnessDotEligible=!1;mK.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.I.handleReactionsMute=function(k){var E=_.Fe(),S=_.kh(206221),R={checkboxData:{state:k?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};E&&_.Dv(E,S,R);this.reactionsMuted=k};
_.I.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.I.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}}};
_.mt.Object.defineProperties(eR.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var k;return(!((k=this.liveReactionsData)==null||!k.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
eR.prototype.liveReactionsSettingChanged=eR.prototype.liveReactionsSettingChanged;eR.prototype.emojiCustomizationEnabledChanged=eR.prototype.emojiCustomizationEnabledChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zM),_.l("design:type",Object)],eR.prototype,"ytLiveChatReduxBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],eR.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],eR.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",_.ON)],eR.prototype,"emojiManager",void 0);_.Z([_.H(),_.l("design:type",Object)],eR.prototype,"newnessDotEligible",void 0);_.Z([_.H(),_.l("design:type",Object)],eR.prototype,"newnessDotImpressionCounted",void 0);
_.Z([_.H({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:RwU}),_.l("design:type",Boolean)],eR.prototype,"liveReactionsSetting",void 0);_.Z([_.H({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Sms}),_.l("design:type",Object)],eR.prototype,"liveReactionsData",void 0);_.Z([_.H({value:function(){var k=_.Y("enable_lwe_web_mute"),E=mK.get("allow-reactions");return E===void 0?!1:!E&&k}}),
_.l("design:type",Boolean)],eR.prototype,"reactionsMuted",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eR.prototype,"liveReactionsEnabled",null);_.Z([_.il("data.emojiCustomizationEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eR.prototype,"emojiCustomizationEnabledChanged",null);
_.Z([_.il("liveReactionsEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eR.prototype,"liveReactionsSettingChanged",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],eR);
_.b(eR,"yt-reaction-control-panel-overlay-view-model",function(){if(kpU===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;CJJ===void 0&&(CJJ=document.createElement("template"));var R=CJJ;S.call(E,R.content.cloneNode(!0),k.content.firstChild);kpU=k}k=kpU;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var IJr={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(k){var E=this.$.pickers.selected;if(E){_.Cc(this.hostElement).removeAttribute(E+"-open");var S="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(S="#picker-buttons",E==="emoji"&&_.Cc(this.hostElement).querySelector("#emoji-picker-button")&&(S="#emoji-picker-button"));if(S=_.Cc(this.hostElement).querySelector(S).querySelector("#"+E))S.active=!1}S=k;E==k&&(S=null);E!=
k&&_.Cc(this.hostElement).setAttribute(k+"-open","");this.$.pickers.selected=S;_.qe(this.hostElement,"yt-live-chat-picker-changed",[S])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var aI=function(){var k=_.p.apply(this,arguments)||this;k.numSentMessages=0;k.timeoutDurationMs=0;k.timeoutMs=0;k.lastTimeoutTimeMs=0;k.pendingMessageId="";k.hasFiredInitialFocusActions=!1;k.isBeforeFocusEnabled=!0;k.id="";k.characterCount=0;k.maxCharacterLimit=0;k.remainingCharacterCount=0;k.inputExpanded=!1;k.buttonOverrides={iconPosition:"icon-only"};k.inReplyPanel=!1;k.countdownRatio=0;k.isTooltipVisible=!1;k.tooltipTimeout=1E4;k.systemIcons=_.Y("kevlar_system_icons");k.tallerEmojiPicker=_.Y("live_chat_taller_emoji_picker");
k.sendReplyMessageInFlight=!1;k.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"};k.onResize=function(){k.maybeToggleCharacterCount()};
return k};
_.y(aI,_.p);_.I=aI.prototype;
_.I.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"}}}};
_.I.attached=function(){window.addEventListener("resize",this.onResize)};
_.I.detached=function(){window.removeEventListener("resize",this.onResize)};
_.I.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.I.sendMessage=function(){var k=this,E,S,R,V;return _.c(function(N){if(k.sendDisabled)return N.return();k.isTooltipVisible&&_.qe(k.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(k.data.sendButton&&k.data.sendButton.buttonRenderer){k.input.completeEmojis();E=k.data.sendButton.buttonRenderer.serviceEndpoint;if(!E)return N.return();R=((S=_.W(E,_.k7Y))==null?void 0:S.clientIdPrefix)||"";V={client_message_id:R+String(k.numSentMessages++),rich_message:_.KU(k.input.liveChatRichMessageInput)};
k.pendingMessageId=V.client_message_id;k.inReplyPanel&&(k.sendReplyMessageInFlight=!0);_.Qw(k.hostElement,[E,V]);k.input.setLiveChatRichMessageInput(null)}_.KR(N)})};
_.I.handleSendButtonAction=function(k){k.detail.actionName==="yt-service-request"&&(k.stopPropagation(),this.sendMessage())};
_.I.onSendCompleted=function(k,E){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(k=this.get("timeoutDurationUsec",E.data))&&this.handleTimeout(Number(k)/1E3);this.errorMessage=this.get("errorMessage",E.data);this.pendingMessageId=""};
_.I.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.qe(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.I.handlePickerButtonToggle=function(k){k=k.detail.targetId;this.ytPickerBehavior.togglePicker_(k);if(k==="emoji")this.input.focus();else if(k==="qna-start-panel"){var E,S;(E=_.Cc(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(S=E.querySelector("#qna-creator-text-input-field"))==null||S.focus()}};
_.I.onComponentReplaced=function(k){var E,S;k.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((E=k.replacement.liveChatMessageInputRenderer)==null?0:(S=E.headerRenderer)==null?0:S.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.I.onEmojiSelect=function(k){this.input.focus();this.input.insertEmoji(k.detail)};
_.I.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.I.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.qe(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.qe(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.I.onOpenPopupAction=function(k,E){var S=this;E===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.qe(S.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.I.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.I.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.I.focusChanged=function(){this.maybeToggleCharacterCount()};
_.I.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var k=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",k>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.I.computeId=function(){return this.data&&this.data.targetId||""};
_.I.computeSendDisabled=function(k,E,S,R){k=!!(!k||E&&k>E||R);(E=_.Cc(this.hostElement).querySelector("#send-button"))&&E.children.length&&(E.children[0].disabled=k);return k};
_.I.handleTimeout=function(k){this.timeoutDurationMs=this.timeoutMs=k;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.I.updateTimeout=function(k){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(k-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=k,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.I.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.I.onErrorMessageEdit=function(k){this.input.setLiveChatRichMessageInput(k.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.I.errorMessageChanged=function(){var k=this;_.xT(function(){_.qe(k.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.I.computeAuthorNameColor=function(k){var E;if(_.Y("live_chat_author_name_color_usernames")&&(k==null?0:(E=k.authorName)==null?0:E.simpleText))return _.Bi1(_.Y1h(k.authorName.simpleText));if(_.Y("live_chat_seed_color_usernames")&&(k==null?0:k.authorSeedColorArgb))return _.Bi1(_.kX(k.authorSeedColorArgb));if(_.Y("live_chat_colored_usernames"))return"#cc0000";var S;return _.Y("live_chat_simple_color_usernames")&&(k==null?0:(S=k.authorName)==null?0:S.simpleText)&&(k==null?0:k.authorUsernameColorLight)&&
(k==null?0:k.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.kX(k.authorUsernameColorDark):_.kX(k.authorUsernameColorLight):""};
_.I.onIsTooltipVisibleChanged=function(){var k=_.Cc(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){k.hidden=!1;k.setAttribute("role","alert")},0):(k.hidden=!0,k.removeAttribute("role"))};
_.I.onFocusedChanged=function(k){this.inputFocused=k.detail.value};
_.mt.Object.defineProperties(aI.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 k;return!((k=this.data)==null||!k.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:(E=k.pickers)==null?void 0:E.find(function(S){return S.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var k=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return k?this.ytRendererBehavior.getSimpleString(k):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
aI.prototype.onIsTooltipVisibleChanged=aI.prototype.onIsTooltipVisibleChanged;aI.prototype.errorMessageChanged=aI.prototype.errorMessageChanged;aI.prototype.onErrorMessageEdit=aI.prototype.onErrorMessageEdit;aI.prototype.onErrorMessageDismiss=aI.prototype.onErrorMessageDismiss;aI.prototype.focusChanged=aI.prototype.focusChanged;aI.prototype.characterCountChanged=aI.prototype.characterCountChanged;aI.prototype.onEmojiSelect=aI.prototype.onEmojiSelect;aI.prototype.handlePickerButtonToggle=aI.prototype.handlePickerButtonToggle;
aI.prototype.onSendError=aI.prototype.onSendError;aI.prototype.onSendCompleted=aI.prototype.onSendCompleted;aI.prototype.sendMessage=aI.prototype.sendMessage;aI.prototype.dataChanged=aI.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],aI.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(IJr.YtPickerBehavior),_.l("design:type",Object)],aI.prototype,"ytPickerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.QW.YtLiveChatTooltipTargetingBehavior),_.l("design:type",Object)],aI.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"hasFiredInitialFocusActions",void 0);
_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"isBeforeFocusEnabled",void 0);_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"data",void 0);_.Z([_.H({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.l("design:type",Object)],aI.prototype,"id",void 0);_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"characterCount",void 0);_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"maxCharacterLimit",void 0);
_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"remainingCharacterCount",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],aI.prototype,"inputExpanded",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],aI.prototype,"inputFocused",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],aI.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.Z([_.H(),_.l("design:type",_.N8)],aI.prototype,"participantsManager",void 0);
_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"buttonOverrides",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],aI.prototype,"inReplyPanel",void 0);_.Z([_.U("characterCount, maxCharacterLimit, countdownActive"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],aI.prototype,"sendDisabled",null);_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"countdownRatio",void 0);
_.Z([_.U("countdownRatio"),_.l("design:type",Number),_.l("design:paramtypes",[])],aI.prototype,"countdownStrokeDashOffset",null);_.Z([_.U("countdownRatio"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],aI.prototype,"countdownActive",null);_.Z([_.U("data.interactionMessage"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],aI.prototype,"hasInteractionMessage",null);
_.Z([_.U("data.emojiPickerButton"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],aI.prototype,"hasEmojiPickerButton",null);_.Z([_.U("data, characterCount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],aI.prototype,"showAvatar",null);_.Z([_.U("data.pickers"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],aI.prototype,"hasProductPickerPanelViewModel",null);
_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"errorMessage",void 0);_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"genericErrorMessage",void 0);_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"isTooltipVisible",void 0);_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"tooltipTimeout",void 0);_.Z([_.U("data.onInitialFocusCommand"),_.l("design:type",String),_.l("design:paramtypes",[])],aI.prototype,"tooltipMessage",null);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],aI.prototype,"systemIcons",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],aI.prototype,"tallerEmojiPicker",void 0);_.Z([_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],aI.prototype,"authorNameColor",null);_.Z([_.H(),_.l("design:type",Object)],aI.prototype,"sendReplyMessageInFlight",void 0);_.Z([_.JO("#input"),_.l("design:type",_.qr5)],aI.prototype,"input",void 0);
_.Z([_.JO("#count"),_.l("design:type",HTMLElement)],aI.prototype,"count",void 0);_.Z([_.JO("#input-container"),_.l("design:type",HTMLElement)],aI.prototype,"inputContainer",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aI.prototype,"dataChanged",null);_.Z([_.nv("yt-live-chat-send-message"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],aI.prototype,"sendMessage",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[Event,_.fU]),_.l("design:returntype")],aI.prototype,"onSendCompleted",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aI.prototype,"onSendError",null);
_.Z([_.nv("yt-live-chat-icon-toggle-button-renderer-toggle"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],aI.prototype,"handlePickerButtonToggle",null);_.Z([_.nv("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],aI.prototype,"onEmojiSelect",null);
_.Z([_.il("characterCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aI.prototype,"characterCountChanged",null);_.Z([_.il("inputFocused"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aI.prototype,"focusChanged",null);_.Z([_.nv("yt-live-chat-error-message-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aI.prototype,"onErrorMessageDismiss",null);
_.Z([_.nv("yt-live-chat-error-message-edit"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],aI.prototype,"onErrorMessageEdit",null);_.Z([_.il("errorMessage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aI.prototype,"errorMessageChanged",null);_.Z([_.il("isTooltipVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aI.prototype,"onIsTooltipVisibleChanged",null);
_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],aI);
_.b(aI,"yt-live-chat-message-input-renderer",function(){if(U3g===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;grS===void 0&&(grS=document.createElement("template"));var R=grS;S.call(E,R.content.cloneNode(!0),k.content.firstChild);U3g=k}k=U3g;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var nZo;var ixk;var tF=function(){var k=_.p.apply(this,arguments)||this;k.systemIcons=_.Y("kevlar_system_icons");k.firedOnClickCommand=!1;k.inReplyPanel=!1;return k};
_.y(tF,_.p);
tF.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"}}}};
tF.prototype.onButtonToggle=function(k){k.target.disabled||this.ytPickerBehavior.togglePicker_(k.detail.targetId)};
tF.prototype.onClick=function(){var k=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.qe(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return k.firedOnClickCommand=!1},5E3))};
_.mt.Object.defineProperties(tF.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:(E=k.panels)==null?void 0:E.find(function(S){return S.liveChatProductPickerPanelViewModel}))!==void 0}}});
tF.prototype.onButtonToggle=tF.prototype.onButtonToggle;_.Z([_.g(IJr.YtPickerBehavior),_.l("design:type",Object)],tF.prototype,"ytPickerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tF.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],tF.prototype,"systemIcons",void 0);_.Z([_.H({reflectToAttribute:!1}),_.l("design:type",Object)],tF.prototype,"firedOnClickCommand",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],tF.prototype,"inReplyPanel",void 0);_.Z([_.U("data.pickers"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],tF.prototype,"hasProductPickerPanelViewModel",null);
_.Z([_.nv("yt-live-chat-icon-toggle-button-renderer-toggle"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],tF.prototype,"onButtonToggle",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],tF);
_.b(tF,"yt-live-chat-restricted-participation-renderer",function(){if(ixk===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;nZo===void 0&&(nZo=document.createElement("template"));var R=nZo;S.call(E,R.content.cloneNode(!0),k.content.firstChild);ixk=k}k=ixk;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var T3=function(){var k=_.p.apply(this,arguments)||this;k.genericErrorMessage=_.DE("Error, try again.");k.inReplyPanel=!1;k.hideBorder=!1;return k};
_.y(T3,_.p);T3.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}}}}}};
_.mt.Object.defineProperties(T3,{template:{configurable:!0,enumerable:!0,get:function(){return WzB()}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],T3.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],T3.prototype,"genericErrorMessage",void 0);_.Z([_.H(),_.l("design:type",Object)],T3.prototype,"inReplyPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],T3.prototype,"hideBorder",void 0);
_.Z([_.U_({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],T3);_.b(T3,"yt-live-chat-engagement-panel-input-renderer",function(){return WzB()},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var hdF,J6k;hdF=_.kh(115994);J6k=_.kh(115993);_.wC=function(k,E,S){var R=this;var V=S.dragDownAction;this.layer=0;this.JSC$22792_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$22792_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var N=_.JV();_.Yo(N,hdF,this.layer);_.Yo(N,J6k,this.layer);this.dragDownAction=function(){V();_.Ab(N,{visualElement:R.fullscreen?hdF:J6k})};
this.gesture=new _.fB(k,E,this.getConfig(!1),"pandown");this.attach()};
_.wC.prototype.attach=function(){this.gesture.attach()};
_.wC.prototype.detach=function(){this.gesture.detach()};
_.wC.prototype.update=function(k){this.fullscreen=k;var E=this.gesture;k=this.getConfig(k);E.config=k};
_.wC.prototype.getConfig=function(k){return k?this.JSC$22792_watchFullScreenConfig:this.JSC$22792_watchConfig};var c6U={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(k){if(k&&k.length==1&&Array.isArray(k[0].loggingUrls)){k=_.fO.unsafeClone(k[0]);var E=this.macros||{},S=this.getAdModuleClient_();if(!S)return _.GR();k.loggingUrls.forEach(function(R){if(R.baseUrl){var V=R.baseUrl;var N=E;N=N===void 0?{}:N;V=S.getOptions().includes("replaceUrlMacros")?_.aNz(S,"replaceUrlMacros",{url:V,additionalMapping:N}):V;R.baseUrl=V}},this);
k=[k]}return _.Qw(this.hostElement,k)},
getAdModuleClient_:function(){var k=_.s3(this);return k?(k=k.getPlayer())?new _.vW(k):null:null}}]};var mGU;var Pc=function(){var k=_.p.apply(this,arguments)||this;k.isCollapsed=!1;k.modernPanels=_.Y("kevlar_watch_modern_panels");k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return k};
_.y(Pc,_.p);_.I=Pc.prototype;_.I.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.onDonateTap=function(){var k=this.get("data.donateButton.buttonRenderer.command");if(k){var E=_.Fe(),S=this.get("data.donateButton.buttonRenderer.trackingParams");E&&S&&_.Dv(E,_.tV(S));this.ytOpenPopupBehavior.openPopup(k)}};
_.I.onShowMore=function(){this.isCollapsed=!1;var k=_.Fe(),E=this.get("data.expandButton.buttonRenderer.trackingParams");k&&E&&_.Dv(k,_.tV(E))};
_.I.onShowLess=function(){this.isCollapsed=!0};
_.I.dataChanged=function(){_.VO(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.I.onDarkModeToggledAction=function(k){this.isDarkTheme=k};
_.I.handleUpdate=function(k){if(k=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",k))this.set("data.startLabel",k.startLabel),this.set("data.endLabel",k.endLabel),this.set("data.progress",k.progress),this.set("data.amountRaisedLabel",k.amountRaisedLabel),this.dataChanged()};
_.I.handleOpenPopupAction=function(k){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",k)&&_.qe(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.I.computeHeaderBackgroundUrl=function(k,E){if(k)return E?k.headerBackgroundDarkUrl:k.headerBackgroundUrl};
_.I.isProgressBarVisible=function(k){return!(!k||k.progress===void 0)};
_.I.headerBackgroundClass=function(){return _.Mg("HTML_DIR")==="rtl"?"flip":""};
Pc.prototype.dataChanged=Pc.prototype.dataChanged;_.Z([_.g(_.gA.YtOpenPopupBehavior),_.l("design:type",Object)],Pc.prototype,"ytOpenPopupBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Pc.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Pc.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Pc.prototype,"isCollapsed",void 0);_.Z([_.H({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.l("design:type",String)],Pc.prototype,"headerBackgroundUrl",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Pc.prototype,"isDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Pc.prototype,"modernPanels",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Pc.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],Pc);
_.b(Pc,"ytd-donation-shelf-renderer",function(){if(mGU!==void 0)return mGU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return mGU=k},{mode:1});var ed$;var aJX=function(){return _.p.apply(this,arguments)||this};
_.y(aJX,_.p);_.Z([_.H(),_.l("design:type",Object)],aJX.prototype,"data",void 0);_.Z([_.D({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],aJX);
_.b(aJX,"ytd-donation-unavailable-renderer",function(){if(ed$!==void 0)return ed$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ed$=k},{mode:1});var tvJ;var Bc=function(){return _.p.apply(this,arguments)||this};
_.y(Bc,_.p);Bc.prototype.computeIconType=function(k){return k?"yt-icons:"+k.toLowerCase():null};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Bc.prototype,"data",void 0);_.Z([_.D({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Bc);
_.b(Bc,"ytd-limited-state-message-renderer",function(){if(tvJ!==void 0)return tvJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return tvJ=k},{mode:1});var Tvu;var YI=function(){return _.p.apply(this,arguments)||this};
_.y(YI,_.p);YI.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
YI.prototype.onTap=function(k){var E=this.data&&this.data.endpoint;E&&!_.v9(_.vT(k),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Me(this.hostElement,"yt-navigate",{endpoint:E})};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],YI.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],YI.prototype,"data",void 0);_.Z([_.D({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],YI);
_.b(YI,"ytd-autotagging-metadata-renderer",function(){if(Tvu!==void 0)return Tvu;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Tvu=k},{mode:1});var wVU;var Wc=function(){return _.p.apply(this,arguments)||this};
_.y(Wc,_.p);Wc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Wc.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Wc.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Wc.prototype,"data",void 0);_.Z([_.D({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Wc);
_.b(Wc,"ytd-autotagging-metadata-row-renderer",function(){if(wVU!==void 0)return wVU;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return wVU=k},{mode:1});var PXX;var Bvg;var Fx=function(){var k=_.p.apply(this,arguments)||this;k.engagementPanelContent=!1;return k};
_.y(Fx,_.p);Fx.prototype.computeHasDividerLine=function(k,E){return k&&!E};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Fx.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.l("design:type",Boolean)],Fx.prototype,"hasDividerLine",void 0);_.Z([_.H(),_.l("design:type",Object)],Fx.prototype,"engagementPanelContent",void 0);
_.Z([_.D({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Fx);
_.b(Fx,"ytd-metadata-row-header-renderer",function(){if(Bvg!==void 0)return Bvg;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Bvg=k},{mode:1});var YQN;var yU=function(){return _.p.apply(this,arguments)||this};
_.y(yU,_.p);yU.prototype.computeHasDividerLine=function(k){return k};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yU.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],yU.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.l("design:type",Boolean)],yU.prototype,"hasDividerLine",void 0);_.Z([_.D({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],yU);
_.b(yU,"ytd-metadata-row-renderer",function(){if(YQN!==void 0)return YQN;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return YQN=k},{mode:1});var Wqu;var Fqs=function(){return _.p.apply(this,arguments)||this};
_.y(Fqs,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Fqs.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Fqs.prototype,"data",void 0);_.Z([_.D({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Fqs);
_.b(Fqs,"ytd-metadata-with-image-row-renderer",function(){if(Wqu!==void 0)return Wqu;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Wqu=k},{mode:1});var y6U;var oI=function(){var k=_.p.apply(this,arguments)||this;k.rounded=!0;k.fixie=!1;k.fullWidth=!1;return k};
_.y(oI,_.p);_.I=oI.prototype;_.I.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.I.onDataChanged=function(){var k=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(E){k.onEndpointLinkKeyPress(E)}))};
_.I.onEndpointLinkKeyPress=function(k){k.target===this.endpointLink&&k.keyCode===13&&_.Me(this.hostElement,"click")};
_.I.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var k;if((k=this.data)==null?0:k.endpoint)_.Ot(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.I.onYtNavigate=function(k){this.endpointHref||(k.stopPropagation(),k.preventDefault())};
_.I.onInformationButtonContainerClick=function(k){k.target.id!=="information-button-container"&&(k.stopPropagation(),k.preventDefault())};
_.I.computeStyle=function(k){return k};
_.I.computeIsThumbnailStyle=function(k){return k==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.I.computeThumbnailWidth=function(k){switch(k){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}};
_.I.computeThumbnailObjectFit=function(k){switch(k){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.mt.Object.defineProperties(oI.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?0:k.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
oI.prototype.onYtNavigate=oI.prototype.onYtNavigate;oI.prototype.onClick=oI.prototype.onClick;oI.prototype.onDataChanged=oI.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],oI.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],oI.prototype,"componentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],oI.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],oI.prototype,"componentStyle",void 0);_.Z([_.H({computed:"computeIsThumbnailStyle(data.style)"}),_.l("design:type",Boolean)],oI.prototype,"isThumbnailStyle",void 0);_.Z([_.H({computed:"computeThumbnailObjectFit(data.style)"}),_.l("design:type",String)],oI.prototype,"thumbnailObjectFit",void 0);
_.Z([_.H({computed:"computeThumbnailWidth(data.style)"}),_.l("design:type",Number)],oI.prototype,"thumbnailWidth",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],oI.prototype,"rounded",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],oI.prototype,"fixie",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],oI.prototype,"fullWidth",void 0);_.Z([_.JO("#endpoint-link"),_.l("design:type",HTMLAnchorElement)],oI.prototype,"endpointLink",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oI.prototype,"onDataChanged",null);_.Z([_.U("data.endpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],oI.prototype,"endpointHref",null);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],oI.prototype,"onClick",null);
_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],oI.prototype,"onYtNavigate",null);_.Z([_.D({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],oI);
_.b(oI,"ytd-rich-metadata-renderer",function(){if(y6U!==void 0)return y6U;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return y6U=k},{mode:_.GN("kevlar_poly_si_batch_j075")?1:2});var oZo;var Xx=function(){var k=_.p.apply(this,arguments)||this;k.fixie=!1;k.fullWidth=!1;return k};
_.y(Xx,_.p);Xx.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Xx.prototype.computeHasDividerLine=function(k){return k};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Xx.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.l("design:type",Boolean)],Xx.prototype,"hasDividerLine",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Xx.prototype,"fixie",void 0);_.Z([_.H(),_.l("design:type",Object)],Xx.prototype,"fullWidth",void 0);
_.Z([_.D({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Xx);
_.b(Xx,"ytd-rich-metadata-row-renderer",function(){if(oZo!==void 0)return oZo;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return oZo=k},{mode:1});var gC=function(){var k=_.p.apply(this,arguments)||this;k.engagementPanelContent=!1;k.fixie=!1;k.fullWidth=!1;return k};
_.y(gC,_.p);
gC.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"}}}};
gC.prototype.computeCollapsibleItems=function(k,E,S){return k===void 0||E===void 0||S===void 0||S?[]:k.slice(E)};
gC.prototype.computeAlwaysShownItems=function(k,E){return k&&k.length?k.slice(0,E):[]};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],gC.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],gC.prototype,"collapsed",void 0);
_.Z([_.H({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.l("design:type",Array)],gC.prototype,"alwaysShownItems",void 0);_.Z([_.H({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.l("design:type",Array)],gC.prototype,"collapsibleItems",void 0);_.Z([_.H(),_.l("design:type",Object)],gC.prototype,"engagementPanelContent",void 0);_.Z([_.H(),_.l("design:type",Object)],gC.prototype,"fixie",void 0);
_.Z([_.H(),_.l("design:type",Object)],gC.prototype,"fullWidth",void 0);_.Z([_.D({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],gC);
_.b(gC,"ytd-metadata-row-container-renderer",function(){if(PXX!==void 0)return PXX;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return PXX=k},{mode:1});var XVF;var Uw=function(){var k=_.p.apply(this,arguments)||this;k.currentPageUrl="";k.baseUrl="";k.isHiddenByUser=null;k.hidden=!1;k.showAboveScrim=!1;k.watchNextGrid=_.Y("kevlar_watch_grid");k.modernButtons=_.Y("web_modern_buttons");k.roundedContainer=!0;k.noBorder=!1;k.roundBackground=!_.Y("live_chat_round_background_killswitch");k.overflowHideChat=_.Y("live_chat_overflow_hide_chat");k.forceDarkTheme=!1;k.theaterWatchWhile=!1;k.isListeningForPlayerProgress=!1;k.JSC$22828_playerEvents=new Map;k.isFrameReady=
!1;k.player=null;k.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 k};
_.y(Uw,_.p);_.I=Uw.prototype;_.I.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.zR(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.I.created=function(){var k=this;this.handleIframeEventListener=function(E){k.handleIframeEvent(E)};
this.handleKeyboardEventListener=function(E){k.handleKeyboardEvent(E)};
this.JSC$22828_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22828_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22828_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22828_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22828_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.I.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()};
_.I.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};
_.I.computeBaseUrl=function(k){var E="/live_chat";this.isChatReplay()&&(E="/live_chat_replay");return _.kH(_.C3(_.GA(_.Gx(k),E),null),"").toString()};
_.I.dataChanged=function(){_.Y("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.I.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var k=this.url;if(this.isChatReplay()&&this.player){var E=Math.floor(this.player.getProgressState().current*1E3);k=_.kO(_.Gx(k),"playerOffsetMs",E.toString()).toString()}E=this.chatframe;try{var S=k==="about:blank"?_.oJT:_.ZF(k),R=E.contentDocument.location,V=_.lu(S);V!==void 0&&R.replace(V)}catch(N){E.src=k}}};
_.I.collapsedChanged=function(){_.Me(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.I.handleIframeEvent=function(k){if(k&&this.baseUrl.startsWith(k.origin)&&k.source===this.chatframe.contentWindow&&_.qA(k.data))if(k.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(k);else if(k.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(k.data["yt-show-feedback-dialog"]){var E=_.en().resolve(_.mz(_.pUP));if(E){var S=k.ports,R;S&&S.length&&(R=function(){S[0].postMessage({})});
k=k.data["yt-show-feedback-dialog"];E.showFeedbackDialog(k.customProductData,k.feedbackContent,R,k.bucket)}}else if(k.data["yt-show-survey"])_.Me(this.hostElement,"yt-show-survey",k.data["yt-show-survey"]);else if(k.data["yt-purchase-membership"])_.en().resolve(_.t3).resolveCommand(k.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(k.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(k.data["yt-tunnel-out-live-service-request"]);else if(k.data["yt-user-activity"])_.cv();
else if(k.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(k.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(k.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(k.data["yt-open-popup"]);else if(k.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(k.data["yt-log-flow-logging-event-command"]);else if(k.data["yt-hide-live-chat"])this.onShowHideChat();else k.data["yt-report-moderation-state-log"]&&
this.player&&(E={cpn:this.player.getVideoData().cpn},_.f2("liveChatBeingModerated",E))};
_.I.attachLiveChatResponseVeTrackingParams=function(k){k=_.tV(k);var E=_.Fe(),S=_.CV("liveChatRenderer.trackingParams",this.data);E&&S&&_.rq(E,_.tV(S),k)};
_.I.handleBuyflowMessages=function(k){var E=k.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,S=k.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,R=k.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.xvh(_.$z(_.fc),E.replace(/-/g,"+").replace(/_/g,"/"),function(V){k.ports[0].postMessage({success:!0,buyFlowResponse:V})},void 0,function(V){k.ports[0].postMessage({success:!1,
error:V&&V.message||"Buyflow rejected without error."})},_.nz().get("hl"),void 0,function(){k.ports[0].postMessage({closed:!0})},S,R)};
_.I.setupPlayerProgressRelay=function(){var k=this;if(!this.isListeningForPlayerProgress){var E=_.l_();E!=null&&E.getPlayerPromise&&(E.getPlayerPromise().then(function(S){k.playerApiReady(S)}),this.isListeningForPlayerProgress=!0)}};
_.I.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.I.playerApiReady=function(k){this.setPlayer(k)};
_.I.playerProgressHandler=function(){if(this.player){var k=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":k.current})}};
_.I.playerAdStartHandler=function(k){this.postToContentWindow({"yt-player-ad-start":k})};
_.I.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.I.playerStateChangeHandler=function(k){this.postToContentWindow({"yt-player-state-change":k})};
_.I.setPlayer=function(k){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22828_playerEvents);k&&(this.player=k,this.ytPlayerListenerBehavior.listenToPlayerEvents(k,this.JSC$22828_playerEvents),_.Me(this.hostElement,"player-api-ready"))};
_.I.liveChatPageUrl=function(k,E,S,R){return!S||E?"about:blank":S.liveChatRenderer?(E=_.Gx(this.currentPageUrl).JSC$10027_queryData_,Rug(E),k=_.Gx(k),E.add("continuation",S.liveChatRenderer.continuations[0].reloadContinuationData.continuation),S=_.aR()==="USER_INTERFACE_THEME_DARK",(R||S)&&E.add("dark_theme","true"),_.C3(k,E),R=_.Gx(k.toString()),S=R.JSC$10027_queryData_,"SESSION_INDEX"in _.s4&&(S.add("authuser",_.Mg("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.s4&&S.add("pageId",_.Mg("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.s4&&S.add("sdc",_.Mg("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),R.toString()):""};
_.I.isCollapsed=function(k,E){return E!==null?E:this.isChatReplay()||k&&k.conversationBarRenderer&&k.conversationBarRenderer.availabilityMessage?!0:k?k.liveChatRenderer?k.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.Y("live_chat_hide_premiere_replay_message")||k.conversationBarRenderer&&k.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.I.isHidden=function(k,E,S){var R=E&&E.conversationBarRenderer&&E.conversationBarRenderer.availabilityMessage,V=E&&E.liveChatRenderer&&E.liveChatRenderer.showHideButton,N=E&&E.liveChatRenderer&&E.liveChatRenderer.showButton;return S&&k&&!R&&!N||!S&&k&&!R&&!V?!0:E&&E.liveChatRenderer&&E.liveChatRenderer.initialDisplayState?E.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.I.computeButtonOverride=function(k,E){if(k&&E)return{type:"outline"}};
_.I.setCollapsedState=function(k){_.W(k,_.TZd)&&((this.isHiddenByUser=!!_.W(k,_.TZd).collapsed)||_.qe(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.I.forwardReduxActionToIframe=function(k){this.postToContentWindow({"yt-live-chat-forward-redux-action":k})};
_.I.onLoopRangeChange=function(k){this.showAboveScrim=!(k==null||!k.postId)};
_.I.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.I.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.I.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.I.sendDarkThemePostMessage=function(k){this.postToContentWindow({"yt-live-chat-set-dark-theme":k})};
_.I.onLiveChatBuyFlowCallback=function(k){this.postToContentWindow({"yt-live-chat-buy-flow-callback":k})};
_.I.handleKeyboardEvent=function(k){(0,_.fO.containsValue)(SgJ,k.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:k.type,keyCode:k.keyCode}})};
_.I.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.I.postToContentWindow=function(k){if(this.isFrameReady)try{var E=window.location.protocol+"//"+window.location.host,S;(S=this.chatframe)!=null&&S.contentWindow?this.chatframe.contentWindow.postMessage(k,E):_.dg(new _.LC("Tried posting a message to an iframe with no content window",k))}catch(R){_.bM(R)}};
_.I.shouldHideChatFrame=function(k){return k&&_.Y("hide_live_chat_button_when_collapsed")};
_.mt.Object.defineProperties(Uw.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.Y("live_chat_overflow_hide_chat")||_.Y("web_watch_chat_hide_button_killswitch"))return _.Y("live_chat_overflow_hide_chat");var k,E,S,R;return!!((k=this.data)==null?0:(E=k.liveChatRenderer)==null?0:(S=E.header)==null?0:(R=S.liveChatHeaderRenderer)==null?0:R.collapseButton)}}});
Uw.prototype.collapsedChanged=Uw.prototype.collapsedChanged;Uw.prototype.urlChanged=Uw.prototype.urlChanged;Uw.prototype.dataChanged=Uw.prototype.dataChanged;Uw.prototype.onShowHideChat=Uw.prototype.onShowHideChat;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Uw.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Uw.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],Uw.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.g(_.gA.YtOpenPopupBehavior),_.l("design:type",Object)],Uw.prototype,"ytOpenPopupBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Uw.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Uw.prototype,"currentPageUrl",void 0);
_.Z([_.H({computed:"computeBaseUrl(currentPageUrl,data)"}),_.l("design:type",Object)],Uw.prototype,"baseUrl",void 0);_.Z([_.H({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.l("design:type",String)],Uw.prototype,"url",void 0);_.Z([_.H(),_.l("design:type",Object)],Uw.prototype,"isHiddenByUser",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.l("design:type",Object)],Uw.prototype,"hidden",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.l("design:type",Boolean)],Uw.prototype,"collapsed",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.l("design:type",Boolean)],Uw.prototype,"hideChatFrame",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uw.prototype,"showAboveScrim",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uw.prototype,"watchNextGrid",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Uw.prototype,"modernButtons",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uw.prototype,"roundedContainer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uw.prototype,"noBorder",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Uw.prototype,"roundBackground",void 0);
_.Z([_.H({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.l("design:type",Object)],Uw.prototype,"toggleButtonOverride",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Uw.prototype,"overflowHideChat",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uw.prototype,"forceDarkTheme",void 0);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Uw.prototype,"enableShowWithoutHideChatButton",null);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Uw.prototype,"theaterWatchWhile",void 0);_.Z([_.JO("#chatframe"),_.l("design:type",HTMLIFrameElement)],Uw.prototype,"chatframe",void 0);_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uw.prototype,"onShowHideChat",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uw.prototype,"dataChanged",null);
_.Z([_.il("url"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uw.prototype,"urlChanged",null);_.Z([_.il("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Uw.prototype,"collapsedChanged",null);_.Z([_.D({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Uw);
_.b(Uw,"ytd-live-chat-frame",function(){if(XVF!==void 0)return XVF;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return XVF=k},{mode:1});var gZk;var Hc=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("web_modern_buttons");k.buttonOverrides={style:"call-to-action",type:"filled"};return k};
_.y(Hc,_.p);Hc.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=_.HT(this.data.backgroundColor)))};
Hc.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var k=this.getFormattedStringLoggingDirectives(this.data.headline);k&&this.rendererBehavior.logExplicitClick(k)}};
Hc.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var k=this.getFormattedStringLoggingDirectives(this.data.description);k&&this.rendererBehavior.logExplicitClick(k)}};
Hc.prototype.getFormattedStringLoggingDirectives=function(k){return k&&k.runs&&k.runs.length>0&&k.runs[0]&&k.runs[0].loggingDirectives?k.runs[0].loggingDirectives:null};
Hc.prototype.dataChanged=Hc.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Hc.prototype,"rendererBehavior",void 0);_.Z([_.g(c6U.YtMacroReplacementBehavior),_.l("design:type",Object)],Hc.prototype,"macroReplacementBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Hc.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Hc.prototype,"navigationEndpoint",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Hc.prototype,"enableColors",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hc.prototype,"modern",void 0);_.Z([_.H(),_.l("design:type",Object)],Hc.prototype,"buttonOverrides",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hc.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Hc);
_.b(Hc,"ytd-action-basic-immersive-content-renderer",function(){if(gZk!==void 0)return gZk;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return gZk=k},{mode:1});var UGS;var Hxk;var K7=function(){return _.p.apply(this,arguments)||this};
_.y(K7,_.p);K7.prototype.dataChanged=function(){var k;((k=this.data)==null?void 0:k.backgroundColor)!==void 0&&_.VO(this.hostElement,{"--bgu-color":_.HT(this.data.backgroundColor)})};
K7.prototype.onImageTileClick=function(){var k;((k=this.data)==null?0:k.navigationEndpoint)&&_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var E;((E=this.data)==null?0:E.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.mt.Object.defineProperties(K7.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var k;if(((k=this.data)==null?void 0:k.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 k;return((k=this.data)==null?void 0:k.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var k,E,S;if(((k=this.data)==null?void 0:(E=k.detailsLine)==null?void 0:E.texts)!=null&&((S=this.data)==null?void 0:S.detailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.detailsLine.texts.map(function(V){return V.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var k,E,S;if(((k=this.data)==null?void 0:(E=k.optionalDetailsLine)==null?void 0:E.texts)!=null&&((S=this.data)==null?void 0:S.optionalDetailsLine.texts.length)>0){var R;return(R=this.data)==null?void 0:R.optionalDetailsLine.texts.map(function(V){return V.text}).join("")}return null}}});
K7.prototype.dataChanged=K7.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],K7.prototype,"rendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],K7.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],K7.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.backgroundColor"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],K7.prototype,"hasBackgroundColor",null);
_.Z([_.U("data.objectFit"),_.l("design:type",Object),_.l("design:paramtypes",[])],K7.prototype,"getObjectFit",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.tileRenderingStyle"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],K7.prototype,"hasTileMetadata",null);_.Z([_.U("data.detailsLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],K7.prototype,"getSecondaryDetails",null);
_.Z([_.U("data.optionalDetailsLine"),_.l("design:type",Object),_.l("design:paramtypes",[])],K7.prototype,"getOptionalDetails",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],K7.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],K7);
_.b(K7,"ytd-image-tile-renderer",function(){if(Hxk!==void 0)return Hxk;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Hxk=k},{mode:1});var Kqk;var p7=function(){return _.p.apply(this,arguments)||this};
_.y(p7,_.p);p7.prototype.getOpenLinkIcon=function(){return _.Y("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
p7.prototype.onSitelinkTap=function(){_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.Y("kevlar_command_handler_migration_killswitch"))_.Ot(this.hostElement,this.data.clickCommands,this.hostElement);else for(var k=_.n(this.data.clickCommands),E=k.next();!E.done;E=k.next())this.ytComponentBehavior.resolveCommand(E.value)};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],p7.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],p7.prototype,"rendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],p7.prototype,"data",void 0);_.Z([_.D({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],p7);
_.b(p7,"ytd-sitelink-renderer",function(){if(Kqk!==void 0)return Kqk;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Kqk=k},{mode:1});var AF=function(){var k=_.p.apply(this,arguments)||this;k.paddingFix=_.Y("enable_ads_web_ep_buenos_aires_and_padding_fix");return k};
_.y(AF,_.p);AF.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"}}}};
AF.prototype.dataChanged=function(){var k=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;k.ytMacroReplacementBehavior.sendServiceRequestAction([E])})};
AF.prototype.shouldHideFooter=function(k){return!(k&&_.Y("use_ads_engagement_panel_desktop_footer_cta"))};
_.mt.Object.defineProperties(AF.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:k.imageTileRenderers)===void 0||((E=this.data)==null?void 0:E.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(S){var R;return(R=_.W(S,iVJ))==null?void 0:R.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:k.imageTileRenderers)===void 0||((E=this.data)==null?void 0:E.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(S){var R;return((R=_.W(S,iVJ))==null?void 0:R.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
AF.prototype.dataChanged=AF.prototype.dataChanged;_.Z([_.g(c6U.YtMacroReplacementBehavior),_.l("design:type",Object)],AF.prototype,"ytMacroReplacementBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],AF.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],AF.prototype,"paddingFix",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.imageTileRenderers"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AF.prototype,"removeBorderFromImageTiles",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.imageTileRenderers"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],AF.prototype,"useFooteredMetadataRenderingStyle",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],AF.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],AF);
_.b(AF,"ytd-action-engagement-panel-content-renderer",function(){if(UGS!==void 0)return UGS;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return UGS=k},{mode:1});var pVs;var A6N=_.f(function(k){var E=k.data;var S=k.customCommandResolver;return _.e("ad-grid-card-image-full-metadata-view-model",{class:function(){var R;return((R=E().interaction)==null?0:R.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.Z0(_.e9({visibilityCallback:function(R){var V,N=(V=E().interaction)==null?void 0:V.onFirstVisible;R&&N&&_.AV(N)},
showOption:_.m1}),_.gd(function(){return E().interaction},S)),
"aria-label":function(){var R,V;return(R=E().interaction)==null?void 0:(V=R.accessibility)==null?void 0:V.label}},_.e("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.e(_.cp,{data:function(){return E().adImage}},{adImageViewModel:function(R){return _.e(_.xp,{data:R.data,
customCommandResolver:S})}})),_.e("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.e(_.t,{cond:function(){return E().headline},
then:function(R){return _.e(_.VB,{text:R,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.e(_.t,{cond:function(){return E().detailsLine},
then:function(R){return _.e("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.e(_.cp,{data:R},{adDetailsLineViewModel:function(V){return _.e(_.WW,{data:V.data,customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.e(_.t,{cond:function(){return E().secondaryDetailsLine},
then:function(R){return _.e("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.e(_.cp,{data:R},{adDetailsLineViewModel:function(V){return _.e(_.WW,{data:V.data,customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"bn");var r6X=_.f(function(k){var E=k.data;var S=k.customCommandResolver;return _.e("ad-grid-card-image-view-model",{class:function(){var R;return((R=E().interaction)==null?0:R.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.Z0(_.e9({visibilityCallback:function(R){var V,N=(V=E().interaction)==null?void 0:V.onFirstVisible;R&&N&&_.AV(N)},
showOption:_.m1}),_.gd(function(){return E().interaction},S)),
"aria-label":function(){var R,V;return(R=E().interaction)==null?void 0:(V=R.accessibility)==null?void 0:V.label}},_.e(_.cp,{data:function(){return E().adImage}},{adImageViewModel:function(R){return _.e(_.xp,{data:R.data,
customCommandResolver:S})}}),_.e("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.e(_.cp,{data:function(){return E().adCardBadge}},{adCardBadgeViewModel:_.bad})))},"cn");var uTJ=_.f(function(k){var E=k.data;var S=k.customCommandResolver;return _.e("ad-grid-card-text-view-model",{class:function(){var R;return((R=E().interaction)==null?0:R.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.Z0(_.e9({visibilityCallback:function(R){var V,N=(V=E().interaction)==null?void 0:V.onFirstVisible;R&&N&&_.AV(N)},
showOption:_.m1}),_.gd(function(){return E().interaction},S)),
"aria-label":function(){var R,V;return(R=E().interaction)==null?void 0:(V=R.accessibility)==null?void 0:V.label}},_.e("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.e(_.t,{cond:function(){return E().title},
then:function(R){return _.e(_.VB,{text:R,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.e("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.e(_.jw,{each:function(){var R;
return((R=E())==null?void 0:R.descriptions)||[]},
keyBy:"INDEX"},function(R){return _.e(_.VB,{text:R,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.e("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.e(_.cp,{data:function(){return E().moreInfoButton}},{adButtonViewModel:function(R){return _.e(_.aT,{data:R.data,
customCommandResolver:S})}})))},"dn");var xGN=_.f(function(k){var E=k.data;var S=k.customCommandResolver;var R=k.adGridCardCollectionStyle;return _.e("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.Z0(_.e9({visibilityCallback:function(V){var N,h=(N=E().interaction)==null?void 0:N.onFirstVisible;V&&h&&_.AV(h)},
showOption:_.m1})),style:function(){return"grid-template-columns: repeat("+aKr(R?R():E().style)+", minmax(0, 1fr));"}},_.e(_.cp,{data:function(){var V;
return(V=E())==null?void 0:V.gridCards}},{adGridCardImageViewModel:function(V){return _.e(r6X,{data:V.data,
customCommandResolver:S})},
adGridCardImageFullMetadataViewModel:function(V){return _.e(A6N,{data:V.data,customCommandResolver:S})},
adGridCardTextViewModel:function(V){return _.e(uTJ,{data:V.data,customCommandResolver:S})}}))},"en");_.qi(_.f(function(k){var E=k.data;return _.e("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.Z0(_.e9({visibilityCallback:function(S){var R,V=(R=E().interaction)==null?void 0:R.onFirstVisible;S&&V&&_.AV(V)},
showOption:_.m1}),_.gd(function(){return E().interaction},TtJ))},_.e("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.e(_.t,{cond:_.m0i("(min-width: "+((0,_.JW)()+_.sd)+"px)"),
then:function(){return _.e(_.cp,{data:function(){return E().adGridCardCollection}},{adGridCardCollectionViewModel:function(S){return _.e(xGN,{data:S.data,
customCommandResolver:TtJ})}})},
else:function(){return _.e(_.cp,{data:function(){return E().adGridCardCollection}},{adGridCardCollectionViewModel:function(S){return _.e(xGN,{data:S.data,
customCommandResolver:TtJ,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.e("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.e(_.cp,{data:function(){return E().adButton}},{adButtonViewModel:function(S){return _.e(_.aT,{data:S.data,
customCommandResolver:TtJ})}})))},"fn"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;return _.e("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.Z0(_.e9({visibilityCallback:function(S){var R,V=(R=E().interaction)==null?void 0:R.onFirstVisible;S&&V&&_.AV(V)},
showOption:_.m1}),_.gd(function(){return E().interaction},wXs))},_.e("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.e(_.cp,{data:function(){if(_.m0i("(min-width: "+((0,_.JW)()+_.sd)+"px)")())var S=E().adGridCardCollection;
else{S=Object.assign({},_.W(E().adGridCardCollection,huX));var R;S.gridCards!==void 0&&((R=S.gridCards)==null?void 0:R.length)>1?S.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":S.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";S={adGridCardCollectionViewModel:S}}return S}},{adGridCardCollectionViewModel:function(S){return _.e(xGN,{data:S.data,
customCommandResolver:wXs})}})),_.e("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.e(_.cp,{data:function(){return E().adButton}},{adButtonViewModel:function(S){return _.e(_.aT,{data:S.data,
customCommandResolver:wXs})}})))},"gn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Nq}});var rC=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return k};
_.y(rC,_.p);_.I=rC.prototype;_.I.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"}}}};
_.I.attached=function(){this.getDataFromPlayerAndRender()};
_.I.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.I.getDataFromPlayerAndRender=function(){var k=this,E=_.s3(this.hostElement);E&&E.getPlayerPromise().then(function(S){k.getCachedDataAndListen(S)})};
_.I.getCachedDataAndListen=function(k){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(k,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(k,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=k)};
_.I.resolveCachedActions=function(){var k=_.CV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(k=k&&k())&&!_.fO.isEmpty(k)&&this.sendUpdateEngagementPanelAction(k);(k=(k=_.CV("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&k())&&!_.fO.isEmpty(k)&&this.sendChangeEngagementPanelVisibilityAction(k);(k=(k=_.CV("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&k())&&!_.fO.isEmpty(k)&&this.sendScrollToEngagementPanelCommand(k)};
_.I.sendUpdateEngagementPanelAction=function(k){var E;_.qe(this.hostElement,"yt-update-engagement-panel-action",[(E=_.fO.get(k,"action"))!=null?E:k])};
_.I.sendChangeEngagementPanelVisibilityAction=function(k){_.qe(this.hostElement,"yt-change-engagement-panel-visibility-action",[k])};
_.I.sendScrollToEngagementPanelCommand=function(k){_.qe(this.hostElement,"yt-scroll-to-engagement-panel-command",[k])};
_.I.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.Y("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.dg(Error("Uo"))};
rC.prototype.dataChanged=rC.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],rC.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],rC.prototype,"componentBehavior",void 0);_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],rC.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rC.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],rC.prototype,"player",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rC.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],rC);
_.b(rC,"ytd-ads-engagement-panel-content-renderer",function(){if(pVs!==void 0)return pVs;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return pVs=k},{mode:1});var LqS;var uq=function(){var k=_.p.apply(this,arguments)||this;k.player=null;k.JSC$22865_playerEvents=new Map;k.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return k};
_.y(uq,_.p);_.I=uq.prototype;_.I.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]]"}}}}}};
_.I.created=function(){this.player=null;this.JSC$22865_playerEvents=new Map;this.JSC$22865_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22865_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22865_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22865_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.I.attached=function(){var k=this,E=_.s3();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));E&&E.getPlayerPromise().then(function(S){k.setPlayer(S);k.set("isPageLoad",!1)})};
_.I.setPlayer=function(k){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22865_playerEvents);this.set("player",k);k&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(k,this.JSC$22865_playerEvents),k.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.I.onLoopRangeChange=function(k){var E=_.en().resolve(_.mz(_.ZD));if((!E||E.isOnWatch())&&this.hostElement.clientHeight){var S;!k&&((S=this.data)==null?0:S.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.I.onVideoProgress=function(k){var E,S,R=((E=this.player)==null?void 0:(S=E.getPresentingPlayerType)==null?void 0:S.call(E))===2;this.isAdPlaying!==R&&this.set("isAdPlaying",R);var V;if(!R&&(V=this.player)!=null&&V.getLoopRange()){S=this.player.getLoopRange();E=S.startTimeMs;S=S.endTimeMs;R=this.player.getProgressState(1).seekableStart;var N;E<R*1E3&&((N=this.data)==null?0:N.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
k=S<k*1E3;var h;((h=this.player)==null?0:h.getLoopRange())&&k&&this.player.seekTo(E/1E3)}};
_.I.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.I.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.I.onYtDeleteClipEngagementPanelCommand=function(k){_.W(k,okJ).command&&this.ytComponentBehavior.resolveCommand(_.W(k,okJ).command)};
_.mt.Object.defineProperties(uq.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.voteCount)||_.DE("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],uq.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],uq.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],uq.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],uq.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],uq.prototype,"isAdPlaying",void 0);_.Z([_.H({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],uq.prototype,"isPageLoad",void 0);_.Z([_.H({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],uq.prototype,"isDarkTheme",void 0);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],uq.prototype,"voteCount",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],uq.prototype,"channelEndpoint",null);_.Z([_.U("channelEndpoint"),_.l("design:type",Object),_.l("design:paramtypes",[])],uq.prototype,"channelHref",null);_.Z([_.D({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],uq);
_.b(uq,"ytd-clip-attribution-renderer",function(){if(LqS!==void 0)return LqS;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return LqS=k},{mode:1});var jHJ;var xI=function(){var k=_.p.apply(this,arguments)||this;k.player=null;k.JSC$22870_playerEvents=new Map;return k};
_.y(xI,_.p);_.I=xI.prototype;_.I.created=function(){this.player=null;this.JSC$22870_playerEvents=new Map;this.JSC$22870_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22870_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22870_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.I.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.I.attached=function(){var k=this,E=_.s3();E&&E.getPlayerPromise().then(function(S){k.setPlayer(S);k.set("isPageLoad",!1)})};
_.I.setPlayer=function(k){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22870_playerEvents);this.set("player",k);if(k){this.ytPlayerListenerBehavior.listenToPlayerEvents(k,this.JSC$22870_playerEvents);var E;(k==null?void 0:(E=k.getPresentingPlayerType)==null?void 0:E.call(k))===2&&this.playerAdStartHandler()}};
_.I.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.I.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.I.onVideoProgress=function(){var k,E,S=((k=this.player)==null?void 0:(E=k.getPresentingPlayerType)==null?void 0:E.call(k))===2;this.isAdPlaying!==S&&this.set("isAdPlaying",S)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],xI.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],xI.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],xI.prototype,"isAdPlaying",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],xI.prototype,"isPageLoad",void 0);_.Z([_.D({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],xI);
_.b(xI,"ytd-clip-section-footer-renderer",function(){if(jHJ!==void 0)return jHJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return jHJ=k},{mode:1});var DG$;var $GF;var fJr=function(){return _.p.apply(this,arguments)||this};
_.y(fJr,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fJr.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],fJr.prototype,"data",void 0);_.Z([_.D({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],fJr);
_.b(fJr,"ytd-clip-ad-state-renderer",function(){if($GF!==void 0)return $GF;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return $GF=k},{mode:1});var vZs;var L7=function(){var k=_.p.apply(this,arguments)||this;k.value="";k.valid=!1;k.userChangedValue=!1;k.disabled=!1;k.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return k};
_.y(L7,_.p);_.I=L7.prototype;_.I.detached=function(){this.userChangedValue=!1};
_.I.handleKeyDown=function(k){if(_.ze)var E=13;else _.Xed&&_.Qb?E=13:E=13;k.keyCode===E&&k.preventDefault()};
_.I.handleInput=function(){var k=_.Cc(this.hostElement).querySelector("#title");if(k){var E=(k.value||"").replace(/\r|\n/g," ");this.set("value",E);k.value=E;this.valid=k.validate();this.userChangedValue=!0}};
_.I.handleBlur=function(){this.valid=_.Cc(this.hostElement).querySelector("#title").validate()};
_.I.onValueChanged=function(){_.Me(this.hostElement,"title-changed",{title:this.value})};
_.I.onValidChanged=function(){_.Me(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.I.setInput=function(k,E){var S=_.Cc(this.hostElement).querySelector("#title");S&&(S.value=k,this.handleInput(),E&&(S.invalid=!1,this.valid=!0))};
_.I.onClipCreationDisable=function(){this.set("disabled",!0)};
_.I.onClipCreationEnable=function(){this.set("disabled",!1)};
_.I.onClipCreationVisibilityChange=function(k){var E=this;k.visible?requestAnimationFrame(function(){var S;((S=_.Cc(E.hostElement).querySelector("#title"))==null?void 0:S.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
L7.prototype.onValidChanged=L7.prototype.onValidChanged;L7.prototype.onValueChanged=L7.prototype.onValueChanged;L7.prototype.handleBlur=L7.prototype.handleBlur;L7.prototype.handleInput=L7.prototype.handleInput;L7.prototype.handleKeyDown=L7.prototype.handleKeyDown;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],L7.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],L7.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],L7.prototype,"value",void 0);_.Z([_.H(),_.l("design:type",Object)],L7.prototype,"valid",void 0);_.Z([_.H(),_.l("design:type",Object)],L7.prototype,"userChangedValue",void 0);_.Z([_.H(),_.l("design:type",Object)],L7.prototype,"disabled",void 0);_.Z([_.nv("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],L7.prototype,"handleKeyDown",null);
_.Z([_.nv("input"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L7.prototype,"handleInput",null);_.Z([_.nv("blur"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L7.prototype,"handleBlur",null);_.Z([_.il("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L7.prototype,"onValueChanged",null);
_.Z([_.il("valid"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L7.prototype,"onValidChanged",null);_.Z([_.D({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],L7);
_.b(L7,"ytd-clip-creation-text-input-renderer",function(){if(vZs!==void 0)return vZs;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vZs=k},{mode:1});var bx$;var ZxN;var dGg;var sHo;var lJJ;var jR=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};k.pendingStoryboardImages_={};k.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];k.tickLabelInterval=30;k.mediumTickInterval=5;k.largeTickInterval=15;k.aboveRulerHeight=32;k.rulerHeight=50;k.smallTickHeight=4;k.mediumTickHeight=8;k.largeTickHeight=16;k.mediaListeners_=
{};return k};
_.y(jR,_.p);_.I=jR.prototype;_.I.attached=function(){var k=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(E){E=_.n(["screen and (min-resolution: "+E+")","screen and (max-resolution: "+E+")"]);for(var S=E.next();!S.done;S=E.next()){S=S.value;var R=window.matchMedia(S);R&&(k.mediaListeners_[S]=k.updatePixelRatio_.bind(k),R.addEventListener?R.addEventListener("change",k.mediaListeners_[S]):R.addListener?R.addListener(k.mediaListeners_[S]):delete k.mediaListeners_[S])}})};
_.I.detached=function(){this.setPlayer(null);for(var k=_.n(Object.keys(this.mediaListeners_)),E=k.next();!E.done;E=k.next()){var S=E.value;E=this.mediaListeners_[S];(S=window.matchMedia(S))&&(S.removeEventListener?S.removeEventListener("change",E):S.removeListener&&S.removeListener(E))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.I.onVisibilityChangedAction_=function(k){var E=this;k.visible&&!this.player_&&(k=_.s3())&&k.getPlayerPromise().then(function(S){E.setPlayer(S)})};
_.I.setPlayer=function(k){k&&this.set("player_",k)};
_.I.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.I.setUpCanvas_=function(){var k=this.rulerWidth,E=this.devicePixelRatio_,S=this.visible;this.set("canvasReady_",!1);if(S&&E!==0){S=this.aboveRulerHeight+this.rulerHeight;var R=_.Cc(this.hostElement).querySelector("#ticks");R.width=k*E;R.height=S*E;R.style.width=k+"px";R.style.height=S+"px";R.getContext("2d").scale(E,E);this.set("canvasReady_",!0)}};
_.I.drawRuler_=function(k,E,S,R,V,N,h,J,m,a,T,w){k&&S&&E&&(k=_.Cc(this.hostElement).querySelector("#ticks"),E=k.getContext("2d"),E.clearRect(0,0,k.width,k.height),E.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),E.lineWidth=2,E.beginPath(),E.moveTo(0,this.aboveRulerHeight),E.lineTo(k.width,this.aboveRulerHeight),E.moveTo(0,k.height),E.lineTo(k.width,k.height),E.stroke(),this.drawRulerTicks_(k,N,V,R),this.drawStoryboardImages_(k,S,N,V,R),E.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
E.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(h-N,R,!1),this.rulerHeight),S=this.timeToPixels_(J-N,R,!1),E.fillRect(S,this.aboveRulerHeight,k.width-S,this.rulerHeight),this.drawSpeedLines_(k,N,w))};
_.I.drawRulerTicks_=function(k,E,S,R){var V=k.getContext("2d");V.save();V.lineWidth=1;for(var N=Math.floor(Math.max(0,E-this.tickLabelInterval));N<E+S;N++){V.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var h=(N-E)*R;V.beginPath();V.moveTo(h,k.height);var J=this.smallTickHeight;N%this.largeTickInterval===0?J=this.largeTickHeight:N%this.mediumTickInterval===0&&(J=this.mediumTickHeight);V.lineTo(h,k.height-J);V.stroke();N%this.tickLabelInterval===0&&(V.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),V.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),V.fillText(f8(N),h+4,12),V.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),V.moveTo(h,0),V.lineTo(h,this.aboveRulerHeight),V.stroke())}V.restore()};
_.I.percentToHex_=function(k){k=Math.round(k*255).toString(16);k.length<2&&(k="0"+k);return k};
_.I.drawSpeedLines_=function(k,E,S){var R=k.getContext("2d");R.save();var V=Math.min(25,Math.abs(S)-15)/25,N=k.width*.3*V,h=k.width*-.3,J=k.width*1.3,m=this.aboveRulerHeight;k=k.height;var a=Math.round(4*V),T=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");T.length<7&&(T="#"+T.substring(1,4).repeat(2));var w=this.percentToHex_(.5+V/2);w=T+w;T+="00";if(V>0)for(V=0;V<a;V++){var P=h+Math.random()*(J-h),B=m+Math.random()*(k-m),F=N+E%N,K=R.createLinearGradient(P,B,P+F,B);
S<0?(K.addColorStop(0,w),K.addColorStop(.4,w),K.addColorStop(.9,T)):(K.addColorStop(.1,T),K.addColorStop(.6,w),K.addColorStop(1,w));R.strokeStyle=K;R.lineWidth=1;R.beginPath();R.moveTo(P,B);R.lineTo(P+F,B);R.stroke()}R.restore()};
_.I.getStoryboardForTime_=function(k,E,S){S===void 0&&(S=E.getNumberOfStoryboardLevels()-1);k=E.getStoryboardFrameIndex(k,S);return E.getStoryboardFrame(k,S)};
_.I.drawStoryboardImages_=function(k,E,S,R,V){if(!this.disabled){k=k.getContext("2d");var N=this.getStoryboardForTime_(0,E);if(N){var h=N.width/N.columns;N=N.height/N.rows;var J=h/N,m=this.rulerHeight*J;m=this.tickLabelInterval*(J<this.tickLabelInterval*V/this.rulerHeight?1/Math.floor(this.tickLabelInterval*V/m):Math.round(m/(this.tickLabelInterval*V)));var a=m*V,T=this.rulerHeight,w=a/this.rulerHeight,P=Math.floor(Math.max(0,S-m));for(P-=P%m;P<S+R;P+=m){var B=this.getStoryboardForTime_(P,E),F=this.getPreloadedStoryboard_(B.url);
if(F){var K=(P-S)*V,r=this.aboveRulerHeight,x=B.column*h,L=B.row*N;if(J<w){var q=T/(a/J);B=h;q*=N;L+=(N-q)/2}else B=a/(T*J)*h,q=N,x+=(h-B)/2;k.drawImage(F,x,L,B,q,K,r,a,T)}else this.fetchStoryboardImage_(B)}}}};
_.I.getPreloadedStoryboard_=function(k){return this.storyboardImages_.find(function(E){if(E.src==k)return!0;var S=E.src.indexOf(k);return S!=-1&&S==E.src.length-k.length})};
_.I.fetchStoryboardImage_=function(k){var E=this,S=this.getPreloadedStoryboard_(k.url),R=this.pendingStoryboardImages_[k.url];S||R!==void 0||(S=new Promise(function(V){var N=new Image(k.width,k.height);N.src=k.url;N.onload=function(){V(N)};
N.onerror=function(){V(null)}}),this.pendingStoryboardImages_[k.url]=S,S.then(function(V){V&&E.push("storyboardImages_",V);
return V}).finally(function(){delete E.pendingStoryboardImages_[k.url]}))};
_.I.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.I.timeToPixels_=function(k,E,S){k*=E;return S===void 0||S?k+"px":k};
_.I.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
jR.prototype.drawRuler_=jR.prototype.drawRuler_;jR.prototype.setUpCanvas_=jR.prototype.setUpCanvas_;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],jR.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],jR.prototype,"start",void 0);_.Z([_.H({value:30}),_.l("design:type",Number)],jR.prototype,"end",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],jR.prototype,"visible",void 0);_.Z([_.H(),_.l("design:type",Object)],jR.prototype,"player_",void 0);_.Z([_.H(),_.l("design:type",Number)],jR.prototype,"tickSpacing",void 0);_.Z([_.H(),_.l("design:type",Number)],jR.prototype,"windowSizeSec",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],jR.prototype,"rulerWidth",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],jR.prototype,"rulerShift",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],jR.prototype,"canvasReady_",void 0);_.Z([_.H({value:function(){return[]}}),
_.l("design:type",Array)],jR.prototype,"storyboardImages_",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],jR.prototype,"disabled",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],jR.prototype,"forceRender_",void 0);_.Z([_.H({value:1}),_.l("design:type",Number)],jR.prototype,"devicePixelRatio_",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],jR.prototype,"windowSpeed",void 0);
_.Z([_.il("visible","devicePixelRatio_","rulerWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jR.prototype,"setUpCanvas_",null);
_.Z([_.il("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.l("design:returntype")],jR.prototype,"drawRuler_",null);_.Z([_.U_({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],jR);
_.b(jR,"yt-clip-creation-scrubber-canvas",function(){if(lJJ===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);lJJ=k}k=lJJ;return k},
{mode:2});var Mv$;var qQN;var Df=function(){var k=_.p.apply(this,arguments)||this;k.start=0;k.end=30;k.visible=!1;k.draggingLeft_=!1;k.draggingRight_=!1;k.draggingRuler_=!1;k.draggingWindow_=!1;k.seekableStart=0;k.seekableEnd=0;k.rulerWidth_=0;k.rulerShift_=0;k.windowSlideSpeed=0;k.disabled=!1;k.initialized=!1;k.durationAccessibilityLabel="";k.activeLoopRange_=!1;k.rulerDragMouseStart_=0;k.rulerDragRulerStart_=0;k.rulerDragStartTime_=0;k.rulerDragEndTime_=0;k.dragMouseLastX_=0;k.scrollInterval_=null;k.scrubberVe_=null;k.boundHandlers_=
{};k.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return k};
_.y(Df,_.p);_.I=Df.prototype;
_.I.created=function(){var k=this;this.JSC$22883_playerEvents=new Map;this.JSC$22883_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22883_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22883_playerEvents.set("onStateChange",this.onStateChange_);var E={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(E).forEach(function(S){k.boundHandlers_[S]=E[S].bind(k)})};
_.I.attached=function(){this.activeLoopRange_=!1;_.Cc(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Cc(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.kh(156731)};
_.I.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Cc(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Cc(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.I.onVisibilityChangedAction_=function(k){var E=this;k.visible&&!this.player_&&(k=_.s3())&&k.getPlayerPromise().then(function(S){E.setPlayer(S)})};
_.I.setPlayer=function(k){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22883_playerEvents);k&&(this.set("player_",k),this.ytPlayerListenerBehavior.listenToPlayerEvents(k,this.JSC$22883_playerEvents))};
_.I.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.I.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.I.beginHandleDrag_=function(k){this.disabled||(k.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=k.clientX,k.target===_.Cc(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():k.target===_.Cc(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.I.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.I.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.I.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.I.beginRulerDrag_=function(k){this.disabled||(k.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=k.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.I.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.I.beginWindowScroll_=function(){var k=this;this.scrollInterval_=setInterval(function(){var E=k.windowSlideSpeed;if(E=_.W7r(k.start,k.boundedRulerStartLimit_())?E-.1:_.W7r(k.end,k.boundedRulerEndLimit_())?E+.1:0){var S=k.capRulerOffset_(k.rulerShift_+E);S==k.rulerShift_?E=0:(k.set("rulerShift_",S),_.Me(k.hostElement,"set-fixed-length-range",{start:k.start+E,duration:k.end-k.start}))}k.set("windowSlideSpeed",E)},33)};
_.I.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.I.endDrag_=function(){this.logClick();var k=void 0;this.draggingRight_?k=this.end-1:this.draggingLeft_&&(k=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,k);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))};
_.I.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.I.updateRulerSize_=function(){this.set("rulerWidth_",_.Cc(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.I.handleMouseDrag_=function(k){k.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(k):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(k):this.draggingWindow_&&this.handleWindowDrag_(k))};
_.I.handleRulerDrag_=function(k){k=this.pixelsToTime_(k.clientX-this.rulerDragMouseStart_);k=this.capRulerOffset_(this.rulerDragRulerStart_-k);this.set("rulerShift_",k);var E=this.rulerDragStartTime_-(this.rulerDragRulerStart_-k);_.Me(this.hostElement,"set-fixed-length-range",{start:E,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-k)-E})};
_.I.handleWindowDrag_=function(k){var E=k.clientX-this.dragMouseLastX_;this.dragMouseLastX_=k.clientX;k=this.pixelsToTime_(E);_.Me(this.hostElement,"set-fixed-length-range",{start:this.start+k,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.I.capRulerOffset_=function(k){var E=this.seekableStart-this.pixelsToTime_(16),S=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(E,k),S)};
_.I.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.I.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.I.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.I.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.I.handleWindowHandleDrag_=function(k){var E=k.clientX-this.dragMouseLastX_;this.dragMouseLastX_=k.clientX;k=this.pixelsToTime_(E);if(this.draggingLeft_){var S=this.start+k;var R=this.end}else this.draggingRight_&&(S=this.start,R=this.end+k);_.Me(this.hostElement,"set-range",{start:S,end:R,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.I.onVideoProgress_=function(k){this.disabled||(k=this.timeToPixels_(k-this.rulerShift_,this.tickSpacing_),_.Cc(this.hostElement).querySelector("#playhead").style.transform="translateX("+k+")")};
_.I.onClipCreationDisable_=function(){this.endDrag_()};
_.I.timeToPixels_=function(k,E,S){k*=E;return S===void 0||S?k+"px":k};
_.I.pixelsToTime_=function(k){return k/this.tickSpacing_};
_.I.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.I.centerRuler_=function(k,E,S){this.set("rulerShift_",this.capRulerOffset_(k+(E-k)/2-S/2))};
_.I.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.I.updateLoopRange_=function(k,E,S,R,V,N,h){k&&(E&&R&&!S?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(k.pauseVideo(),k.seekTo(V,!1,void 0,void 0,50)):this.draggingRight_?(k.pauseVideo(),k.seekTo(N-.1,!1,void 0,void 0,50)):(h!==void 0?k.seekTo(h,!0,void 0,void 0,50):(E=k.getCurrentTime(),E<V||E>N?k.seekTo(V,!0,void 0,void 0,50):k.seekTo(E,!0,void 0,void 0,50)),k.playVideo()),k.setLoopRange({startTimeMs:V*1E3,endTimeMs:N*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(k.getCurrentTime())):
this.activeLoopRange_&&(k.setLoopRange(null),this.activeLoopRange_=!1))};
_.I.updateHandles_=function(){_.Cc(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Cc(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.I.updateRuler_=function(){var k=this.end,E=this.start,S=this.draggableStartLimit_(),R=this.draggableEndLimit_();(E<S-.001||k>R+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.I.computeDurationLabel_=function(k,E){return k?k.replace("$clip_length",parseFloat(E).toFixed(1)):""};
_.I.computeDuration_=function(k,E){return this.isValidTime_(k)&&this.isValidTime_(E)&&k<E?E-k:0};
_.I.isValidTime_=function(k){return isNaN(parseFloat(k))||k<0?!1:this.player_?k>=this.seekableStart&&k<=this.seekableEnd:!0};
_.I.computeWindowSizeSec_=function(k,E,S){return Math.min((k||12E4)/1E3,S-E)};
_.I.computeTickSpacing_=function(k,E){return E?E/k:1};
_.I.onDragStateChanged_=function(){_.Me(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.I.centerRangeOnTime_=function(k){var E=this.duration;k=BtU(k-E/2,E,this.seekableStart,this.seekableEnd);_.Me(this.hostElement,"set-fixed-length-range",{start:k.start,duration:k.end-k.start})};
_.I.nearlyLessThan_=function(k,E,S){return k+(S===void 0?1E-6:S)<E};
_.I.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var k=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(k,this.start)||this.nearlyLessThan_(this.end,k))&&this.centerRangeOnTime_(k)}};
_.I.onStateChange_=function(k){this.visible&&!this.disabled&&k==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.I.computeDragState_=function(k,E,S,R){return k?"left":E?"right":S?"ruler":R?"window":"none"};
_.I.logClick=function(){var k=_.Fe(),E=_.Wi();k&&E&&this.scrubberVe_&&(_.Y("combine_ve_grafts")?_.Bq(_.JV(),this.scrubberVe_,E):_.rq(k,E,this.scrubberVe_),_.Dv(k,this.scrubberVe_))};
Df.prototype.onDragStateChanged_=Df.prototype.onDragStateChanged_;Df.prototype.updateRuler_=Df.prototype.updateRuler_;Df.prototype.updateHandles_=Df.prototype.updateHandles_;Df.prototype.onUpdateLoopRange=Df.prototype.onUpdateLoopRange;Df.prototype.onInitializedChanged_=Df.prototype.onInitializedChanged_;Df.prototype.onVisibleChanged_=Df.prototype.onVisibleChanged_;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Df.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",Object)],Df.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"start",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"end",void 0);_.Z([_.H({computed:"computeDuration_(start, end)"}),_.l("design:type",Number)],Df.prototype,"duration",void 0);
_.Z([_.H(),_.l("design:type",String)],Df.prototype,"lengthTemplate",void 0);_.Z([_.H({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.l("design:type",String)],Df.prototype,"durationLabel",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"visible",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"player_",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"draggingLeft_",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"draggingRight_",void 0);
_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"draggingRuler_",void 0);_.Z([_.H({value:!1}),_.l("design:type",Object)],Df.prototype,"draggingWindow_",void 0);_.Z([_.H({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.l("design:type",Number)],Df.prototype,"tickSpacing_",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"seekableStart",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"seekableEnd",void 0);
_.Z([_.H(),_.l("design:type",Number)],Df.prototype,"windowSizeMs",void 0);_.Z([_.H({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.l("design:type",Number)],Df.prototype,"windowSizeSec_",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"rulerWidth_",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"rulerShift_",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"windowSlideSpeed",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Df.prototype,"disabled",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"initialized",void 0);_.Z([_.H(),_.l("design:type",Object)],Df.prototype,"durationAccessibilityLabel",void 0);_.Z([_.H({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.l("design:type",String)],Df.prototype,"dragState",void 0);
_.Z([_.il("visible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Df.prototype,"onVisibleChanged_",null);_.Z([_.il("initialized"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Df.prototype,"onInitializedChanged_",null);_.Z([_.il("player_","visible","disabled","initialized","start","end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Df.prototype,"onUpdateLoopRange",null);
_.Z([_.il("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Df.prototype,"updateHandles_",null);_.Z([_.il("start","end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Df.prototype,"updateRuler_",null);
_.Z([_.il("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Df.prototype,"onDragStateChanged_",null);_.Z([_.U_({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Df);
_.b(Df,"yt-clip-creation-scrubber-view",function(){if(qQN===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Mv$===void 0&&(Mv$=document.createElement("template"));var R=Mv$;S.call(E,R.content.cloneNode(!0),k.content.firstChild);qQN=k}k=qQN;return k},{mode:2});var $I=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};k.startHighlightTimeout=0;k.endHighlightTimeout=0;return k};
_.y($I,_.p);_.I=$I.prototype;_.I.attached=function(){var k=this;this.startInput.addEventListener("input",function(E){return k.handleStartInput_(E)});
this.endInput.addEventListener("input",function(E){return k.handleEndInput_(E)});
this.startInput.addEventListener("focusout",function(E){return k.handleStartBlur_(E)});
this.endInput.addEventListener("focusout",function(E){return k.handleEndBlur_(E)})};
_.I.setPlayer=function(k){this.set("player_",k)};
_.I.onSetFixedLengthRange_=function(k){var E=k.detail;k=E.start;var S=E.duration,R=E.startLimit;E=E.endLimit;R||(R=this.seekableStart_);E||(E=this.seekableEnd_);k=BtU(k,S,R,E);this.start=k.start;this.end=k.end};
_.I.onSetRange_=function(k){var E=k.detail;k=E.start;var S=E.end,R=E.startLimit;E=E.endLimit;R||(R=this.seekableStart_);E||(E=this.seekableEnd_);if(k=YmS(k,S,R,E,this.minLengthSec,this.maxLengthSec))this.start=k.start,this.end=k.end};
_.I.updateInputs_=function(){var k=this.end,E=this.start;this.startInput.focused||(this.startInput.value=f8(E,!0));this.endInput.focused||(this.endInput.value=f8(k,!0))};
_.I.handleStartInput_=function(k){k=PIS(k.target.value);if(k===null)this.set("startValid",!1);else{var E=this.end,S=YmS(k,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);S?(this.set("endWillUpdate",S.end!==E),this.set("startValid",S.start===k)):this.set("startValid",!1)}};
_.I.handleEndInput_=function(k){k=PIS(k.target.value);if(k===null)this.set("endValid",!1);else{var E=this.start,S=WhU(this.start,k,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);S?(this.set("startWillUpdate",S.start!==E),this.set("endValid",S.end===k)):this.set("endValid",!1)}};
_.I.handleStartBlur_=function(k){k=PIS(k.target.value);k===null?this.startInput.value=f8(this.start,!0):this.forceUpdateInputs_(YmS(k,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.I.handleEndBlur_=function(k){k=PIS(k.target.value);k===null?this.endInput.value=f8(this.end,!0):this.forceUpdateInputs_(WhU(this.start,k,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.I.forceUpdateInputs_=function(k){k&&(this.start=k.start,this.end=k.end);this.startInput.value=f8(this.start,!0);this.endInput.value=f8(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.I.initializeClipRange_=function(){var k=this.seekableEnd_,E=this.seekableStart_,S=this.visible_,R=this.player_;if(!R||!S||E===null||!k)this.set("initialized",!1);else if(!this.initialized){var V=R.getCurrentTime(),N=this.getDefaultLengthSec_();S=R.getVideoData();var h=R.getPlayerState()==1,J=S.isLive;N=Math.min(N,k-E);V=Math.max(0,V);k=J?WhU(V-N,V,E,k,this.minLengthSec,this.maxLengthSec):h?BtU(V-N/2,N,E,k):BtU(V,N,E,k);this.start=k.start;this.end=k.end;this.set("initialized",!0);S.isLive&&R.seekTo(k.start);
this.startInput.value=f8(this.start,!0);this.endInput.value=f8(this.end,!0)}};
_.I.onStartChanged_=function(){var k=this;_.Me(this.hostElement,"start-changed",{start:this.start});var E;isNaN((E=this.oldStart)!=null?E:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){k.set("highlightStart",!1);k.startHighlightTimeout=0;k.oldStart=k.start},3E3))};
_.I.onEndChanged_=function(){var k=this;_.Me(this.hostElement,"end-changed",{end:this.end});var E;isNaN((E=this.oldEnd)!=null?E:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){k.set("highlightEnd",!1);k.endHighlightTimeout=0;k.oldEnd=k.end},3E3))};
_.I.onVisibilityChangedAction_=function(k){var E=this;this.set("visible_",k.visible);this.visible_&&!this.player_&&(k=_.s3())&&k.getPlayerPromise().then(function(S){E.setPlayer(S)})};
_.I.computeMinLengthSec_=function(k){return k/1E3||5};
_.I.computeMaxLengthSec_=function(k){return k/1E3||60};
_.I.computeDefaultLengthSec_=function(k){return k/1E3};
_.I.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.I.computeSeekableStart_=function(k,E){return k&&E?k.getProgressState(1).seekableStart:0};
_.I.computeSeekableEnd_=function(k,E){return k&&E?k.getProgressState(1).seekableEnd:0};
_.I.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.I.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.I.onDragState_=function(k){this.set("highlightStart",k.detail.startChanging);this.set("highlightEnd",k.detail.endChanging)};
$I.prototype.onDragState_=$I.prototype.onDragState_;$I.prototype.onEndChanged_=$I.prototype.onEndChanged_;$I.prototype.onStartChanged_=$I.prototype.onStartChanged_;$I.prototype.initializeClipRange_=$I.prototype.initializeClipRange_;$I.prototype.updateInputs_=$I.prototype.updateInputs_;$I.prototype.onSetRange_=$I.prototype.onSetRange_;$I.prototype.onSetFixedLengthRange_=$I.prototype.onSetFixedLengthRange_;
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],$I.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$I.prototype,"data",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],$I.prototype,"start",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],$I.prototype,"startValid",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],$I.prototype,"startWillUpdate",void 0);_.Z([_.H({value:30}),_.l("design:type",Number)],$I.prototype,"end",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],$I.prototype,"endValid",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],$I.prototype,"endWillUpdate",void 0);_.Z([_.H({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.l("design:type",Number)],$I.prototype,"minLengthSec",void 0);
_.Z([_.H({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.l("design:type",Number)],$I.prototype,"maxLengthSec",void 0);_.Z([_.H({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.l("design:type",Number)],$I.prototype,"defaultLengthSec",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],$I.prototype,"visible_",void 0);_.Z([_.H(),_.l("design:type",Object)],$I.prototype,"player_",void 0);
_.Z([_.H({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.l("design:type",Number)],$I.prototype,"seekableStart_",void 0);_.Z([_.H({computed:"computeSeekableEnd_(player_, visible_)"}),_.l("design:type",Number)],$I.prototype,"seekableEnd_",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],$I.prototype,"initialized",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],$I.prototype,"disabled",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],$I.prototype,"highlightStart",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],$I.prototype,"highlightEnd",void 0);_.Z([_.JO("#start"),_.l("design:type",HTMLInputElement)],$I.prototype,"startInput",void 0);_.Z([_.JO("#end"),_.l("design:type",HTMLInputElement)],$I.prototype,"endInput",void 0);
_.Z([_.nv("set-fixed-length-range"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$I.prototype,"onSetFixedLengthRange_",null);_.Z([_.nv("set-range"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$I.prototype,"onSetRange_",null);_.Z([_.il("start","end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$I.prototype,"updateInputs_",null);
_.Z([_.il("player_","visible_","seekableStart_","seekableEnd_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$I.prototype,"initializeClipRange_",null);_.Z([_.il("start"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$I.prototype,"onStartChanged_",null);_.Z([_.il("end"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$I.prototype,"onEndChanged_",null);
_.Z([_.nv("clips-drag-state"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$I.prototype,"onDragState_",null);_.Z([_.U_({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],$I);
_.b($I,"yt-clip-creation-scrubber-renderer",function(){if(sHo===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;dGg===void 0&&(dGg=document.createElement("template"));var R=dGg;S.call(E,R.content.cloneNode(!0),k.content.firstChild);sHo=k}k=sHo;return k},{mode:2});var f7=function(){var k=_.p.apply(this,arguments)||this;k.player_=null;k.JSC$22897_playerEvents=new Map;k.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return k};
_.y(f7,_.p);_.I=f7.prototype;_.I.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"}}}};
_.I.created=function(){this.JSC$22897_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22897_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22897_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22897_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.I.detached=function(){this.setPlayer(null)};
_.I.onVisibilityChangedAction_=function(k){var E=this,S;if((S=this.data)==null?0:S.externalVideoId){var R;this.videoId=(R=this.data)==null?void 0:R.externalVideoId}this.getPlayer().then(function(V){if(k.visible)E.returnTime=V.getCurrentTime(),E.isAtLiveHead=V.getProgressState().isAtLiveHead;else{var N=E.returnTime;E.isAtLiveHead&&(N=Number.POSITIVE_INFINITY);V.seekTo(N,void 0,void 0,void 0,51)}})};
_.I.getPlayer=function(){var k=this;if(!this.player_){var E=_.s3();if(E)return E.getPlayerPromise().then(function(S){k.setPlayer(S);return S})}return Promise.resolve(this.player_)};
_.I.setPlayer=function(k){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22897_playerEvents);if(k){this.player_=k;var E;((E=this.data)==null?0:E.externalVideoId)||this.set("videoId",k.getVideoData().video_id||"");var S;(k==null?void 0:(S=k.getPresentingPlayerType)==null?void 0:S.call(k))===2&&(this.set("isAdPlaying",!0),_.qe(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(k,this.JSC$22897_playerEvents)}};
_.I.ready=function(){_.Cc(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.I.onTitleChanged_=function(k){this.set("titleValue",k.detail.title)};
_.I.onStartChanged_=function(k){this.set("start",k.detail.start)};
_.I.onEndChanged_=function(k){this.set("end",k.detail.end)};
_.I.onTitleValidChanged_=function(k){this.set("titleValid",k.detail.valid)};
_.I.onStartValidChanged_=function(k){this.set("startValid",k.detail.valid)};
_.I.onEndValidChanged_=function(k){this.set("endValid",k.detail.valid)};
_.I.onVideoDataChange_=function(){var k;if((k=this.data)==null||!k.externalVideoId){var E;this.set("videoId",((E=this.player_)==null?void 0:E.getVideoData().video_id)||"")}};
_.I.computeFormValid_=function(k,E,S,R){return!!(k&&E&&S&&R)};
_.I.computeCancelButton_=function(k,E,S){return k&&_.W(k,_.dZ)?{buttonRenderer:Object.assign({},_.W(k,_.dZ),{isDisabled:E||S})}:null};
_.I.computeSubmitButton_=function(k,E,S){return k&&_.W(k,_.dZ)?{buttonRenderer:Object.assign({},_.W(k,_.dZ),{command:void 0,isDisabled:!this.formValid||E||S})}:null};
_.I.computeSubmitCommand_=function(k){return k||null};
_.I.onSubmit_=function(k){var E=this;k.stopPropagation();k.preventDefault();this.submitCommand_&&(k={},k.comment_text=this.titleValue,k.clip_external_video_id=this.videoId,k.clip_offset_ms=parseInt(this.start*1E3,10),k.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Qw(this.hostElement,[this.submitCommand_,k]).then(function(){E.set("isLoading_",!1)},function(){E.set("isLoading_",!1)}))};
_.I.playerAdStartHandler_=function(){_.qe(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.I.playerAdEndHandler_=function(){_.qe(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.I.onVideoProgress_=function(){var k=this;this.getPlayer().then(function(E){var S,R=(E==null?void 0:(S=E.getPresentingPlayerType)==null?void 0:S.call(E))===2;k.isAdPlaying!==R&&(R?k.playerAdStartHandler_():k.playerAdEndHandler_())})};
f7.prototype.onEndValidChanged_=f7.prototype.onEndValidChanged_;f7.prototype.onStartValidChanged_=f7.prototype.onStartValidChanged_;f7.prototype.onTitleValidChanged_=f7.prototype.onTitleValidChanged_;f7.prototype.onEndChanged_=f7.prototype.onEndChanged_;f7.prototype.onStartChanged_=f7.prototype.onStartChanged_;f7.prototype.onTitleChanged_=f7.prototype.onTitleChanged_;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],f7.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",Object)],f7.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],f7.prototype,"data",void 0);_.Z([_.H({value:""}),_.l("design:type",String)],f7.prototype,"titleValue",void 0);
_.Z([_.H({value:!1}),_.l("design:type",Boolean)],f7.prototype,"titleValid",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],f7.prototype,"start",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],f7.prototype,"startValid",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],f7.prototype,"end",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],f7.prototype,"endValid",void 0);_.Z([_.H({value:""}),_.l("design:type",String)],f7.prototype,"videoId",void 0);
_.Z([_.H({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.l("design:type",Boolean)],f7.prototype,"formValid",void 0);_.Z([_.H({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.l("design:type",Object)],f7.prototype,"submitButton_",void 0);_.Z([_.H({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.l("design:type",Object)],f7.prototype,"submitCommand_",void 0);
_.Z([_.H({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.l("design:type",Object)],f7.prototype,"cancelButton_",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],f7.prototype,"isLoading_",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],f7.prototype,"isAdPlaying",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],f7.prototype,"returnTime",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],f7.prototype,"isAtLiveHead",void 0);
_.Z([_.nv("title-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],f7.prototype,"onTitleChanged_",null);_.Z([_.nv("start-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],f7.prototype,"onStartChanged_",null);_.Z([_.nv("end-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],f7.prototype,"onEndChanged_",null);
_.Z([_.nv("title-valid-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],f7.prototype,"onTitleValidChanged_",null);_.Z([_.nv("start-valid-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],f7.prototype,"onStartValidChanged_",null);_.Z([_.nv("end-valid-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],f7.prototype,"onEndValidChanged_",null);
_.Z([_.U_({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],f7);
_.b(f7,"yt-clip-creation-renderer",function(){if(ZxN===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;bx$===void 0&&(bx$=document.createElement("template"));var R=bx$;S.call(E,R.content.cloneNode(!0),k.content.firstChild);ZxN=k}k=ZxN;return k},{mode:2});var vc=function(){return _.p.apply(this,arguments)||this};
_.y(vc,_.p);vc.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"}}}};
vc.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(k){return k.hasOwnProperty("clipCreationRenderer")})&&_.qe(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
vc.prototype.onPanelContentVisibleChanged=vc.prototype.onPanelContentVisibleChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.kB.YtVisibilityBehavior),_.l("design:type",Object)],vc.prototype,"ytVisibilityBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],vc.prototype,"ytdReduxBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],vc.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],vc.prototype,"panelContentVisible",void 0);_.Z([_.il("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vc.prototype,"onPanelContentVisibleChanged",null);_.Z([_.D({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],vc);
_.b(vc,"ytd-clip-section-renderer",function(){if(DG$!==void 0)return DG$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return DG$=k},{mode:1});var zdr;var bq=function(){return _.p.apply(this,arguments)||this};
_.y(bq,_.p);_.I=bq.prototype;
_.I.onKeyDown=function(k){if(this.snippetElements.length!==0&&(k=k.keyCode,k===38||k===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);k===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Bt(this.highlightedIndex,-1,this.snippetElements.length);k=this.snippetElements.length;var E=this.highlightedIndex%k;this.highlightedIndex=E*k<0?E+k:E;k=this.snippetElements[this.highlightedIndex];this.highlightSnippet(k);this.ensureVisible(k)}};
_.I.onKeyUp=function(k){var E=this;I_X(k)&&(k.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.ZJ.cancelJob(this.inputTimerId),this.inputTimerId=_.ZJ.addLowPriorityJob(function(){E.typedValue&&(E.fetchSnippets(E.typedValue),E.logInputGesture(E.data))},1E3))};
_.I.onClick=function(k){(k=_.t1T(k.target,null,"snippet-item"))&&this.selectSnippet(k)};
_.I.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.I.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.I.ready=function(){var k=this;this.inputElement.addEventListener("focus",function(){k.snippetsWrapper.style.removeProperty("display")})};
_.I.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.I.getSourceTimelines=function(){if(!this.data)return[];var k=[];if(this.data.searchInVideoSources)for(var E=_.n(this.data.searchInVideoSources),S=E.next();!S.done;S=E.next())S=S.value,S==="SEARCH_IN_VIDEO_SOURCE_ASR"?k.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):S==="SEARCH_IN_VIDEO_SOURCE_OCR"&&k.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return k};
_.I.fetchSnippets=function(k){var E=_.qe(this.hostElement,"yt-get-current-video-id-action")[0],S=this.getSourceTimelines();k={getSearchInVideoCommand:{externalVideoId:E,query:k!=null?k:"",sourceTimelines:S},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}})};
_.I.filterSnippets=function(k,E){var S=this;if(E){this.filteredSnippets=(0,_.fO.unsafeClone)(k);var R=RegExp(_.UNm(E),"i");this.filteredSnippets=this.filteredSnippets.filter(function(h){return R.test(S.ytRendererBehavior.getSimpleString(h.snippet))});
k=_.n(this.filteredSnippets);for(var V=k.next();!V.done;V=k.next()){V=V.value;var N=this.ytRendererBehavior.getSimpleString(V.snippet);V.snippet={runs:[{text:N.substring(0,N.toLowerCase().indexOf(E))},{text:N.substring(N.toLowerCase().indexOf(E),N.toLowerCase().indexOf(E)+E.length),bold:!0},{text:N.substring(N.toLowerCase().indexOf(E)+E.length,N.length)}]}}}else this.filteredSnippets=k};
_.I.onUpdateSearchInVideoResults=function(k){if(!(this.snippets.length>0)){var E,S,R;if((R=(E=_.W(k,P$S))==null?void 0:(S=E.results)==null?void 0:S.length)!=null&&R){var V;this.filteredSnippets=this.snippets=((V=_.W(k,P$S))==null?void 0:V.results).map(function(N){var h,J,m;return{startMs:N==null?void 0:(h=N.searchInVideoResultRenderer)==null?void 0:h.startMs,startTimeText:N==null?void 0:(J=N.searchInVideoResultRenderer)==null?void 0:J.startTimeText,snippet:N==null?void 0:(m=N.searchInVideoResultRenderer)==
null?void 0:m.snippet}})}}};
_.I.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};
_.I.highlightSnippet=function(k){k.classList.add("highlighted")};
_.I.removeSnippetHighlight=function(k){k.classList.remove("highlighted")};
_.I.selectSnippet=function(k){this.typedValue=String(k.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(k);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.I.ensureVisible=function(k){var E=this.snippetsWrapper.scrollTop,S=E+this.snippetsWrapper.clientHeight,R=k.offsetTop-this.snippetsWrapper.offsetTop;k=R+k.clientHeight;R<E?this.snippetsWrapper.scrollTop-=E-R:k>S&&(this.snippetsWrapper.scrollTop+=k-S)};
_.I.seekPlayer=function(k){var E,S;return _.c(function(R){if(R.nextAddress==1){if(!k)return R.jumpTo(0);E=Number(k.dataset.startOffset);return R.yield(_.l_().getPlayerPromise(),3)}S=R.yieldResult;S.seekTo(E/1E3,!0);S.wakeUpControls();_.KR(R)})};
_.I.logInputGesture=function(k){var E=_.Fe();E&&(k==null?0:k.trackingParams)&&_.$A(E,_.tV(k.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.I.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("typed-value-changed",this.typedValue))};
_.I.updateTypedValueFromBinding=function(k){this.typedValue=k.currentTarget.value};
bq.prototype.typedValueChangedForBinding=bq.prototype.typedValueChangedForBinding;bq.prototype.dataChanged=bq.prototype.dataChanged;bq.prototype.panelContentVisibleChanged=bq.prototype.panelContentVisibleChanged;bq.prototype.onClick=bq.prototype.onClick;bq.prototype.onKeyUp=bq.prototype.onKeyUp;bq.prototype.onKeyDown=bq.prototype.onKeyDown;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],bq.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bq.prototype,"data",void 0);_.Z([_.H({value:[]}),_.l("design:type",Array)],bq.prototype,"snippets",void 0);_.Z([_.H({value:[]}),_.l("design:type",Array)],bq.prototype,"filteredSnippets",void 0);_.Z([_.H({value:[]}),_.l("design:type",Array)],bq.prototype,"snippetElements",void 0);
_.Z([_.JO("#siv-input"),_.l("design:type",HTMLElement)],bq.prototype,"inputElement",void 0);_.Z([_.JO("#siv-snippets-wrapper"),_.l("design:type",HTMLElement)],bq.prototype,"snippetsWrapper",void 0);_.Z([_.H(),_.l("design:type",String)],bq.prototype,"typedValue",void 0);_.Z([_.H({value:-1}),_.l("design:type",Number)],bq.prototype,"highlightedIndex",void 0);_.Z([_.nv("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[_.eL]),_.l("design:returntype")],bq.prototype,"onKeyDown",null);
_.Z([_.nv("keyup"),_.l("design:type",Function),_.l("design:paramtypes",[_.eL]),_.l("design:returntype")],bq.prototype,"onKeyUp",null);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],bq.prototype,"onClick",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],bq.prototype,"panelContentVisible",void 0);
_.Z([_.il("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bq.prototype,"panelContentVisibleChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bq.prototype,"dataChanged",null);_.Z([_.il("typedValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bq.prototype,"typedValueChangedForBinding",null);
_.Z([_.D({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],bq);
_.b(bq,"ytd-search-in-video-renderer",function(){if(zdr!==void 0)return zdr;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return zdr=k},{mode:1});var QHo;var Zf=function(){return _.p.apply(this,arguments)||this};
_.y(Zf,_.p);Zf.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
Zf.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]]"}}}}}};
Zf.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var k,E,S,R,V=(E=_.W((k=this.data)==null?void 0:k.onClickCommand,_.JfY))==null?void 0:(S=E.item)==null?void 0:(R=S.notificationTextRenderer)==null?void 0:R.successResponseText;V&&_.a3j(this.hostElement,V)}};
_.mt.Object.defineProperties(Zf.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R;return this.isProductPlaceholder&&((k=this.data)==null?void 0:(E=k.hiddenProductOptions)==null?void 0:E.showDropCountdown)&&!!((S=this.data)==null?0:(R=S.hiddenProductOptions)==null?0:R.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var k;return!this.isProductPlaceholder&&!((k=this.data)==null?0:k.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var k,E;return!((k=this.data)==null?0:k.priceReplacementText)&&!((E=this.data)==null||!E.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Zf.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Zf.prototype,"componentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Zf.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Zf.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("isProductPlaceholder"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zf.prototype,"useCenterLayoutContainer",null);_.Z([_.H({computed:"computeButtonOverride(data)"}),_.l("design:type",Object)],Zf.prototype,"buttonOverride",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zf.prototype,"isProductPlaceholder",null);
_.Z([_.U("isProductPlaceholder"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zf.prototype,"showDropCountdown",null);_.Z([_.U("isProductPlaceholder","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zf.prototype,"showBrandName",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zf.prototype,"showPriceReplacementText",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zf.prototype,"showPrice",null);
_.Z([_.U("isProductPlaceholder"),_.l("design:type",Object),_.l("design:paramtypes",[])],Zf.prototype,"showMetadata",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],Zf);
_.b(Zf,"ytd-product-list-item-renderer",function(){if(QHo!==void 0)return QHo;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return QHo=k},{mode:1});var OxB;var dC=function(){return _.p.apply(this,arguments)||this};
_.y(dC,_.p);dC.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
dC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
dC.prototype.panelContentVisibleChanged=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return k.playerApi?S.jumpTo(2):S.yield(_.l_().getPlayerPromise(),3);S.nextAddress!=2&&(k.playerApi=S.yieldResult);(E=k.playerApi)==null||E.productsInVideoVisibilityUpdated(!!k.panelContentVisible);_.KR(S)})};
dC.prototype.panelContentVisibleChanged=dC.prototype.panelContentVisibleChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],dC.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],dC.prototype,"panelContentVisible",void 0);_.Z([_.H(),_.l("design:type",Object)],dC.prototype,"data",void 0);
_.Z([_.il("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],dC.prototype,"panelContentVisibleChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],dC);
_.b(dC,"ytd-product-list-renderer",function(){if(OxB!==void 0)return OxB;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return OxB=k},{mode:1});var GpB;var sw=function(){var k=_.p.apply(this,arguments)||this;k.hideTimestamps=!!_.Yl("hide-transcript-timestamps");k.currentCueIndex=-1;k.flatCues=[];k.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};k.TEST_ONLY={getFlatCues:function(){return k.flatCues}};
return k};
_.y(sw,_.p);_.I=sw.prototype;_.I.hideTimestampsChanged=function(){_.BT("hide-transcript-timestamps",this.hideTimestamps)};
_.I.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.I.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.I.dataChanged=function(){var k;if((k=this.data)!=null&&k.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;k=_.n(this.data.cueGroups);for(var E=k.next();!E.done;E=k.next()){E=_.n(_.W(E.value,B0N).cues);for(var S=E.next();!S.done;S=E.next())this.flatCues.push(Number(_.W(S.value,Y4S).startOffsetMs))}}};
_.I.onYtPlayerTimeChanged=function(k){if(!(k<0)){for(var E=this.currentCueIndex,S=E;;){var R=S>=0?this.flatCues[S]/1E3:-1;if(k+.5<R)--S;else if(R=S+1<this.flatCues.length?this.flatCues[S+1]/1E3:Infinity,k+.5>R)S+=1;else break}S!==E&&(E>=0&&((k=this.getCueElement(E))&&k.classList.remove("active"),(E=this.getCueGroupElement(E))&&E.classList.remove("active")),(E=this.getCueElement(S))&&E.classList.add("active"),(E=this.getCueGroupElement(S))&&E.classList.add("active"),this.currentCueIndex=S,this.isHovered||
this.scrollElementToTop(S))}};
_.I.scrollElementToTop=function(k){k=this.getCueElement(k>=3?k-3:0);this.hostElement.scrollTop=Math.min(k.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.I.getCueElement=function(k){return _.Cc(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[k]+'"]')};
_.I.getCueGroupElement=function(k){return(k=this.getCueElement(k))&&k.parentElement?k.parentElement.parentElement:null};
_.I.onTap=function(k){var E=_.bv(k);k.target.classList.contains("cue")&&this.seekCueElement(E)};
_.I.onKeyPress=function(k){k.keyCode==13&&(k=_.t1T(k.target,null,"cue"))&&this.seekCueElement(k)};
_.I.seekCueElement=function(k){k=Number(k.getAttribute("start-offset"));_.qe(this.hostElement,"yt-transcript-player-seek",[k/1E3])};
_.I.onMouseEnter=function(){this.isHovered=!0};
_.I.onMouseLeave=function(){this.isHovered=!1};
sw.prototype.onMouseLeave=sw.prototype.onMouseLeave;sw.prototype.onMouseEnter=sw.prototype.onMouseEnter;sw.prototype.onKeyPress=sw.prototype.onKeyPress;sw.prototype.onTap=sw.prototype.onTap;sw.prototype.dataChanged=sw.prototype.dataChanged;sw.prototype.hideTimestampsChanged=sw.prototype.hideTimestampsChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],sw.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sw.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],sw.prototype,"hideTimestamps",void 0);_.Z([_.H(),_.l("design:type",Boolean)],sw.prototype,"isHovered",void 0);_.Z([_.il("hideTimestamps"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sw.prototype,"hideTimestampsChanged",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sw.prototype,"dataChanged",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],sw.prototype,"onTap",null);_.Z([_.nv("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],sw.prototype,"onKeyPress",null);
_.Z([_.nv("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sw.prototype,"onMouseEnter",null);_.Z([_.nv("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sw.prototype,"onMouseLeave",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],sw);
_.b(sw,"ytd-transcript-body-renderer",function(){if(GpB!==void 0)return GpB;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return GpB=k},{mode:1});var CXo;var lq=function(){var k=_.p.apply(this,arguments)||this;k.darkerPanels=_.Y("web_watch_darker_panels");return k};
_.y(lq,_.p);lq.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],lq.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],lq.prototype,"darkerPanels",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],lq);
_.b(lq,"ytd-transcript-footer-renderer",function(){if(CXo!==void 0)return CXo;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return CXo=k},{mode:1});var kUJ;var EfX;var MC=function(){var k=_.p.apply(this,arguments)||this;k.systemIcons=_.Y("kevlar_system_icons");k.showClearButton=!1;return k};
_.y(MC,_.p);_.I=MC.prototype;_.I.handleInput=function(k){var E=this;k.target.value.length?_.Lv(this,"ytdTranscriptSearchBoxSearch",function(){E.emitSearchEvent(k)},500):(_.XjC(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=k.target.value.length>0};
_.I.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.I.handleClick=function(){var k,E=(k=this.data)==null?void 0:k.trackingParams;E&&_.FE(_.JV(),E)};
_.I.handleClear=function(){_.XjC(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var k,E,S=(E=_.W((k=this.data)==null?void 0:k.clearButton,_.dZ))==null?void 0:E.trackingParams;S&&_.FE(_.JV(),S);this.clear()};
_.I.emitSearchEvent=function(k){_.Me(this.hostElement,"yt-transcript-search-box-search",{query:k.target.value});var E,S;(k=(S=_.W((E=this.data)==null?void 0:E.searchButton,_.dZ))==null?void 0:S.trackingParams)&&_.FE(_.JV(),k)};
_.I.emitClearEvent=function(){_.Me(this.hostElement,"yt-transcript-search-box-clear")};
_.mt.Object.defineProperties(MC.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Cc(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],MC.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MC.prototype,"systemIcons",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],MC);
_.b(MC,"ytd-transcript-search-box-renderer",function(){if(EfX!==void 0)return EfX;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return EfX=k},{mode:1});var Scg;var RxN;var qC=function(){return _.p.apply(this,arguments)||this};
_.y(qC,_.p);qC.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var k,E;this.sectionHeaderAriaLabel=(k=this.data)==null?void 0:(E=k.accessibility)==null?void 0:E.accessibilityData.label}};
qC.prototype.fireSelectedEvent=function(k){_.Me(this.hostElement,"ytd-transcript-section-header",{startMs:k})};
qC.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
qC.prototype.handleKeyPress=function(k){this.data&&k.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.mt.Object.defineProperties(qC.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=(k=this.data)==null?void 0:k.enableTappableTranscriptHeader)!=null?E:!1}}});
qC.prototype.dataChanged=qC.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],qC.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],qC.prototype,"sectionHeaderAriaLabel",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],qC.prototype,"enableTappableTranscriptHeader",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qC.prototype,"dataChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],qC);
_.b(qC,"ytd-transcript-section-header-renderer",function(){if(RxN!==void 0)return RxN;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return RxN=k},{mode:1});var Vlr;var NgX;var z3=function(){var k=_.p.apply(this,arguments)||this;k.isEditMode=!1;k.touchCaptionsEnabled=!1;k.deleteCaptionCorrectionPopupCommand=null;k.voteCaptionCorrectionPopupCommand=null;k.roundedContainer=!0;k.mouseOver=!1;k.textChanged=!1;k.messages={suggest_correction:_.Vi("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Vi("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Vi("submit_correction",void 0,"Submit for review"),cancel_correction:_.Vi("cancel_correction",
void 0,"Cancel"),replay_segment:_.Vi("replay_segment",void 0,"Re-play segment"),delete_correction:_.Vi("delete_correction",void 0,"Delete correction")};k.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return k};
_.y(z3,_.p);_.I=z3.prototype;_.I.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)};
_.I.handleDelete=function(k){if(this.deleteCaptionCorrectionPopupCommand){var E=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);E&&this.ytdOpenPopupBehavior.openPopup(E);k.stopPropagation()}};
_.I.handleSubmit=function(k){if(this.data&&this.data.submitCaptionCorrectionCommand&&(k.stopPropagation(),this.textChanged)){var E;k=(E=_.W(this.data.submitCaptionCorrectionCommand,_.aoT))==null?void 0:E.params;E=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:k,correctionText:String(this.ironTextAreaElement.value),originalText:_.$n(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(E);this.isEditMode=!1}};
_.I.handleUpdateSegmentText=function(k){(k=_.W(k,DgS))&&k.targetId&&this.data&&k.targetId===this.data.targetId&&(k.userCorrection&&(this.editedText=k.userCorrection),k.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.$n(this.data.snippet)),k.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=k.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=k.voteCaptionCorrectionPopupCommand?
k.voteCaptionCorrectionPopupCommand:null,k.accessibility&&(this.segmentAriaLabel=k.accessibility.accessibilityData.label))};
_.I.handleCancel=function(k){this.isEditMode=!1;k.stopPropagation();this.logClientVe(159409)};
_.I.handleEditSegmentCommand=function(k){(k=_.W(k,j2U))&&k.targetId&&this.data&&k.targetId===this.data.targetId&&this.handleEdit()};
_.I.handleEditButtonClick=function(k){this.data&&(this.handleEdit(),k.stopPropagation())};
_.I.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var k;(k=this.ironTextAreaElement.textarea)==null||k.focus();this.logClientVe(159407)}};
_.I.handleMouseEnter=function(){this.mouseOver=!0};
_.I.handleMouseLeave=function(){this.mouseOver=!1};
_.I.handleReplay=function(k){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),k.stopPropagation(),this.logClientVe(159408))};
_.I.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()))};
_.I.handleKeypress=function(k){this.data&&(this.isEditMode?k.stopPropagation():this.isEnterPress(k)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(k)&&this.logClientVe(138758))};
_.I.handleTextboxClick=function(k){k.stopPropagation()};
_.I.handleTextboxKeydown=function(k){this.isControlEnterPress(k)?this.handleSubmit(k):k.key==="Escape"&&this.handleCancel(k)};
_.I.handleTextboxKeyup=function(){this.textChanged=_.$n(this.latestText)!==String(this.ironTextAreaElement.value)};
_.I.fireSelectedEvent=function(k){_.Me(this.hostElement,"yt-transcript-segment-selected",{startMs:k})};
_.I.fireReplayEvent=function(k,E){_.Me(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(k-100,0),endMs:E})};
_.I.fireEditEvent=function(k,E){_.Me(this.hostElement,"yt-transcript-segment-edit",{startMs:k,endMs:E})};
_.I.isEnterPress=function(k){return k.key==="Enter"||k.code==="Enter"||k.code==="NumpadEnter"||k.keyCode===13?!0:!1};
_.I.isControlEnterPress=function(k){var E=k.key==="Enter"||k.code==="Enter"||k.code==="NumpadEnter"||k.keyCode===13;return(k.ctrlKey||k.metaKey)&&E};
_.I.isCopyPress=function(k){var E=k.ctrlKey;return k.key==="c"&&E};
_.I.logClick=function(){var k,E=(k=this.data)==null?void 0:k.trackingParams;E&&_.FE(_.JV(),E)};
_.I.logClientVe=function(k){_.Wq(_.JV(),_.kh(k))};
_.mt.Object.defineProperties(z3.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}}});
z3.prototype.handleMouseLeave=z3.prototype.handleMouseLeave;z3.prototype.handleMouseEnter=z3.prototype.handleMouseEnter;z3.prototype.dataChanged=z3.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],z3.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],z3.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],z3.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z3.prototype,"isEditMode",void 0);_.Z([_.H(),_.l("design:type",Object)],z3.prototype,"touchCaptionsEnabled",void 0);_.Z([_.H(),_.l("design:type",Object)],z3.prototype,"editedText",void 0);_.Z([_.H(),_.l("design:type",Object)],z3.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.Z([_.H(),_.l("design:type",Object)],z3.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.Z([_.H(),_.l("design:type",String)],z3.prototype,"segmentAriaLabel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z3.prototype,"roundedContainer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z3.prototype,"mouseOver",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],z3.prototype,"textChanged",void 0);_.Z([_.H(),_.l("design:type",Object)],z3.prototype,"messages",void 0);
_.Z([_.JO("#suggestion"),_.l("design:type",Object)],z3.prototype,"ironTextAreaElement",void 0);_.Z([_.U("data","editedText"),_.l("design:type",Object),_.l("design:paramtypes",[])],z3.prototype,"latestText",null);_.Z([_.U("touchCaptionsEnabled","isEditMode"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z3.prototype,"enableEditButton",null);
_.Z([_.U("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],z3.prototype,"enableUndoButton",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z3.prototype,"dataChanged",null);_.Z([_.nv("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z3.prototype,"handleMouseEnter",null);
_.Z([_.nv("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],z3.prototype,"handleMouseLeave",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],z3);
_.b(z3,"ytd-transcript-segment-renderer",function(){if(NgX!==void 0)return NgX;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return NgX=k},{mode:1});var QU=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};k.isError=!1;k.darkerPanels=_.Y("web_watch_darker_panels");k.useParentMaxHeight=_.Y("web_watch_transscript_use_parent_max_height");k.segmentOffsets=[];k.segmentIndex=-1;return k};
_.y(QU,_.p);_.I=QU.prototype;_.I.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"}}}}};
_.I.segmentsChanged=function(){this.updateOffsets()};
_.I.onYtPlayerTimeChanged=function(k){for(var E=this.segmentIndex,S=E;;){if(S>=0){var R=this.segmentOffsets[S].start;var V=this.segmentOffsets[S].isAutoScrollable}else R=-1,V=!0;var N=k+.5;if(!V){R=S+1<this.segmentOffsets.length?this.segmentOffsets[S+1].start:Infinity;if(N>=R){S+=1;continue}S=-1;break}if(N<R)R=S-1>=0&&this.segmentOffsets[S-1].isAutoScrollable,V=S===0||R?1:2,S-=V;else if(V=S+1<this.segmentOffsets.length&&this.segmentOffsets[S+1].isAutoScrollable?1:2,R=S+V<this.segmentOffsets.length?
this.segmentOffsets[S+V].start:Infinity,N>R)S+=V;else{if(S<0)break;S<this.segmentOffsets.length&&N>this.segmentOffsets[S].end&&(S=-1);break}}if(E!==S){if(E>=0){var h;(h=this.getSegmentElement(E))==null||h.classList.remove("active")}this.segmentIndex=S;if(!(S<0)){var J;(J=this.getSegmentElement(S))==null||J.classList.add("active");this.isHovered||this.scrollElementToTop(S)}}};
_.I.handleSegmentEdit=function(k){k.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=k.target,_.qe(this.hostElement,"yt-transcript-player-edit",[k.detail.startMs/1E3,k.detail.endMs/1E3]))};
_.I.handleSegmentSelected=function(k){_.qe(this.hostElement,"yt-transcript-player-seek",[k.detail.startMs/1E3])};
_.I.handleSegmentReplay=function(k){_.qe(this.hostElement,"yt-transcript-player-replay",[k.detail.startMs/1E3,k.detail.endMs/1E3])};
_.I.handleSectionHeaderSelected=function(k){_.qe(this.hostElement,"yt-transcript-player-seek",[k.detail.startMs/1E3])};
_.I.onMouseEnter=function(){this.isHovered=!0};
_.I.onMouseLeave=function(){this.isHovered=!1};
_.I.onRetryButtonClick=function(){_.Me(this.hostElement,"transcript-retry-button-click")};
_.I.getSegmentElement=function(k){return _.Cc(this.hostElement).querySelector(":nth-child("+(k+1)+")")};
_.I.scrollElementToTop=function(k){k=this.getSegmentElement(k>=2?k-2:0);this.hostElement.scrollTop=Math.min(k.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.I.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(k){var E,S=(E=k.transcriptSegmentRenderer)!=null?E:k.transcriptSectionHeaderRenderer;return{start:Number(S.startMs)/1E3,end:Number(S.endMs)/1E3,isAutoScrollable:k.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.I.clearHighlightedSegments=function(){var k=_.Cc(this.hostElement);k=_.n(k.querySelectorAll("ytd-transcript-segment-renderer"));for(var E=k.next();!E.done;E=k.next())E.value.classList.remove("active")};
_.mt.Object.defineProperties(QU.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:k.searchResultSegments)||((E=this.data)==null?void 0:E.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
QU.prototype.onMouseLeave=QU.prototype.onMouseLeave;QU.prototype.onMouseEnter=QU.prototype.onMouseEnter;QU.prototype.handleSectionHeaderSelected=QU.prototype.handleSectionHeaderSelected;QU.prototype.handleSegmentReplay=QU.prototype.handleSegmentReplay;QU.prototype.handleSegmentSelected=QU.prototype.handleSegmentSelected;QU.prototype.handleSegmentEdit=QU.prototype.handleSegmentEdit;QU.prototype.segmentsChanged=QU.prototype.segmentsChanged;
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],QU.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],QU.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],QU.prototype,"isError",void 0);
_.Z([_.H(),_.l("design:type",Object)],QU.prototype,"noResultLabel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],QU.prototype,"darkerPanels",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],QU.prototype,"useParentMaxHeight",void 0);_.Z([_.U("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],QU.prototype,"segments",null);
_.Z([_.U("segments","noResultLabel"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],QU.prototype,"displayNoResults",null);_.Z([_.il("segments"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QU.prototype,"segmentsChanged",null);_.Z([_.nv("yt-transcript-segment-edit"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],QU.prototype,"handleSegmentEdit",null);
_.Z([_.nv("yt-transcript-segment-selected"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],QU.prototype,"handleSegmentSelected",null);_.Z([_.nv("yt-transcript-segment-replay"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],QU.prototype,"handleSegmentReplay",null);
_.Z([_.nv("ytd-transcript-section-header"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],QU.prototype,"handleSectionHeaderSelected",null);_.Z([_.nv("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QU.prototype,"onMouseEnter",null);_.Z([_.nv("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QU.prototype,"onMouseLeave",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],QU);
_.b(QU,"ytd-transcript-segment-list-renderer",function(){if(Vlr!==void 0)return Vlr;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Vlr=k},{mode:1});var Ow=function(){var k=_.p.apply(this,arguments)||this;k.hideTimestamps=!!_.Yl("hide-transcript-timestamps");k.isLoadingTranscripts=!1;k.darkerPanels=_.Y("web_watch_darker_panels");k.isError=!1;k.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return k};
_.y(Ow,_.p);_.I=Ow.prototype;_.I.headerChanged=function(){var k,E;this.baseGetTranscriptsCommand=(E=_.W((k=this.data)==null?void 0:k.header,$gS))==null?void 0:E.onTextChangeCommand};
_.I.bodyChanged=function(){var k=this.getBodyRenderer();k&&(k.initialSegments&&(this.initialTranscriptsRenderer=k),k.noResultLabel&&(this.noResultLabel=k.noResultLabel),k.retryLabel&&(this.retryLabel=k.retryLabel))};
_.I.detached=function(){this.clearSearchBoxText()};
_.I.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.I.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"}}}};
_.I.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.I.fireSearch=function(k){var E=this;if(k){var S=k.detail.query;if(this.baseGetTranscriptsCommand){var R;k=(R=_.W(this.baseGetTranscriptsCommand,_.emd))==null?void 0:R.params;var V;R=_.W((V=this.data)==null?void 0:V.footer,WNr);var N;if((V=(N=_.W(R==null?void 0:R.languageMenu,u4B))==null?void 0:N.subMenuItems)&&V.length>0&&(N=V.find(function(m){return m.selected}))){var h,J;
k=(h=N.continuation)==null?void 0:(J=h.reloadContinuationData)==null?void 0:J.continuation}h=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:k,searchQuery:S}});this.ytComponentBehavior.resolveCommand(h,{commandController:{onServerError:function(){E.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Vws(this.ytContinuationHandlerBehavior,function(){return S===E.getCurrentSearchBoxText()})}}};
_.I.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.I.onRetryButtonClick=function(){this.isError=!1;var k={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:k}))};
_.I.hideTimestampsChanged=function(){_.BT("hide-transcript-timestamps",this.hideTimestamps)};
_.I.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.I.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.I.handleSignalActionCopyTranscript=function(){var k=this,E=this.getBodyRenderer();E&&(E=((E==null?void 0:E.searchResultSegments)||(E==null?void 0:E.initialSegments)||[]).map(function(S){return _.W(S,vkX)}).filter(function(S){return!!S}).map(function(S){return{snippet:S.snippet||{runs:[{text:""}]},
startTimeText:S.startTimeText||{simpleText:""}}}).map(function(S){var R=(S.snippet.runs||[]).reduce(function(V,N){return V+N.text},"");
return k.hideTimestamps?R:S.startTimeText.simpleText+" "+R}).join("\n"),this.copyToClipboard(E))};
_.I.copyToClipboard=function(k){navigator.clipboard&&navigator.clipboard.writeText(k)};
_.I.getCurrentSearchBoxText=function(){var k;return(k=this.searchBox)==null?void 0:k.value};
_.I.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.I.getBodyRenderer=function(){var k;return _.W((k=this.data)==null?void 0:k.body,f_u)};
_.I.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.mt.Object.defineProperties(Ow.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Cc(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Ow.prototype.hideTimestampsChanged=Ow.prototype.hideTimestampsChanged;Ow.prototype.searchCleared=Ow.prototype.searchCleared;Ow.prototype.fireSearch=Ow.prototype.fireSearch;Ow.prototype.onReloadContinuationFinish=Ow.prototype.onReloadContinuationFinish;Ow.prototype.bodyChanged=Ow.prototype.bodyChanged;Ow.prototype.headerChanged=Ow.prototype.headerChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ow.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],Ow.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ow.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Ow.prototype,"hideTimestamps",void 0);
_.Z([_.H(),_.l("design:type",Object)],Ow.prototype,"isLoadingTranscripts",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Ow.prototype,"darkerPanels",void 0);_.Z([_.H(),_.l("design:type",Object)],Ow.prototype,"isError",void 0);_.Z([_.il("data.header"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ow.prototype,"headerChanged",null);
_.Z([_.ac("data.body"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ow.prototype,"bodyChanged",null);_.Z([_.nv("yt-reload-continuation-finish"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ow.prototype,"onReloadContinuationFinish",null);_.Z([_.nv("yt-transcript-search-box-search"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Ow.prototype,"fireSearch",null);
_.Z([_.nv("yt-transcript-search-box-clear"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ow.prototype,"searchCleared",null);_.Z([_.il("hideTimestamps"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ow.prototype,"hideTimestampsChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Ow);
_.b(Ow,"ytd-transcript-search-panel-renderer",function(){if(Scg!==void 0)return Scg;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Scg=k},{mode:1});var G3=function(){var k=_.p.apply(this,arguments)||this;k.player=null;k.playerPollJobId=0;return k};
_.y(G3,_.p);_.I=G3.prototype;_.I.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.I.onLoadReloadContinuation=function(k){_.Y("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:k.target.data.continuation}}):(k={clickTrackingParams:k.target.data.clickTrackingParams,getTranscriptEndpoint:{params:k.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}}))};
_.I.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"}}}};
_.I.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.I.attached=function(){this.updatePlayerListening()};
_.I.detached=function(){this.updatePlayerListening()};
_.I.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.I.startPlayerListening=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return(E=_.s3())?S.yield(E.getPlayerPromise(),2):S.return();k.player=S.yieldResult;k.playerPollJobId=_.ZJ.addLowPriorityJob(function(){k.getPlayerVideoProgress()},1E3);
k.player.addEventListener("onCueRangeEnter",function(R){k.onCueRangeEnter(R)});
k.player.addEventListener("onCueRangeExit",function(R){k.onCueRangeExit(R)});
k.player.addEventListener("onStateChange",function(R){k.onPlayerStateChange(R)});
k.player.addEventListener("SEEK_TO",function(R){k.onPlayerSeek(R)});
_.KR(S)})};
_.I.getPlayerVideoProgress=function(){var k=this;_.ZJ.cancelJob(this.playerPollJobId);if(this.player){var E=this.player.getCurrentTime();_.qe(this.hostElement,"yt-player-time-changed",[E])}this.playerPollJobId=_.ZJ.addLowPriorityJob(function(){k.getPlayerVideoProgress()},1E3)};
_.I.stopPlayerListening=function(){this.player=null;_.ZJ.cancelJob(this.playerPollJobId)};
_.I.onPlayerStateChange=function(k){k===2&&this.removePendingCue()};
_.I.onPlayerSeek=function(k){var E;if(E=this.pendingReplayCueId)E=this.pendingReplayCueId,E=k===(_.Y("web_transcript_cue_id_killswitch")?Number(E):Number(E.split("_")[1]));E||this.removePendingCue()};
_.I.onCueRangeEnter=function(k){yNr(k)&&(this.pendingReplayCueId=k)};
_.I.onCueRangeExit=function(k){yNr(k)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.I.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.I.onYtTranscriptPlayerSeek=function(k){this.player&&this.player.seekTo(k,!0)};
_.I.onYtTranscriptPlayerReplay=function(k,E){this.player&&(this.player.addCueRange(FhU(k),k,E),this.player.seekTo(k,!0),this.player.playVideo())};
_.I.onYtTranscriptPlayerEdit=function(k,E){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(FhU(k),k,E),this.player.seekTo(k,!0))};
G3.prototype.onLoadReloadContinuation=G3.prototype.onLoadReloadContinuation;G3.prototype.panelContentVisibleChanged=G3.prototype.panelContentVisibleChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],G3.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],G3.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],G3.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],G3.prototype,"panelContentVisible",void 0);_.Z([_.il("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],G3.prototype,"panelContentVisibleChanged",null);
_.Z([_.nv("yt-load-reload-continuation"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],G3.prototype,"onLoadReloadContinuation",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],G3);
_.b(G3,"ytd-transcript-renderer",function(){if(kUJ!==void 0)return kUJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return kUJ=k},{mode:1});var IdJ;var nfu;var C7=function(){return _.p.apply(this,arguments)||this};
_.y(C7,_.p);C7.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Ot(this.hostElement,[this.data.clickCommand],this.hostElement))};
C7.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.JW)()+_.sd)+"px)"};
C7.prototype.updateShouldHideFromBinding=function(k){this.shouldHide=k.detail.value};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],C7.prototype,"rendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],C7.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],C7.prototype,"shouldHide",void 0);_.Z([_.D({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],C7);
_.b(C7,"ytd-ad-engagement-panel-banner-renderer",function(){if(nfu!==void 0)return nfu;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return nfu=k},{mode:_.GN("kevlar_poly_si_batch_j070")?1:2});var i2o;var kM=function(){var k=_.p.apply(this,arguments)||this;k.modernPanels=_.Y("kevlar_watch_modern_panels");k.buttonUpdate=_.Y("web_modern_buttons");k.adsSemanticText=_.Y("enable_ads_web_ep_buenos_aires_and_padding_fix");return k};
_.y(kM,_.p);kM.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.Z([_.H(),_.l("design:type",Object)],kM.prototype,"data",void 0);_.Z([_.H({computed:"computeHideDefaultAdBadge(data)"}),_.l("design:type",Boolean)],kM.prototype,"hideDefaultAdBadge",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],kM.prototype,"modernPanels",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],kM.prototype,"buttonUpdate",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],kM.prototype,"adsSemanticText",void 0);
_.Z([_.D({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],kM);
_.b(kM,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(i2o!==void 0)return i2o;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return i2o=k},{mode:1});var hxX;var EL=function(){var k=_.p.apply(this,arguments)||this;k.darkerPanels=_.Y("web_watch_darker_panels");k.enableSqueezebackPanels=_.Y("web_shorts_enable_squeezeback_panels");k.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");k.modernPanels=_.Y("kevlar_watch_modern_panels");k.headerClickListener=function(E){k.onHeaderClick(E)};
k.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return k};
_.y(EL,_.p);_.I=EL.prototype;_.I.computeAdsInfoButton=function(){if(_.Y("web_modern_buttons")){var k,E;return(E=_.W((k=this.data)==null?void 0:k.subtitleComplex,FNu))==null?void 0:E.adInfoRenderer}};
_.I.updateHeaderClickListener=function(){var k,E,S;((k=this.data)==null?0:k.navigationEndpoint)||((E=this.data)==null?0:E.onClickCommand)||_.W((S=this.data)==null?void 0:S.visibilityButton,_.s6)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.I.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}}}}}};
_.I.collapsedChanged=function(){var k;(k=this.data)!=null&&k.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.Y("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.I.focus=function(k){var E=this;this.titleElement&&_.ZJ.addJob(function(){_.VF(E.titleElement,k)},0,500)};
_.I.computeTitleAriaLabel=function(k){var E=[];if(k.title){var S,R;E.push(this.ytRendererBehavior.getSimpleString(k.title)||((S=k.title.accessibility)==null?void 0:(R=S.accessibilityData)==null?void 0:R.label))}k.contextualInfo&&E.push(this.ytRendererBehavior.getSimpleString(k.contextualInfo));return E.join(" ")};
_.I.onHeaderClick=function(k){this.shouldTriggerHeaderClick(k)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Ot(this.hostElement,[this.data.onClickCommand],this.hostElement)):(k=this.getVisibilityToggleButton())&&k.click())};
_.I.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var k=_.W(this.data.visibilityButton,_.dZ)||_.W(this.data.visibilityButton,_.s6);k&&this.ytRendererBehavior.logExplicitClick(k)}};
_.I.getVisibilityToggleButton=function(){var k=_.Cc(this.hostElement).querySelector("#visibility-button").firstElementChild;return(k==null?void 0:k.is)==="ytd-toggle-button-renderer"?k:null};
_.I.shouldTriggerHeaderClick=function(k){return!_.v9(_.vT(k),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.I.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(k){k=_.W(k,_.euJ);this.targetId&&(k==null?void 0:k.targetId)===this.targetId&&(k=k.navigationButton)&&this.set("data.navigationButton",k)};
_.mt.Object.defineProperties(EL.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var k;return!!(((k=this.entity)==null?0:k.isActionButtonHidden)||this.hideActionButton)}}});
EL.prototype.collapsedChanged=EL.prototype.collapsedChanged;EL.prototype.updateHeaderClickListener=EL.prototype.updateHeaderClickListener;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],EL.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],EL.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],EL.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],EL.prototype,"targetId",void 0);_.Z([_.H(),_.l("design:type",Boolean)],EL.prototype,"collapsed",void 0);_.Z([_.H(),_.l("design:type",Boolean)],EL.prototype,"hideActionButton",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],EL.prototype,"shortsPanel",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],EL.prototype,"liveChatEngagementPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],EL.prototype,"learningChatEngagementPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"darkerPanels",void 0);_.Z([_.JO("#title"),_.l("design:type",HTMLElement)],EL.prototype,"titleElement",void 0);_.Z([_.JO("#header"),_.l("design:type",HTMLElement)],EL.prototype,"headerElement",void 0);
_.Z([_.H({computed:"computeAdsInfoButton(data)"}),_.l("design:type",Object)],EL.prototype,"adsInfoButton",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"enableSqueezebackPanels",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"enableAnchoredPanel",void 0);_.Z([_.H({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(k,E){return _.Ep(k.entities,"engagementPanelTitleHeaderEntity",E)}}),
_.l("design:type",Object)],EL.prototype,"entity",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],EL.prototype,"modernPanels",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("targetId"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],EL.prototype,"adsSemanticText",null);_.Z([_.il("data","data.navigationEndpoint","data.onClickCommand"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EL.prototype,"updateHeaderClickListener",null);
_.Z([_.ac("collapsed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EL.prototype,"collapsedChanged",null);_.Z([_.U("entity","hideActionButton"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],EL.prototype,"isActionButtonHidden",null);_.Z([_.D({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],EL);
_.b(EL,"ytd-engagement-panel-title-header-renderer",function(){if(hxX!==void 0)return hxX;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return hxX=k},{mode:1});var JDr;var Sx=function(){return _.p.apply(this,arguments)||this};
_.y(Sx,_.p);Sx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Sx.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Sx.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Sx.prototype,"data",void 0);_.Z([_.D({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Sx);
_.b(Sx,"ytd-macro-markers-info-item-renderer",function(){if(JDr!==void 0)return JDr;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return JDr=k},{mode:1});var cDX;var Ry=function(k,E,S,R,V,N){_.r7.call(this);var h=this;this.JSC$22998_containerElement=k;this.hostElement=E;this.supportedSyncItems=S;this.syncEntityKey=R;this.options=V;this.renderLazyListItems=N;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;mdX(this);exu(this);this.JSC$22998_scrollAnimation=new _.V0(function(J){k.scrollTop=J});
_.Wy(this,this.JSC$22998_scrollAnimation);this.addOnDisposeCallback(function(){adF(h,!1);h.activeItem&&h.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.y(Ry,_.r7);var mdX=function(k){var E=_.Hq(_.en().resolve(_.q5),function(S){return S.entities.markersEngagementPanelSyncEntity||{}},function(S,R){var V;
if(S[k.syncEntityKey]!==R[k.syncEntityKey]&&((V=S[k.syncEntityKey])==null?void 0:V.activeItemIndex)!==void 0)if(R=S[k.syncEntityKey].activeItemIndex,S=k.getItemByIndex(R)){if(tlF(k,S),k.contentVisible)if(k.browsingMode){var N;((N=k.options)==null?void 0:N.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(N=TgJ(k),S.offsetTop<k.JSC$22998_containerElement.clientHeight+k.JSC$22998_containerElement.scrollTop&&N&&!k.activeItemBelowSyncPosition&&adF(k,!1));wvo(k)}else k.scrollToItem(S)}else _.dg(new _.LC("Could not find "+
k.supportedSyncItems+" sync child to set active.",R,k.JSC$22998_containerElement.querySelectorAll(k.supportedSyncItems).length))});
k.unsubscribeFromTimedMarkersListSyncEntity=E;k.addOnDisposeCallback(E);PMN(k)},PMN=function(k){var E=_.en().resolve(_.q5);
E=_.gVm(E.getState(),k.syncEntityKey);(E==null?void 0:E.activeItemIndex)!==void 0&&(E=k.getItemByIndex(E.activeItemIndex))&&tlF(k,E)},exu=function(k){var E=new _.NJ(k.onScroll,50,k);
_.Wy(k,E);var S=function(){E.fire()};
k.JSC$22998_containerElement.addEventListener("scroll",S);k.addOnDisposeCallback(function(){k.JSC$22998_containerElement.removeEventListener("scroll",S)})};
Ry.prototype.getItemByIndex=function(k){var E;(E=this.renderLazyListItems)==null||E.call(this,k);E=this.JSC$22998_containerElement.querySelectorAll(this.supportedSyncItems);if(E.length>k)return E[k]};
var tlF=function(k,E){k.activeItem&&k.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));E.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));k.activeItem=E};
Ry.prototype.scrollToItem=function(k){k=this.getScrollPositionForItem(k);this.JSC$22998_containerElement.scrollTop!==k&&this.JSC$22998_scrollAnimation.start(this.JSC$22998_containerElement.scrollTop,k,300)};
Ry.prototype.getScrollPositionForItem=function(k){if(this.JSC$22998_containerElement.querySelectorAll(this.supportedSyncItems)[0]===k)return 0;var E,S=((E=this.options)==null?0:E.percentOffset)?this.JSC$22998_containerElement.clientHeight*this.options.percentOffset:0;k=_.so(k).y+this.JSC$22998_containerElement.scrollTop-(_.so(this.JSC$22998_containerElement).y+S);return Math.max(0,Math.min(k,this.JSC$22998_containerElement.scrollHeight-this.JSC$22998_containerElement.offsetHeight))};
Ry.prototype.onScroll=function(){this.activeItemBelowSyncPosition=TgJ(this);if(this.activeItem&&!this.JSC$22998_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22998_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var k;switch((k=this.options)==null?void 0:k.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":Bgk(this,!YcF(this));wvo(this);break;default:Bgk(this,!0)}}};
var Bgk=function(k,E){var S,R;_.c(function(V){if(V.nextAddress==1){if(k.browsingMode)return V.return();k.browsingMode=!0;E&&k.hostElement.classList.add("browsing-mode");k.playerExitBrowsingModeListener=function(){adF(k,!1)};
return V.yield(_.Ef(),2)}S=V.yieldResult;(R=S)==null||R.addEventListener("SEEK_TO",k.playerExitBrowsingModeListener);_.KR(V)})},adF=function(k,E){E=E===void 0?!0:E;
k.browsingMode&&(k.browsingMode=!1,k.hostElement.classList.remove("browsing-mode"),E&&k.scrollToItem(k.activeItem),WEU(k))},WEU=function(k){var E,S;
_.c(function(R){if(R.nextAddress==1)return k.playerExitBrowsingModeListener?R.yield(_.Ef(),3):R.jumpTo(0);E=R.yieldResult;(S=E)==null||S.removeEventListener("SEEK_TO",k.playerExitBrowsingModeListener);k.playerExitBrowsingModeListener=void 0;_.KR(R)})},wvo=function(k){var E;
((E=k.options)==null?void 0:E.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(YcF(k)?k.hostElement.classList.remove("browsing-mode"):k.activeItem&&k.hostElement.classList.add("browsing-mode"))},TgJ=function(k){if(!k.activeItem)return!1;
var E,S=((E=k.options)==null?0:E.percentOffset)?k.JSC$22998_containerElement.clientHeight*k.options.percentOffset:0;return k.activeItem.offsetTop>=k.JSC$22998_containerElement.scrollTop+S},YcF=function(k){if(!k.activeItem)return!1;
var E=k.activeItem.offsetTop+14<=k.JSC$22998_containerElement.scrollTop+k.JSC$22998_containerElement.clientHeight;return k.activeItem.offsetTop+k.activeItem.clientHeight-14>=k.JSC$22998_containerElement.scrollTop&&E};
Ry.prototype.panelContentVisibleChanged=function(k){(this.contentVisible=k)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var FEU=function(k,E){k.syncEntityKey=E;var S;(S=k.unsubscribeFromTimedMarkersListSyncEntity)==null||S.call(k);mdX(k)},yDg=function(k,E){k.options=E};var Vz=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return k};
_.y(Vz,_.p);_.I=Vz.prototype;_.I.detached=function(){var k;(k=this.scrollController)==null||k.dispose();this.scrollController=void 0};
_.I.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"}}}};
_.I.dataChanged=function(){var k=this;_.JB(this,function(){if(k.scrollController){var E;(E=k.scrollController)==null||adF(E,!1);var S,R,V;(R=k.scrollController)==null||FEU(R,(V=(S=k.data)==null?void 0:S.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key");var N,h,J;(J=k.scrollController)==null||yDg(J,{percentOffset:(N=k.data)==null?void 0:N.selectedItemAlignmentPercentOffset,floatingPillType:(h=k.data)==null?void 0:h.floatingPillType})}else{var m,a,T,w;k.scrollController=
new Ry(k.contents,k.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(w=(m=k.data)==null?void 0:m.syncModelEntityKey)!=null?w:"default-macro-markers-list-renderer-entity-key",{percentOffset:(a=k.data)==null?void 0:a.selectedItemAlignmentPercentOffset,floatingPillType:(T=k.data)==null?void 0:T.floatingPillType},function(P){k.renderLazyListItems(P)})}k.scrollController.panelContentVisibleChanged(!!k.panelContentVisible)})};
_.I.computeButtonShape=function(){var k=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){k.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.I.renderLazyListItems=function(k){for(var E=this.contents.children,S=0,R=0;R<E.length;R++){var V=void 0;(V=E[R].ytLazyListBehavior)==null||V.fillRemainingListItems();var N=void 0,h=void 0;V=_.W((N=this.data)==null?void 0:(h=N.contents)==null?void 0:h[R],_.z1j);h=N=void 0;if((N=V)==null?0:(h=N.contents)==null?0:h.length)S+=V.contents.length;if(S>=k)break}};
_.I.handleSetActivePanelItemAction=function(k){if((k=_.W(k,tws))&&this.panelTargetId===k.panelTargetId){k=k.itemIndex;var E,S,R=(S=(E=this.data)==null?void 0:E.syncModelEntityKey)!=null?S:"default-macro-markers-list-renderer-entity-key",V;((V=this.syncEntity)==null?void 0:V.activeItemIndex)!==k&&this.ytdReduxBehavior.dispatch(_.mj("markersEngagementPanelSyncEntity",R,{key:R,activeItemIndex:k}))}};
_.I.onSyncClick=function(){var k;(k=this.scrollController)==null||adF(k)};
_.I.panelContentVisibleChanged=function(){var k;(k=this.scrollController)==null||k.panelContentVisibleChanged(!!this.panelContentVisible)};
Vz.prototype.panelContentVisibleChanged=Vz.prototype.panelContentVisibleChanged;Vz.prototype.dataChanged=Vz.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Vz.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],Vz.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Vz.prototype,"data",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Vz.prototype,"useCustomColors",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],Vz.prototype,"panelTargetId",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Vz.prototype,"panelContentVisible",void 0);
_.Z([_.JO("#contents"),_.l("design:type",HTMLElement)],Vz.prototype,"contents",void 0);_.Z([_.H({selectorArgs:["data.syncModelEntityKey"],selector:_.gVm}),_.l("design:type",Object)],Vz.prototype,"syncEntity",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Vz.prototype,"dataChanged",null);
_.Z([_.il("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Vz.prototype,"panelContentVisibleChanged",null);_.Z([_.D({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Vz);
_.b(Vz,"ytd-macro-markers-list-renderer",function(){if(cDX!==void 0)return cDX;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return cDX=k},{mode:1});var of$;var Ns=function(){return _.p.apply(this,arguments)||this};
_.y(Ns,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ns.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ns.prototype,"data",void 0);_.Z([_.D({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Ns);
_.b(Ns,"ytd-error-corrections-section-item-renderer",function(){if(of$!==void 0)return of$;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return of$=k},{mode:1});var Xvs;var Iy=function(){return _.p.apply(this,arguments)||this};
_.y(Iy,_.p);Iy.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Iy.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Iy.prototype,"data",void 0);_.Z([_.D({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Iy);
_.b(Iy,"ytd-error-corrections-section-renderer",function(){if(Xvs!==void 0)return Xvs;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Xvs=k},{mode:1});var gfU;var nN=function(){return _.p.apply(this,arguments)||this};
_.y(nN,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],nN.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],nN.prototype,"data",void 0);_.Z([_.D({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],nN);
_.b(nN,"ytd-topic-link-renderer",function(){if(gfU!==void 0)return gfU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return gfU=k},{mode:1});var UdS;var iU=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("kevlar_modern_sd_v2");k.modernLockupV2=_.Y("modernize_structured_description_playlist_lockups_v2");return k};
_.y(iU,_.p);iU.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],iU.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],iU.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iU.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],iU.prototype,"modern",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],iU.prototype,"modernLockupV2",void 0);
_.Z([_.D({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],iU);
_.b(iU,"ytd-video-description-course-section-renderer",function(){if(UdS!==void 0)return UdS;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return UdS=k},{mode:1});var H2k;var h_=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("kevlar_modern_sd_v2");return k};
_.y(h_,_.p);h_.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],h_.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],h_.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],h_.prototype,"modern",void 0);_.Z([_.D({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],h_);
_.b(h_,"ytd-video-description-files-section-renderer",function(){if(H2k!==void 0)return H2k;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return H2k=k},{mode:1});var KEo;var J_=function(){return _.p.apply(this,arguments)||this};
_.y(J_,_.p);J_.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],J_.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],J_.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],J_.prototype,"data",void 0);_.Z([_.D({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],J_);
_.b(J_,"ytd-video-description-gaming-section-renderer",function(){if(KEo!==void 0)return KEo;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return KEo=k},{mode:1});var pvU;var ch=function(){var k=_.p.apply(this,arguments)||this;k.isExpanded=!1;return k};
_.y(ch,_.p);ch.prototype.computeHasDefaultMetadataEndpoint=function(k){var E;k=k==null?void 0:(E=k.defaultMetadata)==null?void 0:E.runs;return!(!k||k.length!==1||!k[0].navigationEndpoint)};
ch.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.mt.Object.defineProperties(ch.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ch.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ch.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ch.prototype,"isExpanded",void 0);_.Z([_.H({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ch.prototype,"hasDefaultMetadataEndpoint",void 0);
_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ch.prototype,"isExpandable",null);_.Z([_.U("data","isExpandable","isExpanded"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ch.prototype,"showExpandedMetadata",null);_.Z([_.D({is:"ytd-info-row-renderer",disableElementRegistration:!0})],ch);
_.b(ch,"ytd-info-row-renderer",function(){if(pvU!==void 0)return pvU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return pvU=k},{mode:1});var ADS;var me=function(){var k=_.p.apply(this,arguments)||this;k.currentIndex=0;k.supportComponentResize=!0;k.modern=_.Y("kevlar_modern_sd_v2");k.JSC$23028_lastScrollContainerWidth=NaN;return k};
_.y(me,_.p);_.I=me.prototype;
_.I.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"}}}};
_.I.getItemsPath=function(){return"videoLockups"};
_.I.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.I.onIronResize=function(){this.updateVideoLockupStyles()};
_.I.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.I.updateVideoLockupStyles=function(){var k;this.JSC$23028_scrollContainer!==void 0&&(k=this.videoLockups)!=null&&k.length&&(k=this.JSC$23028_scrollContainer.clientWidth,k!==this.JSC$23028_lastScrollContainerWidth&&(this.JSC$23028_lastScrollContainerWidth=k,_.VO(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(k*.8,415)+"px"}),_.Me(this.hostElement,"iron-resize")))};
_.mt.Object.defineProperties(me.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var k=[],E;if((E=this.data)==null||!E.carouselLockups)return k;E=_.n(this.data.carouselLockups);for(var S=E.next();!S.done;S=E.next()){S=S.value;var R=void 0;((R=_.W(S,s2X))==null?0:R.videoLockup)&&k.push(_.W(S,s2X).videoLockup)}return k}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.videoLockups)==null||!k.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var k=[],E;if((E=this.data)==null||!E.carouselLockups)return k;var S;return(S=_.W(this.data.carouselLockups[this.scrollCount],s2X))==null?void 0:S.infoRows}}});
me.prototype.dataChanged=me.prototype.dataChanged;me.prototype.onIronResize=me.prototype.onIronResize;me.prototype.hiddenChanged=me.prototype.hiddenChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],me.prototype,"componentBehavior",void 0);_.Z([_.g(_.wR.YtdHorizontalListBehavior),_.l("design:type",Object)],me.prototype,"ytdHorizontalListBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],me.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],me.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],me.prototype,"inlineStructuredDescription",void 0);_.Z([_.H({value:2}),_.l("design:type",Number)],me.prototype,"initialCount",void 0);_.Z([_.H(),_.l("design:type",Object)],me.prototype,"currentIndex",void 0);
_.Z([_.H(),_.l("design:type",Number)],me.prototype,"scrollCount",void 0);_.Z([_.H(),_.l("design:type",Object)],me.prototype,"supportComponentResize",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],me.prototype,"contentHidden",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],me.prototype,"modern",void 0);_.Z([_.JO("#scroll-container"),_.l("design:type",HTMLDivElement)],me.prototype,"JSC$23028_scrollContainer",void 0);
_.Z([_.il("contentHidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],me.prototype,"hiddenChanged",null);_.Z([_.U("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],me.prototype,"videoLockups",null);_.Z([_.U("videoLockups"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],me.prototype,"hasVideoLockups",null);
_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],me.prototype,"onIronResize",null);_.Z([_.U("data","scrollCount"),_.l("design:type",Object),_.l("design:paramtypes",[])],me.prototype,"infoRows",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],me.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],me);
_.b(me,"ytd-video-description-music-section-renderer",function(){if(ADS!==void 0)return ADS;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return ADS=k},{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var rDU;var ex=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("kevlar_modern_sd_v2");return k};
_.y(ex,_.p);ex.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.Z([_.H({}),_.l("design:type",Object)],ex.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ex.prototype,"modern",void 0);_.Z([_.D({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],ex);
_.b(ex,"ytd-video-description-transcript-section-renderer",function(){if(rDU!==void 0)return rDU;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return rDU=k},{mode:1});var upJ;_.qi(_.f(function(k){var E=_.iK(_.PnR,function(){return k.data().firstProviderLinkStatusEntityKey}),S=_.iK(_.PnR,function(){return k.data().secondProviderLinkStatusEntityKey}),R=function(){var V,N;
return((V=E())==null?void 0:V.linked)||((N=S())==null?void 0:N.linked)};
return _.e("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.e(_.VB,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return k.data().sectionTitle}}),_.e(_.VB,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return R()?k.data().connectedMessage:k.data().notConnectedMessage}}),_.e(_.t,{cond:R,
then:function(){return _.e(_.cp,{data:function(){return k.data().connectedButton}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.e(_.t,{cond:function(){return!R()},
then:function(){return _.e(_.cp,{data:function(){return k.data().notConnectedButton}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"hn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;return _.e("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.e("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.e(_.VB,{text:function(){return E().sectionTitle}})),_.e("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.e(_.VB,{text:function(){return E().bodyHeader}})),_.e("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.e(_.VB,{text:function(){return E().bodyText}})),_.e(_.t,{cond:function(){return E().attributionText},
then:function(){return _.e("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.e(_.VB,{text:function(){return E().attributionText}}))}}))},"jn"),"how-this-was-made-section-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){return _.e("yt-video-description-youchat-section-view-model",{class:_.SQ("ytVideoDescriptionYouchatSectionViewModelHost")},_.e("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.e(_.VB,{text:function(){return k.data().sectionTitle}})),_.e("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.e(_.VB,{text:function(){return k.data().subHeaderText}})),_.e("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.e(_.yB,{data:function(){return _.W(k.data().primaryButton,
_.qz)}})))},"kn"),"yt-video-description-youchat-section-view-model",{props:{data:_.Nq}});var ay=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return k};
_.y(ay,_.p);_.I=ay.prototype;
_.I.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}}}}}};
_.I.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.I.dataChanged=function(){var k,E;this.hasDescriptionOnly=!(((k=this.data)==null?void 0:(E=k.items)==null?void 0:E.length)!==1||!_.W(this.data.items[0],Z1))};
_.I.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.I.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.I.autoFocusDescription=function(){var k;((k=_.en().resolve(_.mz(_.tr)))==null?0:k.isKeyBoardInUse())&&this.description&&_.Nd(this.description)};
_.I.resize=function(){if(_.Y("kevlar_disable_sd_resize"))this.JSC$23037_cardList&&_.Me(this.JSC$23037_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Me(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Me(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.I.scrollToSection=function(k){if(k=this.getSectionElement(k))_.qe(this.hostElement,"yt-scroll-to-watch-element",[k]),k.focus()};
_.I.getSectionElement=function(k){switch(k){case "infocards-item-section":var E;return(E=this.infocardsSection)!=null?E:null;case "transcript-item-section":var S;return(S=this.transcriptSection)!=null?S:null;case "how-this-was-made-section-item-section":var R;return(R=this.howThisWasMadeSection)!=null?R:null;case "files-item-section":var V;return(V=this.filesSection)!=null?V:null;default:return null}};
_.I.handleSetActiveItemAction=function(k){var E=_.W(k,tws),S=E&&(E==null?void 0:E.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23037_cardList;if(E&&S){k=this.currentActiveChapter;var R=this.currentActiveProblem;E=S==null?void 0:S.getItemByIndex(E.itemIndex);var V=S=!0;E&&(E.active=!0,E.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(S=k!==E,V=!1,this.currentActiveChapter=E):(E==null?void 0:E.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(S=!1,V=R!==E,this.currentActiveProblem=E));k&&S&&(k.active=!1);R&&V&&(R.active=!1)}};
_.mt.Object.defineProperties(ay.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
ay.prototype.onYtExpanderMoreTapped=ay.prototype.onYtExpanderMoreTapped;ay.prototype.onHiddenChanged=ay.prototype.onHiddenChanged;ay.prototype.dataChanged=ay.prototype.dataChanged;ay.prototype.panelContentVisibleChanged=ay.prototype.panelContentVisibleChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ay.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.KS),_.l("design:type",Object)],ay.prototype,"ironResizableBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ay.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],ay.prototype,"panelContentVisible",void 0);_.Z([_.H(),_.l("design:type",Boolean)],ay.prototype,"hasDescriptionOnly",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ay.prototype,"inlineStructuredDescription",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ay.prototype,"hidden",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ay.prototype,"shortsPanel",void 0);_.Z([_.H(),_.l("design:type",Object)],ay.prototype,"videoSummary",void 0);_.Z([_.H(),_.l("design:type",Object)],ay.prototype,"merchShelf",void 0);
_.Z([_.U("videoSummary"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ay.prototype,"showVideoSummary",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ay.prototype,"engagementPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],ay.prototype,"watchWhileSdp",void 0);_.Z([_.JO("ytd-expandable-video-description-body-renderer"),_.l("design:type",Object)],ay.prototype,"description",void 0);
_.Z([_.JO("ytd-horizontal-card-list-renderer"),_.l("design:type",Object)],ay.prototype,"JSC$23037_cardList",void 0);_.Z([_.JO("ytd-horizontal-card-list-renderer[center-items]"),_.l("design:type",Object)],ay.prototype,"problemWalkthroughCardList",void 0);_.Z([_.JO("ytd-shelf-renderer"),_.l("design:type",Object)],ay.prototype,"shelfSection",void 0);_.Z([_.JO("ytd-video-description-music-section-renderer"),_.l("design:type",Object)],ay.prototype,"musicMetadataSection",void 0);
_.Z([_.JO("ytd-video-description-infocards-section-renderer"),_.l("design:type",Object)],ay.prototype,"infocardsSection",void 0);_.Z([_.JO("ytd-video-description-transcript-section-renderer"),_.l("design:type",Object)],ay.prototype,"transcriptSection",void 0);_.Z([_.JO("how-this-was-made-section-view-model"),_.l("design:type",Object)],ay.prototype,"howThisWasMadeSection",void 0);_.Z([_.JO("ytd-video-description-files-section-renderer"),_.l("design:type",Object)],ay.prototype,"filesSection",void 0);
_.Z([_.il("panelContentVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ay.prototype,"panelContentVisibleChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ay.prototype,"dataChanged",null);_.Z([_.il("hidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ay.prototype,"onHiddenChanged",null);
_.Z([_.nv("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ay.prototype,"onYtExpanderMoreTapped",null);_.Z([_.D({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],ay);
_.b(ay,"ytd-structured-description-content-renderer",function(){if(upJ!==void 0)return upJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return upJ=k},{mode:2});var xdo;var LEk;var t_=function(){return _.p.apply(this,arguments)||this};
_.y(t_,_.p);t_.prototype.computeAriaLabel=function(k){var E,S;return(k==null?void 0:(E=k.accessibility)==null?void 0:(S=E.accessibilityData)==null?void 0:S.label)||_.Vi("LOADING",void 0,"Loading")};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],t_.prototype,"data",void 0);_.Z([_.H({computed:"computeAriaLabel(data)"}),_.l("design:type",String)],t_.prototype,"ariaLabel",void 0);_.Z([_.U_({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],t_);
_.b(t_,"yt-content-loading-renderer",function(){if(LEk===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;xdo===void 0&&(xdo=document.createElement("template"));var R=xdo;S.call(E,R.content.cloneNode(!0),k.content.firstChild);LEk=k}k=LEk;return k},{mode:_.GN("kevlar_poly_si_batch_j043")?1:2});_.qi(_.f(function(k){var E=_.n(_.yg(!1,void 0,"OZMtVb")),S=E.next().value,R=E.next().value;E=_.n(_.yg(!1,void 0,"qWERsf"));var V=E.next().value,N=E.next().value;_.b$(function(){var m=_.W(k.data().collaboratePlaylistCollaborationSetting,xgU);m&&R(m.switchedOnByDefault);var a=_.W(k.data().allowNewCollaboratorsPlaylistCollaborationSetting,xgU);a&&N(a.switchedOnByDefault);if(!m&&!a||!m&&k.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")R(!0),N(!0)});
var h=function(m){R(m);N(m);var a=k.data().playlistCollaborationEntityKey||"";var T=_.vu().getState();(T=_.Ep(T.entities,"playlistCollaborationEntity",a))&&(T==null?void 0:T.isCollaborative)===m||_.vu().dispatch(_.mj("playlistCollaborationEntity",a,Object.assign({},T,{isCollaborative:m})))},J=function(m){N(m)};
return _.e("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.e("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.e(_.cp,{data:function(){return k.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(m){return _.e(_.a4d,{data:m.data,
onSwitch:h})}})),_.e(_.t,{cond:S,
then:function(){return _.e(_.tj,null,_.e("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.e(_.cp,{data:function(){return k.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(m){return _.e(_.a4d,{data:m.data,
onSwitch:J,overrideDisabled:!1})}})),_.e(_.t,{cond:V,
then:function(){return _.e("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.e(_.cp,{data:function(){return k.data().copyLinkButton}},{buttonViewModel:_.yB}))}}),_.e("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.e(_.cp,{data:function(){return k.data().playlistCollaborators}},{contentListItemViewModel:_.WCx})))}}))},"ln"),"playlist-collaboration-view-model",{props:{data:_.Nq}});var jW$=_.f(function(k){var E=k.data;var S=k.customCommandResolver;return _.e(_.tj,null,_.e("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.e(_.cp,{data:function(){return E().adAvatar}},{adAvatarViewModel:function(R){return _.e(_.v5p,{data:R.data,
customCommandResolver:S})}})),_.e("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.e(_.t,{cond:function(){return E().headline},
then:function(R){return _.e(_.VB,{text:R,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.e("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.e(_.cp,{data:function(){return E().adBadge}},{adBadgeViewModel:function(R){return _.e(_.Y_,{data:R.data,
hasDot:function(){return E().primaryDetailsLine!==void 0},
customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.e(_.cp,{data:function(){return E().primaryDetailsLine}},{adDetailsLineViewModel:function(R){return _.e(_.WW,{data:R.data,
customCommandResolver:S,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"mn"),Dd$=_.f(function(k){var E=k.data;
var S=k.customCommandResolver;return _.e("ad-avatar-lockup-view-model",{class:function(){var R;return((R=E().interaction)==null?0:R.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.Z0(_.e9({visibilityCallback:function(R){var V,N=(V=E().interaction)==null?void 0:V.onFirstVisible;R&&N&&_.AV(N)},
showOption:_.m1}),_.gd(function(){return E().interaction},S)),
"aria-label":function(){var R,V;return(R=E().interaction)==null?void 0:(V=R.accessibility)==null?void 0:V.label}},_.e(_.D_,null,_.e(_.xk,{when:function(){return E().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.e(jW$,{data:E,
customCommandResolver:S})}),_.e(_.LV,null,function(){return null})))},"nn");_.qi(_.f(function(k){var E=k.data;var S=k.panelContentVisibility;k=_.e9({visibilityCallback:function(N){var h,J=(h=E().interaction)==null?void 0:h.onFirstVisible;N&&J&&_.AV(J)},
showOption:_.m1});var R=_.gd(function(){return E().interaction},oOu);
_.sm(function(){var N,h;if(h=_.CV("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var J;h=(J=h())==null?void 0:J.onLayoutVisibleCallback}else h=null;(N=h)==null||N()},"on");
var V=function(){return S()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.e("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.Z0(k,R)},_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.e(_.t,{cond:_.m0i("(min-width: "+((0,_.JW)()+_.sd)+"px) or (max-width: 600px)"),then:function(){return _.e(_.cp,{data:function(){return E().adImage}},{adImageViewModel:function(N){return _.e(_.xp,{data:N.data,
targetHeight:80,customCommandResolver:oOu})}})}})),_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.e(_.cp,{data:function(){return E().adAvatarLockup}},{adAvatarLockupViewModel:function(N){return _.e(Dd$,{data:N.data,
customCommandResolver:oOu})}})),_.e(_.t,{cond:V,
then:function(){return _.e(_.cp,{data:function(){return E().adButton}},{adButtonViewModel:function(N){return _.e(_.aT,{data:N.data,
customCommandResolver:oOu})}})},
else:function(){return _.e(_.cp,{data:function(){return E().menu}},{buttonViewModel:_.yB})}}),_.e("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.e(_.cp,{data:function(){var N=_.W(E().toggleButton,_.QK);
return{toggleButtonViewModel:Object.assign({},N,{isTogglingDisabled:!0,isToggled:V()})}}},{toggleButtonViewModel:_.bL})))))},"pn"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Nq,
panelContentVisibility:_.Nq}});_.qi(_.f(function(k){var E=function(){return _.W(k.data().inputComposerViewModel,LNS)},S=_.gb(_.K5.currentPageSubTypeSelector),R=_.gb(_.K5.persistentPanelVisibleSelector),V=_.n(_.yg(!1,void 0,"ZdYZ1d")),N=V.next().value,h=V.next().value;
V=_.n(_.yg(!1,void 0,"iu0Tnf"));var J=V.next().value,m=V.next().value,a=function(){K(!0);var th;_.AV(((th=E())==null?void 0:th.onSubmitCommand)||{})},T=function(){if(R()&&!J()){var th;
(th=_.Sq())==null||th.removeCueRange("aic-proactive");h(!1);m(!0);a();th={continuationCommand:{token:E().endOfVideoContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var He={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),pageContext:a1()}};_.HM(th,{form:{formData:He},commandController:{onSuccess:function(){K(!1)},
onServerError:function(){_.HM(Uno(L()));K(!1)}}})}},w=function(){var th=_.Sq();
if(th&&!N()&&!J()){var He=th.getDuration();He>60&&(th.addCueRange("aic-proactive",He-60,He-20),h(!0))}},P=function(){var th;
return((th=E())==null?void 0:th.youchatPendingResponseEntityKey)||""},B=_.iK(_.dpN,P),F=function(){var th;
return!((th=B())==null||!th.isPendingResponse)},K=function(th){_.sCo(P())(th)};
V=_.n(_.yg(!0,void 0,"FwVSpb"));var r=V.next().value,x=V.next().value,L=function(){return E().sectionTargetId||"youchat_messages_section"};
V=_.Nm("yt-chat-input-view-model");var q=_.VH("textarea"),M=_.iK(mno,"chat_input_view_model_state"),d=ewg(),z=function(){var th;return!((th=M())==null||!th.value)},kb=function(){return k.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},TI=function(){var th;
(th=_.Sq())==null||th.removeCueRange("aic-proactive");h(!1);m(!1);var He;((He=E())==null?0:He.welcomeFeatureContinuation)&&R()&&(a(),th={continuationCommand:{token:E().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},He={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Ho$(),pageContext:a1()}},_.HM(th,{form:{formData:He},commandController:{onSuccess:function(){K(!1)},
onServerError:function(){_.HM(Uno(L()));K(!1)}}}))},a1=function(){if(_.Y("enable_ai_companion")){var th=_.en().resolve(_.mz(_.QXT));
switch(S()){case "watch":var He,ve;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(He=_.Sq())==null?void 0:(ve=He.getVideoData())==null?void 0:ve.video_id};case "search":var Xm,U5;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(Xm=th==null?void 0:_.q5F(th))!=null?Xm:[],entityId:(U5=(new URLSearchParams(window.location.search)).get("search_query"))!=null?U5:void 0};case "companion-canvas":var l4;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(l4=th==null?void 0:_.q5F(th))!=null?l4:[]}}}};
_.b$(function(){var th;if(!z()&&((th=E())==null?0:th.welcomeFeatureContinuation)){var He;((He=E())==null?0:He.setPendingResponseOnWelcome)&&K(!0);th={continuationCommand:{token:E().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};He={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Ho$(),pageContext:a1()}};_.HM(th,{form:{formData:He}});d(!0)}var ve=L(),Xm=_.en().resolve(_.mz(_.uO)),U5=function(){_.J0.remove(ve);d(!1)},l4=function(){_.FF(function(){if(kb()&&
(TI(ve),S()==="watch")){var gY=_.Sq();
gY&&(gY.addEventListener("onStateChange",w),gY.addEventListener("onCueRangeEnter",T))}})};
th=_.Y("enable_ai_companion")?!kb():!0;Xm==null||Xm.addEventListener("yt-navigate-start",U5,{once:th});Xm==null||Xm.addEventListener("yt-navigate-finish",l4,{once:th});_.bI(function(){Xm==null||Xm.removeEventListener("yt-navigate-start",U5);Xm==null||Xm.removeEventListener("yt-navigate-finish",l4);var gY=_.Sq();gY&&(gY.removeEventListener("onCueRangeEnter",T),gY.removeEventListener("onStateChange",w),gY.removeCueRange("aic-proactive"))})});
var Ah=function(){var th=q.value.value;q.value.value="";XXo(q.value);var He,ve=((He=E())==null?void 0:He.enableGradientColorBg)||!1;He=gOS(L(),th,ve);_.HM(He);a();var Xm;He={continuationCommand:{token:(Xm=E())==null?void 0:Xm.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};th={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:th,playerOffsetMs:Ho$(),pageContext:a1()}};_.HM(He,{form:{formData:th},commandController:{onSuccess:function(){K(!1)},
onServerError:function(){_.HM(Uno(L()));K(!1)}}})};
return _.e("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:V},_.e("div",{class:"chatInputViewModelChatInputWrapper"},_.e("form",{class:"chatInputViewModelChatInputForm"},_.e("textarea",{class:"chatInputViewModelChatInput",el:q,"on:keydown":_.RZ(function(th){var He=F()||!1;XXo(q.value);He||th.key!=="Enter"||th.shiftKey||(th.preventDefault(),Ah());return!1}),
"on:keyup":_.RZ(function(){x(q.value.value.length===0);return!1}),
placeholder:function(){var th,He;var ve=_.W((He=E())==null?void 0:He.inputFormField,mgo);return ve==null?void 0:(th=ve.contentProperties)==null?void 0:th.placeholderText},
rows:1}),_.e(_.yB,{data:function(){return _.W(k.data().sendButton,_.qz)},
onClick:function(th){th.preventDefault();Ah();x(q.value.value.length===0)},
buttonOverrides:function(){return{disabled:r()||F()}}})),_.e(_.VB,{className:"chatInputViewModelChatDisclaimer",
text:function(){var th;return(th=_.W(k.data().disclaimer,_.QAT))==null?void 0:th.text}})))},"qn"),"yt-chat-input-view-model",{props:{data:_.Nq}});var $dJ=["engagement-panel-clip-create","engagement-panel-clip-view"],fdB=0,Tw=function(){var k=_.p.apply(this,arguments)||this;var E;k.headerData=(E=k.data)==null?void 0:E.header;k.darkerPanels=_.Y("web_watch_darker_panels");k.matchContentTheme=_.Y("web_watch_panel_content_match_theme");k.disableAutoFill=!1;k.isFullscreen=!1;k.isTheaterMode=!1;k.modernPanels=_.Y("kevlar_watch_modern_panels");k.liveChatReplyPanel=!1;k.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");k.disableBackdropFilter=
_.Y("web_disable_backdrop_filter");k.isPersistentPanel=!1;k.trackEngagementPanelVisibility=_.Y("web_watch_track_engagement_panel_visibility");k.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 k};
_.y(Tw,_.p);_.I=Tw.prototype;
_.I.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(k){var E;return(k==null?void 0:(E=k.webComponentHint)==null?void 0:E.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"}}}};
_.I.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var k;if((k=this.hostElement.parentElement)==null?0:k.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.I.detached=function(){this.updateTheaterDisablement()};
_.I.showPanel=function(){var k=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.ZJ.addJob(function(){k.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.I.maybeScrollToItemSection=function(k){var E=this,S,R=k==null?void 0:(S=k.sectionListEngagementPanelExtras)==null?void 0:S.scrollToItemSectionIdentifier;R&&_.ZJ.addJob(function(){var V;(V=E.sectionListRendererElement)==null||V.scrollToItemSection(R)},8)};
_.I.hidePanel=function(){var k=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.ZJ.addJob(function(){k.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.I.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.I.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.I.updatePanel=function(k,E,S,R){var V=this;if((k=k==null?void 0:k.engagementPanelSectionListRenderer)||R){if(k){R=k.header;var N=k.content,h=k.footer;(k=k.targetId)&&this.set("data.targetId",k);R&&this.set("data.header",R);N&&this.set("data.content",N);h&&this.set("data.footer",h)}else R&&(k=R.content,N=R.secondaryHeaderContent,(R=R.targetId)&&this.set("data.targetId",R),k&&this.set("data.content",k),N&&(this.secondaryHeaderData=N));this.updateChildVisibilityProperties();if(E){var J;_.Y("kevlar_update_panel_focus_scroll_killswitch")||
(J={preventScroll:!0});this.focus(J)}_.JB(this,function(){_.Me(V.hostElement,"yt-refit");V.maybeScrollToItemSection(S)})}};
_.I.computeHeaderData=function(){var k,E=(0,_.fO.unsafeClone)((k=this.data)==null?void 0:k.header);if(E){k=new _.z_(Object.keys(E)[0]);var S=_.W(E,k),R=_.W(this.secondaryHeaderData,k);R&&_.Fd(E,k,Object.assign({},R,S))}return E};
_.I.getReloadContinuation=function(){var k,E,S,R=_.n(((k=this.data)==null?void 0:(E=k.content)==null?void 0:(S=E.sectionListRenderer)==null?void 0:S.continuations)||[]);for(k=R.next();!k.done;k=R.next())if(k=k.value,k.reloadContinuationData)return k.reloadContinuationData.continuation};
_.I.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var k;((k=this.data)==null?0:k.targetId)&&(k=this.contentElement.firstElementChild)&&k.setAttribute("panel-target-id",this.data.targetId)};
_.I.forwardPopupClosedToFlowRootRenderer=function(){var k=_.Cc(this.hostElement).querySelector("ytd-flow-root-renderer");if(k)k.onPopupClosed()};
_.I.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var k;if(!$dJ.includes((k=this.theaterDisablementPanelIdentifier)!=null?k:""))if(k=_.Y("web_watch_imax_theater_mode")&&this.isTheaterMode,k=_.Y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||k,_.Y("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||k){var E;this.visibility=(E=this.data)==null?void 0:E.visibility;var S;this.trackEngagementPanelVisibility&&((S=this.data)==null?void 0:S.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var R,V,N,h;this.contentEmpty=!!(((R=this.data)==null?0:(V=R.content)==null?0:V.structuredDescriptionContentRenderer)&&Object.keys((N=this.data)==null?void 0:(h=N.content)==null?void 0:
h.structuredDescriptionContentRenderer).length===0);(E=_.en().resolve(_.$g))&&E.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.I.isTheaterModeChanged=function(){_.Y("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.I.isFullscreenChanged=function(){_.Y("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.I.focus=function(k){if(this.header)this.header.focus(k);else{var E;(E=_.Cc(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||E.focus(k)}};
_.I.visibilityChanged=function(){if(!_.Y("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var k=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",S=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",R=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",V=R||!this.lastVisibility,N,h,J,m=((N=this.data)==null?void 0:(h=N.identifier)==null?void 0:
h.tag)||((J=this.data)==null?void 0:J.panelIdentifier);if(k&&V){var a;((a=this.data)==null?0:a.onShowCommands)&&_.Ot(this.hostElement,this.data.onShowCommands,this.hostElement);m&&_.vo().dispatch(_.zX({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:m}}))}else if(E&&S){var T;((T=this.data)==null?0:T.onHideCommands)&&_.Ot(this.hostElement,this.data.onHideCommands,this.hostElement);m&&_.vo().dispatch(_.zX({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:m}}))}k&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*fdB++));_.Y("kevlar_watch_focus_on_engagement_panels")&&k&&R&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.I.notifyVisibilityChanged=function(k){var E;_.zR(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,k,(E=this.data)==null?void 0:E.targetId]);if(_.Y("autonav_pause_for_comments_ep")){var S;_.Me(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:k==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(S=this.data)==null?void 0:S.targetId})}};
_.I.updateTheaterDisablement=function(){if(!_.Y("kevlar_watch_theater_disablement_killswitch")){var k=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&$dJ.includes(k)&&!_.Y("watch_next_grid_ignore_disallowed_panels")){var E=_.yQ(_.vo().getState()),S=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";k!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():S?(this.originalTheaterState===void 0&&(this.originalTheaterState=E,this.theaterDisablementPanelIdentifier=
k),E&&_.qe(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.I.clearTheaterDisablement=function(){_.qe(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.I.updateChildVisibilityProperties=function(){this.hostElement||_.Y("kevlar_panel_property_init_killswitch")||this._enableProperties();var k=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=k);var E,S=(E=this.headerElement)==null?void 0:E.firstElementChild;if(S&&!this.adHeaderImageLockupViewModel){E=k==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";S.collapsed=E;S=_.Cc(S).querySelector("#visibility-button");if(!S)return;(S=S.firstElementChild)&&
S.polymerController.is==="ytd-toggle-button-renderer"&&S.polymerController.data.isToggled!==E&&S.polymerController.set("data.isToggled",E)}var R;if(E=(R=this.contentElement)==null?void 0:R.firstElementChild)if(k&&k!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")E.removeAttribute("panel-content-visible");else{E.setAttribute("panel-content-visible","");var V;(V=E.markDirty)==null||V.call(E)}};
_.I.onYtChangeEngagementPanelVisibilityAction=function(k){var E=this,S,R=(S=this.data)==null?void 0:S.targetId,V,N,h;S=((V=this.data)==null?void 0:(N=V.identifier)==null?void 0:N.tag)||((h=this.data)==null?void 0:h.panelIdentifier);var J=_.W(k,_.Bh8),m;k=R&&(J==null?void 0:J.targetId)===R||S&&(J==null?void 0:(m=J.panelIdentifier)==null?void 0:m.tag)===S;this.dialog&&k&&(J==null?void 0:J.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(R==="engagement-panel-comments-section"?_.qe(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.qe(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",S]));!_.Y("kevlar_use_engagement_panel_management_component")&&k&&(R=J.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!R?_.ZJ.addJob(function(){E.visibility=J.visibility},2,this.hideDelayMs):this.visibility=J.visibility,J.visibility&&this.notifyVisibilityChanged(J.visibility))};
_.I.onYtScrollToEngagementPanelCommand=function(k){var E,S=(E=this.data)==null?void 0:E.targetId,R,V,N;E=((R=this.data)==null?void 0:(V=R.identifier)==null?void 0:V.tag)||((N=this.data)==null?void 0:N.panelIdentifier);k=_.W(k,_.AHd);var h;(S&&(k==null?void 0:k.targetId)===S||E&&(k==null?void 0:(h=k.panelIdentifier)==null?void 0:h.tag)===E)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.qe(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.I.attachVEs=function(k){var E,S;(k==null?0:(E=k.content)==null?0:(S=E.productListRenderer)==null?0:S.trackingParams)&&_.JV().graftServerVe(k.content.productListRenderer.trackingParams);var R,V;(k==null?0:(R=k.content)==null?0:(V=R.transcriptRenderer)==null?0:V.trackingParams)&&_.JV().graftServerVe(k.content.transcriptRenderer.trackingParams)};
_.I.onYtUpdateEngagementPanelAction=function(k){var E,S=(E=this.data)==null?void 0:E.targetId;k=_.W(k,wCJ);S&&(k==null?void 0:k.targetId)===S&&(this.updatePanel({engagementPanelSectionListRenderer:{header:k==null?void 0:k.header,content:k==null?void 0:k.content}},!1),this.attachVEs(k))};
_.I.onYtShowEngagementPanelScrimAction=function(k){var E,S=(E=this.data)==null?void 0:E.targetId;k=_.W(k,T0r);S&&(k==null?void 0:k.engagementPanelTargetId)===S&&(this.scrimmed=!0)};
_.I.onYtHideEngagementPanelScrimAction=function(k){var E,S=(E=this.data)==null?void 0:E.targetId;k=_.W(k,a_N);S&&(k==null?void 0:k.engagementPanelTargetId)===S&&(this.scrimmed=!1)};
_.I.getIdentifier=function(){var k,E,S;return((k=this.data)==null?void 0:k.panelIdentifier)||((E=this.data)==null?void 0:(S=E.identifier)==null?void 0:S.tag)};
_.I.getSurface=function(){var k,E;return(k=this.data)==null?void 0:(E=k.identifier)==null?void 0:E.surface};
_.mt.Object.defineProperties(Tw.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var k=this.getIdentifier();return k==="engagement-panel-youchat"||k==="PAyouchat"}}});
Tw.prototype.visibilityChanged=Tw.prototype.visibilityChanged;Tw.prototype.isFullscreenChanged=Tw.prototype.isFullscreenChanged;Tw.prototype.isTheaterModeChanged=Tw.prototype.isTheaterModeChanged;Tw.prototype.dataChanged=Tw.prototype.dataChanged;Tw.prototype.forwardPopupClosedToFlowRootRenderer=Tw.prototype.forwardPopupClosedToFlowRootRenderer;Tw.prototype.onYtRendererstamperFinished=Tw.prototype.onYtRendererstamperFinished;
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Tw.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Tw.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],Tw.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Tw.prototype,"data",void 0);
_.Z([_.H({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.l("design:type",Object)],Tw.prototype,"headerData",void 0);_.Z([_.H(),_.l("design:type",Object)],Tw.prototype,"secondaryHeaderData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"visibility",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Tw.prototype,"contentEmpty",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Tw.prototype,"scrimmed",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Tw.prototype,"dialog",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Tw.prototype,"dropdown",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"darkerPanels",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"matchContentTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],Tw.prototype,"disableAutoFill",void 0);
_.Z([_.H({reflectToAttribute:!0,value:_.Y("optimal_reading_width_comments_ep")}),_.l("design:type",Boolean)],Tw.prototype,"optimalReadingWidthComments",void 0);_.Z([_.H(),_.l("design:type",Number)],Tw.prototype,"hideDelayMs",void 0);_.Z([_.H({selector:_.oZ,reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"isFullscreen",void 0);_.Z([_.H({selector:_.yQ,reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"isTheaterMode",void 0);
_.Z([_.H(),_.l("design:type",Number)],Tw.prototype,"showDelayMs",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.targetId"),_.l("design:type",Object),_.l("design:paramtypes",[])],Tw.prototype,"targetId",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Tw.prototype,"webSize",null);_.Z([_.H(),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Tw.prototype,"hideFooterBorder",null);
_.Z([_.H(),_.l("design:type",Object)],Tw.prototype,"isWatch",void 0);_.Z([_.H(),_.l("design:type",Object)],Tw.prototype,"originalTheaterState",void 0);_.Z([_.H(),_.l("design:type",Object)],Tw.prototype,"theaterDisablementPanelIdentifier",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"modernPanels",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Tw.prototype,"isWatchWhilePanel",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Tw.prototype,"shortsPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Tw.prototype,"liveChatEngagementPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Tw.prototype,"learningChatEngagementPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"liveChatReplyPanel",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"enableAnchoredPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"disableBackdropFilter",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Tw.prototype,"isPersistentPanel",void 0);_.Z([_.H(),_.l("design:type",Object)],Tw.prototype,"trackEngagementPanelVisibility",void 0);_.Z([_.JO("#header"),_.l("design:type",HTMLElement)],Tw.prototype,"headerElement",void 0);
_.Z([_.JO("#header > *"),_.l("design:type",HTMLElement)],Tw.prototype,"header",void 0);_.Z([_.JO("ytd-section-list-renderer"),_.l("design:type",Object)],Tw.prototype,"sectionListRendererElement",void 0);_.Z([_.JO("panel-ad-header-image-lockup-view-model"),_.l("design:type",HTMLElement)],Tw.prototype,"adHeaderImageLockupViewModel",void 0);_.Z([_.JO("#content"),_.l("design:type",HTMLElement)],Tw.prototype,"contentElement",void 0);
_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tw.prototype,"onYtRendererstamperFinished",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tw.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.Z([_.ac("data","isFullscreen","isTheaterMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tw.prototype,"dataChanged",null);
_.Z([_.il("isTheaterMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tw.prototype,"isTheaterModeChanged",null);_.Z([_.il("isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tw.prototype,"isFullscreenChanged",null);_.Z([_.il("visibility"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tw.prototype,"visibilityChanged",null);
_.Z([_.D({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Tw);
_.b(Tw,"ytd-engagement-panel-section-list-renderer",function(){if(IdJ!==void 0)return IdJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return IdJ=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var vfg;var wa=function(){var k=_.p.apply(this,arguments)||this;k.lastRenderedPanelIds=new Set;k.visiblePanels=[];k.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return k};
_.y(wa,_.p);_.I=wa.prototype;_.I.dataChanged=function(){if(this.data){for(var k=[],E=_.n(this.data),S=E.next();!S.done;S=E.next()){S=S.value;var R=void 0,V=void 0,N=(R=S)==null?void 0:(V=R.engagementPanelSectionListRenderer)==null?void 0:V.visibility;V=R=void 0;((R=S)==null?0:(V=R.engagementPanelSectionListRenderer)==null?0:V.targetId)&&N!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&k.push(S)}this.visiblePanels=k}else this.visiblePanels=[]};
_.I.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}}};
_.I.withoutVisiblePanelById=function(k){return this.visiblePanels.filter(function(E){var S;return((S=E.engagementPanelSectionListRenderer)==null?void 0:S.targetId)!==k})};
_.I.onYtChangeEngagementPanelVisibilityAction=function(k){var E=this,S=_.W(k,_.Bh8);if(this.data&&(S==null?0:S.targetId)&&(S==null?0:S.visibility)){var R,V=(R=this.data.find(function(h){var J;return((J=h.engagementPanelSectionListRenderer)==null?void 0:J.targetId)===S.targetId}))==null?void 0:R.engagementPanelSectionListRenderer;
if(V){var N=this.withoutVisiblePanelById(S.targetId);S.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(k=this.data.find(function(h){var J;return((J=h.engagementPanelSectionListRenderer)==null?void 0:J.targetId)===S.targetId}))&&(N=[k].concat(_.$e(N)));
this.hideDelayMs&&S.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&N.length===0?_.ZJ.addJob(function(){V.visibility=S.visibility;E.visiblePanels=N},10,this.hideDelayMs):(V.visibility=S.visibility,this.visiblePanels=N);
_.zR(this.hostElement,"yt-engagement-panels-visible-changed",[N])}}};
_.I.onRendererstamperFinished=function(){var k=new Set(this.visiblePanels.map(function(E){var S;return(S=E.engagementPanelSectionListRenderer)==null?void 0:S.targetId}));
this.handlePanelVisibilityChange(k,this.lastRenderedPanelIds);this.lastRenderedPanelIds=k};
_.I.handlePanelVisibilityChange=function(k,E){k=k===void 0?new Set:k;E=E===void 0?new Set:E;if(this.data)for(var S=_.n(this.data),R=S.next();!R.done;R=S.next()){R=R.value;var V=void 0,N=void 0,h=(V=R)==null?void 0:(N=V.engagementPanelSectionListRenderer)==null?void 0:N.targetId;if(h&&(V=E.has(h),N=k.has(h),h=void 0,!V&&N?(N=V=void 0,h=(V=R)==null?void 0:(N=V.engagementPanelSectionListRenderer)==null?void 0:N.onShowCommands):V&&!N&&(N=V=void 0,h=(V=R)==null?void 0:(N=V.engagementPanelSectionListRenderer)==
null?void 0:N.onHideCommands),h))for(R=_.n(h),h=R.next();!h.done;h=R.next())this.ytComponentBehavior.resolveCommand(h.value)}};
wa.prototype.onRendererstamperFinished=wa.prototype.onRendererstamperFinished;wa.prototype.dataChanged=wa.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],wa.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],wa.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],wa.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],wa.prototype,"lastRenderedPanelIds",void 0);_.Z([_.H(),_.l("design:type",Number)],wa.prototype,"hideDelayMs",void 0);_.Z([_.H(),_.l("design:type",Array)],wa.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Array)],wa.prototype,"visiblePanels",void 0);_.Z([_.H(),_.l("design:type",Boolean)],wa.prototype,"isWatchWhilePanel",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wa.prototype,"dataChanged",null);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wa.prototype,"onRendererstamperFinished",null);_.Z([_.D({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],wa);
_.b(wa,"ytd-watch-engagement-panels",function(){if(vfg!==void 0)return vfg;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return vfg=k},{mode:1});var b2J;var Ph=function(){return _.p.apply(this,arguments)||this};
_.y(Ph,_.p);Ph.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.nR(_.Cc(this.hostElement).querySelector("#text"),_.AEp(_.xVC,this.data.companionLegalText))};
Ph.prototype.computeAutoScrollEnabled=function(k,E){return k&&!E};
Ph.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Ph.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Ph.prototype.expandedChanged=Ph.prototype.expandedChanged;Ph.prototype.dataChanged=Ph.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.nWJ),_.l("design:type",Object)],Ph.prototype,"ytdAutoScrollBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ph.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],Ph.prototype,"expanded",void 0);
_.Z([_.H({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.l("design:type",Boolean)],Ph.prototype,"autoScrollEnabled",void 0);_.Z([_.H(),_.l("design:type",String)],Ph.prototype,"expanderIcon",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ph.prototype,"dataChanged",null);
_.Z([_.il("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ph.prototype,"expandedChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Ph);
_.b(Ph,"ytd-companion-legal-text-renderer",function(){if(b2J!==void 0)return b2J;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return b2J=k},{mode:1});var Z2X;var Bh=function(){var k=_.p.apply(this,arguments)||this;k.buttonUpdate=_.Y("web_modern_buttons");k.kevlarWatchGrid=_.Y("kevlar_watch_grid");k.centerAlignDescription=_.Y("action_companion_center_align_description");k.truncateDomain=_.Y("action_companion_truncate_domain");k.enableMonoStyle=_.Y("enable_default_mono_cta_migration_web_client");return k};
_.y(Bh,_.p);_.I=Bh.prototype;_.I.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.I.getOnLayoutVisibleCallback=function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.onLayoutVisibleCallback:null};
_.I.getLayoutId=function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.layoutId:null};
_.I.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",Bh.JSC$23086_DEFAULT_AD_BADGE_RENDERER);var k=this.getOnLayoutVisibleCallback();k&&k()}};
_.I.getButtonRenderer=function(k){return k.actionButton&&_.W(k.actionButton,_.dZ)?(delete _.W(k.actionButton,_.dZ).navigationEndpoint,_.W(k.actionButton,_.dZ)):{}};
_.I.onClick=function(k){var E=this;if((!_.Y("web_modern_buttons")||!_.v9(_.vT(k),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){k=_.s3();var S=this.getLayoutId();k&&S&&_.Y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?k.getPlayerPromise().then(function(R){(new _.vW(R)).executeCommand(E.data.navigationEndpoint,S)}):_.Y("kevlar_companion_resolve_command_killswitch")?_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.qe(this.hostElement,"yt-companion-ad-clicked",["action-companion",S])}};
_.mt.Object.defineProperties(Bh.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.data)==null?0:(E=k.detailsLine)==null?0:(S=E.adRating)==null?0:S.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 k,E,S,R;return((k=this.data)==null?0:(E=k.detailsLine)==null?0:(S=E.adRating)==null?0:(R=S.ratingIcon)==null?0:R.iconType)?_.SF(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R;return((k=this.data)==null?0:(E=k.detailsLine)==null?0:(S=E.texts)==null?0:(R=S[0])==null?0:R.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 k,E;return((k=this.data)==null?0:(E=k.description)==null?0:E.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var k=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return k?k.indexOf("/default_banner")!==-1:!0}}});
Bh.prototype.onClick=Bh.prototype.onClick;Bh.prototype.dataChanged=Bh.prototype.dataChanged;Bh.JSC$23086_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Vi("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Bh.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Bh.prototype,"rendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Bh.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Bh.prototype,"buttonUpdate",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Bh.prototype,"kevlarWatchGrid",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Bh.prototype,"centerAlignDescription",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Bh.prototype,"truncateDomain",void 0);
_.Z([_.H({computed:"computeButtonOverride(buttonUpdate)"}),_.l("design:type",Object)],Bh.prototype,"buttonOverride",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Bh.prototype,"enableMonoStyle",void 0);_.Z([_.U("data.detailsLine.adRating.ratingText"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bh.prototype,"getRating",null);_.Z([_.U("getRating"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Bh.prototype,"computeRatingHidden",null);
_.Z([_.U("data.detailsLine.adRating.ratingIcon.iconType"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bh.prototype,"iconType",null);_.Z([_.U("data.detailsLine.texts.0.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bh.prototype,"getDetailsLine",null);_.Z([_.U("getDetailsLine"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Bh.prototype,"computeDetailsLineHidden",null);
_.Z([_.U("data.description.text"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bh.prototype,"getDescriptionText",null);_.Z([_.U("getDescriptionText"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Bh.prototype,"computeDescriptionTextHidden",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bh.prototype,"interactionLoggingClientData",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Bh.prototype,"hideBanner",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Bh.prototype,"dataChanged",null);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Bh.prototype,"onClick",null);_.Z([_.D({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],Bh);
_.b(Bh,"ytd-action-companion-ad-renderer",function(){if(Z2X!==void 0)return Z2X;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Z2X=k},{mode:_.GN("kevlar_poly_si_batch_j067")?1:2});var dd$;var sWB;var YM=function(){var k=_.p.apply(this,arguments)||this;k.buttonUpdate=_.Y("web_modern_buttons");k.hideLegacyBanner=_.Y("enable_dsa_one_click_ata_translators_infeed_elements");k.adInfoButtonStyle="mono";k.adInfoButtonType="text";k.noDotAdBadge=!0;return k};
_.y(YM,_.p);_.I=YM.prototype;_.I.getOnLayoutVisibleCallback=function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.onLayoutVisibleCallback:null};
_.I.getLayoutId=function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.layoutId:null};
_.I.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 k=this.data.image.thumbnail.thumbnails[0];this.imageSrc=k.url?_.ZF(k.url):void 0;this.imageWidth=k.width||0;this.imageHeight=k.height||0}this.data.clickthroughEndpoint&&_.W(this.data.clickthroughEndpoint,_.Oc)&&(k=_.W(this.data.clickthroughEndpoint,_.Oc).url,_.Y("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
k||"":k?(k=_.ZF(k),this.clickThroughUrl=_.DF(k)):this.clickThroughUrl=void 0);(k=this.getOnLayoutVisibleCallback())&&k()}};
_.I.onClick=function(k){_.v9(_.vT(k),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(k)};
_.I.handleClick=function(){var k=this;this.data&&this.data.clickthroughEndpoint&&(_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(E){k.macroReplacementBehavior.sendServiceRequestAction([E])}),_.qe(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.I.onLoad=function(){_.zR(this.hostElement,"yt-refit-popups-action")};
_.mt.Object.defineProperties(YM.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.interactionLoggingClientData:null}}});
YM.prototype.onLoad=YM.prototype.onLoad;YM.prototype.onClick=YM.prototype.onClick;YM.prototype.dataChanged=YM.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],YM.prototype,"rendererBehavior",void 0);_.Z([_.g(c6U.YtMacroReplacementBehavior),_.l("design:type",Object)],YM.prototype,"macroReplacementBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],YM.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],YM.prototype,"buttonUpdate",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],YM.prototype,"hideLegacyBanner",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],YM.prototype,"adInfoButtonStyle",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],YM.prototype,"adInfoButtonType",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],YM.prototype,"macros",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],YM.prototype,"interactionLoggingClientData",null);_.Z([_.H(),_.l("design:type",String)],YM.prototype,"clickThroughUrl",void 0);_.Z([_.H(),_.l("design:type",_.xJ)],YM.prototype,"imageSrc",void 0);_.Z([_.H(),_.l("design:type",Number)],YM.prototype,"imageWidth",void 0);_.Z([_.H(),_.l("design:type",Number)],YM.prototype,"imageHeight",void 0);_.Z([_.H(),_.l("design:type",Object)],YM.prototype,"noDotAdBadge",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YM.prototype,"dataChanged",null);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],YM.prototype,"onClick",null);_.Z([_.nv("load"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YM.prototype,"onLoad",null);_.Z([_.D({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],YM);
_.b(YM,"ytd-image-companion-renderer",function(){if(sWB!==void 0)return sWB;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return sWB=k},{mode:_.GN("kevlar_poly_si_batch_j067")?1:2});var ldB;var Wh=function(){return _.p.apply(this,arguments)||this};
_.y(Wh,_.p);_.I=Wh.prototype;_.I.dataChanged=function(){this.set("data.adBadge",Wh.JSC$23095_DEFAULT_AD_BADGE_RENDERER);if(this.data){var k=this.getOnLayoutVisibleCallback();k&&k()}};
_.I.getOnLayoutVisibleCallback=function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.onLayoutVisibleCallback:null};
_.I.getLayoutId=function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.layoutId:null};
_.I.onCompanionClicked=function(k){this.data&&(k.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.qe(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.I.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var k=_.s3(),E=this.getLayoutId(),S=this.data.clickToAdvSiteEndpoint;k&&E&&_.Y("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?k.getPlayerPromise().then(function(R){(new _.vW(R)).executeCommand(S,E)}):_.Me(this.hostElement,"yt-navigate",{endpoint:S})}};
_.I.sendTrackingPings=function(k){if(k&&k.length!==0&&k[0].loggingUrls&&(k=k[0].loggingUrls.map(this.getBaseUrl)))for(var E=0;E<k.length;E++)_.Cx(k[E])};
_.I.getBaseUrl=function(k){return k.baseUrl||""};
_.mt.Object.defineProperties(Wh.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var k=_.CV("yt.www.ads.eventcache.getLastCompanionData");return k?(k=k())&&k.interactionLoggingClientData:null}}});
Wh.prototype.onCompanionClicked=Wh.prototype.onCompanionClicked;Wh.prototype.dataChanged=Wh.prototype.dataChanged;Wh.JSC$23095_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Vi("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Wh.prototype,"data",void 0);_.Z([_.JO("#title"),_.l("design:type",HTMLElement)],Wh.prototype,"shopTitle",void 0);
_.Z([_.ac("data.impressionEndpoints"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Wh.prototype,"dataChanged",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Wh.prototype,"interactionLoggingClientData",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],Wh.prototype,"onCompanionClicked",null);
_.Z([_.D({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Wh);
_.b(Wh,"ytd-shopping-companion-renderer",function(){if(ldB!==void 0)return ldB;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ldB=k},{mode:1});_.qi(_.f(function(k){var E=k.data;k=_.e9({visibilityCallback:function(R){var V,N=(V=E().interaction)==null?void 0:V.onFirstVisible;R&&N&&_.AV(N)},
showOption:_.m1});var S=_.gd(function(){return E().interaction},KhJ);
_.sm(function(){var R,V;V=(V=_.CV("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.onLayoutVisibleCallback:null;(R=V)==null||R()},"rn");
return _.e("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.RZ(function(R){_.zR(R.currentTarget,"yt-refit-popups-action")}),
el:_.Z0(k,S),"aria-label":function(){var R,V;return(R=E().interaction)==null?void 0:(V=R.accessibility)==null?void 0:V.label}},_.e("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.e(_.cp,{data:function(){return E().adImage}},{adImageViewModel:function(R){return _.e(_.xp,{data:R.data,
targetHeight:80,customCommandResolver:KhJ})}})),_.e("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.e("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.e(_.cp,{data:function(){return E().adBadge}},{adBadgeViewModel:function(R){return _.e(_.Y_,{data:R.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.e("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.e(_.cp,{data:function(){return E().menu}},{buttonViewModel:_.yB}))))},"sn"),"banner-image-layout-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;k=_.e9({visibilityCallback:function(R){var V,N=(V=E().interaction)==null?void 0:V.onFirstVisible;R&&N&&_.AV(N)},
showOption:_.m1});var S=_.gd(function(){return E().interaction},pXk);
_.sm(function(){var R,V;V=(V=_.CV("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.onLayoutVisibleCallback:null;(R=V)==null||R()},"tn");
return _.e("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.Z0(k,S)},_.e("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.e(_.cp,{data:function(){return E().adImage}},{adImageViewModel:function(R){return _.e(_.xp,{data:R.data,
targetHeight:80,customCommandResolver:pXk})}})),_.e("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.e("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.e(_.cp,{data:function(){return E().adAvatarLockup}},{adAvatarLockupViewModel:function(R){return _.e(Dd$,{data:R.data,
customCommandResolver:pXk})}})),_.e(_.cp,{data:function(){return E().adButton}},{adButtonViewModel:function(R){return _.e(_.aT,{data:R.data,
customCommandResolver:pXk})}}),_.e("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.e(_.cp,{data:function(){return E().menu}},{buttonViewModel:_.yB}))))},"un"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Nq}});var Mlo={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"},Fh=function(){var k=_.p.apply(this,arguments)||this;k.updateCompanionDataJobId=0;k.contentVideoId=null;k.player=null;k.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return k};
_.y(Fh,_.p);_.I=Fh.prototype;_.I.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:Mlo}}};
_.I.attached=function(){var k=this,E=_.s3();E&&E.getPlayerPromise().then(function(S){k.getCachedDataAndListen(S)})};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.I.updateRendererStamper=function(){var k={};if(this.data)for(var E in Mlo)if(this.data[E]){k[E]=this.data[E];break}if(this.oneofRenderer!=void 0||Object.keys(k).length)this.oneofRenderer=k};
_.I.getCachedDataAndListen=function(k){var E=this.retrieveCachedCompanionData();E&&Object.keys(E).length&&this.receiveCompanionData(E);this.ytPlayerListenerBehavior.listenToPlayerEvent(k,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=k};
_.I.retrieveCachedCompanionData=function(){return _.Vt.yt&&_.Vt.yt.www&&_.Vt.yt.www.ads&&_.Vt.yt.www.ads.eventcache&&_.Vt.yt.www.ads.eventcache.getLastCompanionData?_.Vt.yt.www.ads.eventcache.getLastCompanionData():null};
_.I.receiveCompanionData=function(k){k&&Object.keys(k).length?(this.contentVideoId=k.contentVideoId,this.setCompanionData(k)):this.setCompanionData(k)};
_.I.setCompanionData=function(k){this.cancelPendingCompanionAdJobs();if(k){this.updateCompanionDataJobId=0;for(var E in Mlo)Mlo.hasOwnProperty(E)&&(this.data[E]=void 0);k.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",k.shoppingCompanionCarouselRenderer):k.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",k.imageCompanionAdRenderer):k.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",k.actionCompanionAdRenderer),_.zR(this.hostElement,
"yt-hide-unlimited-offer-module"),_.zR(this.hostElement,"yt-hide-tvfilm-offer-module")):k.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",k.bannerImageLayoutViewModel):k.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",k.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.I.dataChanged=function(){var k=this,E=_.s3();E?E.getPlayerPromise().then(function(S){k.contentVideoId&&S.getVideoUrl().includes("v="+k.contentVideoId)||(k.cancelPendingCompanionAdJobs(),k.updateRendererStamper())}):_.kr(Error("Vo"))};
_.I.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.ZJ.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.I.handleCompanionAdClicked=function(k,E){this.player.onAdUxClicked(k,E);this.player.pauseVideo()};
Fh.prototype.dataChanged=Fh.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Fh.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Fh.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Fh.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],Fh.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Fh.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Fh.prototype,"oneofRenderer",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Fh.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Fh);
_.b(Fh,"ytd-companion-slot-renderer",function(){if(dd$!==void 0)return dd$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return dd$=k},{mode:_.GN("kevlar_poly_si_batch_j067")?
1:2});var qcr;var yz=function(){return _.p.apply(this,arguments)||this};
_.y(yz,_.p);yz.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
yz.prototype.dataChanged=yz.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],yz.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],yz.prototype,"companionSlotData",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yz.prototype,"dataChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],yz);
_.b(yz,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(qcr!==void 0)return qcr;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return qcr=k},{mode:1});var zx$;var oy=function(){var k=_.p.apply(this,arguments)||this;k.skinnyMode=!1;k.COMPACT_EVENT_COUNT=4;k.onShelfToggleButtonTap=function(){k.logTap(k.data);k.showingMore=!k.showingMore};
k.onShelfToggleButtonFocus=function(){k.showingMore||(k.logTap(k.data),k.showingMore=!0,_.JB(k,function(){var E=k.COMPACT_EVENT_COUNT-1,S;(S=_.Cc(k.hostElement).querySelector("#event-"+E))==null||S.focus()}))};
return k};
_.y(oy,_.p);_.I=oy.prototype;_.I.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.I.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.I.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Ic(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Ic(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Ic(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Ic(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Ic(this.infoTooltip,this.infoTooltip.hide))};
_.I.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Ic(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Ic(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Ic(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Ic(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Ic(this.infoTooltip,this.infoTooltip.hide))};
_.I.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)};
_.I.onShowingMoreChanged=function(){var k;this.showingMoreChanged((k=this.showingMore)!=null?k:!1)};
_.I.showingMoreChanged=function(k){var E=this.get("data.events")||[];this.set("restEvents",E.slice(1,k?E.length:this.COMPACT_EVENT_COUNT).map(function(S){return S.ticketEventRenderer}));
E.slice(0,k?E.length:this.COMPACT_EVENT_COUNT).forEach(function(S){var R=_.Fe();S=S.ticketEventRenderer.trackingParams;_.Wi()&&R&&S&&(S=_.tV(S),R&&_.xA(R,S))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.I.computeAriaLabel=function(k){return k.subtitle1+", "+k.subtitle2};
_.I.logTap=function(k){_.Wi()&&this.ytRendererBehavior.logExplicitClick(k)};
_.I.isKeyboardAction=function(k){return this.get("detail.x",k)===0&&this.get("detail.y",k)===0};
_.I.onFirstEventTap=function(k){k.target&&this.handleTap(k.target,this.firstEvent,this.isKeyboardAction(k))};
_.I.onTicketLinkTap=function(k){k.target&&this.handleTap(k.target,k.model.item,this.isKeyboardAction(k))};
_.I.handleTap=function(k,E,S){if(E.buttonCommand)if(E.hasMultipleOffers)Object.assign(_.W(E.buttonCommand,_.Xg),{properties:{source:S?"keyboard":"tap"}}),this.logTap(E),this.popupPositionTarget=k,_.Ot(this.hostElement,[E.buttonCommand],this.hostElement);else{var R;if((R=_.W(E.buttonCommand,_.Oc))==null?0:R.url)this.logTap(E),_.Cg(window,_.W(E.buttonCommand,_.Oc).url)}};
oy.prototype.onShowingMoreChanged=oy.prototype.onShowingMoreChanged;oy.prototype.dataChanged=oy.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],oy.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],oy.prototype,"firstEvent",void 0);_.Z([_.H(),_.l("design:type",Object)],oy.prototype,"restEvents",void 0);_.Z([_.H(),_.l("design:type",String)],oy.prototype,"imageUrl",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],oy.prototype,"showingMore",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],oy.prototype,"canShowMore",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],oy.prototype,"skinnyMode",void 0);_.Z([_.H(),_.l("design:type",HTMLElement)],oy.prototype,"popupPositionTarget",void 0);_.Z([_.JO("#banner-info-tooltip"),_.l("design:type",Object)],oy.prototype,"infoTooltip",void 0);
_.Z([_.JO("#info-container"),_.l("design:type",HTMLElement)],oy.prototype,"infoContainer",void 0);_.Z([_.JO("#shelf-toggler"),_.l("design:type",HTMLElement)],oy.prototype,"shelfToggleButton",void 0);_.Z([_.JO("#separator"),_.l("design:type",HTMLDivElement)],oy.prototype,"separator",void 0);_.Z([_.H(),_.l("design:type",String)],oy.prototype,"shelfTogglerLabelText",void 0);_.Z([_.H(),_.l("design:type",String)],oy.prototype,"shelfTogglerIcon",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oy.prototype,"dataChanged",null);_.Z([_.ac("showingMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oy.prototype,"onShowingMoreChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],oy);
_.b(oy,"ytd-ticket-shelf-renderer",function(){if(zx$!==void 0)return zx$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return zx$=k},{mode:1});var QWs;var O2g;var GUF=function(){return _.p.apply(this,arguments)||this};
_.y(GUF,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],GUF.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],GUF.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],GUF);
_.b(GUF,"ytd-comments-entry-point-message-renderer",function(){if(O2g!==void 0)return O2g;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return O2g=k},{mode:1});var CMu;var Xh=function(){return _.p.apply(this,arguments)||this};
_.y(Xh,_.p);_.mt.Object.defineProperties(Xh.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.teaserAvatar)}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Xh.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Xh.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Xh.prototype,"hasAvatar",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Xh);
_.b(Xh,"ytd-comments-entry-point-teaser-renderer",function(){if(CMu!==void 0)return CMu;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return CMu=k},{mode:1});var k2X;var E6J=function(){return _.p.apply(this,arguments)||this};
_.y(E6J,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],E6J.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],E6J.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],E6J);
_.b(E6J,"ytd-comments-simplebox-renderer",function(){if(k2X!==void 0)return k2X;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return k2X=k},{mode:1});var UL=function(){var k=_.p.apply(this,arguments)||this;k.fullHeight=!_.Y("comment_teaser_full_height_kill_switch")&&_.Y("kevlar_watch_grid");return k};
_.y(UL,_.p);UL.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"}}}};
UL.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
UL.prototype.onTap=function(){var k=this.tapCommand;k&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(k))};
UL.prototype.onKeyUp=function(k){if(k.keyCode===13)this.onTap()};
_.mt.Object.defineProperties(UL.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null?0:k.onTap)return this.data.onTap;var E,S;if(((E=this.data)==null?0:E.teaserContent)||((S=this.data)==null?0:S.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)!=null&&k.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
UL.prototype.onKeyUp=UL.prototype.onKeyUp;UL.prototype.onTap=UL.prototype.onTap;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],UL.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],UL.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UL.prototype,"fullHeight",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UL.prototype,"tapCommand",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UL.prototype,"simpleboxPlaceholder",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UL.prototype,"hasSimpleboxPlaceholder",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UL.prototype,"simpleboxAvatar",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UL.prototype,"teaserContent",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UL.prototype,"hasTeaserContent",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UL.prototype,"teaserAvatar",null);
_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UL.prototype,"hasTeaserAvatar",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UL.prototype,"messageText",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UL.prototype,"contentRenderer",null);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UL.prototype,"hasContents",null);
_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],UL.prototype,"hasContentRenderer",null);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UL.prototype,"onTap",null);_.Z([_.nv("keypress"),_.l("design:type",Function),_.l("design:paramtypes",[_.eL]),_.l("design:returntype")],UL.prototype,"onKeyUp",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],UL);
_.b(UL,"ytd-comments-entry-point-header-renderer",function(){if(QWs!==void 0)return QWs;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return QWs=k},{mode:1});var S2B;_.qi(_.vKY,"yt-animated-rolling-number",{props:{numberText:_.Nq,numberValue:_.Nq,heightPx:_.Nq,fontSizeMultiplier:_.Nq,shouldAnimate:_.Nq,forceRollUp:_.Nq}});var RRk=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),V9J={numberText:"",heightPx:2*RRk,shouldAnimate:!1},Hh=function(){var k=_.p.apply(this,arguments)||this;k.usingAnimatedComponents=!0;k.wasDetailed=!1;k.JSC$23132_browserSupportsAnimation=_.Y("web_supports_animations_api");k.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};k.detailed=!1;k.shouldAnimate=!1;k.viewCountProps=V9J;k.dateTextProps=
V9J;k.metadataBadgesInDescription=_.Y("web_metadata_badges_in_description");return k};
_.y(Hh,_.p);_.I=Hh.prototype;_.I.attached=function(){var k=this;_.en().resolve(_.nJ).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(E){k.set("videoPrimaryInfoRenderer.subtitle",E)})};
_.I.detached=function(){_.en().resolve(_.nJ).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.I.resetAnimationState=function(){this.shouldAnimate=!1};
_.I.updateDynamicMetadata=function(){if(this.JSC$23132_browserSupportsAnimation){if(!this.detailed){var k,E,S,R;var V=(k=this.videoPrimaryInfoRenderer)==null?void 0:(E=k.viewCount)==null?void 0:(S=E.videoViewCountRenderer)==null?void 0:(R=S.extraShortViewCount)==null?void 0:R.simpleText;var N,h,J,m;var a=(N=this.videoPrimaryInfoRenderer)==null?void 0:(h=N.viewCount)==null?void 0:(J=h.videoViewCountRenderer)==null?void 0:(m=J.shortViewCount)==null?void 0:m.simpleText}if(!a){var T,w,P,B;V=(T=this.videoPrimaryInfoRenderer)==
null?void 0:(w=T.viewCount)==null?void 0:(P=w.videoViewCountRenderer)==null?void 0:(B=P.unlabeledViewCountValue)==null?void 0:B.simpleText;var F,K,r,x;a=(F=this.videoPrimaryInfoRenderer)==null?void 0:(K=F.viewCount)==null?void 0:(r=K.videoViewCountRenderer)==null?void 0:(x=r.viewCount)==null?void 0:x.simpleText}var L,q,M;k=Number((L=this.videoPrimaryInfoRenderer)==null?void 0:(q=L.viewCount)==null?void 0:(M=q.videoViewCountRenderer)==null?void 0:M.originalViewCount);var d,z;L=(d=this.videoPrimaryInfoRenderer)==
null?void 0:(z=d.relativeDateText)==null?void 0:z.simpleText;var kb;d=!((kb=this.videoPrimaryInfoRenderer)==null||!kb.relativeDateText);if(V&&a&&k&&(L||!d)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;kb=a.split(new RegExp("("+V+")"));V=_.DE(kb[0]);var TI;a={numberText:(TI=kb[1])!=null?TI:"",numberValue:k,heightPx:2*RRk,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var a1;TI=((a1=kb[2])!=null?a1:"")+"  ";this.setViewCount(a,V,_.DE(TI));
if(!this.detailed&&d){V=L.split(/(\d+)/);a1=_.DE(V[0]);var Ah;TI={numberText:(Ah=V[1])!=null?Ah:"",heightPx:2*RRk,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var th;Ah=((th=V[2])!=null?th:"")+"  ";this.setDateText(TI,a1,_.DE(Ah))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.I.setViewCount=function(k,E,S){_.$n(E)!==_.$n(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=E);this.viewCountProps.numberText!==(k==null?void 0:k.numberText)&&(this.viewCountProps=k||V9J);_.$n(S)!==_.$n(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=S)};
_.I.setDateText=function(k,E,S){_.$n(E)!==_.$n(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=E);this.dateTextProps.numberText!==(k==null?void 0:k.numberText)&&(this.dateTextProps=k||V9J);_.$n(S)!==_.$n(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=S)};
_.I.onYtUpdateViewershipAction=function(k){this.videoPrimaryInfoRenderer&&(_.W(k,dgX).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.W(k,dgX).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.W(k,dgX).viewCount)))};
_.I.onYtUpdateDateTextAction=function(k){if(this.videoPrimaryInfoRenderer){k=_.W(k,_.bVU).dateText;this.shouldAnimate=!0;var E;((E=this.videoPrimaryInfoRenderer)==null?0:E.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",k):this.set("videoPrimaryInfoRenderer.dateText",k)}};
_.mt.Object.defineProperties(Hh.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Lhg(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.$n(Lhg(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.$n(this.viewCountPreNumberText),this.viewCountProps.numberText,_.$n(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.$n(this.dateTextPreNumberText),this.dateTextProps.numberText,_.$n(this.dateTextPostNumberText)].join("")}}});
Hh.prototype.updateDynamicMetadata=Hh.prototype.updateDynamicMetadata;Hh.prototype.resetAnimationState=Hh.prototype.resetAnimationState;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Hh.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Hh.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Hh.prototype,"videoPrimaryInfoRenderer",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hh.prototype,"detailed",void 0);_.Z([_.H(),_.l("design:type",Object)],Hh.prototype,"shouldAnimate",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hh.prototype,"viewCountPreNumberText",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hh.prototype,"viewCountProps",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hh.prototype,"viewCountPostNumberText",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hh.prototype,"dateTextPreNumberText",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hh.prototype,"dateTextProps",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hh.prototype,"dateTextPostNumberText",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hh.prototype,"metadataBadgesInDescription",void 0);_.Z([_.U("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.l("design:type",Object),_.l("design:paramtypes",[])],Hh.prototype,"infoText",null);
_.Z([_.U("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.l("design:type",String),_.l("design:paramtypes",[])],Hh.prototype,"descriptionInfoTooltipText",null);_.Z([_.U("detailed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Hh.prototype,"showDescriptionInfoTooltip",null);
_.Z([_.U("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.l("design:type",String),_.l("design:paramtypes",[])],Hh.prototype,"animatedViewCountAccessibilityLabel",null);_.Z([_.U("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.l("design:type",String),_.l("design:paramtypes",[])],Hh.prototype,"animatedDateTextAccessibilityLabel",null);
_.Z([_.il("videoPrimaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hh.prototype,"resetAnimationState",null);_.Z([_.il("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hh.prototype,"updateDynamicMetadata",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Hh);
_.b(Hh,"ytd-watch-info-text",function(){if(S2B!==void 0)return S2B;var k=document.createElement("template");_.X(k,'\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  <template is="dom-if" if="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string id="subtitle" ellipsis-truncate="" text="[[videoPrimaryInfoRenderer.subtitle]]" class="style-scope ytd-watch-info-text">\n    </yt-formatted-string>\n  </template>\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return S2B=k},{mode:1});var Nmg;var IlN="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var n6o=_.f(function(k){var E=k.data;var S=k.setTapCommand;_.vX(function(){var R=_.Uk(E().onTap);S(R)},"Hj6Srd");
return _.e("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.e(_.cp,{data:function(){return E().avatar}},{avatarViewModel:_.dw}),_.e("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.e("span",null,function(){return E().simpleboxText})))},"wn");var iZu=_.f(function(k){return _.e("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.e(_.t,{cond:function(){return _.W(k.data().avatar,_.y3)},
then:function(E){return _.e(_.dw,{data:E,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.e("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.e(_.VB,{text:function(){return k.data().teaserText}})))},"xn");var hRN=_.f(function(k){var E=k.data;var S=k.setTapCommand;_.vX(function(){var R=_.Uk(E().onTap);S(R)},"IlZFqc");
return _.e("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.e(_.cp,{data:function(){return E().teasers}},{commentsEntryPointTeaserViewModel:iZu}))},"zn");var JwU=_.f(function(k){var E=k.data;var S=k.setTapCommand;_.vX(function(){var R=_.Uk(E().onTap);S(R)},"sYe8ye");
return _.e("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.e(_.VB,{text:function(){return E().messageText}}))},"Bn");var cwU=_.f(function(k){var E=k.data;var S=k.setTapCommand;var R=k.isDisabled;_.vX(function(){var V=(R==null?0:R())?void 0:_.Uk(E().onTap);S(V)},"GZxRqd");
return _.e("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.e(_.i_,{icon:function(){return E().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.e(_.t,{cond:function(){return E().image},
then:function(V){return _.e(_.vM,{data:V,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.e(_.VB,{text:function(){return E().text},
className:function(){return E().image||E().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.e(_.cp,{data:function(){return E().button}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:R==null?void 0:R()}}})}}))},"Dn");var mmr=_.f(function(k){var E=k.data;var S=k.itemIndex;var R=k.selectedIndex;var V=k.indexUpdatedCallback;var N=k.observer;k=k.title;var h=_.VH("yt-carousel-item-view-model",function(w){N&&N().observe(w)}),J=function(w){S()===R()&&V(w)},m=_.gb(hwX),a=_.gb(_.i0I),T=function(){var w,P,B;
return((w=E())==null?void 0:w.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!m()||((P=E())==null?void 0:P.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&a().includes("PAposts_by_host")||((B=E())==null?void 0:B.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&a().includes("PAyouchat")};
return _.e("yt-carousel-item-view-model",{el:h,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":k},_.e(_.cp,{data:function(){var w,P;return(P=(w=_.W(E().carouselItem,cju))==null?void 0:w.textCarousel)!=null?P:E().carouselItem}},{textCarouselItemViewModel:function(w){return _.e(cwU,{data:w.data,
setTapCommand:J,isDisabled:T})},
commentTeaserCarouselItemViewModel:function(w){return _.e(hRN,{data:w.data,setTapCommand:J})},
commentInputBoxCarouselItemViewModel:function(w){return _.e(n6o,{data:w.data,setTapCommand:J})},
commentsEntryPointMessageViewModel:function(w){return _.e(JwU,{data:w.data,setTapCommand:J})}}))},"En");var eRU=_.f(function(k){var E=k.numDots;var S=k.activeIndex;return _.e("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.e(_.jw,{each:function(){return Array.from({length:E()})},
keyBy:"INDEX"},function(R,V){return _.e("div",{class:function(){var N={};return _.wd("ytCarouselDotsShapeDot",(N.ytCarouselDotsShapeDotActive=V===S(),N))}})}))},"Fn");var alu=_.f(function(k){var E=k.data;var S=k.handleCarouselNavigation;var R=k.numItems;var V=k.selectedIndex;var N=function(){return{disabled:V()===0}},h=function(){return{disabled:V()===R()-1}};
return _.e("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.e("div",null,_.e("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return E().title}),_.e(_.t,{cond:function(){return E().subtitle},
then:function(J){return _.e("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return E().subtitleAccessibilityText}},J)}})),_.e(_.t,{cond:function(){return R()>1},
then:function(){return _.e("div",{class:"ytCarouselTitleViewModelNavigation"},_.e(eRU,{numDots:R,activeIndex:V}),_.e(_.t,{cond:function(){return E().previousButton},
then:function(J){return _.e(_.cp,{data:J},{buttonViewModel:function(m){return _.e(_.yB,{data:m.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return S(-1)},
buttonOverrides:N})}})}}),_.e(_.t,{cond:function(){return E().nextButton},
then:function(J){return _.e(_.cp,{data:J},{buttonViewModel:function(m){return _.e(_.yB,{data:m.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return S(1)},
buttonOverrides:h})}})}}))}}))},"Gn");_.qi(_.f(function(k){var E=k.data;var S,R=_.VH("yt-video-metadata-carousel-view-model"),V=_.VH("div",function(d){var z=function(){var kb=d.offsetWidth*K(),TI=24*(K()-1);P(kb+TI)};
z();window.ResizeObserver&&(S=new ResizeObserver(z),S.observe(d))}),N=_.Mg("HTML_DIR")==="rtl",h=!1,J=0,m=0;
k=_.n(_.yg(0,void 0,"M49TDf"));var a=k.next().value,T=k.next().value;k=_.n(_.yg(0,void 0,"zLIok"));var w=k.next().value,P=k.next().value;k=_.n(_.yg(!1,void 0,"bhelhc"));var B=k.next().value,F=k.next().value,K=function(){var d,z,kb;return(kb=(d=E())==null?void 0:(z=d.carouselTitles)==null?void 0:z.length)!=null?kb:0},r=function(){V.value&&V.value.scrollLeft!==J&&T((N?V.value.scrollLeft<J:V.value.scrollLeft>J)?Math.min(a()+1,K()-1):Math.max(a()-1,0))},x;
window.IntersectionObserver&&(x=new IntersectionObserver(function(d){d=_.n(d);for(var z=d.next();!z.done;z=d.next())if(z.value.isIntersecting){if(h){h=!1;break}r()}else T(m)},{threshold:.2}));
_.vX(function(){if(V.value){var d=(N?-1:1)*(w()/K()+12)*(B()&&x?m:a());typeof V.value.scrollTo==="function"?V.value.scrollTo({left:d,behavior:"smooth"}):V.value.scrollLeft=d;J=d;m=B()&&x?m:a()}},"s9rbgc");
var L,q=function(d){L=d};
_.bI(function(){var d;(d=S)==null||d.disconnect();var z;(z=x)==null||z.disconnect()});
var M=function(d){d=a()+d;d>=0&&d<K()&&(h=!0,T(d))};
return _.e("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:R,"on:click":_.RZ(function(d){if(_.Bp(_.Pp(d),R.value,["BUTTON".toString()])||!L)return!1;_.en().resolve(_.t3).resolveCommand(L,{forceClickLogging:!0});return!1}),
"on:touchstart":_.RZ(function(){F(!0);return!1}),
"on:touchend":_.RZ(function(){x||r();F(!1);return!1}),
hidden:function(){var d,z;return!((d=E())==null?0:(z=d.carouselItems)==null?0:z.length)}},_.e("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.e(_.t,{cond:function(){return E().carouselTitles},
then:function(d){return _.e(_.cp,{data:function(){return d()[B()&&x?m:a()]}},{carouselTitleViewModel:function(z){return _.e(alu,{data:z.data,
handleCarouselNavigation:M,numItems:K,selectedIndex:a})}})}})),_.e("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:V},_.e("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+w()+"px;"}},_.e(_.t,{cond:function(){return E().carouselItems},
then:function(d){return _.e(_.jw,{each:d},function(z,kb){return _.e(_.cp,{data:function(){return z}},{carouselItemViewModel:function(TI){return _.e(mmr,{data:TI.data,
itemIndex:kb,selectedIndex:a,indexUpdatedCallback:q,observer:x,title:function(){a:{var a1=kb();var Ah,th=(Ah=E())==null?void 0:Ah.carouselTitles;if(th&&(a1=th[a1])){var He;a1=(He=_.W(a1,JjJ))==null?void 0:He.title;break a}a1=void 0}return a1}})}})})}}))))},"In"),"yt-video-metadata-carousel-view-model",{props:{data:_.Nq}});var t9o=_.Y("web_action_buttons_update_owner_width")?32:12,KN=function(){var k=_.p.apply(this,arguments)||this;k.isHovering=!1;k.enableColorSampling=_.Y("web_delhi_colorful_sd");k.metadataBadgesInDescription=_.Y("web_metadata_badges_in_description");k.descriptionCollapsed=!0;k.useFadedScrimDescription=_.Y("kevlar_enable_faded_scrim_on_description");k.skinnyMode=!1;k.playlist=!1;k.isDark=document.documentElement.hasAttribute("dark");k.disableVideoOwnerOnTap=_.Y("swatchie_video_owner_on_tap_ks");k.swatcherooDelayLoad=
_.Y("swatcheroo_enable_ghost_cards");k.primaryMenuWidth=0;k.videoId="";k.titleHeadlineXs=_.Y("web_watch_typography_title_headline_xs");k.titleHeadlineS=_.Y("web_watch_typography_title_headline_s");k.titleHeadlineM=_.Y("web_watch_typography_title_headline_m");k.titleHashtagBlackLinkified=_.Y("web_title_hashtag_black_linkified");k.titleHashtagGreyLinkified=_.Y("web_title_hashtag_grey_linkified");k.actionButtonsUpdateOwnerWidth=_.Y("web_action_buttons_update_owner_width");k.shouldForceIconOnly=!1;k.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};k.isFullscreen=!1;k.isTheaterMode=!1;return k};
_.y(KN,_.p);_.I=KN.prototype;_.I.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.I.updateOwnerAndDescriptionPosition=function(){_.Y("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.bV(this.bottomRowElement,this.ownerElement)):(_.bV(this.bottomRowElement,this.descriptionElement),_.bV(this.topRowElement,this.ownerElement)))};
_.I.titleOnTap=function(k){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.v9(_.vT(k)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||this.handleExpandDescriptionCommands()}};
_.I.videoOwnerOnTap=function(k){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.v9(_.vT(k)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.I.detached=function(){var k=this,E;return _.c(function(S){(E=k.resizeObserver)==null||E.disconnect();_.KR(S)})};
_.I.maybeAttachResizeObserver=function(){var k=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.NJ(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){k.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.I.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var k=this.hostElement.clientWidth,E=Math.max(this.largerItemWrap?400:350,k/2-t9o);_.Y("web_action_buttons_update_owner_width")&&(E=this.ownerElement.clientWidth+t9o);this.actionsOnSeparateLine=this.primaryMenuWidth>k-E?!0:!1}};
_.I.stripAttributedDescription=function(k){return{content:k.content.replace(/[\r\n]{2,}/g,"\n")}};
_.I.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.Y("web_modern_buttons"),forceIconButton:!_.Y("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:_.Y("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"}}}};
_.I.videoPrimaryInfoRendererChanged=function(){var k;if((k=this.videoPrimaryInfoRenderer)==null?0:k.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.I.videoSecondaryInfoRendererChanged=function(){var k,E;(E=(k=this.descriptionInlineExpander).collapse)==null||E.call(k);this.descriptionExpandClientVe=_.kh(110509);this.descriptionCollapseClientVe=_.kh(110510);k=_.Fe();E=_.Wi();k&&E&&(_.Y("combine_ve_grafts")?(_.Bq(_.JV(),this.descriptionExpandClientVe,E),_.Bq(_.JV(),this.descriptionCollapseClientVe,E)):_.uD(k,E,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.I.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.I.updateTopLevelIconsOnly=function(){var k=this;_.Y("top_level_update_killswitch")||this.menu&&_.ZJ.addLowPriorityJob(function(){k.menu.topLevelIconsOnly=k.skinnyMode},_.wO("swathceroo_delay_flexible_menu_update",100))};
_.I.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.Y("web_action_buttons_minimize_subscribe")};
_.I.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.I.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.I.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.I.onYtTextInlineExpanderExpandedChanged=function(){if(!_.Y("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var k,E;(E=(k=this.structuredDescriptionContentRendererElement).resize)==null||E.call(k)}};
_.I.onRenderStamperFinished=function(k){(k==null?void 0:k.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.I.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.I.onYtExpanderLessTapped=function(){var k,E=(k=this.videoSecondaryInfoRenderer)==null?void 0:k.showLessCommand;E&&this.ytComponentBehavior.resolveCommand(E)};
_.I.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.I.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.I.onDescriptionClick=function(k){if(!_.v9(_.vT(k)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var E;((E=window.getSelection())==null?0:E.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.Y("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.I.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.I.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.I.logCollapseClick=function(){var k=_.Fe();k&&this.descriptionCollapseClientVe&&_.Dv(k,this.descriptionCollapseClientVe)};
_.I.logExpandClick=function(){var k=_.Fe();k&&this.descriptionExpandClientVe&&_.Dv(k,this.descriptionExpandClientVe)};
_.I.collapseDescription=function(){this.descriptionCollapsed=!0};
_.I.scrollToTopOfContainer=function(){_.qe(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.I.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.I.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.I.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.I.resize=function(){if(this.descriptionInlineExpander){var k,E;(E=(k=this.descriptionInlineExpander).resize)==null||E.call(k)}else _.dg(new _.LC("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var S;(S=this.menu)==null||S.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.I.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var k,E,S,R,V=_.Y("web_action_buttons_update_owner_width")?(S=(k=_.Cc(this.menu).querySelector("#button-shape"))==null?void 0:k.clientWidth)!=null?S:0:(R=(E=_.Cc(this.menu).querySelector("#button"))==null?void 0:E.clientWidth)!=null?R:0,N,h;k=((h=(N=_.Cc(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:N.clientWidth)!=null?h:0)+8+V;var J,m;V=(m=(J=_.Cc(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:J.children.length)!=null?m:2;k<=8*V||(this.primaryMenuWidth=k)}};
_.I.onYtUpdateTitleAction=function(k){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.W(k,ZVJ).title)};
_.I.onYtUpdateDescriptionAction=function(k){if(k=_.W(k,_.BwC)){var E,S=!((E=this.videoSecondaryInfoRenderer)==null||!E.attributedDescription);k.isEmpty||!k.description&&!k.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):k.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",k.attributedDescription):k.description&&(S?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.y_(k.description)):this.set("videoSecondaryInfoRenderer.description",k.description))}};
_.I.onYtDarkModeToggledAction=function(k){this.isDark=k};
_.I.registerPanel=function(){if(!_.Y("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var k=_.Y("web_watch_imax_theater_mode")&&this.isTheaterMode;k=_.Y("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||k;var E=_.en().resolve(_.$g);E&&!k&&E.registerPanel("engagement-panel-structured-description",this)}};
_.I.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.I.parseColorSamplingData=function(){var k;if(_.Y("web_delhi_colorful_sd")&&((k=this.structuredDescriptionContentRenderer)==null?0:k.items)&&(k=this.structuredDescriptionContentRenderer.items.find(function(V){return!!_.W(V,Z1)}))){var E,S;
this.hoverColor={lightTheme:(E=_.W(k,Z1))==null?void 0:E.lightThemeColorPalette,darkTheme:(S=_.W(k,Z1))==null?void 0:S.darkThemeColorPalette};var R;this.hoverText=(R=_.W(k,Z1))==null?void 0:R.colorSampledDescriptionBodyText}};
_.I.updateHoverColor=function(){if(_.Y("web_delhi_colorful_sd")){var k=this.hoverColor,E={},S;k=(S=this.isDark?k==null?void 0:k.darkTheme:k==null?void 0:k.lightTheme)!=null?S:{};S=_.n(IlN);for(var R=S.next();!R.done;R=S.next()){R=R.value;var V=k[R];E["--yt-saturated-"+_.Ne(R)]=V?_.Kc(V):"initial"}_.VO(this.hostElement,E)}};
_.I.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.I.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.I.showPanel=function(k){this.expandDescription();var E=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;E.resize();var S,R=k==null?void 0:(S=k.sectionListEngagementPanelExtras)==null?void 0:S.scrollToItemSectionIdentifier;R?_.ZJ.addJob(function(){E==null||E.scrollToSection(R)},8):this.scrollToTopOfContainer()};
_.I.isVisible=function(){return!this.descriptionCollapsed};
_.I.getReloadContinuation=function(){};
_.I.hidePanel=function(){};
_.I.updatePanel=function(){};
_.mt.Object.defineProperties(KN.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var k;return _.Y("web_delhi_colorful_sd")&&(k=this.structuredDescriptionContentRenderer)!=null&&k.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(E){return!_.W(E,Z1)&&!_.W(E,l_U)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.structuredDescriptionContentRendererComputed)!=null&&k.items){var E;k=_.n((E=this.structuredDescriptionContentRendererComputed)==null?void 0:E.items);for(E=k.next();!E.done;E=k.next())if(E=_.W(E.value,_.Jsd))return E}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.videoPrimaryInfoRenderer)==null?0:k.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return!!((k=this.videoSecondaryInfoRenderer)==null?0:(E=k.owner)==null?0:(S=E.videoOwnerRenderer)==null?0:S.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var k,E;if((k=this.videoSecondaryInfoRenderer)==null?0:(E=k.attributedDescription)==null?0:E.content){var S,R;return(R=this.stripAttributedDescription((S=this.videoSecondaryInfoRenderer)==null?void 0:S.attributedDescription))!=null?R:{runs:[]}}}if(_.Y("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var V,N,h,J;return(J=(h=(V=this.videoSecondaryInfoRenderer)==
null?void 0:V.description)!=null?h:(N=this.videoSecondaryInfoRenderer)==null?void 0:N.attributedDescription)!=null?J:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=(k=this.videoSecondaryInfoRenderer)==null?void 0:k.headerRuns)!=null?E:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.commentsEntryPointHeaderRenderer)==null||!k.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.videoMetadataCarousel)==null||!k.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.wO("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var k,E,S=Object.assign({},(k=this.videoSecondaryInfoRenderer)==null?void 0:(E=k.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(S&&S.rows&&S.collapsedItemCount!==void 0&&!(S.rows.length<=S.collapsedItemCount))return S.rows=S.rows.slice(S.collapsedItemCount),S.collapsedItemCount=0,S}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var k,E,S=Object.assign({},(k=this.videoSecondaryInfoRenderer)==null?void 0:(E=k.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer);if(S&&S.rows&&S.collapsedItemCount!==void 0)return S.rows=S.rows.slice(0,S.collapsedItemCount),S.collapsedItemCount=S.rows.length,S}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var k,E;return!!((k=this.structuredDescriptionContentRendererComputed)==null?0:(E=k.items)==null?0:E.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 k;return(k=this.videoSecondaryInfoRenderer)==null?void 0:k.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.videoSecondaryInfoRenderer)==null?0:(E=k.owner)==null?0:(S=E.videoOwnerRenderer)==null?0:S.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R;return!!((k=this.videoPrimaryInfoRenderer)==null?0:(E=k.videoActions)==null?0:(S=E.menuRenderer)==null?0:(R=S.flexibleItems)==null?0:R.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.D0(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.D0(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var k=this;if(_.Y("web_title_hashtag_grey_delinkified")){var E,S=_.fO.unsafeClone((E=this.videoPrimaryInfoRenderer)==null?void 0:E.title);(E=S==null?void 0:S.runs)&&E.forEach(function(R){if(R==null?0:R.navigationEndpoint)R.textColor=4284506208,k.isDark&&(R.textColor=4289374890)});
return S}return(S=this.videoPrimaryInfoRenderer)==null?void 0:S.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_title_hashtag_black_delinkified")||_.Y("web_title_hashtag_grey_delinkified")}}});
KN.prototype.updateHoverColor=KN.prototype.updateHoverColor;KN.prototype.parseColorSamplingData=KN.prototype.parseColorSamplingData;KN.prototype.resetDescriptionState=KN.prototype.resetDescriptionState;KN.prototype.registerPanel=KN.prototype.registerPanel;KN.prototype.onYtExpanderLessTapped=KN.prototype.onYtExpanderLessTapped;KN.prototype.onYtExpanderMoreTapped=KN.prototype.onYtExpanderMoreTapped;KN.prototype.onRenderStamperFinished=KN.prototype.onRenderStamperFinished;
KN.prototype.onYtTextInlineExpanderExpandedChanged=KN.prototype.onYtTextInlineExpanderExpandedChanged;KN.prototype.onYtTextInlineExpanderCollapseClicked=KN.prototype.onYtTextInlineExpanderCollapseClicked;KN.prototype.onYtTextInlineExpanderExpandClicked=KN.prototype.onYtTextInlineExpanderExpandClicked;KN.prototype.moveActionsElement=KN.prototype.moveActionsElement;KN.prototype.updateShouldForceIconOnly=KN.prototype.updateShouldForceIconOnly;KN.prototype.updateTopLevelIconsOnly=KN.prototype.updateTopLevelIconsOnly;
KN.prototype.structuredDescriptionContentRendererChanged=KN.prototype.structuredDescriptionContentRendererChanged;KN.prototype.videoSecondaryInfoRendererChanged=KN.prototype.videoSecondaryInfoRendererChanged;KN.prototype.videoPrimaryInfoRendererChanged=KN.prototype.videoPrimaryInfoRendererChanged;KN.prototype.maybeUpdateActionsOnSeparateLine=KN.prototype.maybeUpdateActionsOnSeparateLine;KN.prototype.updateOwnerAndDescriptionPosition=KN.prototype.updateOwnerAndDescriptionPosition;
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],KN.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],KN.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],KN.prototype,"ytdReduxBehavior",void 0);_.Z([_.JO("#above-the-fold"),_.l("design:type",HTMLElement)],KN.prototype,"aboveTheFoldContainer",void 0);_.Z([_.JO("#menu ytd-menu-renderer"),_.l("design:type",Object)],KN.prototype,"menu",void 0);_.Z([_.JO("#description-inline-expander"),_.l("design:type",Object)],KN.prototype,"descriptionInlineExpander",void 0);
_.Z([_.JO("#faded-structured-description"),_.l("design:type",Object)],KN.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.Z([_.JO("#structured-description"),_.l("design:type",Object)],KN.prototype,"structuredDescriptionContentRendererElement",void 0);_.Z([_.JO("#title"),_.l("design:type",HTMLElement)],KN.prototype,"titleElement",void 0);_.Z([_.JO("#description"),_.l("design:type",HTMLElement)],KN.prototype,"descriptionElement",void 0);
_.Z([_.JO("#description-interaction"),_.l("design:type",Object)],KN.prototype,"descriptionInteraction",void 0);_.Z([_.JO("#owner"),_.l("design:type",HTMLElement)],KN.prototype,"ownerElement",void 0);_.Z([_.JO("#top-row"),_.l("design:type",HTMLElement)],KN.prototype,"topRowElement",void 0);_.Z([_.JO("#bottom-row"),_.l("design:type",HTMLElement)],KN.prototype,"bottomRowElement",void 0);_.Z([_.JO("#actions"),_.l("design:type",HTMLElement)],KN.prototype,"actionsElement",void 0);
_.Z([_.JO("#bottom-actions"),_.l("design:type",HTMLElement)],KN.prototype,"bottomActionsElement",void 0);_.Z([_.JO("#ytd-watch-info-text"),_.l("design:type",Object)],KN.prototype,"watchInfoTextElement",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"videoPrimaryInfoRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"videoSecondaryInfoRenderer",void 0);
_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"commentsEntryPointHeaderRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"videoMetadataCarousel",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"structuredDescriptionContentRenderer",void 0);_.Z([_.U("structuredDescriptionContentRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"structuredDescriptionContentRendererComputed",null);
_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"videoSummary",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"merchShelf",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"infoPanelBelowMetadata",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"hoverColor",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"hoverText",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"isHovering",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"enableColorSampling",void 0);_.Z([_.U("structuredDescriptionContentRendererComputed"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"productShelf",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"metadataBadgesInDescription",void 0);_.Z([_.U("videoPrimaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"shouldHideBadges",null);
_.Z([_.U("productShelf","descriptionCollapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KN.prototype,"shouldShowProductShelf",null);_.Z([_.H(),_.l("design:type",Boolean)],KN.prototype,"isWatchFlexy",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"descriptionCollapsed",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],KN.prototype,"useFadedScrimDescription",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"skinnyMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("videoSecondaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"largerItemWrap",null);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"playlist",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"clarifyBox",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"playerAds",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],KN.prototype,"isDark",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],KN.prototype,"actionsOnSeparateLine",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"disableVideoOwnerOnTap",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"swatcherooDelayLoad",void 0);_.Z([_.H(),_.l("design:type",Boolean)],KN.prototype,"suppressTopLevelMetadataRows",void 0);
_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"primaryMenuWidth",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"videoId",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"titleHeadlineXs",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"titleHeadlineS",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"titleHeadlineM",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"titleHashtagBlackLinkified",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"titleHashtagGreyLinkified",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.Z([_.H(),_.l("design:type",Object)],KN.prototype,"shouldForceIconOnly",void 0);
_.Z([_.ac("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"updateOwnerAndDescriptionPosition",null);_.Z([_.ac("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.Z([_.U("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"descriptionText",null);_.Z([_.U("videoSecondaryInfoRenderer.headerRuns"),_.l("design:type",Array),_.l("design:paramtypes",[])],KN.prototype,"headerRuns",null);
_.Z([_.H({value:!1}),_.U("commentsEntryPointHeaderRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"hasTeaser",null);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.U("videoMetadataCarousel"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"hasTeaserCarousel",null);_.Z([_.H({value:3}),_.U("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"descriptionMaxLines",null);
_.Z([_.U("videoSecondaryInfoRenderer.metadataRowContainer"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"collapsibleMetadataRows",null);_.Z([_.U("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"alwaysVisibleMetadataRows",null);
_.Z([_.U("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KN.prototype,"hasInlineStructuredDescription",null);_.Z([_.U("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KN.prototype,"showInlineStructuredDescription",null);
_.Z([_.U("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"descriptionExpandCommand",null);_.Z([_.U("videoSecondaryInfoRenderer.owner"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"videoOwnerCommand",null);_.Z([_.H({reflectToAttribute:!0}),_.U("videoPrimaryInfoRenderer.videoActions"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KN.prototype,"flexMenuEnabled",null);
_.Z([_.H({selector:_.oZ,reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"isFullscreen",void 0);_.Z([_.H({selector:_.yQ,reflectToAttribute:!0}),_.l("design:type",Object)],KN.prototype,"isTheaterMode",void 0);_.Z([_.U("descriptionText","useFadedScrimDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KN.prototype,"showAttributedStringDescription",null);
_.Z([_.U("descriptionText","useFadedScrimDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KN.prototype,"showFormattedStringDescription",null);_.Z([_.U("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],KN.prototype,"showFadedStructuredDescription",null);
_.Z([_.ac("videoPrimaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"videoPrimaryInfoRendererChanged",null);_.Z([_.U("videoPrimaryInfoRenderer.title"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"videoTitle",null);_.Z([_.U("videoPrimaryInfoRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],KN.prototype,"noEndpoints",null);
_.Z([_.ac("videoSecondaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"videoSecondaryInfoRendererChanged",null);_.Z([_.il("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"structuredDescriptionContentRendererChanged",null);
_.Z([_.il("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"updateTopLevelIconsOnly",null);_.Z([_.il("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"updateShouldForceIconOnly",null);_.Z([_.il("skinnyMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"moveActionsElement",null);
_.Z([_.nv("yt-text-inline-expander-expand-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"onYtTextInlineExpanderExpandClicked",null);_.Z([_.nv("yt-text-inline-expander-collapse-clicked"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.Z([_.nv("yt-text-inline-expander-expanded-changed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],KN.prototype,"onRenderStamperFinished",null);
_.Z([_.nv("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"onYtExpanderMoreTapped",null);_.Z([_.nv("yt-expander-less-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"onYtExpanderLessTapped",null);
_.Z([_.il("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"registerPanel",null);_.Z([_.il("videoSecondaryInfoRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"resetDescriptionState",null);
_.Z([_.il("structuredDescriptionContentRenderer"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"parseColorSamplingData",null);_.Z([_.il("hoverColor","isDark"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KN.prototype,"updateHoverColor",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-watch-metadata"})],KN);
_.b(KN,"ytd-watch-metadata",function(){if(Nmg!==void 0)return Nmg;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Nmg=k},{mode:2});_.yw$=function(k){_.r7.call(this);this.JSC$23157_watchApi=k;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Tmk(this);wnJ(this);P2g(this);BmN(this);Y2$(this);WF$(this);FFU(this)};
_.y(_.yw$,_.r7);var P2g=function(k){var E=function(){_.Y("kevlar_is_pupi_enabled")||pN(k)};
k.JSC$23157_watchApi.getRoot().addEventListener("yt-player-updated",E);k.addOnDisposeCallback(function(){k.JSC$23157_watchApi.getRoot().removeEventListener("yt-player-updated",E)})},Y2$=function(k){if(_.Y("kevlar_endscreen_auto_theater_mode")){var E=k.JSC$23157_watchApi.subscribeToActiveChanged(function(){o6X(k)},!1);
k.addOnDisposeCallback(E)}},Tmk=function(k){var E,S,R,V,N;
_.c(function(h){if(h.nextAddress==1)return h.yield(k.JSC$23157_watchApi.playerApi,2);E=h.yieldResult;S=function(J){J=!!J;XnS(k)&&(J=J?2:1,_.nw.getInstance().setState(J,!0,!1))};
R=function(J){J&&_.ios(_.vo().getState())&&(_.qe(k.JSC$23157_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),k.temporaryTheaterMode=!0)};
V=function(J){_.Y("kevlar_player_update_autonav_on_new_data")&&J.type==="newdata"&&(_.Y("kevlar_is_pupi_enabled")||pN(k))};
N=function(J){k.onPlayerStateChange(J)};
_.Y("kevlar_endscreen_auto_theater_mode")&&E.addEventListener("onAutonavCancelled",R);E.addEventListener("onAutonavChangeRequest",S);E.addEventListener("onVideoDataChange",V);E.addEventListener("onStateChange",N);k.addOnDisposeCallback(function(){E.removeEventListener("onAutonavChangeRequest",S);E.removeEventListener("onVideoDataChange",V);E.removeEventListener("onStateChange",N);_.Y("kevlar_endscreen_auto_theater_mode")&&E.removeEventListener("onAutonavCancelled",R)});
_.KR(h)})},wnJ=function(k){k.JSC$23157_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){k.autonavCancelledBySignal=!0;
_.Y("kevlar_is_pupi_enabled")||pN(k)});
k.JSC$23157_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(E,S,R){S&&pN(k,R)});
k.JSC$23157_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){XnS(k)&&_.nw.getInstance().setState(2,!0,!0)});
k.JSC$23157_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){XnS(k)&&_.nw.getInstance().setState(1,!0,!0)});
k.addOnDisposeCallback(function(){k.JSC$23157_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");k.JSC$23157_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");k.JSC$23157_watchApi.unregisterActionHandler("yt-enable-autoplay-command");k.JSC$23157_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},BmN=function(k){var E=k.JSC$23157_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){FFU(k)}),S=k.JSC$23157_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){WF$(k)});
k.addOnDisposeCallback(function(){k.JSC$23157_watchApi.unsubscribeByKey(E);k.JSC$23157_watchApi.unsubscribeByKey(S)})},FFU=function(k){k.autonavCancelledBySignal=!1;
_.Y("kevlar_is_pupi_enabled")||pN(k)},WF$=function(k){var E=k.JSC$23157_watchApi.getWatchNextResponse(),S,R;
var V=(E=(R=_.W(E==null?void 0:(V=E.playerOverlays)==null?void 0:(S=V.playerOverlayRenderer)==null?void 0:S.autonavToggle,_.FBT))==null?void 0:R.enabled)?2:1;_.Y("kevlar_is_pupi_enabled")?_.nw.getInstance().setState(V,!1,!1):pN(k);_.Y("web_persist_server_autonav_state_on_client")&&typeof E==="boolean"&&_.Jtt(V===2)},XnS=function(k){if(k.autonavCancelledBySignal)return!1;
var E,S,R,V;return!!((E=k.JSC$23157_watchApi.getWatchNextResponse())==null?0:(S=E.contents)==null?0:(R=S.twoColumnWatchNextResults)==null?0:(V=R.autoplay)==null?0:V.autoplay)};
_.yw$.prototype.onPlayerStateChange=function(k){if(k===0){k=!_.nw.getInstance().isAutoplaySetExplicitly();var E=this.JSC$23157_watchApi.getWatchNextResponse(),S,R,V,N;E=_.W(E==null?void 0:(S=E.contents)==null?void 0:(R=S.twoColumnWatchNextResults)==null?void 0:(V=R.autoplay)==null?void 0:(N=V.autoplay)==null?void 0:N.autoplayExplicitChoiceDialogRenderer,_.fY8);XnS(this)&&k&&E&&_.V_.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:E},popupType:"DIALOG"}})}else o6X(this)};
var o6X=function(k){k.temporaryTheaterMode&&(k.temporaryTheaterMode=!1,_.qe(k.JSC$23157_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},pN=function(k,E){E=E===void 0?!1:E;
var S;_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23157_watchApi.playerApi,2);S=R.yieldResult;XnS(k)?S.setAutonavState(_.nw.getInstance().getState(),E):S.setAutonavState(1,E);_.KR(R)})};var g6r={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"};_.HZo=function(k){_.r7.call(this);var E=this;this.JSC$23162_watchApi=k;var S=this.JSC$23162_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Umu(E)});
this.addOnDisposeCallback(function(){E.JSC$23162_watchApi.unsubscribeByKey(S)});
Umu(this)};
_.y(_.HZo,_.r7);var Umu=function(k){var E=k.JSC$23162_watchApi.getPlayerResponse(),S=k.JSC$23162_watchApi.getWatchNextResponse();if(!_.K91(E==null?void 0:E.playabilityStatus,S==null?void 0:S.playerOverlays)){var R;var V=E==null?void 0:(R=E.playabilityStatus)==null?void 0:R.errorScreen}k.JSC$23162_watchApi.provideRenderingData("ERROR_SCREEN",V)};var KFk=_.f(function(k){var E=k.data;k=_.Y("web_watch_video_details_hide_subtitle");var S=_.Y("web_watch_video_details_single_line_title"),R=_.RZ(function(){var J=E().onTap;J&&_.en().resolve(_.t3).resolveCommand(J)}),V={},N={},h={};
return _.e("yt-player-overlay-video-details-renderer",{class:_.SQ("ytPlayerOverlayVideoDetailsRendererHost",(V.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.Y("web_watch_video_details_transparent_background"),V)),"on:click":R,role:"button"},_.e("h2",{class:_.SQ("ytPlayerOverlayVideoDetailsRendererTitle",(N.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return S},N))},_.e(_.VB,{text:function(){return E().title}})),_.e("div",{class:_.SQ("ytPlayerOverlayVideoDetailsRendererSubtitle",
(h.ytPlayerOverlayVideoDetailsRendererHideSubtitle=k,h))},_.e(_.VB,{text:function(){return E().subtitle}})))},"Jn");var A_={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},pnu=_.f(function(k){var E=k.data;var S=_.gb(_.oZ),R=_.Y("web_watch_action_bar_resize_buttons"),V=_.Y("web_watch_video_action_dsdvb"),N=_.Y("delhi_modern_web_player_icons")&&!_.Y("enable_web_delhi_icons");k=_.Y("delhi_modern_web_player_disable_frosted_glass");var h=_.Y("delhi_modern_web_player_compact_video_actions_controls"),
J=_.Y("web_player_quick_action_buttons_icon_only"),m=function(){var T=R&&!S(),w={};h?w.size="S":T&&(w.size="M");J&&(w.iconPosition="icon-only");if(Object.keys(w).length!==0)return w},a={};
return _.e("yt-player-quick-action-buttons",{class:_.SQ("ytPlayerQuickActionButtonsHost",(a.ytPlayerQuickActionButtonsHostCompactControls=function(){return!S()||h},a.ytPlayerQuickActionButtonsHostDisableBackdropFilter=k,a))},_.e(_.jw,{each:function(){var T=E();
if(N){T=JSON.parse(JSON.stringify(T));for(var w=_.n(T),P=w.next();!P.done;P=w.next()){var B=P.value,F=void 0;P=_.W((F=_.W(B,_.Dr))==null?void 0:F.toggleButtonViewModel,_.QK);var K=void 0;F=_.W((K=_.W(B,_.j_))==null?void 0:K.toggleButtonViewModel,_.QK);K=_.W(B,_.qz);B=_.W(B,_.QK);if(P)F=_.W(P.defaultButtonViewModel,_.qz),P=_.W(P.toggledButtonViewModel,_.qz),F&&F.iconName&&(F.iconName=A_[F.iconName]),P&&P.iconName&&(P.iconName=A_[P.iconName]);else if(F)P=_.W(F.defaultButtonViewModel,_.qz),F=_.W(F.toggledButtonViewModel,
_.qz),P&&P.iconName&&(P.iconName=A_[P.iconName]),F&&F.iconName&&(F.iconName=A_[F.iconName]);else if(K)K.iconName&&(K.iconName=A_[K.iconName]);else if(B){P=_.W(B.defaultButtonViewModel,_.qz);F=_.W(B.toggledButtonViewModel,_.qz);B=void 0;if((B=P)==null?0:B.iconName)P.iconName=A_[P.iconName];P=void 0;if((P=F)==null?0:P.iconName)F.iconName=A_[F.iconName]}}}V&&(T=jeu(T));return T}},function(T){return _.e(_.cp,{data:function(){return T}},{buttonViewModel:function(w){return _.e(_.yB,{data:w.data,
buttonOverrides:m})},
likeButtonViewModel:function(w){return _.e(_.q1,{data:w.data,buttonShapeOverrideables:m})},
dislikeButtonViewModel:function(w){return _.e(_.M1,{data:w.data,buttonShapeOverrideables:m})},
toggleButtonViewModel:function(w){return _.e(_.bL,{data:w.data,buttonShapeOverrides:m})}})}))},"Kn");_.rwS=function(k){_.r7.call(this);var E=this;this.JSC$23166_watchApi=k;k=_.n(_.yg({},void 0,"n9wCVe"));this.quickActionsViewModel=k.next().value;this.setQuickActionsViewModel=k.next().value;k=_.n(_.yg({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=k.next().value;this.setPlayerOverlayVideoDetailsRenderer=k.next().value;var S=this.JSC$23166_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Awr(E)});
this.addOnDisposeCallback(function(){E.JSC$23166_watchApi.unsubscribeByKey(S)});
Awr(this)};
_.y(_.rwS,_.r7);
var Awr=function(k){var E,S,R,V,N,h,J,m,a,T,w,P,B,F;_.c(function(K){if(K.nextAddress==1)return K.yield(k.JSC$23166_watchApi.playerApi,2);E=K.yieldResult;S=k.JSC$23166_watchApi.getWatchNextResponse();N=(R=S)==null?void 0:(V=R.playerOverlays)==null?void 0:V.playerOverlayRenderer;J=_.W((h=N)==null?void 0:h.fullscreenQuickActionsBar,_.YNz);(a=(m=k).setQuickActionsViewModel)==null||a.call(m,J||{});J&&utJ(k,E);P=(T=N)==null?void 0:(w=T.videoDetails)==null?void 0:w.playerOverlayVideoDetailsRenderer;(F=(B=
k).setPlayerOverlayVideoDetailsRenderer)==null||F.call(B,P||{});P&&xmJ(k,E);_.KR(K)})},utJ=function(k,E){if(!k.quickActionButtonsContainer)if(E.setFullscreenQuickActions){k.quickActionButtonsContainer=document.createElement("div");
E.setFullscreenQuickActions(k.quickActionButtonsContainer);var S=function(){return k.quickActionsViewModel().quickActionButtons||[]},R=_.fV(k.quickActionButtonsContainer,function(){return _.e(pnu,{data:S})},"Ln");
k.addOnDisposeCallback(function(){E.setFullscreenQuickActions(void 0);R()})}else _.dg(new _.LC("setFullscreenQuickActions not defined",{playerApi:Object.keys(E),
isReady:E.isReady(),appState:E.getAppState()}))},xmJ=function(k,E){if(!k.playerOverlayVideoDetailsRendererContainer)if(E.setPlayerOverlayVideoDetailsRenderer){k.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
E.setPlayerOverlayVideoDetailsRenderer(k.playerOverlayVideoDetailsRendererContainer);var S=_.fV(k.playerOverlayVideoDetailsRendererContainer,function(){return _.e(KFk,{data:k.playerOverlayVideoDetailsRenderer})},"Mn");
k.addOnDisposeCallback(function(){E.setPlayerOverlayVideoDetailsRenderer(void 0);S()})}else _.dg(new _.LC("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(E),
isReady:E.isReady(),appState:E.getAppState()}))};_.ra=function(k){_.r7.call(this);var E=this;this.JSC$23172_watchApi=k;this.JSC$23172_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;k=_.Hq(_.vo(),_.oZ,function(S){E.onFullscreenChanged(S)});
this.addOnDisposeCallback(k);k=_.Hq(_.vo(),_.$w,function(S){E.onWatchScroll(S)});
this.addOnDisposeCallback(k);_.Y("kevlar_watch_while_v2")&&(k=_.Hq(_.vo(),_.Ff,function(S){LFU(E,S)}),this.addOnDisposeCallback(k));
jsU(this);DmS(this);$mF();this.onWatchScroll(_.$w(_.vo().getState()));_.qg("START_IN_FULL_WINDOW_MODE")&&this.JSC$23172_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.y(_.ra,_.r7);var jsU=function(k){k.JSC$23172_watchApi.registerActionHandler("yt-fullscreen-change-action",function(E){var S=k.JSC$23172_watchApi.isActive();E&&!S||_.vo().dispatch(_.zX({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!E}}))});
k.addOnDisposeCallback(function(){k.JSC$23172_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},DmS=function(k){var E,S;
_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23172_watchApi.playerApi,2);E=R.yieldResult;S=function(){k.onFullerscreenEduClicked()};
E.addEventListener("onFullerscreenEduClicked",S);k.addOnDisposeCallback(function(){E.removeEventListener("onFullerscreenEduClicked",S)});
_.KR(R)})};
_.ra.prototype.onFullscreenChanged=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return E.isFullscreen=!!_.ZZ(),R.yield(E.JSC$23172_watchApi.playerApi,2);S=R.yieldResult;E.JSC$23172_miniplayerActive||S.setFauxFullscreen(E.isFullscreen);if(k&&(E.JSC$23172_watchApi.focusOnPlayer(),!E.fullerscreenEduButtonShownThisPlayback)){E.fullerscreenEduButtonShownThisPlayback=!0;var V=_.Yl("yt-fullerscreen-edu-button-shown-count")||0;_.BT("yt-fullerscreen-edu-button-shown-count",V+1,31536E3);
E.updateFullerscreenEduButtonSubtleModeState()}_.KR(R)})};
var LFU=function(k,E){var S;_.c(function(R){if(R.nextAddress==1)return k.JSC$23172_miniplayerActive=E,R.yield(k.JSC$23172_watchApi.playerApi,2);S=R.yieldResult;S.setFauxFullscreen(!k.JSC$23172_miniplayerActive&&k.isFullscreen);_.KR(R)})};
_.ra.prototype.onWatchScroll=function(k){var E=this,S,R;return _.c(function(V){if(V.nextAddress==1)return _.Y("external_fullscreen_with_edu")?V.yield(E.JSC$23172_watchApi.playerApi,2):V.return();S=V.yieldResult;R=k<=0;E.shouldShowFullerscreenEdu!==R&&(E.shouldShowFullerscreenEdu=R,S.updateFullerscreenEduButtonVisibility(!E.shouldShowFullerscreenEdu));_.KR(V)})};
_.ra.prototype.onFullerscreenEduClicked=function(){this.JSC$23172_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var k=_.Yl("yt-fullerscreen-edu-button-click-count")||0;_.BT("yt-fullerscreen-edu-button-click-count",k+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.ra.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var k=this,E,S,R,V,N,h;return _.c(function(J){if(J.nextAddress==1)return E=_.Yl("yt-fullerscreen-edu-button-click-count")||0,S=_.Yl("yt-fullerscreen-edu-button-shown-count")||0,R=_.wO("external_fullscreen_button_click_threshold"),V=_.wO("external_fullscreen_button_shown_threshold"),N=E>=R||S>=V,J.yield(k.JSC$23172_watchApi.playerApi,2);h=J.yieldResult;h.updateFullerscreenEduButtonSubtleModeState(N);_.KR(J)})};
_.ra.prototype.disposeInternal=function(){_.r7.prototype.disposeInternal.call(this);var k=_.ZZ();_.Y("kevlar_exit_fullscreen_leaving_watch")&&k&&_.dW(k)};
var $mF=function(){if(_.Y("web_watch_add_viewport_meta_tag")){var k=document.querySelector("meta[name=viewport]"),E=document.head;E&&!k&&(k=document.createElement("meta"),k.name="viewport",k.content="width=device-width, initial-scale=1.0, viewport-fit=cover",E.appendChild(k))}};_.v6$=function(k){_.r7.call(this);var E=this;this.JSC$23175_watchApi=k;this.jobId=0;this.pendingRequestId=void 0;var S=this.JSC$23175_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){flN(E)});
this.addOnDisposeCallback(function(){E.JSC$23175_watchApi.unsubscribeByKey(S)});
flN(this)};
_.y(_.v6$,_.r7);var bZX=function(k){_.ZJ.cancelJob(k.jobId);k.pendingRequestId=void 0},flN=function(k){bZX(k);
var E=Dns(k.JSC$23175_watchApi.getWatchNextResponse());if(E){var S=250,R,V=(R=_.W(E,_.yUY))==null?void 0:R.initialDelayMs;_.Y("web_watch_updated_metadata_server_initial_delay")&&V&&(S=V);k.jobId=_.ZJ.addLowPriorityJob(function(){return k.fetchUpdatedMetadata(E)},S)}};
_.v6$.prototype.fetchUpdatedMetadata=function(k,E){var S=this,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x;return _.c(function(L){switch(L.nextAddress){case 1:E&&(R={continuation:E});if(!_.Y("web_get_updated_metadata_fantasy_panel_continuation_params")){L.jumpTo(2);break}V=_.en().resolve(_.$g);N="PAsports_fantasy";return L.yield(V.isVisible(N,!0),3);case 3:L.yieldResult&&(a=(J=(h=V).getUpdatePanelContinuationData)==null?void 0:(m=J.call(h,N))==null?void 0:m.updatePanelContinuationRequest)&&(R||(R={}),R.clientParams=
{panelContinuationParams:{panelContinuation:a}});case 2:T=_.en().resolve(_.oR);if(!T)return _.bM(Error("Wo")),L.return();w={};S.pendingRequestId=w;return L.yield(_.xv(T,k,R),4);case 4:P=L.yieldResult;if(w!==S.pendingRequestId)return L.return();K=(B=P)==null?void 0:(F=B.continuation)==null?void 0:F.timedContinuationData;((r=K)==null?0:r.continuation)&&((x=K)==null?0:x.timeoutMs)&&(S.jobId=_.ZJ.addLowPriorityJob(function(){return S.fetchUpdatedMetadata(k,K.continuation)},K.timeoutMs));
_.KR(L)}})};
_.v6$.prototype.disposeInternal=function(){_.r7.prototype.disposeInternal.call(this);bZX(this)};var ZZk=_.f(function(k){var E=_.RZ(function(){var R=k.data().videoId;if(k.active())R=_.sv(R),_.en().resolve(_.t3).resolveCommand(R);else{var V=k.playerApi(),N=V.getAvailableAudioTracks(),h,J,m=(h=k.sourceVideoConfig().audioTracks)==null?void 0:(J=h.find(function(a){return a.isDefaultForSource}))==null?void 0:J.id;
if(N=N.find(function(a){return a.getLanguageInfo().getId()===m}))V.setAudioTrack(N,!0),V.setCompositeParam({activeVideoId:R}),k.setActiveSourceId(R)}}),S={};
return _.e("ytw-composite-source-video-overlay",{class:_.SQ("ytwCompositeSourceVideoOverlayHost",(S.ytwCompositeSourceVideoOverlayActive=k.active,S.ytwCompositeSourceVideoOverlayInteracting=k.interacting,S)),style:_.nU({left:function(){var R;return((R=k.data().topLeftCornerX)!=null?R:0)*100+"%"},
top:function(){var R;return((R=k.data().topLeftCornerY)!=null?R:0)*100+"%"},
width:function(){var R;return((R=k.data().width)!=null?R:0)*100+"%"},
height:function(){var R;return((R=k.data().height)!=null?R:0)*100+"%"}}),
"on:click":E},_.e("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Nn");var dmo=_.f(function(k){var E=_.n(_.IZ(function(){var h,J=(h=k.data().sources)==null?void 0:h.find(function(m){return m.isActive});
if(J)return J.videoId})),S=E.next().value,R=E.next().value;
E=_.n(_.yg(!1,void 0,"yNRzwd"));var V=E.next().value,N=E.next().value;return _.e("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.RZ(function(){N(!0)}),
"on:mouseout":_.RZ(function(){N(!1)})},_.e(_.t,{cond:function(){return k.data().sources},
then:function(h){return _.e(_.jw,{each:h},function(J){return _.e(ZZk,{data:J,active:function(){return J.videoId===S()},
setActiveSourceId:R,interacting:V,playerApi:k.playerApi,sourceVideoConfig:function(){return $nB(k.compositeVideoConfig(),J.videoId)}})})}}))},"On");_.M9B=function(k){_.r7.call(this);this.JSC$23191_watchApi=k;k=_.n(_.yg({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=k.next().value;this.setCompositeVideoOverlayRenderer=k.next().value;k=_.n(_.yg({},void 0,"OlaJpc"));this.compositeVideoConfig=k.next().value;this.setCompositeVideoConfig=k.next().value;ssS(this);llk(this)};
_.y(_.M9B,_.r7);var ssS=function(k){var E=k.JSC$23191_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){llk(k)});
k.addOnDisposeCallback(function(){k.JSC$23191_watchApi.unsubscribeByKey(E)})},q2S=function(k){var E;
return _.c(function(S){if(S.nextAddress==1)return S.yield(k.JSC$23191_watchApi.playerApi,2);E=S.yieldResult;E.setCompositeVideoOverlayRendererComponent(k.container);_.KR(S)})},zRJ=function(k){var E;
return _.c(function(S){if(S.nextAddress==1)return S.yield(k.JSC$23191_watchApi.playerApi,2);E=S.yieldResult;E.setCompositeVideoOverlayRendererComponent(void 0);_.KR(S)})},Qs$=function(k){var E,S;
return _.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23191_watchApi.playerApi,2);E=R.yieldResult;k.container=document.createElement("div");S=_.fV(k.container,function(){return _.e(dmo,{data:k.compositeVideoOverlayRenderer,compositeVideoConfig:k.compositeVideoConfig,playerApi:E})},"Pn");
k.addOnDisposeCallback(S);_.KR(R)})},llk=function(k){var E,S,R,V,N,h,J,m;
_.c(function(a){return a.nextAddress==1?(E=k.JSC$23191_watchApi.getPlayerResponse(),N=_.W((S=E)==null?void 0:(R=S.overlay)==null?void 0:(V=R.playerControlsOverlayRenderer)==null?void 0:V.compositeVideoOverlay,rjN),m=(h=E)==null?void 0:(J=h.playerConfig)==null?void 0:J.compositeVideoConfig,N&&k.setCompositeVideoOverlayRenderer(N),m&&k.setCompositeVideoConfig(m),N&&m?k.container?a.jumpTo(6):a.yield(Qs$(k),6):OZN(k)?a.yield(zRJ(k),0):a.jumpTo(0)):OZN(k)?a.jumpTo(0):a.yield(q2S(k),0)})},OZN=function(k){var E;
return!((E=k.container)==null||!E.parentElement)};
_.M9B.prototype.disposeInternal=function(){OZN(this)&&zRJ(this);_.r7.prototype.disposeInternal.call(this)};_.SJU=function(k){_.r7.call(this);var E=this;this.JSC$23197_watchApi=k;var S=this.JSC$23197_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var R=E.JSC$23197_watchApi.getPlayerResponse();if(R){var V,N;if(R=_.W((V=R.endscreen)==null?void 0:(N=V.endscreenRenderer)==null?void 0:N.hideButton,_.QK)){var h;(h=E.setEndscreenHideButton)==null||h.call(E,R);G2F(E)}}});
this.addOnDisposeCallback(function(){E.JSC$23197_watchApi.unsubscribeByKey(S)});
k=_.n(_.yg({},void 0,"ER3tqb"));this.endscreenHideButton=k.next().value;this.setEndscreenHideButton=k.next().value;C2F(this);k9J(this);EFB(this)};
_.y(_.SJU,_.r7);
var G2F=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return k.creatorEndscreenHideButtonContainer?R.return():R.yield(k.JSC$23197_watchApi.playerApi,2);E=R.yieldResult;k.creatorEndscreenHideButtonContainer=document.createElement("div");_.Em(k.creatorEndscreenHideButtonContainer,!1);E.setCreatorEndscreenHideButton(k.creatorEndscreenHideButtonContainer);S=_.fV(k.creatorEndscreenHideButtonContainer,function(){return _.e(_.bL,{data:k.endscreenHideButton,useOutlinedIcon:!0})},"Qn");
k.addOnDisposeCallback(function(){S();var V;(V=E)==null||V.setCreatorEndscreenHideButton(void 0)});
_.KR(R)})},C2F=function(k){var E,S;
_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23197_watchApi.playerApi,2);E=R.yieldResult;S=function(){k.creatorEndscreenHideButtonContainer&&_.Em(k.creatorEndscreenHideButtonContainer,!0)};
E.addEventListener("endscreenelementshown",S);k.addOnDisposeCallback(function(){var V;(V=E)==null||V.removeEventListener("endscreenelementshown",S)});
_.KR(R)})},k9J=function(k){var E=function(){k.creatorEndscreenHideButtonContainer&&_.Em(k.creatorEndscreenHideButtonContainer,!1)},S=k.JSC$23197_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",E),R=k.JSC$23197_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",E);
k.addOnDisposeCallback(function(){k.JSC$23197_watchApi.unsubscribeByKey(S);k.JSC$23197_watchApi.unsubscribeByKey(R)})},EFB=function(k){k.JSC$23197_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(E){var S=_.W(E,gks);
k.JSC$23197_watchApi.playerApi.then(function(R){R==null||R.setCreatorEndscreenVisibility(!!S.hide)})});
k.addOnDisposeCallback(function(){k.JSC$23197_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.VXJ=function(k){_.r7.call(this);this.JSC$23203_watchApi=k;RGr(this)};
_.y(_.VXJ,_.r7);var RGr=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23203_watchApi.playerApi,2);E=R.yieldResult;S=function(V){_.vo().dispatch(_.zX({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:V}}))};
E.addEventListener("onRetroModeChanged",S);k.addOnDisposeCallback(function(){E.removeEventListener("onRetroModeChanged",S)});
_.KR(R)})};var M$U=0,v4=0,zws=0;var Ncs;Ncs=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.uU=function(k){_.r7.call(this);this.JSC$23208_watchApi=k;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Iwu(this)};
_.y(_.uU,_.r7);
var Iwu=function(k){var E,S,R;_.c(function(V){if(V.nextAddress==1)return V.yield(k.JSC$23208_watchApi.playerApi,2);E=V.yieldResult;if(k.isDisposed())return V.return();k.sessionStorage=_.UgW("yt-sleep-timer");k.sessionStorage||_.dg(new _.LC("SessionStorage for Sleep Timer is undefined."));((S=k.sessionStorage)==null?void 0:S.get("yt-sleep-timer"))==="true"&&(GLg(),(R=k.sessionStorage)==null||R.remove("yt-sleep-timer"),E.syncVolume());nF$(k,E);ifS(k,E);hGX(k,E);_.KR(V)})},nF$=function(k,E){var S=function(a){k.onSleepTimerSettingsChanged(a,
E)},R=function(a){k.onPlayerStateChange(a,E)},V=function(){k.onLoopChange(E)},N=function(){k.onCloseMiniplayer(E)},h=function(){lKk(E,(0,_.ev)(),CIU(E),k.selectedOption==="End of video",E.getPlayerState()!==1)},J=function(){k.onSeekComplete(E)},m=function(){_.ZJ.cancelJob(v4);
var a=E.getCurrentTime()>=E.getDuration(),T=k.selectedOption==="End of video"||k.selectedOption==="End of playlist"&&!Zoo(k.playlistId);a&&T&&JBg(k,E)};
E.addEventListener("onSleepTimerSettingsChanged",S);E.addEventListener("onLoopChange",V);E.addEventListener("onLoopRangeChange",V);E.addEventListener("onStateChange",R);E.addEventListener("onCloseMiniplayer",N);E.addEventListener("onSleepTimerFeatureAvailable",h);E.addEventListener("SEEK_COMPLETE",J);E.addEventListener("onAdStart",m);k.addOnDisposeCallback(function(){E.removeEventListener("onSleepTimerSettingsChanged",S);E.removeEventListener("onLoopChange",V);E.removeEventListener("onLoopRangeChange",
V);E.removeEventListener("onStateChange",R);E.removeEventListener("onCloseMiniplayer",N);E.removeEventListener("onSleepTimerFeatureAvailable",h);E.removeEventListener("SEEK_COMPLETE",J);E.removeEventListener("onAdStart",m)})},ifS=function(k,E){var S=k.JSC$23208_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var R=E.getVideoData().video_id,V,N=(V=vOJ(k.JSC$23208_watchApi))==null?void 0:V.playlistId;
k.pauseAutonavPlayback&&(E.pauseVideo(),E.syncVolume(),k.pauseAutonavPlayback=!1);if(k.selectedOption==="End of video"&&R!==k.videoId)xM(k,E);else{if(k.selectedOption==="End of playlist"){V=Zoo(k.playlistId);if(N!==k.playlistId){xM(k,E);break a}V?V&&cBU(k,E):m6X(k,E)}k.videoId=R;k.playlistId=N}}});
k.addOnDisposeCallback(function(){k.JSC$23208_watchApi.unsubscribeByKey(S)})},hGX=function(k,E){var S=_.en().resolve(_.q5),R=_.Hq(S,_.p5j,function(N){N&&k.selectedOption!=="Off"&&xM(k,E)}),V=k.JSC$23208_watchApi.subscribeToActiveChanged(function(N){var h,J;
return _.c(function(m){if(m.nextAddress==1)return m.yield(_.g_().navigationFinishPromise,2);h=!_.fQ8();J=_.en().resolve(_.yb).isMiniplayerActive();N||!fKU(k.selectedOption)||J||h||xM(k,E);_.KR(m)})},!1);
S=_.Hq(S,function(N){return N.entities.playlistLoopStateEntity||{}},function(N){N=N===void 0?{}:N;
var h=boo(k.JSC$23208_watchApi);if(h){var J;((J=N[h])==null?void 0:J.state)==="PLAYLIST_LOOP_STATE_ALL"&&fKU(k.selectedOption)&&xM(k,E)}});
k.addOnDisposeCallback(R);k.addOnDisposeCallback(S);k.addOnDisposeCallback(V)};
_.uU.prototype.onSleepTimerSettingsChanged=function(k,E){switch(k){case "Off":this.selectedOption!=="Off"&&xM(this,E);break;case "End of video":case "End of playlist":eGu(this,k,E);break;default:eGu(this,k,E,Ncs.get(k))}};
_.uU.prototype.onLoopChange=function(k){(k.getLoopVideo()||k.getLoopRange())&&fKU(this.selectedOption)&&xM(this,k)};
_.uU.prototype.onCloseMiniplayer=function(k){fKU(this.selectedOption)&&xM(this,k)};
var eGu=function(k,E,S,R){aw$(k,S);k.selectedOption=E;k.videoId=S.getVideoData().video_id;k.playlistId="";var V;(V=k.sessionStorage)==null||V.set("yt-sleep-timer","true");k.adjustmentsCount++;lKk(S,(0,_.ev)(),CIU(S),k.selectedOption==="End of video");if(k.selectedOption==="End of video")m6X(k,S),tXr(k,S);else if(k.selectedOption==="End of playlist"){tXr(k,S);var N,h;k.playlistId=(h=(N=vOJ(k.JSC$23208_watchApi))==null?void 0:N.playlistId)!=null?h:"";Zoo(k.playlistId)||m6X(k,S)}else R&&(k.presetFadeSchedulerId=
_.aE(_.ZJ,function(){QeU(S,15E3)},R-15E3),k.presetPauseSchedulerId=_.aE(_.ZJ,function(){JBg(k,S)},R),qmN(S,(0,_.ev)(),R))},JBg=function(k,E){if(k.JSC$23208_watchApi.isActive()){var S={dismissDialogEndpoint:{}};
var R={commandExecutorCommand:{commands:[S,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};S={buttonViewModel:{title:_.Vi("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:S}}};R={buttonViewModel:{title:_.Vi("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:R}}};var V={dialogHeaderViewModel:{headline:{content:_.Vi("SLEEP_TIMER_ENDED_TITLE")}}},
N={basicContentViewModel:{paragraphs:[{text:{content:_.Vi("SLEEP_TIMER_ENDED_TEXT")}}]}};S={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:V,content:N,footer:{panelFooterViewModel:{primaryButton:S,secondaryButton:R,shouldHideDivider:!0}}}}}}};_.en().resolve(_.t3).resolveCommand(S,{form:{element:k}})}else GLg();TcJ(k,!1);wkg(k,E);E.pauseVideo();_.nw.getInstance().getState()===2&&E.getPlayerState()===5&&(k.pauseAutonavPlayback=!0)},xM=function(k,E){TcJ(k,!0);
wkg(k,E);GLg()},wkg=function(k,E){aw$(k,E);
k.selectedOption="Off";k.videoId="";k.playlistId="";k.adjustmentsCount=0;var S;(S=k.sessionStorage)==null||S.remove("yt-sleep-timer");_.ZJ.cancelJob(M$U);E.resetSleepTimerMenuSettings()},TcJ=function(k,E){E={timer_length_adjustment_times_during_session:k.adjustmentsCount-1,
is_session_cancelled:E};switch(k.selectedOption){case "Off":E.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":E.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":E.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:E.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",E.option_duration_in_minutes=Ncs.get(k.selectedOption)/6E4}_.f2("sleepTimerSessionFinishEvent",E)};
_.uU.prototype.onPlayerStateChange=function(k,E){k===1?lKk(E,(0,_.ev)(),CIU(E),this.selectedOption==="End of video"):k===0?(_.ZJ.cancelJob(v4),E.setVideoTimeLeft(seF(0,0))):k===2&&_.ZJ.cancelJob(v4);this.selectedOption==="End of video"?k===0?JBg(this,E):k===2&&OoS(E):this.selectedOption!=="End of playlist"||Zoo(this.playlistId)||(k===0?JBg(this,E):k===2&&OoS(E))};
_.uU.prototype.onSeekComplete=function(k){k.getPlayerState()===2&&lKk(k,(0,_.ev)(),CIU(k),this.selectedOption==="End of video",!0)};
_.uU.prototype.onCueRangeEnter=function(k,E){k==="sleep-timer-fade-audio"&&QeU(E,(E.getDuration()-E.getProgressState().current)*1E3)};
_.uU.prototype.onCueRangeExit=function(k,E){k==="sleep-timer-fade-audio"&&E.getPlayerState()!==0&&OoS(E,!0)};
var m6X=function(k,E){E.addCueRange("sleep-timer-fade-audio",E.getDuration()-15,E.getDuration());E.addEventListener("onCueRangeEnter",function(S){k.onCueRangeEnter(S,E)});
E.addEventListener("onCueRangeExit",function(S){k.onCueRangeExit(S,E)})},cBU=function(k,E){E.removeCueRange("sleep-timer-fade-audio");
E.removeEventListener("onCueRangeEnter",function(S){k.onCueRangeEnter(S,E)});
E.removeEventListener("onCueRangeExit",function(S){k.onCueRangeExit(S,E)})},aw$=function(k,E){fKU(k.selectedOption)?cBU(k,E):(_.ZJ.cancelJob(k.presetPauseSchedulerId),_.ZJ.cancelJob(k.presetFadeSchedulerId),k.presetPauseSchedulerId=0,k.presetFadeSchedulerId=0);
OoS(E,!0)},tXr=function(k,E){E.setLoop(!1);
E.setLoopVideo(!1);E.setLoopRange(null);(k=boo(k.JSC$23208_watchApi))&&_.en().resolve(_.q5).dispatch(_.mj("playlistLoopStateEntity",k,{key:k,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.Wtk=function(k){_.r7.call(this);var E=this;this.JSC$23211_watchApi=k;Pck(this);BcF(this);YJB(this);var S=this.JSC$23211_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.wO("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.pC.get("wide",void 0)==="1"&&_.A3("wide","1",_.wO("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){E.JSC$23211_watchApi.unsubscribeByKey(S)});
k=k.getRoot();if(k.is==="ytd-watch-flexy"||k.is==="ytd-watch-grid")k.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.JNu();_.Y("web_watch_log_theater_mode_cookie_state")&&_.pC.get("wide","0")==="1"&&_.gSj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.y(_.Wtk,_.r7);var Pck=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23211_watchApi.playerApi,2);E=R.yieldResult;S=function(V){Fto(k,!!V)};
E.addEventListener("SIZE_CLICKED",S);k.addOnDisposeCallback(function(){E.removeEventListener("SIZE_CLICKED",S)});
_.KR(R)})},BcF=function(k){k.JSC$23211_watchApi.registerActionHandler("yt-toggle-theater-mode",function(E,S){Fto(k,E,S===void 0?!0:S)});
k.addOnDisposeCallback(function(){k.JSC$23211_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.Wtk.prototype.getState=function(){return _.yQ(_.vo().getState())};
var Fto=function(k,E,S){S=S===void 0?!0:S;var R,V,N,h=_.Y("enable_player_resize_transition")&&!!k.JSC$23211_watchApi.getWatchNextResponse()&&!((R=k.JSC$23211_watchApi.getWatchNextResponse())==null?0:(V=R.contents)==null?0:(N=V.twoColumnWatchNextResults)==null?0:N.conversationBar);_.Udt(function(){_.vo().dispatch(_.zX({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:E}}));_.Y("theater_mode_scroll_to_top_killswitch")||k.JSC$23211_watchApi.scrollWatchTo(0,!1);_.ZZ()&&_.Y("external_fullscreen")&&_.dW(document.documentElement);
YJB(k);S&&_.A3("wide",E?"1":"0",_.wO("theater_mode_cookie_max_age_seconds",-1));_.qe(k.JSC$23211_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);k.JSC$23211_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:E});E&&_.JNu()},{shouldWrap:h})},YJB=function(k){var E;
_.c(function(S){if(S.nextAddress==1)return S.yield(k.JSC$23211_watchApi.playerApi,2);E=S.yieldResult;E.setSizeStyle(!0,k.getState());_.KR(S)})};var XkB=function(k){_.r7.call(this);var E=this;this.playerApi=k;this.timeToPanelSyncKeyMap={};var S;if(k==null?0:(S=k.isReady)==null?0:S.call(k)){S=_.Hq(_.en().resolve(_.q5),function(V){return V.entities.timedMarkersListSyncEntity||{}},function(V,N){V=V===void 0?{}:V;
N=N===void 0?{}:N;for(var h=_.n(Object.keys(N)),J=h.next();!J.done;J=h.next())J=J.value,V[J]!==N[J]&&yBN(E,N[J]);N=_.n(Object.keys(V));for(h=N.next();!h.done;h=N.next())h=h.value,J=V[h],E.timeToPanelSyncKeyMap[h]&&oFU(E,J)});
this.addOnDisposeCallback(S);var R=function(V){E.onCueRangeEnter(V)};
k.addEventListener("onCueRangeEnter",R);this.addOnDisposeCallback(function(){var V;(V=k.removeEventListener)==null||V.call(k,"onCueRangeEnter",R)})}};
_.y(XkB,_.r7);
var oFU=function(k,E){var S,R;if((S=k.playerApi)==null?0:(R=S.isReady)==null?0:R.call(S)){var V;if((S=E==null?void 0:(V=E.timedListData)==null?void 0:V.sections)&&E!=null&&E.key)for(V=_.n(S),S=V.next();!S.done;S=V.next())if(S=S.value,S.timedSyncDataList&&S.sectionId)for(R=0;R<S.timedSyncDataList.length;R++){var N=S.timedSyncDataList[R];N.syncItemId&&k.playerApi.addCueRange(S.sectionId+"_"+E.key+"_"+N.syncItemId,Number(N.videoTimeMs)/1E3,R===S.timedSyncDataList.length-1?0x8000000000000:Number(S.timedSyncDataList[R+
1].videoTimeMs)/1E3)}}},yBN=function(k,E){var S,R;
if((S=k.playerApi)==null?0:(R=S.isReady)==null?0:R.call(S)){var V;if((S=E==null?void 0:(V=E.timedListData)==null?void 0:V.sections)&&E!=null&&E.key)for(V=_.n(S),S=V.next();!S.done;S=V.next())if(S=S.value,S.timedSyncDataList&&S.sectionId){R=_.n(S.timedSyncDataList);for(var N=R.next();!N.done;N=R.next())N=N.value,N.syncItemId&&k.playerApi.removeCueRange(S.sectionId+"_"+E.key+"_"+N.syncItemId)}}};
XkB.prototype.onCueRangeEnter=function(k){for(var E=_.n(Object.keys(this.timeToPanelSyncKeyMap)),S=E.next();!S.done;S=E.next()){S=S.value;var R=_.n(k.split("_"+S+"_")),V=R.next().value;R=R.next().value;if(V&&R){k=_.en().resolve(_.q5);E=this.timeToPanelSyncKeyMap[S];var N=_.gVm(k.getState(),E);S=gFF(S,V,R);if(S===-1)break;S={activeSyncId:R,activeItemIndex:S,activeSectionInfo:{sectionIdentifier:V}};N?k.dispatch(_.wE("markersEngagementPanelSyncEntity",E,S)):k.dispatch(_.mj("markersEngagementPanelSyncEntity",
E,Object.assign({},{key:E},S)));break}}};
var gFF=function(k,E,S){var R=_.en().resolve(_.q5),V,N;k=(V=Nts(R.getState(),k))==null?void 0:(N=V.timedListData)==null?void 0:N.sections;if(!k)return-1;V=0;N=_.n(k);for(k=N.next();!k.done;k=N.next()){k=k.value;R=k.timedSyncDataList||[];if(k.sectionId===E)return E=R.findIndex(function(h){return h.syncItemId===S}),E===-1?E:V+E;
V+=R.length}return-1};_.Ktu=function(k){_.r7.call(this);var E=this;this.JSC$23224_watchApi=k;this.unresolvedCommands=[];this.JSC$23224_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(S){U6S(E,S)});
this.addOnDisposeCallback(function(){E.JSC$23224_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
Hfu(this)};
_.y(_.Ktu,_.r7);var Hfu=function(k){var E;_.c(function(S){if(S.nextAddress==1)return S.yield(k.JSC$23224_watchApi.playerApi,2);E=S.yieldResult;if(k.isDisposed())return S.return();k.timedSyncObserver=new XkB(E);k.unresolvedCommands.length&&(k.unresolvedCommands.forEach(function(R){return U6S(k,R)}),k.unresolvedCommands=[]);
_.Wy(k,k.timedSyncObserver);_.KR(S)})},U6S=function(k,E){if(k.timedSyncObserver){var S=_.W(E,HVu);
if(S&&S.timedSyncEntityKey&&S.panelSyncEntityKey){k=k.timedSyncObserver;E=S.timedSyncEntityKey;var R=S.panelSyncEntityKey;S=!!S.isEnabled;S=S===void 0?!0:S;var V=_.en().resolve(_.q5);V=Nts(V.getState(),E);S?k.timeToPanelSyncKeyMap[E]||(k.timeToPanelSyncKeyMap[E]=R,oFU(k,V)):(delete k.timeToPanelSyncKeyMap[E],yBN(k,V))}}else k.unresolvedCommands.push(E)};var pko=_.f(function(k){var E=k.data,S=k.maybeLogSmartSkipClientData,R=null,V=null,N=_.Y("web_enable_auto_focus_for_timely_action_button"),h=function(){R=document.activeElement},J=function(){E().smartSkipMetadata&&(R=document.activeElement,_.o2N(function(){return V}))},m=function(T){if(E().smartSkipMetadata&&(!T||T.key!=="Enter")){R&&R.isConnected&&(_.o2N(function(){return R}),R=null);
var w;(w=V)==null||w.blur()}};
k=_.RZ(function(){S==null||S(!0,E());return!1});
var a=_.Z0(_.FX(function(){return E().rendererContext},{onTap:function(T,w){w({disableClickTracking:!0})}}),_.e9({visibilityCallback:function(T){if(N)T?V&&E().smartSkipMetadata&&(J(),document.addEventListener("focusin",h)):(document.removeEventListener("focusin",h),m());
else if(T){T=_.Yh(E().rendererContext);var w=Number(E().maxVisibleDurationMilliseconds),P,B=(P=_.W(E().rendererContext,_.n9))==null?void 0:P.label;T&&w&&B&&(P={label:B,command:T,durationMs:w},_.en().resolve(_.qf).enqueue(P))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.vC(function(){if(N){var T;if((V=(T=a.value)==null?void 0:T.querySelector("button"))&&E().smartSkipMetadata){var w;(w=a.value)==null||w.addEventListener("keydown",m)}}});
_.bI(function(){N&&(V&&E().smartSkipMetadata&&V.removeEventListener("keydown",m),document.removeEventListener("focusin",h),m())});
return _.e("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:a,"on:click":k},_.e(_.cp,{data:function(){return E().content}},{buttonViewModel:_.yB}))},"Sn");var ABB=_.f(function(k){var E=k.data,S=k.playerApi,R=_.en().resolve(_.wHt);k=_.n(_.IZ(function(){E()}));
var V=k.next().value,N=k.next().value,h=function(){return S4S(E(),V())},J=function(a,T){var w,P,B=(w=_.W(T==null?void 0:T.rendererContext,_.cM))==null?void 0:(P=w.loggingDirectives)==null?void 0:P.trackingParams;
if((T=T==null?void 0:T.smartSkipMetadata)&&T.loggingData&&(P=T.loggingData,T=P.algorithmId,w=P.startMilliseconds,P=P.endMilliseconds,T&&w!==void 0&&P!==void 0)){var F,K;a={smartSkipData:Object.assign({},{versionName:T,startMediaTimeMs:w,endMediaTimeMs:P},a&&{userInteractionMediaTimeMs:(Math.floor(((F=_.s3())==null?void 0:(K=F.getPlayer())==null?void 0:K.getCurrentTime())||0)*1E3).toString()})};F=_.Fe();var r;B&&(r=_.tV(B));F&&r&&_.fz(F,r,a)}},m=function(a,T){var w=S4S(E(),a);
if(w){var P=_.W(w,Ekg),B;if(B=T)B=S(),w=_.W(w,Ekg),B=w!=null&&w.smartSkipMetadata?!(B==null?0:B.isSameMarkerTypeVisible((w==null?void 0:w.smartSkipMetadata.markerKey)||"")):!0;if(B){var F,K;(P==null?0:(F=P.smartSkipMetadata)==null?0:(K=F.loggingData)==null?0:K.isCounterfactual)||(J(!1,P),N(a))}else T||V()!==a||N(void 0)}};
_.vX(function(){var a=E().timelyActions;if(a){a=_.n(a);for(var T=a.next();!T.done;T=a.next()){T=_.W(T.value,Ekg);var w=void 0;(w=T)!=null&&w.cueRangeId&&R.timelyActionsMap.set(T.cueRangeId,m)}_.bI(function(){R.timelyActionsMap.clear()})}},"PSaw4c");
return _.e("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.e(_.cp,{data:h},{timelyActionViewModel:function(a){return _.e(pko,{data:a.data,maybeLogSmartSkipClientData:function(){J(!0,_.W(h(),Ekg))}})}}))},"Un");_.unr=function(k){_.r7.call(this);this.JSC$23236_watchApi=k;k=_.n(_.yg({},void 0,"UN7k5e"));this.timelyActionsOverlay=k.next().value;this.setTimelyActionsOverlay=k.next().value;rBk(this)};
_.y(_.unr,_.r7);var rBk=function(k){var E,S,R,V;_.c(function(N){if(N.nextAddress==1)return x6X(k),LtX(k),k.timelyActionsContainer=document.createElement("div"),N.yield(k.JSC$23236_watchApi.playerApi,2);E=N.yieldResult;(R=(S=E).insertTimelyActionUi)==null||R.call(S,k.timelyActionsContainer);V=_.fV(k.timelyActionsContainer,function(){return _.e(ABB,{data:k.timelyActionsOverlay,playerApi:E})},"Vn");
k.addOnDisposeCallback(V);_.KR(N)})},LtX=function(k){var E=k.JSC$23236_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){x6X(k)});
k.addOnDisposeCallback(function(){k.JSC$23236_watchApi.unsubscribeByKey(E)})},x6X=function(k){var E=k.JSC$23236_watchApi.getWatchNextResponse();
if(E){var S,R;if(E=_.W((S=E.playerOverlays)==null?void 0:(R=S.playerOverlayRenderer)==null?void 0:R.timelyActionsOverlayViewModel,KNg)){var V;(V=k.setTimelyActionsOverlay)==null||V.call(k,E)}}};_.D6u=function(k){_.r7.call(this);this.JSC$23240_watchApi=k;jdu(this)};
_.y(_.D6u,_.r7);var jdu=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23240_watchApi.playerApi,2);E=R.yieldResult;S=function(V){_.V_.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.W(V,_.yxo)},popupType:"TOAST"}})};
E.addEventListener("onYtShowToast",S);k.addOnDisposeCallback(function(){E.removeEventListener("onYtShowToast",S)});
_.KR(R)})};var $6o,bfu,MX$,fwN,vFs,lwU,d6k,sdJ,qJJ,Qd$;$6o=!1;_.ZfX=function(k){_.r7.call(this);this.JSC$23243_watchApi=k;this.fullscreen=this.theater=!1;fwN(this);vFs(this);bfu(this)};
_.y(_.ZfX,_.r7);bfu=function(k){var E,S,R;_.c(function(V){if(V.nextAddress==1)return V.yield(k.JSC$23243_watchApi.playerApi,2);E=V.yieldResult;if(k.isDisposed())return V.return();S=k.JSC$23243_watchApi.getElement("CINEMATICS");if(!S)return V.return();k.JSC$23243_cinematicController=new _.W4(S,E);_.Wy(k,k.JSC$23243_cinematicController);_.lBk(k.JSC$23243_cinematicController);d6k(k,_.a8b());R=k.JSC$23243_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(N){sdJ(k,N)});
k.addOnDisposeCallback(function(){k.JSC$23243_watchApi.unsubscribeByKey(R)});
lwU(k);sdJ(k,k.JSC$23243_cinematicController.isAllowed());MX$(k);qJJ(k);_.KR(V)})};
MX$=function(k){k.fullscreen=_.oZ(_.vo().getState());k.theater=_.yQ(_.vo().getState());_.zGU(k,k.fullscreen,k.theater);var E=_.Hq(_.vo(),_.oZ,function(R){k.fullscreen=R;_.zGU(k,k.fullscreen,k.theater)}),S=_.Hq(_.vo(),_.yQ,function(R){k.theater=R;
_.zGU(k,k.fullscreen,k.theater)});
k.addOnDisposeCallback(E);k.addOnDisposeCallback(S)};
fwN=function(k){var E=k.JSC$23243_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){lwU(k)});
k.addOnDisposeCallback(function(){k.JSC$23243_watchApi.unsubscribeByKey(E)})};
vFs=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23243_watchApi.playerApi,2);E=R.yieldResult;S=function(V){d6k(k,V)};
E.addEventListener("cinematicSettingsToggleChange",S);k.addOnDisposeCallback(function(){E.removeEventListener("cinematicSettingsToggleChange",S)});
_.KR(R)})};
lwU=function(k){var E=k.JSC$23243_watchApi.getWatchNextResponse(),S;E=_.W(E==null?void 0:(S=E.pageVisualEffects)==null?void 0:S[0],_.SB);var R;(R=k.JSC$23243_cinematicController)==null||_.qoJ(R,E)};
d6k=function(k,E){var S;(S=k.JSC$23243_cinematicController)==null||_.M1B(S,E);Qd$(k)};
sdJ=function(k,E){var S;_.c(function(R){if(R.nextAddress==1)return _.Y("kevlar_watch_cinematics_invisible")&&(E=!1),R.yield(k.JSC$23243_watchApi.playerApi,2);S=R.yieldResult;S.updateCinematicSettings(E);Qd$(k);_.KR(R)})};
qJJ=function(k){var E=_.nz();if(_.Y("kevlar_measure_ambient_mode_idle")&&!E.getFlag(192)&&!$6o){$6o=!0;var S=_.uM(_.ZJ,function(){_.en().resolve(_.XCT).start(1E4)},5E3);
k.addOnDisposeCallback(function(){_.ZJ.cancelJob(S);_.en().resolve(_.XCT).stop()})}};
_.zGU=function(k,E,S){k.fullscreen=E;k.theater=S;var R;(R=k.JSC$23243_cinematicController)==null||R.setFullscreen(k.fullscreen,k.theater);if(_.Y("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(k.theater||k.fullscreen){var V;(V=k.JSC$23243_cinematicController)==null||_.zhJ(V)}else if((k=k.JSC$23243_cinematicController)!=null){var N;(N=k.currentCinematicEffect)==null||N.pause()}};
Qd$=function(k){if(_.Y("web_cinematic_theater_mode")||_.Y("web_cinematic_fullscreen")){var E;k.JSC$23243_watchApi.getRoot().toggleCinematicsActive(!((E=k.JSC$23243_cinematicController)==null||!E.isEnabled()))}};_.kR$=function(k){_.r7.call(this);var E=this;this.JSC$23246_watchApi=k;this.commentsReady=!1;this.setCommentsJobId=0;k=_.Hq(_.vo(),_.$w,function(){Ofg(E)});
this.addOnDisposeCallback(k);var S=this.JSC$23246_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){G9X(E)}),R=this.JSC$23246_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){G9X(E)});
this.addOnDisposeCallback(function(){E.JSC$23246_watchApi.unsubscribeByKey(S);E.JSC$23246_watchApi.unsubscribeByKey(R)});
var V=function(){_.Y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&Cco(E,"false")};
this.JSC$23246_watchApi.getRoot().addEventListener("yt-page-data-will-update",V);this.addOnDisposeCallback(function(){E.JSC$23246_watchApi.getRoot().removeEventListener("yt-page-data-will-update",V)});
G9X(this)};
_.y(_.kR$,_.r7);var G9X=function(k){k.commentsReady=!1;_.ZJ.cancelJob(k.setCommentsJobId);k.setCommentsJobId=_.uM(_.ZJ,function(){Ofg(k)},1E3)},Ofg=function(k){if(!k.commentsReady){_.o_("cmi");
_.ZJ.cancelJob(k.setCommentsJobId);var E,S,R,V,N=(E=k.JSC$23246_watchApi.getWatchNextResponse())==null?void 0:(S=E.contents)==null?void 0:(R=S.twoColumnWatchNextResults)==null?void 0:(V=R.results)==null?void 0:V.results.contents;E=void 0;if(N&&N.length)for(N=_.n(N),S=N.next();!S.done;S=N.next())if(S=S.value,V=R=void 0,((R=S)==null?void 0:(V=R.itemSectionRenderer)==null?void 0:V.sectionIdentifier)==="comment-item-section"){_.Y("web_watch_provide_undefined_comments")?E=S.itemSectionRenderer:k.JSC$23246_watchApi.provideRenderingData("COMMENTS",
S.itemSectionRenderer);Cco(k,"true");break}_.Y("web_watch_provide_undefined_comments")&&k.JSC$23246_watchApi.provideRenderingData("COMMENTS",E);k.commentsReady=!0;k.JSC$23246_watchApi.dispatchEvent("yt-watch-comments-ready")}},Cco=function(k,E){var S;
(S=k.JSC$23246_watchApi.getElement("COMMENTS"))==null||S.setAttribute("canScheduleJobs",E)};_.NWo=function(k){_.r7.call(this);var E=this;this.JSC$23249_watchApi=k;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.Y("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.Y("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.Y("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.wO("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)Eug(this);
else{var S=this.JSC$23249_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Sts(E);LN(E)}),R=this.JSC$23249_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){jx(E);
LN(E)});
this.JSC$23249_watchApi.getRoot().is==="ytd-watch-grid"&&_.Y("swatcheroo_pbs_load_grid")&&(RPJ(this),Vmg(this));this.addOnDisposeCallback(function(){E.JSC$23249_watchApi.unsubscribeByKey(S);E.JSC$23249_watchApi.unsubscribeByKey(R);_.ZJ.cancelJob(E.provideRichGridJobId)});
Sts(this);jx(this)}};
_.y(_.NWo,_.r7);var Eug=function(k){var E=k.JSC$23249_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){k.providePlayerJobId=_.kq(_.ZJ,function(){Sts(k);LN(k)},k.provideAllDataDelayMs)}),S=k.JSC$23249_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){k.provideWatchNextJobId=_.kq(_.ZJ,function(){jx(k);
LN(k)},k.provideAllDataDelayMs)}),R=k.JSC$23249_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){k.provideWatchNextJobId=_.kq(_.ZJ,function(){jx(k);
LN(k)},k.provideAllDataDelayMs)});
k.JSC$23249_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.uM(_.ZJ,function(){Sts(k);jx(k);LN(k)},100)});
k.JSC$23249_watchApi.addPageDisposeJob(function(){_.ZJ.cancelJob(k.provideWatchNextJobId);_.ZJ.cancelJob(k.providePlayerJobId)});
k.addOnDisposeCallback(function(){k.JSC$23249_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");k.JSC$23249_watchApi.unsubscribeByKey(E);k.JSC$23249_watchApi.unsubscribeByKey(S);k.JSC$23249_watchApi.unsubscribeByKey(R);_.ZJ.cancelJob(k.providePlayerJobId);_.ZJ.cancelJob(k.provideWatchNextJobId)});
Sts(k);jx(k)},Sts=function(k){var E=k.JSC$23249_watchApi.getPlayerResponse(),S,R,V=(R=E==null?void 0:(S=E.playabilityStatus)==null?void 0:S.messageRenderers)!=null?R:[],N,h;
E=(h=E==null?void 0:(N=E.playabilityStatus)==null?void 0:N.messages)!=null?h:[];N=_.n(E);for(h=N.next();!h.done;h=N.next())V.push({alertRenderer:{text:_.DE(h.value),type:"WARNING"}});k.JSC$23249_watchApi.provideRenderingData("ALERTS",V)},jx=function(k){var E=[],S,R,V,N=k.JSC$23249_watchApi.getWatchNextResponse(),h,J,m,a,T=N==null?void 0:(h=N.contents)==null?void 0:(J=h.twoColumnWatchNextResults)==null?void 0:(m=J.results)==null?void 0:(a=m.results)==null?void 0:a.contents;
if(T)for(h=_.n(T),J=h.next();!J.done;J=h.next())if(J=J.value,J.videoPrimaryInfoRenderer)var w=J;else if(J.videoSecondaryInfoRenderer){var P=J;a=m=void 0;J=Object.assign({},(m=J.videoSecondaryInfoRenderer)==null?void 0:(a=m.metadataRowContainer)==null?void 0:a.metadataRowContainerRenderer);if(J.rows&&J.collapsedItemCount!==void 0){J.rows=J.rows.slice(0,J.collapsedItemCount).filter(function(VP){return!!VP.richMetadataRowRenderer});
J.collapsedItemCount=J.rows.length;var B={metadataRowContainerRenderer:J}}}else if(J.merchandiseShelfRenderer)var F=J;else if(J.ticketShelfRenderer)var K=J;else if(J.expandableMetadataRenderer)var r=J;else if(J.itemSectionRenderer)if(m=J.itemSectionRenderer.contents,a=void 0,k.directlyProvideComments&&((a=J.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section")_.o_("cmi"),k.JSC$23249_watchApi.provideRenderingData("COMMENTS",J.itemSectionRenderer);else if(m)for(J=_.n(m),m=
J.next();!m.done;m=J.next())if(m=m.value,m.commentsEntryPointHeaderRenderer)var x=m;else if(m.clarificationRenderer||m.infoPanelContainerRenderer||m.infoPanelContentRenderer||m.emergencyOneboxRenderer){E.push(m);var L=L||!!P}else m.limitedStateMessageRenderer?R=m:m.videoMetadataCarouselViewModel&&(V=m);if(_.Y("web_watch_merch_in_sd_when_ticket_shelf_present")&&F&&K){var q=F;F=void 0}if(k.provideWatchNextSecondaryResults){var M,d,z;k.JSC$23249_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
N==null?void 0:(M=N.contents)==null?void 0:(d=M.twoColumnWatchNextResults)==null?void 0:(z=d.secondaryResults)==null?void 0:z.secondaryResults)}if(k.JSC$23249_watchApi.getRoot().is==="ytd-watch-grid"){var kb,TI;k.JSC$23249_watchApi.provideRenderingData("LIVE_CHAT",N==null?void 0:(kb=N.contents)==null?void 0:(TI=kb.twoColumnWatchNextResults)==null?void 0:TI.conversationBar)}var a1,Ah,th,He;(M=N==null?void 0:(a1=N.contents)==null?void 0:(Ah=a1.twoColumnWatchNextResults)==null?void 0:(th=Ah.secondaryResults)==
null?void 0:(He=th.secondaryResults)==null?void 0:He.offerModule)&&(M.donationShelfRenderer||M.donationUnavailableRenderer)&&k.JSC$23249_watchApi.getRoot().is!=="ytd-watch-grid"&&(S=M);a1=k.JSC$23249_watchApi.getPlayerResponse();if(!a1||!_.K91(a1.playabilityStatus,N==null?void 0:N.playerOverlays)){var ve;if(N==null?0:(ve=N.contents)==null?0:ve.singleColumnWatchNextResults){var Xm,U5;var l4=N==null?void 0:(Xm=N.contents.singleColumnWatchNextResults.results)==null?void 0:(U5=Xm.results)==null?void 0:
U5.contents}else{var gY,IC,md,Kj;ve=!!(T==null?0:(gY=T[0])==null?0:(IC=gY.itemSectionRenderer)==null?0:(md=IC.contents)==null?0:(Kj=md[0])==null?0:Kj.backgroundPromoRenderer);var Lj,H0;gY=!!(N==null?0:(Lj=N.contents)==null?0:(H0=Lj.twoColumnWatchNextResults)==null?0:H0.secondaryResults);ve&&!gY&&(l4=T)}}T=E[0];Lj=E[1];L&&E.length===1&&(Lj=T,T=void 0);k.JSC$23249_watchApi.provideRenderingData("PRIMARY_INFO",w);k.JSC$23249_watchApi.provideRenderingData("SECONDARY_INFO",P);k.JSC$23249_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
x);k.JSC$23249_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",V);k.JSC$23249_watchApi.provideRenderingData("CLARIFICATION",T);k.JSC$23249_watchApi.provideRenderingData("RICH_METADATA",B);k.JSC$23249_watchApi.provideRenderingData("MERCH_SHELF",F);_.Y("web_watch_merch_in_sd_when_ticket_shelf_present")&&k.JSC$23249_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",q);k.JSC$23249_watchApi.provideRenderingData("TICKET_SHELF",K);k.JSC$23249_watchApi.provideRenderingData("LIMITED_STATE",R);k.JSC$23249_watchApi.getRoot().is!==
"ytd-watch-grid"&&k.JSC$23249_watchApi.provideRenderingData("DONATION_SHELF",S);k.JSC$23249_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",l4);k.JSC$23249_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Lj);k.JSC$23249_watchApi.provideRenderingData("EXPANDABLE_METADATA",r);if(k.swatcherooProvideAllDataOnScheduledJob){var TG,iC,hC,Y2,It,Wz;w=N==null?void 0:(TG=N.contents)==null?void 0:(iC=TG.twoColumnWatchNextResults)==null?void 0:(hC=iC.secondaryResults)==null?void 0:(Y2=hC.secondaryResults)==
null?void 0:(It=Y2.results)==null?void 0:(Wz=It[0])==null?void 0:Wz.richGridRenderer;k.JSC$23249_watchApi.provideRenderingData("RICH_GRID_RENDERER",w)}};
_.NWo.prototype.hasCompanionAds=function(k){var E,S;return(S=k==null?void 0:(E=k.adPlacements)==null?void 0:E.some(function(R){var V,N,h,J;return(R==null?void 0:(V=R.adPlacementRenderer)==null?void 0:(N=V.renderer)==null?void 0:N.actionCompanionAdRenderer)||(R==null?void 0:(h=R.adPlacementRenderer)==null?void 0:(J=h.renderer)==null?void 0:J.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?S:!1};
var LN=function(k){if(!_.Y("swaterdoo_ps_wn_handle_ks")){k.swatcherooProvideAllDataOnScheduledJob||Vmg(k,3E3);var E=k.JSC$23249_watchApi.getPlayerResponse(),S,R,V,N,h,J=(S=k.JSC$23249_watchApi.getWatchNextResponse())==null?void 0:(R=S.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(N=V.secondaryResults)==null?void 0:(h=N.secondaryResults)==null?void 0:h.offerModule;E=k.hasCompanionAds(E);var m,a;S=(J==null?void 0:(m=J.tvfilmOfferModuleRenderer)==null?void 0:m.clientShouldSuppressIfCompanionAdDisplayed)||
(J==null?void 0:(a=J.unlimitedOfferModuleRenderer)==null?void 0:a.suppressIfCompanionAds);m=E&&S;k.JSC$23249_watchApi.getRoot().is==="ytd-watch-grid"&&k.JSC$23249_watchApi.provideRenderingData("OFFER_MODULE",m?void 0:J)}},Vmg=function(k,E){_.Y("swatcheroo_pbs_load_grid")&&(k.provideRichGridJobId&&_.ZJ.cancelJob(k.provideRichGridJobId),k.provideRichGridJobId=_.kq(_.ZJ,function(){k.provideRichGridJobId=0;
var S,R,V,N,h,J,m,a=(S=k.JSC$23249_watchApi.getWatchNextResponse())==null?void 0:(R=S.contents)==null?void 0:(V=R.twoColumnWatchNextResults)==null?void 0:(N=V.secondaryResults)==null?void 0:(h=N.secondaryResults)==null?void 0:(J=h.results)==null?void 0:(m=J[0])==null?void 0:m.richGridRenderer;a&&k.JSC$23249_watchApi.provideRenderingData("RICH_GRID_RENDERER",a)},E))},RPJ=function(k){var E,S;
_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23249_watchApi.playerApi,2);E=R.yieldResult;S=function(){k.onPlaybackStart()};
E.addEventListener("onPlaybackStartExternal",S);k.addOnDisposeCallback(function(){E.removeEventListener("onPlaybackStartExternal",S)});
_.KR(R)})};
_.NWo.prototype.onPlaybackStart=function(){Vmg(this)};_.nuF=function(k){_.r7.call(this);var E=this;this.JSC$23262_watchApi=k;k.playerApi.then(function(S){E.player=S});
this.gestures=new _.wC(this.JSC$23262_watchApi.getRoot(),k.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.IKJ(_.vo().getState())&&_.$w(_.vo().getState())<=0)if(_.oZ(_.vo().getState())){var S;(S=E.player)==null||S.toggleFullscreen()}else _.qe(E.JSC$23262_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
IZB(this)};
_.y(_.nuF,_.r7);var IZB=function(k){var E=_.Hq(_.vo(),_.oZ,function(S){k.onFullscreenChanged(S)});
k.addOnDisposeCallback(E);E=_.Hq(_.vo(),_.$w,function(S){k.gestures&&(S>0?k.gestures.detach():k.gestures.attach())});
k.addOnDisposeCallback(E)};
_.nuF.prototype.onFullscreenChanged=function(k){this.gestures&&this.gestures.update(k)};_.hPN=function(k){_.r7.call(this);var E=this;this.JSC$23265_watchApi=k;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(k.subscribeToActiveChanged(function(S){E.onActiveChanged(S)}));
iIg(this)};
_.y(_.hPN,_.r7);var JIB=function(k){if(_.Y("swatcheroo_page_dispose_all_watch_data"))k.pageDisposalDataTypes=Object.values(g6r).filter(function(S){return S!=="PLAYLIST"});
else if(_.Y("swatcheroo_page_dispose_rich_grid")){var E;(E=k.pageDisposalDataTypes)==null||E.push("RICH_GRID_RENDERER")}},iIg=function(k){_.Y("swatcheroo_enable_ghost_cards")&&(JIB(k),k.JSC$23265_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.ZJ.cancelJob(k.clearDataJobId);
k.clearDataJobId=0}),k.runPageDisposeJob=function(){var E=_.en().resolve(_.ZD).getDestinationPageType()==="watch";
k.clearDataJobId=_.kq(_.ZJ,k.runClearDataJob,E?0:_.wO("web_watch_delay_page_dispose_ms",1E4))},k.runClearDataJob=function(){cIN(k)},k.runOnYtNavigateAwayFinish=function(){k.clearDataJobId&&(_.ZJ.cancelJob(k.clearDataJobId),k.clearDataJobId=0,cIN(k))},document.addEventListener("yt-navigate-finish",k.runOnYtNavigateAwayFinish),k.JSC$23265_watchApi.addPageDisposeJob(k.runPageDisposeJob),k.addOnDisposeCallback(function(){k.JSC$23265_watchApi.removePageDisposeJob(k.runPageDisposeJob);
k.JSC$23265_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",k.runOnYtNavigateAwayFinish)}))},cIN=function(k){k.pageDisposalDataTypes.forEach(function(E){k.JSC$23265_watchApi.provideRenderingData(E,void 0)});
k.clearDataJobId=0};
_.hPN.prototype.onActiveChanged=function(k){k&&((k=document.querySelector("#watch-page-skeleton"))&&_.Ua(k),mer(this),document.body.removeAttribute("no-y-overflow"),_.qg("IS_SHELL_LOAD")&&_.d2o())};
var mer=function(k){_.c(function(E){if(E.nextAddress==1)return E.yield(k.JSC$23265_watchApi.playerApi,2);_.Ui();_.KR(E)})};var ePU;ePU=_.Y("kevlar_watch_while_counterfactual")?0:.25;_.wiJ=function(k){_.r7.call(this);this.JSC$23268_watchApi=k;this.JSC$23268_watchWhileEnabled=_.Y("kevlar_watch_while_v2");this.pipEnabled=_.Y("web_enable_pip_on_miniplayer");aZu(this);tms(this);TWJ(this)};
_.y(_.wiJ,_.r7);var aZu=function(k){k.JSC$23268_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){PWF(k)});
k.addOnDisposeCallback(function(){k.JSC$23268_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},tms=function(k){var E,S;
_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23268_watchApi.playerApi,2);E=R.yieldResult;S=function(){PWF(k)};
E.addEventListener("onCollapseMiniplayer",S);k.addOnDisposeCallback(function(){E.removeEventListener("onCollapseMiniplayer",S)});
_.KR(R)})},TWJ=function(k){var E=k.JSC$23268_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&E&&k.JSC$23268_watchWhileEnabled&&(k.playerIntersectionObserver=new IntersectionObserver(function(S){k.handleIntersect(S)},{threshold:[ePU]}),k.playerIntersectionObserver.observe(E),k.addOnDisposeCallback(function(){var S;
(S=k.playerIntersectionObserver)==null||S.disconnect()}))},PWF=function(k){var E,S,R;
_.c(function(V){if(V.nextAddress==1){E=_.en().resolve(_.ZD);S=E.data;R=_.Pt(S.response,!1,S.playerResponse);_.g_().miniplayerButtonActivation=!0;if(k.pipEnabled)return _.g_().watchPipActivation=!0,V.jumpTo(2);_.en().resolve(_.yb).collapse();return V.yield(_.g_().navigationFinishPromise,2)}if(V.nextAddress!=4)return _.g_().currentEndpoint=R.watchEndpoint||null,V.yield(_.en().resolve(_.yb).activate(k.JSC$23268_watchApi.getElement("PLAYER"),R,S),4);_.g_().userActivation=!0;_.KR(V)})};
_.wiJ.prototype.handleIntersect=function(k){BWN(this,k[k.length-1])};
var BWN=function(k,E){k.watchWhileJobId&&_.ZJ.cancelJob(k.watchWhileJobId);k.watchWhileJobId=_.ZJ.addLowPriorityJob(function(){var S,R;return _.c(function(V){if(V.nextAddress==1)return k.watchWhileJobId=void 0,S=_.en().resolve(_.yb),E.intersectionRatio>ePU?S.isMiniplayerActive()?V.yield(S.deactivate(),0):V.jumpTo(0):(R=!S.isMiniplayerActive())?V.yield(Ytk(k),5):V.jumpTo(4);V.nextAddress!=4&&(R=V.yieldResult);if(!R)return V.jumpTo(0);_.g_().watchWhileActivation=!0;return V.yield(WSS(k),0)})},100)},
Ytk=function(k){return _.c(function(E){return E.nextAddress==1?_.Y("kevlar_watch_while_paused")?E.return(!0):E.yield(k.isPlayerPlaying(),2):E.return(E.yieldResult)})};
_.wiJ.prototype.isPlayerPlaying=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return S.yield(k.JSC$23268_watchApi.playerApi,2);E=S.yieldResult;return S.return(E.getPlayerStateObject().isPlaying)})};
var WSS=function(k){var E,S;return _.c(function(R){E=_.en().resolve(_.ZD).data;S=_.Pt(E.response,!1,E.playerResponse);_.g_().currentEndpoint=S.watchEndpoint||null;return R.yield(_.en().resolve(_.yb).activate(k.JSC$23268_watchApi.getElement("PLAYER"),S,E),0)})};_.ouJ=function(k){_.r7.call(this);this.JSC$23272_watchApi=k;FSJ(this);yIk(this)};
_.y(_.ouJ,_.r7);var yIk=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23272_watchApi.playerApi,2);E=R.yieldResult;S=function(V){var N;V.sessionData&&V.sessionData.itct&&(N=V.sessionData.itct);var h=V.watchEndpoint;if(h&&V.sessionData&&V.sessionData.autonav)h=_.sDh(h,N);else{var J;h=_.sv(V.videoId,(J=V.listId)!=null?J:void 0,N)}N={endpoint:h};V.sessionData&&(N.tempData=V.sessionData);k.JSC$23272_watchApi.dispatchEvent("yt-navigate",N)};
E.addEventListener("onPlayVideo",S);k.addOnDisposeCallback(function(){E.removeEventListener("onPlayVideo",S)});
_.KR(R)})},FSJ=function(k){var E=function(S){k.onYtNavigate(S)};
k.JSC$23272_watchApi.getRoot().addEventListener("yt-navigate",E);k.addOnDisposeCallback(function(){k.JSC$23272_watchApi.getRoot().removeEventListener("yt-navigate",E)})};
_.ouJ.prototype.onYtNavigate=function(k){var E=this,S,R,V,N,h,J,m,a,T;return _.c(function(w){if(w.nextAddress==1){if(!((S=k.detail)==null?0:(R=S.endpoint)==null?0:R.watchEndpoint))return w.return();V=k.detail.endpoint.watchEndpoint;N=E.JSC$23272_watchApi.getWatchNextResponse();J=_.W((h=N)==null?void 0:h.currentVideoEndpoint,_.jm);if(!J)return w.return();if(V.videoId!==J.videoId||V.playlistId&&V.playlistId!==J.playlistId||typeof V.startTimeSeconds!=="number")return w.jumpTo(0);k.stopPropagation();
(m=_.Y("kevlar_watch_while_v2")&&!_.Y("kevlar_watch_while_counterfactual"))&&_.en().resolve(_.yb).isMiniplayerActive()||E.JSC$23272_watchApi.scrollWatchTo(0,!0);return w.yield(E.JSC$23272_watchApi.playerApi,3)}a=w.yieldResult;T=V.startTimeSeconds;a.seekTo(T,void 0,void 0,void 0,84);a.wakeUpControls();T<a.getDuration()&&a.playVideo();_.KR(w)})};_.guS=function(k){_.r7.call(this);var E=this;this.JSC$23275_watchApi=k;var S=this.JSC$23275_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){XiJ(E)});
this.addOnDisposeCallback(function(){E.JSC$23275_watchApi.unsubscribeByKey(S)});
XiJ(this);_.Y("enable_ai_companion")&&(k=this.JSC$23275_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.H2U(_.en().resolve(_.b6),k,"WATCH")};
_.y(_.guS,_.r7);var XiJ=function(k){var E=k.JSC$23275_watchApi.getWatchNextResponse();if(E){var S,R=[].concat(_.$e((S=E==null?void 0:E.engagementPanels)!=null?S:[]));R.unshift.apply(R,_.$e(UeN(E)));k.JSC$23275_watchApi.provideRenderingData("ENGAGEMENT_PANELS",R)}},HI$=function(k){var E,S,R,V=(E=k.engagementPanels)==null?void 0:(S=E.find(function(B){var F;
return((F=B.engagementPanelSectionListRenderer)==null?void 0:F.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(R=S.engagementPanelSectionListRenderer.content)==null?void 0:R.structuredDescriptionContentRenderer,N;
if(_.W(V==null?void 0:(N=V.items)==null?void 0:N.find(function(B){return!!_.W(B,Mwo)}),Mwo))return!0;
var h,J,m,a;if(k=(((h=k.contents)==null?void 0:(J=h.twoColumnWatchNextResults)==null?void 0:(m=J.results)==null?void 0:(a=m.results)==null?void 0:a.contents)||[]).find(function(B){return B.videoPrimaryInfoRenderer})){var T,w,P;
return(((T=k.videoPrimaryInfoRenderer)==null?void 0:(w=T.videoActions)==null?void 0:(P=w.menuRenderer)==null?void 0:P.flexibleItems)||[]).some(function(B){B=_.W(B,_.bGC);if(!B)return!1;var F,K;B=(F=B.topLevelButton)==null?void 0:(K=F.buttonViewModel)==null?void 0:K.onTap;if(!B)return!1;F=_.Uk(B);if(!F)return!1;var r;return((r=_.W(F,_.Te))==null?void 0:r.panelIdentifier)==="PAyouchat"})}return!1},UeN=function(k){var E=[];
if(!_.Y("web_watch_inject_placeholder_fantasy_panel_killswitch")){var S,R,V,N=(S=k.engagementPanels)==null?void 0:(R=S.find(function(J){var m;return((m=J.engagementPanelSectionListRenderer)==null?void 0:m.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(V=R.engagementPanelSectionListRenderer.content)==null?void 0:V.structuredDescriptionContentRenderer,h;
_.W(N==null?void 0:(h=N.items)==null?void 0:h.find(function(J){return!!_.W(J,yjN)}),yjN)&&(S=_.Tsl("PAsports_fantasy"),S.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E.push(S))}HI$(k)&&(k=_.Tsl("PAyouchat"),k.engagementPanelSectionListRenderer.targetId="PAyouchat",k.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E.push(k));
return E};_.piU=function(k){_.r7.call(this);this.JSC$23278_watchApi=k;KSF(this)};
_.y(_.piU,_.r7);var KSF=function(k){k.JSC$23278_watchApi.registerActionHandler("yt-loop-command",function(E){AIs(k,E)});
k.JSC$23278_watchApi.registerActionHandler("yt-repeat-chapter-command",function(E){rIF(k,E)});
k.addOnDisposeCallback(function(){k.JSC$23278_watchApi.unregisterActionHandler("yt-loop-command");k.JSC$23278_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},AIs=function(k,E){var S;
_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23278_watchApi.playerApi,2);S=R.yieldResult;_.W(E,XC$).loop?(S.setLoopRange({startTimeMs:Number(_.W(E,XC$).startTimeMs),endTimeMs:Number(_.W(E,XC$).endTimeMs),postId:_.W(E,XC$).postId,type:"clips"}),S.playVideo()):S.setLoopRange(null);_.KR(R)})},rIF=function(k,E){var S,R;
_.c(function(V){if(V.nextAddress==1)return V.yield(k.JSC$23278_watchApi.playerApi,2);S=V.yieldResult;R=_.W(E,pCB).repeat;R==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(S.setLoopRange({startTimeMs:Number(_.W(E,pCB).startTimeMs),endTimeMs:Number(_.W(E,pCB).endTimeMs),type:"repeatChapter"}),S.playVideo()):R==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&S.setLoopRange(null);_.KR(V)})};_.xek=function(k){_.r7.call(this);this.JSC$23283_watchApi=k;ueS(this)};
_.y(_.xek,_.r7);var ueS=function(k){k.JSC$23283_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(E){LSF(k,E)});
k.addOnDisposeCallback(function(){k.JSC$23283_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},LSF=function(k,E){var S,R,V,N,h,J,m,a,T,w,P;
_.c(function(B){if(B.nextAddress==1)return B.yield(k.JSC$23283_watchApi.playerApi,2);S=B.yieldResult;if(N=(V=(R=_.W(E,Ajs))==null?void 0:R.highlightedMenuItemKey)!=null?V:"")(J=(h=S).highlightSettingsMenuItem)==null||J.call(h,N);if(T=(a=(m=_.W(E,Ajs))==null?void 0:m.openMenuItemKey)!=null?a:"")(P=(w=S).openSettingsMenuItem)==null||P.call(w,T);_.KR(B)})};var jrJ=_.kn("/youtube/app/watch/player_state","playerStateEntity");_.D4=function(k){_.r7.call(this);this.JSC$23286_watchApi=k;DeB(this)};
_.y(_.D4,_.r7);var $er=function(k){switch(k){case 0:return"PLAYER_STATE_FINISHED";case 1:return"PLAYER_STATE_PLAYING";case 2:return"PLAYER_STATE_PAUSED";case 3:return"PLAYER_STATE_LOADING_CONTENT";default:return"PLAYER_STATE_UNKNOWN"}},DeB=function(k){var E,S,R,V;
_.c(function(N){if(N.nextAddress==1)return N.yield(k.JSC$23286_watchApi.playerApi,2);E=N.yieldResult;if(k.isDisposed())return N.return();S=function(h){k.onPlayerStateChange(h)};
R=function(h){k.onAdStateChange(h)};
V=function(){k.onAdSkip()};
E.addEventListener("onStateChange",S);E.addEventListener("onAdStateChange",R);E.addEventListener("onAdSkip",V);k.addOnDisposeCallback(function(){E.removeEventListener("onStateChange",S);E.removeEventListener("onAdStateChange",R);E.removeEventListener("onAdSkip",V)});
_.KR(N)})},fZB=function(k){var E=_.vu(),S=E.dispatch;
a:switch(k.adsState){case -1:case 0:var R="ADS_STATE_NONE";break a;case 1:case 2:case 3:R="ADS_STATE_PLAYING";break a;default:R="ADS_STATE_UNKNOWN"}S.call(E,_.mj("playerStateEntity",jrJ,{key:jrJ,playerState:$er(k.playerState),adsState:R,videoId:k.videoId}))};
_.D4.prototype.onPlayerStateChange=function(k){var E=this,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(E.JSC$23286_watchApi.playerApi,2);S=R.yieldResult;if(E.isDisposed())return R.return();E.playerState=k;E.videoId=S.getVideoData().video_id;fZB(E);_.KR(R)})};
_.D4.prototype.onAdStateChange=function(k){this.adsState=k;fZB(this)};
_.D4.prototype.onAdSkip=function(){this.adsState=0;fZB(this)};_.bIr=function(k){_.r7.call(this);var E=this;this.JSC$23290_watchApi=k;this.enableExternalPlaylistPanelInPlayer=_.Y("delhi_web_player_use_external_playlist_panel");_.en().resolve(_.z7).setPlayer(this.JSC$23290_watchApi.getElement("PLAYER"));k=this.JSC$23290_watchApi.subscribeToActiveChanged(function(S){E.onActiveChanged(S)});
this.addOnDisposeCallback(k);vus(this)};
_.y(_.bIr,_.r7);var vus=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return k.enableExternalPlaylistPanelInPlayer?R.yield(k.JSC$23290_watchApi.playerApi,2):R.return();E=R.yieldResult;S=function(){if(k.playlistPanelElement)k.playlistPanelElement.onToggleExpanded()};
E.addEventListener("onToggleExternalPlaylistPanel",S);k.addOnDisposeCallback(function(){E.removeEventListener("onToggleExternalPlaylistPanel",S)});
_.KR(R)})};
_.bIr.prototype.onActiveChanged=function(k){var E=this,S=_.en().resolve(_.z7),R=function(){ZIU(E)};
k?(this.playlistPanelElement=this.JSC$23290_watchApi.getElement("PLAYLIST_PANEL"))?(S.setPlaylistComponent(this.playlistPanelElement),S.addEventListener("yt-playlist-data-updated",R),this.addOnDisposeCallback(function(){S.removeEventListener("yt-playlist-data-updated",R)}),ZIU(this)):_.kr(Error("Xo")):(S.removeEventListener("yt-playlist-data-updated",R),S.cancelVideoSkip())};
var ZIU=function(k){var E=_.en().resolve(_.z7);k.JSC$23290_watchApi.provideRenderingData("PLAYLIST",E.getPlaylistData())};_.$M=function(k){_.r7.call(this);var E=this;this.JSC$23293_watchApi=k;this.onPageScroll=function(){E.scrollThrottle.fire();E.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.NJ(this.onThrottledScroll,200,this);_.Wy(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.NJ(this.onMastheadThrottledScroll,50,this);_.Wy(this,this.mastheadScrollThrottle);this.animation=new _.V0(function(S){E.JSC$23293_watchApi.getRoot().setScrollTop(S)});
k=_.Hq(_.vo(),_.oZ,function(){E.onFullscreenChanged()});
this.addOnDisposeCallback(k);deu(this);srJ(this);this.onThrottledScroll()};
_.y(_.$M,_.r7);
_.$M.prototype.onFullscreenChanged=function(){var k=this,E=this.JSC$23293_watchApi.getRoot();!this.pageScrollElement&&E.pageScrollElement?(this.pageScrollElement=E.pageScrollElement,E.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){k.pageScrollElement&&k.pageScrollElement.removeEventListener("scroll",k.onPageScroll)})):this.pageScrollElement&&!E.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var deu=function(k){window.addEventListener("scroll",k.onPageScroll);k.addOnDisposeCallback(function(){window.removeEventListener("scroll",k.onPageScroll)})},srJ=function(k){k.JSC$23293_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(E){a:{var S;
if(S=k.JSC$23293_watchApi.getRoot().contains(E)&&!k.animation.isAnimating()){S=E.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var R,V,N=(E==null?void 0:(R=E.parentElement)==null?void 0:(V=R.parentElement)==null?void 0:V.id)==="fixed-secondary";S=!(S&&N)}if(S){if(_.Y("kevlar_watch_scroll_manager_absolute_offset_killswitch"))R=E.offsetTop;else for(R=0,V=E;V!==null;)R+=V.offsetTop,R-=V.scrollTop,V=V.offsetParent;V=R;R=V-24;E=V+E.offsetHeight+24;V=k.JSC$23293_watchApi.getRoot().getPageScrollingElement();
S=k.JSC$23293_watchApi.getRoot().getScrollTop();N=S+V.clientHeight-56;if(R<S+56)E=R-56;else if(E>N)E-=V.clientHeight;else break a;k.scrollWatchTo(Math.max(0,E),!0)}}});
k.addOnDisposeCallback(function(){k.JSC$23293_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.$M.prototype.onThrottledScroll=function(){var k=_.vo(),E=k.dispatch,S=this.JSC$23293_watchApi.getRoot().getScrollTop();E.call(k,_.zX({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:S}}))};
_.$M.prototype.onMastheadThrottledScroll=function(){this.JSC$23293_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23293_watchApi.getRoot().getScrollTop())};
_.$M.prototype.scrollWatchTo=function(k,E){(E===void 0?0:E)?this.animation.start(this.JSC$23293_watchApi.getRoot().getScrollTop(),Math.max(0,k),500):this.JSC$23293_watchApi.getRoot().setScrollTop(k)};_.qtB=function(k){_.r7.call(this);var E=this;this.JSC$23296_watchApi=k;var S=this.JSC$23296_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){lZJ(E)}),R=this.JSC$23296_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MmS(E)});
this.addOnDisposeCallback(function(){E.JSC$23296_watchApi.unsubscribeByKey(S);E.JSC$23296_watchApi.unsubscribeByKey(R)});
lZJ(this);MmS(this)};
_.y(_.qtB,_.r7);
var lZJ=function(k){var E,S,R,V=(R=(E=k.JSC$23296_watchApi.getPlayerResponse())==null?void 0:(S=E.videoDetails)==null?void 0:S.title)!=null?R:"";k.JSC$23296_watchApi.dispatchEvent("yt-update-title",V)},MmS=function(k){var E,S,R,V,N,h,J,m=(J=((h=(E=k.JSC$23296_watchApi.getWatchNextResponse())==null?void 0:(S=E.contents)==null?void 0:(R=S.twoColumnWatchNextResults)==null?void 0:(V=R.results)==null?void 0:(N=V.results)==null?void 0:N.contents)!=null?h:[]).find(function(a){return!!a.videoPrimaryInfoRenderer}))==null?
void 0:J.videoPrimaryInfoRenderer;
(E=_.$n(m==null?void 0:m.title))&&k.JSC$23296_watchApi.dispatchEvent("yt-update-title",E)};_.Qro=function(k){_.r7.call(this);this.JSC$23299_watchApi=k;zPr(this)};
_.y(_.Qro,_.r7);var zPr=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$23299_watchApi.playerApi,2);E=R.yieldResult;S=function(){k.onYpcContentRequest()};
E.addEventListener("onYpcContentRequest",S);k.addOnDisposeCallback(function(){E.removeEventListener("onYpcContentRequest",S)});
_.KR(R)})};
_.Qro.prototype.onYpcContentRequest=function(){var k,E,S,R,V,N=(k=this.JSC$23299_watchApi.getWatchNextResponse())==null?void 0:(E=k.contents)==null?void 0:(S=E.twoColumnWatchNextResults)==null?void 0:(R=S.secondaryResults)==null?void 0:(V=R.secondaryResults)==null?void 0:V.offerModule,h,J,m,a;k=(a=(m=(J=(h=N==null?void 0:N.episodeOfferModuleRenderer)!=null?h:N==null?void 0:N.movieOfferModuleRenderer)!=null?J:N==null?void 0:N.unlimitedOfferModuleRenderer)!=null?m:N==null?void 0:N.liveOfferModuleRenderer)!=
null?a:N==null?void 0:N.tvfilmOfferModuleRenderer;var T,w,P;N=(P=N==null?void 0:(T=N.tvfilmOfferModuleRenderer)==null?void 0:(w=T.actionButtons)==null?void 0:w.length)!=null?P:0;w=Math.max(N-1,0);var B,F,K;T=(K=k==null?void 0:(B=k.offerButton)==null?void 0:B.buttonRenderer)!=null?K:k==null?void 0:(F=k.actionButtons)==null?void 0:F[w].buttonRenderer;var r,x;(B=(x=(r=T==null?void 0:T.navigationEndpoint)!=null?r:T==null?void 0:T.serviceEndpoint)!=null?x:T==null?void 0:T.command)&&_.V_.instance.resolveCommand(B)};
}catch(e){_._DumpException(e)}
try{
var K5I,gl3,olA;_.XTW=function(){var k=_.fO.clone(ygA),E;return(new _.yF(function(S,R){k.onSuccess=function(V){_.nAC(V)?S(new olA(V)):R(new _.pA("Request failed, status="+_.Yr(V),"net.badstatus",V))};
k.onError=function(V){R(new _.pA("Unknown request error","net.unknown",V))};
k.onTimeout=function(V){R(new _.pA("Request timed out","net.timeout",V))};
E=_.gO("//googleads.g.doubleclick.net/pagead/id",k)})).thenCatch(function(S){if(S instanceof _.o3){var R;
(R=E)==null||R.abort()}return _.BM(S)})};
_.UyG=function(k){a:{var E="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(E="EMBEDDED_PLAYER_MODE_PFL");var S=k.raw_embedded_player_response;if(!S&&(k=k.embedded_player_response))try{S=JSON.parse(k)}catch(V){break a}if(S)b:for(var R in gl3)if(gl3[R]==S.embeddedPlayerMode){E=gl3[R];break b}}return E==="EMBEDDED_PLAYER_MODE_PFL"};
_.HcP=function(){if(_.Y("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("vf");if(!_.soI())return Error("wf");var k=_.Mg("PLAYER_VARS",{});if(_.fO.get(k,"privembed",!1)=="1")return Error("xf");if(_.UyG(k))return Error("yf")};
K5I=function(k){switch(k){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:_.s5(k,"unknown result type")}};
_.pT3=function(k,E,S){E=_.GDI[E];S={detected:k===0,source:E.yfH,detectionResult:K5I(k),contentCpn:S};_.f2("biscottiBasedDetection",S);_.K3T.increment(E.yfH,k);E.cGc!==void 0&&_.l$("CATSTAT",_.Qxi(k,E))};
_.Ad=function(k,E){var S={};S.key=k;S.value=E;return _.r7m().then(function(R){return new Promise(function(V,N){try{var h=R.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(S);h.onsuccess=function(){V()};
h.onerror=function(){N()}}catch(J){N(J)}})})};
_.rgI=function(){var k=_.wO("user_engagement_experiments_rate_limit_ms"),E=Agt.get("last-user-engagement-exp-trigger-timestamp");return!E||(0,_.ev)()>=E+k?(Agt.set("last-user-engagement-exp-trigger-timestamp",(0,_.ev)()),!0):!1};
_.rx=function(k,E,S,R,V){E=E===void 0?null:E;S=S===void 0?null:S;R=R===void 0?null:R;V=V===void 0?null:V;k={youThereEventType:k};S&&(k.lactThresholdMs=S.lactThresholdMs,k.mediaPosSec=S.promptDelaySec,k.lactServerRequestMs=S.lactServerRequestMs,k.triggerReason=S.triggerReason);V!=null&&(k.renderingMediaPosSec=Math.round(V));E||(E=_.Fe());E&&(k.clientScreenNonce=E);R&&(k.clientPlaybackNonce=R);_.f2("youThere",k)};
gl3={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"};olA=function(k){this.xhr=k};
_.pA=function(k,E,S){_.Sh.call(this,k+", errorCode="+E);this.errorCode=E;this.xhr=S;this.name="PromiseAjaxError"};
_.y(_.pA,_.Sh);var ygA={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Agt=new _.qG("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.F5R=function(k){return _.zX({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:k})};
}catch(e){_._DumpException(e)}
try{
var Z4,FGu,oAg,XEB,gAU,Uao,KGg,$ak,fvJ,vAN,HzJ,yXs,uyU,rXS,dag;_.WGJ=function(){var k=window.location.hash;k.charAt(0)==="#"&&(k=k.charAt(1)==="!"?k.substring(2):k.substring(1));return _.Ru(k)};
Z4=function(k,E,S){var R;return _.c(function(V){if(V.nextAddress==1)return V.yield(E(),2);R=V.yieldResult;S(R,k);_.KR(V)})};
FGu=function(){return _.c(function(k){return k.nextAddress==1?k.yield((_.HcP()!==void 0?_.BM(Error("zf")):_.XTW()).then(function(){return 1},function(E){if(E.message==="Biscotti id is disabled")return 3;
_.dg("Failed fetching bid");return 0}),2):k.return(k.yieldResult)})};
oAg=function(){var k=_.sp("YmVkLXBsYXllciNtdDc0cWp4ODN3NTR5dC1oYXZlbi1lbQ=="),E=_.sp("NW4xY2lmcmFtZSNrcjg2eWNlcw==");return document.querySelector(E+yXs+k)?0:1};
XEB=function(){return _.jxI(_.Rg)};
gAU=function(){return _.DY1()===0?0:_.$Yt()};
Uao=function(){return _.dYi(_.VEb([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
KGg=function(){return _.Hyh(HzJ)};
_.pES=function(k){_.c(function(E){switch(E.nextAddress){case 1:return E.yield(Z4("b.f_",FGu,k),2);case 2:return E.yield(Z4("j.s_",_.g8h,k),3);case 3:return E.yield(Z4("r.s_",_.yZm,k),4);case 4:return E.yield(Z4("e.h_",KGg,k),5);case 5:if(!_.Y("ab_det_sc_inj")){E.jumpTo(6);break}return E.yield(Z4("s.i_",_.xYI,k),6);case 6:if(_.Y("ab_deg_unex_thr")){E.jumpTo(8);break}return E.yield(Z4("a.o_",_.rZm,k),8);case 8:if(_.Y("ks_get_o_pp")){E.jumpTo(10);break}return E.yield(Z4("g.o_",_.AZe,k),10);case 10:if(_.Y("ks_det_gpbl")){E.jumpTo(12);
break}return E.yield(Z4("p.i_",_.plA,k),12);case 12:return E.yield(Z4("f.i_",_.mYj,k),14);case 14:return E.yield(Z4("a.b_",_.WBt,k),15);case 15:return E.yield(Z4("p.m_",_.tEC,k),16);case 16:if(!_.Y("ab_det_el_h_v2")){E.jumpTo(17);break}return E.yield(Z4("n.h_",Uao,k),17);case 17:return E.yield(Z4("o.p_",XEB,k),19);case 19:return E.yield(Z4("e.i_",oAg,k),20);case 20:if(_.Y("ab_det_apm"))return E.yield(Z4("o.a_",gAU,k),0);E.jumpTo(0)}})};
_.AXu=function(k,E){k={videoId:k};E&&(k.playlistId=E);return k};
_.xaJ=function(){if(_.soI()){var k=_.Mg("PLAYER_VARS",{});if(_.fO.get(k,"privembed",!1)!="1"&&!_.UyG(k)){var E=function(){rXS=!0;"google_ad_status"in window?_.l$("DCLKSTAT",1):_.l$("DCLKSTAT",2)};
try{_.KI(_.sSA,E)}catch(S){}uyU.push(_.ZJ.addLowPriorityJob(function(){if(!(rXS||"google_ad_status"in window)){try{_.joh(_.sSA.toString(),E)}catch(S){}rXS=!0;_.l$("DCLKSTAT",3)}},5E3))}}};
_.LGF=function(k,E,S){S=S===void 0?!1:S;var R=Math.max(k.width,_.zuu);if(_.Y("kevlar_watch_feed_big_thumbs")&&k.width>=1550-_.JW()&&k.height>=800)R-=_.ErJ;else if(k.width>=_.sd){var V=_.Q2J+_.OVu+_.dL;_.Y("kevlar_watch_feed_big_thumbs")&&(V=_.kVo);R-=V}else R-=_.Q2J;R=Math.min(R,_.Gar);V=240;S&&(V=380);E<.5624||(!_.Y("kevlar_watch_flexy_disable_small_window_sizing")&&(k.height<630&&k.width>=657||k.height>=630&&k.width>=_.sd&&k.width<1327)?V=360:!_.Y("kevlar_watch_flexy_disable_large_window_sizing")&&
k.height>=630&&k.width>=1327&&(V=480));var N=Math.min(R*E,k.height-(56+_.q4k+_.C$X));N=Math.max(N,V);E<1?R=N/E:k.width>=_.sd&&(R=_.LGF(k,.5625,S).width);return new _.KO(Math.round(R),Math.round(N))};
_.j_r=function(k){var E=0;k.indexOf("h")!=-1&&(k=k.split("h"),E=k[0]*60*60,k=k[1]);k.indexOf("m")!=-1&&(k=k.split("m"),E=k[0]*60+E,k=k[1]);k.indexOf("s")!=-1?(k=k.split("s"),E=k[0]*1+E):E=k*1+E;return E};
_.Dak=function(){_.wO("service_worker_push_logged_out_prompt_watches")!=-1&&_.up("WatchCount").then(function(k){k>=100||_.Ad("WatchCount",k+1)})};
$ak=function(k){var E=k.externalVideoId||"";return E?k.isShortsEligible?"https://www.youtube.com/shorts/"+E:"https://www.youtube.com/watch?v="+E:""};
fvJ=function(k){var E=[];k.viewCount&&E.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:k.viewCount});k.likeCount&&E.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:k.likeCount});return E};
vAN=function(k){var E,S,R={"@context":"https://schema.org","@type":"VideoObject",description:_.$n(k.description),duration:"PT"+(k.lengthSeconds||"0")+"S",embedUrl:k.embed?k.embed.iframeUrl:"",name:_.$n(k.title),thumbnailUrl:((E=k.thumbnail)==null?void 0:(S=E.thumbnails)==null?void 0:S.map(function(T){return T&&T.url||""}))||[],
uploadDate:k.publishDate};_.Y("mweb_video_schema_id_killswitch")||(R["@id"]=$ak(k));E=fvJ(k);E.length&&(R.interactionStatistic=E);k.category&&(R.genre=k.category);k.ownerChannelName&&(R.author=k.ownerChannelName);k.liveBroadcastDetails&&(R.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:k.liveBroadcastDetails.startTimestamp,endDate:k.liveBroadcastDetails.endTimestamp}]);if(k.learningResource){k=k.learningResource;R["@type"]=["VideoObject","LearningResource"];var V;if((V=k.learningResourceType)==
null?0:V.length)R.learningResourceType=k.learningResourceType[0];var N;if((N=k.educationalAlignment)==null?0:N.length)R.educationalAlignment={"@type":"AlignmentObject",targetName:k.educationalAlignment[0]};var h;if((h=k.educationalLevel)==null?0:h.length){V=k.educationalLevel[0];var J;if((J=k.educationalLevelCountry)==null?0:J.length)V+=" ("+k.educationalLevelCountry+")";R.educationalLevel=V}var m,a;if(((m=k.learningResourceType)==null?0:m.length)&&k.learningResourceType[0]==="Problem walkthrough"&&
((a=k.problemDescriptions)==null?0:a.length))for(R.hasPart=[],J=_.n(k.problemDescriptions),m=J.next();!m.done;m=J.next())V=m.value,m=V.problemDescriptionText,a=V.startOffset,V=V.url,m&&a!==void 0&&V&&R.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:m,text:m,startOffset:a,url:V})}return R};
_.bzg=function(k){return _.zX({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:k}})};
HzJ=[[["OTdncHJpbWFyeSN0NG43dG5ndjA=",null,null],[null,["cy1yZW5kZXJlciNnYTR6c25yNHBuazN5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0","dHlsZS1zY29wZSN2Zm03eTZnbGFpaG1z"],null],["YXN0aGVhZC1hZCM3emZsbXVlbTI5Z3Jt",["ZC1yZW5kZXJlciNxZXgwY2s0MTJyZ215dGQtcmljaC1ncmk="],null],[null,["ZC1yZW5kZXJlciMzYTFjbnluYWh0cjV5dGQtcmljaC1ncmk=","dHlsZS1zY29wZSNpOWpxb3BveGw5N2Zz"],null],[null,["by1yZW5kZXJlciN2cWE0dnlrY2dndzl5dGQtYmFubmVyLXByb20=","dHlsZS1zY29wZSNydnU2aGdja2VybTRz"],null],[null,["dC1yZW5kZXJlciN5Zno3MjhvMTR6MGp5dGQtYWQtc2xv"],
null]],[["cGxheWVyLWFkcyN4cXprdWt1ejBnY3Q=",null,null]],[[null,null,"YS1yZW5kZXJlciNwbjJ3MHh1a2Nqcmd5dGxyLWJhbm5lci1jdA=="]]];yXs="#";uyU=[];rXS=!1;_.ZzU=["engagement-panel-ads"];dag=new _.z_("updateSentimentBarStateCommand");_.s_J=new _.z_("showSurveyCommand");_.da=new _.z_("changeMarkersVisibilityCommand");var MdN,qvS,GXr,OzJ,Q_F,sL;_.lvX=function(k,E){this.playerProvider_=k;this.actionSenderElement_=E;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.lvX.prototype.reset=function(){MdN(this);this.isUserPredictedAbsent_=!1};
MdN=function(k,E){!k.youThereData_||k.showWarningJob_||E!==void 0&&E||(_.rx("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Fe(),k.youThereData_,k.clientPlaybackNonce_),_.vv());_.ZJ.cancelJob(k.showWarningJob_);k.showWarningJob_=0;_.ZJ.cancelJob(k.showBlockingWarningJob_);k.showBlockingWarningJob_=0;_.ZJ.cancelJob(k.pausePlaybackJob_);k.pausePlaybackJob_=0;k.youThereData_=null;k.clientPlaybackNonce_=void 0;k.inYouThereFlow_=!1};
_.zMJ=function(k,E){var S,R,V;_.c(function(N){if(N.nextAddress==1)return k.reset(),N.yield(k.playerProvider_().getPlayerPromise(),2);S=N.yieldResult;k.clientPlaybackNonce_=S.getVideoData().cpn;k.youThereData_=E.configData.youThereData;if(!k.youThereData_)return N.return();if(k.youThereData_.triggerReason&&k.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.rgI())return _.rx("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Fe(),k.youThereData_,k.clientPlaybackNonce_),N.return();R=k.youThereData_.promptDelaySec;
V=S.getCurrentTime();k.showWarningJob_=_.ZJ.addLowPriorityJob(function(){return _.c(function(h){k.showWarningJob_=0;return h.yield(qvS(k),0)})},Math.max(R-V,0)*1E3);
_.KR(N)})};
qvS=function(k){var E,S,R,V,N,h;return _.c(function(J){if(J.nextAddress==1)return J.yield(k.playerProvider_().getPlayerPromise(),2);if(J.nextAddress!=3)return E=J.yieldResult,S=E.getCurrentTime(),J.yield(Q_F(k),3);R=J.yieldResult;if(!R||!k.youThereData_)return J.return();if(_.Y("check_user_lact_at_prompt_shown_time_on_web")&&(V=parseInt(k.youThereData_.lactThresholdMs,10),_.mE()<V))return _.rx("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Fe(),k.youThereData_,k.clientPlaybackNonce_),J.return();if(k.youThereData_.playbackPauseDelayMs<=
0)return OzJ(k),J.return();!_.Y("external_fullscreen")&&(N=_.ZZ())&&(k.ignoreFullscreenExitUserActivity_=!0,_.ZJ.addLowPriorityJob(function(){k.ignoreFullscreenExitUserActivity_=!1},2E3),_.dW(N));
k.youThereData_.showToastWarningPrompt&&(sL(k,k.youThereData_.showWarningActions),k.inYouThereFlow_=!0,_.rx("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Fe(),k.youThereData_,k.clientPlaybackNonce_,S),_.rx("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Fe(),k.youThereData_,k.clientPlaybackNonce_,S));h=0;k.youThereData_.blockingPromptDelayMs&&(h=k.youThereData_.blockingPromptDelayMs);k.showBlockingWarningJob_=_.ZJ.addLowPriorityJob(function(){return _.c(function(m){k.showBlockingWarningJob_=0;return m.yield(GXr(k),
0)})},h);
_.KR(J)})};
GXr=function(k){var E,S,R;return _.c(function(V){if(V.nextAddress==1)return V.yield(Q_F(k),2);E=V.yieldResult;if(!k.youThereData_)return V.return();E&&(k.youThereData_.showBlockingWarningAction&&(_.rx("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Fe(),k.youThereData_,k.clientPlaybackNonce_),(S=_.W(k.youThereData_.showBlockingWarningAction,_.CI))?sL(k,S.commands):sL(k,[k.youThereData_.showBlockingWarningAction]),k.inYouThereFlow_=!0),R=k.youThereData_.playbackPauseDelayMs,k.pausePlaybackJob_=
_.ZJ.addLowPriorityJob(function(){return _.c(function(N){k.pausePlaybackJob_=0;return N.yield(OzJ(k),0)})},R));
_.KR(V)})};
OzJ=function(k){var E;return _.c(function(S){if(S.nextAddress==1)return S.yield(Q_F(k),2);E=S.yieldResult;if(!k.youThereData_)return S.return();E&&(_.rx("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Fe(),k.youThereData_,k.clientPlaybackNonce_),sL(k,k.youThereData_.showPausedActions),k.inYouThereFlow_=!0);_.KR(S)})};
_.lvX.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var k=_.W(this.youThereData_.userActiveDuringFlowAction,_.CI);k?sL(this,k.commands):sL(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.rx("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Fe(),this.youThereData_,this.clientPlaybackNonce_),_.vv());MdN(this,!0)}_.CDk(this,!1)};
_.kJU=function(k){_.rx("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Fe(),k.youThereData_,k.clientPlaybackNonce_)};
Q_F=function(k){var E,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(k.playerProvider_().getPlayerPromise(),2);E=R.yieldResult;S=E.getPlayerState();return R.return(S==-1||S==1||S==3)})};
_.CDk=function(k,E){var S;_.c(function(R){if(R.nextAddress==1){if(k.isUserPredictedAbsent_==E)return R.jumpTo(0);k.isUserPredictedAbsent_=E;return R.yield(k.playerProvider_().getPlayerPromise(),3)}S=R.yieldResult;S.setUserEngagement(E);E&&_.rx("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Fe(),k.youThereData_,k.clientPlaybackNonce_);_.KR(R)})};
sL=function(k,E){if(_.Y("handle_service_request_actions")||_.Y("kevlar_youthere_service_endpoint_actions_killswitch"))_.Ot(k.actionSenderElement_,E,k.actionSenderElement_);else{E=_.n(E);for(var S=E.next();!S.done;S=E.next())S=S.value,S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.sendPost?_.Qw(k.actionSenderElement_,[S]):_.Ot(k.actionSenderElement_,[S],k.actionSenderElement_)}};var EnJ;var SpN;var lU=function(){var k=_.p.apply(this,arguments)||this;k.systemIcons=_.Y("kevlar_system_icons");k.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return k};
_.y(lU,_.p);lU.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var k=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(k=this.data.percentIfLiked||0,this.activated=!0):(k=this.data.percentIfIndifferent||0,this.activated=!1);_.Cc(this.hostElement).querySelector("#like-bar").style.width=k+"%"}};
lU.prototype.handleUpdateSentimentBarStateCommand=function(k){this.data&&this.set("data.likeStatus",_.W(k,dag).likeStatus)};
lU.prototype.observeLikeStatus=lU.prototype.observeLikeStatus;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],lU.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],lU.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],lU.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],lU.prototype,"activated",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],lU.prototype,"systemIcons",void 0);_.Z([_.il("data.likeStatus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lU.prototype,"observeLikeStatus",null);_.Z([_.D({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],lU);
_.b(lU,"ytd-sentiment-bar-renderer",function(){if(SpN!==void 0)return SpN;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return SpN=k},{mode:1});var Reo;var Ms=function(){var k=_.p.apply(this,arguments)||this;k.small=!0;return k};
_.y(Ms,_.p);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ms.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ms.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Ms.prototype,"small",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Ms);
_.b(Ms,"ytd-video-view-count-renderer",function(){if(Reo!==void 0)return Reo;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Reo=k},{mode:_.GN("kevlar_poly_si_batch_j080")?1:2});var qs=function(){var k=_.p.apply(this,arguments)||this;k.infoFormattedStrings=[];k.wrapVideoActions=_.Y("kevar_watch_wrap_video_actions");k.hideSentimentBar=_.Y("kevlar_watch_hide_sentiment_bar");k.actionMap={};return k};
_.y(qs,_.p);_.I=qs.prototype;_.I.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.Y("web_modern_buttons"),forceIconButton:!_.Y("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.I.dataChanged=function(){_.Y("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.I.computeInfoFormattedStrings=function(k){if(!k)return[];var E=[];k.dateText&&E.push(k.dateText);k.stationName&&E.push(k.stationName);k.rating&&E.push(k.rating);k.startEndTimeTemplate&&k.startTimeUtcMillis&&k.endTimeUtcMillis&&E.push(_.DE(_.cNB(_.$n(k.startEndTimeTemplate),Number(k.startTimeUtcMillis),Number(k.endTimeUtcMillis))));k.upNextProgramText&&E.push(k.upNextProgramText);return E};
_.I.scheduleInitialUpdatedMetadataRequest=function(){var k,E=(k=this.data)==null?void 0:k.updatedMetadataEndpoint;if(E){var S;k=Number((S=_.W(E,_.yUY))==null?void 0:S.initialDelayMs);S=isNaN(k)?250:k;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),S)}};
_.I.setSentimentBarWidth=function(){var k=this;_.JB(this,function(){var E=_.Cc(k.hostElement).querySelector("ytd-menu-renderer");if(E){E=E.topLevelButtons;for(var S=0,R=0;R<E.length;R++){var V=E[R],N=k.get("toggleButtonSupportedData.toggleButtonIdData.id",V.data);if(N==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||N==="TOGGLE_BUTTON_ID_TYPE_LIKE")S+=V.clientWidth+8;else break}S&&(k.sentiment.style.width=S-8+" px")}})};
_.I.fetchUpdatedMetadata=function(k){var E;k&&(E={continuation:k});var S;(k=(S=this.data)==null?void 0:S.updatedMetadataEndpoint)&&_.en().resolve(_.t3).resolveCommand(k,{form:Object.assign({},E,{element:this.hostElement})})};
_.I.onYtServiceRequestSent=function(k,E){E.endpoint&&_.W(E.endpoint,_.yx)&&(this.hasUpdateSentimentBarStateCommands()&&!_.Y("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.W(E.endpoint,_.yx).status),this.setSentimentBarWidth())};
_.I.hasUpdateSentimentBarStateCommands=function(){var k,E,S,R,V=(R=(k=this.data)==null?void 0:(E=k.videoActions)==null?void 0:(S=E.menuRenderer)==null?void 0:S.topLevelButtons)!=null?R:[];k=_.n(V);for(E=k.next();!E.done;E=k.next()){E=E.value;V=R=S=void 0;var N=(S=E.toggleButtonRenderer)==null?void 0:(R=S.toggleButtonSupportedData)==null?void 0:(V=R.toggleButtonIdData)==null?void 0:V.id;if(N==="TOGGLE_BUTTON_ID_TYPE_LIKE"||N==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){R=S=void 0;E=(R=_.W((S=E.toggleButtonRenderer)==
null?void 0:S.defaultServiceEndpoint,_.CI))==null?void 0:R.commands;if(!E)break;E=_.n(E);for(S=E.next();!S.done;S=E.next())if(_.W(S.value,dag))return!0}}return!1};
_.I.onYtServiceRequestCompleted=function(k,E){var S;(k=(S=E.data)==null?void 0:S.loggingDirectives)&&_.r8l(_.JV(),k);this.get("continuation.timedContinuationData",E.data)&&this.data&&this.data.updatedMetadataEndpoint&&(E=E.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,E.continuation),E.timeoutMs))};
_.I.computeHasDateText=function(k){return!!k&&!!k.dateText};
_.mt.Object.defineProperties(qs.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R;return!((R=(k=this.data)==null?void 0:(E=k.videoActions)==null?void 0:(S=E.menuRenderer)==null?void 0:S.flexibleItems)==null||!R.length)}}});
qs.prototype.onYtServiceRequestCompleted=qs.prototype.onYtServiceRequestCompleted;qs.prototype.onYtServiceRequestSent=qs.prototype.onYtServiceRequestSent;qs.prototype.dataChanged=qs.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],qs.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Jr.YtTaskEmitterBehavior),_.l("design:type",Object)],qs.prototype,"ytTaskEmitterBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],qs.prototype,"data",void 0);_.Z([_.H({computed:"computeInfoFormattedStrings(data)"}),_.l("design:type",Array)],qs.prototype,"infoFormattedStrings",void 0);
_.Z([_.H({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],qs.prototype,"hasDateText",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qs.prototype,"wrapVideoActions",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qs.prototype,"hideSentimentBar",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],qs.prototype,"flexMenuEnabled",null);
_.Z([_.JO("#sentiment"),_.l("design:type",Object)],qs.prototype,"sentiment",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qs.prototype,"dataChanged",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],qs.prototype,"onYtServiceRequestSent",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],qs.prototype,"onYtServiceRequestCompleted",null);
_.b(qs,"ytd-video-primary-info-renderer",function(){if(EnJ===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);EnJ=k}k=EnJ;return k},{mode:1});var ViB;var zw=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return k};
_.y(zw,_.p);_.I=zw.prototype;_.I.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"}}}};
_.I.dataChanged=function(){var k;this.descriptionToggled=!((k=this.data)==null||!k.defaultExpanded);var E;this.collapsed=this.descriptionAlwaysCollapsed||!((E=this.data)==null?0:E.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.kh(110509);this.showLessClientVe=_.kh(110510);k=_.Fe();E=_.Wi();k&&E&&_.uD(k,E,[this.showMoreClientVe,this.showLessClientVe])};
_.I.onYtExpanderMoreTapped=function(){var k,E=(k=this.data)==null?void 0:k.showMoreCommand;E&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(E);(k=_.Fe())&&this.showMoreClientVe&&_.Dv(k,this.showMoreClientVe)};
_.I.onYtExpanderLessTapped=function(){var k=_.Fe();k&&this.showLessClientVe&&_.Dv(k,this.showLessClientVe);var E;(k=(E=this.data)==null?void 0:E.showLessCommand)&&this.componentBehavior.resolveCommand(k)};
_.I.handleUpdateDateTextAction=function(k){this.data&&this.data.dateText&&this.set("data.dateText",_.W(k,_.bVU).dateText)};
_.I.handleUpdateDescriptionAction=function(k){if(k=_.W(k,_.BwC))k.isEmpty||!k.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.y_(k.description)):this.set("data.description",k.description)};
_.I.onYtChangeEngagementPanelVisibilityAction=function(k){if(_.Y("web_structured_description_show_more")||_.Y("web_engagement_panel_open_description")){var E,S=(E=_.W(k,_.Bh8))==null?void 0:E.targetId,R;k=((R=_.W(k,_.Bh8))==null?void 0:R.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";S==="engagement-panel-structured-description"&&k&&(this.descriptionToggled=!0)}};
_.I.updateCollapsedFromBinding=function(k){this.collapsed=k.detail.value};
_.I.updateDescriptionToggledFromBinding=function(k){this.descriptionToggled=k.detail.value};
_.I.updateCanCollapseFromBinding=function(k){this.canCollapse=k.detail.value};
_.mt.Object.defineProperties(zw.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(k=this.data)==null?void 0:(E=k.metadataRowContainer)==null?void 0:E.metadataRowContainerRenderer;return!!S&&!!S.rows&&S.rows.length>S.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.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}}});
zw.prototype.onYtExpanderLessTapped=zw.prototype.onYtExpanderLessTapped;zw.prototype.onYtExpanderMoreTapped=zw.prototype.onYtExpanderMoreTapped;zw.prototype.dataChanged=zw.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],zw.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],zw.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],zw.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],zw.prototype,"collapsed",void 0);_.Z([_.H(),_.l("design:type",Boolean)],zw.prototype,"descriptionToggled",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],zw.prototype,"canCollapse",void 0);_.Z([_.H(),_.l("design:type",Object)],zw.prototype,"subscribeButtonData",void 0);_.Z([_.H(),_.l("design:type",Number)],zw.prototype,"descriptionCollapsedHeight",void 0);_.Z([_.H(),_.l("design:type",Object)],zw.prototype,"structuredDescriptionContentRenderer",void 0);_.Z([_.H({value:function(){return _.Y("web_watch_description_always_collapsed")}}),
_.l("design:type",Boolean)],zw.prototype,"descriptionAlwaysCollapsed",void 0);_.Z([_.JO("#description"),_.l("design:type",HTMLDivElement)],zw.prototype,"description",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zw.prototype,"dataChanged",null);_.Z([_.nv("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zw.prototype,"onYtExpanderMoreTapped",null);
_.Z([_.nv("yt-expander-less-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zw.prototype,"onYtExpanderLessTapped",null);_.Z([_.U("data.metadataRowContainer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zw.prototype,"metadataCollapsible",null);_.Z([_.U("data","structuredDescriptionContentRenderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zw.prototype,"hasInlineStructuredDescription",null);
_.Z([_.U("data.attributedDescription"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zw.prototype,"hasAttributedDescription",null);_.Z([_.U("hasInlineStructuredDescription","collapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zw.prototype,"loadStructuredDescription",null);_.Z([_.U("data","structuredDescriptionContentRenderer","collapsed"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zw.prototype,"showInlineStructuredDescription",null);
_.Z([_.U("data","hasInlineStructuredDescription","metadataCollapsible"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],zw.prototype,"descriptionAlwaysCollapsible",null);
_.b(zw,"ytd-video-secondary-info-renderer",function(){if(ViB===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);ViB=k}k=ViB;return k},{mode:2});var N8U;var Qz=function(){return _.p.apply(this,arguments)||this};
_.y(Qz,_.p);Qz.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:_.Y("web_modern_buttons"),forceIconButton:!_.Y("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Qz.prototype.activate=function(k){k.appendTo(this.player);k.getPlayerPromise().then(function(E){E.setMinimized(!0)});
this.active=!0};
Qz.prototype.deactivate=function(){var k=this.player.firstElementChild;k.getPlayerPromise().then(function(E){E.setMinimized(!1)});
this.active=!1;return k};
Qz.prototype.onScrollUpTap=function(){var k=_.en().resolve(_.ZD).getCurrentPage();k&&k.setScrollTop(0)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Qz.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Qz.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Qz.prototype,"active",void 0);
_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.l("design:type",Boolean)],Qz.prototype,"darkLaunch",void 0);_.Z([_.JO("#player"),_.l("design:type",HTMLDivElement)],Qz.prototype,"player",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Qz);
_.b(Qz,"ytd-miniplayer-bar-renderer",function(){if(N8U!==void 0)return N8U;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return N8U=k},{mode:1});_.qi(_.f(function(k){var E=_.VH("script");_.vX(function(){var S;if(S=JSON)S=vAN(k.data()),S=_.Rb(JSON.stringify(S).replace(/</g,"\\u003C"));var R=k.data(),V=_.$n(R.title).trim().length===0,N=!R.publishDate||R.publishDate.trim().length===0,h,J,m,a,T=!((h=R.thumbnail)==null?0:(J=h.thumbnails)==null?0:J.length)||!((m=R.thumbnail)==null?0:m.thumbnails[0].url)||((a=R.thumbnail)==null?void 0:a.thumbnails[0].url.trim().length)===0;E.value&&S&&!(V||N||T)&&_.NV(E.value,S)},"Vy9K7b");
return _.e("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.e("script",{el:E,type:"application/ld+json"}))},"Xn"),"player-microformat-renderer",{props:{data:_.sk}});
}catch(e){_._DumpException(e)}
try{
var GRS,CWJ,EAS;_.OIN=function(k){return k.watch.watchWindowSize};
GRS=function(k,E){var S=document.querySelector(k);S?E(S):setTimeout(function(){GRS(k,E)},1E3)};
CWJ=function(k,E,S,R){if(k.isLockupToWatchTransitionEnabled){if(E){var V={};V=(V["watch-next-appears"]="player-watch-next-loaded",V);V["lockup-to-watch"]=k.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";k.viewTransitionCoordinator.registerElement(E,V)}S&&(E={},k.viewTransitionCoordinator.registerElement(S,(E["lockup-to-watch"]="below-lockup-to-watch",E["watch-next-appears"]="below-watch-next-loaded",E)));R&&(S={},k.viewTransitionCoordinator.registerElement(R,
(S["watch-next-appears"]="secondary-watch-next-loaded",S)))}};
_.kXU=function(k){return _.zX({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:k}})};
EAS=new _.z_("webWatchNextResponseExtensionData");var RMB=function(k){_.r7.call(this);var E=this;this.JSC$23303_watchApi=k;this.observer=null;var S=this.JSC$23303_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SvU(E)});
this.addOnDisposeCallback(function(){E.JSC$23303_watchApi.unsubscribeByKey(S);E.observer&&(E.observer.disconnect(),E.observer=null)});
SvU(this)};
_.y(RMB,_.r7);
var SvU=function(k){var E,S,R,V;_.c(function(N){if(N.nextAddress==1){k.observer&&(k.observer.disconnect(),k.observer=null);E=k.JSC$23303_watchApi.getWatchNextResponse();if(!E)return N.return();S=_.W(E,EAS);return((R=S)==null?0:R.enableCreatorChatbot)&&S.creatorChannelId?N.yield((0,_.Vjl)("NSzT5"),3):N.jumpTo(0)}V=_.ZcU;V(S.creatorChannelId);GRS("ytd-watch-metadata",function(h){k.observer=new MutationObserver(function(){var J,m;(J=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(m=J.closest("yt-button-view-model.ytd-menu-renderer"))==null||m.remove()});
k.observer.observe(h,{childList:!0,subtree:!0})});
_.KR(N)})};var NqS=function(k){_.r7.call(this);this.JSC$23307_watchApi=k;this.isSeeking=!1;Vdg(this)};
_.y(NqS,_.r7);var Vdg=function(k){_.c(function(E){if(E.nextAddress==1)return E.yield(Ivo(k),2);nAu(k);_.KR(E)})},Ivo=function(k){var E,S,R,V,N,h;
return _.c(function(J){if(J.nextAddress==1)return J.yield(k.JSC$23307_watchApi.playerApi,2);E=J.yieldResult;k.JSC$23307_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){iz$(k)});
S=k.JSC$23307_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nAu(k)});
R=function(m){k.onCueRangeEnter(m)};
E.addEventListener("onCueRangeEnter",R);V=function(m){k.onCueRangeExit(m)};
E.addEventListener("onCueRangeExit",V);N=function(){k.isSeeking=!0};
E.addEventListener("SEEK_TO",N);h=function(){k.onSeekComplete()};
E.addEventListener("SEEK_COMPLETE",h);k.addOnDisposeCallback(function(){k.JSC$23307_watchApi.unsubscribeByKey(S);E.removeEventListener("onCueRangeEnter",R);E.removeEventListener("onCueRangeExit",V);E.removeEventListener("SEEK_TO",N);E.removeEventListener("SEEK_COMPLETE",h)});
_.KR(J)})},hMU=function(k){var E,S,R,V,N,h,J,m,a;
return(N=(E=k.contents)==null?void 0:(S=E.twoColumnWatchNextResults)==null?void 0:(R=S.results)==null?void 0:(V=R.results)==null?void 0:V.contents)==null?void 0:(h=N.find(function(T){var w,P,B;return(w=T.itemSectionRenderer)==null?void 0:(P=w.contents)==null?void 0:(B=P[0])==null?void 0:B.shoppingTimelyShelfViewModel}))==null?void 0:(J=h.itemSectionRenderer)==null?void 0:(m=J.contents)==null?void 0:(a=m[0])==null?void 0:a.shoppingTimelyShelfViewModel},nAu=function(k){var E;
_.c(function(S){if(S.nextAddress==1)return(E=k.JSC$23307_watchApi.getWatchNextResponse())?S.yield(iz$(k),2):S.return();k.shoppingTimelyShelfViewModel=hMU(E);JX$(k);cXS(k);_.KR(S)})},JX$=function(k){var E,S=(E=k.shoppingTimelyShelfViewModel)==null?void 0:E.offerIdToVariants;
S&&(E=S.filter(function(R){return R.key&&R.value}).map(function(R){return[R.key,
R.value]}),k.variantsMap=new Map(E))},cXS=function(k){var E,S,R,V,N,h;
_.c(function(J){if(J.nextAddress==1)return(S=(E=k.shoppingTimelyShelfViewModel)==null?void 0:E.cueRanges)?J.yield(k.JSC$23307_watchApi.playerApi,2):J.return();R=J.yieldResult;k.cueRanges=S;V=_.n(S);for(N=V.next();!N.done;N=V.next())h=N.value,h.startTime!==void 0&&h.endTime!==void 0&&h.id!==void 0&&R.addCueRange("shopping_timely_shelf"+h.id,mar(h.startTime),mar(h.endTime));_.KR(J)})},mar=function(k){return Number(k.seconds||0)+(k.nanos||0)/1E9};
NqS.prototype.onCueRangeEnter=function(k){if(k.startsWith("shopping_timely_shelf")&&(this.activeCueId=k,!this.isSeeking)){var E=k.substring(21),S,R;k=(S=this.variantsMap)==null?void 0:(R=S.get(E))==null?void 0:R.shelf;if(_.Y("web_enable_shopping_timely_shelf_client_overwrite")){var V,N,h,J,m;S=k==null?void 0:(V=k.shoppingTimelyShelfContentViewModel)==null?void 0:(N=V.button)==null?void 0:(h=N[1])==null?void 0:(J=h.buttonViewModel)==null?void 0:(m=J.onTap)==null?void 0:m.innertubeCommand;var a,T;if(S==
null?0:(a=S.menuEndpoint)==null?0:(T=a.menu)==null?0:T.menuRenderer)S.openPopupAction=S.menuEndpoint,S.openPopupAction.popup=S.openPopupAction.menu,S.openPopupAction.popup.menuPopupRenderer=S.openPopupAction.popup.menuRenderer,S.openPopupAction.popupType="DROPDOWN",delete S.menuEndpoint,delete S.openPopupAction.menu,delete S.openPopupAction.popup.menuRenderer}k&&(this.JSC$23307_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",k),_.GU.getInstance().triggerAction("yt-show-shopping-timely-shelf"))}};
NqS.prototype.onCueRangeExit=function(k){k.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||_.GU.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))};
NqS.prototype.onSeekComplete=function(){this.isSeeking=!1;if(this.activeCueId)this.onCueRangeEnter(this.activeCueId);else _.GU.getInstance().triggerAction("yt-hide-shopping-timely-shelf")};
var iz$=function(k){var E,S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return h.yield(k.JSC$23307_watchApi.playerApi,2);E=h.yieldResult;if(k.cueRanges)for(S=_.n(k.cueRanges),R=S.next();!R.done;R=S.next())V=R.value,V.id&&(N="shopping_timely_shelf"+V.id,E.removeCueRange(N));k.JSC$23307_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});_.GU.getInstance().triggerAction("yt-hide-shopping-timely-shelf");k.shoppingTimelyShelfViewModel=void 0;k.cueRanges=void 0;k.variantsMap=void 0;k.isSeeking=
!1;k.activeCueId=void 0;_.KR(h)})};var wEs=function(k){_.r7.call(this);var E=this;this.JSC$23314_watchApi=k;k=_.Hq(_.vo(),_.n3b,function(){eMk(E)});
this.addOnDisposeCallback(k);k=_.Hq(_.vo(),_.OIN,function(){eMk(E)});
this.addOnDisposeCallback(k);avU(this);tdN(this);TqU()};
_.y(wEs,_.r7);var avU=function(k){var E=function(R){_.vo().dispatch(_.nkk(R.matches))},S=window.matchMedia("(max-width: "+(999+_.JW())+"px)");
S.addListener(E);k.addOnDisposeCallback(function(){S.removeListener(E)});
E(S)},tdN=function(k){k.JSC$23314_watchApi.registerActionHandler("yt-window-resized",function(){TqU()});
k.addOnDisposeCallback(function(){k.JSC$23314_watchApi.unregisterActionHandler("yt-window-resized")})},TqU=function(){var k=_.iv();
_.vo().dispatch(_.zX({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:k.width,height:k.height}}}))},eMk=function(k){var E;
_.c(function(S){if(S.nextAddress==1)return S.yield(k.JSC$23314_watchApi.playerApi,2);E=S.yieldResult;E.setSize(NaN,NaN);_.KR(S)})};var PDU=function(k){_.r7.call(this);var E=_.en().resolve(_.Au);CWJ(E,k.getElement("PLAYER_CONTAINER"),k.getElement("BELOW_THE_PLAYER"),k.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var S=k.getElement("PLAYER_CONTAINER"),R=k.getElement("BELOW_THE_PLAYER"),V=k.getElement("SECONDARY");E.isLockupToWatchTransitionEnabled&&(S&&_.XX(E.viewTransitionCoordinator,S),R&&_.XX(E.viewTransitionCoordinator,R),V&&_.XX(E.viewTransitionCoordinator,V))})};
_.y(PDU,_.r7);_.fN=function(k){_.xL.call(this);var E=this;this.rootElement=k;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return E.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(S){E.initOrDisposeActiveModules(S)}));
this.onAttached()};
_.y(_.fN,_.xL);_.I=_.fN.prototype;_.I.getRoot=function(){return this.rootElement};
_.I.getElement=function(k){return this.rootElement.getElement(k)};
_.I.setPlayerResponse=function(k){this.playerResponse=k;this.publish("PLAYER_RESPONSE_UPDATED",k)};
_.I.getPlayerResponse=function(){return this.playerResponse};
_.I.setWatchNextResponse=function(k){this.watchNextResponse===k?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=k,this.publish("WATCH_NEXT_RESPONSE_UPDATED",k))};
_.I.getWatchNextResponse=function(){return this.watchNextResponse};
_.I.registerActionHandler=function(k,E){var S=this;if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.E2(_.GU.getInstance(),(R[k]=E,R),this.getRoot())}else this.actionHandlers.has(k)||(this.actionHandlers.set(k,[]),R={},_.E2(_.GU.getInstance(),(R[k]=function(){var V=_.sX.apply(0,arguments);return(S.actionHandlers.get(k)||[]).map(function(N){return N.apply(null,_.$e(V))})},R),this.getRoot())),this.actionHandlers.get(k).push(E)};
_.I.unregisterActionHandler=function(k){if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.S9(_.GU.getInstance(),(E[k]=!0,E),this.getRoot())}else(E=this.actionHandlers.get(k))?(E.pop(),E.length===0&&(E={},_.S9(_.GU.getInstance(),(E[k]=!0,E),this.getRoot()),this.actionHandlers.delete(k))):_.dg(new _.LC("Attempted to unregister an action handler which is not registered.",k))};
_.I.addPageDisposeJob=function(k){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.peh(this.rootElement.pageDisposeJobs,k)};
_.I.removePageDisposeJob=function(k){this.rootElement.pageDisposeJobs&&_.ZR(this.rootElement.pageDisposeJobs,k)};
_.I.dispatchEvent=function(k,E){_.Me(this.rootElement,k,E)};
_.I.provideRenderingData=function(k,E){this.rootElement.provideRenderingData(k,E)};
_.I.scrollWatchTo=function(k,E){var S;(S=this.watchScrollManager)==null||S.scrollWatchTo(k,E)};
_.I.focusOnPlayer=function(){var k=this.getElement("PLAYER");_.JB(k,function(){if(k&&k.firstElementChild){var E=k.querySelector(".html5-video-player");E&&(_.ef(_.en().resolve(_.eQ)),E.focus())}else _.dg(Error("Yo"))})};
_.I.subscribeToActiveChanged=function(k,E){E=E===void 0?!0:E;var S=_.Hq(_.vo(),_.IKJ,function(R){k(R)});
E&&k(_.IKJ(_.vo().getState()));return S};
_.I.isActive=function(){return _.IKJ(_.vo().getState())};
_.I.onAttached=function(){var k=_.Y("external_fullscreen");_.Y("use_unified_flag_accessor")&&(k=_.en().resolve(_.I_A).retriever.getFlag(_.NvC));(k||_.qg("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Bqk=function(k){return k.getRoot().is==="ytd-watch-flexy"||k.getRoot().is==="ytd-watch-grid"},vh=function(k){return k.getRoot().is==="ytd-watch-fixie"};
_.fN.prototype.initPersistentModules=function(){if(vh(this)||Bqk(this)&&_.Y("kevlar_watch_flexy_theater_manager")){var k=new _.Wtk(this);_.Wy(this,k)}k=new _.hPN(this);_.Wy(this,k);k=new _.ra(this);_.Wy(this,k);k=new _.NWo(this);_.Wy(this,k);k=new _.D4(this);_.Wy(this,k);k=new _.uU(this);_.Wy(this,k);if(vh(this)||Bqk(this)&&_.Y("kevlar_watch_flexy_playlist_manager"))k=new _.bIr(this),_.Wy(this,k);_.Y("web_thumbnail_to_watch_transition")&&(k=new PDU(this),_.Wy(this,k))};
_.fN.prototype.initOrDisposeActiveModules=function(k){k?(this.watchScrollManager=new _.$M(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.ouJ(this)),_.Y("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new NqS(this)),this.activeModules.push(new _.yw$(this)),vh(this)&&this.activeModules.push(new wEs(this)),this.activeModules.push(new _.qtB(this)),this.activeModules.push(new _.wiJ(this)),(vh(this)||_.Y("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.HZo(this)),this.activeModules.push(new _.piU(this)),(vh(this)||_.Y("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Qro(this)),(vh(this)||_.Y("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.D6u(this)),_.Y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.ZfX(this),this.activeModules.push(this.watchCinematicManager)),_.Y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.xek(this)),_.Y("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.nuF(this)),k=_.Y("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.Y("kevlar_watch_flexy_comments_manager")&&!k&&this.activeModules.push(new _.kR$(this)),_.Y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.v6$(this)),this.activeModules.push(new _.Ktu(this)),this.activeModules.push(new _.guS(this)),_.Y("web_enable_timely_actions")&&this.activeModules.push(new _.unr(this)),_.Y("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.SJU(this)),_.Y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.M9B(this)),_.Y("web_fullscreen_components")&&this.activeModules.push(new _.rwS(this)),_.Y("web_player_rtr_ctrls")&&this.activeModules.push(new _.VXJ(this)),_.Y("enable_creator_chatbot")&&this.activeModules.push(new RMB(this))):(_.hP(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.fN.prototype.disposeInternal=function(){_.xL.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.mt.Object.defineProperties(_.fN.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var lxN,VT,MIu,qAg,QtB,OPJ,zYJ,GGu;lxN=function(){var k=_.hX();k.info||(k.info={});return k.info};
VT=function(k){return Math.round(_.a_()+k)};
MIu=function(){var k;if(_.Y("csi_use_performance_navigation_timing")){var E,S,R,V=_.ed==null?void 0:(k=_.ed.getEntriesByType)==null?void 0:(E=k.call(_.ed,"navigation"))==null?void 0:(S=E[0])==null?void 0:(R=S.toJSON)==null?void 0:R.call(S);V?(V.requestStart=VT(V.requestStart),V.responseEnd=VT(V.responseEnd),V.redirectStart=VT(V.redirectStart),V.redirectEnd=VT(V.redirectEnd),V.domainLookupEnd=VT(V.domainLookupEnd),V.connectStart=VT(V.connectStart),V.connectEnd=VT(V.connectEnd),V.responseStart=VT(V.responseStart),
V.secureConnectionStart=VT(V.secureConnectionStart),V.domainLookupStart=VT(V.domainLookupStart),V.isPerformanceNavigationTiming=!0,k=V):k=_.ed.timing}else k=_.Y("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.ed.timing)):_.ed.timing;return k};
qAg=function(){if(_.ed.getEntriesByType){var k=_.ed.getEntriesByType("paint");if(k=_.jh(k,function(S){return S.name==="first-paint"}))return VT(k.startTime)}var E;
_.Y("csi_use_performance_navigation_timing")?E=_.ed.getEntriesByType("first-paint")[0].startTime:E=_.ed.timing.msFirstPaint;return E?Math.max(0,E):0};
QtB=function(){var k=window.location.protocol,E=_.ed.getEntriesByType("resource");E=_.lb(E,function(S){return S.name.indexOf(k+"//fonts.gstatic.com/s/")===0});
(E=zYJ(E,function(S,R){return R.duration>S.duration?R:S}))&&E.startTime>0&&E.responseEnd>0&&(_.tX("wffs",VT(E.startTime)),_.tX("wffe",VT(E.responseEnd)))};
OPJ=function(k,E){k=document.querySelector(k);if(!k)return!1;var S="",R=k.nodeName;R==="SCRIPT"?(S=k.src,S||(S=k.getAttribute("data-timing-href"))&&(S=window.location.protocol+S)):R==="LINK"&&(S=k.href);_.ke(document)&&k.setAttribute("nonce",_.ke(document));return S?(k=_.ed.getEntriesByName(S))&&k[0]&&(k=k[0],S=_.a_(),_.tX("rsf_"+E,S+Math.round(k.fetchStart)),_.tX("rse_"+E,S+Math.round(k.responseEnd)),k.transferSize!==void 0&&k.transferSize===0)?!0:!1:!1};
_.Car=function(k,E){_.Ga(function(){_.cE("").info.actionType=k;E&&_.l$("TIMING_AFT_KEYS",E);_.l$("TIMING_ACTION",k);var S=_.LWb(_.Mg("TIMING_INFO",{}));Object.keys(S).length>0&&_.TX(S);S={isNavigation:!0,actionType:_.FWe(_.Mg("TIMING_ACTION"))};var R=_.Mg("PREVIOUS_ACTION");R&&(S.previousAction=_.FWe(R));if(R=_.Mg("CLIENT_PROTOCOL"))S.httpProtocol=R;if(R=_.Mg("CLIENT_TRANSPORT"))S.transportProtocol=R;(R=_.Fe())&&R!=="UNDEFINED_CSN"&&(S.clientScreenNonce=R);R=_.xz1();if(R===1||R===-1)S.isVisible=!0;
R=_.arC().loadType==="cold";var V=lxN();R||(R=V.yt_lt==="cold");if(R){S.loadType="cold";R=lxN();V=MIu();var N=_.a_(),h=_.Mg("CSI_START_TIMESTAMP_MILLIS",0);h>0&&!_.Y("embeds_web_enable_csi_start_override_killswitch")&&(N=h);N&&(_.tX("srt",V.responseStart),R.prerender!==1&&_.UzC(N));R=qAg();R>0&&_.tX("fpt",R);R=MIu();R.isPerformanceNavigationTiming&&_.TX({performanceNavigationTiming:!0},void 0);_.tX("nreqs",R.requestStart,void 0);_.tX("nress",R.responseStart,void 0);_.tX("nrese",R.responseEnd,void 0);
R.redirectEnd-R.redirectStart>0&&(_.tX("nrs",R.redirectStart,void 0),_.tX("nre",R.redirectEnd,void 0));R.domainLookupEnd-R.domainLookupStart>0&&(_.tX("ndnss",R.domainLookupStart,void 0),_.tX("ndnse",R.domainLookupEnd,void 0));R.connectEnd-R.connectStart>0&&(_.tX("ntcps",R.connectStart,void 0),_.tX("ntcpe",R.connectEnd,void 0));R.secureConnectionStart>=_.a_()&&R.connectEnd-R.secureConnectionStart>0&&(_.tX("nstcps",R.secureConnectionStart,void 0),_.tX("ntcpe",R.connectEnd,void 0));_.ed&&"getEntriesByType"in
_.ed&&QtB();R=[];if(document.querySelector&&_.ed&&_.ed.getEntriesByName)for(var J in GGu)GGu.hasOwnProperty(J)&&(V=GGu[J],OPJ(J,V)&&R.push(V));if(R.length>0)for(S.resourceInfo=[],J=_.n(R),R=J.next();!R.done;R=J.next())S.resourceInfo.push({resourceCache:R.value})}_.TX(S);S=_.JX();S.preLoggedGelInfos||(S.preLoggedGelInfos=[]);J=S.preLoggedGelInfos;S=_.TZt();R=void 0;for(V=0;V<J.length;V++)if(N=J[V],N.loadType){R=N.loadType;break}if(_.arC().loadType==="cold"&&(S.loadType==="cold"||R==="cold")){R=_.t_m();
V=_.JX();V=V.gelTicks?V.gelTicks:V.gelTicks={};for(var m in R)if(!(m in V))if(typeof R[m]==="number")_.tX(m,_.wq(m));else if(_.Y("log_repeated_ytcsi_ticks"))for(N=_.n(R[m]),h=N.next();!h.done;h=N.next())h=h.value,_.tX(m.slice(1),h);m={};R=!1;J=_.n(J);for(V=J.next();!V.done;V=J.next())R=V.value,_.gW(S,R),_.gW(m,R),R=!0;R&&_.TX(m)}_.fr1(!0);m=_.Mg("TIMING_ACTION");_.CV("ytglobal.timingready_")&&m&&_.zKI()&&_.$zb()&&_.rth()})()};
zYJ=function(k,E){return Array.prototype.reduce.call(k,E,{duration:0})};
GGu={'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 kBo={};kBo.YtVisibilityRootBehavior=[_.YM4.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.nu(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Mg("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var k=_.Mg("INNERTUBE_CLIENT_NAME")!=="WEB";_.Y("kevlar_use_vimio_behavior")&&k&&_.BQ5()}}];_.NR={};_.NR.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(k){k.detail.contextProvider=this;k.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
kBo.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.LU();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(k){var E=this;this.pageCount+=1;_.Y("kevlar_use_vimio_behavior")&&(_.Mg("INNERTUBE_CLIENT_NAME")==="WEB"?_.ZJ.addJob(function(){E.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(k)},
loadPage_:function(k){this.data=k},
ytPageBehaviorActiveObserver_:function(k){var E=this;_.Y("kevlar_use_vimio_behavior")&&(k?_.Mg("INNERTUBE_CLIENT_NAME")==="WEB"?_.ZJ.addJob(function(){E.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(k){if(!this.setScrollTopJobId_){var E=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){E.setScrollTopJobId_=0;var S=_.en().resolve(_.mz(_.eQ));S&&_.ef(S);this.getPageScrollingElement().scrollTop=k}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Y$(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var stu;var R5=function(){var k=_.p.apply(this,arguments)||this;k.playerListenerConfig=null;k.actionMap={"yt-show-watch-page-survey":"openSurvey"};return k};
_.y(R5,_.p);_.I=R5.prototype;_.I.dataChanged=function(){var k=this,E=_.s3();E&&E.getPlayerPromise().then(function(R){k.maybeRemovePlayerListeners(R)});
var S=this.data&&this.data.survey;S&&((S=(S=S.singleOptionSurveyRenderer||S.checkboxSurveyRenderer||S.multiStageSurveyRenderer)&&S.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(E,S):this.openSurvey())};
_.I.triggerWatchPageSurvey=function(k,E){var S=this,R,V,N,h,J,m,a,T,w;return _.c(function(P){if(P.nextAddress==1)return k?P.yield(k.getPlayerPromise(),2):P.return();S.player=P.yieldResult;if(!S.player)return P.return();R={};V=_.n(E);for(N=V.next();!N.done;N=V.next())h=N.value,J=_.n(S.createEventListenerPair(h)),m=J.next().value,a=J.next().value,T=m,w=a,T&&w&&(R[T]=w,S.ytPlayerListenerBehavior.listenToPlayerEvent(S.player,T,w));S.playerListenerConfig=R;_.KR(P)})};
_.I.createEventListenerPair=function(k){var E=k.playbackEventTrigger;return E?this.handlePlaybackTrigger(E):(k=k.watchTimeTrigger)?this.handleWatchTimeTrigger(k):[void 0,void 0]};
_.I.handleWatchTimeTrigger=function(k){var E=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var S=k.videoWatchFraction,R=k.watchTimeSec;return R&&S?["onVideoProgress",function(){E.player&&E.isWatchTimeConditionMet(E.player,S,R)&&E.showSurvey()}]:[void 0,
void 0]};
_.I.isWatchTimeConditionMet=function(k,E,S){var R=k.getProgressState(),V=R.current-this.lastKnownPlaybackPosition;V<5&&(this.accumulatedMediaTime+=V);this.lastKnownPlaybackPosition=R.current;R=Math.round(this.accumulatedMediaTime/R.duration*1E3)/1E3;return k.getPresentingPlayerType&&k.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>S||R>E)};
_.I.handlePlaybackTrigger=function(k){var E=this;k=k.playbackEvent;if(k==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var S="onStateChange";var R=function(V){V===0&&E.showSurvey()}}else k==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(S="onVideoProgress",R=function(V){E.player&&E.player.getPresentingPlayerType&&E.player.getPresentingPlayerType()===1&&V&&E.showSurvey()}):k==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(S="onAdEnd",R=this.showSurvey);
return[S,R]};
_.I.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.I.openSurvey=function(){var k=this,E=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.F5R(!!E));_.ZJ.addJob(function(){k.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:E}})},0,0)};
_.I.maybeRemovePlayerListeners=function(k){if(this.playerListenerConfig){for(var E=_.n(Object.keys(this.playerListenerConfig)),S=E.next();!S.done;S=E.next())S=S.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(k,S,this.playerListenerConfig[S]);this.playerListenerConfig=null}};
R5.prototype.dataChanged=R5.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],R5.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],R5.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],R5.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],R5.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],R5.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],R5.prototype,"playerListenerConfig",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],R5.prototype,"lastKnownPlaybackPosition",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],R5.prototype,"accumulatedMediaTime",void 0);_.Z([_.H(),_.l("design:type",Object)],R5.prototype,"player",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],R5.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],R5);
_.b(R5,"ytd-survey-trigger-renderer",function(){if(stu!==void 0)return stu;var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return stu=k},{mode:1});
}catch(e){_._DumpException(e)}
try{
var buN=new _.z_("promotedSparklesWebRenderer");var Zug=new _.z_("relatedChipCommand");var dTu;var sXX;var A8=function(){return _.p.apply(this,arguments)||this};
_.y(A8,_.p);A8.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],A8.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],A8);
_.b(A8,"ytd-compact-tvfilm-entry-point-renderer",function(){if(sXX!==void 0)return sXX;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return sXX=k},{mode:1});var l7k;var Mos;var qar;var rL=function(){return _.p.apply(this,arguments)||this};
_.y(rL,_.p);rL.prototype.ready=function(){this.initializeDefs()};
rL.prototype.initializeDefs=function(){var k=this.meta.byKey("yt-icons"),E=_.Cc(k).querySelector("#star"),S=_.Cc(k).querySelector("#star_half");k=_.Cc(k).querySelector("#star_border");E&&this.defs.appendChild(E.cloneNode(!0));S&&this.defs.appendChild(S.cloneNode(!0));k&&this.defs.appendChild(k.cloneNode(!0))};
rL.prototype.percentChanged=function(){for(var k=this.rating;k.firstChild;)k.removeChild(k.firstChild);var E=Math.round(this.percent/10);k=Math.floor(E/2);E%=2;var S=5-k-E;this.appendStars("star",k,0);this.appendStars("star_half",E,k);this.appendStars("star_border",S,k+E)};
rL.prototype.appendStars=function(k,E,S){for(var R=0;R<E;R++){var V=(18+this.spacing)*(R+S),N=document.createElementNS("http://www.w3.org/2000/svg","use");_.HZ3(N,"#"+k);N.setAttribute("x",""+V);N.setAttribute("y","0");this.rating.appendChild(N)}};
rL.prototype.percentChanged=rL.prototype.percentChanged;_.Z([_.JO("#defs"),_.l("design:type",HTMLElement)],rL.prototype,"defs",void 0);_.Z([_.JO("#rating"),_.l("design:type",HTMLElement)],rL.prototype,"rating",void 0);_.Z([_.H(),_.l("design:type",Number)],rL.prototype,"percent",void 0);_.Z([_.H({value:6}),_.l("design:type",Number)],rL.prototype,"spacing",void 0);_.Z([_.H({value:_.Yx.create("iron-meta",{type:"iconset"})}),_.l("design:type",_.XY)],rL.prototype,"meta",void 0);
_.Z([_.il("percent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rL.prototype,"percentChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-ratings"})],rL);
_.b(rL,"ytd-ratings",function(){if(qar!==void 0)return qar;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return qar=k},{mode:1});var z2s=function(){return _.p.apply(this,arguments)||this};
_.y(z2s,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],z2s.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],z2s.prototype,"data",void 0);_.Z([_.D({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],z2s);
_.b(z2s,"ytd-offer-review-renderer",function(){if(Mos!==void 0)return Mos;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Mos=k},{mode:1});var uV=function(){var k=_.p.apply(this,arguments)||this;k.badges=[{textBadge:{label:_.DE("CC")}}];return k};
_.y(uV,_.p);_.I=uV.prototype;_.I.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.I.dataChanged=function(){var k=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(k&&k.commandMetadata&&_.W(k.commandMetadata,_.gZ)&&_.W(k.commandMetadata,_.gZ).fireAutomatically)_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}});else{var E;k&&((E=_.W(k,_.gZ))==null?0:E.fireAutomatically)&&_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}})}};
_.I.isEmptyContent=function(k){return this.isStorefrontEntryPointEmpty(k)&&this.shouldHideOfferModule(k)};
_.I.isStorefrontEntryPointEmpty=function(k){return!k||!k.storefrontEntryPoint};
_.I.shouldHideOfferModule=function(k){return!!k.hideVideoDetails};
_.I.isOfferModuleNavigationInactive=function(k){return!k.navigationEndpoint&&!k.serviceEndpoint};
_.I.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.en().resolve(_.t3).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
uV.prototype.dataChanged=uV.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],uV.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.l("design:type",Boolean)],uV.prototype,"hidden",void 0);
_.Z([_.H(),_.l("design:type",Object)],uV.prototype,"badges",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uV.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],uV);
_.b(uV,"ytd-movie-offer-module-renderer",function(){if(l7k!==void 0)return l7k;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return l7k=k},{mode:1});var QX$;var Ouk=function(){return _.p.apply(this,arguments)||this};
_.y(Ouk,_.p);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ouk.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ouk.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Ouk);
_.b(Ouk,"ytd-media-masthead-renderer",function(){if(QX$!==void 0)return QX$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return QX$=k},{mode:1});var Gxg;_.qi(_.zTd,"course-metadata-view-model",{props:{data:_.sk,isOverlay:_.sk}});var xw=function(){var k=_.p.apply(this,arguments)||this;k.isMetadataVisible=!1;k.modernPanels=_.Y("kevlar_watch_modern_panels");k.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return k};
_.y(xw,_.p);_.I=xw.prototype;
_.I.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"}}}}};
_.I.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.I.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.I.expanderChanged=function(){var k;if((k=this.data)==null?0:k.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.I.isExpandButtonToggled=function(){var k,E;return(E=_.W((k=this.data)==null?void 0:k.expandMetadataButton,_.QK))==null?void 0:E.isToggled};
_.I.onVisibilityButtonClick=function(){var k;if((k=this.data)==null?0:k.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.I.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
xw.prototype.expanderChanged=xw.prototype.expanderChanged;xw.prototype.dataChanged=xw.prototype.dataChanged;xw.prototype.descriptionChanged=xw.prototype.descriptionChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g([_.H5.YtActionHandlerBehavior]),_.l("design:type",Object)],xw.prototype,"actionHandlerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],xw.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],xw.prototype,"isMetadataVisible",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],xw.prototype,"modernPanels",void 0);_.Z([_.JO("#expander"),_.l("design:type",Object)],xw.prototype,"expander",void 0);_.Z([_.il("data.description"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xw.prototype,"descriptionChanged",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xw.prototype,"dataChanged",null);_.Z([_.il("isMetadataVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xw.prototype,"expanderChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],xw);
_.b(xw,"ytd-tvfilm-offer-module-renderer",function(){if(Gxg!==void 0)return Gxg;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Gxg=k},{mode:2});var Cku;var L8=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return k};
_.y(L8,_.p);L8.prototype.dataChanged=function(){this.hostElement.hidden=!1};
L8.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
L8.prototype.onThumbnailTap=function(k){this.data&&this.data.serviceEndpoint&&(_.en().resolve(_.t3).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),k.stopPropagation())};
L8.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
L8.prototype.dataChanged=L8.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],L8.prototype,"rendererBehaviors",void 0);_.Z([_.g([_.H5.YtActionHandlerBehavior]),_.l("design:type",Object)],L8.prototype,"actionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],L8.prototype,"data",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],L8.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],L8);
_.b(L8,"ytd-unlimited-offer-module-renderer",function(){if(Cku!==void 0)return Cku;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Cku=k},{mode:1});var kLS;var EOo;var jc=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return k};
_.y(jc,_.p);jc.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
jc.prototype.handleRelatedChipCommand=function(k){k=_.W(k,Zug);var E=k.contents;E?_.zR(this.hostElement,"yt-item-section-replace-action",[E,k.targetSectionIdentifier]):_.zR(this.hostElement,"yt-item-section-continuation-action",[k.continuationData,k.targetSectionIdentifier])};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],jc.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],jc.prototype,"actionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],jc.prototype,"data",void 0);_.Z([_.U_({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],jc);
_.b(jc,"yt-related-chip-cloud-renderer",function(){if(EOo===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;kLS===void 0&&(kLS=document.createElement("template"));var R=kLS;S.call(E,R.content.cloneNode(!0),k.content.firstChild);EOo=k}k=EOo;return k},{mode:2});var D1=function(){var k=_.p.apply(this,arguments)||this;k.isTwoColumns=!0;k.watchFeedBigThumbs=_.Y("kevlar_watch_feed_big_thumbs");k.watchFeedBigThumbsOnLockup=_.Y("web_watch_next_big_thumbs");k.watchNextGridHideChips=_.Y("kevlar_watch_grid_hide_chips");k.eligibleToSwitchToGrid=!0;k.disableShortsShelfHeightOverride=_.Y("web_shorts_wn_shelf_ratio_tuning");k.isWatchNextGrid=!1;k.reuseComponents=!_.Y("kevlar_watch_grid");k.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return k};
_.y(D1,_.p);_.I=D1.prototype;
_.I.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:!_.Y("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}}};
_.I.getItemsPath=function(){return"data.results"};
_.I.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.I.created=function(){this.ytLazyListBehavior.initialCount=1};
_.I.ready=function(){_.VO(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%"})};
_.I.resultsChanged=function(){if(this.data&&this.data.results){for(var k=this.data.results,E=null,S=null,R=0;R<k.length;R++)k[R].relatedChipCloudRenderer?E=k[R].relatedChipCloudRenderer:k[R].itemSectionRenderer&&(S=k[R].itemSectionRenderer);if(E&&S)for(this.set("data.continuations",[]),k=_.W(E.content,_.sAC).chips,E=0;E<k.length;E++)if(R=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",k[E]),R.loadCached||!R.contents){R.contents=S.contents;break}}};
_.I.dataChanged=function(){var k=this,E;if((E=this.data)!=null&&E.results&&this.hasAllowedInstreamAd(this.playerData)){if(E=this.data.results.filter(function(J){return!!J.promotedSparklesWebRenderer})){for(var S=0;S<E.length;S++){var R=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",E[S]);
if(R)for(var V=0;V<R.length;V++)R[V]&&R[V].baseUrl&&_.Cx(R[V].baseUrl)}this.set("data.results",this.data.results.filter(function(J){return!J.promotedSparklesWebRenderer}))}if(E=this.data.results.filter(function(J){return!!k.getSparklesAd(J)})){E=_.n(E);
for(V=E.next();!V.done;V=E.next())if(R=S=void 0,V=(S=this.getSparklesAd(V.value))==null?void 0:(R=S.errorCommand)==null?void 0:R.loggingUrls)for(S=_.n(V),R=S.next();!R.done;R=S.next())(R=R.value)&&R.baseUrl&&_.Cx(R.baseUrl);var N,h;this.set("data.results",(N=this.data)==null?void 0:(h=N.results)==null?void 0:h.filter(function(J){return!J.adSlotRenderer}))}}};
_.I.getSparklesAd=function(k){var E,S;k=_.W((E=k.adSlotRenderer)==null?void 0:(S=E.fulfillmentContent)==null?void 0:S.fulfilledLayout,_.wgA);return _.W(k==null?void 0:k.renderingContent,buN)};
_.I.hasAllowedInstreamAd=function(k){k=this.get("adPlacements",k)||[];for(var E=0;E<k.length;E++){var S=this.get("adPlacementRenderer.config.adPlacementConfig",k[E]);if(S&&S.suppressDisplayAd)return!0}return!1};
_.I.computeHideUnlimitedOfferModule=function(k,E){return k&&k.offerModule&&E&&k.offerModule.unlimitedOfferModuleRenderer&&k.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(E)?!0:!1};
_.I.hideUnlimitedOfferModuleChanged=function(){var k=_.Cc(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");k&&(k.hidden=this.hideUnlimitedOfferModule)};
_.I.updateLockupContainerTypes=function(k){if(this.eligibleToSwitchToGrid){var E;(E=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||E.forEach(function(S){S.containerType=k})}};
_.I.computeHideTvfilmOfferModule=function(k,E){var S,R;return!!((k==null?0:(S=k.offerModule)==null?0:(R=S.tvfilmOfferModuleRenderer)==null?0:R.clientShouldSuppressIfCompanionAdDisplayed)&&E&&this.hasCompanionAds(E))};
_.I.hideTvfilmOfferModuleChanged=function(){var k=_.Cc(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");k&&(k.hidden=this.hideTvfilmOfferModule)};
_.I.hasCompanionAds=function(k){k=this.get("adPlacements",k)||[];for(var E=0;E<k.length;E++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",k[E]))return!0;var S=void 0,R=void 0,V=void 0;if(!_.Y("web_watch_top_banner_companion_check_killswitch")&&((S=k[E])==null?0:(R=S.adPlacementRenderer)==null?0:(V=R.renderer)==null?0:V.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.I.hasSuppressedResults=function(k){return k==null?!0:k.filter(function(E){return!E.continuationItemRenderer&&!E.compactPromotedVideoRenderer&&!E.promotedSparklesWebRenderer}).length===0};
_.I.computeShowButton=function(k,E){return this.isWatchNextGrid?k:k||this.hasSuppressedResults(E)};
_.I.showButtonChanged=function(){if(this.isWatchNextGrid){var k=_.Cc(this.hostElement).querySelector("ytd-rich-grid-renderer");k&&this.showButton!==null&&(k.continuationShowButton=this.showButton)}else{k=_.Cc(this.hostElement).querySelector("yt-next-continuation");var E=_.Cc(this.hostElement).querySelector("ytd-continuation-item-renderer"),S=_.Cc(this.hostElement).querySelector("ytd-item-section-renderer");k&&(k.showButton=this.showButton);E&&(E.showButton=this.showButton);S&&(S.continuationShowButton=
this.showButton)}};
_.I.continuationTap=function(k){var E;if(((E=this.data)==null?void 0:E.continuations)!=null&&k.target.tagName==="TP-YT-PAPER-BUTTON")for(k=this.data.continuations,E=0;E<k.length;E++)k[E].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(k[E].nextContinuationData||{})};
_.I.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("shown-items-changed",this.shownItems))};
_.mt.Object.defineProperties(D1.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 k;return!((k=this.shownItems)==null||!k.some(function(E){return!!E.lockupViewModel||E.compactVideoRenderer}))}}});
D1.prototype.shownItemsChangedForBinding=D1.prototype.shownItemsChangedForBinding;D1.prototype.showButtonChanged=D1.prototype.showButtonChanged;D1.prototype.hideTvfilmOfferModuleChanged=D1.prototype.hideTvfilmOfferModuleChanged;D1.prototype.updateLockupContainerTypes=D1.prototype.updateLockupContainerTypes;D1.prototype.hideUnlimitedOfferModuleChanged=D1.prototype.hideUnlimitedOfferModuleChanged;D1.prototype.dataChanged=D1.prototype.dataChanged;D1.prototype.resultsChanged=D1.prototype.resultsChanged;
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.TF.YtLazyListBehavior),_.l("design:type",Object)],D1.prototype,"ytLazyListBehavior",void 0);_.Z([_.g(_.Nk.YtNextContinuationBehavior),_.l("design:type",Object)],D1.prototype,"ytNextContinuationBehavior",void 0);
_.Z([_.g(_.VX),_.l("design:type",Object)],D1.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],D1.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],D1.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],D1.prototype,"playerData",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],D1.prototype,"autoFill",void 0);_.Z([_.H({value:60}),_.l("design:type",Number)],D1.prototype,"targetFramerate",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],D1.prototype,"isTwoColumns",void 0);_.Z([_.H(),_.l("design:type",Object)],D1.prototype,"shownItems",void 0);_.Z([_.H({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.l("design:type",Boolean)],D1.prototype,"hideUnlimitedOfferModule",void 0);_.Z([_.H({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.l("design:type",Boolean)],D1.prototype,"hideTvfilmOfferModule",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],D1.prototype,"watchFeedBigThumbs",void 0);_.Z([_.H(),_.l("design:type",Object)],D1.prototype,"watchFeedBigThumbsOnLockup",void 0);_.Z([_.H(),_.l("design:type",Object)],D1.prototype,"watchNextGridHideChips",void 0);_.Z([_.H(),_.l("design:type",Object)],D1.prototype,"eligibleToSwitchToGrid",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],D1.prototype,"disableShortsShelfHeightOverride",void 0);
_.Z([_.H({selector:_.XS,reflectToAttribute:!0}),_.l("design:type",Object)],D1.prototype,"isGridViewEnabled",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],D1.prototype,"showMoreButton",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],D1.prototype,"isWatchNextGrid",void 0);_.Z([_.H({computed:"computeShowButton(showMoreButton, data.results)"}),_.l("design:type",Boolean)],D1.prototype,"showButton",void 0);
_.Z([_.ac("data.results.*"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D1.prototype,"resultsChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D1.prototype,"dataChanged",null);_.Z([_.il("hideUnlimitedOfferModule"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D1.prototype,"hideUnlimitedOfferModuleChanged",null);
_.Z([_.U("isGridViewEnabled","containsLockups","data"),_.H({reflectToAttribute:!0}),_.l("design:type",Number),_.l("design:paramtypes",[])],D1.prototype,"lockupContainerType",null);_.Z([_.il("lockupContainerType","data"),_.l("design:type",Function),_.l("design:paramtypes",[Number]),_.l("design:returntype")],D1.prototype,"updateLockupContainerTypes",null);
_.Z([_.il("hideTvfilmOfferModule"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D1.prototype,"hideTvfilmOfferModuleChanged",null);_.Z([_.il("showButton"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D1.prototype,"showButtonChanged",null);_.Z([_.il("shownItems"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D1.prototype,"shownItemsChangedForBinding",null);
_.Z([_.U("shownItems"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],D1.prototype,"containsLockups",null);
_.b(D1,"ytd-watch-next-secondary-results-renderer",function(){if(dTu===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);dTu=k}k=dTu;return k},{mode:1});
}catch(e){_._DumpException(e)}
try{
var u3u=new _.z_("replaceFeedContentAction");var x2X;var LTB;var jtU=function(){return _.p.apply(this,arguments)||this};
_.y(jtU,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jtU.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],jtU.prototype,"data",void 0);_.Z([_.D({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],jtU);
_.b(jtU,"ytd-sub-feed-option-renderer",function(){if(LTB!==void 0)return LTB;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return LTB=k},{mode:1});var D2U;var Q2=function(){return _.p.apply(this,arguments)||this};
_.y(Q2,_.p);Q2.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Q2.prototype,"ytRendererStamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Q2.prototype,"data",void 0);_.Z([_.D({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Q2);
_.b(Q2,"ytd-sub-feed-selector-renderer",function(){if(D2U!==void 0)return D2U;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return D2U=k},{mode:1});var Oy=function(){return _.p.apply(this,arguments)||this};
_.y(Oy,_.p);
Oy.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}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Oy.prototype,"data",void 0);_.Z([_.D({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Oy);
_.b(Oy,"ytd-browse-feed-actions-renderer",function(){if(x2X!==void 0)return x2X;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return x2X=k},{mode:1});var $2J;var fxo;var G5=function(){return _.p.apply(this,arguments)||this};
_.y(G5,_.p);G5.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],G5.prototype,"data",void 0);_.Z([_.D({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],G5);
_.b(G5,"ytd-mini-channel-renderer",function(){if(fxo!==void 0)return fxo;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return fxo=k},{mode:1});var vWF;var CB=function(){return _.p.apply(this,arguments)||this};
_.y(CB,_.p);CB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],CB.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],CB);
_.b(CB,"ytd-vertical-channel-section-renderer",function(){if(vWF!==void 0)return vWF;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return vWF=k},{mode:1});var kY=function(){return _.p.apply(this,arguments)||this};
_.y(kY,_.p);kY.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],kY.prototype,"data",void 0);_.Z([_.D({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],kY);
_.b(kY,"ytd-browse-secondary-contents-renderer",function(){if($2J!==void 0)return $2J;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return $2J=k},{mode:1});var bP$;var ES=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};k.notActive=!1;k.isConstrainedList=!1;return k};
_.y(ES,_.p);_.I=ES.prototype;
_.I.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(k){var E;return(k==null?void 0:(E=k.webComponentHint)==null?void 0:E.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}}}}};
_.I.getPath=function(k,E){var S="data.tabs.#"+E+".";k.tabs[E].tabRenderer?S+="tabRenderer.":k.tabs[E].expandableTabRenderer&&(S+="expandableTabRenderer.");return S+"content.sectionListRenderer"};
_.I.computeDisplayedContent=function(k){this.unlinkPaths("content");if(k&&k.tabs)for(var E=k.tabs.length,S=0;S<E;S++){var R=k.tabs[S].tabRenderer||k.tabs[S].expandableTabRenderer;if(R.selected&&R.content)return this.linkPaths("content",this.getPath(k,S)),R.content}return null};
_.I.computeHasSecondaryColumnData=function(k){return!!k&&!!k.secondaryContents};
_.I.onRetrieveLocation=function(k,E){E.locationRetrieved(E.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);k.stopPropagation()};
_.I.onYtServiceRequestSent=function(k,E){_.Y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(E)};
_.I.onYtServiceRequestCompleted=function(k,E){_.Y("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(E)};
_.I.onReplaceFeedContentAction=function(k){if(!_.Y("replace_feed_content_action_killswitch")&&!this.notActive){var E;(k=(E=_.W(k,u3u))==null?void 0:E.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(k)}};
_.I.handleServiceRequestActions=function(k){if(k=k.actions){k=_.n(k);for(var E=k.next();!E.done;E=k.next()){E=E.value;var S=void 0;((S=_.W(E,u3u))==null?0:S.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.W(E,u3u).items)}}};
ES.prototype.onYtServiceRequestCompleted=ES.prototype.onYtServiceRequestCompleted;ES.prototype.onYtServiceRequestSent=ES.prototype.onYtServiceRequestSent;ES.prototype.onRetrieveLocation=ES.prototype.onRetrieveLocation;_.Z([_.g(_.CX),_.l("design:type",Object)],ES.prototype,"ytdGridStateAwareBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ES.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ES.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ES.prototype,"data",void 0);_.Z([_.H({computed:"computeDisplayedContent(data)"}),_.l("design:type",Object)],ES.prototype,"content",void 0);
_.Z([_.H({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ES.prototype,"hasSecondaryColumnData",void 0);_.Z([_.H({value:function(){return window.outerHeight>1024?3:2}}),
_.l("design:type",Number)],ES.prototype,"initialCount",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],ES.prototype,"pageSubtype",void 0);_.Z([_.JO("ytd-section-list-renderer"),_.l("design:type",Object)],ES.prototype,"listRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],ES.prototype,"notActive",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ES.prototype,"isConstrainedList",void 0);
_.Z([_.H(),_.l("design:type",String)],ES.prototype,"responsiveSizing",void 0);_.Z([_.nv("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],ES.prototype,"onRetrieveLocation",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],ES.prototype,"onYtServiceRequestSent",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],ES.prototype,"onYtServiceRequestCompleted",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],ES);
_.b(ES,"ytd-two-column-browse-results-renderer",function(){if(bP$!==void 0)return bP$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return bP$=k},{mode:2});
}catch(e){_._DumpException(e)}
try{
var IEs=function(k){if((k==null?void 0:k.value)===void 0||k==null||!k.unit)return"initial";a:{switch(k.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var E="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":E="%";break a}E=void 0}return E?""+k.value+E:"initial"};_.qi(_.f(function(k){var E=k.data;k=_.n(_.yg(!1,void 0,"Ow2pwd"));var S=k.next().value,R=k.next().value;_.E2(_.GU.getInstance(),{"yt-hide-shopping-timely-shelf":function(){R(!1)},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){R(!0)})}});
var V=function(){var N;return((N=E().image)==null?void 0:N.height)||40};
k={};return _.e("yt-shopping-timely-shelf-content-view-model",{el:_.Z0(_.FX(function(){return E().rendererContext})),
class:_.SQ("ytShoppingTimelyShelfContentViewModelHost",(k.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(E().image||E().avatar||E().line1)&&S()},k)),
style:_.nU({"--shopping-timely-shelf-content-padding-top":function(){var N;return IEs((N=E().padding)==null?void 0:N.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var N;return IEs((N=E().padding)==null?void 0:N.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var N;return IEs((N=E().padding)==null?void 0:N.start)},
"--shopping-timely-shelf-content-padding-end":function(){var N;return IEs((N=E().padding)==null?void 0:N.end)},
"--yt-shopping-timely-shelf-background-color":function(){return E().backgroundColor!==void 0?_.Kc(E().backgroundColor):"initial"}})},_.e(_.t,{cond:function(){var N;
return(N=E().image)==null?void 0:N.image},
then:function(N){return _.e(_.vM,{preserveHeight:!0,preserveWidth:!0,height:V,data:N,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.e(_.cp,{data:function(){return E().avatar}},{avatarViewModel:_.dw}),_.e("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.e(_.cp,{data:function(){return E().line1}},{shoppingContentLineViewModel:function(N){return _.e(_.RM,{data:N.data})}}),_.e(_.cp,{data:function(){return E().line2}},{shoppingContentLineViewModel:function(N){return _.e(_.RM,
{data:N.data})}})),_.e("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.e(_.cp,{data:function(){var N;
return(N=E().button)!=null?N:[]}},{buttonViewModel:function(N){var h=N.data;
return _.e(_.yB,{data:h,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(J){h().onTap&&J.stopPropagation()}})}})))},"Yn"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.Nq}});_.nnF={};
_.nnF.YtdWatchBehavior=[_.O.YtRendererBehavior,_.IQ.YtPlayerListenerBehavior,_.aA.YtRendererstamperBehavior,_.H5.YtActionHandlerBehavior,_.NR.YtPageBehavior,_.UN.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 _.qg("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Y("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 _.qg("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 _.Y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Y("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 _.wO("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.wO("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 _.Y("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.Y("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.Y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Y("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.Y("enable_ai_companion")}}},
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 k={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:_.eW(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.eW(["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"||_.Y("swa_prov_panels_ks")?k.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(k.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},k.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return k},
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 k=this;this.watchController=void 0;this.pageDisposeJobs=[function(){k.showMetadataPlaceholder_()},
function(){_.Y("web_watch_dont_clear_comments")||k.clearComments_()},
function(){k.clearPlayerAds_()},
function(){k.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;_.Y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Y("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.lvX(function(){return _.db(k)},this.hostElement);
this.pageDisposeJobs.push(function(){k.youThereManager_.reset()});
_.Y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){k.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.nS;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;_.Y("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));_.Y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ic(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(k){k&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:k}),k.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(k){_.Y("kevlar_watch_flexy_theater_manager")&&(this.theater=k,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(k){!_.Y("kevlar_watch_while_v2")&&!_.Y("web_watch_pip")||k||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(k){this.active!==void 0&&(this.fullscreen=k,_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(k){this.active!==void 0&&(_.Me(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(k>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(k){this.initCsi_();this.updatePageData_(k)},
updatePageData_:function(k){var E=this;if(k)if(this.data===k){this.onPageLoadWithSameData_();var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)}else this.data=k;this.playlist&&_.BE({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.o_("nw");this.loading=!1;_.uM(_.ZJ,function(){E.initDclkstatus_();var R,V=((R=E.player)==null?void 0:R.getVideoData().cpn)||"";_.pES(function(N,h){_.pT3(N,h,V)})})},
onPageLoadWithSameData_:function(){_.Y("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 k=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!k);this.set("loadingData.playlistLoading",k&&k!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),k=this.watchNextSkeletonEl_.firstElementChild;k;)k.classList.remove("hidden"),k=k.nextElementSibling;if(_.Y("kevlar_watch_frame0_loading_state")){var E,S,R;k=(E=this.loadingData)==null?void 0:(S=E.endpoint)==null?void 0:(R=S.watchEndpoint)==null?void 0:R.videoId;var V;k&&(V="https://i.ytimg.com/vi/"+k+"/frame0.jpg");_.Cc(this.hostElement).querySelector("#player").style.backgroundImage=V?"url("+V+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var k=_.Cc(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&k&&(k.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var E,S;(S=(E=this.watchMetadata).updateSentimentBarWidth)==
null||S.call(E);var R,V;(V=(R=this.watchMetadata).resize)==null||V.call(R)}_.Y("kevlar_watch_frame0_loading_state")&&(_.Cc(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(k){var E=_.Cc(this.hostElement).querySelector(k);E?_.st(E,!1):_.dg(new _.LC("Overscroll monitor not found for component: ",k))},
removeSplitScrollMouseTrap:function(k){var E=_.Cc(this.hostElement).querySelector(k);E?_.lW(E):_.dg(new _.LC("Disposal component for  overscroll monitoring not found: ",k))},
onLoadingChanged_:function(k){k?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.Y("web_thumbnail_to_watch_transition")&&!_.grt||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.Y("web_thumbnail_to_watch_transition")&&!_.grt||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(k){var E=this;k?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ZJ.addLowPriorityJob(function(){E.onWindowResized_(_.iv(!0))})},
updateTheaterModeState_:function(k){if(!_.Y("kevlar_watch_flexy_theater_manager")){k=k||this.fullWindowMode_;if(this.theater!==void 0||k)this.theater=k;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();k&&_.JNu()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var k=this.fullBleedPlayer?_.Cc(this.hostElement).querySelector("#player-full-bleed-container"):_.Cc(this.hostElement).querySelector("#player-container-inner");var E=this.getPlayerContainer(),S=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip");E.parentElement!==k&&(S&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.db(this).appendTo(k,E))},
updateErrorScreenLocation:function(){var k=_.Cc(this.hostElement).querySelector("#error-screen"),E=this.fullBleedPlayer?_.Cc(this.hostElement).querySelector("#player-full-bleed-container"):_.Cc(this.hostElement).querySelector("#player");k.parentElement!==E&&E.appendChild(k)},
deactivateMiniplayerAndResetPlayer:function(){var k=this;return _.c(function(E){if(E.nextAddress==1)return E.yield(_.en().resolve(_.yb).deactivate(),2);k.updatePlayerLocation();_.KR(E)})},
updateCinematicsLocation:function(){var k=this.getElement("CINEMATICS");if(k){var E=this.getCinematicsLocationContainer();k.parentElement!==E&&E.appendChild(k)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.Cc(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Cc(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(k,E,S){var R=document.documentElement.hasAttribute("dark"),V=R&&_.Y("web_cinematic_theater_mode"),N=R&&_.Y("web_cinematic_fullscreen");R=!R&&this.cinematicLightTheme;return S||k&&V||E&&N||(E||k)&&R},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var k=this,E;(E=this.watchController)==null||E.setWatchNextResponse(this.data);_.Y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.en().resolve(_.z7).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,_.Y("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.ZJ.addLowPriorityJob(function(){_.zR(k.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.Y("web_watch_start_chat_in_theater_mode")){var S,R,V;if((S=this.data)==null?0:(R=S.contents)==null?0:(V=R.twoColumnWatchNextResults)==null?0:V.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var N,h;((N=this.data)==null?0:(h=N.contents)==null?0:h.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(k){var E;(E=this.watchController)==null||E.setPlayerResponse(this.playerData);k&&k.playabilityStatus&&(E=this.isVideoPlayable_(k.playabilityStatus,this.getPlayerOverlays_(this.data)),k=this.isLiveStreamOffline_(k.playabilityStatus),E&&!k||_.JB(this,function(){_.o_("pbu")}));
this.setPlayerAds_();_.zR(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(k,E){if((_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip"))&&this.playerData&&E)return this.playerData.videoDetails},
watchPageActiveChanged_:function(k){_.vo().dispatch(_.kXU(this.active));k?this.activate_():this.deactivate_()},
attached:function(){var k=this;this.watchController=new _.fN(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);_.Y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var E=_.db(this);_.Y("kevlar_disable_prepare_player")||
E.preparePlayer();_.Y("kevlar_watch_flexy_playlist_manager")||_.en().resolve(_.z7).setPlayer(E);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();E={"--ytd-watch-flexy-scrollbar-width":_.JW()+"px"};this.is==="ytd-watch-grid"&&(E["--ytd-watch-flexy-sidebar-width"]=_.OVu+"px",E["--ytd-watch-grid-horizontal-page-margins"]=_.dL+"px",E["--ytd-watch-grid-columns-top-margins"]=_.q4k+"px",E["--ytd-watch-grid-min-player-height-medium"]="360px");!_.wO("kv_pl_mx_sz_ks")&&
_.wO("kevlar_watch_max_player_width")&&(E["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Gar+"px");_.wO("kevlar_watch_flexy_metadata_height")&&(E["--ytd-watch-flexy-space-below-player"]=_.C$X+"px");this.safeUpdateStyles(E);_.Y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.wC(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return k.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Cc(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var k=_.JW(),E=_.sd+k,S=E;this.fixedPanels&&(E+=_.OVu);var R=657+k;k=1327+k;_.Cc(this.hostElement).querySelector("#two-column-query").query="(min-width: "+E+"px)";_.Cc(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(E+"px) and (max-width: ")+(k+"px)");_.Cc(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(k+"px)");
_.Cc(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+S+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var k=_.Cc(this.hostElement).querySelector("#miniplayer-bar").firstChild,E=this.squeezeback&&!_.Y("web_watch_squeezeback_player_size_killswitch");return k&&k.active||this.theater||_.Y("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||E||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.KO(NaN,NaN):_.LGF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.LGF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.nu(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var k=this;this.onWindowResized_(_.iv());_.Y("browse_skeleton_removal_on_watch_killswitch")||_.qg("IS_SHELL_LOAD")&&_.d2o();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var E=_.db(this);E.addEventListener("yt-player-updated",_.Ic(this,this.onPlayerUpdated_));E.getPlayerPromise().then(function(S){k.playerApiReady_(S)});
_.Y("kevlar_watch_flexy_playlist_manager")||(E=_.en().resolve(_.z7),_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&E.addEventListener("yt-navigate",_.Ic(this,this.onYtNavigate_)),E.setPlaylistComponent(_.Cc(this.hostElement).querySelector("#playlist")),E.addEventListener("yt-playlist-data-updated",_.Ic(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ZJ.addLowPriorityJob(function(){_.Me(k.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.db(this).removeEventListener("yt-player-updated",_.Ic(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.Y("kevlar_watch_flexy_playlist_manager")){var k=_.en().resolve(_.z7);_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&k.removeEventListener("yt-navigate",_.Ic(this,this.onYtNavigate_));
k.cancelVideoSkip();k.removeEventListener("yt-playlist-data-updated",_.Ic(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Me(this.hostElement,"yt-autonav-pause-player",!1);k=_.ZZ();_.Y("kevlar_exit_fullscreen_leaving_watch")&&k&&_.dW(k)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(k){this.player&&this.player.updateVideoData({rvs:k.rvs})},
getPageContents:function(k){return k&&k.contents&&k.contents.twoColumnWatchNextResults&&k.contents.twoColumnWatchNextResults.results&&k.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(k){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",k)},
onRetrieveLocation_:function(k,E){E.hasComments?E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):E.locationRetrieved("/related_ajax",void 0);k.stopPropagation()},
onSubscriptionChanged_:function(k,E){this.player&&(E?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Car("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Cc(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Cc(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(k){this.player=k;this.setPlayerState(k.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Y("kevlar_unified_player")||_.Y("kevlar_player_new_bootstrap_adoption"))&&_.Ui()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(k,E){E=E===void 0?!0:E;_.ZZ()&&_.Y("external_fullscreen")&&_.dW(document.documentElement);this.theaterRequested_=k;E&&_.A3("wide",k?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.qe(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Me(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(k){_.sc(k,typeof this.player),this.player&&_.sc(k,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var k;((k=this.player)==null?0:k.isFullscreen())?this.player.toggleFullscreen():_.qe(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(k,E){return this.loading?E:!!Object.keys(k).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(k){if(k){k=_.n(k);for(var E=k.next();!E.done;E=k.next())E=E.value,E.youThereRenderer&&_.zMJ(this.youThereManager_,E.youThereRenderer)}},
setPlaylistData_:function(k){return k||{}},
userEngagementConfigDataChanged_:function(k){if(k)if(k.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var E=this.youThereManager_;_.mE()<k.lowEngagementThresholdMs||_.CDk(E,!0)}else k.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.qe(this.hostElement,"yt-autonav-pause-user-engagement",[k])},
isPlayerUnavailable_:function(k,E,S){return!!k&&!this.isVideoPlayable_(k,S)&&!E},
getPlayerOverlays_:function(k){return(k==null?void 0:k.playerOverlays)||null},
isVideoPlayable_:function(k,E){if(!k)return!1;var S=k.status==="OK"||k.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",k)||this.get("errorScreen.ypcTrailerRenderer",k);k=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",k);var V;E=E==null?void 0:(V=E.playerOverlayRenderer)==null?void 0:V.gatedActionsOverlayRenderer;return!!S||!!R||!!k||!!E},
hasWatchNextResponseErrorRenderer:function(k){var E=this.getPageContents(k),S,R,V,N,h;return!(k==null?0:(S=k.contents)==null?0:(R=S.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((V=E[0])==null?0:(N=V.itemSectionRenderer)==null?0:(h=N.contents[0])==null?0:h.backgroundPromoRenderer)},
isLiveStreamOffline_:function(k){return k?k.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(k,E,S){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E),V=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];V=_.Y("web_no_skip_video_on_verification_checks")?(k==null?void 0:k.status)&&V.includes(k.status):k&&k.status==="AGE_CHECK_REQUIRED";var N=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",k);N==void 0&&(N=!0);!S||this.isVideoPlayable_(k,this.getPlayerOverlays_(E))||
R||V||!N||_.en().resolve(_.z7).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Dak()},
onPlayerFeedbackStartRequest_:function(k){_.qe(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:k}])},
onPlayerFeedbackArticleRequest_:function(k){_.qe(this.hostElement,"yt-help-dialog-requested",[k])},
onPlayerYpcContentRequest_:function(){var k,E,S,R,V,N,h,J,m=((k=this.data)==null?NaN:(E=k.contents)==null?NaN:(S=E.twoColumnWatchNextResults)==null?NaN:(R=S.secondaryResults)==null?NaN:(V=R.secondaryResults)==null?NaN:(N=V.offerModule)==null?NaN:(h=N.tvfilmOfferModuleRenderer)==null?NaN:(J=h.actionButtons)==null?NaN:J.length)-1;k=[".offerButton.buttonRenderer.",".actionButtons."+(m>=0?m:0)+".buttonRenderer."];E=_.n(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(S=E.next();!S.done;S=E.next())for(S=S.value,R=_.n(k),V=R.next();!V.done;V=R.next())if(V="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+S+V.value,V=this.get(V+"navigationEndpoint",this.data)||this.get(V+"serviceEndpoint",this.data)||this.get(V+"command",this.data)){_.Ni(V,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(k){_.Me(this.hostElement,"yt-autonav-pause-player",k)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(k){k()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(k){switch(k){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(k){switch(k){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Me(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(k)},
setPlayerState:function(k){_.vo().dispatch(_.DWY(k))},
onPlayerSubscribe_:function(k){_.qe(this.hostElement,"yt-player-subscribe",[k])},
onPlayerUnsubscribe_:function(k){_.qe(this.hostElement,"yt-player-unsubscribe",[k])},
onPlayerAdYtShowToast_:function(k){_.qe(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:k.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(k){if(k)return k},
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(k){return!_.Y("web_watch_move_summary_to_sd")&&!!k},
computeWatchMetadataRefresh:function(){return _.Y("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.Y("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var k,E,S,R;this.watchNextSecondaryResults=(k=this.data)==null?void 0:(E=k.contents)==null?void 0:(S=E.twoColumnWatchNextResults)==null?void 0:(R=S.secondaryResults)==null?void 0:R.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.Y("swatcheroo_pbs_load_grid")&&!_.Y("swatcheroo_provide_all_data_on_scheduled_job")){_.ZJ.cancelJob(this.setRichGridJobId_);var k,E,S,R,V,N,h;this.setRichGridRendererData((k=this.data)==null?void 0:(E=k.contents)==null?void 0:(S=E.twoColumnWatchNextResults)==null?void 0:(R=S.secondaryResults)==null?void 0:(V=R.secondaryResults)==null?void 0:(N=V.results)==null?void 0:(h=N[0])==null?
void 0:h.richGridRenderer)}},
setRichGridRendererData:function(k){this.richGridRendererData=k},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var k,E=(k=this.data)==null?void 0:k.engagementPanels;if(E==null?0:E.length){k=null;E=_.n(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;var R=void 0;if(((R=S.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){k=S;break}}var V,N,h;k=(V=k)==null?void 0:(N=V.engagementPanelSectionListRenderer)==null?void 0:(h=N.content)==null?void 0:h.structuredDescriptionContentRenderer;if(k==null?0:k.items){V=
[];N=_.n(k.items);for(h=N.next();!h.done;h=N.next()){h=h.value;if(!_.Y("sd_horizontal_list_show_nav_killswitch")){var J=R=S=E=k=void 0,m=void 0,a=(k=h.horizontalCardListRenderer)==null?void 0:(E=k.header)==null?void 0:(S=E.richListHeaderRenderer)==null?void 0:(R=S.navigationButton)==null?void 0:(J=R.buttonRenderer)==null?void 0:(m=J.command)==null?void 0:m.commandExecutorCommand;a&&a.commands&&(a.commands=a.commands.filter(function(T){return!_.W(T,_.euJ)}))}(!h.expandableVideoDescriptionBodyRenderer&&
!h.videoDescriptionHeaderRenderer||_.Y("web_delhi_colorful_sd"))&&V.push(h)}return{items:V}}}},
constructWarning_:function(k){return{text:_.DE(k),type:"WARNING"}},
isPlaShelfEnabled_:function(k){if((this.get("adPlacements",k)||[]).length)return!0;k=this.get("playerAds",k)||[];return!(!k.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",k[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var k=this;_.Me(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var E=this.getScrollTop()>0;this.gestures_&&(E?this.gestures_.detach():this.gestures_.attach());E!==this.showFullerscreenEdu_&&_.Y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=E,_.db(this).getPlayerPromise().then(function(S){S.updateFullerscreenEduButtonVisibility(k.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Me(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var k=this;this.commentsReady=!1;_.ZJ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.uM(_.ZJ,function(){k.setComments_()},1E3)},
setComments_:function(){if(!_.Y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.o_("cmi");_.ZJ.cancelJob(this.setCommentsJobId_);var k=this.getPageContents(this.data);if(k&&k.length){k=_.n(k);for(var E=k.next();!E.done;E=k.next())if(E=E.value,this.get("itemSectionRenderer.sectionIdentifier",E)==="comment-item-section"){this.comments=E.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Me(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.o_("cmc")},
doRemoveComments_:function(){this.comments={};_.Y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ZJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ZJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(k,E){var S=_.W(E.endpoint,_.jm);S&&(!(E=this.get("data.currentVideoEndpoint.watchEndpoint"))||S.videoId!==E.videoId||S.playlistId&&S.playlistId!==E.playlistId||S.index!==void 0&&S.index!==E.index||typeof S.startTimeSeconds!=="number"||(k.stopPropagation(),this.setScrollTop(0),_.db(this).getPlayerPromise().then(function(R){var V=S.startTimeSeconds;R.seekTo(V);R.wakeUpControls();V<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var k=_.WGJ();"t"in k&&(k=_.j_r(k.t),this.player.seekTo(k,!0))},
updateTitleFromWatchNext:function(k){k=this.getPageContents(k);var E,S;(k=_.$n(k==null?void 0:(E=k[0])==null?void 0:(S=E.videoPrimaryInfoRenderer)==null?void 0:S.title))&&_.Me(this.hostElement,"yt-update-title",k)},
updateTitle_:function(k){k=this.get("videoDetails.title",k)||"";_.Me(this.hostElement,"yt-update-title",k)},
syncWithRemoteVideo_:function(k,E,S){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===S&&(S=R.list,_.Y("polymer_enable_mdx_queue")&&S&&S.startsWith("RQ")&&(S=void 0),R.video_id!==k||S!=E)){var V;_.Y("kevlar_player_watch_endpoint_navigation")?V=_.sDh(_.AXu(k,E)):V=this.buildWatchEndpoint_(k,E);_.Me(this.hostElement,"yt-navigate",{endpoint:V,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(k,E,S){return _.sv(k,E,S)},
initDclkstatus_:function(){_.xaJ()},
attachWatchPageSkeleton_:function(){var k=document.querySelector("#watch-page-skeleton");if(k){var E=k.querySelector("#primary-info"),S=k.querySelector("#secondary-info"),R=k.querySelector("#related");E&&_.Cc(this.hostElement).querySelector("#info-skeleton").appendChild(E);S&&_.Cc(this.hostElement).querySelector("#meta-skeleton").appendChild(S);R&&(_.Cc(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.Ua(k)}},
handlePlayerUpdated_:function(){_.db(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(k,E){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof E!=="undefined"){var S=this.watchNextSkeletonEl_.children,R=k&&k.indexSplices.length?k.indexSplices[0].index:0;k=Math.min(this.watchNextShownItems.length,S.length);E||(R=0,k=S.length);for(E=R;E<k;E++)S[E].classList.add("hidden")}},
onPlayerFullscreenChange_:function(k){_.Y("external_fullscreen")||_.qe(this.hostElement,"yt-player-fullscreen",[k.fullscreen])},
onFullscreenChange_:function(k){this.fullscreen=k;this.gestures_&&this.gestures_.update(this.fullscreen);var E=_.db(this);E.getPlayerPromise().then(function(S){S.setFauxFullscreen(!!_.ZZ())});
this.updateFullBleedElementLocations();k&&(E.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(k,E){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!E},
computeIsDonationShelfCollapsed_:function(k){return k},
computeShouldShowMerchShelf:function(k,E){return E&&!!k},
computeResponseHasComments:function(k){var E,S,R,V,N;return!!(k==null?0:(E=k.contents)==null?0:(S=E.twoColumnWatchNextResults)==null?0:(R=S.results)==null?0:(V=R.results)==null?0:(N=V.contents)==null?0:N.some(function(h){var J;return(h==null?void 0:(J=h.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(k,E,S,R){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&R?!1:!!k&&!!Object.keys(k).length&&!E},
identity:_.DR,onWindowResized_:function(k){this.windowSize_=k;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(k){var E=this;k&&k.type!=="dataloaded"&&k.type!=="dataupdated"||_.db(this).getPlayerPromise().then(function(S){var R=S.getPlayerState();R!==5&&R!==0&&(S=1/S.getVideoAspectRatio(),E.videoHeightToWidthRatio_!==S&&(E.videoHeightToWidthRatio_=S))})},
schedulePlayerSizeUpdate_:function(k){var E=this,S=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip"),R=function(){if(E.watchMetadata){var V,N;(N=(V=E.watchMetadata).resize)==null||N.call(V)}_.db(E).getPlayerPromise().then(function(h){if(_.Y("kevlar_set_internal_player_size")){if(!S||!E.isMiniplayerActive()){var J=E.calculateCurrentPlayerSize_();h.setInternalSize(J.width,J.height)}}else h.setSize(NaN,NaN);_.Y("kevlar_watch_while")&&E.updateWatchWhileScrollThreshold_()})};
k?R():_.kq(_.ZJ,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(k){this.set("data.survey",k.detail)},
onYtShowSurveyCommand_:function(k){this.set("data.survey",_.W(k,_.s_J).survey)},
onDownloadedVideoDeleted:function(k){var E=this,S,R;return _.c(function(V){if(V.nextAddress==1){if(!E.active||(S=E.playerData)==null||!S.offlineState||E.videoId!==k)return V.return();(R=E.player)==null||R.stopVideo();_.g_().navigatingAwayFromWatchDeletedVideo=!0;_.Ni(_.sBC,E.hostElement);return V.yield(_.g_().navigationFinishPromise,2)}_.g_().navigatingAwayFromWatchDeletedVideo=!1;_.KR(V)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var k;this.theater?k=_.Bt(.5625*this.windowSize_.width,480,this.windowSize_.height-185):k=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==k&&(this.watchWhileScrollThreshold_=k,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var k=_.Cc(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&k){var E=this.windowSize_.height>=624,S=this.active?this.getScrollTop():0;!k.active&&E&&S>=this.watchWhileScrollThreshold_?(k.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):k.active&&(!E||S<this.watchWhileScrollThreshold_&&!_.ZZ())&&(k.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var k=_.Cc(this.hostElement).querySelector("#secondary-inner");if(k){var E=_.Cc(this.hostElement).querySelector("#below"),S=_.Cc(this.hostElement).querySelector("#secondary"),R=_.Cc(this.hostElement).querySelector("#comments");R&&S&&E&&(this.defaultTwoColumnLayout?(k.appendChild(R),S.appendChild(k)):(E.appendChild(R),_.bV(E,k)))}}},
isTwoColumnsChanged_:function(k,E){if(k!==!0||E!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(k=_.Cc(this.hostElement).querySelector("#secondary-inner"))){E=_.Cc(this.hostElement).querySelector("#below");var S=_.Cc(this.hostElement).querySelector("#secondary"),R=_.Cc(this.hostElement).querySelector("#comments");R&&S&&E&&(this.isTwoColumns_?(k.appendChild(R),S.appendChild(k)):(E.appendChild(R),_.bV(E,k)))}}else{k=!_.Y("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);E=_.Cc(this.hostElement).querySelector("#panels");var V=_.Cc(this.hostElement).querySelector("#alerts"),N=_.Cc(this.hostElement).querySelector("#shopping-timely-shelf");S=_.Cc(this.hostElement).querySelector("#playlist");R=_.Cc(this.hostElement).querySelector("#related");var h=_.Cc(this.hostElement).querySelector("#donation-shelf"),J=_.Cc(this.hostElement).querySelector("#comments"),m=_.Cc(this.hostElement).querySelector("#persistent-panel-container");
this.isTwoColumns_?(V=_.Cc(this.hostElement).querySelector("#secondary-inner"),k&&(V.appendChild(E),V.appendChild(S),this.aiCompanionEnabled&&m&&V.appendChild(m)),V.appendChild(h),V.appendChild(R)):(k&&(_.X$(E,V),_.X$(S,V),this.aiCompanionEnabled&&m&&_.X$(m,V),_.X$(N,S)),_.X$(h,V),J&&_.X$(R,J));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.Y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.Y("web_watch_enable_fs_squeezeback_panels")&&_.Y("web_watch_theater_chat")){var k=_.Cc(this.hostElement).querySelector("#chat-container"),E=this.theater&&!this.fullscreen||_.Y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&E?(E=_.Cc(this.hostElement).querySelector("#columns"),(k==null?void 0:k.parentElement)!==E&&E.append(k),this.fixedPanels=!0):(this.fixedPanels=
!1,E=_.Cc(this.hostElement).querySelector("#playlist"),k&&E?_.g9(k,E):_.dg(new _.LC("Missing element when updating chat location",{"chatContainer defined":!!k,"playlist defined":!!E})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(k,E){return _.Y("sw_metadata_vis_toggle_ks")?!0:!!k||!!E},
computeForceDarkPanelTheme:function(k){return _.Y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&k:!1},
safeUpdateStyles:function(k){try{_.VO(this.hostElement,k)}catch(E){_.dg(E)}},
videoHeightToWidthRatioChanged_:function(k,E){E&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(k){this.videoHeightToWidthRatio_=1/k},
computeIsVerticalVideo_:function(k){return k>=1},
computeIsFourThreeToSixteenNineVideo_:function(k){return k<=.7501&&k>=.5624},
computeIsExtraWideVideo_:function(k){return k<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.db(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.db(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.kJU(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(k){var E=_.Yl(k)||0;_.BT(k,E+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var k=_.Yl("yt-fullerscreen-edu-button-click-count")||0,E=_.Yl("yt-fullerscreen-edu-button-shown-count")||0,S=_.wO("external_fullscreen_button_shown_threshold"),R=k>=_.wO("external_fullscreen_button_click_threshold")||E>=S;_.db(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(k,E){return E},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.en().resolve(_.z7).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var k=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.ZJ.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.ZJ.addLowPriorityJob(function(){k.fullHeightPanelPositionUpdateJobId=0;var E=_.Cc(k.hostElement).querySelector("#secondary"),S=_.Cc(k.hostElement).querySelector("#fixed-secondary");E=E.getBoundingClientRect();var R=E.width;k.swatcherooSqueezeback&&
(R+=_.dL);if(k.swatcherooSqueezeback){var V=_.Cc(k.hostElement).querySelector("#squeezeback-constraining-container");V.style.width=R+"px";V.style.flex="0 0 "+R+"px"}S.style.width=R+"px";S.style.left=E.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var k=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.ZJ.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.ZJ.addLowPriorityJob(function(){k.panelMaxHeightUpdateJob_=0;var E;!k.isTwoColumns_||k.theater||k.fullscreen?E=460:E=k.calculateNormalPlayerSize_().height;var S=E+"px";_.Y("live_chat_taller_height")&&!k.theater&&(S="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.Y("live_chat_medium_height")&&!k.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Y("live_chat_scaled_height")&&!k.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 238px)");k.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":E+"px","--ytd-watch-flexy-chat-max-height":S,"--ytd-watch-flexy-structured-description-max-height":E+"px","--ytd-watch-flexy-comments-panel-max-height":E+"px","--ytd-comments-engagement-panel-content-height":E+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(k){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",k)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Ot(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(k){var E=_.Cc(this.hostElement).querySelector("#engagement-panel-scrim");k?E.addEventListener("tap",_.Ic(this,this.onEngagementPanelScrimClick_)):E.removeEventListener("tap",_.Ic(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(k){if(this.hostElement.contains(k)&&!this.scrollToAnimation_.isAnimating()){var E=k.offsetTop-24;k=k.offsetTop+k.offsetHeight+24;var S=this.getPageScrollingElement(),R=this.getScrollTop(),V=R+S.clientHeight-56;if(E<R+56)E-=56;else if(k>V)E=k-S.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtSignalActionScrollToComments:function(){var k=this.hostElement.querySelector("#comments");if(k&&!this.scrollToAnimation_.isAnimating()){k=k.offsetTop-56-24;if(_.Y("kevlar_comment_teaser_scroll_to_midpoint")&&(k-=_.pO().height/3,k<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,k),500)}},
onYtEngagementPanelVisibleChanged:function(k,E,S){if(this.active&&this.trackEngagementPanelVisibility&&!_.ZzU.includes(S)){if(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.zR(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var R=_.en().resolve(_.$g);this.visiblePanelIdentifiers_.forEach(function(V){V!==S&&R.hidePanel(V)})}this.visiblePanelIdentifiers_.add(S)}E!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(S);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(k){return k?"":"watch-active-metadata"},
computeNewMetadataClass:function(k){return k?"watch-active-metadata":""},
computeIsSingleColumn:function(k,E){return E&&!k},
computeFullBleedPlayer:function(k,E,S){return _.Y("external_fullscreen")&&k||E||S},
computeDefaultLayout:function(k){return!k},
computeDefaultTwoColumnLayout:function(k,E){return!k&&E},
updatePanelsLocation:function(){if(_.Y("web_watch_enable_fs_squeezeback_panels")){var k=_.Cc(this.hostElement).querySelector("#below"),E=_.Cc(this.hostElement).querySelector("#panels"),S=_.Cc(this.hostElement).querySelector("#playlist"),R=_.Cc(this.hostElement).querySelector("#chat-container"),V=_.Cc(this.hostElement).querySelector("#panels-full-bleed-container"),N=_.Cc(this.hostElement).querySelector("#secondary-inner"),h=_.Cc(this.hostElement).querySelector("#shopping-timely-shelf"),J=_.Cc(this.hostElement).querySelector("#persistent-panel-container");
if(k&&E&&S&&R&&V&&N&&h&&(this.aiCompanionEnabled?J:1)){var m=this.fullscreen||this.theater&&this.iMaxTheaterMode,a=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;m?(V.appendChild(E),V.appendChild(R),V.appendChild(S),this.aiCompanionEnabled&&J&&V.appendChild(J)):this.isTwoColumns_?(a?(k=_.Cc(this.hostElement).querySelector("#columns"),(R==null?void 0:R.parentElement)!==k&&k.append(R),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):
_.bV(N,R),_.bV(N,E),_.bV(N,S),this.aiCompanionEnabled&&J&&_.bV(N,J)):(k.appendChild(E),k.appendChild(h),k.appendChild(R),k.appendChild(S),this.aiCompanionEnabled&&J&&k.appendChild(J))}}},
swatcherooUpdatePanelsLocation:function(k,E,S,R,V,N){if(this.is==="ytd-watch-grid"){E=k&&!E;this.swatcherooSplitScroll&&(E?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));S=_.Cc(this.hostElement).querySelector("#panels");var h=_.Cc(this.hostElement).querySelector("#playlist"),J=_.Cc(this.hostElement).querySelector("#persistent-panel-container"),
m=_.Cc(this.hostElement).querySelector("#fixed-secondary"),a=_.Cc(this.hostElement).querySelector("#fixed-below"),T=_.Cc(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),w=_.Cc(this.hostElement).querySelector("#chat-container");N&&(k?(m.appendChild(S),this.aiCompanionEnabled&&J&&m.appendChild(J)):(a.appendChild(S),this.aiCompanionEnabled&&J&&a.appendChild(J)));V?k?m.appendChild(w):a.appendChild(w):_.g9(w,T);R?k?m.appendChild(h):a.appendChild(h):_.g9(h,
T);this.swatcherooSplitScroll&&(k=_.Cc(this.hostElement).querySelector("#secondary"),R=_.Cc(this.hostElement).querySelector("#columns"),V=_.Cc(this.hostElement).querySelector("#fixed-columns-secondary"),E?V.appendChild(k):R.appendChild(k))}},
computeMetadataSkinnyMode:function(k,E,S){return this.is!=="ytd-watch-grid"?!1:k?S:E},
computeWatchWhilePanelsActive:function(k,E){return k||E},
computeNoBorderOnChat:function(k){return _.Y("web_watch_theater_chat_no_border")&&k},
computeLiveChatPresentAndExpanded:function(k,E){return k&&!E},
computePanelExpanded:function(k,E,S){return k||E||S},
computeSqueezeback:function(k,E,S,R){if(_.Y("web_watch_enable_fs_squeezeback_panels")){var V=this.iMaxTheaterMode&&this.theater,N=this.theater&&!this.iMaxTheaterMode;return(k||E||S)&&(V||R)||E&&N}},
computeSwatcherooSqueezeback:function(k,E,S){return this.is!=="ytd-watch-grid"||_.Y("ww_squeezeback_killswitch")?!1:k&&E&&S},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(k){_.db(this).getPlayerPromise().then(function(E){var S;(S=E.changeMarkerVisibility)==null||S.call(E,_.W(k,_.da).isVisible||!1,_.W(k,_.da).entityKeys||[],_.W(k,_.da).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(k){this.liveChatCollapsed=k.detail;_.vo().dispatch(_.bzg(k.detail));if(!this.liveChatCollapsed&&this.squeezeback){var E=_.en().resolve(_.$g);this.visiblePanelIdentifiers_.forEach(function(S){E.hidePanel(S)})}},
onSetPlaylistCollapsed:function(k){_.Y("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!k)},
provideRenderingData:function(k,E){switch(k){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=E;break;case "PRIMARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=E);this.videoPrimaryInfoRendererValue=E==null?void 0:E.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=E);this.videoSecondaryInfoRendererValue=E==null?void 0:E.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
E;break;case "CLARIFICATION":this.clarifyBoxValue=E;break;case "LIVE_CHAT":this.conversationBar=E;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=E;break;case "PLAYLIST":this.externalPlaylistData_=E!=null?E:{};break;case "MERCH_SHELF":this.merchShelfValue=E==null?void 0:E.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=E;break;case "TICKET_SHELF":this.ticket=E;break;case "OFFER_MODULE":this.offerModule=E;break;case "LIMITED_STATE":this.limitedStateValue=
E;break;case "DONATION_SHELF":this.donation=E;break;case "ALERTS":this.alertsValue=E;break;case "COMMENTS":this.comments=E;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=E;break;case "ENGAGEMENT_PANELS":this.engagementPanels=E;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=E;break;case "RICH_GRID_RENDERER":this.richGridRendererData=E;break;case "EXPANDABLE_METADATA":this.expandableMetadata=E;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
E;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=E}},
toggleCinematicsActive:function(k){this.cinematicsActive=k},
isMiniplayerActive:function(){return _.en().resolve(_.yb).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var xyt;_.uDa=function(k){if(!(0,_.CCA)(k))throw Error("K``"+String(k));};
_.L5T=function(k){return k.findIndex(function(E){return xyt.indexOf(E.tagName)>-1})>-1};
_.jR0=function(){var k=_.en().resolve(_.KM);_.hZ1(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(k.isFullscreenEnabled()?_.dW(document.documentElement):_.G6b(document.documentElement))};
xyt=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.LA=new Map;_.LA.set(32,59972);_.LA.set(27,50765);_.LA.set(70,60102);_.LA.set(76,60221);_.LA.set(77,60222);_.LA.set(74,60223);_.LA.set(84,60224);_.LA.set(38,61941);_.LA.set(40,61942);_.LA.set(73,62521);_.LA.set(67,62522);_.LA.set(80,63390);_.LA.set(78,63397);_.LA.set(75,59972);_.LA.set(188,63385);_.LA.set(190,63384);_.LA.set(36,63387);
_.LA.set(35,63386);_.LA.set(37,63388);_.LA.set(39,63389);_.LA.set(79,63423);_.LA.set(87,63424);_.LA.set(107,63426);_.LA.set(109,63425);_.LA.set(65,63428);_.LA.set(83,63430);_.LA.set(68,63429);_.LA.set(221,63431);_.LA.set(219,63432);_.LA.set(97,63439);_.LA.set(98,63440);_.LA.set(99,63441);_.LA.set(100,63442);_.LA.set(101,63443);_.LA.set(102,63444);_.LA.set(103,63445);_.LA.set(104,63446);_.LA.set(105,63447);_.j0=new Map;_.j0.set(80,63390);_.j0.set(78,63397);_.j0.set(188,63400);_.j0.set(190,63401);
_.j0.set(191,60765);_.j0.set(13,247917);_.DL=new Map;_.$L=new Map;
}catch(e){_._DumpException(e)}
try{
var V9R,n63,iZa,hRP;_.k2A=function(k){return k.ui.guideIsVisibleButNotPersistent};
_.E6R=function(k){return k.ui.tabGesturesIsActive};
_.S2G=function(){var k=_.P_("service_worker_scope");try{return navigator.serviceWorker.getRegistration(k)}catch(E){return Promise.reject(E)}};
_.RRU=function(k){return!(!k||!k.pushManager)};
V9R=function(){return _.S2G().then(_.RRU).catch(function(){return!1})};
_.NmP=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?V9R():Promise.resolve(!1)};
_.IlP=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
n63=function(){var k,E,S;return _.c(function(R){switch(R.nextAddress){case 1:return R.yield(_.Lw.getInstance(),2);case 2:k=R.yieldResult;if(!k){E=void 0;R.jumpTo(3);break}return R.yield(k.get("lmqf"),4);case 4:E=R.yieldResult;case 3:switch((S=E)||(S="SD"),S){case "HD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return R.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
iZa=function(k){var E,S,R;return _.c(function(V){if(V.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.Y("disable_av1_setting")){var N=window.localStorage["yt-player-av1-pref"];N=N==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":N==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else N="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(E=k===N)return V.jumpTo(2);R=S=k;return V.yield(n63(),3)}V.nextAddress!=2&&(E=R===V.yieldResult);return V.return(E)})};var Jw2;var cw0=_.y7.IronButtonState,mmI=(0,_.BD)(HTMLElement);
_.F6({_template:function(){if(Jw2!==void 0)return Jw2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;hRP===void 0&&(hRP=document.createElement("template"));var R=hRP;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return Jw2=k},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[cw0,_.W7,_.oo,_.U9],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(k){var E=(0,_.Aw)(this);E.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:k});E.shadowRoot.appendChild(k);return mmI.prototype._attachDom.call(this,k)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var k=this.contentElement;k&&k.selectedItem&&this._setSelectedItem(k.selectedItem)},
get contentElement(){for(var k=_.em(this.$.content).getDistributedNodes(),E=0,S=k.length;E<S;E++)if(k[E].nodeType===Node.ELEMENT_NODE)return k[E]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(k){this._setSelectedItem(k.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(k){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(k)===this&&this.open()},
_selectedItemChanged:function(k){var E="";k?E=k.label||k.getAttribute("label")||k.textContent.trim():E="";this.value=E;this._setSelectedItemLabel(E)},
_computeMenuVerticalOffset:function(k,E){return E?E:k?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var k=this.opened?"true":"false",E=this.contentElement;E&&E.setAttribute("aria-expanded",k)}});_.ya=new _.z_("navigateAction");var eR0=new _.z_("formRenderer");var oD=function(){var k=_.mi.apply(this,arguments)||this;k.showInput=!1;return k};
_.y(oD,_.mi);_.I=oD.prototype;_.I.detached=function(){this.showInput&&window.removeEventListener("click",_.Ic(this,this.closeOnOutsideClick_))};
_.I.stopPropagation_=function(k){this.showInput&&k.stopPropagation()};
_.I.closeOnOutsideClick_=function(k){this.closeOnOutsideClickCondition(k)&&(this.showInput=!1,window.removeEventListener("click",_.Ic(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.I.closeOnOutsideClickCondition=function(){return!0};
_.I.closeOnOutsideClickHandler=function(){};
_.I.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Ic(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.I.openOnClickHandler=function(){};
_.I.showInputChanged=function(){};
_.I.setShowInput=function(k){this.showInput=k};
oD.prototype.setShowInput=oD.prototype.setShowInput;oD.prototype.showInputChanged=oD.prototype.showInputChanged;oD.prototype.openOnClickHandler=oD.prototype.openOnClickHandler;oD.prototype.openOnClick_=oD.prototype.openOnClick_;oD.prototype.closeOnOutsideClickHandler=oD.prototype.closeOnOutsideClickHandler;oD.prototype.closeOnOutsideClickCondition=oD.prototype.closeOnOutsideClickCondition;oD.prototype.closeOnOutsideClick_=oD.prototype.closeOnOutsideClick_;oD.prototype.stopPropagation_=oD.prototype.stopPropagation_;
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],oD.prototype,"showInput",void 0);_.Z([_.nv("click"),_.nv("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],oD.prototype,"stopPropagation_",null);_.Z([_.il("showInput"),_.l("design:type",Function),_.l("design:paramtypes",[Boolean]),_.l("design:returntype")],oD.prototype,"showInputChanged",null);_.Z([_.eN()],oD);_.ala=[oD.prototype];var t93;var TmU;var XN=function(){return _.p.apply(this,arguments)||this};
_.y(XN,_.p);_.I=XN.prototype;_.I.computePreselectedOption=function(k,E){return E===this.itemSelected_?k:void 0};
_.I.dataChanged_=function(){var k=this;this.preselectedSubreason=this.itemSelected_=-1;var E;(E=this.data)!=null&&E.key&&_.JB(this,function(){var S,R=Number((S=k.data)==null?void 0:S.key);!Number.isNaN(R)&&(k.itemSelected_=R,S=(S=(k.data.items||[])[R])&&S.optionSelectableItemRenderer&&S.optionSelectableItemRenderer.preselectedIndex)&&(k.preselectedSubreason=S)})};
_.I.isSubReasonHidden_=function(k,E){return k!=E};
_.I.onTopItemSelected_=function(k,E){for(var S=_.Cc(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),R=0,V=S.length;R<V;R++)S[R].select(0);_.qe(this.hostElement,"yt-report-form-update",[E.item.value]);k.stopPropagation()};
_.I.onItemSelected_=function(k,E){_.qe(this.hostElement,"yt-report-form-update",[E.item.value]);k.stopPropagation()};
_.I.getItem_=function(k){return k.serviceItem?k.serviceItem:k.navigationItem?k.navigationItem:k.optionSelectableItemRenderer?k.optionSelectableItemRenderer:null};
_.I.computeText_=function(k){return(k=this.getItem_(k))?this.ytRendererBehavior.getSimpleString(k.text):null};
_.I.validate=function(){return this.itemSelected_!==-1};
_.I.computeAriaLabel_=function(k){var E=_.$n(k.text);(k=k.accessibility&&k.accessibility.accessibilityData&&k.accessibility.accessibilityData.label)&&(E+=". "+k);return E};
_.I.computeItemSelected_=function(k){return k};
_.I.preventSelection_=function(k){k.stopPropagation();this.tooltipTapped=!0};
_.I.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.I.updateItemSelectedFromBinding=function(k){this.itemSelected_=k.detail.value};
_.I.save=function(){var k;this.validate()&&(k=this.data)!=null&&k.items&&(k=this.data.items[this.itemSelected_],k!=null&&k.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(k.optionSelectableItemRenderer.submitEndpoint)||_.Qw(this.hostElement,[k.optionSelectableItemRenderer.submitEndpoint])))};
XN.prototype.onPaperRippleTransitionEnd_=XN.prototype.onPaperRippleTransitionEnd_;XN.prototype.dataChanged_=XN.prototype.dataChanged_;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],XN.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],XN.prototype,"data",void 0);_.Z([_.H({value:-1}),_.l("design:type",Number)],XN.prototype,"itemSelected_",void 0);
_.Z([_.H({computed:"computeItemSelected_(itemSelected_)"}),_.l("design:type",Number)],XN.prototype,"value",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],XN.prototype,"restoreFocusOnClose",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],XN.prototype,"tooltipTapped",void 0);_.Z([_.H({value:-1}),_.l("design:type",Number)],XN.prototype,"preselectedSubreason",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XN.prototype,"dataChanged_",null);_.Z([_.nv("transitionend"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XN.prototype,"onPaperRippleTransitionEnd_",null);_.Z([_.U_({is:"yt-options-renderer",disableElementRegistration:!0})],XN);
_.b(XN,"yt-options-renderer",function(){if(TmU===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;t93===void 0&&(t93=document.createElement("template"));var R=t93;S.call(E,R.content.cloneNode(!0),k.content.firstChild);TmU=k}k=TmU;return k},{mode:2});var wnW;var P2P;var BmP;var Y2T;var WFT;var FF2;var gK=function(){return _.p.apply(this,arguments)||this};
_.y(gK,_.p);gK.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
gK.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
gK.prototype.onTap=function(k){if(this.hostElement.classList.contains("selected")||_.qe(this.hostElement,"yt-share-panel-can-select-contact-action")[0])k&&k.detail&&(k.detail.x||k.detail.y)&&_.Cc(this.hostElement).querySelector("#target").blur(),(k=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),k={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:k?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.qe(this.hostElement,"yt-share-panel-select-contact-action",[k])};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.Z([_.H({observer:"onDataChanged"}),_.l("design:type",Object)],gK.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.l("design:type",String)],gK.prototype,"componentTitle",void 0);_.Z([_.JO("#thumbnail"),_.l("design:type",Object)],gK.prototype,"thumbnail",void 0);_.Z([_.U_({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],gK);
_.b(gK,"yt-enrolled-contact-renderer",function(){if(FF2===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;WFT===void 0&&(WFT=document.createElement("template"));var R=WFT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);FF2=k}k=FF2;return k},{mode:2});var ywT;var o6A;var Uq=function(){return _.p.apply(this,arguments)||this};
_.y(Uq,_.p);Uq.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Uq.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Uq.prototype.onTap=function(k){if(this.hostElement.classList.contains("selected")||_.qe(this.hostElement,"yt-share-panel-can-select-contact-action")[0])k&&k.detail&&(k.detail.x||k.detail.y)&&_.Cc(this.hostElement).querySelector("#target").blur(),(k=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),k={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:k?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.qe(this.hostElement,"yt-share-panel-select-contact-action",[k])};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.Z([_.H({observer:"onDataChanged"}),_.l("design:type",Object)],Uq.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.l("design:type",String)],Uq.prototype,"componentTitle",void 0);_.Z([_.JO("#thumbnail"),_.l("design:type",Object)],Uq.prototype,"thumbnail",void 0);_.Z([_.U_({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Uq);
_.b(Uq,"yt-suggested-contact-renderer",function(){if(o6A===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;ywT===void 0&&(ywT=document.createElement("template"));var R=ywT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);o6A=k}k=o6A;return k},{mode:2});var H6=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-share-panel-reset-action":"onReset"};return k};
_.y(H6,_.p);H6.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"}}}}}};
H6.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.qe(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
H6.prototype.onReset=function(){for(var k=_.Cc(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),E=k.length-1;E>=0;E--)k[E].classList.toggle("selected")};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],H6.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],H6.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],H6.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H({observer:"onDataChanged"}),_.l("design:type",Object)],H6.prototype,"data",void 0);
_.Z([_.U_({is:"yt-contact-section-renderer",disableElementRegistration:!0})],H6);
_.b(H6,"yt-contact-section-renderer",function(){if(Y2T===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;BmP===void 0&&(BmP=document.createElement("template"));var R=BmP;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Y2T=k}k=Y2T;return k},{mode:2});var K0=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return k};
_.y(K0,_.p);_.I=K0.prototype;_.I.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"}}}};
_.I.onYtRefreshFormCommand=function(k){var E;(k=_.W((E=_.W(k,_.KsY))==null?void 0:E.formRenderer,eR0))&&this.set("data",k)};
_.I.reset=function(){var k=_.Cc(this.hostElement).querySelector("#fields").children;k=_.n(k);for(var E=k.next();!E.done;E=k.next())E=E.value,E.reset&&E.reset()};
_.I.getForm=function(){var k={},E=_.Cc(this.hostElement).querySelector("#fields").children;E=_.n(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;if(!S.validate())return null;k[S.data.key]=S.value}return k};
_.I.submitFormFields=function(){if(this.fields)for(var k=_.n(this.fields),E=k.next();!E.done;E=k.next())E=E.value,E.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?E.save():E.nodeName==="YT-OPTIONS-RENDERER"&&E.save()};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],K0.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],K0.prototype,"data",void 0);_.Z([_.cu("#fields > *"),_.l("design:type",Array)],K0.prototype,"fields",void 0);
_.Z([_.U_({is:"yt-form-renderer",disableElementRegistration:!0})],K0);
_.b(K0,"yt-form-renderer",function(){if(P2P===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;wnW===void 0&&(wnW=document.createElement("template"));var R=wnW;S.call(E,R.content.cloneNode(!0),k.content.firstChild);P2P=k}k=P2P;return k},{mode:2});var Xnt;var p0=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return k};
_.y(p0,_.p);p0.prototype.onCheckboxChange=function(k){this.data&&(k=(this.checked=_.bv(k).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}})};
p0.prototype.handleUpdateCheckboxCommand=function(k){(k=_.W(k,_.MGd))&&this.data&&this.data.id===k.id&&(this.set("data.disabled",k.disabled),this.set("data.title",k.title))};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],p0.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],p0.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],p0.prototype,"checked",void 0);_.Z([_.D({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],p0);
_.b(p0,"ytd-settings-checkbox-renderer",function(){if(Xnt!==void 0)return Xnt;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Xnt=k},{mode:1});var g6I;var AW=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return k};
_.y(AW,_.p);AW.prototype.dataChanged=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return k.radio.removeAttribute("checked"),!k.data||!k.data.id||k.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.IlP()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(E=k.data&&k.data.id)?S.yield(iZa(k.data.id),4):S.jumpTo(3):(k.set("data.hidden",!0),S.jumpTo(0));S.nextAddress!=3&&(E=S.yieldResult);E&&_.qe(k.hostElement,"yt-select-settings-radio-option",[k.data.id]);_.KR(S)})};
AW.prototype.onButtonChanged=function(k){_.bv(k).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.en().resolve(_.t3).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.qe(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
AW.prototype.onSelectOption=function(k){this.data&&this.data.id&&(this.data.id===k?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
AW.prototype.dataChanged=AW.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],AW.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.JO("#radio"),_.l("design:type",Object)],AW.prototype,"radio",void 0);_.Z([_.H(),_.l("design:type",Object)],AW.prototype,"data",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],AW.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],AW);
_.b(AW,"ytd-settings-radio-option-renderer",function(){if(g6I!==void 0)return g6I;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return g6I=k},{mode:1});var Uma;var rK=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return k};
_.y(rK,_.p);
rK.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"}}}};
rK.prototype.handleUpdateTextCommand=function(k){(k=_.W(k,_.qDd))&&this.data&&this.data.id===k.id&&this.set("data",k)};
rK.prototype.handleUpdateConnectedAppRendererCommand=function(k){if(_.W(k,_.OFC)&&this.data){var E,S;if(k=(E=_.W(k,_.OFC))==null?void 0:(S=E.newConnectedAppRenderer)==null?void 0:S.connectedAppRenderer)this.data=k}};
rK.prototype.computeConnectedAppStyle=function(k){return k.style?k.style.toLowerCase().replace(/_/g,"-"):""};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],rK.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rK.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.l("design:type",String)],rK.prototype,"connectedAppStyle",void 0);_.Z([_.D({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],rK);
_.b(rK,"ytd-connected-app-renderer",function(){if(Uma!==void 0)return Uma;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Uma=k},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.vy("iuT5Oc");

_.bk();
}catch(e){_._DumpException(e)}
try{
_.vy("L3n37");
var aEX=function(k){return k.watch.isLearningJourneyActive},ti$=_.kh(115994),T8o=_.kh(115993),wok=function(k,E,S){var R=this;
var V=S.dragDownAction;this.layer=0;this.JSC$23382_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.JSC$23382_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return R.dragDownAction()}}}};
this.fullscreen=!1;var N=_.JV();_.Yo(N,ti$,this.layer);_.Yo(N,T8o,this.layer);this.dragDownAction=function(){V();_.Ab(N,{visualElement:R.fullscreen?ti$:T8o})};
this.gesture=new _.fB(k,E,this.getConfig(!1),"pandown");this.attach()};
wok.prototype.attach=function(){this.gesture.attach()};
wok.prototype.detach=function(){this.gesture.detach()};
wok.prototype.update=function(k){this.fullscreen=k;var E=this.gesture;k=this.getConfig(k);E.config=k};
wok.prototype.getConfig=function(k){return k?this.JSC$23382_watchFullScreenConfig:this.JSC$23382_watchConfig};var Pgu=function(k){_.xL.call(this);var E=this;this.rootElement=k;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return E.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(S){E.initOrDisposeActiveModules(S)}));
this.onAttached()};
_.y(Pgu,_.xL);_.I=Pgu.prototype;_.I.getRoot=function(){return this.rootElement};
_.I.getElement=function(k){return this.rootElement.getElement(k)};
_.I.setPlayerResponse=function(k){this.playerResponse=k;this.publish("PLAYER_RESPONSE_UPDATED",k)};
_.I.getPlayerResponse=function(){return this.playerResponse};
_.I.setWatchNextResponse=function(k){this.watchNextResponse===k?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=k,this.publish("WATCH_NEXT_RESPONSE_UPDATED",k))};
_.I.getWatchNextResponse=function(){return this.watchNextResponse};
_.I.registerActionHandler=function(k,E){var S=this;if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var R={};_.E2(_.GU.getInstance(),(R[k]=E,R),this.getRoot())}else this.actionHandlers.has(k)||(this.actionHandlers.set(k,[]),R={},_.E2(_.GU.getInstance(),(R[k]=function(){var V=_.sX.apply(0,arguments);return(S.actionHandlers.get(k)||[]).map(function(N){return N.apply(null,_.$e(V))})},R),this.getRoot())),this.actionHandlers.get(k).push(E)};
_.I.unregisterActionHandler=function(k){if(_.Y("web_watch_controller_reg_multiple_handlers_killswitch")){var E={};_.S9(_.GU.getInstance(),(E[k]=!0,E),this.getRoot())}else(E=this.actionHandlers.get(k))?(E.pop(),E.length===0&&(E={},_.S9(_.GU.getInstance(),(E[k]=!0,E),this.getRoot()),this.actionHandlers.delete(k))):_.dg(new _.LC("Attempted to unregister an action handler which is not registered.",k))};
_.I.addPageDisposeJob=function(k){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.peh(this.rootElement.pageDisposeJobs,k)};
_.I.removePageDisposeJob=function(k){this.rootElement.pageDisposeJobs&&_.ZR(this.rootElement.pageDisposeJobs,k)};
_.I.dispatchEvent=function(k,E){_.Me(this.rootElement,k,E)};
_.I.provideRenderingData=function(k,E){this.rootElement.provideRenderingData(k,E)};
_.I.scrollWatchTo=function(k,E){var S;(S=this.watchScrollManager)==null||S.scrollWatchTo(k,E)};
_.I.focusOnPlayer=function(){var k=this.getElement("PLAYER");_.JB(k,function(){if(k&&k.firstElementChild){var E=k.querySelector(".html5-video-player");E&&(_.ef(_.en().resolve(_.eQ)),E.focus())}else _.dg(Error("Yo"))})};
var B8U=function(k){var E=!!k.rootElement.theater,S=!!k.rootElement.fullscreen,R;(R=k.watchCinematicManager)==null||_.zGU(R,S,E)};
_.I=Pgu.prototype;_.I.subscribeToActiveChanged=function(k,E){E=E===void 0?!0:E;var S=_.Hq(_.vo(),aEX,function(R){k(R)});
E&&k(aEX(_.vo().getState()));return S};
_.I.isActive=function(){return aEX(_.vo().getState())};
_.I.onAttached=function(){var k=_.Y("external_fullscreen");_.Y("use_unified_flag_accessor")&&(k=_.en().resolve(_.I_A).retriever.getFlag(_.NvC));(k||_.qg("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.I.initPersistentModules=function(){if(_.Y("kevlar_watch_flexy_theater_manager")){var k=new _.Wtk(this);_.Wy(this,k)}k=new _.hPN(this);_.Wy(this,k);k=new _.ra(this);_.Wy(this,k);k=new _.NWo(this);_.Wy(this,k);k=new _.D4(this);_.Wy(this,k);k=new _.uU(this);_.Wy(this,k);_.Y("kevlar_watch_flexy_playlist_manager")&&(k=new _.bIr(this),_.Wy(this,k))};
_.I.initOrDisposeActiveModules=function(k){k?(this.watchScrollManager=new _.$M(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.ouJ(this)),this.activeModules.push(new _.yw$(this)),this.activeModules.push(new _.qtB(this)),this.activeModules.push(new _.wiJ(this)),_.Y("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.HZo(this)),this.activeModules.push(new _.piU(this)),_.Y("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Qro(this)),
_.Y("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.D6u(this)),_.Y("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.ZfX(this),this.activeModules.push(this.watchCinematicManager),B8U(this)),_.Y("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.xek(this)),_.Y("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.nuF(this)),k=_.Y("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.Y("kevlar_watch_flexy_comments_manager")&&
!k&&this.activeModules.push(new _.kR$(this)),_.Y("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.v6$(this)),this.activeModules.push(new _.Ktu(this)),this.activeModules.push(new _.guS(this)),_.Y("web_enable_timely_actions")&&this.activeModules.push(new _.unr(this)),_.Y("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.SJU(this)),_.Y("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.M9B(this)),_.Y("web_fullscreen_components")&&
this.activeModules.push(new _.rwS(this)),_.Y("web_player_rtr_ctrls")&&this.activeModules.push(new _.VXJ(this))):(_.hP(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.I.disposeInternal=function(){_.xL.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.mt.Object.defineProperties(Pgu.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var YpX={},WCF=["learning-journey-engagement-panel","PAlearning_chat"];
YpX.YtdLearningJourneyWatchBehavior=[_.O.YtRendererBehavior,_.IQ.YtPlayerListenerBehavior,_.aA.YtRendererstamperBehavior,_.H5.YtActionHandlerBehavior,_.NR.YtPageBehavior,_.UN.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 _.qg("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.Y("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 _.qg("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 _.Y("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.Y("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 _.wO("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.wO("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 _.Y("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 _.Y("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_watch_rounded_player_large")||_.Y("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 _.Y("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.Y("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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 _.Y("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.Y("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:_.eW(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.eW(["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 k=this;this.watchController=void 0;this.pageDisposeJobs=[function(){k.showMetadataPlaceholder_()},
function(){_.Y("web_watch_dont_clear_comments")||k.clearComments_()},
function(){k.clearPlayerAds_()},
function(){k.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;_.Y("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.Y("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.lvX(function(){return _.db(k)},this.hostElement);
this.pageDisposeJobs.push(function(){k.youThereManager_.reset()});
_.Y("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){k.resetFullerscreenEduButtonForNewPlayback_()}));
_.Y("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.nS;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;_.Y("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.Y("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));_.Y("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ic(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(k){k&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:k}),k.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(k){_.Y("kevlar_watch_flexy_theater_manager")&&(this.theater=k,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.Y("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(k){!_.Y("kevlar_watch_while_v2")&&!_.Y("web_watch_pip")||k||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(k){this.active!==void 0&&(this.fullscreen=k,_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(k){this.active!==void 0&&(_.Me(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.Y("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(k>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(k){this.initCsi_();this.updatePageData_(k)},
updatePageData_:function(k){var E=this;if(k)if(this.data===k){this.onPageLoadWithSameData_();var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)}else this.data=k;this.playlist&&_.BE({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.o_("nw");this.loading=!1;_.uM(_.ZJ,function(){E.initDclkstatus_();var R,V=((R=E.player)==null?void 0:R.getVideoData().cpn)||"";_.pES(function(N,h){_.pT3(N,h,V)})})},
onPageLoadWithSameData_:function(){_.Y("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 k=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!k);this.set("loadingData.playlistLoading",k&&k!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),k=this.watchNextSkeletonEl_.firstElementChild;k;)k.classList.remove("hidden"),k=k.nextElementSibling;var E,S,R;k=(E=this.loadingData)==null?void 0:(S=E.endpoint)==null?void 0:(R=S.watchEndpoint)==null?void 0:R.videoId;var V;k&&(V="https://i.ytimg.com/vi/"+k+"/frame0.jpg");_.Cc(this.hostElement).querySelector("#player").style.backgroundImage=V?"url("+V+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var k=_.Cc(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&k&&(k.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var E,S;(S=(E=this.watchMetadata).updateSentimentBarWidth)==
null||S.call(E);var R,V;(V=(R=this.watchMetadata).resize)==null||V.call(R)}_.Cc(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(k){var E=_.Cc(this.hostElement).querySelector(k);E?_.st(E,!1):_.dg(new _.LC("Overscroll monitor not found for component: ",k))},
removeSplitScrollMouseTrap:function(k){var E=_.Cc(this.hostElement).querySelector(k);E?_.lW(E):_.dg(new _.LC("Disposal component for  overscroll monitoring not found: ",k))},
onLoadingChanged_:function(k){k?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(k){var E=this;k?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.ZJ.addLowPriorityJob(function(){E.onWindowResized_(_.iv(!0))})},
updateTheaterModeState_:function(k){if(!_.Y("kevlar_watch_flexy_theater_manager")){k=k||this.fullWindowMode_;if(this.theater!==void 0||k)this.theater=k;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();k&&_.JNu()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var k=this.theater;_.Y("external_fullscreen")&&this.fullscreen&&(k=!0);k=k?_.Cc(this.hostElement).querySelector("#player-full-bleed-container"):_.Cc(this.hostElement).querySelector("#player-container-inner");var E=this.getPlayerContainer(),S=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip");E.parentElement!==k&&(S&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.db(this).appendTo(k,E),k.appendChild(_.Cc(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var k=this;return _.c(function(E){if(E.nextAddress==1)return E.yield(_.en().resolve(_.yb).deactivate(),2);k.updatePlayerLocation();_.KR(E)})},
updateCinematicsLocation:function(){var k=this.getElement("CINEMATICS");if(k){var E=this.getCinematicsLocationContainer();k.parentElement!==E&&E.appendChild(k);var S;(S=this.watchController)==null||B8U(S)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Cc(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Cc(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(k,E){var S=document.documentElement.hasAttribute("dark"),R=S&&_.Y("web_cinematic_theater_mode"),V=S&&_.Y("web_cinematic_fullscreen");S=!S&&this.cinematicLightTheme;return k&&R||E&&V||(E||k)&&S},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var k;(k=this.watchController)==null||k.setWatchNextResponse(this.data);_.Y("kevlar_watch_flexy_comments_manager")||this.initComments_();_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.en().resolve(_.z7).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.Y("web_watch_start_chat_in_theater_mode")){var E,
S,R;if((E=this.data)==null?0:(S=E.contents)==null?0:(R=S.twoColumnWatchNextResults)==null?0:R.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var V,N;((V=this.data)==null?0:(N=V.contents)==null?0:N.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(k){var E;(E=this.watchController)==null||E.setPlayerResponse(this.playerData);k&&k.playabilityStatus&&(E=this.isVideoPlayable_(k.playabilityStatus,this.getPlayerOverlays_(this.data)),k=this.isLiveStreamOffline_(k.playabilityStatus),E&&!k||_.JB(this,function(){_.o_("pbu")}));
this.setPlayerAds_();_.zR(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(k){_.vo().dispatch(_.zX({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));k?this.activate_():this.deactivate_()},
attached:function(){var k=this;this.watchController=new Pgu(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.Y("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var E=_.db(this);_.Y("kevlar_disable_prepare_player")||E.preparePlayer();_.Y("kevlar_watch_flexy_playlist_manager")||_.en().resolve(_.z7).setPlayer(E);this.updatePageMediaQueries();E={"--ytd-watch-flexy-scrollbar-width":_.JW()+
"px"};!_.wO("kv_pl_mx_sz_ks")&&_.wO("kevlar_watch_max_player_width")&&(E["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Gar+"px");_.wO("kevlar_watch_flexy_metadata_height")&&(E["--ytd-watch-flexy-space-below-player"]=_.C$X+"px");this.safeUpdateStyles(E);_.Y("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new wok(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return k.onPlayerTouchPanDown_()}}));
_.Y("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Cc(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var k=_.JW(),E=_.sd+k,S=E;this.fixedPanels&&(E+=_.OVu);var R=657+k;k=1327+k;_.Cc(this.hostElement).querySelector("#two-column-query").query="(min-width: "+E+"px)";_.Cc(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(R+"px), (min-height: 630px) and (min-width: ")+(E+"px) and (max-width: ")+(k+"px)");_.Cc(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(k+"px)");
_.Cc(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+S+"px)"},
calculateCurrentPlayerSize_:function(){var k=_.Cc(this.hostElement).querySelector("#miniplayer-bar").firstChild;return k&&k.active||this.theater||_.Y("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.KO(NaN,NaN):_.LGF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.LGF(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.nu(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var k=this;this.onWindowResized_(_.iv());_.Y("browse_skeleton_removal_on_watch_killswitch")||_.qg("IS_SHELL_LOAD")&&_.d2o();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var E=_.db(this);E.addEventListener("yt-player-updated",_.Ic(this,this.onPlayerUpdated_));E.getPlayerPromise().then(function(S){k.playerApiReady_(S)});
_.Y("kevlar_watch_flexy_playlist_manager")||(E=_.en().resolve(_.z7),_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&E.addEventListener("yt-navigate",_.Ic(this,this.onYtNavigate_)),E.setPlaylistComponent(_.Cc(this.hostElement).querySelector("#playlist")),E.addEventListener("yt-playlist-data-updated",_.Ic(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.ZJ.addLowPriorityJob(function(){_.Me(k.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.db(this).removeEventListener("yt-player-updated",_.Ic(this,this.onPlayerUpdated_));if(!_.Y("kevlar_watch_flexy_playlist_manager")){var k=_.en().resolve(_.z7);_.Y("kevlar_watch_observe_playlist_navigations_killswitch")&&k.removeEventListener("yt-navigate",_.Ic(this,this.onYtNavigate_));k.cancelVideoSkip();k.removeEventListener("yt-playlist-data-updated",_.Ic(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.Y("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Me(this.hostElement,"yt-autonav-pause-player",!1);k=_.ZZ();_.Y("kevlar_exit_fullscreen_leaving_watch")&&k&&_.dW(k)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(k){this.player&&this.player.updateVideoData({rvs:k.rvs})},
getPageContents:function(k){return k&&k.contents&&k.contents.twoColumnWatchNextResults&&k.contents.twoColumnWatchNextResults.results&&k.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(k){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",k)},
onRetrieveLocation_:function(k,E){E.hasComments?E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):E.locationRetrieved("/related_ajax",void 0);k.stopPropagation()},
onSubscriptionChanged_:function(k,E){this.player&&(E?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Car("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Cc(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Cc(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(k){this.player=k;this.setPlayerState(k.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.Y("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.Y("kevlar_unified_player")||_.Y("kevlar_player_new_bootstrap_adoption"))&&_.Ui()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(k,E){E=E===void 0?!0:E;_.ZZ()&&_.Y("external_fullscreen")&&_.dW(document.documentElement);this.theaterRequested_=k;E&&_.A3("wide",k?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.Y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.qe(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Me(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(k){_.sc(k,typeof this.player),this.player&&_.sc(k,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var k;((k=this.player)==null?0:k.isFullscreen())?this.player.toggleFullscreen():_.qe(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(k,E){return this.loading?E:!!Object.keys(k).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(k){if(k){k=_.n(k);for(var E=k.next();!E.done;E=k.next())E=E.value,E.youThereRenderer&&_.zMJ(this.youThereManager_,E.youThereRenderer)}},
setPlaylistData_:function(k){return k||{}},
userEngagementConfigDataChanged_:function(k){if(k)if(k.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var E=this.youThereManager_;_.mE()<k.lowEngagementThresholdMs||_.CDk(E,!0)}else k.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.qe(this.hostElement,"yt-autonav-pause-user-engagement",[k])},
isPlayerUnavailable_:function(k,E,S){return!!k&&!this.isVideoPlayable_(k,S)&&!E},
getPlayerOverlays_:function(k){return(k==null?void 0:k.playerOverlays)||null},
isVideoPlayable_:function(k,E){if(!k)return!1;var S=k.status==="OK"||k.status==="LIVE_STREAM_OFFLINE",R=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",k)||this.get("errorScreen.ypcTrailerRenderer",k);k=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",k);var V;E=E==null?void 0:(V=E.playerOverlayRenderer)==null?void 0:V.gatedActionsOverlayRenderer;return!!S||!!R||!!k||!!E},
hasWatchNextResponseErrorRenderer:function(k){var E=this.getPageContents(k),S,R,V,N,h;return!(k==null?0:(S=k.contents)==null?0:(R=S.twoColumnWatchNextResults)==null?0:R.secondaryResults)&&!!((V=E[0])==null?0:(N=V.itemSectionRenderer)==null?0:(h=N.contents[0])==null?0:h.backgroundPromoRenderer)},
isLiveStreamOffline_:function(k){return k?k.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(k,E,S){var R=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",E),V=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];V=_.Y("web_no_skip_video_on_verification_checks")?(k==null?void 0:k.status)&&V.includes(k.status):k&&k.status==="AGE_CHECK_REQUIRED";var N=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",k);N==void 0&&(N=!0);!S||this.isVideoPlayable_(k,this.getPlayerOverlays_(E))||
R||V||!N||_.en().resolve(_.z7).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Dak()},
onPlayerFeedbackStartRequest_:function(k){_.qe(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:k}])},
onPlayerFeedbackArticleRequest_:function(k){_.qe(this.hostElement,"yt-help-dialog-requested",[k])},
onPlayerYpcContentRequest_:function(){var k,E,S,R,V,N,h,J,m=((k=this.data)==null?NaN:(E=k.contents)==null?NaN:(S=E.twoColumnWatchNextResults)==null?NaN:(R=S.secondaryResults)==null?NaN:(V=R.secondaryResults)==null?NaN:(N=V.offerModule)==null?NaN:(h=N.tvfilmOfferModuleRenderer)==null?NaN:(J=h.actionButtons)==null?NaN:J.length)-1;k=[".offerButton.buttonRenderer.",".actionButtons."+(m>=0?m:0)+".buttonRenderer."];E=_.n(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(S=E.next();!S.done;S=E.next())for(S=S.value,R=_.n(k),V=R.next();!V.done;V=R.next())if(V="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+S+V.value,V=this.get(V+"navigationEndpoint",this.data)||this.get(V+"serviceEndpoint",this.data)||this.get(V+"command",this.data)){_.Ni(V,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(k){_.Me(this.hostElement,"yt-autonav-pause-player",k)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(k){k()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(k){switch(k){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(k){switch(k){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Me(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(k)},
setPlayerState:function(k){_.vo().dispatch(_.DWY(k))},
onPlayerSubscribe_:function(k){_.qe(this.hostElement,"yt-player-subscribe",[k])},
onPlayerUnsubscribe_:function(k){_.qe(this.hostElement,"yt-player-unsubscribe",[k])},
onPlayerAdYtShowToast_:function(k){_.qe(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:k.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(k){if(k)return k},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(k){return!_.Y("web_watch_move_summary_to_sd")&&!!k},
computeWatchMetadataRefresh:function(){return _.Y("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var k,E,S,R;this.watchNextSecondaryResults=(k=this.data)==null?void 0:(E=k.contents)==null?void 0:(S=E.twoColumnWatchNextResults)==null?void 0:(R=S.secondaryResults)==null?void 0:R.secondaryResults}},
setRichGridRendererData:function(k){this.richGridRendererData=k},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var k,E=(k=this.data)==null?void 0:k.engagementPanels;if(E==null?0:E.length){k=null;E=_.n(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;var R=void 0;if(((R=S.engagementPanelSectionListRenderer)==null?void 0:R.targetId)==="engagement-panel-structured-description"){k=S;break}}var V,N,h;k=(V=k)==null?void 0:(N=V.engagementPanelSectionListRenderer)==null?void 0:(h=N.content)==null?void 0:h.structuredDescriptionContentRenderer;if(k==null?0:k.items){V=
[];N=_.n(k.items);for(h=N.next();!h.done;h=N.next()){h=h.value;if(!_.Y("sd_horizontal_list_show_nav_killswitch")){var J=R=S=E=k=void 0,m=void 0,a=(k=h.horizontalCardListRenderer)==null?void 0:(E=k.header)==null?void 0:(S=E.richListHeaderRenderer)==null?void 0:(R=S.navigationButton)==null?void 0:(J=R.buttonRenderer)==null?void 0:(m=J.command)==null?void 0:m.commandExecutorCommand;a&&a.commands&&(a.commands=a.commands.filter(function(T){return!_.W(T,_.euJ)}))}h.expandableVideoDescriptionBodyRenderer||
h.videoDescriptionHeaderRenderer||V.push(h)}return{items:V}}}},
constructWarning_:function(k){return{text:_.DE(k),type:"WARNING"}},
isPlaShelfEnabled_:function(k){if((this.get("adPlacements",k)||[]).length)return!0;k=this.get("playerAds",k)||[];return!(!k.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",k[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var k=this;_.Me(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var E=this.getScrollTop()>0;this.gestures_&&(E?this.gestures_.detach():this.gestures_.attach());E!==this.showFullerscreenEdu_&&_.Y("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=E,_.db(this).getPlayerPromise().then(function(S){S.updateFullerscreenEduButtonVisibility(k.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Me(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var k=this;this.commentsReady=!1;_.ZJ.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.uM(_.ZJ,function(){k.setComments_()},1E3)},
setComments_:function(){if(!_.Y("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.o_("cmi");_.ZJ.cancelJob(this.setCommentsJobId_);var k=this.getPageContents(this.data);if(k&&k.length){k=_.n(k);for(var E=k.next();!E.done;E=k.next())if(E=E.value,this.get("itemSectionRenderer.sectionIdentifier",E)==="comment-item-section"){this.comments=E.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Me(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.Y("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.Y("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.o_("cmc")},
doRemoveComments_:function(){this.comments={};_.Y("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.ZJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.ZJ.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(k,E){var S=_.W(E.endpoint,_.jm);S&&(!(E=this.get("data.currentVideoEndpoint.watchEndpoint"))||S.videoId!==E.videoId||S.playlistId&&S.playlistId!==E.playlistId||S.index!==void 0&&S.index!==E.index||typeof S.startTimeSeconds!=="number"||(k.stopPropagation(),this.setScrollTop(0),_.db(this).getPlayerPromise().then(function(R){var V=S.startTimeSeconds;R.seekTo(V);R.wakeUpControls();V<R.getDuration()&&R.playVideo()})))},
updatePlayerStartTime_:function(){var k=_.WGJ();"t"in k&&(k=_.j_r(k.t),this.player.seekTo(k,!0))},
updateTitleFromWatchNext:function(k){k=this.getPageContents(k);var E,S;(k=_.$n(k==null?void 0:(E=k[0])==null?void 0:(S=E.videoPrimaryInfoRenderer)==null?void 0:S.title))&&_.Me(this.hostElement,"yt-update-title",k)},
updateTitle_:function(k){k=this.get("videoDetails.title",k)||"";_.Me(this.hostElement,"yt-update-title",k)},
syncWithRemoteVideo_:function(k,E,S){if(this.active&&this.player){var R=this.player.getVideoData();if(R.video_id===S&&(S=R.list,_.Y("polymer_enable_mdx_queue")&&S&&S.startsWith("RQ")&&(S=void 0),R.video_id!==k||S!=E)){var V;_.Y("kevlar_player_watch_endpoint_navigation")?V=_.sDh(_.AXu(k,E)):V=this.buildWatchEndpoint_(k,E);_.Me(this.hostElement,"yt-navigate",{endpoint:V,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(k,E,S){return _.sv(k,E,S)},
initDclkstatus_:function(){_.xaJ()},
attachWatchPageSkeleton_:function(){var k=document.querySelector("#watch-page-skeleton");if(k){var E=k.querySelector("#primary-info"),S=k.querySelector("#secondary-info"),R=k.querySelector("#related");E&&_.Cc(this.hostElement).querySelector("#info-skeleton").appendChild(E);S&&_.Cc(this.hostElement).querySelector("#meta-skeleton").appendChild(S);R&&(_.Cc(this.hostElement).querySelector("#related-skeleton").appendChild(R),this.watchNextSkeletonEl_=R);_.Ua(k)}},
handlePlayerUpdated_:function(){_.db(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(k,E){if(this.watchNextSkeletonEl_&&typeof E!=="undefined"){var S=this.watchNextSkeletonEl_.children,R=k&&k.indexSplices.length?k.indexSplices[0].index:0;k=Math.min(this.watchNextShownItems.length,S.length);E||(R=0,k=S.length);for(E=R;E<k;E++)S[E].classList.add("hidden")}},
onPlayerFullscreenChange_:function(k){_.Y("external_fullscreen")||_.qe(this.hostElement,"yt-player-fullscreen",[k.fullscreen])},
onFullscreenChange_:function(k){this.fullscreen=k;this.gestures_&&this.gestures_.update(this.fullscreen);var E=_.db(this);E.getPlayerPromise().then(function(S){S.setFauxFullscreen(!!_.ZZ())});
this.updateFullBleedElementLocations();k&&(E.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(k,E){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!E},
computeIsDonationShelfCollapsed_:function(k){return k},
computeShouldShowMerchShelf:function(k,E){return E&&!!k},
computeResponseHasComments:function(k){var E,S,R,V,N;return!!(k==null?0:(E=k.contents)==null?0:(S=E.twoColumnWatchNextResults)==null?0:(R=S.results)==null?0:(V=R.results)==null?0:(N=V.contents)==null?0:N.some(function(h){var J;return(h==null?void 0:(J=h.itemSectionRenderer)==null?void 0:J.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(k,E){this.responseHasComments=this.computeResponseHasComments(this.data);return!!k&&!!Object.keys(k).length&&!E},
identity:_.DR,onWindowResized_:function(k){this.windowSize_=k;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.Y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.Y("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(k){var E=this;k&&k.type!=="dataloaded"&&k.type!=="dataupdated"||_.db(this).getPlayerPromise().then(function(S){var R=S.getPlayerState();R!==5&&R!==0&&(S=1/S.getVideoAspectRatio(),E.videoHeightToWidthRatio_!==S&&(E.videoHeightToWidthRatio_=S))})},
schedulePlayerSizeUpdate_:function(k){var E=this,S=_.Y("kevlar_watch_while_v2")||_.Y("web_watch_pip"),R=function(){if(E.watchMetadata){var V,N;(N=(V=E.watchMetadata).resize)==null||N.call(V)}_.db(E).getPlayerPromise().then(function(h){if(_.Y("kevlar_set_internal_player_size")){if(!S||!E.isMiniplayerActive()){var J=E.calculateCurrentPlayerSize_();h.setInternalSize(J.width,J.height)}}else h.setSize(NaN,NaN);_.Y("kevlar_watch_while")&&E.updateWatchWhileScrollThreshold_()})};
k?R():_.kq(_.ZJ,R)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(k){this.set("data.survey",k.detail)},
onYtShowSurveyCommand_:function(k){this.set("data.survey",_.W(k,_.s_J).survey)},
onDownloadedVideoDeleted:function(k){var E=this,S,R;return _.c(function(V){if(V.nextAddress==1){if(!E.active||(S=E.playerData)==null||!S.offlineState||E.videoId!==k)return V.return();(R=E.player)==null||R.stopVideo();_.g_().navigatingAwayFromWatchDeletedVideo=!0;_.Ni(_.sBC,E.hostElement);return V.yield(_.g_().navigationFinishPromise,2)}_.g_().navigatingAwayFromWatchDeletedVideo=!1;_.KR(V)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var k;this.theater?k=_.Bt(.5625*this.windowSize_.width,480,this.windowSize_.height-185):k=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==k&&(this.watchWhileScrollThreshold_=k,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var k=_.Cc(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&k){var E=this.windowSize_.height>=624,S=this.active?this.getScrollTop():0;!k.active&&E&&S>=this.watchWhileScrollThreshold_?(k.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):k.active&&(!E||S<this.watchWhileScrollThreshold_&&!_.ZZ())&&(k.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(k,E){if(k!==!0||E!==void 0){k=!_.Y("live_chat_over_engagement_panels");E=_.Cc(this.hostElement).querySelector("#chat-container");var S=_.Cc(this.hostElement).querySelector("#plj-sidebar"),R=_.Cc(this.hostElement).querySelector("#panels"),V=_.Cc(this.hostElement).querySelector("#plj-panels"),N=_.Cc(this.hostElement).querySelector("#plj-playlist"),h=_.Cc(this.hostElement).querySelector("#alerts"),J=_.Cc(this.hostElement).querySelector("#playlist"),m=_.Cc(this.hostElement).querySelector("#related"),
a=_.Cc(this.hostElement).querySelector("#donation-shelf"),T=_.Cc(this.hostElement).querySelector("#comments");this.isTwoColumns_?(h=_.Cc(this.hostElement).querySelector("#secondary-inner"),h.appendChild(S),S.appendChild(N),N.appendChild(J),S.appendChild(V),k&&h.appendChild(R),_.Y("web_watch_theater_chat")||h.appendChild(E),k||h.appendChild(R),h.appendChild(a),h.appendChild(m)):(k&&_.X$(R,h),_.X$(J,h),_.Y("web_watch_theater_chat")||_.X$(E,h),k||_.X$(R,h),_.X$(a,h),T&&(V&&_.X$(V,T),_.X$(m,T)));_.Y("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.Y("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.Y("web_watch_theater_chat")){var k=_.Cc(this.hostElement).querySelector("#chat-container"),E=this.theater&&!this.fullscreen||_.Y("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&E?_.Y("web_watch_theater_chat_beside_player")?(E=_.Cc(this.hostElement).querySelector("#panels-full-bleed-container"),(k==null?void 0:k.parentElement)!==E&&E.append(k),this.panelsBesidePlayer=!0):_.Y("web_watch_theater_fixed_chat")&&
(E=_.Cc(this.hostElement).querySelector("#columns"),(k==null?void 0:k.parentElement)!==E&&E.append(k),this.fixedPanels=!0):(_.Y("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.Y("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),E=_.Cc(this.hostElement).querySelector("#playlist"),k&&E?_.g9(k,E):_.dg(new _.LC("Missing element when updating chat location",{"chatContainer defined":!!k,"playlist defined":!!E})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(k,E){return _.Y("sw_metadata_vis_toggle_ks")?!0:!!k||!!E},
computeForceDarkPanelTheme:function(k){return _.Y("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&k:!1},
safeUpdateStyles:function(k){try{_.VO(this.hostElement,k)}catch(E){_.dg(E)}},
videoHeightToWidthRatioChanged_:function(k,E){E&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.Y("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(k){this.videoHeightToWidthRatio_=1/k},
computeIsVerticalVideo_:function(k){return k>=1},
computeIsFourThreeToSixteenNineVideo_:function(k){return k<=.7501&&k>=.5624},
computeIsExtraWideVideo_:function(k){return k<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.db(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.db(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.kJU(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(k){var E=_.Yl(k)||0;_.BT(k,E+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var k=_.Yl("yt-fullerscreen-edu-button-click-count")||0,E=_.Yl("yt-fullerscreen-edu-button-shown-count")||0,S=_.wO("external_fullscreen_button_shown_threshold"),R=k>=_.wO("external_fullscreen_button_click_threshold")||E>=S;_.db(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonSubtleModeState(R)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(k,E){return E},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.en().resolve(_.z7).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var k=this;this.panelMaxHeightUpdateJob_&&_.ZJ.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.ZJ.addLowPriorityJob(function(){k.panelMaxHeightUpdateJob_=0;var E;!k.isTwoColumns_||k.theater||k.fullscreen?E=460:E=k.calculateNormalPlayerSize_().height;var S=E+"px";_.Y("live_chat_taller_height")&&!k.theater&&(S="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.Y("live_chat_medium_height")&&
!k.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.Y("live_chat_scaled_height")&&!k.theater&&(S="calc(100vh - var(--ytd-toolbar-height) - 238px)");k.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":E+"px","--ytd-watch-flexy-chat-max-height":S,"--ytd-watch-flexy-structured-description-max-height":E+"px","--ytd-watch-flexy-comments-panel-max-height":E+"px","--ytd-comments-engagement-panel-content-height":E+"px"})})},
onYtShowEngagementPanelScrimAction_:function(k){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",k)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Ot(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(k){var E=_.Cc(this.hostElement).querySelector("#engagement-panel-scrim");k?E.addEventListener("tap",_.Ic(this,this.onEngagementPanelScrimClick_)):E.removeEventListener("tap",_.Ic(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(k){if(this.hostElement.contains(k)&&!this.scrollToAnimation_.isAnimating()){var E=k.offsetTop-24;k=k.offsetTop+k.offsetHeight+24;var S=this.getPageScrollingElement(),R=this.getScrollTop(),V=R+S.clientHeight-56;if(E<R+56)E-=56;else if(k>V)E=k-S.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,E),500)}},
onYtSignalActionScrollToComments:function(){var k=this.hostElement.querySelector("#comments");if(k&&!this.scrollToAnimation_.isAnimating()){k=k.offsetTop-56-24;if(_.Y("kevlar_comment_teaser_scroll_to_midpoint")&&(k-=_.pO().height/3,k<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,k),500)}},
onYtEngagementPanelVisibleChanged:function(k,E,S){this.active&&this.trackEngagementPanelVisibility&&!_.ZzU.includes(S)&&(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(S),E!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(S),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(k){return k?"":"watch-active-metadata"},
computeNewMetadataClass:function(k){return k?"watch-active-metadata":""},
computeFullBleedPlayer:function(k,E){return k||E},
computeDefaultLayout:function(k){return!k},
computeDefaultTwoColumnLayout:function(k,E){return!k&&E},
computeWatchWhilePanelsActive:function(k,E){return k||E},
computeNoBorderOnChat:function(k){return _.Y("web_watch_theater_chat_no_border")&&k},
computeLiveChatPresentAndExpanded:function(k,E){return k&&!E},
computePanelExpanded:function(k,E,S){return k||E||S},
onChangeMarkersVisibility:function(k){_.db(this).getPlayerPromise().then(function(E){var S;(S=E.changeMarkerVisibility)==null||S.call(E,_.W(k,_.da).isVisible||!1,_.W(k,_.da).entityKeys||[],_.W(k,_.da).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(k){this.liveChatCollapsed=k.detail;_.vo().dispatch(_.bzg(k.detail))},
provideRenderingData:function(k,E){switch(k){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=E;break;case "PRIMARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=E);this.videoPrimaryInfoRendererValue=E==null?void 0:E.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.Y("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=E);this.videoSecondaryInfoRendererValue=E==null?void 0:E.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
E;break;case "CLARIFICATION":this.clarifyBoxValue=E;break;case "LIVE_CHAT":this.conversationBar=E;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=E;break;case "PLAYLIST":this.externalPlaylistData_=E!=null?E:{};break;case "MERCH_SHELF":this.merchShelfValue=E==null?void 0:E.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=E;break;case "OFFER_MODULE":this.offerModule=E;break;case "LIMITED_STATE":this.limitedStateValue=E;break;case "DONATION_SHELF":this.donation=E;break;
case "ALERTS":this.alertsValue=E;break;case "COMMENTS":this.comments=E;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=E;break;case "ENGAGEMENT_PANELS":this.engagementPanels=E;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=E;break;case "RICH_GRID_RENDERER":this.richGridRendererData=E;break;case "EXPANDABLE_METADATA":this.expandableMetadata=E;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=E}},
toggleCinematicsActive:function(k){this.cinematicsActive=k},
isMiniplayerActive:function(){return _.en().resolve(_.yb).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(k){return WCF.map(function(E){return k.find(function(S){var R;return(S==null?void 0:(R=S.engagementPanelSectionListRenderer)==null?void 0:R.targetId)===E})}).filter(function(E){return E!==void 0})},
getNonLearningJourneyEngagementPanels:function(k){return k.filter(function(E){var S;return!WCF.includes((E==null?void 0:(S=E.engagementPanelSectionListRenderer)==null?void 0:S.targetId)||"")})}}];var FCU;var CN=function(){var k=_.p.apply(this,arguments)||this;k.flexy=!0;k.learningJourney=!0;k.viewTransitionEnabled=_.Y("enable_player_resize_transition");k.smallerChatMinHeight=_.Y("live_chat_smaller_min_height");k.cinematicTheaterMode=_.Y("web_cinematic_theater_mode");k.transparentTheaterMode=_.Y("web_transparent_theater_mode");k.cinematicFullscreen=_.Y("web_cinematic_fullscreen");k.cinematicFullscreenV2=_.Y("web_cinematic_fullscreen_v2");k.isDarkTheme=document.documentElement.hasAttribute("dark");
k.theaterLargerPlayer=_.Y("web_watch_theater_larger_player");k.defaultCollapsePlaylist=_.Y("web_watch_default_collapse_playlist");k.enableCanvasLayout=_.Y("web_enable_canvas_on_learning_journey");return k};
_.y(CN,_.p);_.I=CN.prototype;_.I.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.I.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.I.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.I.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.I.ready=function(){var k=this,E=function(){k.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.I.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.I.updateIsTwoColumnsFromBinding=function(k){_.Y("web_watch_update_narrow_width_killswitch")||_.vo().dispatch(_.nkk(!k.detail.value));this.ytdWatchBehavior.isTwoColumns_=k.detail.value};
_.I.updateFlexySmallWindowFromBinding=function(k){this.ytdWatchBehavior.flexySmallWindow_=k.detail.value};
_.I.updateFlexyLargeWindowFromBinding=function(k){this.ytdWatchBehavior.flexyLargeWindow_=k.detail.value};
_.I.updateWatchWhileWindowSizeSufficientFromBinding=function(k){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=k.detail.value};
_.I.updateWatchNextCanShowMoreFromBinding=function(k){this.ytdWatchBehavior.watchNextCanShowMore=k.detail.value};
_.I.updateShownItemsFromBinding=function(k){k.detail.path?this.set(k.detail.path,k.detail.value):this.ytdWatchBehavior.watchNextShownItems=k.detail.value};
_.I.getElement=function(k){switch(k){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23391_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23391_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.mt.Object.defineProperties(CN.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 k;if((k=this.data)==null||!k.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(k=_.W(this.data.pageVisualEffects[E],_.SB))return E=void 0,(E=k.config)==null?void 0:E.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.learningJourneyEngagementPanels)==null?void 0:k.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var k,E=(k=this.learningJourneyEngagementPanels)==null?void 0:k.find(function(P){var B;return(P==null?void 0:(B=P.engagementPanelSectionListRenderer)==null?void 0:B.panelIdentifier)==="learning-journey-engagement-panel"});
if(E){var S,R,V,N,h,J,m,a,T;if(k=(a=((m=(h=((N=E==null?void 0:(S=E.engagementPanelSectionListRenderer)==null?void 0:(R=S.content)==null?void 0:(V=R.sectionListRenderer)==null?void 0:V.contents)!=null?N:[])[0])==null?void 0:(J=h.itemSectionRenderer)==null?void 0:J.contents)!=null?m:[])[0])==null?void 0:(T=a.accordionViewModel)==null?void 0:T.onTitleTap){var w=_.Uk(k);if(w)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.V_.instance.resolveCommand(w)}}}}}}});
_.mt.Object.defineProperties(CN,{template:{configurable:!0,enumerable:!0,get:function(){if(FCU===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);FCU=k}k=FCU;return k}}});
CN.prototype.updateMiniplayerIsActiveValue=CN.prototype.updateMiniplayerIsActiveValue;CN.prototype.updateScrollTopValue=CN.prototype.updateScrollTopValue;CN.prototype.updateFullscreenValue=CN.prototype.updateFullscreenValue;CN.prototype.updateTheaterValue=CN.prototype.updateTheaterValue;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],CN.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(YpX.YtdLearningJourneyWatchBehavior),_.l("design:type",Object)],CN.prototype,"ytdWatchBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],CN.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],CN.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],CN.prototype,"playerData",void 0);_.Z([_.H(),_.l("design:type",Object)],CN.prototype,"browseData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"flexy",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"learningJourney",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"viewTransitionEnabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"smallerChatMinHeight",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"cinematicTheaterMode",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"transparentTheaterMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"cinematicFullscreen",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"cinematicFullscreenV2",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"isDarkTheme",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],CN.prototype,"theaterLargerPlayer",void 0);_.Z([_.H(),_.l("design:type",Object)],CN.prototype,"defaultCollapsePlaylist",void 0);_.Z([_.H(),_.l("design:type",Object)],CN.prototype,"enableCanvasLayout",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("playerData","browseData","enableCanvasLayout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CN.prototype,"showBrowseResponse",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("playerData","enableCanvasLayout"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],CN.prototype,"showWatchResponse",null);_.Z([_.H({selector:_.yQ}),_.l("design:type",Object)],CN.prototype,"theaterValue",void 0);_.Z([_.H({selector:_.oZ}),_.l("design:type",Object)],CN.prototype,"fullscreenValue",void 0);_.Z([_.H({selector:_.$w}),_.l("design:type",Object)],CN.prototype,"scrollTopValue",void 0);
_.Z([_.H({selector:_.Ff}),_.l("design:type",Object)],CN.prototype,"miniplayerIsActiveValue",void 0);_.Z([_.JO("#ytd-plj-player"),_.l("design:type",HTMLElement)],CN.prototype,"ytdPlayer",void 0);_.Z([_.JO("#playlist"),_.l("design:type",HTMLElement)],CN.prototype,"JSC$23391_ytdPlaylistPanelRenderer",void 0);_.Z([_.ue("ytd-comments"),_.l("design:type",HTMLElement)],CN.prototype,"ytdComments",void 0);_.Z([_.JO("#primary"),_.l("design:type",HTMLElement)],CN.prototype,"primary",void 0);
_.Z([_.JO("#secondary"),_.l("design:type",HTMLElement)],CN.prototype,"secondary",void 0);_.Z([_.JO("#player-container"),_.l("design:type",HTMLElement)],CN.prototype,"playerContainer",void 0);_.Z([_.JO("#cinematics"),_.l("design:type",HTMLElement)],CN.prototype,"JSC$23391_cinematics",void 0);_.Z([_.il("theaterValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CN.prototype,"updateTheaterValue",null);
_.Z([_.il("fullscreenValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CN.prototype,"updateFullscreenValue",null);_.Z([_.il("scrollTopValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CN.prototype,"updateScrollTopValue",null);_.Z([_.il("miniplayerIsActiveValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CN.prototype,"updateMiniplayerIsActiveValue",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],CN.prototype,"cinematicLightTheme",null);_.Z([_.H({reflectToAttribute:!0}),_.U("learningJourneyEngagementPanels"),_.l("design:type",Object),_.l("design:paramtypes",[])],CN.prototype,"hasLearningJourneyPanels",null);_.Z([_.U("learningJourneyEngagementPanels"),_.l("design:type",Object),_.l("design:paramtypes",[])],CN.prototype,"backButtonData",null);_.Z([_.D({is:"ytd-watch-learning-journey"})],CN);_.YN.registerService(_.EMi,CN);
_.bk();
}catch(e){_._DumpException(e)}
try{
_.vy("Tm0L3c");
var heS;var Jpr;var cpg=function(){return _.p.apply(this,arguments)||this};
_.y(cpg,_.p);_.Z([_.D({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],cpg);
_.b(cpg,"ytd-ghost-comments-renderer",function(){if(Jpr===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);Jpr=k}k=Jpr;return k},{mode:1});var mIB;var eeS=function(){return _.p.apply(this,arguments)||this};
_.y(eeS,_.p);_.Z([_.D({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],eeS);
_.b(eeS,"ytd-ghost-watch-metadata-renderer",function(){if(mIB===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);mIB=k}k=mIB;return k},{mode:1});var Gw=function(){var k=_.p.apply(this,arguments)||this;k.ghostGridRenderer={rows:6};k.smallerChatMinHeight=_.Y("live_chat_smaller_min_height");k.cinematicTheaterMode=_.Y("web_cinematic_theater_mode");k.transparentTheaterMode=_.Y("web_transparent_theater_mode");k.darkerPanels=_.Y("web_watch_darker_panels");k.cinematicFullscreen=_.Y("web_cinematic_fullscreen");k.cinematicFullscreenV2=_.Y("web_cinematic_fullscreen_v2");k.isDarkTheme=document.documentElement.hasAttribute("dark");return k};
_.y(Gw,_.p);_.I=Gw.prototype;_.I.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.I.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.I.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.I.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.I.ready=function(){var k=this,E=function(){k.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.I.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.I.updateIsTwoColumnsFromBinding=function(k){this.ytdWatchBehavior.isTwoColumns_=k.detail.value};
_.I.updateFlexySmallWindowFromBinding=function(k){this.ytdWatchBehavior.flexySmallWindow_=k.detail.value};
_.I.updateFlexyLargeWindowFromBinding=function(k){this.ytdWatchBehavior.flexyLargeWindow_=k.detail.value};
_.I.updateWatchWhileWindowSizeSufficientFromBinding=function(k){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=k.detail.value};
_.I.updateWatchNextCanShowMoreFromBinding=function(k){this.ytdWatchBehavior.watchNextCanShowMore=k.detail.value};
_.I.updateShownItemsFromBinding=function(k){_.Y("swatcheroo_direct_use_rich_grid")||(k.detail.path?this.set(k.detail.path,k.detail.value):this.ytdWatchBehavior.watchNextShownItems=k.detail.value)};
_.I.getElement=function(k){switch(k){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23379_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23379_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.mt.Object.defineProperties(Gw.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null||!k.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(k=_.W(this.data.pageVisualEffects[E],_.SB))return E=void 0,(E=k.config)==null?void 0:E.enableInLightTheme;return!1}}});
Gw.prototype.updateMiniplayerIsActiveValue=Gw.prototype.updateMiniplayerIsActiveValue;Gw.prototype.updateScrollTopValue=Gw.prototype.updateScrollTopValue;Gw.prototype.updateFullscreenValue=Gw.prototype.updateFullscreenValue;Gw.prototype.updateTheaterValue=Gw.prototype.updateTheaterValue;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Gw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Gw.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.nnF.YtdWatchBehavior),_.l("design:type",Object)],Gw.prototype,"ytdWatchBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Gw.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Gw.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Gw.prototype,"ghostGridRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],Gw.prototype,"playerData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gw.prototype,"smallerChatMinHeight",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gw.prototype,"cinematicTheaterMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gw.prototype,"transparentTheaterMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gw.prototype,"darkerPanels",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gw.prototype,"cinematicFullscreen",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gw.prototype,"cinematicFullscreenV2",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gw.prototype,"isDarkTheme",void 0);_.Z([_.H({selector:_.yQ}),_.l("design:type",Object)],Gw.prototype,"theaterValue",void 0);_.Z([_.H({selector:_.oZ}),_.l("design:type",Object)],Gw.prototype,"fullscreenValue",void 0);_.Z([_.H({selector:_.$w}),_.l("design:type",Object)],Gw.prototype,"scrollTopValue",void 0);
_.Z([_.H({selector:_.Ff}),_.l("design:type",Object)],Gw.prototype,"miniplayerIsActiveValue",void 0);_.Z([_.JO("#ytd-player"),_.l("design:type",HTMLElement)],Gw.prototype,"ytdPlayer",void 0);_.Z([_.JO("#playlist"),_.l("design:type",HTMLElement)],Gw.prototype,"JSC$23379_ytdPlaylistPanelRenderer",void 0);_.Z([_.JO("#ytd-comments"),_.l("design:type",HTMLElement)],Gw.prototype,"ytdComments",void 0);_.Z([_.JO("#primary"),_.l("design:type",HTMLElement)],Gw.prototype,"primary",void 0);
_.Z([_.JO("#secondary"),_.l("design:type",HTMLElement)],Gw.prototype,"secondary",void 0);_.Z([_.JO("#player-container"),_.l("design:type",HTMLElement)],Gw.prototype,"playerContainer",void 0);_.Z([_.JO("#cinematics"),_.l("design:type",HTMLElement)],Gw.prototype,"JSC$23379_cinematics",void 0);_.Z([_.il("theaterValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gw.prototype,"updateTheaterValue",null);
_.Z([_.il("fullscreenValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gw.prototype,"updateFullscreenValue",null);_.Z([_.il("scrollTopValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gw.prototype,"updateScrollTopValue",null);_.Z([_.il("miniplayerIsActiveValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gw.prototype,"updateMiniplayerIsActiveValue",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gw.prototype,"cinematicLightTheme",null);
_.b(Gw,"ytd-watch-grid",function(){if(heS===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);heS=k}k=heS;return k},{mode:2});_.YN.registerService(_.kwj,Gw);
_.bk();
}catch(e){_._DumpException(e)}
try{
_.vy("CF909");
var irr;var OL=function(){var k=_.p.apply(this,arguments)||this;k.viewTransitionEnabled=_.Y("enable_player_resize_transition");k.smallerChatMinHeight=_.Y("live_chat_smaller_min_height");k.cinematicTheaterMode=_.Y("web_cinematic_theater_mode");k.transparentTheaterMode=_.Y("web_transparent_theater_mode");k.cinematicFullscreen=_.Y("web_cinematic_fullscreen");k.isDarkTheme=document.documentElement.hasAttribute("dark");k.defaultCollapsePlaylist=_.Y("web_watch_default_collapse_playlist");k.retroModeReduxValue=
!1;k.persistentPanelVisibleValue=!1;return k};
_.y(OL,_.p);_.I=OL.prototype;_.I.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.I.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.I.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.I.updateRetroModeReduxValue=function(){_.Y("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.I.updatePersistentPanelVisibleValue=function(){_.Y("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.I.ready=function(){var k=this,E=function(){k.onColumnScroll()};
this.primary.addEventListener("scroll",E);this.secondary.addEventListener("scroll",E)};
_.I.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.I.updateIsTwoColumnsFromBinding=function(k){_.Y("web_watch_update_narrow_width_killswitch")||_.vo().dispatch(_.nkk(!k.detail.value));this.ytdWatchBehavior.isTwoColumns_=k.detail.value};
_.I.updateFlexySmallWindowFromBinding=function(k){this.ytdWatchBehavior.flexySmallWindow_=k.detail.value};
_.I.updateFlexyLargeWindowFromBinding=function(k){this.ytdWatchBehavior.flexyLargeWindow_=k.detail.value};
_.I.updateWatchWhileWindowSizeSufficientFromBinding=function(k){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=k.detail.value};
_.I.updateWatchNextCanShowMoreFromBinding=function(k){this.ytdWatchBehavior.watchNextCanShowMore=k.detail.value};
_.I.updateShownItemsFromBinding=function(k){k.detail.path?this.set(k.detail.path,k.detail.value):this.ytdWatchBehavior.watchNextShownItems=k.detail.value};
_.I.getElement=function(k){switch(k){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23374_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23374_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}};
_.mt.Object.defineProperties(OL.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null||!k.pageVisualEffects)return!1;for(var E=0;E<this.data.pageVisualEffects.length;E++)if(k=_.W(this.data.pageVisualEffects[E],_.SB))return E=void 0,(E=k.config)==null?void 0:E.enableInLightTheme;return!1}}});
_.mt.Object.defineProperties(OL,{template:{configurable:!0,enumerable:!0,get:function(){if(irr===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);irr=k}k=irr;return k}}});
OL.prototype.updatePersistentPanelVisibleValue=OL.prototype.updatePersistentPanelVisibleValue;OL.prototype.updateRetroModeReduxValue=OL.prototype.updateRetroModeReduxValue;OL.prototype.updateScrollTopValue=OL.prototype.updateScrollTopValue;OL.prototype.updateFullscreenValue=OL.prototype.updateFullscreenValue;OL.prototype.updateTheaterValue=OL.prototype.updateTheaterValue;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],OL.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.nnF.YtdWatchBehavior),_.l("design:type",Object)],OL.prototype,"ytdWatchBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],OL.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],OL.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],OL.prototype,"playerData",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OL.prototype,"viewTransitionEnabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OL.prototype,"smallerChatMinHeight",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OL.prototype,"cinematicTheaterMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OL.prototype,"transparentTheaterMode",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OL.prototype,"cinematicFullscreen",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OL.prototype,"isDarkTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],OL.prototype,"defaultCollapsePlaylist",void 0);_.Z([_.H({selector:_.yQ}),_.l("design:type",Object)],OL.prototype,"theaterValue",void 0);_.Z([_.H({selector:_.oZ}),_.l("design:type",Object)],OL.prototype,"fullscreenValue",void 0);
_.Z([_.H({selector:_.$w}),_.l("design:type",Object)],OL.prototype,"scrollTopValue",void 0);_.Z([_.H({selector:_.Ff}),_.l("design:type",Object)],OL.prototype,"miniplayerIsActive",void 0);_.Z([_.H({selector:function(k){return k.watch.isWatchRetroMode}}),
_.l("design:type",Object)],OL.prototype,"retroModeReduxValue",void 0);_.Z([_.H({selector:_.K5.persistentPanelVisibleSelector}),_.l("design:type",Object)],OL.prototype,"persistentPanelVisibleValue",void 0);_.Z([_.ue("ytd-player"),_.l("design:type",HTMLElement)],OL.prototype,"ytdPlayer",void 0);_.Z([_.JO("#playlist"),_.l("design:type",HTMLElement)],OL.prototype,"JSC$23374_ytdPlaylistPanelRenderer",void 0);_.Z([_.ue("ytd-comments"),_.l("design:type",HTMLElement)],OL.prototype,"ytdComments",void 0);
_.Z([_.JO("#primary"),_.l("design:type",HTMLElement)],OL.prototype,"primary",void 0);_.Z([_.JO("#secondary"),_.l("design:type",HTMLElement)],OL.prototype,"secondary",void 0);_.Z([_.JO("#player-container"),_.l("design:type",HTMLElement)],OL.prototype,"playerContainer",void 0);_.Z([_.JO("#below"),_.l("design:type",HTMLElement)],OL.prototype,"below",void 0);_.Z([_.JO("#cinematics"),_.l("design:type",HTMLElement)],OL.prototype,"JSC$23374_cinematics",void 0);
_.Z([_.JO("#persistent-panel-container"),_.l("design:type",HTMLElement)],OL.prototype,"persistentPanelContainer",void 0);_.Z([_.il("theaterValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OL.prototype,"updateTheaterValue",null);_.Z([_.il("fullscreenValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OL.prototype,"updateFullscreenValue",null);
_.Z([_.il("scrollTopValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OL.prototype,"updateScrollTopValue",null);_.Z([_.il("retroModeReduxValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OL.prototype,"updateRetroModeReduxValue",null);_.Z([_.il("persistentPanelVisibleValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OL.prototype,"updatePersistentPanelVisibleValue",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],OL.prototype,"cinematicLightTheme",null);_.Z([_.D({is:"ytd-watch-flexy"})],OL);_.YN.registerService(_.Cqm,OL);
_.bk();
}catch(e){_._DumpException(e)}
try{
_.vy("nmfa2d");
var Yvg;var bU=function(){var k=_.p.apply(this,arguments)||this;k.hidden=!1;k.errorScreen=null;k.playlistData={};return k};
_.y(bU,_.p);_.I=bU.prototype;_.I.getPlayer=function(){return this.ytdPlayer};
_.I.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:_.eW(["aa","eocs"])}}};
_.I.onActiveChanged=function(){_.vo().dispatch(_.kXU(this.ytPageBehavior.active))};
_.I.playerDataChanged=function(){var k;(k=this.watchController)==null||k.setPlayerResponse(this.playerData)};
_.I.dataChanged=function(){var k;(k=this.watchController)==null||k.setWatchNextResponse(this.data)};
_.I.sizeChanged=function(){var k,E;(E=(k=this.metadata).resize)==null||E.call(k)};
_.I.attached=function(){this.watchController=new _.fN(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.I.detached=function(){_.nu(this.watchController);this.watchController=void 0};
_.I.getPlayerContainer=function(){return this.playerContainer};
_.I.getElement=function(k){switch(k){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.I.provideRenderingData=function(k,E){switch(k){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=E;break;case "ERROR_SCREEN":this.errorScreen=E!=null?E:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=E;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=E;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=E;break;case "RICH_METADATA":this.richMetadataRowContainer=E;break;case "CLARIFICATION":this.clarificationData=E;break;case "PLAYLIST":this.playlistData=
E!=null?E:{};break;case "MERCH_SHELF":this.merchShelf=E;break;case "TICKET_SHELF":this.ticketShelf=E;break;case "LIMITED_STATE":this.limitedState=E;break;case "DONATION_SHELF":this.donationShelf=E;break;case "ALERTS":this.alerts=E}};
_.mt.Object.defineProperties(bU.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return!this.hidden&&!!((k=this.data)==null?0:(E=k.contents)==null?0:(S=E.twoColumnWatchNextResults)==null?0:S.conversationBar)}}});
bU.prototype.sizeChanged=bU.prototype.sizeChanged;bU.prototype.dataChanged=bU.prototype.dataChanged;bU.prototype.playerDataChanged=bU.prototype.playerDataChanged;bU.prototype.onActiveChanged=bU.prototype.onActiveChanged;_.Z([_.g(_.NR.YtPageBehavior),_.l("design:type",Object)],bU.prototype,"ytPageBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],bU.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bU.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],bU.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],bU.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"playerData",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bU.prototype,"hidden",void 0);_.Z([_.JO("#ytd-player"),_.l("design:type",HTMLElement)],bU.prototype,"ytdPlayer",void 0);_.Z([_.JO("#player-container"),_.l("design:type",HTMLElement)],bU.prototype,"playerContainer",void 0);_.Z([_.JO("#metadata"),_.l("design:type",Object)],bU.prototype,"metadata",void 0);_.Z([_.JO("#playlist"),_.l("design:type",HTMLElement)],bU.prototype,"playlistPanel",void 0);
_.Z([_.H({selector:_.ios,reflectToAttribute:!0}),_.l("design:type",Object)],bU.prototype,"fixie",void 0);_.Z([_.H({selector:_.nOs,reflectToAttribute:!0}),_.l("design:type",Object)],bU.prototype,"singleColumn",void 0);_.Z([_.H({selector:function(k){return _.yQ(k)&&!_.oZ(k)},
reflectToAttribute:!0}),_.l("design:type",Object)],bU.prototype,"theater",void 0);_.Z([_.H({selector:_.oZ,reflectToAttribute:!0}),_.l("design:type",Object)],bU.prototype,"fullscreen",void 0);_.Z([_.H({selector:_.OIN}),_.l("design:type",Object)],bU.prototype,"windowSize",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"singleColumnContents",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"errorScreen",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"playlistData",void 0);
_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"videoPrimaryInfoRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"videoSecondaryInfoRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"richMetadataRowContainer",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"clarificationData",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"commentsEntryPointHeaderRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"ticketShelf",void 0);
_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"merchShelf",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"donationShelf",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"limitedState",void 0);_.Z([_.H(),_.l("design:type",Object)],bU.prototype,"alerts",void 0);_.Z([_.U("playlistData"),_.l("design:type",Object),_.l("design:paramtypes",[])],bU.prototype,"hasPlaylistData",null);
_.Z([_.U("data","hidden"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],bU.prototype,"hasChat",null);_.Z([_.il("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bU.prototype,"onActiveChanged",null);_.Z([_.il("playerData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bU.prototype,"playerDataChanged",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bU.prototype,"dataChanged",null);_.Z([_.il("windowSize","singleColumn"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bU.prototype,"sizeChanged",null);
_.b(bU,"ytd-watch-fixie",function(){if(Yvg===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);Yvg=k}k=Yvg;return k},{mode:1});_.YN.registerService(_.G31,bU);
_.bk();
}catch(e){_._DumpException(e)}
try{
_.vy("xwEKAe");
var QhX=function(k){return _.IW(k)?k.getAttribute("jsname")==="coFSxe":!1},OOg=function(k,E){E.id||(E.id="ow"+_.Oj(E));
k.setAttribute("jsowner",E.id);k.__owner=E;var S=_.lh(E,QhX);S&&(_.BWd.has(S)||_.BWd.set(S,[]),_.BWd.get(S).push(k));(S=_.PWC.get(E))||_.PWC.set(E,S=[]);S.includes(k)||S.push(k);E.setAttribute("__IS_OWNER",!0)},Gos=function(){var k=_.WqC(1);
k=_.no(k,_.UG1);if(!(_.YQt(k)||k[_.Yt1]&&!k.__hasBeenSet))return k.value},ChF=function(k){var E=_.nz();
if(E.getFlag(202))E=E.getFlag(201);else{var S;E=(k==null?void 0:(S=k.config)==null?void 0:S.settingOnByDefault)!==void 0?k.config.settingOnByDefault:!_.Y("web_shorts_cinematics_disabled_by_default")}return E},kxo=function(k){var E=_.nz();
_.iD(0,201,k);_.iD(0,202,!0);E.save()},E4B=function(k){return(k=_.nKA(k))?_.hqm(k):0},Sas=function(k){return k.shorts.isSmallScreenSqueezeback},R2X=function(k){return k.shorts.isPlaybackStarted},I7J=function(k){var E=_.WqC(2),S=new Set;
_.bI(function(){return void S.forEach(function(R){return void R()})});
return function(R){var V=_.Ie(E);try{var N=Vo$(N7$(k),R);S.add(N);return function(){N();S.delete(N)}}finally{_.Ie(V)}}},n4g=function(k){var E=k.children;
var S=k.root;_.vC(function(){var R=I7J(S)(E);_.bI(R)});
return document.createTextNode("")},Vo$=function(k,E){var S=iuB(k);
(k=Gos())&&OOg(S,k);_.F4.setUp();E=_.n(_.dBm(E,!0));k=E.next().value;var R=E.next().value;E=_.n(k);for(k=E.next();!k.done;k=E.next())S.appendChild(k.value);_.F4.log(S);_.F4.tearDown();return function(){R();S.remove()}},N7$=function(k){if(typeof k==="string")return k=document.querySelector(k),_.uDa(k),k;
if(_.w0(k)&&k.nodeType===Node.ELEMENT_NODE)return k;if(!k.__value&&!k.__optional){var E=_.FSb.USE_ELEMENT_NOT_ASSIGNED(k.__expectedTagName);k.__hasErrored=!0;throw E;}return k.value},iuB=function(k){var E=document.createElementNS(k.namespaceURI,k.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return k.appendChild(E)},h2$=function(k,E,S,R){k=E-k;
S=R-S;return Math.sqrt(k*k+S*S)},JPs=function(k,E){k&&_.en().resolve(_.t3).resolveCommand(k,{forceClickLogging:!0,
form:{element:E}})},cPB=function(){return _.en().resolve(_.KM).dismissedIndices},mTS=function(k,E){var S,R,V,N,h,J,m,a,T;
return _.c(function(w){if(w.nextAddress==1){S=_.en().resolve(_.DjW);N=(R=S)==null?void 0:(V=R.reelWatchEndpointMap)==null?void 0:V.reelWatchSequence;J=(h=k.innertubeTransportService)!=null?h:_.en().resolve(_.oR);if(!N)return w.jumpTo(2);m=N();return(a=m.JSC$13266_getRequest(E,{}))?w.yield(_.qF(J,a.innerTubeRequest,a.input,E.clickTrackingParams,a.config),4):w.jumpTo(2)}return w.nextAddress!=2?(T=w.yieldResult,w.return(T)):w.return(void 0)})},e2u=function(k){return _.zX({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:k}})},a7g=function(k){return _.zX({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:k}})},toU=function(k){return _.zX({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:k}})};var FU=function(k,E){if(k instanceof FU)this.array_=k.array_;else{var S;if(S=_.sj(k))a:{for(var R=S=0;R<k.length;R++){if(!_.sj(k[R])||S>0&&k[R].length!=S){S=!1;break a}for(var V=0;V<k[R].length;V++)if(typeof k[R][V]!=="number"){S=!1;break a}S==0&&(S=k[R].length)}S=S!=0}if(S)this.array_=_.d1(k);else if(k instanceof _.KO)this.array_=T7B(k.height,k.width);else if(typeof k==="number"&&typeof E==="number"&&k>0&&E>0)this.array_=T7B(k,E);else throw Error("Lo");}this.size_=new _.KO(this.array_[0].length,
this.array_.length)},wyo=function(k,E,S){for(var R=0;R<k.getSize().height;R++)for(var V=0;V<k.getSize().width;V++)E.call(S,k.array_[R][V],R,V,k)},PkS=function(k,E){var S=new FU(k.getSize());
wyo(k,function(R,V,N){S.array_[V][N]=E.call(void 0,R,V,N,k)});
return S},T7B=function(k,E){for(var S=[],R=0;R<k;R++){S[R]=[];
for(var V=0;V<E;V++)S[R][V]=0}return S};
FU.prototype.add=function(k){if(!_.F7U(this.size_,k.getSize()))throw Error("Mo");return PkS(this,function(E,S,R){return E+k.array_[S][R]})};
FU.prototype.equals=function(k,E){if(this.size_.width!=k.size_.width||this.size_.height!=k.size_.height)return!1;E=E||0;for(var S=0;S<this.size_.height;S++)for(var R=0;R<this.size_.width;R++)if(!_.W7r(this.array_[S][R],k.array_[S][R],E))return!1;return!0};
FU.prototype.getSize=function(){return this.size_};
var ym=function(k,E,S){return E>=0&&E<k.size_.height&&S>=0&&S<k.size_.width?k.array_[E][S]:null};
FU.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var B7B=function(k,E,S,R){if(!(E>=0&&E<k.size_.height&&S>=0&&S<k.size_.width))throw Error("No`"+E+"`"+S+"`"+k.size_.height+"`"+k.size_.width);k.array_[E][S]=R};
FU.prototype.multiply=function(k){if(k instanceof FU){if(this.size_.width!=k.getSize().height)throw Error("Oo");return Yar(this,k)}if(typeof k==="number")return Wbs(this,k);throw Error("Po");};
var Yar=function(k,E){var S=new FU(k.size_.height,E.getSize().width);wyo(S,function(R,V,N){for(var h=R=0;h<this.size_.width;h++)R+=ym(this,V,h)*ym(E,h,N);B7B(S,V,N,R)},k);
return S},Wbs=function(k,E){return PkS(k,function(S){return S*E})};var FbB=new _.z_("inlineSurveyRenderer");var yPN=new _.z_("interstitialViewModel");var o4$=new _.z_("reelNavigateCommand");var Xyr=new _.z_("reelNonVideoContentDismissalCommand");var g4N=new _.z_("showReelsCommentsOverlayCommand");var UTX=new _.z_("shortsSuggestedActionViewModel");var HuB=new _.z_("videoInteractionPopUpRenderer");var KbX=new _.z_("pollChoiceData");var pyg;var APJ;var rPo;var oP=function(){var k=_.p.apply(this,arguments)||this;k.ctaVisualElement=null;k.currentCsn=null;return k};
_.y(oP,_.p);_.I=oP.prototype;_.I.onDataChanged=function(){this.maybeLogShows()};
_.I.computeButtonShape=function(){var k=this;if(this.data)return{buttonText:_.$n(this.data.text),state:"active",onTap:function(){k.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.I.maybeCreateCtaVe=function(){var k;if((k=this.data)!=null&&k.badgeInteractionLogging){var E;if(k=(E=this.data.badgeInteractionLogging)==null?void 0:E.trackingParams)this.ctaVisualElement=_.tV(k)}};
_.I.maybeLogClicks=function(){this.currentCsn=_.Fe(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Dv(this.currentCsn,this.ctaVisualElement)};
_.I.maybeLogShows=function(){this.currentCsn=_.Fe(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Lz(this.currentCsn,[this.ctaVisualElement])};
_.I.onTap=function(){var k;if((k=this.data)!=null&&k.onClickCommand){var E;this.ytComponentBehavior.resolveCommand((E=this.data)==null?void 0:E.onClickCommand);this.maybeLogClicks()}};
oP.prototype.onDataChanged=oP.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],oP.prototype,"ytComponentBehavior",void 0);_.Z([_.H({}),_.l("design:type",Object)],oP.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],oP.prototype,"onDataChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],oP);
_.b(oP,"ytd-shopping-overlay-badge-renderer",function(){if(rPo!==void 0)return rPo;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return rPo=k},{mode:1});_.qi(_.gOt,"reel-sound-metadata-view-model",{props:{data:_.sk,overlayDensity:_.sk}});_.qi(_.FqY,"player-disclosure-view-model",{props:{data:_.Nq,extractOverlay:_.Nq}});_.qi(_.MsC,"pivot-button-view-model",{props:{data:_.sk,className:_.sk}});_.qi(_.qep,"reel-action-bar-view-model",{props:{data:_.Nq,buttonShapeOverrideables:_.Nq}});_.qi(_.UGt,"yt-reel-metapanel-view-model",{props:{data:_.Nq,overlayDensity:_.Nq,extractOverlay:_.Nq}});var ubJ=_.f(function(k){var E=k.children;var S=k.region;k=_.n(_.yg(void 0,void 0,"MsSyte"));var R=k.next().value,V=k.next().value;k=_.n(_.yg("0px",void 0,"U9Yihd"));var N=k.next().value,h=k.next().value;k=_.n(_.yg("0px",void 0,"UO1H6d"));var J=k.next().value,m=k.next().value;k=_.n(_.yg(0,void 0,"sMVTKb"));var a=k.next().value,T=k.next().value;k=_.n(_.yg(0,void 0,"kZZV8b"));var w=k.next().value,P=k.next().value,B=function(){var q=R();if(q){var M;if(((M=_.Sq())==null?void 0:M.getPlayerState())!==-1){q.style.display=
"inherit";var d;(d=_.Sq())==null||d.removeEventListener("onStateChange",B)}K()}},F=function(){var q=document.querySelectorAll("video");
return Array.from(q).find(function(M){var d;return M==null?void 0:(d=M.style)==null?void 0:d.width})},K=function(){var q=F();
if(q){T(q.getBoundingClientRect().width);P(q.getBoundingClientRect().height);var M;h((q==null?void 0:(M=q.style)==null?void 0:M.left)||"0px");var d;m((q==null?void 0:(d=q.style)==null?void 0:d.top)||"0px")}};
_.vX(function(){var q=R();if(q){var M,d,z;if(((M=_.Sq())==null?void 0:M.getPlayerState())===-1&&Math.round(((z=(d=_.Sq())==null?void 0:d.getVideoAspectRatio())!=null?z:0)*100)!==Math.round(a()/w()*100)){q.style.display="none";var kb,TI;P(a()/((TI=(kb=_.Sq())==null?void 0:kb.getVideoAspectRatio())!=null?TI:1))}}},"jJLfwe");
var r=function(){K()},x;
_.vC(function(){K();var q;if(!(S==null?0:(q=S())==null?0:q.transformationMatrix))throw Error("To");var M;(M=_.Sq())==null||M.addEventListener("onStateChange",B);if(window.ResizeObserver){if(q=F())x=new ResizeObserver(r),x.observe(q)}else window.addEventListener("resize",K);_.bI(function(){var d;(d=_.Sq())==null||d.removeEventListener("onStateChange",B);x?x.disconnect():window.removeEventListener("resize",K)})});
var L=function(){var q,M,d=(M=S==null?void 0:(q=S())==null?void 0:q.transformationMatrix)!=null?M:[];q=a();M=w();for(var z=[],kb=0,TI=-1;kb<d.length;kb++)kb%3===0&&(TI++,z[TI]=[]),z[TI].push(d[kb]);d=new FU(z);z=new FU([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);z=d.multiply(z);d=new FU([[0,0],[0,0],[0,0],[0,0]]);for(kb=0;kb<z.getSize().width;kb++){TI=ym(z,0,kb);var a1=ym(z,1,kb);if(TI===null||a1===null)throw Error("So`"+(kb+1).toString());B7B(d,kb,0,TI*q);B7B(d,kb,1,a1*M)}q=ym(d,0,0);kb=ym(d,1,0);M=ym(d,0,
1);TI=ym(d,1,1);if(q===null||kb===null||M===null||TI===null)throw Error("Qo");z=h2$(q,kb,M,TI);a1=ym(d,3,0);d=ym(d,3,1);if(a1===null||d===null)throw Error("Ro");d=h2$(q,a1,M,d);TI=(Number((TI*-1).toFixed(2))-Number((M*-1).toFixed(2)))/(Number(kb.toFixed(2))-Number(q.toFixed(2)));a1=Math.atan(TI)*180/Math.PI;kb=TI===Number.POSITIVE_INFINITY?-90:TI===Number.NEGATIVE_INFINITY?90:Object.is(TI,-0)?180:TI===0?0:TI>0?a1*-1:q<kb?a1*-1:Math.abs(a1)+180;return"left:calc("+q+"px + "+N()+"); top:calc("+(M+"px + "+
J()+"); width:")+(z+"px; height:")+(d+"px; transform:rotate(")+(kb+"deg);")};
return _.e(n4g,{root:"#sticker-layer"},function(){return _.e("yt-overlay-sticker",{el:_.Z0(V),style:L,class:"ytOverlayStickerHost"},E)})},"Vm");var xTk=_.f(function(k){function E(){var B,F,K,r,x=(F=_.W((B=m())==null?void 0:B.command,_.JfY))==null?void 0:(K=F.item)==null?void 0:(r=K.notificationTextRenderer)==null?void 0:r.successResponseText;if(x)B=_.ZE(x),_.qe(R.value,"yt-open-popup-action",[B,R.value]);else if(a())JPs(a(),R.value);else{var L;JPs((L=m())==null?void 0:L.command,R.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var S=k.data;var R=_.VH("svg"),V=_.n(_.yg(!1,void 0,"i4BL1"));k=V.next().value;var N=V.next().value,h=_.n(_.yg(!1,void 0,"FzRJKd"));V=h.next().value;var J=h.next().value,m=function(){var B;return _.W((B=S())==null?void 0:B.popUp,HuB)},a=function(){var B;
return(B=S())==null?void 0:B.command},T=function(){return _.W(a(),_.Jl1)!==void 0};
h=_.RZ(function(){E();return!1});
var w={},P={};return _.e("svg",{"on:mouseover":_.RZ(function(){T()&&N(!0);J(!0);return!1}),
"on:mouseout":_.RZ(function(){N(!1);J(!1);return!1}),
"on:keydown":_.RZ(function(B){B.key==="Enter"&&E();return!1}),
"on:focus":_.RZ(function(){T()&&N(!0);return!1}),
"on:blur":_.RZ(function(){T()&&N(!1);return!1}),
el:R,tabindex:0,"aria-label":function(){var B;return(B=S())==null?void 0:B.a11yString},
id:"player-overlay-video-interaction-svg",class:_.SQ("ytPlayerOverlayInteractionInteractionsSvg",(w.ytPlayerOverlayInteractionInteractionsSvgHover=k,w),(P.ytPlayerOverlayInteractionInteractionsSvgHideOutline=V,P)),role:"button","on:click":h})},"Ym");_.qi(_.f(function(k){var E=k.data;_.vC(function(){var S;if((S=E())==null?0:S.trackingParams){var R;_.JV().graftServerVe((R=E().trackingParams)!=null?R:"")}});
return _.e("yt-player-overlay-interaction",null,_.e(ubJ,{region:function(){var S,R;return(S=E())==null?void 0:(R=S.regions)==null?void 0:R[0]}},_.e(xTk,Object.assign({},k))))},"Xm"),"yt-player-overlay-interaction",{props:{data:_.Nq}});var LbX=_.f(function(k){var E=k.data;return _.e("yt-overlay-poll-sticker",null,_.e(ubJ,{region:function(){var S,R;return(S=E())==null?void 0:(R=S.region)==null?void 0:R.interactionRegion}},_.e("div",{class:_.SQ("ytOverlayPollStickerHost")},_.e("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return E().questionText}," "),_.e(_.jw,{each:function(){return E().pollChoiceConfigs||[]}},function(S){var R;
return _.e("div",null,((R=_.W(S==null?void 0:S.renderer,KbX))==null?void 0:R.text)||"error")}))))},"Zm");_.qi(_.f(function(k){var E=k.data;return _.e("yt-stickers-layer",null,_.e(_.jw,{each:function(){var S;return((S=E())==null?void 0:S.stickers)||[]}},function(S){return _.e(_.t,{cond:function(){return _.Y("enable_shorts_poll_stickers_web")},
then:function(){return _.e(_.t,{cond:function(){return S==null?void 0:S.pollSticker},
then:function(R){return _.e(LbX,{data:R})}})}})}))},"$m"),"yt-stickers-layer",{props:{data:_.Nq}});var XU=function(){var k=_.p.apply(this,arguments)||this;k.showScrubber=!1;k.isWatchWhileMode=!1;k.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");k.enablePollStickers=_.Y("enable_shorts_poll_stickers_web");k.enableShortsModernControls=_.Y("web_shorts_modern_controls");k.anchoredPanelActive=!1;k.enableLivingroomLayout=_.Y("reels_enable_livingroom_layout");k.enablePlayerMetadataContainer=_.Y("reels_web_enable_metadata_container");k.enableSqueezebackPanels=_.Y("web_shorts_enable_squeezeback_panels");
k.useAspectRatio=_.Y("web_use_aspect_ratio");k.isSqueezebackActive=!1;k.smallScreenSqueezeback=!1;k.isPlayerStarted=!1;k.overlayDensity=0;k.extractOverlay=!1;k.extractActionBar=!1;k.isOverlay=!1;k.isImmersive=!1;k.isImmersiveHorizontal=!1;k.isFullscreen=!1;k.onWindowResized=function(){var E;k.set("isImmersive",((E=window.getComputedStyle(k.hostElement))==null?void 0:E.getPropertyValue("--immersive-mode-on"))==="1");k.set("isImmersiveHorizontal",k.isImmersive&&k.enableLivingroomLayout&&!k.isWatchWhileMode)};
return k};
_.y(XU,_.p);_.I=XU.prototype;_.I.updateIsOverlay=function(k){this.isOverlay=k.detail.value};
_.I.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.I.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.I.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.I.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.I.onOverlayDensityChange=function(){var k=_.Cc(this.hostElement).querySelector("ytd-info-panel-container-renderer");k&&(k.set("extractOverlay",this.extractOverlay),k.set("roundedContainer",this.extractOverlay))};
_.I.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.I.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.I.ready=function(){(_.Y("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"))&&(!_.Y("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.P_("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.P_("reels_action_justified_content")||"flex-start")};
_.I.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}}};
_.I.setFakeLoadingButtons=function(){_.Y("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Vi("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Vi("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Vi("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Vi("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Vi("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()};
_.I.setEmptyOverlayMetadata=function(){_.Y("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}))};
_.mt.Object.defineProperties(XU.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.infoPanel)}}});
XU.prototype.onOverlayDensityChange=XU.prototype.onOverlayDensityChange;XU.prototype.onIsActiveChanged=XU.prototype.onIsActiveChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],XU.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],XU.prototype,"ytdReduxBehavior",void 0);
_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],XU.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],XU.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],XU.prototype,"isActive",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],XU.prototype,"hidden",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],XU.prototype,"useShortsIcon",void 0);
_.Z([_.H({value:"left"}),_.l("design:type",String)],XU.prototype,"buttonTooltipPosition",void 0);_.Z([_.H({value:_.Y("reels_enable_livingroom_layout")?"top":"left"}),_.l("design:type",String)],XU.prototype,"likeButtonTooltipPosition",void 0);_.Z([_.H({value:"none"}),_.l("design:type",String)],XU.prototype,"textTransform",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"showScrubber",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"isWatchWhileMode",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.infoPanel"),_.l("design:type",Object),_.l("design:paramtypes",[])],XU.prototype,"hasInfoPanel",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"enableAnchoredPanel",void 0);_.Z([_.H(),_.l("design:type",Object)],XU.prototype,"enablePollStickers",void 0);
_.Z([_.H(),_.l("design:type",Object)],XU.prototype,"enableShortsModernControls",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"anchoredPanelActive",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"enableLivingroomLayout",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],XU.prototype,"enablePlayerMetadataContainer",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"enableSqueezebackPanels",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"useAspectRatio",void 0);_.Z([_.H({selector:_.MVm,reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"isSqueezebackActive",void 0);_.Z([_.H({selector:Sas,reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"smallScreenSqueezeback",void 0);
_.Z([_.H({selector:R2X}),_.l("design:type",Object)],XU.prototype,"isPlayerStarted",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"overlayDensity",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"extractOverlay",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"extractActionBar",void 0);_.Z([_.H(),_.l("design:type",Object)],XU.prototype,"isOverlay",void 0);
_.Z([_.H(),_.l("design:type",Object)],XU.prototype,"isImmersive",void 0);_.Z([_.H(),_.l("design:type",Object)],XU.prototype,"isImmersiveHorizontal",void 0);_.Z([_.H({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.l("design:type",Boolean)],XU.prototype,"isShortsImmersive",void 0);_.Z([_.H({computed:"computeButtonOverride(extractActionBar)"}),_.l("design:type",Object)],XU.prototype,"buttonOverride",void 0);
_.Z([_.H({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.l("design:type",Object)],XU.prototype,"actionBarButtonOverride",void 0);_.Z([_.H({selector:_.dd,reflectToAttribute:!0}),_.l("design:type",Object)],XU.prototype,"isFullscreen",void 0);_.Z([_.il("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XU.prototype,"onIsActiveChanged",null);
_.Z([_.il("extractOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XU.prototype,"onOverlayDensityChange",null);_.Z([_.D({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],XU);
_.b(XU,"ytd-reel-player-overlay-renderer",function(){if(APJ!==void 0)return APJ;var k=document.createElement("template");_.X(k,'\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="[[!data.videoInteractions.elementsInteractionsLayer]]" 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"> </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enablePollStickers &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <yt-stickers-layer data="[[data.videoInteractions.elementsInteractionsLayer.stickersLayerRenderer]]" class="style-scope ytd-reel-player-overlay-renderer">\n      </yt-stickers-layer>\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    <template is="dom-if" if="[[!enableShortsModernControls]]" 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>\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return APJ=k},{mode:1});var jXS;var gL=function(){var k=_.p.apply(this,arguments)||this;k.videoDuration=0;k.playedTime=0;k.isActive=!1;k.JSC$22570_playerEvents=new Map;return k};
_.y(gL,_.p);_.I=gL.prototype;_.I.created=function(){this.JSC$22570_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22570_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.I.attached=function(){this.getPlayerAndInitializeListeners()};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22570_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Ic(this,this.onPageChanged))};
_.I.getPlayerAndInitializeListeners=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return E=_.s3(),E?S.yield(E.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ic(k,k.onPageChanged)),S.jumpTo(0));k.player=S.yieldResult;k.initializePlayerListeners();_.KR(S)})};
_.I.onPageChanged=function(k){var E=this;return _.c(function(S){if(S.nextAddress==1)return k.detail.newPageType!=="ytd-shorts"?S.return():S.yield(_.l_().getPlayerPromise(),2);E.player=S.yieldResult;E.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ic(E,E.onPageChanged));_.KR(S)})};
_.I.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22570_playerEvents)};
_.I.onVideoDataChange=function(k){var E=this;return _.c(function(S){if(!E.player||k.type!=="newdata")return S.return();E.videoDuration=_.Y("web_shorts_use_progress_state_for_gapless")?E.player.getProgressState(k.playertype).seekableEnd:E.player.getDuration(k.playertype);E.playedTime=0;_.KR(S)})};
_.I.onVideoProgress=function(k){var E=this,S,R;return _.c(function(V){if(!E.player)return V.return();S=E.player.getPresentingPlayerType();R=E.player.getPlayerState();E.videoDuration=_.Y("web_shorts_use_progress_state_for_gapless")?E.player.getProgressState(S).seekableEnd:E.player.getDuration(S);E.playedTime=R===0?E.videoDuration:k;_.KR(V)})};
_.I.getPercentPlayed=function(k,E){return k?_.Bt(E/k,0,1):0};
_.mt.Object.defineProperties(gL.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 k="";return k=this.videoDuration&&this.playedTime?k+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):k+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],gL.prototype,"componentBehavior",void 0);_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],gL.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],gL.prototype,"player",void 0);_.Z([_.H(),_.l("design:type",Object)],gL.prototype,"videoDuration",void 0);_.Z([_.H(),_.l("design:type",Object)],gL.prototype,"playedTime",void 0);_.Z([_.H(),_.l("design:type",Object)],gL.prototype,"isActive",void 0);
_.Z([_.U("videoDuration","playedTime"),_.l("design:type",Number),_.l("design:paramtypes",[])],gL.prototype,"percentPlayed",null);_.Z([_.U("videoDuration","playedTime"),_.l("design:type",Object),_.l("design:paramtypes",[])],gL.prototype,"percentPlayedStyle",null);_.Z([_.U("videoDuration","isActive"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],gL.prototype,"hideProgressBar",null);
_.b(gL,"ytd-progress-bar-line",function(){if(jXS===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);jXS=k}k=jXS;return k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var DTJ;_.qi(_.CMa,"ytm-closed-captioning-button",{props:{captionIconType:_.Nq,onClick:_.sk,ariaLabel:_.Nq,ariaPressed:_.Nq,isOverlay:_.sk,isModern:_.sk}});_.qi(_.Wqa,"desktop-shorts-volume-controls",{props:{orientation:_.Nq}});var Ud=function(){var k=_.p.apply(this,arguments)||this;k.playerState=null;k.isMuted=!1;k.shortsModernControlsEnabled=_.Y("web_shorts_modern_controls");k.volumeControlsOrientationState="horizontal_right";k.isOverlay=!0;k.captionIconType=-1;k.ariaLabel="";k.overlayDensity=0;k.JSC$22573_playerEvents=new Map;k.onClosedCaptionsButtonClick=function(){k.player&&_.TW(k.player)&&(k.player.toggleSubtitles(),k.updateCaptionIconType())};
return k};
_.y(Ud,_.p);_.I=Ud.prototype;_.I.created=function(){this.JSC$22573_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22573_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22573_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.I.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.kh(28662);this.playPauseButtonClientVE=_.kh(36842);this.fullscreenButtonToggleOffClientVE=_.kh(222256);this.fullscreenButtonToggleOnClientVE=_.kh(222257);var k=_.Fe(),E=_.Wi();k&&E&&(_.Y("combine_ve_grafts")?(_.Bq(_.JV(),this.muteButtonClientVE,E),_.Bq(_.JV(),this.playPauseButtonClientVE,E)):_.uD(k,E,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.I.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22573_playerEvents),this.player=null)};
_.I.updateCaptionIconType=function(){var k=-1,E=void 0,S=_.Vi("CLOSED_CAPTIONS_DISABLED");this.player&&_.TW(this.player)&&(_.vfP(this.player)?(E=!0,S=_.Vi("CLOSED_CAPTIONS_ON"),k=1):(E=!1,S=_.Vi("CLOSED_CAPTIONS_OFF"),k=0));this.captionIconType=k;this.ariaPressedState=E;this.ariaLabel=S};
_.I.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-with-label",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-static-overlay-icon-active-other)"}}};
_.I.getPlayerAndInitializeListeners=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return E=_.s3(),E?S.yield(E.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ic(k,k.onPageChanged)),S.jumpTo(0));k.player=S.yieldResult;k.initializePlayerListeners();_.KR(S)})};
_.I.onPageChanged=function(k){var E=this;return _.c(function(S){if(S.nextAddress==1)return k.detail.newPageType!=="ytd-shorts"?S.return():S.yield(_.l_().getPlayerPromise(),2);E.player=S.yieldResult;E.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ic(E,E.onPageChanged));_.KR(S)})};
_.I.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22573_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.I.onPlayerStateChange=function(k){this.playerState=k};
_.I.onPlayerVolumeChange=function(k){this.isMuted=k.muted};
_.I.onPlayPauseButtonClick=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(_.l_().getPlayerPromise(),2);E=R.yieldResult;(S=_.Fe())&&k.playPauseButtonClientVE&&_.Dv(S,k.playPauseButtonClientVE);E.getPlayerState()!==1?E.playVideo():E.pauseVideo();_.KR(R)})};
_.I.computePlayPauseIcon=function(k){return k===2||k===-1||k===5?_.Y("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.Y("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.Y("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.I.computeFullscreenLabel=function(k){return k?_.Vi("FULLSCREEN_EXIT_LABEL"):_.Vi("FULLSCREEN_ENTER_LABEL")};
_.I.computePlayPauseLabel=function(k){return k===1||k===3?_.Vi("PLAYER_LABEL_PAUSE"):_.Vi("PLAYER_LABEL_PLAY")};
_.I.onMuteButtonClick=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(_.l_().getPlayerPromise(),2);E=R.yieldResult;(S=_.Fe())&&k.muteButtonClientVE&&_.Dv(S,k.muteButtonClientVE);E.isMuted()?E.unMute(!0):E.mute(!0);_.KR(R)})};
_.I.computeMuteIcon=function(k){return k?"miniplayer:volume-off":"miniplayer:volume-up"};
_.I.computeMuteLabel=function(k){return k?_.Vi("PLAYER_LABEL_UNMUTE"):_.Vi("PLAYER_LABEL_MUTE")};
_.I.onFullscreenButtonClick=function(){var k=_.Fe();k&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Dv(k,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Dv(k,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.jR0()};
_.mt.Object.defineProperties(Ud.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var k=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(){k.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?_.Y("web_shorts_modern_controls")?"player_full_exit_alt":_.Y("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.Y("web_shorts_modern_controls")?"player_full_enter_alt":_.Y("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ud.prototype,"componentBehavior",void 0);_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],Ud.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Ud.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"player",void 0);_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"playerState",void 0);_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"isMuted",void 0);
_.Z([_.H({computed:"computePlayPauseIcon(playerState)"}),_.l("design:type",String)],Ud.prototype,"playPauseIcon",void 0);_.Z([_.H({computed:"computeMuteIcon(isMuted)"}),_.l("design:type",String)],Ud.prototype,"muteIcon",void 0);_.Z([_.H({selector:_.dd}),_.l("design:type",Boolean)],Ud.prototype,"isFullscreen",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Ud.prototype,"shortsModernControlsEnabled",void 0);
_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"volumeControlsOrientationState",void 0);_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"isOverlay",void 0);_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"captionIconType",void 0);_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"ariaLabel",void 0);_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"ariaPressedState",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Ud.prototype,"overlayDensity",void 0);
_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"data",void 0);_.Z([_.H({computed:"computeActionBarButtonOverride()"}),_.l("design:type",Object)],Ud.prototype,"actionBarButtonOverride",void 0);_.Z([_.U("playerState"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ud.prototype,"playPauseButtonData",null);_.Z([_.U("isFullscreen"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ud.prototype,"fullscreenButtonData",null);
_.Z([_.H(),_.l("design:type",Object)],Ud.prototype,"onClosedCaptionsButtonClick",void 0);_.Z([_.U("isFullscreen"),_.l("design:type",String),_.l("design:paramtypes",[])],Ud.prototype,"fullscreenIcon",null);
_.b(Ud,"ytd-shorts-player-controls",function(){if(DTJ===void 0){var k=document.createElement("template");_.X(k,'\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<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="left-controls" class="style-scope ytd-shorts-player-controls">\n    <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    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  </div>\n  <div id="right-controls" class="style-scope ytd-shorts-player-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    <div id="menu-button" class="button-container style-scope ytd-shorts-player-controls">\n      <ytd-menu-renderer data="[[data]]" is-overlay="[[isOverlay]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" use-overlay-dark="" class="style-scope ytd-shorts-player-controls"></ytd-menu-renderer>\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  <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  <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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);DTJ=k}k=DTJ;return k},{mode:1});var $TB;_.qi(_.DUR,"yt-interstitial-view-model",{props:{data:_.Nq}});var f7u=_.f(function(k){var E=k.data;return _.e("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.e("h1",{class:"reelWatchBreakViewModelHostTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e("h2",{class:"reelWatchBreakViewModelHostBody"},_.e(_.VB,{text:function(){return E().body},
isOverlay:!0})),_.e(_.cp,{data:function(){return E().buttons}},{buttonViewModel:function(S,R){return _.e("div",{class:function(){return R()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.e(_.yB,{data:S.data}))}}))},"an");
f7u.idomCompat=!0;_.qi(f7u,"reel-watch-break-view-model",{props:{data:_.Nq}});var H4=function(){return _.p.apply(this,arguments)||this};
_.y(H4,_.p);H4.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}}};
_.mt.Object.defineProperties(H4.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var k;return!!_.W((k=this.data)==null?void 0:k.renderer,FbB)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var k;return!!_.W((k=this.data)==null?void 0:k.renderer,yPN)}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],H4.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],H4.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],H4.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],H4.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.renderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],H4.prototype,"isSurvey",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.renderer"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],H4.prototype,"isInterstitialViewModel",null);_.Z([_.D({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],H4);
_.b(H4,"ytd-reel-non-video-content-renderer",function(){if($TB!==void 0)return $TB;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return $TB=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var v4u;_.qi(_.YQP,"desktop-shorts-player-controls",{});var K8=function(){var k=_.p.apply(this,arguments)||this;k.isPlayerPaused=!1;k.isPlayerStarted=!1;k.showPlayerControls=!1;k.showScrubber=!1;k.autoHideJobId=0;k.modern=_.Y("web_button_rework");k.overlayType=_.P_("web_shorts_expanded_overlay_type");k.panelData=void 0;k.isWatchWhileMode=!1;k.hasError=!1;k.panelShowDelayMs=1;k.scrubberComponent={};k.isFullscreen=!1;k.shouldHideOverlay=!1;k.enableAnchoredPanel=_.Y("desktop_shorts_v2_anchored_panel");k.enablePersistentAnchoredPanel=_.Y("desktop_shorts_v2_persistent_anchored_panel");
k.hideWatchWhilePanel=_.Y("web_shorts_hide_watch_while_panel");k.useAspectRatio=_.Y("web_use_aspect_ratio");k.enableShortsModernControls=_.Y("web_shorts_modern_controls");k.isPersistentPanelActive=!1;k.anchoredPanelActive=!1;k.isShortsPipActive=!1;k.smallScreenSqueezeback=!1;k.enableFlexibleOverlay=_.Y("web_enable_flexible_overlay");k.overlayDensity=0;k.extractOverlay=!1;k.extractActionBar=!1;k.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
k.onWindowResized=function(){_.Lv(k,"calculateOverlayDensity",function(){k.calculateOverlayDensity()},100)};
return k};
_.y(K8,_.p);_.I=K8.prototype;_.I.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.I.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.I.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var k=_.en().resolve(_.$g);this.isWatchWhileMode&&_.ZJ.addJob(function(){k.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.I.handleShowReelsCommentsOverlayCommand=function(k){k=_.W(k,g4N);this.isActive&&(k==null?0:k.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))};
_.I.updateEngagementPanelVisibility=function(k,E){k&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:E?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:k}})};
_.I.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.I.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.en().resolve(_.KM).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.I.handleWatchWhilePanelScrimClick=function(){var k=_.en().resolve(_.$g);this.activeWatchWhilePanel&&(k.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.I.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.I.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}}};
_.I.handlePlayerClick=function(k){var E=this,S,R;if((R=(S=window).matchMedia)!=null&&R.call(S,"(any-pointer: coarse)").matches||!k)this.showPlayerControls=!0,_.ZJ.cancelJob(this.autoHideJobId),this.autoHideJobId=_.uM(_.ZJ,function(){E.showPlayerControls=!1},4E3)};
_.I.isFirstReel=function(){return this.index===0};
_.I.handleMouseenter=function(){_.ZJ.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.I.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.I.handleScrubberEnter=function(){this.showScrubber=!0};
_.I.handleScrubberLeave=function(){this.showScrubber=!1};
_.I.maybeLogNonDefaultAspectRatio=function(){var k;(k=this.data)!=null&&k.thumbnail&&this.isActive&&.5625!==E4B(this.data.thumbnail)&&_.gSj("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.I.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var k=document.querySelector("#shorts-container");if(k){var E=!1,S,R=this.playerContainer.offsetWidth,V=this.playerContainer.offsetHeight;k=k.offsetWidth/2-R/2;k>=368?(k=1,E=S=!0):k>=72?(k=0,S=!0):(k=2,S=!1);R>=600&&V>=840?k=1:window.innerWidth<=599&&(k=2,S=E=!1);this.isPersistentPanelActive&&(k=0,E=!1);this.extractActionBar=S;_.Y("web_enable_flexible_overlay")&&(this.overlayDensity=k,this.extractOverlay=
E);var N;(N=this.onOverlayDensityChanged)==null||N.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.I.onOverlayDensityChange=function(){var k;(k=this.onOverlayDensityChanged)==null||k.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(k=_.Cc(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))k.set("overlayDensity",this.overlayDensity),k.set("extractOverlay",this.extractOverlay),k.set("extractActionBar",this.extractActionBar);if(k=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))k.overlayDensity=this.overlayDensity,k.extractOverlay=
this.extractOverlay,k.extractActionBar=this.extractActionBar};
_.I.isVideoContent=function(k){_.en().resolve(_.KM);return!!_.W(k,_.hg)};
_.I.isNonVideoContent=function(k){_.en().resolve(_.KM);return!!_.W(k,_.b3)};
_.I.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.mt.Object.defineProperties(K8.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var k,E;return _.Y("web_enable_format_first")||((k=this.data)==null?void 0:k.adsOverlay)&&_.Y("web_enable_format_first_ads_only")||((E=this.data)==null?void 0:E.reelPlayerOverlayRenderer)&&_.Y("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.Y("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var k;return!this.isActive||!this.isPlayerStarted||(k=this.data)!=null&&k.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var k;if(((k=this.data)==null?0:k.command)&&this.isVideoContent(this.data.command)){var E,S;if(((E=this.data)==null?0:E.adsOverlay)&&Object.keys((S=this.data)==null?void 0:S.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var R,V;if(((R=this.data)==null?0:R.reelPlayerOverlayRenderer)&&Object.keys((V=this.data)==null?void 0:V.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
K8.prototype.onOverlayDensityChange=K8.prototype.onOverlayDensityChange;K8.prototype.calculateOverlayDensity=K8.prototype.calculateOverlayDensity;K8.prototype.maybeLogNonDefaultAspectRatio=K8.prototype.maybeLogNonDefaultAspectRatio;K8.prototype.onEngagementPanelsChanged=K8.prototype.onEngagementPanelsChanged;K8.prototype.onScrubberDataChange=K8.prototype.onScrubberDataChange;K8.prototype.updateShouldHideOverlay=K8.prototype.updateShouldHideOverlay;
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],K8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],K8.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],K8.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],K8.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],K8.prototype,"index",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],K8.prototype,"isActive",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],K8.prototype,"isHiddenInDom",void 0);_.Z([_.H(),_.l("design:type",Object)],K8.prototype,"isPlayerPaused",void 0);_.Z([_.H({selector:R2X}),_.l("design:type",Object)],K8.prototype,"isPlayerStarted",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"showPlayerControls",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"showScrubber",void 0);_.Z([_.H(),_.l("design:type",Object)],K8.prototype,"autoHideJobId",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"modern",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"overlayType",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],K8.prototype,"ytdReduxBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],K8.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],K8.prototype,"watchWhileEngagementPanels",void 0);_.Z([_.H(),_.l("design:type",Object)],K8.prototype,"panelData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"isWatchWhileMode",void 0);_.Z([_.H(),_.l("design:type",String)],K8.prototype,"activeWatchWhilePanel",void 0);
_.Z([_.H(),_.l("design:type",Object)],K8.prototype,"hasError",void 0);_.Z([_.H(),_.l("design:type",Object)],K8.prototype,"panelShowDelayMs",void 0);_.Z([_.H(),_.l("design:type",Object)],K8.prototype,"scrubberComponent",void 0);_.Z([_.H({selector:_.dd,reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"isFullscreen",void 0);_.Z([_.H(),_.l("design:type",Object)],K8.prototype,"shouldHideOverlay",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"enableAnchoredPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"enablePersistentAnchoredPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"hideWatchWhilePanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"useAspectRatio",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"enableShortsModernControls",void 0);_.Z([_.H({selector:_.MVm,reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"isPersistentPanelActive",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"anchoredPanelActive",void 0);_.Z([_.H({selector:_.sf,reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"isShortsPipActive",void 0);
_.Z([_.H({selector:Sas,reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"smallScreenSqueezeback",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],K8.prototype,"enableFormatFirst",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"enableFlexibleOverlay",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"overlayDensity",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"extractOverlay",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],K8.prototype,"extractActionBar",void 0);_.Z([_.H(),_.l("design:type",Function)],K8.prototype,"onOverlayDensityChanged",void 0);
_.Z([_.H(),_.U("isActive","hasError","isPlayerStarted"),_.l("design:type",Object),_.l("design:paramtypes",[])],K8.prototype,"shouldRenderPlayerElements",null);_.Z([_.H(),_.U("isActive","isWatchWhileMode"),_.l("design:type",Object),_.l("design:paramtypes",[])],K8.prototype,"watchWhileOrPersistentActive",null);_.Z([_.il("isActive","hasError","showingExpandedOverlay"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],K8.prototype,"updateShouldHideOverlay",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("isActive","isPlayerStarted","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],K8.prototype,"shouldRenderScrubber",null);_.Z([_.il("shouldRenderScrubber"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],K8.prototype,"onScrubberDataChange",null);_.Z([_.U("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.l("design:type",Object),_.l("design:paramtypes",[])],K8.prototype,"overlayComponent",null);
_.Z([_.il("watchWhileEngagementPanels"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],K8.prototype,"onEngagementPanelsChanged",null);_.Z([_.JO("#player-container"),_.l("design:type",HTMLElement)],K8.prototype,"playerContainer",void 0);_.Z([_.JO("#cinematic-container"),_.l("design:type",HTMLElement)],K8.prototype,"cinematicContainer",void 0);
_.Z([_.il("isPersistentPanelActive","data.thumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],K8.prototype,"maybeLogNonDefaultAspectRatio",null);_.Z([_.il("isPersistentPanelActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],K8.prototype,"calculateOverlayDensity",null);
_.Z([_.il("overlayDensity","extractOverlay","extractActionBar"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],K8.prototype,"onOverlayDensityChange",null);_.Z([_.D({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],K8);
_.b(K8,"ytd-reel-video-renderer",function(){if(v4u!==void 0)return v4u;var k=document.createElement("template");_.X(k,'\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 data="[[data.reelPlayerOverlayRenderer.menu.menuRenderer]]" disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return v4u=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var p8=function(){var k=_.p.apply(this,arguments)||this;k.isPreviousPageShorts=!1;k.index=0;k.delayedActiveIndex=0;k.playablePreviousIndex=null;k.isPlayerPaused=!1;k.isPlayerStarted=!1;k.intersectionObserverThreshold=.6;k.fitToVisibleBounds=!1;k.pageSubtype="shorts";k.enablePreviousContinuation=_.Y("shorts_in_playlists_web");k.shortsPipEnabled=_.Y("web_shorts_pip");k.isDark=document.documentElement.hasAttribute("dark");k.shortsViewTransitions=_.Y("web_shorts_view_transitions");k.isFullscreen=!1;k.isShortsPipActive=
!1;k.buttonOverride={iconPosition:"icon-only",size:"XL"};k.anchoredPanelActive=!1;k.isActive=!1;k.smallScreenPersistentPanel=!1;k.isPersistentPanelActive=!1;k.smallScreenSqueezeBack=!1;k.enableScrollIntoViewCenter=_.Y("web_scroll_into_view_center");k.formatFirst=_.Y("web_enable_format_first")||_.Y("web_enable_format_first_ads_only")||_.Y("web_enable_format_first_organic_only");k.enableFlexibleOverlay=_.Y("web_enable_flexible_overlay");k.extractOverlay=!1;k.useAspectRatio=_.Y("web_use_aspect_ratio");
k.isShortsInitialized=!1;k.hasDataUpdated=!1;k.playerInPosition=!1;k.hidePreviousButtonImmediately=!1;k.showPreviousButtonImmediately=!1;k.endOfNextContinuation=!1;k.currentPlayerIndex=0;k.nextReelVe=_.kh(56921);k.prevReelVe=_.kh(56922);k.loopToggleOffVe=_.kh(198013);k.loopToggleOnVe=_.kh(198014);k.ambientModeToggleVe=_.kh(227860);k.reelPlayerPausedStateRendererVe=_.kh(141313);k.storedPlaybackSpeed=null;k.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"};k.onOverlayDensityChanged=function(E,S,R,V){E=k.getActiveReelVideo(E);k.extractOverlay=!!R;E==null||E.setAttribute("overlay-density",String(S));R===void 0||E!=null&&E.toggleAttribute("extract-overlay",R);V===void 0||E!=null&&E.toggleAttribute("extract-action-bar",V)};
return k};
_.y(p8,_.p);_.I=p8.prototype;_.I.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.I.deflateInactivePreviousSlides=function(){var k=_.wO("web_shorts_deflate_inactive_slides_aggressive_distance");if(k>0&&this.shortsProcessedSequence&&this.activeIndex){k=this.activeIndex-k;for(var E=0;E<=k;E++){var S=void 0;((S=this.shortsProcessedSequence[E].reelPlayerOverlayRenderer)==null?0:S.metapanel)&&this.set("shortsProcessedSequence."+E+".reelPlayerOverlayRenderer",{});S=void 0;((S=this.shortsProcessedSequence[E].adsOverlay)==null?0:S.adSlotMetadata)&&this.set("shortsProcessedSequence."+
E+".adsOverlay",{})}}};
_.I.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.I.onResize=function(){var k=_.vo(),E=k.dispatch,S=this.calculateIsSmallWidth();E.call(k,_.zX({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:S}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.I.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}}};
_.I.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var k=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,E=k,S=0;k<250&&(E=k+this.shortsInnerContainer.clientWidth,S=24);_.VO(this.hostElement,{"--ytd-shorts-header-width":E+"px","--ytd-shorts-top-spacing":S+"px"})}};
_.I.isFirstShorts=function(k){return k?this.index===-k.length:this.index===0};
_.I.isActiveReel=function(k,E,S){S&&(E=this.calculatePrevIndex(E,S));return k===E};
_.I.onFullscreenChange=function(){if(_.Y("web_fullscreen_shorts")){var k;(k=this.getActiveReelVideo(this.activeIndex))==null||k.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.en().resolve(_.yb).close(!0)}};
_.I.engagementPanelsChanged=function(){var k;this.watchWhileEngagementPanels=(k=this.data)==null?void 0:k.engagementPanels};
_.I.unregisterPanels=function(){var k=_.en().resolve(_.$g);if(this.watchWhileEngagementPanels)for(var E=_.n(this.watchWhileEngagementPanels),S=E.next();!S.done;S=E.next()){var R=S.value,V=void 0,N=void 0;S=(V=R.engagementPanelSectionListRenderer)==null?void 0:(N=V.identifier)==null?void 0:N.tag;R=this.getPanelContentIdentifier(R.engagementPanelSectionListRenderer);k&&(S&&k.panelMap.delete(S),R&&_.Y("web_shorts_panel_caching_bugfix")&&(V=S=void 0,(V=(S=k).unregisterPanelContent)==null||V.call(S,R)))}};
_.I.isVideoContent=function(k){return this.isVideoContentCommand(k==null?void 0:k.command)};
_.I.getActiveReelVideo=function(k){return _.Cc(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+k+'"]')};
_.I.calculatePrevIndex=function(k,E){return E?k-((E==null?void 0:E.length)||0):-1};
_.I.onKeydown=function(k){var E=_.vT(k)||[];if(!_.L5T(E))if(k.code==="ArrowUp")k.preventDefault(),this.handlePrevButtonClick();else if(k.code==="ArrowDown")k.preventDefault(),this.handleNextButtonClick();else if(k.code==="KeyM")this.toggleMuteUnmuteVideo();else if(k.code==="KeyK"||k.code==="Space")this.togglePlayPauseVideo();else if((k.code==="KeyA"||k.code==="ArrowLeft")&&_.Y("web_shorts_keyboard_enable_seek_shortcuts")){var S;(S=this.player)==null||S.seekBy(-5)}else if((k.code==="KeyD"||k.code===
"ArrowRight")&&_.Y("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var R;(R=this.player)==null||R.seekBy(5)}};
_.I.onServiceRequestCompleted=function(k,E){k=E.data;k.continuationEndpoint&&k.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:k.entries,continuationEndpoint:k.continuationEndpoint}}),_.Y("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=k)):k.prevContinuationEndpoint&&k.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:k.prevEntries,
prevContinuationEndpoint:k.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.I.handleEngagementPanelVisibilityChanged=function(k,E){var S=_.en().resolve(_.$g);if(k&&S){var R=this.getPanelIdentifier(k);if(E==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==R){S.hidePanel(this.activePanel);var V;this.activePanel=((V=k.identifier)==null?void 0:V.tag)||k.panelIdentifier}else this.isPersistentPanelActive=!0,_.vo().dispatch(e2u(!0)),this.anchoredPanelActive=!0,this.activePanel=R;else E==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
R&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.vo().dispatch(e2u(!1)))}};
_.I.handlePanelScrimClick=function(){var k=_.en().resolve(_.$g);this.activePanel&&(k.hidePanel(this.activePanel),_.vo().dispatch(e2u(!1)))};
_.I.getShortsLoopSetting=function(){var k,E,S,R,V;return _.c(function(N){switch(N.nextAddress){case 1:return _.Y("kevlar_shorts_auto_advance")?N.yield(_.Lw.getInstance(),2):N.return(!0);case 2:return(k=N.yieldResult)?N.yield(k.get("sfvles"),3):N.return(!0);case 3:return S=(E=N.yieldResult)!=null?E:!1,N.yield(k.get("sfvle"),4);case 4:return V=(R=N.yieldResult)!=null?R:!0,S?N.return(V):N.return(!0)}})};
_.I.handleSignalActionToggleLoopShortsOff=function(){var k=this,E,S,R;return _.c(function(V){switch(V.nextAddress){case 1:if(!k.player)return V.return();k.player.setLoopVideo(!1);E=_.JV();_.Wq(E,k.loopToggleOffVe);return V.yield(_.Lw.getInstance(),2);case 2:return(S=V.yieldResult)?V.yield(S.set("sfvle",!1),3):V.return();case 3:return V.yield(S.set("sfvles",!0),4);case 4:R=_.nz(),_.iD(0,203,!1),_.iD(0,204,!0),R.save(),_.KR(V)}})};
_.I.handleSignalActionToggleLoopShortsOn=function(){var k=this,E,S,R;return _.c(function(V){switch(V.nextAddress){case 1:if(!k.player)return V.return();k.player.setLoopVideo(!0);E=_.JV();_.Wq(E,k.loopToggleOnVe);return V.yield(_.Lw.getInstance(),2);case 2:return(S=V.yieldResult)?V.yield(S.set("sfvle",!0),3):V.return();case 3:return V.yield(S.set("sfvles",!0),4);case 4:R=_.nz(),_.iD(0,203,!0),_.iD(0,204,!0),R.save(),_.KR(V)}})};
_.I.handleSignalActionToggleCinematicShortsOn=function(){kxo(!0);var k;(k=this.JSC$22599_cinematicController)==null||_.M1B(k,!0);_.Wq(_.JV(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.I.handleSignalActionToggleCinematicShortsOff=function(){kxo(!1);var k;(k=this.JSC$22599_cinematicController)==null||_.M1B(k,!1);_.Wq(_.JV(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.I.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.I.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.I.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var k=this.overlayContainer.querySelector("#experiment-overlay");k&&_.ZJ.addLowPriorityJob(function(){k.style.display="unset"},100)}};
_.I.getCurrentShort=function(){if(this.currentEndpoint){var k=this.currentEndpoint;if(this.isNonVideoContentCommand(k)){var E=_.W(k,_.b3);return{reelNonVideoContentRenderer:_.W(E==null?void 0:E.renderer,_.uAj),command:k}}if(this.data){var S;E=(S=_.W(this.currentEndpoint,_.hg))==null?void 0:S.thumbnail;var R;S=(R=this.data.overlay)==null?void 0:R.reelPlayerOverlayRenderer;_.en().resolve(_.KM);k=this.data;var V,N;R=(V=k.overlay)==null?void 0:(N=V.shortsAdsRenderer)==null?void 0:N.adSlots;if(R!==void 0)R.length===
0?(_.p5("Shorts ads returned no ad slots."),k=void 0):(R.length>1&&_.p5("Shorts ads has more than one ad slots."),k=_.W(R[0],_.BSC));else{var h,J;k=_.W((h=k.overlay)==null?void 0:(J=h.shortsAdsRenderer)==null?void 0:J.overlay,_.BSC)}h=k;k=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.W(this.currentEndpoint,_.hg),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:S,thumbnail:E,command:k,adsOverlay:h}}}};
_.I.created=function(){var k=this;this.scrollToVideoThrottle=new _.NJ(function(E){var S;(S=k.getActiveReelVideo(E))==null||S.scrollIntoView({behavior:"smooth",block:"nearest",inline:k.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.NJ(function(E){var S;(S=k.getActiveReelVideo(E))==null||S.scrollIntoView({behavior:"auto",block:"nearest",inline:k.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.I.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.I.attached=function(){var k=this;_.en().resolve(_.KM).registerRootElement(this);this.pageScrollElement=_.Cc(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Ic(this,this.processResetAction));_.Y("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var E=k.getActiveReelVideo(k.activeIndex);k.maybeCreateIntersectionObserver();E==null||E.scrollIntoView({behavior:"instant",
block:"nearest",inline:k.enableScrollIntoViewCenter?"center":"start"});k.shortsContainer.style.overflowY="scroll"}))};
_.I.updateReelWatchSequenceResponse=function(){var k=this,E;_.Y("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((E=_.W(this.currentEndpoint,_.hg))==null?0:E.sequenceParams)&&!this.reelWatchSequenceResponse&&(E=_.en().resolve(_.KM))&&mTS(E,this.currentEndpoint).then(function(S){S&&(k.reelWatchSequenceResponse=S,_.ZJ.addLowPriorityJob(function(){k.observeShorts()}))})};
_.I.calculateSqueezebackPanelSize=function(){var k=this,E=window.innerWidth-456-(window.innerHeight-106)*.5625;_.ZJ.addLowPriorityJob(function(){E<360?_.vo().dispatch(a7g(!0)):(k.hostElement.style.setProperty("--anchored-panel-width",Math.min(E,480)+"px"),_.vo().dispatch(a7g(!1)))})};
_.I.detached=function(){var k=_.en().resolve(_.KM);k.rootElement=void 0;var E;(E=k.unsubscribeFromStore)==null||E.call(k);k.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Ic(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.I.onResizeFinished=function(k,E){var S=this,R=new ResizeObserver(function(){S.shortsContainer.style.overflowY="hidden";_.ZJ.addLowPriorityJob(function(){E()},100)});
R.observe(k);return R};
_.I.resetDocumentScrollTop=function(){var k,E;if((k=document)==null?0:(E=k.scrollingElement)==null?0:E.scrollTop)document.scrollingElement.scrollTop=0};
_.I.loadPage_=function(k){var E=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),k){var S;!_.Y("web_enable_delay_shorts_sequence_call")&&((S=_.W(this.currentEndpoint,_.hg))==null?0:S.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=k;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){E.isPlayerStarted&&(E.handleOnPlaybackCommand(),E.afterPlayerStarted=function(){})};
this.registerPanel(k)}};
_.I.afterPlayerStarted=function(){};
_.I.handleOnPlaybackCommand=function(){if(_.Y("web_shorts_comment_stickers")&&this.isPlayerStarted){var k,E=(k=_.W(this.currentEndpoint,_.hg))==null?void 0:k.onPlaybackCommand;E&&this.ytComponentBehavior.resolveCommand(E)}};
_.I.maybeCreateIntersectionObserver=function(){var k=this,E=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==E){this.intersectionObserverThreshold=E;var S={rootMargin:"0px",threshold:E},R;(R=this.intersectionObserver)==null||R.disconnect();this.intersectionObserver=new IntersectionObserver(function(V){V=_.n(V);for(var N=V.next();!N.done;N=V.next())if(N=N.value,N.intersectionRatio>E){N=Number(N.target.id);if(isNaN(N))break;if(N===k.index)break;
_.lrb();k.loadVideo(N);_.gq("r_vtc")}},S);
this.observeShorts()}};
_.I.observeShorts=function(){var k=[].concat(_.$e(_.Cc(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));k=_.n(k);for(var E=k.next();!E.done;E=k.next()){E=E.value;var S=void 0;(S=this.intersectionObserver)==null||S.observe(E)}};
_.I.initCsi=function(){_.Car("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var k={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"}},E,S;if((E=this.playerData)==null?0:(S=E.cacheMetadata)==null?0:S.isCacheHit)k.isCacheHit=!0;var R;if(E=(R=_.W(this.currentEndpoint,_.hg))==null?void 0:
R.prefetchTaskId)k.prefetchInfo={taskId:E};_.BE(k)};
_.I.isAd=function(){var k,E;return!!((k=_.W(this.currentEndpoint,_.hg))==null?0:(E=k.adClientParams)==null?0:E.isAd)};
_.I.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.I.getPlayerContainer=function(){var k;return(k=_.Cc(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:k.playerContainer};
_.I.onPlayerStateChange=function(k){var E=this;this.isPlayerPaused=k===2;k!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?k===1&&this.index===0&&(this.isPlayerStarted||_.vo().dispatch(toU(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.vo().dispatch(toU(!0)));this.player&&!this.player.getLoopVideo()&&_.ZJ.addLowPriorityJob(function(){E.getShortsLoopSetting().then(function(S){var R;(R=E.player)==null||R.setLoopVideo(S)})});
this.isPlayerPaused&&_.Y("web_shorts_paused_state_logging")&&_.Lz(_.Fe(),[this.reelPlayerPausedStateRendererVe])};
_.I.isInBackground=function(){var k=window.document.visibilityState;return!(!k||k==="visible")};
_.I.isShortPlayable=function(){if(_.Y("kevlar_playable_short_killswitch"))return!0;var k;return(k=this.playerData)!=null&&k.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.I.setNormalPlaybackSpeed=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(k.getPlayer().getPlayerPromise(),2);E=R.yieldResult;S=E.getPlaybackRate();S!==1&&(k.storedPlaybackSpeed=S,E.setPlaybackRate(1));_.KR(R)})};
_.I.restorePlaybackSpeed=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1)return k.storedPlaybackSpeed===null?S.jumpTo(0):S.yield(k.getPlayer().getPlayerPromise(),3);E=S.yieldResult;E.setPlaybackRate(k.storedPlaybackSpeed);k.storedPlaybackSpeed=null;_.KR(S)})};
_.I.playerDataChanged=function(){var k=this,E,S,R,V,N,h,J,m,a;return _.c(function(T){if(T.nextAddress==1){E=k.getPlayer();(S=k.intersectionObserver)==null||S.disconnect();if(k.playerData){if(((R=k.playerData.videoDetails)==null?void 0:R.videoId)!==((V=E.getPlayer())==null?void 0:V.getVideoData().video_id)){N={};if(h=_.W(k.currentEndpoint,_.hg))N.watch_endpoint=h,h.endTimeSeconds&&(N.end=h.endTimeSeconds);E.loadVideoWithPlayerResponse(k.playerData,N)}}else return T.return();return k.player?T.jumpTo(2):
T.yield(E.getPlayerPromise(),3)}T.nextAddress!=2&&(k.player=T.yieldResult,k.JSC$22599_playerStateChangeListener=k.onPlayerStateChange.bind(k),k.player.addEventListener("onStateChange",k.JSC$22599_playerStateChangeListener),_.Y("kevlar_client_enable_shorts_player_bootstrap")&&_.Ui(),k.scrollToVideoThrottle.fire(k.index),k.movePlayerToVideo(k.index),_.ZJ.addLowPriorityJob(function(){k.getShortsLoopSetting().then(function(w){var P;(P=k.player)==null||P.setLoopVideo(w)})}),_.UW8.resolve(k.player),k.player.syncVolume(),
k.getPlayer().focusOnPlayer());
_.ZJ.addLowPriorityJob(function(){k.observeShorts()},100);
J=k.player.getPlayerState(k.player.getPresentingPlayerType());J!==1||k.isPlayerStarted||_.vo().dispatch(toU(!0));k.updateBackNavContainerWidth();m=_.W(k.currentEndpoint,_.hg);((a=m)==null?0:a.startTimeSeconds)&&k.player.seekTo(m.startTimeSeconds);if(k.JSC$22599_cinematicController||k.cinematicsInitializeJobId)return T.return();k.cinematicsInitializeJobId=_.ZJ.addLowPriorityJob(function(){k.initCinematicController();k.cinematicsInitializeJobId=void 0});
_.KR(T)})};
_.I.onShortUndoDismiss=function(){var k=this,E=cPB().pop();E!==void 0&&(_.JB(this,function(){k.showCardWithIndex(E)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.I.onShortsDismiss=function(k){if(k=k.detail.reelDismissalActionRenderer)(k=_.W(k.onDismissalCompletionRenderer,_.yxo))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:k}}}),this.scrollAndDismissCard()};
_.I.processReelNonVideoContentDismissalCommand=function(k){var E=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);k=_.W(k,Xyr);this.activeDimissalTimeout=setTimeout(function(){E.scrollAndDismissCard()},Number(k==null?void 0:k.delayMs))};
_.I.scrollAndDismissCard=function(){var k=this,E=this.index;cPB().push(E);_.JB(this,function(){var S=k.getPlayableNextIndex();S!==null&&(S=k.getActiveReelVideo(S),k.hideCardWithIndex(E),S==null||S.scrollIntoView({behavior:"smooth",block:"nearest",inline:k.enableScrollIntoViewCenter?"center":"start"}))})};
_.I.hideCardWithIndex=function(k){if(k=this.getActiveReelVideo(k))k.hidden=!0};
_.I.showCardWithIndex=function(k){if(k=this.getActiveReelVideo(k))k.hidden=!1};
_.I.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.I.activeChanged=function(k){_.vo().dispatch(_.zX({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:k}}));if(k)document.addEventListener("keydown",_.Ic(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var E;(E=this.player)==null||E.sendAbandonmentPing()}var S;(S=this.player)==null||S.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Ic(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.I.graftClientVisualElements=function(){if(this.data){var k=_.JV();_.yGC(k,_.GR({response:this.reelWatchSequenceResponse}));_.Bq(k,this.nextReelVe);_.Bq(k,this.prevReelVe);_.Y("kevlar_shorts_auto_advance")&&(_.Bq(k,this.loopToggleOffVe),_.Bq(k,this.loopToggleOnVe));_.Bq(k,this.ambientModeToggleVe);_.Lz(_.Fe(),[this.nextReelVe,this.prevReelVe]);_.Y("web_shorts_paused_state_logging")&&_.Bq(k,this.reelPlayerPausedStateRendererVe)}};
_.I.graftNvcRenderer=function(){var k,E,S,R,V=this.index<0?(k=this.shortsProcessedPrevSequence)==null?void 0:(E=k[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:E.command:(S=this.shortsProcessedSequence)==null?void 0:(R=S[this.index])==null?void 0:R.command;if(V&&this.isNonVideoContentCommand(V)){k=_.W(V,_.b3);var N,h;(k=(N=_.W(k==null?void 0:k.renderer,_.uAj))==null?void 0:(h=N.loggingDirectives)==null?void 0:h.trackingParams)&&_.JV().graftServerVe(k)}};
_.I.setActiveIndex=function(){_.en().resolve(_.KM).setActiveIndex(this.index)};
_.I.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.I.lazyUpdateMiniplayerData=function(){var k=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.ZJ.addLowPriorityJob(function(){k.updateMiniplayerData();k.updateMiniplayerDataJobId=void 0}))};
_.I.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.ZJ.cancelJob(this.updateMiniplayerDataJobId)};
_.I.updateMiniplayerData=function(){var k,E,S,R=_.en().resolve(_.yb),V={shortsData:this.getCurrentShort(),previousButtonDisabled:!((k=this.prevButtonData)==null||!k.isDisabled),nextButtonDisabled:!((E=this.nextButtonData)==null||!E.isDisabled),playabilityStatus:(S=this.playerData)==null?void 0:S.playabilityStatus};_.ip(R,V)};
_.I.resetPlayerLocation=function(){var k=this.getPlayer();this.initialPlayerContainer&&k.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.I.movePlayerToVideo=function(k,E){var S=this;E=E===void 0?!0:E;var R=this.getActiveReelVideo(k),V=this.getPlayer();if(R){this.overlayContainer?R.appendChild(this.overlayContainer):(this.overlayContainer=_.Cc(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,R.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||V.appendTo(this.overlayContainer.playerContainer,void 0,!0));var N;(N=this.player)==null||N.setSize(NaN,NaN);this.isActive||_.uM(_.ZJ,function(){S.isActive=
!0});
V.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.Y("reels_web_disable_rtr_tick")||_.Y("reels_web_use_pbs_first_shorts")&&k===0||_.o_("r_tr");this.currentPlayerIndex=k;R.appendChild(this.errorScreenContainer);var h;(h=this.JSC$22599_cinematicController)==null||_.zhJ(h)}else E?_.ZJ.addLowPriorityJob(function(){S.movePlayerToVideo(S.index,!1)}):Math.random()<=_.wO("web_shorts_error_logging_threshold")&&_.Zd(new _.LC("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:E,
index:k}))};
_.I.enableFormatFirst=function(k){return _.Y("web_enable_format_first")||k.adsOverlay&&_.Y("web_enable_format_first_ads_only")||k.reelPlayerOverlayRenderer&&_.Y("web_enable_format_first_organic_only")};
_.I.getAspectRatio=function(k){if(this.enableFormatFirst(k))return(k==null?0:k.thumbnail)&&E4B(k.thumbnail)?"--ytd-shorts-player-ratio: "+E4B(k.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.I.getBackgroundImage=function(k){if(k!=null&&k.thumbnail)return(k=_.Q_(k.thumbnail.thumbnails))?'background-image:url("'+k+'");':"background-color:black;"};
_.I.onPersistentPanelActiveChanged=function(){var k=this.getCurrentShort();if(k&&this.enableFormatFirst(k)&&(k==null?0:k.thumbnail)&&E4B(k.thumbnail)!==.5625){var E;(E=this.player)==null||E.setSize(NaN,NaN)}};
_.I.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.I.moveCinematicsToVideo=function(){var k=_.Cc(this.hostElement).querySelector("ytd-reel-video-renderer");(k==null?0:k.cinematicContainer)&&k.cinematicContainer!==this.shortsCinematicContainer.parentElement&&k.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.I.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.I.updatePrevButtonData=function(){var k=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(k){var E;this.prevButtonData=k=Object.assign({},k,{accessibility:{label:_.Vi("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:k.isDisabled||this.index===-(((E=this.shortsProcessedPrevSequence)==null?void 0:E.length)||0),tooltip:this.isUpArrowHidden?"":_.Vi("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=k=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.I.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.I.updateNextButtonData=function(){var k=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(k){var E;this.nextButtonData=k=Object.assign({},k,{accessibility:{label:_.Vi("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:k.isDisabled||this.index===((E=this.shortsProcessedSequence)==null?void 0:E.length),tooltip:_.Vi("NEXT_VIDEO_LABEL")||""})}};
_.I.getPlayablePreviousIndex=function(){for(var k,E=this.index-1;E>=-(((k=this.prevShortsSequence)==null?void 0:k.length)||0);E--)if(!cPB().includes(E))return E;return null};
_.I.getIndexInSequence=function(k,E){return k.findIndex(function(S){var R;return((R=_.W(S.command,_.hg))==null?void 0:R.videoId)===E})};
_.I.handlePrevButtonClick=function(k){var E=this,S,R;return _.c(function(V){S=E.getPlayablePreviousIndex();if(S===null)return V.return();E.gestureType=((R=k)==null?void 0:R.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";S===0&&(E.hidePreviousButtonImmediately=!0);if(E.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){E.transitionToVideoThrottle.fire(S)}),V.return();
E.scrollToVideoThrottle.fire(S);_.KR(V)})};
_.I.getPlayableNextIndex=function(){for(var k,E=this.index+1;E<(((k=this.shortsProcessedSequence)==null?void 0:k.length)||0);E++)if(!cPB().includes(E))return E;return null};
_.I.handleNextButtonClick=function(k,E){var S=this,R,V;return _.c(function(N){R=S.getPlayableNextIndex();if(R===null)return N.return();R===1&&(S.showPreviousButtonImmediately=!0);S.gestureType=((V=k)==null?void 0:V.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";E&&(S.gestureType=E);if(S.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){S.transitionToVideoThrottle.fire(R)}),N.return();
S.scrollToVideoThrottle.fire(R);_.KR(N)})};
_.I.handleReelNavigateCommand=function(k,E,S){(k=_.W(k,o4$))&&E&&k.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(S)};
_.I.loadVideo=function(k,E){E=E===void 0?!1:E;if(k!==this.currentPlayerIndex){_.vo().dispatch(toU(!1));if(this.isAd()&&!E){var S;(S=this.player)==null||S.notifyShortsAdSwipeEvent()}if((E=this.JSC$22599_cinematicController)!=null){var R;(R=E.currentCinematicEffect)==null||R.pause()}if((R=this.JSC$22599_cinematicController)!=null){var V;(V=R.currentCinematicEffect)==null||V.clear()}R=k>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(R));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var N,h,J,m;V=k<0?(N=this.shortsProcessedPrevSequence)==null?void 0:(h=N[this.shortsProcessedPrevSequence.length+k])==null?void 0:h.command:(J=this.shortsProcessedSequence)==null?void 0:(m=J[k])==null?void 0:m.command;this.index=k;this.gestureType||(this.gestureType=R?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");V&&this.isVideoContentCommand(V)&&(this.ytComponentBehavior.resolveCommand(V,{form:{createScreenConfig:{clickedVisualElement:R?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(V&&this.isNonVideoContentCommand(V)){this.currentEndpoint=V;this.data=void 0;N=_.JV();h=_.W(V,_.b3);var a,T;(h=(a=_.W(h==null?void 0:h.renderer,_.uAj))==null?void 0:(T=a.screenLoggingData)==null?void 0:T.screenVeType)&&_.Pq(N,
h);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(a=this.getActiveReelVideo(k))&&a.appendChild(this.overlayContainer)}var w,P;if(((w=this.reelWatchSequenceResponse)==null?0:w.continuationEndpoint)&&((P=this.reelWatchSequenceResponse)==null?0:P.entries)&&k===this.reelWatchSequenceResponse.entries.length-1){var B,F;w={contentPlaybackContext:_.m5({},(F=_.W((B=this.currentEndpoint)==null?void 0:B.commandMetadata,_.Sd))==null?void 0:F.url,window.location.href)};
this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:w})}var K,r,x;((K=this.reelWatchSequenceResponse)==null?0:K.prevContinuationEndpoint)&&k===-(((r=this.reelWatchSequenceResponse)==null?void 0:(x=r.prevEntries)==null?void 0:x.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.I.setMiniplayerPreview=function(k){k=(k===void 0?0:k)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var E,S,R=_.en().resolve(_.yb),V={shortsData:void 0,shortsPreviewThumbnail:k?(E=this.shortsProcessedSequence)==null?void 0:(S=E[k])==null?void 0:S.thumbnail:void 0};_.ip(R,V)};
_.I.updateTitle=function(k){var E,S;k=(k==null?0:k.adSlots)?"":(S=k==null?void 0:(E=k.videoDetails)==null?void 0:E.title)!=null?S:"";_.Me(this.hostElement,"yt-update-title",k)};
_.I.registerPanel=function(k){var E=_.en().resolve(_.$g);if(E){k=_.n(k.engagementPanels||[]);for(var S=k.next();!S.done;S=k.next()){S=S.value;var R=this.getPanelContentIdentifier(S.engagementPanelSectionListRenderer),V=void 0,N=void 0;(N=(V=E).registerPanelContent)==null||N.call(V,R,S)}}};
_.I.getPanelIdentifier=function(k){var E;return(k==null?void 0:(E=k.identifier)==null?void 0:E.tag)||(k==null?void 0:k.panelIdentifier)||(k==null?void 0:k.targetId)};
_.I.getPanelContentIdentifier=function(k){var E;return(k==null?void 0:k.targetId)||(k==null?void 0:k.panelIdentifier)||(k==null?void 0:(E=k.identifier)==null?void 0:E.tag)};
_.I.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;_.vo().dispatch(toU(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.vo().dispatch(e2u(!1));var k=_.en().resolve(_.KM);k.dismissedIndices=[];k.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.en().resolve(_.yb).close(!0)};
_.I.processAppendReelWatchSequenceContinuationEntriesAction=function(k){var E=this,S;(S=this.intersectionObserver)==null||S.disconnect();k=k.appendReelWatchSequenceContinuationEntriesAction;if(k==null?0:k.entries){var R;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.$e(((R=this.reelWatchSequenceResponse)==null?void 0:R.entries)||[]),_.$e(k.entries)),continuationEndpoint:k.continuationEndpoint})}else if(k==null?0:k.prevEntries){var V;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.$e(((V=this.reelWatchSequenceResponse)==null?void 0:V.prevEntries)||[]),_.$e(k.prevEntries)),prevContinuationEndpoint:k.prevContinuationEndpoint});_.ZJ.addLowPriorityJob(function(){E.movePlayerToVideo(E.index);var N;(N=E.getActiveReelVideo(E.index))==null||N.scrollIntoView({block:"nearest",inline:E.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.ZJ.addLowPriorityJob(function(){E.observeShorts()},100)};
_.I.processWatchSequence=function(k){var E=this;return k.map(function(S){S=S.command;if(E.isVideoContentCommand(S)){var R=_.W(S,_.hg);return{reelPlayerOverlayRenderer:_.W(R==null?void 0:R.overlay,_.xqC),thumbnail:R.thumbnail,command:S}}return E.isNonVideoContentCommand(S)?(R=_.W(S,_.b3),{reelNonVideoContentRenderer:_.W(R==null?void 0:R.renderer,_.uAj),command:S}):{command:S}})};
_.I.calculateIntersectionObserverThreshold=function(){var k=_.Cc(this.hostElement).querySelector("ytd-reel-video-renderer"),E=1;(k==null?0:k.offsetHeight)&&(k==null?0:k.offsetWidth)&&(E=Math.min(k.offsetHeight,this.shortsContainer.offsetHeight)/k.offsetHeight*(Math.min(k.offsetWidth,this.shortsContainer.offsetWidth)/k.offsetWidth));return Math.round(E*.6*10)/10};
_.I.isVideoContentCommand=function(k){_.en().resolve(_.KM);return!!_.W(k,_.hg)};
_.I.isNonVideoContentCommand=function(k){_.en().resolve(_.KM);return!!_.W(k,_.b3)};
_.I.initCinematicController=function(){var k=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22599_cinematicController=new _.W4(this.shortsCinematicContainer,this.player);var E,S=_.W((E=this.data)==null?void 0:E.background,_.SB);_.qoJ(this.JSC$22599_cinematicController,S);_.M1B(this.JSC$22599_cinematicController,ChF(S));_.lBk(this.JSC$22599_cinematicController);_.ZJ.addLowPriorityJob(function(){k.moveCinematicsToVideo()})}};
_.I.handleMiniplayerNavigateShorts=function(k){k==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():k==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.I.handleSignalActionToggleShortsPictureInPicture=function(){if(_.en().resolve(_.yb).pictureInPictureSupported()){var k=_.en().resolve(_.KM);if(_.Y("web_shorts_pip")){var E=_.en().resolve(_.yb);k.isShortsPipActive()?E.deactivate():E.isMiniplayerActive()||(_.g_().shortsPipActivation=!0,_.A6P(E))}}else(k=this.player)==null||k.togglePictureInPicture()};
_.mt.Object.defineProperties(p8.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.reelWatchSequenceResponse)!=null&&k.prevEntries)return this.processWatchSequence([].concat(_.$e(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.Y("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.$e(this.prevShortsSequence));var k=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!k)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var E=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.$e(this.prevShortsSequence.slice(0,E)),[k],_.$e(this.prevShortsSequence.slice(E+1)))}E=this.index+this.shortsProcessedPrevSequence.length;k.thumbnail=this.shortsProcessedPrevSequence[E].thumbnail;return[].concat(_.$e(this.shortsProcessedPrevSequence.slice(0,E)),[k],_.$e(this.shortsProcessedPrevSequence.slice(E+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.reelWatchSequenceResponse)!=null&&k.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var k=this;if(_.Y("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var E;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((E=this.shortsProcessedSequence)==null?void 0:E.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var S,R=_.W((S=this.firstShortsData)==null?void 0:S.command,_.hg);if(R==null||!R.videoId)return this.shortsProcessedSequence;
R=this.getIndexInSequence(this.shortsSequence,R.videoId);if(R!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=R,_.ZJ.addLowPriorityJob(function(){k.transitionToVideoThrottle.fire(k.index);k.movePlayerToVideo(k.index)}));
return[].concat(_.$e(this.shortsSequence))}return[this.firstShortsData].concat(_.$e(this.shortsSequence))}}else if(this.data||this.shortsSequence){S=this.getCurrentShort();if(!S||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[S];if(S==null||!S.reelNonVideoContentRenderer)if(E=this.getIndexInSequence(this.shortsSequence,_.W(this.currentEndpoint,_.hg).videoId),this.index===0&&E!==-1)return this.currentPlayerIndex=this.index=E,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.$e(this.shortsSequence.slice(0,this.index)),[S],_.$e(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){S.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var V,N,h;E=((V=_.W((R=this.shortsProcessedSequence[0])==null?void 0:R.command,_.hg))==null?void 0:V.videoId)===((h=_.W((N=this.shortsSequence[0])==null?void 0:N.command,_.hg))==null?void 0:h.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.$e(this.shortsProcessedSequence.slice(0,
this.index)),[S],_.$e(this.shortsSequence.slice(E)))}return[S].concat(_.$e(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var k=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;k&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(k)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 k,E;return this.index===((k=this.reelWatchSequenceResponse)==null?void 0:(E=k.entries)==null?void 0:E.length)}var S;return!((S=this.reelWatchSequenceResponse)==null?0:S.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var k;(k=this.delayedActiveIndexUpdateDebouncer)==null||k.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return this.isShortPlayable()||((E=_.W((k=this.data)==null?void 0:k.watchStatus,_.dqj))==null?void 0:(S=E.style)==null?void 0:S.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var k=this,E=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),S;if((this.data||E)&&(((S=this.data)==null?0:S.engagementPanels)||this.isAd()||E)){E=!1;this.activePanel="shorts-comments-panel";var R;S=_.n(((R=this.data)==null?void 0:R.engagementPanels)||[]);for(R=S.next();!R.done;R=S.next())if(this.getPanelIdentifier(R.value.engagementPanelSectionListRenderer)===this.activePanel){E=!0;break}if(this.isPersistentPanelActive){var V=
_.en().resolve(_.$g);_.uM(_.ZJ,function(){V.showPanel({identifier:k.activePanel,target:null})},100)}var N;
R=[].concat(_.$e(Object.values(((N=this.data)==null?void 0:N.engagementPanels)||{})));if(_.Y("enable_preview_panel_for_shorts_search_suggested_action")){var h,J,m,a,T;((a=_.W((h=this.data)==null?void 0:(J=h.overlay)==null?void 0:(m=J.reelPlayerOverlayRenderer)==null?void 0:m.metapanel,_.rrz))==null?void 0:(T=a.metadataItems)==null?void 0:T.find(function(w){var P,B;return((P=_.W(w,UTX))==null?void 0:(B=P.icon)==null?void 0:B.iconType)==="SEARCH"}))!==void 0&&R.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}N=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);h=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return N===void 0&&h===void 0||(N==null?0:N.isDisabled)||(h==null?void 0:h.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!E?(E=R==null?void 0:R.findIndex(function(w){var P,
B;return((P=w.engagementPanelSectionListRenderer)==null?void 0:(B=P.identifier)==null?void 0:B.tag)==="shorts-comments-panel"}),E===-1||E===void 0||R!=null&&R.splice(E,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Vi("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Vi("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:_.Vi("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Vi("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(_.$e(Object.values(R||
{})))):R}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.shortsProcessedSequence)==null?void 0:k[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var k=this,E,S,R;if((E=this.playerData)==null?0:(S=E.playabilityStatus)==null?0:(R=S.errorScreen)==null?0:R.playerInterstitialRenderer)return _.ZJ.addLowPriorityJob(function(){k.movePlayerToVideo(k.index)}),this.playerData.playabilityStatus.errorScreen;
var V,N;return((V=this.data)==null?void 0:V.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((N=this.data)==null?0:N.watchStatus)&&_.W(this.data.watchStatus,_.Jtd)?(_.ZJ.addLowPriorityJob(function(){k.movePlayerToVideo(k.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.mt.Object.defineProperties(p8,{template:{configurable:!0,enumerable:!0,get:function(){if(pyg===void 0){var k=document.createElement("template");_.X(k,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);pyg=k}k=pyg;return k}}});
p8.prototype.onNextButtonDataChange=p8.prototype.onNextButtonDataChange;p8.prototype.onPrevButtonDataChange=p8.prototype.onPrevButtonDataChange;p8.prototype.onPersistentPanelActiveChanged=p8.prototype.onPersistentPanelActiveChanged;p8.prototype.lazyUpdateMiniplayerData=p8.prototype.lazyUpdateMiniplayerData;p8.prototype.onShortsPipActiveChanged=p8.prototype.onShortsPipActiveChanged;p8.prototype.setActiveIndex=p8.prototype.setActiveIndex;p8.prototype.graftNvcRenderer=p8.prototype.graftNvcRenderer;
p8.prototype.graftClientVisualElements=p8.prototype.graftClientVisualElements;p8.prototype.onActiveChanged=p8.prototype.onActiveChanged;p8.prototype.onShortsDismiss=p8.prototype.onShortsDismiss;p8.prototype.onShortUndoDismiss=p8.prototype.onShortUndoDismiss;p8.prototype.playerDataChanged=p8.prototype.playerDataChanged;p8.prototype.afterPlayerStarted=p8.prototype.afterPlayerStarted;p8.prototype.updateReelWatchSequenceResponse=p8.prototype.updateReelWatchSequenceResponse;
p8.prototype.unhideCurrentOverlay=p8.prototype.unhideCurrentOverlay;p8.prototype.onServiceRequestCompleted=p8.prototype.onServiceRequestCompleted;p8.prototype.engagementPanelsChanged=p8.prototype.engagementPanelsChanged;p8.prototype.onFullscreenChange=p8.prototype.onFullscreenChange;p8.prototype.onResize=p8.prototype.onResize;p8.prototype.setFirstShortsData=p8.prototype.setFirstShortsData;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],p8.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.NR.YtPageBehavior),_.l("design:type",Object)],p8.prototype,"ytPageBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],p8.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.KS),_.l("design:type",Object)],p8.prototype,"ironResizableBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],p8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],p8.prototype,"ytdDismissibleItemBehavior",void 0);
_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],p8.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],p8.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"playerData",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"reelWatchSequenceResponse",void 0);
_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"cachedReelWatchSequenceResponse",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"cachedSequenceParams",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"cachedSequenceProvider",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"currentEndpoint",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"nextButtonData",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"prevButtonData",void 0);
_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"isPreviousPageShorts",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"index",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"delayedActiveIndex",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"playablePreviousIndex",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"player",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"isPlayerPaused",void 0);
_.Z([_.H({selector:R2X}),_.l("design:type",Object)],p8.prototype,"isPlayerStarted",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"intersectionObserver",void 0);_.Z([_.H(),_.l("design:type",Number)],p8.prototype,"cinematicsInitializeJobId",void 0);_.Z([_.H(),_.l("design:type",Number)],p8.prototype,"updateMiniplayerDataJobId",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"fitToVisibleBounds",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"pageSubtype",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],p8.prototype,"enablePreviousContinuation",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"shortsPipEnabled",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"isDark",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"shortsViewTransitions",void 0);
_.Z([_.H({selector:_.dd,reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"isFullscreen",void 0);_.Z([_.H({selector:_.sf,reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"isShortsPipActive",void 0);_.Z([_.JO("#shorts-inner-container"),_.l("design:type",HTMLElement)],p8.prototype,"shortsInnerContainer",void 0);_.Z([_.JO("#back-nav-button ytd-button-renderer"),_.l("design:type",_.mM)],p8.prototype,"backNavButton",void 0);
_.Z([_.JO("#shorts-container"),_.l("design:type",HTMLElement)],p8.prototype,"shortsContainer",void 0);_.Z([_.ue("error-screen"),_.l("design:type",HTMLElement)],p8.prototype,"errorScreenContainer",void 0);_.Z([_.ue("player"),_.l("design:type",Object)],p8.prototype,"playerElement",void 0);_.Z([_.ue("shorts-cinematic-container"),_.l("design:type",HTMLElement)],p8.prototype,"shortsCinematicContainer",void 0);
_.Z([_.ue("initial-player-container"),_.l("design:type",HTMLElement)],p8.prototype,"initialPlayerContainer",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"buttonOverride",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"anchoredPanelActive",void 0);_.Z([_.H(),_.l("design:type",String)],p8.prototype,"activePanel",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"isActive",void 0);
_.Z([_.H({selector:Sas,reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"smallScreenPersistentPanel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"isPersistentPanelActive",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"smallScreenSqueezeBack",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"enableScrollIntoViewCenter",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"formatFirst",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"enableFlexibleOverlay",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"extractOverlay",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],p8.prototype,"useAspectRatio",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"panelContainer",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"overlayContainer",void 0);
_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"isShortsInitialized",void 0);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"firstShortsData",void 0);_.Z([_.U("reelWatchSequenceResponse"),_.l("design:type",Object),_.l("design:paramtypes",[])],p8.prototype,"prevShortsSequence",null);_.Z([_.U("data","prevShortsSequence"),_.l("design:type",Object),_.l("design:paramtypes",[])],p8.prototype,"shortsProcessedPrevSequence",null);
_.Z([_.U("reelWatchSequenceResponse"),_.l("design:type",Object),_.l("design:paramtypes",[])],p8.prototype,"shortsSequence",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"setFirstShortsData",null);_.Z([_.U("data","shortsSequence","firstShortsData"),_.l("design:type",Object),_.l("design:paramtypes",[])],p8.prototype,"shortsProcessedSequence",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],p8.prototype,"isUpArrowHidden",null);_.Z([_.H({reflectToAttribute:!0}),_.U("reelWatchSequenceResponse","index","endOfNextContinuation"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],p8.prototype,"isDownArrowHidden",null);
_.Z([_.H(),_.U("index"),_.l("design:type",Number),_.l("design:paramtypes",[])],p8.prototype,"activeIndex",null);_.Z([_.U("isShortPlayable","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],p8.prototype,"shouldRenderOfflineContent",null);_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"onResize",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],p8.prototype,"anchoredEngagementPanels",null);
_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"watchWhileEngagementPanels",void 0);_.Z([_.il("isFullscreen"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"onFullscreenChange",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"engagementPanelsChanged",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],p8.prototype,"onServiceRequestCompleted",null);_.Z([_.U("data","shortsSequence","index"),_.l("design:type",Object),_.l("design:paramtypes",[])],p8.prototype,"activeReel",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"unhideCurrentOverlay",null);
_.Z([_.il("currentEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"updateReelWatchSequenceResponse",null);_.Z([_.il("isPlayerStarted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"afterPlayerStarted",null);_.Z([_.U("playerData","reelWatchSequenceResponse","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],p8.prototype,"errorScreen",null);
_.Z([_.U("errorScreen"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],p8.prototype,"hasError",null);_.Z([_.il("playerData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],p8.prototype,"playerDataChanged",null);_.Z([_.nv("yt-dismissible-item-undo-feedback"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"onShortUndoDismiss",null);
_.Z([_.nv("yt-disable-lockup-interaction"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],p8.prototype,"onShortsDismiss",null);_.Z([_.ac("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"onActiveChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"graftClientVisualElements",null);
_.Z([_.il("currentPlayerIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"graftNvcRenderer",null);_.Z([_.il("index"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"setActiveIndex",null);_.Z([_.il("isShortsPipActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"onShortsPipActiveChanged",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"lazyUpdateMiniplayerData",null);_.Z([_.H(),_.l("design:type",Object)],p8.prototype,"onOverlayDensityChanged",void 0);_.Z([_.il("isPersistentPanelActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"onPersistentPanelActiveChanged",null);
_.Z([_.il("index","data","isUpArrowHidden"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"onPrevButtonDataChange",null);_.Z([_.il("index","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],p8.prototype,"onNextButtonDataChange",null);_.Z([_.D({is:"ytd-shorts"})],p8);_.YN.registerService(_.O7R,p8);
_.bk();
}catch(e){_._DumpException(e)}
try{
_.vy("JzFVk");
var MOU;var qY$;var Ed=function(){return _.p.apply(this,arguments)||this};
_.y(Ed,_.p);Ed.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ed.prototype.computeBlueBottomLink=function(k){return k};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ed.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon_(data.bottomIcon)"}),_.l("design:type",String)],Ed.prototype,"bottomIcon",void 0);
_.Z([_.H({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.l("design:type",Boolean)],Ed.prototype,"enableBlueBottomLink",void 0);_.Z([_.D({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Ed);
_.b(Ed,"ytd-web-answer-renderer",function(){if(qY$!==void 0)return qY$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return qY$=k},{mode:_.GN("kevlar_poly_si_batch_j035")?1:2});var z5J;var Sc=function(){var k=_.p.apply(this,arguments)||this;k.hasChipBar=!1;return k};
_.y(Sc,_.p);Sc.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}}};
Sc.prototype.computeHasChipBar=function(k){return!(k==null||!k.chipBar)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Sc.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Sc.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.l("design:type",Object)],Sc.prototype,"hasChipBar",void 0);_.Z([_.D({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Sc);
_.b(Sc,"ytd-search-header-renderer",function(){if(z5J!==void 0)return z5J;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return z5J=k},{mode:1});var QbX;var RP=function(){return _.p.apply(this,arguments)||this};
_.y(RP,_.p);RP.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],RP.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-page-continuation"})],RP);
_.b(RP,"ytd-page-continuation",function(){if(QbX!==void 0)return QbX;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return QbX=k},{mode:1});var ORr;var GPs;var CtN;var kok=function(){return _.p.apply(this,arguments)||this};
_.y(kok,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],kok.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],kok.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],kok);
_.b(kok,"ytd-watch-card-one-vs-one-event",function(){if(CtN!==void 0)return CtN;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return CtN=k},{mode:1});var EyJ=function(){return _.p.apply(this,arguments)||this};
_.y(EyJ,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],EyJ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],EyJ.prototype,"data",void 0);_.Z([_.D({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],EyJ);
_.b(EyJ,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(GPs!==void 0)return GPs;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return GPs=k},{mode:1});var So$;var Rhs=function(){return _.p.apply(this,arguments)||this};
_.y(Rhs,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Rhs.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Rhs.prototype,"data",void 0);_.Z([_.D({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Rhs);
_.b(Rhs,"ytd-banner-and-box-hero-image-renderer",function(){if(So$!==void 0)return So$;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return So$=k},{mode:1});var V1r;var Vm=function(){var k=_.p.apply(this,arguments)||this;k.modern=_.Y("web_modern_buttons");return k};
_.y(Vm,_.p);Vm.prototype.computeIcon=function(){var k,E,S=(k=this.data)==null?void 0:(E=k.icon)==null?void 0:E.iconType;if(S)return _.SF(S)};
Vm.prototype.computeButtonShape=function(){var k;return{buttonText:_.$n((k=this.data)==null?void 0:k.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.mt.Object.defineProperties(Vm.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"}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Vm.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Vm.prototype,"modern",void 0);_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.U("data.style"),_.l("design:type",Object),_.l("design:paramtypes",[])],Vm.prototype,"buttonColor",null);
_.Z([_.D({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Vm);
_.b(Vm,"ytd-call-to-action-button-renderer",function(){if(V1r!==void 0)return V1r;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return V1r=k},{mode:1});var NTg;var N$=function(){return _.p.apply(this,arguments)||this};
_.y(N$,_.p);N$.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Cc(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.zT(this.data.leftThumbnail.thumbnails,216)+")")};
N$.prototype.onLeftThumbnailChanged=N$.prototype.onLeftThumbnailChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],N$.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],N$.prototype,"data",void 0);_.Z([_.il("data.leftThumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N$.prototype,"onLeftThumbnailChanged",null);_.Z([_.D({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],N$);
_.b(N$,"ytd-collage-hero-image-renderer",function(){if(NTg!==void 0)return NTg;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return NTg=k},{mode:1});var IBU;var IP=function(){return _.p.apply(this,arguments)||this};
_.y(IP,_.p);IP.prototype.computeStyle=function(k){return k};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],IP.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.l("design:type",String)],IP.prototype,"componentStyle",void 0);_.Z([_.D({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],IP);
_.b(IP,"ytd-single-hero-image-renderer",function(){if(IBU!==void 0)return IBU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return IBU=k},{mode:1});var nyX;var n8=function(){return _.p.apply(this,arguments)||this};
_.y(n8,_.p);_.I=n8.prototype;
_.I.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:_.Y("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.I.computeSubtitle=function(k){if(this.data){var E;if(this.data.upcomingEventData){k=_.$n(k.subtitle);var S=Number(this.data.upcomingEventData.startTime);isNaN(S)||(E=_.DE(_.t0(k,S)))}else E=k.subtitle;return E}};
_.I.onHeroTap=function(k){k.preventDefault();var E=this.data&&this.data.navigationEndpoint;!E||!_.v9(_.vT(k),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.v9(_.vT(k),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.Y("kevlar_watchcard_hero_video_renderer_killswitch")?_.Me(this.hostElement,"yt-navigate",{navigationEndpoint:E}):this.ytComponentBehavior.resolveCommand(E))};
_.I.computeHeroTabIndex=function(k){return k&&k.simpleText?-1:0};
_.I.computeHeroRole=function(k){return k&&k.simpleText?"":"link"};
_.I.computeIsReminderButtonPresent=function(k){return!(!k||!k.reminderButton)};
_.I.computeHideBottomItems=function(k){return!(this.computeIsReminderButtonPresent(k)||k.subtitle)};
_.I.dataChanged=function(){var k=this.get("data.buttons.buttonRenderer.serviceEndpoint"),E;((E=_.W(k==null?void 0:k.commandMetadata,_.gZ))==null?0:E.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(k)};
n8.prototype.dataChanged=n8.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],n8.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],n8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],n8.prototype,"data",void 0);
_.Z([_.H({computed:"computeSubtitle(data)"}),_.l("design:type",String)],n8.prototype,"subtitle",void 0);_.Z([_.H({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],n8.prototype,"isReminderButtonPresent",void 0);_.Z([_.H({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],n8.prototype,"hideBottomItems",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],n8.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],n8);
_.b(n8,"ytd-watch-card-hero-video-renderer",function(){if(nyX!==void 0)return nyX;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return nyX=k},{mode:1});var iOF;var iV=function(){return _.p.apply(this,arguments)||this};
_.y(iV,_.p);_.I=iV.prototype;_.I.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"}}}};
_.I.computeTitleBadges=function(k){return k?[k]:[]};
_.I.computeHeaderStyle=function(k){return k?k.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.I.computeAvatarAriaLabel=function(k){if(k){var E,S,R,V;return(V=(E=k.avatar)==null?void 0:(S=E.accessibility)==null?void 0:(R=S.accessibilityData)==null?void 0:R.label)!=null?V:_.$n(k==null?void 0:k.title)}};
_.I.computeAvatarHeight=function(k){return k==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.I.computeBadgeRowClass=function(k){return(k==null?0:k[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iV.prototype,"data",void 0);_.Z([_.H({computed:"computeTitleBadges(data.titleBadge)"}),_.l("design:type",Array)],iV.prototype,"titleBadges",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.l("design:type",String)],iV.prototype,"headerStyle",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.l("design:type",String)],iV.prototype,"badgeRowClass",void 0);_.Z([_.D({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],iV);
_.b(iV,"ytd-watch-card-rich-header-renderer",function(){if(iOF!==void 0)return iOF;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return iOF=k},{mode:1});var hhB;var JxB;var h8=function(){return _.p.apply(this,arguments)||this};
_.y(h8,_.p);h8.prototype.onMetadataTap=function(k){var E=this.data&&this.data.navigationEndpoint;E&&!_.v9(_.vT(k),this.hostElement,["A".toString()])&&_.Me(this.hostElement,"yt-navigate",{endpoint:E})};
_.mt.Object.defineProperties(h8.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 k;if(this.data.upcomingEventData){var E=_.$n(this.data.subtitle),S=Number(this.data.upcomingEventData.startTime);isNaN(S)||(k=_.DE(_.t0(E,S)))}else k=this.data.subtitle;return k}}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],h8.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data.style"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],h8.prototype,"isCondensed",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],h8.prototype,"subtitle",null);
_.Z([_.D({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],h8);
_.b(h8,"ytd-watch-card-compact-video-renderer",function(){if(JxB!==void 0)return JxB;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return JxB=k},{mode:1});var cxs;var mjg=function(){return _.p.apply(this,arguments)||this};
_.y(mjg,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mjg.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],mjg.prototype,"data",void 0);_.Z([_.D({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],mjg);
_.b(mjg,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(cxs!==void 0)return cxs;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return cxs=k},{mode:1});var J8=function(){return _.p.apply(this,arguments)||this};
_.y(J8,_.p);J8.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}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],J8.prototype,"ytRendererStamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],J8.prototype,"data",void 0);_.Z([_.D({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],J8);
_.b(J8,"ytd-vertical-watch-card-list-renderer",function(){if(hhB!==void 0)return hhB;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return hhB=k},{mode:1});var ehU;var c4=function(){var k=_.p.apply(this,arguments)||this;k.ariaExpanded="false";return k};
_.y(c4,_.p);_.I=c4.prototype;_.I.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.I.dataChanged=function(){var k;this.currentSeasonIndex=((k=this.data)==null?void 0:k.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.I.computeEpisodesInfo=function(k,E,S){if(k!==void 0&&E.length===k.length)return k[S]};
_.I.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.I.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.I.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.I.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.I.getUppercaseSimpleString=function(k){return this.ytRendererBehavior.getSimpleString(k).toUpperCase()};
_.I.updateCurrentSeasonIndexFromBinding=function(k){this.currentSeasonIndex=k.detail.value};
c4.prototype.onIronOverlayClosed=c4.prototype.onIronOverlayClosed;c4.prototype.currentSeasonIndexChanged=c4.prototype.currentSeasonIndexChanged;c4.prototype.dataChanged=c4.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],c4.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",String)],c4.prototype,"label",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],c4.prototype,"currentSeasonIndex",void 0);_.Z([_.H({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.l("design:type",Object)],c4.prototype,"episodesInfo",void 0);_.Z([_.H({value:"false"}),_.l("design:type",Object)],c4.prototype,"ariaExpanded",void 0);_.Z([_.JO("#lists"),_.l("design:type",Object)],c4.prototype,"lists",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c4.prototype,"dataChanged",null);_.Z([_.ac("currentSeasonIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],c4.prototype,"currentSeasonIndexChanged",null);_.Z([_.nv("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],c4.prototype,"onIronOverlayClosed",null);
_.Z([_.D({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],c4);
_.b(c4,"ytd-watch-card-section-dropdown-renderer",function(){if(ehU!==void 0)return ehU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ehU=k},{mode:1});var aB$;var mp=function(){var k=_.p.apply(this,arguments)||this;k.isSearch=!1;return k};
_.y(mp,_.p);mp.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}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],mp.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],mp.prototype,"isSearch",void 0);_.Z([_.D({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],mp);
_.b(mp,"ytd-watch-card-section-sequence-renderer",function(){if(aB$!==void 0)return aB$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return aB$=k},{mode:1});var t1r=_.f(function(k){return _.e("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.e(_.cp,{data:function(){return k.data().ctaButton}},{buttonViewModel:_.yB}),_.e(_.VB,{text:function(){return k.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Qm");
t1r.idomCompat=!0;_.qi(t1r,"ytd-button-banner-view-model",{props:{data:_.Nq}});var ec=function(){var k=_.p.apply(this,arguments)||this;k.isSearch=!1;return k};
_.y(ec,_.p);
ec.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"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ec.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ec.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],ec.prototype,"rounded",void 0);_.Z([_.H(),_.l("design:type",Object)],ec.prototype,"isSearch",void 0);
_.Z([_.D({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],ec);
_.b(ec,"ytd-universal-watch-card-renderer",function(){if(ORr!==void 0)return ORr;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ORr=k},{mode:1});var TTk;_.qi(_.f(function(k){var E=k.data;var S;k=!((S=_.en().resolve(_.mz(_.jF)))==null||!S());S={};return _.e("overview-message-view-model",{class:_.SQ("ytwOverviewMessageViewModelHost",(S.ytwOverviewMessageViewModelDarkBackground=k,S.ytwOverviewMessageViewModelLightBackground=!k,S))},_.e(_.t,{cond:function(){return E().primaryImage},
then:function(R){return _.e(_.vM,{data:R,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.e(_.t,{cond:function(){return E().primaryText},
then:function(){return _.e("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.e(_.VB,{text:function(){return E().primaryText}}))}}),_.e(_.t,{cond:function(){return E().secondaryText},
then:function(){return _.e("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.e(_.VB,{text:function(){return E().secondaryText}}))}}))},"Rm"),"overview-message-view-model",{props:{data:_.Nq}});_.qi(_.N1G,"ytd-overview-answer-view-model",{props:{data:_.Nq}});var aP=function(){return _.p.apply(this,arguments)||this};
_.y(aP,_.p);aP.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"}}}};
aP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],aP.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],aP.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],aP.prototype,"isSearch",void 0);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],aP);
_.b(aP,"ytd-secondary-search-container-renderer",function(){if(TTk!==void 0)return TTk;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return TTk=k},{mode:1});var wHS;var t8=function(){var k=_.p.apply(this,arguments)||this;k.renderSecondarySearchContainer=!1;k.isSearch=!1;return k};
_.y(t8,_.p);_.I=t8.prototype;_.I.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"}}}};
_.I.created=function(){var k=this;this.boundStampSecondarySearchContainerIfFits=function(){k.stampSecondarySearchContainerIfFits()};
_.l$("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.I.computeIsSearchFrictionPage=function(k){var E,S,R,V,N;k=k==null?void 0:(E=k.primaryContents)==null?void 0:(S=E.sectionListRenderer)==null?void 0:(R=S.contents)==null?void 0:(V=R[0])==null?void 0:(N=V.itemSectionRenderer)==null?void 0:N.contents;if(!k)return!1;E=_.n(k);for(S=E.next();!S.done;S=E.next())if(R=void 0,(R=S.value)==null?0:R.searchFrictionViewModel)return!0;return!1};
_.I.computeShowSecondaryColumn=function(k,E){return!!(E&&E.secondaryContents&&k)};
_.I.activeChanged=function(){var k=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Ic(this,this.debounceStampSecondarySearchContainerIfFits)),_.xT(function(){k.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Ic(this,this.debounceStampSecondarySearchContainerIfFits))};
_.I.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.I.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.I.debounceStampSecondarySearchContainerIfFits=function(){_.Lv(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.I.onRetrieveLocation=function(k,E){E.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);k.stopPropagation()};
_.I.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
t8.prototype.dataChanged=t8.prototype.dataChanged;t8.prototype.onRetrieveLocation=t8.prototype.onRetrieveLocation;t8.prototype.persistentGuideChanged=t8.prototype.persistentGuideChanged;t8.prototype.activeChanged=t8.prototype.activeChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],t8.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.g(_.KS),_.l("design:type",Object)],t8.prototype,"ironResizableBehavior",void 0);_.Z([_.H(),_.l("design:type",Boolean)],t8.prototype,"active",void 0);_.Z([_.H(),_.l("design:type",Object)],t8.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.Y("enable_desktop_search_bigger_thumbs")}}),
_.l("design:type",Boolean)],t8.prototype,"useBiggerThumbs",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.P_("desktop_search_bigger_thumbs_style")}}),
_.l("design:type",String)],t8.prototype,"biggerThumbsStyle",void 0);_.Z([_.H(),_.l("design:type",Object)],t8.prototype,"renderSecondarySearchContainer",void 0);_.Z([_.H({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.l("design:type",Boolean)],t8.prototype,"showSecondaryColumn",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.l("design:type",Boolean)],t8.prototype,"isSearchFrictionPage",void 0);
_.Z([_.H(),_.l("design:type",Object)],t8.prototype,"isSearch",void 0);_.Z([_.il("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t8.prototype,"activeChanged",null);_.Z([_.il("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t8.prototype,"persistentGuideChanged",null);
_.Z([_.nv("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],t8.prototype,"onRetrieveLocation",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t8.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],t8);
_.b(t8,"ytd-two-column-search-results-renderer",function(){if(wHS!==void 0)return wHS;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return wHS=k},{mode:1});var T0=function(){var k=_.p.apply(this,arguments)||this;k.hasSearchHeader=!1;k.hasSecondaryContent=!1;k.hasBiggerThumbs=_.Y("enable_desktop_search_bigger_thumbs");k.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return k};
_.y(T0,_.p);_.I=T0.prototype;_.I.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:_.eW(["aa","eocs"])}}};
_.I.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.I.loadPage_=function(k){this.initCsi();k&&(this.data=k,_.l$("REFINEMENTS_TUPLE",["FromSearchResponse",k.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Nd(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.I.initCsi=function(){_.Car("results",["ol","cpt"])};
_.I.updateTitle=function(){var k=_.Qo(window.location.href,"q");k||(k=_.Qo(window.location.href,"search_query"));_.Me(this.hostElement,"yt-update-title",k||"")};
_.I.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.I.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.Y("web_srp_data_changed_terminate_imp_killswitch")||_.qe(this.hostElement,"yt-terminate-video-preview-action")};
_.I.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.I.computeHasSearchHeader=function(k){var E;k=k==null?void 0:(E=k.header)==null?void 0:E.searchHeaderRenderer;return!!k&&(!!k.searchFilterButton||!!k.chipBar)};
_.I.computeHasSecondaryContent=function(k){var E,S;return!!(k==null?0:(E=k.contents)==null?0:(S=E.twoColumnSearchResultsRenderer)==null?0:S.secondaryContents)};
_.mt.Object.defineProperties(T0,{template:{configurable:!0,enumerable:!0,get:function(){if(MOU===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);MOU=k}k=MOU;return k}}});
T0.prototype.onReloadContinuationFinish=T0.prototype.onReloadContinuationFinish;T0.prototype.dataChanged=T0.prototype.dataChanged;_.Z([_.g(_.NR.YtPageBehavior),_.l("design:type",Object)],T0.prototype,"ytPageBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],T0.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],T0.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],T0.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],T0.prototype,"data",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],T0.prototype,"monitorScroll",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],T0.prototype,"hasSearchHeader",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],T0.prototype,"hasSecondaryContent",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],T0.prototype,"hasBiggerThumbs",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T0.prototype,"dataChanged",null);
_.Z([_.nv("yt-reload-continuation-finish"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T0.prototype,"onReloadContinuationFinish",null);_.Z([_.D({is:"ytd-search"})],T0);_.YN.registerService(_.QII,T0);
_.bk();
}catch(e){_._DumpException(e)}
try{
_.vy("h8y2qb");
var EJs=function(k){if(k=_.nKA(k)){var E;(E=k.sources)!=null&&E[0]?(E=_.hqm(k),E=E<1?"VERTICAL":E>1?"HORIZONTAL":"SQUARE"):E=void 0;return E}},I5=function(k){_.PY.call(this,"upload");
this.opts.query=k},Rsu=function(k,E){return _.e(SXX,{data:k,
onYtNavigate:E})},Vr$=function(k,E){return _.Ep(k.entities,"pageHeaderEntity",E)},IFX=function(k,E){return k.map(function(S){if(S.tabRenderer)return Nk$(S.tabRenderer);
if(S.expandableTabRenderer&&E){var R=S.expandableTabRenderer;return{customTabRenderable:function(){return E(R)}}}return{}})},Nk$=function(k){return{identifier:k.tabIdentifier,
aTagConfig:_.Kh({innertubeCommand:k.endpoint,forceNewState:!0}),title:k.title,selected:k.selected,disabled:k.unselectable,icon:k.icon}},nJJ=function(k){return _.zX({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:k})},igg=function(k){if(!_.MJ(document,"gtm-noscript")){var E=document.createElement("noscript");
E.id="gtm-noscript";E.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+k+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(E)}};_.dy(I5,_.PY);I5.prototype.JSC$10069_setLabel=function(k){I5.superClass_.JSC$10069_setLabel.call(this,k);return this};
I5.prototype.addUploadMetadata=function(k,E){I5.superClass_.addUploadMetadata.call(this,k,E);return this};var hsX=function(k){if(k!=="youtubebanner"&&k!=="youtube-channel-banner")throw Error("Ho");I5.call(this,k)};
_.y(hsX,I5);hsX.prototype.JSC$10069_setLabel=function(k){I5.prototype.JSC$10069_setLabel.call(this,k);return this};
hsX.prototype.addUploadMetadata=function(k,E){I5.prototype.addUploadMetadata.call(this,k,E);return this};var JJF=[_.KS,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(k){_.em(k).path[0]!==this&&(this.resetLayout(),k.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var k=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.N7(this._layoutDebouncer,_.PM,k);_.I0(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var k=this;requestAnimationFrame(function(){k.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(k){this.resizerShouldNotify(k)&&this._notifyDescendant(k)},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 cJU=[_.xXC,{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(k,E){var S=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[k];if(!S)throw new ReferenceError(this._getUndefinedMsg(k));k=this._boundEffect(S,E||{});k.setUp();return k},
_effectsChanged:function(k,E,S){this._tearDownEffects();k&&S&&(k.split(" ").forEach(function(R){var V;R!==""&&((V=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[R])?this._effects.push(this._boundEffect(V,E[R])):console.warn(this._getUndefinedMsg(R)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(k,E){E=E||{};var S=parseFloat(E.startsAt||0),R=parseFloat(E.endsAt||1),V=R-S,N=function(){};
R=S===0&&R===1?k.run:function(h,J){k.run.call(this,Math.max(0,(h-S)/V),J)};
return{setUp:k.setUp?k.setUp.bind(this,E):N,run:k.run?R.bind(this):N,tearDown:k.tearDown?k.tearDown.bind(this):N}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(k){k.setUp()!==!1&&this._effectsRunFn.push(k.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(k){k.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(k,E){this._effectsRunFn&&this._effectsRunFn.forEach(function(S){S(k,E)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var k=this._clampedScrollTop;this._updateScrollState(k);this.threshold>0&&this._setThresholdTriggered(k>=this.threshold)}},
_getDOMRef:function(k){console.warn("_getDOMRef","`"+k+"` is undefined")},
_getUndefinedMsg:function(k){return"Scroll effect `"+k+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+k+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Io`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(k){var E={};k=parseFloat(k.scalar);E.background=this._getDOMRef("background");E.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");E.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");E.deltaBg=E.backgroundFrontLayer.offsetHeight-E.background.offsetHeight;E.deltaBg===0?(isNaN(k)&&(k=.8),E.deltaBg=(this._dHeight||0)*k):(isNaN(k)&&(k=
1),E.deltaBg*=k);this._fxParallaxBackground=E},
run:function(k){var E=this._fxParallaxBackground;this.transform("translate3d(0px, "+E.deltaBg*Math.min(1,k)+"px, 0px)",E.backgroundFrontLayer);E.backgroundRearLayer&&this.transform("translate3d(0px, "+E.deltaBg*Math.min(1,k)+"px, 0px)",E.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var mUX;var esN;var aFB=function(){};
_.I=aFB.prototype;_.I._scrollTargetChanged=function(){};
_.I.scroll=function(){};
_.I._isValidScrollTarget=function(){};
_.I._toggleScrollListener=function(){};
_.I.toggleScrollListener=function(){};
_.I.createEffect=function(){};
_.I._effectsChanged=function(){};
_.I._layoutIfDirty=function(){};
_.I._boundEffect=function(){};
_.I._setUpEffect=function(){};
_.I._tearDownEffects=function(){};
_.I._runEffects=function(){};
_.I._scrollHandler=function(){};
_.I._scrollStateChanged=function(){};
_.I._getUndefinedMsg=function(){};
_.I.notifyResize=function(){};
_.I.assignParentResizable=function(){};
_.I.stopResizeNotificationsFor=function(){};
_.I._subscribeIronResize=function(){};
_.I._unsubscribeIronResize=function(){};
_.I.resizerShouldNotify=function(){};
_.I._onDescendantIronResize=function(){};
_.I._fireResize=function(){};
_.I._onIronRequestResizeNotifications=function(){};
_.I._parentResizableChanged=function(){};
_.I._notifyDescendant=function(){};
_.I._requestResizeNotifications=function(){};
_.I._findParent=function(){};
_.I._appResetLayoutHandler=function(){};
_.I.resetLayout=function(){};
_.I._notifyLayoutChanged=function(){};
_.I._notifyDescendantResize=function(){};
_.I._setThresholdTriggered=function(){};
aFB=_.F6({_template:function(){if(esN!==void 0)return esN;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;mUX===void 0&&(mUX=document.createElement("template"));var R=mUX;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return esN=k},
is:"tp-yt-app-header",behaviors:[cJU,JJF],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 k=_.em(this.$.slot).getDistributedNodes(),E=0,S;S=k[E];E++)if(S.nodeType===Node.ELEMENT_NODE)if(S.hasAttribute("sticky")){this._stickyElRef=S;break}else this._stickyElRef||(this._stickyElRef=S);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var k=this._clampedScrollTop,E=this._height===0||k===0,S=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;E||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();E?this._updateScrollState(k,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=S}},
_updateScrollState:function(k,E){if(this._height!==0){var S=0,R=this._top;var V=this._maxHeaderTop;var N=k-this._lastScrollTop,h=Math.abs(N),J=k>this._lastScrollTop,m=performance.now();this._mayMove()&&(S=this._clamp(this.reveals?R+N:k,0,V));k>=this._dHeight&&(S=this.condenses&&!this.fixed?Math.max(this._dHeight,S):S,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&h<100){if(m-this._initTimestamp>300||this._wasScrollingDown!==J)this._initScrollTop=k,this._initTimestamp=m;k>=V&&
(Math.abs(this._initScrollTop-k)>30||h>10?(J&&k>=V?S=V:!J&&k>=this._dHeight&&(S=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((S-R)/(N/(m-this._lastTimestamp)),0,300)+"ms"):S=this._top)}V=this._dHeight===0?k>0?1:0:S/this._dHeight;E||(this._lastScrollTop=k,this._top=S,this._wasScrollingDown=J,this._lastTimestamp=m);if(E||V!==this._progress||R!==S||k===0)this._progress=V,this._runEffects(V,S),this._transformHeader(S)}},
_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(k){this.translate3d(0,-k+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&k>=this._stickyElTop?Math.min(k,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(k,E,S){return Math.min(S,Math.max(E,k))},
_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),_.em(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(k){switch(k){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.em(this).querySelector("[main-title]");case "condensedTitle":return _.em(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var trS;var TkX;_.F6({_template:function(){if(TkX!==void 0)return TkX;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;trS===void 0&&(trS=document.createElement("template"));var R=trS;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return TkX=k},
is:"tp-yt-app-header-layout",behaviors:[JJF],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.em(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var k=this.header;if(this.isAttached&&k){this.$.wrapper.classList.remove("initializing");k.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)k.style.left=
"",k.style.right="";else{var E=this.getBoundingClientRect(),S=document.documentElement.clientWidth-E.right;k.style.left=E.left+"px";k.style.right=S+"px"}E=this.$.contentContainer.style;S=k.offsetHeight;k.fixed&&!k.condenses&&this.hasScrollingRegion?(E.marginTop=S+"px",E.paddingTop=""):(E.paddingTop=S+"px",E.marginTop="")}}});var wUs=new _.z_("alertCommand");var PuS=new _.z_("manageLabsStateCommand");var BkX=new _.z_("inlineFormRenderer");var YXs=new _.z_("playlistSidebarPrimaryInfoRenderer");var W$N=new _.z_("productDetailsThumbnailRenderer"),F$u=new _.z_("productDetailsVariantRenderer"),yJ$=new _.z_("productDetailsVariantOptionRenderer"),oJr=new _.z_("productDetailsOffersContainerRenderer"),XU$=new _.z_("productDetailsOfferRenderer");var gJF=new _.z_("shoppingFlaggingRenderer");var UUB=new _.z_("playlistBylineRenderer");var HgU=new _.z_("insertChannelTabCommand");var nn=function(){return _.mi.apply(this,arguments)||this};
_.y(nn,_.mi);_.I=nn.prototype;_.I.activeChanged=function(){if(this.active){var k=_.Cc(this.hostElement).querySelector("#header");k&&_.Me(k,"iron-resize");window.addEventListener("scroll",_.Ic(this,this.onScroll))}else window.removeEventListener("scroll",_.Ic(this,this.onScroll)),_.Me(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.I.guideVisibleChanged=function(){var k=_.Cc(this.hostElement).querySelector("#header");k&&_.Me(k,"iron-resize")};
_.I.onScroll=function(){var k=this;_.Lv(this,"onScroll",function(){var E=_.Cc(k.hostElement).querySelector("#header");E&&E.polymerController&&(E=E.polymerController.getScrollState().progress===1?"standard":"seamed",_.Me(k.hostElement,"yt-request-panel-mode-change",{mode:E}))},10)};
_.I.tabsChanged=function(){if(this.tabs){for(var k=null,E=0,S=this.tabs.length;E<S;++E){var R=this.tabs[E].tabRenderer;if(R&&R.selected){k=E;break}}this.selected=k}};
_.I.onTabsActivate=function(k){_.Me(this.hostElement,"yt-navigate",{endpoint:this.tabs[k.detail.selected].tabRenderer.endpoint})};
nn.prototype.tabsChanged=nn.prototype.tabsChanged;nn.prototype.guideVisibleChanged=nn.prototype.guideVisibleChanged;nn.prototype.activeChanged=nn.prototype.activeChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],nn.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],nn.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.H(),_.l("design:type",Array)],nn.prototype,"tabs",void 0);
_.Z([_.H(),_.l("design:type",Object)],nn.prototype,"selected",void 0);_.Z([_.H(),_.l("design:type",Boolean)],nn.prototype,"active",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],nn.prototype,"disableHeaderFluidWidth",void 0);_.Z([_.il("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nn.prototype,"activeChanged",null);
_.Z([_.il("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nn.prototype,"guideVisibleChanged",null);_.Z([_.il("tabs"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nn.prototype,"tabsChanged",null);_.Z([_.eN()],nn);var K$N=[_.O.YtRendererBehavior,_.Ez.YtdGuideStateAwareBehavior,nn.prototype];var pUN=2/3,AJJ=_.kh(130749),rJB=function(k,E){var S=this;this.element=k;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){S.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:pUN,moveAction:function(R){S.moveAction(R)},
triggerAction:function(){S.element.isReloading=!0;_.Ab(_.JV(),{visualElement:AJJ});_.V_.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:S.element}})}}}};
_.Yo(_.JV(),AJJ,this.layer);this.gesture=new _.fB(k,E,this.refreshConfig,"pan-down");this.attach()};
_.I=rJB.prototype;_.I.attach=function(){this.gesture.attach()};
_.I.detach=function(){this.gesture.detach()};
_.I.reset=function(){this.element.close()};
_.I.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.I.moveAction=function(k){this.element.rotation=k*360};var uoU=_.kh(130750),L$J=function(k,E,S,R,V){var N=this;this.element=k;this.parent=S;this.channelHeader=R;this.ytdReduxDispatch=V;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){N.tabsStartAtInPx=N.channelHeader.clientHeight-48;var h;(h=N.selectedTab)!=null&&h.title&&(h=_.en().resolve(_.mz(_.ZD)))&&(h=h.getCurrentPage(),N.lastVisitedTabScrollPosition=h.getScrollTop(),N.previousTab&&
((N.lastVisitedTabScrollPosition===void 0?0:N.lastVisitedTabScrollPosition<N.channelHeader.clientHeight-48)?N.scrollPositionForTabs.has(N.selectedTab.title)&&N.scrollPositionForTabs.delete(N.selectedTab.title):N.scrollPositionForTabs.set(N.selectedTab.title,h.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:xUN(),triggerAction:function(){N.navigate(N.previousTab)},
moveAction:function(h,J){N.moveAction(h,J)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-xUN(),triggerAction:function(){N.navigate(N.nextTab)},
moveAction:function(h,J){N.moveAction(h,J)}}}};
_.Yo(_.JV(),uoU,this.layer);this.gesture=new _.fB(k,E,this.tabConfig);this.attach()};
_.I=L$J.prototype;_.I.attach=function(){this.gesture.attach()};
_.I.detach=function(){this.gesture.detach()};
_.I.tabsChanged=function(k){if(k){var E=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;k=_.n(k);for(var S=k.next();!S.done;S=k.next()){S=S.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=S);var R=void 0;if((R=S)==null?0:R.selected)this.previousTab=E,this.selectedTab=S;E=S}E=this.gesture;k=this.getConfig();E.config=k;this.scrollPositionNeedsUpdate=!0}};
_.I.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}})};
_.I.moveAction=function(k,E){if(!this.tabsElement){var S;this.tabsElement=(S=this.parent.header)==null?void 0:S.tabsElement;E==="right"&&this.previousTab?_.B68(_.As.instance,this.previousTab.endpoint,{},""):E==="left"&&this.nextTab&&_.B68(_.As.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}S=this.tabsElement._pos;E==="right"&&(k*=-1);this.tabsElement._positionBar(S.width,S.left*1+S.width*k)};
var xUN=function(){var k,E;return(E=(k=_.en().resolve(_.ZD).getCurrentPage())==null?void 0:k.clientWidth)!=null?E:0};
L$J.prototype.navigate=function(k){this.element.data=void 0;if(k=k==null?void 0:k.endpoint)this.ytdReduxDispatch(nJJ(!0)),_.Ab(_.JV(),{visualElement:uoU}),_.V_.instance.resolveCommand({navigateAction:{endpoint:k}},{form:{element:this.element}})};var jSU;var DUJ;var iH=function(){return _.p.apply(this,arguments)||this};
_.y(iH,_.p);iH.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iH.prototype,"data",void 0);_.Z([_.D({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],iH);
_.b(iH,"ytd-labs-edit-renderer",function(){if(DUJ!==void 0)return DUJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return DUJ=k},{mode:1});var $Us;var hM=function(){var k=_.p.apply(this,arguments)||this;k.dark=!1;k.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";k.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(hM,_.p);hM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
hM.prototype.ready=function(){var k=document.documentElement.hasAttribute("dark");this.setBackgroundImage(k);this.dark=k};
hM.prototype.onDarkModeToggledAction=function(k){this.setBackgroundImage(k);this.dark=k};
hM.prototype.setBackgroundImage=function(k){_.VO(this.hostElement,{"--yt-labs-header-background":"url("+(k?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],hM.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],hM.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],hM.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],hM.prototype,"dark",void 0);
_.Z([_.D({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],hM);
_.b(hM,"ytd-labs-header-renderer",function(){if($Us!==void 0)return $Us;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return $Us=k},{mode:1});var fFU;var JM=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return k};
_.y(JM,_.p);JM.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"}}}}}};
JM.prototype.onYtToggleButton=function(k){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",k.detail.toggled)};
JM.prototype.onManageLabsState=function(k){if(k=_.W(k,PuS))k.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?k.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&k.labsItemId===this.data.labsItemId&&(k.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.qe(this.hostElement,"yt-check-labs-opted-in-state").some(function(E){return E})&&this.data.confirmationDialogCommand?_.Ot(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.en().resolve(_.t3).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&k.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.en().resolve(_.t3).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
JM.prototype.onCheckLabsOptedInState=function(){var k=this.get("data.primaryButton.toggleButtonRenderer");return k?k.isToggled:!1};
_.mt.Object.defineProperties(JM.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
JM.prototype.onYtToggleButton=JM.prototype.onYtToggleButton;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],JM.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],JM.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],JM.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],JM.prototype,"itemStyle",null);_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],JM.prototype,"onYtToggleButton",null);_.Z([_.D({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],JM);
_.b(JM,"ytd-labs-item-renderer",function(){if(fFU!==void 0)return fFU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return fFU=k},{mode:1});var vJS;var bgU;var Zgs=function(){return _.p.apply(this,arguments)||this};
_.y(Zgs,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Zgs.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Zgs.prototype,"data",void 0);_.Z([_.D({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Zgs);
_.b(Zgs,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(bgU!==void 0)return bgU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return bgU=k},{mode:1});var dUk;var cb=function(){return _.p.apply(this,arguments)||this};
_.y(cb,_.p);cb.prototype.observeSuperchatChip=function(){if(this.data){var k={"--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)};_.VO(this.hostElement,k)}};
cb.prototype.colorFromDecimal=function(k){return _.Kc(Number(k||0))};
cb.prototype.observeSuperchatChip=cb.prototype.observeSuperchatChip;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],cb.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cb.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cb.prototype,"observeSuperchatChip",null);_.Z([_.D({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],cb);
_.b(cb,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(dUk!==void 0)return dUk;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return dUk=k},{mode:1});var m9=function(){return _.p.apply(this,arguments)||this};
_.y(m9,_.p);m9.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"}}}};
_.mt.Object.defineProperties(m9.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ob),_.l("design:type",Object)],m9.prototype,"ytdDismissibleItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],m9.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],m9.prototype,"hideMessageBlock",null);
_.Z([_.D({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],m9);
_.b(m9,"ytd-live-chat-history-entry-renderer",function(){if(vJS!==void 0)return vJS;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vJS=k},{mode:1});var sSX;var lFN=function(){return _.p.apply(this,arguments)||this};
_.y(lFN,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],lFN.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],lFN.prototype,"data",void 0);_.Z([_.D({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],lFN);
_.b(lFN,"ytd-channel-options-renderer",function(){if(sSX!==void 0)return sSX;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return sSX=k},{mode:1});var MrU;var eB=function(){return _.p.apply(this,arguments)||this};
_.y(eB,_.p);eB.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],eB.prototype,"data",void 0);_.Z([_.D({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],eB);
_.b(eB,"ytd-settings-email-item-renderer",function(){if(MrU!==void 0)return MrU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return MrU=k},{mode:1});var qX$;var a5=function(){return _.p.apply(this,arguments)||this};
_.y(a5,_.p);a5.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"}}}};
a5.prototype.getExpansionIcon=function(k){return k?"COLLAPSE":"EXPAND"};
a5.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.mt.Object.defineProperties(a5.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],a5.prototype,"data",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],a5.prototype,"expanded",void 0);_.Z([_.U("expanded"),_.l("design:type",String),_.l("design:paramtypes",[])],a5.prototype,"emailListExpanded",null);
_.Z([_.JO("#options"),_.l("design:type",Object)],a5.prototype,"options",void 0);_.Z([_.D({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],a5);
_.b(a5,"ytd-settings-email-list-renderer",function(){if(qX$!==void 0)return qX$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return qX$=k},{mode:1});var zsF;var tM=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return k};
_.y(tM,_.p);tM.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"}}}};
tM.prototype.handleSignalActionSubmitForm=function(){var k,E=(k=this.formRenderer)==null?void 0:k.getForm();E&&this.data.serviceEndpoint&&_.en().resolve(_.t3).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},E,{element:this.hostElement})})};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],tM.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],tM.prototype,"data",void 0);_.Z([_.JO("yt-form-renderer"),_.l("design:type",Object)],tM.prototype,"formRenderer",void 0);
_.Z([_.D({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],tM);
_.b(tM,"ytd-settings-gaia-link-renderer",function(){if(zsF!==void 0)return zsF;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return zsF=k},{mode:1});var QSu;var Tq=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return k};
_.y(Tq,_.p);Tq.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.IlP()&&this.set("data.hidden",!1)};
Tq.prototype.onSwitchReady=function(){var k=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.Y("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.NmP().then(function(E){E&&(Notification.permission==="default"?k.set("data.hidden",!1):Notification.permission==="granted"&&_.up("NotificationsDisabled").then(function(S){S||_.qe(k.hostElement,"yt-toggle-settings-switch",[k.data.id,!S]);k.set("data.hidden",!1)}).catch(function(){}))})})};
Tq.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}}}}};
Tq.prototype.handleUpdateOptionsCommand=function(k){(k=_.W(k,_.zr8))&&this.data&&this.data.id===k.id&&(this.set("data.hidden",k.hidden),k.text!==void 0&&this.set("data.text",k.text),k.clearOptions&&this.set("data.options",[]))};
Tq.prototype.onSwitchReady=Tq.prototype.onSwitchReady;Tq.prototype.dataChanged=Tq.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Tq.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Tq.prototype,"data",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tq.prototype,"dataChanged",null);_.Z([_.nv("yt-settings-switch-ready"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tq.prototype,"onSwitchReady",null);_.Z([_.D({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Tq);
_.b(Tq,"ytd-settings-options-renderer",function(){if(QSu!==void 0)return QSu;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return QSu=k},{mode:1});var OgJ;var wD=function(){return _.p.apply(this,arguments)||this};
_.y(wD,_.p);wD.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
wD.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
wD.prototype.onYtExpanderMoreTapped=wD.prototype.onYtExpanderMoreTapped;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],wD.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],wD.prototype,"data",void 0);
_.Z([_.nv("yt-expander-more-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],wD.prototype,"onYtExpanderMoreTapped",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],wD);
_.b(wD,"ytd-product-details-description-renderer",function(){if(OgJ!==void 0)return OgJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return OgJ=k},{mode:1});var GBB;var Pb=function(){var k=_.p.apply(this,arguments)||this;k.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";k.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";k.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";k.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return k};
_.y(Pb,_.p);Pb.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.mt.Object.defineProperties(Pb.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:(E=k.offerData)==null?void 0:E.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?void 0:k.purchaseButtonRenderers)!==void 0&&((E=this.data)==null?void 0:E.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var k,E;return!((k=this.data)==null||!k.formattedFromMerchantText)&&(!((E=this.data)==null||!E.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Pb.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Pb.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Pb.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Pb.prototype,"data",void 0);
_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],Pb.prototype,"shippingIcon",void 0);_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],Pb.prototype,"shippingAddressIcon",void 0);_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],Pb.prototype,"googleGuaranteeIcon",void 0);
_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?String:void 0}),_.l("design:type",Object)],Pb.prototype,"returnPolicyIcon",void 0);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pb.prototype,"showAdditionalFees",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pb.prototype,"showMultiPurchaseButtons",null);
_.Z([_.U("data","showMultiPurchaseButtons"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Pb.prototype,"showPurchaseData",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Pb);
_.b(Pb,"ytd-product-details-hero-offer-renderer",function(){if(GBB!==void 0)return GBB;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return GBB=k},{mode:1});var CuX;var kPk;var Bb=function(){return _.p.apply(this,arguments)||this};
_.y(Bb,_.p);_.I=Bb.prototype;_.I.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.I.onKeyDown=function(k){k=k.keyCode;k!==13&&k!==32||this.handleSelection()};
_.I.onMouseEnterImage=function(){var k;((k=this.data)==null?void 0:k.thumbnailDetails)!==void 0&&_.zR(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.I.onMouseLeaveImage=function(){_.zR(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.I.handleSelection=function(){this.data&&_.Me(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.mt.Object.defineProperties(Bb.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.isSelected)}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Bb.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Bb.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Bb.prototype,"isSelected",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],Bb);
_.b(Bb,"ytd-product-details-thumbnail-renderer",function(){if(kPk!==void 0)return kPk;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return kPk=k},{mode:1});var YY=function(){var k=_.p.apply(this,arguments)||this;var E={};k.actionMap=(E["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",E["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",E);k.selectedThumbnailIndex=0;k.selectItem=function(S){S.target.onKeyDown(S)};
return k};
_.y(YY,_.p);_.I=YY.prototype;_.I.handlePreviewImageSelect=function(k){this.hoverThumbnail=k};
_.I.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.I.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.I.onThumbnailSelected=function(k,E){this.selectedThumbnailIndex=E};
_.I.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.I.updateOffset=function(){var k=_.Cc(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-k));this.ytdHorizontalListBehavior.reposition_()};
_.mt.Object.defineProperties(YY.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null?0:k.imageRenderer){var E,S;return((E=this.data)==null?void 0:(S=E.imageRenderer)==null?void 0:S.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var k;if((k=this.data)==null?0:k.imageRenderer){var E;return(E=_.W(this.data.imageRenderer[this.selectedThumbnailIndex],W$N))==null?void 0:E.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var k=this,E,S,R,V=(R=(E=this.data)==null?void 0:(S=E.imageRenderer)==null?void 0:S.map(function(N,h){return{productDetailsThumbnailRenderer:Object.assign({},_.W(N,W$N),{index:h,isSelected:h===k.selectedThumbnailIndex})}}))!=null?R:[];
return Object.assign({},this.data,{imageRenderer:V})}}});
YY.prototype.updateOffset=YY.prototype.updateOffset;YY.prototype.dataChanged=YY.prototype.dataChanged;YY.prototype.onThumbnailSelected=YY.prototype.onThumbnailSelected;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],YY.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],YY.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.wR.YtdHorizontalListBehavior),_.l("design:type",Object)],YY.prototype,"ytdHorizontalListBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],YY.prototype,"componentBehavior",void 0);_.Z([_.g([_.H5.YtActionHandlerBehavior]),_.l("design:type",Object)],YY.prototype,"actionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],YY.prototype,"data",void 0);_.Z([_.H({value:"$.items.children"}),_.l("design:type",String)],YY.prototype,"itemsPath",void 0);_.Z([_.H({value:3}),_.l("design:type",Number)],YY.prototype,"initialCount",void 0);
_.Z([_.JO("#items"),_.l("design:type",Object)],YY.prototype,"items",void 0);_.Z([_.H(),_.l("design:type",Object)],YY.prototype,"selectedThumbnailIndex",void 0);_.Z([_.H(),_.l("design:type",Object)],YY.prototype,"hoverThumbnail",void 0);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],YY.prototype,"showThumbnails",null);
_.Z([_.nv("ytd-product-details-thumbnail-renderer-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Number]),_.l("design:returntype")],YY.prototype,"onThumbnailSelected",null);_.Z([_.U("data","selectedThumbnailIndex","hoverThumbnail"),_.l("design:type",Object),_.l("design:paramtypes",[])],YY.prototype,"thumbnailDetails",null);_.Z([_.U("data","selectedThumbnailIndex"),_.l("design:type",Object),_.l("design:paramtypes",[])],YY.prototype,"populatedData",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YY.prototype,"dataChanged",null);_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YY.prototype,"updateOffset",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],YY);
_.b(YY,"ytd-product-details-image-carousel-renderer",function(){if(CuX!==void 0)return CuX;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return CuX=k},{mode:_.GN("kevlar_poly_si_batch_j079")?1:2});var EeJ;var Wb=function(){return _.p.apply(this,arguments)||this};
_.y(Wb,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Wb.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Wb.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Wb.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Wb.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Wb);
_.b(Wb,"ytd-product-details-offer-renderer",function(){if(EeJ!==void 0)return EeJ;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return EeJ=k},{mode:1});var SYX;var FB=function(){var k=_.p.apply(this,arguments)||this;k.isOffersHidden=!0;return k};
_.y(FB,_.p);FB.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var k,E=_.W((k=this.data)==null?void 0:k.viewOffersButton,_.dZ);E&&this.ytRendererBehavior.logExplicitClick(E)};
FB.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.mt.Object.defineProperties(FB.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R;return(S=_.W((k=this.data)==null?void 0:(E=k.offers)==null?void 0:E[0],XU$))==null?void 0:(R=S.offerData)==null?void 0:R.vendorLogoUrl}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],FB.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],FB.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],FB.prototype,"isOffersHidden",void 0);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],FB.prototype,"firstOfferVendorLogoUrl",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],FB);
_.b(FB,"ytd-product-details-offers-container-renderer",function(){if(SYX!==void 0)return SYX;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return SYX=k},{mode:1});var R5N;var VOk;var yT=function(){return _.p.apply(this,arguments)||this};
_.y(yT,_.p);yT.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
yT.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.zR(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
yT.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.zR(this,"ytd-product-details-variant-image-unselect")};
_.mt.Object.defineProperties(yT.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 k;return((k=this.data)==null?void 0:k.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.data)==null?void 0:k.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((E=this.data)==null?void 0:E.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((S=this.data)==null?void 0:S.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var k;if(((k=this.data)==null?void 0:k.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var k,E;return this.isUnavailable?(k=this.data)==null?void 0:k.variantOptionUnavailableAccessibilityLabel:(E=this.data)==null?void 0:E.variantOptionAccessibilityLabel}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],yT.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],yT.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],yT.prototype,"displayType",void 0);
_.Z([_.U("displayType","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yT.prototype,"isImageButton",null);_.Z([_.U("displayType","data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yT.prototype,"isPillButton",null);_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yT.prototype,"isActive",null);
_.Z([_.U("data"),_.H({reflectToAttribute:!0}),_.l("design:type",Boolean),_.l("design:paramtypes",[])],yT.prototype,"isUnavailable",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],yT.prototype,"thumbnailDetails",null);_.Z([_.U("isUnavailable","data"),_.l("design:type",Object),_.l("design:paramtypes",[])],yT.prototype,"accessibilityLabel",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],yT);
_.b(yT,"ytd-product-details-variant-option-renderer",function(){if(VOk!==void 0)return VOk;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return VOk=k},{mode:1});var NPJ;var o5=function(){var k=_.p.apply(this,arguments)||this;k.variantsExpanded=!1;k.hideShowMoreLessVariantButton=!0;k.initialized=!1;k.computeVariantsDebouncer=null;k.computeVariants=function(E){E=E===void 0?!1:E;k.variantsExpanded||k.showOptions()||!E||(k.variantsExpanded=!0);if(k.variantsExpanded){E=_.n(k.items.children);for(var S=E.next();!S.done;S=E.next())S.value.hidden=!1}k.initialized=!0};
return k};
_.y(o5,_.p);_.I=o5.prototype;_.I.ready=function(){var k=this;setTimeout(function(){k.computeVariants(!0)})};
_.I.showOptions=function(){for(var k=_.n(this.items.children),E=k.next();!E.done;E=k.next())E.value.hidden=!0;var S=this.container.getBoundingClientRect().width,R=0,V=k=0;E=!1;for(var N=_.n(this.items.children),h=N.next();!h.done;h=N.next()){h=h.value;h.hidden=!1;var J=h.getBoundingClientRect().width;if(R+J<S)R+=J;else if(++V<2)R=J;else break;k+=1;h.hasAttribute("is-active")&&(E=!0)}for(S=k;S<this.items.children.length;S++)this.items.children[S].hidden=!0;this.hideShowMoreLessVariantButton=k===this.items.children.length;
return E};
_.I.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.N7(this.computeVariantsDebouncer,_.MN.after(100),this.computeVariants)};
_.I.onShowMoreLessVariantsButtonClick=function(){var k;(k=this.data)!=null&&k.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.I.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.mt.Object.defineProperties(o5.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(k=this.data)==null?void 0:(E=k.variantOptionRenderers)==null?void 0:E.find(function(N){return _.W(N,yJ$).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),R,V;
return(V=(R=_.W(S,yJ$))==null?void 0:R.name)!=null?V:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.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"}}}});
o5.prototype.debouncedComputeVariants=o5.prototype.debouncedComputeVariants;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],o5.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],o5.prototype,"componentBehavior",void 0);_.Z([_.g(_.KS),_.l("design:type",Object)],o5.prototype,"ironResizableBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],o5.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],o5.prototype,"variantsExpanded",void 0);_.Z([_.H(),_.l("design:type",Object)],o5.prototype,"hideShowMoreLessVariantButton",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],o5.prototype,"initialized",void 0);_.Z([_.JO("#items"),_.l("design:type",HTMLDivElement)],o5.prototype,"items",void 0);_.Z([_.JO("#container"),_.l("design:type",HTMLDivElement)],o5.prototype,"container",void 0);
_.Z([_.JO("#more-variants-button"),_.l("design:type",HTMLElement)],o5.prototype,"moreVariantsButton",void 0);_.Z([_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],o5.prototype,"selectedOptionName",null);_.Z([_.il("data","variantsExpanded"),_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],o5.prototype,"debouncedComputeVariants",null);
_.Z([_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],o5.prototype,"displayType",null);_.Z([_.U("displayType"),_.l("design:type",Object),_.l("design:paramtypes",[])],o5.prototype,"variantItemsClassname",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],o5);
_.b(o5,"ytd-product-details-variant-renderer",function(){if(NPJ!==void 0)return NPJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return NPJ=k},{mode:1});var XB=function(){return _.p.apply(this,arguments)||this};
_.y(XB,_.p);
XB.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"}}}};
_.mt.Object.defineProperties(XB.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(E=_.W((k=this.data)==null?void 0:k.offersContainerRenderer,oJr))==null?void 0:E.offers;return S!==void 0&&(S==null?void 0:S.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 k,E,S;return((S=(k=this.data)==null?void 0:(E=k.variants)==null?void 0:E.map(function(R){var V,N;R=(N=(V=_.W(R,F$u))==null?void 0:V.variantOptionRenderers)==null?void 0:N.find(function(J){var m;return((m=_.W(J,yJ$))==null?void 0:m.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var h;return(h=_.W(R,yJ$))==null?void 0:h.name}).filter(function(R){return typeof R==="string"}))!=null?S:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var k,E,S,R=(E=_.W((k=this.data)==null?void 0:k.shoppingFlaggingRenderer,gJF))==null?void 0:(S=E.reportButton)==null?void 0:S.buttonRenderer;if(R)return{text:R.text,command:R.command,icon:{iconType:"FLAG"},accessibilityData:R.accessibilityData,trackingParams:R.trackingParams,loggingDirectives:R.loggingDirectives}}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],XB.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],XB.prototype,"data",void 0);_.Z([_.JO("#image-carousel-renderer"),_.l("design:type",Object)],XB.prototype,"imageCarouselRenderer",void 0);
_.Z([_.JO("#hero-offer-renderer"),_.l("design:type",Object)],XB.prototype,"productDetailsHeroOfferRenderer",void 0);_.Z([_.JO("#variants"),_.l("design:type",Object)],XB.prototype,"productDetailsVariantRenderer",void 0);_.Z([_.JO("#offers"),_.l("design:type",Object)],XB.prototype,"productDetailsOffersContainerRenderer",void 0);_.Z([_.JO("#description-renderer"),_.l("design:type",Object)],XB.prototype,"productDetailsDescriptionRenderer",void 0);
_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],XB.prototype,"showPurchaseData",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],XB.prototype,"showHeroOfferRenderer",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],XB.prototype,"showBrandText",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],XB.prototype,"showOffers",null);
_.Z([_.U("showOffers","showPurchaseData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],XB.prototype,"showBuySeparator",null);_.Z([_.U("showOffers","showPurchaseData"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],XB.prototype,"showBuyCard",null);_.Z([_.U("data"),_.l("design:type",String),_.l("design:paramtypes",[])],XB.prototype,"selectedVariantsText",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],XB.prototype,"shoppingReportingButtonData",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],XB);
_.b(XB,"ytd-product-details-renderer",function(){if(R5N!==void 0)return R5N;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return R5N=k},{mode:1});var IeX;var ne$;var iRU;var gD=function(){return _.p.apply(this,arguments)||this};
_.y(gD,_.p);gD.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.mt.Object.defineProperties(gD.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],gD.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],gD.prototype,"formattedAmount",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],gD.prototype,"ariaLabel",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.style"),_.l("design:type",String),_.l("design:paramtypes",[])],gD.prototype,"vcBalanceWidgetStyle",null);_.Z([_.U_({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],gD);
_.b(gD,"yt-vc-balance-renderer",function(){if(iRU===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;ne$===void 0&&(ne$=document.createElement("template"));var R=ne$;S.call(E,R.content.cloneNode(!0),k.content.firstChild);iRU=k}k=iRU;return k},{mode:2});_.B9("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var US=function(){return _.p.apply(this,arguments)||this};
_.y(US,_.p);_.mt.Object.defineProperties(US.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:""}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],US.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],US.prototype,"data",void 0);_.Z([_.H({selectorArgs:["data.vcBalanceEntityKey"],selector:function(k,E){return _.Ep(k.entities,"vcBalanceEntity",E)}}),
_.l("design:type",Object)],US.prototype,"vcBalanceEntity",void 0);_.Z([_.U("vcBalanceEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],US.prototype,"formattedAmount",null);_.Z([_.U("vcBalanceEntity"),_.l("design:type",String),_.l("design:paramtypes",[])],US.prototype,"vcBalanceAriaLabel",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],US);
_.b(US,"ytd-vc-balance-renderer",function(){if(IeX!==void 0)return IeX;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return IeX=k},{mode:1});var h5N;var Hb=function(){var k=_.p.apply(this,arguments)||this;k.rotation=0;k.isReloading=!1;return k};
_.y(Hb,_.p);Hb.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Hb.prototype.reset=function(){this.hostElement.style.opacity=""};
Hb.prototype.close=function(){var k=this;return _.c(function(E){if(E.nextAddress==1)return E.yield(k.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);k.hostElement.style.opacity="0";_.KR(E)})};
Hb.prototype.rotationChanged=Hb.prototype.rotationChanged;_.Z([_.H(),_.l("design:type",Object)],Hb.prototype,"rotation",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Hb.prototype,"isReloading",void 0);_.Z([_.JO("#icon"),_.l("design:type",HTMLElement)],Hb.prototype,"icon",void 0);_.Z([_.il("rotation"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hb.prototype,"rotationChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-refresh"})],Hb);
_.b(Hb,"ytd-refresh",function(){if(h5N!==void 0)return h5N;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return h5N=k},{mode:1});var JEB;var Kn=function(){return _.p.apply(this,arguments)||this};
_.y(Kn,_.p);Kn.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"}}}};
Kn.prototype.dataChanged=function(){if(this.data){var k=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var E=_.zT(this.data.banner.thumbnails,this.hostElement.clientWidth);E&&(E.indexOf("//")===0&&(E="https:"+E),this.hasBannerArt=!0,_.VO(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+E+")"}))}this.hasBannerArt!==k&&_.Cc(this.hostElement).querySelector("#header").fire("iron-resize")}};
Kn.prototype.updateSelectedFromBinding=function(k){this.selected=k.detail.value};
Kn.prototype.dataChanged=Kn.prototype.dataChanged;_.Z([_.g(K$N),_.l("design:type",Object)],Kn.prototype,"ytdTabbedHeaderBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.CX),_.l("design:type",Object)],Kn.prototype,"ytdGridStateAwareBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],Kn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Kn.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Kn.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],Kn.prototype,"selected",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Kn.prototype,"active",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Kn.prototype,"hasBannerArt",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Kn.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Kn);
_.b(Kn,"ytd-interactive-tabbed-header-renderer",function(){if(JEB!==void 0)return JEB;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return JEB=k},{mode:1});var cEk;var pn=function(){return _.p.apply(this,arguments)||this};
_.y(pn,_.p);pn.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
pn.prototype.computeActionsAlignment=function(k){return(k==null?void 0:k.actionsAlignment)||""};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],pn.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.l("design:type",String)],pn.prototype,"actionsAlignment",void 0);_.Z([_.D({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],pn);
_.b(pn,"ytd-page-footer-renderer",function(){if(cEk!==void 0)return cEk;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return cEk=k},{mode:1});var mV$;var e5S;var AM=function(){var k=_.p.apply(this,arguments)||this;k.isEditing=!1;k.useSlot=!1;k.isMultiline=!1;return k};
_.y(AM,_.p);_.I=AM.prototype;_.I.onKeydown=function(k){if(k.keyCode===13&&!this.isMultiline)this.onSave();else if(k.keyCode===27)this.onCancel()};
_.I.computeComponentStyle=function(k){return(k==null?0:k.style)?k.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.I.computeisMultiline=function(k){if(this.multilineOverride!==void 0)return this.multilineOverride;var E,S;return!!(k==null?0:(E=k.formField)==null?0:(S=E.textInputFormFieldRenderer)==null?0:S.isMultiline)};
_.I.computeTextDisplayed=function(k,E){if(k)return k;if(E)return E};
_.I.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.I.onSave=function(){if(this.textForm.validate()){this.textForm.save();var k=this.textForm.value;if(k)this.set("data.textDisplayed",_.DE(k));else{var E;((E=this.data)==null?0:E.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.VI("inline-form-changed",this.data));this.isEditing=!1}};
_.I.onCancel=function(){var k=_.$n(this.data.textDisplayed);k===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(k);this.isEditing=!1};
AM.prototype.onKeydown=AM.prototype.onKeydown;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],AM.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],AM.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],AM.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],AM.prototype,"isEditing",void 0);_.Z([_.H(),_.l("design:type",Object)],AM.prototype,"useSlot",void 0);_.Z([_.H(),_.l("design:type",Boolean)],AM.prototype,"multilineOverride",void 0);_.Z([_.H(),_.l("design:type",Boolean)],AM.prototype,"enableOverlayTheme",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.l("design:type",String)],AM.prototype,"componentStyle",void 0);
_.Z([_.H({computed:"computeisMultiline(data)"}),_.l("design:type",Object)],AM.prototype,"isMultiline",void 0);_.Z([_.JO("#text-form"),_.l("design:type",Object)],AM.prototype,"textForm",void 0);_.Z([_.nv("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],AM.prototype,"onKeydown",null);_.Z([_.D({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],AM);
_.b(AM,"ytd-inline-form-renderer",function(){if(e5S!==void 0)return e5S;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return e5S=k},{mode:1});var aeo;var rD=function(){var k=_.p.apply(this,arguments)||this;k.previousSelectValue=void 0;k.selectedItemMessage=void 0;return k};
_.y(rD,_.p);rD.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
rD.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var k,E,S,R,V=(k=this.data)==null?void 0:(E=k.dropdown)==null?void 0:(S=E.dropdownRenderer)==null?void 0:(R=S.entries)==null?void 0:R.map(function(J){return J.privacyDropdownItemRenderer});
k=_.n(V!=null?V:[]);for(E=k.next();!E.done;E=k.next())if((E=E.value)&&E.int32Value===this.selectedValue){this.selectedItemMessage=E.itemMessage;break}}else this.selectedItemMessage=void 0;var N;(N=this.onValueChanged)==null||N.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var h;(h=this.data)!=null&&h.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
rD.prototype.onValueChangedForSelectedValue=function(k){this.selectedValue=k.detail.value};
rD.prototype.selectedValueChanged=rD.prototype.selectedValueChanged;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],rD.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],rD.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],rD.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rD.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rD.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],rD.prototype,"theme",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Number)],rD.prototype,"selectedValue",void 0);_.Z([_.H(),_.l("design:type",Function)],rD.prototype,"onValueChanged",void 0);
_.Z([_.ac("selectedValue"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],rD.prototype,"selectedValueChanged",null);_.Z([_.D({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],rD);
_.b(rD,"ytd-dropdown-form-field-renderer",function(){if(aeo!==void 0)return aeo;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return aeo=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var tOU;var uH=function(){return _.p.apply(this,arguments)||this};
_.y(uH,_.p);_.mt.Object.defineProperties(uH.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var k=[],E=_.n(this.data||[]),S=E.next();!S.done;S=E.next())(S=_.W(S.value,UUB))&&k.push(S);return k}}});
_.Z([_.H(),_.l("design:type",Array)],uH.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],uH.prototype,"byline",null);_.Z([_.D({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],uH);
_.b(uH,"ytd-playlist-byline-renderer",function(){if(tOU!==void 0)return tOU;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return tOU=k},{mode:1});var TPr;var xY=function(){var k=_.p.apply(this,arguments)||this;k.rtlBullet=_.Y("web_playlist_stats_rtl_bullet_icon_killswitch");k.modern=_.Y("web_modern_buttons");k.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return k};
_.y(xY,_.p);_.I=xY.prototype;_.I.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"}}}}};
_.I.attached=function(){};
_.I.computeIsCustomThumbnail=function(k){return k?!!k.playlistCustomThumbnailRenderer:!1};
_.I.onYtNavigate=function(k,E){if(E&&E.actions&&E.actions.indexOf("shuffle")>-1){k=_.en().resolve(_.z7);var S=E.tempData||{};S.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);E.tempData=S;k.isShuffleNextPlaylist=!0}};
_.I.onUpdatePlaylistAction=function(k){var E;k=(E=_.W(k,_.ox8))==null?void 0:E.updatedRenderer;if(E=_.W(k,YXs))this.data=E};
_.I.computeStyleType=function(k){return k?k.toLowerCase().replace(/_/g,"-"):""};
_.I.computeThumbnailWidth=function(k){return k==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.I.computeHideThumbnailAria=function(k){if(k==null?0:k.thumbnailOverlays)for(var E=0;E<k.thumbnailOverlays.length;E++){var S=void 0;if((S=k.thumbnailOverlays[E])==null?0:S.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
xY.prototype.onYtNavigate=xY.prototype.onYtNavigate;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],xY.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],xY.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],xY.prototype,"ytComponentBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],xY.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],xY.prototype,"rtlBullet",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.l("design:type",String)],xY.prototype,"styleType",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.l("design:type",Number)],xY.prototype,"thumbnailWidth",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],xY.prototype,"modern",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.l("design:type",Boolean)],xY.prototype,"isCustomThumbnail",void 0);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Object]),_.l("design:returntype")],xY.prototype,"onYtNavigate",null);_.Z([_.D({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],xY);
_.b(xY,"ytd-playlist-sidebar-primary-info-renderer",function(){if(TPr!==void 0)return TPr;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return TPr=k},{mode:1});var wdF;var Ln=function(){return _.p.apply(this,arguments)||this};
_.y(Ln,_.p);Ln.prototype.computeOwnerVisibility=function(k){return!(!k.videoOwner&&!k.button)};
Ln.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ln.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ln.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ln.prototype,"data",void 0);_.Z([_.D({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Ln);
_.b(Ln,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(wdF!==void 0)return wdF;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return wdF=k},{mode:1});var Pt$;var jB=function(){var k=_.p.apply(this,arguments)||this;k.expanded=!1;k.isCompact=!1;return k};
_.y(jB,_.p);_.I=jB.prototype;_.I.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.I.dataChanged=function(){this.data&&_.nR(_.Cc(this.text),_.AEp(_.xVC,_.$n(this.data.text||null)))};
_.I.computeAutoScrollEnabled=function(k,E){return k&&!E};
_.I.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.I.toggleOnTap=function(){this.expanded=!this.expanded};
jB.prototype.expandedChanged=jB.prototype.expandedChanged;jB.prototype.dataChanged=jB.prototype.dataChanged;_.Z([_.g(_.nWJ),_.l("design:type",Object)],jB.prototype,"ytdAutoScrollBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],jB.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],jB.prototype,"expanded",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],jB.prototype,"isCompact",void 0);_.Z([_.H({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.l("design:type",Boolean)],jB.prototype,"autoScrollEnabled",void 0);_.Z([_.JO("#text"),_.l("design:type",Object)],jB.prototype,"text",void 0);_.Z([_.JO("#expander-icon"),_.l("design:type",Object)],jB.prototype,"expanderIcon",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jB.prototype,"dataChanged",null);_.Z([_.il("expanded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jB.prototype,"expandedChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],jB);
_.b(jB,"ytd-channel-legal-info-renderer",function(){if(Pt$!==void 0)return Pt$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Pt$=k},{mode:1});var BP$;var YYk=_.Vi("DOWNLOAD",{},"Download"),Woo=_.Vi("DOWNLOADING",{},"Downloading"),Fou=_.Vi("DOWNLOADED",{},"Downloaded"),Dz=function(){var k=_.p.apply(this,arguments)||this;k.downloadProgress=0;k.isDownloadComplete=!1;k.transferState="TRANSFER_STATE_UNKNOWN";return k};
_.y(Dz,_.p);_.I=Dz.prototype;_.I.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.I.dataChanged=function(){var k;(k=this.data)!=null&&k.tooltip||(k=_.g8(_.vo().getState(),this.playlistId),this.updateButtonState(k))};
_.I.computePlaylistId=function(k){return k};
_.I.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.I.updateButtonState=function(k){if(this.data&&(this.data.tooltip!==Woo||!_.Jp(k))){this.isDownloadComplete=!1;switch(k){case "TRANSFER_STATE_UNKNOWN":k=YYk;var E="OFFLINE_DOWNLOAD";var S="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":k=Fou;E="OFFLINE_PIN";S="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":k=Woo;E="OFFLINE_DOWNLOADING_ZERO";S="ACTION_REMOVE_WITH_PROMPT";
break;default:k=YYk,E="OFFLINE_DOWNLOAD",S="ACTION_ADD"}var R=Object.assign({},this.data);R.tooltip=k;R.accessibilityData={accessibilityData:{label:k}};R.icon={iconType:E};R.size="SIZE_DEFAULT";_.W(R.command,_.n5)&&(_.W(R.command,_.n5).action=S);this.set("data",R)}};
_.I.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var k="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?k="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?k="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?k="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?k="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?k="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(k="OFFLINE_PIN",this.isDownloadComplete=!0);var E;k!==((E=this.data.icon)==null?void 0:E.iconType)&&(E=Object.assign({},this.data),E.tooltip=Woo,E.accessibilityData={accessibilityData:{label:Woo}},E.icon={iconType:k},_.W(E.command,_.n5)&&(_.W(E.command,_.n5).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",E))}};
Dz.prototype.updateProgress=Dz.prototype.updateProgress;Dz.prototype.onTransferStateChanged=Dz.prototype.onTransferStateChanged;Dz.prototype.dataChanged=Dz.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Dz.prototype,"ytdReduxBehavior",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Dz.prototype,"forceIconButton",void 0);
_.Z([_.H({value:!0}),_.l("design:type",Boolean)],Dz.prototype,"forceIconOnly",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Dz.prototype,"overrides",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Dz.prototype,"buttonTooltipPosition",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Dz.prototype,"styleActionButton",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Dz.prototype,"disableTextTransform",void 0);
_.Z([_.H({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.l("design:type",String)],Dz.prototype,"playlistId",void 0);_.Z([_.H(),_.l("design:type",Object)],Dz.prototype,"data",void 0);_.Z([_.H({selector:_.vBb,selectorArgs:["playlistId"]}),_.l("design:type",Object)],Dz.prototype,"downloadProgress",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Dz.prototype,"isDownloadComplete",void 0);
_.Z([_.H({selector:_.g8,selectorArgs:["playlistId"]}),_.l("design:type",String)],Dz.prototype,"transferState",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],Dz.prototype,"showTooltips",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],Dz.prototype,"sendCommandWhenDisabled",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Dz.prototype,"disabled",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Dz.prototype,"dataChanged",null);_.Z([_.ac("transferState"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Dz.prototype,"onTransferStateChanged",null);_.Z([_.ac("downloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Dz.prototype,"updateProgress",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Dz);
_.b(Dz,"ytd-download-playlist-button-renderer",function(){if(BP$!==void 0)return BP$;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return BP$=k},{mode:1});var yEJ;_.qi(_.wxz,"thumbnail-overlay-button-view-model",{props:{data:_.Nq,lockupExperiments:_.Nq}});var $Y=function(){var k=_.p.apply(this,arguments)||this;k.isSquare=!1;k.isVertical=!1;return k};
_.y($Y,_.p);$Y.prototype.computeIsSquare=function(k){return k!=null&&k.thumbnail?EJs(k.thumbnail)==="SQUARE":!1};
$Y.prototype.computeIsVertical=function(k){return k!=null&&k.thumbnail?EJs(k.thumbnail)==="VERTICAL":!1};
$Y.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.l("design:type",Object)],$Y.prototype,"isSquare",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.l("design:type",Object)],$Y.prototype,"isVertical",void 0);
_.Z([_.H(),_.l("design:type",Object)],$Y.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],$Y);
_.b($Y,"ytd-hero-playlist-thumbnail-renderer",function(){if(yEJ!==void 0)return yEJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return yEJ=k},{mode:1});var fn=function(){var k=_.p.apply(this,arguments)||this;k.isDarkTheme=!1;k.isUltraWide=!1;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return k};
_.y(fn,_.p);_.I=fn.prototype;_.I.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.en();var k;(k=_.en().resolve(_.mz(_.XL)))!=null&&(k.headerElement=this.hostElement)};
_.I.detached=function(){var k;(k=_.en().resolve(_.mz(_.XL)))!=null&&(k.headerElement=void 0)};
_.I.onUpdateHeader=function(k){(k=k.detail)&&this.set("data",k)};
_.I.computeTextDisplayed=function(k){if(k)return k.textDisplayed?k.textDisplayed:k.placeholder};
_.I.gradientColorToLinearGradientStop=function(k){var E=this.isDarkTheme?k.darkThemeColor:k.lightThemeColor;return E?_.Kc(E)+" "+((k==null?void 0:k.startLocation)||0)*100+"%":"transparent"};
_.I.onWindowResize=function(){var k;((k=this.data)==null?0:k.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.I.onIronResize=function(k){this.isUltraWide=!k.detail.value};
_.I.onDarkModeToggledAction=function(k){this.isDarkTheme=k};
_.I.onUpdatePlaylistName=function(k){var E=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},k.detail.value));_.JB(this,function(){var S;(S=E.editableTitle)==null||S.resize()})};
_.I.onUpdatePlaylistDescription=function(k){var E=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},k.detail.value));_.JB(this,function(){var S;(S=E.editableDescriptionInlineExpander)==null||S.resize()})};
_.I.getCinematicData=function(k){return _.W(k==null?void 0:k.cinematicContainer,_.SB)};
_.mt.Object.defineProperties(fn.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 k,E=(k=this.getCinematicData(this.data))==null?void 0:k.config;return(k=this.isDarkTheme?E==null?void 0:E.darkThemeBackgroundColor:E==null?void 0:E.lightThemeBackgroundColor)?"background-color:"+_.HT(k)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var k;return _.W((k=this.data)==null?void 0:k.descriptionForm,BkX)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var k=this,E,S,R;return"background:linear-gradient(to bottom, "+(((R=(E=this.getCinematicData(this.data))==null?void 0:(S=E.gradientColorConfig)==null?void 0:S.map(function(V){return k.gradientColorToLinearGradientStop(V)}))==null?void 0:R.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var k;return _.$n((k=this.data)==null?void 0:k.descriptionTapText)}}});
fn.prototype.onUpdateHeader=fn.prototype.onUpdateHeader;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],fn.prototype,"actionHandlerBehavior",void 0);_.Z([_.JO("#description-inline-expander"),_.l("design:type",Object)],fn.prototype,"descriptionInlineExpander",void 0);
_.Z([_.JO("#editable-description-inline-expander"),_.l("design:type",Object)],fn.prototype,"editableDescriptionInlineExpander",void 0);_.Z([_.H(),_.l("design:type",Object)],fn.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],fn.prototype,"isUltraWide",void 0);_.Z([_.JO("#editable-title-display"),_.l("design:type",Object)],fn.prototype,"editableTitle",void 0);_.Z([_.U("isUltraWide"),_.l("design:type",Object),_.l("design:paramtypes",[])],fn.prototype,"maxDescriptionLines",null);
_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],fn.prototype,"noCinematicData",null);_.Z([_.nv("yt-new-playlist-header"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],fn.prototype,"onUpdateHeader",null);_.Z([_.U("data","isDarkTheme"),_.l("design:type",Object),_.l("design:paramtypes",[])],fn.prototype,"backgroundStyle",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],fn.prototype,"descriptionFormData",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],fn.prototype,"getDropdownTheme",null);_.Z([_.U("data","isDarkTheme"),_.l("design:type",String),_.l("design:paramtypes",[])],fn.prototype,"gradientStyle",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],fn.prototype,"descriptionTapText",null);
_.Z([_.D({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],fn);
_.b(fn,"ytd-playlist-header-renderer",function(){if(mV$!==void 0)return mV$;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return mV$=k},{mode:_.GN("kevlar_poly_si_batch_j078")?1:2});var oeg;var XdJ;var vb=function(){return _.p.apply(this,arguments)||this};
_.y(vb,_.p);vb.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],vb.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],vb.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],vb.prototype,"data",void 0);_.Z([_.D({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],vb);
_.b(vb,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(XdJ!==void 0)return XdJ;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return XdJ=k},{mode:1});var bH=function(){return _.p.apply(this,arguments)||this};
_.y(bH,_.p);
bH.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}}}}};
bH.prototype.computeUsePremiumShowStyle=function(k){if(!k||!k.items)return!1;for(var E=0;E<k.items.length;E++)if(_.W(k.items[E],YXs)){var S=void 0;return((S=_.W(k.items[E],YXs))==null?void 0:S.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bH.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.l("design:type",Boolean)],bH.prototype,"usePremiumShowStyle",void 0);
_.Z([_.D({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],bH);
_.b(bH,"ytd-playlist-sidebar-renderer",function(){if(oeg!==void 0)return oeg;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return oeg=k},{mode:1});var geo;var UVS;var HRk=function(k,E,S,R,V,N,h,J){this.minWidth=k;this.minHeight=E;this.recommendedWidth=S;this.recommendedHeight=R;this.JSC$22380_maxFileSize=V;this.title=N;this.bannerGalleryTitle=h;this.channelId=J;this.picker_=null;k=_.y7h("yt-banner");E=k.addView;S=(new hsX("youtubebanner")).addUploadMetadata("silo_id","19");S.opts.ytMaxFileSize=this.JSC$22380_maxFileSize;R=this.recommendedHeight;S.opts.ytRecWidth=this.recommendedWidth;S.opts.ytRecHeight=R;E.call(k,S);k.addView(new _.WY);E=k.addView;S=new _.WY;
S.opts.type="ytbanner";E.call(k,S.JSC$10069_setLabel(this.bannerGalleryTitle));E=k.setTitle(this.title).setSize(1E3);E.urlParamMap_.set("thumbs","orig");S=this.minWidth;R=this.minHeight;if(isNaN(S)||isNaN(R))throw Error("gb`"+S+"`"+R);E.urlParamMap_.set("minSize",S+"x"+R);E.urlParamMap_.set("cropMode","ytcb");this.builder_=k};
HRk.prototype.open=function(){var k=this;return new _.yF(function(E,S){_.wn2(k.builder_,function(R){R.action=="picked"?E(R):R.action=="cancel"&&S(Error("Jo"))});
k.picker_&&k.picker_.dispose();k.picker_=k.builder_.build();k.picker_.setVisible(!0)})};
HRk.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var Kor=function(k){this.channelId=k};
Kor.prototype.upload=function(k){var E="";k.viewToken&&(E=k.viewToken[2].type);var S=k.docs[0];k=S.crop;E={channel_id:this.channelId,fife_url:S.thumbnails[0].url,photo_id:S.id,is_gallery_image:E=="ytbanner"};k&&(E.crop_top=k.top,E.crop_right=k.right,E.crop_bottom=k.bottom,E.crop_left=k.left);return _.Jk1("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:E})};var Zz=function(){var k=_.p.apply(this,arguments)||this;k.ariaLabel=null;return k};
_.y(Zz,_.p);_.I=Zz.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.I.detached=function(){this.picker&&this.picker.dispose()};
_.I.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.I.computeAriaLabel=function(k){return k};
_.I.onTap=function(){var k=this,E;if((E=this.data)==null||!E.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new HRk(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 S;(S=this.picker)==null||S.open().then(function(R){k.handleBannerPicked(R)},function(){})}};
_.I.handleBannerPicked=function(k){var E=this;this.uploader||(this.uploader=new Kor(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(k).then(function(S){E.handleBannerUploadSucceeded(S)},function(S){E.handleBannerUploadFailed(S)})};
_.I.handleBannerUploadSucceeded=function(k){k&&k.errors?this.handleBannerUploadFailed(k):(_.Me(this.hostElement,"yt-banner-updated",k),this.message=null)};
_.I.handleBannerUploadFailed=function(k){this.message=k&&k.errors&&k.errors.length?k.errors[0]:null};
Zz.prototype.dataChanged=Zz.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Zz.prototype,"componentBehavior",void 0);_.Z([_.g(_.A$),_.l("design:type",Object)],Zz.prototype,"ironButtonState",void 0);_.Z([_.H(),_.l("design:type",Object)],Zz.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.l("design:type",Object)],Zz.prototype,"ariaLabel",void 0);
_.Z([_.H(),_.l("design:type",Object)],Zz.prototype,"message",void 0);_.Z([_.H(),_.l("design:type",Object)],Zz.prototype,"picker",void 0);_.Z([_.H(),_.l("design:type",Object)],Zz.prototype,"uploader",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Zz.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Zz);
_.b(Zz,"ytd-channel-banner-editor-renderer",function(){if(UVS!==void 0)return UVS;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return UVS=k},{mode:1});var pdX;var AEU=_.ry(["#"]),dD=function(){return _.p.apply(this,arguments)||this};
_.y(dD,_.p);dD.prototype.computeHrefWithDefault=function(k){return this.ytComponentBehavior.computeHref_(k,!0)||_.iRe(AEU)};
dD.prototype.dataChanged=function(){var k=this.data;k&&k.targetId&&_.L_p(_.xN(),k.targetId,this.moreIcon)};
dD.prototype.dataChanged=dD.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],dD.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],dD.prototype,"data",void 0);_.Z([_.JO("#more-icon"),_.l("design:type",Object)],dD.prototype,"moreIcon",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],dD.prototype,"dataChanged",null);
_.Z([_.D({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],dD);
_.b(dD,"ytd-channel-tagline-renderer",function(){if(pdX!==void 0)return pdX;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return pdX=k},{mode:1});var rE$;var sS=function(){return _.p.apply(this,arguments)||this};
_.y(sS,_.p);_.I=sS.prototype;_.I.ready=function(){var k=this;_.Cc(this.hostElement).querySelector("#form").addEventListener("submit",function(E){k.onSubmit(E)})};
_.I.onDataChanged=function(){var k;((k=this.data)==null?0:k.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.I.onIconButtonKeydown=function(k){k.keyCode===13&&this.iconButton.click()};
_.I.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.I.openOnClickHandler=function(){this.input.focus()};
_.I.onSubmit=function(k){k.preventDefault();return!1};
_.I.submitOnEnterKeyUp=function(k){var E;if(k.keyCode===13&&((E=this.data)==null?0:E.expandedText)){k=this.data.endpoint;E=_.fO.unsafeClone(k);var S;((S=_.W(E==null?void 0:E.commandMetadata,_.Sd))==null?0:S.url)?(_.W(E.commandMetadata,_.Sd).url=_.Md(_.W(E.commandMetadata,_.Sd).url,"query",this.data.expandedText),_.W(E,_.Ny)&&(_.W(E,_.Ny).query=this.data.expandedText),_.Me(this.hostElement,"yt-navigate",{endpoint:E,tempData:{disableCache:!0}})):(S=new _.LC("Error: Trying to navigate to an endpoint without url",
k),_.bM(S))}};
_.I.updateDataExpandedTextFromBinding=function(k){this.set("data.expandedText",k.detail.value)};
_.mt.Object.defineProperties(sS.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
sS.prototype.onDataChanged=sS.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.ala),_.l("design:type",Object)],sS.prototype,"ytdExpandableInputBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sS.prototype,"data",void 0);_.Z([_.JO("#input"),_.l("design:type",Object)],sS.prototype,"input",void 0);_.Z([_.JO("#icon-button"),_.l("design:type",HTMLElement)],sS.prototype,"iconButton",void 0);
_.Z([_.H(),_.l("design:type",String),_.l("design:paramtypes",[])],sS.prototype,"searchIcon",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sS.prototype,"onDataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],sS);
var SXX=_.O_()(sS,"ytd-expandable-tab-renderer",function(){if(rE$===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);rE$=k}k=rE$;return k},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var u5g;var lH=function(){var k=_.p.apply(this,arguments)||this;k.avatarSize=80;k.ariaLabel=_.Vi("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return k};
_.y(lH,_.p);lH.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
lH.prototype.computeHref=function(k){var E;return((E=_.W(k,_.Oc))==null?0:E.url)?this.componentBehavior.computeHref_(k):null};
lH.prototype.onTap=function(){var k,E;(k=this.data)==null||!k.editAvatarServiceEndpoint||((E=_.W(this.data.editAvatarServiceEndpoint,_.Oc))==null?0:E.url)||_.en().resolve(_.t3).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.Z([_.g(_.A$),_.l("design:type",Object)],lH.prototype,"ironButtonState",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],lH.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],lH.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],lH.prototype,"avatarSize",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],lH.prototype,"ariaLabel",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],lH);
_.b(lH,"ytd-channel-avatar-editor",function(){if(u5g!==void 0)return u5g;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return u5g=k},{mode:1});var xVJ=_.f(function(k){var E=k.data;var S=k.noPadding;var R=k.enableBanner;var V=k.cinematicContainerTopbarOffset;var N=k.allowCinematicContainerOverflow;var h=k.displayAsSidebar;k=k.className;_.vX(function(){E().tagManagerId&&(_.$N(E().tagManagerId,_.Mg("GL")),igg(E().tagManagerId))},"vUc8md");
var J=_.iK(Vr$,function(){return E().pageHeaderEntityKey});
return _.e("yt-page-header-renderer",{class:_.SQ("pageHeaderRendererHost",k)},_.e(_.cp,{data:function(){var m;return((m=J())==null?0:m.header)?J().header:(h==null?0:h())&&E().sidebarContent?E().sidebarContent:E().content}},{pageHeaderViewModel:function(m){return _.e(_.CU2,{data:m.data,
noPadding:S,enableBanner:R,cinematicContainerTopbarOffset:V,allowCinematicContainerOverflow:N,displayAsSidebar:function(){return(h==null?void 0:h())&&E().enableSidebarView}})}}))},"Om");
xVJ.idomCompat=!0;_.qi(xVJ,"yt-page-header-renderer",{props:{data:_.Nq,noPadding:_.Nq,enableBanner:_.Nq,cinematicContainerTopbarOffset:_.Nq,allowCinematicContainerOverflow:_.Nq,displayAsSidebar:_.Nq,className:_.Nq}});_.qi(_.km,"yt-image-banner-view-model",{props:{data:_.Nq,isPositionRelative:_.Nq}});_.qi(_.PCW,"yt-tab-group-shape",{props:{shape:_.Nq}});var Lo$=_.K5.persistentPanelVisibleSelector,MR=function(){var k=_.p.apply(this,arguments)||this;k.expandableCustomTabRenderable=function(E){return Rsu(E,function(){return void k.onSearchNavigate()})};
k.isRichGrid=!1;k.isConstrainedList=!1;k.richGridMiniMode=!1;k.richGridStyle="RICH_GRID_STYLE_UNKNOWN";k.isRichGridShorts=!1;k.responsiveSizing="COMPACT";k.disableGridStateAware=!1;k.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return k};
_.y(MR,_.p);_.I=MR.prototype;_.I.computeHeaderDisabled=function(k,E){return E||!k||this.tabsHidden};
_.I.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.I.computeIsRichGridShorts=function(k){return k==="RICH_GRID_STYLE_SHORTS_GRID"||k==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.I.computeImageBannerViewModel=function(){var k,E;return _.W((E=_.W((k=this.data)==null?void 0:k.content,_.Rb4))==null?void 0:E.banner,_.QQC)};
_.I.computeHasCinematicContainer=function(){var k,E;return!((E=_.W((k=this.data)==null?void 0:k.content,_.Rb4))==null||!E.background)};
_.I.handleHeaderResize=function(){var k=_.Cc(this.hostElement).querySelector("#header");k&&_.Me(k,"iron-resize")};
_.I.handleInsertTabCommand=function(k){var E=_.W(k,HgU);E&&(E.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(S){return S.tabRenderer&&S.tabRenderer.tabIdentifier===E.tabIdentifier})||this.splice("tabs",E.tabIndex||-1,0,E.tab))};
_.I.handleRefreshChannelTabAction=function(k){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===k&&_.Me(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.I.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.I.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.VO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.I.observerRichGridSlimItemsPerRow=function(){_.VO(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.I.updateCssVars=function(){this.richGridItemsPerRow&&_.VO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.wO("rich_grid_max_item_width",500))+16)-16+"px"})};
_.I.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.VO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.I.onDataChanged=function(){this.handleHeaderResize()};
_.I.onWindowResize=function(){this.handleHeaderResize()};
_.I.onFocusedChanged=function(k){(k=_.bv(k))&&k.is==="tp-yt-paper-tab"&&k.hasRipple()&&(k.getRipple().holdDown=!k.pointerDown&&k.focused)};
_.I.updateSelectedFromBinding=function(k){this.ytdTabbedHeaderBehavior.selected=k.detail.value};
_.I.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.mt.Object.defineProperties(MR.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:IFX(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.imageBannerViewModel)==null?void 0:k.style)==="IMAGE_BANNER_STYLE_INSET"}}});
MR.prototype.onDataChanged=MR.prototype.onDataChanged;MR.prototype.updateCssVarsForResponsiveGrid=MR.prototype.updateCssVarsForResponsiveGrid;MR.prototype.updateCssVars=MR.prototype.updateCssVars;MR.prototype.observerRichGridSlimItemsPerRow=MR.prototype.observerRichGridSlimItemsPerRow;MR.prototype.observerRichGridItemsPerRow=MR.prototype.observerRichGridItemsPerRow;MR.prototype.persistentPanelVisibleChanged=MR.prototype.persistentPanelVisibleChanged;
_.Z([_.g(_.CX),_.l("design:type",Object)],MR.prototype,"ytdGridStateAwareBehavior",void 0);_.Z([_.g(K$N),_.l("design:type",Object)],MR.prototype,"ytdTabbedHeaderBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],MR.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],MR.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],MR.prototype,"ytdReduxBehavior",void 0);_.Z([_.JO("#tabs"),_.l("design:type",Object)],MR.prototype,"tabsElement",void 0);_.Z([_.H(),_.l("design:type",Array)],MR.prototype,"tabs",void 0);_.Z([_.H(),_.l("design:type",Object)],MR.prototype,"expandableCustomTabRenderable",void 0);
_.Z([_.U("tabs.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],MR.prototype,"tabGroupShape",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MR.prototype,"isRichGrid",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MR.prototype,"isConstrainedList",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Object)],MR.prototype,"richGridMiniMode",void 0);_.Z([_.H({selector:function(k){return k.ui.richGridStyle}}),
_.l("design:type",Object)],MR.prototype,"richGridStyle",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.l("design:type",Object)],MR.prototype,"isRichGridShorts",void 0);_.Z([_.H({selector:_.Wo}),_.l("design:type",Number)],MR.prototype,"richGridItemsPerRow",void 0);_.Z([_.H({selector:function(k){return k.ui.richGridContainerWidth}}),
_.l("design:type",Number)],MR.prototype,"richGridContainerWidth",void 0);_.Z([_.H({selector:_.gB1}),_.l("design:type",Number)],MR.prototype,"richGridSlimItemsPerRow",void 0);_.Z([_.H(),_.l("design:type",Object)],MR.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MR.prototype,"responsiveSizing",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],MR.prototype,"disableGridStateAware",void 0);
_.Z([_.H({computed:"computeImageBannerViewModel(data)"}),_.l("design:type",Object)],MR.prototype,"imageBannerViewModel",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.l("design:type",Boolean)],MR.prototype,"hasCinematicContainer",void 0);_.Z([_.H({selector:_.k2A,reflectToAttribute:!0}),_.l("design:type",Boolean)],MR.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Z([_.H({selector:Lo$}),_.l("design:type",Boolean)],MR.prototype,"persistentPanelVisible",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("imageBannerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],MR.prototype,"hasBanner",null);_.Z([_.H({reflectToAttribute:!0}),_.U("imageBannerViewModel"),_.l("design:type",Object),_.l("design:paramtypes",[])],MR.prototype,"hasInsetBanner",null);
_.Z([_.H({computed:"computeTabsHidden(tabs)",value:!0}),_.l("design:type",Boolean)],MR.prototype,"tabsHidden",void 0);_.Z([_.il("persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MR.prototype,"persistentPanelVisibleChanged",null);_.Z([_.il("richGridItemsPerRow","isRichGrid"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MR.prototype,"observerRichGridItemsPerRow",null);
_.Z([_.il("richGridSlimItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MR.prototype,"observerRichGridSlimItemsPerRow",null);_.Z([_.il("richGridItemsPerRow","richGridMiniMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MR.prototype,"updateCssVars",null);
_.Z([_.il("richGridContainerWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MR.prototype,"updateCssVarsForResponsiveGrid",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],MR.prototype,"onDataChanged",null);_.Z([_.D({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],MR);
_.b(MR,"ytd-tabbed-page-header",function(){if(geo!==void 0)return geo;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return geo=k},{mode:1});var jbJ;var qR=function(){return _.p.apply(this,arguments)||this};
_.y(qR,_.p);qR.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.VO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.mt.Object.defineProperties(qR.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var k,E;return this.componentBehavior.computeIcon_(((E=_.W((k=this.data)==null?void 0:k.badge,_.nDd))==null?void 0:E.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=_.W((k=this.data)==null?void 0:k.badge,_.nDd))==null?void 0:E.label}}});
qR.prototype.observerRichGridItemsPerRow=qR.prototype.observerRichGridItemsPerRow;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],qR.prototype,"componentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],qR.prototype,"ytdReduxBehavior",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Yn}),_.l("design:type",Boolean)],qR.prototype,"richGridMiniMode",void 0);
_.Z([_.H({selector:_.Wo}),_.l("design:type",Number)],qR.prototype,"richGridItemsPerRow",void 0);_.Z([_.H(),_.l("design:type",Object)],qR.prototype,"data",void 0);_.Z([_.il("richGridItemsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qR.prototype,"observerRichGridItemsPerRow",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],qR.prototype,"badgeIconName",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],qR.prototype,"badgeLabel",null);_.Z([_.D({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],qR);
_.b(qR,"ytd-member-hub-profile-renderer",function(){if(jbJ!==void 0)return jbJ;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return jbJ=k},{mode:1});var DVU;var zq=function(){return _.p.apply(this,arguments)||this};
_.y(zq,_.p);zq.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],zq.prototype,"data",void 0);_.Z([_.D({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],zq);
_.b(zq,"ytd-settings-sidebar-renderer",function(){if(DVU!==void 0)return DVU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return DVU=k},{mode:1});var $Vs;var QT=function(){var k=_.p.apply(this,arguments)||this;k.expandableCustomTabRenderable=function(E){return Rsu(E,function(){return void k.onSearchNavigate()})};
return k};
_.y(QT,_.p);QT.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
QT.prototype.onSearchNavigate=function(){this.selected=void 0};
QT.prototype.onTabsChange=function(){var k,E=(k=this.tabs)==null?void 0:k.findIndex(function(S){var R;return S==null?void 0:(R=S.tabRenderer)==null?void 0:R.selected});
E!==void 0&&(this.selected=E)};
QT.prototype.onTabsActive=function(k){if(this.tabs!==void 0){var E,S;(k=(E=this.tabs[k.detail.selected])==null?void 0:(S=E.tabRenderer)==null?void 0:S.endpoint)&&_.Me(this.hostElement,"yt-navigate",{endpoint:k})}};
_.mt.Object.defineProperties(QT.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:IFX(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
QT.prototype.onTabsChange=QT.prototype.onTabsChange;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.CX),_.l("design:type",Object)],QT.prototype,"ytdGridStateAwareBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],QT.prototype,"ytdGuideStateAwareBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],QT.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Array)],QT.prototype,"tabs",void 0);_.Z([_.H(),_.l("design:type",Number)],QT.prototype,"selected",void 0);_.Z([_.U("tabs.*"),_.l("design:type",Object),_.l("design:paramtypes",[])],QT.prototype,"tabGroupShape",null);_.Z([_.H(),_.l("design:type",Object)],QT.prototype,"expandableCustomTabRenderable",void 0);
_.Z([_.U("tabs"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],QT.prototype,"tabsEnabled",null);_.Z([_.ac("tabs"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QT.prototype,"onTabsChange",null);_.Z([_.D({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],QT);
_.b(QT,"ytd-topic-channel-details-renderer",function(){if($Vs!==void 0)return $Vs;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return $Vs=k},{mode:1});var feB;var OS=function(){var k=_.p.apply(this,arguments)||this;k.disableGridStateAware=!1;return k};
_.y(OS,_.p);OS.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]]"}}}}}};
OS.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
OS.prototype.updateCssVars=function(){_.VO(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.wO("rich_grid_max_item_width",500))+16)-16+"px"})};
OS.prototype.updateCssVars=OS.prototype.updateCssVars;OS.prototype.activeChanged=OS.prototype.activeChanged;_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],OS.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],OS.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],OS.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Array)],OS.prototype,"tabs",void 0);_.Z([_.H(),_.l("design:type",Boolean)],OS.prototype,"active",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],OS.prototype,"disableGridStateAware",void 0);
_.Z([_.H({selector:_.Wo}),_.l("design:type",Number)],OS.prototype,"richGridItemsPerRow",void 0);_.Z([_.H({selector:_.Yn}),_.l("design:type",Boolean)],OS.prototype,"richGridMiniMode",void 0);_.Z([_.JO("ytd-carousel-item-renderer"),_.l("design:type",Object)],OS.prototype,"carousel",void 0);_.Z([_.il("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OS.prototype,"activeChanged",null);
_.Z([_.il("richGridItemsPerRow","richGridMiniMode"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OS.prototype,"updateCssVars",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],OS);
_.b(OS,"ytd-carousel-header-renderer",function(){if(feB!==void 0)return feB;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return feB=k},{mode:1});var veU;var bRX=_.ry(["https://www.google-analytics.com/analytics.js"]),Gq=function(){var k=_.p.apply(this,arguments)||this;k.scriptAnalyticsAdded=!1;return k};
_.y(Gq,_.p);Gq.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var k,E=(k=this.data)==null?void 0:k.tagManagerId;E&&(_.$N(E,_.Mg("GL")),igg(E))};
Gq.prototype.sendGoogleAnalyticsPageview=function(k){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var S=_.sX.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(S)};
var E=window.ga;E("set","page",window.location.pathname);E.l=+new Date;E("set","forceSSL",!0);E("create",k,"'auto'");E("send","pageview")};
Gq.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var k=_.g7("SCRIPT");k.name="ga-analytics";var E=_.BH(bRX);_.Ib(k,E);k.async=!0;_.Cc(this.hostElement).appendChild(k)};
Gq.prototype.dataChanged=Gq.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],Gq.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Gq.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Gq);
_.b(Gq,"ytd-channel-metadata-renderer",function(){if(veU!==void 0)return veU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return veU=k},{mode:1});var ZRu;var dV$;var Cn=function(){var k=_.p.apply(this,arguments)||this;k.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"]);k.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"]);k.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return k};
_.y(Cn,_.p);_.I=Cn.prototype;_.I.attached=function(){this.requestElementsPerRow()};
_.I.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_]]"}}}}}};
_.I.onUpdateElementsPerRowAction=function(k){k&&this.elementsPerRow!==k&&(this.elementsPerRow=k)};
_.I.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.I.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.I.computeAlertStyle_=function(k){return k};
_.I.observerElementsPerRow=function(){this.elementsPerRow&&_.VO(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.I.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.I.requestElementsPerRow=function(){_.Me(this.hostElement,"yt-request-elements-per-row")};
Cn.prototype.onIsVisibleChanged_=Cn.prototype.onIsVisibleChanged_;Cn.prototype.observerElementsPerRow=Cn.prototype.observerElementsPerRow;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Cn.prototype,"actionHandlerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Cn.prototype,"data",void 0);_.Z([_.H({value:6,reflectToAttribute:!0}),_.l("design:type",Number)],Cn.prototype,"elementsPerRow",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],Cn.prototype,"wrapButtons",void 0);_.Z([_.H({value:_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.l("design:type",Boolean)],Cn.prototype,"isMusic",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.l("design:type",String)],Cn.prototype,"alertStyle",void 0);_.Z([_.H({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.l("design:type",Function)],Cn.prototype,"dismissBoundButtonTap_",void 0);_.Z([_.H({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.l("design:type",Function)],Cn.prototype,"acceptBoundButtonTap_",void 0);_.Z([_.il("elementsPerRow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cn.prototype,"observerElementsPerRow",null);_.Z([_.il("data.isVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Cn.prototype,"onIsVisibleChanged_",null);_.Z([_.U_({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Cn);
_.b(Cn,"yt-alert-with-actions-renderer",function(){if(dV$===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;ZRu===void 0&&(ZRu=document.createElement("template"));var R=ZRu;S.call(E,R.content.cloneNode(!0),k.content.firstChild);dV$=k}k=dV$;return k},{mode:2});_.qi(_.f(function(k){function E(P){var B={};return _.e(_.VB,{text:P,className:_.SQ("ytPersonalGreetingViewModelHeadline",(B.ytPersonalGreetingViewModelHeadlineSmall=function(){return J()===48},B))})}
function S(P,B){return _.e("span",{el:P,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},E(B))}
var R=_.Z0(_.FX(function(){var P;return(P=k.data())==null?void 0:P.rendererContext},void 0,void 0,void 0,!0)),V=_.VH("span"),N=_.VH("span"),h=function(){return k.data().canvasPromoData},J=function(){var P;
return(P=k.data().bannerHeight)!=null?P:56},m=_.Lvi(R,{throttleMs:100}),a=_.Lvi(V,{throttleMs:100}),T=_.Lvi(N,{throttleMs:100}),w=function(){return a.width()-m.width()>1};
return _.e("yt-personal-greeting-view-model",{el:R,"aria-hidden":w,class:_.SQ(k.className,"ytPersonalGreetingViewModelHost"),style:_.nU({height:(0,_.MD)(function(){return w()?0:J()})})},_.e(_.t,{cond:function(){return k.data().avatar&&!(T.width()+(k.data().avatar?48:0)-m.width()>1)},
then:function(){return _.e(_.cp,{data:function(){return k.data().avatar}},{decoratedAvatarViewModel:function(P){return _.e(_.sV,{data:P.data,
className:_.SQ("ytPersonalGreetingViewModelAvatar")})}})}}),_.e("h1",null,E(function(){var P;
return(h==null?void 0:(P=h())==null?void 0:P.headline)||(T.width()+(k.data().avatar?48:0)-m.width()>1?k.data().shorterGreeting:k.data().greeting)})),S(N,function(){return k.data().greeting}),S(V,function(){return k.data().shorterGreeting}))},"Pm"),"yt-personal-greeting-view-model",{props:{data:_.Nq,
className:_.Nq}});var kw=function(){var k=_.p.apply(this,arguments)||this;k.hidden=!1;k.isConstrainedList=!1;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.responsiveSizing="COMPACT";k.attachedPlayers=_.Y("kevlar_channel_trailer_multi_attach")?[]:void 0;k.player=null;k.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return k};
_.y(kw,_.p);_.I=kw.prototype;
_.I.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}}}}};
_.I.created=function(){var k=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){k.disposeMastheadAd()}]};
_.I.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new rJB(this.refresh,this.contents))};
_.I.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.I.activeChanged=function(){var k=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=k)};
_.I.tabsChanged=function(){var k=this,E,S;if(this.pageSubtype==="channels"||_.Y("kevlar_tab_gestures_for_tabbed_header_data")&&((E=this.data)==null?0:(S=E.header)==null?0:S.carouselHeaderRenderer))this.tabGestures=new L$J(this.contents,this.contents,this.hostElement,this.header,function(h){k.ytdReduxBehavior.dispatch(h)});
var R,V,N;E=(R=this.data)==null?void 0:(V=R.contents)==null?void 0:(N=V.twoColumnBrowseResultsRenderer)==null?void 0:N.tabs;this.tabGestures&&this.tabGestures.tabsChanged(E)};
_.I.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.I.engagementPanelsChanged=function(){var k=_.en().resolve(_.$g);if(k){if(this.engagementPanels)for(var E=_.n(this.engagementPanels),S=E.next();!S.done;S=E.next()){var R=void 0;(S=(R=S.value.identifier)==null?void 0:R.tag)&&k.panelMap.delete(S)}this.engagementPanels=[];var V;E=_.n(((V=this.data)==null?void 0:V.panels)||[]);for(V=E.next();!V.done;V=E.next()){V=_.W(V.value,_.kGo);var N=S=void 0,h=void 0,J=void 0;if(R=((S=V)==null?void 0:S.targetId)||((N=V)==null?void 0:N.panelIdentifier)||((h=V)==
null?void 0:(J=h.identifier)==null?void 0:J.tag))N=S=void 0,(N=(S=k).registerPanelContent)==null||N.call(S,R,{engagementPanelSectionListRenderer:V}),this.engagementPanels.push(V)}}};
_.I.onStampFinished=function(){var k=this;_.JB(this,function(){if(k.tabGestures){var E=k.tabGestures;if(E.scrollPositionNeedsUpdate){var S=_.en().resolve(_.mz(_.ZD)),R;if((R=E.selectedTab)!=null&&R.title&&S&&(R=S.getCurrentPage())){if(E.scrollPositionForTabs.has(E.selectedTab.title)){var V,N;S=(N=(V=S.getCurrentPage())==null?void 0:V.clientHeight)!=null?N:0;V=E.scrollPositionForTabs.get(E.selectedTab.title);R.setScrollTop(V);S>V+100&&(E.scrollPositionNeedsUpdate=!1)}else R.setScrollTop(Math.min(E.lastVisitedTabScrollPosition!==
void 0?E.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,E.tabsStartAtInPx)),E.scrollPositionNeedsUpdate=!1;E.ytdReduxDispatch(nJJ(!1))}}}})};
_.I.loadPage_=function(k){this.initCsi();k&&(this.data=k);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.I.getTitle=function(k){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",k))return this.get("microformat.microformatDataRenderer.title",k);if(this.get("header.feedTabbedHeaderRenderer.title",k))return _.$n(this.get("header.feedTabbedHeaderRenderer.title",k));if(this.get("header.interactiveTabbedHeaderRenderer.title",k))return this.get("header.interactiveTabbedHeaderRenderer.title",k);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
k))return _.$n(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",k));var E,S;return(k==null?0:(E=k.header)==null?0:(S=E.pageHeaderRenderer)==null?0:S.pageTitle)?k.header.pageHeaderRenderer.pageTitle:""};
_.I.updateTitle=function(k){_.Me(this.hostElement,"yt-update-title",this.getTitle(k))};
_.I.initCsi=function(){_.Car(this.pageSubtype||"browse",["ol","cpt"])};
_.I.getPlayer=function(){if(_.Y("kevlar_channel_trailer_multi_attach")){for(var k=_.n(this.attachedPlayers),E=k.next();!E.done;E=k.next())if(E=E.value,E.isConnected||_.zx(this.hostElement,E))return E;return null}return this.player};
_.I.getPlayerContainer=function(){return null};
_.I.onPlayerAttached=function(k,E){_.Y("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(E):this.player=E};
_.I.onPlayerDetached=function(k,E){_.Y("kevlar_channel_trailer_multi_attach")?(k=this.attachedPlayers.indexOf(E),k<0||this.attachedPlayers.splice(k,1)):this.player=null};
_.I.getServiceTrackingParams=function(){var k,E;return((k=this.data)==null?void 0:(E=k.responseContext)==null?void 0:E.serviceTrackingParams)||[]};
_.I.setMastheadAd=function(k){k&&k.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=k&&k.mastheadAd};
_.I.dataChanged=function(){var k=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.d2o();_.JB(this,function(){_.zR(k.hostElement,"ytd-update-grid-state-action")})};
_.I.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.I.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var k=this.data.alerts;return k&&k.find(function(E){return!!E.alertWithActionsRenderer})}};
_.I.computeGreetingData=function(){if(this.data&&this.data.alerts){var k=this.data.alerts;return k&&k.find(function(E){return!!E.personalGreetingViewModel})}};
_.I.computeHasMemberHubProfileRenderer=function(k){var E;return!!(k==null?0:(E=k.header)==null?0:E.memberHubProfileRenderer)};
_.I.handleAlertCommand=function(k){this.get("alertCommand.alert.alertWithActionsRenderer",k)&&(k=_.W(k,wUs),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",k.alert))};
_.I.handleYtPlaylistDeletionRedirect=function(k){k=this.get("playlistDeletionRedirectCommand.redirectEndpoint",k);_.Me(this.hostElement,"yt-navigate",{endpoint:k})};
_.I.computeFluidWidth=function(k,E,S){if(E==="mini_app"||S)return!0;var R,V,N;k=k==null?void 0:(R=k.contents)==null?void 0:(V=R.twoColumnBrowseResultsRenderer)==null?void 0:(N=V.tabs)==null?void 0:N.find(function(m){var a;return m==null?void 0:(a=m.tabRenderer)==null?void 0:a.selected});
if(!k)return!1;var h,J;return!!((h=k.tabRenderer)==null?0:(J=h.content)==null?0:J.richGridRenderer)&&!["channel","channels","playables"].includes(E)};
_.I.computeHeaderFluidWidth=function(k){return k==="hashtag-landing-page"};
_.I.computeHasSidebar=function(k){var E;return!!(k.sidebar||((E=k.header)==null?0:E.playlistHeaderRenderer))};
_.I.computeHasPageHeaderSidebar=function(k){var E,S;return!!((E=k.header)==null?0:(S=E.pageHeaderRenderer)==null?0:S.enableSidebarView)};
_.I.computeUseUnifiedShowPageLayout=function(k){if(!k||this.pageSubtype!=="show"||!k.sidebar||!k.sidebar.playlistSidebarRenderer)return!1;k=k.sidebar.playlistSidebarRenderer;if(!k.items)return!1;for(var E=0;E<k.items.length;E++)if(_.W(k.items[E],YXs)){var S=void 0;return((S=_.W(k.items[E],YXs))==null?void 0:S.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.I.computeIsConstrainedList=function(k){return _.Y("web_enable_constrained_list_subscriptions_channels")&&k==="subscriptions-channels"};
_.I.computeResponsiveSizing=function(k){return k==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.mt.Object.defineProperties(kw.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var k,E;return((k=this.data)==null?0:(E=k.header)==null?0:E.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var k,E;if(!((k=this.data)==null?0:(E=k.sidebar)==null?0:E.playlistSidebarRenderer))return!1;var S;return(S=this.data)!=null&&S.header?!1:!0}}});
_.mt.Object.defineProperties(kw,{template:{configurable:!0,enumerable:!0,get:function(){if(jSU===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);jSU=k}k=jSU;return k}}});
kw.prototype.dataChanged=kw.prototype.dataChanged;kw.prototype.onPlayerDetached=kw.prototype.onPlayerDetached;kw.prototype.onPlayerAttached=kw.prototype.onPlayerAttached;kw.prototype.onStampFinished=kw.prototype.onStampFinished;kw.prototype.engagementPanelsChanged=kw.prototype.engagementPanelsChanged;kw.prototype.scrollAtTopChanged=kw.prototype.scrollAtTopChanged;kw.prototype.tabsChanged=kw.prototype.tabsChanged;kw.prototype.activeChanged=kw.prototype.activeChanged;
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],kw.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],kw.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],kw.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.NR.YtPageBehavior),_.l("design:type",Object)],kw.prototype,"ytPageBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],kw.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],kw.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],kw.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],kw.prototype,"hidden",void 0);
_.Z([_.H(),_.l("design:type",Object)],kw.prototype,"mastheadAdData",void 0);_.Z([_.H({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.l("design:type",Object)],kw.prototype,"alertBannerData",void 0);_.Z([_.H({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.l("design:type",Object)],kw.prototype,"greetingData",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],kw.prototype,"pageSubtype",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.l("design:type",Boolean)],kw.prototype,"hasMemberHubProfileRenderer",void 0);_.Z([_.H({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],kw.prototype,"hasSidebar",void 0);_.Z([_.H({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],kw.prototype,"hasPageHeaderSidebar",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!0}),_.l("design:type",Boolean)],kw.prototype,"roundedContainer",void 0);_.Z([_.H({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],kw.prototype,"useUnifiedShowPageLayout",void 0);_.Z([_.H({computed:"computeIsConstrainedList(pageSubtype)"}),_.l("design:type",Object)],kw.prototype,"isConstrainedList",void 0);
_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],kw.prototype,"usePlaylistHeaderRenderer",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],kw.prototype,"useOldPlaylistSidebarRenderer",null);_.Z([_.H({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.l("design:type",Boolean)],kw.prototype,"fluidWidth",void 0);_.Z([_.H({selector:function(k){return k.ui.scrollAtTop}}),
_.l("design:type",Boolean)],kw.prototype,"scrollAtTop",void 0);_.Z([_.H({selector:_.E6R}),_.l("design:type",Boolean)],kw.prototype,"tabGesturesIsActive",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],kw.prototype,"darkerDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.l("design:type",Boolean)],kw.prototype,"disableHeaderFluidWidth",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.l("design:type",String)],kw.prototype,"responsiveSizing",void 0);_.Z([_.JO("ytd-two-column-browse-results-renderer"),_.l("design:type",HTMLElement)],kw.prototype,"contents",void 0);_.Z([_.JO("#header"),_.l("design:type",HTMLElement)],kw.prototype,"header",void 0);_.Z([_.JO("ytd-refresh"),_.l("design:type",Object)],kw.prototype,"refresh",void 0);
_.Z([_.il("active"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kw.prototype,"activeChanged",null);_.Z([_.il("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kw.prototype,"tabsChanged",null);_.Z([_.il("scrollAtTop"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kw.prototype,"scrollAtTopChanged",null);
_.Z([_.H(),_.l("design:type",Object)],kw.prototype,"engagementPanels",void 0);_.Z([_.il("data.panels"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kw.prototype,"engagementPanelsChanged",null);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kw.prototype,"onStampFinished",null);
_.Z([_.nv("yt-player-attached"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Element]),_.l("design:returntype")],kw.prototype,"onPlayerAttached",null);_.Z([_.nv("yt-player-detached"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Element]),_.l("design:returntype")],kw.prototype,"onPlayerDetached",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kw.prototype,"dataChanged",null);
_.Z([_.D({is:"ytd-browse"})],kw);_.YN.registerService(_.zSb,kw);
_.bk();
}catch(e){_._DumpException(e)}
try{
_.vy("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 le,GlP,Cva,kNP,ETP,S_0,RUR,VN0,NJR,IkW,nTA,ivx,hU2,cOA,mOP,akU,tNP,TJG,PlG,BJP,Y_U,Wi0,MH,yO0,qH,oTP,XuP,gTt,UOR,Hvx,puP,rO3,KiP,JOA,u6T,xOR,LiI,jcR,DO2,$O0,fkA,vT0,bvP,dOP,scP,MN2,zU3,OvP,GN3,Clx,EX3,RZ3,VFT,NX3,I0I,nXt,iht,hZU,JVA,cVU,mix,eZP,a0A,tFa,TXY,wMT,PYI,BXP,YkT,WRa,yVP,oX3,XMR,gXI,UiA,HhA,KRt,pMa,AVG,rVA,ud0,xiY,LRW,jvY,Dia,$ia,f0Y,vXP,bhx,ZhP,diI,svW,l03,MFa,RU,qkU,zZP,GTT,nvW,cb0,mJG,w9P,P_R,Tb2,aDI,FuY,X9I,AbT,e8A,UJ2,ybA,he,uSP,jZP,fDA,DJA,$JR,vvR,sZa,ZUU,lDa,MQA,dJI,bUI,q30,eJ,
aU,kc3,EhY,te,SfP,Rv0,VqY,J0t,c0G,Td,w5,evP,mBG,agW,tqP,TdP,wpx,P8,B8,Yc,Xp3,gh0,UBG,FZ,r0W,H5a,A0P,uXG,Kj2,LjI,ppT,$BR,jEP,DB2,yn,vhG,fg0,sE0,zvW,UH,H8,MqY,O5P,qfT,QEA,pp,r5,uS,xc,PrR,i9a,WOY,FOP,yQx,ozY,gzY,RBG,VjP,DA,IIG,Lp,jJ,nzG,XZa,BEG,NEU,fp,xhG,j3U,Dha,LOI,pZA,fIP,Z9T,lS,d5,sH,lIG,KO0,qK,b9W,AQR,vza,uwY,H9t,rQI,qia,zBP,Q3x,GbR,kea,Eq3,SBW,R_Y,Nyx,VHa,nqY,imU,J9G,c9Y,e_A,aOx,tH3,TyA,wtG,PbI,ByR,WJT,YB2,FJA,oqx,XtI,OH,gq0,UX0,Gd,HmT,KJa,ptW,A9T,r9T,urP,xXt,LJY,DXW,Cp,$Xx,fOW,Zm3,sOY,lOY,qBR,
MH0,z_P,QOa,OmW,CbP,knU,E7t,SUt,RQI,VzT,NFI,IsU,n7T,iLa,hQa,J2A,as0,tzP,mxP,eQP,c2I,TFU,BFP,wSI,PTa,FVI,YUP,WVU,y2G,o73,XS3,g7a,HLA,KVP,pST,r2a,u9I,LV3,DxT,fsA,bLT,dx2,lsP,qUa,Q4U,CTA,k4W,E$Y,R7I,S82,N9t,IXx,n$Y,iTa,EG,h7W,JaR,caP,WZY,yaP,o$I,HT0,I6,KZA,pNP,AaW,u$U,raI,xMI,LZG,jfA,DMU,$MG,Vn,fXW,ni,v7I,v$3,bTA,QcG,ZTI,dMP,sfW,lXU,Mut,q8t;
le=function(k){if(!k)return"browse";var E=k.page,S=k.url,R,V,N,h=(R=k.response)==null?void 0:(V=R.responseContext)==null?void 0:(N=V.webResponseContextExtensionData)==null?void 0:N.pageTheme;if(h)E=h.toLowerCase().replace(/_/g,"-");else if(E!=="watch"&&E!=="learning_journey_watch"){var J,m;if((E==="browse"||E==="settings")&&((J=k.response)==null?0:(m=J.sidebar)==null?0:m.settingsSidebarRenderer))E="WEB_PAGE_TYPE_SETTINGS";else{var a,T;E==="browse"&&((a=k.response)==null?0:(T=a.metadata)==null?0:T.channelMetadataRenderer)?
E="channel":S&&(E=_.VYC(S)||E)}}return E};
GlP=function(){var k=_.CV("yt.aba.att");return k?k:_.y0.instance!==void 0?_.y0.instance.hQn.bind(_.y0.instance):null};
Cva=function(k,E){var S;return _.c(function(R){return(S=GlP())?R.return(S(k,E,6E4)):R.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
kNP=function(k,E,S,R,V){E=E===void 0?[]:E;V=V?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:V}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.lD(k),dialogMessages:E.map(function(N){return _.lD(N)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lD(S),serviceEndpoint:V}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lD(R)}}}}}};
ETP=function(k){var E=!!_.kN().queueProxy;var S,R,V;k=k==null?void 0:(S=k.response)==null?void 0:(R=S.currentVideoEndpoint)==null?void 0:(V=R.watchEndpoint)==null?void 0:V.playlistId;return!(!E&&!k)};
S_0=function(k,E){var S=_.g_();if(ETP(k)&&!_.Y("web_watch_disable_playlist_auto_miniplayer"))return S.playlistWatchPageActivation=!0;switch(le(E)){case "yts-products":return S.productDetailsPageActivation=!0;case "mini_app":return S.miniAppPageActivation=!0;case "playables":return S.playablesDestPageActivation=!0;case "companion-canvas":return S.companionCanvasActivation=!0;default:return!1}};
RUR=function(k){k=_.nbC(k);k.length>0&&k[0].focus()};
VN0=function(k,E,S){for(var R=typeof k==="string"?k.split(""):k,V=k.length-1;V>=0;--V)V in R&&E.call(S,R[V],V,k)};
NJR=function(k,E){E=_.Hl1(k,E);E>=0&&_.Aht(k,E)};
IkW=function(k){return Array.prototype.concat.apply([],arguments)};
nTA=function(k){var E=0;E=E===void 0?0:E;if(!_.kW(k))throw _.E5("uint64");var S=typeof k;switch(E){case 512:switch(S){case "string":return _.rCI(k);case "bigint":return String((0,_.P0)(64,k));default:return _.pzm(k)}case 1024:switch(S){case "string":return _.u8I(k);case "bigint":return _.jT((0,_.P0)(64,k));default:return _.ACh(k)}case 0:switch(S){case "string":return _.rCI(k);case "bigint":return _.jT((0,_.P0)(64,k));default:return _.Kdb(k)}default:return _.s5(E,"Unknown format requested type for int64")}};
ivx=function(k){k!=null&&(k=k.JSC$8815_value_||"",k=typeof k==="string"?k:new Uint8Array(k));return k};
hU2=function(k,E){if(/-[a-z]/.test(E))return null;if(_.qo2&&k.dataset){if(_.B1b()&&!(E in k.dataset))return null;k=k.dataset[E];return k===void 0?null:k}return k.getAttribute("data-"+_.Ne(E))};
cOA=function(){var k=JOA;_.CV("yt.ads.biscotti.getId_")||_.J6("yt.ads.biscotti.getId_",k)};
mOP=function(k){_.J6("yt.ads.biscotti.lastId_",k)};
akU=function(){var k={};for(_.v_=new eUI(k.handleError===void 0?_.Zd:k.handleError,k.logEvent===void 0?_.f2:k.logEvent);_.bJ.length>0;)switch(k=_.bJ.shift(),k.type){case "ERROR":_.v_.logError(k.payload);break;case "EVENT":_.v_.logEvent(k.eventType,k.payload)}};
tNP=function(k,E,S){return _.Jph(function(R){return S?R.userIdentifier!==void 0&&!k.includes(R.userIdentifier)&&S.includes(R.publicName):R.userIdentifier!==void 0&&!k.includes(R.userIdentifier)},E)};
TJG=function(k){var E,S;return _.c(function(R){if(R.nextAddress==1)return E=_.uJ("YtIdbMeta hasAnyMeta other"),R.yield(_.Jph(function(V){return V.userIdentifier!==void 0&&V.userIdentifier!==E},k),2);
S=R.yieldResult;return R.return(S.length>0)})};
PlG=function(k,E){wua||(wua=_.ZJ.addLowPriorityJob(function(){var S,R,V,N,h;return _.c(function(J){switch(J.nextAddress){case 1:return J.yield(_.cV(),2);case 2:S=J.yieldResult;if(!S)return J.return();R=!0;_.F5(J,3);return J.yield(tNP(k,S,E),5);case 5:V=J.yieldResult;if(!V.length){R=!1;J.jumpTo(6);break}N=V[0];return J.yield(_.RH(N.actualName),7);case 7:return J.yield(_.IH(N.actualName,S),6);case 6:_.Sv(J,4);break;case 3:h=_.UY(J),_.Zn(h),R=!1;case 4:_.ZJ.cancelJob(wua),wua=0,R&&PlG(k,E),_.KR(J)}})}))};
BJP=function(){var k;return _.c(function(E){return E.nextAddress==1?E.yield(_.cV(),2):(k=E.yieldResult)?E.return(TJG(k)):E.return(!1)})};
Y_U=function(k){var E=100;E=E===void 0?500:E;var S,R,V,N,h,J;return _.c(function(m){return m.nextAddress==1?(S=_.Mg("INNERTUBE_CONTEXT_CLIENT_NAME",0),R=[S,(0,_.ev)()-2592E6],V=[S,(0,_.ev)()],N=IDBKeyRange.bound(R,V),m.yield(_.jch(k),2)):m.nextAddress!=3?(h=m.yieldResult,J=[],m.yield(_.NG(h,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(a){J.length=0;return _.aH(a.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:N,direction:"prev"},function(T){if(T.getValue()&&J.length<
E)return J.push(T.getValue()),T.delete().then(function(){return T.continue()})})}),3)):m.return(J)})};
Wi0=function(){var k;return _.c(function(E){if(E.nextAddress==1)return E.yield(_.cV(),2);k=E.yieldResult;if(!k||!_.xr()&&!_.Y("nwl_init_require_datasync_id_killswitch")||!_.Skl())return E.jumpTo(0);_.VFI=!0;_.RZm.isNwlInitialized=_.VFI;return E.yield(_.JpT().awaitInitialization(),0)})};
MH=function(k,E){_.WRC[k]=!0;var S=_.el();S&&S.publish.apply(S,arguments);_.WRC[k]=!1};
yO0=function(){if(_.Gll()&&!FiP){var k=function(S){S=S.data;if(S.op==="serializedGelBatch"){var R=_.Fui.get(S.key);R&&(_.ovl(S.serializedBatch,R.client,R.resolve,R.networklessOptions,R.isIsolated,R.useVSSEndpoint,R.dangerousLogToVisitorSession,R.requestsOutstanding),_.Fui.delete(S.key))}},E=_.OcI();
E&&(E.addEventListener("message",k),E.onerror=function(){_.Fui.clear()});
FiP=!0}};
qH=function(){this.relativeTimeStart_=_.ZO()};
oTP=function(k,E){k!=null&&this.append.apply(this,arguments)};
XuP=function(){return _.Ut("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
gTt=function(k,E,S){S=S===void 0?!1:S;var R,V,N,h,J;return _.c(function(m){switch(m.nextAddress){case 1:_.A3("SOCS",k,34128E3,"youtube.com",!0);if(_.Ge)return V=fetch(E,{method:"POST",mode:_.uW(E),credentials:_.rW(E),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),N=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.uW("/upgrade_visitor_cookie?eom=1"),credentials:_.rW("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),m.yield(Promise.all([V,N]).then(function(a){return a[1]}),5);
fetch(E,{method:"POST",mode:_.uW(E),credentials:_.rW(E),cache:"no-store",headers:{"Content-Type":"text/plain"}});return m.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.uW("/upgrade_visitor_cookie?eom=1"),credentials:_.rW("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:R=m.yieldResult;m.jumpTo(3);break;case 5:R=h=m.yieldResult;case 3:if(!R.ok)throw Error("uf");return m.yield(R.text(),7);case 7:J=m.yieldResult,
!J.includes('"state_switch":true')&&!S||J.includes("skip_reload_for_test")||window.location.reload(),_.KR(m)}})};
UOR=function(k){return _.c(function(E){return E.nextAddress==1?E.yield(gTt(k.socsCookie,k.savePreferenceUrl,!0),2):E.return()})};
Hvx=function(k){return _.c(function(E){return E.nextAddress==1?E.yield(gTt(k.socsCookie,k.savePreferenceUrl),2):E.return()})};
puP=function(k){k=k.xhr.responseText;if(!_.I1(k,")]}'"))throw new zt;k=JSON.parse(k.substr(4));if((k.type||1)>1)throw new zt;k=k.id;mOP(k);QR=_.E7(k);KiP(18E5,2);return k};
rO3=function(k,E){E=new AOY(E);mOP("");QR=_.tYC(E);k>0&&KiP(12E4,k-1);throw E;};
KiP=function(k,E){_.W_(function(){_.XTW().then(puP,function(S){return rO3(E,S)}).thenCatch(_.eu)},k)};
JOA=function(){var k=_.HcP();if(k!==void 0)return _.BM(k);QR||(QR=_.XTW().then(puP).thenCatch(function(E){return rO3(2,E)}));
return QR};
u6T=function(){var k=document;return _.jh(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(E){return"on"+E.toLowerCase()in k})};
xOR=function(k){k.addEventListener("click",function(E){var S=E.target;S&&S.getAttribute("href")&&(S=S.getAttribute("href"),_.Cg(window,S,"_blank"),E.preventDefault(),E.stopImmediatePropagation())})};
LiI=function(k){var E,S,R,V=(R=(S=((E=k.mainDownloadsListEntity)!=null?E:{})[_.PL1])==null?void 0:S.refresh)!=null?R:"",N;k=(N=k.refresh)==null?void 0:N[V];V=k!=null?k:{};return(V==null?0:V.refreshTime)?Number(V==null?void 0:V.refreshTime):0};
jcR=function(k,E){var S=_.tp(k);return E.every(function(R){var V;R=R==null?void 0:(V=R.playbackDataEntity)==null?void 0:V.key;if(!R)return!1;V=_.kn(_.Ov(R).entityId,"mainVideoEntity");return!!S[V]})};
DO2=function(k){k=_.mC(k.entities);return _.rsj(k).length};
$O0=function(k,E){if(E){var S;k=(S=_.Ep(k.entities,"downloadQualityPickerEntity",E))!=null?S:void 0}else k=void 0;return k};
fkA=function(k){var E=document.getElementsByTagName("ytd-enforcement-message-view-model");E.length===0||getComputedStyle(E[0]).display==="none"?k(0,"p.h_"):k(1,"p.h_")};
vT0=function(){O$=0;var k=[_.iv(!0)];Gt&&_.zR(Gt,"yt-window-resized",k)};
bvP=function(){O$||(O$=_.ZJ.addLowPriorityJob(vT0,200))};
dOP=function(){CA=0;Zv3=_.z52(document);var k=[Zv3];Gt&&_.zR(Gt,"yt-window-scrolled",k)};
scP=function(){CA||(CA=_.ZJ.addLowPriorityJob(dOP,200))};
MN2=function(k){k=k===void 0?null:k;lkW.push(_.hD(window,"resize",bvP));lkW.push(_.hD(window,"scroll",scP));k&&(Gt=k)};
zU3=function(){var k={isWide:_.pC.get("wide","0")==="1"},E=_.nz();if(E=E.getFlag(165)||E.getFlag(174))k.theme=_.aR(!0);if(_.wWt()){var S=_.ek()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";k.systemTheme=S}!E&&_.Y("parent_tools_enable_app_settings")&&_.Vf(window.location.href).theme!==void 0&&(k.theme=_.aR());if((E=kc)?!_.fO.equals(E,k):k)E={currentValue:k},q_W&&(E.timeSinceLastSnapshotSecs=Math.round(((0,_.ev)()-q_W)/1E3)),kc&&(E.previousValue=kc),_.f2("appSettingsCaptured",E),kc=k,q_W=
(0,_.ev)()};
OvP=function(){var k=_.PT.getLocalStorage();k&&QcG(k,k.mechanism.__iterator__(!0))};
GN3=function(k){_.c(function(E){if(E.nextAddress==1)return E.yield(k.delete("yt-appshell-assets"),2);_.KR(E)})};
Clx=function(k){return _.V6((0,_.sM2)(),k)};
EX3=function(){var k;_.c(function(E){return E.nextAddress==1?E.yield(EH.getInstance(),2):(k=E.yieldResult)?E.yield(kTG(k),0):E.jumpTo(0)})};
RZ3=function(){var k;_.c(function(E){return E.nextAddress==1?E.yield(SJ.getInstance(),2):(k=E.yieldResult)?E.yield(SkP(k),0):E.jumpTo(0)})};
VFT=function(k){GN3(k);EX3();RZ3()};
NX3=function(k){var E,S;return _.c(function(R){if(R.nextAddress==1)return R.yield(_.f81(k),2);if(E=R.yieldResult){var V;a:{if(E.headers&&(V=E.headers.get("date"))&&(V=Date.parse(V),!isNaN(V))){V=Math.round((0,_.ev)()-V);break a}V=-1}S=V;if(S>-1)return R.return(S)}return R.return(-1)})};
I0I=function(){var k=_.Vt.caches,E=_.qg("IS_SHELL_LOAD"),S,R;_.c(function(V){if(V.nextAddress==1)return S=-1,E?V.yield(NX3(k),3):(R=_.a_(),S=Math.round((0,_.ev)()-R),V.jumpTo(2));V.nextAddress!=2&&(S=V.yieldResult);S>=0&&S<2147483648&&_.BE({appInstallDataAgeMs:S});_.KR(V)})};
nXt=function(k){var E=_.Gx(_.Vt.location.href),S={};"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(R){var V=E.JSC$10027_queryData_.getValues(R);if(V==null?0:V.length)S[R]=V});
return _.Yy(k,new Map(Object.entries(S)))};
iht=function(k){k=k.match(/(.*)::.*::.*/);if(k!==null)return k[1]};
hZU=function(k){if(_.V4A()){var E=Object.keys(window.localStorage);E=_.n(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;var R=iht(S);R===void 0||k.includes(R)||self.localStorage.removeItem(S)}}};
JVA=function(){if(!_.V4A())return!1;var k=_.uJ(),E=Object.keys(window.localStorage);E=_.n(E);for(var S=E.next();!S.done;S=E.next())if(S=iht(S.value),S!==void 0&&S!==k)return!0;return!1};
cVU=function(k){return _.Ad("NotificationsDisabled",k)};
mix=function(){return Notification.permission!="granted"?Promise.resolve():_.S2G().then(function(k){return k?k.pushManager.getSubscription().then(function(E){if(E)return Promise.resolve();E={userVisibleOnly:!0,applicationServerKey:_.k2("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return k.pushManager.subscribe(E).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
eZP=function(k){return _.S2G().then(function(E){if(!E||!E.active)return Promise.reject(new _.LC("serviceworker.postMessage",k,E));try{return E.active.postMessage(k),Promise.resolve()}catch(S){return Promise.reject(S)}})};
a0A=function(){eZP({type:"notifications_register",data:_.Mg("ID_TOKEN")})};
tFa=function(){if(!_.qg("LOGGED_IN"))return Promise.resolve(!1);var k=_.P_("service_worker_push_force_notification_prompt_tag");return k?_.up("PromptTags").then(function(E){if(!E)return!0;var S=[];try{S=JSON.parse(E)}catch(R){return!1}return S&&S.indexOf(k)==-1}):Promise.resolve(!1)};
TXY=function(){var k=_.wO("service_worker_push_prompt_delay_microseconds");return k?_.up("PromptTime").then(function(E){return Promise.resolve(Date.now()-k>(E||0))}):Promise.resolve(!0)};
wMT=function(){var k=_.wO("service_worker_push_logged_out_prompt_watches");return k==-1?Promise.resolve(!1):_.up("WatchCount").then(function(E){return E>=k})};
PYI=function(){var k=_.MJ(document,"yt-push-prompt-modal-bg");k&&_.Ua(k)};
BXP=function(){return _.wO("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.up("PromptCount").then(function(k){k||(k=0);return Promise.resolve(k<_.wO("service_worker_push_prompt_cap"))})};
YkT=function(k){return _.qg("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.qg("LOGGED_IN")&&(k===void 0?0:k)?tFa().then(function(E){if(E)return!0;E=[BXP(),TXY()];_.qg("LOGGED_IN")||E.push(wMT());return Promise.all(E).then(function(S){return S.every(function(R){return R})})}):Promise.resolve(!1)};
WRa=function(){_.up("PromptCount").then(function(k){return _.Ad("PromptCount",k+1)}).then(function(){return _.Ad("PromptTime",Date.now())}).then(function(){var k=_.P_("service_worker_push_force_notification_prompt_tag");
if(k)return _.up("PromptTags").then(function(E){var S=[];if(E)try{S=JSON.parse(E)}catch(R){return!1}S||(S=[]);S.push(k);return _.Ad("PromptTags",JSON.stringify(S))})})};
yVP=function(){FR2||PYI()};
oX3=function(k){k.style.zIndex=2147483648;k.style.pointerEvents="auto";k.style.backgroundColor="rgba(0, 0, 0, 0.6)";k.style.width="100%";k.style.height="100vh";k.style.position="absolute";k.style.top="0";k.style.left="0";k.style.border="none"};
XMR=function(){var k=_.MJ(document,"yt-push-prompt-modal-bg");FR2=_.Y("service_worker_push_prompt_modal_ignore_click");k?oX3(k):(k=_.WN("div",{id:"yt-push-prompt-modal-bg"}),oX3(k),document.body.appendChild(k),_.TXi(document,"click",yVP))};
gXI=function(){var k=arguments;_.Y("service_worker_push_prompt_modal_enable")&&XMR();return Notification.requestPermission().then(function(E){PYI();var S=document.getElementById("ticker");S&&(S.className=S.classList.remove("show"));if(E=="granted")return mix().then(function(){cVU(!1);a0A();return Promise.resolve(!0)});
E=="denied"&&a0A();return Promise.resolve(!1)}).catch(function(){PYI();
return Promise.reject.apply(Promise,_.$e(k))})};
UiA=function(k){k=k===void 0?!1:k;var E=_.F1j().client;if(E&&E.browserVersion){var S=E.browserVersion,R=E.browserName=="CHROME"&&_.w1(S,"50.0.0")<0;E=E.browserName=="OPERA"&&_.w1(S,"42.0.0")<0;if(R||E)return Promise.resolve()}return _.NmP().then(function(V){if(!V)return Promise.resolve();V=mix().then(function(){return eZP({type:"notifications_check_registration",data:_.Mg("ID_TOKEN")})});
return Notification.permission!="default"?V.catch(function(){}):V.then(function(){return YkT(k)}).then(function(N){if(N)return WRa(),gXI().then(function(){})}).catch(function(){})})};
HhA=function(k){return _.RRU(k)?UiA():Promise.resolve()};
KRt=function(k){var E=k.installing||k.waiting;return k.active||!E?Promise.resolve(k):new Promise(function(S){var R=function(V){V=V.target;if(V.state==="activated"||V.state==="redundant")E.removeEventListener("statechange",R),S(k)};
E.addEventListener("statechange",R)})};
pMa=function(){var k=new _.y$t("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.qh(k,{mainAppWeb:_.jk()});var E=_.i$d;_.Y("service_worker_forward_exp_params")&&(E=nXt(E));try{var S=_.yvI(E).catch(function(){_.Gb(k,"FAILURE");return new Promise(function(){})});
_.Y("service_worker_push_enabled")&&S.then(function(R){_.Gb(k,"SUCCESS");return R}).then(KRt).then(HhA)}catch(R){if(_.Gb(k,"FAILURE"),R.name!=="SecurityError")throw R;
}};
AVG=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&pMa()};
rVA=function(k,E){var S={};E&&(S.serializedYpcFamilyCreateLoggingParams=E);_.f2(k,S);_.vv()};
ud0=function(k,E){var S={};S.serializedYpcRefundFlowLoggingParams=E;k&&(S.eventType=k);_.f2("ypcRefundFlowEvent",S);_.vv()};
xiY=function(k){k&&_.XaI("transactionFlowSucceeded",k)};
LRW=function(k){k&&_.ma("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",k,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
jvY=function(k){var E,S,R,V,N,h,J;_.c(function(m){if(m.nextAddress==1)return m.yield(_.IHh(),2);if(m.nextAddress!=3){if(!m.yieldResult)return m.return(!1);E=[];return m.yield(_.kv.keys(),3)}S=m.yieldResult;R=_.n(S);for(V=R.next();!V.done;V=R.next())N=V.value,h=_.V5m(N),J=h.datasyncId,!J||k.includes(J)||E.push(_.kv.delete(N));return m.return(Promise.all(E).then(function(a){return a.some(function(T){return T})}))})};
Dia=function(){var k,E,S,R,V,N,h;return _.c(function(J){if(J.nextAddress==1)return J.yield(_.IHh(),2);if(J.nextAddress!=3){if(!J.yieldResult)return J.return(!1);k=_.uJ("cache contains other");return J.yield(_.kv.keys(),3)}E=J.yieldResult;S=_.n(E);for(R=S.next();!R.done;R=S.next())if(V=R.value,N=_.V5m(V),(h=N.datasyncId)&&h!==k)return J.return(!0);return J.return(!1)})};
$ia=function(){var k=_.en().resolve(_.mz(_.RNY));return k?k.getCurrentTime():0};
f0Y=function(){var k,E,S,R,V,N,h,J,m,a,T,w,P,B;return _.c(function(F){switch(F.nextAddress){case 1:k={},E=_.h9b(),S=_.n(Object.entries(E)),R=S.next();case 4:if(R.done){F.jumpTo(3);break}V=R.value;N=_.n(V);h=N.next().value;J=N.next().value;m=h;a=J;if(!a){F.jumpTo(5);break}return F.yield(a(),8);case 8:k[m]=F.yieldResult;case 5:R=S.next();F.jumpTo(4);break;case 2:T=_.n(),w=T.next();case 9:if(w.done){F.jumpTo(3);break}P=w.value;B=E[P];if(!B){F.jumpTo(10);break}return F.yield(B(),13);case 13:k[P]=F.yieldResult;
case 10:w=T.next();F.jumpTo(9);break;case 3:return F.return(k)}})};
vXP=function(){var k;_.c(function(E){if(E.nextAddress==1)return E.yield(f0Y(),2);k=E.yieldResult;return E.yield(navigator.clipboard.writeText(JSON.stringify(k,null,2)),0)})};
bhx=function(k,E){return _.Ep(k.entities,"superThanksSelectedTierEntity",E)};
ZhP=function(k,E){return{popup:{searchSuggestionReportDialog:{searchQuery:k,title:_.Vi("SBOX_INAPPROPRIATE_TITLE"),suggestions:E,categoryLabel:_.Vi("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Vi("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Vi("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Vi("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Vi("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Vi("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Vi("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Vi("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Vi("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Vi("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
diI=function(k){var E,S,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q;return _.c(function(M){switch(M.nextAddress){case 1:return M.yield(_.VV(),2);case 2:return(E=M.yieldResult)?M.yield(_.R0A(E),3):M.return();case 3:S=M.yieldResult;if(!S)return M.return();V=((R=S.offlineVideos)==null?void 0:R.length)||0;h=((N=S.offlinePlaylists)==null?void 0:N.length)||0;if(V===0&&h===0)return M.return();J=0;if(S.offlineVideos)for(m=_.n(S.offlineVideos),a=m.next();!a.done;a=m.next())T=a.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
T.videoState&&(J+=1);k.offline_videos_count=V.toString();_.Y("kevlar_log_offline_current_network_type_ks")||(k.offline_current_network_type=(w=_.$a1())!=null?w:"CONN_INVALID");_.Y("kevlar_log_updated_time_for_smart_downloads")&&(P=_.vo().getState().entities,B=_.Bo(P),F=LiI(P),k.offline_smart_downloads_last_sync_time_ms=B.toString(),k.offline_smart_downloads_next_sync_time_ms=F.toString());k.offline_videos_playable=J.toString();k.offline_playlists_count=h.toString();S.offlineVideos&&(K=S.offlineVideos.reduce(function(d,
z){z.downloadedBytes&&(d+=Number(z.downloadedBytes));return d},0).toString())&&(k.offline_used_disk_space_bytes=K);
if(!((r=navigator)==null?0:(x=r.storage)==null?0:x.estimate)){M.jumpTo(4);break}return M.yield(navigator.storage.estimate(),5);case 5:L=M.yieldResult,k.offline_free_disk_space_bytes=(((q=L)==null?void 0:q.quota)||0).toString();case 4:k.offline_client_state=JSON.stringify(S),_.KR(M)}})};
svW=function(k){k=k.match(/(.*)::.*::.*/);if(k!==null)return k[1]};
l03=function(k){if(_.BLe()){var E=Object.keys(window.sessionStorage);E=_.n(E);for(var S=E.next();!S.done;S=E.next()){S=S.value;var R=svW(S);R===void 0||k.includes(R)||self.sessionStorage.removeItem(S)}}};
MFa=function(){if(!_.BLe())return!1;var k=_.uJ(),E=Object.keys(window.sessionStorage);E=_.n(E);for(var S=E.next();!S.done;S=E.next())if(S=svW(S.value),S!==void 0&&S!==k)return!0;return!1};
RU=function(k,E,S){(_.Y("desktop_keyboard_shortcut_usage_log")||S&&_.Y("web_shorts_keyboard_shortcut_usage_log"))&&(E?_.j0.get(k):_.LA.get(k))&&(k=E?_.$L.get(k):_.DL.get(k))&&_.Dv(_.Fe(),k)};
qkU=function(k,E){return k.findIndex(function(S){return S.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(E.keyCode):!1};
zZP=function(k,E){E.stack&&(k.stack+="\n"+E.stack);return k};
GTT=function(k){var E=Vn(k,"Content-Type");if(!E)return null;E=E.toLowerCase();if(E.startsWith("application/json"))return E.startsWith("application/json+protobuf")?new QvR:new _.V7;if(E.startsWith("application/x-protobuf")){k=Vn(k,"Content-Transfer-Encoding");if(!k)return new NK;if(k.toLowerCase()=="base64")return new OhU}return null};
nvW=function(k,E,S,R){var V=new CYR(function(J,m){return kZP.has(m)?J.sentinel==="gal"&&J.event!==void 0:!1},function(J){J.event?(J=Evt(J.event),J=!J||S3x(R,J)?!0:_.Nx(k.lastEvent,IU,2,np)?!_.Nx(J,iS,1,np)&&!_.Nx(J,IU,2,np):!_.Nx(J,iS,1,np)&&!_.Nx(J,IU,3,np)):J=!0;
return J});
S=_.Yy(k.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",R8t(S)]]));if(k.nestedOrigins!==void 0)for(var N=_.n(k.nestedOrigins),h=N.next();!h.done;h=N.next())S=_.Yy(S,new Map([["origin",h.value]]));return VQ0(V,S,E).then(function(J){J=NbG(J.event);if(_.Nx(J,iS,1,np)){var m,a=(m=_.BS(J,iS,1,np))==null?void 0:_.Tn(m,2);a&&R.JSC$19621_logErrorEvent(ID3(a));m=_.BS(J,iS,1,np);_.Tn(m,2)===4?(J=_.BS(J,iS,1,np),J={statusCode:11,statusMessage:_.t2(J,
3)}):(J=_.BS(J,iS,1,np),J={statusCode:12,statusMessage:_.t2(J,3)});return J}_.Nx(J,IU,3,np)?(J=_.BS(J,IU,3,np),J={statusCode:1,consentLanguageKeys:_.t2(J,2)}):J={statusCode:1};return J}).catch(function(J){return J.errorCode!==void 0?{statusCode:J.errorCode,
statusMessage:J.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
cb0=function(k){var E={};if(k===void 0||k===null)return E;k.getToken()!==void 0&&iUP(k.getToken())&&iUP(k.getToken()).length>0&&(E.scopes=new Set(iUP(k.getToken())));k.getToken()!==void 0&&h8Y(k.getToken())&&h8Y(k.getToken()).length>0&&(E.capabilities=new Set(h8Y(k.getToken())));_.t2(k,3)!==void 0&&(E.consistencyKey=_.t2(k,3));k.getName()!==void 0&&k.getName()!==""&&(E.linkName=k.getName());_.Vk(k,Jba,4)&&(k=_.Tp(k,Jba,4),k=Object.assign({},_.t2(k,1)&&{userId:_.t2(k,1)},_.t2(k,2)&&{displayName:_.t2(k,
2)},_.t2(k,3)&&{email:_.t2(k,3)},_.t2(k,5)&&{username:_.t2(k,5)},_.t2(k,4)&&{profilePicture:_.t2(k,4)}),E.profile=k);return E};
mJG=function(k,E){var S=k.flowParams,R;return{serviceId:S.serviceId,sessionId:S.sessionId,currentFlow:k.currentFlow,googleScopesString:E,linkingSessionSerialized:k.session.serialize(),consentLanguageKeys:S.consentLanguageKeys,callerState:k.callerState,dynamicUrlParameters:S.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(R=S.partnerConfigMinReadTimestamp)==null?void 0:R.serialize()}};
w9P=function(k){var E=k.googleScopes!==void 0?Array.from(k.googleScopes).join(","):"";e8A(mJG(k,E));E=aDI(k);return E===null?Promise.resolve(tQR):E.start().then(function(S){var R,V=(R=S.link)==null?void 0:R.consistencyKey;return S.statusCode===1&&k.googleScopes!==void 0&&k.googleScopes.size>0&&V!==void 0?(R=k.flowParams,Tb2(R.serviceId,R.sessionId,k.googleScopes,V,R.galService,k.config,S)):S})};
P_R=function(k){var E=aDI(k);return E===null?Promise.resolve(he({statusCode:7,statusMessage:"Failed to create flow object"},k.callerState)):E.complete().then(function(S){var R,V=(R=S.link)==null?void 0:R.consistencyKey;return S.statusCode===1&&k.googleScopes!==void 0&&k.googleScopes.size>0&&V!==void 0?(R=k.flowParams,Tb2(R.serviceId,R.sessionId,k.googleScopes,V,R.galService,k.config,S)):he(S,k.callerState)},function(S){return he({statusCode:12,
statusMessage:"Failed to complete the flow: "+S.message},k.callerState)})};
Tb2=function(k,E,S,R,V,N,h){return Bb3(V,{serviceId:k,sessionId:E,googleScopes:S,consistencyKey:R}).then(function(){return h},function(J){return V.deleteLink({serviceId:k,
sessionId:E,accountLinkingEntryPoint:N.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+J.message}},function(m){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+m.message}})})};
aDI=function(k){switch(k.currentFlow){case 1:var E=k.flowParams;k=_.Tp(k.session,Y3t,1);return Je.createOAuthFlow(E,k);case 2:case 3:return E=k.flowParams,k=_.Tp(k.session,Wu0,6),c8.createStreamlinedFlow(E,k);default:return null}};
FuY=function(k,E){k===2&&(k=3);var S=0;mY.indexOf(k)!==-1&&(S=mY.indexOf(k)+1);for(k=S;k<mY.length;k++)if(E.has(mY[k]))return mY[k]};
X9I=function(k){var E=k.serviceId;var S=k.sessionId;var R=k.config;var V=k.galService;var N=k.capabilities;var h=k.scopes;var J=k.loginHint;var m=k.callerState;var a=k.consentLanguageKeys;var T=k.linkName;var w=k.dynamicUrlParameters;var P=k.partnerConfigMinReadTimestamp;k=R.dataUsageNoticeConfig?R.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return V.startLinkingSession({serviceId:E,sessionId:S,capabilities:N,scopes:h,loginHint:J,callerState:m,supportedFlows:ybA(R.supportedFlows),completionUrl:R.completionUrl,
accountLinkingEntryPoint:R.accountLinkingEntryPoint,consentLanguageKeys:a,dataUsageNoticeConfig:k,linkName:T,dynamicUrlParameters:w,partnerConfigMinReadTimestamp:P}).then(function(B){return new ovP(E,S,R,V,B,void 0,m,a,w,P)})};
AbT=function(k,E,S){var R=(new gvA).getSession(k);if(R===null)return Promise.resolve({statusCode:2});UJ2(k);var V=HUR(R.linkingSessionSerialized),N=R.googleScopesString!==""&&R.googleScopesString!==void 0?new Set(R.googleScopesString.split(",")):void 0,h=R.partnerConfigMinReadTimestampSerialized?KuP(R.partnerConfigMinReadTimestampSerialized):void 0;return p9a(new ovP(k,R.sessionId,E,S,V,N,R.callerState,R.consentLanguageKeys,R.dynamicUrlParameters,h),R.currentFlow,R.consentLanguageKeys)};
e8A=function(k){var E=new gvA;E.storage!==null&&E.storage.set("SAVED_SESSION",k)};
UJ2=function(k){var E=new gvA;if(E.storage!==null){var S=E.storage.get("SAVED_SESSION");S!==void 0&&S.serviceId===k&&E.storage.remove("SAVED_SESSION")}};
ybA=function(k){var E=new Set;k=_.n(k);for(var S=k.next();!S.done;S=k.next())S=S.value,S!==1&&rb2.has(S)&&E.add(rb2.get(S));return E};
he=function(k,E){E!==void 0&&(k.callerState=E);return k};
uSP=function(k){switch(k){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
jZP=function(k){return new xJG(k,new Lux(k))};
fDA=function(k,E){E=E===void 0?!1:E;var S=document.createElement("div");k&&(S.style.transform="scaleX(-1)");S.style.backgroundColor=E?"rgba(138,180,248,.24)":"#e8f0fe";S.style.height="4px";S.style.overflow="hidden";S.style.position="absolute";S.style.top="0";S.style.width="100%";S.style.zIndex="1500";S.setAttribute("aria-label","Loading");S.setAttribute("aria-live","polite");k=document.createElement("style");k.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  }";
S.appendChild(k);k=DJA();k.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";k.style.left="-145.166611%";var R=$JR(E);R.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";k.appendChild(R);S.appendChild(k);k=DJA();k.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";k.style.left="-54.888891%";E=$JR(E);E.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
k.appendChild(E);S.appendChild(k);return S};
DJA=function(){var k=document.createElement("div");k.style.height="100%";k.style.position="absolute";k.style.transformOrigin="top left";k.style.width="100%";return k};
$JR=function(k){var E=document.createElement("span");E.style.borderTop=k?"4px solid #669df6":"4px solid #4285f4";E.style.display="inline-block";E.style.position="absolute";E.style.width="100%";return E};
vvR=function(k){return k==null?void 0:_.SaA(k).valueOf()};
sZa=function(k){var E=document.body,S=!1,R=function(){S||(S=!0,bUI(V,N),setTimeout(function(){E.removeChild(N);E.removeChild(V)},150))},V=ZUU(k,getComputedStyle(E).direction==="rtl",R),N=dJI(R);
bUI(V,N);E.appendChild(N);E.appendChild(V);window.requestAnimationFrame(function(){N.style.opacity="1";V.style.opacity="1";V.style.transform="translate(-50%, -50%) scale(1)";V.children[0].focus()})};
ZUU=function(k,E,S){var R=document.createElement("div");R.style.position="fixed";R.style.alignItems="center";R.style.backgroundColor=k?"rgb(32, 33, 36)":"white";R.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";R.style.display="flex";R.style.flexDirection="column";R.style.justifyContent="center";R.style.left="50%";R.style.top="50%";R.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";R.style.zIndex="2002";document.body.clientWidth>=
660?(R.style.borderRadius="8px",R.style.minHeight="220px",R.style.maxHeight="90%",R.style.maxWidth="90%",R.style.minWidth="540px"):(R.style.height="100%",R.style.width="100%");R.setAttribute("aria-label","Error");R.setAttribute("aria-modal","true");R.setAttribute("role","alertdialog");R.addEventListener("keydown",function(N){N.key==="Escape"&&S()});
E=lDa(k,E,S);R.appendChild(MQA(E));R.appendChild(E);var V=document.createElement("img");V.src=k?"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";V.style.height="72px";V.style.width="72px";V.style.color="#9aa0a6";V.setAttribute("alt","");R.appendChild(V);V=document.createElement("h1");V.textContent="Something went wrong.  Try again.";
V.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";V.style.lineHeight="24px";V.style.fontSize="16px";V.style.textAlign="center";V.style.letterSpacing="0.1px";V.style.color=k?"rgb(232,234,237)":"#3c4043";R.appendChild(V);R.appendChild(MQA(E));return R};
lDa=function(k,E,S){var R=document.createElement("button");R.style.backgroundColor="transparent";R.style.border="none";R.style.borderRadius="50%";R.style.cursor="pointer";R.style.outline="none";R.style.padding="12px";R.setAttribute("aria-label","Close dialog");R.style.position="absolute";R.style.top="0";E?R.style.right="0":R.style.left="0";R.addEventListener("focus",function(){R.style.backgroundColor=k?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
R.addEventListener("blur",function(){R.style.backgroundColor="transparent"});
R.addEventListener("mouseenter",function(){R.style.backgroundColor=k?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
R.addEventListener("mouseleave",function(){R.style.backgroundColor="transparent"});
R.addEventListener("click",S);R.addEventListener("keydown",function(V){V.key!=="Enter"&&V.key!=="Space"||S()});
E=document.createElement("img");E.src=k?"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";E.style.display="block";E.style.height="24px";E.style.width="24px";E.setAttribute("alt","");R.appendChild(E);return R};
MQA=function(k){var E=document.createElement("div");E.setAttribute("tabindex","0");E.setAttribute("aria-hidden","true");E.addEventListener("focus",function(){return void k.focus()});
return E};
dJI=function(k){var E=document.createElement("div");E.style.backgroundColor="rgba(32,33,36,0.6)";E.style.bottom="0";E.style.left="0";E.style.position="fixed";E.style.right="0";E.style.top="0";E.style.transition=" opacity 150 ms linear";E.style.zIndex="2001";E.addEventListener("click",k);return E};
bUI=function(k,E){E.style.opacity="0";k.style.opacity="0";k.style.transform="translate(-50%, -50%) scale(0.8)"};
q30=function(k,E){k.sandbox&&k.sandbox.add&&(k.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),k.sandbox.add("allow-downloads"));k.src=E};
eJ=function(k){z8W.call(this,k)};
aU=function(k,E){E=E===void 0?!1:E;this.parsedImageUrl_=null;k instanceof QZ3||(OU3==void 0&&(OU3=new GZa),k=OU3.parse(k.toString(),E));k=this.parsedImageUrl_=k;k.JSC$19833_parsedOptions_==void 0&&((E=k.getOptions())||(E=""),k.JSC$19833_parsedOptions_=(new C_x).parse(E));z8W.call(this,k.JSC$19833_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;k=this.parsedImageUrl_;E=k.uri_.JSC$10027_port_;this.JSC$19835_domain_=k.uri_.JSC$10027_domain_+(E?":"+E:"");this.JSC$19835_query_=
this.parsedImageUrl_.uri_.JSC$10027_queryData_.toString()};
kc3=function(k){this.mode=4;this.data=k;this.parsedData=[];k=0;for(var E=this.data.length;k<E;k++){var S=[],R=this.data.charCodeAt(k);R>65536?(S[0]=240|(R&1835008)>>>18,S[1]=128|(R&258048)>>>12,S[2]=128|(R&4032)>>>6,S[3]=128|R&63):R>2048?(S[0]=224|(R&61440)>>>12,S[1]=128|(R&4032)>>>6,S[2]=128|R&63):R>128?(S[0]=192|(R&1984)>>>6,S[1]=128|R&63):S[0]=R;this.parsedData.push(S)}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))};
EhY=function(k){this.typeNumber=0;this.errorCorrectLevel=k===void 0?2:k;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
te=function(k,E){if(k.length==void 0)throw Error("Lk`"+k.length+"`"+E);for(var S=0;S<k.length&&k[S]==0;)S++;this.num=Array(k.length-S+E);for(E=0;E<k.length-S;E++)this.num[E]=k[E+S]};
SfP=function(k,E){this.totalCount=k;this.dataCount=E};
Rv0=function(){this.buffer=[];this.length=0};
VqY=function(){var k=!1;if(_.yhh()){k=_.Be();var E="";_.gbh()?(E=/Windows (?:NT|Phone) ([0-9.]+)/,E=(k=E.exec(k))?k[1]:"0.0"):_.uC()?(E=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,E=(k=E.exec(k))&&k[1].replace(/_/g,".")):_.Xet()?(E=/Mac OS X ([0-9_.]+)/,E=(k=E.exec(k))?k[1].replace(/_/g,"."):"10"):_.mI(_.Be(),"KaiOS")?(E=/(?:KaiOS)\/(\S+)/i,E=(k=E.exec(k))&&k[1]):_.yhh()?(E=/Android\s+([^\);]+)(\)|;)/,E=(k=E.exec(k))&&k[1]):_.UAm()&&(E=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,E=(k=E.exec(k))&&k[1]);k=
E||""}return k};
J0t=function(k,E){this.JSC$19858__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(E)for(var S in E)this.JSC$19858__htOption[S]=E[S];this.JSC$19858__htOption.useSVG&&(NdT=Igx);this.JSC$19858__android=VqY();this.JSC$19858__el=k;this._oQRCode=null;this._oDrawing=new NdT(this.JSC$19858__el,this.JSC$19858__htOption);this.JSC$19858__htOption.text&&(k=this.JSC$19858__htOption.text,this._oQRCode=new EhY(this.JSC$19858__htOption.correctLevel),nhI(this._oQRCode,
k),E=this._oQRCode,i53(E,!1,hvU(E)),this.JSC$19858__el.title=k,this._oDrawing.draw(this._oQRCode),this.makeImage())};
c0G=function(k,E,S,R,V){k.save();var N=new Path2D;N.roundRect(E,S,R*7,R*7,R*2);N.roundRect(E+R,S+R,R*5,R*5,R*1.3);N.roundRect(E+2*R,S+2*R,R*3,R*3,R);k.clip(N,"evenodd");k.fillStyle=V;k.fillRect(0,0,k.canvas.width,k.canvas.height);k.restore()};
Td=function(k,E){if(typeof k!=="function")throw Error("Ok");return _.Vt.setTimeout(function(){k()},E)};
w5=function(){};
evP=function(k,E,S,R,V){(new w5).debug("TestLoadImageWithRetries: "+V);if(R==0)S(!1);else{var N=V||0;R--;mBG(k,E,function(h){h?S(!0):_.Vt.setTimeout(function(){evP(k,E,S,R,N)},N)})}};
mBG=function(k,E,S){var R=new w5;R.debug("TestLoadImage: loading "+k);var V=new Image;V.onload=function(){try{R.debug("TestLoadImage: loaded"),agW(V),S(!0)}catch(N){}};
V.onerror=function(){try{R.debug("TestLoadImage: error"),agW(V),S(!1)}catch(N){}};
V.onabort=function(){try{R.debug("TestLoadImage: abort"),agW(V),S(!1)}catch(N){}};
V.ontimeout=function(){try{R.debug("TestLoadImage: timeout"),agW(V),S(!1)}catch(N){}};
_.Vt.setTimeout(function(){if(V.ontimeout)V.ontimeout()},E);
V.src=k};
agW=function(k){k.onload=null;k.onerror=null;k.onabort=null;k.ontimeout=null};
tqP=function(){this.front_=[];this.back_=[]};
TdP=function(k,E){this.action=k;this.params=E||{}};
wpx=function(k,E){_.r7.call(this);this.delay_=new _.x4(this.JSC$19984_onTick_,0,this);_.Wy(this,this.delay_);this.JSC$19982_interval_=5E3;this.nextTickTime_=0;if(typeof k==="function")E&&(k=(0,_.uk)(k,E));else if(k&&typeof k.handleEvent==="function")k=(0,_.uk)(k.handleEvent,k);else throw Error("ya");this.JSC$19984_listener_=k};
P8=function(k,E,S,R,V,N,h,J,m,a,T,w,P,B){S=S===void 0?!1:S;R=R===void 0?function(){return""}:R;
V=V===void 0?!1:V;N=N===void 0?!1:N;h=h===void 0?!1:h;J=J===void 0?function(){return _.GR({})}:J;
m=m===void 0?!1:m;T=T===void 0?!1:T;w=w===void 0?!1:w;P=P===void 0?!1:P;B=B===void 0?!1:B;this.JSC$19985_pathPrefix_=k;this.defaultQueryParams_=E;this.pubsub_=new _.H_;this.reconnectTimer_=new wpx(this.safeReconnect_,this);this.JSC$19985_channel_=null;this.JSC$19985_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19985_pendingMessages_=[];this.enableAsyncTest_=S;this.JSC$19985_getXsrfToken_=R;this.useAsyncBrowserChannelHandler_=N;this.getAuthorizationHeader_=
J;this.getAuthorizationHeaderSync_=a;this.enableCachedUpdateAuthorizationHeader_=h;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.GR();this.enableLoungeTokenRefresh_=V;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=m;this.disableMdxAuthForNonPlaybackMessages_=T;this.disableMdxAuthForAdMessages_=w;this.enableMdxAuthForConnectionOnly_=P;this.disableMdxAuthForShortsMessages_=B;this.JSC$19985_channelOpenedCounter=new PKW;this.JSC$19985_channelClosedCounter=new BdP;this.channelMessageSentCounter=
new YfR;this.JSC$19985_channelMessageReceivedCounter=new Wj0;this.JSC$19985_channelErrorCounter=new FjP;this.pendingMapsOnClosedCounter=new y03;this.undeliveredMapsOnClosedCounter=new ohG};
B8=function(k){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;k=k||document.location.href;var E=Number(_.nC(k)[4]||null)||"";E&&(this.port=":"+E);this.domain=_.iJ(k)||"";k=_.Be();k.search("MSIE")>=0&&_.w1(k.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
Yc=function(k){k=k||{};this.name=k.name||"";this.id=k.id||k.screenId||"";this.token=k.token||k.loungeToken||"";this.uuid=k.uuid||k.dialId||"";this.idType=k.screenIdType||"normal"};
Xp3=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(k){var E=Math.random()*16|0;return(k=="x"?E:E&3|8).toString(16)})};
gh0=function(k){return _.vH(k,function(E){return{key:E.id,name:E.name}})};
UBG=function(k,E){return _.jh(k,function(S){return S||E?!S!=!E?!1:S.id==E.id:!0})};
FZ=function(k,E){return _.jh(k,function(S){return W8(S,E)})};
r0W=function(){var k=H5a(),E=Kj2();if(ppT()){var S=k,R=_.j1h(S,E);R<0&&_.uml(S,-(R+1),0,E)}k=A0P(k);if(k.length==0)try{_.xah("remote_sid")}catch(V){}else try{_.A3("remote_sid",k.join(","),-1)}catch(V){}};
H5a=function(){var k=_.Yl("yt-remote-connected-devices")||[];k.sort(_.LI1);return k};
A0P=function(k){if(k.length==0)return[];var E=k[0].indexOf("#"),S=E==-1?k[0]:k[0].substring(0,E);return _.vH(k,function(R,V){return V==0?R:R.substring(S.length)})};
uXG=function(k){_.BT("yt-remote-connected-devices",k,86400)};
Kj2=function(){if(xB3)return xB3;var k=_.Yl("yt-remote-device-id");k||(k=Xp3(),_.BT("yt-remote-device-id",k,31536E3));for(var E=H5a(),S=1,R=k;_.bC(E,R);)S++,R=k+"#"+S;return xB3=R};
LjI=function(){return _.Yl("yt-remote-session-browser-channel")};
ppT=function(){return _.Yl("yt-remote-session-screen-id")};
$BR=function(k){k.length>5&&(k=k.slice(k.length-5));var E=_.vH(jEP(),function(R){return R.loungeToken}),S=_.vH(k,function(R){return R.loungeToken});
_.Epi(S,function(R){return!_.bC(E,R)})&&DB2();
_.BT("yt-remote-local-screens",k,31536E3)};
jEP=function(){return _.Yl("yt-remote-local-screens")||[]};
DB2=function(){_.BT("yt-remote-lounge-token-expiration",!0,86400)};
yn=function(k){k||(_.WT("yt-remote-session-screen-id"),_.WT("yt-remote-session-video-id"));r0W();k=H5a();_.ZR(k,Kj2());uXG(k)};
vhG=function(){fg0();return oU?!!oU.get("yt-remote-use-staging-server"):!1};
fg0=function(){if(!oU){var k=_.dal();k&&(oU=new _.jn(k))}};
sE0=function(k,E,S,R,V){S=S===void 0?function(){return""}:S;
var N=function(){return new P8(XZ(k,"/bc"),E,!1,S,R)};
return _.Y("enable_mdx_web_channel_desktop")?new b5P(function(){return new Z5t(XZ(k,"/wc"),E,S)}):new dB3(N,V)};
zvW=function(){var k=lgG;MqY();g5.push(k);qfT()};
UH=function(k,E){MqY();var S=QEA(k,String(E));g5.length==0?O5P(S):(qfT(),_.Sn(g5,function(R){R(S)}))};
H8=function(k){UH("CP",k)};
MqY=function(){g5||(g5=_.CV("yt.mdx.remote.debug.handlers_")||[],_.J6("yt.mdx.remote.debug.handlers_",g5))};
O5P=function(k){var E=(Kp+1)%50;Kp=E;Gct[E]=k;CKI||(CKI=E==49)};
qfT=function(){var k=g5;if(Gct[0]){var E=CKI?Kp:-1,S={};do S={record$jscomp$15:void 0},E=(E+1)%50,S.record$jscomp$15=Gct[E],_.Sn(k,function(R){return function(V){V(R.record$jscomp$15)}}(S));
while(E!=Kp);Gct=Array(50);Kp=-1;CKI=!1}};
QEA=function(k,E){var S=(Date.now()-kbP)/1E3;S.toFixed&&(S=S.toFixed(3));var R=[];R.push("[",S+"s","] ");R.push("[","yt.mdx.remote","] ");R.push(k+": "+E,"\n");return R.join("")};
pp=function(k){_.xL.call(this);this.JSC$20009_logName_=k;this.screens=[]};
r5=function(k){pp.call(this,"LocalScreenService");this.JSC$20016_http_=k;this.loungeTokenRefreshTimer_=NaN;Ae(this);this.info("Initializing with "+EzR(this.screens))};
uS=function(k,E){E=E===void 0?!1:E;pp.call(this,"ScreenService");this.JSC$20022_http_=k;this.disableAutomaticScreenCache_=E;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};Si3(this)};
xc=function(k,E,S){_.xL.call(this);this.JSC$20026_logName_=S;this.JSC$20026_screenService_=k;this.receiver_=E;this.screen_=null};
PrR=function(k,E,S){S.disableCastApi?Lp("Cannot initialize because disabled by Mdx config."):RBG()?VjP(k,S)&&(NEU(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?IIG(E):(window.__onGCastApiAvailable=function(R,V){R?IIG(E):(jJ("Failed to load cast API: "+V),nzG(!1),NEU(!1),_.WT("yt-remote-cast-available"),_.WT("yt-remote-cast-receiver"),i9a(),E(!1))},S.loadCastApiSetupScript?_.KI(hBT):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
JQx()>=60&&cQ3():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?mhA():JQx()>=89?eBP():(aI0(),tjI(TEW.map(wZt))))):Lp("Cannot initialize because not running Chrome")};
i9a=function(){Lp("dispose");var k=DA();k&&k.dispose();_.J6("yt.mdx.remote.cloudview.instance_",null);BEG(!1);_.FRA(YiP);YiP.length=0};
WOY=function(){return!!_.Yl("yt-remote-cast-installed")};
FOP=function(){var k=_.Yl("yt-remote-cast-receiver");return k?k.friendlyName:null};
yQx=function(){Lp("clearCurrentReceiver");_.WT("yt-remote-cast-receiver")};
ozY=function(){return WOY()?DA()?DA().getCastSession():(jJ("getCastSelector: Cast is not initialized."),null):(jJ("getCastSelector: Cast API is not installed!"),null)};
gzY=function(k,E){XZa()?DA().setConnectedScreenStatus(k,E):jJ("setConnectedScreenStatus called before ready.")};
RBG=function(){var k=_.Be().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.Cm||k};
VjP=function(k,E){var S=!1;DA()||(k=new $c(k,E),k.subscribe("yt-remote-cast2-availability-change",function(R){_.BT("yt-remote-cast-available",R);MH("yt-remote-cast2-availability-change",R)}),k.subscribe("yt-remote-cast2-receiver-selected",function(R){Lp("onReceiverSelected: "+R.friendlyName);
_.BT("yt-remote-cast-receiver",R);MH("yt-remote-cast2-receiver-selected",R)}),k.subscribe("yt-remote-cast2-receiver-resumed",function(R){Lp("onReceiverResumed: "+R.friendlyName);
_.BT("yt-remote-cast-receiver",R);MH("yt-remote-cast2-receiver-resumed",R)}),k.subscribe("yt-remote-cast2-session-change",function(R){Lp("onSessionChange: "+UhP(R));
R||_.WT("yt-remote-cast-receiver");MH("yt-remote-cast2-session-change",R)}),_.J6("yt.mdx.remote.cloudview.instance_",k),S=!0);
Lp("cloudview.createSingleton_: "+S);return S};
DA=function(){return _.CV("yt.mdx.remote.cloudview.instance_")};
IIG=function(k){nzG(!0);NEU(!1);DA().init(!1,function(E){E?(BEG(!0),_.yVl("yt-remote-cast2-api-ready")):(jJ("Failed to initialize cast API."),nzG(!1),_.WT("yt-remote-cast-available"),_.WT("yt-remote-cast-receiver"),i9a());k(E)})};
Lp=function(k){UH("cloudview",k)};
jJ=function(k){UH("cloudview",k)};
nzG=function(k){Lp("setCastInstalled_ "+k);_.BT("yt-remote-cast-installed",k)};
XZa=function(){return!!_.CV("yt.mdx.remote.cloudview.apiReady_")};
BEG=function(k){Lp("setApiReady_ "+k);_.J6("yt.mdx.remote.cloudview.apiReady_",k)};
NEU=function(k){_.J6("yt.mdx.remote.cloudview.initializing_",k)};
fp=function(k){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(k)};
xhG=function(k){fg0();if(!oU||!oU.get("yt-remote-disable-remote-module-for-dev")){k=_.Mg("MDX_CONFIG")||k;OvP();r0W();bS||(bS=new B8(k?k.loungeApiHost:void 0),vhG()&&(bS.basePath="/api/loungedev"));ZA||(ZA=_.CV("yt.mdx.remote.deferredProxies_")||[],_.J6("yt.mdx.remote.deferredProxies_",ZA));H9t();var E=d5();if(!E){var S=new uS(bS,k?k.disableAutomaticScreenCache||!1:!1);_.J6("yt.mdx.remote.screenService_",S);E=d5();var R={};k&&(R={appId:k.appId,disableDial:k.disableDial,theme:k.theme,loadCastApiSetupScript:k.loadCastApiSetupScript,
disableCastApi:k.disableCastApi,enableDialLoungeToken:k.enableDialLoungeToken,enableCastLoungeToken:k.enableCastLoungeToken,forceMirroring:k.forceMirroring});_.J6("yt.mdx.remote.enableConnectWithInitialState_",k?k.enableConnectWithInitialState||!1:!1);PrR(S,function(N){N?sH()&&gzY(sH(),"YouTube TV"):S.subscribe("onlineScreenChange",function(){MH("yt-remote-receiver-availability-change")})},R)}if(k&&!_.CV("yt.mdx.remote.initialized_")){_.J6("yt.mdx.remote.initialized_",!0);
lS("Initializing: "+(0,_.oL)(k));MK.push(_.TU("yt-remote-cast2-api-ready",function(){MH("yt-remote-api-ready")}));
MK.push(_.TU("yt-remote-cast2-availability-change",function(){MH("yt-remote-receiver-availability-change")}));
MK.push(_.TU("yt-remote-cast2-receiver-selected",function(){KO0();MH("yt-remote-auto-connect","cast-selector-receiver")}));
MK.push(_.TU("yt-remote-cast2-receiver-resumed",function(){MH("yt-remote-receiver-resumed","cast-selector-receiver")}));
MK.push(_.TU("yt-remote-cast2-session-change",pZA));MK.push(_.TU("yt-remote-connection-change",function(N){N?gzY(sH(),"YouTube TV"):AQR()||(gzY(null,null),yQx())}));
MK.push(_.TU("yt-remote-cast2-session-failed",function(){MH("yt-remote-connection-failed")}));
R=rQI();k.isAuto&&(R.id+="#dial");var V=k.capabilities||[];V.length>0&&(R.capabilities=V);R.name=k.device;R.app=k.app;(k=k.theme)&&(R.theme=k);lS(" -- with channel params: "+(0,_.oL)(R));R?(_.BT("yt-remote-session-app",R.app),_.BT("yt-remote-session-name",R.name)):(_.WT("yt-remote-session-app"),_.WT("yt-remote-session-name"));_.J6("yt.mdx.remote.channelParams_",R);E.start();sH()||uwY()}}};
j3U=function(){var k=d5().instance_.$_gos();var E=LOI();E&&qK()&&(UBG(k,E)||k.push(E));return gh0(k)};
Dha=function(){var k=j3U(),E=LOI();E||(E=AQR());return _.jh(k,function(S){return E&&W8(E,S.key)?!0:!1})};
LOI=function(){var k=sH();if(!k)return null;var E=d5().getScreens();return FZ(E,k)};
pZA=function(k){lS("remote.onCastSessionChange_: "+UhP(k));if(k){var E=LOI();if(E&&E.id==k.id){if(gzY(E.id,"YouTube TV"),k.idType=="shortLived"&&(k=k.token))$h3&&($h3.token=k),(E=qK())&&E.setLoungeToken(k)}else E&&fIP(),vza(k,1)}else qK()&&fIP()};
fIP=function(){XZa()?DA().stopSession():jJ("stopSession called before API ready.");var k=qK();k&&(k.disconnect(1),b9W(null))};
Z9T=function(){var k=qK();return k&&k.getProxyState()!=3?new zd(qK(),void 0):null};
lS=function(k){UH("remote",k)};
d5=function(){if(!dh0){var k=_.CV("yt.mdx.remote.screenService_");dh0=k?new s3P(k):null}return dh0};
sH=function(){return _.CV("yt.mdx.remote.currentScreenId_")};
lIG=function(k){_.J6("yt.mdx.remote.currentScreenId_",k)};
KO0=function(){_.J6("yt.mdx.remote.connectData_",null)};
qK=function(){return _.CV("yt.mdx.remote.connection_")};
b9W=function(k){var E=qK();KO0();k||lIG("");_.J6("yt.mdx.remote.connection_",k);ZA&&(_.Sn(ZA,function(S){S(k)}),ZA.length=0);
E&&!k?MH("yt-remote-connection-change",!1):!E&&k&&MH("yt-remote-connection-change",!0)};
AQR=function(){var k=ppT();if(!k)return null;var E=d5();if(!E)return null;E=E.getScreens();return FZ(E,k)};
vza=function(k,E){Mj0?$h3=k:(lIG(k.id),k=new Qn(bS,k,rQI(),_.CV("yt.mdx.remote.enableConnectWithInitialState_")||!1),k.connect(E,_.CV("yt.mdx.remote.connectData_")),k.subscribe("beforeDisconnect",function(S){MH("yt-remote-before-disconnect",S)}),k.subscribe("beforeDispose",function(){qK()&&b9W(null)}),k.subscribe("browserChannelAuthError",function(){var S=LOI();
S&&S.idType=="shortLived"&&(XZa()?DA().handleBrowserChannelAuthError():jJ("refreshLoungeToken called before API ready."))}),b9W(k))};
uwY=function(){var k=AQR();k?(lS("Resume connection to: "+UhP(k)),vza(k,0)):(yn(),yQx(),lS("Skipping connecting because no session screen found."))};
H9t=function(){var k=rQI();if(_.fO.isEmpty(k)){k=Kj2();var E=_.Yl("yt-remote-session-name")||"",S=_.Yl("yt-remote-session-app")||"";k={device:"REMOTE_CONTROL",id:k,name:E,app:S,mdxVersion:3};k.authuser=String(_.Mg("SESSION_INDEX","0"));(E=_.Mg("DELEGATED_SESSION_ID"))&&(k.pageId=String(E));_.J6("yt.mdx.remote.channelParams_",k)}};
rQI=function(){return _.CV("yt.mdx.remote.channelParams_")||{}};
qia=function(){var k,E;return _.c(function(S){if(S.nextAddress==1)return(_.NXm()||_.Y("use_new_nwl"))&&_.EXm().isNetworkAvailable()?S.yield(_.cV(),2):S.return();if(S.nextAddress!=3)return(k=S.yieldResult)?S.yield(Y_U(k),3):S.return();E=S.yieldResult;if(!E.length)return S.return();E.forEach(function(R){var V={timestamp:R.timestamp};R=R.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:R.appShellAssetLoadReport,options:V}:R.clientError?{payloadName:"clientError",payload:R.clientError,
options:V}:void 0;R&&_.f2(R.payloadName,R.payload,R.options)});
E.length===100&&_.ZJ.addLowPriorityJob(qia);_.KR(S)})};
zBP=function(k){if(k.playerResponse){if(k=k.playerResponse,k.messages&&k.messages.length>0&&(k=k.messages.find(function(E){return!(!E||!E.mealbarPromoRenderer)}))&&k.mealbarPromoRenderer)return k.mealbarPromoRenderer}else if(k.response&&(k=k.response)&&k.overlay&&k.overlay.mealbarPromoRenderer)return k.overlay.mealbarPromoRenderer};
Q3x=function(k){if(k.response){var E=k.response;if(E&&E.overlay&&E.overlay.tooltipRenderer)return E.overlay.tooltipRenderer}if(k.playerResponse&&(k=k.playerResponse,k.messages&&k.messages.length>0&&(k=k.messages.find(function(S){return!(!S||!S.tooltipRenderer)}))&&k.tooltipRenderer))return k.tooltipRenderer};
GbR=function(k){if(!O9P&&(k=k||_.Mg("ZWIEBACK_PING_URLS"))&&k.length){O9P=!0;for(var E=0;E<k.length;E++)_.Cx(k[E])}};
kea=function(k){if(_.fO.get(_.Mg("PLAYER_VARS",{}),"privembed",!1)!="1"){k&&cOA();try{CrG().then(function(){},function(){}),_.W_(kea,18E5)}catch(E){_.O4(E)}}};
Eq3=function(){var k=_.nz(),E=k.getFlag(119),S=window.devicePixelRatio>1;document.body&&_.D9(document.body,"exp-invert-logo")&&(S&&!_.D9(document.body,"inverted-hdpi")?_.bY(document.body,"inverted-hdpi"):!S&&_.D9(document.body,"inverted-hdpi")&&_.fh(document.body,"inverted-hdpi"));E!=S&&(_.iD(0,119,S),k.save())};
SBW=function(k){return k.filter(function(E){return"ypcGetCartEndpoint"in E||"ypcFixInstrumentEndpoint"in E})};
R_Y=function(k){return k.filter(function(E){return!_.W(E,_.kQ5)})};
Nyx=function(k,E){var S,R,V,N,h,J,m;_.c(function(a){switch(a.nextAddress){case 1:S=_.wV.getInstance();R=_.V_.instance;V=_.rb.instance;if(!V)return VHa(k,R,E),a.return();_.F5(a,2);k.onLoadingCommand&&R.resolveCommand(k.onLoadingCommand);return a.yield(S.getCurrentPositionFromGeolocation(),4);case 4:N=a.yieldResult;if(!k.resolveLocationCommand){a.jumpTo(5);break}h=S.createLocationInfo(N);return a.yield(_.xv(V,k.resolveLocationCommand,{locationInfo:h}),6);case 6:J=a.yieldResult;if(!J||"error"in J&&J.error||
J.errorMetadata)return VHa(k,R,E),a.return();var T;if(J==null?0:(T=J.onResponseReceivedActions)==null?0:T.length){T=_.n(J.onResponseReceivedActions);for(var w=T.next();!w.done;w=T.next())R.resolveCommand(w.value)}(_.W(k.onSuccessCommand,_.jm)||_.W(k.onSuccessCommand,_.Ny))&&_.Me(E.hostElement,"yt-navigate",{endpoint:k.onSuccessCommand,reload:!0});case 5:_.Sv(a,0);break;case 2:m=_.UY(a);if(m instanceof GeolocationPositionError&&m.code===GeolocationPositionError.PERMISSION_DENIED)return k.onDeniedCommand&&
R.resolveCommand(k.onDeniedCommand),a.return();VHa(k,R,E);_.KR(a)}})};
VHa=function(k,E,S){k.onFailureCommand&&(E.resolveCommand(k.onFailureCommand),_.qe(S.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
nqY=function(k,E){var S=_.W(k,_.XDp);if(S&&E){k=S.videoIds||[S.videoId];var R;E=(R=_.Me(E,"yt-lockup-requested",{videoIds:k}).detail)==null?void 0:R.returnValue;var V;S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?V=E?E:k.map(function(N){return{videoId:N,navigationEndpoint:S.videoCommand}}):E&&(V=E);
V&&(R=V.map(function(N){var h=Object,J=h.assign;var m=N.navigationEndpoint;if(!_.W(m,_.hg)){var a=_.W(m,_.jm);if(a){if(delete a.index,delete a.playlistId,a=_.W(m==null?void 0:m.commandMetadata,_.Sd),a==null?0:a.url){var T=a.url;T=_.bW(T,"list");T=_.bW(T,"index");a.url=T}}else m=void 0}return J.call(h,{},N,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:m})}),IOA(R,S))}};
imU=function(k){var E=_.kN();if(k=_.W(k,_.gxj))k.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&E.clearQueue(),k.closeMiniplayer&&_.en().resolve(_.yb).close(!0)};
J9G=function(k){h_a(_.kN(),k)};
c9Y=function(k){var E;(k=(E=_.W(k,_.yHY))==null?void 0:E.setVideoIds)&&k.forEach(function(S){_.ap4(_.kN(),S)})};
e_A=function(k){mXG(_.kN(),k)};
aOx=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(k){return!1}};
tH3=function(k){var E=["h","m","s"],S=_.d1(E);S.reverse();var R={};k=(k.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(h){var J=(h.match(/[hms]/)||[""])[0];return J?(R[J]=parseInt(h.match(/\d+/)[0],10),!1):!0});
for(k.reverse();k.length&&S.length;){var V=S.shift();V in R||(R[V]=parseInt(k.shift(),10))}if(k.length||R.s>59||R.m>59||R.h>9)return null;var N="";E.forEach(function(h){R[h]&&(N+=""+R[h]+h)});
return N||null};
TyA=function(k,E){var S=_.qI5(E,{},k,!0);return new Promise(function(R,V){S.listenOnce("n",function(){V(Error("zl`"+S.JSC$29709_getErrorDescription()))});
S.listenOnce("l",function(){var N=S.getResponseCode();if(N!==200)V(Error("Al`"+E+"`"+k.type+"`"+k.size+"`"+N));else try{R(JSON.parse(S.getResponseText()).encryptedBlobId)}catch(h){V(h)}});
S.run()})};
wtG=function(k){return k.substring(k.indexOf(":")+1,k.indexOf(";"))};
PbI=function(k){return new Promise(function(E,S){var R=new FileReader;R.onloadend=function(){try{var V=new Uint8Array(R.result);V.length<8&&S(void 0);var N=V.subarray(0,8);V="";for(var h=0;h<N.length;h++)V+=("0"+N[h].toString(16)).substr(-2);V.startsWith("ffd8ff")?E("image/jpeg"):V.startsWith("47494638")?E("image/gif"):V.startsWith("89504e470d0a1a0a")?E("image/png"):V.startsWith("424d")?E("image/bmp"):E(void 0)}catch(J){S(J)}};
R.onerror=S;R.readAsArrayBuffer(k)})};
ByR=function(k){return new Promise(function(E,S){var R=new Image;R.crossOrigin="anonymous";R.onload=function(){var V=document.createElement("canvas");V.width=R.naturalWidth;V.height=R.naturalHeight;var N=V.getContext("2d");if(!N)throw Error("Bl");N.drawImage(R,0,0);N=wtG(k);V.toBlob(function(h){h?E(h):S()},N)};
R.src=k})};
WJT=function(k,E){var S;if(((S=_.W(k,_.hg))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var R;_.Me((R=E.hostElement)!=null?R:E,"yt-shorts-reset");_.tS2(_.en().resolve(_.KM),k).then(function(N){YB2(N,E,k)})}else{var V;
_.Qw((V=E.hostElement)!=null?V:E,[k]).then(function(N){N&&YB2(N.data,E,k)})}};
YB2=function(k,E,S){if(k){var R=_.W(k.replacementEndpoint,_.hg);if(R){k.sequenceContinuation&&(R.sequenceParams=k.sequenceContinuation);var V;_.Me((V=E.hostElement)!=null?V:E,"yt-navigate",{endpoint:k.replacementEndpoint})}else if((k==null?void 0:k.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(k==null?0:k.watchStatus)&&_.W(k.watchStatus,_.Jtd)){var N;_.Me((N=E.hostElement)!=null?N:E,"yt-navigate",{endpoint:S})}}};
FJA=function(k){var E=_.en().resolve(_.q5),S=_.K5.currentPageTypeSelector(E.getState())||"";E=_.K5.currentPageSubTypeSelector(E.getState())||"";S=S==="ytd-browse"&&E==="home";return _.Y("web_guide_entry_enable_cache_for_non_home_pages")?(k=(k==null?void 0:k.navigationEndpoint)&&_.VS(k.navigationEndpoint)==="home",{disableCache:S&&k}):{disableCache:S}};
oqx=function(k,E,S){if(E!=null&&E.isPrimary){a:{if(S&&S.length){var R=E.formattedTitle;var V={};R&&(V.header={panelHeaderViewModel:{title:_.y_(R)}});R=[];S=_.n(S);for(var N=S.next();!N.done;N=S.next()){N=_.W(N.value,y9P);var h=void 0,J=void 0,m=((h=N)==null?0:h.formattedTitle)?_.y_((J=N)==null?void 0:J.formattedTitle):void 0;h=void 0;J=(h=N)==null?void 0:h.isPrimary;if(N&&m&&!J){m={title:m};N.navigationEndpoint&&(m.rendererContext={commandContext:{onTap:{innertubeCommand:N.navigationEndpoint}}});
h=[];var a=J=void 0;if(((J=N)==null?0:(a=J.thumbnail)==null?0:a.thumbnails)&&N.thumbnail.thumbnails.length>0){J=_.n(N.thumbnail.thumbnails);for(a=J.next();!a.done;a=J.next())h.push({url:a.value.url});m.leadingAccessory={avatarViewModel:{image:{sources:h},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(J=void 0,(J=N.icon)==null?0:J.iconType)h.push({clientResource:{imageName:N.icon.iconType||""}}),m.leadingImage={sources:h};J=h=void 0;((h=N)==null?0:(J=h.badges)==null?0:J.liveBroadcasting)?m.trailingImage=
{sources:[{clientResource:{imageName:"live"}}]}:N.count&&(m.trailingLabel={content:N.count.toString()});R.push({listItemViewModel:m})}}R.length!==0?V.content={listViewModel:{listItems:R}}:V=void 0;if(V){V={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:V}}}};break a}}V=void 0}V&&(E.mouseEnterEndpoint=V,E.mouseLeaveEndpoint={hideSheetCommand:{}});k.push({guideEntryRenderer:E})}};
XtI=function(k){if(!k)return!1;try{if(k.host&&k.host.tagName==="YT-FORMATTED-STRING"&&k.host.id==="contenteditable-textarea"||k.nodeType===Node.ELEMENT_NODE&&k.tagName==="YTD-COMMENT-INPUT")return!0}catch(E){return!1}return XtI(k.parentNode)};
OH=function(k){return k?k.tagName==="A"&&k.href&&k.classList.contains("yt-simple-endpoint"):!1};
gq0=function(k){return k?k.tagName==="IMG"&&k.classList.contains("emoji"):!1};
UX0=function(k,E,S){if(!k)return null;var R=OH(k);if(R&&S)return E=k.pathname.substring(k.pathname.indexOf("/channel/")+9),document.createTextNode("@"+E);if(R&&!S)return document.createTextNode("");if(gq0(k))return S=k.alt,k=k.dataset.emojiId,!k&&E&&(E=_.MB(E,S))&&E.isCustomEmoji&&(k=E.emojiId),k?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+k+">"):document.createTextNode(S);R=k.cloneNode(!1);for(var V=0;V<k.childNodes.length;++V){var N=UX0(k.childNodes[V],E,S);N&&R.appendChild(N)}return R};
Gd=function(k){return k?OH(k)?k:Gd(k.lastChild):null};
HmT=function(k){return k?OH(k)?k:HmT(k.firstChild):null};
KJa=function(k){if(!k)return null;for(var E=k.previousSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.previousSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.previousSibling;else break;(E=Gd(E))?k=E:k=(k=k.parentNode)?Gd(k.previousElementSibling):null;return k};
ptW=function(k){if(!k)return null;for(var E=k.nextSibling;E;)if(E.nodeType===Node.ELEMENT_NODE&&E.nodeName==="BR")E=E.nextSibling;else if(E.nodeType===Node.TEXT_NODE&&/\s+/.test(E.textContent))E=E.nextSibling;else break;return(E=HmT(E))?E:ptW(k.parentNode)};
A9T=function(k){var E=_.zc(),S=E.JSC$11343_getStartNode();if(!XtI(S.parentNode))return null;E=E.JSC$11343_getStartOffset();if(S.nodeType===Node.TEXT_NODE){var R=_.lh(S,OH);if(R){if(k&&E===0||!k&&E===S.length)return R}else{if(k&&E===S.length)return!S||S.nodeName==="BR"||S.nextElementSibling&&_.Q3(S.nextElementSibling,"display")==="block"?null:HmT(S.nextElementSibling);if(!k&&E===0)return S?Gd(S.previousElementSibling):null}}if(S.nodeType===Node.ELEMENT_NODE)if(k){if(0<=E&&E<S.childNodes.length)return HmT(S.childNodes[E])}else if(0<
E&&E<=S.childNodes.length)return Gd(S.childNodes[E-1]);return null};
r9T=function(k,E,S){if(!k)return null;if(k.nodeType===Node.TEXT_NODE)if(S){var R=KJa(k);if(R&&!/^\s+\S/.test(k.wholeText.substr(0,E)))return R}else if((R=ptW(k))&&!/\S\s+/.test(k.wholeText.substr(E,k.wholeText.length)))return R;return k.nodeType===Node.ELEMENT_NODE?S?KJa(k.childNodes[E]):ptW(k.childNodes[E]):r9T(k.parentNode,E,S)};
urP=function(k){if(k.hasChildNodes())switch(k.tagName){case "DIV":case "A":case "SPAN":var E="";for(k=k.firstChild;k;k=k.nextSibling)E+=urP(k);return E;default:return""}else switch(k.nodeType){case 3:return k.textContent;default:return""}};
xXt=function(k){switch(k){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"}};
LJY=function(k){return k.map(function(E){return{settingsRadioOptionRenderer:{title:_.qa(E.name),asideText:_.qa(E.approximateSize),id:xXt(E.format)}}})};
DXW=function(k){if(k&&k.length!==0)return k.filter(jOR()).map(function(E){return{settingsRadioOptionRenderer:{title:E.name,asideText:E.approximateSize,id:xXt(E.formatType)}}})};
Cp=function(k){if(k)return k.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
$Xx=function(k,E){k=new Set(k!=null?k:[]);if(k.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(k.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(k.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(k.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(k.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(E)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
fOW=function(k){var E=k.indexOf("(");return E!==-1?k.substring(E+1,k.length-1):k};
_.bm3=function(k,E,S,R,V,N){S||(S=vqP);var h;(h=_.W(S.commandMetadata,_.Sd))!=null&&h.url||(S=Error("Gl`"+JSON.stringify(S)),_.bM(S),S=vqP);S=_.fO.unsafeClone(S);h=_.Md(_.W(S.commandMetadata,_.Sd).url,"search_query",k);_.Qo(location.href,"sv")==="1"&&(_.W(S,_.IR).params="EgOAAgE%3D",h=_.Md(h,"sv","1"));_.W(S,_.IR)&&(_.W(S,_.IR).query=k);h=h.replace(/%20/g,"+");_.W(S.commandMetadata,_.Sd).url=h;V=_.Y("desktop_enable_entity_suggest")?{entityMid:V}:{};_.en().resolve(_.t3).resolveCommand(S,{form:{tempData:Object.assign({},
{gs_l:E,oq:R!=null?R:k},V,{isFromShorts:N})}})};
Zm3=function(k){switch(k){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
sOY=function(k,E,S,R,V,N){var h=_.fO.clone(dXY);h.locale=_.Mg("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;h.report={description:V||"<empty>"};V=_.Mg("SBOX_SETTINGS",{});E=E.join(",");var J=Date.now();k={choice_cc:R,choice_id_cc:S,choices_sc:E,gl:V.REQUEST_DOMAIN,hl:V.REQUEST_LANGUAGE,query:k,time:J};N&&(k.choice_additional_comment_cc=N);_.kk5(h,k)};
lOY=function(k){var E=new Map;E.set("authuser",_.Mg("SESSION_INDEX","0"));return _.Yy(k,E)};
qBR=function(k){var E;return _.c(function(S){switch(S.nextAddress){case 1:if(!k||!MH0(k))return S.return(null);E=null;switch(_.Mg("INNERTUBE_CLIENT_NAME")){case "WEB":return S.jumpTo(2);case "WEB_REMIX":E=k.getPlayer()}S.jumpTo(3);break;case 2:return S.yield(k.getPlayerPromise(),4);case 4:E=S.yieldResult;S.jumpTo(3);break;case 3:return S.return(E)}})};
MH0=function(k){return["ytd-player","ytmusic-player"].includes(String(k.tagName||"").toLowerCase())};
z_P=function(k){k=Math.round(k);return k%2?k-1:k};
QOa=function(k){k=Math.round(k);return k%2===0?k-1:k};
OmW=function(k){var E,S,R;if(k=(E=k.createPlaylistDialogFormSchema)==null?void 0:(S=E.fieldSchemas)==null?void 0:(R=S.title)==null?void 0:R.validationSchema)for(E=[k.syncStep,k.asyncStep].filter(function(V){return V!==void 0}),E=_.n(E),S=E.next();!S.done;S=E.next()){S=S.value.rules;
if(!S)break;S=_.n(S);for(S=S.next();!S.done;S=S.next())return _.W(S.value,_.oF0)}};
CbP=function(k){var E,S,R;if(k=(E=k.createPlaylistDialogFormSchema)==null?void 0:(S=E.fieldSchemas)==null?void 0:(R=S.visibility)==null?void 0:R.validationSchema)for(E=[k.syncStep,k.asyncStep].filter(function(V){return V!==void 0}),E=_.n(E),S=E.next();!S.done;S=E.next()){S=S.value.rules;
if(!S)break;S=_.n(S);for(R=S.next();!R.done;R=S.next())if(R=_.W(R.value,GeW))return E=void 0,(E=R.translations)==null?void 0:E.visibilityNotValidErrorMessage}};
knU=function(){var k,E;return(E=(k=_.en().resolve(_.mz(_.jF)))==null?void 0:k())!=null?E:!1};
E7t=function(k){var E=21;if(!k)return E;E+=k.headerTitle?27:0;E+=k.headerTitle&&k.hasHeaderActionHeader?4:0;return E+=k.headerTitle&&k.headerSubtitle?16:0};
SUt=function(k){var E=0;if(!k)return E;E+=k.hasFooterPrimaryButton||k.hasFooterSecondaryButton?48:0;E+=k.footerTrailingLabel||k.footerLeadingLabel?30:0;return E+=k.hasFooterPrimaryButton||k.hasFooterSecondaryButton||!k.footerTrailingLabel&&!k.footerLeadingLabel?0:12};
RQI=function(k){var E=new _.H_,S=k;return{subscribe:function(R){E.subscribe("changed",R)},
dispatch:function(R,V){var N=S;R==="Touch Start"?S=Object.assign({},N,{isAnimating:!1,initialY:V.event.touches[0].clientY}):R==="Touch Move"?(R=Math.min(V.fullContentWrapperHeight,V.contentHeightMap[V.contentWrapperId]+E7t(V.header)-SUt(V.footer)),S=Object.assign({},N,{currentY:Math.max(V.contentScrollable?-1*(N.initialY-24):0,V.event.touches[0].clientY-N.initialY),maxHeightForContentWrapper:Math.min(R,Math.max(0,(N.isFullScreen?R:V.contentWrapperHeight)-N.currentY))})):S=R==="Snap To Full Screen"?
Object.assign({},N,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:V.maxHeight}):R==="Snap To Neutral Position"?Object.assign({},N,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:V.maxHeight}):R==="Close Sheet"?Object.assign({},N,{isAnimating:!0,currentY:V.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:V.maxHeight}):N;E.publish("changed",S)}}};
VzT=function(k){return _.RZ(function(E){k(E);return!1})};
NFI=function(){_.en().resolve(_.f6).closeSheet()};
IsU=function(k){var E,S,R,V,N,h,J,m,a,T,w;return{headerTitle:(E=k.headerTitle)==null?void 0:E.call(k),headerSubtitle:(S=k.headerSubtitle)==null?void 0:S.call(k),headerActionHeader:k.headerActionHeader,footerPrimaryButton:k.footerPrimaryButton,footerSecondaryButton:k.footerSecondaryButton,footerButtonType:(R=k.footerButtonType)==null?void 0:R.call(k),footerLeadingLabel:(V=k.footerLeadingLabel)==null?void 0:V.call(k),footerTrailingLabel:(N=k.footerTrailingLabel)==null?void 0:N.call(k),shouldShowIcons:(h=
k.shouldShowIcons)==null?void 0:h.call(k),skipContentClick:(J=k.skipContentClick)==null?void 0:J.call(k),additionalClassName:(m=k.additionalClassName)==null?void 0:m.call(k),onClosedCallback:k.onClosedCallback,focusOnClose:(a=k.focusOnClose)==null?void 0:a.call(k),isDisabled:(T=k.isDisabled)==null?void 0:T.call(k),disabledCommand:(w=k.disabledCommand)==null?void 0:w.call(k),headerFn:k.headerFn,contentFn:k.contentFn,footerFn:k.footerFn,hasHeaderFn:k.hasHeaderFn(),hasContentFn:k.hasContentFn(),hasFooterFn:k.hasFooterFn(),
hasFooterPrimaryButton:k.hasFooterPrimaryButton(),hasFooterSecondaryButton:k.hasFooterSecondaryButton(),hasHeaderActionHeader:k.hasHeaderActionHeader()}};
n7T=function(k){switch(k){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""}};
iLa=function(k){switch(k){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""}};
hQa=function(k){switch(k){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""}};
J2A=function(k,E,S){E.forEach(function(R){_.FE(_.en().resolve(_.fG),R)});
_.qe(k,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",S])};
as0=function(k,E,S,R){var V=_.W(S,_.O6).commandLifeCycleConfig;V&&V.onStartCommand&&_.Ot(k,[V.onStartCommand],E);_.Xw(E);var N=_.rb.instance;N&&_.u_(N,S)?_.xv(N,S,R).then(function(h){if(!h||(h==null?0:h.error))return h=_.W(S,_.O6).serializedTransactionFlowLoggingParams,_.gE(E),_.BM(new kS("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",h));_.gE(E);return{data:h}}).then(function(h){_.gE(E);
c2I(h.data);var J=h.data.command;J&&_.Ot(k,[J],E);J=mxP(S,h.data);if(!J){var m=h.data;h=!1;if(m&&m.command&&_.W(m.command,_.CI)){var a;m=((a=_.W(m.command,_.CI))==null?void 0:a.commands)||[];for(a=0;a<m.length;a++)if(_.W(m[a],_.jxd)){h=!0;break}}h||_.fM('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!J&&V&&V.onSuccessCommand?_.Ot(k,[V.onSuccessCommand],E):J&&V&&V.onFailureCommand&&_.Ot(k,[V.onFailureCommand],E)},function(){_.gE(E);
V&&V.onFailureCommand&&_.Ot(k,[V.onFailureCommand],E);eQP(S)}):_.bM(Error("Sl"),"ERROR")};
tzP=function(k,E,S){var R=[E];S&&R.push(S);return _.Qw(k,R).then(function(V){var N=_.W(E,_.O6).serializedTransactionFlowLoggingParams,h=V.data,J=mxP(E,h);J?V=_.BM(new kS(J,N)):c2I(h);return V},function(){var V=_.W(E,_.O6).serializedTransactionFlowLoggingParams;
eQP(E);return _.BM(new kS("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",V))})};
mxP=function(k,E){k=_.W(k,_.O6).serializedTransactionFlowLoggingParams;var S=null;switch(E.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":S="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":S="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":S="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}S?_.$l(S,k):xiY(k);return S};
eQP=function(k){_.$l("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.W(k,_.O6).serializedTransactionFlowLoggingParams)};
c2I=function(k){if(k.trackingParams){var E=_.Fe(),S=_.Wi();E&&S&&_.rq(E,S,_.tV(k.trackingParams))}};
TFU=function(k,E,S){var R=_.rb.instance,V=_.Aml(_.Mg("YPC_MB_URL")),N=(new _.Knl).init(),h=_.pRl(),J=_.W(S,_.rZ8).languageCode;J===void 0?_.bM(Error("Pi"),"ERROR"):_.Ys([N,V]).then(function(){var m={ctk:_.DI.payments.business.integration.ClientTokenFactory.createClientToken(J,h)};R&&_.u_(R,S)?_.xv(R,S,m).then(function(a){return{data:a}}).then(function(a){_.Me(E,"yt-service-request-completed",a);
a.code!=="ERROR"&&(a=a.data.command)&&_.Ot(k,[a],E)}):_.bM(Error("Sl"),"ERROR")})};
BFP=function(k,E,S,R){var V=_.rb.instance;V&&_.u_(V,S)?_.xv(V,S,R).then(function(N){return{data:N}}).then(function(N){wSI(k,E,S,N)},function(){PTa(S)}):(V=_.en().resolve(_.mz(_.yS)))&&V.requestDataForServiceEndpoint(S,R).then(function(N){wSI(k,E,S,N)},function(){PTa(S)})};
wSI=function(k,E,S,R){_.Me(E,"yt-service-request-completed",R);if(R.code&&R.code=="ERROR")PTa(S);else{(R=R.data.commands)&&_.Ot(k,R,E);var V;(k=(V=_.W(S,_.$Yd))==null?void 0:V.serializedYpcPauseFlowLoggingParams)&&k&&_.ma("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",k)}};
PTa=function(k){var E;(k=(E=_.W(k,_.$Yd))==null?void 0:E.serializedYpcPauseFlowLoggingParams)&&k&&_.ma("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",k,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
FVI=function(k,E,S){var R=_.rb.instance;R&&_.u_(R,S)?_.xv(R,S).then(function(V){return{data:V}}).then(function(V){YUP(k,E,S,V)},function(){WVU(S)}):(R=_.en().resolve(_.mz(_.yS)))&&R.requestDataForServiceEndpoint(S).then(function(V){YUP(k,E,S,V)},function(){WVU(S)})};
YUP=function(k,E,S,R){_.Me(E,"yt-service-request-completed",R);R.code&&R.code=="ERROR"?WVU(S):((R=R.data.commands)&&_.Ot(k,R,E),(k=_.W(S,_.foC).serializedYpcResumeFlowLoggingParams)&&k&&_.ma("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",k))};
WVU=function(k){(k=_.W(k,_.foC).serializedYpcResumeFlowLoggingParams)&&k&&_.ma("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",k,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
y2G=function(k){k=k===void 0?{}:k;_.en().resolve(_.pUP).showFeedbackDialog(k.customProductData,k.feedbackContent,k.onFeedbackSubmitted,k.bucket)};
o73=function(k){k=k===void 0?{}:k;_.en().resolve(_.pUP).showHelpDialog(k.helpContext,k.articleId,k.productData)};
XS3=function(){o73()};
g7a=function(){y2G()};
HLA=function(k,E,S){var R,V,N,h,J,m,a;return _.c(function(T){switch(T.nextAddress){case 1:R=_.W(k,UxP);if((V=R)==null?0:V.productId){m={productId:R.productId,bucket:R.bucket,enableAnonymousFeedback:(J=R.enableAnonymousFeedback)!=null?J:!0,allowNonLoggedInFeedback:!0};a={feedbackChoice:S.feedbackChoice};if(!_.Y("web_collect_offline_state")){T.jumpTo(8);break}_.F5(T,9);return T.yield(diI(a),11)}h={bucket:(N=R)==null?void 0:N.bucket};if(!_.Y("web_collect_offline_state")){T.jumpTo(4);break}h.customProductData=
{};_.F5(T,5);return T.yield(diI(h.customProductData),7);case 7:_.Sv(T,4);break;case 5:_.UY(T);case 4:y2G(h);T.jumpTo(0);break;case 11:_.Sv(T,8);break;case 9:_.UY(T);case 8:_.wQ1(a),_.Tf1("GFEEDBACK",a),R.productId==="5295751"&&(a.client_attestation=Number(_.Mg("CATSTAT",0))),R.productId==="5295751"&&(a.client_time=Date.now()/1E3/3600),R.productId==="5295751"&&(a.original_playback_id=_.Xj4||""),_.kk5(m,a),_.KR(T)}})};
KVP=function(k){if(k=_.W(k,_.Wgb)){var E={bucket:k.bucketIdentifier};k.additionalDatas&&(E.customProductData={},k.additionalDatas.forEach(function(S){if(S=S.userFeedbackEndpointProductSpecificValueData)E.customProductData[S.key]=S.value}));
y2G(E)}};
pST=function(k){var E=_.GU.getInstance();var S=_.Vi("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var R=_.Vi("DELETE",void 0,"Delete"),V=_.Vi("CANCEL",void 0,"Cancel");S=kNP(S,void 0,R,V,{signal:"DELETE_ALL_DOWNLOADS"});_.Af(E,[{openPopupAction:S}],k)};
r2a=function(){return _.c(function(k){return k.nextAddress==1?k.yield(_.en().resolve(_.xV),2):k.yield(A2U(),0)})};
u9I=function(k){var E,S;return _.c(function(R){return R.nextAddress==1?(S=(E=_.W(k,_.zU))==null?void 0:E.targetId)?R.yield(_.en().resolve(_.xV),3):R.jumpTo(0):R.yield(_.en().resolve(_.u8).deleteVideo(S),0)})};
LV3=function(k){var E,S;return _.c(function(R){return R.nextAddress==1?(S=(E=_.W(k,_.zU))==null?void 0:E.targetId)?R.yield(_.en().resolve(_.xV),3):R.jumpTo(0):R.yield(xxP(_.en().resolve(_.u8),S),0)})};
DxT=function(k){var E,S;return _.c(function(R){return(S=(E=_.W(k,_.zU))==null?void 0:E.targetId)?R.yield(j40(S),0):R.jumpTo(0)})};
fsA=function(){_.Y("kevlar_woffle_refresh_dl_load_killswitch")||$x3()};
bLT=function(){_.Y("kevlar_woffle")&&_.Tl.instance&&v7I()};
dx2=function(k){var E;if((E=_.W(k,_.IE))==null||!E.videoId)return!1;ZLU(_.en().resolve(_.u8),_.W(k,_.IE),k.clickTrackingParams);return!0};
lsP=function(k){var E;if((E=_.W(k,_.n5))==null||!E.playlistId)return!1;s4P(_.en().resolve(_.u8),_.W(k,_.n5),k.clickTrackingParams);return!0};
qUa=function(k){var E=_.W(k,_.X3d);(E==null?void 0:E.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(E==null?void 0:E.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||MzR(_.en().resolve(_.u8),_.W(k,_.X3d))};
Q4U=function(k){k=_.W(k,_.GMj);var E;(k==null?0:(E=k.actions)==null?0:E.length)&&zQT(k)};
CTA=function(k){var E,S;return _.c(function(R){E=_.W(k,OLP);return(S=E)!=null&&S.localWatchHistoryCommandType?R.yield(GnA(E),0):R.return()})};
k4W=function(k){setTimeout(function(){requestAnimationFrame(k)},80)};
E$Y=function(k){return Object.entries(k).map(function(E){return E.join(":")}).join(";")};
R7I=function(k){var E,S,R;_.c(function(V){if(V.nextAddress==1)return V.yield(S82(),2);E=V.yieldResult;S=_.V_.instance;switch(E){case "granted":R=k.getLocationCommand;break;case "denied":R=k.openDeniedDialogAction;break;case "prompt":R=k.openCollectionDialogAction;break;default:R=k.openCollectionDialogAction}R&&S.resolveCommand(R);_.KR(V)})};
S82=function(){var k,E;return _.c(function(S){if(S.nextAddress==1)return k="prompt",navigator.permissions?S.yield(navigator.permissions.query({name:"geolocation"}),3):S.jumpTo(2);S.nextAddress!=2&&(E=S.yieldResult,k=E.state);return S.return(k)})};
N9t=function(){_.c(function(k){return k.yield(_.VuG(),0)})};
IXx=function(){var k,E,S;return _.c(function(R){if(R.nextAddress==1)return k=_.en().resolve(_.oR),k?R.yield(_.xv(k,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.dg(Error("Vl")),R.return(void 0));if(E=R.yieldResult){if(E.errorMetadata)return _.dg(Error("Wl`"+E.errorMetadata.status+"`"+E.error)),R.return(void 0);S=E.datasyncIds;_.dVT=S.length;return R.return(S)}_.dg(Error("Xl"));return R.return(void 0)})};
n$Y=function(){IXx().then(function(k){k&&(PlG(k),jvY(k),hZU(k),l03(k))})};
iTa=function(k){_.ZJ.addLowPriorityJob(function(){var E,S,R,V,N;return _.c(function(h){switch(h.nextAddress){case 1:if(_.Y("ytidb_clear_optimizations_killswitch")){h.jumpTo(2);break}E=_.uJ("clear");if(E.startsWith("V")&&E.endsWith("||")){var J=[E];PlG(J);jvY(J);hZU(J);l03(J);return h.return()}S=JVA();R=MFa();return h.yield(Dia(),3);case 3:return V=h.yieldResult,h.yield(BJP(),4);case 4:if(N=h.yieldResult,!(S||R||V||N))return h.return();case 2:k.isNetworkAvailable()?n$Y():k.listenOnce("publicytnetworkstatus-online",
n$Y),_.KR(h)}})})};
EG=function(k){k={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.DE(k)}}}};_.V_.instance&&_.V_.instance.resolveCommand(k)};
h7W=function(k){if(k){var E=_.JV();_.Pq(E,3854,void 0,{layer:0,parentLayer:4});switch(k){case 1:var S=238708;break;case 2:S=238715;break;case 3:S=238710;break;case 6:S=238709}S&&(k=_.hV(E,{veType:S}))&&_.Wq(E,k)}};
JaR=function(k){if(k){var E=_.JV();_.Pq(E,3854,void 0,{layer:0,parentLayer:4});switch(k){case 1:var S=238714;break;case 2:S=238711;break;case 8:S=238709;break;case 7:S=238713;break;case 3:case 4:case 5:S=238712}S&&(k=_.hV(E,{veType:S}))&&_.Wq(E,k)}};
caP=function(k){switch(k.latencyType){case 0:_.yi("consent_primitive_flow");_.o_("cpit",k.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.o_("cpist",k.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.o_("cprtif",k.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.o_("cprtli",k.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.o_("cprt",k.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.o_("cpdt",k.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.o_("cpjct",k.timestampEpochMillis,"consent_primitive_flow")}};
WZY=function(k,E){var S,R,V,N,h,J,m,a,T,w,P,B,F,K,r,x,L,q,M,d;return _.c(function(z){switch(z.nextAddress){case 1:_.F5(z,2);(R=(S=_.W(k,mMR))==null?void 0:S.serializedConsentRequest)||(R=(V=_.W(k,e7G))==null?void 0:V.serializedConsentRequest);R&&(N=aXt(_.k2(R)));if(N===void 0)return z.return();h=tux(N);h.latencyCallback=caP;E&&T9A(h,function(){E.then(function(kb){kb.pauseVideo();(new wNW).increment()})});
return((J=_.W(k,mMR))==null?void 0:J.consentAction)==="CONSENT_ACTION_PREWARM"||((m=_.W(k,e7G))==null?void 0:m.consentAction)==="CONSENT_ACTION_PREWARM"?z.yield(PEP(h),5):z.yield(B9G(h),6);case 6:a=z.yieldResult;T=_.iT(a,SZ);if(T===1){if(((w=_.BS(a,R6,1,SZ))==null?void 0:_.Tn(w,1))===1||((P=_.BS(a,R6,1,SZ))==null?void 0:_.Tn(P,1))===2||((B=_.BS(a,R6,1,SZ))==null?void 0:_.Tn(B,1))===3)_.W(k,e7G)?EG(_.Vi("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
EG(_.Vi("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));h7W((F=_.BS(a,R6,1,SZ))==null?void 0:_.Tn(F,1),_.cy(a,Y8W,3,_.mb()))}else T===2?(((K=Vc(a))==null?void 0:_.Tn(K,1))===5?_.W(k,e7G)?EG(_.Vi("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):EG(_.Vi("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((r=Vc(a))==null?void 0:_.Tn(r,1))===1||((x=Vc(a))==null?void 0:_.Tn(x,1))===4?EG(_.Vi("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((L=Vc(a))==null?void 0:_.Tn(L,1))===7&&((q=N)==null?void 0:(M=_.Tp(q,Nb,4))==null?void 0:_.Tn(M,4))!==1&&EG(_.Vi("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),JaR((d=Vc(a))==null?void 0:_.Tn(d,1))):EG(_.Vi("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));z.jumpTo(5);break;case 5:_.Sv(z,0);break;case 2:_.UY(z),EG(_.Vi("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.KR(z)}})};
yaP=function(){if(!FZx.has("Worker")){FZx.set("Worker",!0);var k={api:"BROWSER_API_WEB_WORKER"};k.available="Worker"in window?!0:!1;_.f2("apiTest",k)}};
o$I=function(k){return typeof k==="undefined"?"-1":String(Math.ceil(k/1048576))};
HT0=function(k,E){XNR(new g$T(_.W(E,UMA).addToken,_.W(E,UMA).commonToken)).then(function(){_.Me(k,"yt-invoke-instrument-manager-action-completed")},function(S){_.Me(k,"yt-invoke-instrument-manager-action-error",S)})};
I6=function(){return _.Mg("HTML_DIR")==="rtl"};
KZA=function(){var k,E;return(E=(k=window).matchMedia)==null?void 0:E.call(k,"(prefers-reduced-motion: reduce)").matches};
pNP=function(k){var E=_.en().resolve(_.mz(_.Au));if(E&&E.isAnyTransitionEnabled){var S={};E.viewTransitionCoordinator.registerElement(k,(S.slide="miniplayer-page-transition",S["lockup-to-watch"]="miniplayer-page-transition",S["learning-journey"]="miniplayer-page-transition",S))}};
AaW=function(k,E,S){return{horizontalAlignment:k.x+S.width/2<E.width/2?"west":"east",verticalAlignment:k.y+S.height/2<E.height/2?"north":"south"}};
u$U=function(k,E,S,R,V){V=V===void 0?new _.bh(0,0):V;k=raI(k,E,S,R,!1);return new _.bh(k.x+V.x,k.y+V.y)};
raI=function(k,E,S,R,V){V=(V===void 0?0:V)?400:0;return new _.bh(k==="west"?16+(I6()?V:0):S.width-R.width-16-(I6()?0:V),E==="north"?16:S.height-R.height-16)};
xMI=function(k,E){var S=0;k&&(S+=76);E&&(S+=285);return S};
LZG=function(k){return _.o4(k)};
jfA=function(k){var E=1;k=k.split(":");for(var S=[];E>0&&k.length;)S.push(k.shift()),E--;k.length&&S.push(k.join(":"));return S};
DMU=function(k){var E=new _.N4;return _.Y7(E,11,k)};
$MG=function(k){var E={};k=k.getAllResponseHeaders().split("\r\n");for(var S=0;S<k.length;S++)if(!_.Jh(k[S])){var R=jfA(k[S]),V=R[0];R=R[1];if(typeof R==="string"){R=R.trim();var N=E[V]||[];E[V]=N;N.push(R)}}return _.fO.map(E,function(h){return h.join(", ")})};
Vn=function(k,E){return k.JSC$9791_xhr_?k.JSC$9791_xhr_.getResponseHeader(E):null};
fXW=function(k,E){if(k.isDisposed())throw Error("Ea");k.hZ.o6("n");var S=_.Hs(k.hZ,function(){return k.pCM([E.xe,E.t2e,E.l04,E.fhx])},"n");
k.hZ.uJ2(S.length);k.hZ.po();return S};
ni=function(k,E,S){Array.isArray(S)||(S=[String(S)]);_.kUC(k.JSC$10027_queryData_,E,S);return k};
v7I=function(){var k=_.Tl.instance;_.c(function(E){return k.deferredInstallPrompt?E.yield(k.deferredInstallPrompt.prompt(),0):E.jumpTo(0)})};
v$3=function(k,E,S){if(_.sj(k))_.Sn(k,E,S);else for(k=_.hMp(k);;){var R=k.next();if(R.done)break;E.call(S,R.value,void 0,k)}};
bTA=function(k,E){var S=[];v$3(E,function(R){try{var V=_.Wk.prototype.getWrapper.call(this,R,!0)}catch(N){if(N=="Storage: Invalid value was encountered")return;throw N;}V===void 0?S.push(R):_.izd(V)&&S.push(R)},k);
return S};
QcG=function(k,E){bTA(k,E).forEach(function(S){_.Wk.prototype.remove.call(this,S)},k)};
ZTI=function(k){var E=_.dB;E._minimumZ=Math.max(E._minimumZ,k)};
dMP=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];sfW=function(k,E){_.nu(k.vm);k.vm=E};
lXU=function(k,E,S,R){k.setState(5);var V=!!k.pfK&&dMP.includes(_.iJ(k.pfK)||"");try{var N=new _.K3({program:E,globalName:S,lM3:{disable:!_.Y("att_web_record_metrics")||!_.Y("att_skip_metrics_for_cookieless_domains_ks")&&V,vc:"aGIf"}});N.rOe.then(function(){k.setState(6);R&&R(E)});
sfW(k,N)}catch(h){k.setState(7),h instanceof Error&&_.dg(h)}};
Mut=function(k,E,S,R,V,N){var h=h===void 0?"trayride":h;S?(k.setState(2),_.KI(_.Lu(S),function(){if(window[h])lXU(k,R,h,V);else{k.setState(3);var J=_.Dlh(S),m=document.getElementById(J);m&&(_.XMh(J),m.parentNode.removeChild(m));_.dg(new _.LC("BL:ULB",S))}},N)):E?(N=_.g7("SCRIPT"),E instanceof _.SO?_.NV(N,E):N.textContent=E,N.nonce=_.ke(document),document.head.appendChild(N),document.head.removeChild(N),window[h]?lXU(k,R,h,V):(k.setState(4),_.dg(new _.LC("BL:ULBJ")))):_.dg(new _.LC("BL:ULV"))};
q8t=function(){this.state=1;this.vm=null;this.pfK=void 0};
_.I=q8t.prototype;_.I.initialize=function(k,E,S,R){this.pfK=R;if(k.program){var V;R=(V=k.interpreterUrl)!=null?V:null;if(k.interpreterSafeScript)V=_.Mki(k.interpreterSafeScript);else{var N;V=(N=k.interpreterScript)!=null?N:null}k.interpreterSafeUrl&&(R=_.dv(k.interpreterSafeUrl).toString());Mut(this,V,R,k.program,E,S)}else _.dg(Error("sf"))};
_.I.isInitialized=function(){return!!this.vm};
_.I.getState=function(){return this.state};
_.I.isLoading=function(){return this.state===2};
_.I.invoke=function(k){k=k===void 0?{}:k;var E;this.vm?E=fXW(this.vm,{xe:k}):E=null;return E};
_.I.dispose=function(){sfW(this,null);this.setState(8)};
_.I.setState=function(k){this.state=k};
var z7I=function(k,E){return k.vm.snapshot(E)},Qfx=function(k,E){var S=_.wO("botguard_async_snapshot_timeout_ms",3E3);
E=E===void 0?{}:E;S=S===void 0?3E3:S;return k.vm?new Promise(function(R,V){var N=!1,h=_.ZJ.addJob(function(){N=!0;V(Error("tf"))},1,S);
k.vm?z7I(k,{xe:E}).then(function(J){_.ZJ.cancelJob(h);N||R(J)}).catch(function(J){_.ZJ.cancelJob(h);
N||V(J)}):(_.ZJ.cancelJob(h),R(null))}):Promise.resolve(null)},OTG=["att/log"],vqP;
vqP={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var G4T={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},CEY=function(k,E){return _.nr(k,{mode:"readwrite",enableRetries:!0},function(S){return _.wIR(S,E,"settingEntity")})},kAU=function(k,E,S){return _.nr(k,{mode:"readonly",
enableRetries:!0},function(R){return _.hJj(R,E,S)})},Es0=function(k){if(!k.storage)return!1;
a:{if(k.storage){try{var E=k.storage.get("TLPQtimestamp")}catch(S){}k=Number(E);if(!isNaN(k))break a}k=void 0}return k?Date.now()-k<864E5:!1},SFx=function(k){if(k.storage){try{var E=k.storage.get("TLPQindex")}catch(S){}k=Number(E);
if(!isNaN(k))return k}},R3G=function(k,E){k.queueProxy&&E.forEach(function(S){if(S.videoId&&S.trackingParams&&k.queueProxy instanceof _.lf){var R=_.Fe();
k.queueProxy.attributionData.set(S.videoId,{enqueueingVe:_.tV(S.trackingParams).getAsJson(),enqueueingCsn:R?R:void 0,clientEnqueueingTimeMs:Math.floor((0,_.ev)()).toString()})}})},VLY=function(k){var E=_.dDY(k);
E!=k.currentSnapState_&&(k.currentSnapState_=E,k.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},hl=function(k){this.JSC$13319_networkManager_=k;
this.partCallbacks_=[]};
hl.prototype.getCacheKeyForEndpoint=function(k){return _.hkb(k,!1)};
hl.prototype.onPartsCallback_=function(k){this.partCallbacks_.forEach(function(E){k&&E(k)})};
var Jl=function(k,E,S){hl.call(this,k);this.player_=E;this.autoplayData_=S};
_.y(Jl,hl);Jl.prototype.getCacheKeyForEndpoint=function(k){return _.hkb(k,!!this.autoplayData_)};
Jl.prototype.getTempData=function(k,E){E=E.timeBeforeNextVideo;k={itct:k.clickTrackingParams,lact:_.mE(),pbis:E,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(k.autonav=1);return k};
Jl.prototype.getXhrParams=function(k){return Object.assign({pbj:"prefetch"},k)};
Jl.prototype.getParams=function(k){k={frags:k.fragmentsRequested.join(",")};_.Y("kevlar_droppable_prefetchable_requests")&&(k.prefetch=1);return k};
var NGA=function(k){k.playerEvents_.forEach(function(E){k.player.removeEventListener(E.eventName,E.callback)});
k.playerEvents_.length=0},cL=function(k,E,S){this.player=k;
this.JSC$13329_taskManager=E;this.prefetchDelay=S;this.completionResolver_=null;this.playerEvents_=[]};
cL.prototype.start=function(){var k=this;this.completionResolver_=_.LU();_.Ws(this.completionResolver_.promise,function(){NGA(k);k.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var I9W=function(k,E,S){k.player.addEventListener(E,S);k.playerEvents_.push({eventName:E,callback:S})},nsG={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},i30={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},h3P=function(k,E,S){cL.call(this,k,E,S);this.cueId_="playbackTrigger-"+Math.random()};
_.y(h3P,cL);
h3P.prototype.prepareTrigger=function(k){var E=this,S=this.player.getDuration(),R=this.player.getVideoData(),V=R.isLive&&R.hasProgressBarBoundaries;if(V&&R.progressBarEndPositionUtcTimeMillis){var N=R.progressBarEndPositionUtcTimeMillis/1E3;isNaN(N)||(S=N)}var h=0;this.prefetchDelay>=0?V?R.progressBarStartPositionUtcTimeMillis&&(R=R.progressBarStartPositionUtcTimeMillis/1E3,isNaN(R)||(h=R+this.prefetchDelay)):h=this.prefetchDelay:h=S+this.prefetchDelay;V?this.player.addUtcCueRange(this.cueId_,h,S):
this.player.addCueRange(this.cueId_,h,S);_.Ws(k.promise,function(){E.player.removeCueRange(E.cueId_)});
I9W(this,"onCueRangeEnter",function(J){J==E.cueId_&&k.resolve(S-h)})};
var JSU=function(k,E){k.fragmentConfiguration_[E].requiredKeys.every(function(S){return!!k.prefetchedData_[S]})&&(k.validatedFragments_.push(E),E=k.missingFragments_.indexOf(E),E!==-1&&k.missingFragments_.splice(E,1))},cSW=function(k){k.prefetchedFragments_.forEach(function(E){JSU(k,E)})},m40=function(k,E,S){this.pageFragments_=k;
this.prefetchedFragments_=E;this.fragmentConfiguration_=i30;this.prefetchedData_=S;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;cSW(this)},e3U=function(){},a9U=function(k){this.JSC$13343_playlistManager_=k};
_.y(a9U,e3U);a9U.prototype.getPrefetchEndpoint=function(){return this.JSC$13343_playlistManager_.getAutoplayEndpoint()};
var tLa=function(k){this.autonavEndpoints_=k};
_.y(tLa,e3U);tLa.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var TG3=function(k,E,S,R,V){this.autonavEndpoints=k;this.foregroundTrigger=E;this.backgroundTrigger=S;this.pageType=R;this.isInPlaylist=V},wsR=function(k,E){if(k.webPrefetchData&&k.webPrefetchData.navigationEndpoints&&k.webPrefetchData.navigationEndpoints.length){k=k.webPrefetchData.navigationEndpoints;
var S=_.W(k[0],_.jm);if(S.watchEndpointSupportedPrefetchConfig&&S.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var R=S.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;S=R.playbackRelativeSecondsPrefetchCondition;S=typeof S==="number"&&Math.abs(S)<E.videoDuration?S:void 0;R=R.countdownUiRelativeSecondsPrefetchCondition;R=typeof R!=="number"||_.Y("prefetch_job_config_cleanup_ks")&&E.inPlaylist?void 0:R;if(typeof R==="number")return new TG3(k,E.makeUpNextTrigger(R),E.makePlaybackTrigger(R),
"watch",E.inPlaylist);if(typeof S==="number")return new TG3(k,E.makePlaybackTrigger(S),null,"watch",E.inPlaylist)}}},P1a=function(k){return k.prefetchJobConfig_.backgroundTrigger?_.Ga(_.xz1)()==0?k.prefetchJobConfig_.backgroundTrigger:k.prefetchJobConfig_.foregroundTrigger:k.prefetchJobConfig_.foregroundTrigger},BGY=function(k){_.TA(document,"visibilitychange",k.onVisibilityChange_,!1,k)},mx=function(k){hl.call(this,k)};
_.y(mx,hl);mx.prototype.getCacheKeyForEndpoint=function(k){return hl.prototype.getCacheKeyForEndpoint.call(this,k)};
mx.prototype.getTempData=function(){return{}};
mx.prototype.getXhrParams=function(k){return k};
mx.prototype.getParams=function(){return{}};
var YFI=function(k,E,S){var R=k.prefetchDelay*1E3;if(Math.abs(R)>E)S.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var V=R,N=E-R;R<0&&(V=E+R,N=Math.abs(R));var h=k.JSC$13329_taskManager.addJob(function(){S.resolve(N/1E3)},10,V);
S.promise.thenCatch(function(){k.JSC$13329_taskManager.cancelJob(h)})}},WLU=function(k,E,S){cL.call(this,k,E,S)};
_.y(WLU,cL);WLU.prototype.prepareTrigger=function(k){var E=this;I9W(this,"onAutonavCoundownStarted",function(S){YFI(E,S,k)})};
var FLI=function(k){k.pendingPrefetchJob_&&(k.pendingPrefetchJob_.cancel(),k.pendingPrefetchJob_=null)},yS3=function(k,E,S){if(!k.triggeredTargets.has(E)){var R=_.x_C(k,E);
R.action=S;_.rqz(k,E,R)}},osR=function(k){_.YZC();
_.q6C("cpt")&&_.dg(Error("sh"));_.Vt.requestAnimationFrame(function(){_.Vt.setTimeout(function(){_.o_("cpt");var E=_.Uv("vpl"),S=_.Uv("cpt");E&&S&&_.o_("ol",Math.max(E,S))})});
try{_.o_("fr_s"),k()}catch(E){_.bM(E)}_.Vt.requestAnimationFrame(function(){_.o_("bcp")})},Xs2=function(k,E){k.serviceEndpointHandlers.push(E)},gsT=function(k,E){E=k.pendingPages_.indexOf(E);
E>-1&&k.pendingPages_.splice(E,1)},U4a=function(k,E){var S=_.ZA8.indexOf(E);
S>-1&&_.ZA8.splice(S,1);k.targetPage_==E?(k.abort(),_.szd(k)):gsT(k,E)},H3t=function(k,E,S,R){E={challenge:E};
S&&(E.webResponse=S);return _.qF(k.innertubeTransportService,E,_.bg(OTG),R)},KL0=function(k,E,S){if(!E.challenge)throw Error("xi");
if(E.botguardData&&E.botguardData.program){var R=new q8t;R.initialize(E.botguardData,function(){Qfx(R,{atr_challenge:E.challenge}).then(function(V){if(!V)throw Error("yi");return H3t(k,E.challenge,V,S)}).catch(function(V){_.dg(V);
return H3t(k,E.challenge,void 0,S)})},void 0)}else H3t(k,E.challenge,void 0,S)},psU=function(k,E,S){var R={};
E.ids&&(R.ids=[].concat(_.$e(E.ids)));E.engagementType&&(R.engagementType=E.engagementType);return _.qF(k.innertubeTransportService,R,_.bg(_.o_8),S).then(function(V){if(!V)throw new _.LC("GetAttestationChallenge returned falsy");KL0(k,V,S)}).thenCatch(function(V){_.bM(V)})},ASa=function(k,E,S){return new _.yF(function(R,V){var N;
return _.c(function(h){if(h.nextAddress==1){var J=h.yield,m=E.engagementType,a=E.ids,T={};a=_.n(a!=null?a:[]);for(var w=a.next();!w.done;w=a.next())w=w.value,w.encryptedVideoId?T.encryptedVideoId=w.encryptedVideoId:w.externalChannelId?T.externalChannelId=w.externalChannelId:w.commentId?T.commentId=w.commentId:w.externalOwnerId?T.externalOwnerId=w.externalOwnerId:w.artistId?T.artistId=w.artistId:w.playlistId?T.playlistId=w.playlistId:w.externalPostId?T.externalPostId=w.externalPostId:w.shareId&&(T.shareId=
w.shareId);return J.call(h,Cva(m,T),2)}N=h.yieldResult;if(!N.challenge)return _.dg(Error("zi")),psU(k,E,S).then(R,V),h.return();J=N;m={challenge:J.challenge};m.webResponse=J.webResponse;m.engagementType=E.engagementType;m.ids=E.ids;_.qF(k.innertubeTransportService,m,_.bg(OTG),S).then(R,V);_.KR(h)})})},mXG=function(k,E){var S,R,V,N;
_.c(function(h){if(h.nextAddress==1){S=_.W(E,_.HFz);if(!(S&&S.listId&&k.response&&k.response.playingVideoId)||k.listId!==S.listId)return h.return();k.index===void 0&&(k.index=0);return h.yield(_.lj8(k.JSC$13076_playlistNetworkManager,S.listId,k.index,k.response.playingVideoId),2)}R=h.yieldResult;if(!R)return h.return();V=R.playlistId;N=R.playlistPanelRenderer;k.setPlaylistData(V,N,R.autoplayRenderer);_.KR(h)})},rS3=function(k,E,S){var R=k.getParams(S),V=_.Rve(E,R),N=k.getTempData(E,S);
N.endpoint=JSON.stringify(E);_.Y("enable_unknown_lact_fix_on_html5")&&(_.en().resolve(_.eQ),N.lact=_.mE());var h={headers:{"X-YouTube-STS":_.Mg("STS"),"x-youtube-csoc":1}};_.vi(V,N);return new _.yF(function(J,m){var a=k.getXhrParams(R),T;_.Y("kevlar_cache_on_ttl_player")&&(T=_.As.instance);T&&_.cq4(T,E)?_.B68(T,E,N,window.location.href).then(function(w){w?J(w):m()},m):_.$fC(k.JSC$13319_networkManager_,E,a,k.onPartsCallback_.bind(k),h).then(function(w){w?J(w):m()},m)})},uct=function(k,E){k.triggerPromise_=
E.start();
k.triggerPromise_.then(function(S){var R=k.prefetchEndpointProvider_.getPrefetchEndpoint();if(R){var V=nsG[k.prefetchJobConfig_.pageType].prefetchedFragments;k.prefetchRequestPromise_=rS3(k.JSC$13355_networkPrefetchRequest_,R,{fragmentsRequested:V,timeBeforeNextVideo:S});k.prefetchResponseCacheKey_=k.JSC$13355_networkPrefetchRequest_.getCacheKeyForEndpoint(R);BGY(k);k.prefetchRequestPromise_.then(function(N){k.storePrefetchedDataCallback_(k.prefetchResponseCacheKey_,N);if(_.Y("web_prefetch_preload_video")&&
V.length===1&&V[0]==="pl"&&N&&!N.playerAds&&!N.adPlacements){var h=_.W(R,_.hg),J=h!=null,m={raw_player_response:N,watch_endpoint:h};(N=_.en().resolve(J?_.Hbd:_.QQ))&&R&&N.then(function(a){J&&_.Y("web_queue_preload_video")?(m.prefer_gapless=!0,a.queueNextVideo(m)):a.preloadVideoByPlayerVars(m)})}})}})},eZ=function(k,E,S,R){this.prefetchEndpointProvider_=k;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=E;this.prefetchJobConfig_=S;this.JSC$13355_networkPrefetchRequest_=R;this.prefetchResponseCacheKey_=null};
eZ.prototype.enqueue=function(){this.triggerPromise_||(uct(this,P1a(this)),_.wX(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
eZ.prototype.resolve=function(){this.cancel()};
eZ.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.");BGY(this)};
eZ.prototype.onVisibilityChange_=function(){var k=this;_.Ga(_.xz1)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){k.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||uct(this,P1a(this))};
var x4P=function(k,E,S,R,V){E&&(E==null?0:E.videoId)&&S&&S.entries&&_.Y("kevlar_enable_shorts_prefetch_in_sequence")&&(FLI(k),E=S.entries.map(function(N){var h;return(h=_.W(N.command,_.hg))==null?void 0:h.videoId}).indexOf(E.videoId),S=S.entries[E+1],S!=null&&S.command&&!_.W(S==null?void 0:S.command,_.b3)&&(R=new TG3([S.command],new h3P(R,_.ZJ,1),null,"shorts",!1),k.pendingPrefetchJob_=new eZ(new tLa(R.autonavEndpoints),function(){return!1},R,new mx(V)),k.pendingPrefetchJob_.enqueue()))},LLW=function(k,
E,S,R,V,N){var h=_.nw.getInstance();
if(!_.Y("block_all_player_prefetch_requests")){FLI(k);var J=!!S.getPlaylistId(),m=S.getVideoData().isLive&&S.getVideoData().hasProgressBarBoundaries;if((h.getState()==2||J||m)&&(!S.getVideoData().isLive||m)){h={inPlaylist:J,videoDuration:S.getDuration(),makeUpNextTrigger:function(T){return new WLU(S,_.ZJ,T)},
makePlaybackTrigger:function(T){return new h3P(S,_.ZJ,T)}};
var a=wsR(E,h);a&&(k.pendingPrefetchJob_=new eZ(a.isInPlaylist?new a9U(V):new tLa(a.autonavEndpoints),function(T,w){w=new m40(nsG[a.pageType].pageFragments,nsG[a.pageType].prefetchedFragments,w);return _.yqC(w)?(k.prefetchCache_.set(T,w),!0):!1},a,new Jl(R,S,N,V)),k.pendingPrefetchJob_.enqueue())}}},jLP=function(){var k=_.kN();
k.signals.parkOrScheduleJob(function(){var E=k.storage;if(E.storage)if(Es0(E)){var S=E.getPlaylistId();E=SFx(E);S=!!S&&E!==void 0}else E.clear(),S=!1;else S=!1;if(S){S=k.JSC$13076_pageManager.isOnWatch();a:{var R=k.storage;if(R.storage&&Es0(R)&&(E=R.getPlaylistId(),R=SFx(R),E&&R!==void 0)){S={recoverPlaylistCommand:{listId:E,index:R,openMiniplayer:!S,openListPanel:S,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}S=void 0}S&&_.Af(k.JSC$13076_actionRouter,[S],null)}},0,"ma")},D4R=function(k,E,S,
R,V,N){var h=_.kh(7111);
_.Bq(k.JSC$18541_screenManager,h,N?_.tV(N):void 0);_.Wq(k.JSC$18541_screenManager,h,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:R,offlineId:E,offlineabilityFormatType:S,isDefaultFormatType:V==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:V}})},$42=function(k,E,S,R,V){var N,h,J,m,a;
return _.c(function(T){if(T.nextAddress==1)return T.yield(k.JSC$18541_playerApiPromise,2);N=T.yieldResult;D4R(k,E,S,"OFFLINE_OBJECT_TYPE_PLAYLIST",R,V);if(J=_.TNC[k.entityTypeMap.listEntityType])a={},h=(a[J]={maximumDownloadQuality:(m=S)!=null?m:void 0},a);return T.yield(N.queueOfflineAction(E,k.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",h),0)})},f9R=function(k,E){var S,R,V,N;
return _.c(function(h){if(h.nextAddress==1)return h.yield(k.JSC$18541_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3){S=h.yieldResult;if(!S)return _.dg(new _.LC("PES is undefined")),h.return();R=_.kn(E,"downloadStatusEntity");return h.yield(kAU(S,R,"downloadStatusEntity"),3)}V=h.yieldResult;return h.return((N=V)==null?void 0:N.downloadState)})},vsP=function(k,E,S,R,V){var N,h,J,m,a,T;
return _.c(function(w){switch(w.nextAddress){case 1:return w.yield(k.JSC$18541_playerApiPromise,2);case 2:N=w.yieldResult;D4R(k,E,S,"OFFLINE_OBJECT_TYPE_VIDEO",R,V);if(J=_.TNC[k.entityTypeMap.singleEntityType])a={},h=(a[J]={maximumDownloadQuality:(m=S)!=null?m:void 0},a);return w.yield(f9R(k,E),3);case 3:T=w.yieldResult;if(T!=="DOWNLOAD_STATE_USER_DELETED"){w.jumpTo(4);break}return w.yield(k.deleteVideo(E),4);case 4:return w.yield(N.queueOfflineAction(E,k.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
h),0)}})},b3Y=function(k,E,S,R,V){return _.c(function(N){return N.nextAddress==1?N.yield(k.deleteVideo(E,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):N.yield(vsP(k,E,S,R,V),0)})},Z3R=function(k,E,S){var R,V;
return _.c(function(N){if(N.nextAddress==1)return N.yield(k.JSC$18541_playerApiPromise,2);R=N.yieldResult;V=_.kn(E,"mainVideoDownloadStateEntity");return N.yield(R.updateDownloadState(V,S),0)})},j40=function(k){var E=_.en().resolve(_.u8);
return _.c(function(S){if(S.nextAddress==1)return E.previousDownloadStateForVideo[k]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&E.previousDownloadStateForVideo[k]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?S.jumpTo(2):S.yield(E.resumeVideoDownload(k),2);if(S.nextAddress!=4)return S.yield(Z3R(E,k,E.previousDownloadStateForVideo[k]),4);delete E.previousDownloadStateForVideo[k];_.KR(S)})},xxP=function(k,E){var S;
return _.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$18541_playerApiPromise,2);S=R.yieldResult;return R.yield(S.queueOfflineAction(E,k.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},A2U=function(){var k=_.en().resolve(_.u8),E,S;
return _.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$18541_playerApiPromise,2);if(R.nextAddress!=3)return E=R.yieldResult,S={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},R.yield(E.queueOfflineAction("!*$_ALL_ENTITIES_!*$",k.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",S),3);var V=k.JSC$18541_commandHandler,N=V.resolveCommand,h=_.Vi("DELETING_ALL",void 0,"Downloads are being deleted");N.call(V,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.lD(h)}},
popupType:"TOAST"}});_.KR(R)})},d43=function(k,E){var S,R,V,N,h,J;
return _.c(function(m){if(m.nextAddress==1)return m.yield(k.JSC$18541_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3)return S=m.yieldResult,S?m.yield(kAU(S,_.TJ,"downloadsPageViewConfigurationEntity"),3):(_.dg(new _.LC("PES is undefined")),m.return());V=(R=m.yieldResult)!=null?R:{};J=(h=(N=V)==null?void 0:N.downloadsUpsellBannerVisibility)!=null?h:{};return J.visibleWithConnection?m.yield(E.refreshAllStaleEntities(0),0):m.jumpTo(0)})},sLG=function(k){var E,S;
return _.c(function(R){if(R.nextAddress==1)return R.yield(k.JSC$18541_prefStorage,2);E=R.yieldResult;return R.return((S=E)==null?void 0:S.get("sdois"))})},l92=function(k){var E,S,R,V,N,h;
return _.c(function(J){if(J.nextAddress==1)return J.yield(k.JSC$18541_persistentStorePromiseAccessor(),2);if(J.nextAddress!=3){E=J.yieldResult;if(!E)return _.dg(new _.LC("PES is undefined")),J.return();S=_.kn("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return J.yield(kAU(E,S,"settingEntity"),3)}R=J.yieldResult;return J.return((h=(V=R)==null?void 0:(N=V.settingOptionValue)==null?void 0:N.boolValue)!=null?h:!1)})},MLG=function(k,E){var S,R,V,N;
return _.c(function(h){switch(h.nextAddress){case 1:return((S=E)==null?void 0:S.formatType)===void 0?h.return():h.yield(k.JSC$18541_prefStorage,2);case 2:R=h.yieldResult;if(R===void 0)return h.return();if(((V=E)==null?void 0:V.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return h.yield(R.set("lmqf",E.formatType),8);if(((N=E)==null?void 0:N.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){h.jumpTo(0);break}return h.yield(R.set("lmqf",E.formatType),6);case 6:return h.yield(R.set("lmqflst",
Math.floor((0,_.ev)())),0);case 8:return h.yield(R.remove("lmqflst"),0)}})},qF2=function(k){var E,S;
return _.c(function(R){switch(R.nextAddress){case 1:return R.yield(k.JSC$18541_prefStorage,2);case 2:E=R.yieldResult;if(!E){R.jumpTo(3);break}return R.yield(E.get("lmqflst"),4);case 4:if(S=R.yieldResult,S!==void 0)return R.return(S);case 3:return R.return(0)}})},z3P=function(k){var E,S;
return _.c(function(R){switch(R.nextAddress){case 1:return R.yield(k.JSC$18541_prefStorage,2);case 2:E=R.yieldResult;if(E===void 0){R.jumpTo(3);break}return R.yield(E.get("lmqf"),4);case 4:if(S=R.yieldResult,S!==void 0)return R.return(S);case 3:return R.return("SD")}})},s4P=function(k,E,S){var R,V,N,h,J,m,a,T;
_.c(function(w){switch(w.nextAddress){case 1:return w.yield(MLG(k,(R=E)==null?void 0:R.actionParams),2);case 2:V=E.playlistId;if(!V)return w.return();if(E.action==="ACTION_ADD")return((h=E.actionParams)==null?0:h.formatType)?w.yield($42(k,V,E.actionParams.formatType,(T=E.actionParams)==null?void 0:T.settingsAction,S),0):w.yield(k.offlineWebClientEligibility,14);if(E.action==="ACTION_REMOVE_WITH_PROMPT"){var P=k.JSC$18541_commandHandler,B=P.resolveCommand,F=_.Mg("INNERTUBE_CLIENT_NAME");var K=F===
"WEB_REMIX"?_.Vi("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Vi("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var r=F==="WEB_REMIX"?[_.Vi("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];F=F==="WEB_REMIX"?_.Vi("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Vi("DELETE",void 0,"Delete");var x=_.Vi("CANCEL",void 0,"Cancel");K=kNP(K,r,F,x,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:V});B.call(P,{openPopupAction:K});return w.return()}if(E.action===
"ACTION_REMOVE")return w.yield(xxP(k,V),0);if(E.action!=="ACTION_SYNC"){w.jumpTo(0);break}return w.yield(k.JSC$18541_playerApiPromise,9);case 9:return N=w.yieldResult,w.yield(N.queueOfflineAction(V,k.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return J=w.yieldResult,w.yield(z3P(k),15);case 15:return m=w.yieldResult,w.yield(qF2(k),16);case 16:a=w.yieldResult,E.onAddCommand&&k.JSC$18541_commandHandler.resolveCommand(E.onAddCommand,{form:{preferredFormatType:m,
offlineWebClientEligibility:J,lastOfflineQualitySettingsSavedMs:a.toString()}}),w.jumpTo(0)}})},ZLU=function(k,E,S){var R,V,N,h,J,m,a,T,w,P,B,F,K,r;
_.c(function(x){switch(x.nextAddress){case 1:return x.yield(MLG(k,(R=E)==null?void 0:R.actionParams),2);case 2:V=E.videoId;if(!V)return x.return();if(E.action==="ACTION_REMOVE_WITH_PROMPT"){var L=k.JSC$18541_commandHandler,q=L.resolveCommand,M=_.Mg("INNERTUBE_CLIENT_NAME");var d=M==="WEB_REMIX"?_.Vi("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Vi("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var z=M==="WEB_REMIX"?[_.Vi("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];M=M==="WEB_REMIX"?_.Vi("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Vi("DELETE",void 0,"Delete");var kb=_.Vi("CANCEL",void 0,"Cancel");d=kNP(d,z,M,kb,{signal:"DELETE_DOWNLOAD",targetId:V});q.call(L,{openPopupAction:d});return x.return()}if(E.action==="ACTION_ADD")return((P=E.actionParams)==null?0:P.formatType)?x.yield(vsP(k,V,E.actionParams.formatType,(r=E.actionParams)==null?void 0:r.settingsAction,S),0):x.yield(k.offlineWebClientEligibility,23);if(E.action==="ACTION_RETRY")return x.yield(z3P(k),
19);if(E.action==="ACTION_PAUSE")return x.yield(k.pauseVideoDownload(V),0);if(E.action==="ACTION_RESUME")return x.yield(k.resumeVideoDownload(V),0);if(E.action!=="ACTION_REMOVE"){x.jumpTo(0);break}return x.yield(f9R(k,V),13);case 13:return N=x.yieldResult,k.previousDownloadStateForVideo[V]=(h=N)!=null?h:"DOWNLOAD_STATE_UNKNOWN",x.yield(Z3R(k,V,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(k.previousDownloadStateForVideo[V]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&k.previousDownloadStateForVideo[V]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){x.jumpTo(15);break}return x.yield(k.pauseVideoDownload(V),15);case 15:L=_.Vi("DELETED_VIDEO",void 0,"Video deleted from downloads.");q=_.Vi("UNDO_ACTION",void 0,"Undo");d=_.Vi("CLOSE",void 0,"Close");J={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.lD(L),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.lD(q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:V}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:L+" "+q}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:V}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:d}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};k.JSC$18541_commandHandler.resolveCommand(J);
x.jumpTo(0);break;case 19:m=x.yieldResult;m==="UNKNOWN_FORMAT_TYPE"&&(m="SD");a="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((T=E.actionParams)==null?0:T.formatType)m=E.actionParams.formatType,a=(w=E.actionParams)==null?void 0:w.settingsAction;return x.yield(b3Y(k,V,m,a,S),20);case 20:return x.return();case 23:return B=x.yieldResult,x.yield(z3P(k),24);case 24:return F=x.yieldResult,x.yield(qF2(k),25);case 25:K=x.yieldResult,E.onAddCommand&&k.JSC$18541_commandHandler.resolveCommand(E.onAddCommand,
{form:{preferredFormatType:F,offlineWebClientEligibility:B,lastOfflineQualitySettingsSavedMs:K.toString()}}),x.jumpTo(0)}})},QLR=function(k,E){var S,R,V,N,h,J,m;
return _.c(function(a){if(a.nextAddress==1)return a.yield(k.JSC$18541_persistentStorePromiseAccessor(),2);S=a.yieldResult;if(!S)return _.dg(new _.LC("PES is undefined")),a.return();if((R=E)==null||!R.settingItemId)return a.return();V=E;N=V.settingItemId;h=V.boolValue;J=_.kn(N,"settingEntity");m={key:J,settingOptionValue:{boolValue:h}};return a.yield(CEY(S,m),0)})},O3Y=function(k,E){var S,R,V,N,h,J,m;
return _.c(function(a){switch(a.nextAddress){case 1:return a.yield(k.JSC$18541_prefStorage,2);case 2:return S=a.yieldResult,R=_.nz(),a.yield(k.JSC$18541_persistentStorePromiseAccessor(),3);case 3:return V=a.yieldResult,S?V?a.yield(S.get("sdois"),4):(_.dg(new _.LC("PES is undefined")),a.return()):(_.dg(new _.LC("prefStorage is undefined")),a.return());case 4:N=a.yieldResult;J=(h=E)==null?void 0:h.boolValue;J===void 0||_.Y("kevlar_set_sd_enabled_flag_killswitch")||_.iD(0,197,!0);N===void 0&&J===void 0&&
(J=!1);if(J===void 0){a.jumpTo(0);break}return a.yield(S.set("sdois",J),6);case 6:return _.Y("kevlar_set_sd_enabled_flag_killswitch")||(_.iD(0,196,J),R.save()),m={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:J},a.yield(QLR(k,m),0)}})},GAT=function(k,E,S){var R,V,N,h,J;
return _.c(function(m){switch(m.nextAddress){case 1:return m.yield(sLG(k),2);case 2:return R=m.yieldResult,m.yield(O3Y(k,S),3);case 3:return m.yield(sLG(k),4);case 4:return V=m.yieldResult,N=V!==R,m.yield(l92(k),5);case 5:h=m.yieldResult&&!_.Y("kevlar_modern_downloads_page");if((J=!V&&!h)||N)return m.yield(E.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);m.jumpTo(0)}})},$x3=function(){var k=_.en().resolve(_.u8),
E;
_.c(function(S){switch(S.nextAddress){case 1:return S.yield(k.JSC$18541_playerApiPromise,2);case 2:E=S.yieldResult;if(!_.Y("kevlar_force_refresh_smart_downloads")){S.jumpTo(3);break}return S.yield(E.refreshAllStaleEntities(0),4);case 4:return S.return();case 3:return S.yield(E.refreshAllStaleEntities(),5);case 5:return S.yield(GAT(k,E),6);case 6:if(_.Y("enable_download_pep_for_premium_countries_web"))return S.yield(d43(k,E),0);S.jumpTo(0)}})},MzR=function(k,E){var S,R;
_.c(function(V){switch(V.nextAddress){case 1:return V.yield(k.JSC$18541_playerApiPromise,2);case 2:S=V.yieldResult;switch((R=E)==null?void 0:R.settingItemId){case "SMART_DOWNLOADS_ENABLED":return V.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return V.jumpTo(4)}V.jumpTo(0);break;case 3:return V.yield(GAT(k,S,E),6);case 6:V.jumpTo(0);break;case 4:return V.yield(QLR(k,E),7);case 7:V.jumpTo(0)}})},C10=function(k,E){var S,R,V;
return _.c(function(N){if(N.nextAddress==1)return N.yield(k.JSC$18541_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3){S=N.yieldResult;if(!S)return _.dg(new _.LC("PES is undefined")),N.return(!1);if(!E)return N.return(!1);R=_.kn(E,"mainVideoEntity");return N.yield(kAU(S,R,"mainVideoEntity"),3)}V=N.yieldResult;return N.return(V!==void 0)})},zQT=function(k){var E=_.en().resolve(_.u8),S,R,V,N,h,J,m,a,T,w,P;
_.c(function(B){switch(B.nextAddress){case 1:return B.yield(E.JSC$18541_playerApiPromise,2);case 2:S=B.yieldResult;V=(R=k)==null?void 0:R.actions;if(!V)return B.return();N=_.n(V);h=N.next();case 3:if(h.done){B.jumpTo(0);break}J=h.value;a=m=void 0;if(!(((m=J)==null?0:m.entityKey)&&((a=J)==null?0:a.actionType))){B.jumpTo(4);break}T=_.Ov(J.entityKey);w=T.entityId;P=T.entityType;return B.yield(S.queueOfflineAction(w,P,J.actionType),4);case 4:h=N.next(),B.jumpTo(3)}})},k_R=function(k,E){var S,R,V,N,h;
return _.c(function(J){if(J.nextAddress==1)return J.yield(k.JSC$18541_prefStorage,2);if(J.nextAddress!=3)return(S=J.yieldResult)?J.yield(S.get("psi"),3):J.return();R=J.yieldResult;h={isPaused:E,lastSyncTimestamp:(N=(V=R)==null?void 0:V.lastSyncTimestamp)!=null?N:"0"};return J.yield(S.set("psi",h),0)})},GnA=function(k){var E=_.en().resolve(_.u8),S,R,V,N,h,J,m,a;
return _.c(function(T){switch(T.nextAddress){case 1:return T.yield(E.JSC$18541_playerApiPromise,2);case 2:S=T.yieldResult;V=((R=k)==null?void 0:R.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((J=k)==null?void 0:J.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":N="!*$_ALL_ENTITIES_!*$";h="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return T.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return T.jumpTo(4)}T.jumpTo(5);break;case 3:return T.yield(k_R(E,V),6);case 6:T.jumpTo(5);break;case 4:return T.yield(C10(E,(m=k)==null?void 0:m.videoId),7);case 7:T.yieldResult&&(N=(a=k)==null?void 0:a.videoId,h="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");T.jumpTo(5);break;case 5:if(N&&h)return T.yield(S.queueOfflineAction(N,"videoPlaybackPositionEntity",h),0);T.jumpTo(0)}})},EH3=function(k,E){var S;
E!==1||((S=k.currentPersistentToast)==null?0:S.isOpened())?k.openToast():k.currentPersistentToast=void 0},SI0=function(k,E){var S;
return(S=k.transitionTasksMap.get(E))!=null?S:[]},RpI=function(k,E){var S=[];
k.elementTasksMap.forEach(function(R){(R=R.get(E))&&S.push(R)});
return S},VyI=function(k,E,S,R,V){V=V===void 0?{}:V;
var N=E.defaultViewTransitionOptions;return Object.assign({},N,V,{beforeTransition:function(){R.forEach(function(a){a.beforeTransition()});
var h;(h=N.beforeTransition)==null||h.call(N);var J,m;(m=(J=V).beforeTransition)==null||m.call(J);S.forEach(function(a){a.beforeTransition()})},
afterTransition:function(){R.forEach(function(a){a.afterTransition()});
var h;(h=N.afterTransition)==null||h.call(N);var J,m;(m=(J=V).afterTransition)==null||m.call(J);S.forEach(function(a){a.afterTransition()})},
ignoredErrors:k.config.ignoredErrors})},N$A=function(k,E,S){k.transitionTasksMap.has(E)?k.transitionTasksMap.get(E).push(S):(k=new _.LC("Transition task registered for unknown transition type",E),_.bM(k))},Im2=function(k,E,S){if(k.transitionTasksMap.has(E)){var R=k.transitionTasksMap.get(E).filter(function(V){return V!==S});
k.transitionTasksMap.set(E,R)}},nHa=function(k,E){var S=SI0(k,E);
S=_.n(S);for(var R=S.next();!R.done;R=S.next())R=R.value,R.runOnce&&Im2(k,E,R);k.elementTasksMap.forEach(function(V,N){V.forEach(function(h,J){h.runOnce&&E===J&&(V.delete(J),V.size===0&&k.elementTasksMap.delete(N))})})},ita=function(k,E,S){var R,V,N,h,J,m,a,T,w;
_.c(function(P){if(P.nextAddress==1){if(k.config.disableAllTransitions)return P.return(E());if((R=S)==null||!R.transitionType)return P.return(_.Udt(E,Object.assign({},(V=S)==null?void 0:V.viewTransitionOptions,{ignoredErrors:k.config.ignoredErrors})));N=S;h=N.transitionType;J=N.viewTransitionOptions;m=k.config.transitionConfigs.get(h);if(!m)return P.return(E());a=SI0(k,h);T=RpI(k,h);w=_.Udt(E,VyI(k,m,a,T,J));return P.yield(w,2)}nHa(k,h);_.KR(P)})},hpT=function(){var k,E,S,R;
return _.c(function(V){if(V.nextAddress==1)return k=navigator,(E=k.storage)!=null&&E.persisted?V.yield((S=k.storage)==null?void 0:S.persisted(),2):V.return("PERSISTED_STATE_NOT_SUPPORTED");R=V.yieldResult;return V.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Jzt=function(){var k,E,S,R;
return _.c(function(V){if(V.nextAddress==1)return k=navigator,(E=k.storage)!=null&&E.persist?V.yield((S=k.storage)==null?void 0:S.persist(),2):V.return("PERSISTED_STATE_NOT_SUPPORTED");R=V.yieldResult;return V.return(R?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},cza=function(){var k,E;
return _.c(function(S){switch(S.nextAddress){case 1:return k="PERSISTED_STATE_NOT_SUPPORTED",_.F5(S,2),S.yield(hpT(),4);case 4:k=S.yieldResult;if(k!=="PERSISTED_STATE_NOT_GRANTED"){S.jumpTo(5);break}return S.yield(Jzt(),6);case 6:k=S.yieldResult;case 5:_.Sv(S,3);break;case 2:E=_.UY(S),E instanceof Error&&_.bM(E);case 3:return _.f2("persistentStorageStateChecked",{persistedState:k}),S.return(k)}})},mwU=function(k,E){var S=[],R=!1;
E=_.n(E);for(var V=E.next();!V.done;V=E.next()){V=k.moduleRegistry[V.value];var N=void 0,h=void 0;((N=V)==null?0:N.isFetching)&&((h=V)==null?0:h.resolver)?(S.push(V.resolver.promise),R=!0):(V=new _.kl,V.resolve(void 0),S.push(V.promise))}return R?Promise.all(S):void 0},ep0=function(k,E,S){if(k.isAnyTransitionEnabled){var R={beforeTransition:function(){S(!0);
E.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){E.style.viewTransitionName&&(E.style.viewTransitionName="",S(!1))}};
N$A(k.viewTransitionCoordinator,"slide",R);N$A(k.viewTransitionCoordinator,"lockup-to-watch",R);N$A(k.viewTransitionCoordinator,"watch-next-appears",R);N$A(k.viewTransitionCoordinator,"learning-journey",R)}},amU=function(k,E){k.isBrowseTransitionEnabled?ita(k.viewTransitionCoordinator,E,{transitionType:"slide"}):(E(),Promise.resolve())},tyW=function(k,E){k.isLockupToWatchTransitionEnabled?ita(k.viewTransitionCoordinator,E,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){k.registeredLockupThumbnail=void 0;k.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(E(),Promise.resolve())},T$G=function(k,E){k.isLockupToWatchTransitionEnabled?ita(k.viewTransitionCoordinator,E,{transitionType:"watch-next-appears"}):(E(),Promise.resolve())},wY0=function(k,E){k.isLearningJourneyTransitionEnabled?ita(k.viewTransitionCoordinator,E,{transitionType:"learning-journey"}):(E(),Promise.resolve())},Pd0=function(k,E,S){if(k.isInitialized()){var R=
le(S),V=R==="watch";
R=R==="shorts";var N=le(E)==="watch";if(V)N||(k.backgroundPageData=E),k.watchPipMode&&N||k.deactivate(S.endpoint);else if(R){if(le(E)!=="shorts"){var h;(h=k.getPlayerElement())==null||h.pause()}}else N&&!k.watchPipMode&&(S_0(E,S)?(k.watchWhileMode&&_.jHR(k,!1),_.pVY(k,E)):k.isMiniplayerActive()&&k.watchWhileMode&&k.deactivate());N&&_.$Gx(k);k.shortsPipMode&&!R&&(window.focus(),k.deactivate());if(k.pictureInPictureEnabled())if(R&&k.shortsPipEnabled||V&&k.watchPipEnabled)_.cMR(k.handleMediaSessionPipActivation);
else if(!k.isMiniplayerActive()&&(k.shortsPipEnabled||k.watchPipEnabled)&&window.documentPictureInPicture&&_.Kl()&&_.FIR("Chromium")>=120){k=_.JMb().mediaSession;try{k.setActionHandler("enterpictureinpicture",null)}catch(J){}}}},B$a=function(k,E){var S,R;
_.c(function(V){if(V.nextAddress==1){if(!k||!k.navigationEndpoint)return V.return();_.g_().lockupActivation=!0;var N;E?N=_.DE(_.Vi("QUEUE",void 0,"Queue")):N=k.longBylineText;R=(S=N)&&k.title?{miniplayerTitle:k.title,miniplayerSubtitle:S,playlistData:null}:void 0;return V.yield(_.D$Y(_.en().resolve(_.yb),k.navigationEndpoint,!0,R),2)}_.g_().userActivation=!0;_.KR(V)})},h_a=function(k,E){var S,R,V,N,h,J;
_.c(function(m){if(m.nextAddress==1){S=_.W(E,_.U7d);if(!S||!S.listId)return m.return();k.index=S.index||k.index||0;R=k.response&&k.response.playingVideoId||void 0;return m.yield(_.lj8(k.JSC$13076_playlistNetworkManager,S.listId,k.index,R),2)}V=m.yieldResult;if(!V)return m.return();N=V.playlistId;h=V.playlistPanelRenderer;!k.queueProxy&&N&&h&&N.startsWith("TLPQ")&&(k.queueProxy=new _.lf(k.JSC$13076_playlistNetworkManager,N,k.setPlaylistData.bind(k),k.clearQueue.bind(k),_.C6h(h),k.storage));if(S.openMiniplayer&&
(J=_.kDA(h))&&!k.JSC$13076_pageManager.isOnWatch()){var a=J,T=S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";k.isMiniplayerActive()?k.openToast(a):B$a(a,T)}k.setPlaylistData(N,h,V.autoplayRenderer);_.KR(m)})},IOA=function(k,E){var S=_.kN();
S.index===void 0&&(S.index=0);S.temporaryItems.push.apply(S.temporaryItems,_.$e(k));if((E.videoId||E.videoIds)&&S.index!==void 0&&E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!S.queueProxy){var R=[];if(S.response){var V=_.en().resolve(_.yb).isMiniplayerActive();if(S.response.playlistPanelRenderer&&S.response.playlistId&&!S.response.playlistId.startsWith("TLPQ")){if(S.JSC$13076_pageManager.isOnWatch()||V)R=_.C6h(S.response.playlistPanelRenderer)}else S.response.playingVideoId&&!E.openMiniplayer?
R.push(S.response.playingVideoId):V&&S.response.playingVideoId&&E.openMiniplayer&&R.push(S.response.playingVideoId)}S.queueProxy=new _.lf(S.JSC$13076_playlistNetworkManager,"",S.setPlaylistData.bind(S),S.clearQueue.bind(S),R,S.storage);S.queueProxy.JSC$13022_setCurrentIndex(S.index)}S.queueProxy.addVideos(E.videoIds||[E.videoId],E)}R3G(S,k);S.response&&_.EE(S,_.SM(S,S.response.autoplayRenderer));S.JSC$13076_pageManager.isOnWatch()?S.isMiniplayerActive()&&S.openToast(k[0]):(k=k[0],E=E.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
S.isMiniplayerActive()?S.openToast(k):B$a(k,E))},YIx=function(k){var E=_.GY(k);
if(E=="object"||E=="array"){if(typeof k.clone==="function")return k.clone();if(typeof Map!=="undefined"&&k instanceof Map)return new Map(k);if(typeof Set!=="undefined"&&k instanceof Set)return new Set(k);E=E=="array"?[]:{};for(var S in k)E[S]=YIx(k[S]);return E}return k},a6=function(k,E){return _.BYA(_.R4(k,E,void 0,_.Sz))},tl=function(k,E){return _.ia(_.R4(k,E,void 0,_.Sz))},Tr=function(k,E){return _.DpI(_.R4(k,E,void 0,_.Sz))},wz=function(k,E){return _.R4(k,E,void 0,_.Sz,_.O5)},W0x=_.cU(function(k,
E,S,R){if(k.nextWireType_!==0)return!1;
_.nL(E,S,R,_.yk(k.decoder_,_.wz1));return!0},_.TB,_.HS),F0Y=_.cU(function(k,E,S){if(k.nextWireType_!==1)return!1;
var R=k.decoder_;k=_.X9(R);R=_.X9(R);k=_.vz(k,R);_.m$(E,S,k);return!0},_.DUh,_.v2C),yzG=_.cU(function(k,E,S){if(k.nextWireType_!==5)return!1;
_.m$(E,S,_.X9(k.decoder_));return!0},function(k,E,S){E=_.Fde(E);
E!=null&&(_.er(k,S,5),_.aS(k.encoder_,E))},_.DpY),oH0=_.cU(function(k,E,S){if(k.nextWireType_!==2)return!1;
k=_.o2d(k);_.m$(E,S,k===_.pj()?void 0:k);return!0},_.Zgi,_.dpd),XY3=_.Hge(function(k,E,S){if(k.nextWireType_!==0&&k.nextWireType_!==2)return!1;
E=_.Sr(E,E[_.Vd]|0,S);k.nextWireType_==2?_.Xz8(k,LZG,E):E.push(_.o4(k.decoder_));return!0},function(k,E,S){E=_.UUI(_.ia,E,!0);
if(E!=null&&E.length){S=_.ACT(k,S);for(var R=0;R<E.length;R++)_.xUt(k.encoder_,E[R]);_.rCd(k,S)}},_.sC8),gHP=_.cU(function(k,E,S,R){if(k.nextWireType_!==0)return!1;
_.nL(E,S,R,_.o4(k.decoder_));return!0},_.sSj,_.sC8),UwG=function(k){return k.previousElementSibling!==void 0?k.previousElementSibling:_.Sod(k.previousSibling,!1)},HtI=function(k,E){var S=[];
for(E=E||0;E<k.length;E+=2)_.shz(k[E],k[E+1],S);return S.join("&")},K0U=function(k,E){var S=arguments.length==2?HtI(arguments[1],0):HtI(arguments,1);
return _.djY(k,S)},KuP=_.WU(_.PZ),pY0=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(pY0,_.iu);pY0.prototype.getTypeName=function(){return _.t2(this,1).split("/").pop()};
pY0.prototype.getValue=function(){var k=_.R4(this,2);if(Array.isArray(k)||k instanceof _.iu)throw Error("W");return _.I4(this,2)};
var PKW=function(){var k=_.QV();this.JSC$9912_streamzService=k;k.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Tx("channel_type"))};
PKW.prototype.increment=function(k){this.JSC$9912_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",k)};
var BdP=function(){var k=_.QV();this.JSC$9915_streamzService=k;k.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Tx("channel_type"))};
BdP.prototype.increment=function(k){this.JSC$9915_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",k)};
var Wj0=function(){var k=_.QV();this.JSC$9918_streamzService=k;k.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Tx("channel_type"))};
Wj0.prototype.increment=function(k){this.JSC$9918_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",k)};
var YfR=function(){var k=_.QV();this.JSC$9921_streamzService=k;k.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
YfR.prototype.increment=function(){this.JSC$9921_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var FjP=function(){var k=_.QV();this.JSC$9924_streamzService=k;k.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Tx("channel_type"),_.Tx("error_type"))};
FjP.prototype.increment=function(k,E){this.JSC$9924_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",k,E)};
var y03=function(){var k=_.QV();this.JSC$9927_streamzService=k;k.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
y03.prototype.increment=function(){this.JSC$9927_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var ohG=function(){var k=_.QV();this.JSC$9930_streamzService=k;k.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
ohG.prototype.increment=function(){this.JSC$9930_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var wNW=function(){var k=_.QV();this.JSC$9936_streamzService=k;k.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
wNW.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9782_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var AzT=function(k){return k.getCount&&typeof k.getCount=="function"?k.getCount():_.sj(k)||typeof k==="string"?k.length:_.fO.getCount(k)},rzA=function(k,E){if(typeof k.every=="function")return k.every(E,void 0);
if(_.sj(k)||typeof k==="string")return Array.prototype.every.call(k,E,void 0);for(var S=_.sH8(k),R=_.q4(k),V=R.length,N=0;N<V;N++)if(!E.call(void 0,R[N],S&&S[N],k))return!1;return!0},uaI=function(k,E,S,R){var V=new _.DZ(null);
k&&_.zA(V,k);E&&_.Q4(V,E);S&&_.OF(V,S);R&&_.GA(V,R);return V},xwW=function(){var k=_.zV&&_.w1(_.NcA,10)>=0,E;
if(E=_.Ahd)E=_.w1(_.VX2,10)>=0;var S=_.Cm&&_.w1(_.NcA,85)>=0;return _.ze||k||E||S},L0R=function(k){var E=_.oy8(k);
return E&&xwW()?-k.scrollLeft:E&&_.qT(k,"overflowX")!="visible"?k.scrollWidth-k.clientWidth-k.scrollLeft:k.scrollLeft},jVx=function(k,E){E=Math.max(E,0);
_.oy8(k)?xwW()?k.scrollLeft=-E:k.scrollLeft=k.scrollWidth-E-k.clientWidth:k.scrollLeft=E},wua=0,FiP=!1;
qH.prototype.set=function(k){this.relativeTimeStart_=k};
qH.prototype.reset=function(){this.set(_.ZO())};
qH.prototype.get=function(){return this.relativeTimeStart_};
var DwI=null,$wP=function(){DwI||(DwI=new qH)},fma=function(){DwI||(DwI=new qH)};
_.dy(fma,$wP);_.I=oTP.prototype;_.I.JSC$11352_buffer_="";_.I.set=function(k){this.JSC$11352_buffer_=""+k};
_.I.append=function(k,E,S){this.JSC$11352_buffer_+=String(k);if(E!=null)for(var R=1;R<arguments.length;R++)this.JSC$11352_buffer_+=arguments[R];return this};
_.I.clear=function(){this.JSC$11352_buffer_=""};
_.I.getLength=function(){return this.JSC$11352_buffer_.length};
_.I.toString=function(){return this.JSC$11352_buffer_};
var vHG=!1,AOY=function(k){_.Sh.call(this,k.message||k.description||k.name);this.isMissing=k instanceof zt;this.isTimeout=k instanceof _.pA&&k.errorCode=="net.timeout";this.isCanceled=k instanceof _.o3};
_.y(AOY,_.Sh);AOY.prototype.name="BiscottiError";var zt=function(){_.Sh.call(this,"Biscotti ID is missing from server")};
_.y(zt,_.Sh);zt.prototype.name="BiscottiMissingError";var QR=null,CrG=function(){try{var k=_.CV("yt.ads.biscotti.getId_");return k?k():JOA()}catch(E){return _.BM(E)}},btT=function(k,E){return _.zX({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:k,command:E}})},Zt0=function(k){return _.zX({type:"SET_GUIDE_IS_EXPANDED",
payload:k})},dwP=function(k){return _.zX({type:"SET_ONLINE_STATUS",
payload:k})},sV0=function(k,E){return _.zX({type:"SET_TRANSCRIPTION_STATE",
payload:{high:k,low:E}})},lmI=function(k){return _.zX({type:"SET_OVERLAY_STATE",
payload:k})},Mya=0,qIA=function(k,E,S){var R=this;
this.priority=E;this.delay=S;this.jobId=0;this.completionCallback=_.eu;this.wrappedJob=function(){k();R.completionCallback()};
this.id=++Mya};
qIA.prototype.enqueue=function(k){this.completionCallback=k;this.jobId=_.ZJ.addJob(this.wrappedJob,this.priority,this.delay)};
var PL=function(){_.Ct.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.y(PL,_.Ct);PL.prototype.addJob=function(k,E,S){k=new qIA(k,E,S);this.taskIdToTask.set(k.id,k);this.isActive?zpR(this,k):this.suspendedTasks.add(k);return k.id};
var zpR=function(k,E){k.scheduledTasks.add(E);E.enqueue(function(){k.scheduledTasks.delete(E)})};
PL.prototype.cancelJob=function(k){(k=this.taskIdToTask.get(k))&&(this.scheduledTasks.delete(k)?_.ZJ.cancelJob(k.jobId):this.suspendedTasks.delete(k))};
PL.prototype.pause=function(){var k=this;this.isActive=!1;this.scheduledTasks.forEach(function(E){_.ZJ.cancelJob(E.jobId);k.suspendedTasks.add(E)});
this.scheduledTasks.clear()};
PL.prototype.start=function(){var k=this;this.isActive=!0;this.suspendedTasks.forEach(function(E){zpR(k,E)});
this.suspendedTasks.clear()};
PL.prototype.reset=function(){this.scheduledTasks.forEach(function(k){_.ZJ.cancelJob(k.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var BL=function(k,E){this.JSC$13202_networkService_=k;this.pageRequestPromise=E};
BL.prototype.fetchData=function(k){QV3(this,this.JSC$13202_networkService_.fetchData(k))};
BL.prototype.postData=function(k,E){QV3(this,this.JSC$13202_networkService_.postData(k,E))};
BL.prototype.requestDataForServiceEndpoint=function(k,E){QV3(this,this.JSC$13202_networkService_.requestDataForServiceEndpoint(k,E))};
var QV3=function(k,E){E.then(k.pageRequestPromise.onSuccess,k.pageRequestPromise.onFailure,k.pageRequestPromise)};
BL.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var YS=function(k){this.buildNetworkRequest_=k;this.pendingRequests_=new Set};
YS.prototype.reset=function(){this.pendingRequests_.forEach(function(k){k.cancel()});
this.pendingRequests_.clear()};
YS.prototype.fetchData=function(k){var E=Ot2(this);E.fetchData(k);return E.pageRequestPromise};
YS.prototype.postData=function(k,E){var S=Ot2(this);S.postData(k,E);return S.pageRequestPromise};
YS.prototype.requestDataForServiceEndpoint=function(k,E){var S=Ot2(this);S.requestDataForServiceEndpoint(k,E);return S.pageRequestPromise};
var Ot2=function(k){var E=k.buildNetworkRequest_();k.pendingRequests_.add(E);var S=function(){k.pendingRequests_.delete(E)};
E.pageRequestPromise.then(S,S);return E},G_U=function(k){var E=new PL;
this.JSC$13209_networkService_=k;this.JSC$13209_taskManager_=E;this.JSC$13209_networkManager_=new YS(this.networkRequestFactory_.bind(this))};
_.I=G_U.prototype;_.I.networkRequestFactory_=function(){return new BL(this.JSC$13209_networkService_,new _.wj(this.JSC$13209_taskManager_))};
_.I.reset=function(){this.JSC$13209_taskManager_.reset();this.JSC$13209_networkManager_.reset()};
_.I.start=function(){this.JSC$13209_taskManager_.start()};
_.I.pause=function(){this.JSC$13209_taskManager_.pause()};
_.I.getTaskManager=function(){return this.JSC$13209_taskManager_};
_.I.getNetworkManager=function(){return this.JSC$13209_networkManager_};
var Zv3=null,lkW=[],O$=0,CA=0,Gt=null,CdP=!1,kc=null,q_W=void 0,SJ=function(k){this.token=k};
SJ.getInstance=function(){var k;return _.c(function(E){if(E.nextAddress==1)return E.yield(_.cV(),2);k=E.yieldResult;if(!k)return E.return();SJ.instance||(SJ.instance=new SJ(k));return E.return(SJ.instance)})};
var SkP=function(k){var E;return _.c(function(S){if(S.nextAddress==1)return S.yield(Clx(k.token),2);E=S.yieldResult;return S.return(E.clear("resource-manifest-assets"))})},EH=function(k){this.token=k};
EH.getInstance=function(){var k;return _.c(function(E){if(E.nextAddress==1)return E.yield(_.cV(),2);k=E.yieldResult;if(!k)return E.return();EH.instance||(EH.instance=new EH(k));return E.return(EH.instance)})};
var kTG=function(k){var E;return _.c(function(S){if(S.nextAddress==1)return S.yield(Clx(k.token),2);E=S.yieldResult;return S.yield(E.clear("auth"),0)})},FR2=!1,kkA=function(k){_.Sh.call(this,k)};
_.y(kkA,_.jk8);var JQx=function(){var k=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return k?parseInt(k[1],10):0},EtP=function(k){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+k)!=-1||document.currentScript.src.indexOf("&"+k)!=-1)},S0A=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},tjI=function(k){k.length?RCI(k.shift(),function(){tjI(k)}):mhA()},wZt=function(k){return"chrome-extension://"+k+"/cast_sender.js"},RCI=function(k,
E,S){var R=document.createElement("script");
R.onerror=E;S&&(R.onload=S);_.Ib(R,_.Lu(k));(document.head||document.documentElement).appendChild(R)},V7T=function(){var k=JQx(),E=[];
if(k>1){var S=k-1;E.push("//www.gstatic.com/eureka/clank/"+k+"/cast_sender.js");E.push("//www.gstatic.com/eureka/clank/"+S+"/cast_sender.js")}return E},mhA=function(){var k=S0A();
k&&k(!1,"No cast extension found")},aI0=function(){if(NSY){var k=2,E=S0A(),S=function(){k--;
k==0&&E&&E(!0)};
window.__onGCastApiAvailable=S;RCI("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",mhA,S)}},cQ3=function(){aI0();
var k=V7T();k.push("//www.gstatic.com/eureka/clank/cast_sender.js");tjI(k)},eBP=function(){aI0();
var k=V7T();k.push.apply(k,_.$e(TEW.map(wZt)));k.push("//www.gstatic.com/eureka/clank/cast_sender.js");tjI(k)},NSY=EtP("loadCastFramework")||EtP("loadCastApplicationFramework"),TEW=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var IyA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(IyA,_.iu);var ntW=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(ntW,_.iu);var iY0=function(){var k=new ntW;return _.WS(k,1,3)};var WL=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(WL,_.iu);var Jba=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Jba,_.iu);var hCa=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(hCa,_.iu);hCa.prototype.getToken=function(){return _.t2(this,1)};
hCa.prototype.setToken=function(k){return _.K9(this,1,k)};
var iUP=function(k){return _.OA(k,3,_.F3,_.mb())},h8Y=function(k){return _.OA(k,6,_.F3,_.mb())};var Fi=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Fi,_.iu);Fi.prototype.getToken=function(){return _.Tp(this,hCa,2)};
Fi.prototype.setToken=function(k){return _.Xo(this,2,k)};
Fi.prototype.getName=function(){return _.t2(this,6)};
var JfG=_.WU(Fi);var cft=function(k,E,S){this.requestMessage=k;this.methodDescriptor=E;this.metadata=S};
cft.prototype.getMetadata=function(){return this.metadata};var mNU=function(k,E){E=E===void 0?{}:E;this.responseMessage=k;this.metadata=E;this.status=null};
mNU.prototype.getMetadata=function(){return this.metadata};
mNU.prototype.getStatus=function(){return this.status};var yc=function(k,E,S,R,V){this.name=k;this.methodType="unary";this.requestType=E;this.responseType=S;this.requestSerializeFn=R;this.responseDeserializeFn=V},eCI=function(k,E,S){S=S===void 0?{}:S;
return new cft(E,k,S)};
yc.prototype.getName=function(){return this.name};var o6=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(o6,_.iu);o6.prototype.getHeader=function(){return _.Tp(this,WL,1)};
o6.prototype.setHeader=function(k){return _.Xo(this,1,k)};
o6.prototype.hasHeader=function(){return _.Vk(this,WL,1)};var ay0=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(ay0,_.iu);var t7T=new yc("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",o6,ay0,function(k){return k.serialize()},_.WU(ay0));var Xi=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Xi,_.iu);Xi.prototype.getHeader=function(){return _.Tp(this,WL,1)};
Xi.prototype.setHeader=function(k){return _.Xo(this,1,k)};
Xi.prototype.hasHeader=function(){return _.Vk(this,WL,1)};var TSA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(TSA,_.iu);var wgY=new yc("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Xi,TSA,function(k){return k.serialize()},_.WU(TSA));var gz=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(gz,_.iu);gz.prototype.getHeader=function(){return _.Tp(this,WL,1)};
gz.prototype.setHeader=function(k){return _.Xo(this,1,k)};
gz.prototype.hasHeader=function(){return _.Vk(this,WL,1)};var P5a=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(P5a,_.iu);P5a.prototype.getLink=function(){return _.Tp(this,Fi,1)};var BSx=new yc("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",gz,P5a,function(k){return k.serialize()},_.WU(P5a));var UG=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(UG,_.iu);UG.prototype.getHeader=function(){return _.Tp(this,WL,1)};
UG.prototype.setHeader=function(k){return _.Xo(this,1,k)};
UG.prototype.hasHeader=function(){return _.Vk(this,WL,1)};var Y0I=new yc("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",UG,Fi,function(k){return k.serialize()},JfG);var Wr3=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Wr3,_.iu);var FrY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(FrY,_.iu);FrY.prototype.getUrl=function(){return _.t2(this,2)};
FrY.prototype.setUrl=function(k){return _.K9(this,2,k)};var yfP=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(yfP,_.iu);var otP=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(otP,_.iu);var Xg3=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Xg3,_.iu);var Wu0=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Wu0,_.iu);var Y3t=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Y3t,_.iu);var gtP=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(gtP,_.iu);var HUR=_.WU(gtP);var UN3=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(UN3,_.iu);var HYa=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(HYa,_.iu);_.I=HYa.prototype;_.I.getHeader=function(){return _.Tp(this,WL,1)};
_.I.setHeader=function(k){return _.Xo(this,1,k)};
_.I.hasHeader=function(){return _.Vk(this,WL,1)};
_.I.getCompletionUrl=function(){return _.t2(this,6)};
_.I.getDeviceId=function(){return _.t2(this,11)};var KrG=new yc("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",HYa,gtP,function(k){return k.serialize()},HUR);var pgt=new Set(["SAPISIDHASH","APISIDHASH"]);var AfT=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(AfT,_.iu);AfT.prototype.getMessage=function(){return _.t2(this,2)};
var rfa=_.WU(AfT);var xNP=function(k,E){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=k.nodeReadableStream;this.grpcResponseDeserializeFn=E;this.xhr=k.xhr;this.xhrNodeReadableStream&&uGG(this)},vtt=function(k,E){var S=new Lrx;
_.wX(k.xhr,"complete",function(){if(k.xhr.isSuccess()){var R=k.xhr.getResponseText();var V;if(V=E)V=k.xhr,V.JSC$9791_xhr_&&V.isComplete()?(V=V.JSC$9791_xhr_.getResponseHeader("Content-Type"),V=V===null?void 0:V):V=void 0,V=V==="text/plain";if(V){if(!atob)throw Error("ek");R=atob(R)}try{var N=k.grpcResponseDeserializeFn(R)}catch(J){HL(k,zZP(new _.y4(13,"Error when deserializing response data; error: "+J+(", response: "+R)),S));return}R=_.c3m(k.xhr.getStatus());jKx(k,DNx(k));R===0?$NP(k,N):HL(k,zZP(new _.y4(R,
"Xhr succeeded but the status code is not 200"),S))}else{R=k.xhr.getResponseText();N=DNx(k);if(R){var h=fyI(k,R);R=h.code;V=h.details;h=h.metadata}else R=2,V="Rpc failed due to xhr error. uri: "+String(k.xhr.JSC$9791_lastUri_)+", error code: "+(k.xhr.JSC$9791_lastErrorCode_+", error: ")+k.xhr.getLastError(),h=N;jKx(k,N);HL(k,zZP(new _.y4(R,V,h),S))}})},uGG=function(k){k.xhrNodeReadableStream.on("data",function(E){if("1"in E){var S=E["1"];
try{var R=k.grpcResponseDeserializeFn(S)}catch(V){HL(k,new _.y4(13,"Error when deserializing response data; error: "+V+(", response: "+S)))}R&&$NP(k,R)}if("2"in E)for(E=fyI(k,E["2"]),S=0;S<k.onStatusCallbacks.length;S++)k.onStatusCallbacks[S](E)});
k.xhrNodeReadableStream.on("end",function(){jKx(k,DNx(k));for(var E=0;E<k.onEndCallbacks.length;E++)k.onEndCallbacks[E]()});
k.xhrNodeReadableStream.on("error",function(){if(k.onErrorCallbacks.length!==0){var E=k.xhr.JSC$9791_lastErrorCode_;E!==0||k.xhr.isSuccess()||(E=6);var S=-1;switch(E){case 0:var R=2;break;case 7:R=10;break;case 8:R=4;break;case 6:S=k.xhr.getStatus();R=_.c3m(S);break;default:R=14}jKx(k,DNx(k));E=_.FN4(E)+", error: "+k.xhr.getLastError();S!==-1&&(E+=", http status code: "+S);HL(k,new _.y4(R,E))}})},DNx=function(k){var E={},S=$MG(k.xhr);
Object.keys(S).forEach(function(R){E[R]=S[R]});
return E},fyI=function(k,E){var S=2,R={};
try{var V=rfa(E);S=_.eo(V,1);var N=V.getMessage();_.cy(V,pY0,3,_.mb()).length&&(R["grpc-web-status-details-bin"]=E)}catch(h){k.xhr&&k.xhr.getStatus()===404?(S=5,N="Not Found: "+String(k.xhr.JSC$9791_lastUri_)):(S=14,N="Unable to parse RpcStatus: "+h)}return{code:S,details:N,metadata:R}};
xNP.prototype.on=function(k,E){k==="data"?this.onDataCallbacks.push(E):k==="metadata"?this.onMetadataCallbacks.push(E):k==="status"?this.onStatusCallbacks.push(E):k==="end"?this.onEndCallbacks.push(E):k==="error"&&this.onErrorCallbacks.push(E);return this};
var Ki=function(k,E){E=k.indexOf(E);E>-1&&k.splice(E,1)};
xNP.prototype.removeListener=function(k,E){k==="data"?Ki(this.onDataCallbacks,E):k==="metadata"?Ki(this.onMetadataCallbacks,E):k==="status"?Ki(this.onStatusCallbacks,E):k==="end"?Ki(this.onEndCallbacks,E):k==="error"&&Ki(this.onErrorCallbacks,E);return this};
xNP.prototype.cancel=function(){this.xhr.abort()};
var $NP=function(k,E){for(var S=0;S<k.onDataCallbacks.length;S++)k.onDataCallbacks[S](E)},jKx=function(k,E){for(var S=0;S<k.onMetadataCallbacks.length;S++)k.onMetadataCallbacks[S](E)},HL=function(k,E){for(var S=0;S<k.onErrorCallbacks.length;S++)k.onErrorCallbacks[S](E)},Lrx=function(){var k=Error.call(this);
this.message=k.message;"stack"in k&&(this.stack=k.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.y(Lrx,Error);var pi=function(k){this.JSC$19556_worker_=k.worker||null;this.JSC$19556_streamBinaryChunks_=k.streamBinaryChunks||!1;this.JSC$19556_credentialsMode_=void 0};
_.dy(pi,_.eIl);pi.prototype.createInstance=function(){var k=new Al(this.JSC$19556_worker_,this.JSC$19556_streamBinaryChunks_);this.JSC$19556_credentialsMode_&&k.setCredentialsMode(this.JSC$19556_credentialsMode_);return k};
pi.prototype.setCredentialsMode=function(k){this.JSC$19556_credentialsMode_=k};
var Al=function(k,E){_.wG.call(this);this.JSC$19560_worker_=k;this.JSC$19560_streamBinaryChunks_=E;this.JSC$19560_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$19560_responseHeaders_=null;this.JSC$19560_method_="GET";this.JSC$19560_url_="";this.inProgress_=!1;this.JSC$19560_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.dy(Al,_.wG);Al.prototype.open=function(k,E){if(this.readyState!=0)throw this.abort(),Error("fk");this.JSC$19560_method_=k;this.JSC$19560_url_=E;this.readyState=1;rz(this)};
Al.prototype.send=function(k){if(this.readyState!=1)throw this.abort(),Error("gk");if(this.abortController_.signal.aborted)throw this.abort(),Error("hk");this.inProgress_=!0;var E={headers:this.requestHeaders_,method:this.JSC$19560_method_,credentials:this.JSC$19560_credentialsMode_,cache:void 0,signal:this.abortController_.signal};k&&(E.body=k);(this.JSC$19560_worker_||_.Vt).fetch(new Request(this.JSC$19560_url_,E)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
Al.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort("Request was aborted.");this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,un(this));this.readyState=0};
Al.prototype.handleResponse_=function(k){if(this.inProgress_&&(this.fetchResponse_=k,this.JSC$19560_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19560_responseHeaders_=k.headers,this.readyState=2,rz(this)),this.inProgress_&&(this.readyState=3,rz(this),this.inProgress_)))if(this.responseType==="arraybuffer")k.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Vt.ReadableStream!==
"undefined"&&"body"in k){this.currentReader_=k.body.getReader();if(this.JSC$19560_streamBinaryChunks_){if(this.responseType)throw Error("ik");this.response=[]}else this.response=this.responseText="",this.JSC$19560_textDecoder_=new TextDecoder;bYU(this)}else k.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var bYU=function(k){k.currentReader_.read().then(k.handleDataFromStream_.bind(k)).catch(k.handleSendFailure_.bind(k))};
Al.prototype.handleDataFromStream_=function(k){if(this.inProgress_){if(this.JSC$19560_streamBinaryChunks_&&k.value)this.response.push(k.value);else if(!this.JSC$19560_streamBinaryChunks_){var E=k.value?k.value:new Uint8Array(0);if(E=this.JSC$19560_textDecoder_.decode(E,{stream:!k.done}))this.response=this.responseText+=E}k.done?un(this):rz(this);this.readyState==3&&bYU(this)}};
Al.prototype.handleResponseText_=function(k){this.inProgress_&&(this.response=this.responseText=k,un(this))};
Al.prototype.handleResponseArrayBuffer_=function(k){this.inProgress_&&(this.response=k,un(this))};
Al.prototype.handleSendFailure_=function(){this.inProgress_&&un(this)};
var un=function(k){k.readyState=4;k.fetchResponse_=null;k.currentReader_=null;k.JSC$19560_textDecoder_=null;rz(k)};
Al.prototype.setRequestHeader=function(k,E){this.requestHeaders_.append(k,E)};
Al.prototype.getResponseHeader=function(k){return this.JSC$19560_responseHeaders_?this.JSC$19560_responseHeaders_.get(k.toLowerCase())||"":""};
Al.prototype.getAllResponseHeaders=function(){if(!this.JSC$19560_responseHeaders_)return"";for(var k=[],E=this.JSC$19560_responseHeaders_.entries(),S=E.next();!S.done;)S=S.value,k.push(S[0]+": "+S[1]),S=E.next();return k.join("\r\n")};
Al.prototype.setCredentialsMode=function(k){this.JSC$19560_credentialsMode_=k};
var rz=function(k){k.onreadystatechange&&k.onreadystatechange.call(k)};
Object.defineProperty(Al.prototype,"withCredentials",{get:function(){return this.JSC$19560_credentialsMode_==="include"},
set:function(k){this.setCredentialsMode(k?"include":"same-origin")}});var ZYt=function(k){var E="";_.fO.forEach(k,function(S,R){E+=R;E+=":";E+=S;E+="\r\n"});
return E},dN3=function(k,E,S){if(_.fO.isEmpty(S))return k;
S=ZYt(S);if(typeof k==="string")return _.ju(k,_.Eg(E),S);_.kO(k,E,S);return k};var sKR=function(){this.isInputValid_=!0;this.JSC$19566_streamPos_=0;this.leftoverInput_=""};
sKR.prototype.isInputValid=function(){return this.isInputValid_};
sKR.prototype.decode=function(k){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("jk`"+this.JSC$19566_streamPos_+"`stream already broken`"+k);this.leftoverInput_+=k;k=Math.floor(this.leftoverInput_.length/4);if(k==0)return null;try{var E=_.rkt(this.leftoverInput_.slice(0,k*4))}catch(S){throw E=this.leftoverInput_,k=S.message,this.isInputValid_=!1,Error("jk`"+this.JSC$19566_streamPos_+"`"+k+"`"+E);}this.JSC$19566_streamPos_+=k*4;this.leftoverInput_=this.leftoverInput_.slice(k*4);return E};var NK=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19569_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
NK.prototype.isInputValid=function(){return this.state_!=3};
var xS=function(k,E,S,R){k.state_=3;k.errorMessage_="The stream is broken @"+k.JSC$19569_streamPos_+"/"+S+". Error: "+R+". With input:\n"+E;throw Error(k.errorMessage_);};
NK.prototype.acceptsBinaryInput=function(){return!0};
NK.prototype.parse=function(k){function E(m){m&128&&xS(N,h,J,"invalid tag");(m&7)!=2&&xS(N,h,J,"invalid wire type");N.tag_=m>>>3;N.tag_!=1&&N.tag_!=2&&N.tag_!=15&&xS(N,h,J,"unexpected tag");N.state_=1;N.length_=0;N.countLengthBytes_=0}
function S(m){N.countLengthBytes_++;N.countLengthBytes_==5&&m&240&&xS(N,h,J,"message length too long");N.length_|=(m&127)<<(N.countLengthBytes_-1)*7;m&128||(N.state_=2,N.countMessageBytes_=0,typeof Uint8Array!=="undefined"?N.messageBuffer_=new Uint8Array(N.length_):N.messageBuffer_=Array(N.length_),N.length_==0&&V())}
function R(m){N.messageBuffer_[N.countMessageBytes_++]=m;N.countMessageBytes_==N.length_&&V()}
function V(){if(N.tag_<15){var m={};m[N.tag_]=N.messageBuffer_;N.result_.push(m)}N.state_=0}
for(var N=this,h=k instanceof Array?k:new Uint8Array(k),J=0;J<h.length;){switch(N.state_){case 3:xS(N,h,J,"stream already broken");break;case 0:E(h[J]);break;case 1:S(h[J]);break;case 2:R(h[J]);break;default:throw Error("kk`"+N.state_);}N.JSC$19569_streamPos_++;J++}k=N.result_;N.result_=[];return k.length>0?k:null};var OhU=function(){this.errorMessage_=null;this.JSC$19572_streamPos_=0;this.base64Decoder_=new sKR;this.pbParser_=new NK};
OhU.prototype.isInputValid=function(){return this.errorMessage_===null};
var lyW=function(k,E,S){k.errorMessage_="The stream is broken @"+k.JSC$19572_streamPos_+". Error: "+S+". With input:\n"+E;throw Error(k.errorMessage_);};
OhU.prototype.acceptsBinaryInput=function(){return!1};
OhU.prototype.parse=function(k){this.errorMessage_!==null&&lyW(this,k,"stream already broken");var E=null;try{var S=this.base64Decoder_.decode(k);E=S===null?null:this.pbParser_.parse(S)}catch(R){lyW(this,k,R.message)}this.JSC$19572_streamPos_+=k.length;return E};var QvR=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19575_streamPos_=0;this.result_=[];this.statusParsed_=!1};
QvR.prototype.isInputValid=function(){return this.errorMessage_===null};
QvR.prototype.acceptsBinaryInput=function(){return!1};
QvR.prototype.parse=function(k){function E(m){N.state_=6;N.errorMessage_="The stream is broken @"+N.JSC$19575_streamPos_+"/"+h+". Error: "+m+". With input:\n";throw Error(N.errorMessage_);}
function S(){N.jsonStreamParser_=new _.V7({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function R(m){if(m)for(var a=0;a<m.length;a++){var T={};T[1]=m[a];N.result_.push(T)}}
function V(m){if(m){(N.statusParsed_||m.length>1)&&E("extra status: "+m);N.statusParsed_=!0;var a={};a[2]=m[0];N.result_.push(a)}}
for(var N=this,h=0;h<k.length;){var J;if(J=N.state_!==2){a:{for(;h<k.length;){if(!_.Ro(k[h])){J=!0;break a}h++;N.JSC$19575_streamPos_++}J=!1}J=!J}if(J)return null;switch(N.state_){case 6:E("stream already broken");break;case 0:k[h]==="["?(N.state_=1,h++,N.JSC$19575_streamPos_++):E("unexpected input token");break;case 1:k[h]==="["?(N.state_=2,S()):k[h]===","||k.slice(h,h+5)=="null,"?N.state_=3:k[h]==="]"?(N.state_=5,h++,N.JSC$19575_streamPos_++):E("unexpected input token");break;case 2:J=N.jsonStreamParser_.parse(k.substring(h));
R(J);N.jsonStreamParser_.done()?(N.state_=3,J=N.jsonStreamParser_.JSC$11479_buffer_,N.JSC$19575_streamPos_+=k.length-h-J.length,k=J,h=0):(N.JSC$19575_streamPos_+=k.length-h,h=k.length);break;case 3:k[h]===","||k.slice(h,h+5)=="null,"?(N.state_=4,S(),N.jsonStreamParser_.parse("["),h+=k[h]===","?1:5,N.JSC$19575_streamPos_++):k[h]==="]"&&(N.state_=5,h++,N.JSC$19575_streamPos_++);break;case 4:J=N.jsonStreamParser_.parse(k.substring(h));V(J);N.jsonStreamParser_.done()?(N.state_=5,J=N.jsonStreamParser_.JSC$11479_buffer_,
N.JSC$19575_streamPos_+=k.length-h-J.length,k=J,h=0):(N.JSC$19575_streamPos_+=k.length-h,h=k.length);break;case 5:E("extra input after stream end")}}return N.result_.length>0?(k=N.result_,N.result_=[],k):null};var M7P=function(k){this.JSC$19578_xhr_=k;this.JSC$19578_parser_=null;this.status_=this.JSC$19578_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19578_textDecoder_=null;this.JSC$19578_eventHandler_=new _.Bk(this);this.JSC$19578_eventHandler_.listen(this.JSC$19578_xhr_,"readystatechange",this.JSC$19580_readyStateChangeHandler_)},Li=function(k,E){k.status_!=E&&(k.status_=E,k.statusHandler_&&k.statusHandler_())},jZ=function(k){k.JSC$19578_eventHandler_.removeAll();
if(k.JSC$19578_xhr_){var E=k.JSC$19578_xhr_;k.JSC$19578_xhr_=null;E.abort();E.dispose()}};
M7P.prototype.getStatus=function(){return this.status_};
M7P.prototype.JSC$19580_readyStateChangeHandler_=function(k){k=k.target;try{if(k==this.JSC$19578_xhr_)a:{var E=_.gG(this.JSC$19578_xhr_),S=this.JSC$19578_xhr_.JSC$9791_lastErrorCode_,R=this.JSC$19578_xhr_.getStatus(),V=this.JSC$19578_xhr_.getResponseText();k=[];if(this.JSC$19578_xhr_.getResponse()instanceof Array){var N=this.JSC$19578_xhr_.getResponse();N.length>0&&N[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,k=N)}if(!(E<3||E==3&&!V&&k.length==0))if(R=R==200||R==206,E==4&&(S==8?Li(this,
7):S==7?Li(this,8):R||Li(this,3)),this.JSC$19578_parser_||(this.JSC$19578_parser_=GTT(this.JSC$19578_xhr_),this.JSC$19578_parser_==null&&Li(this,5)),this.status_>2)jZ(this);else{if(k.length>this.JSC$19578_pos_){var h=k.length;S=[];try{if(this.JSC$19578_parser_.acceptsBinaryInput())for(var J=0;J<h;J++){var m=this.JSC$19578_parser_.parse(Array.from(k[J]));m&&(S=S.concat(m))}else{m="";if(!this.JSC$19578_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("lk");this.JSC$19578_textDecoder_=new TextDecoder}for(J=
0;J<h;J++)m+=this.JSC$19578_textDecoder_.decode(k[J],{stream:E==4&&J==h-1});S=this.JSC$19578_parser_.parse(m)}k.splice(0,h);S&&this.dataHandler_(S)}catch(T){Li(this,5);jZ(this);break a}}else if(V.length>this.JSC$19578_pos_){J=V.slice(this.JSC$19578_pos_);this.JSC$19578_pos_=V.length;try{var a=this.JSC$19578_parser_.parse(J);a!=null&&this.dataHandler_&&this.dataHandler_(a)}catch(T){Li(this,5);jZ(this);break a}}E==4?(V.length!=0||this.hasStreamingResponseData_?Li(this,2):Li(this,4),jZ(this)):Li(this,
1)}}}catch(T){Li(this,6),jZ(this)}};var q0G=function(k){k=this.xhrReader_=k;var E=(0,_.uk)(this.onData_,this);k.dataHandler_=E;k=this.xhrReader_;E=(0,_.uk)(this.onStatusChange_,this);k.statusHandler_=E;this.JSC$19582_callbackMap_={};this.callbackOnceMap_={}};
_.I=q0G.prototype;_.I.on=function(k,E){var S=this.JSC$19582_callbackMap_[k];S||(S=[],this.JSC$19582_callbackMap_[k]=S);S.push(E);return this};
_.I.addListener=function(k,E){this.on(k,E);return this};
_.I.removeListener=function(k,E){var S=this.JSC$19582_callbackMap_[k];S&&_.ZR(S,E);(k=this.callbackOnceMap_[k])&&_.ZR(k,E);return this};
_.I.once=function(k,E){var S=this.callbackOnceMap_[k];S||(S=[],this.callbackOnceMap_[k]=S);S.push(E);return this};
_.I.onData_=function(k){var E=this.JSC$19582_callbackMap_.data;E&&zCA(k,E);(E=this.callbackOnceMap_.data)&&zCA(k,E);this.callbackOnceMap_.data=[]};
var zCA=function(k,E){for(var S={},R=0;R<k.length;S={message$jscomp$1008:void 0},R++)S.message$jscomp$1008=k[R],E.forEach(function(V){return function(N){try{N(V.message$jscomp$1008)}catch(h){}}}(S))};
q0G.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:QKa(this,"readable");break;case 5:case 6:case 4:case 7:case 3:QKa(this,"error");break;case 8:QKa(this,"close");break;case 2:QKa(this,"end")}};
var QKa=function(k,E){var S=k.JSC$19582_callbackMap_[E];S&&S.forEach(function(R){try{R()}catch(V){}});
(S=k.callbackOnceMap_[E])&&S.forEach(function(R){R()});
k.callbackOnceMap_[E]=[]};var OYP=function(){var k={format:"jspb"};k=k===void 0?{}:k;this.suppressCorsPreflight=k.suppressCorsPreflight||_.CV("suppressCorsPreflight",k)||!1;this.withCredentials=k.withCredentials||_.CV("withCredentials",k)||!1;this.streamInterceptors=k.streamInterceptors||[];this.unaryInterceptors=k.unaryInterceptors||[];this.workerScope=k.workerScope;this.chunkedServerStreaming=k.useFetchDownloadStreams||!1},kzR=function(k,E,S,R,V,N){N=N===void 0?{}:N;
var h=E.substring(0,E.length-V.name.length),J,m=(J=N)==null?void 0:J.signal;return Gk2(function(a){return new Promise(function(T,w){if(m==null?0:m.aborted){var P=new _.y4(1,"Aborted");P.cause=m.reason;w(P)}else{var B={},F=C5U(k,a,h);F.on("error",function(K){return void w(K)});
F.on("metadata",function(K){B=K});
F.on("data",function(K){var r=B;r=r===void 0?{}:r;T(new mNU(K,r))});
m&&m.addEventListener("abort",function(){F.cancel();var K=new _.y4(1,"Aborted");K.cause=m.reason;w(K)})}})},k.unaryInterceptors).call(k,eCI(V,S,R)).then(function(a){return a.responseMessage})},Du=function(k,E,S,R,V,N){N=N===void 0?{}:N;
return kzR(k,E,S,R,V,N)};
OYP.prototype.serverStreaming=function(k,E,S,R){var V=this,N=k.substring(0,k.length-R.name.length);return ExR(function(h){var J=h.methodDescriptor,m=h.getMetadata(),a=SDT(V,!1);m=RrR(V,m,a,N+J.getName());var T=VG3(a,J.responseDeserializeFn,!0);h=J.requestSerializeFn(h.requestMessage);a.send(m,"POST",h);return T},this.streamInterceptors).call(this,eCI(R,E,S))};
var C5U=function(k,E,S){var R=E.methodDescriptor,V=E.getMetadata(),N=SDT(k,!0);k=RrR(k,V,N,S+R.getName());S=VG3(N,R.responseDeserializeFn,!1);vtt(S,V["X-Goog-Encode-Response-If-Executable"]==="base64");E=R.requestSerializeFn(E.requestMessage);N.send(k,"POST",E);return S},SDT=function(k,E){E=k.chunkedServerStreaming&&!E;
return k.workerScope||E?new _.Xc(new pi({worker:k.workerScope,streamBinaryChunks:E})):new _.Xc},RrR=function(k,E,S,R){E["Content-Type"]="application/json+protobuf";
E["X-User-Agent"]="grpc-web-javascript/0.1";var V=E.Authorization;if(V&&pgt.has(V.split(" ")[0])||k.withCredentials)S.JSC$9791_withCredentials_=!0;if(k.suppressCorsPreflight)R=dN3(R,"$httpHeaders",E);else for(k=_.n(Object.keys(E)),V=k.next();!V.done;V=k.next())V=V.value,S.headers.set(V,E[V]);return R},VG3=function(k,E,S){if(S){S=new M7P(k);
var R=new q0G(S)}return new xNP({xhr:k,nodeReadableStream:R},E)},ExR=function(k,E){return E.reduce(function(S,R){return function(V){return R.intercept(V,S)}},k)},Gk2=function(k,E){return E.reduce(function(S,R){return function(V){return R.intercept(V,S)}},k)};var Nhx=function(k){this.client_=new OYP;this.hostname_=k==void 0?k:k.replace(/\/+$/,"")};
_.I=Nhx.prototype;_.I.JSC$19600_depositGoogleCredential=function(k,E,S){return Du(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",k,E||{},wgY,S)};
_.I.deleteLink=function(k,E,S){return Du(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",k,E||{},t7T,S)};
_.I.JSC$19600_finishOAuth=function(k,E,S){return Du(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",k,E||{},BSx,S)};
_.I.getLink=function(k,E,S){return Du(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",k,E||{},Y0I,S)};
_.I.startLinkingSession=function(k,E,S){return Du(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",k,E||{},KrG,S)};var IqP=[0,_.LL,1,XY3,[0,_.vS,[0,_.$7,-1]],[0,oH0],[0,_.lT,-1]];var nx2=function(){this.storage=new Map},hrW=function(k,E,S,R,V){if(!k.storage.has(E))return null;
k=_.n(k.storage.get(E));for(E=k.next();!E.done;E=k.next())if(E=E.value,!V||E.linkName===V)if(S&&E.scopes&&iFI(E.scopes,S)||R&&E.capabilities&&iFI(E.capabilities,R))return E;return null},JHU=function(k,E,S){if(!S)k.storage.delete(E);
else if(k.storage.has(E)){var R=k.storage.get(E).filter(function(V){return V.linkName!==S});
R.length>0?k.storage.set(E,R):k.storage.delete(E)}},iFI=function(k,E){E=_.n(E);
for(var S=E.next();!S.done;S=E.next())if(!k.has(S.value))return!1;return!0};var cHP=function(){var k=_.Mg("LINK_GAL_DOMAIN");this.alsDomain1p=_.Mg("LINK_GAL_DOMAIN");this.alsDomain3p=k;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},m7t=function(k,E){k.apiKey=E;
return k};
cHP.prototype.build=function(){var k={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("mk");k.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("nk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("ok");k.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(k.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)k.apiKey=
this.apiKey,k.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("pk");k.oauthToken=this.oauthToken;k.alsDomain=this.alsDomain3p}k.clientXd3=this.clientXd3;k.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(k.authUser=this.authUser);this.bucket!==void 0&&(k.bucket=this.bucket);this.completionUrl!==void 0&&(k.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(k.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(k.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(k.locale=this.locale);k.loggerType=this.loggerType;k.clientEnvironment=this.clientEnvironment;k.colorScheme=this.colorScheme;k.showCloseOption=this.showCloseOption;return k};var IU=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(IU,_.iu);var erx=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(erx,_.iu);var aqW=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(aqW,_.iu);var iS=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(iS,_.iu);var tGP=function(k){return _.Tn(k,1)};var ThR=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(ThR,_.iu);var NbG=_.WU(ThR),np=[1,2,3,4,5];var Evt=function(k){try{return NbG(k)}catch(E){return null}},wD2=function(){},S3x=function(k,E){switch(_.iT(E,np)){case 4:return(E=_.BS(E,aqW,4,np))&&k.logStateTransition(_.Tn(E,1)),!0;
case 5:return(E=_.BS(E,erx,5,np))&&k.logInternalEvent(_.Tn(E,1)),!0}return!1},ID3=function(k){switch(k){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.s5(k)}};var CYR=function(k,E){var S=this;this.validator=k;this.messageListener=E;this.dismissCallback=function(){PGa(S,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19629_receiveMessage=function(R){R.type==="message"&&(R=R.event_,R!==null&&(new URL(S.iframe.src)).origin===R.origin&&S.validator(R.data,R.origin)&&!S.messageListener(R.data)&&(S.JSC$19629_resolveCb!==void 0&&S.JSC$19629_resolveCb(R.data),Bh3(S)))}},VQ0=function(k,E,S){k.uiHandler!==void 0&&PGa(k,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(R,V){k.JSC$19629_resolveCb=R;k.JSC$19629_rejectCb=V;k.iframe=document.createElement("iframe");_.GB(k.iframe,E);k.uiHandler=S.displayContent(k.iframe,k.dismissCallback);_.wX(window,"message",k.JSC$19629_receiveMessage,!1,k)})},PGa=function(k,E){k.JSC$19629_rejectCb!==void 0&&k.JSC$19629_rejectCb(E);
Bh3(k)},Bh3=function(k){k.uiHandler!==void 0&&k.uiHandler.hideContent();
_.TA(window,"message",k.JSC$19629_receiveMessage,!1,k);k.JSC$19629_resolveCb=void 0;k.JSC$19629_rejectCb=void 0;k.uiHandler=void 0;k.iframe=void 0};var YD0=function(k){if(k===2){var E;k=((E=window)==null?0:E.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return k},R8t=function(k){k=YD0(k);
switch(k){case 0:return"light";case 1:return"dark";default:_.s5(k)}};var kZP=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),WsT=function(k,E){this.JSC$19641_linkingSession=k;this.noticeConfig=E;this.displayInfoMap=new Map;var S=new Map;if(_.Vk(this.JSC$19641_linkingSession,yfP,7))for(k=_.Tp(this.JSC$19641_linkingSession,yfP,7),k=_.cy(k,FrY,1,_.mb()),k=_.n(k),E=k.next();!E.done;E=k.next())E=E.value,S.set(_.Tn(E,1),_.U3l(_.Tp(E,_.DQi,3)));if(S.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){E=this.noticeConfig.enabledDataUsageNoticeUis;k=E.has(0)?S.get(1):void 0;E=E.has(1)?S.get(2):void 0;S=k!==void 0&&E!==void 0?S.get(3):void 0;var R=this.noticeConfig.nestedOrigins;var V=new ThR;var N=new IU;V=_.gk(V,2,np,N);N=new ThR;var h=new IU;N=_.gk(N,3,np,h);h=[];k!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:k,lastEvent:V,nestedOrigins:R}]),h.push({trustedUrl:k,lastEvent:V,nestedOrigins:R}));E!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:E,lastEvent:N,nestedOrigins:R}]),h.push({trustedUrl:E,lastEvent:N,nestedOrigins:R}));S!==void 0?this.displayInfoMap.set(3,[{trustedUrl:S,lastEvent:N,nestedOrigins:R}]):this.displayInfoMap.set(3,h)}};var Fs3=function(k){var E=new nx2;this.galService=k;this.galCache=E};
Fs3.prototype.getLink=function(k){var E=k.serviceId;var S=k.scopes;var R=k.capabilities;var V=k.linkName;var N=this,h;return _.c(function(J){if(R!==void 0&&S!==void 0)throw Error("qk");h=hrW(N.galCache,E,S,R,V);return h!==null?J.return(h):J.return(N.galService.getLink({serviceId:E,sessionId:Math.floor(Math.random()*2147483648),scopes:S,capabilities:R,linkName:V}).then(function(m){m=cb0(m);var a=N.galCache;a.storage.has(E)?a.storage.get(E).push(m):a.storage.set(E,[m]);return m}))})};
Fs3.prototype.deleteLink=function(k,E,S){var R=this;return _.c(function(V){JHU(R.galCache,k,S);return V.return(R.galService.deleteLink({serviceId:k,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:E,linkName:S}).then(function(){return!0}))})};var ox3=function(k,E){var S=this;this.validator=k;this.msgHandler=E;this.closedPopupTimeout=this.JSC$19663_rejectCb=this.JSC$19663_resolveCb=this.popup=null;this.JSC$19663_receiveMessage=function(R){if(R!==null&&(R=R.event_,R.source===S.popup)){var V=R.data;if(S.validator(V,R.origin)){var N;(N=S.msgHandler)!=null&&N.call(S,V)||(S.JSC$19663_resolveCb!==null&&S.JSC$19663_resolveCb(V),yHU(S))}}}};
ox3.prototype.open=function(k,E){var S=this;this.popup!==null&&XD2(this);return new Promise(function(R,V){S.JSC$19663_resolveCb=R;S.JSC$19663_rejectCb=V;S.popup=_.Cg(window,k,"",E);_.wX(window,"message",S.JSC$19663_receiveMessage,!1,S);gxP(S)})};
var XD2=function(k,E){k.JSC$19663_rejectCb!==null&&k.JSC$19663_rejectCb(E);yHU(k)},yHU=function(k){k.closedPopupTimeout&&(k.closedPopupTimeout.cancel(),k.closedPopupTimeout=null);
k.popup&&k.popup.close();_.TA(window,"message",k.JSC$19663_receiveMessage,!1,k);k.popup=null;k.JSC$19663_resolveCb=null;k.JSC$19663_rejectCb=null},gxP=function(k){k.closedPopupTimeout=_.wCC(100).then(function(){k.popup?k.popup.closed?U7T(k):gxP(k):XD2(k,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},U7T=function(k){k.closedPopupTimeout=_.wCC(100).then(function(){XD2(k,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var HF0=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),KsG=function(k,E,S,R,V,N,h,J,m,a){var T=this;this.serviceId=k;this.sessionId=E;this.galService=S;this.oauthDetails=R;this.galLogger=V;this.interactionMode=N;this.redirectServiceUrl=h;this.consentLanguageKeys=J;this.dynamicUrlParameters=m;this.partnerConfigMinReadTimestamp=a;this.started=!1;this.JSC$19669_dataValidator=function(w,
P){var B=HF0.has(P);B||T.redirectServiceUrl===void 0||(B=T.redirectServiceUrl===P);return B?w.sentinel==="gdi":!1}};
KsG.prototype.complete=function(){var k=this,E;return _.c(function(S){if(k.interactionMode!==1)return S.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));E=Je.getRedirectStateFromUri();return E===null?S.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):S.return(pDP(k,E))})};
KsG.prototype.start=function(){var k=this,E;return _.c(function(S){if(k.started)return S.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.t2(k.oauthDetails,1))return S.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(k.interactionMode===1)return Je.setLocation(_.t2(k.oauthDetails,1)),S.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));k.started=!0;k.galLogger.logStateTransition(5);
E=Je.getPostMessagePopup(k.JSC$19669_dataValidator);return S.return(E.open(_.t2(k.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(R){k.started=!1;var V=k.galLogger;if((R==null?void 0:R.error)!==void 0)throw V.logInternalEvent(59),Error("rk");if((R==null?void 0:R.redirect_state)===void 0)throw V.logInternalEvent(131),Error("sk");return pDP(k,R.redirect_state)}).catch(function(R){k.started=
!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var pDP=function(k,E){return _.c(function(S){return S.return(AHT(k.galService,{serviceId:k.serviceId,sessionId:k.sessionId,dynamicUrlParameters:k.dynamicUrlParameters,redirectState:E,consentLanguageKeys:k.consentLanguageKeys,partnerConfigMinReadTimestamp:k.partnerConfigMinReadTimestamp}).then(function(R){var V={statusCode:1,link:cb0(R.getLink())};ivx(_.I4(R,3))!==void 0&&(V.callerState=ivx(_.I4(R,3)));k.galLogger.logInternalEvent(134);return V}))})},Je={getPostMessagePopup:function(k){return new ox3(k)},
getRedirectStateFromUri:function(){var k=_.Gx(Je.getLocation()).fragment_;return(new _.Sy(k)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(k){_.BPI(window.location,_.ZF(k))},
createOAuthFlow:function(k,E){return new KsG(k.serviceId,k.sessionId,k.galService,E,k.galLogger,k.interactionMode,k.redirectServiceUrl,k.consentLanguageKeys,k.dynamicUrlParameters,k.partnerConfigMinReadTimestamp)}};var rHR=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(rHR,_.iu);var u20=_.WU(rHR);var x7P=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Ls3=function(k,E,S,R,V,N,h,J,m){var a=this;this.serviceId=k;this.sessionId=E;this.galService=S;this.gsiWebFlowDetails=R;this.colorScheme=V;this.showCloseOption=N;this.galLogger=h;this.interactionMode=J;this.redirectServiceUrl=m;this.started=!1;this.JSC$19681_dataValidator=function(T,w){var P=x7P.has(w);P||a.redirectServiceUrl===
void 0||(P=a.redirectServiceUrl===w);return P?T.sentinel==="gal":!1};
this.logEventProcessor=function(T){return T.result?(T=Evt(T.result))?S3x(a.galLogger,T):!1:!1}};
Ls3.prototype.complete=function(){var k=this,E,S;return _.c(function(R){if(k.interactionMode!==1)return R.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));E=c8.getRedirectStateFromUri();if(E===void 0)return k.galLogger.JSC$19621_logErrorEvent(131),R.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return S=j0a(k,E),R.return(D72(k,S))}catch(V){return R.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Ls3.prototype.start=function(){var k=this,E;return _.c(function(S){if(k.started)return S.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.t2(k.gsiWebFlowDetails,1))return S.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(k.interactionMode===1)return c8.setLocation($72(k,_.t2(k.gsiWebFlowDetails,1))),S.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
k.started=!0;E=c8.getPostMessagePopup(k.JSC$19681_dataValidator,k.logEventProcessor);return S.return(E.open($72(k,_.t2(k.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(R){k.started=!1;if((R==null?void 0:R.result)===void 0)throw k.galLogger.JSC$19621_logErrorEvent(131),Error("sk");R=j0a(k,R.result);return D72(k,R)}).catch(function(R){k.started=!1;
return R.errorCode!==void 0?{statusCode:R.errorCode,statusMessage:R.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var $72=function(k,E){k=["result_channel",k.interactionMode===1?"2":"1","color_scheme",R8t(k.colorScheme),"show_close_option",k.showCloseOption];return K0U(E,k)},D72=function(k,E){if(E!==null&&_.Vk(E,iS,2)){var S,R=E==null?void 0:(S=_.Tp(E,iS,2))==null?void 0:_.Tn(S,2);
R&&k.galLogger.JSC$19621_logErrorEvent(ID3(R));return tGP(_.Tp(E,iS,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 k.galService.getLink({serviceId:k.serviceId,sessionId:k.sessionId,consistencyKey:_.t2(E,1)}).then(function(V){V=cb0(V);k.galLogger.logInternalEvent(134);return{statusCode:1,link:V}})},j0a=function(k,E){E=u20(E);
if(!_.Vk(E,iS,2)&&_.t2(E,1)==="")throw k.galLogger.JSC$19621_logErrorEvent(5),Error("tk");return E},c8={getPostMessagePopup:function(k,E){return new ox3(k,E)},
getRedirectStateFromUri:function(){return _.Cu(_.Gx(c8.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(k){_.BPI(window.location,_.ZF(k))},
createStreamlinedFlow:function(k,E){return new Ls3(k.serviceId,k.sessionId,k.galService,E,k.colorScheme,k.showCloseOption,k.galLogger,k.interactionMode,k.redirectServiceUrl)}};var gvA=function(){var k=_.s_b("GAL");this.storage=k?new _.jn(k):null};
gvA.prototype.getSession=function(k){if(this.storage!==null)try{var E=this.storage.get("SAVED_SESSION");if(E===void 0)return null;if(E.serviceId===k)return E}catch(S){}return null};var $S=function(){};
_.y($S,wD2);$S.prototype.logStateTransition=function(){};
$S.prototype.logInternalEvent=function(){};
$S.prototype.JSC$19621_logErrorEvent=function(){};var fqA=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(fqA,_.iu);fqA.prototype.getCompletionUrl=function(){return _.t2(this,15)};var fi=function(k,E,S,R,V,N){this.serviceId=k;this.environment=E;this.sessionId=S;this.colorSchemeSelected=R;this.colorThemeDisplayed=V;this.JSC$19694_transport=N;this.currentState=1};
_.y(fi,wD2);fi.prototype.logStateTransition=function(k){var E=vxa(this);E=_.wv(E,3,this.currentState);E=_.wv(E,1,k);this.currentState=k;k=DMU(1);this.dispatch(E,k)};
fi.prototype.logInternalEvent=function(k){k=DMU(k);this.dispatch(vxa(this),k)};
fi.prototype.JSC$19621_logErrorEvent=function(k){var E=vxa(this);E=_.wv(E,1,10);k=DMU(k);this.dispatch(E,k)};
var vxa=function(k){var E=new fqA;E=_.wv(E,1,k.currentState);E=_.uh(E,7,k.serviceId);var S,R;var V=((S=window)==null?0:(R=S.location)==null?0:R.href)?_.Gx(window.location.href).JSC$10027_domain_:"NO_PACKAGE_NAME";S=_.uh(E,8,V);S=_.wv(S,6,k.environment);S=_.uh(S,5,"100");S=_.wv(S,11,k.colorSchemeSelected);return _.wv(S,12,k.colorThemeDisplayed)};
fi.prototype.dispatch=function(k,E){E===void 0&&(E=new _.N4);var S=E;k=k.serialize();S=_.uh(S,8,k);_.AD(S,12,this.sessionId);this.JSC$19694_transport.dispatch(E)};var bFP=function(k,E){this.loggerType=k;this.sessionIndex=E!=null?E:0},ZFP;
bFP.prototype.create=function(k,E,S,R,V){switch(this.loggerType){case 0:return new $S;case 1:return ZFP||(ZFP=(new _.Y4(555,this.sessionIndex.toString())).build()),new fi(k,E,S,R,V,ZFP);default:_.s5(this.loggerType,"unknown logger type")}};var mY=[6,2,3,1],rb2=new Map([[4,1],[1,6],[2,2],[3,3]]),tQR={statusCode:7,statusMessage:"Failed to create flow object"},ovP=function(k,E,S,R,V,N,h,J,m,a){this.serviceId=k;this.sessionId=E;this.config=S;this.galService=R;this.JSC$19701_linkingSession=V;this.googleScopes=N;this.callerState=h;this.consentLanguageKeys=J;this.dynamicUrlParameters=m;this.partnerConfigMinReadTimestamp=a;this.currentFlow=0;R=this.JSC$19701_linkingSession;V=new Set;_.Vk(R,Y3t,1)&&V.add(1);_.Vk(R,Xg3,2)&&_.Vk(R,Wu0,6)&&V.add(2);
_.Vk(R,otP,3)&&_.Vk(R,Wu0,6)&&V.add(3);_.Vk(R,Wr3,4)&&V.add(6);this.supportedFlows=V;R=S.loggerType;V=S.clientEnvironment;a:{N=S.colorScheme;switch(N){case 0:N=1;break a;case 1:N=2;break a;case 2:N=3;break a;default:_.s5(N)}N=void 0}a:{h=S.colorScheme;h=YD0(h);switch(h){case 0:h=1;break a;case 1:h=2;break a;default:_.s5(h)}h=void 0}this.galLogger=(new bFP(R,S.authUser)).create(k,V,E,N,h)},s0U=function(k){return new Promise(function(E){var S,R,V,N,h,J,m,a,T,w;
return _.c(function(P){switch(P.nextAddress){case 1:S=FuY(k.currentFlow,k.supportedFlows),R=!1,V=new WsT(k.JSC$19701_linkingSession,k.config.dataUsageNoticeConfig);case 2:if(S===void 0){P.jumpTo(4);break}_.F5(P,5);var B=V,F=S,K=void 0;R?F===1&&(K=B.displayInfoMap.get(2)):F===2||F===3?K=B.displayInfoMap.get(1):F===1&&(K=B.displayInfoMap.get(3));N=K?K:[];h=k.consentLanguageKeys;J=_.n(N);m=J.next();case 7:if(m.done)return k.currentFlow=S,P.yield(w9P(d7a(k,h)),11);a=m.value;return P.yield(nvW(a,k.config.dataUsageNoticeConfig.uiAdapter,
k.config.colorScheme,k.galLogger),10);case 10:T=P.yieldResult;if(T.statusCode!==1)return UJ2(k.serviceId),k.currentFlow=0,E(he({statusCode:T.statusCode,statusMessage:T.statusMessage},k.callerState)),P.return();T.consentLanguageKeys!==void 0&&(h=T.consentLanguageKeys);m=J.next();P.jumpTo(7);break;case 11:w=P.yieldResult;if(w.statusCode!==10)return w.statusCode!==6&&(UJ2(k.serviceId),k.currentFlow=0),w.statusCode!==1&&k.callerState!==void 0&&(w.callerState=k.callerState),E(w),P.return();_.Sv(P,6);break;
case 5:_.UY(P);case 6:S=FuY(k.currentFlow,k.supportedFlows);R=!0;P.jumpTo(2);break;case 4:UJ2(k.serviceId),k.currentFlow=0,E(he({statusCode:12,statusMessage:"Linking failed"},k.callerState)),_.KR(P)}})})},p9a=function(k,E,S){k.currentFlow=E;
return P_R(d7a(k,S)).then(function(R){return R.statusCode===10&&k.config.interactionMode===1&&FuY(k.currentFlow,k.supportedFlows)!==void 0?s0U(k):R})},d7a=function(k,E){return{flowParams:{serviceId:k.serviceId,
sessionId:k.sessionId,galService:k.galService,galLogger:k.galLogger,interactionMode:k.config.interactionMode,redirectServiceUrl:k.config.redirectServiceUrl,colorScheme:k.config.colorScheme,consentLanguageKeys:E,dynamicUrlParameters:k.dynamicUrlParameters,showCloseOption:k.config.showCloseOption,partnerConfigMinReadTimestamp:k.partnerConfigMinReadTimestamp},currentFlow:k.currentFlow,config:k.config,session:k.JSC$19701_linkingSession,googleScopes:k.googleScopes,callerState:k.callerState}};var xJG=function(k,E){this.config=k;this.galService=E.getService();this.JSC$19714_galRepository=E.JSC$19732_galRepository};
xJG.prototype.getLink=function(k,E){return lqP(this,k,E)};
var lqP=function(k,E,S){return k.JSC$19714_galRepository.getLink({serviceId:E,scopes:void 0,capabilities:void 0,linkName:S}).then(function(R){return{statusCode:1,link:R}}).catch(function(R){return{statusCode:uSP(R.code),
statusMessage:R.message}})};
xJG.prototype.deleteLink=function(k,E){return this.JSC$19714_galRepository.deleteLink(k,this.config.accountLinkingEntryPoint,E).then(function(){return{statusCode:1}}).catch(function(S){return{statusCode:uSP(S.code),
statusMessage:S.message}})};
xJG.prototype.startLinkingSession=function(k){var E=k.serviceId;var S=k.sessionId;return X9I({serviceId:E,sessionId:S!==void 0?S:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:k.loginHint,callerState:k.callerState,consentLanguageKeys:k.consentLanguageKeys,linkName:k.linkName,dynamicUrlParameters:k.dynamicUrlParameters,partnerConfigMinReadTimestamp:k.partnerConfigMinReadTimestamp})};var vL=function(k,E,S,R,V,N,h){this.apiKey=E;this.authUser=S;this.oauthToken=R;this.bucket=V;this.locale=N;this.galSdkEventHandler=h;if(R===void 0){if(E===void 0)throw Error("uk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new Nhx(k)};
vL.prototype.deleteLink=function(k){var E=k.serviceId;var S=k.sessionId;var R=k.accountLinkingEntryPoint;var V=k.linkName;var N=this,h;return _.c(function(J){var m=(new o6).setHeader(N.getHeader(S));var a=MGT({serviceId:E,linkName:V});m=_.Xo(m,2,a);h=_.WS(m,3,R);return J.return(N.makeRequest(N.galServiceClient.deleteLink,h,[1,3],[2,4]))})};
var AHT=function(k,E){var S=E.serviceId;var R=E.sessionId;var V=E.dynamicUrlParameters;var N=E.redirectState;var h=E.consentLanguageKeys;var J=E.partnerConfigMinReadTimestamp;var m;return _.c(function(a){var T=(new gz).setHeader(k.getHeader(R,V));T=_.K9(T,2,S);m=_.K9(T,4,N);h!==void 0&&_.K9(m,5,h);J!==void 0&&_.Xo(m,6,J);return a.return(k.makeRequest(k.galServiceClient.JSC$19600_finishOAuth,m,[1,3],[2,4]))})};
vL.prototype.getLink=function(k){var E=k.serviceId;var S=k.sessionId;var R=k.scopes;var V=k.capabilities;var N=k.consistencyKey;var h=k.linkName;var J=this,m;return _.c(function(a){var T=(new UG).setHeader(J.getHeader(S)),w=MGT({serviceId:E,scopes:R,capabilities:V,linkName:h});m=_.Xo(T,2,w);N!==void 0&&(T=iY0(),T=_.K9(T,2,N),_.Xo(m,3,T));return a.return(J.makeRequest(J.galServiceClient.getLink,m,[1,3],[2,4]))})};
var Bb3=function(k,E){var S=E.serviceId;var R=E.sessionId;var V=E.googleScopes;var N=E.consistencyKey;var h;return _.c(function(J){var m=(new Xi).setHeader(k.getHeader(R));m=_.K9(m,2,S);var a=Array.from(V.values());m=_.kJ(m,3,a,_.B0);a=iY0();a=_.K9(a,2,N);h=_.Xo(m,4,a);return J.return(k.makeRequest(k.galServiceClient.JSC$19600_depositGoogleCredential,h,[1,3],[2,4]))})};
vL.prototype.startLinkingSession=function(k){var E=k.serviceId;var S=k.sessionId;var R=k.scopes;var V=k.capabilities;var N=k.loginHint;var h=k.supportedFlows;var J=k.completionUrl;var m=k.usePingPong;var a=k.twoWayLinking;var T=k.accountLinkingEntryPoint;var w=k.callerState;var P=k.consentLanguageKeys;var B=k.googleScopes;var F=k.dataUsageNoticeConfig;var K=k.linkName;var r=k.dynamicUrlParameters;var x=k.partnerConfigMinReadTimestamp;var L=this,q,M;return _.c(function(d){if(V!==void 0&&R!==void 0)throw Error("qk");
var z=(new HYa).setHeader(L.getHeader(S,r));q=_.K9(z,2,E);K!==void 0&&_.K9(q,14,K);if(V!==void 0){z=q;var kb=Array.from(V.values());_.kJ(z,5,kb,_.B0)}else R!==void 0&&(z=q,kb=Array.from(R.values()),_.kJ(z,3,kb,_.B0));J!==void 0&&_.K9(q,6,J);m!==void 0&&_.wW(q,15,m);h!==void 0&&(z=q,kb=Array.from(h.values()),_.kJ(z,4,kb,_.EA));if(a!==void 0){if(a&&(!B||B.size===0))throw Error("vk");_.wW(q,8,a)}T!==void 0&&_.WS(q,9,T);N!==void 0&&_.K9(q,13,N);w!==void 0&&(z=q,kb=(new TextEncoder).encode(w),_.EX(z,12,
_.AC(kb,!1),_.pj()));P!==void 0&&_.K9(q,16,P);x!==void 0&&_.Xo(q,18,x);if(F!==void 0&&F.size>0||B!==void 0&&B.size>0)M=new UN3,B!==void 0&&B.size>0&&(z=M,kb=Array.from(B.values()),_.kJ(z,1,kb,_.B0)),F!==void 0&&(F.has(0)&&_.bPI(M,2,_.EA,1,_.SI),F.has(1)&&_.bPI(M,2,_.EA,2,_.SI)),_.Xo(q,17,M);return d.return(L.makeRequest(L.galServiceClient.startLinkingSession,q,[1],[2]))})};
vL.prototype.getMetadata=function(){var k=this,E,S;return _.c(function(R){E={};k.useFpa?(E["X-Goog-Api-Key"]=k.apiKey,E["X-Goog-AuthUser"]=k.authUser!==void 0?k.authUser.toString():"0",(S=_.TJI([]))&&(E.Authorization=S)):E.Authorization="Bearer "+k.oauthToken;k.locale&&(E["accept-language"]=k.locale);return R.return(E)})};
vL.prototype.makeRequest=function(k,E,S,R){var V=this,N;return _.c(function(h){if(h.nextAddress==1)return h.yield(V.getMetadata(),2);N=h.yieldResult;qDT(V,S);return h.return(k.bind(V.galServiceClient)(E,N).finally(function(){qDT(V,R)}))})};
var qDT=function(k,E){k.galSdkEventHandler!==void 0&&E.forEach(function(S){k.galSdkEventHandler.onEvent(S)})};
vL.prototype.getHeader=function(k,E){var S=new WL;k=_.EX(S,2,_.nP(k),0);k=_.WS(k,5,3);E=_.kJ(k,8,E,_.B0);this.bucket!==void 0&&_.K9(E,1,this.bucket);return E};
var MGT=function(k){var E=k.serviceId;var S=k.scopes;var R=k.capabilities;k=k.linkName;if(R!==void 0&&S!==void 0)throw Error("qk");var V=new IyA;E=_.K9(V,1,E);R!==void 0?(S=Array.from(R.values()),_.kJ(E,5,S,_.B0)):S!==void 0&&(S=Array.from(S.values()),_.kJ(E,3,S,_.B0));k!==void 0&&_.K9(E,6,k);return E};var Lux=function(k){this.galService=new vL(k.alsDomain,k.apiKey,k.authUser,k.oauthToken,k.bucket,k.locale,k.galSdkEventHandler);this.JSC$19732_galRepository=new Fs3(this.galService)};
Lux.prototype.getService=function(){return this.galService};var zr3=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(zr3,_.iu);var Q0T=function(k){var E=new zr3;return _.wv(E,1,k)};
zr3.prototype.setErrorMessage=function(k){return _.uh(this,2,k)};var OFt=[0,_.sU,_.Ds,_.sU];var bn=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(bn,_.iu);var Gz3=[0,[1,2,3],_.bT,[0,_.OjC,yzG,-1],_.bT,[0,F0Y,-1],_.fL];var CGG=[0,_.uT,1,_.sU,_.Ds,-1,1,_.Zs,_.pL,_.sU,-1,Gz3];var k6A=[0,_.sU,[0,_.Zs,_.pL,[0,_.Ds]],_.x7,[0,_.sU,-1]];var Nb=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Nb,_.iu);var EDP=[0,_.Ds,_.sU,-2,_.uT,_.sU,_.uT,_.sU,-2,1,_.x7];var S9G=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(S9G,_.iu);var RmP=[0,_.uT];var V8T=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(V8T,_.iu);var NB3=[0,_.sU,k6A,RmP,EDP,CGG];var aXt=_.PU(V8T,NB3);var ITP=[0,IqP];var Y8W=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Y8W,_.iu);var nDP=[0,[1,3],gHP,_.sU,gHP];var R6=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(R6,_.iu);var iSR=[0,_.sU];var hmT=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(hmT,_.iu);var Vc=function(k){return _.BS(k,zr3,2,SZ)},J$I=function(k){var E=new hmT;
return _.gk(E,2,SZ,k)},SZ=[1,
2];var c$P=[0,SZ,_.bT,iSR,_.bT,OFt,_.vS,nDP,1,_.sU,ITP];var ml2=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(ml2,_.iu);var aTW=function(k){var E=new ml2;return _.gk(E,3,emT,k)},emT=[2,
3];var Zu=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(Zu,_.iu);var t83=function(k,E){return _.Xo(k,2,E)},TBa=function(k,E){return _.Xo(k,8,E)},w7U=function(k,E){return _.Xo(k,3,E)};var PAY=[0,_.sU,c$P,NB3,_.z4,[0,[5,6,7],[0,_.sU,-2],[0,_.uT,_.sU,_.Ds],[0,Gz3],[0,_.Ds,_.sU,-1,_.qM,_.sU],_.bT,[0,[0,_.uT],_.sU,-1],_.bT,[0,[3,4],_.sU,-1,_.bT,[0,[0,_.sU,_.x7]],_.bT,[0,[0,[0,[1,2,3],_.bT,[0],_.bT,[0],_.bT,[0]]]]],_.bT,[0,_.sU]],_.z4,-1,[0,emT,_.sU,_.bT,iSR,_.bT,OFt,_.vS,nDP,[0,IqP]]];var BBP=_.PU(Zu,PAY),Y9T=_.BU(PAY);var WfT=function(){_.r7.call(this)};
_.y(WfT,_.r7);WfT.prototype.init=function(){};
new WfT;var Fft=_.ry(["data-"]),y$P=_.ry(["aria-"]),oDG=_.ry(["aria-"]),dz=function(k,E){this.isLatencyMeasurementExperiment=k===void 0?!1:k;this.enableDialogA11yFix=E===void 0?!1:E;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.fBT(_.Vt.location.href)},T9A=function(k,E){k.onConsentPrimitiveShownCallback=E},X7T=function(k,E){return k.overriddenIframeLoadTimeout?k.overriddenIframeLoadTimeout:E!==void 0?E:5E3},PEP=function(k){if(k.prewarmPromise!==void 0)return k.prewarmPromise;
k.prewarmPromise=new Promise(function(E,S){sG(k,1);gDa(k,Ult(k,!0),HSt(k));k.iframe?k.prewarmChannel||KfY(k,k.iframe,E):S(Error("wk"))});
k.prewarmPromise.finally(function(){k.prewarmPromise=void 0});
return k.prewarmPromise};
dz.prototype.showPrimitive=function(){var k=this;if(this.consentPromise!==void 0)return this.consentPromise;var E=Date.now();p7W(this,E);this.consentPromise=new Promise(function(S,R){sG(k,0,E);var V=k.isDarkTheme();k.isLatencyMeasurementExperiment||k.initialLoadingStrategy===1||k.initialLoadingStrategy===2||(k.loadingBar||(k.loadingBar=fDA(getComputedStyle(document.body).direction==="rtl",V),k.loadingBar.style.position="fixed",k.loadingBar.style.zIndex="15000"),document.body.appendChild(k.loadingBar));
gDa(k,Ult(k),HSt(k));k.iframe?k.channel||A$2(k,k.iframe,S,R):(r$a(k),R(Error("wk")))});
this.consentPromise.finally(function(){k.consentPromise=void 0});
return this.consentPromise};
var A$2=function(k,E,S,R){var V,N;_.c(function(h){switch(h.nextAddress){case 1:sG(k,3);V=!1;setTimeout(function(){if(!V){r$a(k);uYa(k);xlY(k);var J=Q0T(7).setErrorMessage("Timeout connecting to iframe");S(TBa(t83(new Zu,J$I(J)),aTW(J)))}},X7T(k,Lfa(k)));
if(!k.prewarmPromise){h.jumpTo(2);break}_.F5(h,3);return h.yield(k.prewarmPromise,5);case 5:_.Sv(h,2);break;case 3:_.UY(h),N=Q0T(4).setErrorMessage("Error while prewarming."),S(TBa(t83(new Zu,J$I(N)),aTW(N)));case 2:k.prewarmChannel&&k.prewarmChannel.send(Y9T(w7U(new Zu,k.consentPrimitiveRequest))),k.channel=_.zn({destination:k.win,iframe:E,origin:joR(k),channelName:"cpw",onEstablished:function(){V=!0;r$a(k);k.isLatencyMeasurementExperiment||(k.JSC$19761_previousBodyOverflow=document.body.style.overflow,
k.JSC$19761_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,k.JSC$19761_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",k.enableDialogA11yFix&&window.addEventListener("blur",k.focusChangeListener));var J=k.iframe;J.style.bottom="0";J.style.position="fixed";J.style.right="0";J.style.border="none";J.style.left="0";J.style.top=
"0";J.style.zIndex="5000";J.style.pointerEvents="";J.style.visibility="";k.initialLoadingStrategy===2||k.initialLoadingStrategy===3?sG(k,4):sG(k,6);var m;(m=k.onConsentPrimitiveShownCallback)==null||m.call(k)},
onMessage:function(J){J=BBP(J.data);switch(_.Tn(J,1)){case 1:uYa(k);var m=vvR(_.Tp(J,_.PZ,7));m&&(k.initialLoadingStrategy!==2&&k.initialLoadingStrategy!==3||sG(k,6,m),sG(k,5,m));if(m=vvR(_.Tp(J,_.PZ,6)))sG(k,7,m),sG(k,8);var a,T;((a=_.Tp(J,hmT,2))==null?void 0:_.iT(a,SZ))!==0&&((T=_.Tp(J,ml2,8))==null?void 0:_.iT(T,emT))!==0||R(Error("xk"));S(J);break;case 2:xlY(k)}}}),_.KR(h)}})},KfY=function(k,E,S){k.prewarmChannel=_.zn({destination:k.win,
iframe:E,origin:joR(k),channelName:"pwcp",onEstablished:function(){sG(k,2);S()}})},joR=function(k){var E=_.AJ(k.src).toString();
return E&&E.indexOf("://")<0&&E.indexOf("//")!==0?k.origin:_.fBT(E)},Ult=function(k,E){E=E===void 0?!1:E;
var S,R=new Map([["origin",k.origin],["hl",(S=DlI(k))!=null?S:null]]);E&&R.set("pw","1");E=_.n([["cpr",k.consentPrimitiveRequest.serialize()]]);for(S=E.next();!S.done;S=E.next()){var V=_.n(S.value);S=V.next().value;V=V.next().value;R.set(S,V)}k.isDarkTheme()&&R.set("color_scheme","dark");return _.Yy(k.src,R)},r$a=function(k){k.isLatencyMeasurementExperiment||k.loadingBar&&document.body.removeChild(k.loadingBar)};
dz.prototype.getSrc=function(){var k=_.iJ(this.origin),E;var S=(E=_.Tp(this.consentPrimitiveRequest,S9G,3))==null?void 0:_.eo(E,1);E="consent.google.com";S=S?"/u/"+encodeURIComponent(S.toString()):"";(k==null?0:k.endsWith("youtube.com"))?E="consent.youtube.com":(k=k==null?void 0:k.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(E="consent.google."+((k[1]?"co.":"")+encodeURIComponent(k[2])));return _.pg("https://"+E+"/signedin"+S+"/landing")};
var gDa=function(k,E,S){k.iframe||(k.iframe=document.createElement("iframe"),k.iframe.style.width="100%",k.iframe.style.height="100%",S!==112496729&&(k.iframe.style.colorScheme="auto"),k.isLatencyMeasurementExperiment&&(k.iframe.style.display="none"),_.GB(k.iframe,E),k.iframe.setAttribute("jsname","C5o1O"),$lP(k.iframe),document.body.appendChild(k.iframe))},$lP=function(k){k.style.bottom="-200vh";
k.style.position="fixed";k.style.right="-200vw";k.style.border="";k.style.left="";k.style.top="";k.style.zIndex="";k.style.pointerEvents="none";k.style.visibility="hidden"},uYa=function(k){k.iframe&&(k.isLatencyMeasurementExperiment||(k.JSC$19761_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=k.JSC$19761_previousHtmlOverscroll),k.JSC$19761_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=k.JSC$19761_previousBodyOverscroll),k.JSC$19761_previousBodyOverflow!==
void 0&&(document.body.style.overflow=k.JSC$19761_previousBodyOverflow),k.enableDialogA11yFix&&fTP(k,!1)),$lP(k.iframe))};
dz.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(fTP(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var fTP=function(k,E){var S,R,V=(S=k.iframe)==null?void 0:(R=S.parentElement)==null?void 0:R.children;if(V)for(S=0;S<V.length;S++)R=V[S],R!==k.iframe&&(E?(R.hasAttribute("aria-hidden")&&_.hE([_.To(Fft)],R,"data-old-aria-hidden",R.getAttribute("aria-hidden")),_.hE([_.To(y$P)],R,"aria-hidden","true")):(R.removeAttribute("aria-hidden"),R.hasAttribute("data-old-aria-hidden")&&(_.hE([_.To(oDG)],R,"aria-hidden",R.getAttribute("data-old-aria-hidden")),R.removeAttribute("data-old-aria-hidden"))))},sG=function(k,
E,S){var R;
(R=k.latencyCallback)==null||R.call(k,{latencyType:E,timestampEpochMillis:S!=null?S:Date.now()})};var vDx=function(k,E,S){dz.call(this,E,S===void 0?!1:S);this.consentPrimitiveRequest=k;k=DlI(this);_.uDa(k);this.src=this.getSrc();var R;this.initialLoadingStrategy=(R=_.Tp(this.consentPrimitiveRequest,Nb,4))==null?void 0:_.Tn(R,4)},bST;
_.y(vDx,dz);var tux=function(k){var E=_.Y("enable_primitive_dialog_aria_hide_siblings");k={request:k,enableDialogA11yFix:E===void 0?!1:E};bST||(bST=new vDx(k.request,k.isLatencyMeasurementExperiment||_.Tn(k.request,1)===2,k.enableDialogA11yFix));return bST},DlI=function(k){var E;
return(E=_.Tp(k.consentPrimitiveRequest,Nb,4))==null?void 0:_.t2(E,1)},p7W=function(k,E){if(!_.Vk(k.consentPrimitiveRequest,bn,5)){var S=k.consentPrimitiveRequest,R=new bn;
_.Xo(S,5,R)}var V;if((V=_.Tp(k.consentPrimitiveRequest,bn,5))==null||_.LdC(_.R4(V,8))==null){var N;(N=_.Tp(k.consentPrimitiveRequest,bn,5))!=null&&_.AD(N,8,E)}},HSt=function(k){var E;
return(E=_.Tp(k.consentPrimitiveRequest,bn,5))==null?void 0:_.eo(E,1)};
vDx.prototype.isDarkTheme=function(){var k;return((k=_.Tp(this.consentPrimitiveRequest,Nb,4))==null?void 0:_.Tn(k,2))===2};
var Lfa=function(k){var E;return((E=_.Tp(k.consentPrimitiveRequest,Nb,4))==null?void 0:_.eo(E,5))||void 0},xlY=function(k){k.channel=void 0;
k.prewarmChannel=void 0;k.iframe&&(document.body.contains(k.iframe)&&document.body.removeChild(k.iframe),k.iframe=void 0);bST=void 0},B9G=function(k){return dz.prototype.showPrimitive.call(k).then(function(E){return _.Tp(E,hmT,2)})};for(var ln={},ZSG=(ln[64]="ma",ln[73]="ogb",ln[89]="cr",ln[21]="test",ln[0]="unkn",ln[137]="con",ln[155]="hl",ln[78]="yt",ln[171]="lp",ln[172]="ap",ln[177]="amo",ln[178]="pqe",ln[74]="gg",ln[1]="gm",ln[140]="am",ln[193]="sc",ln),dl0=_.n(Object.keys(ZSG)),soG=dl0.next();!soG.done;soG=dl0.next());var lTP=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(lTP,_.iu);var M8A=[0,[2,3,4],_.sU,W0x,gHP,_.fL];var q9x=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(q9x,_.iu);var zmU=_.PU(q9x,[0,_.lT,_.Ds,_.sU,_.Ds,_.sU,M8A]);var QoY=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(QoY,_.iu);QoY.prototype.getCommand=function(){return _.Tn(this,1)};
var OSA=function(){var k=new QoY;return _.WS(k,1,0)};var G6W=_.BU([0,_.lT,_.Ds,[0,_.sU,_.Ds,-1]]);var CAG=new _.cs("s"),kgG=new _.cs("t"),Ej0=new _.cs("u"),S6I=new _.cs("v"),RKA=function(k,E,S){_.mL.call(this,CAG);this.mediaKey=k;this.photoUrl=E;this.photoSource=S};
_.y(RKA,_.mL);var V_W=function(){_.mL.call(this,kgG)};
_.y(V_W,_.mL);var NZR=function(k){k=k===void 0?!1:k;_.mL.call(this,Ej0);this.isError=k};
_.y(NZR,_.mL);var IrG=function(){_.mL.call(this,S6I)};
_.y(IrG,_.mL);var njx=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,ct0=function(k){if(typeof k=="string"){if(k.charAt(0)==".")return iKI(k.substr(1));if(k.charAt(0)=="["){var E=njx.exec(k);k=k.indexOf("=")==-1?void 0:E[3];return hKU(E[1],k)}return JtP(k)}return k},iKI=function(k){return function(E){return E.getAttribute&&_.D9(E,k)}},hKU=function(k,E){return function(S){return E!==void 0?S.getAttribute&&S.getAttribute(k)==E:S.hasAttribute&&S.hasAttribute(k)}},JtP=function(k){k=k.toUpperCase();
return function(E){return(E=E.tagName)&&E.toUpperCase()==k}},mzG=function(){return!0};var Mb=function(k,E){this.JSC$19789_key_=k;this.JSC$19789_value_=E},qb=function(k){throw Error("yk`"+k.JSC$19789_key_);
},eKY=function(k,E){return new TypeError("zk`"+E+"`"+k.JSC$19789_key_+"`"+k.JSC$19789_value_+"`"+typeof k.JSC$19789_value_)};
Mb.prototype.string=function(k){return arguments.length==0?ara(this):t_3(this,k)};
var t_3=function(k,E){var S;return(S=TZP(k))!=null?S:E},ara=function(k){var E=TZP(k);
E===null&&qb(k);return E},TZP=function(k){var E=k.JSC$19789_value_;
if(E==null)return null;if(typeof E==="string")return E;throw eKY(k,"string");};
Mb.prototype.bool=function(k){if(arguments.length==0){var E=this.optionalBool();E===null&&qb(this)}else{var S;E=(S=this.optionalBool())!=null?S:k}return E};
Mb.prototype.optionalBool=function(){var k=this.JSC$19789_value_;if(k==null)return null;if(typeof k==="boolean")return k;if(typeof k==="string"){k=k.toLowerCase();if(k==="true"||k==="1")return!0;if(k==="false"||k==="0")return!1}throw eKY(this,"boolean");};
Mb.prototype.number=function(k){if(arguments.length==0){var E=wF0(this);E===null&&qb(this)}else E=P3x(this,k);return E};
var P3x=function(k,E){var S;return(S=wF0(k))!=null?S:E},wF0=function(k){var E=k.JSC$19789_value_;
if(E==null)return null;if(typeof E==="number")return E;if(typeof E==="string"){var S=Number(E);if(!isNaN(S)&&(S!==0||E.trim().length!==0))return S}throw eKY(k,"number");};
Mb.prototype.toString=function(){return ara(this)};
Mb.prototype.enum=function(k,E){var S=!0,R=void 0,V;for(V in k){var N=k[V];S&&(S=!1,R=typeof N==="number"?P3x(this,E):t_3(this,E));if(N==R)return R}JSON.stringify(k);return R};
Mb.prototype.array=function(k){if(arguments.length==0){var E=BZ3(this);E===null&&qb(this);return E}E=BZ3(this);return E==null?k:E};
var BZ3=function(k){var E=k.JSC$19789_value_;if(E==null)return null;Array.isArray(E)||(typeof E!=="string"?E=[E]:(E=E.trim(),E=E==""?[]:E.split(",").map(function(S){return S.trim()})));
return Y6W(k,E)},Y6W=function(k,E){var S=k.JSC$19789_key_+"[";
return Array.from(E,function(R,V){return new Mb(S+V+"]",R)})};
Mb.prototype.object=function(k){var E=this.JSC$19789_value_;if(E==null)return k===void 0&&qb(this),k;if(typeof E==="object"&&E.constructor===Object){k={};var S=this.JSC$19789_key_+".",R;for(R in E)k[R]=new Mb(S+R,E[R]);return k}throw eKY(this,"object");};var zr=function(k){this.list_=WWU(k)},WWU=function(k){if(k instanceof zr)k=k.list_;
else if(k[0]instanceof zr){for(var E=new Set,S=0;S<k.length;S++)for(var R=_.n(k[S].list_),V=R.next();!V.done;V=R.next())E.add(V.value);k=E}return[].concat(_.$e(k))};
_.I=zr.prototype;_.I.each=function(k,E,S){((S===void 0?0:S)?VN0:_.Sn)(this.list_,k,E);return this};
_.I.size=function(){return this.list_.length};
_.I.isEmpty=function(){return this.list_.length===0};
_.I.get=function(k){return this.list_[k]||null};
_.I.el=function(){return this.list_[0]||null};
_.I.map=function(k,E){return _.vH(this.list_,k,E)};
_.I.equals=function(k){return this===k||_.GI(this.list_,k.list_)};
_.I.first=function(){return this.list_.length==0?null:new Qc(this.list_[0])};
_.I.last=function(){return this.list_.length==0?null:new Qc(this.list_[this.list_.length-1])};
_.I.find=function(k){var E=[];this.each(function(S){S=S.querySelectorAll(String(k));for(var R=0;R<S.length;R++)E.push(S[R])});
return new zr(E)};
_.I.parent=function(){var k=[];this.each(function(E){(E=E.parentElement||null)&&!_.bC(k,E)&&k.push(E)});
return new zr(k)};
_.I.children=function(){var k=[];this.each(function(E){E=_.U8(E);for(var S=0;S<E.length;S++)k.push(E[S])});
return new zr(k)};
_.I.filter=function(k){k=_.lb(this.list_,ct0(k));return new zr(k)};
_.I.closest=function(k){var E=[],S=ct0(k),R=function(V){return _.IW(V)&&S(V)};
this.each(function(V){(V=_.lh(V,R,!0))&&!_.bC(E,V)&&E.push(V)});
return new zr(E)};
_.I.next=function(k){return FW0(this,_.RhA,k)};
_.I.prev=function(k){return FW0(this,UwG,k)};
var FW0=function(k,E,S){var R=[];var V=S?ct0(S):mzG;k.each(function(N){(N=E(N))&&V(N)&&R.push(N)});
return new zr(R)};
zr.prototype.setClass=function(k){return this.each(function(E){_.jL(E,k)})};
var yt3=function(k,E){return k.each(function(S){_.bY(S,E)})},ojA=function(k,E){return k.each(function(S){_.fh(S,E)})};
zr.prototype.toggleClass=function(k,E){return E===!0?yt3(this,k):E===!1?ojA(this,k):this.each(function(S){_.D9(S,k)?_.fh(S,k):_.bY(S,k)})};
zr.prototype.setText=function(k){return this.each(function(E){_.HN(E,k)})};
var XFP=function(k){k.each(function(E){E.removeAttribute("aria-hidden")})};
zr.prototype.getStyle=function(k){if(this.list_.length>0){var E=this.list_[0],S=E.style[_.Ir(k)];return typeof S!=="undefined"?S:E.style[_.TTY(E,k)]||""}};
zr.prototype.getData=function(k){if(this.list_.length===0)return new Mb(k,null);var E=hU2(this.list_[0],k);return new Mb(k,E)};
zr.prototype.focus=function(k){try{k?this.el().focus(k):this.el().focus()}catch(E){}return this};
zr.prototype.click=function(){var k=_.dT(this.el());if(k.createEvent){var E=k.createEvent("MouseEvents");E.initMouseEvent("click",!0,!0,k.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(E)}else k=k.createEventObject(),k.clientX=0,k.clientY=0,k.screenX=0,k.screenY=0,k.altKey=!1,k.ctrlKey=!1,k.shiftKey=!1,k.button=0,this.el().fireEvent("onclick",k)};
var OG=function(k,E,S,R){function V(J,m,a){var T=m;m&&m.parentNode&&(T=m.cloneNode(!0));J(T,a)}
R=R===void 0?!1:R;if(k.list_.length==1){var N=k.list_[0],h=function(J){return E(J,N)};
S instanceof zr?S.each(h,void 0,R):Array.isArray(S)?(R?VN0:_.Sn)(S,h):h(S);return k}return k.each(function(J){S instanceof zr?S.each(function(m){V(E,m,J)}):Array.isArray(S)?_.Sn(S,function(m){V(E,m,J)}):V(E,S,J)})};
_.I=zr.prototype;_.I.append=function(k){return OG(this,function(E,S){E&&S.appendChild(E)},k)};
_.I.appendTo=function(k){(new zr([k])).append(this);return this};
_.I.remove=function(){return OG(this,function(k,E){_.Ua(E)},null)};
_.I.empty=function(){return OG(this,function(k,E){_.of(E)},null)};
_.I.after=function(k,E){return OG(this,function(S,R){S&&_.g9(S,R)},k,!(E===void 0||E))};
_.I.before=function(k){return OG(this,function(E,S){E&&_.X$(E,S)},k)};
_.I.replaceWith=function(k){return OG(this,function(E,S){E&&_.koY(E,S)},k)};
_.I.toggle=function(k){return this.each(function(E){_.Em(E,k)})};
_.I.show=function(){return this.toggle(!0)};
_.I.hide=function(){return this.toggle(!1)};
_.I.trigger=function(k,E,S,R){return gjx(this,k,E,S,R)};
var gjx=function(k,E,S,R,V){return k.each(function(N){_.PXj(_.dT(N)).triggerWizEventInternal(N,E,S,R,V)})},Qc=function(k,E){k instanceof zr&&(E=k.list_,k=null);
this.list_=WWU(k!=null?[k]:E)};
_.dy(Qc,zr);_.I=Qc.prototype;_.I.children=function(){return new zr(Array.prototype.slice.call(_.U8(this.list_[0])))};
_.I.each=function(k,E){k.call(E,this.list_[0],0);return this};
_.I.size=function(){return 1};
_.I.el=function(){return this.list_[0]};
_.I.first=function(){return this};var Gr=function(k,E){E=E===void 0?window:E;this.hostId=k;this.win=E;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$19800_previousHtmlOverscroll=this.JSC$19800_previousBodyOverscroll=this.JSC$19800_previousBodyOverflow="";this.eventTarget=new _.wG;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},KWI=function(k){var E=
Uza(Uza(Uza(new HKR(78),"po"),"hppp"),"hhc");
E.authUser=Number(_.Mg("SESSION_INDEX","0"));E.colorScheme=k;return E};
Gr.prototype.getOrigin=function(){return this.origin?this.origin:_.OF(_.Q4(_.zA(new _.DZ,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
Gr.prototype.getTargetOrigin=function(){return _.OF(_.Q4(_.zA(new _.DZ,this.scheme),this.domain),this.port)};
Gr.prototype.preloadIframe=function(k){var E=this;if(this.iframeLoadPromise===void 0){var S=document.createElement("iframe");this.iframe=S;q30(S,k);this.iframeLoadPromise=new Promise(function(R,V){var N=!1,h=function(J){J.stopPropagation();S.removeEventListener("error",h);S.removeEventListener("securitypolicyviolation",h);V(Error("Ak",{cause:J}))};
S.addEventListener("error",h);S.addEventListener("securitypolicyviolation",h);setTimeout(function(){N||V(Error("Bk"))},3E4);
pFR(E,S,function(){N=!0;S.removeEventListener("error",h);S.removeEventListener("securitypolicyviolation",h);R()})});
AtY(this);k=this.getTargetOrigin().toString();S.setAttribute("allow","camera "+k+"; display-capture "+k);this.parentElement.appendChild(S)}return this.iframeLoadPromise};
var xzU=function(k,E){var S,R;return _.c(function(V){if(V.nextAddress==1)return S=fDA(getComputedStyle(k.parentElement).direction==="rtl"),k.parentElement.appendChild(S),document.activeElement instanceof HTMLElement&&(k.elementToFocusAfterClose=document.activeElement),_.F5(V,2),V.yield(k.preloadIframe(E),4);if(V.nextAddress!=2){k.parentElement.removeChild(S);k.JSC$19800_previousBodyOverflow=k.parentElement.style.overflow;k.JSC$19800_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
k.JSC$19800_previousBodyOverscroll=k.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";k.parentElement.style.overscrollBehavior="contain";k.parentElement.style.overflow="hidden";var N=k.iframe;N.style.bottom="0";N.style.border="none";N.style.height="100%";N.style.left="0";N.style.position=k.iframePosition;N.style.right="0";N.style.top="0";N.style.width="100%";N.style.zIndex="2202";N.setAttribute("aria-hidden","false");N.setAttribute("aria-modal","true");
k.opened=!0;rtI(k);return _.Sv(V,0)}R=_.UY(V);k.parentElement.removeChild(S);sZa(k.isDarkTheme());ugY(k,!1);throw Error("Ck",{cause:R});})},ugY=function(k,E){E=E===void 0?!0:E;
k.iframe!==void 0&&(LWW(k),document.documentElement.style.overscrollBehavior=k.JSC$19800_previousHtmlOverscroll,k.parentElement.style.overscrollBehavior=k.JSC$19800_previousBodyOverscroll,k.parentElement.style.overflow=k.JSC$19800_previousBodyOverflow,k.elementToFocusAfterClose!==void 0&&(k.elementToFocusAfterClose.focus(),k.elementToFocusAfterClose=void 0),E?AtY(k):(k.parentElement.removeChild(k.iframe),k.iframe=void 0,k.iframeLoadPromise=void 0,k.mainChannel=void 0),k.opened=!1)},LWW=function(k){k.backgroundElementsAriaHiddenIsNull&&
(XFP(k.backgroundElementsAriaHiddenIsNull),k.backgroundElementsAriaHiddenIsNull=void 0);
k.backgroundElementsAriaHiddenIsFalse&&(k.backgroundElementsAriaHiddenIsFalse.each(function(E){E.setAttribute("aria-hidden","false")}),k.backgroundElementsAriaHiddenIsFalse=void 0);
k.backgroundElementsWithoutInert&&(k.backgroundElementsWithoutInert.each(function(E){E.removeAttribute("inert")}),k.backgroundElementsWithoutInert=void 0)},rtI=function(k){k.backgroundElementsAriaHiddenIsNull=(new Qc(k.iframe.parentElement)).children().filter(function(E){return E.getAttribute("aria-hidden")===null&&E!==k.iframe});
k.backgroundElementsAriaHiddenIsNull.each(function(E){E.setAttribute("aria-hidden","true")});
k.backgroundElementsAriaHiddenIsFalse=(new Qc(k.iframe.parentElement)).children().filter(function(E){return E.getAttribute("aria-hidden")==="false"&&E!==k.iframe});
k.backgroundElementsAriaHiddenIsFalse.each(function(E){E.setAttribute("aria-hidden","true")});
k.backgroundElementsWithoutInert=(new Qc(k.iframe.parentElement)).children().filter(function(E){return!E.hasAttribute("inert")&&E!==k.iframe});
k.backgroundElementsWithoutInert.each(function(E){E.setAttribute("inert","true")})},AtY=function(k){k=k.iframe;
k.style.bottom="-1000px";k.style.position="fixed";k.style.right="-1000px";k.style.border="";k.style.height="";k.style.left="";k.style.top="";k.style.width="";k.style.zIndex="";k.setAttribute("aria-hidden","true");k.setAttribute("aria-modal","false")};
Gr.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var HKR=function(k,E){Gr.call(this,ZSG[k],E);this.options=[];this.style=""};
_.y(HKR,Gr);var jJ0=function(k){k.style="youtube";return k},Dzx=function(k,E){k.eventTarget.listen(Ej0,E);
return k},$zW=function(k,E){k.eventTarget.listen(CAG,E);
return k},Uza=function(k,E){k.options.push(E);
return k},frt=function(k){var E=[k.getOrigin()];
k.ancestorOrigins&&E.push.apply(E,_.$e(k.ancestorOrigins));var S=new _.DZ(k.win.location.href),R=k.startUrl?k.startUrl:k.options.includes("po")?"profile-picture/art":"profile-picture";E=ni(_.GA(k.getTargetOrigin(),R),"origin",E);k.startUrl&&_.kO(E,"startPath",k.startUrl);k.authUser>0&&_.kO(E,"authuser",k.authUser);k.pageId!==void 0&&_.kO(E,"pageId",k.pageId);_.kO(E,"hostId",k.hostId);k.jsMode!==void 0&&_.kO(E,"jsmode",k.jsMode);k.rectangleRatio!==void 0&&_.kO(E,"rectangleRatio",k.rectangleRatio);
k.options.length>0&&_.kO(E,"opts",k.options.join(","));try{for(var V=_.n(["utm_source","utm_medium","utm_campaign","utm_content"]),N=V.next();!N.done;N=V.next()){var h=N.value;_.Cu(S,h)&&_.kO(E,h,_.Cu(S,h))}var J,m=(J=k.hl)!=null?J:_.Cu(S,"hl");m!==void 0&&_.kO(E,"hl",m)}catch(a){if(!(a instanceof URIError))throw a;}k.colorScheme&&_.kO(E,"theme",k.colorScheme);k.style&&_.kO(E,"style",k.style);return E},vjA=function(k,E){k.mainChannel=_.zn({destination:k.win,
iframe:E,origin:k.getTargetOrigin().toString(),channelName:"ow",onMessage:function(S){S=zmU(S.data);if(E===k.iframe)switch(_.Tn(S,1)){case 1:k.eventTarget.dispatchEvent(new NZR);ugY(k);break;case 2:k.eventTarget.dispatchEvent(new RKA(_.t2(S,4),_.t2(S,2),_.Tn(S,5),_.Tp(S,lTP,6)));break;case 0:var R;k.eventTarget.dispatchEvent(new V_W(_.t2(S,2),(R=_.Tn(S,3))!=null?R:0));break;case 3:k.eventTarget.dispatchEvent(new NZR(!0));ugY(k,!1);break;case 4:k.eventTarget.dispatchEvent(new IrG)}}})},pFR=function(k,
E,S){_.zn({destination:k.win,
iframe:E,origin:_.OF(_.Q4(_.zA(new _.DZ,k.scheme),k.domain),k.port).toString(),channelName:"owi",onMessage:function(R){E===k.iframe&&(S!==void 0&&S(),vjA(k,E),k.opened&&k.mainChannel.send(G6W(OSA())),R.reply(),pFR(k,E))}})};
HKR.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?Gr.prototype.preloadIframe.call(this,frt(this).toString()):this.iframeLoadPromise};
HKR.prototype.openPicker=function(k){var E=this;return _.c(function(S){if(S.nextAddress==1)return E.startUrl=k?k:E.options.includes("po")?"profile-picture/art":"profile-picture",S.yield(xzU(E,frt(E).toString()),2);if(E.mainChannel){var R=E.mainChannel,V=R.send;var N=OSA();N=_.uh(N,2,E.startUrl);V.call(R,G6W(N))}_.KR(S)})};var bK0=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(bK0,_.iu);_.I=bK0.prototype;_.I.getSize=function(){return tl(this,1)};
_.I.setSize=function(k){return _.Y7(this,1,k)};
_.I.getWidth=function(){return tl(this,12)};
_.I.getHeight=function(){return tl(this,13)};
_.I.setCenterCrop=function(k){return _.w7(this,20,k)};
_.I.getHtml=function(){return _.mV(this,4)};
_.I.getToken=function(){return _.Xb(this,24)};
_.I.setToken=function(k){return _.uh(this,24,k)};
_.I.getBackgroundColor=function(){return tl(this,87)};
_.I.hasBackgroundColor=function(){return _.ia(_.R4(this,87))!=null};
_.I.getStoryboardLevel=function(){return tl(this,109)};var Ci=function(k){this.JSC$19808_value_=void 0;this.childNodes_={};if(k){var E=_.sH8(k);k=_.q4(k);for(var S=0;S<E.length;S++)this.set(E[S],k[S])}};
Ci.prototype.set=function(k,E){ZK0(this,k,E,!1)};
Ci.prototype.add=function(k,E){ZK0(this,k,E,!0)};
var ZK0=function(k,E,S,R){for(var V=0;V<E.length;V++){var N=E.charAt(V);k.childNodes_[N]||(k.childNodes_[N]=new Ci);k=k.childNodes_[N]}if(R&&k.JSC$19808_value_!==void 0)throw Error("Dk`"+E);k.JSC$19808_value_=S},dzR=function(k,E){for(var S=0;S<E.length;S++)if(k=k.childNodes_[E.charAt(S)],!k)return;
return k};
Ci.prototype.get=function(k){return(k=dzR(this,k))?k.JSC$19808_value_:void 0};
Ci.prototype.getValues=function(){var k=[];sJ3(this,k);return k};
var sJ3=function(k,E){k.JSC$19808_value_!==void 0&&E.push(k.JSC$19808_value_);for(var S in k.childNodes_)sJ3(k.childNodes_[S],E)};
Ci.prototype.getKeys=function(k){var E=[];if(k){for(var S=this,R=0;R<k.length;R++){var V=k.charAt(R);if(!S.childNodes_[V])return[];S=S.childNodes_[V]}lrW(S,k,E)}else lrW(this,"",E);return E};
var lrW=function(k,E,S){k.JSC$19808_value_!==void 0&&S.push(E);for(var R in k.childNodes_)lrW(k.childNodes_[R],E+R,S)};
_.I=Ci.prototype;_.I.containsKey=function(k){return this.get(k)!==void 0};
_.I.containsValue=function(k){if(this.JSC$19808_value_===k)return!0;for(var E in this.childNodes_)if(this.childNodes_[E].containsValue(k))return!0;return!1};
_.I.clear=function(){this.childNodes_={};this.JSC$19808_value_=void 0};
_.I.remove=function(k){for(var E=this,S=[],R=0;R<k.length;R++){var V=k.charAt(R);if(!E.childNodes_[V])throw Error("Ek`"+k);S.push([E,V]);E=E.childNodes_[V]}k=E.JSC$19808_value_;for(delete E.JSC$19808_value_;S.length>0;)if(R=S.pop(),E=R[0],R=R[1],E.childNodes_[R].isEmpty())delete E.childNodes_[R];else break;return k};
_.I.clone=function(){return new Ci(this)};
_.I.getCount=function(){return AzT(this.getValues())};
_.I.isEmpty=function(){return this.JSC$19808_value_===void 0&&_.fO.isEmpty(this.childNodes_)};var C_x=function(){if(!M_A){var k=M_A=new Ci,E;for(E in q6a)k.add(E,q6a[E])}},M_A,k1=function(k,E){this.types=k;
this.setters=E},q6a={a:new k1([3,
0],[function(k,E){_.w7(k,21,E)},
function(k,E){_.Y7(k,56,E)}]),
al:new k1([3],[function(k,E){_.w7(k,74,E)}]),
b:new k1([3,0],[function(k,E){_.w7(k,23,E)},
function(k,E){_.Y7(k,38,E)}]),
ba:new k1([0],[function(k,E){_.Y7(k,85,E)}]),
bc:new k1([0],[function(k,E){_.Y7(k,87,E)}]),
br:new k1([0],[function(k,E){_.Y7(k,86,E)}]),
c:new k1([3,0],[function(k,E){_.w7(k,2,E)},
function(k,E){_.Y7(k,39,E)}]),
cc:new k1([3],[function(k,E){_.w7(k,51,E)}]),
ci:new k1([3],[function(k,E){_.w7(k,32,E)}]),
ckm:new k1([3],[function(k,E){_.w7(k,104,E)}]),
cp:new k1([0],[function(k,E){_.Y7(k,92,E)}]),
cr:new k1([3],[function(k,E){_.w7(k,108,E)}]),
cv:new k1([0],[function(k,E){_.Y7(k,94,E)}]),
d:new k1([3],[function(k,E){_.w7(k,3,E)}]),
dc:new k1([5],[function(k,E){_.uh(k,99,E)}]),
df:new k1([3],[function(k,E){_.w7(k,80,E)}]),
dv:new k1([3],[function(k,E){_.w7(k,90,E)}]),
e:new k1([0],[function(k,E){_.Y7(k,15,E)}]),
em:new k1([0],[function(k,E){_.Y7(k,107,E)}]),
f:new k1([4],[function(k,E){_.uh(k,16,E)}]),
fg:new k1([3],[function(k,E){_.w7(k,34,E)}]),
fh:new k1([3],[function(k,E){_.w7(k,30,E)}]),
fm:new k1([3],[function(k,E){_.w7(k,84,E)}]),
fo:new k1([2],[function(k,E){_.PV(k,79,_.qp(E))}]),
ft:new k1([3],[function(k,E){_.w7(k,50,E)}]),
fv:new k1([3],[function(k,E){_.w7(k,31,E)}]),
g:new k1([3],[function(k,E){_.w7(k,14,E)}]),
gce:new k1([4],[function(k,E){_.uh(k,112,E)}]),
gd:new k1([3],[function(k,E){_.w7(k,83,E)}]),
gm:new k1([3],[function(k,E){_.w7(k,105,E)}]),
h:new k1([3,0],[function(k,E){_.w7(k,4,E)},
function(k,E){_.Y7(k,13,E)}]),
i:new k1([3],[function(k,E){_.w7(k,22,E)}]),
ic:new k1([0],[function(k,E){_.Y7(k,71,E)}]),
id:new k1([3],[function(k,E){_.w7(k,70,E)}]),
il:new k1([3],[function(k,E){_.w7(k,96,E)}]),
ip:new k1([3],[function(k,E){_.w7(k,54,E)}]),
iv:new k1([0],[function(k,E){_.AD(k,75,E)}]),
j:new k1([1],[function(k,E){E=E==null?E:nTA(E);_.PV(k,29,E)}]),
k:new k1([3,0],[function(k,E){_.w7(k,17,E)},
function(k,E){_.Y7(k,42,E)}]),
l:new k1([0],[function(k,E){_.Y7(k,44,E)}]),
lf:new k1([3],[function(k,E){_.w7(k,65,E)}]),
lo:new k1([3],[function(k,E){_.w7(k,97,E)}]),
m:new k1([0],[function(k,E){_.Y7(k,63,E)}]),
md:new k1([3],[function(k,E){_.w7(k,91,E)}]),
mm:new k1([4],[function(k,E){_.uh(k,81,E)}]),
mo:new k1([3],[function(k,E){_.w7(k,73,E)}]),
mp:new k1([0],[function(k,E){_.Y7(k,115,E)}]),
mv:new k1([3],[function(k,E){_.w7(k,66,E)}]),
n:new k1([3],[function(k,E){k.setCenterCrop(E)}]),
nc:new k1([3],[function(k,E){_.w7(k,55,E)}]),
nd:new k1([3],[function(k,E){_.w7(k,53,E)}]),
ng:new k1([3],[function(k,E){_.w7(k,95,E)}]),
ngm:new k1([3],[function(k,E){_.w7(k,106,E)}]),
no:new k1([3],[function(k,E){_.w7(k,37,E)}]),
ns:new k1([3],[function(k,E){_.w7(k,40,E)}]),
nt0:new k1([4],[function(k,E){_.uh(k,36,E)}]),
ntm:new k1([3],[function(k,E){_.w7(k,114,E)}]),
nu:new k1([3],[function(k,E){_.w7(k,46,E)}]),
nw:new k1([3],[function(k,E){_.w7(k,48,E)}]),
o:new k1([1,3],[function(k,E){E=E==null?E:nTA(E);_.PV(k,7,E)},
function(k,E){_.w7(k,27,E)}]),
p:new k1([3,0],[function(k,E){_.w7(k,19,E)},
function(k,E){_.Y7(k,43,E)}]),
pa:new k1([3],[function(k,E){_.w7(k,61,E)}]),
pc:new k1([0],[function(k,E){_.Y7(k,88,E)}]),
pd:new k1([3],[function(k,E){_.w7(k,60,E)}]),
pf:new k1([3],[function(k,E){_.w7(k,67,E)}]),
pg:new k1([3],[function(k,E){_.w7(k,72,E)}]),
pi:new k1([2],[function(k,E){_.PV(k,76,_.qp(E))}]),
pp:new k1([3],[function(k,E){_.w7(k,52,E)}]),
pt:new k1([4],[function(k,E){_.uh(k,111,E)}]),
q:new k1([4],[function(k,E){_.uh(k,28,E)}]),
r:new k1([3,0],[function(k,E){_.w7(k,6,E)},
function(k,E){_.Y7(k,26,E)}]),
ra:new k1([3],[function(k,E){_.w7(k,103,E)}]),
rf:new k1([3],[function(k,E){_.w7(k,100,E)}]),
rg:new k1([3],[function(k,E){_.w7(k,59,E)}]),
rh:new k1([3],[function(k,E){_.w7(k,49,E)}]),
rj:new k1([3],[function(k,E){_.w7(k,57,E)}]),
ro:new k1([2],[function(k,E){_.PV(k,78,_.qp(E))}]),
rp:new k1([3],[function(k,E){_.w7(k,58,E)}]),
rw:new k1([3],[function(k,E){_.w7(k,35,E)}]),
rwa:new k1([3],[function(k,E){_.w7(k,64,E)}]),
rwu:new k1([3],[function(k,E){_.w7(k,41,E)}]),
s:new k1([3,0],[function(k,E){_.w7(k,33,E)},
function(k,E){k.setSize(E)}]),
sb:new k1([0],[function(k,E){_.Y7(k,110,E)}]),
sc:new k1([0],[function(k,E){_.Y7(k,89,E)}]),
sg:new k1([3],[function(k,E){_.w7(k,82,E)}]),
sl:new k1([0],[function(k,E){_.Y7(k,109,E)}]),
sm:new k1([3],[function(k,E){_.w7(k,93,E)}]),
t:new k1([4],[function(k,E){k.setToken(E)}]),
tm:new k1([3],[function(k,E){_.w7(k,113,E)}]),
u:new k1([3],[function(k,E){_.w7(k,18,E)}]),
ut:new k1([3],[function(k,E){_.w7(k,45,E)}]),
v:new k1([0],[function(k,E){_.Y7(k,62,E)}]),
vb:new k1([0],[function(k,E){_.AD(k,68,E)}]),
vf:new k1([4],[function(k,E){_.uh(k,102,E)}]),
vl:new k1([0],[function(k,E){_.AD(k,69,E)}]),
vm:new k1([3],[function(k,E){_.w7(k,98,E)}]),
w:new k1([0],[function(k,E){_.Y7(k,12,E)}]),
x:new k1([0],[function(k,E){_.Y7(k,9,E)}]),
y:new k1([0],[function(k,E){_.Y7(k,10,E)}]),
ya:new k1([2],[function(k,E){_.PV(k,77,_.qp(E))}]),
z:new k1([0],[function(k,E){_.Y7(k,11,E)}])};
C_x.prototype.parse=function(k){var E=new bK0,S=new bK0;if(k=="")k=!0;else{k=k.split("-");for(var R=!0,V=0;V<k.length;V++){var N=k[V];if(N.length==0)R=!1;else{var h=N,J=!1;var m=h;var a=h.charAt(0);a!=a.toLowerCase()&&(J=!0,m=h.charAt(0).toLowerCase()+h.substring(1));var T=M_A;for(a=1;a<=m.length;++a){var w=T,P=m.substring(0,a);if(P.length==0?w.isEmpty():!dzR(w,P))break}m=a==1?null:(m=T.get(m.substring(0,a-1)))?{option:h.substring(0,a-1),value:h.substring(a-1),signed:J,attributes:m}:null;if(m){h=
[];J=[];a=!1;for(T=0;T<m.attributes.types.length;T++){w=m.attributes.types[T];var B=m.value;P=V;if(m.signed&&w==1)for(var F=B.length;F<12&&P<k.length-1;)B+="-"+k[P+1],F=B.length,++P;else if(w==2)for(;P<k.length-1&&k[P+1].match(/^[\d\.]/);)B+="-"+k[P+1],++P;F=m.attributes.setters[T];B=zKG(this,w)(m.option,B,E,S,F);if(B===null){a=!0;V=P;break}else h.push(w),J.push(B)}if(!a)for(m=0;m<J.length;m++)T=h[m],B=J[m],QJA(this,T)(N,B);R=R&&a}else R=!1}}k=R}return new OKP(E,S,k)};
var GgY=function(k,E,S,R,V,N){V(S,E);k=k.charAt(0);N=N(k==k.toUpperCase());V(R,N)};
_.I=C_x.prototype;_.I.parseAndSetIntOption_=function(k,E,S,R,V){if(E=="")return 0;isFinite(E)&&(E=String(E));E=typeof E==="string"?/^\s*-?0x/i.test(E)?parseInt(E,16):parseInt(E,10):NaN;if(isNaN(E))return 1;GgY(k,E,S,R,V,Number);return null};
_.I.logIntParseError_=function(){};
_.I.parseAndSetFloatOption_=function(k,E,S,R,V){if(E=="")return 0;var N=Number(E);E=N==0&&_.Jh(E)?NaN:N;if(isNaN(E))return 1;GgY(k,E,S,R,V,Number);return null};
_.I.logFloatParseError_=function(){};
_.I.parseAndSetBoolOption_=function(k,E,S,R,V){if(E!="")return 2;GgY(k,!0,S,R,V,Boolean);return null};
_.I.logBoolParseError_=function(){};
_.I.parseAndSetStringOption_=function(k,E,S,R,V){if(E=="")return 0;GgY(k,E,S,R,V,function(N){return N?"1":""});
return null};
_.I.logStringParseError_=function(){};
_.I.parseAndSetUint64Base64Option_=function(k,E,S,R,V){if(E=="")return 0;GgY(k,E,S,R,V,function(N){return N?1:0});
return null};
var zKG=function(k,E){switch(E){case 0:return(0,_.uk)(k.parseAndSetIntOption_,k);case 2:return(0,_.uk)(k.parseAndSetFloatOption_,k);case 3:return(0,_.uk)(k.parseAndSetBoolOption_,k);case 4:return(0,_.uk)(k.parseAndSetStringOption_,k);case 1:return(0,_.uk)(k.parseAndSetUint64Base64Option_,k);default:return function(){}}},QJA=function(k,E){switch(E){case 0:return(0,_.uk)(k.logIntParseError_,k);
case 2:return(0,_.uk)(k.logFloatParseError_,k);case 3:return(0,_.uk)(k.logBoolParseError_,k);case 4:case 1:return(0,_.uk)(k.logStringParseError_,k);default:return function(){}}},OKP=function(k,E,S){this.valueProto_=k;
this.signatureFlagProto_=E;this.JSC$19820_valid_=S};
OKP.prototype.isValid=function(){return this.JSC$19820_valid_};var z8W=function(k){this.JSC$19821_parser_=null;this.JSC$19821_components_=[];this.JSC$19821_parsedOptions_=null;C3U(this,k)},k7U=function(k){k.JSC$19821_parser_==null&&(k.JSC$19821_parser_=new C_x);
return k.JSC$19821_parser_},C3U=function(k,E){k.JSC$19821_parsedOptions_=E?typeof E==="string"?k7U(k).parse(E):E:k7U(k).parse("")},ET=function(k,E){return k==E?!1:!0};
_.I=z8W.prototype;_.I.JSC$19823_setCrop=function(k){k=k||void 0;var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,_.mV(S,2),_.mV(E.signatureFlagProto_,2))&&_.w7(S,2,k);return this};
_.I.JSC$19823_setCircleCrop=function(k){k=k||void 0;var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,a6(S,51),a6(E.signatureFlagProto_,51))&&_.w7(S,51,k);return this};
_.I.JSC$19823_setImageCrop=function(k){k=k||void 0;var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,a6(S,32),a6(E.signatureFlagProto_,32))&&_.w7(S,32,k);return this};
_.I.JSC$19823_setHeight=function(k){var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,S.getHeight(),E.signatureFlagProto_.getHeight())&&_.Y7(S,13,k);return this};
_.I.setCenterCrop=function(k){k=k||void 0;var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,_.mV(S,20),_.mV(E.signatureFlagProto_,20))&&S.setCenterCrop(k);return this};
_.I.JSC$19823_setSmartCrop=function(k){k=k||void 0;var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,_.mV(S,19),_.mV(E.signatureFlagProto_,19))&&_.w7(S,19,k);return this};
_.I.JSC$19823_setPad=function(k){k=k||void 0;var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,a6(S,60),a6(E.signatureFlagProto_,60))&&_.w7(S,60,k);return this};
_.I.JSC$19823_setSmartCropUseFace=function(k){k=k||void 0;var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,_.mV(S,67),_.mV(E.signatureFlagProto_,67))&&_.w7(S,67,k);return this};
_.I.JSC$19823_setSmartCropNoClip=function(k){k=k||void 0;var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,_.mV(S,52),_.mV(E.signatureFlagProto_,52))&&_.w7(S,52,k);return this};
_.I.setSize=function(k){var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,S.getSize(),E.signatureFlagProto_.getSize())&&S.setSize(k);return this};
_.I.setToken=function(k){k=k||void 0;var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,S.getToken(),E.signatureFlagProto_.getToken())&&S.setToken(k);return this};
_.I.JSC$19823_setWidth=function(k){var E=this.JSC$19821_parsedOptions_,S=E.valueProto_;ET(k,S.getWidth(),E.signatureFlagProto_.getWidth())&&_.Y7(S,12,k);return this};
_.I.clearOptions=function(){C3U(this,"");return this};
_.I.build=function(){this.JSC$19821_components_.length=0;var k=this.JSC$19821_parsedOptions_,E=k.valueProto_;k=k.signatureFlagProto_;Sb(this,"s",E.getSize(),k.getSize());Sb(this,"w",E.getWidth(),k.getWidth());RY(this,"c",_.mV(E,2),_.mV(k,2));RY(this,"d",_.mV(E,3),_.mV(k,3));Sb(this,"h",E.getHeight(),k.getHeight());RY(this,"s",a6(E,33),a6(k,33));RY(this,"h",E.getHtml(),k.getHtml());RY(this,"p",_.mV(E,19),_.mV(k,19));RY(this,"pp",_.mV(E,52),_.mV(k,52));RY(this,"pf",_.mV(E,67),_.mV(k,67));RY(this,"n",
_.mV(E,20),_.mV(k,20));Sb(this,"r",tl(E,26),tl(k,26));RY(this,"r",_.mV(E,6),_.mV(k,6));RY(this,"o",a6(E,27),a6(k,27));var S=_.cS(E,7,_.Sz);VC(this,"o",S,_.cS(k,7,_.Sz));S=_.cS(E,29,_.Sz);VC(this,"j",S,_.cS(k,29,_.Sz));Sb(this,"x",tl(E,9),tl(k,9));Sb(this,"y",tl(E,10),tl(k,10));Sb(this,"z",tl(E,11),tl(k,11));RY(this,"g",_.mV(E,14),_.mV(k,14));Sb(this,"e",tl(E,15),tl(k,15));VC(this,"f",_.Xb(E,16),_.Xb(k,16));RY(this,"k",a6(E,17),a6(k,17));RY(this,"u",a6(E,18),!0);RY(this,"ut",a6(E,45),!0);RY(this,"i",
a6(E,22),!0);RY(this,"a",a6(E,21),a6(k,21));RY(this,"b",_.mV(E,23),_.mV(k,23));Sb(this,"b",tl(E,38),tl(k,38));Sb(this,"c",tl(E,39),tl(k,39),16,8);VC(this,"q",_.Xb(E,28),_.Xb(k,28));RY(this,"fh",a6(E,30),a6(k,30));RY(this,"fv",a6(E,31),a6(k,31));RY(this,"fg",_.mV(E,34),_.mV(k,34));RY(this,"ci",a6(E,32),a6(k,32));VC(this,"t",E.getToken(),k.getToken());VC(this,"nt0",_.Xb(E,36),_.Xb(k,36));RY(this,"rw",_.mV(E,35),_.mV(k,35));RY(this,"rwu",_.mV(E,41),_.mV(k,41));RY(this,"rwa",_.mV(E,64),_.mV(k,64));RY(this,
"nw",_.mV(E,48),_.mV(k,48));RY(this,"rh",_.mV(E,49),_.mV(k,49));RY(this,"no",_.mV(E,37),_.mV(k,37));RY(this,"ns",a6(E,40),a6(k,40));Sb(this,"k",tl(E,42),tl(k,42));Sb(this,"p",tl(E,43),tl(k,43));Sb(this,"l",tl(E,44),tl(k,44));Sb(this,"v",tl(E,62),tl(k,62));RY(this,"nu",a6(E,46),a6(k,46));RY(this,"ft",a6(E,50),a6(k,50));RY(this,"cc",a6(E,51),a6(k,51));RY(this,"nd",a6(E,53),a6(k,53));RY(this,"ip",a6(E,54),a6(k,54));RY(this,"nc",a6(E,55),a6(k,55));Sb(this,"a",tl(E,56),tl(k,56));RY(this,"rj",a6(E,57),
a6(k,57));RY(this,"rp",a6(E,58),a6(k,58));RY(this,"rg",a6(E,59),a6(k,59));RY(this,"pd",a6(E,60),a6(k,60));RY(this,"pa",a6(E,61),a6(k,61));Sb(this,"m",tl(E,63),tl(k,63));Sb(this,"vb",Tr(E,68),Tr(k,68));Sb(this,"vl",Tr(E,69),Tr(k,69));RY(this,"lf",a6(E,65),a6(k,65));RY(this,"mv",a6(E,66),a6(k,66));RY(this,"id",a6(E,70),a6(k,70));Sb(this,"ic",tl(E,71),!0);RY(this,"pg",_.mV(E,72),_.mV(k,72));RY(this,"mo",a6(E,73),a6(k,73));RY(this,"al",a6(E,74),a6(k,74));Sb(this,"iv",Tr(E,75),Tr(k,75));Sb(this,"pi",wz(E,
76),wz(k,76));Sb(this,"ya",wz(E,77),wz(k,77));Sb(this,"ro",wz(E,78),wz(k,78));Sb(this,"fo",wz(E,79),wz(k,79));RY(this,"df",a6(E,80),a6(k,80));VC(this,"mm",_.Xb(E,81),_.Xb(k,81));RY(this,"sg",a6(E,82),a6(k,82));RY(this,"gd",a6(E,83),a6(k,83));RY(this,"fm",a6(E,84),a6(k,84));Sb(this,"ba",tl(E,85),tl(k,85));Sb(this,"br",tl(E,86),tl(k,86));Sb(this,"bc",E.getBackgroundColor(),k.getBackgroundColor(),16,8);Sb(this,"pc",tl(E,88),tl(k,88),16,8);Sb(this,"sc",tl(E,89),tl(k,89),16,8);RY(this,"dv",a6(E,90),a6(k,
90));RY(this,"md",a6(E,91),a6(k,91));Sb(this,"cp",tl(E,92),tl(k,92));RY(this,"sm",a6(E,93),a6(k,93));Sb(this,"cv",tl(E,94),tl(k,94));RY(this,"ng",a6(E,95),a6(k,95));RY(this,"il",a6(E,96),a6(k,96));RY(this,"lo",a6(E,97),a6(k,97));RY(this,"vm",a6(E,98),a6(k,98));VC(this,"dc",_.Xb(E,99),_.Xb(k,99));RY(this,"rf",a6(E,100),a6(k,100));VC(this,"vf",_.Xb(E,102),_.Xb(k,102));RY(this,"ra",_.mV(E,103),_.mV(k,103));RY(this,"ckm",a6(E,104),a6(k,104));RY(this,"gm",a6(E,105),a6(k,105));RY(this,"ngm",a6(E,106),a6(k,
106));Sb(this,"em",tl(E,107),tl(k,107));RY(this,"cr",a6(E,108),a6(k,108));Sb(this,"sl",E.getStoryboardLevel(),k.getStoryboardLevel());Sb(this,"sb",tl(E,110),tl(k,110));VC(this,"pt",_.Xb(E,111),_.Xb(k,111));VC(this,"gce",_.Xb(E,112),_.Xb(k,112));RY(this,"tm",a6(E,113),a6(k,113));RY(this,"ntm",a6(E,114),a6(k,114));Sb(this,"mp",tl(E,115),tl(k,115));return this.JSC$19821_components_.join("-")};
var Sb=function(k,E,S,R,V,N){if(S!=null){var h=V==void 0||V!=10&&V!=16?10:V;S=Number(S).toString(h);V=new oTP;V.append(h==16?"0x":"");h=V.append;N==void 0?N="":(N-=S.length,N=N<=0?"":(0,_.bgp)("0",N));h.call(V,N);V.append(S);Eo2(k,E,V.toString(),!!Number(R))}},RY=function(k,E,S,R){S&&Eo2(k,E,"",!!R)},VC=function(k,E,S,R){S&&Eo2(k,E,String(S),!!Number(R))},Eo2=function(k,E,S,R){R&&(E=E.charAt(0).toUpperCase()+E.substring(1));
k.JSC$19821_components_.push(E+S)};_.dy(eJ,z8W);_.I=eJ.prototype;_.I.JSC$19823_setCrop=function(k){k&&Nc(this);return eJ.superClass_.JSC$19823_setCrop.call(this,k)};
_.I.JSC$19823_setHeight=function(k){k=k==null||k<0?void 0:k;k!=null&&this.setSize();return eJ.superClass_.JSC$19823_setHeight.call(this,k)};
_.I.JSC$19823_setImageCrop=function(k){k&&Nc(this);return eJ.superClass_.JSC$19823_setImageCrop.call(this,k)};
_.I.JSC$19823_setCircleCrop=function(k){k&&Nc(this);return eJ.superClass_.JSC$19823_setCircleCrop.call(this,k)};
_.I.setSize=function(k){_.qA(k)&&(k=Math.max(k.width,k.height));k=k==null||k<0?void 0:k;k!=null&&(this.JSC$19823_setWidth(),this.JSC$19823_setHeight());return eJ.superClass_.setSize.call(this,k)};
_.I.JSC$19823_setSmartCrop=function(k){k&&Nc(this);return eJ.superClass_.JSC$19823_setSmartCrop.call(this,k)};
_.I.JSC$19823_setSmartCropNoClip=function(k){k&&Nc(this);return eJ.superClass_.JSC$19823_setSmartCropNoClip.call(this,k)};
_.I.JSC$19823_setSmartCropUseFace=function(k){k&&Nc(this);return eJ.superClass_.JSC$19823_setSmartCropUseFace.call(this,k)};
_.I.setCenterCrop=function(k){k&&Nc(this);return eJ.superClass_.setCenterCrop.call(this,k)};
_.I.JSC$19823_setPad=function(k){k&&Nc(this);return eJ.superClass_.JSC$19823_setPad.call(this,k)};
_.I.JSC$19823_setWidth=function(k){k=k==null||k<0?void 0:k;k!=null&&this.setSize();return eJ.superClass_.JSC$19823_setWidth.call(this,k)};
var S7P=function(k){k.clearOptions();var E=k.JSC$19821_parsedOptions_,S=E.valueProto_;ET(!0,_.mV(S,3),_.mV(E.signatureFlagProto_,3))&&_.w7(S,3,!0);return k},Nc=function(k){k.setCenterCrop();
k.JSC$19823_setCircleCrop();k.JSC$19823_setCrop();k.JSC$19823_setImageCrop();k.JSC$19823_setPad();k.JSC$19823_setSmartCrop();k.JSC$19823_setSmartCropNoClip();k.JSC$19823_setSmartCropUseFace()};
eJ.prototype.build=function(){var k=this.JSC$19821_parsedOptions_.valueProto_;a6(k,18)||a6(k,45)?k.getSize()||this.setSize(0):(k=this.JSC$19821_parsedOptions_.valueProto_,k.getSize()||k.getWidth()||k.getHeight()||(this.setSize(),this.JSC$19823_setHeight(),this.JSC$19823_setWidth(),Nc(this)));return eJ.superClass_.build.call(this)};var Rft=/^[^\/]*\/\//,VKU=function(k,E){E=E===void 0?!1:E;this.original_=k;this.originalPrefix_="";(k=this.original_.match(Rft))&&k[0]?(this.originalPrefix_=k[0],k=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):k="http://"+this.original_;this.uri_=_.Gx(k,!0);this.isFreeformUrl_=E;this.JSC$19827_valid_=!0;this.obfuscated_=!1},N_3=function(k,E){k.JSC$19829_pathPrefix_=k.JSC$19829_pathPrefix_?k.JSC$19829_pathPrefix_+("/"+E):E},IY=function(k){if(k.JSC$19829_components_==
void 0){var E=k.uri_.getPath().substring(1);
k.JSC$19829_pathPrefix_=null;if(k.isFreeformUrl_){k.JSC$19829_components_=[];if((E.match(/=/g)||[]).length>1)return k.JSC$19827_valid_=!1,k.JSC$19829_components_;var S=E.indexOf("=");S!=-1?(k.JSC$19829_components_.push(E.substr(0,S)),k.JSC$19829_components_.push(E.substr(S+1))):k.JSC$19829_components_.push(E);return k.JSC$19829_components_}k.JSC$19829_components_=E.split("/");E=k.JSC$19829_components_.length;E>2&&k.JSC$19829_components_[0]=="u"&&(N_3(k,k.JSC$19829_components_[0]+"/"+k.JSC$19829_components_[1]),
k.JSC$19829_components_.shift(),k.JSC$19829_components_.shift(),E-=2);if(E==0||E==4||E>7)return k.JSC$19827_valid_=!1,k.JSC$19829_components_;if(E==2)N_3(k,k.JSC$19829_components_[0]);else if(k.JSC$19829_components_[0]=="image")N_3(k,k.JSC$19829_components_[0]);else if(E==7||E==3)return k.JSC$19827_valid_=!1,k.JSC$19829_components_;if(E<=3){k.obfuscated_=!0;E==3&&(N_3(k,k.JSC$19829_components_[1]),k.JSC$19829_components_.shift(),--E);--E;S=k.JSC$19829_components_[E];var R=S.indexOf("=");R!=-1&&(k.JSC$19829_components_[E]=
S.substr(0,R),k.JSC$19829_components_.push(S.substr(R+1)))}}return k.JSC$19829_components_};
VKU.prototype.isValid=function(){IY(this);return this.JSC$19827_valid_};
VKU.prototype.isObfuscated=function(){IY(this);return this.obfuscated_};
var IaW=function(k){IY(k);return k.isFreeformUrl_},n_=function(k){IY(k);
k.JSC$19829_pathPrefix_==void 0&&(k.JSC$19829_pathPrefix_=null);return k.JSC$19829_pathPrefix_},noU=function(k){switch(IY(k).length){case 7:return!0;
case 6:return n_(k)==null;case 5:return!1;case 3:return!0;case 2:return n_(k)==null;case 1:return!1;default:return!1}},iP=function(k,E){if(IaW(k))a:{switch(E){case 7:E=0;
break;case 4:if(!noU(k)){k=null;break a}E=1;break;default:k=null;break a}k=IY(k)[E]}else if(k.isObfuscated())a:{var S=n_(k)!=null?1:0;switch(E){case 6:E=S;break;case 4:if(!noU(k)){k=null;break a}E=1+S;break;default:k=null;break a}k=IY(k)[E]}else a:{S=n_(k)!=null?1:0;switch(E){case 0:E=S;break;case 1:E=1+S;break;case 2:E=2+S;break;case 3:E=3+S;break;case 4:if(!noU(k)){k=null;break a}E=4+S;break;case 5:E=noU(k)?1:0;E=4+S+E;break;default:k=null;break a}k=IY(k)[E]}return k};
VKU.prototype.getOptions=function(){this.options_==void 0&&(this.options_=iP(this,4));return this.options_};var GZa=function(){};
GZa.prototype.parse=function(k,E){return new QZ3(k,E===void 0?!1:E)};
var QZ3=function(k,E){VKU.call(this,k,E===void 0?!1:E)};
_.y(QZ3,VKU);_.dy(aU,eJ);var OU3;aU.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
aU.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var k=aU.superClass_.build.call(this),E=[];n_(this.parsedImageUrl_)!=null&&E.push(n_(this.parsedImageUrl_));var S=IaW(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var R=this.parsedImageUrl_;R.obfuscatedData_==void 0&&(R.obfuscatedData_=iP(R,6));E.push(R.obfuscatedData_+(k?"="+k:""))}else if(S){R=E.push;var V=this.parsedImageUrl_;V.freeformUrlPath_===void 0&&(V.freeformUrlPath_=iP(V,
7));R.call(E,V.freeformUrlPath_);k&&E.push(k)}else R=E.push,V=this.parsedImageUrl_,V.obfuscatedGaiaId_==void 0&&(V.obfuscatedGaiaId_=iP(V,0)),R.call(E,V.obfuscatedGaiaId_),R=E.push,V=this.parsedImageUrl_,V.photoId_==void 0&&(V.photoId_=iP(V,1)),R.call(E,V.photoId_),R=E.push,V=this.parsedImageUrl_,V.imageVersion_==void 0&&(V.imageVersion_=iP(V,2)),R.call(E,V.imageVersion_),R=E.push,V=this.parsedImageUrl_,V.signature_==void 0&&(V.signature_=iP(V,3)),R.call(E,V.signature_),k&&E.push(k),k=E.push,R=this.parsedImageUrl_,
R.filename_==void 0&&(R.filename_=iP(R,5)),k.call(E,R.filename_);E=S?E.join("="):E.join("/");E=_.Gx(this.protocolPrefix_+this.JSC$19835_domain_+"/"+E+(this.JSC$19835_query_?"?"+this.JSC$19835_query_:"")).toString();E.startsWith("%3a//")&&(E=E.replace("%3a//","://"));return E};var iwT=_.ry(["viewBox"]),hft=_.ry(["width"]),J10=_.ry(["height"]),c1t=_.ry(["fill"]),mFU=_.ry(["id"]),efR=_.ry(["x"]),aaa=_.ry(["y"]);kc3.prototype.getLength=function(){return this.parsedData.length};
kc3.prototype.write=function(k){for(var E=0,S=this.parsedData.length;E<S;E++)k.put(this.parsedData[E],8)};
var nhI=function(k,E){var S=new kc3(E);k.dataList.push(S);S=k.errorCorrectLevel;var R=1,V=encodeURI(E).toString().replace(/%[0-9a-fA-F]{2}/g,"a");E=V.length+(V.length!=E?3:0);V=0;for(var N=hL.length;V<=N;V++){var h=0;switch(S){case 1:h=hL[V][0];break;case 0:h=hL[V][1];break;case 3:h=hL[V][2];break;case 2:h=hL[V][3]}if(E<=h)break;else R++}if(R>hL.length)throw Error("Nk");k.typeNumber=R;k.dataCache=null};
EhY.prototype.isDark=function(k,E){if(k<0||this.moduleCount<=k||E<0||this.moduleCount<=E)throw Error("Fk`"+k+"`"+E);return this.modules[k][E]};
for(var i53=function(k,E,S){k.moduleCount=k.typeNumber*4+17;k.modules=Array(k.moduleCount);for(var R=0;R<k.moduleCount;R++){k.modules[R]=Array(k.moduleCount);for(var V=0;V<k.moduleCount;V++)k.modules[R][V]=null}tKY(k,0,0);tKY(k,k.moduleCount-7,0);tKY(k,0,k.moduleCount-7);R=T_t[k.typeNumber-1];for(V=0;V<R.length;V++)for(var N=0;N<R.length;N++){var h=R[V],J=R[N];if(k.modules[h][J]==null)for(var m=-2;m<=2;m++)for(var a=-2;a<=2;a++)k.modules[h+m][J+a]=m==-2||m==2||a==-2||a==2||m==0&&a==0?!0:!1}for(R=
8;R<k.moduleCount-8;R++)k.modules[R][6]==null&&(k.modules[R][6]=R%2==0);for(R=8;R<k.moduleCount-8;R++)k.modules[6][R]==null&&(k.modules[6][R]=R%2==0);R=k.errorCorrectLevel<<3|S;for(V=R<<10;JL(V)-JL(1335)>=0;)V^=1335<<JL(V)-JL(1335);R=(R<<10|V)^21522;for(V=0;V<15;V++)N=!E&&(R>>V&1)==1,V<6?k.modules[V][8]=N:V<8?k.modules[V+1][8]=N:k.modules[k.moduleCount-15+V][8]=N;for(V=0;V<15;V++)N=!E&&(R>>V&1)==1,V<8?k.modules[8][k.moduleCount-V-1]=N:V<9?k.modules[8][15-V-1+1]=N:k.modules[8][15-V-1]=N;k.modules[k.moduleCount-
8][8]=!E;if(k.typeNumber>=7){R=k.typeNumber;for(V=R<<12;JL(V)-JL(7973)>=0;)V^=7973<<JL(V)-JL(7973);R=R<<12|V;for(V=0;V<18;V++)N=!E&&(R>>V&1)==1,k.modules[Math.floor(V/3)][V%3+k.moduleCount-8-3]=N;for(V=0;V<18;V++)N=!E&&(R>>V&1)==1,k.modules[V%3+k.moduleCount-8-3][Math.floor(V/3)]=N}if(k.dataCache==null){V=k.typeNumber;N=k.dataList;E=k.errorCorrectLevel;R=wqa(V,E);if(R==void 0)throw Error("Mk`"+V+"`"+E);h=R.length/3;E=[];for(J=0;J<h;J++){m=R[J*3];a=R[J*3+1];for(var T=R[J*3+2],w=0;w<m;w++)E.push(new SfP(a,
T))}R=new Rv0;for(h=0;h<N.length;h++)J=N[h],R.put(J.mode,4),R.put(J.getLength(),PfW(J.mode,V)),J.write(R);for(h=V=0;h<E.length;h++)V+=E[h].dataCount;if(R.length>V*8)throw Error("Gk`"+R.length+"`"+V*8);for(R.length+4<=V*8&&R.put(0,4);R.length%8!=0;)B_t(R,!1);for(;!(R.length>=V*8);){R.put(236,8);if(R.length>=V*8)break;R.put(17,8)}N=V=a=0;h=Array(E.length);J=Array(E.length);for(m=0;m<E.length;m++){w=E[m].dataCount;var P=E[m].totalCount-w;V=Math.max(V,w);N=Math.max(N,P);h[m]=Array(w);for(T=0;T<h[m].length;T++)h[m][T]=
255&R.buffer[T+a];a+=w;T=P;w=new te([1],0);for(P=0;P<T;P++)w=w.multiply(new te([1,Y72(P)],0));T=w;w=(new te(h[m],T.getLength()-1)).mod(T);J[m]=Array(T.getLength()-1);for(T=0;T<J[m].length;T++)P=T+w.getLength()-J[m].length,J[m][T]=P>=0?w.get(P):0}for(T=R=0;T<E.length;T++)R+=E[T].totalCount;R=Array(R);for(T=a=0;T<V;T++)for(m=0;m<E.length;m++)T<h[m].length&&(R[a++]=h[m][T]);for(T=0;T<N;T++)for(m=0;m<E.length;m++)T<J[m].length&&(R[a++]=J[m][T]);k.dataCache=R}E=k.dataCache;R=-1;V=k.moduleCount-1;N=7;h=
0;for(J=k.moduleCount-1;J>0;J-=2)for(J==6&&J--;;){for(m=0;m<2;m++)k.modules[V][J-m]==null&&(a=!1,h<E.length&&(a=(E[h]>>>N&1)==1),W2A(S,V,J-m)&&(a=!a),k.modules[V][J-m]=a,N--,N==-1&&(h++,N=7));V+=R;if(V<0||k.moduleCount<=V){V-=R;R=-R;break}}},tKY=function(k,E,S){for(var R=-1;R<=7;R++)if(!(E+R<=-1||k.moduleCount<=E+R))for(var V=-1;V<=7;V++)S+V<=-1||k.moduleCount<=S+V||(k.modules[E+R][S+V]=0<=R&&R<=6&&(V==0||V==6)||0<=V&&V<=6&&(R==0||R==6)||2<=R&&R<=4&&2<=V&&V<=4?!0:!1)},hvU=function(k){for(var E=0,
S=0,R=0;R<8;R++){i53(k,!0,R);
var V=k;for(var N=V.moduleCount,h=0,J=0;J<N;J++)for(var m=0;m<N;m++){for(var a=0,T=V.isDark(J,m),w=-1;w<=1;w++)if(!(J+w<0||N<=J+w))for(var P=-1;P<=1;P++)m+P<0||N<=m+P||(w!=0||P!=0)&&T==V.isDark(J+w,m+P)&&a++;a>5&&(h+=3+a-5)}for(J=0;J<N-1;J++)for(m=0;m<N-1;m++)if(a=0,V.isDark(J,m)&&a++,V.isDark(J+1,m)&&a++,V.isDark(J,m+1)&&a++,V.isDark(J+1,m+1)&&a++,a==0||a==4)h+=3;for(J=0;J<N;J++)for(m=0;m<N-6;m++)V.isDark(J,m)&&!V.isDark(J,m+1)&&V.isDark(J,m+2)&&V.isDark(J,m+3)&&V.isDark(J,m+4)&&!V.isDark(J,m+5)&&
V.isDark(J,m+6)&&(h+=40);for(m=0;m<N;m++)for(J=0;J<N-6;J++)V.isDark(J,m)&&!V.isDark(J+1,m)&&V.isDark(J+2,m)&&V.isDark(J+3,m)&&V.isDark(J+4,m)&&!V.isDark(J+5,m)&&V.isDark(J+6,m)&&(h+=40);for(m=a=0;m<N;m++)for(J=0;J<N;J++)V.isDark(J,m)&&a++;V=h+=Math.abs(100*a/N/N-50)/5*10;if(R==0||E>V)E=V,S=R}return S},T_t=[[],
[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]],JL=function(k){for(var E=0;k!=0;)E++,k>>>=1;return E},W2A=function(k,E,S){switch(k){case 0:return(E+S)%2==0;
case 1:return E%2==0;case 2:return S%3==0;case 3:return(E+S)%3==0;case 4:return(Math.floor(E/2)+Math.floor(S/3))%2==0;case 5:return E*S%2+E*S%3==0;case 6:return(E*S%2+E*S%3)%2==0;case 7:return(E*S%3+(E+S)%2)%2==0;default:throw Error("Hk`"+k);}},PfW=function(k,E){if(1<=E&&E<10)switch(k){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Ik`"+k);}else if(E<27)switch(k){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Ik`"+k);}else if(E<41)switch(k){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Ik`"+k);}else throw Error("Jk`"+E);},y13=function(k){if(k<1)throw Error("Kk`"+k);
return F20[k]},Y72=function(k){for(;k<0;)k+=255;
for(;k>=256;)k-=255;return c2[k]},c2=Array(256),F20=Array(256),ooa=0;ooa<8;ooa++)c2[ooa]=1<<ooa;
for(var mm=8;mm<256;mm++)c2[mm]=c2[mm-4]^c2[mm-5]^c2[mm-6]^c2[mm-8];for(var XqW=0;XqW<255;XqW++)F20[c2[XqW]]=XqW;te.prototype.get=function(k){return this.num[k]};
te.prototype.getLength=function(){return this.num.length};
te.prototype.multiply=function(k){for(var E=Array(this.getLength()+k.getLength()-1),S=0;S<this.getLength();S++)for(var R=0;R<k.getLength();R++)E[S+R]^=Y72(y13(this.get(S))+y13(k.get(R)));return new te(E,0)};
te.prototype.mod=function(k){if(this.getLength()-k.getLength()<0)return this;for(var E=y13(this.get(0))-y13(k.get(0)),S=Array(this.getLength()),R=0;R<this.getLength();R++)S[R]=this.get(R);for(R=0;R<k.getLength();R++)S[R]^=Y72(y13(k.get(R))+E);return(new te(S,0)).mod(k)};
var go3=[[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]],wqa=function(k,E){switch(E){case 1:return go3[(k-1)*4];case 0:return go3[(k-1)*4+1];case 3:return go3[(k-1)*4+2];case 2:return go3[(k-1)*4+3]}};
Rv0.prototype.get=function(k){return(this.buffer[Math.floor(k/8)]>>>7-k%8&1)==1};
Rv0.prototype.put=function(k,E){for(var S=0;S<E;S++)B_t(this,(k>>>E-S-1&1)==1)};
var B_t=function(k,E){var S=Math.floor(k.length/8);k.buffer.length<=S&&k.buffer.push(0);E&&(k.buffer[S]|=128>>>k.length%8);k.length++},hL=[[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]],Igx=function(){var k=function(E,S){this.JSC$19855__el=E;this.JSC$19855__htOption=S};
k.prototype.draw=function(E){function S(T,w){T=document.createElementNS("http://www.w3.org/2000/svg",T);for(var P in w)w.hasOwnProperty(P)&&(P==="href"?_.HZ3(T,w[P]):_.hE([_.To(iwT),_.To(hft),_.To(J10),_.To(c1t),_.To(mFU),_.To(efR),_.To(aaa)],T,P,w[P]));return T}
var R=this.JSC$19855__htOption,V=this.JSC$19855__el,N=E.moduleCount;this.clear();var h=S("svg",{viewBox:"0 0 "+String(N)+" "+String(N),width:"100%",height:"100%",fill:R.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});V.appendChild(h);h.appendChild(S("rect",{fill:R.colorLight,width:"100%",height:"100%"}));h.appendChild(S("rect",{fill:R.colorDark,width:"1",height:"1",id:"template"}));for(var J=0;J<N;J++)for(var m=0;m<N;m++)if(E.isDark(J,m)){var a=S("use",{x:String(J),y:String(m),href:"#template"});
h.appendChild(a)}};
k.prototype.clear=function(){for(;this.JSC$19855__el.hasChildNodes();)this.JSC$19855__el.removeChild(this.JSC$19855__el.lastChild)};
return k}(),NdT=document.documentElement.tagName.toLowerCase()==="svg"?Igx:typeof CanvasRenderingContext2D!="undefined"?function(){var k=function(E,S){this._bIsPainted=!1;
VqY();this.JSC$19855__htOption=S;this._elCanvas=document.createElement("canvas");this._elCanvas.width=S.width;this._elCanvas.height=S.height;E.appendChild(this._elCanvas);this.JSC$19855__el=E;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$19855__el.appendChild(this._elImage);this._bSupportDataURI=null};
k.prototype._onMakeImage=function(){var E=this._elCanvas.toDataURL("image/png");this._elImage.src=E;this._elImage.style.display="block";this._elCanvas.style.display="none"};
k.prototype._safeSetDataURI=function(E,S){var R=this;R._fFail=S;R._fSuccess=E;R._bSupportDataURI===null?(E=_.g7("IMG"),S=function(){R._bSupportDataURI=!1;R._fFail&&R._fFail.call(R)},E.onabort=S,E.onerror=S,E.onload=function(){R._bSupportDataURI=!0;
R._fSuccess&&R._fSuccess.call(R)},E.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):R._bSupportDataURI===!0&&R._fSuccess?R._fSuccess.call(R):R._bSupportDataURI===!1&&R._fFail&&R._fFail.call(R)};
k.prototype.draw=function(E){var S=this._oContext,R=this.JSC$19855__htOption,V=E.moduleCount,N=R.width/V,h=R.height/V,J=Math.round(N),m=Math.round(h);this._elImage.style.display="none";this.clear();for(var a=0;a<V;a++)for(var T=0;T<V;T++){var w=E.isDark(a,T),P=T*N,B=a*h;S.strokeStyle=w?R.colorDark:R.colorLight;S.lineWidth=1;S.fillStyle=w?R.colorDark:R.colorLight;S.fillRect(P,B,N,h);S.strokeRect(Math.floor(P)+.5,Math.floor(B)+.5,J,m);S.strokeRect(Math.ceil(P)-.5,Math.ceil(B)-.5,J,m)}this._bIsPainted=
!0};
k.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
k.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
k.prototype.round=function(E){return E?Math.floor(E*1E3)/1E3:E};
return k}():function(){var k=function(E,S){this.JSC$19855__el=E;
this.JSC$19855__htOption=S};
k.prototype.draw=function(E){for(var S=this.JSC$19855__htOption,R=this.JSC$19855__el,V=E.moduleCount,N=Math.floor(S.width/V),h=Math.floor(S.height/V),J=['<table style="border:0;border-collapse:collapse;">'],m=0;m<V;m++){J.push("<tr>");for(var a=0;a<V;a++)J.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+N+"px;height:"+h+"px;background-color:"+(E.isDark(m,a)?S.colorDark:S.colorLight)+';"></td>');J.push("</tr>")}J.push("</table>");E=J.join("");E=_.AEp(_.u5j,E);_.nR(R,E);
E=R.childNodes[0];V=(S.width-E.offsetWidth)/2;N=(S.height-E.offsetHeight)/2;V>0&&N>0&&(E.style.margin=N+"px "+V+"px")};
k.prototype.clear=function(){this.JSC$19855__el.textContent=""};
return k}();
J0t.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19858__android||this.JSC$19858__android>=3)&&this._oDrawing.makeImage()};
J0t.prototype.clear=function(){this._oDrawing.clear()};
_.Vt.QRCode=J0t;var UF3={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var HwG=function(){};
HwG.prototype.stringify=function(k){return _.Vt.JSON.stringify(k,void 0)};
HwG.prototype.parse=function(k){return _.Vt.JSON.parse(k,void 0)};var K2I=function(){_.mL.call(this,"z")};
_.dy(K2I,_.mL);var pqP=function(){_.mL.call(this,"y")};
_.dy(pqP,_.mL);var A1x=null,r1U=function(){return A1x=A1x||new _.wG},uEA=function(k){_.mL.call(this,"serverreachability",k)};
_.dy(uEA,_.mL);var xFa=function(k){var E=r1U();E.dispatchEvent(new uEA(E,k))},L2Y=function(k,E){_.mL.call(this,"statevent",k);
this.stat=E};
_.dy(L2Y,_.mL);var eb=function(k){var E=r1U();E.dispatchEvent(new L2Y(E,k))},jq0=function(k,E,S,R){_.mL.call(this,"timingevent",k);
this.size=E;this.rtt=S;this.retries=R};
_.dy(jq0,_.mL);var DFa=function(k,E,S){var R=r1U();R.dispatchEvent(new jq0(R,k,E,S))},$FW=function(k,E){if(typeof k!=="function")throw Error("Ok");
return _.Vt.setTimeout(function(){k()},E)};var aY=function(){this.redactEnabled_=!0};
aY.prototype.disableRedact=function(){this.redactEnabled_=!1};
var faR=function(k,E,S,R,V,N){k.info(function(){if(k.redactEnabled_)if(N){var h="";for(var J=N.split("&"),m=0;m<J.length;m++){var a=J[m].split("=");if(a.length>1){var T=a[0];a=a[1];var w=T.split("_");h=w.length>=2&&w[1]=="type"?h+(T+"="+a+"&"):h+(T+"=redacted&")}}}else h=null;else h=N;return"XMLHTTP REQ ("+R+") [attempt "+V+"]: "+E+"\n"+S+"\n"+h})},voP=function(k,E,S,R,V,N,h){k.info(function(){return"XMLHTTP RESP ("+R+") [ attempt "+V+"]: "+E+"\n"+S+"\n"+N+" "+h})},tL=function(k,E,S,R){k.info(function(){return"XMLHTTP TEXT ("+
E+"): "+bwt(k,S)+(R?" "+R:"")})},ZwG=function(k,E){k.info(function(){return"TIMEOUT: "+E})};
aY.prototype.debug=function(){};
aY.prototype.info=function(){};
aY.prototype.warning=function(){};
var bwt=function(k,E){if(!k.redactEnabled_)return E;if(!E)return null;try{var S=JSON.parse(E);if(S)for(var R=0;R<S.length;R++)if(Array.isArray(S[R])){var V=S[R];if(!(V.length<2)){var N=V[1];if(Array.isArray(N)&&!(N.length<1)){var h=N[0];if(h!="noop"&&h!="stop"&&h!="close")for(var J=1;J<N.length;J++)N[J]=""}}}return(0,_.oL)(S)}catch(m){return k.debug("Exception parsing expected JS array - probably was not JS"),E}};var Ts=function(k,E,S,R,V){this.JSC$19880_channel_=k;this.JSC$19880_channelDebug_=E;this.sid_=S;this.JSC$19880_rid_=R;this.JSC$19880_retryId_=V||1;this.JSC$19880_eventHandler_=new _.Bk(this);this.timeout_=45E3;this.JSC$19880_extraHeaders_=null;this.JSC$19880_successful_=!1;this.JSC$19880_postData_=this.JSC$19880_requestUri_=this.JSC$19880_baseUri_=this.JSC$19880_type_=this.JSC$19880_requestStartTime_=this.JSC$19880_watchDogTimeoutTime_=this.JSC$19880_watchDogTimerId_=null;this.JSC$19880_pendingMessages_=
[];this.JSC$19880_xmlHttp_=null;this.JSC$19880_xmlHttpChunkStart_=0;this.JSC$19880_lastError_=this.JSC$19880_verb_=null;this.JSC$19880_lastStatusCode_=-1;this.JSC$19880_cancelled_=!1;this.JSC$19880_readyStateChangeThrottleMs_=0;this.JSC$19880_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new dFP},dFP=function(){this.JSC$19882_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},sqI=function(k,E){switch(k){case 0:return"Non-200 return code ("+E+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},laT={},MKP={};
Ts.prototype.setTimeout=function(k){this.timeout_=k};
var zfR=function(k,E,S){k.JSC$19880_type_=1;k.JSC$19880_baseUri_=_.VE(E.clone());k.JSC$19880_postData_=S;k.decodeChunks_=!0;q7G(k,null)},q7G=function(k,E){k.JSC$19880_requestStartTime_=Date.now();
QqY(k);k.JSC$19880_requestUri_=k.JSC$19880_baseUri_.clone();ni(k.JSC$19880_requestUri_,"t",k.JSC$19880_retryId_);k.JSC$19880_xmlHttpChunkStart_=0;var S=k.JSC$19880_channel_.JSC$19899_supportsCrossDomainXhrs_;k.fetchResponseState_=new dFP;k.JSC$19880_xmlHttp_=OwU(k.JSC$19880_channel_,S?E:null,!k.JSC$19880_postData_);k.JSC$19880_readyStateChangeThrottleMs_>0&&(k.JSC$19880_readyStateChangeThrottle_=new _.NJ((0,_.uk)(k.JSC$19884_xmlHttpHandler_,k,k.JSC$19880_xmlHttp_),k.JSC$19880_readyStateChangeThrottleMs_));
k.JSC$19880_eventHandler_.listen(k.JSC$19880_xmlHttp_,"readystatechange",k.JSC$19884_readyStateChangeHandler_);E=k.JSC$19880_extraHeaders_?_.fO.clone(k.JSC$19880_extraHeaders_):{};k.JSC$19880_postData_?(k.JSC$19880_verb_||(k.JSC$19880_verb_="POST"),E["Content-Type"]="application/x-www-form-urlencoded",k.JSC$19880_xmlHttp_.send(k.JSC$19880_requestUri_,k.JSC$19880_verb_,k.JSC$19880_postData_,E)):(k.JSC$19880_verb_="GET",k.JSC$19880_xmlHttp_.send(k.JSC$19880_requestUri_,k.JSC$19880_verb_,null,E));xFa(1);
faR(k.JSC$19880_channelDebug_,k.JSC$19880_verb_,k.JSC$19880_requestUri_,k.JSC$19880_rid_,k.JSC$19880_retryId_,k.JSC$19880_postData_)};
Ts.prototype.JSC$19884_readyStateChangeHandler_=function(k){k=k.target;var E=this.JSC$19880_readyStateChangeThrottle_;E&&_.gG(k)==3?(this.JSC$19880_channelDebug_.debug("Throttling readystatechange."),E.fire()):this.JSC$19884_xmlHttpHandler_(k)};
Ts.prototype.JSC$19884_xmlHttpHandler_=function(k){try{k==this.JSC$19880_xmlHttp_?G7I(this):this.JSC$19880_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(E){this.JSC$19880_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),Cfx(this)}finally{}};
var G7I=function(k){var E=_.gG(k.JSC$19880_xmlHttp_),S=k.JSC$19880_xmlHttp_.JSC$9791_lastErrorCode_,R=k.JSC$19880_xmlHttp_.getStatus();if(!(E<3||E==3&&!Cfx(k))){k.JSC$19880_cancelled_||E!=4||S==7||(S==8||R<=0?xFa(3):xFa(2));kMY(k);var V=k.JSC$19880_xmlHttp_.getStatus();k.JSC$19880_lastStatusCode_=V;S=ENa(k);Cfx(k)||k.JSC$19880_channelDebug_.debug(function(){return"No response text for uri "+k.JSC$19880_requestUri_+" status "+V});
k.JSC$19880_successful_=V==200;voP(k.JSC$19880_channelDebug_,k.JSC$19880_verb_,k.JSC$19880_requestUri_,k.JSC$19880_rid_,k.JSC$19880_retryId_,E,V);if(k.JSC$19880_successful_){if(k.decodeInitialResponse_&&!k.initialResponseDecoded_)if(R=SEA(k))tL(k.JSC$19880_channelDebug_,k.JSC$19880_rid_,R,"Initial handshake response via X-HTTP-Initial-Response"),k.initialResponseDecoded_=!0,RVT(k,R);else{k.JSC$19880_successful_=!1;k.JSC$19880_lastError_=3;eb(12);k.JSC$19880_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
k.JSC$19880_rid_+")");w4(k);VMa(k);return}k.decodeChunks_?NjP(k,E,S):(tL(k.JSC$19880_channelDebug_,k.JSC$19880_rid_,S,null),RVT(k,S));E==4&&w4(k);k.JSC$19880_successful_&&!k.JSC$19880_cancelled_&&(E==4?I20(k.JSC$19880_channel_,k):(k.JSC$19880_successful_=!1,QqY(k)))}else $MG(k.JSC$19880_xmlHttp_),V==400&&S.indexOf("Unknown SID")>0?(k.JSC$19880_lastError_=3,eb(12),k.JSC$19880_channelDebug_.warning("XMLHTTP Unknown SID ("+k.JSC$19880_rid_+")")):(k.JSC$19880_lastError_=0,eb(13),k.JSC$19880_channelDebug_.warning("XMLHTTP Bad status "+
V+" ("+k.JSC$19880_rid_+")")),w4(k),VMa(k)}},SEA=function(k){return k.JSC$19880_xmlHttp_&&(k=Vn(k.JSC$19880_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Jh(k)?k:null},ENa=function(k){if(!nNW(k))return k.JSC$19880_xmlHttp_.getResponseText();
var E=k.JSC$19880_xmlHttp_.getResponse();if(E==="")return"";var S="",R=E.length,V=_.gG(k.JSC$19880_xmlHttp_)==4;if(!k.fetchResponseState_.JSC$19882_textDecoder){if(typeof TextDecoder==="undefined")return w4(k),VMa(k),"";k.fetchResponseState_.JSC$19882_textDecoder=new _.Vt.TextDecoder}for(var N=0;N<R;N++)k.fetchResponseState_.responseArrivedForFetch=!0,S+=k.fetchResponseState_.JSC$19882_textDecoder.decode(E[N],{stream:!(V&&N==R-1)});E.length=0;k.fetchResponseState_.responseBuffer+=S;k.JSC$19880_xmlHttpChunkStart_=
0;return k.fetchResponseState_.responseBuffer},Cfx=function(k){return k.JSC$19880_xmlHttp_?k.fetchResponseState_.responseArrivedForFetch?!0:!(!k.JSC$19880_xmlHttp_.getResponseText()&&!k.JSC$19880_xmlHttp_.getResponse()):!1},nNW=function(k){return k.JSC$19880_xmlHttp_?k.JSC$19880_verb_=="GET"&&k.JSC$19880_type_!=2&&k.JSC$19880_channel_.usesFetchStreams_:!1},NjP=function(k,E,S){for(var R=!0,V;!k.JSC$19880_cancelled_&&k.JSC$19880_xmlHttpChunkStart_<S.length;)if(V=iMa(k,S),V==MKP){E==4&&(k.JSC$19880_lastError_=
4,eb(14),R=!1);
tL(k.JSC$19880_channelDebug_,k.JSC$19880_rid_,null,"[Incomplete Response]");break}else if(V==laT){k.JSC$19880_lastError_=4;eb(15);tL(k.JSC$19880_channelDebug_,k.JSC$19880_rid_,S,"[Invalid Chunk]");R=!1;break}else tL(k.JSC$19880_channelDebug_,k.JSC$19880_rid_,V,null),RVT(k,V);nNW(k)&&k.JSC$19880_xmlHttpChunkStart_!=0&&(k.fetchResponseState_.responseBuffer=k.fetchResponseState_.responseBuffer.slice(k.JSC$19880_xmlHttpChunkStart_),k.JSC$19880_xmlHttpChunkStart_=0);E!=4||S.length!=0||k.fetchResponseState_.responseArrivedForFetch||
(k.JSC$19880_lastError_=1,eb(16),R=!1);k.JSC$19880_successful_=k.JSC$19880_successful_&&R;R?S.length>0&&!k.firstByteReceived_&&(k.firstByteReceived_=!0,E=k.JSC$19880_channel_,E.JSC$19899_backChannelRequest_==k&&E.detectBufferingProxy_&&!E.bpDetectionDone_&&(E.JSC$19899_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+S.length),hVt(E),E.bpDetectionDone_=!0,eb(11))):(tL(k.JSC$19880_channelDebug_,k.JSC$19880_rid_,S,"[Invalid Chunked Response]"),w4(k),VMa(k))},iMa=function(k,
E){var S=k.JSC$19880_xmlHttpChunkStart_,R=E.indexOf("\n",S);
if(R==-1)return MKP;S=Number(E.substring(S,R));if(isNaN(S))return laT;R+=1;if(R+S>E.length)return MKP;E=E.slice(R,R+S);k.JSC$19880_xmlHttpChunkStart_=R+S;return E};
Ts.prototype.cancel=function(){this.JSC$19880_cancelled_=!0;w4(this)};
var QqY=function(k){k.JSC$19880_watchDogTimeoutTime_=Date.now()+k.timeout_;JsP(k,k.timeout_)},JsP=function(k,E){if(k.JSC$19880_watchDogTimerId_!=null)throw Error("Pk");
k.JSC$19880_watchDogTimerId_=$FW((0,_.uk)(k.JSC$19884_onWatchDogTimeout_,k),E)},kMY=function(k){k.JSC$19880_watchDogTimerId_&&(_.Vt.clearTimeout(k.JSC$19880_watchDogTimerId_),k.JSC$19880_watchDogTimerId_=null)};
Ts.prototype.JSC$19884_onWatchDogTimeout_=function(){this.JSC$19880_watchDogTimerId_=null;var k=Date.now();k-this.JSC$19880_watchDogTimeoutTime_>=0?(ZwG(this.JSC$19880_channelDebug_,this.JSC$19880_requestUri_),this.JSC$19880_type_!=2&&(xFa(3),eb(17)),w4(this),this.JSC$19880_lastError_=2,VMa(this)):(this.JSC$19880_channelDebug_.warning("WatchDog timer called too early"),JsP(this,this.JSC$19880_watchDogTimeoutTime_-k))};
var VMa=function(k){k.JSC$19880_channel_.state_==0||k.JSC$19880_cancelled_||I20(k.JSC$19880_channel_,k)},w4=function(k){kMY(k);
_.nu(k.JSC$19880_readyStateChangeThrottle_);k.JSC$19880_readyStateChangeThrottle_=null;k.JSC$19880_eventHandler_.removeAll();if(k.JSC$19880_xmlHttp_){var E=k.JSC$19880_xmlHttp_;k.JSC$19880_xmlHttp_=null;E.abort();E.dispose()}};
Ts.prototype.getLastError=function(){return this.JSC$19880_lastError_};
var RVT=function(k,E){try{var S=k.JSC$19880_channel_;if(S.state_!=0&&(S.JSC$19899_backChannelRequest_==k||csU(S.forwardChannelRequestPool_,k)))if(!k.initialResponseDecoded_&&csU(S.forwardChannelRequestPool_,k)&&S.state_==3){try{var R=S.wireCodec_.JSC$19894_parser_.parse(E)}catch(J){R=null}if(Array.isArray(R)&&R.length==3){E=R;if(E[0]==0)a:if(S.JSC$19899_channelDebug_.debug("Server claims our backchannel is missing."),S.JSC$19899_backChannelTimerId_)S.JSC$19899_channelDebug_.debug("But we are currently starting the request.");
else{if(S.JSC$19899_backChannelRequest_)if(S.JSC$19899_backChannelRequest_.JSC$19880_requestStartTime_+3E3<k.JSC$19880_requestStartTime_)m5P(S),eVI(S);else break a;else S.JSC$19899_channelDebug_.warning("We do not have a BackChannel established");a2W(S);eb(18)}else{S.JSC$19899_lastPostResponseArrayId_=E[1];var V=S.JSC$19899_lastPostResponseArrayId_-S.JSC$19899_lastArrayId_;if(0<V){var N=E[2];S.JSC$19899_channelDebug_.debug(N+" bytes (in "+V+" arrays) are outstanding on the BackChannel");N<37500&&
S.enableStreaming_&&S.JSC$19899_backChannelRetryCount_==0&&!S.JSC$19899_deadBackChannelTimerId_&&(S.JSC$19899_deadBackChannelTimerId_=$FW((0,_.uk)(S.JSC$19901_onBackChannelDead_,S),6E3))}}if(tM3(S.forwardChannelRequestPool_)<=1&&S.forwardChannelFlushedCallback_){try{S.forwardChannelFlushedCallback_()}catch(J){}S.forwardChannelFlushedCallback_=void 0}}else S.JSC$19899_channelDebug_.debug("Bad POST response data returned"),P2(S,11)}else if((k.initialResponseDecoded_||S.JSC$19899_backChannelRequest_==
k)&&m5P(S),!_.Jh(E)){var h=S.wireCodec_.JSC$19894_parser_.parse(E);S.onInput_(h,k)}xFa(4)}catch(J){}};var Tjt=function(k,E){this.JSC$19887_mapId=k;this.map=E;this.context=null};var wIx=function(k){this.maxPoolSizeConfigured_=k||10;_.Vt.PerformanceNavigationTiming?(k=_.Vt.performance.getEntriesByType("navigation"),k=k.length>0&&(k[0].nextHopProtocol=="hq"||k[0].nextHopProtocol=="h2")):k=!!(_.Vt.chrome&&_.Vt.chrome.loadTimes&&_.Vt.chrome.loadTimes()&&_.Vt.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19890_maxSize_=k?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19890_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19890_request_=null;this.JSC$19890_pendingMessages_=
[]},POP=function(k){return k.JSC$19890_request_?!0:k.requestPool_?k.requestPool_.size>=k.JSC$19890_maxSize_:!1},tM3=function(k){return k.JSC$19890_request_?1:k.requestPool_?k.requestPool_.size:0},csU=function(k,E){return k.JSC$19890_request_?k.JSC$19890_request_==E:k.requestPool_?k.requestPool_.has(E):!1},BjI=function(k,E){k.requestPool_?k.requestPool_.add(E):k.JSC$19890_request_=E},YEP=function(k,E){k.JSC$19890_request_&&k.JSC$19890_request_==E?k.JSC$19890_request_=null:k.requestPool_&&k.requestPool_.has(E)&&
k.requestPool_.delete(E)};
wIx.prototype.cancel=function(){this.JSC$19890_pendingMessages_=WcU(this);if(this.JSC$19890_request_)this.JSC$19890_request_.cancel(),this.JSC$19890_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var k=_.n(this.requestPool_.values()),E=k.next();!E.done;E=k.next())E.value.cancel();this.requestPool_.clear()}};
var WcU=function(k){if(k.JSC$19890_request_!=null)return k.JSC$19890_pendingMessages_.concat(k.JSC$19890_request_.JSC$19880_pendingMessages_);if(k.requestPool_!=null&&k.requestPool_.size!==0){var E=k.JSC$19890_pendingMessages_;k=_.n(k.requestPool_.values());for(var S=k.next();!S.done;S=k.next())E=E.concat(S.value.JSC$19880_pendingMessages_);return E}return _.d1(k.JSC$19890_pendingMessages_)},FcG=function(k,E){k.JSC$19890_pendingMessages_=k.JSC$19890_pendingMessages_.concat(E)};var ysa=function(k,E){var S=new aY;S.debug("TestLoadImage: loading "+k);if(_.Vt.Image){var R=new Image;R.onload=_.I_(B2,S,"TestLoadImage: loaded",!0,E,R);R.onerror=_.I_(B2,S,"TestLoadImage: error",!1,E,R);R.onabort=_.I_(B2,S,"TestLoadImage: abort",!1,E,R);R.ontimeout=_.I_(B2,S,"TestLoadImage: timeout",!1,E,R);_.Vt.setTimeout(function(){if(R.ontimeout)R.ontimeout()},1E4);
R.src=k}else E(!1)},oN2=function(k,E){var S=new aY,R=new AbortController,V=setTimeout(function(){R.abort();
B2(S,"TestPingServer: timeout",!1,E)},1E4);
fetch(k,{signal:R.signal}).then(function(N){clearTimeout(V);N.ok?B2(S,"TestPingServer: ok",!0,E):B2(S,"TestPingServer: server error",!1,E)}).catch(function(){clearTimeout(V);
B2(S,"TestPingServer: error",!1,E)})},B2=function(k,E,S,R,V){try{k.debug(E),V&&(V.onload=null,V.onerror=null,V.onabort=null,V.ontimeout=null),R(S)}catch(N){}};var XI0=function(){this.JSC$19894_parser_=new HwG};var gNU=function(k,E,S){return S&&S.internalChannelParams?S.internalChannelParams[k]||E:E},Y1=function(k){this.serverVersion_=0;
this.JSC$19899_outgoingMaps_=[];this.JSC$19899_channelDebug_=new aY;this.JSC$19899_hostPrefix_=this.JSC$19899_backChannelUri_=this.JSC$19899_forwardChannelUri_=this.JSC$19899_path_=this.JSC$19899_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19899_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19899_extraHeaders_=null;this.JSC$19899_nextMapId_=this.JSC$19899_nextRid_=0;this.JSC$19899_failFast_=gNU("failFast",!1,k);this.enableStreaming_=this.JSC$19899_deadBackChannelTimerId_=
this.JSC$19899_backChannelTimerId_=this.JSC$19899_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19899_lastPostResponseArrayId_=this.JSC$19899_lastArrayId_=-1;this.JSC$19899_backChannelAttemptId_=this.JSC$19899_backChannelRetryCount_=this.JSC$19899_forwardChannelRetryCount_=0;this.JSC$19899_baseRetryDelayMs_=gNU("baseRetryDelayMs",5E3,k);this.JSC$19899_retryDelaySeedMs_=gNU("retryDelaySeedMs",1E4,k);this.JSC$19899_forwardChannelMaxRetries_=
gNU("forwardChannelMaxRetries",2,k);this.JSC$19899_forwardChannelRequestTimeoutMs_=gNU("forwardChannelRequestTimeoutMs",2E4,k);this.JSC$19899_xmlHttpFactory_=k&&k.xmlHttpFactory||void 0;this.networkTestUrl_=k&&k.networkTestUrl||void 0;this.usesFetchStreams_=k&&k.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19899_supportsCrossDomainXhrs_=k&&k.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new wIx(k&&k.concurrentRequestLimit);this.wireCodec_=new XI0;
this.fastHandshake_=k&&k.fastHandshake||!1;this.encodeInitMessageHeaders_=k&&k.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19899_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=k&&k.blockingHandshake||!1;k&&k.disableRedact&&this.JSC$19899_channelDebug_.disableRedact();k&&k.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&k&&k.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;k&&k.longPollingTimeout&&k.longPollingTimeout>0&&(this.longPollingTimeout_=k.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Y1.prototype.JSC$19901_channelVersion_=8;Y1.prototype.state_=1;
Y1.prototype.connect=function(k,E,S,R){this.JSC$19899_channelDebug_.debug("connect()");eb(0);this.JSC$19899_path_=k;this.JSC$19899_extraParams_=E||{};S&&R!==void 0&&(this.JSC$19899_extraParams_.OSID=S,this.JSC$19899_extraParams_.OAID=R);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19899_channelDebug_.debug("connectChannel_()");k=U50(this,null,this.JSC$19899_path_);this.JSC$19899_channelDebug_.debug("GetForwardChannelUri: "+k);this.JSC$19899_forwardChannelUri_=k;HMP(this)};
Y1.prototype.disconnect=function(){this.JSC$19899_channelDebug_.debug("disconnect()");Kc3(this);if(this.state_==3){var k=this.JSC$19899_nextRid_++,E=this.JSC$19899_forwardChannelUri_.clone();_.kO(E,"SID",this.sid_);_.kO(E,"RID",k);_.kO(E,"TYPE","terminate");pIW(this,E);k=new Ts(this,this.JSC$19899_channelDebug_,this.sid_,k);k.JSC$19880_type_=2;k.JSC$19880_baseUri_=_.VE(E.clone());E=!1;if(_.Vt.navigator&&_.Vt.navigator.sendBeacon)try{E=_.Vt.navigator.sendBeacon(k.JSC$19880_baseUri_.toString(),"")}catch(S){}!E&&
_.Vt.Image&&((new Image).src=k.JSC$19880_baseUri_,E=!0);E||(k.JSC$19880_xmlHttp_=OwU(k.JSC$19880_channel_,null),k.JSC$19880_xmlHttp_.send(k.JSC$19880_baseUri_));k.JSC$19880_requestStartTime_=Date.now();QqY(k)}AsI(this)};
var eVI=function(k){k.JSC$19899_backChannelRequest_&&(hVt(k),k.JSC$19899_backChannelRequest_.cancel(),k.JSC$19899_backChannelRequest_=null)},Kc3=function(k){eVI(k);
k.JSC$19899_backChannelTimerId_&&(_.Vt.clearTimeout(k.JSC$19899_backChannelTimerId_),k.JSC$19899_backChannelTimerId_=null);m5P(k);k.forwardChannelRequestPool_.cancel();k.JSC$19899_forwardChannelTimerId_&&(typeof k.JSC$19899_forwardChannelTimerId_==="number"&&_.Vt.clearTimeout(k.JSC$19899_forwardChannelTimerId_),k.JSC$19899_forwardChannelTimerId_=null)};
Y1.prototype.getState=function(){return this.state_};
var HMP=function(k){POP(k.forwardChannelRequestPool_)||k.JSC$19899_forwardChannelTimerId_||(k.JSC$19899_forwardChannelTimerId_=!0,_.Bs(k.JSC$19901_onStartForwardChannelTimer_,k),k.JSC$19899_forwardChannelRetryCount_=0)},uQ3=function(k,E){if(tM3(k.forwardChannelRequestPool_)>=k.forwardChannelRequestPool_.JSC$19890_maxSize_-(k.JSC$19899_forwardChannelTimerId_?1:0))return!1;
if(k.JSC$19899_forwardChannelTimerId_)return k.JSC$19899_channelDebug_.debug("Use the retry request that is already scheduled."),k.JSC$19899_outgoingMaps_=E.JSC$19880_pendingMessages_.concat(k.JSC$19899_outgoingMaps_),!0;if(k.state_==1||k.state_==2||k.JSC$19899_forwardChannelRetryCount_>=(k.JSC$19899_failFast_?0:k.JSC$19899_forwardChannelMaxRetries_))return!1;k.JSC$19899_channelDebug_.debug("Going to retry POST");k.JSC$19899_forwardChannelTimerId_=$FW((0,_.uk)(k.JSC$19901_onStartForwardChannelTimer_,
k,E),rsA(k,k.JSC$19899_forwardChannelRetryCount_));k.JSC$19899_forwardChannelRetryCount_++;return!0};
Y1.prototype.JSC$19901_onStartForwardChannelTimer_=function(k){if(this.JSC$19899_forwardChannelTimerId_)if(this.JSC$19899_forwardChannelTimerId_=null,this.JSC$19899_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!k){this.JSC$19899_channelDebug_.debug("open_()");this.JSC$19899_nextRid_=Math.floor(Math.random()*1E5);k=this.JSC$19899_nextRid_++;var E=new Ts(this,this.JSC$19899_channelDebug_,"",k),S=this.JSC$19899_extraHeaders_;this.initHeaders_&&(S?(S=_.fO.clone(S),_.fO.extend(S,this.initHeaders_)):
S=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(E.JSC$19880_extraHeaders_=S,S=null);var R;if(this.fastHandshake_)a:{for(var V=R=0;V<this.JSC$19899_outgoingMaps_.length;V++){b:{var N=this.JSC$19899_outgoingMaps_[V];if("__data__"in N.map&&(N=N.map.__data__,typeof N==="string")){N=N.length;break b}N=void 0}if(N===void 0)break;R+=N;if(R>4096){R=V;break a}if(R===4096||V===this.JSC$19899_outgoingMaps_.length-1){R=V+1;break a}}R=1E3}else R=1E3;R=x5U(this,E,R);
V=this.JSC$19899_forwardChannelUri_.clone();_.kO(V,"RID",k);_.kO(V,"CVER",22);this.httpSessionIdParam_&&_.kO(V,"X-HTTP-Session-Id",this.httpSessionIdParam_);pIW(this,V);S&&(this.encodeInitMessageHeaders_?R="headers="+_.Eg(ZYt(S))+"&"+R:this.httpHeadersOverwriteParam_&&dN3(V,this.httpHeadersOverwriteParam_,S));BjI(this.forwardChannelRequestPool_,E);this.blockingHandshake_&&_.kO(V,"TYPE","init");this.fastHandshake_?(_.kO(V,"$req",R),_.kO(V,"SID","null"),E.decodeInitialResponse_=!0,zfR(E,V,null)):zfR(E,
V,R);this.state_=2}}else this.state_==3&&(k?LcP(this,k):this.JSC$19899_outgoingMaps_.length==0?this.JSC$19899_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):POP(this.forwardChannelRequestPool_)||(LcP(this),this.JSC$19899_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var LcP=function(k,E){var S;E?S=E.JSC$19880_rid_:S=k.JSC$19899_nextRid_++;var R=k.JSC$19899_forwardChannelUri_.clone();_.kO(R,"SID",k.sid_);_.kO(R,"RID",S);_.kO(R,"AID",k.JSC$19899_lastArrayId_);pIW(k,R);k.httpHeadersOverwriteParam_&&k.JSC$19899_extraHeaders_&&dN3(R,k.httpHeadersOverwriteParam_,k.JSC$19899_extraHeaders_);S=new Ts(k,k.JSC$19899_channelDebug_,k.sid_,S,k.JSC$19899_forwardChannelRetryCount_+1);k.httpHeadersOverwriteParam_===null&&(S.JSC$19880_extraHeaders_=k.JSC$19899_extraHeaders_);
E&&(k.JSC$19899_outgoingMaps_=E.JSC$19880_pendingMessages_.concat(k.JSC$19899_outgoingMaps_));E=x5U(k,S,1E3);S.setTimeout(Math.round(k.JSC$19899_forwardChannelRequestTimeoutMs_*.5)+Math.round(k.JSC$19899_forwardChannelRequestTimeoutMs_*.5*Math.random()));BjI(k.forwardChannelRequestPool_,S);zfR(S,R,E)},pIW=function(k,E){k.JSC$19899_extraParams_&&_.fO.forEach(k.JSC$19899_extraParams_,function(S,R){_.kO(E,R,S)});
k.handler_&&_.fO.forEach({},function(S,R){_.kO(E,R,S)})},x5U=function(k,E,S){S=Math.min(k.JSC$19899_outgoingMaps_.length,S);
var R=k.handler_?(0,_.uk)(k.handler_.JSC$19905_badMapError,k.handler_,k):null;a:{for(var V=k.JSC$19899_outgoingMaps_,N=-1;;){var h=["count="+S];N==-1?S>0?(N=V[0].JSC$19887_mapId,h.push("ofs="+N)):N=0:h.push("ofs="+N);for(var J=!0,m=0;m<S;m++){var a=V[m].JSC$19887_mapId,T=V[m].map;a-=N;if(a<0)N=Math.max(0,V[m].JSC$19887_mapId-100),J=!1;else try{a="req"+a+"_"||"";try{var w=T instanceof Map?T:Object.entries(T);for(var P=_.n(w),B=P.next();!B.done;B=P.next()){var F=_.n(B.value),K=F.next().value,r=F.next().value,
x=r;_.qA(r)&&(x=(0,_.oL)(r));h.push(a+K+"="+encodeURIComponent(x))}}catch(L){throw h.push(a+"type="+encodeURIComponent("_badmap")),L;}}catch(L){R&&R(T)}}if(J){w=h.join("&");break a}}w=void 0}k=k.JSC$19899_outgoingMaps_.splice(0,S);E.JSC$19880_pendingMessages_=k;return w},jg3=function(k){k.JSC$19899_backChannelRequest_||k.JSC$19899_backChannelTimerId_||(k.JSC$19899_backChannelAttemptId_=1,_.Bs(k.JSC$19901_onStartBackChannelTimer_,k),k.JSC$19899_backChannelRetryCount_=0)},a2W=function(k){if(k.JSC$19899_backChannelRequest_||
k.JSC$19899_backChannelTimerId_||k.JSC$19899_backChannelRetryCount_>=3)return!1;
k.JSC$19899_channelDebug_.debug("Going to retry GET");k.JSC$19899_backChannelAttemptId_++;k.JSC$19899_backChannelTimerId_=$FW((0,_.uk)(k.JSC$19901_onStartBackChannelTimer_,k),rsA(k,k.JSC$19899_backChannelRetryCount_));k.JSC$19899_backChannelRetryCount_++;return!0};
Y1.prototype.JSC$19901_onStartBackChannelTimer_=function(){this.JSC$19899_backChannelTimerId_=null;D5I(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19899_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19899_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19899_backChannelRequest_+" "+this.handshakeRttMs_);else{var k=4*this.handshakeRttMs_;this.JSC$19899_channelDebug_.info("BP detection timer enabled: "+k);this.bpDetectionTimerId_=$FW((0,_.uk)(this.onBpDetectionTimer_,
this),k)}};
Y1.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19899_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19899_backChannelRequest_.JSC$19880_xmlHttp_!=null){var k=this.JSC$19899_backChannelRequest_.JSC$19880_xmlHttp_.getResponseText();k&&this.JSC$19899_channelDebug_.warning("Timer should have been cancelled : "+k)}this.JSC$19899_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;eb(10);eVI(this);D5I(this)}else this.JSC$19899_channelDebug_.warning("Invalid operation.")};
var hVt=function(k){k.bpDetectionTimerId_!=null&&(k.JSC$19899_channelDebug_.debug("Cancel the BP detection timer."),_.Vt.clearTimeout(k.bpDetectionTimerId_),k.bpDetectionTimerId_=null)},D5I=function(k){k.JSC$19899_channelDebug_.debug("Creating new HttpRequest");
k.JSC$19899_backChannelRequest_=new Ts(k,k.JSC$19899_channelDebug_,k.sid_,"rpc",k.JSC$19899_backChannelAttemptId_);k.httpHeadersOverwriteParam_===null&&(k.JSC$19899_backChannelRequest_.JSC$19880_extraHeaders_=k.JSC$19899_extraHeaders_);k.JSC$19899_backChannelRequest_.JSC$19880_readyStateChangeThrottleMs_=0;var E=k.JSC$19899_backChannelUri_.clone();_.kO(E,"RID","rpc");_.kO(E,"SID",k.sid_);_.kO(E,"AID",k.JSC$19899_lastArrayId_);_.kO(E,"CI",k.enableStreaming_?"0":"1");!k.enableStreaming_&&k.longPollingTimeout_&&
_.kO(E,"TO",k.longPollingTimeout_);_.kO(E,"TYPE","xmlhttp");pIW(k,E);k.httpHeadersOverwriteParam_&&k.JSC$19899_extraHeaders_&&dN3(E,k.httpHeadersOverwriteParam_,k.JSC$19899_extraHeaders_);k.backChannelRequestTimeoutMs_&&k.JSC$19899_backChannelRequest_.setTimeout(k.backChannelRequestTimeoutMs_);var S=k.JSC$19899_backChannelRequest_,R=k.JSC$19899_hostPrefix_;S.JSC$19880_type_=1;S.JSC$19880_baseUri_=_.VE(E.clone());S.JSC$19880_postData_=null;S.decodeChunks_=!0;q7G(S,R);k.JSC$19899_channelDebug_.debug("New Request created")};
Y1.prototype.JSC$19901_onBackChannelDead_=function(){this.JSC$19899_deadBackChannelTimerId_!=null&&(this.JSC$19899_deadBackChannelTimerId_=null,eVI(this),a2W(this),eb(19))};
var m5P=function(k){k.JSC$19899_deadBackChannelTimerId_!=null&&(_.Vt.clearTimeout(k.JSC$19899_deadBackChannelTimerId_),k.JSC$19899_deadBackChannelTimerId_=null)},I20=function(k,E){k.JSC$19899_channelDebug_.debug("Request complete");
var S=null;if(k.JSC$19899_backChannelRequest_==E){m5P(k);hVt(k);k.JSC$19899_backChannelRequest_=null;var R=2}else if(csU(k.forwardChannelRequestPool_,E))S=E.JSC$19880_pendingMessages_,YEP(k.forwardChannelRequestPool_,E),R=1;else return;if(k.state_!=0)if(E.JSC$19880_successful_)R==1?(DFa(E.JSC$19880_postData_?E.JSC$19880_postData_.length:0,Date.now()-E.JSC$19880_requestStartTime_,k.JSC$19899_forwardChannelRetryCount_),HMP(k)):jg3(k);else{var V=E.JSC$19880_lastStatusCode_,N=E.getLastError();if(N==3||
N==0&&V>0)k.JSC$19899_channelDebug_.debug("Not retrying due to error type"),V>200&&(k.errorResponseStatusCode_=E.JSC$19880_lastStatusCode_);else{k.JSC$19899_channelDebug_.debug(function(){return"Maybe retrying, last error: "+sqI(N,k.errorResponseStatusCode_)});
if(R==1&&uQ3(k,E)||R==2&&a2W(k))return;k.JSC$19899_channelDebug_.debug("Exceeded max number of retries")}S&&S.length>0&&FcG(k.forwardChannelRequestPool_,S);k.JSC$19899_channelDebug_.debug("Error: HTTP request failed");switch(N){case 1:P2(k,5);break;case 4:P2(k,10);break;case 3:P2(k,6);break;default:P2(k,2)}}},rsA=function(k,E){var S=k.JSC$19899_baseRetryDelayMs_+Math.floor(Math.random()*k.JSC$19899_retryDelaySeedMs_);
k.isActive()||(k.JSC$19899_channelDebug_.debug("Inactive channel"),S*=2);return S*E};
Y1.prototype.onInput_=function(k,E){for(var S=0;S<k.length;S++){var R=k[S],V=R[0];if(V<=this.JSC$19899_lastArrayId_)this.JSC$19899_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+V+", lastArrayId: "+this.JSC$19899_lastArrayId_);else if(V>this.JSC$19899_lastArrayId_+1&&this.JSC$19899_lastArrayId_>-1&&this.JSC$19899_channelDebug_.warning("Received non-consecutive message with arrayId: "+V+", lastArrayId: "+this.JSC$19899_lastArrayId_),this.JSC$19899_lastArrayId_=V,
R=R[1],this.state_==2)if(R[0]=="c"){this.sid_=R[1];this.JSC$19899_hostPrefix_=R[2];V=R[3];V!=null&&(this.JSC$19901_channelVersion_=V,this.JSC$19899_channelDebug_.info("VER="+this.JSC$19901_channelVersion_));V=R[4];V!=null&&(this.serverVersion_=V,this.JSC$19899_channelDebug_.info("SVER="+this.serverVersion_));R=R[5];R!=null&&typeof R==="number"&&R>0&&(this.backChannelRequestTimeoutMs_=R*=1.5,this.JSC$19899_channelDebug_.info("backChannelRequestTimeoutMs_="+R));if(R=E.JSC$19880_xmlHttp_){var N=Vn(R,
"X-Client-Wire-Protocol");N&&(V=this.forwardChannelRequestPool_,!V.requestPool_&&(_.ce(N,"spdy")||_.ce(N,"quic")||_.ce(N,"h2"))&&(V.JSC$19890_maxSize_=V.maxPoolSizeConfigured_,V.requestPool_=new Set,V.JSC$19890_request_&&(BjI(V,V.JSC$19890_request_),V.JSC$19890_request_=null)));this.httpSessionIdParam_&&((R=Vn(R,"X-HTTP-Session-Id"))?(this.httpSessionId_=R,_.kO(this.JSC$19899_forwardChannelUri_,this.httpSessionIdParam_,R)):this.JSC$19899_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19905_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-E.JSC$19880_requestStartTime_,this.JSC$19899_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));R=E;V=U50(this,this.JSC$19899_supportsCrossDomainXhrs_?this.JSC$19899_hostPrefix_:null,this.JSC$19899_path_);this.JSC$19899_channelDebug_.debug("GetBackChannelUri: "+V);this.JSC$19899_backChannelUri_=V;R.initialResponseDecoded_?(this.JSC$19899_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
YEP(this.forwardChannelRequestPool_,R),V=R,(N=this.backChannelRequestTimeoutMs_)&&V.setTimeout(N),V.JSC$19880_watchDogTimerId_&&(kMY(V),QqY(V)),this.JSC$19899_backChannelRequest_=R):jg3(this);this.JSC$19899_outgoingMaps_.length>0&&HMP(this)}else R[0]!="stop"&&R[0]!="close"||P2(this,7);else this.state_==3&&(R[0]=="stop"||R[0]=="close"?R[0]=="stop"?P2(this,7):this.disconnect():R[0]!="noop"&&this.handler_&&this.handler_.JSC$19905_channelHandleArray(R),this.JSC$19899_backChannelRetryCount_=0)}};
var P2=function(k,E){k.JSC$19899_channelDebug_.info("Error code "+E);if(E==2){var S=(0,_.uk)(k.testNetworkCallback_,k),R=k.networkTestUrl_,V=!R;R=new _.DZ(R||"//www.google.com/images/cleardot.gif");_.Vt.location&&_.Vt.location.protocol=="http"||_.zA(R,"https");_.VE(R);V?ysa(R.toString(),S):oN2(R.toString(),S)}else eb(2);k.onError_(E)};
Y1.prototype.testNetworkCallback_=function(k){k?(this.JSC$19899_channelDebug_.info("Successfully pinged google.com"),eb(2)):(this.JSC$19899_channelDebug_.info("Failed to ping google.com"),eb(1))};
Y1.prototype.onError_=function(k){this.JSC$19899_channelDebug_.debug("HttpChannel: error - "+k);this.state_=0;this.handler_&&this.handler_.JSC$19905_channelError(k);AsI(this);Kc3(this)};
var AsI=function(k){k.state_=0;k.nonAckedMapsAtChannelClose_=[];if(k.handler_){var E=WcU(k.forwardChannelRequestPool_);if(E.length!=0||k.JSC$19899_outgoingMaps_.length!=0)k.JSC$19899_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+E.length+", outgoing: "+k.JSC$19899_outgoingMaps_.length}),_.lC(k.nonAckedMapsAtChannelClose_,E),_.lC(k.nonAckedMapsAtChannelClose_,k.JSC$19899_outgoingMaps_),k.forwardChannelRequestPool_.JSC$19890_pendingMessages_.length=0,_.d1(k.JSC$19899_outgoingMaps_),
k.JSC$19899_outgoingMaps_.length=0;
k.handler_.JSC$19905_channelClosed()}},$5U=function(k){if(k.state_==0)return k.nonAckedMapsAtChannelClose_;
var E=[];_.lC(E,WcU(k.forwardChannelRequestPool_));_.lC(E,k.JSC$19899_outgoingMaps_);return E},U50=function(k,E,S){var R=_.Gx(S);
R.JSC$10027_domain_!=""?(E&&_.Q4(R,E+"."+R.JSC$10027_domain_),_.OF(R,R.JSC$10027_port_)):(R=_.Vt.location,R=uaI(R.protocol,E?E+"."+R.hostname:R.hostname,+R.port,S));E=k.httpSessionIdParam_;S=k.httpSessionId_;E&&S&&_.kO(R,E,S);_.kO(R,"VER",k.JSC$19901_channelVersion_);pIW(k,R);return R},OwU=function(k,E,S){if(E&&!k.JSC$19899_supportsCrossDomainXhrs_)throw Error("Qk");
E=k.usesFetchStreams_&&!k.JSC$19899_xmlHttpFactory_?new _.Xc(new pi({streamBinaryChunks:S})):new _.Xc(k.JSC$19899_xmlHttpFactory_);E.JSC$9791_withCredentials_=k.JSC$19899_supportsCrossDomainXhrs_;return E};
Y1.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var f2P=function(){};
_.I=f2P.prototype;_.I.JSC$19905_channelOpened=function(){};
_.I.JSC$19905_channelHandleArray=function(){};
_.I.JSC$19905_channelError=function(){};
_.I.JSC$19905_channelClosed=function(){};
_.I.isActive=function(){return!0};
_.I.JSC$19905_badMapError=function(){};var vNP=function(){},Fs=function(k,E){_.wG.call(this);
this.JSC$19908_channel_=new Y1(E);this.JSC$19908_url_=k;this.messageUrlParams_=E&&E.messageUrlParams||null;k=E&&E.messageHeaders||null;E&&E.clientProtocolHeaderRequired&&(k?_.fO.set(k,"X-Client-Protocol","webchannel"):k=_.fO.create("X-Client-Protocol","webchannel"));this.JSC$19908_channel_.JSC$19899_extraHeaders_=k;k=E&&E.initMessageHeaders||null;E&&E.messageContentType&&(k?_.fO.set(k,"X-WebChannel-Content-Type",E.messageContentType):k=_.fO.create("X-WebChannel-Content-Type",E.messageContentType));
E&&E.clientProfile&&(k?_.fO.set(k,"X-WebChannel-Client-Profile",E.clientProfile):k=_.fO.create("X-WebChannel-Client-Profile",E.clientProfile));this.JSC$19908_channel_.initHeaders_=k;(k=E&&E.httpHeadersOverwriteParam)&&!_.Jh(k)&&(this.JSC$19908_channel_.httpHeadersOverwriteParam_=k);this.supportsCrossDomainXhr_=E&&E.supportsCrossDomainXhr||!1;this.sendRawJson_=E&&E.sendRawJson||!1;(E=E&&E.httpSessionIdParam)&&!_.Jh(E)&&(this.JSC$19908_channel_.httpSessionIdParam_=E,_.fO.containsKey(this.messageUrlParams_,
E)&&_.fO.remove(this.messageUrlParams_,E));this.channelHandler_=new W2(this)};
_.dy(Fs,_.wG);Fs.prototype.open=function(){this.JSC$19908_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19908_channel_.JSC$19899_supportsCrossDomainXhrs_=!0);this.JSC$19908_channel_.connect(this.JSC$19908_url_,this.messageUrlParams_||void 0)};
Fs.prototype.close=function(){this.JSC$19908_channel_.disconnect()};
Fs.prototype.send=function(k){var E=this.JSC$19908_channel_;if(typeof k==="string"){var S={};S.__data__=k;k=S}else this.sendRawJson_&&(S={},S.__data__=(0,_.oL)(k),k=S);E.JSC$19899_outgoingMaps_.push(new Tjt(E.JSC$19899_nextMapId_++,k));E.state_==3&&HMP(E)};
Fs.prototype.disposeInternal=function(){this.JSC$19908_channel_.handler_=null;delete this.channelHandler_;this.JSC$19908_channel_.disconnect();delete this.JSC$19908_channel_;Fs.superClass_.disposeInternal.call(this)};
var bMU=function(k){K2I.call(this);k.__headers__&&(this.headers=k.__headers__,this.statusCode=k.__status__,delete k.__headers__,delete k.__status__);var E=k.__sm__;E?this.data=(this.metadataKey=_.fO.getAnyKey(E))?_.fO.get(E,this.metadataKey):E:this.data=k};
_.dy(bMU,K2I);var ZMP=function(k){pqP.call(this);this.status=1;this.errorCode=k};
_.dy(ZMP,pqP);var W2=function(k){this.JSC$19915_channel_=k};
_.dy(W2,f2P);W2.prototype.JSC$19905_channelOpened=function(){this.JSC$19915_channel_.dispatchEvent("w")};
W2.prototype.JSC$19905_channelHandleArray=function(k){this.JSC$19915_channel_.dispatchEvent(new bMU(k))};
W2.prototype.JSC$19905_channelError=function(k){this.JSC$19915_channel_.dispatchEvent(new ZMP(k))};
W2.prototype.JSC$19905_channelClosed=function(){this.JSC$19915_channel_.dispatchEvent("x")};
var d5A=function(k,E){this.transportChannel_=k;this.JSC$19918_channel_=E},sgA=function(k){return $5U(k.JSC$19918_channel_).map(function(E){var S=k.transportChannel_;
E=E.map;"__data__"in E?(E=E.__data__,S=S.sendRawJson_?(0,_.WNT)(E):E):S=E;return S})};
d5A.prototype.commit=function(k){this.JSC$19918_channel_.forwardChannelFlushedCallback_=k};var yC=function(k){l2P.dispatchEvent(new MMU(l2P,k))},l2P=new _.wG,MMU=function(k,E){_.mL.call(this,"statevent",k);
this.stat=E};
_.y(MMU,_.mL);var oY=function(k,E,S,R,V){this.JSC$19923_channel_=k;this.JSC$19923_channelDebug_=E;this.sid_=S;this.JSC$19923_rid_=R;this.JSC$19923_retryId_=V||1;this.timeout_=45E3;this.JSC$19923_eventHandler_=new _.Bk(this);this.pollingTimer_=new _.Pk;this.pollingTimer_.setInterval(250)};
_.I=oY.prototype;_.I.JSC$19925_extraHeaders_=null;_.I.JSC$19925_successful_=!1;_.I.JSC$19925_watchDogTimerId_=null;_.I.JSC$19925_watchDogTimeoutTime_=null;_.I.JSC$19925_requestStartTime_=null;_.I.JSC$19925_type_=null;_.I.JSC$19925_baseUri_=null;_.I.JSC$19925_requestUri_=null;_.I.JSC$19925_postData_=null;_.I.JSC$19925_xmlHttp_=null;_.I.JSC$19925_xmlHttpChunkStart_=0;_.I.trident_=null;_.I.JSC$19925_verb_=null;_.I.JSC$19925_lastError_=null;_.I.JSC$19925_lastStatusCode_=-1;_.I.sendClose_=!0;
_.I.JSC$19925_cancelled_=!1;_.I.JSC$19925_readyStateChangeThrottleMs_=0;_.I.JSC$19925_readyStateChangeThrottle_=null;var qEa=function(k,E){switch(k){case 0:return"Non-200 return code ("+E+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},zV2={},Qg2={};
oY.prototype.setTimeout=function(k){this.timeout_=k};
var GMP=function(k,E,S){k.JSC$19925_type_=1;k.JSC$19925_baseUri_=_.VE(E.clone());k.JSC$19925_postData_=S;k.decodeChunks_=!0;OMP(k,null)},COP=function(k,E,S,R,V){k.JSC$19925_type_=1;
k.JSC$19925_baseUri_=_.VE(E.clone());k.JSC$19925_postData_=null;k.decodeChunks_=S;V&&(k.sendClose_=!1);OMP(k,R)},OMP=function(k,E){k.JSC$19925_requestStartTime_=Date.now();
kiA(k);k.JSC$19925_requestUri_=k.JSC$19925_baseUri_.clone();ni(k.JSC$19925_requestUri_,"t",k.JSC$19923_retryId_);k.JSC$19925_xmlHttpChunkStart_=0;k.JSC$19925_xmlHttp_=k.JSC$19923_channel_.JSC$19932_createXhrIo(k.JSC$19923_channel_.JSC$19932_shouldUseSecondaryDomains()?E:null);k.JSC$19925_readyStateChangeThrottleMs_>0&&(k.JSC$19925_readyStateChangeThrottle_=new _.NJ((0,_.uk)(k.JSC$19925_xmlHttpHandler_,k,k.JSC$19925_xmlHttp_),k.JSC$19925_readyStateChangeThrottleMs_));k.JSC$19923_eventHandler_.listen(k.JSC$19925_xmlHttp_,
"readystatechange",k.JSC$19925_readyStateChangeHandler_);E=k.JSC$19925_extraHeaders_?_.fO.clone(k.JSC$19925_extraHeaders_):{};k.JSC$19925_postData_?(k.JSC$19925_verb_="POST",E["Content-Type"]="application/x-www-form-urlencoded",k.JSC$19925_xmlHttp_.send(k.JSC$19925_requestUri_,k.JSC$19925_verb_,k.JSC$19925_postData_,E)):(k.JSC$19925_verb_="GET",k.sendClose_&&!_.Qb&&(E.Connection="close"),k.JSC$19925_xmlHttp_.send(k.JSC$19925_requestUri_,k.JSC$19925_verb_,null,E));k.JSC$19923_channel_.notifyServerReachabilityEvent(1);
E=k.JSC$19923_channelDebug_;var S=k.JSC$19925_postData_;if(S){var R="";S=S.split("&");for(var V=0;V<S.length;V++){var N=S[V].split("=");if(N.length>1){var h=N[0];N=N[1];var J=h.split("_");R=J.length>=2&&J[1]=="type"?R+(h+"="+N+"&"):R+(h+"=redacted&")}}}else R=null;E.info("XMLHTTP REQ ("+k.JSC$19923_rid_+") [attempt "+k.JSC$19923_retryId_+"]: "+k.JSC$19925_verb_+"\n"+k.JSC$19925_requestUri_+"\n"+R)};
oY.prototype.JSC$19925_readyStateChangeHandler_=function(k){k=k.target;var E=this.JSC$19925_readyStateChangeThrottle_;E&&_.gG(k)==3?(this.JSC$19923_channelDebug_.debug("Throttling readystatechange."),E.fire()):this.JSC$19925_xmlHttpHandler_(k)};
oY.prototype.JSC$19925_xmlHttpHandler_=function(k){try{if(k==this.JSC$19925_xmlHttp_)a:{var E=_.gG(this.JSC$19925_xmlHttp_),S=this.JSC$19925_xmlHttp_.JSC$9791_lastErrorCode_,R=this.JSC$19925_xmlHttp_.getStatus();if(_.Qb&&!_.OB("420+")){if(E<4)break a}else if(E<3||E==3&&!this.JSC$19925_xmlHttp_.getResponseText())break a;this.JSC$19925_cancelled_||E!=4||S==7||(S==8||R<=0?this.JSC$19923_channel_.notifyServerReachabilityEvent(3):this.JSC$19923_channel_.notifyServerReachabilityEvent(2));EBt(this);var V=
this.JSC$19925_xmlHttp_.getStatus();this.JSC$19925_lastStatusCode_=V;var N=this.JSC$19925_xmlHttp_.getResponseText();N||this.JSC$19923_channelDebug_.debug("No response text for uri "+this.JSC$19925_requestUri_+" status "+V);this.JSC$19925_successful_=V==200;this.JSC$19923_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19923_rid_+") [ attempt "+this.JSC$19923_retryId_+"]: "+this.JSC$19925_verb_+"\n"+this.JSC$19925_requestUri_+"\n"+E+" "+V);if(this.JSC$19925_successful_){E==4&&SNa(this);if(this.decodeChunks_){for(k=
!0;!this.JSC$19925_cancelled_&&this.JSC$19925_xmlHttpChunkStart_<N.length;){var h=R10(this,N);if(h==Qg2){E==4&&(this.JSC$19925_lastError_=4,yC(15),k=!1);V6U(this.JSC$19923_channelDebug_,this.JSC$19923_rid_,null,"[Incomplete Response]");break}else if(h==zV2){this.JSC$19925_lastError_=4;yC(16);V6U(this.JSC$19923_channelDebug_,this.JSC$19923_rid_,N,"[Invalid Chunk]");k=!1;break}else V6U(this.JSC$19923_channelDebug_,this.JSC$19923_rid_,h,null),NAW(this,h)}E==4&&N.length==0&&(this.JSC$19925_lastError_=
1,yC(17),k=!1);this.JSC$19925_successful_=this.JSC$19925_successful_&&k;k||(V6U(this.JSC$19923_channelDebug_,this.JSC$19923_rid_,N,"[Invalid Chunked Response]"),SNa(this),IYR(this))}else V6U(this.JSC$19923_channelDebug_,this.JSC$19923_rid_,N,null),NAW(this,N);this.JSC$19925_successful_&&!this.JSC$19925_cancelled_&&(E==4?this.JSC$19923_channel_.JSC$19932_onRequestComplete(this):(this.JSC$19925_successful_=!1,kiA(this)))}else V==400&&N.indexOf("Unknown SID")>0?(this.JSC$19925_lastError_=3,yC(13),this.JSC$19923_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19923_rid_+")")):(this.JSC$19925_lastError_=0,yC(14),this.JSC$19923_channelDebug_.warning("XMLHTTP Bad status "+V+" ("+this.JSC$19923_rid_+")")),SNa(this),IYR(this)}else this.JSC$19923_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(J){this.JSC$19923_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var R10=function(k,E){var S=k.JSC$19925_xmlHttpChunkStart_,R=E.indexOf("\n",S);if(R==-1)return Qg2;S=Number(E.substring(S,R));if(isNaN(S))return zV2;R+=1;if(R+S>E.length)return Qg2;E=E.slice(R,R+S);k.JSC$19925_xmlHttpChunkStart_=R+S;return E};
oY.prototype.cancel=function(){this.JSC$19925_cancelled_=!0;SNa(this)};
var kiA=function(k){k.JSC$19925_watchDogTimeoutTime_=Date.now()+k.timeout_;nBt(k,k.timeout_)},nBt=function(k,E){if(k.JSC$19925_watchDogTimerId_!=null)throw Error("Pk");
k.JSC$19925_watchDogTimerId_=Td((0,_.uk)(k.JSC$19925_onWatchDogTimeout_,k),E)},EBt=function(k){k.JSC$19925_watchDogTimerId_&&(_.Vt.clearTimeout(k.JSC$19925_watchDogTimerId_),k.JSC$19925_watchDogTimerId_=null)};
oY.prototype.JSC$19925_onWatchDogTimeout_=function(){this.JSC$19925_watchDogTimerId_=null;var k=Date.now();k-this.JSC$19925_watchDogTimeoutTime_>=0?(this.JSC$19923_channelDebug_.info("TIMEOUT: "+this.JSC$19925_requestUri_),this.JSC$19925_type_!=2&&this.JSC$19923_channel_.notifyServerReachabilityEvent(3),SNa(this),this.JSC$19925_lastError_=2,yC(18),IYR(this)):(this.JSC$19923_channelDebug_.warning("WatchDog timer called too early"),nBt(this,this.JSC$19925_watchDogTimeoutTime_-k))};
var IYR=function(k){k.JSC$19923_channel_.JSC$19932_isClosed()||k.JSC$19925_cancelled_||k.JSC$19923_channel_.JSC$19932_onRequestComplete(k)},SNa=function(k){EBt(k);
_.nu(k.JSC$19925_readyStateChangeThrottle_);k.JSC$19925_readyStateChangeThrottle_=null;k.pollingTimer_.stop();k.JSC$19923_eventHandler_.removeAll();if(k.JSC$19925_xmlHttp_){var E=k.JSC$19925_xmlHttp_;k.JSC$19925_xmlHttp_=null;E.abort();E.dispose()}k.trident_&&(k.trident_=null)};
oY.prototype.getLastError=function(){return this.JSC$19925_lastError_};
var NAW=function(k,E){try{k.JSC$19923_channel_.JSC$19932_onRequestData(k,E),k.JSC$19923_channel_.notifyServerReachabilityEvent(4)}catch(S){}};var V6U=function(k,E,S,R){var V=k.info;a:if(S&&S!="y2f%"){try{var N=JSON.parse(S);if(N)for(var h=0;h<N.length;h++)if(Array.isArray(N[h])){var J=N[h];if(!(J.length<2)){var m=J[1];if(Array.isArray(m)&&!(m.length<1)){var a=m[0];if(a!="noop"&&a!="stop")for(var T=1;T<m.length;T++)m[T]=""}}}var w=(0,_.oL)(N);break a}catch(P){k.debug("Exception parsing expected JS array - probably was not JS");w=S;break a}w=void 0}else w=S;V.call(k,"XMLHTTP TEXT ("+E+"): "+w+(R?" "+R:""))};
w5.prototype.debug=function(k){this.info(k)};
w5.prototype.info=function(){};
w5.prototype.warning=function(){};var iGP=function(k,E){this.JSC$19930_channel_=k;this.JSC$19930_channelDebug_=E;this.JSC$19930_parser_=new HwG};
_.I=iGP.prototype;_.I.JSC$19932_extraHeaders_=null;_.I.JSC$19932_request_=null;_.I.receivedIntermediateResult_=!1;_.I.JSC$19932_path_=null;_.I.state_=null;_.I.JSC$19932_lastStatusCode_=-1;_.I.JSC$19932_hostPrefix_=null;_.I.blockedPrefix_=null;
_.I.connect=function(k){this.JSC$19932_path_=k;k=h1a(this.JSC$19930_channel_,this.JSC$19932_path_);yC(3);Date.now();var E=this.JSC$19930_channel_.firstTestResults_;E!=null?(this.JSC$19932_hostPrefix_=E[0],(this.blockedPrefix_=E[1])?(this.state_=1,JrA(this)):(this.state_=2,cr3(this))):(ni(k,"MODE","init"),this.JSC$19932_request_=new oY(this,this.JSC$19930_channelDebug_),this.JSC$19932_request_.JSC$19925_extraHeaders_=this.JSC$19932_extraHeaders_,COP(this.JSC$19932_request_,k,!1,null,!0),this.state_=
0)};
var JrA=function(k){var E=mqW(k.JSC$19930_channel_,k.blockedPrefix_,"/mail/images/cleardot.gif");_.VE(E);evP(E.toString(),5E3,(0,_.uk)(k.checkBlockedCallback_,k),3,2E3);k.notifyServerReachabilityEvent(1)};
iGP.prototype.checkBlockedCallback_=function(k){if(k)this.state_=2,cr3(this);else{yC(4);var E=this.JSC$19930_channel_;E.JSC$19933_channelDebug_.debug("Test Connection Blocked");E.JSC$19937_lastStatusCode_=E.connectionTest_.JSC$19932_lastStatusCode_;Xs(E,9)}k&&this.notifyServerReachabilityEvent(2)};
var cr3=function(k){k.JSC$19930_channelDebug_.debug("TestConnection: starting stage 2");var E=k.JSC$19930_channel_.secondTestResults_;E!=null?(k.JSC$19930_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+E?"Buffered":"Unbuffered"),yC(5),E?(yC(11),e1t(k.JSC$19930_channel_,k,!1)):(yC(12),e1t(k.JSC$19930_channel_,k,!0))):(k.JSC$19932_request_=new oY(k,k.JSC$19930_channelDebug_),k.JSC$19932_request_.JSC$19925_extraHeaders_=k.JSC$19932_extraHeaders_,E=aYa(k.JSC$19930_channel_,
k.JSC$19932_hostPrefix_,k.JSC$19932_path_),yC(5),ni(E,"TYPE","xmlhttp"),COP(k.JSC$19932_request_,E,!1,k.JSC$19932_hostPrefix_,!1))};
_.I=iGP.prototype;_.I.JSC$19932_createXhrIo=function(k){return this.JSC$19930_channel_.JSC$19932_createXhrIo(k)};
_.I.abort=function(){this.JSC$19932_request_&&(this.JSC$19932_request_.cancel(),this.JSC$19932_request_=null);this.JSC$19932_lastStatusCode_=-1};
_.I.JSC$19932_isClosed=function(){return!1};
_.I.JSC$19932_onRequestData=function(k,E){this.JSC$19932_lastStatusCode_=k.JSC$19925_lastStatusCode_;if(this.state_==0)if(this.JSC$19930_channelDebug_.debug("TestConnection: Got data for stage 1"),E){try{var S=this.JSC$19930_parser_.parse(E)}catch(R){t6t(this.JSC$19930_channel_,this);return}this.JSC$19932_hostPrefix_=S[0];this.blockedPrefix_=S[1]}else this.JSC$19930_channelDebug_.debug("TestConnection: Null responseText"),t6t(this.JSC$19930_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(yC(7),Date.now()):E=="11111"?(yC(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19932_lastStatusCode_=200,this.JSC$19932_request_.cancel(),this.JSC$19930_channelDebug_.debug("Test connection succeeded; using streaming connection"),yC(12),e1t(this.JSC$19930_channel_,this,!0)):(yC(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.I.JSC$19932_onRequestComplete=function(){this.JSC$19932_lastStatusCode_=this.JSC$19932_request_.JSC$19925_lastStatusCode_;this.JSC$19932_request_.JSC$19925_successful_?this.state_==0?(this.JSC$19930_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,JrA(this)):(this.state_=2,cr3(this))):this.state_==2&&(this.JSC$19930_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19930_channelDebug_.debug("Test connection succeeded; using streaming connection"),
yC(12),e1t(this.JSC$19930_channel_,this,!0)):(this.JSC$19930_channelDebug_.debug("Test connection failed; not using streaming"),yC(11),e1t(this.JSC$19930_channel_,this,!1))):(this.JSC$19930_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?yC(9):this.state_==2&&yC(10),t6t(this.JSC$19930_channel_,this,this.JSC$19932_request_.getLastError()))};
_.I.JSC$19932_shouldUseSecondaryDomains=function(){return this.JSC$19930_channel_.JSC$19932_shouldUseSecondaryDomains()};
_.I.isActive=function(){return this.JSC$19930_channel_.isActive()};
_.I.notifyServerReachabilityEvent=function(k){this.JSC$19930_channel_.notifyServerReachabilityEvent(k)};var g4=function(k,E,S){this.state_=1;this.JSC$19933_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19933_channelDebug_=new w5;this.JSC$19933_parser_=new HwG;this.firstTestResults_=k||null;this.secondTestResults_=E!=null?E:null;this.asyncTest_=S||!1},TAx=function(k,E){this.JSC$19935_mapId=k;
this.map=E;this.context=null};
_.I=g4.prototype;_.I.JSC$19937_extraHeaders_=null;_.I.JSC$19937_extraParams_=null;_.I.forwardChannelRequest_=null;_.I.JSC$19937_backChannelRequest_=null;_.I.JSC$19937_path_=null;_.I.JSC$19937_forwardChannelUri_=null;_.I.JSC$19937_backChannelUri_=null;_.I.JSC$19937_hostPrefix_=null;_.I.JSC$19937_nextRid_=0;_.I.JSC$19937_nextMapId_=0;_.I.handler_=null;_.I.JSC$19937_forwardChannelTimerId_=null;_.I.JSC$19937_backChannelTimerId_=null;_.I.JSC$19937_deadBackChannelTimerId_=null;_.I.connectionTest_=null;
_.I.useChunked_=null;_.I.JSC$19937_lastArrayId_=-1;_.I.JSC$19937_lastPostResponseArrayId_=-1;_.I.JSC$19937_lastStatusCode_=-1;_.I.JSC$19937_forwardChannelRetryCount_=0;_.I.JSC$19937_backChannelRetryCount_=0;_.I.JSC$19937_channelVersion_=8;var w5T={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},PLU=function(k,E,S,R){_.mL.call(this,"timingevent",k);this.size=E;this.rtt=S;this.retries=R};
_.dy(PLU,_.mL);var BAI=function(k){_.mL.call(this,"serverreachability",k)};
_.dy(BAI,_.mL);g4.prototype.connect=function(k,E,S,R,V){this.JSC$19933_channelDebug_.debug("connect()");yC(0);this.JSC$19937_path_=E;this.JSC$19937_extraParams_=S||{};R&&V!==void 0&&(this.JSC$19937_extraParams_.OSID=R,this.JSC$19937_extraParams_.OAID=V);this.asyncTest_?(Td((0,_.uk)(this.connectTest_,this,k),100),YN0(this)):this.connectTest_(k)};
g4.prototype.disconnect=function(){this.JSC$19933_channelDebug_.debug("disconnect()");WyP(this);if(this.state_==3){var k=this.JSC$19937_nextRid_++,E=this.JSC$19937_forwardChannelUri_.clone();_.kO(E,"SID",this.sid_);_.kO(E,"RID",k);_.kO(E,"TYPE","terminate");Fy3(this,E);k=new oY(this,this.JSC$19933_channelDebug_,this.sid_,k);k.JSC$19925_type_=2;k.JSC$19925_baseUri_=_.VE(E.clone());(new Image).src=k.JSC$19925_baseUri_.toString();k.JSC$19925_requestStartTime_=Date.now();kiA(k)}yr3(this)};
g4.prototype.connectTest_=function(k){this.JSC$19933_channelDebug_.debug("connectTest_()");this.connectionTest_=new iGP(this,this.JSC$19933_channelDebug_);this.connectionTest_.JSC$19932_extraHeaders_=this.JSC$19937_extraHeaders_;this.connectionTest_.JSC$19930_parser_=this.JSC$19933_parser_;this.connectionTest_.connect(k)};
var YN0=function(k){k.JSC$19933_channelDebug_.debug("connectChannel_()");k.JSC$19937_ensureInState_(1,0);k.JSC$19937_forwardChannelUri_=h1a(k,k.JSC$19937_path_);oBU(k)},WyP=function(k){k.connectionTest_&&(k.connectionTest_.abort(),k.connectionTest_=null);
k.JSC$19937_backChannelRequest_&&(k.JSC$19937_backChannelRequest_.cancel(),k.JSC$19937_backChannelRequest_=null);k.JSC$19937_backChannelTimerId_&&(_.Vt.clearTimeout(k.JSC$19937_backChannelTimerId_),k.JSC$19937_backChannelTimerId_=null);X53(k);k.forwardChannelRequest_&&(k.forwardChannelRequest_.cancel(),k.forwardChannelRequest_=null);k.JSC$19937_forwardChannelTimerId_&&(_.Vt.clearTimeout(k.JSC$19937_forwardChannelTimerId_),k.JSC$19937_forwardChannelTimerId_=null)},gBU=function(k,E){if(k.state_==0)throw Error("Sk");
k.JSC$19933_outgoingMaps_.length==1E3&&k.JSC$19933_parser_.stringify(E);k.JSC$19933_outgoingMaps_.push(new TAx(k.JSC$19937_nextMapId_++,E));k.state_!=2&&k.state_!=3||oBU(k)};
g4.prototype.JSC$19932_isClosed=function(){return this.state_==0};
g4.prototype.getState=function(){return this.state_};
var oBU=function(k){k.forwardChannelRequest_||k.JSC$19937_forwardChannelTimerId_||(k.JSC$19937_forwardChannelTimerId_=Td((0,_.uk)(k.JSC$19937_onStartForwardChannelTimer_,k),0),k.JSC$19937_forwardChannelRetryCount_=0)};
g4.prototype.JSC$19937_onStartForwardChannelTimer_=function(k){this.JSC$19937_forwardChannelTimerId_=null;UqR(this,k)};
var UqR=function(k,E){k.JSC$19933_channelDebug_.debug("startForwardChannel_");if(k.state_==1){if(!E){k.JSC$19933_channelDebug_.debug("open_()");k.JSC$19937_nextRid_=Math.floor(Math.random()*1E5);E=k.JSC$19937_nextRid_++;var S=new oY(k,k.JSC$19933_channelDebug_,"",E);S.JSC$19925_extraHeaders_=k.JSC$19937_extraHeaders_;var R=HGP(k),V=k.JSC$19937_forwardChannelUri_.clone();_.kO(V,"RID",E);_.kO(V,"CVER","1");Fy3(k,V);GMP(S,V,R);k.forwardChannelRequest_=S;k.state_=2}}else k.state_==3&&(E?KyU(k,E):k.JSC$19933_outgoingMaps_.length==
0?k.JSC$19933_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):k.forwardChannelRequest_||(KyU(k),k.JSC$19933_channelDebug_.debug("startForwardChannel_ finished, sent request")))},KyU=function(k,E){if(E)if(k.JSC$19937_channelVersion_>6){k.JSC$19933_outgoingMaps_=k.pendingMaps_.concat(k.JSC$19933_outgoingMaps_);
k.pendingMaps_.length=0;var S=k.JSC$19937_nextRid_-1;E=HGP(k)}else S=E.JSC$19923_rid_,E=E.JSC$19925_postData_;else S=k.JSC$19937_nextRid_++,E=HGP(k);var R=k.JSC$19937_forwardChannelUri_.clone();_.kO(R,"SID",k.sid_);_.kO(R,"RID",S);_.kO(R,"AID",k.JSC$19937_lastArrayId_);Fy3(k,R);S=new oY(k,k.JSC$19933_channelDebug_,k.sid_,S,k.JSC$19937_forwardChannelRetryCount_+1);S.JSC$19925_extraHeaders_=k.JSC$19937_extraHeaders_;S.setTimeout(1E4+Math.round(1E4*Math.random()));k.forwardChannelRequest_=S;GMP(S,R,
E)},Fy3=function(k,E){k.handler_&&(k=k.handler_.JSC$19944_getAdditionalParams())&&_.fO.forEach(k,function(S,R){_.kO(E,R,S)})},HGP=function(k){var E=Math.min(k.JSC$19933_outgoingMaps_.length,1E3),S=["count="+E];
if(k.JSC$19937_channelVersion_>6&&E>0){var R=k.JSC$19933_outgoingMaps_[0].JSC$19935_mapId;S.push("ofs="+R)}else R=0;for(var V={},N=0;N<E;V={mapId$jscomp$3:void 0},N++){V.mapId$jscomp$3=k.JSC$19933_outgoingMaps_[N].JSC$19935_mapId;var h=k.JSC$19933_outgoingMaps_[N].map;V.mapId$jscomp$3=k.JSC$19937_channelVersion_<=6?N:V.mapId$jscomp$3-R;try{_.fO.forEach(h,function(J){return function(m,a){S.push("req"+J.mapId$jscomp$3+"_"+a+"="+encodeURIComponent(m))}}(V))}catch(J){S.push("req"+V.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}k.pendingMaps_=k.pendingMaps_.concat(k.JSC$19933_outgoingMaps_.splice(0,E));
return S.join("&")},p5A=function(k){k.JSC$19937_backChannelRequest_||k.JSC$19937_backChannelTimerId_||(k.JSC$19937_backChannelAttemptId_=1,k.JSC$19937_backChannelTimerId_=Td((0,_.uk)(k.JSC$19937_onStartBackChannelTimer_,k),0),k.JSC$19937_backChannelRetryCount_=0)},rr0=function(k){if(k.JSC$19937_backChannelRequest_||k.JSC$19937_backChannelTimerId_||k.JSC$19937_backChannelRetryCount_>=3)return!1;
k.JSC$19933_channelDebug_.debug("Going to retry GET");k.JSC$19937_backChannelAttemptId_++;k.JSC$19937_backChannelTimerId_=Td((0,_.uk)(k.JSC$19937_onStartBackChannelTimer_,k),ArG(k,k.JSC$19937_backChannelRetryCount_));k.JSC$19937_backChannelRetryCount_++;return!0};
g4.prototype.JSC$19937_onStartBackChannelTimer_=function(){this.JSC$19937_backChannelTimerId_=null;this.JSC$19933_channelDebug_.debug("Creating new HttpRequest");this.JSC$19937_backChannelRequest_=new oY(this,this.JSC$19933_channelDebug_,this.sid_,"rpc",this.JSC$19937_backChannelAttemptId_);this.JSC$19937_backChannelRequest_.JSC$19925_extraHeaders_=this.JSC$19937_extraHeaders_;this.JSC$19937_backChannelRequest_.JSC$19925_readyStateChangeThrottleMs_=0;var k=this.JSC$19937_backChannelUri_.clone();_.kO(k,
"RID","rpc");_.kO(k,"SID",this.sid_);_.kO(k,"CI",this.useChunked_?"0":"1");_.kO(k,"AID",this.JSC$19937_lastArrayId_);Fy3(this,k);_.kO(k,"TYPE","xmlhttp");COP(this.JSC$19937_backChannelRequest_,k,!0,this.JSC$19937_hostPrefix_,!1);this.JSC$19933_channelDebug_.debug("New Request created")};
var e1t=function(k,E,S){k.JSC$19933_channelDebug_.debug("Test Connection Finished");k.useChunked_=k.secondTestResults_==null?S:!k.secondTestResults_;k.JSC$19937_lastStatusCode_=E.JSC$19932_lastStatusCode_;k.asyncTest_||YN0(k)},t6t=function(k,E){k.JSC$19933_channelDebug_.debug("Test Connection Failed");
k.JSC$19937_lastStatusCode_=E.JSC$19932_lastStatusCode_;Xs(k,2)};
g4.prototype.JSC$19932_onRequestData=function(k,E){if(this.state_!=0&&(this.JSC$19937_backChannelRequest_==k||this.forwardChannelRequest_==k))if(this.JSC$19937_lastStatusCode_=k.JSC$19925_lastStatusCode_,this.forwardChannelRequest_==k&&this.state_==3)if(this.JSC$19937_channelVersion_>7){try{var S=this.JSC$19933_parser_.parse(E)}catch(R){S=null}if(Array.isArray(S)&&S.length==3)if(E=S,E[0]==0)a:if(this.JSC$19933_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19937_backChannelTimerId_)this.JSC$19933_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19937_backChannelRequest_)if(this.JSC$19937_backChannelRequest_.JSC$19925_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19925_requestStartTime_)X53(this),this.JSC$19937_backChannelRequest_.cancel(),this.JSC$19937_backChannelRequest_=null;else break a;else this.JSC$19933_channelDebug_.warning("We do not have a BackChannel established");rr0(this);yC(19)}else this.JSC$19937_lastPostResponseArrayId_=E[1],k=this.JSC$19937_lastPostResponseArrayId_-this.JSC$19937_lastArrayId_,0<
k&&(E=E[2],this.JSC$19933_channelDebug_.debug(E+" bytes (in "+k+" arrays) are outstanding on the BackChannel"),E<37500&&this.useChunked_&&this.JSC$19937_backChannelRetryCount_==0&&!this.JSC$19937_deadBackChannelTimerId_&&(this.JSC$19937_deadBackChannelTimerId_=Td((0,_.uk)(this.JSC$19937_onBackChannelDead_,this),6E3)));else this.JSC$19933_channelDebug_.debug("Bad POST response data returned"),Xs(this,11)}else E!="y2f%"&&(this.JSC$19933_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Xs(this,11));else this.JSC$19937_backChannelRequest_==k&&X53(this),_.Jh(E)||(k=this.JSC$19933_parser_.parse(E),this.onInput_(k))};
g4.prototype.JSC$19937_onBackChannelDead_=function(){this.JSC$19937_deadBackChannelTimerId_!=null&&(this.JSC$19937_deadBackChannelTimerId_=null,this.JSC$19937_backChannelRequest_.cancel(),this.JSC$19937_backChannelRequest_=null,rr0(this),yC(20))};
var X53=function(k){k.JSC$19937_deadBackChannelTimerId_!=null&&(_.Vt.clearTimeout(k.JSC$19937_deadBackChannelTimerId_),k.JSC$19937_deadBackChannelTimerId_=null)};
g4.prototype.JSC$19932_onRequestComplete=function(k){this.JSC$19933_channelDebug_.debug("Request complete");if(this.JSC$19937_backChannelRequest_==k){X53(this);this.JSC$19937_backChannelRequest_=null;var E=2}else if(this.forwardChannelRequest_==k)this.forwardChannelRequest_=null,E=1;else return;this.JSC$19937_lastStatusCode_=k.JSC$19925_lastStatusCode_;if(this.state_!=0)if(k.JSC$19925_successful_)if(E==1){E=k.JSC$19925_postData_?k.JSC$19925_postData_.length:0;k=Date.now()-k.JSC$19925_requestStartTime_;
var S=l2P;S.dispatchEvent(new PLU(S,E,k,this.JSC$19937_forwardChannelRetryCount_));oBU(this);this.handler_&&this.handler_.JSC$19944_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else p5A(this);else{S=k.getLastError();if(S==3||S==7||S==0&&this.JSC$19937_lastStatusCode_>0)this.JSC$19933_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19933_channelDebug_.debug("Maybe retrying, last error: "+qEa(S,this.JSC$19937_lastStatusCode_));var R;if(R=E==1)this.forwardChannelRequest_||
this.JSC$19937_forwardChannelTimerId_||this.state_==1||this.JSC$19937_forwardChannelRetryCount_>=2?R=!1:(this.JSC$19933_channelDebug_.debug("Going to retry POST"),this.JSC$19937_forwardChannelTimerId_=Td((0,_.uk)(this.JSC$19937_onStartForwardChannelTimer_,this,k),ArG(this,this.JSC$19937_forwardChannelRetryCount_)),this.JSC$19937_forwardChannelRetryCount_++,R=!0);if(R||E==2&&rr0(this))return;this.JSC$19933_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19933_channelDebug_.debug("Error: HTTP request failed");
switch(S){case 1:Xs(this,5);break;case 4:Xs(this,10);break;case 3:Xs(this,6);break;case 7:Xs(this,12);break;default:Xs(this,2)}}};
var ArG=function(k,E){var S=5E3+Math.floor(Math.random()*1E4);k.isActive()||(k.JSC$19933_channelDebug_.debug("Inactive channel"),S*=2);return S*E};
g4.prototype.onInput_=function(k){for(var E=0;E<k.length;E++){var S=k[E];this.JSC$19937_lastArrayId_=S[0];S=S[1];this.state_==2?S[0]=="c"?(this.sid_=S[1],this.JSC$19937_hostPrefix_=S[2],S=S[3],S!=null?this.JSC$19937_channelVersion_=S:this.JSC$19937_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19944_channelOpened(),this.JSC$19937_backChannelUri_=aYa(this,this.JSC$19937_hostPrefix_,this.JSC$19937_path_),p5A(this)):S[0]=="stop"&&Xs(this,7):this.state_==3&&(S[0]=="stop"?Xs(this,7):
S[0]!="noop"&&this.handler_&&this.handler_.JSC$19944_channelHandleArray(S),this.JSC$19937_backChannelRetryCount_=0)}};
g4.prototype.JSC$19937_ensureInState_=function(k){if(!_.bC(arguments,this.state_))throw Error("Tk`"+this.state_);};
var Xs=function(k,E){k.JSC$19933_channelDebug_.info("Error code "+E);if(E==2||E==9){var S=null;k.handler_&&(S=null);var R=(0,_.uk)(k.testGoogleComCallback_,k);S||(S=new _.DZ("//www.google.com/images/cleardot.gif"),_.VE(S));mBG(S.toString(),1E4,R)}else yC(2);k.onError_(E)};
g4.prototype.testGoogleComCallback_=function(k){k?(this.JSC$19933_channelDebug_.info("Successfully pinged google.com"),yC(2)):(this.JSC$19933_channelDebug_.info("Failed to ping google.com"),yC(1),this.onError_(8))};
g4.prototype.onError_=function(k){this.JSC$19933_channelDebug_.debug("HttpChannel: error - "+k);this.state_=0;this.handler_&&this.handler_.JSC$19944_channelError(k);yr3(this);WyP(this)};
var yr3=function(k){k.state_=0;k.JSC$19937_lastStatusCode_=-1;if(k.handler_)if(k.pendingMaps_.length==0&&k.JSC$19933_outgoingMaps_.length==0)k.handler_.JSC$19944_channelClosed();else{k.JSC$19933_channelDebug_.debug("Number of undelivered maps, pending: "+k.pendingMaps_.length+", outgoing: "+k.JSC$19933_outgoingMaps_.length);var E=_.d1(k.pendingMaps_),S=_.d1(k.JSC$19933_outgoingMaps_);k.pendingMaps_.length=0;k.JSC$19933_outgoingMaps_.length=0;k.handler_.JSC$19944_channelClosed(E,S)}},h1a=function(k,
E){E=mqW(k,null,E);
k.JSC$19933_channelDebug_.debug("GetForwardChannelUri: "+E);return E},aYa=function(k,E,S){E=mqW(k,k.JSC$19932_shouldUseSecondaryDomains()?E:null,S);
k.JSC$19933_channelDebug_.debug("GetBackChannelUri: "+E);return E},mqW=function(k,E,S){var R=_.Gx(S);
if(R.JSC$10027_domain_!="")E&&_.Q4(R,E+"."+R.JSC$10027_domain_),_.OF(R,R.JSC$10027_port_);else{var V=window.location;R=uaI(V.protocol,E?E+"."+V.hostname:V.hostname,+V.port,S)}k.JSC$19937_extraParams_&&_.fO.forEach(k.JSC$19937_extraParams_,function(N,h){_.kO(R,h,N)});
_.kO(R,"VER",k.JSC$19937_channelVersion_);Fy3(k,R);return R};
g4.prototype.JSC$19932_createXhrIo=function(k){if(k)throw Error("Qk");k=new _.Xc;k.JSC$9791_withCredentials_=!1;return k};
g4.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
g4.prototype.notifyServerReachabilityEvent=function(k){var E=l2P;E.dispatchEvent(new BAI(E,k))};
g4.prototype.JSC$19932_shouldUseSecondaryDomains=function(){return!1};
new fma;var uAP=function(){};
_.I=uAP.prototype;_.I.JSC$19944_channelOpened=function(){};
_.I.JSC$19944_channelHandleArray=function(){};
_.I.JSC$19944_channelSuccess=function(){};
_.I.JSC$19944_channelError=function(){};
_.I.JSC$19944_channelClosed=function(){};
_.I.JSC$19944_getAdditionalParams=function(){return{}};
_.I.isActive=function(){return!0};var xqR=function(k){k.front_.length===0&&(k.front_=k.back_,k.front_.reverse(),k.back_=[])};
_.I=tqP.prototype;_.I.enqueue=function(k){this.back_.push(k)};
_.I.peek=function(){xqR(this);return _.Ll(this.front_)};
_.I.getCount=function(){return this.front_.length+this.back_.length};
_.I.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.I.clear=function(){this.front_=[];this.back_=[]};
_.I.contains=function(k){return _.bC(this.front_,k)||_.bC(this.back_,k)};
_.I.remove=function(k){var E=this.front_;var S=Array.prototype.lastIndexOf.call(E,k,E.length-1);S>=0?(_.Aht(E,S),E=!0):E=!1;return E||_.ZR(this.back_,k)};
_.I.getValues=function(){for(var k=[],E=this.front_.length-1;E>=0;--E)k.push(this.front_[E]);E=this.back_.length;for(var S=0;S<E;++S)k.push(this.back_[S]);return k};var UT=function(k){this.JSC$19948_map_=new _.nS;this.size=0;k&&this.addAll(k)},LyR=function(k){var E=typeof k;
return E=="object"&&k||E=="function"?"o"+_.Oj(k):E.charAt(0)+k};
_.I=UT.prototype;_.I.getCount=function(){return this.JSC$19948_map_.size};
_.I.add=function(k){this.JSC$19948_map_.set(LyR(k),k);this.size=this.JSC$19948_map_.size};
_.I.addAll=function(k){k=_.q4(k);for(var E=k.length,S=0;S<E;S++)this.add(k[S]);this.size=this.JSC$19948_map_.size};
_.I.removeAll=function(k){k=_.q4(k);for(var E=k.length,S=0;S<E;S++)this.remove(k[S]);this.size=this.JSC$19948_map_.size};
_.I.delete=function(k){k=this.JSC$19948_map_.remove(LyR(k));this.size=this.JSC$19948_map_.size;return k};
_.I.remove=function(k){return this.delete(k)};
_.I.clear=function(){this.JSC$19948_map_.clear();this.size=0};
_.I.isEmpty=function(){return this.JSC$19948_map_.size===0};
_.I.has=function(k){return this.JSC$19948_map_.containsKey(LyR(k))};
_.I.contains=function(k){return this.JSC$19948_map_.containsKey(LyR(k))};
_.I.getValues=function(){return this.JSC$19948_map_.getValues()};
_.I.values=function(){return this.JSC$19948_map_.values()};
_.I.clone=function(){return new UT(this)};
_.I.equals=function(k){return this.getCount()==AzT(k)&&jAT(this,k)};
var jAT=function(k,E){var S=AzT(E);if(k.getCount()>S)return!1;!(E instanceof UT)&&S>5&&(E=new UT(E));return rzA(k,function(R){var V=E;return V.contains&&typeof V.contains=="function"?V.contains(R):V.containsValue&&typeof V.containsValue=="function"?V.containsValue(R):_.sj(V)||typeof V==="string"?_.bC(V,R):_.fO.containsValue(V,R)})};
UT.prototype.__iterator__=function(){return this.JSC$19948_map_.__iterator__(!1)};
UT.prototype[Symbol.iterator]=function(){return this.values()};var Dqt={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(k){return(this._clampValue(k)-this.min)/(this.max-this.min)},
_clampValue:function(k){return Math.min(this.max,Math.max(this.min,this._calcStep(k)))},
_calcStep:function(k){k=parseFloat(k);if(!this.step)return k;k=Math.round((k-this.min)/this.step);return this.step<1?k/(1/this.step)+this.min:k*this.step+this.min},
_validateValue:function(){var k=this._clampValue(this.value);this.value=this.oldValue=isNaN(k)?this.oldValue:k;return this.value!==k},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var $qI;var fY3;_.F6({_template:function(){if(fY3!==void 0)return fY3;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;$qI===void 0&&($qI=document.createElement("template"));var R=$qI;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return fY3=k},
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(){_.JB(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(k){k.keyCode===27&&(k.preventDefault(),this.close())},
_track:function(k){if(!this.persistent&&!this.disableSwipe)switch(k.preventDefault(),k.detail.state){case "start":this._trackStart(k);break;case "track":this._trackMove(k);break;case "end":this._trackEnd(k)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var k=this.$.contentContainer.getBoundingClientRect();this._savedWidth=k.width;this._translateOffset=this.position==="left"?k.left:k.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(k){this._trackDetails&&(this._translateDrawer(k.detail.dx+this._translateOffset),this._trackDetails.push({dx:k.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(k){if(this._trackDetails){var E=k.detail.dx+this._translateOffset,S=this.getWidth();E=this.position==="left"?E>=0||E<=-S:E<=0||E>=S;if(!E){var R=this._trackDetails;this._trackDetails=null;this._flingDrawer(k,R);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}S/=2;k.detail.dx<-S?this.opened=this.position==="right":k.detail.dx>S&&(this.opened=this.position==="left");E?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(k,E){for(var S=Date.now(),R=S-100,V,N=0,h=E.length-1;N<=h;){var J=N+h>>1,m=E[J];m.timeStamp>=R?(V=m,h=J-1):N=J+1}return V?(k.detail.dx-V.dx)/(S-V.timeStamp||1):0},
_flingDrawer:function(k,E){E=this._calculateVelocity(k,E);if(!(Math.abs(E)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;k=k.detail.dx+this._translateOffset;var S=this.getWidth(),R=this.position==="left",V=E>0;V?(E=Math.max(E,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(E=Math.min(E,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");E=this._FLING_INITIAL_SLOPE*(!V&&R?-(k+S):V&&!R?S-k:-k)/E;this._styleTransitionDuration(E);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,E)}},
_styleTransitionDuration:function(k){this.style.transitionDuration=k+"ms";this.$.contentContainer.style.transitionDuration=k+"ms";this.$.scrim.style.transitionDuration=k+"ms"},
_styleTransitionTimingFunction:function(k){this.$.contentContainer.style.transitionTimingFunction=k;this.$.scrim.style.transitionTimingFunction=k},
_translateDrawer:function(k){var E=this.getWidth();this.position==="left"?(k=Math.max(-E,Math.min(k,0)),this.$.scrim.style.opacity=1+k/E):(k=Math.max(0,Math.min(k,E)),this.$.scrim.style.opacity=1-k/E);this.translate3d(k+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var k=this._drawerState;k===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;k!==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=""),k!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var k=_.em(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"])');k.length>0?(this._firstTabStop=k[0],this._lastTabStop=k[k.length-1]):
this._lastTabStop=this._firstTabStop=null;(k=this.getAttribute("tabindex"))&&parseInt(k,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(k){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||k.keyCode!==9||(k.shiftKey?this._firstTabStop&&_.em(k).localTarget===this._firstTabStop&&(k.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.em(k).localTarget===this._lastTabStop&&(k.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(k,E){this.toggleClass("visible",k&&!E,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 vBW;var bGt;_.F6({_template:function(){if(bGt!==void 0)return bGt;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;vBW===void 0&&(vBW=document.createElement("template"));var R=vBW;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return bGt=k},
is:"tp-yt-paper-progress",behaviors:[Dqt],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(k){this.toggleClass("indeterminate",k,this.$.primaryProgress)},
_transformProgress:function(k,E){k.style.transform=k.style.webkitTransform="scaleX("+E/100+")"},
_mainRatioChanged:function(k){this._transformProgress(this.$.primaryProgress,k)},
_progressChanged:function(k,E,S,R,V){k=this._clampValue(k);E=this._clampValue(E);var N=this._calcRatio(k)*100,h=this._calcRatio(E)*100;this._setSecondaryRatio(N);this._transformProgress(this.$.secondaryProgress,N);this._transformProgress(this.$.primaryProgress,h);this.secondaryProgress=k;V?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",E);this.setAttribute("aria-valuemin",S);this.setAttribute("aria-valuemax",R)},
_disabledChanged:function(k){this.setAttribute("aria-disabled",k?"true":"false")},
_hideSecondaryProgress:function(k){return k===0}});var ZG0;var dqP;var sAx=function(){};
_.I=sAx.prototype;_.I.registered=function(){};
_.I.addOwnKeyBinding=function(){};
_.I.removeOwnKeyBindings=function(){};
_.I.keyboardEventMatchesKeys=function(){};
_.I._collectKeyBindings=function(){};
_.I._prepKeyBindings=function(){};
_.I._addKeyBinding=function(){};
_.I._resetKeyEventListeners=function(){};
_.I._listenKeyEventListeners=function(){};
_.I._unlistenKeyEventListeners=function(){};
_.I._onKeyBindingEvent=function(){};
_.I._triggerKeyHandler=function(){};
_.I._tapHandler=function(){};
_.I._focusChanged=function(){};
_.I._detectKeyboardFocus=function(){};
_.I._userActivate=function(){};
_.I._upHandler=function(){};
_.I._spaceKeyDownHandler=function(){};
_.I._spaceKeyUpHandler=function(){};
_.I._asyncClick=function(){};
_.I._pressedChanged=function(){};
_.I._ariaActiveAttributeChanged=function(){};
_.I._activeChanged=function(){};
_.I._controlStateChanged=function(){};
_.I._changedButtonState=function(){};
_.I._focusBlurHandler=function(){};
_.I._disabledChanged=function(){};
_.I._changedControlState=function(){};
_.I._buttonStateChanged=function(){};
_.I._downHandler=function(){};
_.I.ensureRipple=function(){};
_.I.getRipple=function(){};
_.I.hasRipple=function(){};
_.I._noinkChanged=function(){};
_.I._calcRatio=function(){};
_.I._clampValue=function(){};
_.I._calcStep=function(){};
_.I._validateValue=function(){};
_.I._update=function(){};
_.I._setImmediateValue=function(){};
_.I._setExpand=function(){};
_.I._setDragging=function(){};
_.I._setTransiting=function(){};
_.I._setMarkers=function(){};
_.I._setPressed=function(){};
_.I._setPointerDown=function(){};
_.I._setReceivedFocusFromKeyboard=function(){};
_.I._setFocused=function(){};
_.I._setRatio=function(){};
sAx=_.F6({_template:function(){if(dqP!==void 0)return dqP;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;ZG0===void 0&&(ZG0=document.createElement("template"));var R=ZG0;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return dqP=k},
is:"tp-yt-paper-slider",behaviors:[_.YD,_.oo,_.v$8,Dqt],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&&_.Mm(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(k,E,S){this.setAttribute("aria-valuemin",E);this.setAttribute("aria-valuemax",S);this.setAttribute("aria-valuenow",k);this._positionKnob(this._calcRatio(k)*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(k){this._setImmediateValue(this._calcStep(this._calcKnobPosition(k)));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(k){return(this.max-this.min)*k/100+this.min},
_onTrack:function(k){k.stopPropagation();switch(k.detail.state){case "start":this._trackStart(k);break;case "track":this._trackX(k);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(k){this.dragging||this._trackStart(k);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,k.detail.dx*(this._isRTL?-1:1)));k=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(k);k=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(k+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var k=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;k.transform=k.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(k){this._expandKnob();k.preventDefault();this.focus()},
_bartrack:function(k){this._allowBarEvent(k)&&this._onTrack(k)},
_barclick:function(k){this._w=this.$.sliderBar.offsetWidth;var E=this.$.sliderBar.getBoundingClientRect();E=(k.detail.x-E.left)/this._w*100;this._isRTL&&(E=100-E);var S=this.ratio;this._setTransiting(!0);this._positionKnob(E);S===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
k.preventDefault();this.focus()},
_bardown:function(k){this._allowBarEvent(k)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(k))},
_knobTransitionEnd:function(k){k.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(k,E,S,R){R||this._setMarkers([]);E=Math.round((S-E)/this.step);E>k&&(E=k);if(E<0||!isFinite(E))E=0;this._setMarkers(Array(E))},
_mergeClasses:function(k){return Object.keys(k).filter(function(E){return k[E]}).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(k){return!this.ignoreBarTouch||k.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(k){this._isRTL?this._incrementKey(k):this._decrementKey(k)},
_rightKey:function(k){this._isRTL?this._decrementKey(k):this._incrementKey(k)},
_incrementKey:function(k){this.disabled||(k.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),k.preventDefault())},
_decrementKey:function(k){this.disabled||(k.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),k.preventDefault())},
_changeValue:function(k){this.value=k.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(k){k.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.fX2._createRipple.call(this)},
_focusedChanged:function(k){k&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=k?"":"none",this._ripple.holdDown=k)}});var lY3;var jxT;var H2=null,DYU=function(){};
_.I=DYU.prototype;_.I.fit=function(){};
_.I._discoverInfo=function(){};
_.I.resetFit=function(){};
_.I.refit=function(){};
_.I.position=function(){};
_.I.constrain=function(){};
_.I._sizeDimension=function(){};
_.I.__sizeDimension=function(){};
_.I.center=function(){};
_.I.__getNormalizedRect=function(){};
_.I.__getOffscreenArea=function(){};
_.I.__getPosition=function(){};
_.I.notifyResize=function(){};
_.I.assignParentResizable=function(){};
_.I.stopResizeNotificationsFor=function(){};
_.I._subscribeIronResize=function(){};
_.I._unsubscribeIronResize=function(){};
_.I.resizerShouldNotify=function(){};
_.I._onDescendantIronResize=function(){};
_.I._fireResize=function(){};
_.I._onIronRequestResizeNotifications=function(){};
_.I._parentResizableChanged=function(){};
_.I._notifyDescendant=function(){};
_.I._requestResizeNotifications=function(){};
_.I._findParent=function(){};
_.I.toggle=function(){};
_.I.open=function(){};
_.I.close=function(){};
_.I.cancel=function(){};
_.I.invalidateTabbables=function(){};
_.I._ensureSetup=function(){};
_.I._canceledChanged=function(){};
_.I._withBackdropChanged=function(){};
_.I._prepareRenderOpened=function(){};
_.I._finishRenderOpened=function(){};
_.I._finishRenderClosed=function(){};
_.I._preparePositioning=function(){};
_.I._finishPositioning=function(){};
_.I._applyFocus=function(){};
_.I._onCaptureClick=function(){};
_.I._onCaptureFocus=function(){};
_.I._onCaptureEsc=function(){};
_.I._onCaptureTab=function(){};
_.I._onIronResize=function(){};
_.I._onNodesChange=function(){};
_.I.__ensureFirstLastFocusables=function(){};
_.I.__openedChanged=function(){};
_.I.__deraf=function(){};
_.I.__updateScrollObservers=function(){};
_.I.__addScrollListeners=function(){};
_.I.__removeScrollListeners=function(){};
_.I.__isValidScrollAction=function(){};
_.I.__onCaptureScroll=function(){};
_.I.__saveScrollPosition=function(){};
_.I.__restoreScrollPosition=function(){};
_.I._setCanceled=function(){};
DYU=_.F6({_template:function(){if(jxT!==void 0)return jxT;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;lY3===void 0&&(lY3=document.createElement("template"));var R=lY3;S.call(E,R.content.cloneNode(!0),k.content.firstChild);return jxT=k},
is:"tp-yt-paper-toast",behaviors:[_.lA],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(){_.Yx._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.v7.requestAvailability()},
show:function(k){typeof k=="string"&&(k={text:k});for(var E in k)E.indexOf("_")===0?_.Yx._warn('The property "'+E+'" is private and was not set.'):E in this?this[E]=k[E]:_.Yx._warn('The property "'+E+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(k){k&&k.target===this&&k.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(H2&&H2!==this&&H2.close(),H2=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):H2===this&&(H2=null);_.s9._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(k){this.positionTarget=k},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var $YP=new _.z_("disablePersonalizationAction");var mMR=new _.z_("showDmaConsentFlowCommand");var e7G=new _.z_("showMmgNoticeCommand");var foR=new _.z_("saveConsentAction");var v80=function(k){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fP(k)};
_.y(v80,_.iu);var by0=_.qXI(v80);var ZyT=new _.z_("updateTopbarAvatarAction");var dYY=new _.z_("channelHandleValidationResultRenderer");var sxU=new _.z_("generateHandleFromNameResultRenderer");var loP=new _.z_("channelHandleInputRenderer");var MEA=new _.z_("copyLinkRenderer");var qV0=new _.z_("timedCommand");var zbU=new _.z_("clearCookieAction");var QxY=new _.z_("getMultiPageMenuAction");var Oy0=new _.z_("addToGuideSectionAction"),GDG=new _.z_("removeFromGuideSectionAction");var CRR=new _.z_("updateNotificationsUnseenCountAction");var kQA=new _.z_("resetChannelUnreadCountCommand");var E_I=new _.z_("resetSubscriptionsUnreadDotCommand");var ShI=new _.z_("selectLanguageCommand");var UxP=new _.z_("sendFeedbackAction");var Rk0=new _.z_("uploadImageToScottyCommand");var VYa=new _.z_("registerPromoCommand");var Nut=new _.z_("setPushNotificationsEnabledCommand");var I8P=new _.z_("desktopTopbarRenderer");var n_P=new _.z_("surveyFollowUpRenderer");var is0=new _.z_("handlesClaimingRadioOptionRenderer");var hkW=new _.z_("hotkeyDialogRenderer");var J72=new _.z_("modifyReportFormCommand");var c7U=new _.z_("accountLinkCommand");var mZG=new _.z_("accountUnlinkCommand");var ekP=new _.z_("logAccountLinkingEventCommand");var a8W=new _.z_("guideCollapsibleEntryRenderer");var tYR=new _.z_("guideDownloadsEntryRenderer");var y9P=new _.z_("guideEntryRenderer");var Tux=new _.z_("getLocationCommand");var wWP=new _.z_("locationCollectionCommand");var Pix=new _.z_("storiesItemViewModel");var BuP=new _.z_("addToRemoteQueueAction");var Yh2=new _.z_("insertInRemoteQueueAction");var W1R=new _.z_("removeFromRemoteQueueAction");var F1A=new _.z_("notificationRenderer");var OLP=new _.z_("localWatchHistoryCommand");var y7R=new _.z_("pdgBuyFlowHeaderRenderer");var o_3=new _.z_("pdgColorSliderRenderer");var XWP=new _.z_("pdgCommentOptionRenderer");var g_3=new _.z_("pdgCommentPreviewRenderer");var UZt=new _.z_("superVodSelectableItemButtonRenderer");var Hs3=new _.z_("switchButtonRenderer");var K1I=new _.z_("upsellDialogRenderer");var pWY=new _.z_("feedbackQuestionRenderer"),A7a=new _.z_("feedbackOptionRenderer");var r73=new _.z_("sponsorshipsTierRenderer"),ult=new _.z_("sponsorshipsPromotionChannelRenderer");var xZP=new _.z_("simpleSurveyMessageRenderer");var UMA=new _.z_("invokeInstrumentManagerAction");var L1G=new _.z_("logYpcFlowDismissCommand");var jTT=new _.z_("logYpcFlowStartCommand");var DZt=new _.z_("unlimitedCreateFamilyEndpoint");var $ZY=new _.z_("iconBadgeRenderer");var GeW=new _.z_("collaborativePlaylistVisibilityValidationRule");var f8t=function(k){_.mL.call(this,"channelMessage");this.message=k};
_.y(f8t,_.mL);var v_x=function(k){_.mL.call(this,"channelError");this.error=k};
_.y(v_x,_.mL);var bsP={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",NO_DISCONNECT_TOAST:"ndt",CONNECT_TOAST_ONCE_PER_SESSION:"ctops"},ZsU={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},dZx={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},sTG={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},l8P={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var K_=function(k){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 _.nS;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;k&&(this.id=k.id||k.name,this.name=k.name,this.clientName=k.clientName?k.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=k.app,this.type=k.type||"REMOTE_CONTROL",this.username=k.user||"",this.avatar=k.userAvatarUri||"",this.obfuscatedGaiaId=k.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=k.ownerObfuscatedGaiaId||"",this.castUserId=k.castUserId||"",this.theme=k.theme||"u",MYY(this,k.capabilities||""),qhT(this,
k.compatibleSenderThemes||""),zkI(this,k.experiments||""),this.remoteControllerUrl=k.remoteControllerUrl||"",this.localChannelEncryptionKey=k.localChannelEncryptionKey||"",this.deviceContext=k.deviceContext,this.brand=k.brand||"",this.model=k.model||"",this.year=k.year||0,this.os=k.os||"",this.osVersion=k.osVersion||"",this.chipset=k.chipset||"",this.mdxDialServerType=k.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=k.pairingType||"unknown",k=k.deviceInfo)&&(k=JSON.parse(k),this.brand=
k.brand||"",this.model=k.model||"",this.year=k.year||0,this.os=k.os||"",this.osVersion=k.osVersion||"",this.chipset=k.chipset||"",this.clientName=k.clientName?k.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=k.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
K_.prototype.copy=function(){var k={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&&(k.brand=this.brand);
this.model&&(k.model=this.model);this.year&&(k.year=this.year);this.os&&(k.os=this.os);this.osVersion&&(k.osVersion=this.osVersion);this.chipset&&(k.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(k.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(k.mdxDialServerType=this.mdxDialServerType);k=new K_(k);k.connected=this.connected;k.remoteControllerUrl=this.remoteControllerUrl;k.localChannelEncryptionKey=this.localChannelEncryptionKey;k.deviceContext=
this.deviceContext;k.castUserId=this.castUserId;return k};
K_.prototype.equals=function(k){return k?this.id==k.id:!1};
var MYY=function(k,E){k.capabilities.clear();_.lb(E.split(","),_.I_(_.fO.contains,bsP)).forEach(function(S){k.capabilities.add(S)})},qhT=function(k,E){k.compatibleSenderThemes.clear();
_.lb(E.split(","),_.I_(_.fO.contains,ZsU)).forEach(function(S){k.compatibleSenderThemes.add(S)})},zkI=function(k,E){k.experiments.clear();
E.split(",").forEach(function(S){k.experiments.add(S)})};_.dy(wpx,_.r7);_.I=wpx.prototype;_.I.JSC$19984_onTick_=function(){this.JSC$19982_interval_=Math.min(3E5,this.JSC$19982_interval_*2);this.JSC$19984_listener_();this.nextTickTime_&&this.start()};
_.I.start=function(){var k=this.JSC$19982_interval_+15E3*Math.random(),E=this.delay_;E.isActive()||E.start(k);this.nextTickTime_=Date.now()+k};
_.I.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.I.isActive=function(){return this.delay_.isActive()};
_.I.reset=function(){this.delay_.stop();this.JSC$19982_interval_=5E3};_.dy(P8,uAP);_.I=P8.prototype;_.I.subscribe=function(k,E,S){return this.pubsub_.subscribe(k,E,S)};
_.I.unsubscribe=function(k,E,S){return this.pubsub_.unsubscribe(k,E,S)};
_.I.unsubscribeByKey=function(k){return this.pubsub_.unsubscribeByKey(k)};
_.I.publish=function(k,E){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.I.dispose=function(){this.JSC$19985_disposed_||(this.JSC$19985_disposed_=!0,_.nu(this.pubsub_),this.disconnect(),_.nu(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19985_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.GR({})})};
_.I.isDisposed=function(){return this.JSC$19985_disposed_};
_.I.connect=function(k,E,S){var R=this,V,N,h,J;return _.c(function(m){if(m.nextAddress==1)return _.X5(m,2),R.useAsyncBrowserChannelHandler_?m.yield(R.connectPromise_,2):m.jumpTo(2);_.ob(m);if(R.JSC$19985_disposed_||R.JSC$19985_channel_&&R.JSC$19985_channel_.getState()==2)return m.return();R.sCookie_="";R.reconnectTimer_.stop();R.connectionParams_=k||null;R.connectUi_=E||0;V=R.JSC$19985_pathPrefix_+"/test";N=R.JSC$19985_pathPrefix_+"/bind";h=new g4(S?S.firstTestResults:null,S?S.secondTestResults:null,
R.enableAsyncTest_);if(J=R.JSC$19985_channel_)J.handler_=null;h.handler_=R;R.JSC$19985_channel_=h;if(R.useAsyncBrowserChannelHandler_)return R.connectPromise_=QT3(R).then(function(){return OsR(R,V,N,J,S)}),m.return(R.connectPromise_.then(function(){R.connectPromise_=_.GR()}));
OsR(R,V,N,J,S);return _.gP(m,0)})};
var OsR=function(k,E,S,R,V){GQG(k);if(k.JSC$19985_channel_){var N=_.Mg("ID_TOKEN"),h=k.JSC$19985_channel_.JSC$19937_extraHeaders_||{};N?h["x-youtube-identity-token"]=N:delete h["x-youtube-identity-token"];k.JSC$19985_channel_.JSC$19937_extraHeaders_=h}CiG(k);R?(R.getState(),k.JSC$19985_channel_.connect(E,S,k.defaultQueryParams_,R.sid_,R.JSC$19937_lastArrayId_)):V?k.JSC$19985_channel_.connect(E,S,k.defaultQueryParams_,V.sessionId,V.arrayId):k.JSC$19985_channel_.connect(E,S,k.defaultQueryParams_)};
P8.prototype.disconnect=function(k){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.GR())}finally{this.disconnectUi_=k||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),GQG(this),this.JSC$19985_channel_&&(this.JSC$19985_channel_.getState()==3&&UqR(this.JSC$19985_channel_),this.JSC$19985_channel_.disconnect()),this.disconnectUi_=0}};
P8.prototype.sendMessage=function(k,E){var S=this,R;return _.c(function(V){switch(V.nextAddress){case 1:_.X5(V,2);if(!S.useAsyncBrowserChannelHandler_){V.jumpTo(2);break}return V.yield(S.connectPromise_,2);case 2:_.ob(V);if(S.JSC$19985_disposed_)return V.return();R={_sc:k};E&&_.fO.extend(R,E);if(S.reconnectTimer_.isActive()||(S.JSC$19985_channel_?S.JSC$19985_channel_.getState():0)==2){S.JSC$19985_pendingMessages_.push(R);V.jumpTo(6);break}if(!S.isChannelOpened()){V.jumpTo(6);break}_.X5(V,8);if(!S.useAsyncBrowserChannelHandler_||
kCa(S,k)){V.jumpTo(8);break}return V.yield(QT3(S),8);case 8:_.ob(V,0,0,1);S.isChannelOpened()&&(kCa(S,k)||CiG(S),GQG(S),gBU(S.JSC$19985_channel_,R));_.gP(V,6,1);break;case 6:_.gP(V,0)}})};
var kCa=function(k,E){return k.enableMdxAuthForConnectionOnly_?!0:k.disableMdxAuthForAdMessages_?Object.values(dZx).includes(E):k.disableMdxAuthForNonPlaybackMessages_?!Object.values(sTG).includes(E):k.disableMdxAuthForShortsMessages_?Object.values(l8P).includes(E):!1};
P8.prototype.JSC$19944_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19985_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)EpY(this);else{var k=this.JSC$19985_pendingMessages_;this.JSC$19985_pendingMessages_=[];var E=k.length;CiG(this);SW3(this,k,E);RjI(this)}else RjI(this)};
var EpY=function(k){var E,S;_.c(function(R){if(R.nextAddress==1)return _.X5(R,2),R.yield(QT3(k),2);_.ob(R);E=k.JSC$19985_pendingMessages_;k.JSC$19985_pendingMessages_=[];S=E.length;SW3(k,E,S);RjI(k);return _.gP(R,0)})},SW3=function(k,E,S){for(var R=0;R<S;++R)gBU(k.JSC$19985_channel_,E[R]);
RjI(k)},RjI=function(k){k.publish("handlerOpened");
k.JSC$19985_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.I=P8.prototype;_.I.JSC$19944_channelError=function(k){var E=k==2&&this.JSC$19985_channel_.JSC$19937_lastStatusCode_==401;k==4||E||this.reconnectTimer_.start();this.publish("handlerError",k,E);E=Object.keys(w5T).find(function(S){return w5T[S]===k});
this.JSC$19985_channelErrorCounter.increment("BROWSER_CHANNEL",E!=null?E:"UNKNOWN")};
_.I.JSC$19944_channelClosed=function(k,E){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(E)for(var S=E.length,R=0;R<S;++R){var V=E[R].map;V&&this.JSC$19985_pendingMessages_.push(V)}this.JSC$19985_channelClosedCounter.increment("BROWSER_CHANNEL");k&&this.pendingMapsOnClosedCounter.JSC$9927_streamzService.JSC$9782_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",k.length);E&&this.undeliveredMapsOnClosedCounter.JSC$9930_streamzService.JSC$9782_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
E.length)};
_.I.JSC$19944_channelSuccess=function(k,E){E!=null&&k!=null&&this.channelMessageSentCounter.increment()};
_.I.JSC$19944_getAdditionalParams=function(){var k={v:2};this.sCookie_&&(k.gsessionid=this.sCookie_);this.connectUi_!=0&&(k.ui=""+this.connectUi_);this.disconnectUi_!=0&&(k.ui=""+this.disconnectUi_);this.connectionParams_&&_.fO.extend(k,this.connectionParams_);return k};
_.I.JSC$19944_channelHandleArray=function(k){k[0]=="S"?this.sCookie_=k[1]:k[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19985_channel_.disconnect()):this.publish("handlerMessage",new TdP(k[0],k[1]));this.JSC$19985_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.I.isChannelOpened=function(){return!!this.JSC$19985_channel_&&this.JSC$19985_channel_.getState()==3};
var GQG=function(k){if(k.JSC$19985_channel_){var E=k.JSC$19985_getXsrfToken_(),S=k.JSC$19985_channel_.JSC$19937_extraHeaders_||{};E?S["x-youtube-lounge-xsrf-token"]=E:delete S["x-youtube-lounge-xsrf-token"];k.JSC$19985_channel_.JSC$19937_extraHeaders_=S}},QT3=function(k){if(k.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.GR();
if(!k.enableCachedUpdateAuthorizationHeader_)return V42(k);k.updateAuthorizationHeaderPromise_===null&&(k.updateAuthorizationHeaderPromise_=V42(k));return k.updateAuthorizationHeaderPromise_},V42=function(k){return _.Ws(k.getAuthorizationHeader_().then(function(E){NMI(k,E)}).thenCatch(function(){}),function(){k.updateAuthorizationHeaderPromise_=null})},NMI=function(k,E){if(k.JSC$19985_channel_){var S=k.JSC$19985_channel_.JSC$19937_extraHeaders_||{};
E&&Object.keys(E).length>0?S=Object.assign({},S,E):delete S.Authorization;k.JSC$19985_channel_.JSC$19937_extraHeaders_=S}},CiG=function(k){k.getAuthorizationHeaderSync_&&!k.useAsyncBrowserChannelHandler_&&NMI(k,k.getAuthorizationHeaderSync_())};
_.I=P8.prototype;_.I.setLoungeToken=function(k){(this.defaultQueryParams_.loungeIdToken=k)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19985_channel_){var E=this.JSC$19985_channel_.JSC$19937_extraHeaders_||{};k?E["X-YouTube-LoungeId-Token"]=k:delete E["X-YouTube-LoungeId-Token"];this.JSC$19985_channel_.JSC$19937_extraHeaders_=E}};
_.I.getDeviceId=function(){return this.defaultQueryParams_.id};
_.I.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.I.reconnect=function(){var k=this.reconnectTimer_;k.delay_.fire();k.start()};
_.I.safeReconnect_=function(){var k=this.JSC$19985_channel_,E=0;k.JSC$19937_backChannelRequest_&&E++;k.forwardChannelRequest_&&E++;E==0&&this.connect(this.connectionParams_,this.connectUi_)};var XZ=function(k,E){var S=k.basePath;k.supportCors&&(S=k.scheme+"://"+k.domain+k.port+k.basePath);return _.Iu(S+E,{})};
B8.prototype.sendRequest=function(k,E,S,R,V,N,h){k={format:N?"RAW":"JSON",method:k,context:this,timeout:5E3,withCredentials:!!h,onSuccess:_.I_(this.JSC$19990_onSuccess_,R,!N),onError:_.I_(this.onError_,V),onTimeout:_.I_(this.JSC$19990_onTimeout_,V)};S&&(k.postParams=S,k.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.gO(E,k)};
B8.prototype.JSC$19990_onSuccess_=function(k,E,S,R){E?k(R):k({text:S.responseText})};
B8.prototype.onError_=function(k,E){k(Error("Uk`"+E.status))};
B8.prototype.JSC$19990_onTimeout_=function(k){k(Error("Vk"))};var W8=function(k,E){return!!E&&(k.id==E||k.uuid==E)},I5W=function(k){return{name:k.name,
screenId:k.id,loungeToken:k.token,dialId:k.uuid,screenIdType:k.idType}},npW=function(k){return new Yc(k)},iQW=function(k){return Array.isArray(k)?_.vH(k,npW):[]},UhP=function(k){if(!k)return"null";
var E=k.token?".."+k.token.slice(-6):"-",S=k.uuid?".."+k.uuid.slice(-6):"-";return'{name:"'+k.name+'",id:'+k.id.substr(0,6)+"..,token:"+(E+",uuid:"+S+",idType:"+k.idType+"}")},EzR=function(k){return Array.isArray(k)?"["+_.vH(k,UhP).join(",")+"]":"null"};var xB3="",oU=null;var dB3=function(k,E){_.wG.call(this);var S=this;this.handler=k();this.handler.subscribe("handlerOpened",this.JSC$19997_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(R,V){S.onError(V)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=E};
_.y(dB3,_.wG);_.I=dB3.prototype;_.I.connect=function(k,E,S){this.handler.connect(k,E,S)};
_.I.disconnect=function(k){this.handler.disconnect(k)};
_.I.reconnect=function(){this.handler.reconnect()};
_.I.getDeviceId=function(){return this.handler.getDeviceId()};
_.I.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.I.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.I.JSC$19997_onOpened=function(){this.dispatchEvent("channelOpened");var k=this.handler,E=this.currentScreenId;_.BT("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!k.JSC$19985_channel_.useChunked_,sessionId:k.JSC$19985_channel_.sid_,arrayId:k.JSC$19985_channel_.JSC$19937_lastArrayId_});_.BT("yt-remote-session-screen-id",E);k=H5a();E=Kj2();_.bC(k,E)||k.push(E);uXG(k);r0W()};
_.I.onClosed=function(){this.dispatchEvent("channelClosed")};
_.I.onMessage=function(k){this.dispatchEvent(new f8t(k))};
_.I.onError=function(k){this.dispatchEvent(new v_x(k?1:0))};
_.I.sendMessage=function(k,E){this.handler.sendMessage(k,E)};
_.I.setLoungeToken=function(k){this.handler.setLoungeToken(k)};
_.I.dispose=function(){this.handler.dispose()};var Z5t=function(k,E,S){var R=this;S=S===void 0?function(){return""}:S;
var V=V===void 0?new vNP:V;var N=N===void 0?new _.H_:N;this.pathPrefix=k;this.defaultQueryParams=E;this.getXsrfToken=S;this.JSC$20000_pubsub=N;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new wpx(function(){var h;((h=R.channel)==null?void 0:tM3((new d5A(h,h.JSC$19908_channel_)).JSC$19918_channel_.forwardChannelRequestPool_))===0&&R.connect(R.connectionParams,R.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20000_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20000_channelOpenedCounter=new PKW;this.JSC$20000_channelClosedCounter=new BdP;this.JSC$20000_channelMessageReceivedCounter=new Wj0;this.JSC$20000_channelErrorCounter=new FjP};
Z5t.prototype.connect=function(k,E){k=k===void 0?{}:k;E=E===void 0?0:E;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=k,this.connectUi=E,hjP(this),(k=_.Mg("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=k: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 Fs(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,Jv0(this))};
var Jv0=function(k){_.wX(k.channel,"w",function(){k.channelState=3;k.reconnectTimer.reset();k.connectionParams=null;k.connectUi=0;for(var E=_.n(k.nonAckedMessagesOnChannelClosed),S=E.next();!S.done;S=E.next())S=S.value,k.channel&&k.channel.send(S);k.nonAckedMessagesOnChannelClosed=[];k.publish("webChannelOpened");k.JSC$20000_channelOpenedCounter.increment("WEB_CHANNEL")});
_.wX(k.channel,"x",function(){k.channelState=0;k.reconnectTimer.isActive()||k.publish("webChannelClosed");var E,S=(E=k.channel)==null?void 0:sgA(new d5A(E,E.JSC$19908_channel_));S&&(k.nonAckedMessagesOnChannelClosed=[].concat(_.$e(S)));k.JSC$20000_channelClosedCounter.increment("WEB_CHANNEL")});
_.wX(k.channel,"z",function(E){var S=E.data;S[0]==="gracefulReconnect"?(k.reconnectTimer.start(),k.channel&&k.channel.close()):k.publish("webChannelMessage",new TdP(S[0],S[1]));k.lastStatusCode=E.statusCode;k.JSC$20000_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.wX(k.channel,"y",function(){k.lastStatusCode===401||k.reconnectTimer.start();k.publish("webChannelError");k.JSC$20000_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.I=Z5t.prototype;_.I.disconnect=function(k){this.disconnectUi=k===void 0?0:k;this.reconnectTimer.stop();hjP(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.I.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.I.reconnect=function(){var k=this.reconnectTimer;k.delay_.fire();k.start()};
_.I.sendMessage=function(k,E){this.channel&&(hjP(this),k=Object.assign({},{_sc:k},E),this.channel.send(k))};
_.I.setLoungeToken=function(k){k||this.reconnectTimer.stop();k?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=k:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var hjP=function(k){var E=k.getXsrfToken();E?k.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=E:delete k.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.I=Z5t.prototype;_.I.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.I.publish=function(k){return this.JSC$20000_pubsub.publish.apply(this.JSC$20000_pubsub,[k].concat(_.$e(_.sX.apply(1,arguments))))};
_.I.subscribe=function(k,E,S){return this.JSC$20000_pubsub.subscribe(k,E,S)};
_.I.unsubscribe=function(k,E,S){return this.JSC$20000_pubsub.unsubscribe(k,E,S)};
_.I.unsubscribeByKey=function(k){return this.JSC$20000_pubsub.unsubscribeByKey(k)};
_.I.dispose=function(){this.JSC$20000_disposed||(this.JSC$20000_disposed=!0,_.nu(this.JSC$20000_pubsub),this.disconnect(),_.nu(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.I.isDisposed=function(){return this.JSC$20000_disposed};var b5P=function(k){_.wG.call(this);this.webChannelService=k();this.webChannelService.subscribe("webChannelOpened",this.JSC$20008_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.y(b5P,_.wG);_.I=b5P.prototype;_.I.connect=function(k,E){this.webChannelService.connect(k,E)};
_.I.disconnect=function(k){this.webChannelService.disconnect(k)};
_.I.reconnect=function(){this.webChannelService.reconnect()};
_.I.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.I.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.I.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.I.JSC$20008_onOpened=function(){this.dispatchEvent("channelOpened")};
_.I.onClosed=function(){this.dispatchEvent("channelClosed")};
_.I.onMessage=function(k){this.dispatchEvent(new f8t(k))};
_.I.onError=function(){this.dispatchEvent(new v_x(this.webChannelService.lastStatusCode===401?1:0))};
_.I.sendMessage=function(k,E){this.webChannelService.sendMessage(k,E)};
_.I.setLoungeToken=function(k){this.webChannelService.setLoungeToken(k)};
_.I.dispose=function(){this.webChannelService.dispose()};var kbP=Date.now(),g5=null,Gct=Array(50),Kp=-1,CKI=!1;_.dy(pp,_.xL);pp.prototype.getScreens=function(){return this.screens};
pp.prototype.contains=function(k){return!!UBG(this.screens,k)};
pp.prototype.get=function(k){return k?FZ(this.screens,k):null};
var cv3=function(k,E){var S=k.get(E.uuid)||k.get(E.id);if(S)return k=S.name,S.id=E.id||S.id,S.name=E.name,S.token=E.token,S.uuid=E.uuid||S.uuid,S.name!=k;k.screens.push(E);return!0},mk3=function(k,E){var S=k.screens.length!=E.length;
k.screens=_.lb(k.screens,function(N){return!!UBG(E,N)});
for(var R=E.length,V=0;V<R;V++)S=cv3(k,E[V])||S;return S},ejA=function(k,E){var S=k.screens.length;
k.screens=_.lb(k.screens,function(R){return!(R||E?!R!=!E?0:R.id==E.id:1)});
return k.screens.length<S};
pp.prototype.info=function(k){UH(this.JSC$20009_logName_,k)};var a5U=function(k,E,S,R,V){_.xL.call(this);this.JSC$20012_http_=k;this.pairingCode_=E;this.deviceId_=S;this.friendlyName_=R;this.enableShortLivedLoungeToken_=V;this.pollIndex_=0;this.JSC$20012_xhr_=null;this.JSC$20012_timer_=NaN};
_.y(a5U,_.xL);_.I=a5U.prototype;_.I.start=function(){!this.JSC$20012_xhr_&&isNaN(this.JSC$20012_timer_)&&this.poll_()};
_.I.stop=function(){this.JSC$20012_xhr_&&(this.JSC$20012_xhr_.abort(),this.JSC$20012_xhr_=null);isNaN(this.JSC$20012_timer_)||(_.ou(this.JSC$20012_timer_),this.JSC$20012_timer_=NaN)};
_.I.disposeInternal=function(){this.stop();_.xL.prototype.disposeInternal.call(this)};
_.I.poll_=function(){this.JSC$20012_timer_=NaN;this.JSC$20012_xhr_=_.gO(XZ(this.JSC$20012_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.uk)(this.JSC$20014_onSuccess_,this),onError:(0,_.uk)(this.onError_,this),onTimeout:(0,_.uk)(this.JSC$20014_onTimeout_,this)})};
_.I.JSC$20014_onSuccess_=function(k,E){this.JSC$20012_xhr_=null;k=E.screen||{};k.dialId=this.deviceId_;k.name=this.friendlyName_;E=-1;this.enableShortLivedLoungeToken_&&k.shortLivedLoungeToken&&k.shortLivedLoungeToken.value&&k.shortLivedLoungeToken.refreshIntervalMs&&(k.screenIdType="shortLived",k.loungeToken=k.shortLivedLoungeToken.value,E=k.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Yc(k),E)};
_.I.onError_=function(k){this.JSC$20012_xhr_=null;k.status&&k.status==404?this.pollIndex_>=t4Y.length?this.publish("pairingFailed",Error("Wk")):(k=t4Y[this.pollIndex_],this.JSC$20012_timer_=_.W_((0,_.uk)(this.poll_,this),k),this.pollIndex_++):this.publish("pairingFailed",Error("Xk`"+k.status))};
_.I.JSC$20014_onTimeout_=function(){this.JSC$20012_xhr_=null;this.publish("pairingFailed",Error("Yk"))};
var t4Y=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.dy(r5,pp);_.I=r5.prototype;_.I.start=function(){Ae(this)&&this.publish("screenChange");!_.Yl("yt-remote-lounge-token-expiration")&&TMt(this);_.ou(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.W_((0,_.uk)(this.start,this),1E4)};
_.I.add=function(k,E){Ae(this);cv3(this,k);waT(this,!1);this.publish("screenChange");E(k);k.token||TMt(this)};
_.I.remove=function(k,E){var S=Ae(this);ejA(this,k)&&(waT(this,!1),S=!0);E(k);S&&this.publish("screenChange")};
_.I.updateName=function(k,E,S,R){var V=Ae(this),N=this.get(k.id);N?(N.name!=E&&(N.name=E,waT(this,!1),V=!0),S(k)):R(Error("Zk"));V&&this.publish("screenChange")};
_.I.disposeInternal=function(){_.ou(this.loungeTokenRefreshTimer_);r5.superClass_.disposeInternal.call(this)};
var TMt=function(k){if(k.screens.length){var E=_.vH(k.screens,function(R){return R.id}),S=XZ(k.JSC$20016_http_,"/pairing/get_lounge_token_batch");
k.JSC$20016_http_.sendRequest("POST",S,{screen_ids:E.join(",")},(0,_.uk)(k.handleLoungeTokens_,k),(0,_.uk)(k.handleLoungeTokenError_,k))}};
r5.prototype.handleLoungeTokens_=function(k){Ae(this);var E=this.screens.length;k=k&&k.screens||[];for(var S=k.length,R=0;R<S;++R){var V=k[R],N=this.get(V.screenId);N&&(N.token=V.loungeToken,--E)}waT(this,!E);E&&UH(this.JSC$20009_logName_,"Missed "+E+" lounge tokens.")};
r5.prototype.handleLoungeTokenError_=function(k){UH(this.JSC$20009_logName_,"Requesting lounge tokens failed: "+k)};
var Ae=function(k){if(_.Y("deprecate_pair_servlet_enabled"))return mk3(k,[]);var E=iQW(jEP());E=_.lb(E,function(S){return!S.uuid});
return mk3(k,E)},waT=function(k,E){$BR(_.vH(k.screens,I5W));
E&&DB2()};var p_=function(k,E){_.xL.call(this);this.getScreensToCheck_=E;E=(E=_.Yl("yt-remote-online-screen-ids")||"")?E.split(","):[];for(var S={},R=this.getScreensToCheck_(),V=R.length,N=0;N<V;++N){var h=R[N].id;S[h]=_.bC(E,h)}this.screenIdSet_=S;this.JSC$20019_http_=k;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;Pwa("Initialized with "+(0,_.oL)(this.screenIdSet_))};
_.y(p_,_.xL);p_.prototype.isOnline=function(k){return!!this.screenIdSet_[k]};
p_.prototype.start=function(){var k=parseInt(_.Yl("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.ZO()-144E5<k?0:k)?BM0(this):(this.fastCheckEndTime_=_.ZO()+3E5,_.BT("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
p_.prototype.isEmpty=function(){return _.fO.isEmpty(this.screenIdSet_)};
p_.prototype.update=function(){Pwa("Updating availability on schedule.");var k=this.getScreensToCheck_(),E=_.fO.filter(this.screenIdSet_,function(S,R){return S&&!!FZ(k,R)},this);
YWt(this,E)};
var WDt=function(k,E,S){var R=XZ(k.JSC$20019_http_,"/pairing/get_screen_availability");k.JSC$20019_http_.sendRequest("POST",R,{lounge_token:E.token},(0,_.uk)(function(V){V=V.screens||[];for(var N=V.length,h=0;h<N;++h)if(V[h].loungeToken==E.token){S(V[h].status=="online");return}S(!1)},k),(0,_.uk)(function(){S(!1)},k))};
p_.prototype.disposeInternal=function(){_.ou(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.xL.prototype.disposeInternal.call(this)};
var YWt=function(k,E){a:if(_.fO.getCount(E)!=_.fO.getCount(k.screenIdSet_))var S=!1;else{S=_.fO.getKeys(E);for(var R=S.length,V=0;V<R;++V)if(!k.screenIdSet_[S[V]]){S=!1;break a}S=!0}S||(Pwa("Updated online screens: "+(0,_.oL)(k.screenIdSet_)),k.screenIdSet_=E,k.publish("screenChange"));FDG(k)},BM0=function(k){isNaN(k.refreshTimer_)||_.ou(k.refreshTimer_);
k.refreshTimer_=_.W_((0,_.uk)(k.requestScreenAvailability_,k),k.fastCheckEndTime_>0&&k.fastCheckEndTime_<_.ZO()?2E4:1E4)};
p_.prototype.requestScreenAvailability_=function(){_.ou(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var k=yvT(this);if(_.fO.getCount(k)){var E=XZ(this.JSC$20019_http_,"/pairing/get_screen_availability"),S={lounge_token:_.fO.getKeys(k).join(",")};this.currentRequest_=this.JSC$20019_http_.sendRequest("POST",E,S,(0,_.uk)(this.onScreenAvailability_,this,k),(0,_.uk)(this.onScreenAvailabilityError_,this))}else YWt(this,{}),BM0(this)};
p_.prototype.onScreenAvailability_=function(k,E){this.currentRequest_=null;var S=_.fO.getKeys(yvT(this));if(_.GI(S,_.fO.getKeys(k))){E=E.screens||[];S={};for(var R=E.length,V=0;V<R;++V)S[k[E[V].loungeToken]]=E[V].status=="online";YWt(this,S);BM0(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
p_.prototype.onScreenAvailabilityError_=function(k){this.warn_("Screen availability failed: "+k);this.currentRequest_=null;BM0(this)};
var Pwa=function(k){UH("OnlineScreenService",k)};
p_.prototype.warn_=function(k){UH("OnlineScreenService",k)};
var yvT=function(k){var E={};_.Sn(k.getScreensToCheck_(),function(S){S.token?E[S.token]=S.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return E},FDG=function(k){k=_.fO.getKeys(_.fO.filter(k.screenIdSet_,function(E){return E}));
k.sort(_.LI1);k.length?_.BT("yt-remote-online-screen-ids",k.join(","),60):_.WT("yt-remote-online-screen-ids")};_.dy(uS,pp);_.I=uS.prototype;_.I.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.I.add=function(k,E,S){this.localScreenService_.add(k,E,S)};
_.I.remove=function(k,E,S){this.localScreenService_.remove(k,E,S);this.onlineScreenService_.update()};
_.I.updateName=function(k,E,S,R){this.localScreenService_.contains(k)?this.localScreenService_.updateName(k,E,S,R):(k="Updating name of unknown screen: "+k.name,UH(this.JSC$20009_logName_,k),R(Error(k)))};
_.I.getScreens=function(k){return k?this.screens:IkW(this.screens,_.lb(this.automaticScreens_,function(E){return!this.contains(E)},this))};
_.I.JSC$20024_getOnlineScreens=function(){return _.lb(this.getScreens(!0),function(k){return this.onlineScreenService_.isOnline(k.id)},this)};
var XaT=function(k,E,S,R,V,N){k.info("getAutomaticScreenByIds "+S+" / "+E);S||(S=k.deviceToScreenId_[E]);var h=k.getScreens(),J=S?FZ(h,S):null;S&&(k.disableAutomaticScreenCache_||J)||(J=FZ(h,E));if(J){J.uuid=E;var m=AL(k,J);WDt(k.onlineScreenService_,m,function(a){V(a?m:null)})}else S?opI(k,S,(0,_.uk)(function(a){var T=AL(this,new Yc({name:R,
screenId:S,loungeToken:a,dialId:E||""}));WDt(this.onlineScreenService_,T,function(w){V(w?T:null)})},k),N):V(null)};
uS.prototype.JSC$20024_getScreenByPollingPairingCode=function(k,E,S,R,V,N){var h=this;this.info("getDialScreenByPairingCode "+k+" / "+E);var J=new a5U(this.JSC$20022_http_,k,E,S,R);J.subscribe("pairingComplete",function(m,a){_.nu(J);V(AL(h,m),a)});
J.subscribe("pairingFailed",function(m){_.nu(J);N(m)});
J.start();return(0,_.uk)(J.stop,J)};
var gpA=function(k,E){for(var S=k.screens.length,R=0;R<S;++R)if(k.screens[R].name==E)return k.screens[R];return null};
uS.prototype.JSC$20024_getScreenByPairingCode=function(k,E,S,R){_.gO(XZ(this.JSC$20022_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:k},timeout:5E3,onSuccess:(0,_.uk)(function(V,N){V=new Yc(N.screen||{});if(!V.name||gpA(this,V.name)){a:{N=V.name;for(var h=2,J=E(N,h);gpA(this,J);){h++;if(h>20)break a;J=E(N,h)}N=J}V.name=N}S(AL(this,V))},this),
onError:(0,_.uk)(function(V){R(Error("$k`"+V.status))},this),
onTimeout:(0,_.uk)(function(){R(Error("al"))},this)})};
var UkU=function(k,E,S){WDt(k.onlineScreenService_,E,S)};
uS.prototype.disposeInternal=function(){_.nu(this.localScreenService_);_.nu(this.onlineScreenService_);uS.superClass_.disposeInternal.call(this)};
var opI=function(k,E,S,R){k.info("requestLoungeToken_ for "+E);var V={postParams:{screen_ids:E},method:"POST",context:k,onSuccess:function(N,h){N=h&&h.screens||[];N[0]&&N[0].screenId==E?S(N[0].loungeToken):R(Error("bl"))},
onError:function(){R(Error("cl"))}};
_.gO(XZ(k.JSC$20022_http_,"/pairing/get_lounge_token_batch"),V)},HQA=function(k){k.screens=k.localScreenService_.getScreens();
for(var E=_.fO.transpose(k.deviceToScreenId_),S=k.screens.length,R=0;R<S;++R){var V=k.screens[R];V.uuid=E[V.id]||""}k.info("Updated manual screens: "+EzR(k.screens))};
uS.prototype.handleScreenChange_=function(){HQA(this);this.publish("screenChange");this.onlineScreenService_.update()};
var Si3=function(k){KDx(k);k.localScreenService_=new r5(k.JSC$20022_http_);k.localScreenService_.subscribe("screenChange",(0,_.uk)(k.handleScreenChange_,k));HQA(k);k.disableAutomaticScreenCache_||(k.automaticScreens_=iQW(_.Yl("yt-remote-automatic-screen-cache")||[]));KDx(k);k.info("Initializing automatic screens: "+EzR(k.automaticScreens_));k.onlineScreenService_=new p_(k.JSC$20022_http_,(0,_.uk)(k.getScreens,k,!0));k.onlineScreenService_.subscribe("screenChange",(0,_.uk)(function(){this.publish("onlineScreenChange")},
k))},AL=function(k,E){var S=k.get(E.id);
S?(S.uuid=E.uuid,E=S):((S=FZ(k.automaticScreens_,E.uuid))?(S.id=E.id,S.token=E.token,E=S):k.automaticScreens_.push(E),k.disableAutomaticScreenCache_||paY(k));KDx(k);k.deviceToScreenId_[E.uuid]=E.id;_.BT("yt-remote-device-id-map",k.deviceToScreenId_,31536E3);return E},paY=function(k){k=_.lb(k.automaticScreens_,function(E){return E.idType!="shortLived"});
_.BT("yt-remote-automatic-screen-cache",_.vH(k,I5W))},KDx=function(k){k.deviceToScreenId_=_.Yl("yt-remote-device-id-map")||{}};
uS.prototype.dispose=uS.prototype.dispose;_.dy(xc,_.xL);var r4=function(k,E){k.screen_=E;k.publish("sessionScreen",k.screen_)},AvP=function(k,E){k.screen_&&(k.screen_.token=E,AL(k.JSC$20026_screenService_,k.screen_));
k.publish("sessionScreen",k.screen_)};
xc.prototype.onSessionStopped=function(k){this.isDisposed()||(k&&(uP(this,""+k),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
xc.prototype.info=function(k){UH(this.JSC$20026_logName_,k)};
var uP=function(k,E){UH(k.JSC$20026_logName_,E)};
xc.prototype.JSC$20028_getCastSession=function(){return null};
xc.prototype.setDisplayStatus=function(k){var E=this.receiver_;k?(E.displayStatus=new chrome.cast.ReceiverDisplayStatus(k,[]),E.displayStatus.showStop=!0):E.displayStatus=null;chrome.cast.setReceiverDisplayStatus(E,(0,_.uk)(function(){this.info("Updated receiver status for "+E.friendlyName+": "+k)},this),(0,_.uk)(function(){uP(this,"Failed to update receiver status for: "+E.friendlyName)},this))};
xc.prototype.disposeInternal=function(){this.setDisplayStatus("");xc.superClass_.disposeInternal.call(this)};var x1=function(k,E,S){xc.call(this,k,E,"CastSession");var R=this;this.config_=S;this.JSC$20031_session_=null;this.JSC$20031_boundSessionUpdate_=(0,_.uk)(this.JSC$20033_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.uk)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.W_(function(){rv3(R,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20031_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20031_isInitLoungeToken_=!1;this.JSC$20031_lastLoungeTokenRefreshError_="unknown"};
_.y(x1,xc);_.I=x1.prototype;
_.I.setCastSession=function(k){if(this.JSC$20031_session_){if(this.JSC$20031_session_==k)return;uP(this,"Overriding cast session with new session object");uI3(this);this.JSC$20031_isInitLoungeToken_=!1;this.JSC$20031_lastLoungeTokenRefreshError_="unknown";this.JSC$20031_session_.removeUpdateListener(this.JSC$20031_boundSessionUpdate_);this.JSC$20031_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20031_session_=k;this.JSC$20031_session_.addUpdateListener(this.JSC$20031_boundSessionUpdate_);this.JSC$20031_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);xkP(this,"getMdxSessionStatus")};
_.I.launchWithParams=function(k){this.info("launchWithParams no-op for Cast: "+(0,_.oL)(k))};
_.I.stop=function(){if(this.JSC$20031_session_)this.JSC$20031_session_.stop((0,_.uk)(function(){this.onSessionStopped()},this),(0,_.uk)(function(){this.onSessionStopped(Error("dl"))},this));
else this.onSessionStopped(Error("el"))};
_.I.setDisplayStatus=function(){};
_.I.disposeInternal=function(){this.info("disposeInternal");uI3(this);this.JSC$20031_session_&&(this.JSC$20031_session_.removeUpdateListener(this.JSC$20031_boundSessionUpdate_),this.JSC$20031_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20031_session_=null;xc.prototype.disposeInternal.call(this)};
var jnU=function(k,E){_.ou(k.getLoungeTokenTimeoutKey_);k.getLoungeTokenTimeoutKey_=0;E==0?LD0(k):k.getLoungeTokenTimeoutKey_=_.W_(function(){LD0(k)},E)},LD0=function(k){xkP(k,"getLoungeToken");
_.ou(k.onLoungeTokenTimeoutKey_);k.onLoungeTokenTimeoutKey_=_.W_(function(){Dk0(k,null)},3E4)},xkP=function(k,E){k.info("sendYoutubeMessage_: "+E+" "+(0,_.oL)(void 0));
var S={};S.type=E;k.JSC$20031_session_?k.JSC$20031_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",S,function(){},(0,_.uk)(function(){uP(this,"Failed to send message: "+E+".")},k)):uP(k,"Sending yt message without session: "+(0,_.oL)(S))};
x1.prototype.onYoutubeMessage_=function(k,E){if(!this.isDisposed())if(E)if(E=(0,_.TR)(E),_.qA(E))switch(k=""+E.type,E=E.data||{},this.info("onYoutubeMessage_: "+k+" "+(0,_.oL)(E)),k){case "mdxSessionStatus":rv3(this,E);break;case "loungeToken":Dk0(this,E);break;default:uP(this,"Unknown youtube message: "+k)}else uP(this,"Unable to parse message.");else uP(this,"No data in message.")};
var $kG=function(k,E){if(E)k.info("onConnectedScreenId_: Received screenId: "+E),k.screen_&&k.screen_.id==E||k.getScreen_(E,function(S){r4(k,S)},function(){return k.onSessionStopped()},5);
else k.onSessionStopped(Error("fl"))},vpP=function(k,E,S){k.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(E));
var R=new Yc(E);f5a(k,R,function(V){V?(k.JSC$20031_isInitLoungeToken_=!0,AL(k.JSC$20026_screenService_,R),r4(k,R),k.JSC$20031_lastLoungeTokenRefreshError_="unknown",jnU(k,S)):(_.O4(Error("gl`"+JSON.stringify(E))),k.onSessionStopped())},5)},rv3=function(k,E){_.ou(k.sessionStatusTimeoutKey_);
k.sessionStatusTimeoutKey_=0;if(E)k.config_.enableCastLoungeToken&&E.loungeToken?E.deviceId?k.screen_&&k.screen_.uuid==E.deviceId||(E.loungeTokenRefreshIntervalMs?vpP(k,{name:k.receiver_.friendlyName,screenId:E.screenId,loungeToken:E.loungeToken,dialId:E.deviceId,screenIdType:"shortLived"},E.loungeTokenRefreshIntervalMs):(_.O4(Error("il`"+JSON.stringify(E))),$kG(k,E.screenId))):(_.O4(Error("hl`"+JSON.stringify(E))),$kG(k,E.screenId)):$kG(k,E.screenId);else k.onSessionStopped(Error("fl"))},Dk0=function(k,
E){_.ou(k.onLoungeTokenTimeoutKey_);
k.onLoungeTokenTimeoutKey_=0;var S=null;if(E)if(E.loungeToken){var R;((R=k.screen_)==null?void 0:R.token)==E.loungeToken&&(S="staleLoungeToken")}else S="missingLoungeToken";else S="noLoungeTokenResponse";S?(k.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(E)+", error: "+S)),k.JSC$20031_lastLoungeTokenRefreshError_=S,jnU(k,3E4)):(AvP(k,E.loungeToken),k.JSC$20031_isInitLoungeToken_=!1,k.JSC$20031_lastLoungeTokenRefreshError_="unknown",jnU(k,E.loungeTokenRefreshIntervalMs))};
x1.prototype.getScreen_=function(k,E,S,R){_.ou(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;XaT(this.JSC$20026_screenService_,this.receiver_.label,k,this.receiver_.friendlyName,(0,_.uk)(function(V){V?E(V):R>=0?(uP(this,"Screen "+k+" appears to be offline. "+R+" retries left."),this.getScreenTimeoutKey_=_.W_((0,_.uk)(this.getScreen_,this,k,E,S,R-1),300)):S(Error("jl"))},this),S)};
var f5a=function(k,E,S,R){_.ou(k.JSC$20031_checkScreenAvailabilityTimeoutKey_);k.JSC$20031_checkScreenAvailabilityTimeoutKey_=0;UkU(k.JSC$20026_screenService_,E,function(V){V||R<0?S(V):k.JSC$20031_checkScreenAvailabilityTimeoutKey_=_.W_(function(){f5a(k,E,S,R-1)},300)})};
x1.prototype.JSC$20028_getCastSession=function(){return this.JSC$20031_session_};
x1.prototype.JSC$20033_onSessionUpdate_=function(k){this.isDisposed()||k||(uP(this,"Cast session died."),this.onSessionStopped())};
var uI3=function(k){_.ou(k.getScreenTimeoutKey_);k.getScreenTimeoutKey_=0;_.ou(k.JSC$20031_checkScreenAvailabilityTimeoutKey_);k.JSC$20031_checkScreenAvailabilityTimeoutKey_=0;_.ou(k.sessionStatusTimeoutKey_);k.sessionStatusTimeoutKey_=0;_.ou(k.onLoungeTokenTimeoutKey_);k.onLoungeTokenTimeoutKey_=0;_.ou(k.getLoungeTokenTimeoutKey_);k.getLoungeTokenTimeoutKey_=0};var L_=function(k,E,S,R){xc.call(this,k,E,"DialSession");this.config_=R;this.JSC$20035_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20035_theme_=S;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20035_deferredLaunchDeadlineTimer_=NaN;this.JSC$20035_boundSessionUpdate_=(0,_.uk)(this.JSC$20037_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20035_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20035_isInitLoungeToken_=!1;this.JSC$20035_lastLoungeTokenRefreshError_="unknown"};
_.y(L_,xc);L_.prototype.setCastSession=function(k){this.JSC$20035_session_=k;this.JSC$20035_session_.addUpdateListener(this.JSC$20035_boundSessionUpdate_)};
L_.prototype.launchWithParams=function(k){this.connectData_=k;this.deferredLaunch_()};
L_.prototype.stop=function(){bQ2(this);if(this.JSC$20035_session_)this.JSC$20035_session_.stop((0,_.uk)(this.onSessionStopped,this,null),(0,_.uk)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
L_.prototype.disposeInternal=function(){bQ2(this);this.JSC$20035_session_&&this.JSC$20035_session_.removeUpdateListener(this.JSC$20035_boundSessionUpdate_);this.JSC$20035_session_=null;xc.prototype.disposeInternal.call(this)};
var ZQP=function(k){var E;return!!(k.config_.enableDialLoungeToken&&((E=k.JSC$20035_session_)==null?0:E.getDialAppInfo))},snt=function(k){k.cancelPolling_=k.JSC$20026_screenService_.JSC$20024_getScreenByPollingPairingCode(k.reversePairingCode_,k.receiver_.label,k.receiver_.friendlyName,ZQP(k),function(E,S){k.cancelPolling_=function(){};
k.JSC$20035_isInitLoungeToken_=!0;r4(k,E);E.idType=="shortLived"&&S>0&&dkP(k,S)},function(E){k.cancelPolling_=function(){};
k.onSessionStopped(E)})};
L_.prototype.JSC$20037_onSessionUpdate_=function(k){this.isDisposed()||k||(uP(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var l5I=function(k){var E={};E.pairingCode=k.reversePairingCode_;E.theme=k.JSC$20035_theme_;vhG()&&(E.env_useStageMdx=1);return _.Ug(E)},M4T=function(k){return new Promise(function(E){k.reversePairingCode_=Xp3();
if(k.connectData_){var S=new chrome.cast.DialLaunchResponse(!0,l5I(k));E(S);snt(k)}else k.deferredLaunch_=function(){_.ou(k.JSC$20035_deferredLaunchDeadlineTimer_);k.deferredLaunch_=function(){};
k.JSC$20035_deferredLaunchDeadlineTimer_=NaN;var R=new chrome.cast.DialLaunchResponse(!0,l5I(k));E(R);snt(k)},k.JSC$20035_deferredLaunchDeadlineTimer_=_.W_(function(){k.deferredLaunch_()},100)})},zjx=function(k,E,S){k.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(E));
var R=new Yc(E);return(new Promise(function(V){qWI(k,R,function(N){N?(k.JSC$20035_isInitLoungeToken_=!0,AL(k.JSC$20026_screenService_,R),r4(k,R),dkP(k,S)):_.O4(Error("ll`"+JSON.stringify(E)));V(N)},5)})).then(function(V){return V?new chrome.cast.DialLaunchResponse(!1):M4T(k)})},Qn3=function(k,E){var S=k.launchData_.receiver.label,R=k.receiver_.friendlyName;
return(new Promise(function(V){XaT(k.JSC$20026_screenService_,S,E,R,function(N){N&&N.token&&r4(k,N);V(N)},function(N){uP(k,"Failed to get DIAL screen: "+N);
V(null)})})).then(function(V){return V&&V.token?new chrome.cast.DialLaunchResponse(!1):M4T(k)})},qWI=function(k,E,S,R){_.ou(k.JSC$20035_checkScreenAvailabilityTimeoutKey_);
k.JSC$20035_checkScreenAvailabilityTimeoutKey_=0;UkU(k.JSC$20026_screenService_,E,function(V){V||R<0?S(V):k.JSC$20035_checkScreenAvailabilityTimeoutKey_=_.W_(function(){qWI(k,E,S,R-1)},300)})},dkP=function(k,E){k.info("getDialAppInfoWithTimeout_ "+E);
ZQP(k)&&(_.ou(k.getDialAppInfoTimeoutKey_),k.getDialAppInfoTimeoutKey_=0,E==0?OQt(k):k.getDialAppInfoTimeoutKey_=_.W_(function(){OQt(k)},E))},OQt=function(k){ZQP(k)&&k.JSC$20035_session_.getDialAppInfo(function(E){k.info("getDialAppInfo dialLaunchData: "+JSON.stringify(E));
E=E.extraData||{};var S=null;if(E.loungeToken){var R;((R=k.screen_)==null?void 0:R.token)==E.loungeToken&&(S="staleLoungeToken")}else S="missingLoungeToken";S?(k.JSC$20035_lastLoungeTokenRefreshError_=S,dkP(k,3E4)):(k.JSC$20035_isInitLoungeToken_=!1,k.JSC$20035_lastLoungeTokenRefreshError_="unknown",AvP(k,E.loungeToken),dkP(k,E.loungeTokenRefreshIntervalMs))},function(E){k.info("getDialAppInfo error: "+E);
k.JSC$20035_lastLoungeTokenRefreshError_="noLoungeTokenResponse";dkP(k,3E4)})},bQ2=function(k){_.ou(k.JSC$20035_checkScreenAvailabilityTimeoutKey_);
k.JSC$20035_checkScreenAvailabilityTimeoutKey_=0;_.ou(k.getDialAppInfoTimeoutKey_);k.getDialAppInfoTimeoutKey_=0;k.cancelPolling_();k.cancelPolling_=function(){};
_.ou(k.JSC$20035_deferredLaunchDeadlineTimer_)};var jb=function(k,E){xc.call(this,k,E,"ManualSession");this.JSC$20039_deferredLaunchDeadlineTimer_=_.W_((0,_.uk)(this.launchWithParams,this,null),150)};
_.y(jb,xc);jb.prototype.stop=function(){this.onSessionStopped()};
jb.prototype.setCastSession=function(){};
jb.prototype.launchWithParams=function(){_.ou(this.JSC$20039_deferredLaunchDeadlineTimer_);this.JSC$20039_deferredLaunchDeadlineTimer_=NaN;var k=FZ(this.JSC$20026_screenService_.getScreens(),this.receiver_.label);if(k)r4(this,k);else this.onSessionStopped(Error("ml"))};
jb.prototype.disposeInternal=function(){_.ou(this.JSC$20039_deferredLaunchDeadlineTimer_);this.JSC$20039_deferredLaunchDeadlineTimer_=NaN;xc.prototype.disposeInternal.call(this)};var $c=function(k,E){_.xL.call(this);this.config_=E;this.JSC$20042_screenService_=k;this.JSC$20042_appId_=E.appId||"233637DE";this.JSC$20042_theme_=E.theme||"cl";this.disableDial_=E.disableCastApi||!1;this.forceMirroring_=E.forceMirroring||!1;this.JSC$20042_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.uk)(this.onReceiverAction_,this)};
_.y($c,_.xL);
$c.prototype.init=function(k,E){chrome.cast.timeout.requestSession=3E4;var S=new chrome.cast.SessionRequest(this.JSC$20042_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.Y("desktop_enable_cast_connect")&&(S.androidReceiverCompatible=!0);this.disableDial_||(S.dialRequest=new chrome.cast.DialRequest("YouTube"));var R=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;k=k||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var V=(0,_.uk)(this.onReceiverUpdated_,
this);S=new chrome.cast.ApiConfig(S,(0,_.uk)(this.onSessionEstablished_,this),V,R,k);S.customDialLaunchCallback=(0,_.uk)(this.onDialLaunchRequested_,this);chrome.cast.initialize(S,(0,_.uk)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),zvW(),this.JSC$20042_screenService_.subscribe("onlineScreenChange",(0,_.uk)(this.JSC$20044_onScreenChange_,this)),this.customReceivers_=GCW(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.uk)(function(N){this.warn_("Failed to set initial custom receivers: "+(0,_.oL)(N))},this)),this.publish("yt-remote-cast2-availability-change",CwI(this)),E(!0))},this),(0,_.uk)(function(N){this.warn_("Failed to initialize API: "+(0,_.oL)(N));
E(!1)},this))};
$c.prototype.setConnectedScreenStatus=function(k,E){Dt("Setting connected screen ID: "+k+" -> "+E);if(this.JSC$20042_session_){var S=this.JSC$20042_session_.screen_;if(!k||S&&S.id!=k)Dt("Unsetting old screen status: "+this.JSC$20042_session_.receiver_.friendlyName),$1(this,null)}if(k&&E){if(!this.JSC$20042_session_){k=FZ(this.JSC$20042_screenService_.getScreens(),k);if(!k){Dt("setConnectedScreenStatus: Unknown screen.");return}if(k.idType=="shortLived"){Dt("setConnectedScreenStatus: Screen with id type to be short lived.");
return}S=k1R(this,k);S||(Dt("setConnectedScreenStatus: Connected receiver not custom..."),S=new chrome.cast.Receiver(k.uuid?k.uuid:k.id,k.name),S.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(S),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.uk)(function(R){this.warn_("Failed to set initial custom receivers: "+(0,_.oL)(R))},this)));
Dt("setConnectedScreenStatus: new active receiver: "+S.friendlyName);$1(this,new jb(this.JSC$20042_screenService_,S),!0)}this.JSC$20042_session_.setDisplayStatus(E)}else Dt("setConnectedScreenStatus: no screen.")};
var k1R=function(k,E){return E?_.jh(k.customReceivers_,function(S){return W8(E,S.label)},k):null};
$c.prototype.setLaunchParams=function(k){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20042_session_?this.JSC$20042_session_.launchWithParams(k):this.warn_("Setting connection data without a session")};
$c.prototype.JSC$20044_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20042_session_?(this.JSC$20042_session_.stop(),$1(this,null)):Dt("Stopping non-existing session")};
$c.prototype.requestSession=function(){chrome.cast.requestSession((0,_.uk)(this.onSessionEstablished_,this),(0,_.uk)(this.onSessionRequestFailed_,this))};
$c.prototype.disposeInternal=function(){this.JSC$20042_screenService_.unsubscribe("onlineScreenChange",(0,_.uk)(this.JSC$20044_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.ZR(_.CV("yt.mdx.remote.debug.handlers_")||[],lgG);_.nu(this.JSC$20042_session_);_.xL.prototype.disposeInternal.call(this)};
var Dt=function(k){UH("Controller",k)};
$c.prototype.warn_=function(k){UH("Controller",k)};
var lgG=function(k){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(k)},CwI=function(k){return k.hasCastReceiver_||!!k.customReceivers_.length||!!k.JSC$20042_session_},$1=function(k,E,S){E!=k.JSC$20042_session_&&(_.nu(k.JSC$20042_session_),(k.JSC$20042_session_=E)?(S?k.publish("yt-remote-cast2-receiver-resumed",E.receiver_):k.publish("yt-remote-cast2-receiver-selected",E.receiver_),E.subscribe("sessionScreen",(0,_.uk)(k.onSessionScreen_,k,E)),E.subscribe("sessionFailed",
function(){return E03(k,E)}),E.screen_?k.publish("yt-remote-cast2-session-change",E.screen_):S&&k.JSC$20042_session_.launchWithParams(null)):k.publish("yt-remote-cast2-session-change",null))},E03=function(k,E){k.JSC$20042_session_==E&&k.publish("yt-remote-cast2-session-failed")};
_.I=$c.prototype;_.I.onSessionScreen_=function(k,E){this.JSC$20042_session_==k&&(E||$1(this,null),this.publish("yt-remote-cast2-session-change",E))};
_.I.onReceiverAction_=function(k,E){if(!this.isDisposed())if(k)switch(k.friendlyName=chrome.cast.unescape(k.friendlyName),Dt("onReceiverAction_ "+k.label+" / "+k.friendlyName+"-- "+E),E){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20042_session_)if(this.JSC$20042_session_.receiver_.label!=k.label)Dt("onReceiverAction_: Stopping active receiver: "+this.JSC$20042_session_.receiver_.friendlyName),this.JSC$20042_session_.stop();else{Dt("onReceiverAction_: Casting to active receiver.");this.JSC$20042_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20042_session_.screen_);break}switch(k.receiverType){case chrome.cast.ReceiverType.CUSTOM:$1(this,new jb(this.JSC$20042_screenService_,k));break;case chrome.cast.ReceiverType.DIAL:$1(this,new L_(this.JSC$20042_screenService_,k,this.JSC$20042_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:$1(this,new x1(this.JSC$20042_screenService_,k,this.config_));break;default:this.warn_("Unknown receiver type: "+k.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20042_session_&&
this.JSC$20042_session_.receiver_.label==k.label?this.JSC$20042_session_.stop():this.warn_("Stopping receiver w/o session: "+k.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.I.onDialLaunchRequested_=function(k){if(this.isDisposed())return Promise.reject(Error("nl"));var E=k.receiver;E.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+E.friendlyName),E.receiverType=chrome.cast.ReceiverType.DIAL);var S=this.JSC$20042_session_?this.JSC$20042_session_.receiver_:null;if(!S||S.label!=E.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+E.friendlyName),Promise.reject(Error("ol"));if(S&&S.label==E.label&&S.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20042_session_.screen_)return Dt("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20042_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+S.receiverType+'" to "dial" for '+E.friendlyName);$1(this,new L_(this.JSC$20042_screenService_,E,this.JSC$20042_theme_,this.config_))}E=this.JSC$20042_session_;E.launchData_=k;E.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(k=E.launchData_.extraData||{},S=k.screenId||null,ZQP(E)&&k.loungeToken?k.loungeTokenRefreshIntervalMs?k=zjx(E,{name:E.receiver_.friendlyName,screenId:k.screenId,loungeToken:k.loungeToken,dialId:E.launchData_.receiver.label,screenIdType:"shortLived"},k.loungeTokenRefreshIntervalMs):(_.O4(Error("kl`"+JSON.stringify(k))),k=Qn3(E,S)):k=Qn3(E,S)):k=M4T(E);return k};
_.I.onSessionEstablished_=function(k){var E=this;if(!this.isDisposed()&&!this.forceMirroring_){Dt("New cast session ID: "+k.sessionId);var S=k.receiver;if(S.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20042_session_)if(S.receiverType==chrome.cast.ReceiverType.CAST)Dt("Got resumed cast session before resumed mdx connection."),S.friendlyName=chrome.cast.unescape(S.friendlyName),$1(this,new x1(this.JSC$20042_screenService_,S,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var R=this.JSC$20042_session_.receiver_,V=FZ(this.JSC$20042_screenService_.getScreens(),R.label);V&&W8(V,S.label)&&R.receiverType!=chrome.cast.ReceiverType.CAST&&S.receiverType==chrome.cast.ReceiverType.CAST&&(Dt("onSessionEstablished_: manual to cast session change "+S.friendlyName),_.nu(this.JSC$20042_session_),this.JSC$20042_session_=new x1(this.JSC$20042_screenService_,S,this.config_),this.JSC$20042_session_.subscribe("sessionScreen",(0,_.uk)(this.onSessionScreen_,this,this.JSC$20042_session_)),
this.JSC$20042_session_.subscribe("sessionFailed",function(){return E03(E,E.JSC$20042_session_)}),this.JSC$20042_session_.launchWithParams(null));
this.JSC$20042_session_.setCastSession(k)}}};
_.I.JSC$20044_getCastSession=function(){return this.JSC$20042_session_?this.JSC$20042_session_.JSC$20028_getCastSession():null};
_.I.onSessionRequestFailed_=function(k){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.oL)(k)),k.code!=chrome.cast.ErrorCode.CANCEL&&$1(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.I.onReceiverUpdated_=function(k){Dt("Receiver availability updated: "+k);if(!this.isDisposed()){var E=CwI(this);this.hasCastReceiver_=k==chrome.cast.ReceiverAvailability.AVAILABLE;CwI(this)!=E&&this.publish("yt-remote-cast2-availability-change",CwI(this))}};
var GCW=function(k){var E=k.JSC$20042_screenService_.JSC$20024_getOnlineScreens(),S=k.JSC$20042_session_&&k.JSC$20042_session_.receiver_;k=_.vH(E,function(R){S&&W8(R,S.label)&&(S=null);var V=R.uuid?R.uuid:R.id,N=k1R(this,R);N?(N.label=V,N.friendlyName=R.name):(N=new chrome.cast.Receiver(V,R.name),N.receiverType=chrome.cast.ReceiverType.CUSTOM);return N},k);
S&&(S.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(S=new chrome.cast.Receiver(S.label,S.friendlyName),S.receiverType=chrome.cast.ReceiverType.CUSTOM),k.push(S));return k};
$c.prototype.JSC$20044_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=GCW(this),Dt("Updating custom receivers: "+(0,_.oL)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.uk)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",CwI(this)))};
$c.prototype.setLaunchParams=$c.prototype.setLaunchParams;$c.prototype.setConnectedScreenStatus=$c.prototype.setConnectedScreenStatus;$c.prototype.stopSession=$c.prototype.JSC$20044_stopSession;$c.prototype.getCastSession=$c.prototype.JSC$20044_getCastSession;$c.prototype.requestSession=$c.prototype.requestSession;$c.prototype.init=$c.prototype.init;$c.prototype.dispose=$c.prototype.dispose;var Ss0=_.ry(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),YiP=[],hBT=_.BH(Ss0);var RHR=function(k){k.audioTrackId=null;k.trackData=null;k.playerState=-1;k.hasPrevious=!1;k.hasNext=!1;k.playerTime_=0;k.playerTimeAt_=_.ZO();k.seekableStart_=0;k.seekableEnd_=0;k.duration_=0;k.loadedTime=0;k.liveIngestionTime_=NaN;k.isLive_=!1};
_.I=fp.prototype;
_.I.reset=function(k){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;k&&(this.index=k.index,this.listId=k.listId,this.videoId=k.videoId,this.playerState=k.playerState,this.volume=k.volume,this.muted=k.muted,this.audioTrackId=k.audioTrackId,this.trackData=k.trackData,this.hasPrevious=k.hasPrevious,this.hasNext=k.hasNext,this.playerTime_=k.playerTime,this.playerTimeAt_=k.playerTimeAt,this.seekableStart_=k.seekableStart,this.seekableEnd_=k.seekableEnd,this.duration_=k.duration,this.loadedTime=
k.loadedTime,this.liveIngestionTime_=k.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.I.stopPlayer=function(){this.index=-1;this.videoId="";RHR(this)};
_.I.isPlaying=function(){return this.playerState==1};
_.I.isBuffering=function(){return this.playerState==3};
_.I.isAdPlaying=function(){return this.playerState==1081};
var f_=function(k,E){k.playerTime_=E;k.playerTimeAt_=_.ZO()},V2a=function(k){switch(k.playerState){case 1:case 1081:return(_.ZO()-k.playerTimeAt_)/1E3+k.playerTime_;
case -1E3:return 0}return k.playerTime_};
fp.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.ZO()-this.playerTimeAt_)/1E3:0):this.duration_};
var NQR=function(k,E,S){var R=k.videoId;k.videoId=E;k.index=S;E!=R&&RHR(k)},IQx=function(k){var E={};
E.index=k.index;E.listId=k.listId;E.videoId=k.videoId;E.playerState=k.playerState;E.volume=k.volume;E.muted=k.muted;E.audioTrackId=k.audioTrackId;E.trackData=_.fO.unsafeClone(k.trackData);E.hasPrevious=k.hasPrevious;E.hasNext=k.hasNext;E.playerTime=k.playerTime_;E.playerTimeAt=k.playerTimeAt_;E.seekableStart=k.seekableStart_;E.seekableEnd=k.seekableEnd_;E.duration=k.duration_;E.loadedTime=k.loadedTime;E.liveIngestionTime=k.liveIngestionTime_;return E};
fp.prototype.clone=function(){return new fp(IQx(this))};var zd=function(k,E){_.xL.call(this);var S=this;this.state_=0;this.connection_=k;this.contextSubscriptions_=[];this.actionQueue_=new tqP;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.uk)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.uk)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.uk)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.uk)(this.onCloudviewAvailabilityChange_,this);var R=0;k?(R=k.getProxyState(),
R!=3&&(k.subscribe("proxyStateChange",this.setState_,this),n0a(this))):R=3;R!=0&&(E?this.setState_(R):_.W_(function(){S.setState_(R)},0));
(k=ozY())&&iWT(this,k);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.y(zd,_.xL);zd.prototype.getState=function(){return this.state_};
zd.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
zd.prototype.reconnect=function(){this.connection_.reconnect()};
var v2=function(k){return new fp(k.connection_.getPlayerContextData())};
_.I=zd.prototype;_.I.play=function(){bP(this)?(this.castMedia_?this.castMedia_.play(null,_.eu,hHT(this,"play")):Zt(this,"play"),JGa(this,1,V2a(v2(this))),this.publish("remotePlayerChange")):d4(this,this.play)};
_.I.pause=function(){bP(this)?(this.castMedia_?this.castMedia_.pause(null,_.eu,hHT(this,"pause")):Zt(this,"pause"),JGa(this,2,V2a(v2(this))),this.publish("remotePlayerChange")):d4(this,this.pause)};
_.I.seekTo=function(k){if(bP(this)){if(this.castMedia_){var E=v2(this),S=new chrome.cast.media.SeekRequest;S.currentTime=k;E.isPlaying()||E.isBuffering()?S.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:S.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(S,_.eu,hHT(this,"seekTo",{newTime:k}))}else Zt(this,"seekTo",{newTime:k});JGa(this,3,k);this.publish("remotePlayerChange")}else d4(this,_.I_(this.seekTo,k))};
_.I.stop=function(){if(bP(this)){this.castMedia_?this.castMedia_.stop(null,_.eu,hHT(this,"stopVideo")):Zt(this,"stopVideo");var k=v2(this);k.stopPlayer();sT(this,k);this.publish("remotePlayerChange")}else d4(this,this.stop)};
_.I.setVolume=function(k,E){if(bP(this)){var S=v2(this);if(this.castSession_){if(S.volume!=k){var R=Math.round(k)/100;this.castSession_.setReceiverVolumeLevel(R,(0,_.uk)(function(){H8("set receiver volume: "+R)},this),(0,_.uk)(function(){this.warn_("failed to set receiver volume.")},this))}S.muted!=E&&this.castSession_.setReceiverMuted(E,(0,_.uk)(function(){H8("set receiver muted: "+E)},this),(0,_.uk)(function(){this.warn_("failed to set receiver muted.")},this))}else{var V={volume:k,
muted:E};S.volume!=-1&&(V.delta=k-S.volume);Zt(this,"setVolume",V)}S.muted=E;S.volume=k;sT(this,S)}else d4(this,_.I_(this.setVolume,k,E))};
_.I.setAudioTrack=function(k,E){bP(this)?(E=E.getLanguageInfo().getId(),Zt(this,"setAudioTrack",{videoId:k,audioTrackId:E}),k=v2(this),k.audioTrackId=E,sT(this,k)):d4(this,_.I_(this.setAudioTrack,k,E))};
_.I.addVideo=function(k){bP(this)?Zt(this,"addVideo",{videoId:k}):d4(this,_.I_(this.addVideo,k))};
_.I.addPlaylist=function(k){bP(this)?Zt(this,"addVideos",{listId:k}):d4(this,_.I_(this.addPlaylist,k))};
_.I.addVideos=function(k){k.length==0?this.warn_("Ignore add videos request due to empty list"):bP(this)?Zt(this,"addVideos",{videoIds:k.join(",")}):d4(this,_.I_(this.addVideos,k))};
_.I.JSC$20054_removeVideo=function(k){bP(this)?Zt(this,"removeVideo",{videoId:k}):d4(this,_.I_(this.JSC$20054_removeVideo,k))};
_.I.JSC$20054_insertVideo=function(k){bP(this)?Zt(this,"insertVideo",{videoId:k}):d4(this,_.I_(this.JSC$20054_insertVideo,k))};
_.I.playVideo=function(k,E,S,R,V,N,h){R=R===void 0?null:R;V=V===void 0?null:V;N=N===void 0?null:N;h=h===void 0?null:h;var J=v2(this),m={videoId:k};S!==void 0&&(m.currentIndex=S);NQR(J,k,S||0);E!==void 0&&(f_(J,E),m.currentTime=E);R&&(m.listId=R);V&&(m.playerParams=V);N&&(m.clickTrackingParams=N);h&&(m.locationInfo=(0,_.oL)(h));Zt(this,"setPlaylist",m);R||sT(this,J)};
_.I.nextVideo=function(k,E){if(bP(this)){if(k&&E){var S=v2(this);NQR(S,k,E);sT(this,S)}Zt(this,"next")}else d4(this,_.I_(this.nextVideo,k,E))};
_.I.clearPlaylist=function(){if(bP(this)){Zt(this,"clearPlaylist");var k=v2(this);k.reset();sT(this,k);this.publish("remotePlayerChange")}else d4(this,this.clearPlaylist)};
_.I.dispose=function(){if(this.state_!=3){var k=this.state_;this.state_=3;this.publish("proxyStateChange",k,this.state_)}_.xL.prototype.dispose.call(this)};
_.I.disposeInternal=function(){cGY(this);this.connection_=null;this.actionQueue_.clear();iWT(this,null);_.xL.prototype.disposeInternal.call(this)};
var n0a=function(k){_.Sn("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(E){this.contextSubscriptions_.push(this.connection_.subscribe(E,_.I_(this.onProxyEvent_,E),this))},k)},cGY=function(k){_.Sn(k.contextSubscriptions_,function(E){this.connection_.unsubscribeByKey(E)},k);
k.contextSubscriptions_.length=0},bP=function(k){return k.getState()==1},d4=function(k,E){k.actionQueue_.getCount()<50&&k.actionQueue_.enqueue(E)},JGa=function(k,E,S){var R=v2(k);
f_(R,S);R.playerState!=-1E3&&(R.playerState=E);sT(k,R)},Zt=function(k,E,S){k.connection_.sendMessage(E,S)},sT=function(k,E){cGY(k);
k.connection_.setPlayerContextData(IQx(E));n0a(k)};
zd.prototype.setState_=function(k){if((k!=this.state_||k==2)&&this.state_!=3&&k!=0){var E=this.state_;this.state_=k;this.publish("proxyStateChange",E,k);if(k==1)for(;!this.actionQueue_.isEmpty();)k=this.actionQueue_,xqR(k),k.front_.pop().apply(this);else k==3&&this.dispose()}};
zd.prototype.onProxyEvent_=function(k,E){this.publish(k,E)};
var iWT=function(k,E){k.castSession_&&(k.castSession_.removeUpdateListener(k.boundCastStatusListener_),k.castSession_.removeMediaListener(k.boundCastMediaListener_),k.onCastMediaChange_(null));k.castSession_=E;if(k.castSession_&&(H8("Setting cast session: "+k.castSession_.sessionId),k.castSession_.addUpdateListener(k.boundCastStatusListener_),k.castSession_.addMediaListener(k.boundCastMediaListener_),k.castSession_.media.length))k.onCastMediaChange_(k.castSession_.media[0])};
zd.prototype.onCastStatusUpdate_=function(k){if(!k)this.onCastMediaChange_(null),iWT(this,null);else if(this.castSession_.receiver.volume){k=this.castSession_.receiver.volume;var E=v2(this),S=Math.round(100*k.level||0);if(E.volume!=S||E.muted!=k.muted)H8("Cast volume update: "+k.level+(k.muted?" muted":"")),E.volume=S,E.muted=!!k.muted,sT(this,E)}};
zd.prototype.onCastMediaChange_=function(k){H8("Cast media: "+!!k);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=k)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),mta(this),this.publish("remotePlayerChange")};
var mta=function(k){var E=k.castMedia_.media,S=k.castMedia_.customData;if(E&&S){var R=v2(k);E.contentId!=R.videoId&&H8("Cast changing video to: "+E.contentId);R.videoId=E.contentId;R.playerState=S.playerState;f_(R,k.castMedia_.getEstimatedTime());sT(k,R)}else H8("No cast media video. Ignoring state update.")};
zd.prototype.onCastMediaUpdate_=function(k){if(k)mta(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
zd.prototype.onCloudviewAvailabilityChange_=function(){var k=ozY();k&&iWT(this,k)};
zd.prototype.warn_=function(k){UH("CP",k)};
var hHT=function(k,E,S){return(0,_.uk)(function(R){this.warn_("Failed to "+E+" with cast v2 channel. Error code: "+R.code);R.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+E+" using MDx browser channel."),Zt(this,E,S))},k)};var Qn=function(k,E,S,R){R=R===void 0?!1:R;_.xL.call(this);var V=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$20059_http_=k;this.enableConnectWithInitialState_=R;this.listeners_.push(_.hD(window,"beforeunload",function(){V.JSC$20062_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new fp;this.currentScreenId_=E.id;this.currentScreenIdType_=E.idType;this.channelService=sE0(this.JSC$20059_http_,S,this.JSC$20062_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){eH3(V)});
this.channelService.listen("channelClosed",function(){lP("Channel closed");isNaN(V.connectTimerId_)?yn(!0):yn();V.dispose()});
this.channelService.listen("channelError",function(N){yn();isNaN(V.getReconnectTimeout_())?(N==1&&V.currentScreenIdType_=="shortLived"&&V.publish("browserChannelAuthError",N),lP("Channel error: "+N+" without reconnection"),V.dispose()):(V.reconnecting_=!0,lP("Channel error: "+N+" with reconnection in "+V.getReconnectTimeout_()+" ms"),aQT(V,2))});
this.channelService.listen("channelMessage",function(N){t23(V,N)});
this.channelService.setLoungeToken(E.token);this.subscribe("remoteQueueChange",function(){var N=V.playerContext_.videoId;ppT()&&_.BT("yt-remote-session-video-id",N)})};
_.y(Qn,_.xL);
Qn.prototype.connect=function(k,E){if(E){var S=E.listId,R=E.videoId,V=E.videoIds,N=E.playerParams,h=E.clickTrackingParams,J=E.index,m={videoId:R},a=E.currentTime,T=E.locationInfo;E=E.loopMode;a!==void 0&&(m.currentTime=a<=5?0:a);N&&(m.playerParams=N);T&&(m.locationInfo=T);h&&(m.clickTrackingParams=h);S&&(m.listId=S);V&&V.length>0&&(m.videoIds=V.join(","));J!==void 0&&(m.currentIndex=J);this.enableConnectWithInitialState_&&(m.loopMode=E||"LOOP_MODE_OFF");S&&(this.playerContext_.listId=S);this.playerContext_.videoId=
R;this.playerContext_.index=J||0;this.playerContext_.state=3;f_(this.playerContext_,a);this.autoplayMode_="UNSUPPORTED";S=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";lP("Connecting with "+S+" and params: "+(0,_.oL)(m));this.channelService.connect({method:S,params:(0,_.oL)(m)},k,LjI())}else lP("Connecting without params"),this.channelService.connect({},k,LjI());TQY(this)};
Qn.prototype.setLoungeToken=function(k){this.channelService.setLoungeToken(k)};
Qn.prototype.dispose=function(){this.isDisposed()||(_.J6("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),aQT(this,3));_.xL.prototype.dispose.call(this)};
Qn.prototype.disposeInternal=function(){wfW(this);P9I(this);BQA(this);_.ou(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.ou(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.tFC(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.xL.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var YsY=function(k){return _.jh(k.connectedDevices_,function(E){return E.type=="LOUNGE_SCREEN"})},lP=function(k){UH("conn",k)},aQT=function(k,E){k.publish("proxyStateChange",E)},TQY=function(k){k.connectTimerId_=_.W_(function(){lP("Connecting timeout");
k.JSC$20062_disconnect_(1)},2E4)},wfW=function(k){_.ou(k.connectTimerId_);
k.connectTimerId_=NaN},BQA=function(k){_.ou(k.reconnectedCheckScreenTimeout_);
k.reconnectedCheckScreenTimeout_=NaN},F4G=function(k){P9I(k);
k.playingSyncTimerId_=_.W_(function(){W4I(k,"getNowPlaying")},2E4)},P9I=function(k){_.ou(k.playingSyncTimerId_);
k.playingSyncTimerId_=NaN},eH3=function(k){lP("Channel opened");
k.reconnecting_&&(k.reconnecting_=!1,BQA(k),k.reconnectedCheckScreenTimeout_=_.W_(function(){lP("Timing out waiting for a screen.");k.JSC$20062_disconnect_(1)},15E3))},o0R=function(k,E){var S=null;
if(E){var R=YsY(k);R&&(S={clientName:R.clientName,deviceMake:R.brand,deviceModel:R.model,osVersion:R.osVersion})}_.J6("yt.mdx.remote.remoteClient_",S);E&&(wfW(k),BQA(k));S=k.channelService.isChannelOpened()&&isNaN(k.connectTimerId_);E==S?E&&(aQT(k,1),W4I(k,"getSubtitlesTrack")):E?(k.getOtherConnectedRemoteId_()&&k.playerContext_.reset(),aQT(k,1),W4I(k,"getNowPlaying"),yGt(k)):k.JSC$20062_disconnect_(1)},XfT=function(k,E){var S=E.params.videoId;
delete E.params.videoId;S==k.playerContext_.videoId&&(_.fO.isEmpty(E.params)?k.playerContext_.trackData=null:k.playerContext_.trackData=E.params,k.publish("remotePlayerChange"))},g03=function(k,E,S){var R=E.params.videoId||E.params.video_id,V=parseInt(E.params.currentIndex,10);
k.playerContext_.listId=E.params.listId||k.playerContext_.listId;NQR(k.playerContext_,R,V);k.publish("remoteQueueChange",S)},UtY=function(k,E){E.params=E.params||{};
g03(k,E,"NOW_PLAYING_MAY_CHANGE");k.onStateChange_(E);k.publish("autoplayDismissed")};
Qn.prototype.onStateChange_=function(k){var E=parseInt(k.params.currentTime||k.params.current_time,10);f_(this.playerContext_,isNaN(E)?0:E);E=parseInt(k.params.state,10);E=isNaN(E)?-1:E;E==-1&&this.playerContext_.playerState==-1E3&&(E=-1E3);this.playerContext_.playerState=E;E=Number(k.params.loadedTime);this.playerContext_.loadedTime=isNaN(E)?0:E;E=Number(k.params.duration);this.playerContext_.duration_=isNaN(E)?0:E;E=this.playerContext_;var S=Number(k.params.liveIngestionTime);E.liveIngestionTime_=
S;E.isLive_=isNaN(S)?!1:!0;E=this.playerContext_;S=Number(k.params.seekableStartTime);k=Number(k.params.seekableEndTime);E.seekableStart_=isNaN(S)?0:S;E.seekableEnd_=isNaN(k)?0:k;this.playerContext_.playerState==1?F4G(this):P9I(this);this.publish("remotePlayerChange")};
Qn.prototype.onAdStateChange_=function(k){if(this.playerContext_.playerState!=-1E3){var E=1085;switch(parseInt(k.params.adState,10)){case 1:E=1081;break;case 2:E=1084;break;case 0:E=1083}this.playerContext_.playerState=E;k=parseInt(k.params.currentTime,10);f_(this.playerContext_,isNaN(k)?0:k);this.publish("remotePlayerChange")}};
var HWP=function(k,E){var S=E.params.muted=="true";k.playerContext_.volume=parseInt(E.params.volume,10);k.playerContext_.muted=S;k.publish("remotePlayerChange")},K4R=function(k,E){k.autoplayVideoId_=E.params.videoId;
k.publish("nowAutoplaying",parseInt(E.params.timeout,10))},pft=function(k,E){k.autoplayVideoId_=E.params.videoId||null;
k.publish("autoplayUpNext",k.autoplayVideoId_)},AG3=function(k,E){k.autoplayMode_=E.params.autoplayMode;
k.publish("autoplayModeChange",k.autoplayMode_);k.autoplayMode_=="DISABLED"&&k.publish("autoplayDismissed")},rGW=function(k,E){var S=E.params.hasNext=="true";
k.playerContext_.hasPrevious=E.params.hasPrevious=="true";k.playerContext_.hasNext=S;k.publish("previousNextChange")};
Qn.prototype.isCapabilitySupportedOnConnectedDevices_=function(k){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var E=_.n(this.connectedDevices_),S=E.next();!S.done;S=E.next())if(!S.value.capabilities.has(k))return!1;return!0};
var t23=function(k,E){E=E.message;E.params?lP("Received: action="+E.action+", params="+(0,_.oL)(E.params)):lP("Received: action="+E.action+" {}");switch(E.action){case "loungeStatus":E=(0,_.TR)(E.params.devices);k.connectedDevices_=_.vH(E,function(R){return new K_(R)});
E=!!_.jh(k.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
o0R(k,E);E=k.isCapabilitySupportedOnConnectedDevices_("mlm");k.publish("multiStateLoopEnabled",E);break;case "loungeScreenDisconnected":NJR(k.connectedDevices_,function(R){return R.type=="LOUNGE_SCREEN"});
o0R(k,!1);break;case "remoteConnected":var S=new K_((0,_.TR)(E.params.device));_.jh(k.connectedDevices_,function(R){return R.equals(S)})||_.peh(k.connectedDevices_,S);
break;case "remoteDisconnected":S=new K_((0,_.TR)(E.params.device));NJR(k.connectedDevices_,function(R){return R.equals(S)});
break;case "gracefulDisconnect":break;case "playlistModified":g03(k,E,"QUEUE_MODIFIED");break;case "nowPlaying":UtY(k,E);break;case "onStateChange":k.onStateChange_(E);break;case "onAdStateChange":k.onAdStateChange_(E);break;case "onVolumeChanged":HWP(k,E);break;case "onSubtitlesTrackChanged":XfT(k,E);break;case "nowAutoplaying":K4R(k,E);break;case "autoplayDismissed":k.publish("autoplayDismissed");break;case "autoplayUpNext":pft(k,E);break;case "onAutoplayModeChanged":AG3(k,E);break;case "onHasPreviousNextChanged":rGW(k,
E);break;case "requestAssistedSignIn":k.publish("assistedSignInRequested",E.params.authCode);break;case "onLoopModeChanged":k.publish("loopModeChange",E.params.loopMode);break;default:lP("Unrecognized action: "+E.action)}};
_.I=Qn.prototype;_.I.getProxyState_=function(){var k=3;this.isDisposed()||(k=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(k=1):k=2);return k};
_.I.JSC$20062_disconnect_=function(k){lP("Disconnecting with "+k);_.J6("yt.mdx.remote.remoteClient_",null);wfW(this);this.publish("beforeDisconnect",k);k==1&&yn();this.channelService.disconnect(k);this.dispose()};
_.I.getPlayerContextData_=function(){var k=this.playerContext_;this.clientVideoId_&&(k=this.playerContext_.clone(),NQR(k,this.clientVideoId_,k.index));return IQx(k)};
_.I.setPlayerContextData_=function(k){var E=this,S=new fp(k);S.videoId&&S.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=S.videoId,_.ou(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.W_(function(){if(E.clientVideoId_){var V=E.clientVideoId_;E.clientVideoId_=null;E.playerContext_.videoId!=V&&W4I(E,"getNowPlaying")}},5E3));
var R=[];this.playerContext_.listId==S.listId&&this.playerContext_.videoId==S.videoId&&this.playerContext_.index==S.index||R.push("remoteQueueChange");this.playerContext_.playerState==S.playerState&&this.playerContext_.volume==S.volume&&this.playerContext_.muted==S.muted&&V2a(this.playerContext_)==V2a(S)&&(0,_.oL)(this.playerContext_.trackData)==(0,_.oL)(S.trackData)||R.push("remotePlayerChange");this.playerContext_.reset(k);_.Sn(R,function(V){this.publish(V)},this)};
_.I.getOtherConnectedRemoteId_=function(){var k=this.channelService.getDeviceId(),E=_.jh(this.connectedDevices_,function(S){return S.type=="REMOTE_CONTROL"&&S.id!=k});
return E?E.id:""};
_.I.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.I.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.I.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.I.JSC$20062_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var yGt=function(k){_.ou(k.idleDisconnectTimerId_);k.idleDisconnectTimerId_=_.W_(function(){k.JSC$20062_disconnect_(1)},864E5)},W4I=function(k,E,S){S?lP("Sending: action="+E+", params="+(0,_.oL)(S)):lP("Sending: action="+E);
k.channelService.sendMessage(E,S)};
Qn.prototype.sendMessageWithUserAction_=function(k,E){W4I(this,k,E);yGt(this)};
Qn.prototype.JSC$20062_getXsrfToken_=function(){var k=_.pC.get("SAPISID","")||_.pC.get("__Secure-1PAPISID",void 0)||"",E=_.pC.get("__Secure-3PAPISID","")||"";if(!k&&!E)return"";k=_.xW(_.AP(k),2);E=_.xW(_.AP(E),2);return _.xW(_.AP(","+k+","+E),2)};
Qn.prototype.subscribe=Qn.prototype.subscribe;Qn.prototype.unsubscribeByKey=Qn.prototype.unsubscribeByKey;Qn.prototype.getProxyState=Qn.prototype.getProxyState_;Qn.prototype.disconnect=Qn.prototype.JSC$20062_disconnect_;Qn.prototype.getPlayerContextData=Qn.prototype.getPlayerContextData_;Qn.prototype.setPlayerContextData=Qn.prototype.setPlayerContextData_;Qn.prototype.getOtherConnectedRemoteId=Qn.prototype.getOtherConnectedRemoteId_;Qn.prototype.getReconnectTimeout=Qn.prototype.getReconnectTimeout_;
Qn.prototype.getAutoplayMode=Qn.prototype.getAutoplayMode_;Qn.prototype.getAutoplayVideoId=Qn.prototype.getAutoplayVideoId_;Qn.prototype.reconnect=Qn.prototype.JSC$20062_reconnect_;Qn.prototype.sendMessage=Qn.prototype.sendMessageWithUserAction_;Qn.prototype.getXsrfToken=Qn.prototype.JSC$20062_getXsrfToken_;Qn.prototype.isCapabilitySupportedOnConnectedDevices=Qn.prototype.isCapabilitySupportedOnConnectedDevices_;var s3P=function(k){pp.call(this,"ScreenServiceProxy");this.instance_=k;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.uk)(this.JSC$20065_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.uk)(this.onOnlineScreenChange_,this)))};
_.y(s3P,pp);_.I=s3P.prototype;_.I.getScreens=function(k){return this.instance_.$_gs(k)};
_.I.contains=function(k){return!!this.instance_.$_c(k)};
_.I.get=function(k){return this.instance_.$_g(k)};
_.I.start=function(){this.instance_.$_st()};
_.I.add=function(k,E,S){this.instance_.$_a(k,E,S)};
_.I.remove=function(k,E,S){this.instance_.$_r(k,E,S)};
_.I.updateName=function(k,E,S,R){this.instance_.$_un(k,E,S,R)};
_.I.disposeInternal=function(){for(var k=this.subscriptionKeys_.length,E=0;E<k;++E)this.instance_.$_ubk(this.subscriptionKeys_[E]);this.subscriptionKeys_.length=0;this.instance_=null;pp.prototype.disposeInternal.call(this)};
_.I.JSC$20065_onScreenChange_=function(){this.publish("screenChange")};
_.I.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
uS.prototype.$_st=uS.prototype.start;uS.prototype.$_gspc=uS.prototype.JSC$20024_getScreenByPairingCode;uS.prototype.$_gsppc=uS.prototype.JSC$20024_getScreenByPollingPairingCode;uS.prototype.$_c=uS.prototype.contains;uS.prototype.$_g=uS.prototype.get;uS.prototype.$_a=uS.prototype.add;uS.prototype.$_un=uS.prototype.updateName;uS.prototype.$_r=uS.prototype.remove;uS.prototype.$_gs=uS.prototype.getScreens;uS.prototype.$_gos=uS.prototype.JSC$20024_getOnlineScreens;uS.prototype.$_s=uS.prototype.subscribe;
uS.prototype.$_ubk=uS.prototype.unsubscribeByKey;var $h3=null,Mj0=!1,bS=null,ZA=null,dh0=null,MK=[];var uja=new _.qG("yt-menu"),xtY=function(){},j$a=function(k,E,S){k=E=="right-click"?S.rightClickMenuPopupHint:S.menuPopupHint;
if(!(L40(E)>10))return E=E||"default",uja.set(E+"-impression",L40(E)+1),k},L40=function(k){return parseInt(uja.get((k||"default")+"-impression")||0,10)};
_.bb(xtY);var Dtt=function(){this.contexts_=new WeakMap;this.JSC$20071_networkService_=this.activeContext_=null},$tY=function(k,E,S){var R=k.contexts_.get(E);
R||(R=new G_U(k.JSC$20071_networkService_),k.contexts_.set(E,R));k.activeContext_=R;S&&k.activeContext_.reset();k.activeContext_.start();return k.activeContext_};var Mc=function(){};
Mc.prototype.enqueue=function(){var k=this,E;return _.c(function(S){if(k.isCounterfactual())return(E=k.getCounterfactualData())&&k.shouldLogCounterfactualImpression()&&k.sendImpressionEndpoints(E),S.return();k.doEnqueue();_.KR(S)})};
Mc.prototype.sendImpressionEndpoints=function(k){_.GU.getInstance().triggerOptionalAction("yt-service-request",{},k[0])};var qc=function(k,E){this.renderer=k;this.page=E};
_.y(qc,Mc);qc.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
qc.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
qc.prototype.shouldLogCounterfactualImpression=function(){return!0};
qc.prototype.doEnqueue=function(){var k=_.db(this.page);k&&k.pause();this.renderer.impressionCommand&&_.GU.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Af(_.GU.getInstance(),[this.renderer.promoCommand],this.page)};var fQ3=function(k,E){this.renderer=k;this.resolver=_.LU();this.JSC$20083_enforcementCounter=new _.ZC5;E?this.JSC$20083_playerManager=_.db(E):this.JSC$20083_playerManager=null;_.RR(1,!0)};
_.y(fQ3,Mc);_.I=fQ3.prototype;_.I.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var k=[];this.renderer.impressionEndpoints.forEach(function(E){(E=_.Uk(E))&&k.push(E)});
return k}};
_.I.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.I.shouldLogCounterfactualImpression=function(){var k=_.gCh();k?(this.JSC$20083_enforcementCounter.increment("POPUP"),_.RR(3)):_.RR(2);return k};
_.I.cancel=function(){this.resolver.promise.cancel()};
_.I.doEnqueue=function(){var k=this;_.gCh()?(this.JSC$20083_enforcementCounter.increment("POPUP"),_.RR(3),v0x(this)):this.JSC$20083_playerManager?(this.resolver.promise.then(function(){v0x(k)}),bW0(this.resolver,this.JSC$20083_playerManager)):_.RR(2)};
var bW0=function(k,E){var S=_.LU();E.getPlayerPromise().then(function(R){S.resolve(R)});
S.promise.then(function(R){R.addEventListener("onAbnormalityDetected",k.resolve);_.Ws(k.promise,function(){R.removeEventListener("onAbnormalityDetected",k.resolve)})});
k.promise.thenCatch(function(){S.promise.cancel()})},v0x=function(k){_.RR(3);
var E={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:k.renderer}};E=_.GU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{});Promise.all(E).then(function(){ZWT();k.JSC$20083_playerManager&&k.JSC$20083_playerManager.pause()})},ZWT=function(){fkA(function(k,E){_.pT3(k,E);
k===0?_.RR(7):_.RR(4)})};var dtx=function(k,E){this.renderer=k;this.page=E;this.resolver=_.LU()};
_.y(dtx,Mc);_.I=dtx.prototype;_.I.cancel=function(){this.resolver.promise.cancel()};
_.I.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.I.isCounterfactual=function(){return!this.renderer.isVisible};
_.I.shouldLogCounterfactualImpression=function(){return!0};
_.I.doEnqueue=function(){var k=this;this.resolver.promise.then(function(){var S={popup:{mealbarPromoRenderer:k.renderer},popupType:"MEALBAR"};_.GU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:S},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var E=_.db(this.page);E&&s$W(this.resolver,E)}break;default:this.resolver.resolve()}};
var s$W=function(k,E){var S=_.LU();E.getPlayerPromise().then(function(R){S.resolve(R)});
S.promise.then(function(R){R.addEventListener("onAdEnd",k.resolve);_.Ws(k.promise,function(){R.removeEventListener("onAdEnd",k.resolve)})});
k.promise.thenCatch(function(){S.promise.cancel()})};var lQ3=function(k,E){this.renderer=k;this.page=E};
_.y(lQ3,Mc);_.I=lQ3.prototype;_.I.cancel=function(){this.JSC$20091_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20091_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20091_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.I.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.I.isCounterfactual=function(){return!this.renderer.isVisible};
_.I.shouldLogCounterfactualImpression=function(){return!0};
_.I.doEnqueue=function(){var k=this,E,S;((E=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(S=E.playbackUpsellDialogTriggerConditionData)==null?void 0:S.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20091_downloadedVideosCountSelectorUnsubscriber=_.Hq(_.vo(),DO2,function(R,V){R>V&&(M2T(k),k.cancel())}):M2T(this)};
var M2T=function(k){var E={popup:{upsellDialogRenderer:k.renderer},popupType:"MODAL"};_.GU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:E},{});(k=_.db(k.page))&&k.pause()};var zs={},qsI=(zs.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",zs.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",zs.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",zs.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",zs.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",zs.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",zs.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",zs),zHR=function(k,E){this.renderer=k;this.targetManager=
E};
_.y(zHR,Mc);_.I=zHR.prototype;_.I.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20098_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20098_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20098_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.I.getCounterfactualData=function(){if(this.isCounterfactual()){var k;return(k=this.renderer.promoConfig)==null?void 0:k.impressionEndpoints}};
_.I.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.I.shouldLogCounterfactualImpression=function(){return!0};
_.I.doEnqueue=function(){var k=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20098_downloadedVideosCountSelectorUnsubscriber=_.Hq(_.vo(),DO2,function(E,S){k.renderer.targetId&&E>S&&(yS3(k.targetManager,k.renderer.targetId,Q$W(k)),k.cancel())});
break;default:yS3(this.targetManager,this.renderer.targetId,Q$W(this))}};
var Q$W=function(k){var E;if((E=k.renderer.suggestedPosition)==null?0:E.type)var S=qsI[k.renderer.suggestedPosition.type];S||(S="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:k.renderer},popupType:"HINT",position:S}}};var OWP=function(){this.previousPage=null},G1T;
OWP.prototype.registerPromoCommand=function(k,E){C9a(this,void 0,void 0,_.W(k.roadblock,K1I),void 0,void 0,E)};
var C9a=function(k,E,S,R,V,N,h){k.previousPage!==h&&k.pendingTooltipPromo&&k.pendingTooltipPromo.cancel();k.previousPage=h;V?(k.pendingEnforcementPromo&&k.pendingEnforcementPromo.cancel(),k.pendingEnforcementPromo=new fQ3(V,h),k.pendingEnforcementPromo.enqueue()):N?(k.pendingCommandWrapperPromo=new qc(N,h),k.pendingCommandWrapperPromo.enqueue()):R?(k.pendingRoadblockPromo&&k.pendingRoadblockPromo.cancel(),k.pendingRoadblockPromo=new lQ3(R,h),k.pendingRoadblockPromo.enqueue()):E?(k.pendingMealbarPromo&&
k.pendingMealbarPromo.cancel(),k.pendingMealbarPromo=new dtx(E,h),k.pendingMealbarPromo.enqueue()):S&&(k.pendingTooltipPromo&&k.pendingTooltipPromo.cancel(),k.pendingTooltipPromo=new zHR(S,_.xN()),k.pendingTooltipPromo.enqueue())},kO2=function(){G1T||(G1T=new OWP);
return G1T};var O9P=!1;var g$T=function(k,E){var S=_.Mg("SESSION_INDEX");this.actionToken_=k;this.commonToken_=E;this.sessionIndex_=S},XNR=function(k){var E=_.LU(),S=_.CV("payments.business.integration.bootstrap"),R=_.CV("payments.business.integration"),V=R.Style.create().withMaterialDesignStyle(),N=R.mashupMode.popup("instrument-manager");
S.asMashupMode(N).usingUserIndex(k.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(V).inStandaloneContext(R.standaloneContextAuthId.forUserId()).instrumentManager(k.actionToken_,k.commonToken_.length>0?k.commonToken_:void 0,function(h){var J=h.instrumentId;J?E.resolve(J):(J=_.CV("payments.business.integration.scenario.InstrumentManager"),E.reject(h.errorCode&&h.errorCode===J.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(h){_.O4(h);
E.reject("instrumentManagerLoadError")});
return E.promise};var kS=function(k,E,S){this.payloadName="transactionFlowFailed";this.payload={errorType:k,serializedTransactionFlowLoggingParams:E,isUserDismiss:S===void 0?!1:S}};
_.J6("yt.ypc.shared.YpcTransactionFlowError",kS);var QC=function(){return _.mi.apply(this,arguments)||this};
_.y(QC,_.mi);QC.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
QC.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
QC.prototype.onErrorMessageDismiss=QC.prototype.onErrorMessageDismiss;_.Z([_.H({readOnly:!0,observer:"errorRendererChanged"}),_.l("design:type",Object)],QC.prototype,"errorRenderer",void 0);_.Z([_.nv("yt-live-chat-error-message-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],QC.prototype,"onErrorMessageDismiss",null);_.Z([_.eN()],QC);var E9G=[QC.prototype];var SOW;var RJt;var Vpt=new _.qG("yt-live-chat"),NNA=new Map;NNA.set("timestamp_toggle","show-timestamps");NNA.set("reactions_toggle","allow-reactions");var OT=function(){return _.p.apply(this,arguments)||this};
_.y(OT,_.p);_.I=OT.prototype;_.I.menuItemIdentifierChanged=function(){var k;(k=this.data)!=null&&k.menuItemIdentifier&&(k=NNA.get(this.data.menuItemIdentifier))&&(_.Y("enable_lwe_web_mute")?(k=Vpt.get(k),this.isToggled=!(k===void 0?!this.data.isToggled:!k)):this.isToggled=Vpt.get(k))};
_.I.onFocus=function(){this.toggleButton.focus()};
_.I.onTap=function(){var k=this.data.command;k&&this.componentBehavior.resolveCommand(k)};
_.I.computeText=function(k,E,S){return this.componentBehavior.getSimpleString(k?S:E)};
_.I.computeIcon=function(k,E,S){return(k=k?S:E)&&k.iconType?_.SF(k.iconType):""};
OT.prototype.onTap=OT.prototype.onTap;OT.prototype.onFocus=OT.prototype.onFocus;OT.prototype.menuItemIdentifierChanged=OT.prototype.menuItemIdentifierChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OT.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],OT.prototype,"componentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],OT.prototype,"data",void 0);
_.Z([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.l("design:type",String)],OT.prototype,"icon",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],OT.prototype,"isToggled",void 0);_.Z([_.JO("tp-yt-paper-toggle-button"),_.l("design:type",Object)],OT.prototype,"toggleButton",void 0);_.Z([_.il("data.menuItemIdentifier"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"menuItemIdentifierChanged",null);
_.Z([_.nv("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"onFocus",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OT.prototype,"onTap",null);_.Z([_.U_({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],OT);
_.b(OT,"yt-live-chat-toggle-renderer",function(){if(RJt===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;SOW===void 0&&(SOW=document.createElement("template"));var R=SOW;S.call(E,R.content.cloneNode(!0),k.content.firstChild);RJt=k}k=RJt;return k},{mode:_.Y("live_chat_enable_sink_wrapper")?2:0});var IjR=new _.QE("NAVIGATION_PROGRESS_TOKEN");var n9A={},ibI={},hJP=(ibI[wWP.name]=!0,ibI),Gs=function(){var k=_.mi.apply(this,arguments)||this;k._noAccessors=!0;k.tabGesturesIsActive=!1;k.actionRouterIsRoot=!0;k.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"};k.pageTitle="";k.titleSuffix="YouTube";k.unseenNotificationCount=
0;k.hasNavigated=!1;k.hasSetScrollTopForNavigation=!1;k.pagePreparer=null;k.zwiebackInitJobId=0;k.dataUpdatePromise=null;k.loadDepsPromise=_.GR();k.hasPendingNavigation=!1;k.pendingPlayerOnResponseReceivedActions=[];return k};
_.y(Gs,_.mi);Gs.prototype.attached=function(){Jua(this);document.addEventListener("yt-navigate-cache",_.Ic(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var k=C_();k.init();k.dispatchElement=this.hostElement};
var Jua=function(k,E){E=E===void 0?0:E;var S=_.en().resolve(_.mz(_.uO));if(S)cua(k,S);else{if(E>=5)throw Error("pl");setTimeout(function(){Jua(k,E+1)},0)}},cua=function(k,E){E.addEventListener("yt-navigate-start",_.Ic(k,k.onYtNavigateStart));
E.addEventListener("yt-navigate-finish",_.Ic(k,k.onYtNavigateFinish));E.addEventListener("yt-navigate-error",_.Ic(k,k.onYtNavigateError));E.addEventListener("yt-page-data-fetched",_.Ic(k,k.onYtPageDataFetched))};
_.I=Gs.prototype;_.I.detached=function(){var k=_.en().resolve(_.uO);k.removeEventListener("yt-navigate-start",_.Ic(this,this.onYtNavigateStart));k.removeEventListener("yt-navigate-finish",_.Ic(this,this.onYtNavigateFinish));k.removeEventListener("yt-navigate-error",_.Ic(this,this.onYtNavigateError));k.removeEventListener("yt-page-data-fetched",_.Ic(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Ic(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.I.setPageOffset=function(k,E){k?_.qe(this.hostElement,"yt-set-page-offset",[k,E]):_.bM(Error("ql"))};
_.I.setPageOffsetForNavigation=function(k,E){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(k,E))};
_.I.onYtNavigateSetPageOffset=function(k,E){this.setPageOffsetForNavigation(E.page,E.offset)};
_.I.getPageOffset=function(){var k=_.Cc(this.hostElement).querySelector("#page-manager").getCurrentPage(),E=0;k&&(E=_.qe(this.hostElement,"yt-get-page-offset",[k])[0]);return E};
_.I.onYtHistoryPop=function(k,E){if(_.qg("DISABLE_WARM_LOADS"))k.preventDefault(),window.location.reload();else{var S=_.en().resolve(_.uO);S.hasPendingNavigation()&&k.preventDefault();S.cancelPendingNavigation();_.zR(this.hostElement,"yt-pending-navigation-cancelled");E.errorMsg&&(k=E.errorMsg.split(" - "),E=Error(k[0]),k.length==2&&k[1]&&(_.sc(E,k[1]),_.dg(E)),window.location.reload())}};
_.I.onYtHistoryLoad=function(k,E){var S=this;if(_.qg("DISABLE_WARM_LOADS"))window.location.reload();else{(k=E.endpoint)&&Object.keys(k).length||(k=null);var R=E.historyEntry,V=_.en().resolve(_.uO),N=_.en().resolve(_.ZD),h=null;R&&R.rootData&&(h=R.rootData);var J=h&&mWP(h);!h||J||h.filler?k?(V.navigate(k,!0),eJ3(this,k)):(E.legacyBorder||J||(E.JSC$30421_savedComponentState==null&&h==null?_.dg(new _.LC("Incomplete history entry",E.forward)):_.Zd(new _.LC("Malformed history entry",E.JSC$30421_savedComponentState,
E.forward,h))),window.location.reload()):(_.lrb({isHot:!0}),_.BE({webInfo:{navigationReason:"h"}}),_.Wkl(),_.o_("srt"),_.o_("pdc"),this.cancelPendingTasks(),ajY(this,E.forward,h),h.player&&(h.player.loaded=!1),eJ3(this,k),_.Hi5(V,k||{},h,2,{},!1,E).then(function(){S.setPageOffset(N.getCurrentPage(),R.scrollTop||0)}))}};
_.I.initHistoryManager=function(k){if(!this.hasNavigated){this.hasNavigated=!0;var E=_.Cc(this.hostElement).querySelector("#page-manager").getCurrentData();k=isNaN(k)?this.getPageOffset():k;var S=_.en().resolve(_.uO).currentEndpoint;this.replaceState(S,E,k)}};
_.I.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.I.onYtNavigateStart=function(k,E){this.cancelPendingTasks();E.noProgressBar||(k=_.en().resolve(_.mz(IjR)))&&k.start();k=this.hasPendingNavigation?null:this.data;var S=_.en().resolve(_.ZD),R,V,N;_.Y("kevlar_use_vimio_behavior")&&!((R=E.endpoint)==null?0:(V=R.commandMetadata)==null?0:(N=V.webCommandMetadata)==null?0:N.ignoreNavigation)&&(R=S.getCurrentPage())&&R.disconnectVisibilityRoot();S.prepareForNavigation(E.pageType,E.endpoint);_.Y("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.my(1,
"pcl"),_.e6(this.pagePreparer,S.preparePage.bind(S,E.pageType,E.endpoint)));R=this.getPageOffset();this.initHistoryManager(R);E.reload||this.hasPendingNavigation?((_.Y("web_enable_delay_shorts_sequence_call")||_.Y("web_enable_shorts_sequence_cache_fix"))&&E.pageType==="shorts"&&E.reload&&_.Me(this.hostElement,"yt-shorts-reset"),this.replaceState(E.endpoint,k,R)):(k==null?void 0:k.page)==="watch"&&E.pageType==="watch"&&_.Y("kevlar_replace_watch_to_watch_history_state")?this.replaceState(E.endpoint,
k,R):(k==null?void 0:k.page)!=="shorts"||E.pageType!=="shorts"||E.endpoint.reelWatchEndpoint.sequenceParams||_.Y("short_to_short_back_nav_killswitch")?E.type!="navigate-back"&&E.type!="navigate-forward"&&(E.pageType==="shorts"&&_.Me(this.hostElement,"yt-shorts-reset"),this.saveAndPush(E.url,E.endpoint,k,R)):(_.Y("web_enable_delay_shorts_sequence_call")&&(E.endpoint.reelWatchEndpoint.sequenceParams=k==null?void 0:k.cachedSequenceParams,E.endpoint.reelWatchEndpoint.sequenceProvider=k==null?void 0:k.cachedSequenceProvider),
this.replaceState(E.endpoint,k,0));this.hasPendingNavigation=!0};
var tpG=function(k){k.hasPendingNavigation=!1;(k=_.en().resolve(_.mz(IjR)))&&k.finish()};
Gs.prototype.onYtNavigateError=function(k,E){tpG(this);k=this.get("endpoint.commandMetadata.webCommandMetadata.url",E);var S=_.Vf(window.location.href);k&&!S.pbjreload&&(E=E.navigationErrorReason||"10",_.Y("kevlar_parent_on_pbjreload")&&(S={csn:_.Fe()},this.get("data.endpoint.clickTrackingParams")&&(S.itct=this.data.endpoint.clickTrackingParams),_.vi(k,S)),_.xl(_.N3(k,{pbjreload:E})))};
Gs.prototype.onYtNavigateCache=function(k,E){var S=this,R=E.url,V=E.endpoint,N=E.data;k=!!E.miniplayer;E=!!E.skipHistory;if(R&&V&&N){var h=this.getPageOffset(),J=this.data||null;E||this.saveAndPush(R,V,J,h);R=_.Hi5(_.en().resolve(_.uO),V,N,k?4:3,{},k);k&&R.then(function(){S.dataUpdatePromise&&S.dataUpdatePromise.then(function(){var m=_.en().resolve(_.ZD);S.setPageOffset(m.getCurrentPage(),0)})})}};
Gs.prototype.onYtNavigateFinish=function(k,E){var S=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){TNt(S,E.fromHistory)})};
var TNt=function(k,E){tpG(k);if(k.pendingPlayerOnResponseReceivedActions){for(var S=_.n(k.pendingPlayerOnResponseReceivedActions),R=S.next();!R.done;R=S.next())_.Ni(R.value,k.hostElement);k.pendingPlayerOnResponseReceivedActions=[]}S=_.en().resolve(_.ZD);E||!k.hasNavigated||_.Y("web_disable_scroll_on_navigate_finish")||((E=S.getCurrentPage())?E.is==="ytd-shorts"||k.tabGesturesIsActive||k.setPageOffsetForNavigation(E,0):_.dg(Error("rl")));_.xT(function(){_.xT(function(){_.o_("pda")})})};
Gs.prototype.onYtNavigate=function(k){if(!k.detail.endpoint){var E=new _.LC("Error: Missing yt-navigate endpoint from target:",k.target,k.target.nodeName);_.bM(E)}if(E=_.Y("cold_missing_history"))E=C_(),E.init(!1),E=!(E.browserHistory.boundHistoryReplaceState&&E.browserHistory.boundHistoryPushState);if(E){_.l$("DISABLE_WARM_LOADS",!0);E=new _.LC("Failed to initialize history manager",this.getDebugString());var S=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
S?_.dg(E):_.bM(E)}E=k.detail.endpoint;var R,V;_.Y("debug_forward_web_query_parameters")&&((R=E.commandMetadata)==null?0:(V=R.webCommandMetadata)==null?0:V.url)&&(E=JSON.parse(JSON.stringify(E)),E.commandMetadata.webCommandMetadata.url=_.tdt(E.commandMetadata.webCommandMetadata.url,window.location.search));k={type:0,command:E,form:{params:k.detail.params,tempData:k.detail.tempData||{},requestType:k.detail.type,createScreenConfig:k.detail.createScreenConfig,reload:k.detail.reload?k.detail.reload:!1,
requestForm:k.detail}};_.Y("kevlar_yt_navigate_command_handler")?(R=_.en().resolve(_.t3),k.form.skipDefaultElement=!0,R.resolveCommand(E,{form:k.form})):this.handleNavigate(k)};
Gs.prototype.handleNavigate=function(k){this.hasSetScrollTopForNavigation=!1;var E=_.en().resolve(_.uO),S=k.form||{};E.navigate(k.command,S.reload,S.params,S.tempData,S.requestType,S.createScreenConfig,S.ignoreConfirmation,S.requestForm)&&eJ3(this,k.command,S.tempData)};
Gs.prototype.onYtPageDataFetched=function(k,E){try{_.YZC().reset();this.data=E.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.en().resolve(_.ZD).updatePageData(this.data);var S=this.get("playerResponse.onResponseReceivedActions",this.data);S&&(S=wmU(this,S));S&&_.Ot(this.hostElement,S,this.hostElement);var R=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),V=this.get("response.responseContext.consistencyTokenJar",this.data);if(R||V){var N=_.W1h(),h=(0,_.fO.getValues)(N.tokenJars);R&&N.replace(h,R);V&&N.replace(h,V)}}catch(J){_.bM(J)}};
var eJ3=function(k,E,S){try{k.onYtEndpointChangeHandler(E,S)}catch(R){_.bM(R)}};
_.I=Gs.prototype;_.I.onYtEndpointChangeHandler=function(){};
_.I.setPageTitle=function(k){k=(this.pageTitle=k)?k+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+k};
_.I.onYtUpdateTitle=function(k,E){this.setPageTitle(E)};
_.I.setUnseenNotificationCount=function(k){this.unseenNotificationCount=k;this.setPageTitle(this.pageTitle)};
_.I.handleUpdateNotificationsUnseenCountAction=function(k){_.W(k,CRR)&&((k=_.W(k,CRR).unseenCount)?this.setUnseenNotificationCount(k):this.setUnseenNotificationCount(0))};
_.I.handleClearCookieAction=function(k){var E;(k=(E=_.W(k,zbU))==null?void 0:E.cookieName)&&_.xah(k)};
_.I.onYtUpdateUnseenNotificationCount=function(k,E){this.setUnseenNotificationCount(E)};
_.I.loadData=function(k){var E=this;this.loadDepsPromise.then(function(){var S=_.en().resolve(_.mz(_.uO));S||_.bM(Error("sl"));if(k&&k.response){if(!k.endpoint){var R=_.AI(window.document.location.href)||"/",V="";if(R==="/"||R.startsWith("/?"))V="WEB_PAGE_TYPE_BROWSE";k.endpoint={commandMetadata:{webCommandMetadata:{url:R,webPageType:V,rootVe:3854}}}}_.Hi5(S,k.endpoint,k,5,{})}else k.endpoint?S.navigate(k.endpoint):S.navigate(_.U7);_.ZJ.cancelJob(E.zwiebackInitJobId);E.zwiebackInitJobId=_.ZJ.addLowPriorityJob(GbR)})};
var C_=function(){return _.en().resolve(_.Uz)};
Gs.prototype.getDebugString=function(){return C_().getDebugString()};
Gs.prototype.getThirdPartyManipulationSuspected=function(){return C_().getThirdPartyManipulationSuspected()};
Gs.prototype.replaceState=function(k,E,S){C_().saveAndReplace(k,E,S)};
Gs.prototype.saveAndPush=function(k,E,S,R){C_().saveAndPush(k,E,S,R)};
var mWP=function(k){return _.W(k.endpoint,_.jm)||_.W(k.endpoint,_.hg)?!0:!k||isNaN(k.expirationTime)?!1:(0,_.ev)()>k.expirationTime},ajY=function(k,E,S){var R=k.get("response.trackingParams",S),V=_.Wi(),N=_.Fe();
if(R&&V&&N&&(R=k.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",S),!R&&S.rootVe&&(R=S.rootVe),V=E?"forwardButton":"backButton",E=k.get("playerResponse.topbar.desktopTopbarRenderer."+V+".buttonRenderer.command.clickTrackingParams",k.data),k=k.get("response.topbar.desktopTopbarRenderer."+V+".buttonRenderer.command.clickTrackingParams",k.data),E=(k=E||k)?_.tV(k):void 0,k=_.JV(),V=[_.GR(S)],_.Pq(k,R,E,{dataPromises:V,csnToClone:S.csn}),S.graftedVes))for(S=
_.n(S.graftedVes),R=S.next();!R.done;R=S.next())_.Bq(k,R.value)};
Gs.prototype.onStoreGraftedVeAction=function(k){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(k)):_.dg(Error("tl"))};
var wmU=function(k,E){return E.filter(function(S){for(var R in S)if(hJP[R])return k.pendingPlayerOnResponseReceivedActions.push(S),!0;return!1})};
_.mt.Object.defineProperties(Gs.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Gs.prototype.onStoreGraftedVeAction=Gs.prototype.onStoreGraftedVeAction;Gs.prototype.loadData=Gs.prototype.loadData;Gs.prototype.onYtUpdateUnseenNotificationCount=Gs.prototype.onYtUpdateUnseenNotificationCount;Gs.prototype.handleClearCookieAction=Gs.prototype.handleClearCookieAction;Gs.prototype.handleUpdateNotificationsUnseenCountAction=Gs.prototype.handleUpdateNotificationsUnseenCountAction;Gs.prototype.setUnseenNotificationCount=Gs.prototype.setUnseenNotificationCount;
Gs.prototype.onYtUpdateTitle=Gs.prototype.onYtUpdateTitle;Gs.prototype.setPageTitle=Gs.prototype.setPageTitle;Gs.prototype.onYtEndpointChangeHandler=Gs.prototype.onYtEndpointChangeHandler;Gs.prototype.onYtPageDataFetched=Gs.prototype.onYtPageDataFetched;Gs.prototype.handleNavigate=Gs.prototype.handleNavigate;Gs.prototype.onYtNavigate=Gs.prototype.onYtNavigate;Gs.prototype.onYtNavigateFinish=Gs.prototype.onYtNavigateFinish;Gs.prototype.onYtNavigateCache=Gs.prototype.onYtNavigateCache;
Gs.prototype.onYtNavigateError=Gs.prototype.onYtNavigateError;Gs.prototype.onYtNavigateStart=Gs.prototype.onYtNavigateStart;Gs.prototype.cancelPendingTasks=Gs.prototype.cancelPendingTasks;Gs.prototype.initHistoryManager=Gs.prototype.initHistoryManager;Gs.prototype.onYtHistoryLoad=Gs.prototype.onYtHistoryLoad;Gs.prototype.onYtHistoryPop=Gs.prototype.onYtHistoryPop;Gs.prototype.onYtNavigateSetPageOffset=Gs.prototype.onYtNavigateSetPageOffset;Gs.prototype.setPageOffset=Gs.prototype.setPageOffset;
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Gs.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Gs.prototype,"data",void 0);_.Z([_.nv("yt-navigate-set-page-offset"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Gs.prototype,"onYtNavigateSetPageOffset",null);
_.Z([_.nv("yt-history-pop"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],Gs.prototype,"onYtHistoryPop",null);_.Z([_.nv("yt-history-load"),_.l("design:type",Function),_.l("design:paramtypes",[Event,_.qHC]),_.l("design:returntype")],Gs.prototype,"onYtHistoryLoad",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Gs.prototype,"onYtNavigate",null);
_.Z([_.nv("yt-update-title"),_.l("design:type",Function),_.l("design:paramtypes",[Event,String]),_.l("design:returntype")],Gs.prototype,"onYtUpdateTitle",null);_.Z([_.nv("yt-update-unseen-notification-count"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Number]),_.l("design:returntype")],Gs.prototype,"onYtUpdateUnseenNotificationCount",null);_.Z([_.eN()],Gs);n9A.YtdAppBehavior=[_.H5.YtActionHandlerBehavior,Gs.prototype];var kR=function(){var k=_.mi.apply(this,arguments)||this;k._noAccessors=!0;return k};
_.y(kR,_.mi);kR.prototype.ready=function(){var k=this;_.Cc(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){k.onChange_()})};
kR.prototype.dataChanged_=function(){_.Cc(this.hostElement).querySelector("#checkbox").checked=!1};
kR.prototype.onChange_=function(){var k=_.Cc(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Me(this.hostElement,"yt-dismissal-reason-"+k,this.data.feedbackToken)};
kR.prototype.dataChanged_=kR.prototype.dataChanged_;_.Z([_.H(),_.l("design:type",Object)],kR.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],kR.prototype,"dataChanged_",null);_.Z([_.eN()],kR);var Pyt=[kR.prototype];var EP=function(){var k=_.mi.apply(this,arguments)||this;k.timeoutJobId=0;k.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return k};
_.y(EP,_.mi);EP.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
EP.prototype.startTimeout=function(){var k=this,E=this.data&&this.data.displayDurationSeconds;E&&!this.timeoutJobId&&(this.timeoutJobId=_.uM(_.ZJ,function(){_.qe(k.hostElement,"yt-close-popup-action",[k.is]);k.timeoutJobId=0},E*1E3))};
EP.prototype.cancelTimeout=function(){_.ZJ.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
EP.prototype.ytdHatsSurveyBehaviorDataChanged=EP.prototype.ytdHatsSurveyBehaviorDataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],EP.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],EP.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.Z([_.eN()],EP);var BNG=[_.H5.YtActionHandlerBehavior,EP.prototype];var YOa=function(k,E){var S;return((S=k.prefixMapping)==null?0:S[E])?k.prefixMapping[E]:k.SHARED_RENDERERS_.hasOwnProperty(E)?"yt":k.prefix},SV={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}};SV.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.Y("kevlar_mealbar_above_player"),modern:_.Y("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"}};
SV.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};SV.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};SV.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
SV.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)"}};
SV.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};
SV.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};
SV.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};
SV.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
SV.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"}};SV.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};SV.TOAST={component:null,properties:{}};var WAG=new function(k,E,S){this.supportedPopups=k;this.navigationEndpointPopupMap=E;this.popupTypeMap=S;this.supportedPopups=k;this.navigationEndpointPopupMap=E;this.popupTypeMap=S}({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:_.Y("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"}),FAA=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$20149_popupConfig=SV;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 yuR=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.lZ.getInstance()},Rl=function(k,E){var S=k.pageNameToElement.get(E);
if(!S){switch(E){case "watch":var R=_.Y("web_watch_force_learning_journey_for_testing")?_.c5("ytd-watch-learning-journey"):_.Y("kevlar_watch_fixie")?_.c5("ytd-watch-fixie"):_.Y("kevlar_watch_grid")?_.c5("ytd-watch-grid"):_.c5("ytd-watch-flexy");break;case "learning_journey_watch":R=_.c5("ytd-watch-learning-journey");break;case "shorts":R=_.c5("ytd-shorts");break;case "search":R=_.c5("ytd-search");break;case "channel":R=_.c5("ytd-browse");R.pageSubtype="channels";break;case "trending":R=_.c5("ytd-browse");
R.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":R=
_.c5("ytd-browse");R.pageSubtype=E;break;case "browse":R=_.c5("ytd-browse");break;default:_.dg(new _.LC("Error getting page element for type",E))}S=R;k.pageNameToElement.set(E,S)}return S};
yuR.prototype.preparePage=function(k,E,S){S&&(k=_.VS(S)||k);if(k!=="watch"&&k!=="learning_journey_watch"){var R=this.elementPoolPopulator,V=k;V!=R.targetPage_&&R.pendingPages_.indexOf(V)>-1&&(R.targetPage_&&(R.pendingPages_.unshift(R.targetPage_),R.abort()),gsT(R,V),_.dHd(R,V))}if((R=Rl(this,k))||!_.W(S,_.Oc)){R.isAttached||R===E||(R.hidden=!0);if(!R.data&&(k!=="watch"&&k!=="learning_journey_watch"||!_.Y("swatcheroo_page_pool_dont_provide_filler_data"))){var N;if(k=(N=_.Mg("FILLER_DATA",{})[k])==
null?void 0:N.response)R.data=k}return R}};var o9P=function(k){this.JSC$32359_clientRoot=k;this.playlistHandlerActionMap={"yt-add-to-playlist-command":nqY,"yt-end-playlist-command":imU,"yt-recover-playlist-command":J9G,"yt-refresh-playlist-command":e_A,"yt-playlist-remove-videos-action":c9Y};_.E2(_.GU.getInstance(),this.playlistHandlerActionMap,this.JSC$32359_clientRoot);jLP()},XmP;var Vu=function(k,E,S){this.apiKey=k;this.endpoint=E;this.confidenceThreshold=S===void 0?.5:S;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=E==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||E==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
E==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||E==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new vNP};
_.I=Vu.prototype;
_.I.start=function(k){if(this.state===0)if(this.isOnline()){k.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=k.supportsHttpHeadersOverwriteParam);k.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=k.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.yi("voice_assistant");_.Xy("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=k.languageCode||"en-US";this.supportsCrossDomainXhr=k.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=k.youtubeAssistantRequest||null;this.listeningHandler=k.listeningHandler||this.listeningHandler;this.audioDetectedHandler=k.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=k.stopHandler||this.stopHandler;this.completeHandler=k.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=k.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=k.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
k.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=k.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=k.accessToken;this.additionalHeaders=k.additionalHeaders||{};var E;this.prefetchResponseTimeoutMs=(E=k.prefetchResponseTimeoutMs)!=null?E:this.prefetchResponseTimeoutMs;g9R(this);this.startAudio();UW3(this)}else this.errorHandler("OFFLINE")};
_.I.stop=function(k){var E=k===void 0?{}:k;k=E.logCancel===void 0?!0:E.logCancel;var S=E.logMicClosed===void 0?!0:E.logMicClosed;var R=E.handleError===void 0?!0:E.handleError;E=E.handleStop===void 0?!0:E.handleStop;this.state!==0&&(k&&NP("voz_cx"),Il(this,{logMicClosed:S,handleStop:E}),R&&this.errorHandler("ABORTED"))};
_.I.getState=function(){return this.state};
_.I.isSupported=function(){return!0};
_.I.stopAudio=function(k){(k===void 0||k)&&NP("voz_mf")};
_.I.startAudio=function(){NP("voz_vp");return _.GR(null)};
var HbT=function(k,E){k.channelOpen&&(k.state!==2&&(k.state=2,NP("voz_ss"),k.listeningHandler()),E=new Uint8Array(E),E='{ "audioIn": "'+_.xW(E)+'" }',k.channel.send(E))},Il=function(k,E){var S=E===void 0?{}:E;
E=S.logMicClosed===void 0?!0:S.logMicClosed;S=S.handleStop===void 0?!0:S.handleStop;k.vozEndOfDataTimeout>-1&&(clearTimeout(k.vozEndOfDataTimeout),k.vozEndOfDataTimeout=-1);KA2(k);k.stopAudio(E);k.channel&&(k.channelOpen=!1,k.manuallyClosedChannel=!0,k.channel.close(),k.channel=void 0);k.transcribedSpeechResults=[];k.state=0;S&&k.stopHandler()},g9R=function(k){var E={httpHeadersOverwriteParam:k.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},k.additionalHeaders,k.accessToken&&k.isUsingVoz?{Authorization:"Bearer "+k.accessToken}:{"x-goog-api-key":k.apiKey}),supportsCrossDomainXhr:k.supportsCrossDomainXhr};k.channel=new Fs(k.endpoint,E);k.channel.open();_.wX(k.channel,"w",function(){var S=k.channel,R=S.send,V=k.isUsingVoz?"PLACEHOLDER":"example";V={config:{dialogStateIn:{languageCode:k.languageCode},deviceConfig:{deviceId:V,deviceModelId:V},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!k.isUsingVoz)V.config.requestType=4;else if(k.isUsingVoz&&k.youtubeAssistantRequest){var N=JSON.stringify(k.youtubeAssistantRequest);V.config.internalIn={youtubeAssistantS3InputJson:N}}R.call(S,V);k.channelOpen=!0;k.manuallyClosedChannel=!1});
_.wX(k.channel,"x",function(){k.manuallyClosedChannel||(k.channelOpen=!1,k.channel=void 0,Il(k))});
_.wX(k.channel,"z",function(S){if(S.data){KA2(k);for(var R=0;R<S.data.length;R++){var V=k,N=S.data[R],h=N.speechResults;if(h)a:{var J=[];N=[];var m=!1;h=_.n(h);for(var a=h.next();!a.done;a=h.next()){a=a.value;if(a.noSpeech){Il(V);V.errorHandler("NO_SPEECH");break a}a.transcript!==void 0&&a.stability!==void 0&&(a.stability<V.confidenceThreshold&&(m=!0),m?N.push(a.transcript):J.push(a.transcript))}if(J.length!==0||N.length!==0)J=J.join(" "),N=N.join(" "),V.receivedEndOfUtterance&&!V.isUsingVoz?V.isUsingVoz||
V.completeHandler([J,N]):(m=V,h=J,a=N,NP("voz_sf"),m.transcriptionUpdateHandler(h,a),m.transcribedSpeechResults=[h,a]),V.receivedEndOfUtterance&&(NP("voz_eou"),V.transcriptionCompleteHandler([J,N]),V.isUsingVoz&&(V.prefetchResponseTimeoutMs===0?Il(V,{logMicClosed:!1,handleStop:!0}):V.prefetchResponseTimeoutMs>0&&pm3(V)))}else V.isUsingVoz&&(N==null?0:N.internalOut)?(N=JSON.parse(N.internalOut.youtubeAssistantS3OutputJson),N.userHasOptedInToVaa||N.vaaConsent?V.vaaConsentUpdateHandler(!!N.userHasOptedInToVaa,
!!N.vaaConsent):(AuT(V),N&&(J=V.transcribedSpeechResults,NP("voz_rqf"),V.completeHandler(J,N)))):N.eventType==="END_OF_UTTERANCE"?V.receivedEndOfUtterance=!0:(NP("voz_err"),V.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.dg(Error("ul")))}}});
_.wX(k.channel,"y",function(S){Il(k);switch(S.status){case 1:S="WEBCHANNEL_NETWORK_ERROR";break;case 2:S="WEBCHANNEL_SERVER_ERROR";break;default:S="WEBCHANNEL_UNKNOWN_ERROR"}k.errorHandler(S);k.logError(Error(S))})};
Vu.prototype.logError=function(k){_.bM(k)};
Vu.prototype.isOnline=function(){return!0};
var pm3=function(k){AuT(k);k.prefetchResponseSetTimeoutId=setTimeout(function(){Il(k,{logMicClosed:!1,handleStop:!0})},k.prefetchResponseTimeoutMs)},AuT=function(k){k.prefetchResponseSetTimeoutId>-1&&(clearTimeout(k.prefetchResponseSetTimeoutId),k.prefetchResponseSetTimeoutId=-1)},UW3=function(k){KA2(k);
k.noResponseReceivedTimeout=window.setTimeout(function(){Il(k);k.errorHandler("NO_SPEECH")},11E3)},KA2=function(k){k.noResponseReceivedTimeout>-1&&(window.clearTimeout(k.noResponseReceivedTimeout),k.noResponseReceivedTimeout=-1)},NP=function(k){_.o_(k,void 0,"voice_assistant")};var nq=function(){Vu.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.y(nq,Vu);nq.prototype.isSupported=function(){return aOx()};
nq.prototype.startAudio=function(){var k=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.BM(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(R){ru2(k,R)};
this.processor.connect(this.audioContext.destination);var E=function(R){k.stream=R;if(!k.audioContext)return _.GR(null);R=k.audioContext.createMediaStreamSource(R);k.processor&&R.connect(k.processor);return _.GR(null)},S={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?E(this.stream):(S=navigator.mediaDevices.getUserMedia(S))?S.then(E).catch(function(R){Il(k);R.name&&R.name==="NotAllowedError"?k.errorHandler("NO_MICROPHONE_PERMISSION"):(k.errorHandler("AUDIO_ERROR"),k.logError(R));return _.BM(null)}):(Il(this),this.errorHandler("AUDIO_ERROR"),_.dg(Error("vl")));
return Vu.prototype.startAudio.call(this)};
nq.prototype.stopAudio=function(k){k=k===void 0?!0:k;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(E){E.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Vu.prototype.stopAudio.call(this,k)};
nq.prototype.isOnline=function(){return navigator.onLine};
var ru2=function(k,E){if(k.audioContext)if(window.OfflineAudioContext){var S=k.audioContext.sampleRate,R=E.inputBuffer.getChannelData(0);E=new window.OfflineAudioContext(1,R.length,16E3);for(var V=E.createBuffer(1,R.length,S),N=V.getChannelData(0),h=0,J=0;J<R.length;J++)N[J]=R[J],h+=N[J]*N[J];!k.audioDetected&&Math.sqrt(h/R.length)>.01&&(k.audioDetected=!0,k.audioDetectedHandler());R=E.createBufferSource();R.buffer=V;R.connect(E.destination);R.start(0);E.oncomplete=function(m){m=m.renderedBuffer.getChannelData(0);
for(var a=Math.floor(16384E3/S),T=new Int16Array(a),w=0;w<a;++w)T[w]=Math.max(-1,Math.min(1,m[w]))*32767;HbT(k,T.buffer)};
E.startRendering()}else u_P(k,E)},u_P=function(k,E){var S=k.audioContext.sampleRate,R=E.inputBuffer.getChannelData(0),V=Math.floor((S+8E3)/16E3);
S=R.length/V;E=new Float32Array(S);for(var N=0;N<S;++N)E[N]=R[N*V];R=new Int16Array(S);for(V=0;V<S;++V)R[V]=Math.max(-1,Math.min(1,E[V]))*32767;HbT(k,R.buffer)};var xW2={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var LA0=function(){this.JSC$20215_audioEnabled=!0;this.audioFeedbackHolder={}};
LA0.prototype.isPlaying=function(k){return k.currentTime>0&&!k.paused&&!k.ended&&k.readyState>2};
var jFY=function(k){for(var E=_.n(Object.values(xW2)),S=E.next();!S.done;S=E.next())S=S.value,k.audioFeedbackHolder[S]=new Audio,k.audioFeedbackHolder[S].src="/s/search/audio/"+S+".mp3",k.audioFeedbackHolder[S].load()},iQ=function(k,E){if(k.JSC$20215_audioEnabled!==!1&&E in k.audioFeedbackHolder){for(var S=_.n(Object.values(k.audioFeedbackHolder)),R=S.next();!R.done;R=S.next())R=R.value,k.isPlaying(R)&&R.pause();
k.audioFeedbackHolder[E].currentTime=0;k.audioFeedbackHolder[E].play().catch(function(){})}};var DWG=function(k,E){var S=this;this.store=k;this.service=E;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){S.setState("offline");S.stop()};
this.audioPlayer=new LA0;var R;(R=this.audioPlayer)==null||jFY(R)};
_.I=DWG.prototype;_.I.getService=function(){return this.service};
_.I.isEnabled=function(){return!!this.service};
_.I.isSupported=function(){var k;return(k=this.service)==null?void 0:k.isSupported()};
_.I.start=function(){var k=this,E,S,R,V,N,h,J,m,a,T,w,P,B;return _.c(function(F){switch(F.nextAddress){case 1:k.store.dispatch(sV0("",""));if(!navigator.onLine)return k.setState("offline"),F.return();window.addEventListener("offline",k.handleOfflineEvent);k.stream=null;if(!k.permissionsSupported){F.jumpTo(2);break}_.F5(F,3);return F.yield($Wx(k),5);case 5:E=F.yieldResult;if(!E)return(S=k.audioPlayer)==null||iQ(S,"failure"),F.return();k.service.stream=k.stream;k.setState("listening");_.Sv(F,2);break;
case 3:_.UY(F),k.permissionsSupported=!1;case 2:R={context:_.vni(_.t6())},R.youtubeAssistantParams={searchParams:{inlineSearchResponse:k.enableInlineSearchResponse}},V=function(K,r){k.store.dispatch(lmI("transcribing"));k.store.dispatch(sV0(K,r))},N=function(){var K;
(K=k.audioPlayer)==null||iQ(K,"open");k.setState("listening")},h=function(){k.setState("transcribing")},J=function(K){k.setErrorState(K)},m=function(K,r){var x;
(x=k.audioPlayer)==null||iQ(x,"success");r&&(_.Y("kevlar_voice_search_inline_search")&&(k.responseProcessor=_.en().resolve(_.hTI),k.responseProcessor&&(x=r.navigationAction,K=r.prefetchedSearchResponse,x&&K&&(x=(new _.qoW).JSC$13273_getStoreKey(x),_.UB(k.responseProcessor,K,x)))),k.JSC$20233_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",r))},a=function(){window.removeEventListener("offline",k.handleOfflineEvent)},T=_.Q7b(!1),w=T.Authorization!=null,P=k.enableFirstPartyAuth||
k.enableFPAForSignedInUsers&&w?T:{"X-Goog-Visitor-Id":T["X-Goog-Visitor-Id"]},B={completeHandler:m,
errorHandler:J,listeningHandler:N,audioDetectedHandler:h,stopHandler:a,transcriptionUpdateHandler:V,youtubeAssistantRequest:R,languageCode:fj3(),additionalHeaders:P,supportsCrossDomainXhr:k.enableFirstPartyAuth||k.enableFPAForSignedInUsers&&w,supportsHttpHeadersOverwriteParam:!k.disableHttpHeadersOverwrite},k.service.start(B),_.KR(F)}})};
_.I.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.I.reset=function(){this.store.dispatch(_.zX({type:"RESET_VOICE_SEARCH_STATE"}))};
_.I.setState=function(k){this.store.dispatch(lmI(k))};
_.I.setErrorState=function(k){switch(k){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var E;(E=this.audioPlayer)==null||iQ(E,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)$Wx(this);else{var S;(S=this.audioPlayer)==null||iQ(S,"failure");this.setState("permission-denied")}break;case "ABORTED":var R;(R=this.audioPlayer)==null||iQ(R,"no_input");break;default:var V;(V=this.audioPlayer)==
null||iQ(V,"no_input");this.setState("timeout")}};
var $Wx=function(k){var E,S;return _.c(function(R){switch(R.nextAddress){case 1:return R.yield(navigator.permissions.query({name:"microphone"}),2);case 2:E=R.yieldResult;if(E.state==="granted")return R.return(!0);if(E.state==="denied")return k.setState("permission-denied"),R.return(!1);k.setState("permission");S={audio:{sampleSize:16,channelCount:1},video:!1};_.F5(R,3);return R.yield(navigator.mediaDevices.getUserMedia(S),5);case 5:return k.stream=R.yieldResult,R.return(!0);case 3:return _.UY(R),
k.setState("permission-denied"),R.return(!1)}})},fj3=function(){var k=_.Mg("INNERTUBE_CONTEXT_HL"),E=_.Mg("INNERTUBE_CONTEXT_GL");
return k.indexOf("-")>-1?k:k+"-"+E};var v9W=function(k,E,S){DWG.call(this,E,S);this.JSC$20233_actionRouter=k;this.enableInlineSearchResponse=_.Y("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.Y("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.Y("kevlar_voice_search_enable_fpa_signedin_users")},bb0;
_.y(v9W,DWG);
var Zb3=function(){if(!bb0){var k="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.Y("kevlar_voice_search_auth_enabled")||_.Y("kevlar_voice_search_use_yt_endpoint")?k="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.Y("kevlar_voice_search_use_fp_endpoint")&&(k="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");bb0=
new v9W(_.GU.getInstance(),_.vo(),new nq(_.Mg("VOZ_API_KEY"),k,.5))}return bb0};var dWY=function(k){this.JSC$20237_clientRoot=k;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1,commentsPanelOpen:!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$20237_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)],["yt-autonav-engagement-panel-visible-changed",this.onYtEngagementPanelVisibleChanged.bind(this)]]));k=_.n(this.eventListeners);for(var E=k.next();!E.done;E=k.next()){var S=
_.n(E.value);E=S.next().value;S=S.next().value;S=_.n(S);for(var R=S.next();!R.done;R=S.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;E.addEventListener(R,V)}}_.E2(_.GU.getInstance(),this.autonavPauseActionMap,this.JSC$20237_clientRoot)},sFY,lj3=function(k){return _.Y("kevlar_autonav_popup_filtering")?(k=_.bv(k))?k.hasAttribute("prevent-autonav"):!0:!0};
_.I=dWY.prototype;_.I.onIronOverlayOpened=function(k){lj3(k)&&(this.autonavPauseReasons.overlayOpen=!0,h4(this))};
_.I.onIronOverlayClosed=function(k){lj3(k)&&(this.autonavPauseReasons.overlayOpen=!1,h4(this))};
_.I.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;h4(this)};
_.I.onYtAutonavPauseBlur=function(){var k=this;_.ZJ.addJob(function(){k.isInBackground()||(k.autonavPauseReasons.inputBoxFocus=!1,h4(k))},8,0)};
_.I.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;h4(this)};
_.I.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;h4(this)};
_.I.onYtAutonavPauseScroll=function(){var k=_.en().resolve(_.ZD);k.isOnWatch()&&(k=k.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=k.getBoundingClientRect().top<-200,h4(this))};
_.I.onYtAutonavPauseUserEngagement=function(k){var E=this;if(_.Y("user_engagement_enable_autoplay_pause_feature")){var S=Number(k.lowEngagementThresholdMs);isNaN(S)||S<=0||k.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.rx("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.en().resolve(_.eQ),_.mE()<S?_.uM(_.ZJ,function(){_.rx("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.rgI()?(this.userEngagementCsn=_.Fe(),_.uM(_.ZJ,function(){_.rx("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
E.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,h4(this)):_.rx("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.kcm(Error("wl`"+JSON.stringify(k)))};
_.I.onYtAutonavPausePlayer=function(k){this.autonavPauseReasons.requestedByPlayer=!!k.detail;h4(this)};
_.I.onYtAutonavVisibilityChanged=function(){var k=this,E,S,R;return _.c(function(V){if(V.nextAddress==1)return(E=_.s3())?V.yield(E.getPlayerPromise(),2):V.return();S=V.yieldResult;R=S.isMuted()||S.getVolume()===0;k.autonavPauseReasons.backgroundAndMute=k.isInBackground()&&R;h4(k);_.KR(V)})};
_.I.onYtAutonavPausePlayerEnded=function(){_.en().resolve(_.eQ);var k=144E5;_.Y("user_engagement_enable_autoplay_pause_feature")||_.Y("is_part_of_any_user_engagement_experiment")||(k=45E5);this.autonavPauseReasons.longIdle=_.mE()>k;Mpt(this);h4(this)};
_.I.onYtUserActivity=function(){var k=this;this.autonavPauseReasons.userEngagement&&(_.uM(_.ZJ,function(){_.rx("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",k.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,h4(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.uM(_.ZJ,function(){_.rx("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",k.userEngagementCsn);_.vv()}),this.autonavPauseReasons.youthereLactExperiment=!1,h4(this));
this.autonavPauseReasons.longIdle&&!_.Y("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,h4(this))};
_.I.isInBackground=function(){var k=window.document.visibilityState;return!(!k||k==="visible")};
var h4=function(k){for(var E=!1,S=_.n(Object.values(k.autonavPauseReasons)),R=S.next();!R.done;R=S.next())R=R.value,E=E||R;E?_.nw.getInstance().pause(k.autonavPauseReasons):(k=_.nw.getInstance(),k.autonavState_==3?(k.setState(2,!1,!1),k.autonavPauseReason_=void 0):k.autonavState_==1&&(k.disabledAutonavPauseReason_=void 0))},Mpt=function(k){var E=!1;
if(_.Y("enable_autoplay_pause_by_lact")){_.en().resolve(_.eQ);E=_.wO("autoplay_pause_by_lact_sec")*1E3;var S=_.wO("autoplay_pause_by_lact_sampling_fraction");(E=_.mE()>=E&&Math.random()<S)&&!_.rgI()&&(_.uM(_.ZJ,function(){_.rx("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),E=!1)}E!==k.autonavPauseReasons.youthereLactExperiment&&(k.autonavPauseReasons.youthereLactExperiment=E)&&(k.userEngagementCsn=_.Fe(),_.uM(_.ZJ,function(){_.rx("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",k.userEngagementCsn)}));
k.autonavPauseReasons.userEngagement&&_.uM(_.ZJ,function(){_.rx("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",k.userEngagementCsn)})};
dWY.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.rx("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.vv(),this.autonavPauseReasons.youthereLactExperiment=!1,h4(this));this.autonavPauseReasons.userEngagement&&(_.rx("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,h4(this))};
dWY.prototype.onYtEngagementPanelVisibleChanged=function(k){k.detail&&k.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=k.detail.visible,h4(this))};
dWY.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var qO2=_.K5.persistentPanelVisibleSelector,J4=function(){var k=_.p.apply(this,arguments)||this;k.miniGuideVisible=!1;k.guideOpened=_.Y("disable_initial_guide_state_fix")?!1:k.canFitPersistentGuide(k.initialBodyClientWidth);k.guideUserStateOpened=k.getInitialGuideUserStateOpened();k.isFullscreenShorts=!1;k.miniGuideWidthThreshold=_.wO("kevlar_mini_guide_width_threshold",791);k.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
k.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");k.persistentGuideBlockedPagePathRegex=new RegExp(k.persistentGuideBlockedPagesPatterns.join("|"));k.animationTransitionDuration=0;k.lateDataResolver=_.LU();k.initialGuideDataFetchFailed=!1;k.initialLoad=!0;k.guideRenderers=new Set;k.isMouseOverGuide=!1;k.sessionUserManuallyExpandedGuideState=
!1;k.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return k};
_.y(J4,_.p);_.I=J4.prototype;_.I.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.I.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.I.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.I.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.I.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.I.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.I.ready=function(){_.en().addProvider({provide:_.kg,useValue:this.hostElement})};
_.I.attached=function(){var k=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Ic(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Ic(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Ic(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Ic(this,this.onYtGuideShow));_.JB(this,function(){k.animationTransitionDuration=200})};
_.I.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ic(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Ic(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Ic(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Ic(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Ic(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Ic(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Ic(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.I.getData=function(){return this.data};
_.I.load=function(){var k=this,E,S,R,V;return _.c(function(N){switch(N.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=k.lateDataResolver.resolve.bind(k),N.return(k.lateDataResolver.promise);if(window.ytInitialGuideData)return E=_.LU(),E.resolve(window.ytInitialGuideData),N.return(E.promise);R=!1;_.F5(N,2);return N.yield(k.fetchGuideData(),4);case 4:S=N.yieldResult;_.Sv(N,3);break;case 2:V=_.UY(N),V.message==="Returned error"&&(R=
!0);case 3:if(S)return N.return(S);k.onYtGuideClose();R||(k.initialGuideDataFetchFailed=!0);return N.return(k.lateDataResolver.promise)}})};
_.I.fetchGuideData=function(){var k=this,E,S,R,V,N,h,J;return _.c(function(m){if(m.nextAddress==1)return E=_.en(),k.guidePromise||(S=E.resolve(_.oR),k.guidePromise=_.xv(S,G4T)),m.yield(k.guidePromise,2);if(m.nextAddress!=3)return R=m.yieldResult,V=E.resolve(_.XM),m.yield(V(),3);(N=m.yieldResult)&&((h=R)==null?void 0:(J=h.responseContext)==null?void 0:J.maxAgeSeconds)!==0&&N.put("service:guide:fallback",new _.yD({innertubeResponse:R}));return m.return(R)})};
_.I.initializeGuideDataIfEmpty=function(){var k=this,E,S;return _.c(function(R){if(R.nextAddress==1){if(!k.initialGuideDataFetchFailed||k.data)return R.return();_.F5(R,2);return R.yield(k.fetchGuideData(),4)}if(R.nextAddress!=2)return(E=R.yieldResult)&&k.lateDataResolver.resolve(E),_.Sv(R,0);S=_.UY(R);_.dg(S);_.KR(R)})};
_.I.initializeGuideData=function(){var k=this,E;return _.c(function(S){switch(S.nextAddress){case 1:return _.qh(XuP(),{mainAppWeb:_.jk()}),_.F5(S,2),S.yield(k.load(),4);case 4:k.data=S.yieldResult;_.Sv(S,3);break;case 2:_.UY(S),_.Gb(XuP(),"FAILURE");case 3:E=k.data&&k.data.items&&k.data.items.length>0?"SUCCESS":"FAILURE",_.Gb(XuP(),E),_.KR(S)}})};
_.I.setGuideData=function(k){var E=this,S,R;return _.c(function(V){if(V.nextAddress==1)return E.disabled?V.return():E.data?(k.data=E.data,E.guideRenderers.add(k),V.return()):V.yield(E.initializeGuideData(),2);E.graftGuideToPage();S=_.qg("IS_HOMEPAGE_COLD")?"eop":void 0;_.Y("disable_element_pool_populator")?E.setGuideDataAfterInit(k):(R=new _.my(1,S),_.e6(R,E.setGuideDataAfterInit.bind(E,k)));_.KR(V)})};
_.I.setGuideDataAfterInit=function(k){k.data=this.data;k.markDirty();this.guideRenderers.add(k);_.xT(function(){_.o_("gle")});
_.JB(this,function(){_.o_("gpe")})};
_.I.graftGuideToPage=function(){if(this.data){var k=this.data&&this.data.trackingParams;k&&(k=_.tV(k),_.Yo(_.JV(),k))}};
_.I.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Ic(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.I.onDrawerOpenedChanged=function(k,E){!E.value&&this.guideOpened&&(this.guideOpened=!1)};
_.I.onYtGuideToggle=function(k){var E=this.guideOpened;this.guideOpened=!E;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var S=_.nz();_.iD(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;S.save()}this.updateGuideDrawerElementState();if(this.guideElement){var R;this.guideOpened&&((R=k.detail)==null?0:R.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Ic(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.Ic(this,this.onAppDrawerTransitioned))}E||this.initializeGuideDataIfEmpty()};
_.I.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ic(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Nd(this.guideElement)};
_.I.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ic(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Zt0(this.guideOpened))};
_.I.guidePersistentAndVisibleChanged=function(){_.zR(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.I.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.zX({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.I.miniGuideVisibleChanged=function(){_.zR(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.I.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Zt0(this.guideOpened)),this.initialLoad=!1);_.zR(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.I.activeEndpointChanged=function(){_.zR(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.I.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.I.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()};
_.I.cachedClientWidthChanged=function(){this.updateGuideState()};
_.I.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.I.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var k=this.canFitPersistentGuide(this.cachedClientWidth);k?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=k}this.updateGuideDrawerElementState()};
_.I.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.I.getGuideOpened=function(){return this.guideOpened};
_.I.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.I.getActiveEndpoint=function(){return this.activeEndpoint};
_.I.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.I.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&&_.Me(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.I.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.Y("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.I.handleGuideMouseLeave=function(){var k=this;!this.sessionUserManuallyExpandedGuideState&&_.Y("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.Lv(this,"handleGuideMouseLeave",function(){k.isMouseOverGuide||!k.guideOpened||k.miniGuideVisible||(k.guideOpened=!1,k.updateGuideDrawerElementState())},100))};
_.I.computeGuidePersistentAndVisible=function(){var k=this;_.Lv(this,"computeGuidePersistentAndVisible",function(){k.guidePersistentAndVisible=k.guideOpened&&k.guidePersistent;k.guideIsVisibleButNotPersistent=!(!k.guideOpened||k.guidePersistent)})};
_.I.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.I.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.I.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.I.startLoadingWatch=function(){this.closeGuide()};
_.I.startLoadingShorts=function(){_.Y("web_hide_guide_on_shorts")&&this.closeGuide()};
_.I.onYtNavigateFinish=function(k,E){if(!_.qX||E){this.activeEndpoint=E.endpoint;this.pageType=E.pageType;this.pageUrl=E.response.url;var S,R;k=(R=_.W((S=E.endpoint)==null?void 0:S.commandMetadata,_.Sd))==null?void 0:R.url;!this.pageUrl&&k&&(this.pageUrl=k);_.Y("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.I.getVisibleGuideRenderer=function(){for(var k=_.n(this.guideRenderers),E=k.next();!E.done;E=k.next())if(E=E.value,this.miniGuideVisible&&E.is==="ytd-mini-guide-renderer"||this.guideOpened&&E.is==="ytd-guide-renderer")return E;return null};
_.I.markGuideRendererDirty=function(k){if(k){typeof k.markDirty==="function"&&k.markDirty();k=_.n([].concat(_.$e(_.Cc(k).children)));for(var E=k.next();!E.done;E=k.next())this.markGuideRendererDirty(E.value)}};
_.I.persistentGuideEnabled=function(k,E){if(!E||k==="watch"||k==="settings"||k==="shorts"&&this.isFullscreenShorts||_.Y("reels_web_disable_persistent_guide_shorts")&&k==="shorts")return!1;var S=_.Xu(E)||"";return _.Y("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(R){return S===R}):!this.persistentGuideBlockedPagePathRegex.test(S)};
_.I.canFitPersistentGuide=function(k){var E=_.wO("kevlar_persistent_guide_width_threshold",1312);return E===-1||_.Y("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:k>this.calculateGuideThreshold(E)};
_.I.calculateGuideThreshold=function(k){return _.Y("enable_ai_companion")?k+(this.persistentPanelVisible?400:0):k};
_.I.canFitMiniGuide=function(k){return this.miniGuideWidthThreshold===-1?!1:k>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.I.onResize=function(){var k=this;_.Lv(this,"calculateGuideState",function(){k.onResizeDebounced()})};
_.I.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.I.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.I.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.I.getInitialGuideUserStateOpened=function(){return _.Y("web_force_mini_guide_default")?!1:!_.nz().getFlag(109)};
_.mt.Object.defineProperties(J4.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Mg("initialBodyClientWidth")||window.innerWidth}}});
J4.prototype.onResize=J4.prototype.onResize;J4.prototype.observeForMiniGuideVisible=J4.prototype.observeForMiniGuideVisible;J4.prototype.computeGuidePersistentAndVisible=J4.prototype.computeGuidePersistentAndVisible;J4.prototype.persistentPanelVisibleChanged=J4.prototype.persistentPanelVisibleChanged;J4.prototype.cachedClientWidthChanged=J4.prototype.cachedClientWidthChanged;J4.prototype.resetGuide=J4.prototype.resetGuide;J4.prototype.activeEndpointChanged=J4.prototype.activeEndpointChanged;
J4.prototype.guideOpenedChanged=J4.prototype.guideOpenedChanged;J4.prototype.miniGuideVisibleChanged=J4.prototype.miniGuideVisibleChanged;J4.prototype.guideIsVisibleButNotPersistentChanged=J4.prototype.guideIsVisibleButNotPersistentChanged;J4.prototype.guidePersistentAndVisibleChanged=J4.prototype.guidePersistentAndVisibleChanged;J4.prototype.onGuideElementChanged=J4.prototype.onGuideElementChanged;J4.prototype.onGuidePersistentChanged=J4.prototype.onGuidePersistentChanged;
J4.prototype.onRenderGuideChanged=J4.prototype.onRenderGuideChanged;J4.prototype.onActiveEndpointChanged=J4.prototype.onActiveEndpointChanged;J4.prototype.onMiniGuideVisibleChanged=J4.prototype.onMiniGuideVisibleChanged;J4.prototype.onGuideIsVisibleButNotPersistentChanged=J4.prototype.onGuideIsVisibleButNotPersistentChanged;J4.prototype.onGuidePersistendAndVisibleChanged=J4.prototype.onGuidePersistendAndVisibleChanged;
_.Z([_.g(_.KS),_.l("design:type",Object)],J4.prototype,"ironResizableBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],J4.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],J4.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],J4.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],J4.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],J4.prototype,"disabled",void 0);_.Z([_.H(),_.l("design:type",Boolean)],J4.prototype,"guidePersistentAndVisible",void 0);_.Z([_.il("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"onGuidePersistendAndVisibleChanged",null);_.Z([_.H(),_.l("design:type",Boolean)],J4.prototype,"guideIsVisibleButNotPersistent",void 0);
_.Z([_.il("guideIsVisibleButNotPersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.Z([_.H(),_.l("design:type",Object)],J4.prototype,"miniGuideVisible",void 0);_.Z([_.il("miniGuideVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"onMiniGuideVisibleChanged",null);_.Z([_.H(),_.l("design:type",Boolean)],J4.prototype,"forceMiniGuideClose",void 0);
_.Z([_.H(),_.l("design:type",Object)],J4.prototype,"activeEndpoint",void 0);_.Z([_.il("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"onActiveEndpointChanged",null);_.Z([_.H(),_.l("design:type",Boolean)],J4.prototype,"renderGuide",void 0);_.Z([_.il("renderGuide"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"onRenderGuideChanged",null);
_.Z([_.H({selector:qO2}),_.l("design:type",Boolean)],J4.prototype,"persistentPanelVisible",void 0);_.Z([_.H(),_.l("design:type",Object)],J4.prototype,"guideOpened",void 0);_.Z([_.H(),_.l("design:type",Boolean)],J4.prototype,"guidePersistent",void 0);_.Z([_.il("guidePersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"onGuidePersistentChanged",null);_.Z([_.H(),_.l("design:type",Object)],J4.prototype,"guideUserStateOpened",void 0);
_.Z([_.H(),_.l("design:type",String)],J4.prototype,"pageUrl",void 0);_.Z([_.H(),_.l("design:type",String)],J4.prototype,"pageType",void 0);_.Z([_.H(),_.l("design:type",Number)],J4.prototype,"cachedClientWidth",void 0);_.Z([_.H(),_.l("design:type",Object)],J4.prototype,"guideElement",void 0);_.Z([_.H({selector:_.dd}),_.l("design:type",Object)],J4.prototype,"isFullscreenShorts",void 0);
_.Z([_.il("guideElement"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"onGuideElementChanged",null);_.Z([_.il("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"guidePersistentAndVisibleChanged",null);
_.Z([_.ac("guideIsVisibleButNotPersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"guideIsVisibleButNotPersistentChanged",null);_.Z([_.il("miniGuideVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"miniGuideVisibleChanged",null);_.Z([_.ac("guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"guideOpenedChanged",null);
_.Z([_.il("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"activeEndpointChanged",null);_.Z([_.ac("pageUrl"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"resetGuide",null);_.Z([_.ac("cachedClientWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"cachedClientWidthChanged",null);
_.Z([_.ac("persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"persistentPanelVisibleChanged",null);_.Z([_.il("guideOpened","guidePersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"computeGuidePersistentAndVisible",null);
_.Z([_.ac("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"observeForMiniGuideVisible",null);_.Z([_.nv("iron-resize"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J4.prototype,"onResize",null);_.Z([_.D({disableElementRegistration:!0,is:"yt-guide-manager"})],J4);
var zJG=_.b(J4,"yt-guide-manager",void 0,{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var cJ=function(){var k=_.p.apply(this,arguments)||this;k.JSC$20247_keyboardInUse=!1;k.boundHandleCapturedKeydownEvent=function(E){k.handleCapturedKeydownEvent(E)};
return k};
_.y(cJ,_.p);_.I=cJ.prototype;_.I.attached=function(){this.listenToDocument(document)};
_.I.listenToDocument=function(k){k.addEventListener("keydown",_.Ic(this,this.onKeyDownEvent));k.addEventListener("keyup",_.Ic(this,this.onKeyUpEvent));k.addEventListener("mousedown",_.Ic(this,this.onMouseDownEvent));_.Y("desktop_keyboard_capture_keydown_killswitch")||k.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);k.addEventListener("yt-page-data-updated",_.Ic(this,this.onPageUpdate))};
_.I.detached=function(){this.unlistenFromDocument(document)};
_.I.unlistenFromDocument=function(k){k.removeEventListener("keydown",_.Ic(this,this.onKeyDownEvent));k.removeEventListener("keyup",_.Ic(this,this.onKeyUpEvent));k.removeEventListener("mousedown",_.Ic(this,this.onMouseDownEvent));_.Y("desktop_keyboard_capture_keydown_killswitch")||k.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);k.removeEventListener("yt-page-data-updated",_.Ic(this,this.onPageUpdate))};
_.I.ready=function(){_.en().addProvider({provide:_.tr,useValue:this})};
_.I.isKeyBoardInUse=function(){return this.JSC$20247_keyboardInUse};
_.I.handleCapturedKeydownEvent=function(k){if(k.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(k)};
_.I.onMouseDownEvent=function(){this.JSC$20247_keyboardInUse=!1};
_.I.onPageUpdate=function(){if(_.Y("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.Y("web_shorts_keyboard_shortcut_usage_log")){_.DL.clear();for(var k=_.n(_.LA),E=k.next();!E.done;E=k.next()){var S=_.n(E.value);E=S.next().value;S=S.next().value;S=_.kh(S);_.DL.set(E,S);_.rq(_.Fe(),_.Wi(),S)}_.$L.clear();k=_.n(_.j0);for(E=k.next();!E.done;E=k.next())S=_.n(E.value),E=S.next().value,S=S.next().value,S=_.kh(S),_.$L.set(E,S),_.rq(_.Fe(),_.Wi(),S);_.uD(_.Fe(),_.Wi(),[].concat(_.$e(_.$L.values()),
_.$e(_.DL.values())));_.Lz(_.Fe(),[].concat(_.$e(_.$L.values()),_.$e(_.DL.values())))}};
_.I.onMiniplayerActiveChange=function(){var k;(k=_.en().resolve(_.yb).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(k.document):this.unlistenFromDocument(k.document))};
_.I.ignoreKeyEvent=function(k){if(k.ctrlKey||k.altKey)if(_.Y("kevlar_macro_markers_keyboard_shortcut")){if(k.keyCode!==37&&k.keyCode!==39)return!0}else return!0;var E=_.vT(k)||[];return _.L5T(E)?(_.Y("web_button_or_anchor_list_item")&&qkU(E,k)&&(this.JSC$20247_keyboardInUse=!0),!0):k.defaultPrevented?(RU(k.keyCode,k.shiftKey,this.isShortsPage),!0):k.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(k):!1};
_.I.isSpacebarClick=function(k){var E=k||window.event;var S;E.composedPath&&typeof E.composedPath==="function"?S=E.composedPath():S=E.path;S&&S.length?E=S[0]:(E=E||window.event,E=E.target||E.srcElement,E.nodeType==3&&(E=E.parentNode));return E&&k.keyCode===32&&(k=E.tagName==="BUTTON"||E.tagName==="A"||E.tagName==="INPUT",E=(E=E.getAttribute("role"))&&(E==="option"||E==="button"||E.indexOf("menuitem")===0),k||E)?!0:!1};
_.I.onKeyDownEvent=function(k){if(!this.ignoreKeyEvent(k)&&(k.keyCode===191&&(k.shiftKey||k.metaKey?k.repeat!=null&&k.repeat||(this.openHotkeyDialog(),RU(k.keyCode,k.shiftKey,this.isShortsPage)):(this.focusSearchBox(),k.preventDefault())),!k.metaKey)){var E=_.en().resolve(_.yb);switch(k.keyCode){case 9:this.JSC$20247_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(k);break;case 84:E.pipController.getWindow()&&window.focus();this.toggleTheaterMode(k.keyCode,k.shiftKey);break;case 73:E.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(k.keyCode,k.shiftKey);break;case 70:if(this.isShortsPage&&_.Y("web_fullscreen_shorts")){_.jR0();break}this.isMiniplayerActive()?E.pipController.getWindow()&&(E.close(!0),window.focus()):this.passEventToPlayer(k);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(k.keyCode,k.shiftKey):this.closeMiniplayer(k.keyCode,k.shiftKey)||this.passEventToPlayer(k);break;case 13:k.shiftKey&&_.en().resolve(_.qf).activate(k);break;default:this.passEventToPlayer(k)}}};
_.I.onKeyUpEvent=function(k){if(!this.ignoreKeyEvent(k))if(_.Y("web_speedmaster_spacebar_control")&&k.keyCode===32)this.handlePlayerSpaceKey(k,!0);else{var E=this.getPlayerManager();E&&(E=E.getPlayer())&&E.handleGlobalKeyUp(k.keyCode,k.shiftKey,k.ctrlKey,k.altKey,k.metaKey,k.key,k.code)}};
_.I.getPlayerManager=function(){var k=_.s3(),E=_.en().resolve(_.mz(_.ZD));return k&&E&&E.isOnWatch()?k:null};
_.I.passEventToPlayer=function(k,E){var S=this,R,V,N,h;return _.c(function(J){if(J.nextAddress==1){if(!_.Y("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&S.isMiniplayerActive())R=_.en().resolve(_.yb).getPlayerElement();else if(S.inlinePreviewIsActive){if(V=_.zR(S.hostElement,"yt-get-inline-preview-player-action"),(N=V)==null?0:N[0])R=V[0]}else R=_.s3();return R?J.yield(R.getPlayerPromise(),3):J.jumpTo(0)}h=J.yieldResult;E?h.handleGlobalKeyUp(k.keyCode,k.shiftKey,k.ctrlKey,k.altKey,k.metaKey,
k.key,k.code):h.handleGlobalKeyDown(k.keyCode,k.shiftKey,k.ctrlKey,k.altKey,k.metaKey,k.key,k.code,k.repeat);k.keyCode!==38&&k.keyCode!==40&&RU(k.keyCode,k.shiftKey,S.isShortsPage);_.KR(J)})};
_.I.focusSearchBox=function(){_.Me(this.hostElement,"yt-focus-searchbox")};
_.I.openHotkeyDialog=function(){_.Me(this.hostElement,"yt-open-hotkey-dialog")};
_.I.isMiniplayerActive=function(){return _.en().resolve(_.yb).isMiniplayerActive()};
_.I.closeMiniplayer=function(k,E){return this.isMiniplayerActive()?(_.en().resolve(_.yb).close(),RU(k,E,this.isShortsPage),!0):!1};
_.I.toggleTheaterMode=function(k,E){var S=_.yQ(_.vo().getState()),R=this.getPlayerManager(),V=_.Y("disable_theater_mode_keyboard")||_.qg("START_IN_FULL_WINDOW_MODE");R&&!V&&(S=!S,_.ZZ()&&_.Y("external_fullscreen")&&(S=!0),_.qe(this.hostElement,"yt-toggle-theater-mode",[S]),RU(k,E,this.isShortsPage))};
_.I.toggleMiniplayer=function(k,E){var S=this.getPlayerManager();if(this.isMiniplayerActive()){var R;((R=_.en().resolve(_.mz(_.ZD)))==null?0:R.isOnWatch())?_.en().resolve(_.yb).close(!0):_.Va(_.en().resolve(_.yb));RU(k,E,this.isShortsPage)}else S&&(_.qe(this.hostElement,"yt-activate-miniplayer-from-watch-action"),RU(k,E,this.isShortsPage))};
_.I.handlePlayerSpaceKey=function(k,E){var S=!!_.s3()||this.isMiniplayerActive();S=_.Y("disable_space_scroll_fix")||S;_.Y("global_spacebar_pause")&&!this.isKeyBoardInUse()&&S&&(k.preventDefault(),this.passEventToPlayer(k,E))};
_.I.isPresentingTheaterMode=function(){return _.Y("web_watch_enable_tm_esc_key")?_.yQ(_.vo().getState())&&!_.ZZ():!1};
cJ.prototype.onMiniplayerActiveChange=cJ.prototype.onMiniplayerActiveChange;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],cJ.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],cJ.prototype,"ytdReduxBehavior",void 0);_.Z([_.H({selector:_.ArI}),_.l("design:type",Boolean)],cJ.prototype,"inlinePreviewIsActive",void 0);_.Z([_.H({selector:_.l3b}),_.l("design:type",Boolean)],cJ.prototype,"isShortsPage",void 0);
_.Z([_.H({selector:_.Ff}),_.l("design:type",Boolean)],cJ.prototype,"miniplayerIsActive",void 0);_.Z([_.il("miniplayerIsActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],cJ.prototype,"onMiniplayerActiveChange",null);_.Z([_.D({disableElementRegistration:!0,is:"yt-hotkey-manager"})],cJ);_.b(cJ,"yt-hotkey-manager",void 0,{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var mP=function(){var k=_.p.apply(this,arguments)||this;k.loopStateEntityKey_=null;k.playlistLoopStateEntity_=null;k.isShuffleNextPlaylist=!1;k.PLAYER_EVENTS_=new Map;k.playerListenersSetup_=!1;k.videoSkipJob_=0;k.canAutoAdvance_=!1;k.playerManager_=null;k.TEST_ONLY={};return k};
_.y(mP,_.p);_.I=mP.prototype;_.I.ready=function(){_.en().addProvider({provide:_.z7,useValue:this.hostElement})};
_.I.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_)};
_.I.attached=function(){document.addEventListener("yt-navigate-start",_.Ic(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Ic(this,this.onYtNavigateFinish_))};
_.I.detached=function(){document.removeEventListener("yt-navigate-start",_.Ic(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Ic(this,this.onYtNavigateFinish_))};
_.I.updatePlaylistEventListeners=function(k,E){E&&!this.playerListenersSetup_?(this.playerManager_=k,this.registerPlaylistEventListeners_(k)):!E&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(k))};
_.I.setPlayer=function(k){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=k};
_.I.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.I.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.I.registerPlaylistEventListeners_=function(k){var E=this;k.getPlayerPromise().then(function(S){E.playerListenersSetup_||(E.ytPlayerListenerBehavior.listenToPlayerEvents(S,E.PLAYER_EVENTS_),E.playerListenersSetup_=!0)})};
_.I.removePlaylistEventListeners_=function(k){var E=this;k.getPlayerPromise().then(function(S){E.playerListenersSetup_&&(E.ytPlayerListenerBehavior.unlistenFromPlayerEvents(S,E.PLAYER_EVENTS_),E.playerListenersSetup_=!1)})};
_.I.setPlaylistComponent=function(k){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Ic(this,this.onPlaylistYtNavigate_)),k&&(k.data&&this.playlistComponent.data&&k.data.playlistId==this.playlistComponent.data.playlistId?(k.loopOn=this.playlistComponent.loopOn,k.shuffleOn=this.playlistComponent.shuffleOn):(k.loopOn=!1,k.shuffleOn=!1),this.isShuffleNextPlaylist&&(k.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=k;this.playlistComponent.addEventListener("yt-navigate",
_.Ic(this,this.onPlaylistYtNavigate_))};
_.I.setAutoplayRenderer=function(k){this.autoplayData=k};
_.I.setPlaylistData=function(k){this.currentPlaylistData_=k;_.Me(this.hostElement,"yt-playlist-data-updated");_.fO.isEmpty(k)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(k)};
_.I.setPlayerPlaybackControlData=function(k){this.playerManager_&&this.playerManager_.updatePlayerComponents(k.playlistPanelRenderer)};
_.I.getPlaylistData=function(){return this.currentPlaylistData_};
_.I.getTempData_=function(k,E){if(this.playlistComponent==null)return null;k={};this.playlistComponent.shuffleOn&&(k.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(k.loop_on=this.playlistComponent.loopOn);E&&(k.autonav="1",_.en().resolve(_.eQ),E=_.mE(),E>0&&(k.lact=E),this.playerManager_&&(E=this.playerManager_.getPlayer())&&E.shouldSendVisibilityState()&&(E=E.getVisibilityState(),E!=0&&(k.vis=E)));_.Y("enable_unknown_lact_fix_on_html5")&&(_.en().resolve(_.eQ),k.lact=
_.mE());return k};
_.I.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.I.setLoopStateEntityKey_=function(k){var E;this.loopStateEntityKey_=((E=this.getPlaylistLoopData_(k))==null?void 0:E.playlistLoopStateEntityKey)||null};
_.I.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.I.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.I.skipVideo=function(){var k=this,E=_.Y("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||E)E=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.aE(_.ZJ,function(){k.onPlaylistNext();k.videoSkipJob_=0},E)};
_.I.cancelVideoSkip=function(){this.videoSkipJob_&&(_.ZJ.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.I.isInBackground_=function(){var k=window.document.visibilityState;return!(!k||k=="visible")};
_.I.onPlaylistIndex_=function(k){this.playlistComponent&&(k=this.playlistComponent.data.contents[k].playlistPanelVideoRenderer.navigationEndpoint,_.Me(this.hostElement,"yt-navigate",{endpoint:k,tempData:this.getTempData_(k)}))};
_.I.onPlayerStateChange_=function(k){if(k=k==0&&this.playlistComponent&&this.canAutoAdvance_)k=_.nw.getInstance(),k=!(k.autonavState_===3?k.autonavPauseReason_&&k.autonavPauseReason_.inputBoxFocus===!0:k.autonavState_===1&&k.disabledAutonavPauseReason_&&k.disabledAutonavPauseReason_.inputBoxFocus===!0);k&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.I.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.I.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.I.navigateToAutoplayWatchEndpoint_=function(k,E,S){var R=this.playlistComponent.data.currentIndex,V=this.getNumPlayableVideos_();k=="NORMAL"&&E=="autoplayVideo"&&R+1>=V&&S||!(k=this.getVideoEndpoint_(k,E))||(S=this.getTempData_(k,S),_.Me(this.hostElement,"yt-navigate",{endpoint:k,tempData:S}))};
_.I.getNumPlayableVideos_=function(){for(var k=0,E=_.n(this.playlistComponent.data.contents||[]),S=E.next();!S.done;S=E.next())S.value.playlistPanelVideoRenderer&&(k+=1);return k};
_.I.getVideoEndpoint_=function(k,E){if(this.autoplayData&&this.autoplayData.sets)for(var S=0,R=this.autoplayData.sets.length;S<R;S++){var V=this.autoplayData.sets[S];if(V.mode==k){if(V[E])return V[E];break}}else k=new _.LC("AutoplayData is undefined in playlist manager","Mode: "+k+" endpoint: "+E),_.dg(k)};
_.I.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.I.onPlaylistYtNavigate_=function(k){if(k.detail.endpoint){k.stopPropagation();var E=k.detail;E.tempData=this.getTempData_(k.detail.endpoint);_.Me(this.hostElement,"yt-navigate",E)}};
_.I.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.I.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.I.playlistLoopStateEntityChanged_=function(k){var E=this,S,R,V;return _.c(function(N){if(N.nextAddress==1){if(!k)return N.return();S=k.state==="PLAYLIST_LOOP_STATE_ONE";return E.playerManager_?N.yield(E.playerManager_.getPlayerPromise(),3):N.jumpTo(2)}N.nextAddress!=2&&(R=N.yieldResult,R.setLoopVideo(S));V=k.state==="PLAYLIST_LOOP_STATE_ALL";E.playlistComponent&&(E.playlistComponent.loopOn=V);_.KR(N)})};
_.I.getPlaylistLoopData_=function(k){var E,S;if(k=k==null?void 0:(E=k.playlistButtons)==null?void 0:(S=E.menuRenderer)==null?void 0:S.topLevelButtons)for(E=_.n(k),S=E.next();!S.done;S=E.next())if(S=S.value,S.playlistLoopButtonRenderer)return S.playlistLoopButtonRenderer};
_.I.getLoopStateCommand_=function(k){var E=this.getPlaylistData(),S;E=((S=this.getPlaylistLoopData_(E))==null?void 0:S.states)||[];var R;k=(R=_.W(E[k?1:2],_.hmd))==null?void 0:R.button;var V;return(V=_.W(k,_.dZ))==null?void 0:V.command};
_.I.onPlayerLoopChange_=function(k){this.playlistLoopStateEntity_&&(k?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(k=this.getLoopStateCommand_(k))&&this.ytComponentBehavior.resolveCommand(k)};
_.I.onSleepTimerSettingsChanged_=function(k){this.canAutoAdvance_=k!=="End of video"};
mP.prototype.onPlaylistLoopStateEntityChanged=mP.prototype.onPlaylistLoopStateEntityChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],mP.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.IQ.YtPlayerListenerBehavior),_.l("design:type",_.n6)],mP.prototype,"ytPlayerListenerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],mP.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],mP.prototype,"loopStateEntityKey_",void 0);
_.Z([_.H({selectorArgs:["loopStateEntityKey_"],selector:_.v5.playlistLoopStateEntitySelector}),_.l("design:type",Object)],mP.prototype,"playlistLoopStateEntity_",void 0);_.Z([_.il("playlistLoopStateEntity_"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mP.prototype,"onPlaylistLoopStateEntityChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"yt-playlist-manager"})],mP);_.b(mP,"yt-playlist-manager",void 0,{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var QFA,Obx=function(){if(QFA!==void 0)return QFA;var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return QFA=k};var eV=function(){var k=_.p.apply(this,arguments)||this;k.lastCallback=null;k.getAccountLinkPromises={};k.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);k.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return k};
_.y(eV,_.p);_.I=eV.prototype;_.I.getLocation=function(){return window.location.href};
_.I.getCompletionUrl=function(){return _.fI(this.getLocation())};
_.I.containsRedirectState=function(k){return(k=_.mJ(_.t0I(k)))?(new URLSearchParams(k)).get("redirect_state")!==null:!1};
_.I.createGalConfig=function(k,E){var S=new cHP;k=S=E?this.getPopupOrRedirectSetting(S,_.Mg("LINK_API_KEY"),_.Mg("LINK_API_KEY_REDIRECT"),k):m7t(S,_.Mg("LINK_API_KEY"));k.authUser=_.Mg("SESSION_INDEX")||0;k.supportedFlows=new Set([4]);return k.build()};
_.I.getPopupOrRedirectSetting=function(k,E,S,R){this.isGalInteractionPopupMode(R)?(k.interactionMode=0,k=m7t(k,E)):(k.interactionMode=1,E=this.getCompletionUrl(),k.completionUrl=E,k=m7t(k,S));return k};
_.I.isGalInteractionPopupMode=function(k){if(this.redirectModeProviderAllowlist.has(k))switch(k){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.I.getStatusEntityKeyForProviderId=function(k){return _.kn(k+":all","accountLinkStatusEntity")};
_.I.findNestedPropValue=function(k,E){var S=!1,R=null;JSON.stringify(k,function(V,N){S||V!==E||(S=!0,R=N);return S?null:N});
return R};
_.I.findAccountLinkButtonViewModel=function(k,E){var S=null,R=!1;JSON.stringify(k,function(V,N){R||N.accountLinkStatusEntityKey!==E||N.accountLinkStatusSecondaryEntityKey||(R=!0,S=N);return R?null:N});
return S};
_.I.executeLinkingSuccessOrFailureCommands=function(k,E,S){var R=null,V;(E==null?0:(V=E.url)==null?0:V.includes("account_sharing"))?R=E==null?void 0:E.response:R=E==null?void 0:E.response;(E=this.findAccountLinkButtonViewModel(R,k))?(k=S?this.findNestedPropValue(E,"onSuccessCommand"):this.findNestedPropValue(E,"onFailureCommand"))?_.kA([k],this.hostElement):_.kr(Error("xl")):_.kr(Error("yl`"+k))};
_.I.handleInitializeRequest=function(k,E){var S=this,R=jZP(this.createGalConfig(k,!0));this.containsRedirectState(this.getLocation())?AbT(k,R.config,R.galService).then(function(V){var N=S.getStatusEntityKeyForProviderId(k);if(V.statusCode===1)E&&S.executeLinkingSuccessOrFailureCommands(N,E,!0),V=S.getLocation().indexOf("#"),V!==-1&&window.history.pushState(null,"",S.getLocation().substring(0,V));else return E&&S.executeLinkingSuccessOrFailureCommands(N,E,!1),Promise.reject(Error(V.statusMessage))}).catch(function(V){_.dg(V);
_.f2("gamingAccountLinkStatusChanged",{serviceId:k,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(V)}):this.getAccountLinkPromises[k]=R.startLinkingSession({serviceId:k})};
_.I.handleAccountLinkCommand=function(k){_.W(k,c7U)&&this.handleLinkRequest(_.W(k,c7U))};
_.I.handleLinkRequest=function(k){var E=this,S=k.thirdPartyId;if(S)if(this.isGalInteractionPopupMode(S)){var R=function(){E.closeAndFire("ytd-gaming-account-link-setting-renderer",k.onFailureCommand)},V=function(){E.closeAndFire("ytd-gaming-account-link-setting-renderer",k.onSuccessCommand)};
this.lastCallback=V;this.getAccountLinkPromises[S].then(function(N){s0U(N).then(function(h){h.statusCode===1?V():R()})}).catch(function(){R()})}else this.getAccountLinkPromises[S].then(function(N){s0U(N).then(function(h){if(h.statusCode!==1)return Promise.reject(Error(h.statusMessage))})}).catch(function(N){_.dg(N);
_.f2("gamingAccountLinkStatusChanged",{serviceId:S,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(N)})};
_.I.closeAndFire=function(k,E){_.qe(this.hostElement,"yt-close-popup-action",[k]);E&&_.kA([E],this.hostElement)};
_.I.handleAccountUnlinkCommand=function(k){_.W(k,mZG)&&this.handleUnlinkRequest(_.W(k,mZG))};
_.I.handleUnlinkRequest=function(k){var E=this,S=k.thirdPartyId;if(S){var R=function(){E.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",k.onFailureCommand)},V=function(){E.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",k.onSuccessCommand)};
this.lastCallback=V;var N=jZP(this.createGalConfig(S,!1));this.unlinkUserGal(N,S).then(function(h){h.statusCode===1?V():R()}).catch(function(){R()})}};
_.I.unlinkUserGal=function(k,E){return k.deleteLink(E)};
_.I.handleLogAccountLinkingEventCommand=function(k){_.Y("enable_gel_log_commands")&&_.W(k,ekP)&&(k=_.W(k,ekP).event)&&_.f2("gamingAccountLinkStatusChanged",k)};
_.mt.Object.defineProperties(eV,{template:{configurable:!0,enumerable:!0,get:function(){return Obx()}}});
_.Z([_.g(_.gA.YtOpenPopupBehavior),_.l("design:type",Object)],eV.prototype,"ytOpenPopupBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],eV.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-third-party-manager"})],eV);_.b(eV,"ytd-third-party-manager",function(){return Obx()},{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var GOG,Cy0=function(){if(GOG!==void 0)return GOG;var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return GOG=k};var al=function(){var k=_.p.apply(this,arguments)||this;k.currentPage=void 0;k.renderLoadingStateJobId=0;k.updatePageDataJobId=0;k.pageDisposeJobsets=new WeakMap;k.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"};k.shouldApplyLockupToWatchTransition=_.Y("web_thumbnail_to_watch_transition");k.shouldApplySlideTransition=_.P_("web_page_transition_type")==="slide"||_.Y("enable_plj_landing_page");k.shouldApplyLearningJourneyTransition=_.Y("enable_plj_landing_page");k.TEST_ONLY=void 0;return k};
_.y(al,_.p);_.I=al.prototype;_.I.ready=function(){var k=_.en();k.addProvider({provide:_.ZD,useValue:this});k.addProvider({provide:_.lxP,useValue:this})};
_.I.created=function(){this.pagePool=new yuR;this.contextSwitcher=new Dtt};
_.I.attached=function(){_.Me(this.hostElement,"attached");var k=_.en().resolve(_.mz(_.yS));k&&(this.contextSwitcher.JSC$20071_networkService_=k);this.viewTransitionManager=_.en().resolve(_.Au)};
_.I.getPageOffset=function(k){return k.getScrollTop()};
_.I.setPageOffset=function(k,E){try{k.setScrollTop(E)}catch(S){}};
_.I.setPageOffsetForNavigation=function(k,E){_.Me(this.hostElement,"yt-navigate-set-page-offset",{page:k,offset:E===void 0?0:E})};
_.I.pauseActiveContext=function(){var k=this.contextSwitcher;k.activeContext_&&k.activeContext_.pause()};
_.I.getModuleNameForType=function(k){return k==="watch"?_.Y("kevlar_watch_fixie")?"watchFixie":_.Y("kevlar_watch_grid")?"watchGrid":"watchFlexy":k==="shorts"||k==="search"?k:"browse"};
_.I.attachPage=function(k){var E,S=!_.Y("pc_is_attached_ks")&&(k==null?void 0:(E=k.polymerController)==null?void 0:E.isAttached);if(!k.isAttached&&!S)try{_.Cc(this.hostElement).appendChild(k)}catch(V){var R;_.dg(new _.LC("Error attaching page element for component",{origin:(R=this.currentPage)==null?void 0:R.is,component:k.is}))}};
_.I.setActivePage=function(k,E){var S=this,R=!1,V=function(){var N=S.isOnWatch(),h=S.currentPage;if(k)if(k!==S.currentPage){h&&(h.hidden=!0,h.active=!1,h.removeAttribute("role"));S.currentPage=k;var J,m=E!=null?E:_.VS((J=S.data)==null?void 0:J.endpoint);h&&_.Me(S.hostElement,"yt-page-type-changed",{oldPageType:h.is,newPageType:k.is,newPageSubtype:m});_.vu().dispatch(_.zX({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:k.is}));_.vu().dispatch(_.zX({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:m||""}));
k.hidden=!1;S.attachPage(k);k.active=!0;k.setAttribute("role","main");h&&S.setPageOffsetForNavigation(k,0);_.Y("kevlar_remove_page_dom_on_switch")&&!N&&h&&_.Cc(S.hostElement).removeChild(h)}else R=!0;else S.handleMissingDestinationPage(h)};
this.shouldRunBrowseTransition(this.currentPage,k)?amU(this.viewTransitionManager,V):this.shouldRunLearningJourneyTransition(this.currentPage,k)?wY0(this.viewTransitionManager,V):V();return R};
_.I.handleMissingDestinationPage=function(k){if(this.isColdLoadForUnknownPage(k))_.dg(new _.LC("Cold load for unknown page"));else{var E;k=new _.LC("Unable to set active page",k?k.is:"unknown origin",(E=this.data)==null?void 0:E.endpoint);_.bM(k)}};
_.I.isColdLoadForUnknownPage=function(k){return!k&&le(this.data)==="unknown"};
_.I.shouldRunBrowseTransition=function(k,E){return this.shouldApplySlideTransition&&(k==null?void 0:k.is)==="ytd-browse"&&(E==null?void 0:E.is)==="ytd-browse"&&k!==E};
_.I.shouldRunLearningJourneyTransition=function(k,E){return this.shouldApplyLearningJourneyTransition&&(k==null?void 0:k.is)==="ytd-browse"&&((E==null?void 0:E.is)==="ytd-watch-learning-journey"||(E==null?void 0:E.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.I.shouldRunWatchNextLoadedTransition=function(k,E){return this.viewTransitionManager&&k.is==="ytd-watch-flexy"&&E};
_.I.updatePageData=function(k){var E=this,S=this.data;this.updatePageDataJobId&&_.ZJ.cancelJob(this.updatePageDataJobId);this.data=k;return new _.yF(function(R){var V=function(){k.filler?E.performDataUpdate(k,S):osR(function(){E.performDataUpdate(k,S)});
var m=_.O7();_.G7(m,"cr")||m.processSignal("cr");R()},N=function(){k&&k.page==="watch"?E.updatePageDataJobId=_.aE(_.ZJ,V):V()};
if(_.Y("kevlar_enable_mss_page_modules_client")&&k){var h=_.en().resolve(_.Xr),J=E.getModuleNameForType(k.page);(h=mwU(h,[J]))?h.then(N):N()}else N()})};
_.I.isDownloadsPage=function(k){var E,S;return(k==null?void 0:(E=k.endpoint)==null?void 0:(S=E.browseEndpoint)==null?void 0:S.browseId)==="FEdownloads"};
_.I.setPlayerSyncInterval=function(k){var E;return _.c(function(S){if(S.nextAddress==1)return S.yield(_.en().resolve(_.QQ),2);E=S.yieldResult;E.setUpPositionSyncInterval(k);_.KR(S)})};
_.I.performDataUpdate=function(k,E){_.Y("kevlar_early_popup_close")||_.qe(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var S=!k.filler;S&&(_.o_("lps"),_.Y("config_age_report_killswitch")||I0I());var R=le(k),V,N=!1;if(_.Y("kevlar_remove_page_dom_on_switch")){var h=E&&le(E);R===h&&(V=this.getCurrentPage())}V||(V=Rl(this.pagePool,R));S&&U4a(this.pagePool.elementPoolPopulator,R);S&&!this.renderLoadingStateJobId&&(N=this.setActivePage(V));if(V){h=R==="watch";var J=
R==="shorts",m=R==="learning_journey_watch";_.Y("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(V);if(h||J||m)V.playerData=k.playerResponse;if(J)if(_.Y("web_enable_delay_shorts_sequence_call")){k.reelWatchSequenceResponse&&(k.reelWatchSequenceResponse.entries||k.reelWatchSequenceResponse.prevEntries)&&(V.reelWatchSequenceResponse=k.reelWatchSequenceResponse);V.currentEndpoint=k.endpoint;var a;V.isPreviousPageShorts=!!(E==null?0:(a=E.endpoint)==null?0:a.reelWatchEndpoint);
var T,w;k.cachedSequenceParams=((T=k.endpoint)==null?void 0:(w=T.reelWatchEndpoint)==null?void 0:w.sequenceParams)||k.cachedSequenceParams||(E==null?void 0:E.cachedSequenceParams);var P,B;k.cachedSequenceProvider=((P=k.endpoint)==null?void 0:(B=P.reelWatchEndpoint)==null?void 0:B.sequenceProvider)||k.cachedSequenceProvider||(E==null?void 0:E.cachedSequenceProvider);V.cachedSequenceParams=k.cachedSequenceParams;V.cachedSequenceProvider=k.cachedSequenceProvider}else if(_.Y("web_enable_shorts_sequence_cache_fix")){k.reelWatchSequenceResponse&&
(k.reelWatchSequenceResponse.entries||k.reelWatchSequenceResponse.prevEntries)?V.reelWatchSequenceResponse=k.reelWatchSequenceResponse:V.cachedReelWatchSequenceResponse&&!V.reelWatchSequenceResponse&&(V.reelWatchSequenceResponse=V.cachedReelWatchSequenceResponse);k.reelWatchSequenceResponse&&(E==null?void 0:E.page)!=="shorts"&&(V.cachedReelWatchSequenceResponse=k.reelWatchSequenceResponse);V.currentEndpoint=k.endpoint;var F;V.isPreviousPageShorts=!!(E==null?0:(F=E.endpoint)==null?0:F.reelWatchEndpoint)}else{k.reelWatchSequenceResponse&&
(k.reelWatchSequenceResponse.entries||k.reelWatchSequenceResponse.prevEntries)?V.reelWatchSequenceResponse=k.reelWatchSequenceResponse:k.cachedReelWatchSequenceResponse?V.reelWatchSequenceResponse=k.cachedReelWatchSequenceResponse:_.Y("web_enable_cached_reel_sequence_fix")&&V.cachedReelWatchSequenceResponse&&!V.reelWatchSequenceResponse&&(V.reelWatchSequenceResponse=V.cachedReelWatchSequenceResponse);V.currentEndpoint=k.endpoint;var K;V.isPreviousPageShorts=!!(E==null?0:(K=E.endpoint)==null?0:K.reelWatchEndpoint);
k.cachedReelWatchSequenceResponse=k.reelWatchSequenceResponse||k.cachedReelWatchSequenceResponse||(E==null?void 0:E.cachedReelWatchSequenceResponse);V.cachedReelWatchSequenceResponse=k.cachedReelWatchSequenceResponse}a=this.isDownloadsPage(k);T=this.isDownloadsPage(E);a&&!T?this.setPlayerSyncInterval(6E5):!a&&T&&this.setPlayerSyncInterval();_.Y("block_all_player_prefetch_requests")||this.preparePrefetchRequest(k,V,S,h,J,m);Pd0(_.en().resolve(_.yb),E,k);if(_.Y("enable_ai_companion")){var r;(r=_.en().resolve(_.mz(_.b6)))==
null||_.EO3(r,this.getPersistentPanelSurface(R))}_.ef(_.en().resolve(_.eQ));_.Y("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(V);S?(S=typeof V.loadPage,S==="function"?(V.pageContext=$tY(this.contextSwitcher,V,V.data!==k.response),S=function(){V.loadPage(k.response)},this.shouldApplySlideTransition&&V.is==="ytd-browse"&&N&&(R==="learning"||this.isDifferentBrowseId(k==null?void 0:k.endpoint,E==null?void 0:E.endpoint))?amU(this.viewTransitionManager,S):this.shouldRunWatchNextLoadedTransition(V,
N)?T$G(this.viewTransitionManager,S):S()):_.Zd(new _.LC("b/38014653 ",[R,
V.is,V.nodeName,S,V.isAttached,E&&le(E),this.hostElement.children.length])),_.o_("pdl")):(V.hidden=!0,k.response.filler=!0,V.data=k.response,this.attachPage(V));_.Me(this.hostElement,"yt-page-data-updated",{pageType:R})}_.uM(_.ZJ,function(){_.Y("logging_avoid_blocking_during_navigation")&&_.gvj().transition("none");var x=kO2(),L=V;if(k){var q=zBP(k),M=Q3x(k),d;a:{if(k.playerResponse){var z=k.playerResponse,kb;if((d=z.auxiliaryUi)==null?0:(kb=d.messageRenderers)==null?0:kb.upsellDialogRenderer){d=
z.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(k.response&&(d=k.response,(z=d.overlay)==null?0:z.upsellDialogRenderer)){d=d.overlay.upsellDialogRenderer;break a}d=void 0}var TI;var a1;kb=(TI=k.playerResponse)==null?void 0:(a1=TI.auxiliaryUi)==null?void 0:a1.messageRenderers;TI=(kb==null?void 0:kb.enforcementMessageViewModel)||(kb==null?void 0:kb.bkaEnforcementMessageViewModel);TI=(TI==null?void 0:TI.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?TI:void 0;
var Ah;a:{if(k.response&&(a1=k.response,(Ah=a1.overlay)==null?0:Ah.commandWrapperPromoRenderer)){Ah=a1.overlay.commandWrapperPromoRenderer;break a}Ah=void 0}C9a(x,q,M,d,TI,Ah,L)}})};
_.I.preparePrefetchRequest=function(k,E,S,R,V,N){var h,J,m,a,T,w,P,B,F,K,r,x,L,q,M;return _.c(function(d){if(d.nextAddress==1)return!S||!(R||V||N)||_.Y("kevlar_disable_background_prefetch")&&_.Ga(_.xz1)()===0?d.return():(h=_.db(E))?d.yield(h.getPlayerPromise(),2):d.return();J=d.yieldResult;m=_.en().resolve(_.mz(_.yS));if(!m)return d.return();if(V)return a=_.$z(_.rj),x4P(a,(T=k.endpoint)==null?void 0:T.reelWatchEndpoint,E.reelWatchSequenceResponse,J,m),d.return();B=(w=k.response)==null?void 0:(P=w.responseContext)==
null?void 0:P.webResponseContextExtensionData;if(!B)return d.return();L=(F=k.response)==null?void 0:(K=F.contents)==null?void 0:(r=K.twoColumnWatchNextResults)==null?void 0:(x=r.autoplay)==null?void 0:x.autoplay;q=_.en().resolve(_.z7);M=_.$z(_.rj);LLW(M,B,J,m,q,L);_.KR(d)})};
_.I.movePlayerToWatch=function(k){var E=this,S,R;return _.c(function(V){S=Rl(E.pagePool,"watch");R=S.getPlayerContainer();k.appendTo(R);_.KR(V)})};
_.I.movePlayerToShorts=function(k){var E=this,S,R,V;return _.c(function(N){S=Rl(E.pagePool,"shorts");R=S.getPlayerContainer();(V=k)==null||V.appendTo(R,void 0,!0);_.KR(N)})};
_.I.getPlayerFromWatch=function(){var k=Rl(this.pagePool,"watch");return _.db(k)};
_.I.getPlayerFromShorts=function(){var k=Rl(this.pagePool,"shorts");return _.db(k)};
_.I.startLoadingWatch=function(){var k=this,E=Rl(this.pagePool,"watch");this.renderLoadingStateJobId?(_.ZJ.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.Y("web_watch_transition_enable_start_loading_watch_callsite")?tyW(this.viewTransitionManager,function(){k.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(E,"watch");
if(_.Y("enable_ai_companion")){var S;(S=_.en().resolve(_.mz(_.b6)))==null||_.EO3(S,this.getPersistentPanelSurface("watch"))}};
_.I.startLoadingShorts=function(){var k=Rl(this.pagePool,"shorts");this.setActivePage(k,"shorts")};
_.I.startLoadingLearningJourney=function(){var k=Rl(this.pagePool,"learning_journey_watch");this.setActivePage(k,"learning_journey_watch")};
_.I.getCurrentPage=function(){return this.currentPage};
_.I.getDestinationPageType=function(){return this.destinationPageType};
_.I.getCurrentData=function(){return this.data};
_.I.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.I.isOnShorts=function(){var k;return((k=this.currentPage)==null?void 0:k.is)==="ytd-shorts"};
_.I.isWatchPage=function(k){return!!k&&(k.is==="ytd-watch-flexy"||k.is==="ytd-watch-fixie"||k.is==="ytd-watch-grid")};
_.I.preparePage=function(k,E){var S=this,R=function(){var h=S.pagePool.preparePage(k,S.currentPage,E);h&&S.attachPage(h)},V=function(h){_.sc(h,E);
_.dg(h)};
if(_.Y("kevlar_enable_mss_page_modules_client")){var N=this.getModuleNameForType(k);if(N=mwU(_.en().resolve(_.Xr),[N])){N.then(R.bind(this)).catch(V.bind(this));return}}try{R()}catch(h){V(h)}};
_.I.lazyPrepareCriticalPages=function(k,E){k=_.VS(E)||k;_.Y("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(k).then(this.maybePrepareWatchPage.bind(this,k)):this.maybePrepareWatchPage(k)};
_.I.maybePrepareWatchPage=function(k){k==="watch"||k==="learning_journey_watch"&&_.Y("web_watch_learning_journey_disable_lazy_pages")||_.uM(_.ZJ,this.preparePage.bind(this,"watch"))};
_.I.downloadPageModules=function(k){k=this.getModuleNameForType(k);var E=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);E.delete(k);var S=_.en().resolve(_.Xr);S.JSC$18790_loadModules(k);return S.JSC$18790_loadModules.apply(S,_.$e(E))};
_.I.renderPageLoadingState=function(k,E){this.preparePage(k,E);var S=Rl(this.pagePool,k);S.loadingData&&(S.loadingData.endpoint=E);S.loading=!0;this.setActivePage(S,k);k!=="watch"&&k!=="learning_journey_watch"||_.Me(this.hostElement,"yt-guide-close")};
_.I.prepareForNavigation=function(k,E){var S=this;if(this.currentPage&&this.data){var R=_.VS(E)||k;this.destinationPageType=R;le(this.data)==R&&_.Me(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((k==="watch"||k==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.ZJ.cancelJob(this.renderLoadingStateJobId);_.en().resolve(_.yb).deactivate(E);_.kq(_.ZJ,function(){var N=S.viewTransitionManager,h=S.currentPage;
if(N.isLockupToWatchTransitionEnabled&&N.isLockupThumbnailRegistrationEnabled&&h)if(N.registeredLockupThumbnail)N.lockupThumbnailRegisteredFromWatchEndpoint&&_.dg(new _.LC("Lockup thumbnail already registered from watch endpoint."));else{a:{var J=_.W(E,_.jm);if(J==null?0:J.videoId){var m="yt-lockup-view-model ."+_.O_1(J.videoId)+" yt-thumbnail-view-model";h=h.querySelectorAll(m);if(h.length===1){J=h[0];break a}h.length>1?_.dg(new _.LC("Multiple LockupViewModel thumbnails found for videoId: "+J.videoId+
". Selector: "+m)):_.Y("web_thumbnail_to_watch_transition_debug")&&_.dg(new _.LC("No LockupViewModel thumbnail found for videoId: "+J.videoId+". Selector: "+m))}J=void 0}J&&(N.registeredLockupThumbnail=J,N.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.A3P(N,J))}});
var V=this.data;this.renderLoadingStateJobId=_.kq(_.ZJ,function(){tyW(S.viewTransitionManager,function(){if(S.data!=V){var N=Rl(S.pagePool,k);S.setActivePage(N)}else S.renderPageLoadingState(k,E);S.renderLoadingStateJobId=0})},150)}};
_.I.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var k=new _.my(1);this.currentPage.pageDisposeJobs.forEach(function(E){_.e6(k,E)});
this.pageDisposeJobsets.set(this.currentPage,k)}};
_.I.flushPageDisposeJobset=function(k){var E=this.pageDisposeJobsets.get(k);E&&(E.flushJobs(),this.pageDisposeJobsets.delete(k))};
_.I.onYtStopOldPlayer=function(k,E){E=E===void 0?!1:E;var S,R=_.B_("kevlar_new_stop_old_player_logic_pages");if(_.Y("kevlar_check_current_page_on_stop_old_player")&&(R.length===0||this.currentPage&&R.includes(this.currentPage.is)))if(this.data&&(S=le(this.data)),le(k)===S&&this.currentPage&&le(this.currentPage.data)!==S)var V=_.db(this.currentPage);else S=le(this.data),V=Rl(this.pagePool,S),V=_.db(V);else this.data&&(S=le(this.data),V=Rl(this.pagePool,S),V=_.db(V));if(V)if(k=le(k),R=Rl(this.pagePool,
k),R=_.db(R),V==R)E&&!_.Y("kevlar_disable_preemptive_player_reset")&&V.resetForNewPlayback();else if(E=S==="watch"&&k!=="watch",!E||k==="shorts"||_.fQ8()&&(!ETP(this.data)||_.Y("web_watch_disable_playlist_auto_miniplayer"))&&k!=="yts-products"&&k!="mini_app"&&k!="playables"&&k!="companion-canvas")S=_.en().resolve(_.yb),E&&S.isMiniplayerActive()&&S.pipController.getWindow()||V.stop()};
_.I.isDifferentBrowseId=function(k,E){k=_.W(k,_.Ny);E=_.W(E,_.Ny);return(k==null?void 0:k.browseId)!==(E==null?void 0:E.browseId)};
_.I.getPersistentPanelSurface=function(k){switch(k){case "watch":return"WATCH";default:return"APP"}};
_.mt.Object.defineProperties(al,{template:{configurable:!0,enumerable:!0,get:function(){return Cy0()}}});
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],al.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-page-manager"})],al);_.b(al,"ytd-page-manager",function(){return Cy0()},{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var kyI;var t4=function(){var k=_.p.apply(this,arguments)||this;k.useListItemStyles=_.Y("web_list_item_style_for_menu_items");k.systemIcons=_.Y("kevlar_system_icons");return k};
_.y(t4,_.p);_.I=t4.prototype;_.I.ready=function(){this.hostElement.addEventListener("tap",_.Ic(this,this.onEndpointTapExtra))};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.I.onFocus=function(){var k;(k=_.Cc(this.hostElement).querySelector("tp-yt-paper-item"))==null||k.focus()};
_.I.onEndpointTapExtra=function(k){_.Me(this.hostElement,"iron-activate");var E=this.data.navigationEndpoint;E&&_.W(E,_.Wgb)&&(k.stopPropagation(),_.Ot(this.hostElement,[E],this.hostElement))};
_.I.computeIcon=function(k){return k&&k.iconType?_.SF(k.iconType):""};
_.I.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.I.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.I.forceUpdateStylesOnLegacyBrowsers=function(){_.Y("kevlar_legacy_browsers")&&_.VO(this.hostElement)};
t4.prototype.forceUpdateStylesOnLegacyBrowsers=t4.prototype.forceUpdateStylesOnLegacyBrowsers;t4.prototype.onFocus=t4.prototype.onFocus;_.Z([_.g(_.Jy),_.l("design:type",Object)],t4.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.BkA.YtConditionalRendererBehavior),_.l("design:type",Object)],t4.prototype,"ytConditionalRendererBehavior",void 0);_.Z([_.g(_.UN.YtEndpointBehavior),_.l("design:type",Object)],t4.prototype,"ytEndpointBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],t4.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon(data.icon)",value:""}),_.l("design:type",String)],t4.prototype,"icon",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],t4.prototype,"useIcons",void 0);_.Z([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.l("design:type",Boolean)],t4.prototype,"hasSeparator",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],t4.prototype,"useListItemStyles",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],t4.prototype,"systemIcons",void 0);_.Z([_.nv("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t4.prototype,"onFocus",null);_.Z([_.il("useIcons","hasSeparator"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],t4.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.b(t4,"ytd-menu-navigation-item-renderer",function(){if(kyI===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);kyI=k}k=kyI;return k},{mode:1});var EGt;var SnP=_.DE(_.Vi("DOWNLOAD",{},"Download")),ROx=_.DE(_.Vi("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),Vaa=_.DE(_.Vi("RETRY",{},"Retry")),NIP=_.DE(_.Vi("PAUSE_DOWNLOADING",{},"Pause downloading")),Ipt=_.DE(_.Vi("RESUME_DOWNLOAD",{},"Resume download")),Tu=function(){var k=_.p.apply(this,arguments)||this;k.primaryText=SnP;k.primaryIconType="OFFLINE_DOWNLOAD";k.hasSecondaryContent=!1;k.hasSeparator=!1;k.transferState="TRANSFER_STATE_UNKNOWN";k.isVideoDeletedByUser=!1;k.isHidden=!1;k.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return k};
_.y(Tu,_.p);_.I=Tu.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.I.onFocus=function(){this.primaryEntry.focus()};
_.I.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.I.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.I.getRemoveAction=function(){return"ACTION_REMOVE"};
_.I.sendOfflineAction=function(k){var E=this.data.serviceEndpoint;if(E){var S=_.W(E,_.IE);S&&k&&(S.action=k);this.ytComponentBehavior.resolveCommand(E)}};
_.I.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=SnP,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=SnP;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=Vaa;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=ROx;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Ipt;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=ROx;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
NIP;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=ROx;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=ROx;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=SnP,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.I.showHideButton=function(){var k;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((k=this.playerStateEntity)==null?void 0:k.adsState)==="ADS_STATE_PLAYING"};
_.I.isSecondaryEntryHidden=function(k,E){return k?!0:!E};
_.I.computeHasSeparator=function(){var k;return!((k=this.data)==null||!k.hasSeparator)};
_.I.computePlayerStateEntityKey=function(k){return k};
Tu.prototype.showHideButton=Tu.prototype.showHideButton;Tu.prototype.onTransferStateChange=Tu.prototype.onTransferStateChange;Tu.prototype.onFocus=Tu.prototype.onFocus;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Tu.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Tu.prototype,"ytComponentBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Tu.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Tu.prototype,"primaryText",void 0);_.Z([_.H(),_.l("design:type",String)],Tu.prototype,"primaryIconType",void 0);_.Z([_.H(),_.l("design:type",String)],Tu.prototype,"primaryAction",void 0);_.Z([_.H(),_.l("design:type",Object)],Tu.prototype,"secondaryText",void 0);_.Z([_.H(),_.l("design:type",String)],Tu.prototype,"secondaryIconType",void 0);
_.Z([_.H(),_.l("design:type",String)],Tu.prototype,"secondaryAction",void 0);_.Z([_.H(),_.l("design:type",Object)],Tu.prototype,"hasSecondaryContent",void 0);_.Z([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.l("design:type",Object)],Tu.prototype,"hasSeparator",void 0);_.Z([_.H({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.l("design:type",String)],Tu.prototype,"playerStateEntityKey",void 0);
_.Z([_.H({selector:_.Ufe,selectorArgs:["playerStateEntityKey"]}),_.l("design:type",Object)],Tu.prototype,"playerStateEntity",void 0);_.Z([_.H({selector:_.Xf,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.l("design:type",String)],Tu.prototype,"transferState",void 0);_.Z([_.H({selector:_.QAh,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.l("design:type",Object)],Tu.prototype,"isVideoDeletedByUser",void 0);
_.Z([_.H(),_.l("design:type",Object)],Tu.prototype,"isHidden",void 0);_.Z([_.H({selector:_.ZGe,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.l("design:type",Object)],Tu.prototype,"offlineabilityState",void 0);_.Z([_.JO("#primary-entry"),_.l("design:type",Object)],Tu.prototype,"primaryEntry",void 0);_.Z([_.nv("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tu.prototype,"onFocus",null);
_.Z([_.ac("transferState","isVideoDeletedByUser"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tu.prototype,"onTransferStateChange",null);_.Z([_.ac("offlineabilityState","playerStateEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tu.prototype,"showHideButton",null);
_.b(Tu,"ytd-menu-service-item-download-renderer",function(){if(EGt===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);EGt=k}k=EGt;return k},{mode:1});var nGT;var w3=function(){var k=_.p.apply(this,arguments)||this;k.useIcons=!1;k.systemIcons=_.Y("kevlar_system_icons");k.useListItemStyles=_.Y("web_list_item_style_for_menu_items");return k};
_.y(w3,_.p);_.I=w3.prototype;_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.I.onFocus=function(){var k;(k=_.Cc(this.hostElement).querySelector("tp-yt-paper-item"))==null||k.focus()};
_.I.onTap=function(){_.zR(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var k=this.data.serviceEndpoint,E=this.data.command;if(k){var S,R=(S=this.data)==null?void 0:S.trackingParams;S=!!_.W(k,_.MMY);R&&S&&_.vo().dispatch(_.zX({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:R}}));this.ytComponentBehavior.resolveCommand(k)||_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}})}E&&(this.ytComponentBehavior.resolveCommand(E)||_.Ot(this.hostElement,
[E],this.hostElement))};
_.I.computeIcon=function(k){return k&&k.iconType?_.SF(k.iconType):""};
_.I.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.I.computeHasSeparator=function(){var k;return!((k=this.data)==null||!k.hasSeparator)};
_.I.forceUpdateStylesOnLegacyBrowsers=function(){_.Y("kevlar_legacy_browsers")&&_.VO(this.hostElement)};
_.I.computeIsSelected=function(){var k;return!((k=this.data)==null||!k.isSelected)};
w3.prototype.forceUpdateStylesOnLegacyBrowsers=w3.prototype.forceUpdateStylesOnLegacyBrowsers;w3.prototype.onTap=w3.prototype.onTap;w3.prototype.onFocus=w3.prototype.onFocus;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],w3.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.BkA.YtConditionalRendererBehavior),_.l("design:type",Object)],w3.prototype,"ytConditionalRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],w3.prototype,"data",void 0);_.Z([_.H({computed:"computeIcon(data.icon)",value:""}),_.l("design:type",String)],w3.prototype,"icon",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],w3.prototype,"useIcons",void 0);
_.Z([_.H({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.l("design:type",Boolean)],w3.prototype,"hasSeparator",void 0);_.Z([_.H({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.l("design:type",Boolean)],w3.prototype,"isSelected",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],w3.prototype,"systemIcons",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],w3.prototype,"useListItemStyles",void 0);
_.Z([_.nv("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w3.prototype,"onFocus",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],w3.prototype,"onTap",null);_.Z([_.il("useIcons","hasSeparator"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w3.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.b(w3,"ytd-menu-service-item-renderer",function(){if(nGT===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);nGT=k}k=nGT;return k},{mode:2});var iEt;var PJ=function(){return _.p.apply(this,arguments)||this};
_.y(PJ,_.p);_.I=PJ.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onDataChanged=function(){var k=this;_.JB(this,function(){k.postbox.openDialog();k.focus();_.Me(k.hostElement,"yt-refit")})};
_.I.focus=function(){this.postbox.focus()};
_.I.closePopup=function(){_.qe(this.hostElement,"yt-close-popup-action")};
_.I.onYtCommentboxDismiss=function(){this.closePopup()};
PJ.prototype.onYtCommentboxDismiss=PJ.prototype.onYtCommentboxDismiss;PJ.prototype.onDataChanged=PJ.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],PJ.prototype,"data",void 0);_.Z([_.H({value:function(){return _.Vi("SBOX_INAPPROPRIATE_CANCEL")}}),
_.l("design:type",String)],PJ.prototype,"closeButtonAriaLabel",void 0);_.Z([_.JO("#postbox"),_.l("design:type",Object)],PJ.prototype,"postbox",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PJ.prototype,"onDataChanged",null);_.Z([_.nv("yt-commentbox-dismiss"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],PJ.prototype,"onYtCommentboxDismiss",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],PJ);
_.b(PJ,"ytd-backstage-post-dialog-popup-renderer",function(){if(iEt!==void 0)return iEt;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return iEt=k},{mode:1});var hOP;var JnT=function(){return _.p.apply(this,arguments)||this};
_.y(JnT,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],JnT.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],JnT.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],JnT);
_.b(JnT,"ytd-sender-id-section-renderer",function(){if(hOP!==void 0)return hOP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return hOP=k},{mode:1});var cnW;var mD3;var eOU;var BJ=function(){return _.p.apply(this,arguments)||this};
_.y(BJ,_.p);BJ.prototype.closePopup=function(){_.qe(this.hostElement,"yt-close-popup-action")};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],BJ.prototype,"data",void 0);_.Z([_.U_({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],BJ);
_.b(BJ,"yt-community-post-section-renderer",function(){if(eOU===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;mD3===void 0&&(mD3=document.createElement("template"));var R=mD3;S.call(E,R.content.cloneNode(!0),k.content.firstChild);eOU=k}k=eOU;return k},{mode:2});var apa;var tat;var TI3;var wjY;var PjI;var BIP;var YnY=function(){return _.p.apply(this,arguments)||this};
_.y(YnY,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],YnY.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],YnY.prototype,"data",void 0);_.Z([_.U_({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],YnY);
_.b(YnY,"yt-share-start-time-with-context-renderer",function(){if(BIP===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;PjI===void 0&&(PjI=document.createElement("template"));var R=PjI;S.call(E,R.content.cloneNode(!0),k.content.firstChild);BIP=k}k=BIP;return k},{mode:2});var YR=function(){return _.p.apply(this,arguments)||this};
_.y(YR,_.p);YR.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],YR.prototype,"data",void 0);_.Z([_.U_({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],YR);
_.b(YR,"yt-share-panel-title-v15-renderer",function(){if(wjY===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;TI3===void 0&&(TI3=document.createElement("template"));var R=TI3;S.call(E,R.content.cloneNode(!0),k.content.firstChild);wjY=k}k=wjY;return k},{mode:2});var WJ=function(){return _.p.apply(this,arguments)||this};
_.y(WJ,_.p);WJ.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],WJ.prototype,"data",void 0);_.Z([_.U_({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],WJ);
_.b(WJ,"yt-share-panel-header-renderer",function(){if(tat===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;apa===void 0&&(apa=document.createElement("template"));var R=apa;S.call(E,R.content.cloneNode(!0),k.content.firstChild);tat=k}k=tat;return k},{mode:2});var W30;var F3G;var Fq=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-open-popup-action":"onOpen"};return k};
_.y(Fq,_.p);_.I=Fq.prototype;_.I.attached=function(){this.onOpen()};
_.I.updateTimeSecs=function(k){this.currentTimeSecs=k};
_.I.computeTimeString=function(k){k=k.toString();var E=Math.floor(Number(k)/3600),S=Math.floor(Number(k)%3600%60);return(E>0?E+":":"")+_.Gn(Math.floor(Number(k)%3600/60),E>0?2:1)+":"+_.Gn(S,2)};
_.I.computeTimeStringA11y=function(k){return _.uR1({seconds:k})};
_.I.getTimeParam=function(){return tH3(this.timeString)};
_.I.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var k={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},E;_.FE(_.JV(),(E=this.data)==null?void 0:E.trackingParams,k,7)};
_.I.onChangeStartAtTimestamp=function(){for(var k=this.startAtTimestamp.value.split(":"),E=0,S=1,R=k.length-1;R>=0;R--)E+=Number(k[R])*S,S*=60;this.updateTimeSecs(E);this.setTimestamp()};
_.I.onOpen=function(){var k=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var E=_.s3();E?E.getPlayerPromise().then(function(S){S=S.getCurrentTime();k.updateTimeSecs(S)}):$ia()&&this.updateTimeSecs($ia())};
_.I.setTimestamp=function(){var k=Math.floor(this.currentTimeSecs);_.qe(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!k,timestamp:k||""}])};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Fq.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Fq.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Fq.prototype,"data",void 0);_.Z([_.H({value:!1,notify:!0}),_.l("design:type",Boolean)],Fq.prototype,"isStartAtChecked",void 0);_.Z([_.H(),_.l("design:type",Number)],Fq.prototype,"currentTimeSecs",void 0);
_.Z([_.H({computed:"computeTimeString(currentTimeSecs)"}),_.l("design:type",String)],Fq.prototype,"timeString",void 0);_.Z([_.H({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.l("design:type",String)],Fq.prototype,"timeStringA11y",void 0);_.Z([_.JO("#start-at-timestamp"),_.l("design:type",Object)],Fq.prototype,"startAtTimestamp",void 0);_.Z([_.U_({is:"yt-start-at-renderer",disableElementRegistration:!0})],Fq);
_.b(Fq,"yt-start-at-renderer",function(){if(F3G===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;W30===void 0&&(W30=document.createElement("template"));var R=W30;S.call(E,R.content.cloneNode(!0),k.content.firstChild);F3G=k}k=F3G;return k},{mode:2});var ynU;var oGA;var Xja=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"]]),gGU=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"]]),UDW=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var HEP={};HEP.YtBindingExpressionsBehavior={identity:_.DR,msg:function(k,E){E=E===void 0?{}:E;return _.Vi(k,E,k)},
msgPlural:function(k,E){return _.Na(k,E)},
getMusicIconFromType:function(k){if(_.Y("music_web_enable_icon_wil"))k=_.SF(k);else if(gGU.has(k))k="yt-sys-icons:"+gGU.get(k);else{var E=Xja.get(k)||_.SF(k).split(":")[1];E=_.Ace(E);var S;k=((S=UDW.get(k))!=null?S:"yt-sys-icons:")+E}return k}};var K3I;var pj0;var AnP;var rnA=document.head,uvY=rnA.appendChild,xD0;if(AnP===void 0){var L3a=document.createElement("template");_.X(L3a,'\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>');AnP=L3a}xD0=AnP;uvY.call(rnA,xD0.content);var yu=function(){var k=_.p.apply(this,arguments)||this;k.screenLayer=7;return k};
_.y(yu,_.p);yu.prototype.getScreenLayer=function(){return this.screenLayer};
yu.prototype.onTap=function(k){k&&k.detail&&(k.detail.x||k.detail.y)&&_.Cc(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Qw(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(k=this.getScreenLayer(),_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:k}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.mt.Object.defineProperties(yu.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()}}});
yu.prototype.onTap=yu.prototype.onTap;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],yu.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],yu.prototype,"data",void 0);_.Z([_.U("data.title"),_.l("design:type",Object),_.l("design:paramtypes",[])],yu.prototype,"title",null);
_.Z([_.U("data.serviceName"),_.l("design:type",String),_.l("design:paramtypes",[])],yu.prototype,"icon",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],yu.prototype,"onTap",null);_.Z([_.U_({is:"yt-share-target-renderer",disableElementRegistration:!0})],yu);
_.b(yu,"yt-share-target-renderer",function(){if(pj0===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;K3I===void 0&&(K3I=document.createElement("template"));var R=K3I;S.call(E,R.content.cloneNode(!0),k.content.firstChild);pj0=k}k=pj0;return k},{mode:2});var j9t;var DD0;var ol=function(){var k=_.p.apply(this,arguments)||this;k.SHARE_TARGET_WIDTH=70;k.SHARE_TARGET_MARGIN_RIGHT=8;k.PAGE_SCROLL_SPEED=9;k.actionMap={"yt-share-panel-reset-action":"onReset_"};return k};
_.y(ol,_.p);_.I=ol.prototype;_.I.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.I.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Cc(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Cc(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.I.onReset_=function(){if(_.Cc(this.hostElement).querySelector("#list")){var k=_.Cc(this.hostElement).querySelector("#list");var E=_.Cc(this.hostElement).querySelector("#list");var S=E.offsetLeft,R=E.offsetParent;R||_.Phd(E)!="fixed"||(R=_.dT(E).documentElement);if(R){if(_.ze&&!_.OB(58)){var V=_.gyC(R);S+=V.left}else Number(_.blz)>=8&&!(Number(_.blz)>=9)&&(V=_.gyC(R),S-=V.left);E=_.oy8(R)?R.clientWidth-(S+E.offsetWidth):S}else E=S;jVx(k,E);this.updateScrollButtons_()}};
_.I.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.I.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.I.onScrollWheel_=function(k){k.stopPropagation();k.preventDefault();var E=L0R(_.Cc(this.hostElement).querySelector("#list"));k=Math.abs(k.deltaX)>Math.abs(k.deltaY)?k.deltaX:k.deltaY;jVx(_.Cc(this.hostElement).querySelector("#list"),E+k);this.updateScrollButtons_()};
_.I.smoothScrollByOnePage_=function(k){var E=_.Cc(this.hostElement).querySelector("#list"),S=(Math.floor(E.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,R=L0R(E),V=S*(k?1:-1),N=this.PAGE_SCROLL_SPEED,h=this.updateScrollButtons_.bind(this),J=0,m;(function T(){J+=N;m=J/S*2;jVx(E,R+V*(m<1?m*m:-m*m+4*m-2));J<S?window.requestAnimationFrame(T):h()})()};
_.I.updateScrollButtons_=function(){var k=L0R(_.Cc(this.hostElement).querySelector("#list")),E=_.Cc(this.hostElement).querySelector("#list").scrollWidth-_.Cc(this.hostElement).querySelector("#list").clientWidth;_.Cc(this.hostElement).querySelector("#scroll-button-back").hidden=k<=0;_.Cc(this.hostElement).querySelector("#scroll-button-forward").hidden=k>=E};
ol.prototype.onScrollWheel_=ol.prototype.onScrollWheel_;ol.prototype.onDataChanged_=ol.prototype.onDataChanged_;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ol.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(HEP.YtBindingExpressionsBehavior),_.l("design:type",Object)],ol.prototype,"ytBindingExpressionsBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ol.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ol.prototype,"onDataChanged_",null);_.Z([_.nv("wheel"),_.l("design:type",Function),_.l("design:paramtypes",[WheelEvent]),_.l("design:returntype")],ol.prototype,"onScrollWheel_",null);
_.Z([_.U_({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],ol);
_.b(ol,"yt-third-party-share-target-section-renderer",function(){if(DD0===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;j9t===void 0&&(j9t=document.createElement("template"));var R=j9t;S.call(E,R.content.cloneNode(!0),k.content.firstChild);DD0=k}k=DD0;return k},{mode:2});var Xq=function(){return _.p.apply(this,arguments)||this};
_.y(Xq,_.p);Xq.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"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Xq.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Xq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Xq.prototype,"data",void 0);_.Z([_.U_({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Xq);
_.b(Xq,"yt-third-party-network-section-renderer",function(){if(oGA===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;ynU===void 0&&(ynU=document.createElement("template"));var R=ynU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);oGA=k}k=oGA;return k},{mode:2});_.qi(_.f(function(k){return _.e("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.e("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.e(_.cp,{data:function(){return k.data().firstPartyItems}},{listItemViewModel:_.zy})))},"Wi"),"first-party-network-section-view-model",{props:{data:_.Nq}});var $Dx=(0,_.Qr3)(_.qS.share,{parentClickTrackingParamsSelector:function(k){return k.parentClickTrackingParams}});var fpR=_.ry(["data:image/svg+xml;charset=UTF-8;base64,",""]),g3=function(){var k=_.p.apply(this,arguments)||this;k.screenLayer=7;k.qrCodeEnabled=_.Y("web_enable_sharing_qr_code");k.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return k};
_.y(g3,_.p);_.I=g3.prototype;_.I.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"}}}};
_.I.attached=function(){this.JSC$20313_scroller&&(this.JSC$20313_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20313_scroller.attached&&typeof this.JSC$20313_scroller.attached==="function"&&this.JSC$20313_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.I.onDataChanged=function(){var k=this,E;(E=this.data)!=null&&E.contents&&(this.hostElement.setAttribute("links-only","true"),_.SN(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.JB(this,function(){_.Me(k.hostElement,"yt-refit");k.focusSharePanelHeader()}))};
_.I.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.I.handleSetTimestamp=function(k){var E=this.shortUrl();k.isSet&&(E=_.ju(E,"t",k.timestamp));this.maybeRenderQrCode(E)};
_.I.shortUrl=function(){var k,E=(k=this.data)==null?void 0:k.contents;if(E)for(k=0;k<E.length;k++){var S=void 0,R=void 0;if((S=E[k])==null?0:(R=S.thirdPartyNetworkSection)==null?0:R.copyLinkContainer){var V=R=S=void 0;return(V=_.W((S=E[k])==null?void 0:(R=S.thirdPartyNetworkSection)==null?void 0:R.copyLinkContainer,MEA))==null?void 0:V.shortUrl}}};
_.I.maybeRenderQrCode=function(k){var E=this,S,R,V,N,h,J,m,a,T;return _.c(function(w){if(w.nextAddress==1){S=_.Cc(E.hostElement).querySelector("#qr-code");if(!E.qrCodeEnabled||!k)return S&&(S.style.display="none"),w.return();R=_.dfb(_.en().resolve(_.Rv),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});V=document.createElement("div");return typeof R==="function"?(R(V),w.jumpTo(2)):w.yield(R,3)}w.nextAddress!=2&&(N=w.yieldResult,N(V));m=(h=V)==null?void 0:(J=h.firstChild)==null?void 0:J.firstChild;
a=document.createElement("img");T=_.iRe(fpR,btoa(m.outerHTML));a.onload=function(){var P={canvas:S,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:a},B=new EhY;nhI(B,k);i53(B,!1,hvU(B));var F=B.modules,K=Object.assign({},UF3,P);F=structuredClone(F);P=F.length;var r,x=(r=K.canvas)!=null?r:document.createElement("canvas");r=K.cellSize;B=K.logo;var L,q=(L=K.logoSize)!=null?L:Math.floor(P/4);P%2!==q%2&&q++;var M=K.logoPadding,d=K.backgroundColor;L=P*r;var z=
K.width,kb=0;z&&(kb=K.padding,kb=Math.ceil(kb*L/(z-kb*2)),x.style.width=z+"px",x.style.height=z+"px");x.width!==L+kb*2&&(x.width=L+kb*2);x.height!==L+kb*2&&(x.height=L+kb*2);L=x.getContext("2d");K.autoClear&&L.clearRect(0,0,x.width,x.height);L.fillStyle=d;L.beginPath();L.roundRect(0,0,x.width,x.height,K.borderRadius);L.fill();L.save();L.translate(kb,kb);if(B)for(x=Math.floor(P-q)/2-M,M=Math.floor(P+q)/2+M,d=x;d<M;d++)for(z=x;z<M;z++)F[d][z]=!1;for(x=0;x<P;x++)for(M=0;M<P;M++)(x<7&&M<7||x<7&&M>=P-
7||x>=P-7&&M<7)&&(F[x][M]=!1);var TI;x=(TI=K.markerColor)!=null?TI:K.color;c0G(L,0,0,r,x);c0G(L,r*(P-7),0,r,x);c0G(L,0,r*(P-7),r,x);switch(K.cellStyle){case 0:TI=F;F=TI.length;x=K.cellSize;L.beginPath();for(M=0;M<F;M++)for(d=0;d<F;d++)TI[M][d]&&L.rect(M*x,d*x,x,x);L.fillStyle=K.color;L.fill();break;case 1:TI=F;F=TI.length;x=K.cellSize;M=x*K.relativeCircleSize;L.fillStyle=K.color;L.beginPath();for(K=0;K<F;K++)for(d=0;d<F;d++)TI[K][d]&&(L.beginPath(),L.ellipse((K+.5)*x,(d+.5)*x,M/2,M/2,0,0,2*Math.PI),
L.fill());L.fill();break;case 2:TI=F;F=TI.length;x=K.cellSize;L.fillStyle=K.color;K=[[1,1],[-1,1],[-1,-1],[1,-1]];L.beginPath();for(M=0;M<F;M++)for(d=0;d<F;d++)if(TI[M][d])L.roundRect(M*x,d*x,x,x,x/2),M+1<F&&TI[M+1][d]&&L.rect(M*x+x/2,d*x,x,x),d+1<F&&TI[M][d+1]&&L.rect(M*x,d*x+x/2,x,x);else{z=M*x+x/2;kb=d*x+x/2;for(var a1=0;a1<4;a1++){var Ah=_.n(K[a1]),th=Ah.next().value;Ah=Ah.next().value;M+th>=0&&M+th<F&&d+Ah>=0&&d+Ah<F&&TI[M+th][d]&&TI[M][d+Ah]&&TI[M+th][d+Ah]&&(th=a1*Math.PI/2,Ah=x/2,L.moveTo(z+
Ah*Math.cos(th),kb+Ah*Math.sin(th)),L.arc(z,kb,x/2,th,th+Math.PI/2,!1),L.lineTo(z+Ah*(Math.cos(th)-Math.sin(th)),kb+Ah*(Math.cos(th)+Math.sin(th))),L.lineTo(z+Ah*Math.cos(th),kb+Ah*Math.sin(th)))}}L.fill()}B&&L.drawImage(B,(P-q)*r/2,(P-q)*r/2,q*r,q*r);L.restore();S.style.removeProperty("display")};
a.src=_.DF(T);_.KR(w)})};
_.I.hasCommunityPostRenderer=function(){var k,E,S,R;return!!((k=this.data)==null?0:(E=k.header)==null?0:(S=E.sharePanelHeaderRenderer)==null?0:(R=S.communityPost)==null?0:R.communityPostSectionRenderer)};
_.I.onTapClose=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.I.getScreenLayer=function(){return this.screenLayer};
_.I.logSharePanelPage=function(){if(!_.Y("enable_share_panel_navigation_logging_fix_on_web")){var k;if((k=this.data)!=null&&k.trackingParams){k=this.data.trackingParams;var E=this.parentClickTrackingParams;E=E?_.tV(E):void 0;var S=_.JV();_.Pq(S,21760,E,{layer:7,parentLayer:0});S.graftServerVe(k,void 0,7);_.vo().dispatch(_.zX({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
g3.prototype.onDataChanged=g3.prototype.onDataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],g3.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],g3.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],g3.prototype,"data",void 0);_.Z([_.H({value:_.Vi("SBOX_INAPPROPRIATE_CANCEL")}),_.l("design:type",String)],g3.prototype,"closeButtonAriaLabel",void 0);_.Z([_.JO("yt-share-panel-header-renderer"),_.l("design:type",HTMLElement)],g3.prototype,"header",void 0);_.Z([_.H({selector:$Dx.parentClickTrackingParamsSelector}),_.l("design:type",String)],g3.prototype,"parentClickTrackingParams",void 0);_.Z([_.H(),_.l("design:type",Object)],g3.prototype,"qrCodeEnabled",void 0);
_.Z([_.JO("#scroller"),_.l("design:type",Object)],g3.prototype,"JSC$20313_scroller",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g3.prototype,"onDataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],g3);
_.b(g3,"ytd-unified-share-panel-renderer",function(){if(cnW!==void 0)return cnW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return cnW=k},{mode:1});var vGI;var UP=function(){var k=_.p.apply(this,arguments)||this;k.modernModal=!0;return k};
_.y(UP,_.p);UP.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
UP.prototype.computeShouldHideOldButtons=function(){var k;return!((k=this.data)==null?0:k.button)};
_.mt.Object.defineProperties(UP.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var k,E;return(k=this.data)==null?void 0:(E=k.button)==null?void 0:E.buttonRenderer}}});
_.Z([_.H(),_.l("design:type",Object)],UP.prototype,"data",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],UP.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],UP.prototype,"modernModal",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],UP.prototype,"buttonRendererData",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],UP);
_.b(UP,"ytd-modal-with-title-and-button-renderer",function(){if(vGI!==void 0)return vGI;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vGI=k},{mode:1});var bEx;var HJ=function(){return _.p.apply(this,arguments)||this};
_.y(HJ,_.p);HJ.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("page-changed",this.page))};
HJ.prototype.pageChangedForBinding=HJ.prototype.pageChangedForBinding;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],HJ.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],HJ.prototype,"page",void 0);_.Z([_.il("page"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HJ.prototype,"pageChangedForBinding",null);
_.Z([_.D({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],HJ);
_.b(HJ,"ytd-account-item-section-header-renderer",function(){if(bEx!==void 0)return bEx;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return bEx=k},{mode:1});var ZEx;var Kq=function(){return _.p.apply(this,arguments)||this};
_.y(Kq,_.p);Kq.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"}}}};
Kq.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],Kq.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Kq.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!1}),_.l("design:type",Function)],Kq.prototype,"onAccountItemTap",void 0);
_.Z([_.D({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Kq);
_.b(Kq,"ytd-account-item-section-renderer",function(){if(ZEx!==void 0)return ZEx;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ZEx=k},{mode:1});var dDG;var s9t;var lpW=function(){return _.p.apply(this,arguments)||this};
_.y(lpW,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],lpW.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],lpW.prototype,"data",void 0);_.Z([_.D({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],lpW);
_.b(lpW,"ytd-accounts-dialog-header-renderer",function(){if(s9t!==void 0)return s9t;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return s9t=k},{mode:1});var MaA;var pq=function(){return _.p.apply(this,arguments)||this};
_.y(pq,_.p);pq.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],pq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],pq.prototype,"data",void 0);_.Z([_.D({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],pq);
_.b(pq,"ytd-google-account-header-renderer",function(){if(MaA!==void 0)return MaA;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return MaA=k},{mode:1});var A4=function(){return _.p.apply(this,arguments)||this};
_.y(A4,_.p);A4.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"}}}};
A4.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("page-changed",this.page))};
A4.prototype.pageChangedForBinding=A4.prototype.pageChangedForBinding;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],A4.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],A4.prototype,"page",void 0);
_.Z([_.il("page"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],A4.prototype,"pageChangedForBinding",null);_.Z([_.D({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],A4);
_.O_()(A4,"ytd-account-section-list-renderer",function(){if(dDG===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);dDG=k}k=dDG;return k},{allowedProps:["data"],
mode:1});var qnR;var r3=function(){var k=_.p.apply(this,arguments)||this;k.enableHandlesAccountMenuSwitcher=_.Y("enable_handles_account_menu_switcher");return k};
_.y(r3,_.p);r3.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
r3.prototype.dataChanged=r3.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],r3.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],r3.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.Z([_.JO("#avatar"),_.l("design:type",Object)],r3.prototype,"avatar",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],r3.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],r3);
_.O_()(r3,"ytd-active-account-header-renderer",function(){if(qnR===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);qnR=k}k=qnR;return k},{allowedProps:["data"],
mode:1});var zOA;var Q9G;var uQ=function(){return _.p.apply(this,arguments)||this};
_.y(uQ,_.p);uQ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
uQ.prototype.onBackTap=function(){_.Me(this.hostElement,"yt-menu-back-tapped")};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],uQ.prototype,"data",void 0);_.Z([_.D({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],uQ);
_.O_()(uQ,"ytd-simple-menu-header-renderer",function(){if(Q9G===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);Q9G=k}k=Q9G;return k},{allowedProps:["data"],
mode:2});var OEU;var GyP=function(){return _.p.apply(this,arguments)||this};
_.y(GyP,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],GyP.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],GyP.prototype,"data",void 0);_.Z([_.D({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],GyP);
_.b(GyP,"ytd-comment-video-thumbnail-header-renderer",function(){if(OEU!==void 0)return OEU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return OEU=k},{mode:1});var CjW;var kjY=function(){return _.p.apply(this,arguments)||this};
_.y(kjY,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],kjY.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],kjY.prototype,"data",void 0);_.Z([_.D({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],kjY);
_.b(kjY,"ytd-abuse-type-selector-renderer",function(){if(CjW!==void 0)return CjW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return CjW=k},{mode:1});var Ema;var SCI=(0,_.Qr3)(_.qS.reportChannelAbuse,{isVideoIdSelectedSelector:function(k,E){return E in k.selectedVideoIds},
additionalContextSelector:function(k){return k.additionalContext},
impersonatedChannelUrlSelector:function(k){return k.impersonatedChannelUrl},
reportChannelAbuseSelector:function(k){return k}});var xR=function(){return _.p.apply(this,arguments)||this};
_.y(xR,_.p);xR.prototype.attached=function(){var k=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){k.additionalContextInput.focusTextInput()})};
xR.prototype.handleAdditionalContextChanged=function(){var k=this;_.Lv(this,"ytd-report-channel-additional-context-update",function(){k.ytdReduxBehavior.dispatch(_.zX({type:"ADDITIONAL_CONTEXT_UPDATED",payload:k.additionalContext}))},300)};
xR.prototype.updateAdditionalContextFromBinding=function(k){this.additionalContext=k.detail.value};
xR.prototype.handleAdditionalContextChanged=xR.prototype.handleAdditionalContextChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],xR.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",String)],xR.prototype,"additionalContext",void 0);_.Z([_.H({selector:SCI.additionalContextSelector}),_.l("design:type",String)],xR.prototype,"additionalContextRedux",void 0);_.Z([_.H(),_.l("design:type",Object)],xR.prototype,"data",void 0);
_.Z([_.JO("yt-text-input-form-field-renderer"),_.l("design:type",Object)],xR.prototype,"additionalContextInput",void 0);_.Z([_.il("additionalContext"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],xR.prototype,"handleAdditionalContextChanged",null);_.Z([_.D({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],xR);
_.b(xR,"ytd-report-channel-modal-additional-context-renderer",function(){if(Ema!==void 0)return Ema;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Ema=k},{mode:1});var RoT;var Lq=function(){var k=_.p.apply(this,arguments)||this;k.nextButtonDisabled=null;k.submitEndpoint=null;k.navigationEndpoint=null;k.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return k};
_.y(Lq,_.p);_.I=Lq.prototype;_.I.computeNextButtonData=function(k,E,S){var R={};E&&(R.navigationEndpoint=E);S&&(R.serviceEndpoint=S);k&&k.buttonRenderer&&_.fO.extend(R,k.buttonRenderer);return R};
_.I.handleReportChannelModalDisableNextButtonAction=function(k){this.setNextButtonIsDisabled(k)};
_.I.handleReportFormEndpointUpdateAction=function(k){this.setNextButtonIsDisabled(!!k.disableSubmitButton);this.resetEndpointData();k.submitEndpoint?this.submitEndpoint=k.submitEndpoint:k.submitNavigationEndpoint&&(this.navigationEndpoint=k.submitNavigationEndpoint)};
_.I.handleSignalActionSubmitForm=function(){var k,E=Object.keys(((k=this.reportChannelAbuseForm)==null?void 0:k.selectedVideoIds)||{}),S;k=((S=this.reportChannelAbuseForm)==null?void 0:S.additionalContext)||"";var R;S=((R=this.reportChannelAbuseForm)==null?void 0:R.impersonatedChannelUrl)||"";var V;if((V=this.data)==null?0:V.submitEndpoint){E={impersonated_channel_url:S,text:k,video_ids:E};var N;_.en().resolve(_.t3).resolveCommand((N=this.data)==null?void 0:N.submitEndpoint,{form:Object.assign({},
E,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.I.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.I.onYtServiceRequestError=function(k){this.setNextButtonIsDisabled(!1);_.A0(this.hostElement,k.detail.error.message)};
_.I.setNextButtonIsDisabled=function(k){this.set("data.nextButton.buttonRenderer.isDisabled",k)};
_.I.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Lq.prototype.onYtServiceRequestError=Lq.prototype.onYtServiceRequestError;Lq.prototype.onYtServiceRequestCompleted=Lq.prototype.onYtServiceRequestCompleted;_.Z([_.H(),_.l("design:type",Object)],Lq.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Lq.prototype,"nextButtonDisabled",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Lq.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Lq.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Lq.prototype,"submitEndpoint",void 0);_.Z([_.H(),_.l("design:type",Object)],Lq.prototype,"navigationEndpoint",void 0);_.Z([_.H({selector:SCI.reportChannelAbuseSelector}),_.l("design:type",Object)],Lq.prototype,"reportChannelAbuseForm",void 0);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Lq.prototype,"onYtServiceRequestCompleted",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Lq.prototype,"onYtServiceRequestError",null);_.Z([_.D({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Lq);
_.b(Lq,"ytd-report-channel-modal-footer-renderer",function(){if(RoT!==void 0)return RoT;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return RoT=k},{mode:1});var VS3;var jV=function(){var k=_.p.apply(this,arguments)||this;k.boundOnTapDismissButton=function(){k.closePopup()};
return k};
_.y(jV,_.p);jV.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
jV.prototype.handleDataChanged=function(){_.VF(this.hostElement)};
jV.prototype.closePopup=function(){_.qe(this.hostElement,"yt-close-popup-action")};
jV.prototype.handleDataChanged=jV.prototype.handleDataChanged;_.Z([_.H(),_.l("design:type",Object)],jV.prototype,"boundOnTapDismissButton",void 0);_.Z([_.H(),_.l("design:type",Object)],jV.prototype,"data",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jV.prototype,"handleDataChanged",null);_.Z([_.D({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],jV);
_.b(jV,"ytd-report-channel-modal-header-renderer",function(){if(VS3!==void 0)return VS3;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return VS3=k},{mode:1});var N6A;var D3=function(){var k=_.p.apply(this,arguments)||this;k.autoValidate=!1;k.invalid=!1;k.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return k};
_.y(D3,_.p);_.I=D3.prototype;_.I.attached=function(){var k=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){k.channelUrlInput.focusTextInput()})};
_.I.disableNextButton=function(k){_.qe(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[k])};
_.I.handleImpersonatedChannelUrlChanged=function(){var k=this;this.disableNextButton(!0);this.invalid=!1;_.Lv(this,"ytd-report-channel-impersonated-channel-update",function(){var E=k.impersonatedChannelUrl.trim();k.ytdReduxBehavior.dispatch(_.zX({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:E}));var S;((S=k.data)==null?0:S.submitEndpoint)&&E&&_.en().resolve(_.t3).resolveCommand(k.data.submitEndpoint,{form:{impersonated_channel_url:E,element:k.hostElement}})},500)};
_.I.handleModifyReportFormCommand=function(k){this.invalid=this.get("modifyReportFormCommand.action",k)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.I.updateInvalidFromBinding=function(k){this.invalid=k.detail.value};
_.I.updateImpersonatedChannelUrlFromBinding=function(k){this.impersonatedChannelUrl=k.detail.value};
D3.prototype.handleImpersonatedChannelUrlChanged=D3.prototype.handleImpersonatedChannelUrlChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],D3.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],D3.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],D3.prototype,"autoValidate",void 0);_.Z([_.H(),_.l("design:type",Object)],D3.prototype,"invalid",void 0);
_.Z([_.H(),_.l("design:type",String)],D3.prototype,"impersonatedChannelUrl",void 0);_.Z([_.H({selector:SCI.impersonatedChannelUrlSelector}),_.l("design:type",String)],D3.prototype,"impersonatedChannelUrlRedux",void 0);_.Z([_.H(),_.l("design:type",Object)],D3.prototype,"data",void 0);_.Z([_.JO("#text-input"),_.l("design:type",Object)],D3.prototype,"channelUrlInput",void 0);
_.Z([_.il("impersonatedChannelUrl"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D3.prototype,"handleImpersonatedChannelUrlChanged",null);_.Z([_.D({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],D3);
_.b(D3,"ytd-report-channel-modal-impersonation-renderer",function(){if(N6A!==void 0)return N6A;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return N6A=k},{mode:1});var IbP;var nm3;var $R=function(){return _.p.apply(this,arguments)||this};
_.y($R,_.p);$R.prototype.onCheckboxToggled=function(k){var E,S,R=(S=_.W((E=this.data)==null?void 0:E.video,_.l3))==null?void 0:S.videoId;R&&this.ytdReduxBehavior.dispatch(k.target.checked?_.zX({type:"VIDEO_SELECTED",payload:R}):_.zX({type:"VIDEO_UNSELECTED",payload:R}))};
$R.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.mt.Object.defineProperties($R.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var k,E=(k=this.data)==null?void 0:k.video;if(!E)return{};var S;k=(S=_.W(E,_.l3))==null?void 0:S.navigationEndpoint;if(!k)return E;_.W(k==null?void 0:k.commandMetadata,_.Sd)&&(_.W(k.commandMetadata,_.Sd).ignoreNavigation=!0);return E}}});
_.Z([_.H({reflectToAttribute:!0,selector:SCI.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.l("design:type",Boolean)],$R.prototype,"checked",void 0);_.Z([_.H(),_.l("design:type",Object)],$R.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],$R.prototype,"video",null);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],$R.prototype,"ytdReduxBehavior",void 0);_.Z([_.D({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],$R);
_.b($R,"ytd-selectable-video-renderer",function(){if(nm3!==void 0)return nm3;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return nm3=k},{mode:1});var fq=function(){var k=_.p.apply(this,arguments)||this;k.monitorScroll=!0;return k};
_.y(fq,_.p);fq.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],fq.prototype,"data",void 0);_.Z([_.D({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],fq);
_.b(fq,"ytd-selectable-video-list-renderer",function(){if(IbP!==void 0)return IbP;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return IbP=k},{mode:1});var i4I;_.B9("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var vJ=function(){return _.p.apply(this,arguments)||this};
_.y(vJ,_.p);vJ.prototype.onChange=function(k){if(k=_.bv(k).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.Y("kevlar_command_handler_migration_killswitch"))_.Ot(this.hostElement,k,this.hostElement);else{k=_.n(k);for(var E=k.next();!E.done;E=k.next())this.ytComponentBehavior.resolveCommand(E.value)}};
vJ.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
vJ.prototype.updateDataToggledFromBinding=function(k){this.set("data.toggled",k.detail.value)};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],vJ.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],vJ.prototype,"data",void 0);_.Z([_.H({computed:"isEnabled(data)"}),_.l("design:type",Boolean)],vJ.prototype,"enabled",void 0);_.Z([_.D({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],vJ);
_.b(vJ,"ytd-toggle-item-renderer",function(){if(i4I!==void 0)return i4I;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return i4I=k},{mode:1});var hoG;var Jq0;var cqa;var bQ=function(){var k=_.p.apply(this,arguments)||this;k.setVisible=!1;k.boundOnSubmitButtonClick=function(){k.onSubmitButtonClick()};
k.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return k};
_.y(bQ,_.p);bQ.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}}}}}};
bQ.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
bQ.prototype.onSubmitButtonClick=function(){var k;((k=this.data)==null?0:k.submitEndpoint)&&!_.Y("enable_ytc_refunds_submit_form_signal_action")&&_.Qw(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
bQ.prototype.handleSignalActionSubmitForm=function(){var k;((k=this.data)==null?0:k.submitEndpoint)&&_.Qw(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.mt.Object.defineProperties(bQ.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.hiddenByDefault)&&!this.setVisible}}});
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],bQ.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bQ.prototype,"setVisible",void 0);_.Z([_.H(),_.l("design:type",Object)],bQ.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],bQ.prototype,"surveyFeedbackData",void 0);_.Z([_.H(),_.l("design:type",Object)],bQ.prototype,"boundOnSubmitButtonClick",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data","setVisible"),_.l("design:type",Object),_.l("design:paramtypes",[])],bQ.prototype,"visibilityHidden",null);_.Z([_.U_({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],bQ);
_.b(bQ,"yt-flow-footer-renderer",function(){if(cqa===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;Jq0===void 0&&(Jq0=document.createElement("template"));var R=Jq0;S.call(E,R.content.cloneNode(!0),k.content.firstChild);cqa=k}k=cqa;return k},{mode:2});var m_R=(0,_.Qr3)(_.qS.ypc,{surveyFeedbackDataSelector:function(k){return k.surveyFeedbackData}});var Z3=function(){return _.p.apply(this,arguments)||this};
_.y(Z3,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Z3.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Z3.prototype,"data",void 0);_.Z([_.H({selector:m_R.surveyFeedbackDataSelector}),_.l("design:type",Object)],Z3.prototype,"surveyFeedbackData",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],Z3);
_.b(Z3,"ytd-flow-footer-renderer",function(){if(hoG!==void 0)return hoG;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return hoG=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var eox;var abT;var d3=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return k};
_.y(d3,_.p);_.I=d3.prototype;_.I.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Yv("multiPageMenuSectionItems")}}};
_.I.handleHideEnclosingAction_=function(k){if(this.data&&this.data.items)for(var E=0;E<this.data.items.length;E++){var S=this.data.items[E].notificationRenderer;if(S&&S.notificationId==k.hideEnclosingAction.notificationId){this.splice("data.items",E,1);_.qe(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.I.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.SN(this.hostElement,"hidden",!0)};
_.I.updateMenu_=function(k){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&k&&!k.doNotRefreshInbox){k=this.data.continuations;for(var E=0;E<k.length;E++)if(k[E].invalidationContinuationData){var S=void 0;var R=(S=k[E].invalidationContinuationData)==null?void 0:S.continuation;break}k=_.fO.clone(this.data.continuationUpdateEndpoint||null);k.continuation=R;k.click_tracking_params=this.data.trackingParams;_.Qw(this.hostElement,[k])}};
_.I.onServiceRequestCompleted_=function(k,E){if(this.data&&(k=E.actions)){E=0;for(var S=k.length;E<S;E++){var R=_.W(k[E],_.PG4);if(!R)break;if((R.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||R.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&R.continuationItems&&this.data.items){var V=this.data.items.length-1;this.data.items[V].continuationItemRenderer&&(R=["data.items",V,1].concat(R.continuationItems),this.splice.apply(this,R))}}}};
d3.prototype.onServiceRequestCompleted_=d3.prototype.onServiceRequestCompleted_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],d3.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],d3.prototype,"data",void 0);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],d3.prototype,"onServiceRequestCompleted_",null);_.Z([_.U_({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],d3);
_.O_()(d3,"yt-multi-page-menu-section-renderer",function(){if(abT===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;eox===void 0&&(eox=document.createElement("template"));var R=eox;S.call(E,R.content.cloneNode(!0),k.content.firstChild);abT=k}k=abT;return k},{allowedProps:["data"],
mode:2});var tSW;var T6x;var sP=function(){return _.p.apply(this,arguments)||this};
_.y(sP,_.p);sP.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.mt.Object.defineProperties(sP.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.progress)==null?0:this.data.progress*100}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sP.prototype,"data",void 0);_.Z([_.U("data.progress"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],sP.prototype,"showProgressBar",null);
_.Z([_.U("data.progress"),_.l("design:type",Number),_.l("design:paramtypes",[])],sP.prototype,"progress",null);_.Z([_.U_({is:"yt-flow-header-renderer",disableElementRegistration:!0})],sP);
_.b(sP,"yt-flow-header-renderer",function(){if(T6x===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;tSW===void 0&&(tSW=document.createElement("template"));var R=tSW;S.call(E,R.content.cloneNode(!0),k.content.firstChild);T6x=k}k=T6x;return k},{mode:2});var w$G;var PNI;var lQ=function(){return _.p.apply(this,arguments)||this};
_.y(lQ,_.p);lQ.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],lQ.prototype,"data",void 0);_.Z([_.U_({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],lQ);
_.b(lQ,"yt-post-confirmation-flow-step-renderer",function(){if(PNI===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;w$G===void 0&&(w$G=document.createElement("template"));var R=w$G;S.call(E,R.content.cloneNode(!0),k.content.firstChild);PNI=k}k=PNI;return k},{mode:2});var B63;var YCA;var MP=function(){return _.p.apply(this,arguments)||this};
_.y(MP,_.p);
MP.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"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],MP.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],MP.prototype,"data",void 0);_.Z([_.U_({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],MP);
_.b(MP,"yt-refund-confirmation-flow-step-renderer",function(){if(YCA===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;B63===void 0&&(B63=document.createElement("template"));var R=B63;S.call(E,R.content.cloneNode(!0),k.content.firstChild);YCA=k}k=YCA;return k},{mode:2});var W_t=_.f(function(k){var E=k.data;return _.e("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.e("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.e(_.vM,{data:function(){return{thumbnails:[{url:E().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.e("div",{class:"profileBadgeViewModelContent"},_.e("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return E().badgeDesc}),_.e(_.t,{cond:function(){return E().badgeSubtitle},
then:function(){return _.e("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return E().badgeSubtitle})}})))},"Xi");
W_t.idomCompat=!0;var F_I=_.f(function(k){var E=k.data;return _.e("yt-comment-interaction-view-model",{el:_.Z0(_.FX(function(){return E().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.e("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return E().onTapA11yLabel},
"on:keydown":_.fub(),tabindex:0},_.e("div",{class:"ytCommentInteractionViewModelHeader"},_.e("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return E().headerPrefix},' "',function(){return E().videoTitle}),_.e("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.e("div",{class:"ytCommentInteractionViewModelContent"},_.e("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return E().commentContent}),_.e("div",{class:"ytCommentInteractionViewModelChevron"},
_.e(_.vM,{data:function(){return{thumbnails:[{url:E().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"Yi");
F_I.idomCompat=!0;var yqx=_.f(function(k){var E=k.data;return _.e("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.e(_.cp,{data:function(){return E().avatar}},{avatarViewModel:_.dw}),_.e("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return E().channelName}))},"Zi");
yqx.idomCompat=!0;var H4P=_.f(function(k){var E=k.data;k={};return _.e("yt-profile-info-view-model",{class:_.SQ("ytProfileInfoViewModelHost",(k.ytProfileInfoViewModelWithVideoShelf=function(){return E().videosHorizontalShelf},k))},_.e(omY,{profileInfo:E}),_.e(_.cp,{data:function(){return E().videosHorizontalShelf}},{horizontalShelfViewModel:function(S){return _.e("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.e(_.CE,{data:S.data}))}}),_.e(_.t,{cond:function(){return E().comments},
then:function(){return _.e(X$W,{profileInfo:E})}}),_.e(_.t,{cond:function(){return E().sharedSubscriptionsTitle},
then:function(){return _.e(_.t,{cond:function(){return E().subscriptionsAccessButtonCommand},
then:function(){return _.e(gmW,{profileInfo:E})},
else:function(){return _.e(U_a,{profileInfo:E})}})}}))},"$i");
H4P.idomCompat=!0;var X$W=_.f(function(k){var E=k.profileInfo;return _.e("div",{class:"ytProfileInfoViewModelActivity"},_.e("div",{class:"ytProfileInfoViewModelHeader"},_.e("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return E().commentsInteractionTitle})),_.e(_.cp,{data:function(){return E().comments}},{commentInteractionViewModel:function(S){return _.e("div",{class:"ytProfileInfoViewModelActivity"},_.e(F_I,{data:S.data}))}}))},"aj"),gmW=_.f(function(k){var E=k.profileInfo;
return _.e("div",{class:"ytProfileInfoViewModelSubSection"},_.e("div",{class:"ytProfileInfoViewModelSubHeader"},_.e(_.P5,{command:function(){return E().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.e("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return E().sharedSubscriptionsTitle}),_.e("div",null,_.e(_.cp,{data:function(){return E().subscriptionsAccessButton}},{buttonViewModel:_.yB})))),_.e(K_W,{sharedSubscriptions:function(){var S;
return((S=E().sharedSubscriptions)==null?void 0:S.slice(0,5))||[]}}))},"bj"),U_a=_.f(function(k){var E=k.profileInfo;
return _.e("div",{class:"ytProfileInfoViewModelSubSection"},_.e("div",{class:"ytProfileInfoViewModelSubHeader"},_.e("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return E().sharedSubscriptionsTitle})),_.e(K_W,{sharedSubscriptions:function(){var S;
return((S=E().sharedSubscriptions)==null?void 0:S.slice(0,5))||[]}}))},"cj"),K_W=_.f(function(k){return _.e("div",{class:"ytProfileInfoViewModelSubs"},_.e(_.cp,{data:k.sharedSubscriptions},{sharedSubscriptionViewModel:function(E){return _.e("div",{class:"ytProfileInfoViewModelSub"},_.e(yqx,{data:E.data}))}}))},"dj"),omY=_.f(function(k){var E=k.profileInfo;
return _.e("div",{class:"ytProfileInfoViewModelActivity"},_.e(_.jw,{each:function(){return[E().profileBadgeInfoYtWide,E().profileBadgeInfoChannelWide].filter(function(S){return!!S})},
keyBy:"INDEX"},function(S){return _.e(_.tj,null,_.e("div",{class:"ytProfileInfoViewModelHeader"},_.e("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return S().profileSectionTitle}),_.e("div",{class:"ytProfileInfoViewModelSectionDesc"},_.e("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var R;
return(R=S().commentBadge)==null?void 0:R.commentDesc}),_.e(_.t,{cond:function(){var R;
return(R=S().commentBadge)==null?void 0:R.blackHeartDesc},
then:function(){return _.e("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.e("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.e(_.vM,{data:function(){var R;
return{thumbnails:[{url:(R=S().commentBadge)==null?void 0:R.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.e("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var R;return(R=S().commentBadge)==null?void 0:R.blackHeartDesc}))),_.e("div",{class:"ytProfileInfoViewModelBadge"},_.e(_.jw,{each:function(){return S().badges||[]}},function(R){return _.e(W_t,{data:R})})))}))},"ej");var p$I=_.f(function(k){var E=k.data;var S=function(){return E().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.e("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.e(_.cp,{data:function(){return E().profileIdentityInfo}},{profileIdentityInfoViewModel:function(R){return _.e(_.Iv3,{data:R.data,
hideDivider:S,isChannelInfoCard:S})},
profileInfoViewModel:H4P}),_.e(_.cp,{data:function(){return E().profileInfo}},{profileIdentityInfoViewModel:_.Iv3,
profileInfoViewModel:H4P}))},"fj");
p$I.idomCompat=!0;_.qi(p$I,"yt-profile-card-view-model",{props:{data:_.Nq}});var qP=function(){var k=_.p.apply(this,arguments)||this;k.enableFocusFix=_.Y("music_web_enable_focus_on_setting_menu_fix")&&_.qg("IS_MOBILE_WEB",!1);k.covered=!1;k.hideMenu=!1;k.isCommentNotificationOnProfileCard=!1;k.scrolledByTouch=!1;k.disableBackdropFilter=_.Y("web_disable_backdrop_filter");k.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return k};
_.y(qP,_.p);_.I=qP.prototype;
_.I.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"}}}};
_.I.ready=function(){var k=this;this.JSC$20414_containerElement.addEventListener("scroll",function(){k.ytRendererBehavior.markDirty()})};
_.I.attributeChanged=function(k,E){k==="menu-style"&&_.qe(this.hostElement,"yt-multi-page-menu-closed-action",[E])};
_.I.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ic(this,this.focusOnStampFinished))};
_.I.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Ic(this,this.focusOnStampFinished))};
_.I.reset=function(){this.closeJobId&&(_.ZJ.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.I.focusOnStampFinished=function(k){k.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ic(this,this.focusOnStampFinished)),this.doFocus())};
_.I.doFocus=function(){var k=_.Y82(this.sectionsElement);k.length&&k[0].focus()};
_.I.computeMenuStyle=function(k){return k?k.toLowerCase().replace(/_/g,"-"):""};
_.I.computeIsCommentNotificationOnProfileCard=function(k){return _.Y("enable_profile_cards_on_comments")&&k.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.I.computeHideMenu=function(k,E){return k||!(!E||!E.showLoadingSpinner)};
_.I.onPopupClosed=function(){this.isPopUpOpen=!1;_.qe(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.I.onPopupOpened=function(k,E){this.isPopUpOpen=!0;E.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Me(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.zX({type:"CHANNEL_REPORT_RESET"})))};
_.I.onYtNavigate=function(k,E){this.shouldCloseOnNavigateEvent(E.endpoint)&&_.qe(this.hostElement,"yt-close-all-popups-action")};
_.I.handleEndpoint=function(k){k=_.W(k,_.fK);!this.isCommentNotificationOnProfileCard&&k&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20414_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.I.handleActions=function(k){for(var E=0,S=k.length;E<S;E++){var R=_.W(k[E],QxY);R&&this.handleGetMultiPageMenuAction(R);(R=_.W(k[E],_.PG4))&&this.handleAppendContinuationItemsAction(R)}};
_.I.onServiceRequestSentOrCompleted=function(k,E){k.detail&&k.detail.endpoint&&this.handleEndpoint(k.detail.endpoint);E.actions&&this.handleActions(E.actions)};
_.I.handleGetMultiPageMenuAction=function(k){var E=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Cc(this.submenuElement).appendChild(E);(k=k.menu.multiPageMenuRenderer)&&this.logSubmenu(k);E.data=k;E.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.I.handleAppendContinuationItemsAction=function(k){if(this.data&&k.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&k.continuationItems&&this.data.sections){var E=this.data.sections.length-1;this.data.sections[E].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),E--);if(this.data.sections[E].multiPageMenuNotificationSectionRenderer&&k.continuationItems){k=_.n(k==null?void 0:k.continuationItems);for(var S=k.next();!S.done;S=k.next())if(S=S.value,_.W(S,F1A)){var R=
void 0,V=void 0,N=void 0,h=void 0,J=void 0;((R=this)==null?0:(V=R.data)==null?0:(N=V.sections)==null?0:(h=N[E])==null?0:(J=h.multiPageMenuNotificationSectionRenderer)==null?0:J.items)&&this.push("data.sections."+E+".multiPageMenuNotificationSectionRenderer.items",S)}else if(_.W(S,_.iSC)||_.W(S,_.jj))this.push("data.sections",S),E++}}};
_.I.logSubmenu=function(k){if(!_.Y("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var E=this.ytRendererBehavior.getScreenLayer(),S=_.Fe(E),R=_.Wi(E);if((k=k.trackingParams)&&S&&R){var V=_.tV(k);_.Y("combine_ve_grafts")?_.JV().graftServerVe(k,R,E):_.rq(S,R,V)}}};
_.I.emptySubmenuContainer=function(){for(var k=_.Cc(this.submenuElement);k.firstChild;)k.removeChild(k.firstChild)};
_.I.onMenuBackTap=function(k){_.Me(this.hostElement,"yt-submenu-closed");k.stopPropagation()};
_.I.onSubmenuClosed=function(k){_.bv(k)!==this.hostElement&&(this.covered=!1,_.Me(this.hostElement,"yt-refit"),k.stopPropagation())};
_.I.onRetrieveLocation=function(k,E){E.hasComments&&(E.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),k.stopPropagation())};
_.I.shouldCloseOnNavigateEvent=function(k){if(!k)return!0;if(_.W(k,_.f2d)||_.W(k,_.vNj)||_.W(k,_.$5Y)||_.W(k,_.Oc))return!1;var E;return((E=_.W(k==null?void 0:k.commandMetadata,_.Sd))==null?0:E.ignoreNavigation)?!1:!0};
_.I.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.I.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.I.refitAfterRender=function(){var k=this;_.JB(this,function(){_.Me(k.hostElement,"yt-refit")})};
qP.prototype.refitAfterRender=qP.prototype.refitAfterRender;qP.prototype.onRetrieveLocation=qP.prototype.onRetrieveLocation;qP.prototype.onSubmenuClosed=qP.prototype.onSubmenuClosed;qP.prototype.onMenuBackTap=qP.prototype.onMenuBackTap;qP.prototype.onServiceRequestSentOrCompleted=qP.prototype.onServiceRequestSentOrCompleted;qP.prototype.onYtNavigate=qP.prototype.onYtNavigate;qP.prototype.onPopupOpened=qP.prototype.onPopupOpened;qP.prototype.onPopupClosed=qP.prototype.onPopupClosed;
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],qP.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],qP.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],qP.prototype,"enableFocusFix",void 0);_.Z([_.H(),_.l("design:type",Object)],qP.prototype,"covered",void 0);_.Z([_.H({computed:"computeHideMenu(covered, data)"}),_.l("design:type",Object)],qP.prototype,"hideMenu",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.l("design:type",String)],qP.prototype,"menuStyle",void 0);
_.Z([_.H({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.l("design:type",Object)],qP.prototype,"isCommentNotificationOnProfileCard",void 0);_.Z([_.H(),_.l("design:type",Boolean)],qP.prototype,"isPopUpOpen",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qP.prototype,"scrolledByTouch",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qP.prototype,"disableBackdropFilter",void 0);
_.Z([_.JO("#sections"),_.l("design:type",HTMLElement)],qP.prototype,"sectionsElement",void 0);_.Z([_.JO("#spinner"),_.l("design:type",HTMLElement)],qP.prototype,"spinnerElement",void 0);_.Z([_.JO("#header"),_.l("design:type",HTMLElement)],qP.prototype,"headerElement",void 0);_.Z([_.JO("#container"),_.l("design:type",HTMLElement)],qP.prototype,"JSC$20414_containerElement",void 0);_.Z([_.JO("#submenu"),_.l("design:type",HTMLElement)],qP.prototype,"submenuElement",void 0);
_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qP.prototype,"onPopupClosed",null);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],qP.prototype,"onPopupOpened",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],qP.prototype,"onYtNavigate",null);
_.Z([_.nv("yt-service-request-completed"),_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],qP.prototype,"onServiceRequestSentOrCompleted",null);_.Z([_.nv("yt-menu-back-tapped"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],qP.prototype,"onMenuBackTap",null);
_.Z([_.nv("yt-submenu-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],qP.prototype,"onSubmenuClosed",null);_.Z([_.nv("yt-retrieve-location"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],qP.prototype,"onRetrieveLocation",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qP.prototype,"refitAfterRender",null);
_.Z([_.D({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],qP);
_.b(qP,"ytd-multi-page-menu-renderer",function(){if(zOA!==void 0)return zOA;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return zOA=k},{mode:1});var Aqx;var zu=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return k};
_.y(zu,_.p);_.I=zu.prototype;_.I.created=function(){this.showTooltips=!0};
_.I.computeAccessibility_=function(k){return this.get("accessibility.accessibilityData",k)||null};
_.I.onTap=function(){var k=_.zR(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(k&&k.length===1&&k[0])_.qe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var E;if((E=this.data)==null?0:E.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var S;((S=this.data)==null?0:S.menuRequest)&&_.Qw(this.hostElement,[this.data.menuRequest])}}};
_.I.handleTopbarMenuClosedAction=function(k){var E,S;(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(k)===((E=this.data)==null?void 0:(S=E.icon)==null?void 0:S.iconType)&&this.toggleIconState(!1)};
_.I.toggleIconState=function(k){_.Y("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=k)};
_.I.handleUpdateTopbarAvatarAction=function(k){var E;k=(E=_.W(k,ZyT))==null?void 0:E.avatarUrl;var S,R;E=(S=this.data)==null?void 0:(R=S.avatar)==null?void 0:R.thumbnails;k&&E&&(S={thumbnails:[Object.assign({},E[0],{url:k})]},this.set("data.avatar",S))};
_.mt.Object.defineProperties(zu.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Cc(this.hostElement).querySelector("#button")}}});
zu.prototype.onTap=zu.prototype.onTap;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],zu.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zu.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],zu.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.yYC.YtButtonBehavior),_.l("design:type",Object)],zu.prototype,"ytButtonBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],zu.prototype,"data",void 0);
_.Z([_.JO("yt-icon-button#button"),_.l("design:type",Object)],zu.prototype,"iconButton",void 0);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zu.prototype,"onTap",null);_.Z([_.D({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],zu);
_.O_()(zu,"ytd-topbar-menu-button-renderer",function(){if(Aqx===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);Aqx=k}k=Aqx;return k},{allowedProps:["data"],
mode:1});var rq0;var Qu=function(){return _.p.apply(this,arguments)||this};
_.y(Qu,_.p);Qu.prototype.getSelected=function(){return this.reasons.selected};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Qu.prototype,"data",void 0);_.Z([_.JO("#reasons"),_.l("design:type",Object)],Qu.prototype,"reasons",void 0);_.Z([_.D({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Qu);
_.b(Qu,"ytd-ad-feedback-content",function(){if(rq0!==void 0)return rq0;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return rq0=k},{mode:1});var uJU;var OP=function(){return _.p.apply(this,arguments)||this};
_.y(OP,_.p);_.I=OP.prototype;_.I.onPopupOpened=function(){_.qe(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.I.computeConfirmButton=function(k){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:k.confirmLabel}};
_.I.computeCancelButton=function(k){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:k.cancelLabel}};
_.I.onConfirmTap=function(){var k=this.content.getSelected();k!==void 0&&(k=this.data.reasons[k].endpoint)&&(_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}}),_.qe(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.I.sendFeedbackSubmitToastAction=function(){var k;(k=this.data)!=null&&k.completionMessage&&(k=_.ZE(this.data.completionMessage),_.qe(this.hostElement,"yt-open-popup-action",[k,this]))};
_.I.onCancelTap=function(){_.qe(this.hostElement,"yt-close-popup-action")};
OP.prototype.onPopupOpened=OP.prototype.onPopupOpened;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],OP.prototype,"data",void 0);_.Z([_.JO("#content"),_.l("design:type",Object)],OP.prototype,"content",void 0);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],OP.prototype,"onPopupOpened",null);
_.Z([_.D({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],OP);
_.b(OP,"ytd-ad-feedback-renderer",function(){if(uJU!==void 0)return uJU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return uJU=k},{mode:1});var x_t;var L_2=function(){return _.p.apply(this,arguments)||this};
_.y(L_2,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],L_2.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],L_2.prototype,"data",void 0);_.Z([_.D({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],L_2);
_.b(L_2,"ytd-ad-info-dialog-content",function(){if(x_t!==void 0)return x_t;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return x_t=k},{mode:1});var jM3;var Gu=function(){return _.p.apply(this,arguments)||this};
_.y(Gu,_.p);Gu.prototype.computeConfirmButton=function(k){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:k.confirmLabel}};
Gu.prototype.onConfirmTap=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Gu.prototype.computeShouldShowTitle=function(){var k;return!((k=this.data)==null||!k.title)};
Gu.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.en().resolve(_.t3).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Gu.prototype.onPopupClosed=Gu.prototype.onPopupClosed;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Gu.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Gu.prototype,"data",void 0);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Gu.prototype,"onPopupClosed",null);_.Z([_.D({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Gu);
_.b(Gu,"ytd-ad-info-dialog-renderer",function(){if(jM3!==void 0)return jM3;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return jM3=k},{mode:1});var D_A;var Cq=function(){var k=_.p.apply(this,arguments)||this;k.actionButtonClass="action-button";k.dismissButtonId="dismiss-button";k.dialogDismiss=!0;return k};
_.y(Cq,_.p);_.I=Cq.prototype;_.I.computeInPlayer=function(k){return(k==null?void 0:k.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.I.computedLogo=function(){var k,E;return this.isDarkTheme()?(k=this.data)==null?void 0:k.logoDark:(E=this.data)==null?void 0:E.logo};
_.I.computedHeaderImage=function(){var k,E;return this.isDarkTheme()?(k=this.data)==null?void 0:k.headerImageDark:(E=this.data)==null?void 0:E.headerImage};
_.I.computeLogoIconId=function(){var k,E,S,R=(k=this.computedLogo())==null?void 0:(E=k.sources)==null?void 0:(S=E[0])==null?void 0:S.height;return R&&R%31===0?"logo-icon-with-padding":"logo-icon"};
_.I.computeLogoIconHeight=function(){var k,E,S,R=(k=this.computedLogo())==null?void 0:(E=k.sources)==null?void 0:(S=E[0])==null?void 0:S.height;return R&&R%31===0?"31":"24"};
_.I.onPopupClosed=function(){_.en().resolve(_.Ac).dispose()};
_.I.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.I.onShow=function(){this.inPlayer&&_.RR(6);this.titleElement.focus()};
_.I.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var k=0;k<this.data.impressionEndpoints.length;k++){var E=_.W(this.data.impressionEndpoints[k],_.gX);E&&this.ytComponentBehavior.resolveCommand(E)}};
_.I.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.qe(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.mt.Object.defineProperties(Cq.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var k,E;return!((k=this.data)==null||!k.headerImageDark)&&!((E=this.data)==null||!E.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.secondaryButton)}}});
Cq.prototype.onPopupClosed=Cq.prototype.onPopupClosed;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Cq.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.kB.YtVisibilityBehavior),_.l("design:type",Object)],Cq.prototype,"ytVisibilityBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Cq.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],Cq.prototype,"actionButtonClass",void 0);_.Z([_.H(),_.l("design:type",Object)],Cq.prototype,"dismissButtonId",void 0);_.Z([_.H(),_.l("design:type",Object)],Cq.prototype,"dialogDismiss",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Cq.prototype,"hasHeaderImage",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Cq.prototype,"hasPremiumButton",null);
_.Z([_.H({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.l("design:type",Boolean)],Cq.prototype,"inPlayer",void 0);_.Z([_.JO("#dismiss-button"),_.l("design:type",HTMLElement)],Cq.prototype,"dismissButton",void 0);_.Z([_.JO("#title"),_.l("design:type",HTMLElement)],Cq.prototype,"titleElement",void 0);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Cq.prototype,"onPopupClosed",null);
_.Z([_.D({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Cq);
_.b(Cq,"ytd-enforcement-message-view-model",function(){if(D_A!==void 0)return D_A;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return D_A=k},{mode:1});var $_Y;var fbA;var k5=function(){var k=_.p.apply(this,arguments)||this;k.TEST_ONLY={immediateValidation:function(){k.immediateValidation()},
onValidationResponse:function(E){k.onValidationResponse(E)},
onGenerateHandleFromNameResponse:function(E){k.onGenerateHandleFromNameResponse(E)}};
return k};
_.y(k5,_.p);_.I=k5.prototype;_.I.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.I.validate=function(){this.immediateValidation()};
_.I.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.I.setHandleInputValue=function(k){this.handleDir=this.getHandleDir(k);this.handleInput.value=k;this.validationState={status:"PENDING"};this.immediateValidation()};
_.I.getHandleDir=function(k){var E=k===""&&!1;return(E=_.xeY.test.call(_.xeY,k))?"rtl":"ltr"};
_.I.onDataChanged=function(){var k,E;this.handleDir=this.getHandleDir((E=(k=this.data)==null?void 0:k.handle)!=null?E:"");var S;this.validationState=((S=this.data)==null?0:S.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var R;((R=this.data)==null?0:R.validateOnInit)&&this.immediateValidation()};
_.I.stopPropagation=function(k){k.stopPropagation()};
_.I.onInput=function(){var k;this.handleDir=this.getHandleDir((k=this.handleInput.value)!=null?k:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.I.onFocusout=function(k){this.handleInput.contains(k.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.I.delayedValidation=function(){var k,E;this.debouncedValidation((E=(k=this.data)==null?void 0:k.validationDelayMs)!=null?E:1E3)};
_.I.immediateValidation=function(){this.debouncedValidation(0)};
_.I.debouncedValidation=function(k){var E=this;_.Lv(this,"debouncedValidation",function(){var S,R=E.staticValidation((S=E.handleInput.value)!=null?S:"");if(R!==void 0)E.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:R};else{var V;if((V=E.data)!=null&&V.validateChannelHandleCommand){E.validationState={status:"LOADING"};var N;E.ytComponentBehavior.resolveCommand(E.data.validateChannelHandleCommand,{form:{handle:(N=E.handleInput.value)!=null?N:""},commandController:{onSuccess:function(h,
J){E.onValidationResponse(J)},
onServerError:function(h,J){E.onValidationServerError(J)}}})}else E.handleUnexpectedValidationError(new _.LC("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",E.data))}},k)};
_.I.staticValidation=function(k){var E;if(((E=this.data)==null?void 0:E.channelHandleStaticValidationParams)!==void 0){E=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(k)&&E.validValueRegexpErrorMessage!==void 0)return E.validValueRegexpErrorMessage;if(E.minLength!==void 0&&k.length<E.minLength&&E.minLengthErrorMessage!==void 0)return E.minLengthErrorMessage;if(E.maxLength!==void 0&&k.length>E.maxLength&&E.maxLengthErrorMessage!==void 0)return E.maxLengthErrorMessage}};
_.I.onValidationResponse=function(k){var E=_.W(k.result,dYY);E===void 0?this.handleUnexpectedValidationError(new _.LC("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",k)):this.handleValidationResultRenderer(E)};
_.I.onValidationServerError=function(k){this.handleUnexpectedValidationError(new _.LC("ValidateChannelHandle request failed.",k))};
_.I.handleValidationResultRenderer=function(k){if(k.handle===void 0)this.handleUnexpectedValidationError(new _.LC("ChannelHandleValidationResultRenderer does not contain handle.",k));else if(k.handle===this.handleInput.value)switch(k.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:k.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:k.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.LC("Unrecognized ChannelHandleValidationResult",k));break;default:_.s5(k.result)}};
_.I.handleUnexpectedValidationError=function(k){var E;this.validationState={status:"UNKNOWN",handle:(E=this.handleInput.value)!=null?E:""};_.dg(k)};
_.I.stopEventPropagation=function(k){k.stopPropagation()};
_.I.updateHandleOnChannelNameInputChange=function(k){if(!this.wasEdited){var E,S;this.debouncedGenerateHandleFromName(k,(S=(E=this.data)==null?void 0:E.validationDelayMs)!=null?S:1E3)}};
_.I.debouncedGenerateHandleFromName=function(k,E){var S=this;_.Lv(this,"debouncedGenerateHandleFromName",function(){var R;(R=S.data)!=null&&R.validateChannelHandleCommand?S.ytComponentBehavior.resolveCommand(S.data.validateChannelHandleCommand,{form:{name:k},commandController:{onSuccess:function(V,N){S.onGenerateHandleFromNameResponse(N)},
onServerError:function(V,N){_.dg(new _.LC("Error calling GenerateHandleFromName",N))}}}):_.dg(new _.LC("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",S.data))},E)};
_.I.onGenerateHandleFromNameResponse=function(k){this.wasEdited||((k=_.W(k.result,sxU))?this.setHandleInputValue(k.handle):_.dg(new _.LC("Invalid results when generate handle from name")))};
_.mt.Object.defineProperties(k5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var k;if(k=this.validationState)k=this.validationState,k=k.status==="OK"||k.status==="UNKNOWN";if(k)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var k;if(((k=this.validationState)==null?void 0:k.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 k,E=(k=this.channelHandleEntity)==null?void 0:k.handleEdit;this.handleDir=this.getHandleDir(E!=null?E:"");return E}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var k,E;if(((k=this.data)==null?void 0:(E=k.channelHandleStaticValidationParams)==null?void 0:E.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
k5.prototype.stopEventPropagation=k5.prototype.stopEventPropagation;k5.prototype.onDataChanged=k5.prototype.onDataChanged;k5.prototype.applyHandleEdit=k5.prototype.applyHandleEdit;k5.prototype.onValueChanged=k5.prototype.onValueChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],k5.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],k5.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],k5.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],k5.prototype,"wasEdited",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],k5.prototype,"handleDir",void 0);_.Z([_.JO("#handle-input"),_.l("design:type",Object)],k5.prototype,"handleInput",void 0);_.Z([_.H(),_.U("validationState"),_.l("design:type",Object),_.l("design:paramtypes",[])],k5.prototype,"value",null);
_.Z([_.il("value"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k5.prototype,"onValueChanged",null);_.Z([_.U("validationState"),_.l("design:type",Object),_.l("design:paramtypes",[])],k5.prototype,"errorIndicator",null);_.Z([_.H({reflectToAttribute:!0}),_.U("errorIndicator"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],k5.prototype,"borderErrorIndicator",null);
_.Z([_.H({selectorArgs:["data.channelHandleEntityKey"],selector:function(k,E){return _.Ep(k.entities,"channelHandle",E)}}),
_.l("design:type",Object)],k5.prototype,"channelHandleEntity",void 0);_.Z([_.U("channelHandleEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],k5.prototype,"handleEdit",null);_.Z([_.il("handleEdit"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k5.prototype,"applyHandleEdit",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],k5.prototype,"onDataChanged",null);
_.Z([_.U("data.channelHandleStaticValidationParams.validValueRegexp"),_.l("design:type",Object),_.l("design:paramtypes",[])],k5.prototype,"validValueRegexp",null);_.Z([_.nv("yt-service-request-sent"),_.nv("yt-service-request-completed"),_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],k5.prototype,"stopEventPropagation",null);_.Z([_.D({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],k5);
_.b(k5,"ytd-channel-handle-input-renderer",function(){if(fbA!==void 0)return fbA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return fbA=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var ER=function(){var k=_.p.apply(this,arguments)||this;k.data=null;k.errorMessage=null;k.isLoading=!0;k.hideContainer=!1;k.enableNewChannelCreationOnIdForAll=_.Y("enable_new_channel_creation_for_id4all");k.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"};k.testOnly={setErrorMessage:function(E){k.resetErrorState();
k.setErrorState(E)}};
return k};
_.y(ER,_.p);_.I=ER.prototype;_.I.created=function(){this.logScreenVe()};
_.I.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")};
_.I.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var k;((k=this.zeroStepErrorMessageEntity)==null?0:k.value)&&this.set("errorMessage",_.DE(this.zeroStepErrorMessageEntity.value))};
_.I.onCreateTap=function(){var k=this;if(this.data&&this.data.channelCreationEndpoint){var E,S;if(!((E=this.data.createChannelButton)==null?0:(S=E.buttonRenderer)==null?0:S.isDisabled)){var R;if((R=this.nameInput)!=null&&R.value){this.setLoadingState();var V,N;E=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(V=this.handleInput)==null?void 0:V.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((N=this.handleInput)==null?void 0:N.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:E,commandController:{onSuccess:function(h,J){k.onChannelCreationEndpointSuccess(J);k.obakeImageSource&&_.f2("channelCreatedWithObakeImage",{imageSourceType:k.obakeImageSource})},
onServerError:function(){k.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.I.endpointRequiresServiceRequestAction=function(k){return!!_.W(k,_.Te)||!!_.W(k,ZyT)};
_.I.isNavigateAction=function(k){var E;return!!_.W(k,_.ya)||!!_.W((E=_.W(k,qV0))==null?void 0:E.command,_.ya)};
_.I.isPlaylistAction=function(k){return!!_.W(k,_.vF)||!!_.W(k,_.Mz)};
_.I.onChannelCreationEndpointSuccess=function(k){if(k.createChannelError){var E;this.setErrorState((E=k.createChannelError)==null?void 0:E.errorMessage);this.handleInput&&this.handleInput.validate()}else{k.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(k.navigationEndpoint);if(k.actions){E=_.n(k.actions);for(var S=E.next();!S.done;S=E.next())if(S=S.value,this.endpointRequiresServiceRequestAction(S)&&this.ytComponentBehavior.resolveCommand(S),this.isNavigateAction(S)){var R=void 0;S=_.W((R=
_.W(S,qV0))==null?void 0:R.command,_.ya);R=void 0;this.isPlaylistAction((R=S)==null?void 0:R.endpoint)&&(_.qe(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),R=void 0,this.ytComponentBehavior.resolveCommand((R=S)==null?void 0:R.endpoint))}}k.actions&&k.actions.some(function(V){var N;return _.W(V,_.ya)||_.W((N=_.W(V,qV0))==null?void 0:N.command,_.ya)})||_.qe(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.I.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.I.onCancelTap=function(){var k,E,S;if(!((k=this.data)==null?0:(E=k.cancelButton)==null?0:(S=E.buttonRenderer)==null?0:S.isDisabled)){var R,V,N;k=(R=this.data)==null?void 0:(V=R.cancelButton)==null?void 0:(N=V.buttonRenderer)==null?void 0:N.command;if(!k||!_.W(k,_.USm)){var h;this.nameInput&&((h=this.data)==null?0:h.name)&&(this.nameInput.value=this.data.name);var J;this.handleInput&&((J=this.data)==null?0:J.channelHandleInput)&&(this.handleInput.data=_.W(this.data.channelHandleInput,loP));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.I.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.I.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.I.onClearProfilePhotoTap=function(){var k,E,S;((k=this.data)==null?0:(E=k.clearProfilePhotoButton)==null?0:(S=E.buttonRenderer)==null?0:S.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.I.onEditAvatarTap=function(){var k,E,S;((k=this.data)==null?0:(E=k.editAvatarButton)==null?0:(S=E.buttonRenderer)==null?0:S.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.I.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)};
_.I.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var k;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((k=this.data)==null?0:k.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.I.setErrorState=function(k){this.resetErrorState();if(k)this.set("errorMessage",k);else{var E;if((E=this.zeroStepErrorMessageEntity)==null?0:E.value)this.set("errorMessage",_.DE(this.zeroStepErrorMessageEntity.value));else{var S;((S=this.data)==null?0:S.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.I.fetchImageBlobWithAlr=function(k,E){E=E===void 0?5:E;var S=this,R,V,N,h,J;return _.c(function(m){switch(m.nextAddress){case 1:return m.yield(fetch(k,{method:"GET",mode:"cors"}),2);case 2:R=m.yieldResult;if(R.ok){m.jumpTo(3);break}if(E===0)throw Error();V=S.addJitter(Math.pow(2,5-E));return m.yield(new Promise(function(a){setTimeout(a,V*1E3)}),4);
case 4:return m.return(S.fetchImageBlobWithAlr(k,E-1));case 3:if(!R.headers.get("content-type").split(";").some(function(a){return a.trim()==="text/plain"})){m.jumpTo(5);
break}N=S;h=N.fetchImageBlobWithAlr;return m.yield(R.text(),6);case 6:return m.return(h.call(N,m.yieldResult,E-1));case 5:return m.yield(R.blob(),7);case 7:return J=m.yieldResult,m.return(J)}})};
_.I.addJitter=function(k){var E=k*.3*Math.random();Math.random()>.5&&(E*=-1);return k+E};
_.I.openProfilePicturePicker=function(){var k=this,E,S,R,V,N,h;return _.c(function(J){if(J.nextAddress==1){E=k.data.scottyUploadUrl;if(!E)return J.return();S=document.documentElement.hasAttribute("dark");R=document.body.style.colorScheme;S&&(document.body.style.colorScheme="dark");V=Dzx($zW(jJ0(KWI(S?"dark":"light")),function(m){var a,T,w,P,B;return _.c(function(F){if(F.nextAddress==1)return a=_.ju(S7P(new aU(m.photoUrl,!1)).build(),"alr","yes"),k.obakeImageSource=k.pictureChangeSourceToObakeImageSourceType(m.photoSource),
_.F5(F,2),k.setLoadingState(),F.yield(k.fetchImageBlobWithAlr(a),4);if(F.nextAddress!=2)return T=F.yieldResult,w=new FileReader,w.addEventListener("load",function(){var K,r,x,L,q,M;return _.c(function(d){if(d.nextAddress==1){if(T.size>15728640)return k.setErrorState((K=k.data)==null?void 0:K.imageSizeErrorMessage),_.dg(Error("Cl")),d.return();if(!w.result)return k.setErrorState((r=k.data)==null?void 0:r.genericImageLoadErrorMessage),_.dg(Error("Dl")),d.return();x=w.result;_.F5(d,2);return d.yield(TyA(T,
E),4)}if(d.nextAddress!=2)return L=d.yieldResult,k.handleImageUpdatedAction(x,L),k.resetErrorState(),_.Sv(d,0);q=_.UY(d);k.setErrorState((M=k.data)==null?void 0:M.uploadErrorMessage);if(q instanceof Error)_.bM(q);else{var z=new _.LC(JSON.stringify(q));_.bM(z)}_.KR(d)})}),w.readAsDataURL(T),_.Sv(F,0);
P=_.UY(F);k.setErrorState((B=k.data)==null?void 0:B.genericImageLoadErrorMessage);P instanceof Error?_.bM(P):_.Zd(new _.LC(JSON.stringify(P)));_.KR(F)})}),function(){k.hideContainer=!1;
document.body.style.colorScheme=R});
_.F5(J,2);return((N=k.data)==null?0:N.shouldViewChannelCreationFormForSupex)?J.yield(V.openPicker("profile-picture/art-selection"),5):J.yield(V.openPicker(),5)}if(J.nextAddress!=2)return _.Sv(J,0);_.UY(J);k.setErrorState((h=k.data)==null?void 0:h.selectImageErrorMessage);_.KR(J)})};
_.I.pictureChangeSourceToObakeImageSourceType=function(k){switch(k){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.I.logScreenVe=function(){_.Pq(_.JV(),124448)};
_.I.graftServerVe=function(){var k=_.Wi(),E,S,R=(E=this.data)==null?void 0:(S=E.loggingDirectives)==null?void 0:S.trackingParams;R&&k&&(this.channelCreationFormVe=_.JV().graftServerVe(R,k),k={visualElement:this.channelCreationFormVe},_.iY().reportShown(k))};
_.I.isNameChanged=function(k){var E;return((E=this.data)==null?void 0:E.name)!==k};
_.I.isHandleChanged=function(k){var E,S=_.W((E=this.data)==null?void 0:E.channelHandleInput,loP);return S&&k?S.handle!==k:!1};
_.I.handleImageUpdatedAction=function(k,E){this.hideContainer=!1;this.previewDataUrl=k;this.encryptedBlobId=E};
_.I.handleImageSelectionErrorAction=function(k){this.hideContainer=!1;this.setErrorState(k)};
_.I.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.I.showContainer=function(){this.hideContainer=!1};
_.I.maybeWipeZeroStepErrorMessage=function(){var k,E=(k=this.data)==null?void 0:k.zeroStepErrorMessageEntityKey,S;E&&((S=this.zeroStepErrorMessageEntity)==null?0:S.value)&&this.ytdReduxBehavior.dispatch(_.mj("stringEntity",E,{key:E,value:""}))};
_.mt.Object.defineProperties(ER.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 k;return((k=this.photoThumbnail)==null?0:k.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 k;return!((k=this.data)==null||!k.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.descriptionInfo}}});
ER.prototype.dataChanged=ER.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ER.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ER.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],ER.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ER.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],ER.prototype,"errorMessage",void 0);
_.Z([_.H(),_.l("design:type",Object)],ER.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",String)],ER.prototype,"previewDataUrl",void 0);_.Z([_.H(),_.l("design:type",Number)],ER.prototype,"obakeImageSource",void 0);_.Z([_.H(),_.l("design:type",Object)],ER.prototype,"hideContainer",void 0);_.Z([_.JO("#title-input"),_.l("design:type",Object)],ER.prototype,"nameInput",void 0);_.Z([_.JO("#handle-input"),_.l("design:type",Object)],ER.prototype,"handleInput",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],ER.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.Z([_.H({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.JWA}),_.l("design:type",Object)],ER.prototype,"zeroStepErrorMessageEntity",void 0);_.Z([_.U("data","data.isDefaultProfilePhoto","previewDataUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],ER.prototype,"photoThumbnail",null);
_.Z([_.U("data","data.isDefaultProfilePhoto","photoThumbnail"),_.l("design:type",Object),_.l("design:paramtypes",[])],ER.prototype,"userSetPhotoThumbnailUrl",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ER.prototype,"hideProfilePhotoButtonLayer",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],ER.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.Z([_.ac("data","zeroStepErrorMessageEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ER.prototype,"dataChanged",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.descriptionInfo","zeroStepErrorMessageEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],ER.prototype,"description",null);_.Z([_.D({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],ER);
_.b(ER,"ytd-channel-creation-dialog-renderer",function(){if($_Y!==void 0)return $_Y;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return $_Y=k},{mode:1});var vmR;var SP=function(){var k=_.p.apply(this,arguments)||this;k.isLoading=!1;k.isDisabled=!1;return k};
_.y(SP,_.p);SP.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
SP.prototype.updateDisabled=function(){var k;this.isDisabled=this.isLoading||((k=this.handleInput)==null?void 0:k.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
SP.prototype.onSaveClick=function(){var k=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var E;((E=this.data)==null?void 0:E.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 S;if((S=k.data)==null?0:S.nextEndpoint){var R;k.ytComponentBehavior.resolveCommand((R=k.data)==null?void 0:R.nextEndpoint)}else k.isLoading=
!1,k.closeDialog()},
onServerError:function(){k.isLoading=!1;k.handleInput.validate();var S;k.errorMessage=(S=k.data)==null?void 0:S.errorMessage}}}))}};
SP.prototype.closeDialog=function(){_.qe(this.hostElement,"yt-close-popup-action",[this.is])};
SP.prototype.updateDisabled=SP.prototype.updateDisabled;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],SP.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],SP.prototype,"data",void 0);_.Z([_.JO("#handle-input"),_.l("design:type",Object)],SP.prototype,"handleInput",void 0);_.Z([_.il("isLoading"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],SP.prototype,"updateDisabled",null);
_.Z([_.D({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],SP);
_.b(SP,"ytd-channel-handle-edit-dialog-renderer",function(){if(vmR!==void 0)return vmR;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vmR=k},{mode:1});var b4P;var RB=function(){return _.p.apply(this,arguments)||this};
_.y(RB,_.p);RB.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],RB.prototype,"data",void 0);_.Z([_.D({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],RB);
_.b(RB,"ytd-channel-switcher-footer-renderer",function(){if(b4P!==void 0)return b4P;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return b4P=k},{mode:1});var Z4a;var d_Y;var VG=function(){return _.p.apply(this,arguments)||this};
_.y(VG,_.p);VG.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
VG.prototype.onIronChange=VG.prototype.onIronChange;_.Z([_.H(),_.l("design:type",Object)],VG.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!1}),_.l("design:type",Function)],VG.prototype,"onDontAskAgainChanged",void 0);_.Z([_.JO("#checkbox"),_.l("design:type",Object)],VG.prototype,"checkbox",void 0);_.Z([_.nv("iron-change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],VG.prototype,"onIronChange",null);
_.Z([_.D({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],VG);
_.b(VG,"ytd-identity-prompt-footer-renderer",function(){if(d_Y!==void 0)return d_Y;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return d_Y=k},{mode:1});var NL=function(){var k=_.p.apply(this,arguments)||this;k.dontAskAgain=!1;k.showPopup=!1;k.boundDontAskAgainChanged=function(E){k.dontAskAgainChanged(E)};
k.boundOnAccountItemTap=function(E){k.onAccountItemTap(E)};
return k};
_.y(NL,_.p);_.I=NL.prototype;
_.I.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]]"}}}}}};
_.I.ready=function(){var k=this;_.Cc(this.hostElement).querySelector("#container").addEventListener("scroll",function(){k.ytRendererBehavior.markDirty()})};
_.I.dontAskAgainChanged=function(k){this.dontAskAgain=k};
_.I.onAccountItemTap=function(k){if(k){var E={};this.dontAskAgain&&(E={dont_ask_again:this.dontAskAgain});_.xl(k,E)}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.I.redirectOnlyAccount=function(k){k.sections&&k.sections.length>0&&(k=_.W(k.sections[0],_.NSA),(k==null?0:k.contents)&&(k==null?void 0:k.contents.length)<=1?(k=_.Vf(window.location.href),(k==null?0:k.next)&&_.Mm1(k.next)?_.xl(k.next):_.xl("/")):this.showPopup=!0)};
NL.prototype.dataChanged=NL.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],NL.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!1}),_.l("design:type",Object)],NL.prototype,"dontAskAgain",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],NL.prototype,"showPopup",void 0);_.Z([_.H({reflectToAttribute:!1}),_.l("design:type",Object)],NL.prototype,"boundDontAskAgainChanged",void 0);_.Z([_.H({reflectToAttribute:!1}),_.l("design:type",Object)],NL.prototype,"boundOnAccountItemTap",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],NL.prototype,"dataChanged",null);
_.Z([_.D({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],NL);
_.b(NL,"ytd-channel-switcher-renderer",function(){if(Z4a!==void 0)return Z4a;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Z4a=k},{mode:1});var sMW;var IB=function(){return _.p.apply(this,arguments)||this};
_.y(IB,_.p);_.mt.Object.defineProperties(IB.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.Z([_.H(),_.l("design:type",Object)],IB.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],IB.prototype,"steps",null);_.Z([_.D({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],IB);
_.b(IB,"ytd-channel-transfer-stepper-renderer",function(){if(sMW!==void 0)return sMW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return sMW=k},{mode:1});var lbT;var nD=function(){var k=_.p.apply(this,arguments)||this;k.data=null;k.isError=!1;k.isLoading=!1;return k};
_.y(nD,_.p);_.I=nD.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.I.computeProfileName=function(k){return k?k.givenNameValue+" "+k.familyNameValue:""};
_.I.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)};
_.I.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
nD.prototype.onYtServiceRequestError=nD.prototype.onYtServiceRequestError;nD.prototype.onYtServiceRequestSent=nD.prototype.onYtServiceRequestSent;nD.prototype.dataChanged=nD.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],nD.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],nD.prototype,"data",void 0);
_.Z([_.H({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.l("design:type",String)],nD.prototype,"profileName",void 0);_.Z([_.H(),_.l("design:type",Object)],nD.prototype,"isError",void 0);_.Z([_.H(),_.l("design:type",Object)],nD.prototype,"isLoading",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],nD.prototype,"dataChanged",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],nD.prototype,"onYtServiceRequestSent",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],nD.prototype,"onYtServiceRequestError",null);_.Z([_.D({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],nD);
_.b(nD,"ytd-channel-warm-welcome-cont-renderer",function(){if(lbT!==void 0)return lbT;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return lbT=k},{mode:1});var MSY;var iz=function(){var k=_.p.apply(this,arguments)||this;k.data=null;return k};
_.y(iz,_.p);iz.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],iz.prototype,"data",void 0);_.Z([_.D({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],iz);
_.b(iz,"ytd-channel-warm-welcome-renderer",function(){if(MSY!==void 0)return MSY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return MSY=k},{mode:1});var qCU;var ho=function(){return _.p.apply(this,arguments)||this};
_.y(ho,_.p);_.mt.Object.defineProperties(ho.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.authorThumbnail)||{}}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ho.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],ho.prototype,"thumbnailDetails",null);_.Z([_.D({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],ho);
_.b(ho,"ytd-comment-preview-renderer",function(){if(qCU!==void 0)return qCU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return qCU=k},{mode:1});var zoI;var Jo=function(){return _.p.apply(this,arguments)||this};
_.y(Jo,_.p);Jo.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.mt.Object.defineProperties(Jo.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.submitButton}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Jo.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Jo.prototype,"submitButton",null);_.Z([_.D({is:"ytd-notice-renderer",disableElementRegistration:!0})],Jo);
_.b(Jo,"ytd-notice-renderer",function(){if(zoI!==void 0)return zoI;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return zoI=k},{mode:1});var QMI;var cx=function(){return _.p.apply(this,arguments)||this};
_.y(cx,_.p);cx.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],cx.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cx.prototype,"data",void 0);_.Z([_.D({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],cx);
_.b(cx,"ytd-preview-comment-dialog-content",function(){if(QMI!==void 0)return QMI;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return QMI=k},{mode:1});var O4t;var mH=function(){return _.p.apply(this,arguments)||this};
_.y(mH,_.p);mH.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
mH.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],mH.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],mH.prototype,"data",void 0);_.Z([_.D({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],mH);
_.b(mH,"ytd-preview-comment-dialog-renderer",function(){if(O4t!==void 0)return O4t;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return O4t=k},{mode:1});var Gjx;var CNa=_.Y("web_button_rework")&&_.qg("BUTTON_REWORK")||_.Y("web_button_rework_with_live"),eP=function(){var k=_.p.apply(this,arguments)||this;k.closeLabel=_.Vi("CLOSE");k.selectedAmountIndex=1;k.privacyCheckboxValue=!1;k.useAmsterdamStyle=CNa;k.amountPlaceholderIndex=-1;return k};
_.y(eP,_.p);_.I=eP.prototype;_.I.onAmountClick=function(k){this.selectedAmountIndex=_.Cc(this.hostElement).querySelector("#amounts").indexForElement(k.currentTarget)};
_.I.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.qe(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.I.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.qe(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.qe(this.hostElement,"yt-close-popup-action",[this.is]);var k;(k=_.s3())==null||k.getPlayerPromise().then(function(E){E.pauseVideo()})}};
_.I.donationCallback=function(k){k.success?(this.hostElement.hasAttribute("live-chat")&&k.response&&k.response.data&&k.response.data.actions&&_.qe(this.hostElement,"yt-live-chat-open-popup",[k.response.data.actions[0]]),_.qe(this.hostElement,"yt-close-popup-action",[this.is]),_.qe(this.hostElement,"yt-live-chat-close-buy-flow")):k.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(k.errorMessageRenderer)};
_.I.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Cc(this.hostElement).querySelector("#custom-amount-input").focus()};
_.I.updateConfirmationDialogTextWithAmount=function(k){var E=this.getConfirmDialogRuns();E&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(E),"text"],this.getFormattedAmount(k))};
_.I.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.I.getAmountPlaceholderIndex=function(k){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=k.findIndex(function(E){return E.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.I.getFormattedAmount=function(k){var E;return(new _.r8(4,((E=this.data)==null?void 0:E.currencyCode)||"")).format(k)};
_.I.isAmountValid=function(k){if(k==="")return!1;k=Number(k)*1E6;var E=this.get("minAmountMicros",this.data),S=this.get("maxAmountMicros",this.data);return E&&k<E||S&&k>S?!1:!0};
_.I.setInputError=function(){this.shouldShowValidationError?_.Cc(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Cc(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.I.setInitialCheckboxValue=function(){var k;this.privacyCheckboxValue=!((k=this.data)==null||!k.privacyCheckboxInitialState)};
_.I.updateCustomAmountInputFromBinding=function(k){this.customAmountInput=k.detail.value};
_.I.updatePrivacyCheckboxValueFromBinding=function(k){this.privacyCheckboxValue=k.detail.value};
_.mt.Object.defineProperties(eP.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var k=this,E,S;return((E=this.data)==null?void 0:(S=E.suggestedAmounts)==null?void 0:S.map(function(R,V){return{buttonRenderer:{style:k.selectedAmountIndex===V?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:R.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 k;return!((k=this.data)==null||!k.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 k=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(k&&this.amountMicros!==null)return Object.assign({},k,{ypcGetCartEndpoint:Object.assign({},k.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 k=this.get("confirmLargeAmount",this.data);if(k&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),k}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var k=this.get("donateButton.buttonRenderer",this.data);if(k)return Object.assign({},k,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
eP.prototype.setInitialCheckboxValue=eP.prototype.setInitialCheckboxValue;eP.prototype.setInputError=eP.prototype.setInputError;eP.prototype.setFocusOnCustomAmountInput=eP.prototype.setFocusOnCustomAmountInput;_.Z([_.g(E9G),_.l("design:type",Object)],eP.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],eP.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],eP.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],eP.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],eP.prototype,"closeLabel",void 0);_.Z([_.H(),_.l("design:type",Object)],eP.prototype,"selectedAmountIndex",void 0);_.Z([_.H(),_.l("design:type",String)],eP.prototype,"customAmountInput",void 0);_.Z([_.H(),_.l("design:type",Object)],eP.prototype,"privacyCheckboxValue",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],eP.prototype,"useAmsterdamStyle",void 0);_.Z([_.il("customAmount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eP.prototype,"setFocusOnCustomAmountInput",null);_.Z([_.U("data","selectedAmountIndex"),_.l("design:type",Array),_.l("design:paramtypes",[])],eP.prototype,"suggestedAmountButtons",null);
_.Z([_.U("data","selectedAmountIndex"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eP.prototype,"isCustomAmountSelected",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eP.prototype,"showPrivacyCheckbox",null);_.Z([_.U("data","selectedAmountIndex","customAmount"),_.l("design:type",Object),_.l("design:paramtypes",[])],eP.prototype,"amountMicros",null);
_.Z([_.U("isCustomAmountSelected","customAmountInput"),_.l("design:type",Object),_.l("design:paramtypes",[])],eP.prototype,"customAmount",null);_.Z([_.U("customAmount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eP.prototype,"shouldShowValidationError",null);_.Z([_.U("customAmount"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],eP.prototype,"isDonateButtonEnabled",null);
_.Z([_.U("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.l("design:type",Object),_.l("design:paramtypes",[])],eP.prototype,"donateCommand",null);_.Z([_.U("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.l("design:type",Object),_.l("design:paramtypes",[])],eP.prototype,"donateCommandWithConfirmation",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],eP.prototype,"largeDonationThreshold",null);
_.Z([_.U("customAmount","donateCommand","amountMicros"),_.l("design:type",Object),_.l("design:paramtypes",[])],eP.prototype,"confirmLargeAmountCommand",null);_.Z([_.U("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.l("design:type",Object),_.l("design:paramtypes",[])],eP.prototype,"donateButtonRenderer",null);_.Z([_.il("shouldShowValidationError"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eP.prototype,"setInputError",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],eP.prototype,"setInitialCheckboxValue",null);_.Z([_.D({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],eP);
_.b(eP,"ytd-donation-amount-picker-renderer",function(){if(Gjx!==void 0)return Gjx;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Gjx=k},{mode:1});var kHU;var EUT=function(){return _.p.apply(this,arguments)||this};
_.y(EUT,_.p);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],EUT.prototype,"ytComponentBehavior",void 0);_.Z([_.H({}),_.l("design:type",Object)],EUT.prototype,"data",void 0);_.Z([_.D({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],EUT);
_.b(EUT,"ytd-donation-post-transaction-content",function(){if(kHU!==void 0)return kHU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return kHU=k},{mode:1});var S1Y;var aB=function(){return _.p.apply(this,arguments)||this};
_.y(aB,_.p);aB.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],aB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.Z([_.H({}),_.l("design:type",Object)],aB.prototype,"data",void 0);_.Z([_.D({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],aB);
_.b(aB,"ytd-donation-post-transaction-renderer",function(){if(S1Y!==void 0)return S1Y;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return S1Y=k},{mode:1});var RgI;var Vg2;var to=function(){return _.p.apply(this,arguments)||this};
_.y(to,_.p);to.prototype.computeIsStreamingProvider=function(k){return!!k.isStreamingShelf};
to.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],to.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],to.prototype,"data",void 0);_.Z([_.H({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],to.prototype,"isStreamingProvider",void 0);
_.Z([_.D({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],to);
_.b(to,"ytd-media-provider-renderer",function(){if(Vg2!==void 0)return Vg2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Vg2=k},{mode:1});var NiT;var Tf=function(){return _.p.apply(this,arguments)||this};
_.y(Tf,_.p);Tf.prototype.observeLightsourcePalette=function(){var k,E=(k=this.data)==null?void 0:k.vibrantsourceColorPaletteData;E&&_.wb(this.hostElement,E)};
Tf.prototype.observeLightsourcePalette=Tf.prototype.observeLightsourcePalette;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Tf.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Tf.prototype,"data",void 0);
_.Z([_.il("data.vibrantsourceColorPaletteData"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Tf.prototype,"observeLightsourcePalette",null);_.Z([_.D({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Tf);
_.b(Tf,"ytd-streaming-pop-up-dialog",function(){if(NiT!==void 0)return NiT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return NiT=k},{mode:1});var we=function(){return _.p.apply(this,arguments)||this};
_.y(we,_.p);we.prototype.onPopupOpened_=function(){var k;((k=this.data)==null?0:k.serviceEndpoint)&&_.en().resolve(_.t3).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
we.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
we.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"}}}}};
we.prototype.onPopupOpened_=we.prototype.onPopupOpened_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],we.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.VX),_.l("design:type",Object)],we.prototype,"ytContinuationHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],we.prototype,"data",void 0);
_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],we.prototype,"onPopupOpened_",null);_.Z([_.D({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],we);
_.b(we,"ytd-brandconnect-popup-renderer",function(){if(RgI!==void 0)return RgI;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return RgI=k},{mode:1});var I60;var Px=function(){return _.p.apply(this,arguments)||this};
_.y(Px,_.p);_.I=Px.prototype;_.I.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){for(var k=0;k<this.getOptionRenderers().length;k++)this.notifyPath("data.options."+k+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+k+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.I.updateSubmitButton=function(k){this.set("data.submitButton.buttonRenderer.isDisabled",!k)};
_.I.computeAlt=function(k){return _.$n(k)};
_.I.onDismissTap=function(){_.qe(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.en().resolve(_.t3).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.I.getOptionRenderers=function(k){return(k=k||this.data)&&k.options?k.options.reduce(function(E,S){S.checkboxSurveyOptionRenderer&&E.push(S.checkboxSurveyOptionRenderer);return E},[]):[]};
_.I.onOptionChange=function(k){var E=this,S=!1;if(k.detail.checked)for(var R=this.getOptionRenderers().find(function(J){return J.value===k.detail.value}),V=this.getOptionRenderers(),N=0;N<V.length;N++){var h=V[N];
this.notifyPath("data.options."+N+".checkboxSurveyOptionRenderer.checked");h.checked&&((R==null?0:R.isExclusiveOption)?!h.isExclusiveOption:h.isExclusiveOption)?this.set("data.options."+N+".checkboxSurveyOptionRenderer.checked",!1):h.checked&&(S=!0)}else S=this.getOptionRenderers().some(function(J,m){E.notifyPath("data.options."+m+".checkboxSurveyOptionRenderer.checked");return J.checked});
this.updateSubmitButton(S)};
_.I.onSubmitTap=function(){var k=this.getOptionRenderers().filter(function(N){return N.checked});
if(k.length!==0){var E=k.map(function(N){return N.responseEndpoint});
k=[];for(var S=1;S<E.length;S++){var R=void 0,V=(R=_.W(E[S],_.wy))==null?void 0:R.feedbackToken;V&&k.push(V)}E=[E[0]];k.length&&E.push({extra_feedback_tokens:k});_.Qw(this.hostElement,E);_.qe(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);k=this.data&&this.data.submitActions||[];if(_.Y("kevlar_command_handler_migration_killswitch"))_.Ot(this.hostElement,k,this.hostElement);else for(k=_.n(k),E=k.next();!E.done;E=k.next())this.ytComponentBehavior.resolveCommand(E.value)}};
Px.prototype.onOptionChange=Px.prototype.onOptionChange;Px.prototype.dataChanged=Px.prototype.dataChanged;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],Px.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Px.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Px.prototype,"ytRendererBehavior",void 0);_.Z([_.g(BNG),_.l("design:type",Object)],Px.prototype,"ytdHatsSurveyBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Px.prototype,"data",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Px.prototype,"dataChanged",null);
_.Z([_.nv("ytd-checkbox-survey-option-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Px.prototype,"onOptionChange",null);_.Z([_.D({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Px);
_.b(Px,"ytd-checkbox-survey-renderer",function(){if(I60!==void 0)return I60;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return I60=k},{mode:1});var nUA;var i$T;var Bx=function(){return _.p.apply(this,arguments)||this};
_.y(Bx,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Bx.prototype,"ytRendererBehavior",void 0);_.Z([_.g(Pyt),_.l("design:type",Object)],Bx.prototype,"ytdDismissalReasonBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Bx.prototype,"data",void 0);_.Z([_.D({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Bx);
_.b(Bx,"ytd-dismissal-reason-text-renderer",function(){if(i$T!==void 0)return i$T;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return i$T=k},{mode:1});var hgT;var Y5=function(){return _.p.apply(this,arguments)||this};
_.y(Y5,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Y5.prototype,"ytRendererBehavior",void 0);_.Z([_.g(Pyt),_.l("design:type",Object)],Y5.prototype,"ytdDismissalReasonBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Y5.prototype,"data",void 0);_.Z([_.D({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],Y5);
_.b(Y5,"ytd-dismissal-reason-video-renderer",function(){if(hgT!==void 0)return hgT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return hgT=k},{mode:1});var Wx=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(Wx,_.p);_.I=Wx.prototype;_.I.created=function(){this.selectedFeedbackTokens=new UT};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.I.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.I.onDismissalReasonSelected=function(k,E){_.Me(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(E);this.hasReasonsSelected=!0};
_.I.onDismissalReasonDeselected=function(k,E){_.Me(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(E);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.I.onCancelTap=function(){_.qe(this.hostElement,"yt-close-popup-action")};
_.I.onSubmitTap=function(){var k=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(k={feedback_tokens:k},_.en().resolve(_.t3).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},k,{element:this.hostElement})}));_.qe(this.hostElement,"yt-close-popup-action")};
Wx.prototype.onDismissalReasonDeselected=Wx.prototype.onDismissalReasonDeselected;Wx.prototype.onDismissalReasonSelected=Wx.prototype.onDismissalReasonSelected;Wx.prototype.dataChanged=Wx.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Wx.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Wx.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Wx.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],Wx.prototype,"hasReasonsSelected",void 0);_.Z([_.H(),_.l("design:type",UT)],Wx.prototype,"selectedFeedbackTokens",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Wx.prototype,"darkerDarkTheme",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Wx.prototype,"dataChanged",null);
_.Z([_.nv("yt-dismissal-reason-selected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,String]),_.l("design:returntype")],Wx.prototype,"onDismissalReasonSelected",null);_.Z([_.nv("yt-dismissal-reason-deselected"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,String]),_.l("design:returntype")],Wx.prototype,"onDismissalReasonDeselected",null);_.Z([_.D({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],Wx);
_.b(Wx,"ytd-dismissal-follow-up-renderer",function(){if(nUA!==void 0)return nUA;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return nUA=k},{mode:1});var JcG;var FP=function(){return _.p.apply(this,arguments)||this};
_.y(FP,_.p);_.I=FP.prototype;_.I.onCheckedChange=function(){this.multiselect||_.Me(this.hostElement,"yt-feedback-single-select-changed");_.Cc(this.hostElement).querySelector("#freeform").focus();_.Me(this.hostElement,"yt-refit")};
_.I.showTextBox=function(k,E){return k&&E};
_.I.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))};
_.I.updateDataCheckedFromBinding=function(k){this.set("data.checked",k.detail.value)};
_.I.updateDataResultTextFromBinding=function(k){this.set("data.resultText",k.detail.value)};
FP.prototype.dataChanged=FP.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],FP.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],FP.prototype,"multiselect",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FP.prototype,"dataChanged",null);
_.Z([_.D({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],FP);
_.b(FP,"ytd-feedback-option-renderer",function(){if(JcG!==void 0)return JcG;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return JcG=k},{mode:1});var cc0;var yG=function(){return _.p.apply(this,arguments)||this};
_.y(yG,_.p);yG.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
yG.prototype.onSingleSelectCheckedChanged=function(k){k=_.bv(k);for(var E=0;E<this.data.options.length;E++)if(k.data!==_.W(this.data.options[E],A7a)){var S="data.options."+E+".feedbackOptionRenderer.checked";this.notifyPath(S);this.set(S,!1)}};
yG.prototype.onSingleSelectCheckedChanged=yG.prototype.onSingleSelectCheckedChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yG.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],yG.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],yG.prototype,"data",void 0);
_.Z([_.nv("yt-feedback-single-select-changed"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],yG.prototype,"onSingleSelectCheckedChanged",null);_.Z([_.D({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],yG);
_.b(yG,"ytd-feedback-question-renderer",function(){if(cc0!==void 0)return cc0;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return cc0=k},{mode:1});var m9a;var UR=function(){return _.p.apply(this,arguments)||this};
_.y(UR,_.p);UR.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
UR.prototype.getSelectedFeedbackResults=function(){for(var k={},E=0;E<this.data.questions.length;E++)for(var S=_.W(this.data.questions[E],pWY),R=0;R<S.options.length;R++){var V=_.W(S.options[R],A7a);V&&V.checked&&(k[V.optionKey]=V.resultText)}return k};
UR.prototype.onKeyUp=function(){var k=this;_.Ch(_.ZJ,function(){_.Me(k.hostElement,"yt-refit")});
_.ZJ.start()};
UR.prototype.submitSurvey=function(){var k=this.getSelectedFeedbackResults();Object.keys(k).length>0&&this.data.submitFeedbackEndpoint&&(k={survey_results:k,is_feedback_token_unencrypted:!0},_.en().resolve(_.t3).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},k,{element:this.hostElement})}))};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],UR.prototype,"data",void 0);_.Z([_.D({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],UR);
_.b(UR,"ytd-feedback-survey-renderer",function(){if(m9a!==void 0)return m9a;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return m9a=k},{mode:1});var egx;var a6A;var Hx=function(){return _.p.apply(this,arguments)||this};
_.y(Hx,_.p);Hx.prototype.computeAlt=function(k){return _.$n(k)};
Hx.prototype.submitResponse=function(){var k,E;(k=this.data)!=null&&k.feedbackToken&&((E=this.data)==null?void 0:E.nextStageIndex)!==void 0&&(_.zR(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.zR(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
Hx.prototype.onClick=function(){this.submitResponse()};
Hx.prototype.onClick=Hx.prototype.onClick;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Hx.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Hx.prototype,"vertical",void 0);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Hx.prototype,"onClick",null);
_.Z([_.D({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],Hx);
_.b(Hx,"ytd-single-select-answer-option-renderer",function(){if(a6A!==void 0)return a6A;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return a6A=k},{mode:1});var tg3;var KD=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return k};
_.y(KD,_.p);KD.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
KD.prototype.dataChanged=function(){var k,E;this.vertical=((E=(k=this.data)==null?void 0:k.answerOrientation)!=null?E:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
KD.prototype.submitFeedback=function(k){var E;((E=this.data)==null?0:E.responseEndpoint)&&k&&_.Qw(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[k]}])};
KD.prototype.dataChanged=KD.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],KD.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],KD.prototype,"eventForwardingBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],KD.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],KD.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],KD.prototype,"vertical",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],KD.prototype,"darkerDarkTheme",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],KD.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],KD);
_.b(KD,"ytd-single-select-question-renderer",function(){if(tg3!==void 0)return tg3;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return tg3=k},{mode:1});var pD=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return k};
_.y(pD,_.p);_.I=pD.prototype;_.I.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"}}}};
_.I.dataChanged=function(){this.jumpToStage(0)};
_.I.jumpToStage=function(k){var E,S;if((E=this.data)==null?0:(S=E.stages)==null?0:S[k])this.currentStage=this.data.stages[k],this.refitAfterRender()};
_.I.computeAlt=function(k){return _.$n(k)};
_.I.computeSimpleMessage=function(k){var E;return(E=_.W(k,xZP))==null?void 0:E.messageText};
_.I.computeHideDismiss=function(k){var E;return(E=_.W(k,n_P))==null?void 0:E.hideParentDismissButton};
_.I.onDismissTap=function(){_.qe(this.hostElement,"yt-close-popup-action");_.W(this.currentStage,xZP)||this.data.dismissalEndpoint&&_.en().resolve(_.t3).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.I.refitAfterRender=function(){var k=this;_.JB(this,function(){_.Me(k.hostElement,"yt-refit")})};
pD.prototype.dataChanged=pD.prototype.dataChanged;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],pD.prototype,"eventForwardingBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],pD.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g(BNG),_.l("design:type",Object)],pD.prototype,"ytdHatsSurveyBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],pD.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],pD.prototype,"currentStage",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pD.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],pD);
_.b(pD,"ytd-multi-stage-survey-renderer",function(){if(egx!==void 0)return egx;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return egx=k},{mode:1});var TiW;var Ao=function(){return _.p.apply(this,arguments)||this};
_.y(Ao,_.p);Ao.prototype.computeAlt=function(k){return _.$n(k)};
Ao.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.en().resolve(_.t3).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.qe(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.F5R(!1)))};
Ao.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Ao.prototype.onTap=Ao.prototype.onTap;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Ao.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ao.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Ao.prototype,"vertical",void 0);
_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ao.prototype,"onTap",null);_.Z([_.D({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Ao);
_.b(Ao,"ytd-single-option-survey-option-renderer",function(){if(TiW!==void 0)return TiW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return TiW=k},{mode:1});var wA2;var re=function(){return _.p.apply(this,arguments)||this};
_.y(re,_.p);_.I=re.prototype;_.I.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){var k,E;this.vertical=(((k=this.data)==null?void 0:(E=k.surveyOrientation)==null?void 0:E.type)||"HORIZONTAL")==="VERTICAL"};
_.I.computeAlt=function(k){return _.$n(k)};
_.I.onDismissTap=function(){_.qe(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.en().resolve(_.t3).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.F5R(!1))};
re.prototype.dataChanged=re.prototype.dataChanged;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],re.prototype,"eventForwardingBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(BNG),_.l("design:type",Object)],re.prototype,"ytdHatsSurveyBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],re.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],re.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],re.prototype,"vertical",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],re.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],re);
_.b(re,"ytd-single-option-survey-renderer",function(){if(wA2!==void 0)return wA2;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return wA2=k},{mode:1});var P0P;var uz=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(uz,_.p);uz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uz.prototype.onDismissTap=function(){_.qe(this.hostElement,"yt-close-popup-action")};
uz.prototype.onNavigate=function(){_.qe(this.hostElement,"yt-close-popup-action")};
uz.prototype.onNavigate=uz.prototype.onNavigate;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],uz.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],uz.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],uz.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],uz.prototype,"darkerDarkTheme",void 0);
_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uz.prototype,"onNavigate",null);_.Z([_.D({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],uz);
_.b(uz,"ytd-survey-follow-up-renderer",function(){if(P0P!==void 0)return P0P;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return P0P=k},{mode:1});var BiU;var Y1I;var W6P;var x5=function(){var k=_.p.apply(this,arguments)||this;k.polymer2="Element"in Polymer;return k};
_.y(x5,_.p);_.I=x5.prototype;_.I.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.I.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.I.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.I.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("minutes-changed",this.minutes))};
_.I.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("seconds-changed",this.seconds))};
_.I.updateMinutesFromBinding=function(k){this.minutes=k.detail.value};
_.I.updateSecondsFromBinding=function(k){this.seconds=k.detail.value};
x5.prototype.secondsChangedForBinding=x5.prototype.secondsChangedForBinding;x5.prototype.minutesChangedForBinding=x5.prototype.minutesChangedForBinding;x5.prototype.secondsChanged=x5.prototype.secondsChanged;_.Z([_.H(),_.l("design:type",String)],x5.prototype,"minutes",void 0);_.Z([_.H(),_.l("design:type",String)],x5.prototype,"seconds",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],x5.prototype,"polymer2",void 0);
_.Z([_.JO("#seconds"),_.l("design:type",Object)],x5.prototype,"secondsEl",void 0);_.Z([_.il("seconds"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],x5.prototype,"secondsChanged",null);_.Z([_.il("minutes"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],x5.prototype,"minutesChangedForBinding",null);
_.Z([_.il("seconds"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],x5.prototype,"secondsChangedForBinding",null);_.Z([_.U_({is:"yt-timestamp-input",disableElementRegistration:!0})],x5);
_.b(x5,"yt-timestamp-input",function(){if(W6P===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Y1I===void 0&&(Y1I=document.createElement("template"));var R=Y1I;S.call(E,R.content.cloneNode(!0),k.content.firstChild);W6P=k}k=W6P;return k},{mode:2});var LD=function(){return _.p.apply(this,arguments)||this};
_.y(LD,_.p);_.I=LD.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20586_scroller.dialogElement=this.hostElement.parentNode};
_.I.dataChanged=function(){var k=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.l_().getPlayerPromise().then(function(E){E=E.getCurrentTime();k.minutes=Math.floor(E/60).toString();k.seconds=(Math.floor(E)%60).toString()})};
_.I.onTapSubmit=function(k){k.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(k={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(k.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(k.minutes=this.minutes,k.seconds=this.seconds),_.en().resolve(_.t3).resolveCommand(this.serviceEndpoint,{form:Object.assign({},k,{element:this.hostElement})}))};
_.I.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.I.onYtServiceRequestCompleted=function(k,E){E=E.actions;if(Array.isArray(E))for(var S=0,R=E.length;S<R;S++)_.W(E[S],_.Xg)&&(k.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(E[S]))};
_.I.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.I.toggleSubmitButton=function(k){this.set("submitButton.isDisabled",!k)};
_.I.handleInput=function(){var k=this.issueType,E=this.affiliation,S=this.minutes,R=this.seconds;S=!this.showTimestamp||!!S&&!!R;this.toggleSubmitButton(!!this.descriptionText&&!!k&&!!E&&S)};
_.I.computeServiceEndpoint=function(k){return this.get("submitButton.buttonRenderer.serviceEndpoint",k)};
_.I.computeSubmitButton=function(k){(k=this.get("submitButton.buttonRenderer",k))&&(k=Object.assign({},k,{serviceEndpoint:void 0}));return k};
_.I.computeShowTimestamp=function(k){return!!k};
_.I.onValueChangedForIssueType=function(k){this.issueType=k.detail.value};
_.I.onValueChangedForAffiliation=function(k){this.affiliation=k.detail.value};
_.I.updateDescriptionTextFromBinding=function(k){this.descriptionText=k.detail.value};
_.I.updateFullNameTextFromBinding=function(k){this.fullNameText=k.detail.value};
_.I.updateMinutesFromBinding=function(k){this.minutes=k.detail.value};
_.I.updateSecondsFromBinding=function(k){this.seconds=k.detail.value};
LD.prototype.handleInput=LD.prototype.handleInput;LD.prototype.onYtServiceRequestError=LD.prototype.onYtServiceRequestError;LD.prototype.onYtServiceRequestCompleted=LD.prototype.onYtServiceRequestCompleted;LD.prototype.onYtServiceRequestSent=LD.prototype.onYtServiceRequestSent;LD.prototype.dataChanged=LD.prototype.dataChanged;_.Z([_.g(_.gA.YtOpenPopupBehavior),_.l("design:type",Object)],LD.prototype,"ytOpenPopupBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],LD.prototype,"ytRendererBehavior",void 0);_.Z([_.JO("#scroller"),_.l("design:type",Object)],LD.prototype,"JSC$20586_scroller",void 0);_.Z([_.JO("#description"),_.l("design:type",HTMLInputElement)],LD.prototype,"description",void 0);_.Z([_.JO("#full-name"),_.l("design:type",Object)],LD.prototype,"fullName",void 0);_.Z([_.H(),_.l("design:type",Object)],LD.prototype,"data",void 0);
_.Z([_.H({computed:"computeShowTimestamp(data.timestampLabel)"}),_.l("design:type",Boolean)],LD.prototype,"showTimestamp",void 0);_.Z([_.H({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.l("design:type",Object)],LD.prototype,"serviceEndpoint",void 0);_.Z([_.H({computed:"computeSubmitButton(data)"}),_.l("design:type",Object)],LD.prototype,"submitButton",void 0);_.Z([_.H(),_.l("design:type",String)],LD.prototype,"descriptionText",void 0);
_.Z([_.H(),_.l("design:type",Number)],LD.prototype,"issueType",void 0);_.Z([_.H(),_.l("design:type",Number)],LD.prototype,"affiliation",void 0);_.Z([_.H(),_.l("design:type",String)],LD.prototype,"fullNameText",void 0);_.Z([_.H(),_.l("design:type",String)],LD.prototype,"minutes",void 0);_.Z([_.H(),_.l("design:type",String)],LD.prototype,"seconds",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LD.prototype,"dataChanged",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],LD.prototype,"onYtServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],LD.prototype,"onYtServiceRequestCompleted",null);
_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],LD.prototype,"onYtServiceRequestError",null);_.Z([_.il("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],LD.prototype,"handleInput",null);_.Z([_.D({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],LD);
_.b(LD,"ytd-legal-report-details-form-renderer",function(){if(BiU!==void 0)return BiU;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return BiU=k},{mode:1});var F63;var jP=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return k};
_.y(jP,_.p);jP.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
jP.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var k=this.formRenderer.getForm();k&&this.data.submitEndpoint&&(_.en().resolve(_.t3).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},k,{element:this.hostElement})}),_.qe(this.hostElement,"yt-close-popup-action"))}};
jP.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.qe(this.hostElement,"yt-close-popup-action"))};
jP.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
jP.prototype.onPopupClosed=jP.prototype.onPopupClosed;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],jP.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],jP.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);
_.Z([_.JO("yt-form-renderer"),_.l("design:type",Object)],jP.prototype,"formRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],jP.prototype,"data",void 0);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],jP.prototype,"onPopupClosed",null);_.Z([_.D({is:"ytd-form-popup-content",disableElementRegistration:!0})],jP);
_.b(jP,"ytd-form-popup-content",function(){if(F63!==void 0)return F63;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return F63=k},{mode:1});var ycW;var D$=function(){return _.p.apply(this,arguments)||this};
_.y(D$,_.p);D$.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
D$.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
D$.prototype.onPopupOpened=function(){_.Me(this.hostElement,"yt-invalidate-popup-tabbables")};
D$.prototype.onYtServiceRequestCompleted=function(k,E){E.data&&E.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Me(this.hostElement,"yt-invalidate-popup-tabbables"))};
D$.prototype.onYtServiceRequestCompleted=D$.prototype.onYtServiceRequestCompleted;D$.prototype.onPopupOpened=D$.prototype.onPopupOpened;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],D$.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],D$.prototype,"data",void 0);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],D$.prototype,"onPopupOpened",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],D$.prototype,"onYtServiceRequestCompleted",null);_.Z([_.D({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],D$);
_.b(D$,"ytd-form-popup-renderer",function(){if(ycW!==void 0)return ycW;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return ycW=k},{mode:1});var oUP;var $5=function(){var k=_.p.apply(this,arguments)||this;k.isLoading=!1;return k};
_.y($5,_.p);_.I=$5.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");xOR(this.hostElement)};
_.I.onYtServiceRequestSent=function(){this.isLoading=!0};
_.I.onYtServiceRequestCompleted=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.I.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Ot(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.I.closePopupHandler=function(){this.fireOnCloseActions()};
_.I.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var k=this.get("data.headerImage.thumbnails");k&&(k=_.zT(k,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+k+")")}};
_.I.onYtNavigate=function(k){(k=_.bv(k))&&k.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
$5.prototype.onYtNavigate=$5.prototype.onYtNavigate;$5.prototype.onHeaderImageChanged=$5.prototype.onHeaderImageChanged;$5.prototype.closePopupHandler=$5.prototype.closePopupHandler;$5.prototype.onYtServiceRequestCompleted=$5.prototype.onYtServiceRequestCompleted;$5.prototype.onYtServiceRequestSent=$5.prototype.onYtServiceRequestSent;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$5.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],$5.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$5.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],$5.prototype,"isLoading",void 0);_.Z([_.JO("#header"),_.l("design:type",HTMLDivElement)],$5.prototype,"header",void 0);_.Z([_.JO("#confirm-button"),_.l("design:type",_.j6)],$5.prototype,"confirmButton",void 0);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$5.prototype,"onYtServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$5.prototype,"onYtServiceRequestCompleted",null);
_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],$5.prototype,"closePopupHandler",null);_.Z([_.il("data.headerImage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$5.prototype,"onHeaderImageChanged",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$5.prototype,"onYtNavigate",null);
_.Z([_.D({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],$5);
_.b($5,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(oUP!==void 0)return oUP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return oUP=k},{mode:1});var XAY;var fD=function(){var k=_.p.apply(this,arguments)||this;k.isLoading=!1;return k};
_.y(fD,_.p);_.I=fD.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);xOR(this.hostElement)};
_.I.onYtServiceRequestCompleted=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.I.onYtServiceRequestError=function(k){_.A0(this.hostElement,k.detail.error.message)};
_.I.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.I.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.qe(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.I.onDataChanged=function(){this.isLoading=!1;var k=this.get("data.headerImage.thumbnails");k&&(k=_.zT(k,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+k+")");k=_.Fe();var E=_.Wi(),S=this.get("data.trackingParams");S&&E&&k&&_.rq(k,E,_.tV(S))};
_.mt.Object.defineProperties(fD.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
fD.prototype.onDataChanged=fD.prototype.onDataChanged;fD.prototype.onDomChange=fD.prototype.onDomChange;fD.prototype.onYtServiceRequestError=fD.prototype.onYtServiceRequestError;fD.prototype.onYtServiceRequestCompleted=fD.prototype.onYtServiceRequestCompleted;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],fD.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],fD.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],fD.prototype,"isLoading",void 0);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],fD.prototype,"hasDescription",null);_.Z([_.JO("tp-yt-paper-dialog-scrollable"),_.l("design:type",Object)],fD.prototype,"scrollable",void 0);_.Z([_.JO("#header"),_.l("design:type",HTMLElement)],fD.prototype,"header",void 0);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],fD.prototype,"onYtServiceRequestCompleted",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],fD.prototype,"onYtServiceRequestError",null);
_.Z([_.nv("dom-change"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],fD.prototype,"onDomChange",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],fD.prototype,"onDataChanged",null);_.Z([_.D({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],fD);
_.b(fD,"ytd-gaming-account-link-setting-renderer",function(){if(XAY!==void 0)return XAY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return XAY=k},{mode:1});var gUU;var U9T;var vx=function(){var k=_.p.apply(this,arguments)||this;k.isHeader=!1;k.getEndpointForm=function(){return FJA(k.data)};
return k};
_.y(vx,_.p);_.I=vx.prototype;_.I.triggerHintActions=function(){var k=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var E=_.zR(k.hostElement,"yt-get-opened-popups-action");!(E&&E.length===1?E[0]:[]).some(function(S){S=S.openPopupAction.popupType;return S==="SURVEY"||S==="MEALBAR"||S==="HINT"})&&k.data.hintActions&&k.guideOpened&&(_.Ot(k.hostElement,k.data.hintActions,k.hostElement),k.data.hintActions=void 0)})};
_.I.getBadgeIconType=function(k){return k&&k.liveBroadcasting?"live":null};
_.I.onDown=function(){this.interaction.triggerDown()};
_.I.onUp=function(){this.interaction.triggerUp()};
_.I.onTap=function(k){if(this.data.serviceEndpoint){var E;_.Y("shorts_controller_retrieve_seedless_sequence_v2")&&((E=_.W(this.data.serviceEndpoint,_.hg))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):WJT(this.data.serviceEndpoint,this);k.preventDefault()}else this.data.navigationEndpoint&&!_.v9(_.vT(k),this.hostElement,["A".toString()])&&_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.I.computeActive=function(k,E){if(!k)return!1;var S=k.navigationEndpoint;k=k.serviceEndpoint;if(!S&&!k||!E)return!1;if(S){k=(k=_.VS(E))&&["subscriptions","filteredsubscriptions"].includes(k);if(_.W(S,_.Ny)&&_.W(E,_.Ny)&&!k){var R=_.W(S,_.Ny).browseId;E=_.W(E,_.Ny).browseId;return R!==void 0&&E!==void 0&&(R===E||R==="VLWL"&&E==="FEwatch_later"||R==="FEwatch_later"&&E==="VLWL")}var V;S=(V=_.W(S.commandMetadata,_.Sd))==null?void 0:V.url;E=(R=_.W(E.commandMetadata,_.Sd))==null?void 0:R.url;return!(!S||
!E||S!==E&&S!==_.Xu(E))}return this.isActiveShortsTab(k,E)};
_.I.isActiveShortsTab=function(k,E){E=!!_.W(E,_.hg)||!!_.W(E,_.b3);return(!!_.W(k,_.hg)||!!_.W(k,_.b3))&&E};
_.I.computeIsPrimary=function(k){return!!k};
_.mt.Object.defineProperties(vx.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 k=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&k)return k}}});
vx.prototype.onTap=vx.prototype.onTap;vx.prototype.onUp=vx.prototype.onUp;vx.prototype.onDown=vx.prototype.onDown;vx.prototype.triggerHintActions=vx.prototype.triggerHintActions;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],vx.prototype,"componentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],vx.prototype,"rendererBehavior",void 0);_.Z([_.g(_.Jr.YtTaskEmitterBehavior),_.l("design:type",Object)],vx.prototype,"taskEmitterBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],vx.prototype,"activeEndpoint",void 0);_.Z([_.H(),_.l("design:type",Object)],vx.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],vx.prototype,"guideOpened",void 0);_.Z([_.H(),_.l("design:type",String)],vx.prototype,"type",void 0);_.Z([_.JO("yt-interaction"),_.l("design:type",Object)],vx.prototype,"interaction",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],vx.prototype,"isHeader",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data","activeEndpoint"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],vx.prototype,"active",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],vx.prototype,"isPrimary",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.count","data.presentationStyle","data.badges.*"),_.l("design:type",String),_.l("design:paramtypes",[])],vx.prototype,"lineEndStyle",null);
_.Z([_.U("lineEndStyle"),_.l("design:type",Object),_.l("design:paramtypes",[])],vx.prototype,"ariaLabel",null);_.Z([_.il("data.hintActions","guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vx.prototype,"triggerHintActions",null);_.Z([_.nv("down"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vx.prototype,"onDown",null);
_.Z([_.nv("up"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vx.prototype,"onUp",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],vx.prototype,"onTap",null);_.Z([_.D({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],vx);
_.b(vx,"ytd-guide-entry-renderer",function(){if(U9T!==void 0)return U9T;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return U9T=k},{mode:1});var bz=function(){var k=_.p.apply(this,arguments)||this;k.userToggled=!1;return k};
_.y(bz,_.p);_.I=bz.prototype;_.I.getItemsPath=function(){return"data.expandableItems"};
_.I.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.I.onExpanderItemTapped=function(k){var E=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.Y("kevlar_guide_expandable_items_killswitch")&&_.JB(this,function(){_.Nd(E.expandableItems)});
k.preventDefault()};
_.I.onCollapserItemTapped=function(k){var E=this;this._setExpanded(!1);this.userToggled=!0;k.preventDefault();this.expandableItems&&!_.Y("kevlar_guide_collapsible_items_killswitch")&&_.JB(this,function(){_.VF(E.hostElement)})};
_.I.observeActiveEndpoint=function(){for(var k=this.activeEndpoint,E=this.data,S=this.expandableItems.children,R=0,V=S.length;R<V;R++)S[R].activeEndpoint=k;E&&E.autoExpandCommand&&k&&!this.userToggled&&(S=this.data.autoExpandCommand,E=!(!_.W(S,_.Ny)||!_.W(k,_.Ny)||_.W(S,_.Ny).browseId!==_.W(k,_.Ny).browseId),k=this.get("commandMetadata.webCommandMetadata.url",k),S=this.get("commandMetadata.webCommandMetadata.url",S),E=E||!!(k&&S&&k.includes(S)),this._setExpanded(E),E&&this.ytLazyListBehavior.fillRemainingListItems())};
bz.prototype.observeActiveEndpoint=bz.prototype.observeActiveEndpoint;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.TF.YtLazyListBehavior),_.l("design:type",Object)],bz.prototype,"ytLazyListBehavior",void 0);_.Z([_.JO("#expandable-items"),_.l("design:type",HTMLElement)],bz.prototype,"expandableItems",void 0);
_.Z([_.H(),_.l("design:type",Object)],bz.prototype,"data",void 0);_.Z([_.H({readOnly:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],bz.prototype,"expanded",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],bz.prototype,"initialCount",void 0);_.Z([_.H(),_.l("design:type",Object)],bz.prototype,"activeEndpoint",void 0);_.Z([_.il("data","activeEndpoint","canShowMore"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bz.prototype,"observeActiveEndpoint",null);
_.Z([_.D({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],bz);
_.b(bz,"ytd-guide-collapsible-entry-renderer",function(){if(gUU!==void 0)return gUU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return gUU=k},{mode:_.GN("kevlar_poly_si_batch_j079")?1:2});var H$3;var K63;var Z$=function(){var k=_.p.apply(this,arguments)||this;k.allVideosCount=0;k.renderGuideEntry=!1;return k};
_.y(Z$,_.p);Z$.prototype.observeRenderEntry=function(){var k;this.renderGuideEntry=!((k=this.data)==null||!k.alwaysShow)||!!this.allVideosCount};
Z$.prototype.observeRenderEntry=Z$.prototype.observeRenderEntry;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Z$.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Z$.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Z$.prototype,"activeEndpoint",void 0);_.Z([_.H({selector:_.Dq1}),_.l("design:type",Object)],Z$.prototype,"allVideosCount",void 0);
_.Z([_.H(),_.l("design:type",Object)],Z$.prototype,"renderGuideEntry",void 0);_.Z([_.ac("allVideosCount","data.alwaysShow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Z$.prototype,"observeRenderEntry",null);_.Z([_.D({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],Z$);
_.b(Z$,"ytd-guide-downloads-entry-renderer",function(){if(K63===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);K63=k}k=K63;return k},{mode:1});var de=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return k};
_.y(de,_.p);_.I=de.prototype;_.I.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]]"}}}}}};
_.I.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var k=this.sectionItems.children,E=0,S=k.length;E<S;E++)k[E].activeEndpoint=this.activeEndpoint}};
_.I.handleAddToGuideSectionAction=function(k){var E=_.W(k,Oy0);if(E&&this.data&&(k=E.items,E=E.handlerData,k&&E&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(E)>-1)){E=0;for(var S=k.length;E<S;E++)k[E].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,k[E])}};
_.I.handleRemoveFromGuideSectionAction=function(k){var E=_.W(k,GDG);E&&this.data&&(k=E.guideEntryId,E=E.handlerData,k&&E&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(E)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(k,this.data.sectionItems),this.removeFromCollapsedSection(k,this.data.sectionItems)))};
_.I.removeFromExpandedSection=function(k,E){k=this.getEntryIndexMatchingId(k,E);k!==-1&&this.splice("data.sectionItems",k,1)};
_.I.removeFromCollapsedSection=function(k,E){var S=E.findIndex(function(R){return!!_.W(R,a8W)});
S&&S!==-1&&E[S]&&_.W(E[S],a8W)&&(E=_.W(E[S],a8W).expandableItems)&&(k=this.getEntryIndexMatchingId(k,E),k!==-1&&this.splice("data.sectionItems."+S+".guideCollapsibleEntryRenderer.expandableItems",k,1))};
_.I.getEntryIndexMatchingId=function(k,E){var S=this;return E.findIndex(function(R){return S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===k})};
de.prototype.activeEndpointChanged=de.prototype.activeEndpointChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],de.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],de.prototype,"actionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],de.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.JO("#section-items"),_.l("design:type",HTMLDivElement)],de.prototype,"sectionItems",void 0);
_.Z([_.JO("#header-entry"),_.l("design:type",Object)],de.prototype,"headerEntry",void 0);_.Z([_.H(),_.l("design:type",Object)],de.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],de.prototype,"activeEndpoint",void 0);_.Z([_.il("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],de.prototype,"activeEndpointChanged",null);_.Z([_.D({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],de);
_.b(de,"ytd-guide-collapsible-section-entry-renderer",function(){if(H$3===void 0){var k=document.createElement("template");_.X(k,'\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="true" 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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);H$3=k}k=H$3;return k},{mode:1});var pAP;var Ac0;var sR=function(){var k=_.p.apply(this,arguments)||this;k.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 k};
_.y(sR,_.p);_.I=sR.prototype;
_.I.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}}}}};
_.I.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var k=_.zR(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);k&&k.length===1&&k[0]&&_.zR(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.I.handleResetChannelUnreadCountCommand=function(k){var E;(k=(E=_.W(k,kQA))==null?void 0:E.channelId)&&this.data&&this.data.items&&(E=this.getPathToEntryMatchingId(k))&&(this.set(E+".guideEntryRenderer.count",0),this.set(E+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.I.handleResetSubscriptionsUnreadDotCommand=function(k){var E,S=(E=_.W(k,E_I))==null?void 0:E.targetId,R;S&&(R=this.data)!=null&&R.items&&(k=this.data.items.findIndex(function(V){var N;return((N=V.guideEntryRenderer)==null?void 0:N.targetId)===S}),k<0||this.set("data.items."+k+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.I.getPathToEntryMatchingId=function(k){if(this.data&&this.data.items){var E=this.getEntryIndexMatchingId(k,this.data.items);if(E>-1)return"data.items."+E;for(var S=0;S<this.data.items.length;S++)if(E=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[S]))if(E=this.getEntryIndexMatchingId(k,E),E>-1)return"data.items."+S+".guideCollapsibleEntryRenderer.expandableItems."+E}};
_.I.handleAddToGuideSectionAction=function(k){var E=this;if(_.W(k,Oy0)){var S=_.W(k,Oy0).items;k=_.W(k,Oy0).handlerData;var R,V;if(S&&k&&((R=this.data)==null?void 0:(V=R.handlerDatas)==null?void 0:V.indexOf(k))>-1){S=S.filter(function(h){return(h=E.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",h))&&!E.isGuideItemPresent(h)});
var N;if(k==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((N=this.data)==null?0:N.items)&&(R=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),R>-1)){this.splice.apply(this,["data.items",R+1,0].concat(_.$e(S)));return}this.unshift.apply(this,["data.items"].concat(_.$e(S)))}}};
_.I.isGuideItemPresent=function(k){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(k,this.data.items)!==-1)return!0;var E=this.data.items.find(function(S){return!!S.guideCollapsibleEntryRenderer});
if((E==null?0:E.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(k,E.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.I.getEntryIndexMatchingId=function(k,E){var S=this;return E.findIndex(function(R){return S.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===k})};
_.I.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(k,E){var S=this;return E.findIndex(function(R){return S.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",R)===k})};
_.I.handleRemoveFromGuideSectionAction=function(k){if(_.W(k,GDG)){var E=_.W(k,GDG).guideEntryId;k=_.W(k,GDG).handlerData;var S,R;E&&k&&((S=this.data)==null?void 0:(R=S.handlerDatas)==null?void 0:R.indexOf(k))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(E,this.data.items),this.removeFromCollapsedSection(E,this.data.items))}};
_.I.removeFromExpandedSection=function(k,E){k=this.getEntryIndexMatchingId(k,E);k!==-1&&this.splice("data.items",k,1)};
_.I.removeFromCollapsedSection=function(k,E){var S=E.findIndex(function(R){return!!R.guideCollapsibleEntryRenderer});
S!==-1&&(E=E[S].guideCollapsibleEntryRenderer.expandableItems)&&(k=this.getEntryIndexMatchingId(k,E),k!==-1&&this.splice("data.items."+S+".guideCollapsibleEntryRenderer.expandableItems",k,1))};
_.I.activeEndpointChanged=function(){for(var k=_.Cc(this.hostElement).querySelector("#items").children,E=0,S=k.length;E<S;E++)k[E].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.I.guideOpenedChanged=function(){for(var k=_.Cc(this.hostElement).querySelector("#items").children,E=0,S=k.length;E<S;E++)k[E].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
sR.prototype.guideOpenedChanged=sR.prototype.guideOpenedChanged;sR.prototype.activeEndpointChanged=sR.prototype.activeEndpointChanged;sR.prototype.persistentGuideChanged=sR.prototype.persistentGuideChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],sR.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.TF.YtLazyListBehavior),_.l("design:type",Object)],sR.prototype,"ytLazyListBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],sR.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],sR.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sR.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",String)],sR.prototype,"type",void 0);_.Z([_.H({value:20}),_.l("design:type",Number)],sR.prototype,"initialCount",void 0);_.Z([_.H({value:10}),_.l("design:type",Number)],sR.prototype,"targetFramerate",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],sR.prototype,"autoFill",void 0);_.Z([_.H({value:50}),_.l("design:type",Number)],sR.prototype,"renderDelay",void 0);
_.Z([_.il("guidePersistentAndVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sR.prototype,"persistentGuideChanged",null);_.Z([_.ac("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sR.prototype,"activeEndpointChanged",null);_.Z([_.ac("guideOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sR.prototype,"guideOpenedChanged",null);
_.Z([_.D({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],sR);
_.b(sR,"ytd-guide-section-renderer",function(){if(Ac0!==void 0)return Ac0;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Ac0=k},{mode:_.GN("kevlar_poly_si_batch_j073")?1:2});var rcW;var lz=function(){return _.p.apply(this,arguments)||this};
_.y(lz,_.p);_.mt.Object.defineProperties(lz.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],lz.prototype,"rendererBehaviors",void 0);_.Z([_.H(),_.l("design:type",Object)],lz.prototype,"data",void 0);_.Z([_.H(),_.U("data.signInButton.buttonRenderer.style"),_.l("design:type",Object),_.l("design:paramtypes",[])],lz.prototype,"alignByText",null);_.Z([_.D({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],lz);
_.b(lz,"ytd-guide-signin-promo-renderer",function(){if(rcW===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);rcW=k}k=rcW;return k},{mode:1});var ML=function(){var k=_.p.apply(this,arguments)||this;k.showFooter=!1;return k};
_.y(ML,_.p);ML.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}}}}};
ML.prototype.attached=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1){E=_.en().resolve(_.mz(_.kg));if(!E)return S.jumpTo(0);E.setGuideData(k.hostElement);return S.yield(0,3)}k.ytLazyListBehavior.initialCount=2;return S.return()})};
ML.prototype.onMouseExit=function(){_.Y("web_guide_hover_expansion")&&_.zR(this.hostElement,"yt-guide-mouseleaved",[])};
ML.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
ML.prototype.dataChanged=ML.prototype.dataChanged;ML.prototype.onMouseExit=ML.prototype.onMouseExit;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ML.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.TF.YtLazyListBehavior),_.l("design:type",Object)],ML.prototype,"ytLazyListBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ML.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ML.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],ML.prototype,"showFooter",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],ML.prototype,"autoFill",void 0);_.Z([_.nv("mouseleave"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ML.prototype,"onMouseExit",null);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ML.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-guide-renderer",disableElementRegistration:!0})],ML);
_.b(ML,"ytd-guide-renderer",function(){if(pAP!==void 0)return pAP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return pAP=k},{mode:_.GN("kevlar_poly_si_batch_j073")?1:2});var u0P;var qL=function(){var k=_.p.apply(this,arguments)||this;k.systemIcons=_.Y("kevlar_system_icons");k.frostedGlass=_.Y("web_frosted_glass");k.getEndpointForm=function(){return FJA(k.data)};
return k};
_.y(qL,_.p);_.I=qL.prototype;_.I.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.I.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.$n(this.data.formattedTitle))};
_.I.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.I.onDown=function(){this.interaction.triggerDown()};
_.I.onUp=function(){this.interaction.triggerUp()};
_.I.onTap=function(k){if(this.data.serviceEndpoint){var E;_.Y("shorts_controller_retrieve_seedless_sequence_v2")&&((E=_.W(this.data.serviceEndpoint,_.hg))==null?void 0:E.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):WJT(this.data.serviceEndpoint,this);k.preventDefault()}else{var S;((S=this.data)==null?0:S.navigationEndpoint)&&!_.v9(_.vT(k),this.hostElement,["A".toString()])&&_.Me(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.I.computeActive=function(k,E){if(!k)return!1;var S=k.navigationEndpoint;k=k.serviceEndpoint;if(!S&&!k||!E)return!1;if(S){k=_.W(S,_.Ny);var R=_.W(E,_.Ny);if(k&&R)return k.browseId===R.browseId&&k.params===R.params;var V;S=(V=_.W(S.commandMetadata,_.Sd))==null?void 0:V.url;var N;E=(N=_.W(E.commandMetadata,_.Sd))==null?void 0:N.url;return!(!S||!E||S!==E&&S!==_.Xu(E))}return this.isActiveShortsTab(k,E)};
_.I.isActiveShortsTab=function(k,E){E=!!_.W(E,_.hg)||!!_.W(E,_.b3);return(!!_.W(k,_.hg)||!!_.W(k,_.b3))&&E};
_.I.computeTitle=function(k,E){return E?"":_.$n(k)};
_.mt.Object.defineProperties(qL.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
qL.prototype.onTap=qL.prototype.onTap;qL.prototype.onUp=qL.prototype.onUp;qL.prototype.onDown=qL.prototype.onDown;qL.prototype.onActiveStateChange=qL.prototype.onActiveStateChange;qL.prototype.dataChanged=qL.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],qL.prototype,"ytComponentBehavior",void 0);
_.Z([_.g(_.A$),_.l("design:type",Object)],qL.prototype,"ironButtonState",void 0);_.Z([_.H(),_.l("design:type",Object)],qL.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],qL.prototype,"activeEndpoint",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],qL.prototype,"noLabels",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.l("design:type",Boolean)],qL.prototype,"isActive",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qL.prototype,"systemIcons",void 0);_.Z([_.JO("yt-interaction"),_.l("design:type",Object)],qL.prototype,"interaction",void 0);_.Z([_.U("isActive"),_.l("design:type",Object),_.l("design:paramtypes",[])],qL.prototype,"ariaSelected",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qL.prototype,"frostedGlass",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qL.prototype,"dataChanged",null);_.Z([_.il("isActive"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qL.prototype,"onActiveStateChange",null);_.Z([_.nv("down"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qL.prototype,"onDown",null);
_.Z([_.nv("up"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],qL.prototype,"onUp",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],qL.prototype,"onTap",null);_.Z([_.D({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],qL);
_.b(qL,"ytd-mini-guide-entry-renderer",function(){if(u0P!==void 0)return u0P;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return u0P=k},{mode:_.GN("kevlar_poly_si_batch_j063")?1:2});var x9P;var zf=function(){var k=_.p.apply(this,arguments)||this;k.allVideosCount=0;k.noLabels=_.Y("kevlar_mini_guide_no_labels")||_.Y("kevlar_modern_mini_guide");k.frostedGlass=_.Y("web_frosted_glass");return k};
_.y(zf,_.p);_.I=zf.prototype;_.I.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.I.onMouseEnter=function(){_.Y("web_guide_hover_expansion")&&_.zR(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.I.visibleChanged=function(){if(this.visible&&!this.data){var k=_.en().resolve(_.mz(_.kg));k&&k.setGuideData(this.hostElement)}};
_.I.dataChanged=function(){var k=_.Y("kevlar_modern_mini_guide"),E;var S=(E=this.data)==null?void 0:E.items;E=this.allVideosCount;var R=[];if(S){for(var V=[],N=_.n(S),h=N.next();!h.done;h=N.next())if(h=h.value,h.guideSubscriptionsSectionRenderer){var J=void 0;V=((J=h.guideSubscriptionsSectionRenderer)==null?void 0:J.items)||[]}S=_.n(S);for(N=S.next();!N.done;N=S.next())if(N=N.value,h=void 0,(h=N.guideSectionRenderer)==null?0:h.items)for(h=void 0,N=_.n((h=N.guideSectionRenderer)==null?void 0:h.items),
h=N.next();!h.done;h=N.next()){h=h.value;var m=void 0,a=void 0;J=h.guideEntryRenderer||_.W((m=h)==null?void 0:(a=m.guideCollapsibleSectionEntryRenderer)==null?void 0:a.headerEntry,y9P);m=[];a=[];var T=void 0;if(((T=J)==null?void 0:T.targetId)==="subscriptions-guide-item")m=V;else{var w=T=void 0;if((T=h)==null?0:(w=T.guideCollapsibleSectionEntryRenderer)==null?0:w.sectionItems)a=m=h.guideCollapsibleSectionEntryRenderer.sectionItems}oqx(R,J,k?m:[]);if(a.length>0)for(h=_.n(a),J=h.next();!J.done;J=h.next())J=
J.value,a=_.W(J,tYR),m=void 0,a=a&&(a.alwaysShow||E)?_.W((m=a)==null?void 0:m.entryRenderer,y9P):_.W(J,y9P),oqx(R,a,[])}}this.miniGuideItems=R};
_.I.activeEndpointChanged=function(){for(var k=this.items.children,E=0;E<k.length;E++)k[E].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.I.registerWithViewTransitionManager=function(){var k=this;_.uM(_.ZJ,function(){var E=_.en().resolve(_.mz(_.Au));if(E&&E.isAnyTransitionEnabled){var S={};E.viewTransitionCoordinator.registerElement(k.hostElement,(S.slide="mini-guide-page-transition",S))}})};
zf.prototype.activeEndpointChanged=zf.prototype.activeEndpointChanged;zf.prototype.dataChanged=zf.prototype.dataChanged;zf.prototype.visibleChanged=zf.prototype.visibleChanged;zf.prototype.onMouseEnter=zf.prototype.onMouseEnter;_.Z([_.g(_.zm),_.l("design:type",Object)],zf.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],zf.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],zf.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],zf.prototype,"ytComponentBehavior",void 0);_.Z([_.JO("#items"),_.l("design:type",Object)],zf.prototype,"items",void 0);_.Z([_.H(),_.l("design:type",Object)],zf.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],zf.prototype,"visible",void 0);_.Z([_.H(),_.l("design:type",Object)],zf.prototype,"miniGuideItems",void 0);_.Z([_.H({selector:_.Dq1}),_.l("design:type",Object)],zf.prototype,"allVideosCount",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],zf.prototype,"noLabels",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],zf.prototype,"frostedGlass",void 0);
_.Z([_.nv("mouseenter"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zf.prototype,"onMouseEnter",null);_.Z([_.ac("visible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zf.prototype,"visibleChanged",null);_.Z([_.ac("data","allVideosCount"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zf.prototype,"dataChanged",null);
_.Z([_.ac("activeEndpoint"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zf.prototype,"activeEndpointChanged",null);_.Z([_.D({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],zf);
_.b(zf,"ytd-mini-guide-renderer",function(){if(x9P===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);x9P=k}k=x9P;return k},{mode:1});var L6Y;var jiI=/^[\x00-\x7F]+$/,QG=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(QG,_.p);_.mt.Object.defineProperties(QG.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var k,E=_.$n((k=this.data)==null?void 0:k.handle);if(E)return _.DE("@"+E)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var k=_.$n(this.displayHandle),E,S=_.$n((E=this.data)==null?void 0:E.handleUrl);if(k&&S)return _.DE(S+k)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var k=_.$n(this.displayHandle);if(k&&!jiI.test(k)){var E;return(E=this.data)==null?void 0:E.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var k=_.$n(this.displayHandleUrl),E,S=_.$n((E=this.data)==null?void 0:E.urlInfoText);if(k&&S)return _.DE(S+" "+k)}}});
_.Z([_.H(),_.l("design:type",Object)],QG.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],QG.prototype,"displayHandle",null);_.Z([_.U("displayHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],QG.prototype,"displayHandleUrl",null);_.Z([_.U("displayHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],QG.prototype,"warningText",null);
_.Z([_.U("displayHandleUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],QG.prototype,"urlInfoTextWithUrl",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],QG.prototype,"darkerDarkTheme",void 0);_.Z([_.D({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],QG);
_.b(QG,"ytd-handles-claiming-confirm-dialog-content",function(){if(L6Y!==void 0)return L6Y;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return L6Y=k},{mode:1});var D9A;var OR=function(){var k=_.p.apply(this,arguments)||this;k.okButtonOverride={style:"mono",type:"outline",size:"M"};return k};
_.y(OR,_.p);OR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
OR.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],OR.prototype,"okButtonOverride",void 0);_.Z([_.H(),_.l("design:type",Object)],OR.prototype,"data",void 0);_.Z([_.D({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],OR);
_.b(OR,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(D9A!==void 0)return D9A;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return D9A=k},{mode:1});var $9P;var f63=/^[\x00-\x7F]+$/,Gf=function(){var k=_.p.apply(this,arguments)||this;k.isLoading=!1;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(Gf,_.p);Gf.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var k;this.selectedHandle=(k=this.handleInput)==null?void 0:k.value;this.onSelectedHandleChanged(this.selectedHandle);_.zR(this.hostElement,"yt-refit-popups-action")}};
_.mt.Object.defineProperties(Gf.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var k;return(k=this.data)==null?void 0:k.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.DE("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.DE(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!f63.test(this.selectedHandle)){var k;return(k=this.data)==null?void 0:k.warningText}}}});
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Gf.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Gf.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],Gf.prototype,"selectedHandle",void 0);_.Z([_.H(),_.l("design:type",Object)],Gf.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",Function)],Gf.prototype,"onSelectedHandleChanged",void 0);_.Z([_.JO("#channel-handle-input"),_.l("design:type",Object)],Gf.prototype,"handleInput",void 0);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gf.prototype,"handleUrlPrefix",null);_.Z([_.U("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gf.prototype,"displayHandle",null);_.Z([_.U("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gf.prototype,"displayHandleUrl",null);_.Z([_.U("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],Gf.prototype,"warningText",null);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Gf.prototype,"darkerDarkTheme",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.Z([_.D({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Gf);
_.b(Gf,"ytd-handles-claiming-edit-dialog-content",function(){if($9P!==void 0)return $9P;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return $9P=k},{mode:1});var vUx;var CD=function(){var k=_.p.apply(this,arguments)||this;k.actionButtonOverride={style:"mono",type:"filled",size:"M"};k.cancelButtonOverride={style:"mono",type:"text",size:"M"};k.selectButtonDisabled=!1;k.isLoading=!1;k.hasSelectedHandleEventListener=!1;k.selectedHandleChanged=function(E){k.selectedHandle=E};
return k};
_.y(CD,_.p);_.I=CD.prototype;_.I.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.I.onDataChanged=function(){var k,E;this.selectedHandle=(E=_.W((k=this.data)==null?void 0:k.inputField,loP))==null?void 0:E.handle};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onCancel=function(){this.selectedHandle="";_.qe(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.onSelectHandle=function(){var k=this;if(this.selectedHandle!==void 0){var E;((E=this.data)==null?void 0:E.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(S,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.A0(k.hostElement,_.$n(R.newHandleUpdateStatus.errorMessage)),
k.isLoading=!1;else{var V;if((V=k.data)==null?0:V.onChannelUpdateSuccess){S=k.data.onChannelUpdateSuccess;var N,h;if(R=(N=_.W(S,_.Xg))==null?void 0:(h=N.popup)==null?void 0:h.handlesClaimingConfirmDialogRenderer)R.handle=_.DE(k.selectedHandle);k.ytComponentBehavior.resolveCommand(S);_.qe(k.hostElement,"yt-close-popup-action",[k.is])}else k.isLoading=!1}},
onServerError:function(){var S;k.content&&((S=k.content)==null?0:S.handleInput)&&k.content.handleInput.validate();k.isLoading=!1;_.A0(k.hostElement,_.Vi("TRY_AGAIN_LATER"))}}}))}};
_.I.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
CD.prototype.onDataChanged=CD.prototype.onDataChanged;CD.prototype.onSelectedHandleChanged=CD.prototype.onSelectedHandleChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],CD.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],CD.prototype,"actionButtonOverride",void 0);_.Z([_.H(),_.l("design:type",Object)],CD.prototype,"cancelButtonOverride",void 0);_.Z([_.H(),_.l("design:type",Object)],CD.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",String)],CD.prototype,"selectedHandle",void 0);_.Z([_.H(),_.l("design:type",Object)],CD.prototype,"selectButtonDisabled",void 0);_.Z([_.H(),_.l("design:type",Object)],CD.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",Object)],CD.prototype,"hasSelectedHandleEventListener",void 0);_.Z([_.H(),_.l("design:type",Object)],CD.prototype,"handleInput",void 0);
_.Z([_.il("selectedHandle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CD.prototype,"onSelectedHandleChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],CD.prototype,"onDataChanged",null);_.Z([_.JO("ytd-handles-claiming-edit-dialog-content"),_.l("design:type",Object)],CD.prototype,"content",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],CD.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],CD.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.D({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],CD);
_.b(CD,"ytd-handles-claiming-edit-dialog-renderer",function(){if(vUx!==void 0)return vUx;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vUx=k},{mode:1});var b$t;var kQ=function(){return _.p.apply(this,arguments)||this};
_.y(kQ,_.p);_.mt.Object.defineProperties(kQ.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null?0:k.handle){var E;return _.DE("@"+_.$n((E=this.data)==null?void 0:E.handle))}}}});
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],kQ.prototype,"formattedHandle",null);_.Z([_.H(),_.l("design:type",Object)],kQ.prototype,"data",void 0);_.Z([_.D({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],kQ);
_.b(kQ,"ytd-handles-claiming-radio-option-renderer",function(){if(b$t!==void 0)return b$t;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return b$t=k},{mode:1});var Z$R;var d9P=/^[\x00-\x7F]+$/,EK=function(){var k=_.p.apply(this,arguments)||this;k.initialRadioIndex="-1";k.isLoading=!1;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.maybeSubmitFeedback=function(){k.feedbackSurveyRenderer.submitSurvey()};
return k};
_.y(EK,_.p);EK.prototype.updateSelectedHandleIndexFromBinding=function(k){this.selectedRadioIndex=+k.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(k)};
EK.prototype.selectedHandleChanged=function(k){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var E;this.selectedHandle=(E=this.handleInput)==null?void 0:E.value;this.onSelectedHandleChanged(k)}};
_.mt.Object.defineProperties(EK.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var k;return(((k=this.data)==null?void 0:k.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var k;return this.ytRendererBehavior.getSimpleString((k=this.data)==null?void 0:k.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.DE("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.DE(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!d9P.test(this.selectedHandle)){var k;return(k=this.data)==null?void 0:k.warningText}}}});
_.Z([_.H(),_.l("design:type",Object)],EK.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],EK.prototype,"initialRadioIndex",void 0);_.Z([_.H(),_.l("design:type",Number)],EK.prototype,"selectedRadioIndex",void 0);_.Z([_.H(),_.l("design:type",String)],EK.prototype,"selectedHandle",void 0);_.Z([_.H(),_.l("design:type",Object)],EK.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",Function)],EK.prototype,"onSelectedHandleChanged",void 0);
_.Z([_.H(),_.l("design:type",Function)],EK.prototype,"onSelectedRadioIndexChanged",void 0);_.Z([_.JO("#channel-handle-input"),_.l("design:type",Object)],EK.prototype,"handleInput",void 0);_.Z([_.JO("ytd-feedback-survey-renderer"),_.l("design:type",Object)],EK.prototype,"feedbackSurveyRenderer",void 0);_.Z([_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],EK.prototype,"radioButtonLength",null);
_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],EK.prototype,"handleUrlPrefix",null);_.Z([_.U("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],EK.prototype,"displayHandle",null);_.Z([_.U("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],EK.prototype,"displayHandleUrl",null);_.Z([_.U("selectedHandle"),_.l("design:type",Object),_.l("design:paramtypes",[])],EK.prototype,"warningText",null);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],EK.prototype,"darkerDarkTheme",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.Z([_.D({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],EK);
_.b(EK,"ytd-handles-claiming-select-dialog-content",function(){if(Z$R!==void 0)return Z$R;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Z$R=k},{mode:1});var siU;var Se=function(){var k=_.p.apply(this,arguments)||this;k.actionButtonOverride={style:"mono",type:"filled",size:"M"};k.cancelButtonOverride={style:"mono",type:"text",size:"M"};k.initialRadioIndex="-1";k.selectButtonDisabled=!1;k.isLoading=!1;k.selectedRadioIndexChanged=function(E){k.selectedRadioIndex=Number(E.detail.value)};
k.selectedHandleChanged=function(E){k.selectedHandle=E.detail.value};
k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(Se,_.p);_.I=Se.prototype;_.I.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.I.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.I.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.zR(this.hostElement,"yt-refit-popups-action")};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.qe(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.onSelectHandle=function(){var k=this;if(this.selectedHandle!==void 0){var E;((E=this.data)==null?void 0:E.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(S,R){if(R.newHandleUpdateStatus!==void 0&&R.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&R.newHandleUpdateStatus.errorMessage)_.A0(k.hostElement,_.$n(R.newHandleUpdateStatus.errorMessage)),
k.isLoading=!1;else{var V;if((V=k.data)==null?0:V.onChannelUpdateSuccess){S=k.data.onChannelUpdateSuccess;R=_.W(S,_.Xg);var N;if(R==null?0:(N=R.popup)==null?0:N.handlesClaimingConfirmDialogRenderer)R.popup.handlesClaimingConfirmDialogRenderer.handle=_.DE(k.selectedHandle);k.ytComponentBehavior.resolveCommand(S);_.qe(k.hostElement,"yt-close-popup-action",[k.is])}else k.isLoading=!1}},
onServerError:function(){if(k.selectedRadioIndex===k.radioButtonLength){var S;k.content&&((S=k.content)==null?0:S.handleInput)&&k.content.handleInput.validate()}k.isLoading=!1;_.A0(k.hostElement,_.Vi("TRY_AGAIN_LATER"))}}}))}};
_.I.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var k,E;this.selectedHandle=(k=this.content)==null?void 0:(E=k.handleInput)==null?void 0:E.value}else this.selectedRadioIndex>=0&&((k=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(k==null?void 0:k.handle):this.selectedHandle=void 0)};
_.I.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.I.getRadioItem=function(k){if(this.radioButtonLength>k&&k>=0)return _.W(this.data.radioButton[k],is0)};
_.mt.Object.defineProperties(Se.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var k;return(((k=this.data)==null?void 0:k.radioButton)||[]).length}}});
Se.prototype.onSelectedHandleChanged=Se.prototype.onSelectedHandleChanged;Se.prototype.onSelectedHandleIndexChanged=Se.prototype.onSelectedHandleIndexChanged;Se.prototype.onDataChanged=Se.prototype.onDataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Se.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Se.prototype,"actionButtonOverride",void 0);_.Z([_.H(),_.l("design:type",Object)],Se.prototype,"cancelButtonOverride",void 0);
_.Z([_.H(),_.l("design:type",Object)],Se.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Se.prototype,"initialRadioIndex",void 0);_.Z([_.H(),_.l("design:type",Number)],Se.prototype,"selectedRadioIndex",void 0);_.Z([_.H(),_.l("design:type",String)],Se.prototype,"selectedHandle",void 0);_.Z([_.H(),_.l("design:type",Object)],Se.prototype,"selectButtonDisabled",void 0);_.Z([_.H(),_.l("design:type",Object)],Se.prototype,"isLoading",void 0);
_.Z([_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],Se.prototype,"radioButtonLength",null);_.Z([_.JO("ytd-handles-claiming-select-dialog-content"),_.l("design:type",Object)],Se.prototype,"content",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Se.prototype,"onDataChanged",null);
_.Z([_.il("selectedRadioIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Se.prototype,"onSelectedHandleIndexChanged",null);_.Z([_.il("selectedHandle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Se.prototype,"onSelectedHandleChanged",null);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Se.prototype,"darkerDarkTheme",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.D({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Se);
_.b(Se,"ytd-handles-claiming-select-dialog-renderer",function(){if(siU!==void 0)return siU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return siU=k},{mode:1});var l6t;var MgY;var Rk=function(){return _.p.apply(this,arguments)||this};
_.y(Rk,_.p);Rk.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Rk.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Rk.prototype,"data",void 0);_.Z([_.D({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Rk);
_.b(Rk,"ytd-hotkey-dialog-section-option-renderer",function(){if(MgY!==void 0)return MgY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return MgY=k},{mode:1});var q1I;var Vv=function(){return _.p.apply(this,arguments)||this};
_.y(Vv,_.p);Vv.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Vv.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Vv.prototype,"data",void 0);_.Z([_.D({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Vv);
_.b(Vv,"ytd-hotkey-dialog-section-renderer",function(){if(q1I!==void 0)return q1I;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return q1I=k},{mode:1});var Nu=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(Nu,_.p);Nu.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Nu.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Nu.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Nu.prototype,"darkerDarkTheme",void 0);_.Z([_.D({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],Nu);
_.b(Nu,"ytd-hotkey-dialog-content",function(){if(l6t!==void 0)return l6t;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return l6t=k},{mode:1});var zgW;var Ik=function(){return _.p.apply(this,arguments)||this};
_.y(Ik,_.p);Ik.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var k=document.querySelector("ytd-hotkey-dialog-content #scrollable");k&&(k.dialogElement=this.hostElement.parentElement)};
Ik.prototype.onCloseTap=function(){_.qe(this.hostElement,"yt-close-popup-action")};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ik.prototype,"data",void 0);_.Z([_.D({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Ik);
_.b(Ik,"ytd-hotkey-dialog-renderer",function(){if(zgW!==void 0)return zgW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return zgW=k},{mode:1});var QiW;var nk=function(){return _.p.apply(this,arguments)||this};
_.y(nk,_.p);nk.prototype.onYtServiceRequestError=function(){if(this.blocked){var k;var E=(k=this.data)==null?void 0:k.defaultServiceEndpoint}else{var S;E=(S=this.data)==null?void 0:S.toggledServiceEndpoint}var R;(E=(R=_.W(E,_.mzY))==null?void 0:R.onFailureAction)&&this.ytComponentBehavior.resolveCommand(E);this.updateBlockState(!this.blocked)};
nk.prototype.onYtToggleButton=function(k){this.updateBlockState(k.detail.toggled)};
nk.prototype.updateBlockState=function(k){if(k!==this.blocked){var E=this.blockedEntityKey;E&&this.ytdReduxBehavior.dispatch(_.mj("blockStateEntity",E,{key:E,blocked:k}));this.set("data.isToggled",k)}};
_.mt.Object.defineProperties(nk.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)}}});
nk.prototype.onYtToggleButton=nk.prototype.onYtToggleButton;nk.prototype.onYtServiceRequestError=nk.prototype.onYtServiceRequestError;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],nk.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],nk.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],nk.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],nk.prototype,"blockedEntityKey",void 0);
_.Z([_.H({selectorArgs:["blockedEntityKey"],selector:function(k,E){return _.Ep(k.entities,"blockStateEntity",E)}}),
_.l("design:type",Object)],nk.prototype,"blockStateEntity",void 0);_.Z([_.U("data","blockStateEntity"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],nk.prototype,"blocked",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],nk.prototype,"onYtServiceRequestError",null);
_.Z([_.nv("yt-toggle-button"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],nk.prototype,"onYtToggleButton",null);_.Z([_.D({is:"ytd-block-button",disableElementRegistration:!0})],nk);
_.b(nk,"ytd-block-button",function(){if(QiW!==void 0)return QiW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return QiW=k},
{mode:1});var O$2;var GHP;var ix=function(){return _.p.apply(this,arguments)||this};
_.y(ix,_.p);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ix.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ix.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ix.prototype,"data",void 0);_.Z([_.D({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],ix);
_.b(ix,"ytd-kids-blocklist-picker-item-renderer",function(){if(GHP!==void 0)return GHP;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return GHP=k},{mode:1});var hi=function(){return _.p.apply(this,arguments)||this};
_.y(hi,_.p);hi.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],hi.prototype,"data",void 0);_.Z([_.D({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],hi);
_.b(hi,"ytd-kids-blocklist-picker-content",function(){if(O$2!==void 0)return O$2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return O$2=
k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var C0a;var Ji=function(){var k=_.p.apply(this,arguments)||this;k.hasAnyRequestSucceeded=!1;k.hasAnyRequestFailed=!1;k.numPendingRequests=0;return k};
_.y(Ji,_.p);_.I=Ji.prototype;_.I.attached=function(){this.hostElement.setAttribute("dialog","")};
_.I.onDoneButtonTap=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.I.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.I.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.I.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.I.onPopupClosed=function(k){var E,S;if(((E=k.detail)==null?void 0:(S=E.popup)==null?void 0:S.is)==="tp-yt-paper-dialog"){var R;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((R=this.data)==null?0:R.successfulToastActionMessage)&&(k=_.ZE(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(k));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
Ji.prototype.onPopupClosed=Ji.prototype.onPopupClosed;Ji.prototype.onYtServiceRequestError=Ji.prototype.onYtServiceRequestError;Ji.prototype.onYtServiceRequestCompleted=Ji.prototype.onYtServiceRequestCompleted;Ji.prototype.onYtServiceRequestSent=Ji.prototype.onYtServiceRequestSent;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ji.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Ji.prototype,"data",void 0);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ji.prototype,"onYtServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ji.prototype,"onYtServiceRequestCompleted",null);
_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ji.prototype,"onYtServiceRequestError",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],Ji.prototype,"onPopupClosed",null);_.Z([_.D({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],Ji);
_.b(Ji,"ytd-kids-blocklist-picker-renderer",function(){if(C0a!==void 0)return C0a;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return C0a=k},{mode:1});var kvY;var EdR;var cP=function(){return _.p.apply(this,arguments)||this};
_.y(cP,_.p);cP.prototype.setTip=function(k){var E=this;this.data&&(this.tip=j$a(xtY.getInstance(),k,this.data),_.JB(this,function(){_.Me(E.hostElement,"yt-refit")}))};
cP.prototype.clearTip=function(){this.tip=void 0};
cP.prototype.computeHidden=function(k){return!k};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],cP.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.l("design:type",Boolean)],cP.prototype,"hidden",void 0);_.Z([_.H(),_.l("design:type",Object)],cP.prototype,"tip",void 0);_.Z([_.D({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],cP);
_.b(cP,"ytd-menu-popup-tip-renderer",function(){if(EdR!==void 0)return EdR;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);
return EdR=k},{mode:1});var SMT;var mv=function(){var k=_.p.apply(this,arguments)||this;k.useIcons=!1;k.systemIcons=_.Y("kevlar_system_icons");k.useListItemStyles=_.Y("web_list_item_style_for_menu_items");return k};
_.y(mv,_.p);_.I=mv.prototype;_.I.onFocus=function(){var k;(k=_.Cc(this.hostElement).querySelector("tp-yt-paper-item"))==null||k.focus()};
_.I.onTap=function(){var k=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(k&&_.W(k,_.CI))this.componentBehavior.resolveCommand(k),this.updateToggledStateInEntity();else if(k){this.componentBehavior.resolveCommand(k)||_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}});var E;((E=_.W(k,_.Ev))==null?void 0:E.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.I.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.I.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.I.updateToggledStateInEntity=function(){var k=this.data.toggleMenuServiceItemEntityKey,E=!this.data.isToggled;k&&this.ytdReduxBehavior.dispatch(_.mj("toggleMenuServiceItemEntity",k,{key:k,isToggled:E}))};
_.I.computeIcon=function(k,E,S){return(k=k?S:E)&&k.iconType?_.SF(k.iconType):""};
_.I.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.I.isIconActive=function(k){return!_.Y("toggle_menu_active_icon_killswitch")&&k};
_.mt.Object.defineProperties(mv.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.data)==null?0:k.isToggled)?(E=this.data)==null?void 0:E.toggledText:(S=this.data)==null?void 0:S.defaultText}}});
mv.prototype.toggledStateEntityChanged=mv.prototype.toggledStateEntityChanged;mv.prototype.onYtServiceRequestCompleted=mv.prototype.onYtServiceRequestCompleted;mv.prototype.onTap=mv.prototype.onTap;mv.prototype.onFocus=mv.prototype.onFocus;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],mv.prototype,"componentBehavior",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],mv.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],mv.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],mv.prototype,"useIcons",void 0);_.Z([_.H({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.l("design:type",String)],mv.prototype,"icon",void 0);
_.Z([_.H({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.v5.toggleMenuServiceItemEntitySelector}),_.l("design:type",Object)],mv.prototype,"toggleMenuServiceItemEntity",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],mv.prototype,"systemIcons",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],mv.prototype,"useListItemStyles",void 0);
_.Z([_.nv("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mv.prototype,"onFocus",null);_.Z([_.U("data.isToggled"),_.l("design:type",Object),_.l("design:paramtypes",[])],mv.prototype,"toggleButtonText",null);_.Z([_.nv("tap"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mv.prototype,"onTap",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mv.prototype,"onYtServiceRequestCompleted",null);_.Z([_.il("toggleMenuServiceItemEntity.isToggled","data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mv.prototype,"toggledStateEntityChanged",null);_.Z([_.D({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],mv);
_.b(mv,"ytd-toggle-menu-service-item-renderer",function(){if(SMT!==void 0)return SMT;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return SMT=k},{mode:1});var R$t;var ee=function(){return _.p.apply(this,arguments)||this};
_.y(ee,_.p);ee.prototype.onFocus=function(){var k;(k=_.Cc(this.hostElement).querySelector("tp-yt-paper-item"))==null||k.focus()};
_.mt.Object.defineProperties(ee.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.ZF(this.data.iconUrl)}}});
ee.prototype.onFocus=ee.prototype.onFocus;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ee.prototype,"rendererBehavior",void 0);_.Z([_.g(_.UN.YtEndpointBehavior),_.l("design:type",Object)],ee.prototype,"ytEndpointBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ee.prototype,"data",void 0);_.Z([_.nv("focus"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ee.prototype,"onFocus",null);
_.Z([_.U("data.iconUrl"),_.l("design:type",Object),_.l("design:paramtypes",[])],ee.prototype,"imageSource",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],ee);
_.b(ee,"ytd-menu-custom-icon-item-renderer",function(){if(R$t!==void 0)return R$t;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return R$t=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});_.qi(_.zy,"yt-list-item-view-model",{props:{data:_.Nq,isMenuItem:_.Nq,isCompact:_.Nq,onTap:_.sk,trailingAccessory:_.sk,hideSelectionTextChevron:_.Nq,disabled:_.Nq,inPopup:_.Nq,disableHorizontalPadding:_.Nq,isOverlay:_.Nq,isToggled:_.Nq,ariaLabel:_.Nq,ariaPressed:_.Nq}});var ak=function(){var k=_.p.apply(this,arguments)||this;k.disableBackdropFilter=_.Y("web_disable_backdrop_filter");return k};
_.y(ak,_.p);_.I=ak.prototype;
_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.I.computeAriaLabel=function(k){return k};
_.I.onPopupOpened=function(){this.items.selected=0;for(var k=_.n(_.Cc(this.items).children),E=k.next();!E.done;E=k.next())E.value.popupPositionTarget=this.positionTarget;if(k=this.popupTip||void 0)k.setTip(this.source||""),this.source=void 0;this.veData&&(k=_.Fe())&&_.Lz(k,[this.veData])};
_.I.onPopupClosed=function(){var k=this.popupTip||void 0;k&&k.clearTip()};
_.I.onIronActivate=function(k){this.shouldPersist(k)||_.qe(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(k=_.Fe())&&_.Dv(k,this.veData)};
_.I.shouldPersist=function(k){var E,S;if(((E=k.detail)==null?void 0:E.selected)===void 0||(S=this.data)==null||!S.items)return!1;var R,V;return!((V=(R=this.data.items[k.detail.selected])==null?void 0:R.toggleMenuServiceItemRenderer)==null||!V.persistentOnMenuPopup)};
_.I.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(k){return k.menuNavigationItemRenderer?!!k.menuNavigationItemRenderer.icon:k.menuServiceItemRenderer?!!k.menuServiceItemRenderer.icon:k.menuConditionalServiceItemRenderer?!!k.menuConditionalServiceItemRenderer.icon:k.menuConditionalNavigationItemRenderer?!!k.menuConditionalNavigationItemRenderer.icon:k.toggleMenuServiceItemRenderer?!!k.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
ak.prototype.onPopupClosed=ak.prototype.onPopupClosed;ak.prototype.onPopupOpened=ak.prototype.onPopupOpened;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],ak.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],ak.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],ak.prototype,"veData",void 0);_.Z([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.l("design:type",String)],ak.prototype,"ariaLabel",void 0);_.Z([_.H({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],ak.prototype,"useIcons",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ak.prototype,"disableBackdropFilter",void 0);_.Z([_.JO("#items"),_.l("design:type",Object)],ak.prototype,"items",void 0);_.Z([_.JO("ytd-menu-popup-tip-renderer"),_.l("design:type",Object)],ak.prototype,"popupTip",void 0);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ak.prototype,"onPopupOpened",null);
_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ak.prototype,"onPopupClosed",null);_.Z([_.D({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],ak);
_.b(ak,"ytd-menu-popup-renderer",function(){if(kvY!==void 0)return kvY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return kvY=k},{mode:1});var V3P;var Not=_.f(function(k){k=_.dJ(k,{icon:void 0});var E=k.data;k=k.icon;var S=function(){return E().iconBadgeText},R={},V=_.SQ("yt-spec-icon-badge-shape",function(){a:switch(E().iconBadgeType){case "notification":var N="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":N="yt-spec-icon-badge-shape--type-cart";break a;default:N=""}return N},function(){a:switch(E().iconBadgeStyle){case "overlay":var N="yt-spec-icon-badge-shape--style-overlay";
break a;default:N=""}return N},(R["yt-spec-icon-badge-shape--text-size-small"]=function(){var N=S();
return!!((N==null?0:N.length)&&N.length>2)},R));
return _.e("yt-icon-badge-shape",null,_.e(_.t,{cond:k,then:function(N){return _.e("div",{class:V},_.e("div",{class:"yt-spec-icon-badge-shape__icon"},_.e(_.i_,{icon:N})),_.e(_.t,{cond:S,then:function(h){return _.e("div",{class:"yt-spec-icon-badge-shape__badge"},h)}}))}}))},"gj");
Not.idomCompat=!0;_.qi(Not,"yt-icon-badge-shape",{props:{data:_.Nq,icon:_.Nq}});var ti=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};k.unseenCount=0;k.isOverlay=!1;return k};
_.y(ti,_.p);_.I=ti.prototype;_.I.attached=function(){var k=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(E){k.onServiceWorkerMessage(E)})};
_.I.onDataChanged=function(){this.isAttached&&!this.JSC$20721_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20721_lastData=this.data};
_.I.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.I.computeIcon=function(){var k,E;return(k=this.data)==null?void 0:(E=k.icon)==null?void 0:E.iconType};
_.I.onServiceWorkerMessage=function(k){k.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.I.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.W(this.data.updateUnseenCountEndpoint,_.Ev)&&_.W(this.data.updateUnseenCountEndpoint,_.Ev).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.I.handleUpdateNotificationsUnseenCountAction=function(k){var E=this;k=_.W(k,CRR);k!=null&&k.unseenCount&&k.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(k.unseenCount),_.ZJ.addLowPriorityJob(function(){E.data.updateUnseenCountEndpoint&&E.ytComponentBehavior.resolveCommand(E.data.updateUnseenCountEndpoint)},k.timeoutMs))};
_.I.onClick=function(){_.Me(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var k=_.zR(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),E=this.data.menuRequest;k&&k.length===1&&k[0]?_.qe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):E&&this.ytComponentBehavior.resolveCommand(E)};
_.I.handleTopbarMenuClosedAction=function(k){k==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.I.toggleIconState=function(k){this.iconButton&&(this.iconButton.pressed=k)};
_.I.sendUnseenCountRequest=function(k){var E=this;_.uM(_.ZJ,function(){E.ytComponentBehavior.resolveCommand(k)})};
_.I.updateCountUI=function(k){this.set("unseenCount",k<9?k:"9+")};
_.mt.Object.defineProperties(ti.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
ti.prototype.handleUpdateNotificationsUnseenCountAction=ti.prototype.handleUpdateNotificationsUnseenCountAction;ti.prototype.onDataChanged=ti.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ti.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.Jy),_.l("design:type",Object)],ti.prototype,"ytdOpenPopupBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ti.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ti.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],ti.prototype,"unseenCount",void 0);_.Z([_.H(),_.l("design:type",Object)],ti.prototype,"isOverlay",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],ti.prototype,"showTooltips",void 0);_.Z([_.JO("yt-icon-button"),_.l("design:type",Object)],ti.prototype,"iconButton",void 0);
_.Z([_.U("unseenCount"),_.l("design:type",Object),_.l("design:paramtypes",[])],ti.prototype,"showNotificationCount",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ti.prototype,"onDataChanged",null);_.Z([_.nv("yt-update-notifications-unseen-count-action"),_.l("design:type",Function),_.l("design:paramtypes",[Object]),_.l("design:returntype")],ti.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.Z([_.D({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],ti);
_.b(ti,"ytd-notification-topbar-button-renderer",function(){if(V3P!==void 0)return V3P;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return V3P=k},{mode:_.GN("kevlar_poly_si_batch_j025")?1:2});var IMW;var TE=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return k};
_.y(TE,_.p);TE.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}}}}}};
TE.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
TE.prototype.onDarkModeToggled=function(k){this.dark=k};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],TE.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],TE.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],TE.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],TE.prototype,"data",void 0);_.Z([_.H({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],TE.prototype,"dark",void 0);
_.Z([_.D({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],TE);
_.b(TE,"yt-pdg-buy-flow-header-renderer",function(){if(IMW!==void 0)return IMW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return IMW=k},{mode:1});var ndY;var idP;var w2=function(){var k=_.p.apply(this,arguments)||this;k.immediateValue=0;k.isDarkTheme=!1;k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(w2,_.p);_.I=w2.prototype;_.I.created=function(){_.v7.requestAvailability()};
_.I.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.I.dataChanged=function(){var k=_.Cc(this.hostElement).querySelector("#color-slider");k.immediateValue&&this.updateSliderKnobAndGradientStyles(k.immediateValue);this.data.notches[0].knobColorArgb&&_.VO(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Kc(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Mg("HTML_DIR")==="rtl"&&_.Cc(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.I.onSliderImmediateChange=function(){var k=_.Cc(this.hostElement).querySelector("#color-slider");k.dragging&&(k.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(k.immediateValue),this.updateSliderKnobAndGradientStyles(k.immediateValue)),this.updateSliderAria())};
_.I.onSliderChange=function(){var k=_.Cc(this.hostElement).querySelector("#color-slider");k.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(k.immediateValue),this.updateSliderKnobAndGradientStyles(k.immediateValue));this.updateSliderAria()};
_.I.updateSliderAria=function(){var k=_.Cc(this.hostElement).querySelector("#color-slider"),E=_.Cc(this.hostElement).querySelector("#color-slider");E=_.$n(this.data.notches[E.immediateValue].tierValue);_.PCb()&&_.Me(this.hostElement,"iron-announce",{text:E});k.setAttribute("aria-valuetext",E)};
_.I.updateSuperThanksSelectedTierEntity=function(k){if(k!==this.immediateValue){var E,S,R=this==null?void 0:(E=this.data)==null?void 0:(S=E.superThanksSelectedTierEntity)==null?void 0:S.key;R&&R.length>0&&this.ytdReduxBehavior.dispatch(_.mj("superThanksSelectedTierEntity",R,{key:R,index:k}))}};
_.I.onDarkModeToggledAction=function(k){this.isDarkTheme=k};
_.I.updateSliderKnobAndGradientStyles=function(k){this.immediateValue=k;k=this.data.notches[k];if(k==null?0:k.knobColorArgb)var E={"--ytd-pdg-color-slider-knob-color":_.Kc(k.knobColorArgb)};(k==null?0:k.linearGradientCssStyle)&&E!==null&&(E=Object.assign({},E,{"--ytd-pdg-color-slider-active-color":k==null?void 0:k.linearGradientCssStyle}));E!==null&&_.VO(this.hostElement,E)};
w2.prototype.onSliderChange=w2.prototype.onSliderChange;w2.prototype.onSliderImmediateChange=w2.prototype.onSliderImmediateChange;w2.prototype.dataChanged=w2.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],w2.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],w2.prototype,"immediateValue",void 0);_.Z([_.H(),_.l("design:type",Number)],w2.prototype,"maxMarkers",void 0);
_.Z([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:bhx}),_.l("design:type",Object)],w2.prototype,"superThanksSelectedTierEntity",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],w2.prototype,"isDarkTheme",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],w2.prototype,"ytdReduxBehavior",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w2.prototype,"dataChanged",null);
_.Z([_.nv("immediate-value-change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w2.prototype,"onSliderImmediateChange",null);_.Z([_.nv("change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],w2.prototype,"onSliderChange",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],w2);
_.b(w2,"ytd-pdg-color-slider-renderer",function(){if(idP!==void 0)return idP;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return idP=k},{mode:1});var h$T;var JTa;var PP=null;
_.F6({is:"ytd-comment-input",_template:function(){if(JTa!==void 0)return JTa;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return JTa=k},
behaviors:[_.Vp1.YtHostElementBehavior,_.YD,_.OE.YtComponentBehavior,_.aA.YtRendererstamperBehavior,_.EcA.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 _.kP}},
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",_.Ic(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;_.JH();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ic(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(k){k=k.detail;k=k.isCustomEmoji?k.shortcuts[0]:k.emojiId;var E=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(E,k);this.maybeUpdateTextDirection_();_.Me(this.hostElement,"input")},
getInputRange_:function(){var k=_.zc();if(k){k=k.getBrowserRangeObject();for(var E=k.commonAncestorContainer;E;){if(E===this.getEditableTextArea_())return k;E=E.parentNode}}k=this.getEditableTextArea_();k=_.uG(k,k.childNodes.length);k.select();return k.getBrowserRangeObject()},
insertTextWithEmojis_:function(k,E,S){(E=this.emojiManager.createDocumentFragment(E,!0,!1,S===void 0?!0:S))&&E.childNodes.length!==0&&(k.collapsed||k.deleteContents(),S=E.lastChild,k.insertNode(E),_.qkY(S).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var k=_.zc();if(k){var E=k.JSC$11343_getStartNode(),S=k.JSC$11343_getEndNode();if(XtI(E)&&XtI(S)){var R=k.JSC$11343_getStartOffset(),V;if(_.Ge&&E.nodeType===Node.ELEMENT_NODE&&(V=_.led(E)))_.uG(V,0).select();else{V=OH(E)?E:_.lh(E,OH);var N=OH(S)?S:_.lh(S,OH);if(V||N)if(k.isCollapsed()){if(E.nodeType===Node.TEXT_NODE){k=!0;R===E.length&&(k=!1);if(PP==="end"||PP==="right")k=!1;E=E.parentNode;k=[].concat(_.$e(E.parentNode.childNodes)).indexOf(E)+(k?0:1);_.uG(E.parentNode,
k).select()}}else V?V.previousSibling&&V.previousSibling.length>0?_.xx(S,k.JSC$11343_getEndOffset(),V.previousSibling,V.previousSibling.length-1).select():(E=document.createTextNode("\u200b"),V.parentNode.insertBefore(E,V),_.xx(S,k.JSC$11343_getEndOffset(),E,0).select()):N&&(N.nextSibling&&N.nextSibling.length>0?_.xx(E,k.JSC$11343_getStartOffset(),N.nextSibling,1).select():(S=document.createTextNode("\u200b"),N.parentNode.insertBefore(S,N.nextSibling),_.xx(E,k.JSC$11343_getStartOffset(),S,S.length).select()));
PP=null}}else PP=null}else PP=null},
leftKeyPressed_:function(){PP="left"},
rightKeyPressed_:function(){PP="right"},
endKeyPressed_:function(){PP="end"},
maybeDeleteChip_:function(){var k=A9T(!0);if(k){var E=_.zc(),S=E.JSC$11343_getStartNode();E=E.JSC$11343_getStartOffset();_.HD(S,E,k,k.childNodes.length).select()}},
maybeBackspaceChip_:function(){var k=A9T(!1);if(k){var E=_.zc(),S=E.JSC$11343_getStartNode();E=E.JSC$11343_getStartOffset();_.HD(S,E,k,0).select()}},
maybeBackspaceChipWordMode_:function(k){var E=_.zc();if(E.isCollapsed()){var S=E.JSC$11343_getStartNode();E=E.JSC$11343_getStartOffset();var R=r9T(S,E,!0);R&&(_.HD(S,E,R,0).select(),document.execCommand("delete"),k.preventDefault(),k.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(k){var E=_.zc();if(E.isCollapsed()){var S=E.JSC$11343_getStartNode();E=E.JSC$11343_getStartOffset();var R=r9T(S,E,!1);R&&(_.HD(S,E,R,R.childNodes.length).select(),document.execCommand("delete"),k.preventDefault(),k.stopImmediatePropagation())}},
onContentClick:function(k){k.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(k){k.defaultPrevented||k.currentTarget.tagName==="YTD-COMMENT-INPUT"&&OH(k.target)&&k.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Cc(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Cc(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(k,E){k=UX0(k,this.emojiManager,E).cloneNode(!0);for(E=k.firstChild;E;)if(E.nodeType!==1)E=E.nextSibling;else switch(E.tagName){case "BR":var S=_.F$();_.koY(S,E);E=S.nextSibling;break;case "DIV":(S=E.lastChild)&&E.nextSibling&&_.g9(_.F$(),S);E.previousSibling&&(E.previousSibling.nodeType===1||E.previousSibling.nodeType===3&&!E.previousSibling.textContent.endsWith("\n"))&&_.X$(_.F$(),E);S&&S.nodeName==="BR"&&_.Ua(S);S=E;E.hasChildNodes()?(E=E.firstChild,
_.Ey2(S)):(E=E.nextSibling,_.Ua(S));break;default:E=E.nextSibling}return urP(k)},
setTextAreaValue:function(k){k||(k="");var E=this.getEditableFormattedString_();E.text="";this.getEditableTextArea_().innerText="";typeof k==="string"&&(k={runs:[{text:k}]});E.text=k},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();PP=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var k=this.getEditableTextArea_();k&&(_.uG(k,k.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Mg("HTML_DIR")==="rtl"){var k=this.getEditableTextArea_(),E=this.getTextAreaValue()!==""?"auto":"rtl";k.setAttribute("dir",E)}},
handleInputEvent_:function(){var k=null;if(this.isEmojiButtonDisplayed){var E=this.getInputRange_();E&&(k=this.emojiInput.retrieveTextBeforeRange(E))}this.insertText_(k,!0);this.updateCharCount_();k=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=k.scrollHeight>k.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var k=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:k})},
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(k){this.isEmojiButtonDisplayed&&(k.preventDefault(),k.stopImmediatePropagation(),k=k.clipboardData.getData("text/plain"),this.insertText_(k,!1,!1),_.Me(this.hostElement,"input"))},
insertText_:function(k,E,S){E=E===void 0?!1:E;S=S===void 0?!0:S;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&k){var R=this.getInputRange_().cloneRange();this.emojiManager&&R&&(E&&this.emojiInput.offsetStartOfRangeBy(R,k.length),this.insertTextWithEmojis_(R,k,S),gq0(this.getEditableTextArea_().lastChild)||(R=this.getInputRange_().cloneRange()),R&&(this.emojiInput.updateSuggestions(R,k),this.updateSuggestionOffset_(R)))}},
getSimpleString:_.$n,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(k){return k?"focused":"not-focused"},
computePlaceholderText_:function(k){return this.getSimpleString(k)},
computeEditableText_:function(k){return this.getSimpleString(k)},
onPrefilledContentDismissed_:function(k){k.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(k,E){k?this.fire("yt-autonav-pause-focus"):E!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(k){var E=this.getEditableTextArea_();[].concat(_.$e(k.dataTransfer.items)).forEach(function(S){S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(R){E.appendChild(document.createTextNode(R))})});
k.preventDefault()},
preventDefault_:function(k){k.preventDefault()},
onSuggestionInsert_:function(k){this.insertTextWithEmojis_(k.detail.range,k.detail.text)},
onEmojiSuggestionClick_:function(k){this.emojiInput.insertSuggestion(k.detail)},
updateSuggestionOffset_:function(k){if(this.emojiInput&&_.Cc(this.emojiInput).querySelector("#dropdown")){var E=this.getEditableTextArea_().getBoundingClientRect().bottom,S=k.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(E-S)+5;E=this.getEditableTextArea_().getBoundingClientRect().left;k=k.getBoundingClientRect().left-E;_.Cc(this.emojiInput).querySelector("#dropdown").style.marginLeft=k+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.qG("yt-post"));return this.localStorage}});var BP=function(){var k=_.p.apply(this,arguments)||this;k.currentCommentOptionIndex=0;k.isEmojiPickerDisplayed=!1;k.emojiManager=_.kP;k.isUgcEmpty=!1;k.userGeneratedCommentChangedHandler=function(){_.Me(k.hostElement,"ytd-pdg-user-generated-comment-changed");k.isEmojiYtdCommentInputEnabled&&(k.isUgcEmpty=!k.ytdCommentInputEl.getTextAreaValue())};
k.pasteHandler=function(E){E.preventDefault();E.stopImmediatePropagation();var S;if(E=(S=E.clipboardData)==null?void 0:S.getData("text/plain"))S=document.getSelection().getRangeAt(0),S.collapsed||S.deleteContents(),E=document.createTextNode(E),S.insertNode(E),S.selectNodeContents(E),S.collapse(!1),E=window.getSelection(),E.removeAllRanges(),E.addRange(S)};
k.onDocumentClick=function(E){if(k.isEmojiPickerDisplayed){var S,R,V;!(E.target instanceof Node)||(S=E.composedPath())!=null&&S.includes(k.editableTextEl)||(R=E.composedPath())!=null&&R.includes(k.emojiButtonEl)||(V=E.composedPath())!=null&&V.includes(k.emojiPickerEl)||(k.isEmojiPickerDisplayed=!1)}};
return k};
_.y(BP,_.p);_.I=BP.prototype;_.I.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.I.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.I.detached=function(){var k;(k=this.contentEl)==null||k.removeEventListener("input",this.userGeneratedCommentChangedHandler);var E;(E=this.contentEl)==null||E.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.I.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.I.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var k;this.contentEl.textContent=this.rendererBehavior.getSimpleString((k=this.data)==null?void 0:k.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.I.reloadEmojis=function(){this.emojiPickerEl&&_.W(this.emojiPicker,_.M_5)&&this.emojiPickerEl.updateEmojiCategories()};
_.I.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.VO(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.I.handleBackgroundColorStyling=function(){var k;if((k=this.currentCommentOption)==null?0:k.commentBackgroundColorArgb){var E;_.VO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Kc((E=this.currentCommentOption)==null?void 0:E.commentBackgroundColorArgb)})}else _.VO(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.I.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var k;(k=this.contentEl)==null||k.focus()}};
_.I.onEditButtonClick=function(k){var E=document.getSelection();E&&this.contentEl&&(k.stopPropagation(),k.preventDefault(),E.selectAllChildren(this.contentEl),E.collapseToEnd())};
_.I.onContentDrop=function(k){var E=this;if(k.dataTransfer){k=_.n(k.dataTransfer.items);for(var S=k.next();!S.done;S=k.next())S=S.value,S.kind==="string"&&S.type.match("^text/plain")&&S.getAsString(function(R){var V;(V=E.contentEl)==null||V.appendChild(document.createTextNode(R))})}};
_.I.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.I.getUserGeneratedCommentText=function(){var k,E=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(k=this.contentEl)==null?void 0:k.textContent;return E?E.trim():""};
_.I.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.I.onEmojiSelect=function(k){this.ytdCommentInputEl.onEmojiSelect(k)};
_.mt.Object.defineProperties(BP.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.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 k;return!((k=this.currentCommentOption)==null||!k.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var k;if(_.W((k=this.currentCommentOption)==null?void 0:k.chipRenderer,_.t6C)){var E;return _.W((E=this.currentCommentOption)==null?void 0:E.chipRenderer,_.t6C)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var k,E;return((k=this.data)==null?0:k.commentOptionRenderers)?_.W((E=this.data)==null?void 0:E.commentOptionRenderers[this.superThanksSelectedTierEntity.index],XWP):void 0}var S,R;return((S=this.data)==null?0:S.commentOptionRenderers)?_.W((R=this.data)==null?void 0:R.commentOptionRenderers[this.currentCommentOptionIndex],XWP):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var k;return this.rendererBehavior.getSimpleString((k=this.data)==null?void 0:k.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var k;return this.rendererBehavior.getSimpleString((k=this.data)==null?void 0:k.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=_.W((k=this.data)==null?void 0:k.commentDialog,_.cHd))==null?void 0:E.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=_.W((k=this.data)==null?void 0:k.commentDialog,_.cHd))==null?void 0:E.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=_.W((k=this.data)==null?void 0:k.commentDialog,_.cHd))==null?void 0:E.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(E=_.W((k=this.data)==null?void 0:k.commentDialog,_.cHd))==null?void 0:E.emojiPicker;if(!_.W(S,_.M_5)||!_.W(S,_.M_5).categories)return!1;k=function(N){return N.emojiPickerCategoryRenderer?N.emojiPickerCategoryRenderer.emojiIds&&N.emojiPickerCategoryRenderer.emojiIds.length>0:N.emojiPickerUpsellCategoryRenderer?N.emojiPickerUpsellCategoryRenderer.emojis&&N.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var R,V;return((R=_.W(S,_.M_5))==null?0:(V=R.categories)==null?0:V.find(k))?!0:!1}}});
BP.prototype.onEmojiSelect=BP.prototype.onEmojiSelect;BP.prototype.dataChanged=BP.prototype.dataChanged;BP.prototype.currentCommentOptionChanged=BP.prototype.currentCommentOptionChanged;_.Z([_.g(_.zm),_.l("design:type",Object)],BP.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],BP.prototype,"rendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.JO("#content-dom-if"),_.l("design:type",_.oc)],BP.prototype,"contentDomIfEl",void 0);_.Z([_.JO("#content-no-emojis"),_.l("design:type",HTMLElement)],BP.prototype,"contentEl",void 0);_.Z([_.JO("#container"),_.l("design:type",HTMLElement)],BP.prototype,"containerEl",void 0);_.Z([_.JO("#comment-chip-container"),_.l("design:type",HTMLElement)],BP.prototype,"paidCommentChipContainerEl",void 0);_.Z([_.JO("#text-input"),_.l("design:type",HTMLElement)],BP.prototype,"editableTextEl",void 0);
_.Z([_.JO("#emoji-button"),_.l("design:type",HTMLElement)],BP.prototype,"emojiButtonEl",void 0);_.Z([_.JO("#emoji-picker > yt-emoji-picker-renderer"),_.l("design:type",Object)],BP.prototype,"emojiPickerEl",void 0);_.Z([_.JO("#text-input > ytd-comment-input"),_.l("design:type",Object)],BP.prototype,"ytdCommentInputEl",void 0);_.Z([_.H(),_.l("design:type",Object)],BP.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],BP.prototype,"currentCommentOptionIndex",void 0);
_.Z([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:bhx}),_.l("design:type",Object)],BP.prototype,"superThanksSelectedTierEntity",void 0);_.Z([_.H(),_.l("design:type",Object)],BP.prototype,"isEmojiPickerDisplayed",void 0);_.Z([_.H(),_.l("design:type",Object)],BP.prototype,"emojiManager",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],BP.prototype,"isUgcEmpty",void 0);
_.Z([_.il("currentCommentOption"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BP.prototype,"currentCommentOptionChanged",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BP.prototype,"dataChanged",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BP.prototype,"isEmojiYtdCommentInputEnabled",null);
_.Z([_.U("data.title"),_.l("design:type",Object),_.l("design:paramtypes",[])],BP.prototype,"title",null);_.Z([_.U("data.authorText"),_.l("design:type",Object),_.l("design:paramtypes",[])],BP.prototype,"channelName",null);_.Z([_.U("data.commentOptionRenderers","currentCommentOption"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BP.prototype,"shouldShowPaidCommentChipRenderer",null);
_.Z([_.U("data.commentOptionRenderers","currentCommentOption"),_.l("design:type",Object),_.l("design:paramtypes",[])],BP.prototype,"paidCommentChipRenderer",null);_.Z([_.U("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],BP.prototype,"currentCommentOption",null);
_.Z([_.U("data.defaultCommentText","superThanksSelectedTierEntity"),_.l("design:type",Object),_.l("design:paramtypes",[])],BP.prototype,"commentText",null);_.Z([_.U("data.placeholderText"),_.l("design:type",Object),_.l("design:paramtypes",[])],BP.prototype,"placeholderText",null);_.Z([_.U("data.commentDialog.commentDialogRenderer.editableText"),_.l("design:type",Object),_.l("design:paramtypes",[])],BP.prototype,"editableText",null);
_.Z([_.U("data.commentDialog.commentDialogRenderer.emojiButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],BP.prototype,"emojiButton",null);_.Z([_.U("data.commentDialog.commentDialogRenderer.emojiPicker"),_.l("design:type",Object),_.l("design:paramtypes",[])],BP.prototype,"emojiPicker",null);
_.Z([_.U("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],BP.prototype,"isEmojiButtonDisplayed",null);_.Z([_.nv("yt-emoji-select"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],BP.prototype,"onEmojiSelect",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],BP);
_.b(BP,"ytd-pdg-comment-preview-renderer",function(){if(h$T!==void 0)return h$T;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return h$T=k},{mode:2});var cTW;var YQ=function(){var k=_.p.apply(this,arguments)||this;k.selected=!1;return k};
_.y(YQ,_.p);_.I=YQ.prototype;_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.I.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.I.dataChanged=function(){this.data&&(_.kT(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.VO(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Kc(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Kc(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.I.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.I.onClick=function(){this.logClick()};
_.I.onKeyboardSelect=function(){_.Me(this.hostElement,"tap");this.onClick()};
_.I.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
YQ.prototype.onClick=YQ.prototype.onClick;YQ.prototype.selectedChanged=YQ.prototype.selectedChanged;YQ.prototype.dataChanged=YQ.prototype.dataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],YQ.prototype,"componentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.YD),_.l("design:type",Object)],YQ.prototype,"ironA11yKeysBehavior",void 0);
_.Z([_.g(_.Dk),_.l("design:type",Object)],YQ.prototype,"ironSelectableBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],YQ.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],YQ.prototype,"shownThumbnail",void 0);_.Z([_.H(),_.l("design:type",Object)],YQ.prototype,"basePriceText",void 0);_.Z([_.H(),_.l("design:type",Object)],YQ.prototype,"purchaseCommand",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],YQ.prototype,"selected",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YQ.prototype,"dataChanged",null);_.Z([_.il("selected"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YQ.prototype,"selectedChanged",null);_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],YQ.prototype,"onClick",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],YQ);
_.b(YQ,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(cTW!==void 0)return cTW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return cTW=k},{mode:1});var WP=function(){var k=_.p.apply(this,arguments)||this;k.selectedItemIndex=0;k.buyButtonDisabled=!1;return k};
_.y(WP,_.p);_.I=WP.prototype;
_.I.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]]"}}}}}};
_.I.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var k;var E=(k=_.W(this.data.colorSlider,o_3))==null?void 0:k.notches[this.selectedItemIndex].purchaseCommand}else{var S;E=(S=_.W(this.data.selectableItemButtons[this.selectedItemIndex],UZt))==null?void 0:S.purchaseCommand}if(E){k=_.W(E,_.kQ5);k.productData||(k.productData={});var R;k.productData={pdgData:{commentMessageText:(R=this.commentPreviewRenderer)==null?void 0:R.getUserGeneratedCommentText()}};
_.Me(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(E)}}};
_.I.dataChanged=function(){if(this.data){_.kP.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.pOp(_.kP,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.kP.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var k;this.buyButtonDisabled=!((k=_.W(this.data.commentPreview,g_3))==null||!k.placeholderText);this.updatePriceSelectorStatus();var E;if((E=this.data)==null?0:E.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;k=[];this.data.preloadImages&&(k=this.data.preloadImages);
k=k.map(function(S){return _.zT(S.thumbnails,1920)});
k=_.n(k);for(E=k.next();!E.done;E=k.next())(E=E.value)&&_.$S1(E).thenCatch(function(){_.dg(Error("El"))})}};
_.I.superThanksSelectedTierEntityChanged=function(){var k;(this==null?void 0:(k=this.superThanksSelectedTierEntity)==null?void 0:k.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.I.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.I.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Cc(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Cc(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Cc(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Cc(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.I.closeBuyFlow=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.I.onUserGeneratedContentChanged=function(){var k;this.buyButtonDisabled=!((k=this.commentPreviewRenderer)==null?0:k.getUserGeneratedCommentText())};
_.I.updateSelectedItemIndexFromBinding=function(k){this.selectedItemIndex=k.detail.value};
_.mt.Object.defineProperties(WP.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var k;return!((k=this.data)==null||!k.disclaimerText)}}});
WP.prototype.onUserGeneratedContentChanged=WP.prototype.onUserGeneratedContentChanged;WP.prototype.closeBuyFlow=WP.prototype.closeBuyFlow;WP.prototype.selectedItemIndexChanged=WP.prototype.selectedItemIndexChanged;WP.prototype.superThanksSelectedTierEntityChanged=WP.prototype.superThanksSelectedTierEntityChanged;WP.prototype.dataChanged=WP.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],WP.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],WP.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],WP.prototype,"selectedItemIndex",void 0);_.Z([_.H(),_.l("design:type",Boolean)],WP.prototype,"isColorSlider",void 0);
_.Z([_.H(),_.l("design:type",Object)],WP.prototype,"buyButtonDisabled",void 0);_.Z([_.H({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:bhx}),_.l("design:type",Object)],WP.prototype,"superThanksSelectedTierEntity",void 0);_.Z([_.JO("ytd-pdg-comment-preview-renderer"),_.l("design:type",Object)],WP.prototype,"commentPreviewRenderer",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],WP.prototype,"ytdReduxBehavior",void 0);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WP.prototype,"dataChanged",null);_.Z([_.il("superThanksSelectedTierEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WP.prototype,"superThanksSelectedTierEntityChanged",null);_.Z([_.il("selectedItemIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WP.prototype,"selectedItemIndexChanged",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WP.prototype,"closeBuyFlow",null);_.Z([_.nv("ytd-pdg-user-generated-comment-changed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WP.prototype,"onUserGeneratedContentChanged",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],WP.prototype,"isDisclaimerTextShown",null);
_.Z([_.D({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],WP);
_.b(WP,"yt-super-vod-buy-flow-content-renderer",function(){if(ndY!==void 0)return ndY;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ndY=k},{mode:1});var mEA;var FW=function(){var k=_.p.apply(this,arguments)||this;k.lottieAnimationRef={};return k};
_.y(FW,_.p);_.I=FW.prototype;_.I.created=function(){_.v7.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Ic(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.I.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Me(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.I.detached=function(){this.autoCloseJobId&&_.ZJ.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Ic(this,this.onPopupIronOverlayOpened))};
_.I.dataChanged=function(){var k=this;this.data&&this.data.autoCloseDelay&&(_.qe(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Ch(_.ZJ,function(){k.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.VO(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.I.onDOMLoadedLottie=function(){var k=this,E,S,R=Number((E=this.data)==null?void 0:(S=E.autoCloseDelay)==null?void 0:S.seconds)||0;this.fadeOutJobId=_.Ch(_.ZJ,function(){k.lottiePlayerEl.classList.add("fadeout")},(R-.25)*1E3);
this.autoCloseJobId=_.Ch(_.ZJ,function(){k.closePopup()},R*1E3)};
_.I.openPopup=function(){this.ironOverlayBehavior.open()};
_.I.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.qe(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Ot(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.en().resolve(_.t3).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.ZJ.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.ZJ.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.I.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var k,E;(k=this.lottieAnimationRef)==null||(E=k.lottieEl)==null||E.destroy();k=this.data.lottie;var S,R;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:k.url+"_"+Math.random(),path:k.url,autoplay:!0,loop:(R=(S=k.settings)==null?void 0:S.loop)!=null?R:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.mt.Object.defineProperties(FW.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var k,E;return!!((k=this.data)==null?0:(E=k.lottie)==null?0:E.url)}}});
FW.prototype.maybeInitializeLottie=FW.prototype.maybeInitializeLottie;FW.prototype.dataChanged=FW.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],FW.prototype,"rendererBehavior",void 0);_.Z([_.g(_.lA),_.l("design:type",Object)],FW.prototype,"ironOverlayBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],FW.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],FW.prototype,"lottiePlayerProps",void 0);
_.Z([_.H(),_.l("design:type",Object)],FW.prototype,"lottieAnimationRef",void 0);_.Z([_.JO("ytd-lottie-player"),_.l("design:type",HTMLElement)],FW.prototype,"lottiePlayerEl",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FW.prototype,"dataChanged",null);_.Z([_.U("data"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],FW.prototype,"hasLottieAnimation",null);
_.Z([_.il("data.lottie.url"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FW.prototype,"maybeInitializeLottie",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],FW);
_.b(FW,"ytd-desktop-image-overlay-renderer",function(){if(mEA!==void 0)return mEA;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return mEA=k},{mode:1});var e$a;var yv=function(){return _.p.apply(this,arguments)||this};
_.y(yv,_.p);_.I=yv.prototype;_.I.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"}}}}};
_.I.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",_.Ic(this,this.closePopup))};
_.I.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ic(this,this.closePopup))};
_.I.dataChanged=function(){_.zR(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.W(this.data.header,y7R)&&(this.hasBackgroundBanner=!!_.W(this.data.header,y7R).backgroundBanner)};
_.I.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ic(this,this.closePopup))};
_.I.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Qw(this.hostElement,[this.data.onCloseCommand])};
yv.prototype.handleBuyflowSelectionSubmitted=yv.prototype.handleBuyflowSelectionSubmitted;yv.prototype.dataChanged=yv.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],yv.prototype,"data",void 0);
_.Z([_.H({value:!0,reflectToAttribute:!0}),_.l("design:type",Boolean)],yv.prototype,"hasBackgroundBanner",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yv.prototype,"dataChanged",null);_.Z([_.nv("yt-pdg-buy-flow-selection-submitted"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yv.prototype,"handleBuyflowSelectionSubmitted",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],yv);
_.b(yv,"ytd-pdg-buy-flow-renderer",function(){if(e$a!==void 0)return e$a;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return e$a=k},{mode:1});var aMI;var ok=function(){var k=_.p.apply(this,arguments)||this;k.isOpen=!1;k.isPlaylistCreated=!1;return k};
_.y(ok,_.p);_.I=ok.prototype;_.I.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.I.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Me(this.hostElement,"yt-refit")};
_.I.onCreateTap=function(){var k=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Qw(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(E,S){if(!_.Y("killswitch_ep_in_create_playlist_response")&&(S==null?0:S.actions))for(E=_.n(S.actions),S=E.next();!S.done;S=E.next())S=S.value,_.W(S,_.Te)&&k.ytComponentBehavior.resolveCommand(S)}}]),this.isPlaylistCreated=!0)};
_.I.onKeydown=function(k){if(k.keyCode===13)this.onCreateTap()};
_.I.onServiceRequestCompleted=function(k){k.stopPropagation();_.qe(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.I.computePrivacyBadge=function(k){return k?[{metadataBadgeRenderer:k}]:[]};
ok.prototype.onServiceRequestCompleted=ok.prototype.onServiceRequestCompleted;ok.prototype.onKeydown=ok.prototype.onKeydown;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ok.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ok.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],ok.prototype,"isOpen",void 0);
_.Z([_.H(),_.l("design:type",Object)],ok.prototype,"isPlaylistCreated",void 0);_.Z([_.H({value:{REQUIRED_LABEL:_.Vi("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Vi("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.l("design:type",Object)],ok.prototype,"addToStrings",void 0);_.Z([_.H({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.l("design:type",Array)],ok.prototype,"privacyBadge",void 0);
_.Z([_.JO("#privacy-input"),_.l("design:type",Object)],ok.prototype,"privacyInput",void 0);_.Z([_.JO("#name-input"),_.l("design:type",Object)],ok.prototype,"nameInput",void 0);_.Z([_.nv("keydown"),_.l("design:type",Function),_.l("design:paramtypes",[KeyboardEvent]),_.l("design:returntype")],ok.prototype,"onKeydown",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ok.prototype,"onServiceRequestCompleted",null);
_.Z([_.D({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],ok);
_.b(ok,"ytd-add-to-playlist-create-renderer",function(){if(aMI!==void 0)return aMI;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return aMI=k},{mode:1});var t3t;var ToR;var XW=function(){var k=_.p.apply(this,arguments)||this;k.transferState="TRANSFER_STATE_UNKNOWN";return k};
_.y(XW,_.p);XW.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
XW.prototype.onCheckboxChange=function(k){var E=this;this.data&&_.Lv(this,"yt-playlist-checkbox-changed",function(){var S=_.bv(k).checked?E.data.addToPlaylistServiceEndpoint:E.data.removeFromPlaylistServiceEndpoint;S&&_.en().resolve(_.t3).resolveCommand(S,{form:{element:E.hostElement}});_.Y("dl_playlist_killswitch")||E.transferState!=="TRANSFER_STATE_UNKNOWN"&&E.transferState!=="TRANSFER_STATE_FAILED"&&E.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:E.data.playlistId,action:"ACTION_SYNC"}})},
100)};
XW.prototype.computeIconType=function(k){return k?"yt-icons:"+k.toLowerCase():null};
XW.prototype.dataChanged=XW.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],XW.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],XW.prototype,"data",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],XW.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],XW.prototype,"ytComponentBehavior",void 0);_.Z([_.JO("#checkbox"),_.l("design:type",HTMLInputElement)],XW.prototype,"checkbox",void 0);
_.Z([_.H({selector:_.g8,selectorArgs:["data.playlistId"]}),_.l("design:type",String)],XW.prototype,"transferState",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XW.prototype,"dataChanged",null);_.Z([_.D({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],XW);
_.b(XW,"ytd-playlist-add-to-option-renderer",function(){if(ToR!==void 0)return ToR;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ToR=k},{mode:1});var wGx=_.f(function(k){var E=k.data;return _.e("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.e("div",null,_.e(_.VB,{text:function(){return E().title}})),_.e(_.t,{cond:function(){return E().subtitle},
then:function(S){return _.e("div",{class:"ytdMenuTitleRendererSubtitle"},_.e(_.VB,{text:S}))}}))},"hj");
wGx.idomCompat=!0;_.qi(wGx,"ytd-menu-title-renderer",{props:{data:_.Nq}});var g2=function(){var k=_.p.apply(this,arguments)||this;k.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Vi("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};k.closeButtonAriaLabel=_.Vi("SBOX_INAPPROPRIATE_CANCEL");k.dialog=_.Y("desktop_add_to_playlist_renderer_dialog_popup");return k};
_.y(g2,_.p);_.I=g2.prototype;_.I.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"}}}};
_.I.onPopupOpened=function(){_.E_(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.I.onPopupClosed=function(){_.E_(this.playlists,"scrollable",!1)};
_.I.computeAriaLabel=function(){var k;if(this==null?0:(k=this.data)==null?0:k.actions){k=_.n(this.data.actions);for(var E=k.next();!E.done;E=k.next())if(E=E.value,E.menuTitleRenderer)return _.$n(E.menuTitleRenderer.title)}};
_.I.onTapClose=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.mt.Object.defineProperties(g2.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var k;if(this==null?0:(k=this.data)==null?0:k.actions){k=_.n(this.data.actions);for(var E=k.next();!E.done;E=k.next())if(E=E.value,E.menuTitleRenderer)return E.menuTitleRenderer}return!1}}});
g2.prototype.onPopupClosed=g2.prototype.onPopupClosed;g2.prototype.onPopupOpened=g2.prototype.onPopupOpened;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],g2.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],g2.prototype,"ytRendererStamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],g2.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],g2.prototype,"addToStrings",void 0);_.Z([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.l("design:type",String)],g2.prototype,"ariaLabel",void 0);_.Z([_.H(),_.l("design:type",String)],g2.prototype,"closeButtonAriaLabel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],g2.prototype,"dialog",void 0);
_.Z([_.JO("#playlists"),_.l("design:type",HTMLElement)],g2.prototype,"playlists",void 0);_.Z([_.JO("ytd-add-to-playlist-create-renderer"),_.l("design:type",Object)],g2.prototype,"createRenderer",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],g2.prototype,"menuTitleRenderer",null);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g2.prototype,"onPopupOpened",null);
_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],g2.prototype,"onPopupClosed",null);_.Z([_.D({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],g2);
_.b(g2,"ytd-add-to-playlist-renderer",function(){if(t3t!==void 0)return t3t;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return t3t=k},{mode:1});var Po3;var UK=function(){var k=_.p.apply(this,arguments)||this;k.isPlaylistEditComplete=!1;k.isCollabEngagementDisabled=!1;k.closeButtonAriaLabel=_.Vi("SBOX_INAPPROPRIATE_CANCEL");k.saveButton={title:_.Vi("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"};k.onValueChanged=function(){k.updateSaveButtonState();k.computeCollabEngagementDisabled()};
return k};
_.y(UK,_.p);_.I=UK.prototype;_.I.attached=function(){this.JSC$20775_scroller&&(this.JSC$20775_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20775_scroller.attached&&typeof this.JSC$20775_scroller.attached==="function"&&this.JSC$20775_scroller.attached())};
_.I.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.I.onPopupClosed=function(){this.reset()};
_.I.close=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.I.onClickSave=function(){var k=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var E=[];this.nameInput.value!==null&&E.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&E.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var S=Number(this.privacyInput.value);isNaN(S)||E.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:S})}this.votingInput.value!==null&&(S=this.votingInput.value)&&E.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:S});if(E.length>0){var R;_.W((R=this.data)==null?void 0:R.updateSettingsEndpoint,_.vF).actions=E;var V;if((V=this.data)==null?0:V.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){k.close()}}}),this.isPlaylistEditComplete=!0}}};
_.I.computePrivacyBadge=function(k){return k?[{metadataBadgeRenderer:k}]:[]};
_.I.computeEditorData=function(k){var E,S;return k==null?void 0:(E=k.sections)==null?void 0:(S=E[0])==null?void 0:S.playlistSettingsEditorCasualSectionRenderer};
_.I.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.I.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}}}}}};
_.I.computeAriaLabel=function(){var k,E,S,R=(k=this.data)==null?void 0:(E=k.sections)==null?void 0:(S=E[0])==null?void 0:S.playlistSettingsEditorCasualSectionRenderer;return _.$n(R==null?void 0:R.title)};
_.I.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"}))};
_.I.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.I.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.I.isNameChanged=function(){var k,E,S;return(((k=this.editorData)==null?void 0:(E=k.name)==null?void 0:(S=E.textInputFormFieldRenderer)==null?void 0:S.value)||"")!==(this.nameInput.value||"")};
_.I.isDescriptionChanged=function(){var k,E,S;return(((k=this.editorData)==null?void 0:(E=k.description)==null?void 0:(S=E.textInputFormFieldRenderer)==null?void 0:S.value)||"")!==(this.descriptionInput.value||"")};
_.I.isPrivacyChanged=function(){var k,E,S,R,V,N,h,J;return((h=(k=this.editorData)==null?void 0:(E=k.privacy)==null?void 0:(S=E.dropdownFormFieldRenderer)==null?void 0:(R=S.dropdown)==null?void 0:(V=R.dropdownRenderer)==null?void 0:(N=V.entries)==null?void 0:N.find(function(m){var a;return m==null?void 0:(a=m.privacyDropdownItemRenderer)==null?void 0:a.isSelected}))==null?void 0:(J=h.privacyDropdownItemRenderer)==null?void 0:J.int32Value)!==this.privacyInput.value};
_.I.isVotingChanged=function(){var k,E,S,R,V,N,h,J;return((h=(k=this.editorData)==null?void 0:(E=k.voting)==null?void 0:(S=E.dropdownFormFieldRenderer)==null?void 0:(R=S.dropdown)==null?void 0:(V=R.dropdownRenderer)==null?void 0:(N=V.entries)==null?void 0:N.find(function(m){var a;return m==null?void 0:(a=m.privacyDropdownItemRenderer)==null?void 0:a.isSelected}))==null?void 0:(J=h.privacyDropdownItemRenderer)==null?void 0:J.int32Value)!==this.votingInput.value};
UK.prototype.onPopupClosed=UK.prototype.onPopupClosed;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],UK.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],UK.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],UK.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],UK.prototype,"ytRendererStamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],UK.prototype,"data",void 0);_.Z([_.H({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.l("design:type",Array)],UK.prototype,"privacyBadge",void 0);_.Z([_.H({computed:"computeEditorData(data)"}),_.l("design:type",Object)],UK.prototype,"editorData",void 0);_.Z([_.H(),_.l("design:type",Object)],UK.prototype,"isPlaylistEditComplete",void 0);_.Z([_.H(),_.l("design:type",Object)],UK.prototype,"isCollabEngagementDisabled",void 0);
_.Z([_.H({value:{REQUIRED_LABEL:_.Vi("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Vi("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.l("design:type",Object)],UK.prototype,"addToStrings",void 0);_.Z([_.H({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.l("design:type",String)],UK.prototype,"ariaLabel",void 0);_.Z([_.H(),_.l("design:type",String)],UK.prototype,"closeButtonAriaLabel",void 0);
_.Z([_.H(),_.l("design:type",Object)],UK.prototype,"saveButton",void 0);_.Z([_.JO("#name-input"),_.l("design:type",Object)],UK.prototype,"nameInput",void 0);_.Z([_.JO("#description-input"),_.l("design:type",Object)],UK.prototype,"descriptionInput",void 0);_.Z([_.JO("#privacy-input"),_.l("design:type",Object)],UK.prototype,"privacyInput",void 0);_.Z([_.JO("#voting-input"),_.l("design:type",Object)],UK.prototype,"votingInput",void 0);
_.Z([_.JO("#scroller"),_.l("design:type",Object)],UK.prototype,"JSC$20775_scroller",void 0);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],UK.prototype,"onPopupClosed",null);_.Z([_.H(),_.l("design:type",Object)],UK.prototype,"onValueChanged",void 0);_.Z([_.D({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],UK);
_.b(UK,"ytd-playlist-settings-editor-renderer",function(){if(Po3===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);Po3=k}k=Po3;return k},{mode:1});var BoP;_.B9("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var HP=function(){return _.p.apply(this,arguments)||this};
_.y(HP,_.p);_.I=HP.prototype;_.I.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}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.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 k=this.get("data.nextButton.buttonRenderer.navigationEndpoint");k&&(this.nextNavigationEndpoint=k,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.I.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 k={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",k)}}};
_.I.onPopupOpened=function(k){k.detail!==this&&k.detail!==this.hostElement||!_.Y("enable_premium_voluntary_pause")||_.qe(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.I.onNextButtonTap=function(){var k=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);k&&this.ytdOpenPopupBehavior.openPopup(k)};
_.I.updateSelectedResponseIndexFromBinding=function(k){this.selectedResponseIndex=k.detail.value};
HP.prototype.onPopupOpened=HP.prototype.onPopupOpened;HP.prototype.onSelectedResponseIndexChange=HP.prototype.onSelectedResponseIndexChange;HP.prototype.dataChanged=HP.prototype.dataChanged;_.Z([_.g(_.Jy),_.l("design:type",Object)],HP.prototype,"ytdOpenPopupBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],HP.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],HP.prototype,"selectedResponseIndex",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HP.prototype,"dataChanged",null);_.Z([_.il("selectedResponseIndex"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],HP.prototype,"onSelectedResponseIndexChange",null);
_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],HP.prototype,"onPopupOpened",null);_.Z([_.D({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],HP);
_.b(HP,"ytd-red-cancel-survey-renderer",function(){if(BoP!==void 0)return BoP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return BoP=k},{mode:1});var YMa;var Kk=function(){var k=_.p.apply(this,arguments)||this;k.closeButtonAriaLabel=_.Vi("SBOX_INAPPROPRIATE_CANCEL");return k};
_.y(Kk,_.p);Kk.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Kk.prototype.onClickClose=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Kk.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Kk.prototype,"rendererStamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Kk.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],Kk.prototype,"closeButtonAriaLabel",void 0);_.Z([_.D({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Kk);
_.b(Kk,"ytd-search-filter-options-dialog-renderer",function(){if(YMa!==void 0)return YMa;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return YMa=k},{mode:1});var WX3;var jOR=function(){return function(k){k=k.availabilityType;return k===void 0||k==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||k==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var pk=function(){var k=_.p.apply(this,arguments)||this;k.qualityOptions=[];k.upsellOptions=[];k.showUpsellSection=!1;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.rememberSettingsChecked=!1;return k};
_.y(pk,_.p);_.I=pk.prototype;_.I.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}}}}};
_.I.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.I.updateQualityOptions=function(){if(this.formats===void 0)_.qe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var k=[],E=[];this.showUpsellSection=!1;for(var S=_.n(this.formats),R=S.next();!R.done;R=S.next())(R=R.value)&&(R.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?E.push(R):k.push(R));k.length&&(this.qualityOptions=LJY(k));E.length&&(this.showUpsellSection=!0,this.upsellOptions=LJY(E))}};
_.I.updateRememberString=function(){if(this.downloadQualityPickerEntity)var k=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var E;k=(E=this.data)==null?void 0:E.premiumRememberSettingString}else{var S;k=(S=this.data)==null?void 0:S.rememberSettingString}k=k===void 0?_.Vi("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):k;this.rememberSettingsCheckboxRenderer={title:_.lD(k),disabled:!1}};
_.I.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.mt.Object.defineProperties(pk.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var k;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(k=this.data)==null?void 0:k.qualityFormats}}});
pk.prototype.updateRememberString=pk.prototype.updateRememberString;pk.prototype.updateQualityOptions=pk.prototype.updateQualityOptions;pk.prototype.dataChanged=pk.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],pk.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],pk.prototype,"data",void 0);
_.Z([_.g(_.zm),_.l("design:type",Object)],pk.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Boolean)],pk.prototype,"selectedUpsellQuality",void 0);_.Z([_.H({computed:"computeIcon_(data.premiumIcon)",value:""}),_.l("design:type",String)],pk.prototype,"premiumIcon",void 0);_.Z([_.H({selector:$O0,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.l("design:type",Object)],pk.prototype,"downloadQualityPickerEntity",void 0);
_.Z([_.H(),_.l("design:type",Array)],pk.prototype,"qualityOptions",void 0);_.Z([_.H(),_.l("design:type",Array)],pk.prototype,"upsellOptions",void 0);_.Z([_.H(),_.l("design:type",Object)],pk.prototype,"showUpsellSection",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],pk.prototype,"darkerDarkTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],pk.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.Z([_.JO("#remember-settings"),_.l("design:type",HTMLInputElement)],pk.prototype,"rememberSettingsCheckbox",void 0);_.Z([_.H(),_.l("design:type",Object)],pk.prototype,"rememberSettingsChecked",void 0);_.Z([_.H(),_.l("design:type",Function)],pk.prototype,"onRememberSettingsCheckedChanged",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pk.prototype,"dataChanged",null);
_.Z([_.il("downloadQualityPickerEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pk.prototype,"updateQualityOptions",null);_.Z([_.il("selectedUpsellQuality"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],pk.prototype,"updateRememberString",null);_.Z([_.D({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],pk);
_.b(pk,"ytd-download-quality-selector-content",function(){if(WX3!==void 0)return WX3;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return WX3=k},{mode:1});var FXW;var Ai=function(){var k=_.p.apply(this,arguments)||this;k.selectedUpsellQuality=!1;k.qualityOptions=[];k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.useUpsellDismissAlternate=_.Y("use_not_now_dl_upsell_dismiss_cta");k.shouldShowAlternateUpsellDimiss=!1;k.rememberSettings=!1;k.rememberSettingsChecked=!1;k.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};k.rememberSettingsCheckedChanged=function(E){k.rememberSettingsChecked=E};
return k};
_.y(Ai,_.p);_.I=Ai.prototype;
_.I.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lD(_.Vi("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.lD(_.Vi("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lD(_.Vi("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.lD(_.Vi("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.I.updateQualityOptions=function(){this.formats===void 0?_.qe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=LJY(this.formats)};
_.I.onQualityOptionsSelect=function(k){if(this.qualityOptions&&k){k!==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 E=_.n(this.qualityOptions.entries()),S=E.next();!S.done;S=
E.next()){S=_.n(S.value);var R=S.next().value;S=S.next().value;var V=void 0,N=void 0;if(((V=S)==null?void 0:(N=V.settingsRadioOptionRenderer)==null?void 0:N.id)===k){this.selectedQualityIndex=R;k=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((k=this.formats[R])==null?void 0:k.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.I.onClickSubmit=function(){var k;if((k=this.downloadButtonRenderer)==null||!k.isDisabled){var E,S;k=(S=(E=this.data)==null?void 0:E.onSubmitEndpoint)!=null?S:{};var R,V;if(this.formats&&(((R=_.W(k,_.IE))==null?0:R.videoId)||((V=_.W(k,_.n5))==null?0:V.playlistId))){var N,h,J,m,a,T;E={formatType:(m=(N=this.formats)==null?void 0:(h=N[(J=this.selectedQualityIndex)!=null?J:0])==null?void 0:h.format)!=null?m:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(a=this.getOfflineEndpoint(k))==null?void 0:(T=a.actionParams)==null?void 0:T.settingsAction)};this.getOfflineEndpoint(k).actionParams=E;this.ytComponentBehavior.resolveCommand(k)}_.qe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.I.onClickUpsell=function(){var k;if((k=this.upsellButtonRenderer)==null||!k.isDisabled){var E,S;k=(S=(E=this.data)==null?void 0:E.upsellEndpoint)!=null?S:{};this.ytComponentBehavior.resolveCommand(k);_.qe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);E="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var R,V,N,h;E=(h=(R=this.formats)==null?void 0:(V=R[(N=this.selectedQualityIndex)!=null?N:0])==null?void 0:V.format)!=null?h:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:E}})}};
_.I.onClickClose=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.I.getOfflineSettingsAction=function(k,E){return k?E===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":E:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.I.getOfflineEndpoint=function(k){return _.W(k,_.IE)?_.W(k,_.IE):_.W(k,_.n5)};
_.mt.Object.defineProperties(Ai.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.lD(_.Vi("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var k;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(k=this.data)==null?void 0:k.qualityFormats}}});
Ai.prototype.updateQualityOptions=Ai.prototype.updateQualityOptions;Ai.prototype.dataChanged=Ai.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ai.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ai.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Ai.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ai.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Number)],Ai.prototype,"selectedQualityIndex",void 0);_.Z([_.H(),_.l("design:type",Object)],Ai.prototype,"selectedUpsellQuality",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Ai.prototype,"ytdReduxBehavior",void 0);
_.Z([_.H({selector:$O0,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.l("design:type",Object)],Ai.prototype,"downloadQualityPickerEntity",void 0);_.Z([_.H(),_.l("design:type",Array)],Ai.prototype,"qualityOptions",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Ai.prototype,"darkerDarkTheme",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],Ai.prototype,"useUpsellDismissAlternate",void 0);
_.Z([_.H(),_.l("design:type",Object)],Ai.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.Z([_.H(),_.l("design:type",Object)],Ai.prototype,"downloadButtonRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],Ai.prototype,"upsellButtonRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],Ai.prototype,"cancelButtonRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],Ai.prototype,"upsellCancelButtonRenderer",void 0);_.Z([_.H(),_.l("design:type",Object)],Ai.prototype,"rememberSettings",void 0);
_.Z([_.H(),_.l("design:type",Object)],Ai.prototype,"rememberSettingsChecked",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ai.prototype,"dataChanged",null);_.Z([_.il("downloadQualityPickerEntity"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ai.prototype,"updateQualityOptions",null);_.Z([_.D({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],Ai);
_.b(Ai,"ytd-download-quality-selector-renderer",function(){if(FXW!==void 0)return FXW;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return FXW=k},{mode:1});var yTW;var r2=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(r2,_.p);r2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
r2.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"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],r2.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],r2.prototype,"darkerDarkTheme",void 0);_.Z([_.H({computed:"computeIcon_(data.infoIcon)"}),_.l("design:type",Object)],r2.prototype,"infoIcon",void 0);
_.Z([_.H({computed:"computeIcon_(data.warningIcon)"}),_.l("design:type",Object)],r2.prototype,"warningIcon",void 0);_.Z([_.D({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],r2);
_.b(r2,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(yTW!==void 0)return yTW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return yTW=k},{mode:1});var od0;var ux=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(ux,_.p);ux.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ux.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"}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ux.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],ux.prototype,"darkerDarkTheme",void 0);_.Z([_.D({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],ux);
_.b(ux,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(od0!==void 0)return od0;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return od0=k},{mode:1});var XGI;var xQ=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(xQ,_.p);xQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xQ.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"}}}}};
xQ.prototype.onServiceRequestSentOrCompleted=function(k,E){E&&E.actions&&E.actions.length>0&&_.qe(this.hostElement,"yt-close-popup-action",[this.is])};
xQ.prototype.onServiceRequestSentOrCompleted=xQ.prototype.onServiceRequestSentOrCompleted;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],xQ.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],xQ.prototype,"darkerDarkTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],xQ.prototype,"data",void 0);
_.Z([_.nv("yt-service-request-completed"),_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],xQ.prototype,"onServiceRequestSentOrCompleted",null);_.Z([_.D({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],xQ);
_.b(xQ,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(XGI!==void 0)return XGI;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return XGI=k},{mode:1});var gdP;var Lk=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.submitButtonDisabled=!0;return k};
_.y(Lk,_.p);_.I=Lk.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.I.onDataChanged=function(){var k,E,S;if(((k=this.data)==null?void 0:(E=k.confirmButton)==null?void 0:(S=E.buttonRenderer)==null?void 0:S.isDisabled)!==void 0){var R,V,N;this.submitButtonDisabled=(R=this.data)==null?void 0:(V=R.confirmButton)==null?void 0:(N=V.buttonRenderer)==null?void 0:N.isDisabled}};
_.I.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.I.updateSubmitButtonDisabledFromBinding=function(k){this.submitButtonDisabled=k.detail.value};
_.I.updateSubmitButtonDisabledFromConfirmCheckbox=function(k){this.submitButtonDisabled=!k.detail.value};
Lk.prototype.onDataChanged=Lk.prototype.onDataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Lk.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],Lk.prototype,"darkerDarkTheme",void 0);
_.Z([_.H(),_.l("design:type",Object)],Lk.prototype,"submitButtonDisabled",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Lk.prototype,"onDataChanged",null);_.Z([_.D({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Lk);
_.b(Lk,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(gdP!==void 0)return gdP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return gdP=k},{mode:1});var UEA;var je=function(){return _.p.apply(this,arguments)||this};
_.y(je,_.p);_.mt.Object.defineProperties(je.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var k,E,S;return((k=this.data)==null?void 0:k.title)+" "+((E=this.data)==null?void 0:E.metadataPrimary)+" "+((S=this.data)==null?void 0:S.metadataSecondary)}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],je.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],je.prototype,"data",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],je.prototype,"ariaLabel",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],je);
_.b(je,"ytd-compact-product-list-item-renderer",function(){if(UEA!==void 0)return UEA;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return UEA=k},{mode:1});var Hda;var DN=function(){return _.p.apply(this,arguments)||this};
_.y(DN,_.p);DN.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]]"}}}}}};
_.mt.Object.defineProperties(DN.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],DN.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],DN.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],DN.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],DN);
_.b(DN,"ytd-compact-product-list-renderer",function(){if(Hda!==void 0)return Hda;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Hda=k},{mode:1});var KX0;var $Q=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y($Q,_.p);_.I=$Q.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.I.getBackgroundUrl=function(){var k=this.get("data.headerImage.thumbnails");return k?"url("+_.zT(k,this.hostElement.clientWidth)+")":""};
_.I.onDataChanged=function(){var k=this.getBackgroundUrl();k&&(this.header.style.backgroundImage=k);k=_.Fe();var E=_.Wi(),S=this.get("data.trackingParams");S&&E&&k&&_.rq(k,E,_.tV(S));k=_.n(this.hostElement.querySelectorAll("yt-img-shadow"));for(E=k.next();!E.done;E=k.next())E.value.onShow()};
_.I.onPopupClosed=function(k){_.bv(k).localName==="ytd-membership-post-cancel-renderer"&&_.qe(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
$Q.prototype.onPopupClosed=$Q.prototype.onPopupClosed;$Q.prototype.onDataChanged=$Q.prototype.onDataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$Q.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],$Q.prototype,"darkerDarkTheme",void 0);
_.Z([_.JO("#header"),_.l("design:type",HTMLDivElement)],$Q.prototype,"header",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],$Q.prototype,"onDataChanged",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],$Q.prototype,"onPopupClosed",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],$Q);
_.b($Q,"ytd-membership-post-cancel-renderer",function(){if(KX0!==void 0)return KX0;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return KX0=k},{mode:1});var pGx;var fk=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(fk,_.p);fk.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
fk.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],fk.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],fk.prototype,"darkerDarkTheme",void 0);_.Z([_.JO("ytd-feedback-survey-renderer"),_.l("design:type",Object)],fk.prototype,"feedbackSurveyRenderer",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],fk);
_.b(fk,"ytd-sponsorship-confirm-cancel-content",function(){if(pGx!==void 0)return pGx;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return pGx=k},{mode:1});var AT0;var vP=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.maybeSubmitFeedback=function(){k.content&&k.content.maybeSubmitFeedback()};
return k};
_.y(vP,_.p);_.I=vP.prototype;_.I.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.I.onYtPopupOpened=function(k,E){E===this&&this.data&&this.data.onOpenCommands&&_.Ot(this.hostElement,this.data.onOpenCommands,this.hostElement);_.qe(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.I.onYtPopupClosed=function(k,E){(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Ot(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.I.onYtServiceRequestCompleted=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.I.onYtServiceRequestError=function(k){_.A0(this.hostElement,k.detail.error.message)};
_.I.onDataChanged=function(){if(this.isAttached){var k=this.backgroundUrl;k&&(_.Cc(this.hostElement).querySelector("#header").style.backgroundImage=k)}};
_.mt.Object.defineProperties(vP.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var k=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return k?"url("+_.zT(k,this.hostElement.clientWidth)+")":""}}});
vP.prototype.onDataChanged=vP.prototype.onDataChanged;vP.prototype.onYtServiceRequestError=vP.prototype.onYtServiceRequestError;vP.prototype.onYtServiceRequestCompleted=vP.prototype.onYtServiceRequestCompleted;vP.prototype.onYtPopupClosed=vP.prototype.onYtPopupClosed;vP.prototype.onYtPopupOpened=vP.prototype.onYtPopupOpened;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],vP.prototype,"data",void 0);_.Z([_.H({value:function(){return _.Vi("SBOX_INAPPROPRIATE_CANCEL")}}),
_.l("design:type",String)],vP.prototype,"closeButtonAriaLabel",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],vP.prototype,"darkerDarkTheme",void 0);_.Z([_.JO("#scrollable"),_.l("design:type",Object)],vP.prototype,"scrollable",void 0);_.Z([_.JO("ytd-sponsorship-confirm-cancel-content"),_.l("design:type",Object)],vP.prototype,"content",void 0);
_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],vP.prototype,"onYtPopupOpened",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],vP.prototype,"onYtPopupClosed",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],vP.prototype,"onYtServiceRequestCompleted",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],vP.prototype,"onYtServiceRequestError",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],vP.prototype,"onDataChanged",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],vP);
_.b(vP,"ytd-sponsorship-confirm-cancel-renderer",function(){if(AT0!==void 0)return AT0;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return AT0=k},{mode:_.GN("kevlar_poly_si_batch_j081")?1:2});var rTP;var bx=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(bx,_.p);bx.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bx.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bx.prototype,"darkerDarkTheme",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],bx);
_.b(bx,"ytd-sponsorships-celebration-content",function(){if(rTP!==void 0)return rTP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return rTP=
k},{mode:1});var uLW;var xEA=_.ry(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),ZN=function(){var k=_.p.apply(this,arguments)||this;k.scriptsAppended=!1;k.useFullWidthPrimaryButton=!1;k.buttonOverrides={type:"tonal",style:"overlay-dark"};return k};
_.y(ZN,_.p);_.I=ZN.prototype;_.I.dataChanged=function(){var k;this.useFullWidthPrimaryButton=!((k=this.data)==null||!k.useFullWidthPrimaryButton)};
_.I.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:_.Y("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.onDataChanged=function(){var k;(k=this.header)==null||k.style.setProperty("background-color",this.backgroundColor);if(k=this.headerImageUrl){var E;(E=this.header)==null||E.style.setProperty("background-image",k)}E=_.Fe(4);k=_.Wi(4);var S=this.get("data.trackingParams");if(S&&k&&E){var R=_.tV(S);_.rq(E,k,R);_.Y("combine_ve_grafts")?_.JV().graftServerVe(S,k,4):_.rq(E,k,R)}E=_.n(this.hostElement.querySelectorAll("yt-img-shadow"));for(k=E.next();!k.done;k=E.next())k.value.onShow();if(E=this.get("data.gtmId"))_.$N(E,
_.Mg("GL","")),this.setupConversionTracking()};
_.I.setupConversionTracking=function(){if(!this.scriptsAppended){var k=document.createElement("script");_.NV(k,_.Rb(xEA.join("")));document.head.appendChild(k);k=document.createElement("noscript");k.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(k);this.scriptsAppended=!0}};
_.I.onPopupClosed=function(k){if(_.bv(k).localName==="ytd-sponsorships-celebration-renderer"){_.qe(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var E;this.data&&((E=this.data)==null?0:E.dismissCommand)&&_.V_.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.mt.Object.defineProperties(ZN.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var k=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Kc(k)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var k=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return k?"url("+_.zT(k,this.hostElement.getBoundingClientRect().width)+")":""}}});
ZN.prototype.onPopupClosed=ZN.prototype.onPopupClosed;ZN.prototype.onDataChanged=ZN.prototype.onDataChanged;ZN.prototype.dataChanged=ZN.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],ZN.prototype,"data",void 0);
_.Z([_.JO("#header"),_.l("design:type",HTMLElement)],ZN.prototype,"header",void 0);_.Z([_.H(),_.l("design:type",Object)],ZN.prototype,"scriptsAppended",void 0);_.Z([_.H({type:Boolean,reflectToAttribute:!0}),_.l("design:type",Object)],ZN.prototype,"useFullWidthPrimaryButton",void 0);_.Z([_.H(),_.l("design:type",Object)],ZN.prototype,"buttonOverrides",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZN.prototype,"dataChanged",null);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ZN.prototype,"onDataChanged",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],ZN.prototype,"onPopupClosed",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],ZN);
_.b(ZN,"ytd-sponsorships-celebration-renderer",function(){if(uLW!==void 0)return uLW;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return uLW=k},{mode:1});var LXU;var d2=function(){var k=_.p.apply(this,arguments)||this;k.isToggleChecked=!1;return k};
_.y(d2,_.p);d2.prototype.onDataChanged=function(){var k;this.isToggleChecked=((k=this.data)==null?void 0:k.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
d2.prototype.close=function(){var k;((k=this.data)==null?0:k.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
d2.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var k,E=_.W((k=this.data)==null?void 0:k.switchButton,Hs3);E&&(this.isToggleChecked&&E.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(E.switchOnInnertubeCommand),!this.isToggleChecked&&E.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(E.switchOffInnertubeCommand))};
d2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
d2.prototype.onDataChanged=d2.prototype.onDataChanged;_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],d2.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],d2.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],d2.prototype,"isToggleChecked",void 0);_.Z([_.H({value:_.Vi("CLOSE")}),_.l("design:type",String)],d2.prototype,"closeButtonAriaLabel",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],d2.prototype,"onDataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],d2);
_.b(d2,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(LXU!==void 0)return LXU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return LXU=k},{mode:1});var jja;var sK=function(){return _.p.apply(this,arguments)||this};
_.y(sK,_.p);_.I=sK.prototype;_.I.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"}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.detached=function(){this.playerElement.stop()};
_.I.onYtServiceRequestCompleted=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.I.onYtServiceRequestError=function(k){_.A0(this.hostElement,k.detail.error.message)};
_.I.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.I.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.I.getTier=function(k,E){return!k||!k.tiers||E<0?null:_.W(k.tiers[E],r73)};
_.I.moreThanOne=function(k){return!!(k&&k.length>1)};
_.I.tierOverviewTap=function(k){var E=this;this.selectedTier=k.model.index;_.JB(this,function(){_.Me(E.hostElement,"yt-refit")})};
_.I.computeSelectedClass=function(k,E){return this.isSelected(k,E)?"selected":""};
_.I.computeButtonAriaPressed=function(k,E){return this.isSelected(k,E)?"true":"false"};
_.I.isSelected=function(k,E){return k===E};
_.I.onDataChanged=function(){_.Cc(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Cc(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 k=_.n(this.hostElement.querySelectorAll("yt-img-shadow")),
E=k.next();!E.done;E=k.next())E.value.onShow();var S;this.set("selectedTier",(S=this.get("data.targetTierIndex"))!=null?S:0);var R;(k=(R=this.data)==null?void 0:R.onVisible)&&this.ytComponentBehavior.resolveCommand(k)};
_.I.initializeVe=function(k){var E=_.Fe(),S=_.Wi(),R=this.get("data.trackingParams");S&&E&&(this.screenLayer=4,E=_.Ga(_.VK1)(void 0,69877,{clientScreenNonce:E,visualElement:S},void 0,void 0,void 0),_.or(E,69877,4),S=_.Wi(4),R&&S&&(R=_.tV(R),_.rq(E,S,R),k&&(this.offerVideoVe=_.kh(74659),_.rq(E,R,this.offerVideoVe))))};
_.I.setHeaderBackground=function(){var k=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Cc(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Kc(k);if(k=this.getHeaderImage())k=_.zT(k,screen.width),_.Cc(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+k+")"};
_.I.getHeaderImage=function(){var k=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&k?k:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.I.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.I.setupVideoPlayer=function(k){var E=this,S,R,V,N;return _.c(function(h){if(h.nextAddress==1)return S=E.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),R=E.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.Y("kevlar_player_update_killswitch")?E.playerElement.update({args:{autoplay:S,video_id:k,player_params:R}}):E.playerElement.loadVideoWithPlayerVars({autoplay:S,video_id:k,player_params:R}),
h.yield(E.playerElement.getPlayerPromise(),2);V=h.yieldResult;V.addEventListener("onStateChange",function(J){E.onPlayerStateChange(J)});
V.setScreenLayer(E.screenLayer);(N=_.Fe(4))&&E.offerVideoVe&&_.xA(N,E.offerVideoVe);S&&(E.pauseOtherPlayers(),E.playerElement.focusOnPlayer(),E.playerElement.getPlayer().hideControls(),_.uM(_.ZJ,function(){E.fadeOutHeaderOverlay()},4E3));
_.KR(h)})};
_.I.onPlayerStateChange=function(k){k===1?this.backgroundPlayerElement&&(k=this.backgroundPlayerElement.player_.getPlayerState(),k!==1&&k!==3||this.backgroundPlayerElement.pause()):k===0&&(_.Cc(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Cc(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.I.fadeOutHeaderOverlay=function(){_.Cc(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.I.onHeaderTap=function(){if(this.offerVideo){_.Cc(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var k;((k=this.playerElement.player_)==null?void 0:k.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(k=_.Fe(4))&&this.offerVideoVe&&_.Dv(k,this.offerVideoVe)}};
_.I.getBackgroundImageLayerClass=function(k){return k?"background-image-layer-with-video":""};
_.I.getHeaderClass=function(k){return k?"header-with-video":""};
_.I.getHeaderOverlayClass=function(k){return k?"header-overlay-with-video":""};
_.I.getTitleContainerClass=function(k,E){return k?"title-container-with-video":E?"title-container-without-video-flexible":"title-container-without-video"};
_.I.tierTitleDisplayStatus=function(k){return this.moreThanOne(k)?"hide":"show"};
_.I.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.en().resolve(_.yb).getPlayerElement():this.backgroundPlayerElement=_.s3();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var k=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=k===1||k===3;this.backgroundPlayerElement.pause()}};
_.I.isMiniplayerActive=function(){return _.en().resolve(_.yb).isMiniplayerActive()};
_.I.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("selected-tier-changed",this.selectedTier))};
sK.prototype.selectedTierChangedForBinding=sK.prototype.selectedTierChangedForBinding;sK.prototype.onDataChanged=sK.prototype.onDataChanged;sK.prototype.onYtPopupClosed=sK.prototype.onYtPopupClosed;sK.prototype.onYtPopupOpened=sK.prototype.onYtPopupOpened;sK.prototype.onYtServiceRequestError=sK.prototype.onYtServiceRequestError;sK.prototype.onYtServiceRequestCompleted=sK.prototype.onYtServiceRequestCompleted;
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],sK.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],sK.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],sK.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],sK.prototype,"data",void 0);_.Z([_.H({value:0}),_.l("design:type",Number)],sK.prototype,"selectedTier",void 0);
_.Z([_.H({value:""}),_.l("design:type",String)],sK.prototype,"offerVideo",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],sK.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.Z([_.H({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Oj(this)}}),
_.l("design:type",String)],sK.prototype,"playerId",void 0);_.Z([_.JO("tp-yt-paper-dialog-scrollable"),_.l("design:type",Object)],sK.prototype,"scrollable",void 0);_.Z([_.JO("ytd-sponsorships-tier-renderer"),_.l("design:type",Object)],sK.prototype,"tierRenderer",void 0);_.Z([_.JO("#player"),_.l("design:type",Object)],sK.prototype,"playerElement",void 0);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],sK.prototype,"onYtServiceRequestCompleted",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],sK.prototype,"onYtServiceRequestError",null);
_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sK.prototype,"onYtPopupOpened",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sK.prototype,"onYtPopupClosed",null);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sK.prototype,"onDataChanged",null);
_.Z([_.il("selectedTier"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],sK.prototype,"selectedTierChangedForBinding",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],sK);
_.b(sK,"ytd-sponsorships-offer-renderer",function(){if(jja!==void 0)return jja;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return jja=k},{mode:_.GN("kevlar_poly_si_batch_j077")?1:2});var DEa;var lx=function(){var k=_.p.apply(this,arguments)||this;k.buttonOverrides={type:"filled",style:"mono"};return k};
_.y(lx,_.p);lx.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}}}}}};
lx.prototype.backgroundColorChanged=function(){var k,E,S,R=(E=_.W((k=this.data)==null?void 0:k.content,ult))==null?void 0:(S=E.backgroundColor)==null?void 0:S.backgroundColor;R&&(k=_.HT(R),_.Cc(this.hostElement).querySelector("#banner").style.backgroundColor=k,_.Cc(this.hostElement).querySelector("#abstract-art").style.backgroundColor=k)};
lx.prototype.attached=function(){this.JSC$20861_scroller&&(this.JSC$20861_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20861_scroller.attached&&typeof this.JSC$20861_scroller.attached==="function"&&this.JSC$20861_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lx.prototype.backgroundColorChanged=lx.prototype.backgroundColorChanged;_.Z([_.H(),_.l("design:type",Object)],lx.prototype,"data",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.JO("#scroller"),_.l("design:type",Object)],lx.prototype,"JSC$20861_scroller",void 0);_.Z([_.H(),_.l("design:type",Object)],lx.prototype,"buttonOverrides",void 0);
_.Z([_.il("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],lx.prototype,"backgroundColorChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],lx);
_.b(lx,"ytd-sponsorships-promotion-celebration-renderer",function(){if(DEa!==void 0)return DEa;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return DEa=k},{mode:_.GN("kevlar_poly_si_batch_j077")?1:2});var $EP;var fMx;var Mu=function(){return _.p.apply(this,arguments)||this};
_.y(Mu,_.p);Mu.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
Mu.prototype.computeIsInitiallyChecked=function(k){return k===1};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Mu.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Mu.prototype,"data",void 0);_.Z([_.JO("#checkbox"),_.l("design:type",Object)],Mu.prototype,"checkbox",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],Mu);
_.b(Mu,"ytd-subscription-toggle-option-renderer",function(){if(fMx!==void 0)return fMx;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return fMx=k},{mode:1});var qu=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return k};
_.y(qu,_.p);qu.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"}}}};
qu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
qu.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var k=_.Cc(this.hostElement).querySelector("#options").selected;k=this.data.options[k].subscriptionRadioOptionRenderer.serviceEndpoint;var E=_.Cc(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");E&&k&&k.modifyChannelNotificationPreferenceEndpoint&&(E=E.getValue())&&(k.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[E]);_.en().resolve(_.t3).resolveCommand(k,{form:{element:this.hostElement}});
_.qe(this.hostElement,"yt-close-popup-action")};
_.mt.Object.defineProperties(qu.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var k=this.data.options,E=0;E<k.length;E++){var S=k[E].subscriptionRadioOptionRenderer;if(S&&S.selected)return E}return null}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],qu.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],qu.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],qu.prototype,"eventForwardingBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],qu.prototype,"ytRendererBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],qu.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],qu.prototype,"darkerDarkTheme",void 0);_.Z([_.U("data.options"),_.l("design:type",Object),_.l("design:paramtypes",[])],qu.prototype,"initialIndex",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],qu);
_.b(qu,"ytd-subscription-notification-options-renderer",function(){if($EP!==void 0)return $EP;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return $EP=k},{mode:1});var vdG;var bdP=function(){return _.p.apply(this,arguments)||this};
_.y(bdP,_.p);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bdP.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],bdP.prototype,"data",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],bdP);
_.b(bdP,"ytd-tvfilm-offer-groups-renderer",function(){if(vdG!==void 0)return vdG;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return vdG=k},{mode:1});var ZdU;var zE=function(){var k=_.p.apply(this,arguments)||this;k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(zE,_.p);_.I=zE.prototype;_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.I.computeThumbnailClass=function(k){return k.thumbnailOverlays?k.isShow?"thumbnail-show":"thumbnail-movie":k.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.I.computeCommerceSectionClass=function(k){return k.offers&&k.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.I.computeTitleClass=function(k){return k.offers&&k.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.I.onDataChanged=function(){[].concat(_.$e(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(k){k.onShow()})};
zE.prototype.onDataChanged=zE.prototype.onDataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],zE.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],zE.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],zE.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],zE.prototype,"darkerDarkTheme",void 0);
_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],zE.prototype,"onDataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],zE);
_.b(zE,"ytd-ypc-offers-overlay-renderer",function(){if(ZdU!==void 0)return ZdU;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ZdU=k},{mode:_.GN("kevlar_poly_si_batch_j028")?1:2});var dEW;var sjT=function(){this.usedMethods=new Set};
sjT.prototype.add=function(k){this.usedMethods.add(k)};
sjT.prototype.reset=function(){this.usedMethods.clear()};var qMY=function(k,E){this.query=k;this.previousSearchQuery=E;this.id=lMI++;if(!M3a){E=_.Mg("SBOX_SETTINGS");k="https://"+((E==null?void 0:E.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var S=E==null?void 0:E.REQUEST_LANGUAGE;S&&(k+="&hl="+S);(S=E==null?void 0:E.REQUEST_DOMAIN)&&(k+="&gl="+S);k+="&client=youtube&gs_ri=youtube";(S=E==null?void 0:E.SUGG_EXP_ID)&&(k+="&sugexp="+encodeURIComponent(S));(S=E==null?void 0:E.PSUGGEST_TOKEN)&&(k+="&tok="+S);(E=
E==null?void 0:E.SESSION_INDEX)&&(k+="&authuser="+E);_.Y("desktop_enable_visual_suggest")&&(k+="&h=180&w=320&ytvs=1");M3a=k}},z$T=function(k){var E="q="+encodeURIComponent(k.query);
k.previousSearchQuery&&(E+="&pq="+encodeURIComponent(k.previousSearchQuery));return E},Qj0=function(){var k=_.Mg("SBOX_SETTINGS"),E={};
if(k==null?0:k.SEND_VISITOR_DATA)E["X-Goog-Visitor-Id"]=k==null?void 0:k.VISITOR_DATA;return E},Odx=function(k){var E=M3a;
E+="&gs_id="+k.id.toString(36);E+="&q="+encodeURIComponent(k.query);E+="&cp="+k.query.length;k.previousSearchQuery&&(E+="&pq="+encodeURIComponent(k.previousSearchQuery));(k=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(E+="&video_id="+k);return E},lMI=0,M3a="";var GvI=_.HK.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,CoR=_.HK.SEARCH_ENTITY_SUGGESTION_MOVIE,khT=_.HK.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,EKt=_.HK.SEARCH_ENTITY_SUGGESTION_TV_SHOW,SZA=function(k,E){this.text=k;this.bold=E},RqW=function(k,E,S){this.input=E;
this.index=S;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=k[0];this.type=k[1];this.subtypes=k[2];var R;this.displayText=Cp((R=k[3])==null?void 0:R.b);var V;this.ignoredPrefix=Cp((V=k[3])==null?void 0:V.a);var N,h;this.hasNewVideo=((N=k[3])==null?void 0:(h=N.zam)==null?void 0:h.toString())==="true"?!0:!1;var J;this.visualSuggestUrl=(J=k[3])==null?void 0:J.zai;var m;this.entityType=Cp((m=k[3])==null?void 0:m.zap);var a;this.entityName=Cp((a=k[3])==null?void 0:a.zao);var T;E=Cp((T=
k[3])==null?void 0:T.zaf);var w;this.entityMid=(w=k[3])==null?void 0:w.zae;T=$Xx(this.subtypes,this.entityMid);if(E&&T){if(E){w="";switch(T){case "YOUTUBE_ENTITY_TYPE_SONG":w=khT;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":w=GvI;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":w=EKt;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":w=CoR}T=T==="YOUTUBE_ENTITY_TYPE_SONG"||T==="YOUTUBE_ENTITY_TYPE_ALBUM"?w+" \u2022  \u2022 "+E:E}else T="";this.entitySubtitle=T}var P;this.externalChannelId=(P=k[3])==null?void 0:P.zav;var B;
this.entityThumbnailAttributionUrl=(B=k[3])==null?void 0:B.zaq},NnR=function(k,E){var S=[],R,V=(R=k.displayText)!=null?R:k.text;
(E==null?0:E.useEntityName)&&Vt2(k)&&k.entityName&&(V=k.entityName);if(k.type===33)return S.push(new SZA(V,!1)),S;if(V.length>=k.input.length&&V.substring(0,k.input.length)===k.input)S.push(new SZA(k.input,!1)),S.push(new SZA(V.substring(k.input.length),!0));else{var N=new Set(k.input.split(/\s/)),h=V.split(/\s/);S=h.map(function(J,m){return new SZA(J.trim()+(m===h.length-1?"":" "),!N.has(J))})}return S},Vt2=function(k){var E=!!$Xx(k.subtypes);
k=!!k.entityMid;return E||k};var IiG=function(k){this.rawResponse=["",[],{}];this.suggestions=[];try{var E=JSON.parse(fOW(k));if(typeof E==="object"&&E!==null)this.rawResponse=E;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(R){console.log("Suggest: Failed to parse SuggestResponse!");return}var S=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(R,V){return new RqW(R,S,V)})};var nK2=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new sjT;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20898_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},iJt,hq3=function(){iJt||(iJt=new nK2);
return iJt};
nK2.prototype.updateSuggestions=function(k){var E=this;this.availableSuggestions.forEach(function(S){E.previousSuggestions[S]=!0});
this.availableSuggestions=k.map(function(S){var R=S.type.toString();S.subtypes.length>0&&(R+="i"+S.subtypes.join("i"),R+="k"+S.suggestionSources.COMPLETE_SERVER.toString());return R})};
var JKP=function(k,E){var S=Date.now();k.firstEditTime<0&&(k.firstEditTime=S);E&&(k.lastQueryBuildTime=S);k.lastEditTime=S};
nK2.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20898_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var cKY=function(k){var E="";k.availableSuggestions.forEach(function(V){delete k.previousSuggestions[V]});
for(var S=_.n(Object.keys(k.previousSuggestions)),R=S.next();!R.done;R=S.next())R=R.value,k.previousSuggestions[R]&&(E+=(E?"j":"")+R);return E},mrP=function(k,E){var S=[];
E&&(S[1]=E.toString());S[0]="youtube";S[7]=Date.now()-k.startTime;S[6]=k.sessionNumber;k.zeroPrefixSuggestionCount>=0&&(S[33]=k.zeroPrefixSuggestionCount);S[13]=k.outOfSyncResponseCount;if(k.availableSuggestions.length>0){for(var R=E="",V=0,N=_.n(k.availableSuggestions),h=N.next();!h.done;h=N.next())h=h.value,h!==R&&(V>1&&(E+="l"+V),E+=(R?"j":"")+h,V=0,R=h),V+=1;V>1&&(E+="l"+V);S[3]=E}S[35]=cKY(k);k.selectedSuggestionIndex>=0&&(S[2]=k.selectedSuggestionIndex);var J;if(E=(J=_.Mg("SBOX_SETTINGS"))==
null?void 0:J.SUGG_EXP_ID)S[19]=k.normalize(E),J=0,k.experimentTriggeredBeforeFinal&&(J|=1),k.experimentTriggeredFinal&&(J|=2),S[20]=J;S[26]=Array.from(k.inputMethodsTracker.usedMethods).join("j");if(k.JSC$20898_totalRoundTripTime>0){S[15]=k.JSC$20898_totalRoundTripTime;S[14]=k.maxRoundTripTime;J=[];for(V=E=0;V<10;V++)R=k.roundTripTimeHistogram[V],R===0?E++:(E>1?J.push(V+"-"+R):E===1?J.push("0j"+R):J.push(R.toString()),E=0);J=J.join("j");S[16]=J}k.zeroPrefixRoundTripTime>0&&(S[36]=k.zeroPrefixRoundTripTime);
k.lastQueryBuildTime>0&&(S[18]=k.lastQueryBuildTime-k.startTime);k.firstEditTime>0&&(S[4]=k.firstEditTime-k.startTime);k.lastEditTime>0&&(S[5]=k.lastEditTime-k.startTime);return S.join(".")};
nK2.prototype.normalize=function(k){return k.replaceAll(".","-")};
var eqx=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var Qv=function(){var k=_.p.apply(this,arguments)||this;k.microphoneSpinnerActive=!1;k.noAnimations=!1;k.boundExitClick=function(){k.onExitButtonClick()};
k.speechOverlayClassName="";k.isLevelAnimating=!1;k.playCloseDialogAudioFeedback=!0;k.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return k};
_.y(Qv,_.p);_.I=Qv.prototype;_.I.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.I.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=Zb3()};
_.I.dataChanged=function(){this.logDialog()};
_.I.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var k;(k=this.manager.audioPlayer)!=null&&(k.JSC$20215_audioEnabled=!1)}this.manager.stop();(k=this.manager.audioPlayer)!=null&&(k.JSC$20215_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.I.handleSpeechQueryCompleteAction=function(k){var E=k.navigationAction;E&&(k.trackingParams&&_.JV().graftServerVe(k.trackingParams,this.dialogVe,5),_.Me(this.hostElement,"yt-navigate",{endpoint:E,tempData:this.getNavigationParams(E),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.I.onExitButtonClick=function(){this.closeDialog()};
_.I.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var k;if((k=this.manager)!=null){var E;(E=k.audioPlayer)==null||iQ(E,"failure");k.setState("microphone-off");k.stop()}}else(k=this.manager)==null||k.start()};
_.I.transcriptionChanged=function(){var k,E;(((k=this.transcription)==null?0:k.low)||((E=this.transcription)==null?0:E.high))&&this.setState("transcribing",this.transcription)};
_.I.stateChanged=function(){this.setState(this.state,this.transcription)};
_.I.logDialog=function(){var k;(k=this.data)!=null&&k.trackingParams&&(k=_.JV(),_.Pq(k,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=k.graftServerVe(this.data.trackingParams,void 0,5))};
_.I.getNavigationParams=function(k){var E={};if(_.Y("web_yt_searchbox")){var S=hq3();S.inputMethodsTracker.add(6);S=mrP(S,15);E.gs_l=S;var R;E.oq=((R=_.W(k,_.IR))==null?void 0:R.query)||""}else if(k=window.ytvoicesearchloggingparams){if(k=k())E.oq=k.oq,E.gs_l=k.gs_l}else _.kr(Error("Fl"));return E};
_.I.closeDialog=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.I.setState=function(k,E){if(this.data){var S=this.data,R={};switch(k){case "listening":R={headerText:S.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:S.microphoneButtonAriaLabel};break;case "timeout":R={headerText:S.promptHeader,microphoneState:"try-again",microphoneLabel:S.promptMicrophoneLabel,microphoneAriaLabel:S.promptMicrophoneLabel};break;case "microphone-off":R={headerText:S.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:S.promptMicrophoneLabel,
microphoneAriaLabel:S.promptMicrophoneLabel};break;case "transcribing":(E==null?0:E.low)||(E==null?0:E.high)?R={transcriptionLow:E==null?void 0:E.low,transcriptionHigh:E==null?void 0:E.high,microphoneState:"speaking",microphoneAriaLabel:S.microphoneButtonAriaLabel}:R={headerText:S.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:S.microphoneButtonAriaLabel};break;case "processing":R={headerText:S.loadingHeader,microphoneState:"processing",microphoneAriaLabel:S.microphoneButtonAriaLabel};
break;case "offline":R={headerText:S.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:S.connectionErrorMicrophoneLabel,microphoneAriaLabel:S.connectionErrorMicrophoneLabel};break;case "permission":R={headerText:S.permissionsHeader,bodyLine1:S.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:S.permissionsSubtext};break;case "permission-denied":R={headerText:S.disabledHeader,bodyLine1:S.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:S.disabledSubtext}}R.className=
k;this.speechOverlayState=R;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.I.setMicrophoneState=function(k){var E=this.isLevelAnimating;this.isLevelAnimating=k==="speaking";!E&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=k==="processing"&&!this.noAnimations};
_.I.setClass=function(k){this.speechOverlayClassName&&_.E_(this.hostElement,this.speechOverlayClassName,!1);k&&(this.speechOverlayClassName=k,_.E_(this.hostElement,k,!0))};
_.I.runLevelAnimation=function(){var k=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var E=1+Math.random()*.75,S=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+S/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+E+")");_.ZJ.addJob(function(){k.runLevelAnimation()},3,S)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
Qv.prototype.stateChanged=Qv.prototype.stateChanged;Qv.prototype.transcriptionChanged=Qv.prototype.transcriptionChanged;Qv.prototype.onPopupClosed=Qv.prototype.onPopupClosed;Qv.prototype.dataChanged=Qv.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Qv.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Qv.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Qv.prototype,"rendererStamperBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Qv.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],Qv.prototype,"eventForwardingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Qv.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Qv.prototype,"speechOverlayState",void 0);
_.Z([_.H(),_.l("design:type",Object)],Qv.prototype,"microphoneSpinnerActive",void 0);_.Z([_.H({type:_.Y("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.l("design:type",Object)],Qv.prototype,"noAnimations",void 0);_.Z([_.H({selector:function(k){var E;return(E=k.voiceSearch)==null?void 0:E.transcription}}),
_.l("design:type",Object)],Qv.prototype,"transcription",void 0);_.Z([_.H({selector:function(k){var E;return(E=k.voiceSearch)==null?void 0:E.overlay}}),
_.l("design:type",String)],Qv.prototype,"state",void 0);_.Z([_.H(),_.l("design:type",Object)],Qv.prototype,"boundExitClick",void 0);_.Z([_.JO("#microphone-levels"),_.l("design:type",HTMLElement)],Qv.prototype,"level",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qv.prototype,"dataChanged",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qv.prototype,"onPopupClosed",null);
_.Z([_.ac("transcription"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qv.prototype,"transcriptionChanged",null);_.Z([_.ac("state"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Qv.prototype,"stateChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],Qv);
_.b(Qv,"ytd-voice-search-dialog-renderer",function(){if(dEW!==void 0)return dEW;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return dEW=k},{mode:1});var aiY;var OK=function(){var k=_.p.apply(this,arguments)||this;k.isOverlay=!1;k.hidden=!1;return k};
_.y(OK,_.p);_.I=OK.prototype;_.I.onPopupClosed=function(){this.toggleIconState(!1)};
_.I.computeIcon=function(){var k,E,S;return(E=_.W((k=this.data)==null?void 0:k.icon,$ZY))==null?void 0:(S=E.icon)==null?void 0:S.iconType};
_.I.computeIconBadgeShape=function(){var k;return{iconBadgeType:"cart",iconBadgeText:(k=this.iconBadgeEntity)==null?void 0:k.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.I.onClick=function(){var k;(k=this.data)!=null&&k.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.I.computeHidden=function(k){return!k};
_.I.toggleIconState=function(k){this.iconButton&&(this.iconButton.pressed=k)};
OK.prototype.onPopupClosed=OK.prototype.onPopupClosed;_.Z([_.g(_.zm),_.l("design:type",Object)],OK.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],OK.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],OK.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],OK.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],OK.prototype,"isOverlay",void 0);
_.Z([_.H({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.l("design:type",Object)],OK.prototype,"hidden",void 0);_.Z([_.H({selectorArgs:["data.iconBadgeEntityKey"],selector:function(k,E){return _.Ep(k.entities,"iconBadgeEntity",E)}}),
_.l("design:type",Object)],OK.prototype,"iconBadgeEntity",void 0);_.Z([_.JO("yt-icon-button"),_.l("design:type",HTMLButtonElement)],OK.prototype,"iconButton",void 0);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],OK.prototype,"onPopupClosed",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],OK);
_.b(OK,"ytd-icon-badge-topbar-button-renderer",function(){if(aiY!==void 0)return aiY;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return aiY=k},{mode:1});var ttA;var GE=function(){var k=_.p.apply(this,arguments)||this;k.premiumOptions=[];k.darkerDarkTheme=_.Y("web_darker_dark_theme");return k};
_.y(GE,_.p);GE.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.mt.Object.defineProperties(GE.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],GE.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],GE.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Array)],GE.prototype,"premiumOptions",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],GE.prototype,"darkerDarkTheme",void 0);_.Z([_.U("premiumOptions"),_.l("design:type",Object),_.l("design:paramtypes",[])],GE.prototype,"hasPremiumOptions",null);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],GE);
_.b(GE,"ytd-offline-promo-content",function(){if(ttA!==void 0)return ttA;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return ttA=k},{mode:1});var Tn2;var Ck=function(){var k=_.p.apply(this,arguments)||this;k.premiumOptions=[];return k};
_.y(Ck,_.p);Ck.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var k;this.premiumOptions=DXW((k=this.data)==null?void 0:k.formats)};
Ck.prototype.onClickSubmit=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var k;(k=_.s3())==null||k.pause()};
Ck.prototype.attached=function(){this.JSC$20918_scroller&&(this.JSC$20918_scroller.dialogElement=this.hostElement.parentNode)};
_.mt.Object.defineProperties(Ck.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
Ck.prototype.dataChanged=Ck.prototype.dataChanged;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ck.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ck.prototype,"data",void 0);
_.Z([_.H({computed:"computeIcon_(data.headersIcon)",value:""}),_.l("design:type",String)],Ck.prototype,"headersIcon",void 0);_.Z([_.H(),_.l("design:type",Array)],Ck.prototype,"premiumOptions",void 0);_.Z([_.JO("#scroller"),_.l("design:type",Object)],Ck.prototype,"JSC$20918_scroller",void 0);_.Z([_.U("headersIcon"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ck.prototype,"showIcon",null);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ck.prototype,"dataChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],Ck);
_.b(Ck,"ytd-offline-promo-renderer",function(){if(Tn2!==void 0)return Tn2;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Tn2=k},{mode:1});var wrT;var ka=function(){var k=_.p.apply(this,arguments)||this;k.playbackPauseInterval=NaN;k.isLoading=!1;k.hasError=!1;k.dialogClass="";k.youtubeLabel=_.Vi("LOGO_ALT_LABEL",{},"YouTube Home");k.logoName="yt-logos-ext:yt-logo-updated";k.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return k};
_.y(ka,_.p);_.I=ka.prototype;_.I.onDataChange=function(){var k;if(this.showEOMV1Text=!((k=this.data)==null||!k.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.I.attached=function(){this.pausePlayer()};
_.I.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.I.handleLangSelect=function(k){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[k.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.I.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.I.handleSaveConsent=function(k){var E=this;this.showLoadingSpinner();this.showLoadingSpinner();UOR(_.W(k,foR)).catch(function(S){_.dg(new _.LC("Something went wrong when save consent "+(S.message?S.message:S)+"."));E.hideLoadingSpinner();E.showErrorMessage()})};
_.I.handleDisablePersonalization=function(k){var E=this;this.showLoadingSpinner();Hvx(_.W(k,$YP)).then(function(){E.dialog.close();E.resumePlayer()}).catch(function(S){_.dg(new _.LC("Something went wrong when disable personalization "+(S.message?S.message:S)+"."));
E.hideLoadingSpinner();E.showErrorMessage()})};
_.I.showLoadingSpinner=function(){var k=this;this.showSpinnerJobId=_.ZJ.addLowPriorityJob(function(){k.isLoading=!0},500)};
_.I.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.ZJ.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.I.showErrorMessage=function(){var k=this;this.hasError=!0;_.ZJ.addLowPriorityJob(function(){k.hasError=!1},2E3)};
_.I.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.yf(function(){try{var k=_.s3();k&&k.pause()}catch(E){}},100))};
_.I.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var k=_.s3();k&&k.play()}catch(E){}};
_.mt.Object.defineProperties(ka.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null||!k.eomV1Text)return[];k=[];for(var E=["SHIELD","WARNING","BAR_CHART"],S=this.data.eomV1Text.essentialCookieMsg.items,R=0;R<E.length&&R<S.length;R++)k.push({icon:E[R],text:S[R]});return k}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var k;if((k=this.data)==null||!k.eomV1Text)return[];k=[];for(var E=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],S=this.data.eomV1Text.nonEssentialCookieMsg.items,R=0;R<E.length&&R<S.length;R++)k.push({icon:E[R],text:S[R]});return k}}});
ka.prototype.onDataChange=ka.prototype.onDataChange;_.Z([_.H(),_.l("design:type",Object)],ka.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],ka.prototype,"showEOMV1Text",void 0);_.Z([_.H(),_.l("design:type",Object)],ka.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",Object)],ka.prototype,"hasError",void 0);_.Z([_.H(),_.l("design:type",Number)],ka.prototype,"showSpinnerJobId",void 0);_.Z([_.H(),_.l("design:type",Object)],ka.prototype,"dialogClass",void 0);
_.Z([_.JO("#dialog"),_.l("design:type",Object)],ka.prototype,"dialog",void 0);_.Z([_.JO("#cb-header"),_.l("design:type",HTMLElement)],ka.prototype,"header",void 0);_.Z([_.JO("#lang-select"),_.l("design:type",HTMLElement)],ka.prototype,"langSelect",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],ka.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],ka.prototype,"ytComponentBehavior",void 0);
_.Z([_.H(),_.l("design:type",String)],ka.prototype,"youtubeLabel",void 0);_.Z([_.H(),_.l("design:type",Object)],ka.prototype,"logoName",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],ka.prototype,"onDataChange",null);_.Z([_.U("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],ka.prototype,"eomEssentialCookieMsgItems",null);
_.Z([_.U("data"),_.l("design:type",Array),_.l("design:paramtypes",[])],ka.prototype,"eomNonEssentialCookieMsgItems",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],ka);
_.b(ka,"ytd-consent-bump-v2-lightbox",function(){if(wrT!==void 0)return wrT;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return wrT=k},{mode:1});var PBT;var Ee=function(){return _.p.apply(this,arguments)||this};
_.y(Ee,_.p);Ee.prototype.ready=function(){if(!_.rO()||vHG)var k=!0;else vHG=!0,k=!1;k||(k=document.querySelector("ytd-app"),k||(k=document.body),this.internalLightBox=_.Cc(k).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.Z([_.H(),_.l("design:type",Object)],Ee.prototype,"data",void 0);_.Z([_.JO("#lightbox"),_.l("design:type",Object)],Ee.prototype,"lightBox",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Ee);
_.b(Ee,"ytd-consent-bump-v2-renderer",function(){if(PBT!==void 0)return PBT;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return PBT=k},{mode:1});var BnW;var YZx;var WlP;var Ss=function(){return _.p.apply(this,arguments)||this};
_.y(Ss,_.p);_.I=Ss.prototype;_.I.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&EH3(this.toastManager,this.toastType)};
_.I.open=function(k){this.toast&&(this.ephemeralAction&&_.en().resolve(_.qf).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=k!=null?k:0,this.toastManager.enqueue(this.toast,k)):this.toast.open())};
_.I.close=function(k){var E;(E=this.toast)==null||E.close();this.toastManager&&k===1&&EH3(this.toastManager,k)};
_.I.refit=function(){var k;(k=this.toast)==null||k.refit()};
_.I.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var k;(k=this.toast)==null||k.close()}};
_.I.setVerticalOffset=function(k){this.toast&&(this.toast.verticalOffset=k,this.toast.fit())};
_.I.computeButtonClass_=function(k){return k?"toast-button":""};
_.I.computeText_=function(k){return _.$n(k)};
_.I.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.VI("toast-opened-changed",this.toastOpened))};
_.I.updateToastOpenedFromBinding=function(k){this.toastOpened=k.detail.value};
_.mt.Object.defineProperties(Ss.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var k,E,S=(k=this.data)==null?void 0:(E=k.actionButton)==null?void 0:E.buttonRenderer;return(S==null?void 0:S.command)||(S==null?void 0:S.serviceEndpoint)||(S==null?void 0:S.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 k=[],E;((E=this.data)==null?0:E.responseText)&&k.push(_.$n(this.data.responseText));var S;((S=this.data)==null?0:S.subText)&&k.push(_.$n(this.data.subText));var R,V;if((R=this.data)==null?0:(V=R.actionButton)==null?0:V.buttonRenderer){var N,h;k.push(((N=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(h=N.accessibilityData)==null?void 0:h.label)||_.$n(this.data.actionButton.buttonRenderer.text))}return k.filter(function(J){return J}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var k,E;return(E=(k=this.toast)==null?void 0:k.opened)!=null?E:!1}}});
Ss.prototype.toastOpenedChangedForBinding=Ss.prototype.toastOpenedChangedForBinding;Ss.prototype.toastOpenedChanged=Ss.prototype.toastOpenedChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ss.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],Ss.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ss.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Ss.prototype,"duration",void 0);
_.Z([_.H(),_.l("design:type",Number)],Ss.prototype,"toastType",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ss.prototype,"useCloseButton",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ss.prototype,"closeToastOnActionButtonClick",void 0);_.Z([_.H({value:function(){return _.Vi("SBOX_INAPPROPRIATE_CANCEL")}}),
_.l("design:type",String)],Ss.prototype,"closeButtonAriaLabel",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Ss.prototype,"toastOpened",void 0);_.Z([_.H(),_.l("design:type",Boolean)],Ss.prototype,"hasOpened",void 0);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ss.prototype,"command",null);_.Z([_.U("labelText","command","duration"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ss.prototype,"ephemeralAction",null);
_.Z([_.U("ephemeralAction"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ss.prototype,"hasEphemeralAction",null);_.Z([_.JO("#toast"),_.l("design:type",Object)],Ss.prototype,"toast",void 0);_.Z([_.H({value:function(){return{style:"call-to-action-inverse"}}}),
_.l("design:type",Object)],Ss.prototype,"buttonOverrides",void 0);_.Z([_.H({value:{style:"mono-inverse"}}),_.l("design:type",Object)],Ss.prototype,"closeButtonOverrides",void 0);_.Z([_.H({value:function(){return _.en().resolve(_.mz(_.ZS))}}),
_.l("design:type",Object)],Ss.prototype,"toastManager",void 0);_.Z([_.U("data.responseText","data.subText","data.actionButton"),_.l("design:type",Object),_.l("design:paramtypes",[])],Ss.prototype,"labelText",null);_.Z([_.il("toastOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ss.prototype,"toastOpenedChanged",null);
_.Z([_.il("toastOpened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ss.prototype,"toastOpenedChangedForBinding",null);_.Z([_.U_({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Ss);
_.b(Ss,"yt-notification-action-renderer",function(){if(WlP===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;YZx===void 0&&(YZx=document.createElement("template"));var R=YZx;S.call(E,R.content.cloneNode(!0),k.content.firstChild);WlP=k}k=WlP;return k},{mode:2});var Ra=function(){var k=_.p.apply(this,arguments)||this;k.duration=4E3;k.downloadingCount=0;k.downloadedCount=0;k.downloadingOnlySmartDownloads=!1;k.sessionTotalDownloads=0;k.sessionDownloaded=0;k.previousSessionsDownloaded=0;k.totalDownloadPercentage=0;k.currentDownloadProgress=0;k.currentDownloadPercentage=0;k.isLeaderTab=!0;k.isFullScreen=!1;k.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};k.boundBeforeUnload=function(E){k.isLeaderTab&&k.downloadingCount>0&&(E.preventDefault(),
E.returnValue=!0)};
return k};
_.y(Ra,_.p);_.I=Ra.prototype;
_.I.open=function(){this.updateDownloadState();if(this.data){var k=this.sessionDownloaded+1,E=this.sessionTotalDownloads>1?_.Vi("VIDEOS_DOWNLOADING_RATIO",{downloaded:k.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+k+"/"+this.sessionTotalDownloads):_.Vi("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(E=this.sessionTotalDownloads>1?_.Vi("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:k.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
k+"/"+this.sessionTotalDownloads):_.Vi("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));k=this.isLeaderTab?_.Vi("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.$n(this.data.responseText)!==E||_.$n(this.data.subText)!==k)this.set("data.responseText",_.DE(E)),this.set("data.subText",_.DE(k)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.I.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.I.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.I.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.I.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var k=this.downloadedCount-this.previousSessionsDownloaded;k<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-k);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.I.handleFullscreenChange=function(k){(this.isFullScreen=k)||this.updatePopup()};
Ra.prototype.updateCurrentDownloadProgress=Ra.prototype.updateCurrentDownloadProgress;Ra.prototype.updatePopup=Ra.prototype.updatePopup;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ra.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Ra.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],Ra.prototype,"ytEventForwardingBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Ra.prototype,"actionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ra.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],Ra.prototype,"duration",void 0);_.Z([_.H({selector:function(k){return _.jgm(k.entities).length}}),
_.l("design:type",Object)],Ra.prototype,"downloadingCount",void 0);_.Z([_.H({selector:DO2}),_.l("design:type",Object)],Ra.prototype,"downloadedCount",void 0);_.Z([_.H({selector:function(k){var E=_.jgm(k.entities);return jcR(k.entities,E)}}),
_.l("design:type",Object)],Ra.prototype,"downloadingOnlySmartDownloads",void 0);_.Z([_.H(),_.l("design:type",Object)],Ra.prototype,"sessionTotalDownloads",void 0);_.Z([_.H(),_.l("design:type",Object)],Ra.prototype,"sessionDownloaded",void 0);_.Z([_.H(),_.l("design:type",Object)],Ra.prototype,"previousSessionsDownloaded",void 0);_.Z([_.H(),_.l("design:type",Object)],Ra.prototype,"totalDownloadPercentage",void 0);
_.Z([_.H({selector:function(k){var E;k=(E=_.jgm(k.entities))!=null?E:[];return k.length>0?_.XIe(k.slice(-1)):0}}),
_.l("design:type",Object)],Ra.prototype,"currentDownloadProgress",void 0);_.Z([_.H(),_.l("design:type",Object)],Ra.prototype,"currentDownloadPercentage",void 0);_.Z([_.H({selector:_.bG1}),_.l("design:type",Object)],Ra.prototype,"isLeaderTab",void 0);_.Z([_.JO("yt-notification-action-renderer"),_.l("design:type",Object)],Ra.prototype,"notificationActionRenderer",void 0);
_.Z([_.ac("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ra.prototype,"updatePopup",null);_.Z([_.ac("currentDownloadProgress"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ra.prototype,"updateCurrentDownloadProgress",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Ra);
_.b(Ra,"ytd-video-download-toast-renderer",function(){if(BnW!==void 0)return BnW;var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return BnW=k},{mode:1});var Fla;var yKt;var Vq=function(){return _.p.apply(this,arguments)||this};
_.y(Vq,_.p);Vq.prototype.computeIsRedLogo=function(k,E){!k&&E&&(k=E);return k==="YOUTUBE_RED_LOGO"||k==="YOUTUBE_PREMIUM_LOGO"};
Vq.prototype.computeLogoName=function(k){k=this.componentBehavior.computeIcon_(k);return k===""?"yt-logos-ext:yt-logo-updated":k};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Vq.prototype,"componentBehavior",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.l("design:type",Boolean)],Vq.prototype,"isRedLogo",void 0);_.Z([_.H({computed:"computeLogoName(data)"}),_.l("design:type",String)],Vq.prototype,"logoName",void 0);_.Z([_.H({value:{}}),_.l("design:type",Object)],Vq.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],Vq.prototype,"logoType",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-logo"})],Vq);
_.b(Vq,"ytd-logo",function(){if(yKt!==void 0)return yKt;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return yKt=k},{mode:_.GN("kevlar_poly_si_batch_j074")?1:2});var N0=function(){var k=_.p.apply(this,arguments)||this;k.animationRef={};return k};
_.y(N0,_.p);_.I=N0.prototype;_.I.attached=function(){document.addEventListener("yt-navigate-finish",_.Ic(this,this.logYoodle))};
_.I.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ic(this,this.logYoodle))};
_.I.logYoodle=function(){var k,E;if((k=this.data)==null?0:(E=k.loggingDirectives)==null?0:E.trackingParams)this.ytRendererBehavior.markDirty(),_.JV().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.I.computeHideImg=function(k,E){return!!k||!!E};
_.I.computeHideYtdLogo=function(k,E){return!k||!!E};
_.I.computeHideLottie=function(k){return!k};
_.I.computeIsRedLogo=function(k){return k==="YOUTUBE_RED_LOGO"||k==="YOUTUBE_PREMIUM_LOGO"};
_.I.renderLogoEntity=function(){var k=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),E=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),S=this.getLogoTitleText(this.data),R=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==k&&(this.url=k);this.animatedUrl!==E&&(this.animatedUrl=E);this.logoTitleText!==S&&(this.logoTitleText=S);this.lottieUrl!==R&&(this.lottieUrl=R,this.lottiePlayerProps=this.computeLottiePlayerProps(R))};
_.I.getSanitizedThumbnail=function(k){return k&&k.thumbnails?_.zqj(k.thumbnails,122)||"":""};
_.I.getThumbnailUrl=function(k,E){if(!E)return"";var S,R;k=k?(S=E.darkThemeLogo)==null?void 0:S.thumbnail:(R=E.lightThemeLogo)==null?void 0:R.thumbnail;return this.getSanitizedThumbnail(k)};
_.I.getAnimatedThumbnailUrl=function(k,E){return E?this.getSanitizedThumbnail(k?E.darkThemeAnimatedLogo:E.lightThemeAnimatedLogo):""};
_.I.getLogoTitleText=function(k){if(k)return _.$n(k.tooltipText)};
_.I.computeLogoIcon=function(k,E){if(E){var S,R;return k?(S=E.darkThemeLogo)==null?void 0:S.icon:(R=E.lightThemeLogo)==null?void 0:R.icon}};
_.I.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.I.getLottieUrl=function(k,E){var S,R,V,N;return k?E==null?void 0:(S=E.darkThemeLogo)==null?void 0:(R=S.lottieAnimation)==null?void 0:R.url:E==null?void 0:(V=E.lightThemeLogo)==null?void 0:(N=V.lottieAnimation)==null?void 0:N.url};
_.I.computeLottiePlayerProps=function(k){if(k){var E;if((E=this.animationRef)==null?0:E.lottieEl){var S;(S=this.animationRef)==null||S.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:k,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.I.onLottieError=function(){this.data&&this.lottieUrl&&_.Me(this.hostElement,"yoodle-error")};
_.I.onImgError=function(){this.data&&!this.lottieUrl&&_.Me(this.hostElement,"yoodle-error")};
N0.prototype.playAnimation=N0.prototype.playAnimation;N0.prototype.renderLogoEntity=N0.prototype.renderLogoEntity;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],N0.prototype,"data",void 0);_.Z([_.H({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.l("design:type",Boolean)],N0.prototype,"hideImg",void 0);
_.Z([_.H({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.l("design:type",Boolean)],N0.prototype,"hideYtdLogo",void 0);_.Z([_.H({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.l("design:type",Boolean)],N0.prototype,"hideLottie",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.l("design:type",Boolean)],N0.prototype,"isRedLogo",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],N0.prototype,"useDarkThemeYoodle",void 0);_.Z([_.H(),_.l("design:type",String)],N0.prototype,"url",void 0);_.Z([_.H(),_.l("design:type",String)],N0.prototype,"animatedUrl",void 0);_.Z([_.H(),_.l("design:type",String)],N0.prototype,"logoTitleText",void 0);_.Z([_.H({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.l("design:type",Object)],N0.prototype,"logoIcon",void 0);_.Z([_.H(),_.l("design:type",Object)],N0.prototype,"logoType",void 0);
_.Z([_.H(),_.l("design:type",String)],N0.prototype,"lottieUrl",void 0);_.Z([_.H(),_.l("design:type",Object)],N0.prototype,"lottiePlayerProps",void 0);_.Z([_.H(),_.l("design:type",Object)],N0.prototype,"animationRef",void 0);_.Z([_.il("data"),_.il("useDarkThemeYoodle"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],N0.prototype,"renderLogoEntity",null);
_.Z([_.nv("click"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],N0.prototype,"playAnimation",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],N0);
_.b(N0,"ytd-yoodle-renderer",function(){if(Fla!==void 0)return Fla;var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return Fla=k},{mode:_.GN("kevlar_poly_si_batch_j074")?1:2});var oK2;var Xrt;var gKP=_.K5.currentPageTypeSelector,UrA=_.K5.currentPageSubTypeSelector,Ia=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return k};
_.y(Ia,_.p);_.I=Ia.prototype;_.I.onYoodleError=function(){_.Y("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.I.computeLogoName=function(k){k=this.componentBehavior.computeIcon_(k);return k===""?"yt-logos-ext:yt-logo-updated":k};
_.I.computeTitle=function(k,E,S){return S&&(E==null?0:E.tooltipText)?_.$n(E.tooltipText):_.$n(k)};
_.I.computeAriaLabel=function(k,E,S){return S&&(E==null?0:E.tooltipText)?_.$n(k):""};
_.I.computeShowYoodle=function(k,E,S){return!k||!E&&!!S&&!_.fO.isEmpty(S)};
_.I.onNavigateHomeAction=function(){if(_.Y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var k;(k=_.Cc(this.hostElement).querySelector(".yt-simple-endpoint"))==null||k.click()}};
_.I.computeLogoHref=function(k,E,S){var R;(S==null?0:S.onTapCommand)?R=this.componentBehavior.computeHref_(S.onTapCommand):k&&(R=this.componentBehavior.computeHref_(k));return R?R:E};
_.I.computeCommand=function(k,E){return(E==null?void 0:E.onTapCommand)||k};
_.I.getEndpointForm=function(){if(_.Y("kevlar_topbar_disable_cache_only_home")){var k=_.en().resolve(_.q5),E=gKP(k.getState())||"";k=UrA(k.getState())||"";return{disableCache:E==="ytd-browse"&&k==="home"}}return{disableCache:!0}};
Ia.prototype.onYoodleError=Ia.prototype.onYoodleError;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],Ia.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ia.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],Ia.prototype,"componentBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],Ia.prototype,"ytdReduxBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],Ia.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],Ia.prototype,"countryCode",void 0);_.Z([_.H({selectorArgs:["data.overrideEntityKey"],selector:function(k,E){return _.Ep(k.entities,"logoEntity",E)}}),
_.l("design:type",Object)],Ia.prototype,"logoEntity",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.l("design:type",Boolean)],Ia.prototype,"showYoodle",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ia.prototype,"yoodleError",void 0);_.Z([_.H({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.l("design:type",String)],Ia.prototype,"titleText",void 0);
_.Z([_.H({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.l("design:type",String)],Ia.prototype,"ariaLabelText",void 0);_.Z([_.H({value:"/"}),_.l("design:type",String)],Ia.prototype,"defaultEndpointUrl",void 0);_.Z([_.H({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.l("design:type",String)],Ia.prototype,"endpointUrl",void 0);
_.Z([_.H({computed:"computeCommand(data.endpoint, logoEntity)"}),_.l("design:type",String)],Ia.prototype,"command",void 0);_.Z([_.H(),_.l("design:type",Object)],Ia.prototype,"logoType",void 0);_.Z([_.H({}),_.l("design:type",Boolean)],Ia.prototype,"useDarkThemeYoodle",void 0);_.Z([_.nv("yoodle-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ia.prototype,"onYoodleError",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Ia);
_.b(Ia,"ytd-topbar-logo-renderer",function(){if(Xrt!==void 0)return Xrt;var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return Xrt=k},{mode:_.GN("kevlar_poly_si_batch_j027")?1:2});var HJ0=0;var KlR=_.HK.SEARCH_APPEND_LABEL,prI=_.HK.SUGGESTION_NEW_VIDEOS_TEXT,AKU=_.HK.SUGGESTION_THUMBNAIL_LABEL,rKU=_.HK.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,uHY=_.f(function(k){function E(Bz){var W0,EY;return _.c(function(pP){if(pP.nextAddress==1)return W0=new Request(Bz),_.F5(pP,2),pP.yield(fetch(W0,{credentials:"include"}),4);if(pP.nextAddress!=2)return H0(!0),_.Sv(pP,0);EY=_.UY(pP);_.dg(EY);_.KR(pP)})}
var S=k.isHighlighted;var R=k.suggestion;var V=k.onClickCallback;var N=k.onHoverUpdateCallback;var h=k.labels;var J=k.queryBuilderFunction;var m=k.onRemoveCallback;var a=k.suggestionIndex;var T=k.generateUniqueId;var w=k.highlightedId;var P=k.useScrollMargin;var B=k.isKeyboardMode;var F=null,K=null,r=_.VH("div"),x=_.VH("span");k=_.n(_.yg(!1,void 0,"mxSc0e"));var L=k.next().value,q=k.next().value,M=_.Nm("a",function(Bz){Bz&&_.hQ(237477,Bz,K,function(W0){K=W0})}),d=_.Nm("button",function(Bz){Bz&&_.hQ(237477,
Bz,K,function(W0){K=W0})}),z=_.RZ(function(Bz){if((Bz==null?void 0:Bz.button)===2)return Bz.preventDefault(),!1;
var W0=_.Fe();W0&&F&&_.$A(W0,F,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var EY;V(Bz,R().text,R().index,R().entityMid,Bz==null?void 0:(EY=Bz.detail)==null?void 0:EY.wasSelectedByKeyboard);return!1}),kb=function(){return R().type===35},TI=function(){return _.Y("desktop_enable_single_suggestion_highlight")},a1=function(){return _.wO("desktop_suggestions_panel_row_height")||0},Ah=function(){var Bz;
return _.Y("desktop_enable_new_video_metadata")&&((Bz=R())==null?void 0:Bz.hasNewVideo)===!0},th=function(){return _.Y("desktop_enable_visual_suggest")},He=function(){return _.Y("desktop_enable_entity_suggest")&&Vt2(R())},ve=function(){return R().entitySubtitle},Xm=function(){return TI()?(S==null?void 0:S())||hC()&&!(B==null?0:B()):(S==null?void 0:S())||hC()},U5=function(){var Bz=_.Mg("SBOX_SETTINGS");
return kb()&&!(Bz==null?0:Bz.HIDE_REMOVE_LINK)},l4=function(){return NnR(R(),{useEntityName:He()})},gY,IC=!((gY=_.en().resolve(_.mz(_.jF)))==null||!gY()),md=function(){return kb()?_.Y("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Kj=function(){return h==null?void 0:h().SUGGESTION_DISMISS_LABEL},Lj=function(){return h==null?void 0:h().SUGGESTION_DISMISSED_LABEL};
k=_.n(_.yg(!1,void 0,"WMms1e"));gY=k.next().value;var H0=k.next().value;k=_.n(_.yg(!1,void 0,"PyL0t"));var TG=k.next().value,iC=k.next().value,hC=TG,Y2=_.RZ(function(){J(x.value.innerText);return!1}),It=_.RZ(function(Bz){Bz.preventDefault();
return!1}),Wz=_.RZ(function(Bz){var W0=R().text,EY=_.Mg("SBOX_SETTINGS"),pP="https://"+(EY.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
pP+="&delq="+encodeURIComponent(W0);(W0=EY==null?void 0:EY.PSUGGEST_TOKEN)&&(pP+="&tok="+W0);(EY=EY==null?void 0:EY.SESSION_INDEX)&&(pP+="&authuser="+EY);E(pP);Bz.preventDefault();(Bz=_.Fe())&&K&&_.$A(Bz,K,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");m(a==null?void 0:a());return!1}),VP=_.RZ(function(){if(TI()&&(B==null?0:B()))return!1;
iC(!0);N(!0);return!1}),LR=_.RZ(function(){iC(!1);
N(!1);return!1}),Mp=_.RZ(function(){q(!0);
return!1}),tC=_.RZ(function(){q(!1);
return!1}),aC=_.RZ(function(Bz){Bz.preventDefault();
if(R().entityThumbnailAttributionUrl){Bz=R().entityThumbnailAttributionUrl;var W0=R().entityName,EY={urlEndpoint:{url:Bz},commandMetadata:{webCommandMetadata:{url:Bz}}};Bz={buttonViewModel:{title:_.Vi("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};EY={buttonViewModel:{title:_.Vi("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:EY}}};
W0={dialogHeaderViewModel:{headline:{content:W0!=null?W0:_.Vi("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var pP={basicContentViewModel:{paragraphs:[{text:{content:_.Vi("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};Bz={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:W0,footer:{panelFooterViewModel:{primaryButton:EY,secondaryButton:Bz,shouldHideDivider:!0}},content:pP}}}}};_.en().resolve(_.t3).resolveCommand(Bz)}return!1});
k=_.n(_.yg("",void 0,"yG5Sx"));var Rt=k.next().value,zI=k.next().value;_.vC(function(){U5()&&zI(T==null?void 0:T(a==null?void 0:a()));r.value&&_.hQ(12453,r.value,F,function(Bz){F=Bz})});
return _.e(_.t,{cond:gY,then:function(){var Bz={};return _.e("div",{class:_.SQ("ytSuggestionComponentRemovedText",(Bz.ytSuggestionComponentLargerRemovedText=function(){return th()},Bz)),
style:function(){return a1()>0?"height: "+a1()+"px;":""},
role:"button"},Lj)},
else:function(){var Bz={},W0={};return _.e("div",{class:_.SQ("ytSuggestionComponentSuggestion",(Bz.ytSuggestionComponentSuggestionHover=function(){return!TI()},Bz.ytSuggestionComponentHighlighted=Xm,Bz.ytSuggestionComponentPersonalizedSuggestion=kb,Bz.ytSuggestionComponentMweb=!1,Bz.ytSuggestionComponentLargerSuggestion=function(){return Ah()||th()},Bz.ytSuggestionComponentThumbnailSuggestion=function(){return th()},Bz.ytSuggestionComponentRoundedSuggestion=function(){return _.Y("desktop_enable_scrollable_suggestions_panel")&&
_.Y("desktop_enable_suggestions_panel_padding")},Bz.ytSuggestionComponentThumbnailPadding=function(){return th()&&!kb()},Bz)),
style:function(){return a1()>0?"height: "+a1()+"px;":""},
role:"presentation","on:mousedown":z,"on:mouseover":VP,"on:mouseout":LR,el:r},_.e("div",{class:_.SQ("ytSuggestionComponentText",(W0.ytSuggestionComponentScrollMargin=P,W0)),"aria-label":function(){return Ah()?R().text+" "+prI:R().text},
id:function(){return T==null?void 0:T(a==null?void 0:a())},
"on:mousedown":z,role:"option"},_.e(_.t,{cond:function(){return R().type!==33},
then:function(){return _.e(_.i_,{icon:md,className:"ytSuggestionComponentIcon"})}}),_.e("div",{class:"ytSuggestionComponentLeftContainer"},_.e("span",{el:x,
role:"button",tabindex:0},_.e(_.jw,{each:l4},function(EY){return EY.bold?_.e("span",{class:"ytSuggestionComponentBold"},EY.text):_.e("span",null,EY.text)})),_.e(_.t,{cond:function(){return He()&&!!R().entitySubtitle||Ah()},
then:function(){return _.e("div",{class:"ytSuggestionComponentMetadataContainer"},_.e(_.t,{cond:function(){return He()&&!!R().entitySubtitle},
then:function(){return _.e("div",{class:"ytSuggestionComponentEntitySubtitle"},ve)}}),_.e(_.t,{cond:function(){return Ah()},
then:function(){return _.e("div",{class:"ytSuggestionComponentNewVideoContainer"},_.e("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.e("div",{class:"ytSuggestionComponentNewVideoText"},prI))}}))}}))),_.e("div",{class:"ytSuggestionComponentRightContainer"},_.e(_.t,{cond:function(){return th()&&R().visualSuggestUrl!==void 0},
then:function(){var EY={};return _.e("div",{class:"ytSuggestionComponentThumbnailContainer"},_.e("img",{"aria-label":AKU,class:_.SQ("ytSuggestionComponentVisualSuggestThumbnail",(EY.ytSuggestionComponentCircularFrame=function(){return He()&&R().subtypes.includes(790)},EY.ytSuggestionComponentEntitySuggestThumbnail=function(){return He()},EY)),
src:function(){return R().visualSuggestUrl}}),_.e(_.t,{cond:function(){return He()&&!!R().entityThumbnailAttributionUrl},
then:function(){var pP={};return _.e("span",{title:rKU,role:"tooltip"},_.e("div",{"on:mouseover":Mp,"on:mouseout":tC,"on:mousedown":aC,class:_.SQ("ytSuggestionComponentThumbnailOverlay",(pP.ytSuggestionComponentThumbnailOverlayHidden=function(){return!L()},pP))},_.e(_.i_,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.e(_.D_,null,_.e(_.xk,{when:function(){return th()&&U5()}},function(){var EY={};
return _.e("button",{class:_.SQ("ytSuggestionComponentRemoveLinkClearButton",(EY.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Rt()&&Rt()===(w==null?void 0:w())},EY.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Xm()},EY)),
el:d,"on:mousedown":Wz,"aria-label":Kj,id:function(){return Rt()}},_.e(_.i_,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.e(_.xk,{when:function(){return!(th()&&R().visualSuggestUrl!==void 0)&&U5()}},function(){var EY={};
return _.e("a",{class:_.SQ("ytSuggestionComponentRemoveLink",(EY.ytSuggestionComponentRemoveLinkDark=IC,EY.ytSuggestionComponentRemoveLinkSelected=function(){return Rt()&&Rt()===(w==null?void 0:w())},EY)),
el:M,"on:mousedown":Wz,"aria-label":Kj,tabindex:0,role:"button",id:function(){return Rt()}},Kj)}),_.e(_.xk,{when:function(){return!1}},function(){return _.e("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":Y2,"on:mousedown":It,role:"button","aria-label":KlR},_.e(_.i_,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jj");var xrP=_.ry(["//www.google.com/textinputassistant/","/","_tia.js"]),LlW=_.f(function(){return _.e("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.e("button",{class:"ytdTextInputAssistantButton","on:click":_.RZ(function(){hq3().inputMethodsTracker.add(3);var k,E=(k=_.Mg("SBOX_SETTINGS"))==null?void 0:k.REQUEST_LANGUAGE;if(E)return _.KI(_.BH(xrP,14,E)),!1})},_.e("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kj");var jm3=function(){this.cache=new Map},Dr0=function(k){for(var E=_.n(k.cache.entries()),S=E.next();!S.done;S=E.next()){var R=_.n(S.value);
S=R.next().value;R=R.next().value;R.suggestions.some(function(V){return V.type===35})&&k.cache.delete(S)}};var $rY=_.HK.SEARCH,fia=_.HK.SEARCH_CLEAR_LABEL,vKG=new _.QE("FAKE_SUGGEST_RESPONSE");_.qi(_.f(function(k){function E(){Mp||(Mp=setTimeout(function(){aC()},1E3))}
function S(X8,oC,Dx){if(X8.trim()){LR=X8;_.l$("REFINEMENTS_TUPLE",void 0);Wz=!0;var YJ;oC=mrP(TG,oC);var Pz=(YJ=k.searchEndpoint)==null?void 0:YJ.call(k);_.bm3(X8,oC,Pz,md.value.value,Dx,window.location.pathname.startsWith("/shorts"));aC();md.value.value=X8;md.value.blur();TG.reset()}}
function R(X8){return _.c(function(oC){return oC.return(new Promise(function(Dx){var YJ=new XMLHttpRequest;YJ.open("GET",Odx(X8),!0);YJ.withCredentials=!0;var Pz=_.Mg("SBOX_SETTINGS");(Pz==null?0:Pz.SEND_VISITOR_DATA)&&YJ.setRequestHeader("X-Goog-Visitor-Id",Pz==null?void 0:Pz.VISITOR_DATA);YJ.onload=function(){Dx(YJ.responseText)};
YJ.onerror=function(){_.dg(Error("Hl"));Dx(null)};
setTimeout(function(){YJ.abort()},1E4);
YJ.send(null)}))})}
function V(X8){var oC,Dx,YJ,Pz;return _.c(function(HH){switch(HH.nextAddress){case 1:return oC={credentials:"include",headers:Qj0()},window.AbortController&&(Dx=new AbortController,setTimeout(function(){Dx.abort("ytsbox-suggest-timeout")},1E4),oC.signal=Dx.signal),_.F5(HH,2),HH.yield(fetch(Odx(X8),oC),4);
case 4:YJ=HH.yieldResult.text();_.Sv(HH,3);break;case 2:return Pz=_.UY(HH),Pz!=="ytsbox-abort-last"&&Pz!=="ytsbox-suggest-timeout"&&_.dg(Pz),HH.return(null);case 3:return HH.return(YJ)}})}
function N(X8){var oC,Dx,YJ;return _.c(function(Pz){switch(Pz.nextAddress){case 1:if(oC=_.en().resolve(_.mz(vKG)))return Pz.return(oC);Dx=Date.now();E();return _.Y("yt_searchbox_xhr")?Pz.yield(R(X8),5):Pz.yield(V(X8),4);case 4:YJ=Pz.yieldResult;Pz.jumpTo(3);break;case 5:YJ=Pz.yieldResult;case 3:if(YJ){Mp&&(clearTimeout(Mp),Mp=null);var HH=TG,$O=Dx,vU=X8.query.length===0;$O=Date.now()-$O;vU?HH.zeroPrefixRoundTripTime=$O:(HH.JSC$20898_totalRoundTripTime+=$O,HH.maxRoundTripTime=Math.max(HH.maxRoundTripTime,
$O),vU=Math.floor($O/100),vU>=eqx.length?++HH.roundTripTimeHistogram[9]:++HH.roundTripTimeHistogram[eqx[vU]])}return Pz.return(YJ)}})}
function h(X8){var oC,Dx,YJ;return _.c(function(Pz){if(Pz.nextAddress==1)return(oC=H0.cache.get(z$T(X8)))?Pz.return(oC):Pz.yield(N(X8),2);Dx=Pz.yieldResult;if(Dx===null)return Pz.return(null);YJ=new IiG(Dx);X8.query.length===0&&YJ.suggestions.length===0||H0.cache.set(z$T(X8),YJ);return Pz.return(YJ)})}
function J(X8){var oC,Dx;return _.c(function(YJ){if(YJ.nextAddress==1){VP=!1;var Pz=LR;Pz=_.WP1()==="search"?(_.Qo(location.href,"search_query")||_.Qo(location.href,"q"))===Pz:!1;oC=new qMY(X8,Pz?LR:null);return YJ.yield(h(oC),2)}Dx=YJ.yieldResult;if(Dx===null)return YJ.return();oC.query.length===0&&(TG.zeroPrefixSuggestionCount=Dx.suggestions.length);if(oC.id<=tC)return TG.outOfSyncResponseCount++,YJ.return();if(document.activeElement!==md.value)return YJ.return();tC=oC.id;var HH=TG,$O=Dx.rawResponse[2]||
{};HH.experimentTriggeredBeforeFinal||(HH.experimentTriggeredBeforeFinal=HH.experimentTriggeredFinal);HH.experimentTriggeredFinal=!!$O.e;TG.updateSuggestions(Dx.suggestions);r(-1);U5([]);Dx.suggestions!==B()&&YO(Dx.suggestions.length);F(Dx.suggestions);TI(Dx.suggestions.length>0&&Dx.suggestions[0].type===33);Lj&&(Lj.hidden=Dx.suggestions.length===0,kb()?(Lj.style.minWidth="",HH=Lj.style,$O=(Pz=B()[0])==null?void 0:Pz.ignoredPrefix,HH.marginLeft=($O?Math.min($O.length*6,Kj.value.offsetWidth):0).toString()+
"px"):(Lj.style.minWidth=Kj.value.offsetWidth+"px",Lj.style.marginLeft="0"),nO());_.KR(YJ)})}
function m(){if(!Wz)return!1;var X8=_.Mg("REFINEMENTS_TUPLE");return X8?(X8=X8[1].map(function(oC,Dx){return new RqW([oC,0,[71]],md.value.value,Dx)}),B()!==X8&&YO(X8.length),U5([]),F(X8),TG.updateSuggestions(X8),Wz=!1,Lj.hidden=X8.length===0,VP=X8.length>0,!0):!1}
function a(){var X8=md.value.value;(typeof X8==="string"||X8 instanceof String)&&X8!==""?M(!0):M(!1)}
function T(){if(_.WP1()==="search"){var X8=window.location.href;try{var oC=_.Qo(X8,"search_query")||_.Qo(X8,"q")||""}catch(Dx){oC=""}oC&&(md.value.value=oC,M(!0))}}
var w=_.n(_.yg([],void 0,"YqWjzb")),P=w.next().value;w=w.next().value;var B=P,F=w;P=_.n(_.yg(-1,void 0,"hiyF4d"));var K=P.next().value,r=P.next().value;P=_.n(_.yg(-1,void 0,"SUGY4b"));var x=P.next().value,L=P.next().value;P=_.n(_.yg(!1,void 0,"ozgCGe"));var q=P.next().value,M=P.next().value;P=_.n(_.yg(!1,void 0,"fb0dKe"));var d=P.next().value,z=P.next().value;w=_.n(_.yg(!1,void 0,"KkbNee"));P=w.next().value;w=w.next().value;var kb=P,TI=w;w=_.n(_.yg(!1,void 0,"b5D7E"));P=w.next().value;var a1=w.next().value;
w=_.n(_.yg(!1,void 0,"UrhqVc"));var Ah=w.next().value,th=w.next().value;w=_.n(_.yg(1,void 0,"zwJX4d"));var He=w.next().value,ve=w.next().value;w=_.n(_.yg([],void 0,"HryHu"));var Xm=w.next().value,U5=w.next().value;w=_.n(_.yg(!1,void 0,"Imfa3e"));var l4=w.next().value,gY=w.next().value;w=_.Y("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var IC=_.VH("yt-searchbox"),md=_.VH("input"),Kj=_.VH("div"),Lj,H0=
new jm3,TG=hq3(),iC=_.en().resolve(_.mz(_.jF)),hC=function(){var X8;return((X8=k.forceDarkMode)==null?void 0:X8.call(k))||!(iC==null||!iC())},Y2=function(){return _.Y("desktop_enable_scrollable_suggestions_panel")},It="i"+HJ0++,Wz=!1,VP=!1,LR="",Mp=null,tC=-1,aC=function(){U5([]);
F([]);TI(!1);Lj&&(Lj.hidden=!0);Mp&&(clearTimeout(Mp),Mp=null);r(-1)},Rt=function(X8,oC){X8.preventDefault();
gY(!0);Lj&&(Lj.hidden=!1);var Dx=K();X8=B();var YJ=Xm();oC=Zm3(oC);Dx+=oC;for(Dx>=X8.length?Dx=-1:Dx<-1&&(Dx=X8.length-1);Dx!==-1&&(YJ.includes(Dx)||Dx>=X8.length||Dx<0);)Dx+=oC,Dx>=X8.length&&(Dx=-1);r(Dx);K()>=0&&(md.value.value=B()[K()].text,L(0),a(),X8=K(),YJ=x(),(YJ=document.getElementById(ik[X8][YJ]))&&Y2()&&(X8===B().length-1?Lj.scrollTop=Lj.scrollHeight:YJ.scrollIntoView({block:"nearest",inline:"start"})))},zI=_.RZ(function(X8){if(!(X8.relatedTarget instanceof Element&&X8.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){z(!0);
var oC;(oC=k.focusCallback)==null||oC.call(k,!0);m()||(VP?Lj.hidden=!1:(_.Me(IC.value,"yt-autonav-pause-focus",{}),J(X8.target.value)))}}),Bz=_.RZ(function(X8){if(!(X8.relatedTarget instanceof Element&&X8.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){z(!1);
var oC;(oC=k.focusCallback)==null||oC.call(k,!1);Lj.scrollTop=0;Lj.hidden=!0;_.Me(IC.value,"yt-autonav-pause-blur",{})}}),W0=function(X8){X8=Zm3(X8);
var oC;((oC=ik[K()])==null?0:oC[x()+X8])&&L(x()+X8)},EY=_.RZ(function(X8){var oC=X8.target;
switch(X8.keyCode){case 13:X8.preventDefault();var Dx;if((Dx=ik[K()])==null?0:Dx[x()]){var YJ;(YJ=document.getElementById(ik[K()][x()]))==null||YJ.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}X8=X8.shiftKey?4:3;Dx=TG;YJ=K();Dx.selectedSuggestionIndex=YJ;S(oC.value,X8);break;case 27:Lj&&(Lj.hidden=!0);break;case 40:Rt(X8,40);break;case 38:Rt(X8,38);break;case 39:W0(39);break;case 37:W0(37);break;case 229:TG.inputMethodsTracker.add(4);break;default:TG.inputMethodsTracker.add(1),
JKP(TG)}return!1}),pP=_.RZ(function(X8){J(X8.target.value);
a();Y2()&&Lj&&(Lj.scrollTop=0);return!1}),dP=_.RZ(function(){TG.inputMethodsTracker.add(2);
JKP(TG);return!1});
_.vC(function(){if(Lj){TG.reset();if(window.ResizeObserver){var X8=new ResizeObserver(function(){kb()||(Lj.style.minWidth=Kj.value.offsetWidth+"px")});
X8.observe(Kj.value);(new ResizeObserver(function(){nO()})).observe(Lj);
_.bI(function(){X8.disconnect()})}T();
window.addEventListener("yt-navigate-finish",T);window.addEventListener("yt-focus-searchbox",function(){md.value.focus()});
var oC;a1((oC=_.Mg("SBOX_SETTINGS"))==null?void 0:oC.HAS_ON_SCREEN_KEYBOARD)}else _.bM(new _.LC("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var C2=_.RZ(function(X8){X8.preventDefault();S(md.value.value,12);return!1}),Jx=_.RZ(function(X8){X8.preventDefault();
var oC,Dx;(oC=md)==null||(Dx=oC.value)==null||Dx.focus();var YJ,Pz;((YJ=md)==null?void 0:(Pz=YJ.value)==null?void 0:Pz.value)!==""&&(md.value.value="",md.value.dispatchEvent(new Event("input")));return!1}),Qd=_.RZ(function(){var X8=ZhP(md.value.value,B().filter(function(oC){return oC.type!==35}).map(function(oC){return{label:oC.text}}));
_.qe(IC.value,"yt-open-popup-action",[{openPopupAction:X8},document.body]);return!1}),ot=_.RZ(function(){md.value.focus();
return!1}),N2=function(X8,oC,Dx,YJ,Pz){TG.selectedSuggestionIndex=Dx;
S(oC,Pz?3:1,YJ)},BX=function(X8){md.value.value=X8;
md.value.dispatchEvent(new Event("input"));TG.inputMethodsTracker.add(5);JKP(TG,!0)},ik=[[]],jo=function(X8){var oC="searchbox-suggestion"+_.HY(_.lj);
ik[X8].push(oC);return oC},YO=function(X8){if(B()){ik=[[]];
for(var oC=0;oC<X8;oC++)ik.push([])}},nO=function(){if(Y2()){var X8=Lj,oC=X8.scrollTop;
X8=X8.scrollHeight-X8.clientHeight;th(oC>=X8);oC=Math.abs(X8-oC);oC<=40?ve(1-(40-oC)/40):ve(1)}},mG=function(){return"opacity: "+He()*100+"%"},pl=_.RZ(function(){nO();
return!1}),fl=_.RZ(function(){gY(!1);
return!1}),MA,yd={},wU={},rk={},AR={};
return _.e("yt-searchbox",{class:_.SQ("ytSearchboxComponentHost",(yd.ytSearchboxComponentMweb=!1,yd.ytSearchboxComponentDesktop=!0,yd["yt-searchbox-filled-query"]=function(){return q()},yd["ytd-masthead"]=function(){return!d()},yd.ytSearchboxComponentHostDark=hC,yd)),
role:"search",el:IC,"client-ve-type":10349},_.e("div",{el:Kj,"on:click":ot,class:_.SQ("ytSearchboxComponentInputBox",(wU.ytSearchboxComponentInputBoxDark=hC,wU.ytSearchboxComponentInputBoxHasFocus=d,wU))},_.e("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":C2},_.e(_.t,{cond:d,then:function(){return _.e("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.e(_.i_,{icon:"SEARCH"}))}}),_.e("input",{el:md,
class:_.SQ("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":It,"aria-expanded":!((MA=Lj)==null?0:MA.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Bz,"on:focus":zI,"on:input":pP,"on:keydown":EY,"on:paste":dP,placeholder:k.placeholderText,"aria-activedescendant":function(){var X8;return(X8=ik[K()])==null?void 0:X8[x()]},
"aria-autocomplete":"list",role:"combobox"})),_.e(_.t,{cond:P,then:function(){return _.e("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.e(LlW,null))}}),_.e(_.t,{cond:q,
then:function(){return _.e("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.e("button",{class:"ytSearchboxComponentClearButton","on:click":Jx,"aria-label":k.clearButtonAriaLabel||fia},_.e(_.i_,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.e(_.B5,{model:{}})))}})),_.e("button",{class:_.SQ("ytSearchboxComponentSearchButton",(rk.ytSearchboxComponentSearchButtonDark=hC,rk)),
"on:click":C2,"aria-label":$rY,title:k.placeholderText},_.e(_.i_,{icon:"SEARCH"})),_.e(_.t,{cond:function(){if(aOx()&&_.Y("mweb_voice_search")&&k.voiceSearchButton)return k.voiceSearchButton()},
then:function(X8){var oC={};return _.e("div",{class:_.SQ("ytSearchboxComponentVoiceSearchWrapper",(oC.ytSearchboxComponentHideVoiceSearchButton=function(){return q()},oC))},_.e(_.cp,{data:X8},{buttonRenderer:function(Dx){return _.e(_.IT,{data:Dx.data,
onButtonClickCallback:function(){}})}}))}}),_.e("div",{el:_.Z0(function(X8){return void(Lj=X8)}),
id:It,class:_.SQ("ytSearchboxComponentSuggestionsContainer",(AR.ytSearchboxComponentSuggestionsContainerDark=hC,AR["yt-searchbox-suggestions-container"]=!1,AR.ytSearchboxComponentSuggestionsContainerScrollable=Y2(),AR.ytSearchboxComponentSuggestionsContainerAnimated=w,AR)),"on:scroll":pl,"on:mousemove":fl,role:"listbox",hidden:!0},_.e(_.jw,{each:B},function(X8,oC){return _.e(uHY,{suggestion:X8,isHighlighted:function(){return oC()===K()},
onClickCallback:N2,onHoverUpdateCallback:function(Dx){if(_.Y("desktop_enable_single_suggestion_highlight")){var YJ=oC();Dx&&(L(0),r(YJ))}},
onRemoveCallback:function(Dx){Dr0(H0);Dx===void 0||Dx<0||Xm().includes(Dx)||U5([].concat(_.$e(Xm()),[Dx]))},
labels:k.labels,queryBuilderFunction:BX,suggestionIndex:oC,generateUniqueId:jo,highlightedId:function(){var Dx;return(Dx=ik[K()])==null?void 0:Dx[x()]},
useScrollMargin:Y2(),isKeyboardMode:l4})}),_.e(_.t,{cond:function(){return!kb()&&B().find(function(X8){return X8.type!==35})&&_.Y("searchbox_reporting")},
then:function(){return _.e("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Qd},_.Vi("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.e(_.t,{cond:function(){return!Ah()&&Y2()},
then:function(){return _.e("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.e("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:mG}))}})))},"mj"),"yt-searchbox",{props:{searchEndpoint:_.Nq,
placeholderText:_.Nq,labels:_.Nq,voiceSearchButton:_.Nq,focusCallback:_.sk,clearButtonAriaLabel:_.Nq,forceDarkMode:_.Nq}});var na=function(){var k=_.p.apply(this,arguments)||this;k.menuButtonTargetId="topbar-guide-menu";k.narrow=!1;k.menuStrings={BACK_ALT_LABEL:_.Vi("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Vi("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Vi("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Vi("SBOX_PLACEHOLDER",void 0,"Search")};k.pageDarkTheme=document.documentElement.hasAttribute("dark");k.watchPageScrollTop=0;k.theater=!1;k.fullscreen=!1;k.disableFrostedGlassDuringViewTransition=
!1;k.desktopUnifiedSearchPanelMode=_.Y("desktop_enable_unified_search_panel");k.cinematicTheaterMode=_.Y("web_cinematic_theater_mode");k.aiCompanionEnabled=_.Y("enable_ai_companion");k.ytSearchboxFocused=!1;k.searchboxLabels=_.Mg("SBOX_LABELS");k.topbarIsAboveChipbar=!1;k.isDarkThemeForced=!1;k.areGhostCardsHidden=!1;k.guideKeyboardToggle=!1;k.voiceSearchManager=Zb3();k.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};k.setYtSearchboxFocused=
function(E){k.ytSearchboxFocused=E};
k.toggleFrostedGlassDuringViewTransition=function(E){k.disableFrostedGlassDuringViewTransition=E};
return k};
_.y(na,_.p);_.I=na.prototype;_.I.computeSimpleText=function(k){return _.$n(k)};
_.I.onDarkChanged=function(){for(var k=_.n(this.buttons||[]),E=k.next();!E.done;E=k.next())E.value.isOverlay=!!this.dark;k=_.n(this.buttonRenderers||[]);for(E=k.next();!E.done;E=k.next())E.value.overrides=this.computeButtonOverride()};
_.I.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.I.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"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var k=_.G7(_.O7(),"aa");_.E_(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||k||(this.isDarkThemeForced=this.dark=!0);this.logoType?(k=this.hostElement.querySelector("#masthead-logo"))&&(_.Y("polymer_on_demand_shady_dom")?k.setAttribute("slot","masthead-logo-old"):_.Ua(k)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Ic(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Ic(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.I.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Ic(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Ic(this,this.onSetTheaterModeEnabled))};
_.I.dataChanged=function(){var k=this.data;k&&(this.voiceEnabled=k.voiceSearchButton?Zb3().isSupported():!1,_.L_p(_.xN(),this.menuButtonTargetId,this.guideButton),k.onReceivedActions&&k.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Ot(this.hostElement,k.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&k&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.E_(this.hostElement,"dark",!1),_.E_(this.hostElement,"theater",!1),
(k=this.hostElement.querySelector("#masthead-logo"))&&(_.Y("polymer_on_demand_shady_dom")?k.setAttribute("slot","masthead-logo-old"):_.Ua(k))))};
_.I.computeCenterHidden=function(){var k;return this.data&&!((k=this.data.searchbox)==null?0:k.fusionSearchboxRenderer)};
_.I.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.E_(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.I.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.I.onWatchScroll=function(k){this.watchPageScrollTop=k.detail||0;this.updateMastheadBackgroundOpacity()};
_.I.onFullscreenChangeAction=function(k){k||(this.watchPageScrollTop=0);this.fullscreen=k;this.updateMastheadBackgroundOpacity()};
_.I.onSetTheaterModeEnabled=function(k){this.theater=k.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.I.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.I.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.I.setBackgroundOpacity=function(k){k=this.calculateBackgroundOpacity(k);this.background.style.opacity=""+k};
_.I.calculateBackgroundOpacity=function(k){var E=this.theater&&this.cinematicTheaterMode?.6:0,S=this.hostElement.clientHeight/2;return Math.min(Math.max(k,0),S)/S*(1-E)+E};
_.I.shouldShowCinematicMastHead=function(){var k=_.Y("kevlar_watch_grid")&&!_.Y("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(k||this.pageDarkTheme)};
_.I.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.I.focusGuide=function(){this.guideButton.focus()};
_.I.onGuideToggleTap=function(){_.Me(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.I.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.I.onGuideToggleHover=function(){_.Me(this.hostElement,"yt-guide-hover")};
_.I.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.I.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.I.closeOnOutsideClickCondition=function(k){for(k=_.vT(k);k[0];){var E=k.shift();if(E instanceof Element&&E.id==="kbd")return!1}return!0};
_.I.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.I.pausePlayer=function(){var k;(k=_.s3())==null||k.pause();this.pauseMiniplayer()};
_.I.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var k;(k=_.en().resolve(_.yb).getPlayerElement())==null||k.pause()}};
_.I.isMiniplayerActive=function(){return _.en().resolve(_.yb).isMiniplayerActive()};
_.I.updateNarrowFromBinding=function(k){this.narrow=k.detail.value};
_.I.onYtSendFeedbackAction=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.I.registerWithViewTransitionManager=function(){ep0(_.en().resolve(_.Au),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.mt.Object.defineProperties(na.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.Y("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var k;return!!(this.aiCompanionEnabled&&((k=this.data)==null?0:k.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var k;return(k=this.data)==null?void 0:k.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
na.prototype.narrowChanged=na.prototype.narrowChanged;na.prototype.onWatchPageChange=na.prototype.onWatchPageChange;na.prototype.onRendererStamperFinished=na.prototype.onRendererStamperFinished;na.prototype.dataChanged=na.prototype.dataChanged;na.prototype.onDarkChanged=na.prototype.onDarkChanged;_.Z([_.g(_.KS),_.l("design:type",Object)],na.prototype,"ironResizableBehavior",void 0);_.Z([_.g(_.ala),_.l("design:type",Object)],na.prototype,"ytdExpandableInputBehavior",void 0);
_.Z([_.g(_.Ez.YtdGuideStateAwareBehavior),_.l("design:type",Object)],na.prototype,"ytdGuideStateAwareBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],na.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],na.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],na.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.zm),_.l("design:type",Object)],na.prototype,"ytdReduxBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],na.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],na.prototype,"narrow",void 0);_.Z([_.H(),_.l("design:type",Object)],na.prototype,"logoType",void 0);_.Z([_.H(),_.l("design:type",Boolean)],na.prototype,"voiceEnabled",void 0);
_.Z([_.H(),_.l("design:type",Object)],na.prototype,"menuStrings",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],na.prototype,"dark",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],na.prototype,"pageDarkTheme",void 0);_.Z([_.H(),_.l("design:type",Object)],na.prototype,"watchPageScrollTop",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.Ky1}),_.l("design:type",Boolean)],na.prototype,"isWatchPage",void 0);
_.Z([_.H({reflectToAttribute:!0,selector:_.p5j}),_.l("design:type",Boolean)],na.prototype,"isShortsPage",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],na.prototype,"theater",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],na.prototype,"fullscreen",void 0);_.Z([_.H({reflectToAttribute:!0,selector:_.xqh}),_.l("design:type",String)],na.prototype,"frostedGlassMode",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],na.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],na.prototype,"aiCompanionEnabled",void 0);_.Z([_.H(),_.l("design:type",Object)],na.prototype,"ytSearchboxFocused",void 0);_.Z([_.cu("#buttons > *"),_.l("design:type",Array)],na.prototype,"buttons",void 0);_.Z([_.cu("ytd-button-renderer"),_.l("design:type",Array)],na.prototype,"buttonRenderers",void 0);
_.Z([_.JO("#background"),_.l("design:type",HTMLDivElement)],na.prototype,"background",void 0);_.Z([_.JO("#guide-button"),_.l("design:type",Object)],na.prototype,"guideButton",void 0);_.Z([_.JO("#logo"),_.l("design:type",Object)],na.prototype,"logo",void 0);_.Z([_.H({computed:"computeButtonOverride(dark)"}),_.l("design:type",Object)],na.prototype,"buttonOverrides",void 0);
_.Z([_.ac("dark"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],na.prototype,"onDarkChanged",null);_.Z([_.H({value:function(){return this.onVoiceTap.bind(this)}}),
_.l("design:type",Function)],na.prototype,"boundOnTapVoiceButton",void 0);_.Z([_.H(),_.l("design:type",Object)],na.prototype,"topbarIsAboveChipbar",void 0);_.Z([_.H(),_.l("design:type",String),_.l("design:paramtypes",[])],na.prototype,"guideIcon",null);_.Z([_.U("voiceEnabled"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],na.prototype,"shouldShowVoiceSearchButton",null);
_.Z([_.U("data.aiCompanionButton","aiCompanionEnabled"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],na.prototype,"shouldShowAiCompanionButton",null);_.Z([_.U("data"),_.l("design:type",Object),_.l("design:paramtypes",[])],na.prototype,"voiceSearchButton",null);_.Z([_.U("aiCompanionEnabled"),_.l("design:type",String),_.l("design:paramtypes",[])],na.prototype,"narrowQuery",null);
_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],na.prototype,"dataChanged",null);_.Z([_.nv("yt-rendererstamper-finished"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],na.prototype,"onRendererStamperFinished",null);_.Z([_.ac("isWatchPage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],na.prototype,"onWatchPageChange",null);
_.Z([_.ac("narrow"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],na.prototype,"narrowChanged",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-masthead"})],na);
_.b(na,"ytd-masthead",function(){if(oK2!==void 0)return oK2;var k=document.createElement("template");_.X(k,'\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="[[narrowQuery]]" 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="[[!shouldShowAiCompanionButton]]" 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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return oK2=k},{mode:_.GN("kevlar_poly_si_batch_j036")?1:2});var bJP;var ZJ2={},drY={},sma={},li0={},Mtx=(li0.OFFLINE=(ZJ2["publicytnetworkstatus-online"]="BACK_ONLINE",ZJ2),li0.ONLINE=(drY["publicytnetworkstatus-offline"]="OFFLINE",drY),li0.BACK_ONLINE=(sma["publicytnetworkstatus-offline"]="OFFLINE",sma.TIMER_TRIGGER="ONLINE",sma),li0),iF=function(){var k=_.p.apply(this,arguments)||this;k.currentState="ONLINE";k.scheduledJobId=0;k.bannerString="";k.bannerVe=null;k.networkStatusManagerInstance=new _.Ec;return k};
_.y(iF,_.p);_.I=iF.prototype;_.I.attached=function(){var k=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){k.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){k.stateChangeHandler("publicytnetworkstatus-offline")})};
_.I.detached=function(){var k=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){k.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){k.stateChangeHandler("publicytnetworkstatus-offline")})};
_.I.enterState=function(k){var E=this;this.scheduledJobId&&_.ZJ.cancelJob(this.scheduledJobId);k==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):k==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Vi("NO_INTERNET_CONNECTION",void 0,"No internet connection")):k==="BACK_ONLINE"&&(this.bannerString=_.Vi("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.uM(_.ZJ,function(){E.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=k};
_.I.stateChangeHandler=function(k){(k=Mtx[this.currentState][k])&&this.enterState(k)};
_.I.logVisibility=function(k){var E=_.Fe();this.createBannerVe(k);E&&this.bannerVe&&(k?_.Lz(E,[this.bannerVe]):_.jd(E,[this.bannerVe]))};
_.I.createBannerVe=function(k){!this.bannerVe&&k&&(this.bannerVe=_.kh(37929),_.Yo(_.JV(),this.bannerVe))};
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",String)],iF.prototype,"currentState",void 0);_.Z([_.H(),_.l("design:type",Object)],iF.prototype,"scheduledJobId",void 0);_.Z([_.H(),_.l("design:type",Object)],iF.prototype,"bannerString",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-network-status-banner"})],iF);
_.b(iF,"ytd-network-status-banner",function(){if(bJP!==void 0)return bJP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return bJP=
k},{mode:1});var qZP;var h5=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};k.hidden=!0;k.frostedGlass=_.Y("web_frosted_glass");return k};
_.y(h5,_.p);h5.prototype.computeHidden=function(k){return k&&k.status?!1:!0};
h5.prototype.handleUpdatePermissionRoleCommand=function(k){if(k=_.W(k,_.w5d))if(k=_.W(k.renderer,_.TAC))this.data=k};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],h5.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],h5.prototype,"componentBehavior",void 0);_.Z([_.H({value:!0,computed:"computeHidden(data)"}),_.l("design:type",Object)],h5.prototype,"hidden",void 0);_.Z([_.H(),_.l("design:type",Object)],h5.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],h5.prototype,"frostedGlass",void 0);
_.Z([_.D({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],h5);
_.b(h5,"ytd-permission-role-bottom-bar-renderer",function(){if(qZP!==void 0)return qZP;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return qZP=k},{mode:1});var zqA;var QmY;var dXY={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var J5=function(){return _.p.apply(this,arguments)||this};
_.y(J5,_.p);_.I=J5.prototype;_.I.attached=function(){this.JSC$21014_scroller&&(this.JSC$21014_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21014_scroller.attached&&typeof this.JSC$21014_scroller.attached==="function"&&this.JSC$21014_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(S){S.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var k=_.Cc(this.hostElement);k.querySelector("tp-yt-paper-radio-group").selected="";var E=k.querySelector("#reason-text");E&&(E.value="");k.querySelector("#description-text").value=""}};
_.I.canSubmit=function(k,E){_.Me(this.hostElement,"yt-invalidate-popup-tabbables");return!(k&&E)};
_.I.onCancel=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.I.onSubmit=function(){var k=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(N){return N.active}).map(function(N){return N.innerText.trim()}),E=this.hostElement.querySelector("tp-yt-paper-radio-group"),S=E.selectedItem,R=S.name;
S=S.innerText.trim();var V=E.querySelector("#reason-text");E=void 0;V&&(E=V.value);(V=this.descriptionText.value)&&(V=V.trim());sOY(this.data.searchQuery,k,R,S,V,E);_.qe(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.I.sendFormSubmitToast=function(){var k=_.d8(_.Vi("SBOX_INAPPROPRIATE_TOAST"));_.qe(this.hostElement,"yt-open-popup-action",[k,this])};
_.I.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(k){return k.active})};
_.I.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
J5.prototype.onIronSelect=J5.prototype.onIronSelect;J5.prototype.onIronChange=J5.prototype.onIronChange;J5.prototype.dataChanged=J5.prototype.dataChanged;_.Z([_.H(),_.l("design:type",Object)],J5.prototype,"data",void 0);_.Z([_.H({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.l("design:type",Boolean)],J5.prototype,"submitDisabled",void 0);_.Z([_.H(),_.l("design:type",Boolean)],J5.prototype,"suggestionSelected",void 0);
_.Z([_.H(),_.l("design:type",Boolean)],J5.prototype,"catagorySelected",void 0);_.Z([_.JO("#scroller"),_.l("design:type",Object)],J5.prototype,"JSC$21014_scroller",void 0);_.Z([_.JO("#description-text"),_.l("design:type",Object)],J5.prototype,"descriptionText",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J5.prototype,"dataChanged",null);
_.Z([_.nv("iron-change"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J5.prototype,"onIronChange",null);_.Z([_.nv("iron-select"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],J5.prototype,"onIronSelect",null);_.Z([_.D({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],J5);
_.b(J5,"ytd-search-suggestion-report-dialog",function(){if(QmY!==void 0)return QmY;var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);return QmY=k},{mode:1});var cB=function(k){var E=k.openPopupAction;var S=k.target;var R=k.container;var V=k.popupContainerConfig;var N=k.getElement;k=k.removeWhenClosed===void 0?!1:k.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=E;this.target=S;this.container=R;this.popupContainerConfig=V;this.getElement=N;this.JSC$21020_popupConfig=this.popupContainerConfig.JSC$20149_popupConfig[this.openPopupAction.popupType];this.rendererName=(E=this.getName())?_.IgR(E,YOa(this.popupContainerConfig,
E)):"";_.Y("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=k);this.createPopup()};
cB.prototype.updatePopup=function(k){this.openPopupAction=k;this.JSC$21020_popupConfig=this.popupContainerConfig.JSC$20149_popupConfig[this.openPopupAction.popupType];OJW(this);_.Y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
cB.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var k$G=function(k,E,S){(E=E&&k.JSC$21020_popupConfig.narrowProperties?k.JSC$21020_popupConfig.narrowProperties:k.JSC$21020_popupConfig.properties)&&S!==void 0&&(E.isAriaModal=S);Gh2(k,E);k.isRtl()&&Gh2(k,k.JSC$21020_popupConfig.rtlProperties);CBT(k)};
cB.prototype.createPopup=function(){var k=this.JSC$21020_popupConfig.component;if(this.popupContent=EE0(this,this.rendererName)){if(k){this.popup=EE0(this,k);var E=this.popupContent;_.Y("web_enable_wrapper_for_cow_component_in_popup")&&(E=document.createElement("div"),E.appendChild(this.popupContent));_.Y("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21020_popupConfig.slotName&&E.setAttribute("slot",this.JSC$21020_popupConfig.slotName);k=this.popup;var S=this.container.tagName.toLowerCase(),
R=_.ZW(E);_.IQR(_.sx(k),_.qy(E,S,R));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.Y("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Cc(this.container).appendChild(this.popup)}};
var OJW=function(k){var E,S,R=(E=k.openPopupAction.accessibilityData)==null?void 0:(S=E.accessibilityData)==null?void 0:S.label;R&&(k.popup.ariaLabel=R);var V;((V=k.popupContent.polymerController)!=null?V:k.popupContent).data=(0,_.fO.unsafeClone)(k.openPopupAction.popup[k.getName()]);k.popupContent.duration=SlY(k);k.popupContent.positionType=k.openPopupAction.position;var N=k.openPopupAction.properties;N&&Object.keys(N).forEach(function(h){k.popupContent[h]=N[h]})},Gh2=function(k,E){if(E)for(var S=
_.n(Object.keys(E)),R=S.next();!R.done;R=S.next())R=R.value,k.popup[R]=E[R]},CBT=function(k){if(k.openPopupAction.position){var E=k.JSC$21020_popupConfig.positionalProperties&&k.JSC$21020_popupConfig.positionalProperties[k.openPopupAction.position],S=k.JSC$21020_popupConfig.rtlPositionalProperties&&k.JSC$21020_popupConfig.rtlPositionalProperties[k.openPopupAction.position];
E=k.isRtl()&&S?S:E;E.shiftedHorizontalOffset&&(S=k.popup.style.display,k.popup.style.display="block",k.popupContent&&k.popup.positionTarget&&k.popupContent.clientWidth>k.popup.positionTarget.clientWidth&&(E.horizontalOffset=k.popup.positionTarget.clientWidth/2-E.shiftedHorizontalOffset),k.popup.style.display=S);Gh2(k,E)}},R6a=function(k,E){if(E)for(var S=_.n(Object.keys(E)),R=S.next();!R.done;R=S.next())R=R.value,k.popup.style[R]=E[R]};
cB.prototype.getName=function(){return _.d0(this.openPopupAction.popup,"renderer")||_.d0(this.openPopupAction.popup,"dialog")||_.d0(this.openPopupAction.popup,"model")||void 0};
var SlY=function(k){k=k.openPopupAction.durationHintMs;return k===0?k:Math.max(4E3,k||4E3)};
cB.prototype.isRtl=function(){return _.Mg("HTML_DIR")==="rtl"};
var EE0=function(k,E){k=k.getElement(E,k.target);k==null&&_.dg(new _.LC("popup getElement returned null",E));return k};var V53={};
V53.YtPopupContainerBehavior=[_.OE.YtComponentBehavior,_.H5.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_);_.st(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.lW(this.hostElement)},
closePopup:function(k){var E=this.createCacheKey(void 0,k);this.popups_[E]&&this.handleClosePopupAction_(void 0,k)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.ZJ.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.ZJ.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(k){k.opened&&k.keepBelowPlayer&&this.ensurePopupBelowPlayer(k)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var k in this.popups_){var E=this.popups_[k];if(E.popup.scrollAction==="refit"){var S=E.popup.positionTarget.getBoundingClientRect(),R=E.popup;S=S.top;var V=E;if(!V.naturalHeight){V.popup.hidden=!1;V.popup.style.position="fixed";V.popup.style.top="0px";V.popup.style.left="0px";var N=V.popup.getBoundingClientRect();V.naturalHeight=N.bottom-N.top;V.popup.refit()}R.hidden=!(S>=V.naturalHeight+60);E.popupContent.clientHeight===0&&E.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(k){this.popupContainerConfig=k},
handleOpenPopupAction:function(k,E){var S=k.openPopupAction,R=_.en().resolve(_.mz(_.ZS))&&S.popupType==="TOAST";R&&!S.uniqueId&&(S.uniqueId=_.hW());if(!_.Y("popup_container_parent_target_killswitch")){var V;E=(V=this.getParentTarget(E))!=null?V:E}var N=this.ensurePopup_(S,E);return new _.yF(function(h){N.then(function(J){if(!J)return h();this.maybeCreateNarrowMediaQuery_();var m=this.createCacheKey(J.rendererName,J.openPopupAction.uniqueId);if(S.showOncePerUniqueId){if(this.shownPopupKeys_.has(m))return h();
this.shownPopupKeys_.add(m)}m=this.popups_[m];var a=!(!m||!m.openPopupAction.beReused);a=!!S.reusePopup||a;if(J.popup.opened&&!a){R&&!J.openPopupAction.replacePopup||this.handleClosePopupAction_(J.rendererName,J.openPopupAction.uniqueId);a=S.popupType==="DIALOG"&&!_.Y("popup_container_dialog_reopen_killswitch");if(!R&&!a&&m&&m.target==E&&!J.openPopupAction.replacePopup)return h();_.JB(J.popup,function(){this.completeOpenPopupAction_(S,E,J);h()}.bind(this))}else J.popup.opened?J.updatePopup(S):this.completeOpenPopupAction_(S,
E,J),h()}.bind(this))}.bind(this))},
getParentTarget:function(k){if(k&&k instanceof HTMLElement)for(var E=_.n(Object.entries(this.popups_)),S=E.next();!S.done;S=E.next())if(S=_.n(S.value),S.next(),S=S.next().value,this.popupClosesOnClick(S)&&S.popup.contains(k))return S.target},
popupClosesOnClick:function(k){return k.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(k.rendererName.toUpperCase())},
completeOpenPopupAction_:function(k,E,S){S.updatePopup(k);k=this.narrowMediaQuery_.queryMatches;var R=this.isAriaModal;S.target=E;var V;E=((V=S.target.polymerController)!=null?V:S.target).popupPositionTarget||S.target;S.JSC$21020_popupConfig.targetContainer&&(E=S.container);S.popup.positionTarget=E;S.popupContent.positionTarget=E;CBT(S);S.JSC$21020_popupConfig.forceFocus&&(S.popupContent.style.outline="none");S.popupContent.tabIndex=-1;S.JSC$21020_popupConfig.narrowProperties&&(S.popup.style.position=
"static");S.JSC$21020_popupConfig.preventAutonav&&S.popup.setAttribute("prevent-autonav",!0);S.JSC$21020_popupConfig.forceCloseOnOutsideClick&&S.popup.setAttribute("force-close-on-outside-click",!0);k$G(S,k,R);R6a(S,S.JSC$21020_popupConfig.styles);S.isRtl()&&R6a(S,S.JSC$21020_popupConfig.rtlStyles);if(!S.openPopupAction.shouldStopParentSignal){var N;V=(N=S.target.polymerController)!=null?N:S.target;(S.popupContent.startForwardingEvents||S.popupContainerConfig.forwardingEnabledPopups.has(S.rendererName))&&
V.parentComponent!==S.popupContent&&S.popupContent!==S.target&&S.target!==document.body&&(S.popupContent.startForwardingEvents?S.popupContent.startForwardingEvents(S.popupContainerConfig.forwardedEvents,S.target):(S.JSC$21020_eventForwarder||(S.JSC$21020_eventForwarder=new _.si(S.popupContent)),S.JSC$21020_eventForwarder.start(S.popupContainerConfig.forwardedEvents,S.target)))}S=S.popup;S.addEventListener("iron-overlay-opened",_.Ic(this,this.onPopupIronOverlayOpened_));S.addEventListener("iron-overlay-closed",
_.Ic(this,this.onPopupIronOverlayClosed_));S.addEventListener("iron-overlay-canceled",_.Ic(this,this.onPopupIronOverlayCanceled_));S.addEventListener("yt-refit",_.Ic(this,this.refitPopup_));S.addEventListener("yt-invalidate-popup-tabbables",_.Ic(this,this.handleInvalidatePopupTabbables_));S.open()},
getPopupDurationMs_:function(k){return k.durationHintMs===0?k.durationHintMs:Math.max(4E3,k.durationHintMs||4E3)},
handleClosePopupAction_:function(k,E){var S=_.Y("web_popup_cache_key_killswitch")||!!E;if(k||S){var R=this.createCacheKey(k,E);k=(k=this.popups_[R])&&k.popup}else k=_.yad(_.dB);if(k&&k.close){if(E=_.en().resolve(_.mz(_.tr)))k.restoreFocusOnClose=E.isKeyBoardInUse();k.close();this.removePopup_(k,R)}},
handleClosePopupCommand_:function(k){k.closePopupCommand&&k.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,k.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(k){var E={},S;for(S in this.popups_)if(E={key$jscomp$1221:E.key$jscomp$1221},E.key$jscomp$1221=S,!k||!k.some(function(N){return function(h){return h==N.key$jscomp$1221}}(E))){var R=this.popups_[E.key$jscomp$1221],V=R.popup;
_.en().resolve(_.mz(_.ZS))&&R.openPopupAction.popupType==="TOAST"||(V&&V.close&&V.close(),this.removePopup_(V,E.key$jscomp$1221))}},
handleClosePopupsAction_:function(k){k.forEach(function(E){var S=this.popups_[E];S&&((S=S.popup)&&S.close&&S.close(),this.removePopup_(S,E))}.bind(this))},
handleGetPopupOpenedAction_:function(k,E){return(E=this.createCacheKey(k,E))&&this.popups_[E]?this.popups_[k].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var k=[],E;for(E in this.popups_){var S=this.popups_[E];S.popup.opened&&k.push(S)}return k},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(k,E){_.Y("ytpopup_disable_default_html_caching")&&k&&k.removeWhenClosed&&(_.Cc(this.hostElement).removeChild(k),E&&this.popups_[E]&&delete this.popups_[E])},
shouldReusePopup_:function(k){return!(!k||!k.reusePopup)||!(!k||!k.beReused)},
ensurePopup_:function(k,E){this.maybeCreateNarrowMediaQuery_();var S=_.d0(k.popup,"renderer")||_.d0(k.popup,"dialog")||_.d0(k.popup,"model");if(!S)return _.GR();S=_.IgR(S,YOa(this.popupContainerConfig,S));return _.GR(this.getAndMaybeCreatePopup_(k,S,E))},
getAndMaybeCreatePopup_:function(k,E,S){var R=this.createCacheKey(E,k.uniqueId);if(this.popups_[R])return this.popups_[R];k=new cB({openPopupAction:k,target:S,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(E)});return this.popups_[R]=k},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(k){return _.Y("ytpopup_disable_default_html_caching")?k&&k.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",_.Ic(this,this.openPopupQueryMatchesChanged_)),_.Cc(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(k){k=k.detail.value;for(var E in this.popups_)k$G(this.popups_[E],k)},
onPopupIronOverlayClosed_:function(k){var E=k.currentTarget,S=_.g0m(E);S=S.length>0?S[0]:E;if(S.is!=="ytd-reel-watch-while-dialog-renderer"||k.target.is!=="tp-yt-iron-dropdown"){k.detail.popup=E;k.detail.popupRenderer=S;var R,V={context:{openingElement:((R=this.popups_[(S==null?void 0:S.is)||""])==null?void 0:R.target)||void 0}};Object.assign(V,k.detail);var N;_.Me((N=S.hostElement)!=null?N:S,"yt-popup-closed",V);E.removeEventListener("yt-refit",_.Ic(this,this.refitPopup_));E.removeEventListener("yt-invalidate-popup-tabbables",
_.Ic(this,this.handleInvalidatePopupTabbables_));E.removeEventListener("iron-overlay-canceled",_.Ic(this,this.onPopupIronOverlayCanceled_));E.removeEventListener("iron-overlay-closed",_.Ic(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(E)}},
onPopupIronOverlayCanceled_:function(k,E){var S=k.currentTarget,R=_.g0m(S);R=R.length>0?R[0]:S;if(R.is!=="ytd-reel-watch-while-dialog-renderer"||k.target.is!=="tp-yt-iron-dropdown"){var V;_.Me((V=R.hostElement)!=null?V:R,"yt-popup-canceled",k.detail);V=E?_.vT(E):null;(!E||["click","tap"].includes(E.type))&&!S.hasAttribute("force-close-on-outside-click")&&S.positionTarget&&V&&V.includes(S.positionTarget)&&k.preventDefault();S.restoreFocusOnClose=_.YD.keyboardEventMatchesKeys(E,"esc")}},
onPopupIronOverlayOpened_:function(k){k=k.currentTarget;var E=_.g0m(k);E=E.length>0?E[0]:k;var S,R;_.Me((S=E.hostElement)!=null?S:E,"yt-popup-opened",(R=E.hostElement)!=null?R:E);k.keepBelowPlayer&&(this.ensurePopupBelowPlayer(k,!0),this.dynamicallyPositionedElements_.add(k));S=_.en().resolve(_.mz(_.tr));R=!!E.querySelector("#toast");S&&S.isKeyBoardInUse()&&!R&&(typeof E.focusFirstItem==="function"?E.focusFirstItem():(E=_.Y82(k),E.length&&E[0].focus()));k.removeEventListener("iron-overlay-opened",
_.Ic(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(k){k=k.currentTarget;k.refit&&k.refit()},
refitPopups_:function(){for(var k in this.popups_)this.popups_[k].refit()},
handleInvalidatePopupTabbables_:function(k){k=k.currentTarget;k.invalidateTabbables&&k.invalidateTabbables()},
createCacheKey:function(k,E){return _.Y("web_popup_cache_key_killswitch")?E?k+"#"+E:k:E?"#"+E:k},
openSheet:function(k,E){var S=k==null?void 0:k.openPopupActionCommand;if(!S&&(k==null?0:k.viewModel)){if(k.sheetPosition)a:switch(k.sheetPosition){case "SHEET_POSITION_RIGHT":S="OPEN_POPUP_POSITION_RIGHT";break a;default:S="OPEN_POPUP_POSITION_UNKNOWN"}else S=void 0;S={openPopupAction:{popup:{sheetViewModel:k.viewModel},popupType:"CONTEXTUAL_SHEET",position:S}}}S&&this.handleOpenPopupAction(S,E)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var k=this;return _.c(function(E){return E.return(k.handleGetOpenedPopupsAction_().filter(function(S){var R;return((R=S.openPopupAction)==null?void 0:R.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(k,E,S){if(_.Y("web_dialog_utils_killswitch")){var R=k==null?void 0:k.openPopupActionCommand,V=(S==null?0:S.ariaLabel)?{accessibilityData:{accessibilityData:{label:S.ariaLabel}}}:void 0;!R&&(k==null?0:k.viewModel)&&(R={openPopupAction:Object.assign({},{popup:{dialogViewModel:k.viewModel},popupType:(S==null?0:S.isModal)?"MODAL":"DIALOG"},V&&V)});R&&this.handleOpenPopupAction(R,E)}else{if(V=k==null?void 0:k.viewModel){var N=S=S===void 0?{}:S;S=N.ariaLabel;V={popup:{dialogViewModel:V},
popupType:N.isModal?"MODAL":"DIALOG"};N={accessibilityData:{label:S}};S&&(V.accessibilityData=N);V={openPopupAction:V}}else V=void 0;if(V=(R=V)!=null?R:k==null?void 0:k.openPopupActionCommand)this.isAriaModal=_.Y("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(V,E)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var k=this;return _.c(function(E){return E.return(k.handleGetOpenedPopupsAction_().filter(function(S){var R;return((R=S.openPopupAction)==null?void 0:R.popupType)==="DIALOG"}).length>0)})}}];var Nr3;var IHR;var nEA=_.ry(["about:blank"]),mQ=function(){var k=_.p.apply(this,arguments)||this;k.isMuted=!1;k.pageLoadTimeoutId=void 0;return k};
_.y(mQ,_.p);_.I=mQ.prototype;_.I.dataChanged=function(){var k=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var E=this.data.url,S=_.dv(E);_.Y("enable_yt_ata_iframe_authuser")?(S=_.dv(E),_.GB(this.iframe,lOY(S))):_.GB(this.iframe,S);this.pageLoadTimeoutId=_.uM(_.eH(),function(){return void k.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.zn({destination:window,iframe:this.iframe,origin:_.fBT(S.toString()),channelName:"ataiframe",onMessage:_.MI4(v80,function(R){by0(R.data)?(R=_.OA(R.data,1,_.SI,_.mb()),R.length!==1?_.dg(Error("Il")):(R=R[0],R===3?(k.isMuted=!0,k.logStateChanged({adMuteRequested:!0})):R===1&&k.close())):_.dg(Error("Jl"))}),
onEstablished:function(){k.cancelPageLoadTimeout();k.logStateChanged({pageLoadSucceeded:!0})}})}};
_.I.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.eH().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.I.logStateChanged=function(k){var E;if((E=this.data)==null?0:E.trackingParams)k={adsClientData:{aboutThisAdData:k}},_.JV().stateChanged(this.data.trackingParams,k)};
_.I.close=function(){_.qe(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.handlesPopupClosed=function(k,E){var S=this,R,V;return _.c(function(N){if(N.nextAddress==1)return _.Mg("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.qe(S.hostElement,"on-about-this-ad-popup-closed",[S.isMuted,E]),N.jumpTo(0)):k&&MH0(k)?N.yield(qBR(k),4):(S.isMuted&&_.qe(S.hostElement,"yt-mute-ad-action",[S.is,S]),N.jumpTo(0));if(R=N.yieldResult){var h=V=new _.vW(R),J=S.isMuted;h.getOptions().includes("onAboutThisAdPopupClosed")?_.aNz(h,"onAboutThisAdPopupClosed",{isMuted:J,layoutId:E}):_.p5("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.KR(N)})};
_.I.onPopupClosed=function(k){var E=this,S,R;return _.c(function(V){S=_.BH(nEA);_.GB(E.iframe,S);E.cancelPageLoadTimeout();if(!E.data)return V.jumpTo(0);E.ytRendererBehavior.markDirty();R=k.detail.context.openingElement;return V.yield(E.handlesPopupClosed(R,E.data.layoutId),0)})};
_.I.detached=function(){this.cancelPageLoadTimeout()};
_.I.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
mQ.prototype.onPopupClosed=mQ.prototype.onPopupClosed;mQ.prototype.dataChanged=mQ.prototype.dataChanged;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.Z([_.JO("#iframe"),_.l("design:type",HTMLIFrameElement)],mQ.prototype,"iframe",void 0);_.Z([_.H(),_.l("design:type",Object)],mQ.prototype,"data",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],mQ.prototype,"dataChanged",null);
_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype",Promise)],mQ.prototype,"onPopupClosed",null);_.Z([_.U_({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],mQ);
_.b(mQ,"yt-about-this-ad-renderer",function(){if(IHR===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Nr3===void 0&&(Nr3=document.createElement("template"));var R=Nr3;S.call(E,R.content.cloneNode(!0),k.content.firstChild);IHR=k}k=IHR;return k},{mode:2});var i1R;var h6a;var JYG=function(k){var E=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=E.message;"stack"in E&&(this.stack=E.stack);this.maxFileSizeMB=k;Object.setPrototypeOf(this,JYG.prototype)};
_.y(JYG,Error);var cY2=function(k,E){var S=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=S.message;"stack"in S&&(this.stack=S.stack);this.minWidth=k;this.minHeight=E;Object.setPrototypeOf(this,cY2.prototype)};
_.y(cY2,Error);var mot=function(k){this.requirements=k;this.JSC$21048_maxFileSize=k.maxFileSizeMB*1024*1024},e62=function(k,E){if(E.size>k.JSC$21048_maxFileSize)throw new JYG(k.requirements.maxFileSizeMB);
};var aHI=function(k,E){this.canvas=k;this.imageEditorBuilder=E};
aHI.prototype.addEventListeners=function(k){var E=function(V){t52(k,V)};
this.JSC$21054_mouseDownEvent=E;var S=function(V){TrA(k,V)};
this.JSC$21054_mouseMoveEvent=S;var R=function(){w1T(k)};
this.JSC$21054_mouseUpEvent=R;this.canvas.addEventListener("mousedown",E);this.canvas.addEventListener("mousemove",S);document.addEventListener("mouseup",R)};
aHI.prototype.removeEventListeners=function(){this.JSC$21054_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21054_mouseDownEvent);this.JSC$21054_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21054_mouseMoveEvent);this.JSC$21054_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21054_mouseUpEvent)};
var PsY=function(k,E){k.removeEventListeners();return new Promise(function(S){var R=new Image;R.crossOrigin="anonymous";R.onload=function(){var V=k.imageEditorBuilder(k.canvas,R);k.addEventListeners(V);S(V)};
R.src=E})},es=function(k,E,S,R,V,N,h,J){this.canvas=k;
this.image=E;this.requiredRatio=S;this.minImageCropDimension=R;this.minOutputImageResolution=V;this.component=N;this.styleFocusedCorner=J===void 0?!0:J;this.action=2;this.focusedCorner=this.resizeCorner=0;k=this.canvas.getContext("2d");if(!k)throw Error("Kl");this.ctx=k;this.canvasMargin=h!=null?h:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;h=this.image;k=this.canvasInnerWidth/h.width;h.height*k>912&&(k=h.width/h.height*912/h.width);h=k;this.scaledImageWidth=this.canvas.width%2?
QOa(this.image.width*h):z_P(this.image.width*h);this.scaledImageHeight=Math.round(this.image.height*h);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21057_overlayMarginBottom=this.JSC$21057_overlayMarginTop=this.canvasMargin;this.JSC$21057_overlayMarginRight=this.JSC$21057_overlayMarginLeft=this.horizontalMargin;this.JSC$21057_overlayWidth=this.scaledImageWidth;this.JSC$21057_overlayHeight=this.scaledImageHeight;
k=this.image.width/this.image.height;k>this.requiredRatio?(this.JSC$21057_overlayWidth=this.canvas.width%2?QOa(this.scaledImageHeight*this.requiredRatio):z_P(this.scaledImageHeight*this.requiredRatio),this.JSC$21057_overlayMarginRight=this.JSC$21057_overlayMarginLeft=(this.canvas.width-this.JSC$21057_overlayWidth)/2):k<this.requiredRatio&&(this.JSC$21057_overlayHeight=this.canvas.height%2?QOa(this.scaledImageWidth/this.requiredRatio):z_P(this.scaledImageWidth/this.requiredRatio),this.JSC$21057_overlayMarginBottom=
this.JSC$21057_overlayMarginTop=(this.canvas.height-this.JSC$21057_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*h,this.scaledImageWidth);Br3(this)};
es.prototype.getContext=function(){return this.ctx};
var t52=function(k,E){E={x:Math.round(E.pageX-k.canvas.getBoundingClientRect().left),y:Math.round(E.pageY-k.canvas.getBoundingClientRect().top)};k.dragStart=E;YlA(k,E)!==0?(k.action=1,W8U(k,E),k.resizeCorner=YlA(k,E)):E.x>k.JSC$21057_overlayMarginLeft&&E.x<k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth&&E.y>k.JSC$21057_overlayMarginTop&&E.y<k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight&&(k.action=0)},F8I=function(k,E){switch(E){case 1:return{x:k.JSC$21057_overlayMarginLeft,
y:k.JSC$21057_overlayMarginTop};case 2:return{x:k.JSC$21057_overlayMarginLeft,y:k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight};case 3:return{x:k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth,y:k.JSC$21057_overlayMarginTop};case 4:return{x:k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth,y:k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight};default:throw Error("Ll");}},oER=function(k,E){if(k.focusedCorner!==0){k.dragStart=F8I(k,k.focusedCorner);
k.action=1;k.resizeCorner=k.focusedCorner;var S=k.dragStart.x,R=k.dragStart.y;switch(E){case 0:k.focusedCorner===1||k.focusedCorner===4?(S-=10,R-=10):(S-=10,R+=10);break;case 1:k.focusedCorner===1||k.focusedCorner===4?(S+=10,R+=10):(S+=10,R-=10);break;case 2:S=k.focusedCorner===1||k.focusedCorner===4?S-10:S+10;R-=10;break;case 3:S=k.focusedCorner===1||k.focusedCorner===4?S+10:S-10;R+=10;break;default:throw Error("Ml");}yYx(k,{x:S,y:R});Br3(k);k.action=2;k.dragStart=void 0}},TrA=function(k,E){E={x:Math.round(E.pageX-
k.canvas.getBoundingClientRect().left),
y:Math.round(E.pageY-k.canvas.getBoundingClientRect().top)};W8U(k,E);switch(k.action){case 1:yYx(k,E);break;case 0:k.dragStart&&(k.JSC$21057_overlayMarginLeft=Math.max(k.horizontalMargin,Math.min(k.JSC$21057_overlayMarginLeft-(k.dragStart.x-E.x),k.horizontalMargin+k.scaledImageWidth-k.JSC$21057_overlayWidth)),k.JSC$21057_overlayMarginRight=k.canvas.width-k.JSC$21057_overlayMarginLeft-k.JSC$21057_overlayWidth,k.JSC$21057_overlayMarginTop=Math.max(k.canvasMargin,Math.min(k.JSC$21057_overlayMarginTop-
(k.dragStart.y-E.y),k.scaledImageHeight-k.JSC$21057_overlayHeight+k.canvasMargin)),k.JSC$21057_overlayMarginBottom=k.canvas.height-(k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight));break;default:return}Br3(k);k.dragStart=E},w1T=function(k){k.action=2;
k.dragStart=void 0;document.body.style.cursor="auto"},W8U=function(k,E){switch(YlA(k,E)){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:k.action!==1&&(document.body.style.cursor="auto")}},YlA=function(k,E){var S=k.JSC$21057_overlayMarginLeft-5,R=k.JSC$21057_overlayMarginTop-5,V=k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth-5;
k=k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight-5;return X12(E,{x:S,y:R})?1:X12(E,{x:V,y:R})?3:X12(E,{x:S,y:k})?2:X12(E,{x:V,y:k})?4:0},X12=function(k,E){return k.x>=E.x&&k.x<=E.x+10&&k.y>=E.y&&k.y<=E.y+10},yYx=function(k,E){if(k.dragStart)switch(k.resizeCorner){case 2:Math.abs((k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth-E.x)/(E.y-k.JSC$21057_overlayMarginTop))>=k.requiredRatio?gEA(k,E.x):Uo2(k,E.y);
break;case 1:Math.abs((k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth-E.x)/(k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight-E.y))>=k.requiredRatio?H1t(k,E.x):Uo2(k,E.y);break;case 4:Math.abs((E.x-k.JSC$21057_overlayMarginLeft)/(E.y-k.JSC$21057_overlayMarginTop))>=k.requiredRatio?gEA(k,E.x):K8A(k,E.y);break;case 3:Math.abs((E.x-k.JSC$21057_overlayMarginLeft)/(k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight-E.y))>=k.requiredRatio?H1t(k,E.x):K8A(k,E.y);break;default:throw Error("Nl");
}},gEA=function(k,E){var S=k.JSC$21057_overlayMarginTop;
k.JSC$21057_overlayMarginBottom=p12(k,E);k.JSC$21057_overlayHeight=k.canvas.height-k.JSC$21057_overlayMarginBottom-S;k.JSC$21057_overlayWidth=Math.round(k.JSC$21057_overlayHeight*k.requiredRatio);AYa(k)},H1t=function(k,E){var S=k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight;
k.JSC$21057_overlayMarginTop=p12(k,E);k.JSC$21057_overlayHeight=S-k.JSC$21057_overlayMarginTop;k.JSC$21057_overlayWidth=Math.round(k.JSC$21057_overlayHeight*k.requiredRatio);AYa(k)},AYa=function(k){switch(k.resizeCorner){case 2:case 1:k.JSC$21057_overlayMarginLeft=k.canvas.width-k.JSC$21057_overlayMarginRight-k.JSC$21057_overlayWidth;
break;case 4:case 3:k.JSC$21057_overlayMarginRight=k.canvas.width-k.JSC$21057_overlayMarginLeft-k.JSC$21057_overlayWidth;break;default:throw Error("Nl");}},Uo2=function(k,E){var S=k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth;
k.JSC$21057_overlayMarginLeft=rYU(k,E);k.JSC$21057_overlayWidth=S-k.JSC$21057_overlayMarginLeft;k.JSC$21057_overlayHeight=Math.round(k.JSC$21057_overlayWidth/k.requiredRatio);uKR(k)},K8A=function(k,E){var S=k.JSC$21057_overlayMarginLeft;
k.JSC$21057_overlayMarginRight=rYU(k,E);k.JSC$21057_overlayWidth=k.canvas.width-k.JSC$21057_overlayMarginRight-S;k.JSC$21057_overlayHeight=Math.round(k.JSC$21057_overlayWidth/k.requiredRatio);uKR(k)},uKR=function(k){switch(k.resizeCorner){case 2:case 4:k.JSC$21057_overlayMarginBottom=k.canvas.height-k.JSC$21057_overlayMarginTop-k.JSC$21057_overlayHeight;
break;case 1:case 3:k.JSC$21057_overlayMarginTop=k.canvas.height-k.JSC$21057_overlayMarginBottom-k.JSC$21057_overlayHeight;break;default:throw Error("Nl");}},p12=function(k,E){switch(k.resizeCorner){case 2:E=k.canvas.height-(k.JSC$21057_overlayMarginTop+xoT(k,E));
break;case 4:E=k.canvas.height-(k.JSC$21057_overlayMarginTop+L8W(k,E));break;case 1:E=k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight-xoT(k,E);break;case 3:E=k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight-L8W(k,E);break;default:throw Error("Nl");}return Math.max(E,k.canvasMargin)},xoT=function(k,E){E=k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth-Math.max(E,k.horizontalMargin);
E=E<0?k.JSC$21057_overlayWidth:Math.max(E,k.minOverlayWidth);return Math.round(E/k.requiredRatio)},L8W=function(k,E){E=k.canvas.width-Math.max(k.canvas.width-E,k.horizontalMargin)-k.JSC$21057_overlayMarginLeft;
E=E<0?k.JSC$21057_overlayWidth:Math.max(E,k.minOverlayWidth);return Math.round(E/k.requiredRatio)},rYU=function(k,E){switch(k.resizeCorner){case 2:E=k.canvas.width-k.JSC$21057_overlayMarginRight-jNP(k,E);
break;case 4:E=k.canvas.width-k.JSC$21057_overlayMarginLeft-jNP(k,E);break;case 1:E=k.canvas.width-k.JSC$21057_overlayMarginRight-DoW(k,E);break;case 3:E=k.canvas.width-k.JSC$21057_overlayMarginLeft-DoW(k,E);break;default:throw Error("Nl");}return Math.max(E,k.horizontalMargin)},jNP=function(k,E){E=k.canvas.height-Math.max(k.canvas.height-E,k.canvasMargin)-k.JSC$21057_overlayMarginTop;
return E<0?k.JSC$21057_overlayWidth:Math.max(Math.round(E*k.requiredRatio),k.minOverlayWidth)},DoW=function(k,E){E=k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight-Math.max(E,k.canvasMargin);
return E<0?k.JSC$21057_overlayWidth:Math.max(Math.round(E*k.requiredRatio),k.minOverlayWidth)},Br3=function(k){k.ctx.clearRect(0,0,k.canvas.width,k.canvas.height);
k.ctx.drawImage(k.image,0,0,k.image.width,k.image.height,k.horizontalMargin,k.canvasMargin,k.canvas.width-2*k.horizontalMargin,k.scaledImageHeight);k.ctx.fillStyle="rgba(0, 0, 0, 0.7)";k.ctx.fillRect(k.horizontalMargin,k.JSC$21057_overlayMarginTop,k.JSC$21057_overlayMarginLeft-k.horizontalMargin,k.JSC$21057_overlayHeight);k.ctx.fillRect(k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth,k.JSC$21057_overlayMarginTop,k.JSC$21057_overlayMarginRight-k.horizontalMargin,k.JSC$21057_overlayHeight);k.ctx.fillRect(k.horizontalMargin,
k.canvasMargin,k.scaledImageWidth,k.JSC$21057_overlayMarginTop-k.canvasMargin);k.ctx.fillRect(k.horizontalMargin,k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight,k.scaledImageWidth,k.JSC$21057_overlayMarginBottom-k.canvasMargin);k.drawOverlay();k.component&&_.Me(k.component,"image-updated")};
es.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21057_overlayMarginLeft,this.JSC$21057_overlayMarginTop,this.JSC$21057_overlayWidth,this.JSC$21057_overlayHeight);$oP(this)};
var $oP=function(k){var E=k.JSC$21057_overlayMarginLeft-5,S=k.JSC$21057_overlayMarginTop-5,R=k.JSC$21057_overlayMarginLeft+k.JSC$21057_overlayWidth-5,V=k.JSC$21057_overlayMarginTop+k.JSC$21057_overlayHeight-5;k.ctx.fillStyle="#FFF";k.ctx.fillRect(E,S,10,10);k.ctx.strokeRect(E,S,10,10);k.ctx.fillRect(R,S,10,10);k.ctx.strokeRect(R,S,10,10);k.ctx.fillRect(E,V,10,10);k.ctx.strokeRect(E,V,10,10);k.ctx.fillRect(R,V,10,10);k.ctx.strokeRect(R,V,10,10);if(k.focusedCorner!==0&&k.styleFocusedCorner){k.ctx.lineWidth=
4;k.ctx.strokeStyle="#3EA6FF";switch(k.focusedCorner){case 1:--E;--S;break;case 2:--E;S=V-1;break;case 3:E=R-1;--S;break;case 4:E=R-1;S=V-1;break;default:return}k.ctx.strokeRect(E,S,12,12)}};
es.prototype.crop=function(k,E){E=E===void 0?!0:E;var S=this.image.width/this.scaledImageWidth,R=document.createElement("canvas"),V=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],N=this.JSC$21057_overlayWidth*S,h=this.JSC$21057_overlayHeight*S;R.width=Math.max(N,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);R.height=Math.max(h,V);k&&(R.width=Math.min(R.width,R.height),R.height=Math.min(R.width,R.height));
k=R.getContext("2d");if(!k)throw Error("Bl");V=(this.JSC$21057_overlayMarginLeft-this.horizontalMargin)*S;S*=this.JSC$21057_overlayMarginTop-this.canvasMargin;E||(k.fillStyle="white",k.fillRect(0,0,R.width,R.height));k.drawImage(this.image,V,S,N,h,0,0,R.width,R.height);return R};var fHG=function(k,E,S,R,V){es.call(this,k,E,S,R,void 0,V,8,!1)};
_.y(fHG,es);fHG.prototype.drawOverlay=function(){var k=this.getContext(),E=this.JSC$21057_overlayWidth,S=this.JSC$21057_overlayHeight,R=this.JSC$21057_overlayMarginTop,V=this.JSC$21057_overlayMarginLeft;k.lineWidth=2;k.strokeStyle="#3EA6FF";k.beginPath();k.arc(V+E/2,R+S/2,E/2,0,2*Math.PI);k.stroke();k.strokeRect(V,R,E,S);$oP(this)};
var vE3={maxFileSizeMB:15,minWidth:98,minHeight:98},b1G=["image/png","image/jpeg","image/gif"],aa=function(){var k=_.p.apply(this,arguments)||this;k.fileSelectorFocusListener=null;k.errorMessage=null;k.isLoading=!0;k.hideContainer=!0;k.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return k};
_.y(aa,_.p);_.I=aa.prototype;_.I.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.I.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.I.computePlaylistThumbnail=function(k){return k==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.I.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.qe(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.I.setErrorState=function(k){this.resetErrorState();k&&(this.errorMessage=k)};
_.I.showPopup=function(){var k=this;this.hideContainer=!1;_.uM(_.ZJ,function(){_.Me(k.hostElement,"yt-refit")});
this.isLoading=!1};
_.I.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.I.closePopup=function(){this.resetFileSelector();_.qe(this.hostElement,"yt-close-popup-action",[this.is])};
_.I.onCancelTap=function(){this.isPlaylistThumbnail||_.qe(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.I.openFileSelector=function(){var k=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.uM(_.ZJ,function(){setTimeout(function(){if(!k.fileSelector.files||k.fileSelector.files.length===0)k.onCancelTap();k.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(E){E instanceof Error?_.bM(E):_.Zd(new _.LC(JSON.stringify(E)))}};
_.I.handleFileSelection=function(){var k=this,E,S,R,V,N,h;return _.c(function(J){switch(J.nextAddress){case 1:_.F5(J,2);if(!k.fileSelector.files||!k.imageEditorCanvas)return k.onCancelTap(),J.return();E=k.fileSelector.files[0];e62(k.imageChecker,E);_.F5(J,4);return J.yield(PbI(E),6);case 6:k.mimeType=J.yieldResult;_.Sv(J,5,2);break;case 4:_.UY(J,2),_.qe(k.hostElement,"yt-image-selection-error-action",[(S=k.data)==null?void 0:S.genericImageLoadErrorMessage]),k.onCancelTap();case 5:R=new FileReader;
R.addEventListener("load",function(){var m,a;return _.c(function(T){if(T.nextAddress==1){if(!R.result)return _.dg(Error("Dl")),T.return();m=R.result;a=new Image;a.src=m;a.onload=function(){try{var w=k.imageChecker;if(a.width<w.requirements.minWidth||a.height<w.requirements.minHeight)throw new cY2(w.requirements.minWidth,w.requirements.minHeight);}catch(B){if(B instanceof cY2){var P;_.qe(k.hostElement,"yt-image-selection-error-action",[(P=k.data)==null?void 0:P.imageDimensionErrorMessage]);k.logImageDimensionErrorVe()}else B instanceof
Error?_.bM(B):(w=new _.LC(JSON.stringify(B)),_.bM(w));k.onCancelTap()}k.showPopup()};
a.onerror=function(){var w;_.qe(k.hostElement,"yt-image-selection-error-action",[(w=k.data)==null?void 0:w.genericImageLoadErrorMessage]);k.onCancelTap()};
return T.yield(PsY(k.imageEditorCanvas,m),2)}k.imageEditor=T.yieldResult;k.updatePositionOfAllCorners();k.addEventListeners(k.imageEditor);_.KR(T)})},!1);
R.readAsDataURL(E);_.Sv(J,0);break;case 2:V=_.UY(J),V instanceof JYG?_.qe(k.hostElement,"yt-image-selection-error-action",[(N=k.data)==null?void 0:N.imageSizeErrorMessage]):(V instanceof Error?_.bM(V):_.Zd(new _.LC(JSON.stringify(V))),_.qe(k.hostElement,"yt-image-selection-error-action",[(h=k.data)==null?void 0:h.genericImageLoadErrorMessage])),k.onCancelTap(),_.KR(J)}})};
_.I.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var k=_.hV(_.JV(),{veType:232707,visualElement:_.kh(232707)});k&&(k={visualElement:k},_.iY().reportShown(k))}};
_.I.handleImageSelectionErrorAction=function(k){this.isPlaylistThumbnail&&_.a3j(this.hostElement,k)};
_.I.convertToImageFormatBundle=function(k){var E=this,S,R,V;return _.c(function(N){switch(N.nextAddress){case 1:return S=k.toDataURL(E.outputMimeType,1),N.yield(ByR(S),2);case 2:R=N.yieldResult;_.F5(N,3);e62(E.imageChecker,R);_.Sv(N,4);break;case 3:V=_.UY(N);if(!(V instanceof JYG))throw V;_.dg(new _.LC("Output size is bigger than input size for image",E.mimeType,E.outputMimeType,R.size));S=k.toDataURL("image/jpeg",.95);return N.yield(ByR(S),6);case 6:R=N.yieldResult;case 4:return N.return({dataUrl:S,
imageFile:R})}})};
_.I.handleUploadImageToScottyCommand=function(k){var E=this,S,R,V,N,h,J,m,a,T,w;return _.c(function(P){switch(P.nextAddress){case 1:if(!E.imageEditor||!_.W(k,Rk0))return P.return();S=_.W(k,Rk0).scottyUploadUrl;if(!S){var B=new _.LC("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.bM(B);return P.return()}_.F5(P,2);E.setLoadingState();R=E.imageEditor.crop(!1,!1);return P.yield(E.convertToImageFormatBundle(R),4);case 4:return V=P.yieldResult,P.yield(TyA(V.imageFile,S),5);
case 5:N=P.yieldResult;((h=E.data)==null?0:h.onUploadEndpoint)?(J=E.buildUploadServiceEndpoint(N),E.ytComponentBehavior.resolveCommand(J),m=_.W(J,_.vF),((a=m)==null?0:a.params)?E.closePopup():E.resetFileSelector()):(_.qe(E.hostElement,"yt-image-updated-action",[V.dataUrl,N]),E.closePopup());_.Sv(P,0);break;case 2:T=_.UY(P),E.setErrorState((w=E.data)==null?void 0:w.uploadErrorMessage),T instanceof Error?_.bM(T):(B=new _.LC(JSON.stringify(T)),_.bM(B)),_.KR(P)}})};
_.I.buildUploadServiceEndpoint=function(k){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",k),this.data.onUploadEndpoint):null};
_.I.dataChanged=function(){var k=this,E;return _.c(function(S){if(S.nextAddress==1){if(!k.data||!k.canvasElement)return S.return();k.data.imageRatio&&k.data.minImageCropWidth||_.Zd(new _.LC("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));E=function(R,V){return k.data.imageType==="IMAGE_TYPE_AVATAR"?new fHG(R,V,k.data.imageRatio,[k.data.minImageCropWidth,k.data.minImageCropWidth/k.data.imageRatio],k.hostElement):new es(R,V,k.data.imageRatio,[k.data.minImageCropWidth,
k.data.minImageCropWidth/k.data.imageRatio],void 0,k.hostElement,8,!1)};
k.imageEditorCanvas=new aHI(k.canvasElement,E);return k.data.url?S.yield(PsY(k.imageEditorCanvas,k.data.url),3):(k.hideContainer=!0,k.openFileSelector(),S.jumpTo(0))}k.imageEditor=S.yieldResult;k.showPopup();k.addEventListeners(k.imageEditor);_.KR(S)})};
_.I.addEventListeners=function(k){this.removeEventListeners();var E=function(V){t52(k,V)};
this.JSC$21065_mouseDownEvent=E;var S=function(V){TrA(k,V)};
this.JSC$21065_mouseMoveEvent=S;var R=function(){w1T(k)};
this.JSC$21065_mouseUpEvent=R;this.topLeftCorner.addEventListener("mousedown",E);this.topLeftCorner.addEventListener("mousemove",S);this.topLeftCorner.addEventListener("mouseup",R);this.topRightCorner.addEventListener("mousedown",E);this.topRightCorner.addEventListener("mousemove",S);this.topRightCorner.addEventListener("mouseup",R);this.bottomLeftCorner.addEventListener("mousedown",E);this.bottomLeftCorner.addEventListener("mousemove",S);this.bottomLeftCorner.addEventListener("mouseup",R);this.bottomRightCorner.addEventListener("mousedown",
E);this.bottomRightCorner.addEventListener("mousemove",S);this.bottomRightCorner.addEventListener("mouseup",R)};
_.I.removeEventListeners=function(){this.JSC$21065_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21065_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21065_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21065_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21065_mouseDownEvent));this.JSC$21065_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21065_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21065_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21065_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21065_mouseMoveEvent));this.JSC$21065_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21065_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21065_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21065_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21065_mouseUpEvent))};
_.I.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var k=document.activeElement;k&&k.shadowRoot&&k.shadowRoot.activeElement;)k=k.shadowRoot.activeElement;switch(k){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};
_.I.updatePositionOfCorner=function(k,E){var S=k.y-E.offsetHeight/2+4;E.style.left=k.x-E.offsetWidth/2+16+"px";E.style.top=S+"px"};
_.I.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var k=_.n([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),E=k.next();!E.done;E=k.next()){E=E.value;var S=F8I(this.imageEditor,E.corner);this.updatePositionOfCorner(S,E.div)}};
_.I.onLeft=function(k){this.imageEditor&&this.setFocusInImageEditor()&&(oER(this.imageEditor,0),this.updatePositionOfAllCorners(),k.preventDefault())};
_.I.onRight=function(k){this.imageEditor&&this.setFocusInImageEditor()&&(oER(this.imageEditor,1),this.updatePositionOfAllCorners(),k.preventDefault())};
_.I.onUp=function(k){this.imageEditor&&this.setFocusInImageEditor()&&(oER(this.imageEditor,2),this.updatePositionOfAllCorners(),k.preventDefault())};
_.I.onDown=function(k){this.imageEditor&&this.setFocusInImageEditor()&&(oER(this.imageEditor,3),this.updatePositionOfAllCorners(),k.preventDefault())};
_.I.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.mt.Object.defineProperties(aa.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&b1G.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var k,E,S;((E=this.data)==null?0:E.imageRatio)&&((S=this.data)==null?0:S.minImageCropWidth)?k={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:k=vE3;return new mot(k)}}});
aa.prototype.updatePositionOfAllCorners=aa.prototype.updatePositionOfAllCorners;aa.prototype.dataChanged=aa.prototype.dataChanged;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],aa.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],aa.prototype,"ytComponentBehavior",void 0);_.Z([_.g(_.YD),_.l("design:type",Object)],aa.prototype,"ironA11yKeysBehavior",void 0);
_.Z([_.JO("#canvas"),_.l("design:type",HTMLCanvasElement)],aa.prototype,"canvasElement",void 0);_.Z([_.JO("#file-selector"),_.l("design:type",HTMLInputElement)],aa.prototype,"fileSelector",void 0);_.Z([_.JO("#top-left-corner"),_.l("design:type",HTMLDivElement)],aa.prototype,"topLeftCorner",void 0);_.Z([_.JO("#top-right-corner"),_.l("design:type",HTMLDivElement)],aa.prototype,"topRightCorner",void 0);
_.Z([_.JO("#bottom-left-corner"),_.l("design:type",HTMLDivElement)],aa.prototype,"bottomLeftCorner",void 0);_.Z([_.JO("#bottom-right-corner"),_.l("design:type",HTMLDivElement)],aa.prototype,"bottomRightCorner",void 0);_.Z([_.H(),_.l("design:type",Object)],aa.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],aa.prototype,"errorMessage",void 0);_.Z([_.H(),_.l("design:type",Object)],aa.prototype,"isLoading",void 0);_.Z([_.H(),_.l("design:type",Object)],aa.prototype,"hideContainer",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.l("design:type",Boolean)],aa.prototype,"isPlaylistThumbnail",void 0);_.Z([_.ac("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],aa.prototype,"dataChanged",null);_.Z([_.nv("image-updated"),_.nv("yt-refit"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],aa.prototype,"updatePositionOfAllCorners",null);
_.Z([_.U_({is:"yt-image-editor-renderer",disableElementRegistration:!0})],aa);
_.b(aa,"yt-image-editor-renderer",function(){if(h6a===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;i1R===void 0&&(i1R=document.createElement("template"));var R=i1R;S.call(E,R.content.cloneNode(!0),k.content.firstChild);h6a=k}k=h6a;return k},{mode:2});var Z1P;var doG;var t5=function(){return _.p.apply(this,arguments)||this};
_.y(t5,_.p);t5.prototype.updateMinutesFromBinding=function(k){this.handleMinutesChanged&&this.handleMinutesChanged(k)};
t5.prototype.updateSecondsFromBinding=function(k){this.handleSecondsChanged&&this.handleSecondsChanged(k)};
t5.prototype.updateDescriptionFromBinding=function(k){this.handleDescriptionChanged&&this.handleDescriptionChanged(k)};
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],t5.prototype,"ytComponentBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],t5.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",String)],t5.prototype,"minutes",void 0);_.Z([_.H(),_.l("design:type",String)],t5.prototype,"seconds",void 0);_.Z([_.H(),_.l("design:type",String)],t5.prototype,"description",void 0);_.Z([_.H(),_.l("design:type",Function)],t5.prototype,"handleMinutesChanged",void 0);
_.Z([_.H(),_.l("design:type",Function)],t5.prototype,"handleSecondsChanged",void 0);_.Z([_.H(),_.l("design:type",Function)],t5.prototype,"handleDescriptionChanged",void 0);_.Z([_.H(),_.l("design:type",Number)],t5.prototype,"characterLimit",void 0);_.Z([_.H(),_.l("design:type",Number)],t5.prototype,"textNumRows",void 0);_.Z([_.U_({is:"yt-report-details-form-content",disableElementRegistration:!0})],t5);
_.b(t5,"yt-report-details-form-content",function(){if(doG===void 0){var k=document.createElement("template");_.X(k,'\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>');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;Z1P===void 0&&(Z1P=document.createElement("template"));var R=Z1P;S.call(E,R.content.cloneNode(!0),k.content.firstChild);doG=k}k=doG;return k},{mode:2});var sN0;var lH3;var T8=function(){var k=_.p.apply(this,arguments)||this;k.updateMinutesFromBinding=function(E){k.minutes=E.detail.value};
k.updateSecondsFromBinding=function(E){k.seconds=E.detail.value};
k.updateDescriptionFromBinding=function(E){k.description=E.detail.value};
return k};
_.y(T8,_.p);_.I=T8.prototype;_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.I.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"}}}};
_.I.ready=function(){_.Cc(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.I.onSubmitYtAction=function(k){var E=k.detail;E.actionName==="yt-service-request"&&(E=E.args[1],E.flagEndpoint&&(k.stopPropagation(),this.refireAction(E)))};
_.I.refireAction=function(k){var E={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(E.vss_id=this.vssId);_.Qw(this.hostElement,[k,E]);this.submitDisabled=!0};
_.I.dataChanged=function(){var k=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var E=_.s3();E&&E.getPlayerPromise().then(function(S){var R=S.getOption("cc","track")||S.getOption("captions","track");R&&(k.vssId=R.vss_id);S=S.getCurrentTime();k.minutes=Math.floor(S/60).toString();k.seconds=(Math.floor(S)%60).toString()})};
_.I.updateSubmitButtonState=function(){var k;((k=this.data)==null?0:k.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==="")};
_.I.onYtServiceRequestCompleted=function(){_.qe(this.hostElement,"yt-close-popup-action")};
_.I.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.mt.Object.defineProperties(T8.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var k;return((k=this.data)==null?void 0:k.textNumRows)||4}}});
T8.prototype.onYtServiceRequestError=T8.prototype.onYtServiceRequestError;T8.prototype.onYtServiceRequestCompleted=T8.prototype.onYtServiceRequestCompleted;T8.prototype.updateSubmitButtonState=T8.prototype.updateSubmitButtonState;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);
_.Z([_.H({observer:"dataChanged"}),_.l("design:type",Object)],T8.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Boolean)],T8.prototype,"submitDisabled",void 0);_.Z([_.H(),_.l("design:type",String)],T8.prototype,"minutes",void 0);_.Z([_.H(),_.l("design:type",String)],T8.prototype,"seconds",void 0);_.Z([_.H(),_.l("design:type",String)],T8.prototype,"description",void 0);_.Z([_.H(),_.l("design:type",String)],T8.prototype,"vssId",void 0);
_.Z([_.H({value:_.Mg("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.l("design:type",Boolean)],T8.prototype,"isMusic",void 0);_.Z([_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],T8.prototype,"characterLimit",null);_.Z([_.U("data"),_.l("design:type",Number),_.l("design:paramtypes",[])],T8.prototype,"textNumRows",null);
_.Z([_.ac("minutes","seconds","description","submitDisabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T8.prototype,"updateSubmitButtonState",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T8.prototype,"onYtServiceRequestCompleted",null);
_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],T8.prototype,"onYtServiceRequestError",null);_.Z([_.U_({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],T8);
_.b(T8,"yt-report-details-form-renderer",function(){if(lH3===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;sN0===void 0&&(sN0=document.createElement("template"));var R=sN0;S.call(E,R.content.cloneNode(!0),k.content.firstChild);lH3=k}k=lH3;return k});var M52;var ql3;var z6A;var QNt;var wl=function(){return _.p.apply(this,arguments)||this};
_.y(wl,_.p);
wl.prototype.onCheckedChanged_=function(){if(this.data){var k=_.Cc(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.qe(this.hostElement,"yt-additional-detail-checkbox-update",[k]):this.data.identifier==="yt-hide-user-checkbox"?_.qe(this.hostElement,"yt-hide-user-checkbox-update",[k]):k&&this.data.enableCommand?_.qe(this.hostElement,"yt-modify-report-form-command",[_.W(this.data.enableCommand,J72)]):!k&&this.data.disableCommand&&_.qe(this.hostElement,
"yt-modify-report-form-command",[_.W(this.data.enableCommand,J72)])}};
wl.prototype.onLabelTap_=function(k){k.target.tagName!="A"&&(_.Cc(this.hostElement).querySelector("#checkbox").checked=!_.Cc(this.hostElement).querySelector("#checkbox").checked)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],wl.prototype,"data",void 0);_.Z([_.U_({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],wl);
_.b(wl,"yt-boolean-form-field-v2-renderer",function(){if(QNt===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;z6A===void 0&&(z6A=document.createElement("template"));var R=z6A;S.call(E,R.content.cloneNode(!0),k.content.firstChild);QNt=k}k=QNt;return k});var PB=function(){var k=_.p.apply(this,arguments)||this;k.canShowAdditionalDetailCheckbox=!1;k.canShowCheckbox=!1;k.keepDropdownFocusedAfterSelection=!0;return k};
_.y(PB,_.p);PB.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}}}}};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],PB.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],PB.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Z([_.H(),_.l("design:type",Object)],PB.prototype,"canShowCheckbox",void 0);_.Z([_.H(),_.l("design:type",Object)],PB.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.Z([_.U_({is:"yt-report-form-modal-content",disableElementRegistration:!0})],PB);
_.b(PB,"yt-report-form-modal-content",function(){if(ql3===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;M52===void 0&&(M52=document.createElement("template"));var R=M52;S.call(E,R.content.cloneNode(!0),k.content.firstChild);ql3=k}k=ql3;return k},{mode:2});var O1R;var G$P;var BB=function(){var k=_.p.apply(this,arguments)||this;k.submitting=!1;k.submitButtonDisabled=!0;k.command=null;k.canShowCheckbox=!1;k.canShowAdditionalDetailCheckbox=!1;k.canShowNextButton=!1;k.additionalDetailCheckboxChecked=!1;k.refitJob=0;k.keepDropdownFocusedAfterSelection=!0;k.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 k};
_.y(BB,_.p);_.I=BB.prototype;_.I.created=function(){this.refitJob=0};
_.I.attached=function(){this.JSC$21088_scroller&&(this.JSC$21088_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21088_scroller.attached&&typeof this.JSC$21088_scroller.attached==="function"&&this.JSC$21088_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.dataChanged=function(k){k&&(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,k.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),k.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.I.onYtPopupOpened=function(){var k=_.s3();k&&k.getPlayerPromise().then(function(E){E.pauseVideo()})};
_.I.onYtNavigate=function(k){_.W(k.detail.endpoint,_.fyT)&&(k.stopPropagation(),this.hideReportForm=!0)};
_.I.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.I.onYtServiceRequestCompleted=function(k,E){var S=E.actions;if(S){if(S.length===1&&_.W(S[0],_.CI)){var R;S=((R=_.W(S[0],_.CI))==null?void 0:R.commands)||[]}R=0;for(var V=S.length;R<V;R++)_.W(S[R],_.Xg)&&(k.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(S[R]))}if(E.data&&(k=this.get("feedbackResponses",E.data)))for(E=0;E<k.length;E++)if(k[E].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.I.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.I._onDescendantIronResize=function(k){k.stopPropagation();return!1};
_.I.handleReportFormEndpointUpdateAction=function(k){if(k.submitEndpoint){var E=this.command=k.submitEndpoint;E=_.W(E,_.joC);if(E==null?0:E.additionalDetailCheckboxChecked)E.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else k.submitNavigationEndpoint?(this.command=k.submitNavigationEndpoint,this.toggleSubmitButton(!1)):k.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:k.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;k.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",k));this.refit()};
_.I.handleConfirmDialogCloseAction=function(k){k.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.I.submitButtonDisabledChanged=function(){var k=this.hostElement.parentElement;k&&k.invalidateTabbables&&k.invalidateTabbables()};
_.I.handleModifyReportFormCommand=function(k){k=this.get("action",k);k==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:k==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:k==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:k==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:k==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:k==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.I.updateDialogStyling=function(){var k,E,S,R,V,N=((V=(k=this.data)==null?void 0:(E=k.optionsSupportedRenderers)==null?void 0:(S=E.optionsRenderer)==null?void 0:(R=S.items)==null?void 0:R.length)!=null?V:0)<=2?0:240;_.VO(this.hostElement,{"--yt-report-form-modal-renderer-min-width":N+"px"})};
_.I.toggleSubmitButton=function(k){this.submitButtonDisabled=!k;this.submitButtonDisabled=k};
_.I.computeSubmitButtonData=function(k,E){var S={};_.W(E,_.fyT)?S.navigationEndpoint=E:S.command=E||void 0;k&&k.buttonRenderer&&_.fO.extend(S,k.buttonRenderer);return S};
_.I.computeNextButtonData=function(k,E){var S={};if(!k||!k.buttonRenderer)return S;_.fO.extend(S,k.buttonRenderer);if(!E)return S;if(_.W(E,_.fyT))S.navigationEndpoint=YIx(E);else if(S.command=YIx(E),k=_.W(S.command,_.joC))k.legalCheckboxChecked=!0;return S};
_.I.computeShowNextButton=function(k,E,S){return!!k&&E&&S};
_.I.refit=function(){var k=this;this.refitJob||(this.refitJob=_.ZJ.addLowPriorityJob(function(){_.Me(k.hostElement,"yt-refit");k.refitJob=0}))};
_.I.handleAdditionalDetailCheckboxUpdateAction=function(k){this.additionalDetailCheckboxChecked=k;_.W(this.command,_.joC).additionalDetailCheckboxChecked=k};
_.mt.Object.defineProperties(BB,{template:{configurable:!0,enumerable:!0,get:function(){if(G$P===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;O1R===void 0&&(O1R=document.createElement("template"));var R=O1R;S.call(E,R.content.cloneNode(!0),k.content.firstChild);G$P=k}k=G$P;return k}}});
BB.prototype.onYtServiceRequestError=BB.prototype.onYtServiceRequestError;BB.prototype.onYtServiceRequestCompleted=BB.prototype.onYtServiceRequestCompleted;BB.prototype.onYtServiceRequestSent=BB.prototype.onYtServiceRequestSent;BB.prototype.onYtNavigate=BB.prototype.onYtNavigate;BB.prototype.onYtPopupOpened=BB.prototype.onYtPopupOpened;_.Z([_.g(_.gA.YtOpenPopupBehavior),_.l("design:type",Object)],BB.prototype,"openPopupBehavior",void 0);
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],BB.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],BB.prototype,"eventForwardingBehavior",void 0);_.Z([_.g(_.KS),_.l("design:type",Object)],BB.prototype,"ironResizableBehavior",void 0);_.Z([_.H({observer:"dataChanged"}),_.l("design:type",Object)],BB.prototype,"data",void 0);
_.Z([_.H(),_.l("design:type",Object)],BB.prototype,"submitting",void 0);_.Z([_.H({observer:"submitButtonDisabledChanged"}),_.l("design:type",Object)],BB.prototype,"submitButtonDisabled",void 0);_.Z([_.H(),_.l("design:type",Object)],BB.prototype,"command",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],BB.prototype,"hideReportForm",void 0);_.Z([_.H(),_.l("design:type",Object)],BB.prototype,"canShowCheckbox",void 0);
_.Z([_.H(),_.l("design:type",Object)],BB.prototype,"canShowAdditionalDetailCheckbox",void 0);_.Z([_.H(),_.l("design:type",Object)],BB.prototype,"canShowNextButton",void 0);_.Z([_.H(),_.l("design:type",Object)],BB.prototype,"additionalDetailCheckboxChecked",void 0);_.Z([_.H(),_.l("design:type",Object)],BB.prototype,"refitJob",void 0);_.Z([_.H(),_.l("design:type",Object)],BB.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.Z([_.JO("#scroller"),_.l("design:type",Object)],BB.prototype,"JSC$21088_scroller",void 0);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],BB.prototype,"onYtPopupOpened",null);_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],BB.prototype,"onYtNavigate",null);
_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],BB.prototype,"onYtServiceRequestSent",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],BB.prototype,"onYtServiceRequestCompleted",null);
_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],BB.prototype,"onYtServiceRequestError",null);_.Z([_.U_({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],BB);var Cst;var kKa;var Ya=function(){return _.p.apply(this,arguments)||this};
_.y(Ya,_.p);_.I=Ya.prototype;_.I.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.I.onVisible=function(){var k,E;(E=_.en().resolve(_.mz(_.qf)))==null||E.enqueue({label:_.$n((k=this.data)==null?void 0:k.messageTitle),elementToFocus:this.hostElement})};
_.I.onThumbnailLoaded=function(){_.Me(this.hostElement,"yt-refit")};
_.I.onDismissTap=function(){_.qe(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.I.computeAlternateIcon=function(k){return k?k==="BACKSTAGE_ARTWORK"?"backstage:artwork":k:null};
_.I.computeFontFamily=function(k){return k==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.I.computeBackgroundStyle=function(k,E){if(k=this.computeBackgroundImage(k,E))if(k=_.Q_(k.thumbnails))return'background-image: url("'+k+'");'};
_.I.computeHasFullHeightImage=function(k){return!(!(k&&k.thumbnails&&k.thumbnails.length>0)||this.modern)};
_.I.isModernStyle=function(k){return k.style==="STYLE_MODERN"};
_.I.computeIcon=function(k,E){if(k&&k.icon)return E?k.iconDark:k.icon};
_.I.computeBackgroundImage=function(k,E){if(k&&k.backgroundImage)return E?k.backgroundImageDark:k.backgroundImage};
_.I.computeLogo=function(k,E){if(k&&k.logo)return E?k.logoDark:k.logo};
_.I.computeShouldShowModernIcon=function(k,E){return k&&!!E};
_.I.getLogoContainerClassName=function(k){return this.logoWithPadding(k)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.I.getLogoImageId=function(k){return this.logoWithPadding(k)?"mealbar-logo-with-padding":"mealbar-logo"};
_.I.logoWithPadding=function(k){var E,S,R;return(k=(E=this.computeLogo(k,this.isDarkTheme))==null?void 0:(S=E.thumbnails)==null?void 0:(R=S[0])==null?void 0:R.height)&&k%31===0?!0:!1};
Ya.prototype.onThumbnailLoaded=Ya.prototype.onThumbnailLoaded;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.Z([_.H({}),_.l("design:type",Object)],Ya.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.l("design:type",Boolean)],Ya.prototype,"modern",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],Ya.prototype,"isDarkTheme",void 0);
_.Z([_.H({computed:"computeIcon(data, isDarkTheme)"}),_.l("design:type",Object)],Ya.prototype,"icon",void 0);_.Z([_.H({computed:"computeLogo(data, isDarkTheme)"}),_.l("design:type",Object)],Ya.prototype,"logo",void 0);_.Z([_.H({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.l("design:type",Object)],Ya.prototype,"backgroundStyle",void 0);_.Z([_.H({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.l("design:type",Object)],Ya.prototype,"alternateIcon",void 0);
_.Z([_.H({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.l("design:type",Boolean)],Ya.prototype,"hasFullHeightImage",void 0);_.Z([_.H({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.l("design:type",Boolean)],Ya.prototype,"useYoutubeSans",void 0);_.Z([_.H({computed:"computeShouldShowModernIcon(modern, icon)"}),_.l("design:type",Boolean)],Ya.prototype,"shouldShowModernIcon",void 0);
_.Z([_.nv("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],Ya.prototype,"onThumbnailLoaded",null);_.Z([_.U_({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Ya);
_.b(Ya,"yt-mealbar-promo-renderer",function(){if(kKa===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;Cst===void 0&&(Cst=document.createElement("template"));var R=Cst;S.call(E,R.content.cloneNode(!0),k.content.firstChild);kKa=k}k=kKa;return k},{mode:2});var EVG;var SrT;var WB=function(){return _.p.apply(this,arguments)||this};
_.y(WB,_.p);_.I=WB.prototype;_.I.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]]"}}}}}};
_.I.computeHasButtons_=function(k){return!(!k.dismissButton&&!k.acceptButton)};
_.I.computeStyle_=function(k){return k||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.I.observeImpressionEndpoints_=function(){var k=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;_.Qw(k.hostElement,[E])})};
_.I.onTap_=function(){_.qe(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
WB.prototype.observeImpressionEndpoints_=WB.prototype.observeImpressionEndpoints_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],WB.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],WB.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],WB.prototype,"positionType",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.l("design:type",Boolean)],WB.prototype,"hasButtons_",void 0);_.Z([_.H({value:function(){return this.onTap_.bind(this)}}),
_.l("design:type",Function)],WB.prototype,"boundOnTap_",void 0);_.Z([_.H({value:{style:"mono-inverse"}}),_.l("design:type",Object)],WB.prototype,"buttonOverride",void 0);_.Z([_.il("data.promoConfig.impressionEndpoints"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],WB.prototype,"observeImpressionEndpoints_",null);_.Z([_.U_({is:"yt-tooltip-renderer",disableElementRegistration:!0})],WB);
_.b(WB,"yt-tooltip-renderer",function(){if(SrT===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;EVG===void 0&&(EVG=document.createElement("template"));var R=EVG;S.call(E,R.content.cloneNode(!0),k.content.firstChild);SrT=k}k=SrT;return k},{mode:2});var RyR;var VCW;var NpP={},ISW=(NpP.WEB_REMIX="music.youtube.com",NpP),FV=function(){var k=_.p.apply(this,arguments)||this;k.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return k};
_.y(FV,_.p);_.I=FV.prototype;_.I.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.created=function(){this.embedHost_=ISW[_.Mg("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.I.ready=function(){_.Cc(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.I.computeEmbedCode_=function(k,E,S,R,V){if(!k)return"";var N=k.videoId,h=k.fullListId,J=[];k.attributionId&&J.push("si="+k.attributionId);R||J.push("controls=0");S&&Number(E)>0&&J.push("start="+E);h&&(N="videoseries",J.push("list="+h));S="https://"+(V?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+N;k.clipId&&(J.push("clip="+k.clipId),J.push("clipt="+k.clipTiming));E=J.length>0?S+"?"+J.join("&amp;"):S;k.encryptedEmbedConfig&&J.push("embed_config="+JSON.stringify({enc:k.encryptedEmbedConfig}));
J=J.length>0?S+"?"+J.join("&amp;"):S;_.Y("web_sharing_embed_preview_killswitch")?_.Cc(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(J,k.previewWidth||854,k.previewHeight||480):(_.of(this.videoPreviewContainer),_.Cc(this.videoPreviewContainer).appendChild(this.buildIframeElement(J)));return this.getEmbedCode_(E,k.width||560,k.height||315)};
_.I.buildIframeElement=function(k){var E=document.createElement("iframe"),S,R;E.width=""+((R=(S=this.data)==null?void 0:S.previewWidth)!=null?R:854);var V,N;E.height=""+((N=(V=this.data)==null?void 0:V.previewHeight)!=null?N:480);_.aem(E,2,k);E.title="YouTube video player";E.frameBorder="0";E.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";E.referrerPolicy="strict-origin-when-cross-origin";E.allowFullscreen=!0;return E};
_.I.computeIsSquareAspectRatio_=function(k){return k.previewHeight&&k.previewWidth?k.previewHeight==k.previewWidth:!1};
_.I.computeShowEmbedOptions_=function(k){return!!k.enablePrivacyModeOptionLabel||!!k.showPlayerControlsOptionLabel};
_.I.getEmbedCode_=function(k,E,S){return'<iframe width="'+E+'" height="'+S+'" src="'+k+'" 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>'};
_.I.handleSignalActionCopyShareEmbedUrl_=function(){_.Cc(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.I.handleSetTimestamp_=function(k){this.startAtTimeStamp_=(this.startAtChecked_=k.isSet)?k.timestamp:0};
_.I.closePanel_=function(){_.qe(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.I.onEmbedCode_=function(){_.Cc(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.I.onYtPopupClosed_=function(){_.of(_.Cc(this.hostElement).querySelector("#video-preview"))};
_.I.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.W(this.data.actionButtons[0],_.dZ)&&this.ytRendererBehavior.logExplicitClick(_.W(this.data.actionButtons[0],_.dZ))};
FV.prototype.onYtPopupClosed_=FV.prototype.onYtPopupClosed_;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],FV.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],FV.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],FV.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],FV.prototype,"data",void 0);
_.Z([_.H({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.l("design:type",String)],FV.prototype,"embedCode_",void 0);_.Z([_.H({value:!0}),_.l("design:type",Boolean)],FV.prototype,"isPlayerControlsOptionChecked_",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],FV.prototype,"isPrivacyModeOptionChecked_",void 0);_.Z([_.H({value:!1,notify:!0}),_.l("design:type",Boolean)],FV.prototype,"startAtChecked_",void 0);
_.Z([_.H({value:0}),_.l("design:type",Number)],FV.prototype,"startAtTimeStamp_",void 0);_.Z([_.H({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],FV.prototype,"isSquareAspectRatio_",void 0);_.Z([_.JO("#video-preview"),_.l("design:type",HTMLElement)],FV.prototype,"videoPreviewContainer",void 0);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],FV.prototype,"onYtPopupClosed_",null);
_.Z([_.U_({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],FV);
_.b(FV,"yt-sharing-embed-renderer",function(){if(VCW===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;RyR===void 0&&(RyR=document.createElement("template"));var R=RyR;S.call(E,R.content.cloneNode(!0),k.content.firstChild);VCW=k}k=VCW;return k},{mode:2});var nVU={};
nVU.YtUnlimitedFamilyInterstitialBehavior=[_.gA.YtOpenPopupBehavior,_.H5.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(k){k=_.t1T(_.bv(k),"yt-button-renderer");return k?k.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(k){this.dialogHistory_.push(k)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var k=this.popFromHistory();if(k){var E={openPopupAction:{popupType:"DIALOG",popup:{}}};E.openPopupAction.popup[k.renderer]=k.data;this.showingPreviousDialog_=!0;this.openPopup(E)}},
handleOpenPopupAction_:function(k){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var E=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(R){return!!k.openPopupAction.popup[R]}),S=this.getElementName_();
E&&this.data&&(this.pushToHistory({renderer:S,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(k){if(k=_.W(k,DZt))this.loading=!0,_.qe(this.hostElement,"yt-open-create-family-dialog",[k,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var k=this.hostElement.nodeName.split("-").slice(1).map(function(E){return""+E[0].toUpperCase()+E.slice(1).toLowerCase()}).join("");
return k[0].toLowerCase()+k.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var iHR;var hyR;var yq=function(){return _.p.apply(this,arguments)||this};
_.y(yq,_.p);_.I=yq.prototype;_.I.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}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.qe(this.hostElement,"yt-register-create-family-dialog");_.Cc(this.hostElement).querySelector("#thumbnail").onShow()};
_.I.fireOnCloseCommand_=function(){var k;((k=this.data)==null?0:k.onCloseCommand)&&_.Ot(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.I.onYtServiceRequestSent_=function(k,E){E&&E.endpoint&&_.W(E.endpoint,_.Ev)||(this.loading=!0)};
_.I.onYtServiceRequestCompleted_=function(){var k=this.hostElement.parentElement;k.close&&k.close();this.loading=!1};
_.I.openPopupHandler_=function(k){if(k.detail==this){var E;((E=this.data)==null?0:E.onOpenCommands)&&_.Ot(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.I.closePopupHandler_=function(k,E){this.fireOnCloseCommand_();if(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1){var S;((S=this.data)==null?0:S.onDismissCommands)&&_.Ot(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.I.dataChanged_=function(){this.loading=!1};
yq.prototype.dataChanged_=yq.prototype.dataChanged_;yq.prototype.closePopupHandler_=yq.prototype.closePopupHandler_;yq.prototype.openPopupHandler_=yq.prototype.openPopupHandler_;yq.prototype.onYtServiceRequestCompleted_=yq.prototype.onYtServiceRequestCompleted_;yq.prototype.onYtServiceRequestSent_=yq.prototype.onYtServiceRequestSent_;_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],yq.prototype,"ytEventForwardingBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],yq.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(nVU.YtUnlimitedFamilyInterstitialBehavior),_.l("design:type",Object)],yq.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],yq.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],yq.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],yq.prototype,"loading",void 0);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],yq.prototype,"onYtServiceRequestSent_",null);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],yq.prototype,"onYtServiceRequestCompleted_",null);
_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],yq.prototype,"openPopupHandler_",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],yq.prototype,"closePopupHandler_",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],yq.prototype,"dataChanged_",null);
_.Z([_.U_({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],yq);
_.b(yq,"yt-unlimited-family-message-interstitial-renderer",function(){if(hyR===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;iHR===void 0&&(iHR=document.createElement("template"));var R=iHR;S.call(E,R.content.cloneNode(!0),k.content.firstChild);hyR=k}k=hyR;return k},{mode:2});var JAA;var cAI;var oa=function(){return _.p.apply(this,arguments)||this};
_.y(oa,_.p);oa.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"}}}};
oa.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Cc(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(k){k.onShow()});
_.Cc(this.hostElement).querySelector("#main-thumbnail").onShow()};
oa.prototype.onButtonTap_=function(k){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(k)};
oa.prototype.computeMainThumbnailWidth_=function(k){return k&&k.length!==0?72:96};
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],oa.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],oa.prototype,"ytRendererBehavior",void 0);_.Z([_.g(nVU.YtUnlimitedFamilyInterstitialBehavior),_.l("design:type",Object)],oa.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],oa.prototype,"data",void 0);
_.Z([_.H({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.l("design:type",Number)],oa.prototype,"mainThumbnailWidth_",void 0);_.Z([_.H({value:function(){return this.onButtonTap_.bind(this)}}),
_.l("design:type",Function)],oa.prototype,"boundButtonTap_",void 0);_.Z([_.U_({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],oa);
_.b(oa,"yt-unlimited-family-profile-interstitial-renderer",function(){if(cAI===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;JAA===void 0&&(JAA=document.createElement("template"));var R=JAA;S.call(E,R.content.cloneNode(!0),k.content.firstChild);cAI=k}k=cAI;return k},{mode:2});var mfT;var eyP;var XV=function(){var k=_.p.apply(this,arguments)||this;k.sliderAriaValueText_=null;k.selectedIndex_=0;k.messages={PAUSE_SLIDER:_.Vi("PAUSE_SLIDER",void 0,"Pause Duration")};return k};
_.y(XV,_.p);_.I=XV.prototype;_.I.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_]]"}}}}}};
_.I.onPopupOpened_=function(k){k.detail==this&&_.Y("enable_premium_voluntary_pause")&&(_.qe(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.I.setDialogData=function(k){this.data=k;this.resetSlider_()};
_.I.dataChanged_=function(){this.data&&this.resetSlider_()};
_.I.onSubmitTap_=function(){if(this.data.confirmCommand){var k=this.data.confirmCommand;_.W(k,_.$Yd)&&_.Qw(this.hostElement,[k,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.I.onExitButtonTap_=function(){_.qe(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.I.closePopupHandler_=function(k,E){(E&&E.canceled===!0||E.canceled===!1&&E.confirmed===!1)&&this.handleOnDismissCommands_()};
_.I.onSliderChange_=function(){this.selectedIndex_=_.Cc(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.I.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.I.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.I.resetSlider_=function(){if(this.data){var k=this.data.defaultEndOptionIndex||0,E=_.Cc(this.hostElement).querySelector("#id-pause-slider");if(E.immediateValue<k)for(;E.immediateValue!=k;)E.increment();else if(k<E.immediateValue)for(;E.immediateValue!=k;)E.decrement();this.selectedIndex_=k;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.I.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Ot(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.I.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Ot(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.I.onYtServiceRequestSent=function(){this.loading=!0};
_.I.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
XV.prototype.onYtServiceRequestCompleted=XV.prototype.onYtServiceRequestCompleted;XV.prototype.onYtServiceRequestSent=XV.prototype.onYtServiceRequestSent;XV.prototype.closePopupHandler_=XV.prototype.closePopupHandler_;XV.prototype.dataChanged_=XV.prototype.dataChanged_;XV.prototype.onPopupOpened_=XV.prototype.onPopupOpened_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],XV.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],XV.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],XV.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],XV.prototype,"loading",void 0);_.Z([_.H(),_.l("design:type",Number)],XV.prototype,"selectIndexMax_",void 0);_.Z([_.H(),_.l("design:type",Object)],XV.prototype,"selectedData_",void 0);
_.Z([_.H(),_.l("design:type",Object)],XV.prototype,"sliderAriaValueText_",void 0);_.Z([_.H({value:function(){return this.onSubmitTap_.bind(this)}}),
_.l("design:type",Function)],XV.prototype,"onButtonTap_",void 0);_.Z([_.H({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.l("design:type",Function)],XV.prototype,"onSecondaryTap_",void 0);_.Z([_.H(),_.l("design:type",Object)],XV.prototype,"messages",void 0);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],XV.prototype,"onPopupOpened_",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],XV.prototype,"dataChanged_",null);
_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],XV.prototype,"closePopupHandler_",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],XV.prototype,"onYtServiceRequestSent",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],XV.prototype,"onYtServiceRequestCompleted",null);_.Z([_.U_({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],XV);
_.b(XV,"yt-unplugged-pause-membership-dialog-renderer",function(){if(eyP===void 0){var k=document.createElement("template");_.X(k,'\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>');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;mfT===void 0&&(mfT=document.createElement("template"));var R=mfT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);eyP=k}k=eyP;return k},{mode:2});var aSY;var tC3;var gl=function(){return _.p.apply(this,arguments)||this};
_.y(gl,_.p);gl.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Yv("vcBalanceRenderer")}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],gl.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],gl.prototype,"data",void 0);_.Z([_.U_({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],gl);
_.b(gl,"yt-vc-offer-layout-header-renderer",function(){if(tC3===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;aSY===void 0&&(aSY=document.createElement("template"));var R=aSY;S.call(E,R.content.cloneNode(!0),k.content.firstChild);tC3=k}k=tC3;return k},{mode:2});var TpG;var wO0;var P8A;var BpP;var Ue=function(){return _.p.apply(this,arguments)||this};
_.y(Ue,_.p);Ue.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.mt.Object.defineProperties(Ue.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)}}});
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ue.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ue.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.P4Y.YtTappableItemBehavior),_.l("design:type",Object)],Ue.prototype,"ytTappableItemBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ue.prototype,"data",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.U("data.accessibilityText"),_.l("design:type",String),_.l("design:paramtypes",[])],Ue.prototype,"ariaLabel",null);_.Z([_.H({reflectToAttribute:!0}),_.U("data.style"),_.l("design:type",String),_.l("design:paramtypes",[])],Ue.prototype,"vcOfferStyle",null);_.Z([_.U("data.style","data.titleText"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],Ue.prototype,"showTitleText",null);_.Z([_.U_({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Ue);
_.b(Ue,"yt-vc-offer-renderer",function(){if(BpP===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;P8A===void 0&&(P8A=document.createElement("template"));var R=P8A;S.call(E,R.content.cloneNode(!0),k.content.firstChild);BpP=k}k=BpP;return k},{mode:2});var HB=function(){return _.p.apply(this,arguments)||this};
_.y(HB,_.p);HB.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}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],HB.prototype,"data",void 0);_.Z([_.U_({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],HB);
_.b(HB,"yt-vc-offer-layout-renderer",function(){if(wO0===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;TpG===void 0&&(TpG=document.createElement("template"));var R=TpG;S.call(E,R.content.cloneNode(!0),k.content.firstChild);wO0=k}k=wO0;return k},{mode:2});var YrU;var WgW;var FgG;var yAx;var Ka=function(){return _.p.apply(this,arguments)||this};
_.y(Ka,_.p);Ka.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}}}}}};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],Ka.prototype,"data",void 0);_.Z([_.U_({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Ka);
_.b(Ka,"yt-ypc-offers-modal-top-bar-renderer",function(){if(yAx===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;FgG===void 0&&(FgG=document.createElement("template"));var R=FgG;S.call(E,R.content.cloneNode(!0),k.content.firstChild);yAx=k}k=yAx;return k},{mode:2});var pa=function(){return _.p.apply(this,arguments)||this};
_.y(pa,_.p);pa.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"}}}}};
pa.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
pa.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var k=this.scrollable;k.attached&&typeof k.attached==="function"&&k.attached()};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.JO("#scrollable"),_.l("design:type",Object)],pa.prototype,"scrollable",void 0);_.Z([_.H(),_.l("design:type",Object)],pa.prototype,"data",void 0);_.Z([_.U_({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],pa);
_.b(pa,"yt-ypc-offers-modal-renderer",function(){if(WgW===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;YrU===void 0&&(YrU=document.createElement("template"));var R=YrU;S.call(E,R.content.cloneNode(!0),k.content.firstChild);WgW=k}k=WgW;return k},{mode:2});var oVW;var XOG;var A5=function(){return _.p.apply(this,arguments)||this};
_.y(A5,_.p);_.I=A5.prototype;_.I.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}}}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Cc(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.I.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.qe(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.I.onYtPopupOpened_=function(k,E){(E==null?void 0:E.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Ot(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.I.onYtPopupClosed_=function(k,E){this.continueButtonTapped||E&&(E.canceled===!0||E.canceled===!1&&E.confirmed===!1)&&this.data.onDismissCommands&&_.Ot(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.I.onYtServiceRequestError_=function(k){this.set("showSpinner",!1);_.A0(this.hostElement,k.detail.error.message)};
_.I.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.Y("enable_ypc_spinners")?_.qe(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
A5.prototype.onYtServiceRequestError_=A5.prototype.onYtServiceRequestError_;A5.prototype.onYtPopupClosed_=A5.prototype.onYtPopupClosed_;A5.prototype.onYtPopupOpened_=A5.prototype.onYtPopupOpened_;A5.prototype.onYtServiceRequestCompleted_=A5.prototype.onYtServiceRequestCompleted_;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],A5.prototype,"ytRendererstamperBehavior",void 0);
_.Z([_.H(),_.l("design:type",Object)],A5.prototype,"data",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],A5.prototype,"showSpinner",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],A5.prototype,"continueButtonTapped",void 0);_.Z([_.H({value:function(){return this.onContinueTapped_.bind(this)}}),
_.l("design:type",Function)],A5.prototype,"bindOnContinueTapped_",void 0);_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],A5.prototype,"onYtServiceRequestCompleted_",null);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],A5.prototype,"onYtPopupOpened_",null);
_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],A5.prototype,"onYtPopupClosed_",null);_.Z([_.nv("yt-service-request-error"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],A5.prototype,"onYtServiceRequestError_",null);_.Z([_.U_({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],A5);
_.b(A5,"yt-ypc-upgrade-dialog-renderer",function(){if(XOG===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;oVW===void 0&&(oVW=document.createElement("template"));var R=oVW;S.call(E,R.content.cloneNode(!0),k.content.firstChild);XOG=k}k=XOG;return k},{mode:2});var gV3;var Uf0;var rl=function(){return _.p.apply(this,arguments)||this};
_.y(rl,_.p);rl.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
rl.prototype.computeHasButtons_=function(k){return!(!k.dismissButton&&!k.confirmButton)};
rl.prototype.computeStyle_=function(k){return k||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],rl.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],rl.prototype,"data",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],rl.prototype,"positionType",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.l("design:type",Boolean)],rl.prototype,"hasButtons_",void 0);_.Z([_.H({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.l("design:type",Boolean)],rl.prototype,"style_",void 0);_.Z([_.U_({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],rl);
_.b(rl,"yt-bubble-hint-renderer",function(){if(Uf0===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;gV3===void 0&&(gV3=document.createElement("template"));var R=gV3;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Uf0=k}k=Uf0;return k},{mode:2});var HHG;var Kga;var uF=function(){var k=_.eX.apply(this,arguments)||this;k.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return k};
_.y(uF,_.eX);_.I=uF.prototype;_.I.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.I.attached=function(){var k=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){k.$.thumbnail.onShow();k.$["header-image"].onShow()})};
_.I.handleCheckBoxUpdateAction_=function(k){this.canShowCheckboxEnabledConfirmButton=k};
_.I.computeUseOverlayForSpinner_=function(k,E){return!!k&&E};
_.I.computeShowSpinner_=function(k,E){return k||!!E};
_.I.fireOnCloseActions_=function(){var k,E=_.n(((k=this.data)==null?void 0:k.onClosedActions)||[]);for(k=E.next();!k.done;k=E.next())this.ytRendererBehavior.resolveCommand(k.value)};
_.I.fireOnOpenCommands_=function(k){var E,S=(E=this.data)==null?void 0:E.onOpenCommands;if(S)for(k.stopImmediatePropagation(),k=_.n(S),E=k.next();!E.done;E=k.next())this.ytRendererBehavior.resolveCommand(E.value)};
_.I.fireOnDismissCommands_=function(k){var E,S=(E=this.data)==null?void 0:E.onDismissCommands;if(S)for(k.stopImmediatePropagation(),k=_.n(S),E=k.next();!E.done;E=k.next())this.ytRendererBehavior.resolveCommand(E.value)};
_.I.openPopupHandler_=function(k){k.detail==this&&this.fireOnOpenCommands_(k)};
_.I.closePopupHandler_=function(k,E){_.zR(this,"yt-confirm-dialog-close-action",[E]);this.fireOnCloseActions_();(E&&E.canceled===!0||E&&E.canceled===!1&&E.confirmed===!1)&&this.fireOnDismissCommands_(k)};
_.I.onHeaderImageChanged_=function(){var k;((k=this.data)==null?0:k.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.I.computeHasHeaderImageWidth_=function(k){return k!=void 0};
_.I.computeHasLoadingMessage=function(k){return!!k};
_.I.onHeaderImageWidthChanged_=function(){var k,E=(k=this.data)==null?void 0:k.headerImageWidth;if(E){if(k=1.25*E*2+E,this.$.main.style.width=k+"px",E=this.$.scroller.firstElementChild)E.style.minWidth=k+"px"}else this.$.main.style.width="100%"};
_.I.onThumbnailChanged_=function(){var k;((k=this.data)==null?0:k.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")};
_.I.onYtNavigate_=function(k){k=_.bv(k);k instanceof Node&&_.kT(this.$["confirm-button"]).contains(k)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.I.computePrimaryIsCancel_=function(k){return k};
_.I.computeIsCancelButtonHidden_=function(k){return k.skipCancelButton||!k.cancelButton};
_.I.computeIsCheckboxHidden_=function(k){return!k.checkbox};
_.I.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.I.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.I.onYtServiceRequestCompleted_=function(){var k;((k=this.data)==null?0:k.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.mt.Object.defineProperties(uF,{template:{configurable:!0,enumerable:!0,get:function(){if(Kga===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;HHG===void 0&&(HHG=document.createElement("template"));var R=HHG;S.call(E,R.content.cloneNode(!0),k.content.firstChild);Kga=k}k=Kga;return k}}});
uF.prototype.onYtServiceRequestCompleted_=uF.prototype.onYtServiceRequestCompleted_;uF.prototype.onYtServiceRequestSent_=uF.prototype.onYtServiceRequestSent_;uF.prototype.onThumbnailLoaded_=uF.prototype.onThumbnailLoaded_;uF.prototype.onYtNavigate_=uF.prototype.onYtNavigate_;uF.prototype.onThumbnailChanged_=uF.prototype.onThumbnailChanged_;uF.prototype.onHeaderImageWidthChanged_=uF.prototype.onHeaderImageWidthChanged_;uF.prototype.onHeaderImageChanged_=uF.prototype.onHeaderImageChanged_;
uF.prototype.closePopupHandler_=uF.prototype.closePopupHandler_;uF.prototype.openPopupHandler_=uF.prototype.openPopupHandler_;_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],uF.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],uF.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);
_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],uF.prototype,"ytEventForwardingBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],uF.prototype,"data",void 0);_.Z([_.H({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.l("design:type",Boolean)],uF.prototype,"primaryIsCancel",void 0);_.Z([_.H({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.l("design:type",Boolean)],uF.prototype,"isCancelButtonHidden",void 0);
_.Z([_.H({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.l("design:type",Boolean)],uF.prototype,"isCheckboxHidden",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],uF.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.Z([_.H({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.l("design:type",Boolean)],uF.prototype,"useOverlayForSpinner_",void 0);
_.Z([_.H({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.l("design:type",Boolean)],uF.prototype,"showSpinner_",void 0);_.Z([_.H({value:!1}),_.l("design:type",Boolean)],uF.prototype,"isActionInProgress_",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.l("design:type",Boolean)],uF.prototype,"hasHeaderImageWidth_",void 0);
_.Z([_.H({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.l("design:type",Boolean)],uF.prototype,"hasLoadingMessage",void 0);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],uF.prototype,"openPopupHandler_",null);_.Z([_.nv("yt-popup-closed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],uF.prototype,"closePopupHandler_",null);
_.Z([_.il("data.headerImage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uF.prototype,"onHeaderImageChanged_",null);_.Z([_.il("data.headerImageWidth"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uF.prototype,"onHeaderImageWidthChanged_",null);_.Z([_.il("data.thumbnail"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uF.prototype,"onThumbnailChanged_",null);
_.Z([_.nv("yt-navigate"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],uF.prototype,"onYtNavigate_",null);_.Z([_.nv("yt-img-shadow-loaded"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],uF.prototype,"onThumbnailLoaded_",null);_.Z([_.nv("yt-service-request-sent"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.pU]),_.l("design:returntype")],uF.prototype,"onYtServiceRequestSent_",null);
_.Z([_.nv("yt-service-request-completed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,_.fU]),_.l("design:returntype")],uF.prototype,"onYtServiceRequestCompleted_",null);_.Z([_.U_({is:"yt-confirm-dialog-renderer",noInjection:!0})],uF);var pO2;var AAT;var xa=function(){return _.p.apply(this,arguments)||this};
_.y(xa,_.p);xa.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Cc(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
xa.prototype.computeConfirmButton_=function(k){var E={text:k.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};k.confirmNavigationEndpoint?E.navigationEndpoint=k.confirmNavigationEndpoint:k.confirmServiceEndpoint&&(E.serviceEndpoint=k.confirmServiceEndpoint);return E};
xa.prototype.computeShowTitle_=function(k){return!(k==null||!k.title)};
_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],xa.prototype,"data",void 0);_.Z([_.H({computed:"computeShowTitle_(data)"}),_.l("design:type",Boolean)],xa.prototype,"showTitle",void 0);_.Z([_.U_({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],xa);
_.b(xa,"yt-fancy-dismissible-dialog-renderer",function(){if(AAT===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;pO2===void 0&&(pO2=document.createElement("template"));var R=pO2;S.call(E,R.content.cloneNode(!0),k.content.firstChild);AAT=k}k=AAT;return k});var rAG;var uM0;var La=function(){var k=_.p.apply(this,arguments)||this;k.spinnerActive=!1;return k};
_.y(La,_.p);La.prototype.created=function(){ZTI(2201)};
La.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
La.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
La.prototype.onIronOverlayClosed=La.prototype.onIronOverlayClosed;La.prototype.onIronOverlayOpened=La.prototype.onIronOverlayOpened;_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.lA),_.l("design:type",Object)],La.prototype,"tpYtIronOverlayBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],La.prototype,"data",void 0);_.Z([_.H(),_.l("design:type",Object)],La.prototype,"spinnerActive",void 0);
_.Z([_.nv("iron-overlay-opened"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],La.prototype,"onIronOverlayOpened",null);_.Z([_.nv("iron-overlay-closed"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],La.prototype,"onIronOverlayClosed",null);_.Z([_.U_({is:"yt-loading-renderer",disableElementRegistration:!0})],La);
_.b(La,"yt-loading-renderer",function(){if(uM0===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;rAG===void 0&&(rAG=document.createElement("template"));var R=rAG;S.call(E,R.content.cloneNode(!0),k.content.firstChild);uM0=k}k=uM0;return k},{mode:2});var xfT;var LgA;var js=function(){var k=_.p.apply(this,arguments)||this;k.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);k.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);k.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";k.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return k};
_.y(js,_.p);_.I=js.prototype;_.I.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.I.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.I.onDarkModeToggledAction=function(k){this.isDarkTheme=k};
_.I.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.I.openPopupHandler_=function(k){k.detail===this.hostElement&&this.hostElement.hidden&&_.qe(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.I.onDismissButtonTap_=function(){var k;this.closeOnDismissButton_.has(((k=this.data)==null?void 0:k.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.qe(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.I.onAcceptButtonTap_=function(){var k;this.closeOnAcceptButton_.has(((k=this.data)==null?void 0:k.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.qe(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.I.computeHasHeader_=function(k){return!!k.headerBackgroundImage};
_.I.computeLayoutStyle_=function(k){return k};
_.I.computePopupSize_=function(k){return k};
_.I.computeIconType_=function(k){return k.dialogIcon&&k.dialogIcon.iconType?k.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":k.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":k.dialogIcon.iconType:""};
_.I.computeIsLogo_=function(k){return!!k.dialogIcon&&!!k.dialogIcon.iconType&&(k.dialogIcon.iconType==="YOUTUBE_LOGO"||k.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||k.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.I.computeHasCustomLogo=function(k){return!(k==null||!k.headerForegroundImage)};
_.I.computeCustomLogo=function(k,E){if(k!=null&&k.headerForegroundImage)return k.headerForegroundImageDark?E?k.headerForegroundImageDark:k.headerForegroundImage:k.headerForegroundImage};
_.I.computeHeaderBackgroundImage=function(k,E){if(k!=null&&k.headerBackgroundImage)return E&&(k==null?0:k.headerBackgroundImageDark)?k.headerBackgroundImageDark:k.headerBackgroundImage};
_.I.shouldShowIconContainer=function(k,E){return k&&!E};
_.I.shouldShowNonYouTubeIcon=function(k,E){return!k&&!E};
_.I.getLogoImageId=function(k){var E,S,R;return(k=(E=this.computeCustomLogo(k,this.isDarkTheme))==null?void 0:(S=E.thumbnails)==null?void 0:(R=S[0])==null?void 0:R.height)&&k%31===0?"custom-logo-with-padding":"custom-logo"};
js.prototype.openPopupHandler_=js.prototype.openPopupHandler_;js.prototype.dataChanged_=js.prototype.dataChanged_;_.Z([_.g(_.aA.YtRendererstamperBehavior),_.l("design:type",Object)],js.prototype,"ytRendererstamperBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],js.prototype,"ytRendererBehavior",void 0);_.Z([_.H(),_.l("design:type",Boolean)],js.prototype,"isDarkTheme",void 0);
_.Z([_.H({computed:"computeCustomLogo(data, isDarkTheme)"}),_.l("design:type",Object)],js.prototype,"customLogo",void 0);_.Z([_.H({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.l("design:type",Object)],js.prototype,"headerBackgroundImage",void 0);_.Z([_.H(),_.l("design:type",Object)],js.prototype,"data",void 0);_.Z([_.H({computed:"computeHasHeader_(data)"}),_.l("design:type",Boolean)],js.prototype,"hasHeader",void 0);
_.Z([_.H({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.l("design:type",Object)],js.prototype,"layoutStyle",void 0);_.Z([_.H({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.l("design:type",Object)],js.prototype,"popupSize",void 0);_.Z([_.H({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],js.prototype,"hasLogo",void 0);
_.Z([_.H({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.l("design:type",Boolean)],js.prototype,"hasCustomLogo",void 0);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],js.prototype,"dataChanged_",null);_.Z([_.nv("yt-popup-opened"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],js.prototype,"openPopupHandler_",null);
_.Z([_.U_({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],js);
_.b(js,"yt-upsell-dialog-renderer",function(){if(LgA===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;xfT===void 0&&(xfT=document.createElement("template"));var R=xfT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);LgA=k}k=LgA;return k},{mode:2});var jpR=_.f(function(k){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.e(_.t,{cond:k.title,then:function(E){return _.e("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},E)}}))},"nj"),DfT=_.f(function(k){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.e(_.cp,{data:k.closeButton},{buttonViewModel:function(E){return _.e("div",null,_.e(_.yB,{data:E.data}))}}))},"oj"),$fR=_.f(function(k){var E=k.data;
return _.e(_.tj,null,_.e("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.e("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.e(_.t,{cond:function(){return!!E().image&&!!E().title},
then:function(){return _.e(_.vM,{data:function(){return E().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.e("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.e(_.t,{cond:function(){return E().title},
then:function(S){return _.e("h3",{class:"miniAppGameInfoDialogViewModelTitle"},S)}}),_.e(_.t,{cond:function(){return E().primaryGenre},
then:function(S){return _.e("span",{class:"miniAppGameInfoDialogViewModelGenre"},S)}}))),_.e(_.t,{cond:function(){var S=E().description;
return S&&S.length<=150},
then:function(){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.e("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return E().description}))}}))},"pj"),fSx=_.f(function(k){k=k.infoRows;
var E=_.en().resolve(_.N9),S=_.Y("enable_displaying_ppn");return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.e(_.jw,{each:k},function(R){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.e(_.t,{cond:function(){return R.label},
then:function(V){return _.e("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},V)}}),_.e(_.t,{cond:function(){return R.attributedLabel},
then:function(V){return _.e("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.e(_.VB,{text:V,noPreWrap:!0}))}}),_.e(_.t,{cond:function(){return R.value},
then:function(V){return _.e("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},V)}}),_.e(_.t,{cond:function(){return R.attributedValue},
then:function(V){return _.e("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.e(_.VB,{text:V,noPreWrap:!0}))}}))}),_.e(_.t,{cond:function(){return S&&E.clientData.has("post_play_nonce")},
then:function(){return _.e("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.e("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.e("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},E.getData("post_play_nonce")))}}))},"qj"),vVW=_.f(function(k){var E=k.data;
return _.e("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.e(jpR,{title:function(){return E().dialogTitle}}),_.e($fR,{data:E}),_.e(_.t,{cond:function(){return E().infoRow},
then:function(S){return _.e(fSx,{infoRows:S})}}),_.e(DfT,{closeButton:function(){return E().closeButton}}))},"rj");
vVW.idomCompat=!0;_.qi(vVW,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;return _.e("yt-gulp-triggering-dialog-view-model",{class:_.SQ("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.e(_.vM,{data:function(){return E().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.e("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.e("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.e(_.t,{cond:function(){var S=E().ytLogo;return S?S.iconType:null},
then:function(S){return _.e(_.i_,{icon:S,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.e("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.e("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.e(_.VB,{text:function(){return E().body}})),_.e("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.e(_.VB,{text:function(){return E().verifyStateText}}))),
_.e("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.e("div",null,_.e(_.cp,{data:function(){return E().dismissButton}},{buttonViewModel:_.yB})),_.e("div",null,_.e(_.cp,{data:function(){return E().linkParentButton}},{buttonViewModel:_.yB})))))},"sj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Nq}});var bHR=_.f(function(k){var E=k.data;k=_.Zk(function(){return E().agreements},[]);
return _.e("installment-agreements-view-model",{class:_.SQ("ytInstallmentAgreementsViewModelHost")},_.e(_.jw,{each:k},function(S){return _.e("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.e("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.e(_.VB,{text:S.label})),_.e("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.e(_.cp,{data:function(){return S.openButton}},{buttonViewModel:_.yB})))}))},"tj");
bHR.idomCompat=!0;var ZHG=_.f(function(k){var E=_.n(_.IZ(function(){var z,kb;return((z=k.data().createPlaylistDialogFormSchema)==null?0:(kb=z.initialValues)==null?0:kb.title)?k.data().createPlaylistDialogFormSchema.initialValues.title:""})),S=E.next().value,R=E.next().value;
E=_.n(_.IZ(function(){k.data();return!1}));
var V=E.next().value,N=E.next().value;E=_.n(_.IZ(function(){k.data();return!1}));
var h=E.next().value,J=E.next().value;E=_.n(_.IZ(function(){var z,kb;return(z=k.data().createPlaylistDialogFormSchema)==null?void 0:(kb=z.initialValues)==null?void 0:kb.visibility}));
var m=E.next().value,a=E.next().value;E=_.n(_.IZ(function(){k.data();return!1}));
var T=E.next().value,w=E.next().value;E=_.n(_.IZ(function(){var z,kb;return(z=k.data().createPlaylistDialogFormSchema)==null?void 0:(kb=z.initialValues)==null?void 0:kb.isCollaborative}));
var P=E.next().value,B=E.next().value,F=_.VH("div");_.vX(function(){var z=F.value.querySelector("textarea");z&&(z.value=S())},"axFRaf");
_.b$(function(){var z;_.rwt((z=k.data().createPlaylistDialogFormSchema)==null?void 0:z.id,{onSubmit:function(){var kb=S();var TI=m(),a1=P(),Ah=k.data();kb={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:kb,privacyStatus:TI,videoIds:Ah.videoIds,sourcePlaylistId:Ah.sourcePlaylistId,params:a1?Ah.createPlaylistParamsCollaborationEnabled:Ah.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.en().resolve(_.t3).resolveCommand(kb)},
isValid:function(){return V()&&!h()&&!T()}})});
var K=function(z){if(z!==void 0&&(R(z),!V()&&z.length>0&&N(!0),V())){var kb=OmW(k.data());if(kb){var TI=kb.minLength;kb=kb.maxLength;TI&&z.length<TI?J(!0):kb&&z.length>kb?J(!0):J(!1)}}},r=function(){var z=!(!P()||m()!=="PRIVATE");
w(z)},x=function(z){z!==void 0&&(a(z),r())},L=function(){if(T())return CbP(k.data())},q=function(){B(!P());
r()},M=function(){return{validate:function(z){if(V()){var kb=OmW(k.data());
if(kb){var TI=kb.minLength;kb=kb.translations;if(TI&&z.length<TI)return kb==null?void 0:kb.minLengthErrorMessage}}}}},d=function(){var z=OmW(k.data()),kb=z==null?void 0:z.maxLength,TI;
z=z==null?void 0:(TI=z.translations)==null?void 0:TI.maxLengthErrorMessage;if(kb&&z)return{maxChars:kb,errorMessage:z}};
return _.e("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.e("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:F},_.e(_.cp,{data:function(){return k.data().playlistTitle}},{textFormFieldViewModel:function(z){return _.e(_.ufY,{data:z.data,
text:S,onInput:K,validation:M,characterLimit:d})},
textFieldViewModel:function(z){return _.e(_.rpP,{data:z.data,text:S,onInput:K,validation:M,characterLimit:d})}})),_.e("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.e(_.cp,{data:function(){return k.data().playlistVisibility}},{dropdownViewModel:function(z){return _.e(_.s7U,{data:z.data,
onSelected:x,error:L})}})),_.e(_.t,{cond:function(){return!!k.data().playlistCollaborate},
then:function(){return _.e("div",null,_.e(_.cp,{data:function(){return k.data().playlistCollaborate}},{switchListItemViewModel:function(z){return _.e(_.a4d,{data:z.data,
onTap:q})}}))}}))},"vj");var dfW=_.f(function(k){var E=k.data;return _.e("upsell-offer-table-cell-content-view-model",null,_.e("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.e(_.D_,null,_.e(_.xk,{when:function(){return E().iconType}},function(){return _.e("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.e(_.i_,{icon:function(){return E().iconType.toString()}}))}),_.e(_.xk,{when:function(){return E().title}},function(){return _.e(_.VB,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return E().title}})}),_.e(_.xk,{when:function(){return E().subtitle}},function(){return _.e(_.VB,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return E().subtitle}})}),_.e(_.xk,{when:function(){return E().infoText}},function(){return _.e(_.VB,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return E().infoText}})}),_.e(_.xk,{when:function(){return E().featureDescription}},function(){return _.e(_.VB,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return E().featureDescription}})}),_.e(_.xk,{when:function(){return E().note}},function(){return _.e(_.VB,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return E().note}})}))))},"wj");
dfW.idomCompat=!0;var spI=_.f(function(k){var E=k.data;return _.e("upsell-offer-table-cell-view-model",null,_.e("div",{class:_.SQ("ytUpsellOfferTableCellViewModelCellWrapper",function(){return E().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.e(_.cp,{data:function(){return E().contents}},{upsellOfferTableCellContentViewModel:dfW})))},"xj");
spI.idomCompat=!0;var lSR=_.f(function(k){var E=k.data;var S=k.upsellTableIsFirstRow;var R=function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},V=function(){return(S==null?0:S())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.e("ytm-upsell-offer-table-row-view-model",null,_.e("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.e(_.cp,{data:function(){return E().rowHeaderCell}},{upsellOfferTableCellViewModel:function(N){return _.e("div",{class:R},_.e(spI,{data:N.data}))}}),_.e(_.cp,{data:function(){return E().contentCells}},{upsellOfferTableCellViewModel:function(N){return _.e("div",{class:V},_.e(spI,{data:N.data}))}})))},"yj");
lSR.idomCompat=!0;var MCG=_.f(function(k){var E=k.data;return _.e("ytm-upsell-offer-table-view-model",null,_.e("div",{class:"ytUpsellOfferTableViewModelHost"},_.e("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.e(_.cp,{data:function(){return E().rows}},{upsellOfferTableRowViewModel:function(S,R){return _.e(lSR,{data:S.data,
upsellTableIsFirstRow:function(){return R()===0}})}}))))},"zj");
MCG.idomCompat=!0;var qrA=_.f(function(k){var E=function(){return k.data()},S=_.Zk(k.noPadding,!1),R=function(){var N,h;
return(h=(N=E().logo.accessibilityData)==null?void 0:N.label)!=null?h:""},V={};
return _.e("upsell-view-model",{class:_.SQ("ytUpsellViewModelHost",(V.ytUpsellViewModelHostNoPadding=function(){return S()},V.ytUpsellViewModelHostWide=function(){return E().offerTable!==void 0},V))},_.e("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.e(_.t,{cond:function(){return _.Hp(E().logo)},
then:function(N){return _.e(_.vM,{data:N,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:R})}})),_.e("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.e(_.jw,{each:function(){var N;
return(N=E().subtitles)!=null?N:[]},
keyBy:"INDEX"},function(N){var h={};return _.e("div",{class:_.SQ("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(h.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return E().offerTable!==void 0},h))},_.e(_.VB,{text:N}))})),_.e("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.e(_.jw,{each:function(){var N;
return(N=E().benefitInfos)!=null?N:[]},
keyBy:"INDEX"},function(N){return _.e(_.t,{cond:function(){return N().info},
then:function(h){return _.e("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.e(_.i_,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.e(_.VB,{text:h}))}})})),_.e(_.t,{cond:function(){return E().offerTable!==void 0},
then:function(){return _.e("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.e(_.cp,{data:function(){return E().offerTable}},{upsellOfferTableViewModel:function(N){return _.e(MCG,{data:N.data})}}))}}),_.e("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.e(_.jw,{each:function(){var N;
return(N=E().legalInfos)!=null?N:[]},
keyBy:"INDEX"},function(N){var h={};return _.e("div",{class:_.SQ("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(h.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return E().offerTable!==void 0},h))},_.e(_.VB,{text:N}))})))},"Aj");var zyx=_.f(function(k){var E=k.data;k={};k=(k.ytMiniAppScoreChallengeViewModelScoreRadial=!0,k.ytMiniAppScoreChallengeViewModelDarkScoreRadial=knU(),k);return _.e("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.e("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return E().title}),_.e("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return E().subtitle}),_.e("div",{class:_.wd(k)},_.e("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return E().score})),_.e("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return E().prompt}))},"Bj");var QpI=function(){this.store=_.vu();this.formId=""};
QpI.prototype.onInit=function(k){k.formId&&(this.formId=k.formId,this.store.dispatch(_.zX({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var OHA=_.f(function(k){function E(J){if(J&&(J=_.W(J,_.eq)))return Object.assign({},J,{isSelected:N()})}
var S=_.n(_.IZ(function(){var J,m;return(m=(J=_.W(k.data().option,_.eq))==null?void 0:J.isSelected)!=null?m:!1})),R=S.next().value,V=S.next().value,N=R;
_.b$(function(){var J;_.rwt((J=k.data().formSchema)==null?void 0:J.id,{onSubmit:function(){var m=_.en().resolve(_.t3),a=!!k.data().selectedCommand,T=!!k.data().unselectedCommand;if(N()){if(a)var w=k.data().selectedCommand}else T&&(w=k.data().unselectedCommand);w=_.Uk(w);E(k.data().option)&&!w?(m="",!a&&T?m="selected ":a&&!T&&(m="unselected "),a=new _.LC("No "+m+"command found for SelectionListItemFormViewModel"),_.bM(a)):w&&m.resolveCommand(w)},
isValid:function(){return!0}})});
var h=function(){V(!N())};
_.bI(function(){var J,m,a=(J=k.data())==null?void 0:(m=J.formSchema)==null?void 0:m.id;a&&_.h0()().delete(a)});
return _.e("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.e("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.e(_.VB,{text:function(){return k.data().paragraph}})),_.e(_.t,{cond:function(){return E(k.data().option)},
then:function(J){return _.e(_.zy,{data:J,isCompact:!0,hideSelectionTextChevron:!0,onTap:h,disableHorizontalPadding:!0})}}))},"Cj");var GKP=_.f(function(k){var E=k.data;var S=k.disablePadding;var R=k.className;var V=_.VH("yt-dialog-header-view-model"),N=function(){var J=E().imageBanner;a:switch(E().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var m="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:m="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:J,style:m,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},h=function(){return E().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.b$(function(){var J=function(){_.qe(V.value,"yt-refit-popups-action")},m;
(m=V.value)==null||m.addEventListener("image-loaded",J);_.bI(function(){var a;(a=V.value)==null||a.removeEventListener("image-loaded",J)})});
k={};return _.e("yt-dialog-header-view-model",{el:V,class:_.SQ(R,(k.ytDialogHeaderViewModelHost=!0,k.ytDialogHeaderViewModelHostDisablePadding=S,k))},_.e(_.t,{cond:function(){return E().imageBanner},
then:function(){var J={};return _.e("div",{class:_.SQ(R,(J.ytDialogHeaderViewModelBanner=!0,J.ytDialogHeaderViewModelBannerFullBleed=h,J)),style:_.nU({"max-height":function(){return E().assetContainerMaxHeight!==void 0?E().assetContainerMaxHeight+"px":void 0}})},_.e(_.TQ,{data:N,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.e(_.t,{cond:function(){return E().headerBlock},
then:function(){return _.e("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.e(_.cp,{data:function(){return E().headerBlock}},{contentPreviewImageViewModel:function(J){return _.e(_.TQ,{data:J.data,
notifyOnLoaded:!0})}}))}}),_.e(_.t,{cond:function(){return E().customBanner},
then:function(J){return _.e("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.e(_.cp,{data:J},{avatarStackViewModel:_.lR}))}}),_.e(_.t,{cond:function(){return E().headline},
then:function(J){return _.e("h2",null,_.e(_.VB,{text:J,className:"ytDialogHeaderViewModelText"}))}}))},"Dj");
GKP.idomCompat=!0;var C8G=_.f(function(k){var E=_.mKi(function(){return k.data().formId}),S=E.submitForm,R=E.isValid;
return _.e("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.e(_.cp,{data:function(){return k.data().panelFooter}},{panelFooterViewModel:function(V){return _.e(_.FO,{data:V.data,
disablePadding:!0,disablePrimaryButton:function(){return!R()},
onClickPrimaryButton:function(){S()}})}}))},"Ej");var kWx=_.f(function(k){var E=function(){var S,R;return(R=(S=_.W(k.data().rendererContext,_.n9))==null?void 0:S.label)!=null?R:""};
return _.e("yt-dialog-image-content-view-model",{class:_.SQ("ytDialogImageContentViewModelHost",k.className)},_.e(_.t,{cond:function(){return _.Hp(k.data().image)},
then:function(S){var R={};return _.e("div",{style:_.nU((R.width=(0,_.MD)(function(){var V;return(V=k.data().imageMaxWidth)!=null?V:""}),R)),
class:"ytDialogImageContentViewModelImage"},_.e(_.vM,{data:S,alt:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.e(_.VB,{text:function(){return k.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Fj");var RDP=_.f(function(k){var E=_.dJ(k,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),S=E.elRefCallback;k=E.iconWiz;var R=E.assetWiz,V=E.assetType,N=E.titleWiz,h=E.leadingActionHeaderWiz,J=E.trailingActionHeaderWiz,m=E.headerPosition,a=E.contentWiz,T=E.buttonLayout,w=E.buttonStyle,P=E.primaryButtonWiz,B=E.secondaryButtonWiz,F=E.contentAlignment,K=E.isFullscreen,r=E.width,x=E.maxHeight,L=E.isHeaderWizDefined,
q=E.headerWiz,M=E.isFooterWizDefined,d=E.footerWiz;E=_.VH("dialog-layout",function(Xm){S==null||S(Xm)});
var z=R?function(){return R({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,kb=P?function(){var Xm={};
return P({buttonOverrides:function(){return{style:(w==null?void 0:w())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.SQ((Xm["yt-spec-dialog-layout__dialog-layout-button"]=!0,Xm["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(T==null?void 0:T())===0||(T==null?void 0:T())===2},Xm))})}:void 0,TI=B?function(){var Xm={};
return B({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.SQ((Xm["yt-spec-dialog-layout__dialog-layout-button"]=!0,Xm["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(T==null?void 0:T())===0||(T==null?void 0:T())===2},Xm))})}:void 0,a1=function(){return(!!N||!!h||!!J)&&m()===0},Ah={},th={},He={},ve={};
return _.e("dialog-layout",{el:E,class:_.SQ((Ah["yt-spec-dialog-layout"]=!0,Ah["yt-spec-dialog-layout--dialog-layout-fullscreen"]=K,Ah["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!K()},Ah["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return x()===1},Ah["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(V==null?void 0:V())===1},Ah)),
style:function(){return(r==null?void 0:r())!==void 0?"width: "+r+"px;":""}},k?_.e("div",{class:_.SQ((th["yt-spec-dialog-layout__dialog-layout-icon"]=!0,th["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!R&&m()===1},th["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return F()===1},th))},_.e(k,null)):null,_.e(_.t,{cond:L,
then:function(){return q?_.e("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.e(q,null)):null},
else:function(){return _.e(_.tj,null,_.e(_.t,{cond:a1,then:function(){return _.e(E3P,{contentAlignment:F,LeadingActionHeader:h,TrailingActionHeader:J,Title:N,isAboveAsset:!!z})}}),z?_.e("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.e(z,null)):null)}}),_.e("div",{class:_.SQ((He["yt-spec-dialog-layout__dialog-layout-container"]=!0,He["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(F==null?void 0:F())===1},He["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!N&&!(q&&L())||!!z&&(m==null?void 0:m())===0},He))},_.e(_.t,{cond:function(){return N&&!q&&(m==null?void 0:m())===1},
then:function(){return _.e(E3P,{contentAlignment:F,LeadingActionHeader:h,TrailingActionHeader:J,Title:N,isAboveAsset:!1})}}),a?_.e("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.e("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.e(a,null))):null,_.e(_.t,{cond:M,
then:function(){return d?_.e("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.e(d,null)):null}}),kb||TI?_.e(SqY,{footerClasses:_.SQ((ve["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,ve["yt-spec-dialog-layout__dialog-layout-footer"]=!0,ve["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(T==null?void 0:T())===2},ve["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(T==null?void 0:T())===1},ve)),
PrimaryButton:kb,SecondaryButton:TI}):null))},"Gj"),E3P=_.f(function(k){var E=_.dJ(k,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),S=E.contentAlignment,R=E.LeadingActionHeader;k=E.Title;var V=E.TrailingActionHeader,N=E.isAboveAsset,h=E.enableLeadingActionHeader;E={};return _.e("div",{class:_.SQ((E["yt-spec-dialog-layout__dialog-header-container"]=!0,E["yt-spec-dialog-layout__dialog-header"]=!0,E["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=N,E["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(S==null?void 0:S())===1&&h()},E))},_.e(_.t,{cond:function(){return h()},
then:function(){return R?_.e("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.e(R,null)):null}}),k?_.e("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.e(k,null)):null,V?_.e("div",null,_.e(V,null)):null)},"Hj"),SqY=_.f(function(k){var E=k.footerClasses;
var S=k.PrimaryButton;k=k.SecondaryButton;return _.e("div",{class:E},k?_.e(k,null):null,S?_.e(S,null):null)},"Ij");var VWa=_.f(function(k){var E=k.data;return _.e("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.e("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.e(_.cp,{data:function(){return E().avatar}},{avatarViewModel:_.dw})),_.e("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e(_.VB,{text:function(){return E().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Jj");var NKa=_.f(function(k){return _.e("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.e(_.VB,{text:function(){return k.data().inviteMessage}})),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.e(_.VB,{text:function(){return k.data().attributedAccountSectionHeaderText}})),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.e(_.cp,{data:function(){return k.data().accountAvatar}},{avatarViewModel:_.dw}),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.e(_.VB,{text:function(){return k.data().accountName}}),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.e(_.VB,{text:function(){return k.data().handle}}))),_.e(_.cp,{data:function(){return k.data().trailingButton}},{buttonViewModel:_.yB})),_.e("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.e(_.VB,{text:function(){return k.data().termsOfService}})))},"Kj");var IcR=_.f(function(k){var E=k.data;return _.e("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.e("div",{class:"ytAccessConfirmationViewModelContent"},_.e(_.cp,{data:function(){var S;return(S=E().avatar)!=null?S:E().dualAvatar}},{dualAvatarViewModel:function(S){return _.e(_.Rsa,{data:S.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(S){return _.e(_.sV,{data:S.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.e("h2",{class:"ytAccessConfirmationViewModelTitle"},_.e(_.VB,{text:function(){return E().title}})),_.e(_.VB,{text:function(){return E().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Lj");var n3W=_.f(function(k){var E=k.data;var S=void 0;k=_.n(_.IZ(function(){var a;return((a=_.W(E().content,_.lp))==null?void 0:a.defaultSelectedKey)||""}));
var R=k.next().value,V=k.next().value,N,h=function(){V("");var a;(a=S)!=null&&a.store.dispatch(_.zX({type:"RESET_COMMAND_MAP"}))};
_.b$(function(){S=new QpI;window.addEventListener("yt-popup-closed",h)});
_.vX(function(){if(S&&N!==E().formId&&(S.onInit(E()),(N=E().formId)&&R())){var a=S,T={key:R()};T.command&&a.store.dispatch(btT(N,T.command))}},"c2n8Gf");
_.bI(function(){window.removeEventListener("yt-popup-closed",h)});
var J=function(a,T,w){T.key&&w&&T.key!==R()&&(V(T.key),S&&T.command&&S.store.dispatch(btT(w,T.command)))},m=function(){if(_.W(E().content,_.lp))return!(R==null?0:R())};
return _.e("yt-dialog-view-model",{class:_.SQ("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.e(RDP,{headerWiz:function(){return _.e("span",{skip:!0},_.e(_.cp,{data:function(){return E().header}},{dialogHeaderViewModel:function(a){return _.e(GKP,{data:a.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!E().header},
contentWiz:function(){return _.e("span",{skip:!0},_.e(_.cp,{data:function(){return E().customContent?E().customContent:E().content}},{basicContentViewModel:_.VxY,
createPlaylistDialogFormViewModel:ZHG,collaborativePlaylistInviteMessageViewModel:NKa,miniAppScoreChallengeViewModel:zyx,radioButtonGroupViewModel:function(a){var T=a.data;return _.e(_.HrP,{data:T,selectedKey:R,onSelected:J,groupName:function(){return T().formId}})},
selectionListItemFormViewModel:OHA,upsellViewModel:function(a){return _.e(qrA,{data:a.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:VWa,installmentAgreementsViewModel:bHR,accessConfirmationViewModel:IcR,listViewModel:function(a){return _.e(_.Fe4,{data:a.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:kWx}))},
footerWiz:function(){return _.e("span",{skip:!0},_.e(_.cp,{data:function(){return E().footer}},{panelFooterViewModel:function(a){return _.e(_.FO,{data:a.data,
disablePadding:!0,disablePrimaryButton:m})},
formPanelFooterViewModel:C8G,formFooterViewModel:function(a){return _.e(_.T83,{data:a.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!E().footer}}))},"Nj");
n3W.idomCompat=!0;_.qi(n3W,"yt-dialog-view-model",{props:{data:_.Nq},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var i0G=_.f(function(k){var E=k.data;var S=_.ZkI(function(){return E().rendererContext});
k={};return _.e("yt-panel-header-view-model",{class:_.SQ("ytPanelHeaderViewModelHost",(k.ytPanelHeaderViewModelHostHideDivider=function(){return!!E().shouldHideDivider},k.ytPanelHeaderViewModelHostCompact=function(){return!!E().subtitle},k)),
"aria-label":function(){var R;return(R=S())==null?void 0:R.label}},_.e("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.e(_.t,{cond:function(){return E().title},
then:function(R){return _.e("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.e(_.VB,{text:R,className:"ytPanelHeaderViewModelTitle"}))}}),_.e(_.t,{cond:function(){return E().subtitle},
then:function(R){return _.e(_.VB,{text:R,className:"ytPanelHeaderViewModelSubtitle"})}})),_.e("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.e(_.cp,{data:function(){return E().trailingButtons}},{buttonViewModel:function(R){return _.e(_.yB,{data:R.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Oj");
i0G.idomCompat=!0;var hDx=_.f(function(k){var E=_.RZ(function(N){var h;if((h=k.skipContentClick)==null?0:h.call(k))return!1;k.onContentWrapperClick(N);return!0}),S,R,V;
return _.e("div",{class:_.SQ("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return k.isAnimating()?"transform: translateY("+k.currentY()+"px);transition: 0.2s":""}},(S=k.header)==null?void 0:S.call(k),_.e("div",{id:k.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.nU({"max-height":(0,_.MD)(k.maxHeightForContentWrapper)}),"on:scroll":VzT(k.onScroll),"on:touchmove":VzT(function(N){return void N.stopPropagation()})},_.e("div",{el:{onRender:k.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":E},(R=k.body)==null?void 0:R.call(k))),(V=k.footer)==null?void 0:V.call(k))},"Pj");
hDx.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var JW2=_.f(function(k){var E=_.Zk(k.leadingLabel),S=_.Zk(k.trailingLabel),R=_.Zk(k.footerButtonType),V=function(){return E()||S()||k.hasPrimaryButton()||k.hasSecondaryButton()},N={},h=_.SQ("yt-spec-bottom-sheet-layout__primary-button",(N["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return R()===0&&k.hasPrimaryButton()},N["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return R()===1&&k.hasPrimaryButton()},N["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return R()===2&&k.hasPrimaryButton()},N["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return R()===3&&k.hasPrimaryButton()},N));
N={};var J=_.SQ("yt-spec-bottom-sheet-layout__secondary-button",(N["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return R()===1&&k.hasSecondaryButton()},N["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return R()===2&&k.hasSecondaryButton()},N["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return R()===3&&k.hasPrimaryButton()},N));
return _.e(_.t,{cond:k.hasFooterOverride,then:function(){var m;return _.e(_.tj,null,(m=k.footerOverride)==null?void 0:m.call(k))},
else:function(){return _.e(_.t,{cond:V,then:function(){return _.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.e(_.t,{cond:function(){return E()||S()},
then:function(){var m={};return _.e("div",{class:_.SQ("yt-spec-bottom-sheet-layout__footer-label-wrapper",(m["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!k.hasPrimaryButton()},m))},_.e(_.t,{cond:E,
then:function(){return _.e("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},E)}}),_.e(_.t,{cond:S,
then:function(){return _.e("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},S)}}))}}),_.e(_.t,{cond:function(){return k.hasPrimaryButton()||k.hasSecondaryButton()},
then:function(){var m={};return _.e("div",{class:_.SQ("yt-spec-bottom-sheet-layout__footer-button-wrapper",(m["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.nKp,m))},_.e(_.t,{cond:function(){return k.hasSecondaryButton()&&R()!==0},
then:function(){var a;return _.e("div",{class:J},(a=k.secondaryButton)==null?void 0:a.call(k))}}),_.e(_.t,{cond:k.hasPrimaryButton,
then:function(){var a;return _.e("div",{class:h},(a=k.primaryButton)==null?void 0:a.call(k))}}))}}))}})}})},"Qj");
JW2.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var cWP=_.f(function(k){var E=_.Zk(k.title),S=_.Zk(k.subtitle);return _.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:k.headerId,"on:touchstart":_.RZ(function(R){var V;(V=k.touchstart)==null||V.call(k,R);return!1}),
"on:touchmove":_.RZ(function(R){var V;(V=k.touchmove)==null||V.call(k,R);return!1}),
"on:touchend":_.RZ(function(R){var V;(V=k.touchend)==null||V.call(k,R);return!1})},_.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.e(_.t,{cond:k.hasHeaderOverride,
then:function(){var R;return _.e(_.tj,null,(R=k.headerOverride)==null?void 0:R.call(k))},
else:function(){var R={};return _.e("div",{class:_.SQ((R["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,R["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=E,R))},_.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.e(_.t,{cond:E,then:function(){return _.e(_.tj,null,_.e("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},E),_.e(_.t,{cond:S,then:function(){return _.e("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
S)}}))}})),_.e(_.t,{cond:function(){return E()&&k.hasActionHeader()},
then:function(){var V;return _.e("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(V=k.actionHeader)==null?void 0:V.call(k))}}))}}))},"Rj");
cWP.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.f(function(k){function E(z){if(!x&&typeof MutationObserver!=="undefined"){var kb={childList:!0};"MutationObserver"in window&&(x=new MutationObserver(S.bind(void 0,z)),x.observe(z,kb))}}
function S(z){typeof x!=="undefined"&&(L["content-wrapper"]===void 0&&(L["content-wrapper"]=z.children[0].clientHeight),B(L["content-wrapper"]),P()>F()||K(P()))}
function R(){w(window.innerHeight);P()>F()||K(P());q.isFullScreen[0]()&&P()>F()?M().dispatch("Snap To Full Screen",{maxHeight:r()}):M().dispatch("Snap To Neutral Position",{maxHeight:F()})}
function V(z){document.body.style.overscrollBehavior="none";z.preventDefault();M().dispatch("Touch Start",{event:z})}
function N(z){z.preventDefault();M().dispatch("Touch Move",{event:z,contentScrollable:P()>F(),fullContentWrapperHeight:r(),contentWrapperHeight:F(),contentHeightMap:L,contentWrapperId:"content-wrapper",header:IsU(k),footer:IsU(k)})}
function h(){document.body.style.overscrollBehavior="";q.isFullScreen[0]()?q.currentY[0]()>=60?M().dispatch("Snap To Neutral Position",{maxHeight:F()}):M().dispatch("Snap To Full Screen",{maxHeight:r()}):q.currentY[0]()>=60?J():q.currentY[0]()<=-60&&P()>F()?M().dispatch("Snap To Full Screen",{maxHeight:r()}):M().dispatch("Snap To Neutral Position",{maxHeight:F()})}
function J(){M().dispatch("Close Sheet",{clientHeight:T(),maxHeight:0});setTimeout(function(){NFI()},250)}
var m=_.n(_.yg(window.innerHeight,void 0,"Q6Nekc")),a=m.next().value;m=m.next().value;var T=a,w=m;m=_.n(_.yg(0,void 0,"vjnlmb"));a=m.next().value;m=m.next().value;var P=a,B=m;m=_.n(_.IZ(function(){var z=IsU(k);return.6*T()-E7t(z)-SUt(z)}));
a=m.next().value;m=m.next().value;var F=a,K=m,r=function(){var z=IsU(k);return T()-E7t(z)-SUt(z)-24-24},x=null,L={},q={initialY:_.yg(0,void 0,"B0aY2c"),
currentY:_.yg(0,void 0,"nLPMcf"),isAnimating:_.yg(!1,void 0,"lXnnZ"),isFullScreen:_.yg(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.IZ(F)},M=function(){var z=null;return function(){if(!z){var kb={initialY:q.initialY[0](),currentY:q.currentY[0](),isAnimating:q.isAnimating[0](),isFullScreen:q.isFullScreen[0](),maxHeightForContentWrapper:q.maxHeightForContentWrapper[0]()};z=RQI(kb)}return z}}();
_.b$(function(){window.addEventListener("resize",R);M().subscribe(function(z){q.initialY[1](z.initialY);q.currentY[1](z.currentY);q.isAnimating[1](z.isAnimating);q.isFullScreen[1](z.isFullScreen);q.maxHeightForContentWrapper[1](z.maxHeightForContentWrapper)})});
_.bI(function(){window.removeEventListener("resize",R);x&&(x.disconnect(),x=null)});
var d=_.SQ({"bottom-sheet-content-without-icon":function(){var z;return!((z=k.shouldShowIcons)==null?0:z.call(k))}});
return _.e("bottom-sheet-layout",null,_.e(hDx,{contentWrapperId:"content-wrapper",isAnimating:function(){return q.isAnimating[0]()},
currentY:function(){return q.currentY[0]()},
maxHeightForContentWrapper:function(){return q.maxHeightForContentWrapper[0]()},
shouldShowIcons:k.shouldShowIcons,skipContentClick:k.skipContentClick,onScroll:function(){var z=document.getElementById("header-wrapper"),kb=document.getElementById("content-wrapper");if(z&&kb){var TI={};TI=(TI["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,TI["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,TI);z.className=kb.scrollTop>1?_.wd(TI):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:NFI,contentWrapperEl:function(z){E(z);requestAnimationFrame(function(){S(z)})},
header:function(){return _.e(cWP,{touchstart:V,touchmove:N,touchend:h,title:k.headerTitle,subtitle:k.headerSubtitle,headerId:"header-wrapper",headerOverride:k.headerFn,hasHeaderOverride:k.hasHeaderFn,actionHeader:k.headerActionHeader,hasActionHeader:k.hasHeaderActionHeader})},
footer:function(){return _.e(JW2,{footerButtonType:k.footerButtonType,leadingLabel:k.footerLeadingLabel,trailingLabel:k.footerTrailingLabel,primaryButton:k.footerPrimaryButton,hasPrimaryButton:k.hasFooterPrimaryButton,secondaryButton:k.footerSecondaryButton,hasSecondaryButton:k.hasFooterSecondaryButton,footerOverride:k.footerFn,hasFooterOverride:k.hasFooterFn})},
body:function(){return _.e(_.t,{cond:k.hasContentFn,then:function(){var z;return _.e("div",{class:d},(z=k.contentFn)==null?void 0:z.call(k))}})}}))},"Sj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var mS2=_.f(function(k){var E=_.en().resolve(_.f6);return _.e("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.RZ(function(){return void E.closeSheet()})},_.e(_.t,{cond:function(){return!!k.header},
then:function(){return _.e("div",{class:"ytContextualSheetLayoutHeaderContainer"},k.header())}}),_.e(_.t,{cond:function(){return!!k.content},
then:function(){return _.e("div",{class:"ytContextualSheetLayoutContentContainer"},k.content())}}),_.e(_.t,{cond:function(){return!!k.footer},
then:function(){return _.e("div",{class:"ytContextualSheetLayoutFooterContainer"},k.footer())}}))},"Tj");
mS2.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var eDG=_.f(function(k){k=k.data;var E=_.VH("yt-sheet-view-model",function(R){if(_.Y("web_focus_first_element_sheet")||!_.Y("sheet_focus_first_killswitch"))return R.addEventListener("focus",function(){RUR(R)}),function(){R.removeEventListener("focus",function(){RUR(R)})}}),S={};
return _.e("yt-sheet-view-model",{"on:mousedown":_.RZ(function(R){_.Y("sheet_focus_first_killswitch")||R.currentTarget!==R.target&&R.preventDefault()}),
"on:focus":_.RZ(function(){_.Y("sheet_focus_first_killswitch")||RUR(E.value)}),
class:_.SQ("ytSheetViewModelHost",(S.ytSheetViewModelContextual=!0,S.ytSheetViewModelDisableBackdropFilter=_.Y("web_disable_backdrop_filter"),S)),el:E,tabindex:-1},_.e(_.t,{cond:k,then:function(R){return _.e(mS2,{header:function(){return _.e(_.cp,{data:function(){return R().header}},{panelHeaderViewModel:i0G})},
content:function(){return _.e(_.cp,{data:function(){return R().content}},{listViewModel:function(V){return _.e(_.Fe4,{data:V.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:qrA,miniAppScoreChallengeViewModel:zyx})},
footer:function(){return _.e(_.cp,{data:function(){return R().footer}},{panelFooterViewModel:_.FO})}})}}))},"Uj");
eDG.idomCompat=!0;_.qi(eDG,"yt-sheet-view-model",{props:{data:_.Nq}});var tWA=_.f(function(k){var E=function(){var S;return(S=k.data().enableDebuggingFeatures)!=null?S:!1};
return _.e("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.e(_.jw,{each:function(){var S;return(S=k.data().stickers)!=null?S:[]}},function(S){return _.e(act,{data:function(){return S},
debugMode:E})}))},"Vj"),act=_.f(function(k){var E=_.dJ(k,{debugMode:!1}).debugMode,S=_.Zk(function(){var m;
return(m=k.data().region)==null?void 0:m.w},0),R=_.Zk(function(){var m;
return(m=k.data().region)==null?void 0:m.h},0),V=_.Zk(function(){var m;
return(m=k.data().region)==null?void 0:m.x},0),N=_.Zk(function(){var m;
return(m=k.data().region)==null?void 0:m.y},0),h=_.RZ(function(){var m=k.data().onTap;
m&&_.AV(m)}),J={};
return _.e("div",{class:_.SQ("ytStoriesStickerLayerViewModelSticker",(J.ytStoriesStickerLayerViewModelDebugMode=E,J)),style:_.nU({width:function(){return 100*S()+"%"},
height:function(){return 100*R()+"%"},
left:function(){return 100*V()+"%"},
top:function(){return 100*N()+"%"},
"flex-direction":function(){return n7T(k.data().flexDirection)},
"justify-content":function(){return iLa(k.data().justifyContent)},
"align-items":function(){return hQa(k.data().alignItems)}}),
"on:click":h},_.e(_.cp,{data:function(){return k.data().button||k.data().toggleButton}},{buttonViewModel:function(m){return _.e(_.yB,{data:m.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(m){return _.e(_.bL,{data:m.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Wj");var w6P=_.f(function(k){var E=function(){return k.data()},S={},R=_.n(_.yg(!1,void 0,"Adcqrf")),V=R.next().value,N=R.next().value,h=_.Zk(function(){return E().backgroundColor},0);
R=_.Zk(function(){return E().actionButtons},[]);
var J=_.Zk(function(){return E().stickerLayer},{}),m=function(){var T,w;
return{animationRef:S,animationConfig:{autoplay:!1,loop:!1,path:(w=(T=E().foregroundAnimation)==null?void 0:T.url)!=null?w:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){N(!0)},
complete:function(){k.navigateToNextItemOnLottieComplete()}}}},a=function(){var T,w,P,B,F,K,r,x;
return{animationConfig:{autoplay:(K=(T=E().backgroundAnimation)==null?void 0:(w=T.settings)==null?void 0:w.autoplay)!=null?K:!1,loop:(r=(P=E().backgroundAnimation)==null?void 0:(B=P.settings)==null?void 0:B.loop)!=null?r:!1,path:(x=(F=E().backgroundAnimation)==null?void 0:F.url)!=null?x:"",name:"stories_item_background_animation"}}};
_.vX(function(){if(k.isVisible()&&V()){var T;(T=S.lottieEl)==null||T.play();k.animationRef()&&(k.animationRef().lottieEl=S.lottieEl)}else{var w;(w=S.lottieEl)==null||w.stop()}},"yCE6kf");
return _.e("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.nU({"background-color":function(){return _.Kc(h())+";"}})},_.e("div",{class:"ytStoriesItemViewModelAssetContent"},_.e(_.t,{cond:function(){return!!E().backgroundAnimation},
then:function(){return _.e(_.KG,{data:a,animationName:function(){return a().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.e(_.t,{cond:function(){return!!E().backgroundImage},
then:function(){return _.e(_.vM,{data:function(){return E().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.e(_.t,{cond:function(){return!!E().foregroundAnimation},
then:function(){return _.e(_.KG,{data:m,animationName:function(){return m().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.e(_.t,{cond:function(){return!!E().foregroundImage},
then:function(){return _.e(_.vM,{data:function(){return E().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.e("div",{class:"ytStoriesItemViewModelTopShadow"}),_.e(_.cp,{data:function(){return J()}},{storiesStickerLayerViewModel:tWA})),_.e("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.nU({"background-color":function(){return _.Kc(h())}})},_.e("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.e(_.jw,{each:R},function(T){return _.e(TKA,{data:function(){return T},
pauseAutoNavigation:k.pauseAutoNavigation})}))))},"Yj"),Ppx={style:"overlay",
type:"outline"},TKA=_.f(function(k){var E={};return _.e("div",{class:_.SQ("ytStoriesItemViewModelActionButton",(E.ytStoriesItemViewModelStretchedActionButton=function(){return k.data().size==="STORIES_BUTTON_SIZE_STRETCH"},E)),
"on:click":_.RZ(k.pauseAutoNavigation)},_.e(_.cp,{data:function(){return k.data().button}},{buttonViewModel:function(S){return _.e(_.yB,{data:S.data,
buttonOverrides:Ppx})}}))},"Zj");var BKt={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.qi(_.f(function(k){var E=function(){var th;return(th=k.data().startIndex)!=null?th:0},S=_.n(_.IZ(E)),R=S.next().value,V=S.next().value;
S=_.n(_.yg(!1,void 0,"hu8VSd"));var N=S.next().value,h=S.next().value,J=function(){var th;return(th=k.data().storyItems)!=null?th:[]},m={},a=_.VH("yt-stories-viewer-view-model"),T=function(){return k.data().dismissButton},w=function(){var th;
return _.Uk((th=_.W(T(),_.qz))==null?void 0:th.onTap)},P=_.VH("div"),B,F,K=!1,r=function(){var th;
(th=B)==null||th.cancel();B=x(R()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});B.onfinish=function(){var He=_.W(J()[R()],Pix),ve,Xm;He!=null&&He.foregroundAnimation&&((He==null?0:(ve=He.foregroundAnimation)==null?0:ve.url)||(He==null?0:(Xm=He.foregroundAnimation)==null?0:Xm.payload))||(R()!==J().length-1?(V(R()+1),r()):w()&&_.HM(w()))}},x=function(th){return P.value.children[th].children[0]},L=function(){for(var th=0;th<R();th++)x(th).style.transform=
"scaleX(1)"},q=function(){K||(N()?h(!1):(R()===J().length-1&&w()&&_.HM(w()),x(R()).style.transform="scaleX(1)",R()!==J().length-1&&(V(R()+1),r())))},M=function(){K||(N()?h(!1):(x(R()).style.transform="scaleX(0)",R()!==0&&V(R()-1),r()))},d=function(){h(!0)},z=function(){x(R()).style.transform="scaleX(1)";
R()!==J().length-1?(V(R()+1),r()):w()&&_.HM(w())};
S=function(){K=!1;F=setTimeout(function(){h(!0);K=!0},300)};
var kb=function(){clearTimeout(F);K&&N()&&h(!1)};
_.vX(function(){if(N()){var th;(th=B)==null||th.pause();var He;(He=m.lottieEl)==null||He.pause()}else{var ve;(ve=B)==null||ve.play();var Xm;(Xm=m.lottieEl)==null||Xm.play()}},"iO2i3d");
_.vX(function(){L();R()===E()&&r()},"lE01H");
var TI=function(th){th.key==="ArrowLeft"?M():th.key==="ArrowRight"&&q()},a1=function(th){if(th.target===a.value){(th=w())&&_.HM(th);
clearTimeout(F);var He;(He=B)==null||He.cancel();window.removeEventListener("keydown",TI);window.removeEventListener("yt-popup-closed",a1)}},Ah=function(th){th.target===a.value&&(window.addEventListener("keydown",TI),window.addEventListener("yt-popup-closed",a1))};
_.b$(function(){L();r();window.addEventListener("yt-popup-opened",Ah)});
return _.e("yt-stories-viewer-view-model",{el:a,class:_.SQ("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.e("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.e("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.RZ(M),"on:mousedown":_.RZ(S),"on:mouseup":_.RZ(kb),"on:mouseleave":_.RZ(kb)}),_.e("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.RZ(q),"on:mousedown":_.RZ(S),"on:mouseup":_.RZ(kb),"on:mouseleave":_.RZ(kb)})),
_.e("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.e(_.cp,{data:J},{storiesItemViewModel:function(th,He){var ve=th.data;return _.e(_.t,{cond:function(){return Math.abs(He()-R())<=1},
then:function(){var Xm={};return _.e("div",{class:_.SQ("ytStoriesViewerViewModelStoryItem",(Xm.ytStoriesViewerViewModelActiveStoryItem=function(){return He()===R()},Xm))},_.e(w6P,{data:ve,
pauseAutoNavigation:d,navigateToNextItemOnLottieComplete:z,isVisible:function(){return He()===R()},
animationRef:m}))}})}})),_.e("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:P},_.e(_.jw,{each:J},function(){return _.e("div",{class:"ytStoriesViewerViewModelProgressBar"},_.e("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.e("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.e(_.vM,{data:BKt,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.e("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.e(_.cp,{data:T},{buttonViewModel:_.yB}))))},"bk"),"yt-stories-viewer-view-model",{props:{data:_.Nq}});_.qi(_.f(function(k){var E=k.data;var S=_.VH("yt-gen-ai-feedback-form-view-model"),R=[];return _.e("yt-gen-ai-feedback-form-view-model",{el:S,class:"ytGenAiFeedbackFormViewModelHost"},_.e(_.VB,{text:function(){return E().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.e("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.e(_.cp,{data:function(){return E().feedbackChips}},{toggleButtonViewModel:function(V){var N=V.data;
return _.e(_.bL,{data:N,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(h){var J=N();J=_.W(J,_.QK);J=_.W(J==null?void 0:J.defaultButtonViewModel,_.qz).trackingParams;h?R.push(J):(h=R.indexOf(J),h>-1&&R.splice(h,1))}})}})),_.e(_.VB,{text:function(){return E().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.e("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.e(_.cp,{data:function(){return E().submitButton}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){J2A(S.value,R,E().uniqueId)}})}}),_.e(_.cp,{data:function(){return E().moreFeedbackButton}},{buttonViewModel:function(V){return _.e(_.yB,{data:V.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ck"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Nq},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var DU=function(){return _.p.apply(this,arguments)||this};
_.y(DU,_.p);DU.prototype.created=function(){ZTI(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(FAA);var k=_.en().resolve(_.OuU);k&&(k.container=this.ytPopupContainerBehavior);if(k=_.en().resolve(_.f6))k.container=this.ytPopupContainerBehavior;if(k=_.en().resolve(_.v3)){var E=this.ytPopupContainerBehavior;k.containerWasInjected?_.dg(Error("oj")):k.container=E}};
DU.prototype.ensurePopupBelowPlayer=function(k,E){var S=_.en().resolve(_.mz(_.ZD));if(!S||!S.isOnWatch()||!_.s3())return!1;S=S.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.iv().height>S+this.getPopupHeight(k,E)?(k.style.top="auto",k.style.bottom="0px"):(k.style.top=S+"px",k.style.bottom="auto");return!0};
DU.prototype.getPopupHeight=function(k,E){E&&(k.cachedPopupHeight=0);if(!k.cachedPopupHeight){E=0;var S=k.clientHeight,R=window.getComputedStyle(k);E+=parseInt(R.marginTop,10);E+=parseInt(R.marginBottom,10);k.cachedPopupHeight=S+E}return k.cachedPopupHeight};
DU.prototype.getElement=function(k){return document.createElement(k)};
_.Z([_.g(V53.YtPopupContainerBehavior),_.l("design:type",Object)],DU.prototype,"ytPopupContainerBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],DU.prototype,"ytComponentBehavior",void 0);_.Z([_.D({disableElementRegistration:!0,is:"ytd-popup-container"})],DU);
_.b(DU,"ytd-popup-container",function(){if(zqA!==void 0)return zqA;var k=document.createElement("template");_.X(k,"\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");k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);return zqA=k},{mode:1});var YqP;var WaA={};WaA.YtLogYpcFlowCommandsBehavior=[_.H5.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(k){_.W(k,jTT)&&(k=_.W(k,jTT))&&(k.serializedTransactionFlowLoggingParams?_.gpj(k.serializedTransactionFlowLoggingParams):k.serializedYpcCancelFlowLoggingParams?(k=k.serializedYpcCancelFlowLoggingParams)&&_.ma("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",k):k.serializedYpcResumeFlowLoggingParams?(k=k.serializedYpcResumeFlowLoggingParams)&&_.ma("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",k):k.serializedYpcPauseFlowLoggingParams?(k=k.serializedYpcPauseFlowLoggingParams)&&
_.ma("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",k):k.serializedYpcRefundFlowLoggingParams?(k=k.serializedYpcRefundFlowLoggingParams)&&ud0("YPC_EVENT_TYPE_START",k):k.serializedYpcDeactivateFlowLoggingParams?(k=k.serializedYpcDeactivateFlowLoggingParams)&&_.ma("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",k):k.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(k=k.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.ma("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",k))},
handleLogYpcFlowDismiss_:function(k){_.W(k,L1G)&&(k=_.W(k,L1G),k.serializedTransactionFlowLoggingParams?_.Uk1(k.serializedTransactionFlowLoggingParams):k.serializedYpcCancelFlowLoggingParams?(k=k.serializedYpcCancelFlowLoggingParams)&&_.ma("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",k):k.serializedYpcResumeFlowLoggingParams?(k=k.serializedYpcResumeFlowLoggingParams)&&_.ma("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",k):k.serializedYpcPauseFlowLoggingParams?(k=
k.serializedYpcPauseFlowLoggingParams)&&_.ma("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",k):k.serializedYpcRefundFlowLoggingParams&&(k=k.serializedYpcRefundFlowLoggingParams)&&ud0("YPC_EVENT_TYPE_CANCEL",k))}}];var FaY={};FaY.YtCancelRecurrenceBehavior=[_.OE.YtComponentBehavior,_.GKj,{attached:function(){var k=this;Xs2(this,function(E,S){return k.ypcCancelRecurrenceHandler(E,S)})},
ypcCancelRecurrenceHandler:function(k,E){var S=this;if(!E||!E.ypcCancelRecurrenceEndpoint)return!1;if(!E.ypcCancelRecurrenceEndpoint.params)return _.O4(Error("Ol")),!0;_.Xw(this.hostElement);var R=_.rb.instance,V=_.en().resolve(_.mz(_.yS));R&&_.u_(R,E)?_.xv(R,E).then(function(N){S.ypcCancelRecurrenceSuccess_(k,E,{data:N})},function(N){S.ypcCancelRecurrenceFailure_(k,E,N)}).thenCatch(function(){_.O4(Error("Pl"))}):V?V.requestDataForServiceEndpoint(E).then(function(N){S.ypcCancelRecurrenceSuccess_(k,
E,N)},function(N){S.ypcCancelRecurrenceFailure_(k,E,N)}).thenCatch(function(){_.O4(Error("Pl"))}):_.O4(Error("Ql"));
return!0},
ypcCancelRecurrenceSuccess_:function(k,E,S){_.gE(this.hostElement);S.data||(S={data:S});S.data&&S.data.actions&&_.Ot(this.hostElement,S.data.actions,this.hostElement);S.data.messageRenderer?LRW(E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(E=E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.ma("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",E);_.Me(k,"yt-service-request-completed",S)},
ypcCancelRecurrenceFailure_:function(k,E,S){_.gE(this.hostElement);LRW(E.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Me(k,"yt-service-request-error",{error:S,params:[k,E]})}}];var yWY=function(k,E){_.Sh.call(this,E)};
_.y(yWY,kkA);var o3G={};o3G.YtCompleteTransactionBehavior=[_.OE.YtComponentBehavior,_.GKj,{attached:function(){var k=this;Xs2(this,function(E,S){return k.ypcCompleteTransactionHandler(E,S)})},
completeTransaction:function(k,E){var S=this;E={payments_payload:window.btoa(E.integratorData),buybucket_params:k.data.buybucketParams,offer_params:k.data.offerParams};var R=_.en().resolve(_.yS),V=k.data.completeTransactionEndpoint,N=this.get("ypcCompleteTransactionEndpoint.actions",V);N&&_.Ot(this.hostElement,N,this.hostElement);return(N=_.rb.instance)&&_.u_(N,V)?_.xv(N,V,E).then(function(h){return!h||(h==null?0:h.error)?(h=S.get("data.serializedTransactionFlowLoggingParams",k),_.BM(new kS("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
h))):{data:h}}).then(function(h){return S.handleCompleteTransactionSuccess_(h,k)},function(){return S.handleCompleteTransactionFailure_(k)}):R.requestDataForServiceEndpoint(V,E).then(function(h){return S.handleCompleteTransactionSuccess_(h,k)},function(){return S.handleCompleteTransactionFailure_(k)})},
handleCompleteTransactionSuccess_:function(k,E){k.data||(k={data:k});if(k.data.messageRenderer)return _.BM(new yWY(k.data.messageRenderer));if(k.data.trackingParams){var S=_.Fe(),R=_.Wi();S&&R&&_.rq(S,R,_.tV(k.data.trackingParams))}E=this.get("data.serializedTransactionFlowLoggingParams",E);xiY(E);return _.GR(k)},
handleCompleteTransactionFailure_:function(k){k=this.get("data.serializedTransactionFlowLoggingParams",k);_.$l("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",k);return _.BM(new kS("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",k))},
ypcCompleteTransactionHandler:function(k,E){var S=this;if(!E.ypcCompleteTransactionEndpoint)return!1;if(!E.ypcCompleteTransactionEndpoint.transactionParams)return _.O4(Error("Rl")),!0;E.ypcCompleteTransactionEndpoint&&E.ypcCompleteTransactionEndpoint.gtmData&&_.fM(E.ypcCompleteTransactionEndpoint.gtmData);var R=_.en().resolve(_.mz(_.yS));if(R){_.Xw(this.hostElement);var V=_.rb.instance;V&&_.u_(V,E)?_.xv(V,E).then(function(N){return!N||(N==null?0:N.error)?(N=S.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
E),_.BM(new kS("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",N))):{data:N}}).then(function(N){_.Me(k,"yt-service-request-completed");
S.ypcCompleteTransactionSuccess_(E,N)},function(){return S.ypcCompleteTransactionFailure_(E)}):R.requestDataForServiceEndpoint(E).then(function(N){_.Me(k,"yt-service-request-completed");
S.ypcCompleteTransactionSuccess_(E,N)},function(){return S.ypcCompleteTransactionFailure_(E)})}return!0},
ypcCompleteTransactionSuccess_:function(k,E){_.gE(this.hostElement);E.data||(E={data:E});_.qe(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);E.data.messageRenderer||E.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(k):(_.fM('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",k));E.data.actions&&(k=SBW(E.data.actions),E=R_Y(E.data.actions),k.length&&_.Qw(this.hostElement,
k),E.length&&_.Ot(this.hostElement,E,this.hostElement))},
ypcCompleteTransactionFailure_:function(k){_.gE(this.hostElement);_.qe(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",k,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(k,E,S){if(E=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",E))E={serializedTransactionFlowLoggingParams:E},S&&(E.errorType=S),_.f2(k,E),_.vv()}}];var X6Y={};X6Y.YtEndpointHandlerWithYpcBehavior=[_.GKj,_.H5.YtActionHandlerBehavior,[{openWalletDialog:function(k,E,S,R,V,N,h){var J=this,m=_.LU();E=E.replace(/-/g,"+").replace(/_/g,"/");var a=_.nz().get("hl");_.xvh(_.$z(_.fc),E,m.resolve,V,function(T){N&&N();m.reject(T)},a,function(T){return J.onServerBackendAnalyticEvent_(k,S,T)},this.onDialogClose_.bind(this),R,h);
return m.promise},
openFixFlowDialog:function(k,E,S,R){k=k.replace(/-/g,"+").replace(/_/g,"/");_.$z(_.fc).openFixFlowDialog(k,E,S,R)},
onDialogClose_:function(){_.qe(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(k,E,S){_.Me(k,"yt-commerce-action-init-done");E&&_.Qw(this.hostElement,[E,{backend_analytics:S}])}}],
_.gA.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(k,E){k=this.get("data.nativeFlowEndpoint",E);E=this.get("data.fallbackEndpoint",E);k?_.Qw(this.hostElement,[k]):E&&_.Me(this.hostElement,"yt-navigate",{endpoint:E})}}],
FaY.YtCancelRecurrenceBehavior,o3G.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 k=this;Xs2(this,function(E,S,R){return k.handleYPCEndpoint(E,S,R)});
this.ypcRegisterActionMapJobId_=_.uM(_.ZJ,function(){k.registerActionMap(k.buyFlowActionMap_)})},
detached:function(){var k=this;_.ZJ.cancelJob(this.ypcRegisterActionMapJobId_);_.uM(_.ZJ,function(){k.unregisterActionMap(k.buyFlowActionMap_)})},
handleYPCEndpoint:function(k,E,S){var R=E.ypcGetCartEndpoint;if(R){_.yi("commerce_transaction");var V=R.gtmId;V&&_.$N(V);(R=R.gtmData)&&_.fM(R)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",E)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(k,E),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",E)!=null?(this.handleYPCFixInstrumentEndpoint_(k,E),!0):E.ypcPauseSubscriptionCommand?(BFP(this.hostElement,k,E,S),
!0):E.ypcResumeSubscriptionCommand?(FVI(this.hostElement,k,E),!0):E.getPaymentInstrumentsParamsCommand?(TFU(this.hostElement,k,E),!0):E.ypcHandleTransactionEndpoint?(as0(this.hostElement,k,E,S),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(k,E){var S=this;_.o_("ttcr",void 0,"commerce_transaction");E=E.ypcGetCartEndpoint;var R=E.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,V=R.encryptedPurchaseParams,N=R.serializedTransactionFlowLoggingParams,h=R.serializedPaymentsClientParams,J=this.createGetCartResponseFromParams_(R,E.offerParams,N);this.changeButtonState(k,!0);_.Ws(this.openWalletDialog(k,V,R.ypcLogWalletAnalyticDataEndpoint,N,function(){S.changeButtonState(k,!1)},function(){S.changeButtonState(k,
!1)},h).then(function(m){return S.handleBuyFlowCompleteCallback_(k,J,m)},function(){return S.handleOnLoadError(J)}).then(function(m){return void S.handlePostPurchaseSuccess_(k,J,m)},function(m){return void S.handlePostPurchaseError_(m)}),function(){S.changeButtonState(k,!1);
k instanceof Element&&_.Me(k,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(k,E,S){var R=k.completeTransactionEndpoint,V=k.handleTransactionEndpoint;E={data:{offerParams:window.btoa(E),serializedTransactionFlowLoggingParams:S}};V?E.data.handleTransactionEndpoint=V:E.data.completeTransactionEndpoint=R;k.onCartDismissCommand&&(E.data.onCartDismissCommand=k.onCartDismissCommand);return E},
onGetCartServiceRequestCompleted_:function(k,E){var S=this,R=k.target;if(E&&E.data&&E.data.messageRenderer)_.gE(this.hostElement),this.handleMessageRenderer_(E.data.messageRenderer),this.changeButtonState(R,!1);else{var V=this.get("data.encryptedPurchaseParams",E),N=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",E),h=this.get("data.ypcLogWalletAnalyticDataEndpoint",E),J=this.get("data.serializedPaymentsClientParams",E),m=this.getLoggingParams_(E);if(m||V||N)k.stopPropagation(),_.o_("ttcr",
void 0,"commerce_transaction"),V||_.gE(this.hostElement),this.changeButtonState(R,!1),N?_.qe(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Mg("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:N}}},this]):V&&(this.changeButtonState(R,!0),k=null,k=this.openWalletDialog(R,V,h,m,function(){_.gE(S.hostElement);S.changeButtonState(R,!1)},function(){_.gE(S.hostElement);
S.changeButtonState(R,!1)},J),_.Ws(k.then(function(a){return S.handleBuyFlowCompleteCallback_(R,E,a)},function(){return S.handleOnLoadError(E)}).then(function(a){return S.handlePostPurchaseSuccess_(R,E,a)},function(a){return S.handlePostPurchaseError_(a)}),function(){S.changeButtonState(R,!1);
_.Me(R,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(k,E){E&&E.endpoint&&E.endpoint.ypcGetCartEndpoint&&!E.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",E.endpoint.ypcGetCartEndpoint)&&_.Ot(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",E.endpoint.ypcGetCartEndpoint)],k.target),_.Xw(this.hostElement),this.changeButtonState(k.target,!0))},
onServiceRequestError_:function(k,E){if(E&&E.params&&E.params.length){E=_.n(E.params);for(var S=E.next();!S.done;S=E.next())if((S=S.value)&&S.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",S.ypcGetCartEndpoint)&&_.Ot(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",S.ypcGetCartEndpoint)],k.target);_.gE(this.hostElement);this.changeButtonState(k.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(k,E,S){var R=S.integratorData;return R==null||R===""||S.error!=null?(R=this.getLoggingParams_(E),String(S.error)==="-1"?(E.data.onCartDismissCommand&&_.Ot(this.hostElement,[E.data.onCartDismissCommand],k),_.BM(new kS("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R,!0))):_.BM(new kS("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",R))):E.data.handleTransactionEndpoint?tzP(this.hostElement,E.data.handleTransactionEndpoint,{payments_payload:R,funds_guarantee_callback_client_data:S.integratorClientCallbackData}):
this.completeTransaction(E,S)},
handlePostPurchaseSuccess_:function(k,E,S){E=S.data;var R=!1,V,N;if(E&&((V=E.command)==null?0:(N=V.commandExecutorCommand)==null?0:N.commands)){var h,J;V=(h=E.command)==null?void 0:(J=h.commandExecutorCommand)==null?void 0:J.commands;for(h=0;h<V.length;h++)if(_.W(V[h],_.jxd)){R=!0;break}}R||(E&&E.gtmDatas&&E.gtmDatas.length?_.fM(E.gtmDatas[0]):_.fM('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));S.data&&S.data.actions&&(E=SBW(S.data.actions),S=R_Y(S.data.actions),E.length&&
_.Qw(this.hostElement,E),S.length&&_.Ot(this.hostElement,S,k))},
handlePostPurchaseError_:function(k){k&&k.payload&&k.payload.isUserDismiss||_.bM(Error("Tl"))},
handleOnLoadError:function(k){k=this.getLoggingParams_(k);return _.BM(new kS("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",k))},
getLoggingParams_:function(k){return this.get("data.serializedTransactionFlowLoggingParams",k)},
handleMessageRenderer_:function(k){var E=_.d0(k,"renderer"),S=_.Mg("openPopupConfig");E==="confirmDialogRenderer"&&S&&_.qe(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:S.popupTypeMap[E],popup:k}},this])},
handleYPCFixInstrumentEndpoint_:function(k,E){var S=this,R=E.ypcFixInstrumentEndpoint;E=R.encryptedFixInstrumentParameters;this.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(k,!0);this.openFixFlowDialog(E,function(V,N){S.onFixFlowCompleteCallback_(R,V,N)},function(){return S.changeButtonState(k,!1)},function(){S.changeButtonState(k,!1);
S.logFixFopEvent_(R,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(k,E,S){var R=_.CV("payments.business.integration.scenario.FixInstrument");if(E==R.IntegratorCallbackType.ON_COMPLETE){E="FIX_FOP_EVENT_TYPE_CANCEL";var V=null;S.error!=null?S.error!=R.OnCompleteCallbackError.USER_CANCELLED&&(_.Ot(this.hostElement,[k.errorAction],this.hostElement),E="FIX_FOP_EVENT_TYPE_FAILURE",V="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Ot(this.hostElement,[k.successAction],this.hostElement),E="FIX_FOP_EVENT_TYPE_SUCCESS");_.Ot(this.hostElement,[k.onFinishAction],
this.hostElement);this.logFixFopEvent_(k,E,V)}},
logFixFopEvent_:function(k,E,S){(k=k.serializedFixFopLoggingParams)?(E={eventType:E,serializedFixFopLoggingParams:k},S!=null&&(E.errorType=S),_.f2("fixFopFlow",E),_.vv()):_.bM(Error("Ul"))},
changeButtonState:function(k,E){_.Y("enable_ypc_spinners")&&k&&(k.is==="yt-button-renderer"||k.is==="ytd-button-renderer")&&(k.disabled=E)}}];var g3I=function(k){this.JSC$32645_clientRoot=k;this.feedbackCollectorActionMap={"yt-help-dialog-requested":o73,"yt-feedback-dialog-requested":y2G,"yt-signal-action-help":XS3,"yt-signal-action-send-feedback":g7a,"yt-send-feedback-action":HLA,"yt-user-feedback-endpoint":KVP};_.E2(_.GU.getInstance(),this.feedbackCollectorActionMap,this.JSC$32645_clientRoot)},US3;var H0R=function(k){this.JSC$32650_clientRoot=k;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":pST.bind(null,this.JSC$32650_clientRoot),"yt-signal-action-delete-all-downloads":r2a,"yt-signal-action-delete-download":u9I,"yt-signal-action-delete-playlist-download":LV3,"yt-signal-action-install-pwa":bLT,"yt-signal-action-refresh-downloads":fsA,"yt-offline-video-endpoint":dx2,"yt-offline-playlist-endpoint":lsP,"yt-update-local-app-setting-command":qUa,"yt-offline-orchestration-action-command":Q4U,
"yt-signal-action-undo-delete-download":DxT,"yt-local-watch-history-command":CTA};_.E2(_.GU.getInstance(),this.downloadManagerActionMap,this.JSC$32650_clientRoot);_.Tl.instance=new _.Tl},KaW;var $a=function(){var k=_.p.apply(this,arguments)||this;k.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_"};k.remoteApi_=null;return k};
_.y($a,_.p);_.I=$a.prototype;
_.I.ready=function(){_.Y("polymer_enable_mdx")&&(xhG({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.Y("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.Y("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.Y("enable_cast_short_lived_lounge_token")}),_.TU("yt-remote-connection-change",this.handleConnectionChange_,this),_.TU("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=Z9T())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.I.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.I.handleConnectionChange_=function(k){(this.mdxConnected=k)?(k=Dha(),!k&&WOY()&&FOP()&&(k={key:"cast-selector-receiver",name:FOP()}),k=k.name):k=null;this.receiverName=k;_.nu(this.remoteApi_);(this.remoteApi_=Z9T())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.I.handleReceiverAvailabilityChange_=function(){var k=j3U();WOY()&&_.Yl("yt-remote-cast-available")&&k.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=k.length>0};
_.I.handleRemoteQueueChange_=function(){var k=this.currentVideoId_,E=this.currentListId_,S=v2(this.remoteApi_);this.currentVideoId_=S.videoId;this.currentListId_=S.listId;this.currentVideoId_&&_.qe(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.Y("polymer_enable_mdx_queue")?this.currentListId_:null,k,E])};
_.I.handleAddToQueueAction_=function(k){k=_.W(k,BuP);this.remoteApi_&&(k.videoId?this.remoteApi_.addVideo(k.videoId):k.playlistId&&this.remoteApi_.addPlaylist(k.playlistId))};
_.I.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.I.handleInsertInQueueAction_=function(k){k=_.W(k,Yh2);this.remoteApi_&&k.videoId&&this.remoteApi_.JSC$20054_insertVideo(k.videoId)};
_.I.handleRemoveFromQueueAction_=function(k){k=_.W(k,W1R);this.remoteApi_&&k.videoId&&this.remoteApi_.JSC$20054_removeVideo(k.videoId)};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],$a.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H(),_.l("design:type",Object)],$a.prototype,"appId",void 0);_.Z([_.H(),_.l("design:type",Boolean)],$a.prototype,"mdxConnected",void 0);_.Z([_.H(),_.l("design:type",Boolean)],$a.prototype,"receiverAvailable",void 0);_.Z([_.H(),_.l("design:type",Object)],$a.prototype,"receiverName",void 0);_.Z([_.H(),_.l("design:type",Object)],$a.prototype,"currentVideoId_",void 0);
_.Z([_.H(),_.l("design:type",Object)],$a.prototype,"currentListId_",void 0);_.Z([_.U_({is:"yt-mdx-manager",disableElementRegistration:!0})],$a);_.b($a,"yt-mdx-manager",void 0,{mode:2});var p6Y;var AW3;var fa=function(){var k=_.p.apply(this,arguments)||this;k.APP_IDS={ytr:3,ytm:5};k.JSC$21279_timeoutId_=0;k.actionMap={"yt-open-create-family-dialog":"open"};return k};
_.y(fa,_.p);_.I=fa.prototype;_.I.created=function(){ZTI(2200)};
_.I.detached=function(){this.observer_&&this.observer_.disconnect()};
_.I.open=function(k,E){var S=this,R=k.serializedYpcFamilyCreateLoggingParams;this.JSC$21279_timeoutId_=setTimeout(this.abort_.bind(this,k.postFlowErrorEndpoint,R),3E4);E&&(this.onReadyCallback_=E);var V=_.Cc(this.hostElement).querySelector("#unicorn-iframe");R&&R&&rVA("ypcFamilyCreateFlowStarted",R);_.V_b("family_creation",function(){var N=_.CV("gapi.family_creation.render");_.CV("gapi.config.update")("iframes/family_creation/url",S.getFamilyCreationUrlWithUnicornParams_());var h=3;k.appId&&k.appId in
S.APP_IDS&&(h=S.APP_IDS[k.appId]);h={authUser:_.Mg("SESSION_INDEX")||0,clientId:h,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Mg("HL"),initialflow:[4,5,6,7],m:S.isMobile?1:0,onFlowComplete:S.onUnicornFlowComplete_.bind(S,k.postFlowSuccessEndpoint,R),onError:S.onUnicornFlowError_.bind(S,k.postFlowErrorEndpoint,R),onReady:S.onUnicornFlowReady_.bind(S,k.referencePcidParams)};N(V,h)})};
_.I.close=function(){_.Cc(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.I.onUnicornFlowComplete_=function(k,E){this.close();E&&E&&rVA("ypcFamilyCreateFlowSucceeded",E);_.Me(this.hostElement,"yt-navigate",{endpoint:k})};
_.I.onUnicornFlowError_=function(k,E){this.close();E&&rVA("ypcFamilyCreateFlowCancelled",E);_.Me(this.hostElement,"yt-navigate",{endpoint:k})};
_.I.onUnicornFlowReady_=function(k){var E=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();k&&_.CV("gapi.family_creation.setConfig")(0,k);this.observer_=new MutationObserver(function(){_.Cc(E.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Cc(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Cc(this.hostElement).querySelector("#dialog").open()};
_.I.getFamilyCreationUrlWithUnicornParams_=function(){return _.Mg("YTR_FAMILY_CREATION_URL")};
_.I.getCurrentUrl_=function(){return document.location.href};
_.I.abort_=function(k,E){this.clearTimeout_();this.onUnicornFlowError_(k,E)};
_.I.clearTimeout_=function(){clearTimeout(this.JSC$21279_timeoutId_)};
_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],fa.prototype,"ytActionHandlerBehavior",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],fa.prototype,"isMobile",void 0);_.Z([_.H(),_.l("design:type",Object)],fa.prototype,"onReadyCallback_",void 0);_.Z([_.H(),_.l("design:type",Object)],fa.prototype,"observer_",void 0);_.Z([_.U_({is:"yt-create-family-dialog",disableElementRegistration:!0})],fa);
_.b(fa,"yt-create-family-dialog",function(){if(AW3===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);var E=k.content,S=E.insertBefore;p6Y===void 0&&(p6Y=document.createElement("template"));var R=p6Y;S.call(E,R.content.cloneNode(!0),k.content.firstChild);AW3=k}k=AW3;return k},{mode:2});var rWT;var uNG;var vB=function(){var k=_.p.apply(this,arguments)||this;k.STEP=1;k.BLOCK_ON=80;k.MIN_PROGESS=0;k.MAX_PROGESS=100;return k};
_.y(vB,_.p);_.I=vB.prototype;_.I.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.I.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));_.en().addProvider({provide:IjR,useValue:this})};
_.I.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.I.finish=function(){var k=this;this.progress=this.MAX_PROGESS;k4W(function(){k.progress==k.MAX_PROGESS&&(k.hostElement.hidden=!0)})};
_.I.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.mt.Object.defineProperties(vB.prototype,{progress:{configurable:!0,enumerable:!0,set:function(k){this.progress_=k;var E="scaleX("+k/this.MAX_PROGESS+")",S=_.Cc(this.hostElement).querySelector("#progress").style;S.transform=E;S.webkitTransform=E;this.hostElement.setAttribute("aria-valuenow",String(k))},
get:function(){return this.progress_}}});
_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],vB.prototype,"ytComponentBehavior",void 0);_.Z([_.U_({is:"yt-page-navigation-progress",disableElementRegistration:!0})],vB);
_.b(vB,"yt-page-navigation-progress",function(){if(uNG===void 0){var k=document.createElement("template");_.X(k,'\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');k.content.insertBefore(_.Q().content.cloneNode(!0),
k.content.firstChild);var E=k.content,S=E.insertBefore;rWT===void 0&&(rWT=document.createElement("template"));var R=rWT;S.call(E,R.content.cloneNode(!0),k.content.firstChild);uNG=k}k=uNG;return k},{mode:2});var xSI={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"},Laa={"font-size":"12px","font-style":"italic"},jDW={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.VuG=function(){return _.c(function(k){_.KR(k)})};var DS2=_.f(function(k){var E=function(){return k.data().subtext},S={};
return _.e("snackbar-view-model",{class:_.SQ("snackbarViewModelHost",k.className)},_.e("div",{class:_.SQ("snackbarViewModelEngagementBarWrapper",k.className)},_.e(_.t,{cond:function(){return k.data().image},
then:function(R){return _.e(_.vM,{data:R,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.e(_.t,{cond:function(){return k.data().imageContent},
then:function(){return _.e("div",{class:"snackbarViewModelAvatarContainer"},_.e(_.cp,{data:function(){return k.data().imageContent}},{decoratedAvatarViewModel:_.sV}))}}),_.e("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.e("div",{class:_.SQ((S.snackbarViewModelTitle=!0,S.snackbarViewModelTitleWithSubtext=E,S))},_.e(_.VB,{text:function(){return k.data().text}})),_.e(_.t,{cond:E,
then:function(){return _.e("div",{class:"snackbarViewModelSubtext"},_.e(_.VB,{text:function(){return E()}}))}})),_.e(_.t,{cond:function(){return k.data().buttons},
then:function(){return _.e("div",{class:"snackbarViewModelButtonClassWrapper"},_.e(_.cp,{data:function(){return k.data().buttons}},{buttonViewModel:function(R){return _.e(_.yB,{data:R.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:k.target})}}))}})))},"dk");_.qi(_.f(function(){function k(L,q,M){F(L);r(M);P("in");T(!0);E(L,q);h=setTimeout(function(){S()},q)}
function E(L,q){var M,d=(M=L.text)==null?void 0:M.content;L=_.Yh(L.rendererContext);d&&(q={label:d,command:L,durationMs:q},_.en().resolve(_.qf).enqueue(q))}
function S(L){P("out");L&&clearTimeout(h)}
function R(){S(!0)}
function V(L){if(L){var q=L.snackbarViewModel,M=L.durationMs,d=L.target;M||(M=3E3);q&&(L=_.en().resolve(_.mz(_.ZS)))&&L.enqueue({isOpened:a,open:function(){k(q,M,d)},
close:S},0)}}
var N=_.Nm("snackbar-container"),h=void 0,J=_.n(_.yg(!1,void 0,"mDc5N")),m=J.next().value;J=J.next().value;var a=m,T=J;m=_.n(_.yg("out",void 0,"FpOs5e"));var w=m.next().value,P=m.next().value;m=_.n(_.yg(void 0,void 0,"jIDRob"));var B=m.next().value,F=m.next().value;m=_.n(_.yg(void 0,void 0,"kOA3Mb"));var K=m.next().value,r=m.next().value,x=_.RZ(function(){if(w()==="out"){T(!1);F(void 0);r(void 0);var L=_.en().resolve(_.mz(_.ZS));L&&EH3(L,0)}});
_.b$(function(){var L=_.en().resolve(_.mz(_.t1I));L&&(L.showSnackbarFn=V,L.closeSnackbarFn=R)});
return _.e("snackbar-container",{class:"ytSnackbarContainerHost",el:N},_.e(_.t,{cond:function(){return a()&&!!B()},
then:function(){var L={};return _.e("div",{class:_.SQ("ytSnackbarContainerSnackbarContainer",(L.ytSnackbarContainerMobile=!1,L.ytSnackbarContainerPivotBar=function(){var q;return!((q=_.en().resolve(_.mz(_.TTU)))==null||!q())},L.ytSnackbarContainerOpened=function(){return a()&&w()==="in"},L.ytSnackbarContainerClosed=function(){return a()&&w()==="out"},L)),
"on:animationend":x},_.e(DS2,{data:function(){return B()},
target:function(){return K()}}))}}))},"ek"),"snackbar-container");_.qi(_.CBd,"yt-tooltip");var $St=_.LbA.ephemeralActionSelector;_.qi(_.f(function(){var k=_.gb($St);return _.e("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var E;return(E=k())==null?void 0:E.announcement})},"fk"),"yt-ephemeral-actions");var FZx=new Map;var eUI=function(k,E){var S=this;this.handleError=k;this.logEventInternal=E;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){S.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
eUI.prototype.logError=function(k){this.handleError(k)};
eUI.prototype.logEvent=function(k,E){switch(k){case "IDB_DATA_CORRUPTED":_.Y("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",E);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",E);break;case "IS_SUPPORTED_COMPLETED":_.Y("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",E);break;case "QUOTA_EXCEEDED":fcP(this,E);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",E);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":k=Object.assign({},E,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",k)}};
var fcP=function(k,E){_.QJ.getInstance().estimate().then(function(S){S=Object.assign({},E,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:o$I(S==null?void 0:S.usage),deviceStorageQuotaMbytes:o$I(S==null?void 0:S.quota)});k.logEventInternal("idbQuotaExceeded",S)})};var v3R=_.f(function(k){var E=_.VH("yt-draggable"),S=k.onDrag,R=k.onDragStart,V=k.onDragEnd,N=_.dJ(k,{allowClicks:!1,dragThreshold:5}),h=N.dragThreshold,J=N.allowClicks;k=N.children;N=N.className;var m=void 0,a=void 0,T=new _.bh(0,0),w=!1;_.b$(function(){m=new _.r$(E.value);a=new _.tB(B);P(m,a);if(J()){_.eG4(m,h());var K;(K=E.value)==null||K.addEventListener("click",F,{capture:!0})}_.bI(function(){var r;(r=m)==null||r.dispose();if(J()){var x;(x=E.value)==null||x.removeEventListener("click",F,{capture:!0})}})});
var P=function(K,r){_.wX(K,"earlycancel",function(){J()&&(w=!1)});
_.wX(K,"start",function(x){R==null||R(x);x.defaultPrevented||J()&&(w=!0)});
_.wX(K,"beforedrag",function(x){m&&a&&(x.preventDefault(),T=new _.bh(x.clientX-m.startX,x.clientY-m.startY),a.start())});
_.wX(K,"end",function(){r.stop();V==null||V();T=new _.bh(0,0)})},B=function(){T&&S(T)},F=function(K){w&&(w=!1,K.stopPropagation(),K.preventDefault())};
return _.e("yt-draggable",{el:E,class:_.SQ("ytDraggableComponentHost",N)},k)},"gk");var b0a=_.f(function(k){var E=_.n(_.yg(0,void 0,"Qf0tbc")),S=E.next().value,R=E.next().value;E=function(V){var N={},h={};return _.e(v3R,{className:_.SQ("ytdMiniplayerComponentResizer",(N.ytdMiniplayerComponentResizerDisabled=function(){return V===k.horizontalAlignment()||V===k.verticalAlignment()},N.ytdMiniplayerComponentResizerNorth=V==="north",N.ytdMiniplayerComponentResizerEast=V==="east",N.ytdMiniplayerComponentResizerSouth=V==="south",N.ytdMiniplayerComponentResizerWest=V==="west",N)),
onDragStart:function(){R(k.currentMiniplayerSize());if(k.onResizeStart)k.onResizeStart()},
onDrag:function(J){V!=="north"&&V!=="west"||J.scale(-1);var m;J=(m=V==="north"||V==="south")?J.y:J.x;var a=k.currentAspectRatio();m&&a>=1?J*=a:!m&&a<1&&(J/=a);m=J;k.onResize(S()+m)}},_.e("div",{class:_.SQ("ytdMiniplayerComponentResizerCorner",(h.ytdMiniplayerComponentResizerNorthCorner=V==="north",h.ytdMiniplayerComponentResizerEastCorner=V==="east",h.ytdMiniplayerComponentResizerSouthCorner=V==="south",h.ytdMiniplayerComponentResizerWestCorner=V==="west",h))}))};
return _.e("div",{class:"ytdMiniplayerComponentResizers"},E("north"),E("east"),E("south"),E("west"))},"hk");var Z0A=16/9;_.qi(_.f(function(){var k=_.VH("ytd-miniplayer"),E=_.n(_.yg(new _.KO(NaN,NaN),void 0,"NHaFyc")),S=E.next().value,R=E.next().value;E=_.n(_.yg(!1,void 0,"a0rwG"));var V=E.next().value,N=E.next().value;E=_.n(_.yg(!1,void 0,"f1jSeb"));var h=E.next().value,J=E.next().value;E=_.n(_.yg(!1,void 0,"JojXKc"));var m=E.next().value,a=E.next().value;E=_.n(_.yg(!1,void 0,"FjS8Db"));var T=E.next().value,w=E.next().value;E=_.n(_.yg(!1,void 0,"z5WG9e"));var P=E.next().value,B=E.next().value;E=_.n(_.yg(!1,void 0,"eUzZd"));
var F=E.next().value,K=E.next().value;E=_.n(_.yg(Z0A,void 0,"XsBIy"));var r=E.next().value,x=E.next().value,L=_.n(_.yg(!1,void 0,"FJSvse"));E=L.next().value;var q=L.next().value;L=_.n(_.yg(!1,void 0,"VDUFL"));var M=L.next().value,d=L.next().value;L=_.n(_.yg(void 0,void 0,"nFeh4b"));var z=L.next().value,kb=L.next().value;L=_.n(_.yg(I6()?"west":"east",void 0,"T7co7c"));var TI=L.next().value,a1=L.next().value;L=_.n(_.yg("south",void 0,"QDUsLb"));var Ah=L.next().value,th=L.next().value;L=_.n(_.yg(400,
void 0,"F7Vdze"));var He=L.next().value,ve=L.next().value,Xm=_.en().resolve(_.yb).miniplayerPropSignalMap[0],U5=Xm.data,l4=Xm.externalPlaylistData;L=Xm.toastData;var gY=Xm.playabilityStatus,IC=Xm.isReadyToResume,md=Xm.isDisabled,Kj=Xm.watchWhile,Lj=Xm.playerVe,H0=Xm.expandVe,TG=Xm.closeVe,iC=Xm.readyToResumeVe,hC=Xm.readyToResumeCloseVe,Y2=Xm.repositionVe,It=Xm.resizeVe;Xm=_.n(_.IZ(IC));var Wz=Xm.next().value,VP=Xm.next().value,LR=_.gb(_.K5.persistentPanelVisibleSelector),Mp=!1,tC=!1,aC;_.b$(function(){R(_.iv());
k.value.addEventListener("animationend",function(Qd){Qd.target===k.value&&(B(!1),K(!1))});
pNP(k.value)});
_.Rs("yt-window-resized",function(Qd){Qd&&R(Qd)});
var Rt=function(){aC&&x(aC.getVideoAspectRatio())},zI=function(){if(aC){var Qd=aC.getPlayerState()===1;
Wz()&&Qd&&VP(!1)}},Bz=function(){var Qd=H0();
if(Qd){var ot=_.Fe(3);ot&&_.Dv(ot,Qd)}},W0=function(){var Qd=TG(),ot=hC();
Qd&&_.Dv(_.Fe(3),Qd);IC()&&ot&&_.Dv(_.Fe(3),ot)};
_.Rs("yt-activate-miniplayer",function(Qd){var ot;return _.c(function(N2){if(N2.nextAddress==1)return V()?N2.return():N2.yield((ot=_.en().resolve(_.yb).getPlayerElement())==null?void 0:ot.getPlayerPromise(),2);aC=N2.yieldResult;if(!aC)return N2.return();!M()&&_.Y("kevlar_watch_while_v2")&&(th(Qd&&!_.Y("kevlar_watch_while_bottom_align")?"north":"south"),a1(I6()?"west":"east"));var BX=aC;BX.addEventListener("onVideoDataChange",Rt);BX.addEventListener("onStateChange",zI);BX.addEventListener("onExpandMiniplayer",
Bz);BX.addEventListener("onCloseMiniplayer",W0);x(aC.getVideoAspectRatio());N(!0);KZA()||B(!0);_.KR(N2)})});
_.Rs("yt-deactivate-miniplayer",function(Qd){return _.c(function(ot){if(!V())return ot.return();N(!1);VP(!1);K(Qd);w(!1);J(!1);if(aC){var N2=aC;N2.removeEventListener("onVideoDataChange",Rt);N2.removeEventListener("onStateChange",zI);N2.removeEventListener("onExpandMiniplayer",Bz);N2.removeEventListener("onCloseMiniplayer",W0)}KZA()||B(!0);_.KR(ot)})});
var EY=function(){return!(Kj()&&_.Y("kevlar_watch_while_modern"))},pP=function(){var Qd;
return!((Qd=l4())==null||!Qd.contents)},dP=function(){var Qd=He();
var ot=S();ot=Math.min(Math.min(ot.width,ot.height)-32,720);var N2=r(),BX=EY(),ik=pP()&&h(),jo=Math.min(Qd,ot);Qd=new _.KO(192,BX?116:192);N2=new _.KO(ik?Z0A:N2,1);jo=new _.KO(jo,BX?jo-76:jo);jo=N2.aspectRatio()>jo.aspectRatio()?jo.width/N2.width:jo.height/N2.height;N2=N2.scale(jo);Qd.width<=N2.width&&Qd.height<=N2.height||(Qd=N2.aspectRatio()<=Qd.aspectRatio()?Qd.width/N2.width:Qd.height/N2.height,N2.scale(Qd),N2.width=Math.min(N2.width,ot),N2.height=Math.min(N2.height,ot));return new _.KO(N2.width,
_.Bt(192,N2.height+xMI(BX,ik),720))},C2=function(){var Qd=dP(),ot=EY(),N2=pP()&&h();
return new _.KO(Qd.width,Qd.height-xMI(ot,N2))},Jx=function(){var Qd=function(ot){ot.target===k.value&&T()&&(w(!1),k.value.removeEventListener("transitionend",Qd))};
KZA()||(k.value.addEventListener("transitionend",Qd),w(!0));J(!h())};
_.vX(function(){var Qd=Lj(),ot=_.Fe(3),N2=_.Wi(3);if(ot&&N2&&Qd){_.rq(ot,N2,Qd);N2=Y2();var BX=It(),ik=H0(),jo=TG(),YO=hC();ik&&jo&&YO&&(_.uD(ot,Qd,[ik,jo,YO]),_.Lz(ot,[ik,jo]));N2&&BX&&_.uD(ot,Qd,[N2,BX])}},"crCasb");
_.vX(function(){var Qd=iC();if(Qd){var ot=_.Fe(0),N2=_.Wi(0);ot&&N2&&(_.rq(ot,N2,Qd),_.Lz(ot,[Qd]))}},"JitqQ");
Xm={};return _.e("ytd-miniplayer",{el:k,class:_.SQ("ytdMiniplayerComponentHost",(Xm.ytdMiniplayerComponentVisible=function(){return V()||P()},Xm.ytdMiniplayerComponentAnimatingSnap=m,Xm.ytdMiniplayerComponentAnimatingPlaylistExpand=T,Xm.ytdMiniplayerComponentAnimatingFade=P,Xm),function(){if(P()){var Qd=Ah();
var ot=V(),N2=F();Qd=ot?Qd==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":N2?Qd==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Qd==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Qd="";return Qd}),
style:_.nU({top:function(){return Ah()==="north"?"16px":""},
right:function(){var Qd=TI(),ot=LR();ot=(ot===void 0?0:ot)&&!I6()?400:0;return Qd==="east"?16+ot+"px":""},
bottom:function(){return Ah()==="south"?"16px":""},
left:function(){var Qd=TI(),ot=LR();ot=(ot===void 0?0:ot)&&I6()?400:0;return Qd==="west"?16+ot+"px":""},
width:function(){return dP().width+"px"},
height:function(){return dP().height+"px"},
transform:function(){var Qd=z();return Qd?"translate("+Qd.x+"px, "+Qd.y+"px)":""}})},_.e("div",{class:"ytdMiniplayerComponentContent"},_.e(v3R,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Qd){var ot=u$U(TI(),Ah(),S(),dP(),z()),N2=C2();Math.abs(Qd.clientY-(ot.y+N2.height))>15?(q(!0),Qd=_.Fe(3),ot=Y2(),Mp||(Mp=!0,Qd&&ot&&_.Lz(Qd,[ot])),Qd&&ot&&_.Dv(Qd,ot)):Qd.preventDefault()},
onDrag:function(Qd){kb(Qd)},
onDragEnd:function(){var Qd=AaW(u$U(TI(),Ah(),S(),dP(),z()),S(),dP()),ot=raI(TI(),Ah(),S(),dP(),LR()),N2=raI(Qd.horizontalAlignment,Qd.verticalAlignment,S(),dP(),LR());N2=new _.bh(N2.x-ot.x,N2.y-ot.y);var BX;ot=ot.y+(((BX=z())==null?void 0:BX.y)||0)+dP().height/2;var ik=function(){TI()===Qd.horizontalAlignment&&Ah()===Qd.verticalAlignment||d(!0);a1(Qd.horizontalAlignment);th(Qd.verticalAlignment);kb(void 0)},jo=function(YO){YO.target===k.value&&m()&&(a(!1),ik(),k.value.removeEventListener("transitionend",
jo))};
q(!1);Ah()==="south"&&ot>S().height?(ik(),_.en().resolve(_.yb).close()):(k.value.addEventListener("transitionend",jo),a(!0),kb(N2))}},_.e(_.t,{cond:V,
then:function(){return _.e(_.Lz2,{isDisabled:md,playabilityStatus:gY,size:C2})}}),_.e(_.t,{cond:EY,
then:function(){return _.e(_.uuG,{isReadyToResume:Wz,data:U5,expanded:h,onExpandClick:Jx,playlistData:l4})}}),_.e(_.t,{cond:E,
then:function(){return _.e("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.e(_.t,{cond:function(){return pP()&&h()||T()},
then:function(){return _.e(_.TkA,{className:"ytdMiniplayerComponentPlaylistPanel",data:l4,hideHeaderText:!0,withinMiniplayer:!0})}}),_.e("div",{class:"ytdMiniplayerComponentToast"},_.e(_.juT,{toastData:L}))),_.e(b0a,{onResize:function(Qd){ve(_.Bt(192,Qd,720))},
onResizeStart:function(){var Qd=_.Fe(3),ot=It();tC||(tC=!0,Qd&&ot&&_.Lz(Qd,[ot]));Qd&&ot&&_.Dv(Qd,ot)},
currentAspectRatio:r,currentMiniplayerSize:He,horizontalAlignment:TI,verticalAlignment:Ah}))},"kk"),"ytd-miniplayer",{});var dSP=_.K5.persistentPanelVisibleSelector,bF=function(){var k=_.p.apply(this,arguments)||this;k.tabGesturesIsActive=!1;k.persistentPanelEnabled=_.Y("enable_ai_companion");k.hasDelegation=!1;k.darkerDarkTheme=_.Y("web_darker_dark_theme");k.isFrostedGlassInitialized=!1;k.frostedGlassExp=_.Y("web_frosted_glass");k.hasPendingWatchNavigation=!1;k.mastheadHiddenFocusWithinKillswitch=_.Y("web_masthead_hidden_focus_within_killswitch");k.clientOnlyWizTooltipsEnabled=_.Y("enable_client_only_wiz_tooltips")&&
HTMLElement.prototype.hasOwnProperty("popover");k.scrollAtTop=!0;k.guideScrollTop=0;k.isTheaterModeSession=_.qg("START_IN_THEATER_MODE");k.iMaxTheaterMode=_.Y("web_watch_imax_theater_mode");k.isFullWindowSession=_.qg("START_IN_FULL_WINDOW_MODE");k.hasCreateFamilyDialog=!1;k.mastheadHeight=56;k.networkStatusManager=new _.Ec;k.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"};k.dynamicActionMap={"yt-run-attestation-command":function(E){var S=
_.R5P.instance,R=_.W(E,_.Etd);return R?_.Y("use_rta_manager_for_async")&&GlP()?ASa(S,R,E.clickTrackingParams):psU(S,R,E.clickTrackingParams):_.BM(Error("wi"))}};
k.isFrostedGlassDisabled=!1;k.isChannelOrPlaylistPage=!1;return k};
_.y(bF,_.p);_.I=bF.prototype;_.I.created=function(){var k=_.en();_.Y("kevlar_clear_duplicate_pref_cookie")&&_.uM(_.ZJ,function(){var E=_.pC.get("PREF");E&&!/f\d=/.test(E)&&(E=_.P_("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=E?"PREF=null;domain="+E+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.Y("gzip_gel_with_worker")&&_.S_e();_.Y("jspb_serialize_with_worker")&&yO0();_.Y("web_worker_availability_check")&&yaP();_.Y("nwl_init_killswitch")||Wi0().then(function(){_.ZJ.addLowPriorityJob(qia)});
this.pageManagerAttachedPromise=_.LU();this.ytdAppBehavior.loadDepsPromise=_.Ys([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.NJ(this.onThrottledScroll,200,this);_.Y("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);akU();CdP=!!_.CV("ytappsettings.initialized");kc=_.CV("ytappsettings.previousValue");q_W=_.CV("ytappsettings.previousSnapshotTime");CdP||(CdP=!0,zU3());kea();Eq3();_.l$("DEFERRED_DETACH",
_.Y("kevlar_tuner_should_defer_detach"));_.l$("REUSE_COMPONENTS",!0);_.l$("STAMPER_STABLE_LIST",!0);_.l$("SCHEDULED_LAZY_LIST",!0);_.l$("openPopupConfig",WAG);_.l$("useClickHandler",!0);_.Y("kevlar_shell_cleanup")&&_.ZJ.addLowPriorityJob(VFT.bind(this,_.Vt.caches));_.qg("IS_SHELL_LOAD")&&_.BE({shellStartupDurationMs:Math.round((0,_.ev)()-_.a_())});iTa(this.networkStatusManager);_.Y("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",E$Y(xSI)),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!",
E$Y(Laa)),console.log("%cVisit http://go/join-youtube-web to apply today.",E$Y(jDW)));_.KSx(k.resolve(_.l8),1E3)};
_.I.ready=function(){var k=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var E=u6T();E&&!_.Y("external_fullscreen_killswitch")&&document.addEventListener(E,this.setFullscreen.bind(this));(E=window.matchMedia("(prefers-color-scheme: dark)"))&&E.addEventListener&&E.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(E=_.en().resolve(_.mz(_.eEp)))E.subscribe("navigation-start",
function(S){S.destinationPageSubtype==="watch"&&(k.hasPendingWatchNavigation=!0)}),E.subscribe("navigation-end",function(S){S.destinationPageSubtype==="watch"&&(k.hasPendingWatchNavigation=!1)})};
_.I.attached=function(){var k=this;_.O7().processSignal("ci");_.Y("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.vWC?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.Gb(_.oDI(),"SUCCESS");this.updateIconSet();_.st(this.guideInnerContent,!1);_.xN().initVisibilityObserver();this.guideService.guideElement=this.guide;var E=document.createElement("ytd-miniplayer"),S=_.Cc(this.hostElement).querySelector("#content");
_.Cc(this.hostElement).insertBefore(E,S);_.O7().processSignal("ma");_.en().resolve(_.yb).init(E);this.persistentPanelEnabled&&_.H2U(_.en().resolve(_.b6),this.persistentPanelContainer,"APP");_.qg("IS_SHELL_LOAD")&&(S=document.createElement("ytd-network-status-banner"),_.Cc(this.hostElement).insertBefore(S,E));_.Y("kevlar_right_click_on_lockups")&&_.dB._onCaptureClick&&document.addEventListener("contextmenu",_.dB._onCaptureClick.bind(_.dB),!0);var R=function(){var V=_.c5("yt-page-navigation-progress");
_.Cc(k.hostElement).appendChild(V)};
setTimeout(function(){_.O7().parkOrScheduleJob(R,0,"eocs",16)},0);
_.Y("service_worker_push_enabled")&&_.uM(_.ZJ,AVG);_.E2(_.GU.getInstance(),this.dynamicActionMap,this.hostElement);_.Me(this.hostElement,"ytd-app-attached");_.O7().processSignal("aa");MN2(this.hostElement);_.J6("gapi.load",_.V_b);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.uM(_.ZJ,
function(){var V=document.createElement("ytd-video-preview");_.Cc(_.Cc(k.hostElement).querySelector("#video-preview")).appendChild(V)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.uM(_.ZJ,function(){N9t();k.registerWithViewTransitionManager()});
if(_.tg()&&this.isAppDarkTheme()!==_.ek())this.onDarkModeToggledAction();else E=_.aR()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==E&&(_.Y("enable_dark_theme_only_on_shorts")?_.xl(_.Y("enable_dark_theme_only_on_shorts_control")?window.location.href:_.N3(window.location.href,{theme:"dark"})):_.dg(new _.LC("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(XmP=new o9P(this.hostElement)),KaW=new H0R(this.hostElement),US3=new g3I(this.hostElement),sFY=new dWY(this.hostElement)};
_.I.getThemeSettingsToLog=function(){var k=_.aR()==="USER_INTERFACE_THEME_DARK";k=_.tg()?_.ek()?"os-dark":"os-light":k?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:k,cookiesEnabled:_.rO()}};
_.I.detached=function(){_.lW(this.guideInnerContent);_.ZJ.cancelJob(O$);O$=0;_.ZJ.cancelJob(CA);CA=0;_.tFC(lkW);lkW.length=0;Zv3=_.n_t=null;_.xN().dispose();_.Y("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.S9(_.GU.getInstance(),XmP.playlistHandlerActionMap,XmP.JSC$32359_clientRoot);_.S9(_.GU.getInstance(),KaW.downloadManagerActionMap,KaW.JSC$32650_clientRoot);_.S9(_.GU.getInstance(),US3.feedbackCollectorActionMap,US3.JSC$32645_clientRoot);
for(var k=_.n(sFY.eventListeners),E=k.next();!E.done;E=k.next()){var S=_.n(E.value);E=S.next().value;S=S.next().value;S=_.n(S);for(var R=S.next();!R.done;R=S.next()){var V=_.n(R.value);R=V.next().value;V=V.next().value;E.removeEventListener(R,V)}}_.S9(_.GU.getInstance(),sFY.autonavPauseActionMap,sFY.JSC$20237_clientRoot)};
_.I.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.nz().getFlag(186)};
_.I.computeIsInlinePreviewEnabled=function(k,E,S){return!S&&_.YtU({miniplayerIsActive:k,miniplayerPlaybackState:E})};
_.I.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.zX({type:"SET_FROSTED_GLASS_MODE",payload:!_.Y("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"}))};
_.I.computeIsFrostedGlassDisabled=function(k,E,S,R){return k||E||S||R&&_.Y("web_frosted_glass_disable_watch")};
_.I.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.Y("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.I.computeIsHomePage=function(k,E){if(!k||E==null||!E.endpoint)return!1;var S;return((S=_.W(E.endpoint,_.Ny))==null?void 0:S.browseId)==="FEwhat_to_watch"};
_.I.updateIsChannelOrPlaylistPage=function(){if(_.Y("web_frosted_glass")){var k,E,S=(E=(k=_.en().resolve(_.mz(_.ZD)))==null?void 0:k.getCurrentPage())==null?void 0:E.pageSubtype;this.isChannelOrPlaylistPage=S?["channel","channels","playlist"].includes(S):!1}};
_.I.scheduleFrostedGlassInitialization=function(){var k=this;_.Y("web_frosted_glass")&&_.O7().parkOrScheduleJob(function(){k.isFrostedGlassInitialized=!0},0,_.eW(["eocs",
"cr"]),300)};
_.I.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.LAz(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.zX({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.zX({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.I.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(dwP(!0))};
_.I.onYtSignalActionRequestPersistentStorage=function(){if(!_.Y("request_persistent_storage_killswitch")){var k=_.en().resolve(_.aKI);k.cachedPersistStatePromise||(k.cachedPersistStatePromise=cza())}};
_.I.handleYtChannelCreationFormEndpoints=function(k){k&&this.ytComponentBehavior.resolveCommand(k)};
_.I.handleShowEngagementPanelEndpoint=function(k){k&&this.ytComponentBehavior.resolveCommand(k)};
_.I.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(dwP(!1))};
_.I.initIconDefs=function(k,E){var S=document.createElement("iron-iconset-svg");S.name=k;k=document.createElementNS("http://www.w3.org/2000/svg","svg");S.appendChild(k);k.appendChild(E);document.body.appendChild(S);return S};
_.I.onWindowResized=function(){_.qe(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var k=_.eM.getInstance();k.documentWidth_=document.body.clientWidth;VLY(k)};
_.I.onWindowScrolled=function(){var k=_.en().resolve(_.ZD).getCurrentPage();if(k!=null&&k.getScrollTop){var E=this.ytdReduxBehavior,S=E.dispatch;k=k.getScrollTop()<=0;S.call(E,_.zX({type:"SET_SCROLL_AT_TOP",payload:k}))}};
_.I.guideIsVisibleButNotPersistentSelectorChanged=function(){var k=_.en().resolve(_.ZD).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=k.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"),
k.setScrollTop(this.guideScrollTop));_.zR(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.I.getCurrentPageScrollableElementType=function(){var k=_.en().resolve(_.ZD).getCurrentPage();if(k&&k.getPageScrollingElement())return k.getPageScrollingElement().nodeName};
_.I.observeGuideVisibility=function(){var k=_.eM.getInstance(),E=this.miniGuideVisible;k.guidePersistentAndVisible_=this.guidePersistentAndVisible;k.miniGuideVisible_=E;VLY(k)};
_.I.observePersistentPanelVisibility=function(){var k=_.eM.getInstance();k.persistentPanelVisible_=this.persistentPanelVisible;VLY(k)};
_.I.handleEduDismissAction=function(k){k&&k.eduDismissAction&&(_.qe(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.fpC.getInstance(),_.cI.set(k.eduDismissAction.key+"-dismissed",!0))};
_.I.handleEduImpressionAction=function(k){if(k&&k.eduImpressionAction){var E=_.fpC.getInstance();k=k.eduImpressionAction.key;E.JSC$13174_eduDisplayedThisLoad_[_.$DC[k].setKey||k]=!0;_.cI.set(k+"-impression",parseInt(_.cI.get(k+"-impression")||0,10)+1)}};
_.I.onYtSignalActionConfirmMentionsEdu=function(){_.qe(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.ts.getInstance();_.ag.set("edu-dismissed",!0)};
_.I.onYtSignalActionRecordMentionsEduImpression=function(){_.ts.getInstance();var k=_.ag.set,E=parseInt(_.ag.get("edu-impressions"),10);k.call(_.ag,"edu-impressions",(isFinite(E)?E:0)+1)};
_.I.onYtPageManagerAttached=function(k){var E;((E=_.bv(k))==null?void 0:E.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.I.onInvokeInstrumentManagerAction=function(k,E){HT0(E,k)};
_.I.updateIconSet=function(){var k=this.hostElement.querySelector("#masthead");if(k){var E=_.kT(k),S=E.querySelector("g#yt-logo-updated");S&&(k=document.createElementNS("http://www.w3.org/2000/svg","defs"),k.appendChild(S.cloneNode(!0)),(E=E.querySelector("g#yt-logo-red-updated"))&&k.appendChild(E.cloneNode(!0)),this.initIconDefs("yt-logos-ext",k))}};
_.I.updateMastheadData=function(){var k=this,E,S,R,V,N;return _.c(function(h){if(h.nextAddress==1){E=k.data;S=k.hostElement.querySelector("#masthead");if(!S)return h.return();_.JB(k,function(){S.data=k.topbarData});
if(!k.get("response.topbar",E)||k.get("response.topbar.responseContext.maxAgeSeconds",E)===0)return h.jumpTo(0);if(R=_.en().resolve(_.XM))return h.yield(R(),6);V=_.en().resolve(_.Fk);return h.yield(V.put("service:topbar:fallback",new _.yD({innertubeResponse:k.get("response.topbar",E)})),0)}return(N=h.yieldResult)?h.yield(N.put("service:topbar:fallback",new _.yD({innertubeResponse:k.get("response.topbar",E)})),0):h.jumpTo(0)})};
_.I.computeTopbarData=function(k){if(!k)return null;var E;return this.isShortsPage&&this.topbarData&&!_.W((E=k.response)==null?void 0:E.topbar,I8P)?this.topbarData:k.response&&"topbar"in k.response?_.W(k.response.topbar,I8P)||null:null};
_.I.onSetTheaterModeEnabled=function(k,E){this.isTheaterModeSession=E.enabled;this.setTheaterModeStyles(E.enabled)};
_.I.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.I.onDarkModeToggledAction=function(){var k=_.Xu(window.location.href);if(!_.PiR(k)){(k=!!_.Vf(window.location.href).themeRefresh)&&_.dg(new _.LC("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!k){zU3();k={themeRefresh:1};var E=_.en().resolve(_.ZD);if(E.isOnWatch()){var S,R;E=((S=E.getPlayerFromWatch())==null?void 0:(R=S.getPlayer())==null?void 0:R.getCurrentTime())||0;E>=1&&(k.time_continue=Math.floor(E))}_.rO()||_.aR()!=="USER_INTERFACE_THEME_DARK"||(k.theme="dark");_.xl(_.N3(window.location.href,
k))}_.Y("web_appshell_refresh_trigger")&&_.Vt.caches&&this.refreshAppShellResponse();S=_.AI(window.location.href);_.gR(_.en().resolve(_.Uz),_.bW(S,"theme"))}};
_.I.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.I.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.I.onPlayerFullscreen=function(k){_.ZZ();this.playerFullscreen=k};
_.I.setRestrictedMode=function(k){var E=_.nz();_.iD(0,58,k);E.save();_.en().resolve(_.uO).reload()};
_.I.onPageChanged=function(k){k.detail.newPageType==="ytd-watch-flexy"||k.detail.newPageType==="ytd-watch-fixie"||k.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.aO("WEB_PAGE_TYPE_WATCH")):k.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.aO("WEB_PAGE_TYPE_SHORTS")):k.detail.newPageType==="ytd-browse"&&k.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.aO("WEB_PAGE_TYPE_MINI_APP")):_.Y("web_frosted_glass")&&k.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.aO("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.aO("WEB_PAGE_TYPE_UNKNOWN"));k.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.I.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.I.onGuideToggleTap=function(){_.Me(this.hostElement,"yt-guide-toggle")};
_.I.onGuideToggleHover=function(){_.Me(this.hostElement,"yt-guide-hover")};
_.I.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.I.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.I.setMastheadTheme=function(){var k=_.kT(this.hostElement).querySelector("#masthead");k&&(k.dark=k.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),k.isDarkThemeForced=!1)};
_.I.onRequestPanelModeChange=function(k,E){this.hideHeaderShadow=E.mode!=="seamed"};
_.I.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.I.onDrawerIronSelect=function(k){_.bv(k).id==="guide"&&this.processDrawerIronSelect()};
_.I.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var k="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(k="opened"));_.Me(this.hostElement,"yt-autonav-pause-guide-"+k)};
_.I.onAddElementToApp=function(k){_.Cc(this.hostElement).appendChild(k.detail)};
_.I.onThrottledScroll=function(){var k=_.en().resolve(_.ZD).getCurrentPage();k&&(this.scrollAtTop=k.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.I.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.I.setFullscreen=function(){if(_.Y("external_fullscreen")||!this.isWatchPage){var k=_.Y("kevlar_fullerscreen_root_only_killswitch")?!!_.ZZ():!!_.ZZ()&&_.ZZ()===document.documentElement;k=(this.isWatchPage||_.Y("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(k||this.isFullWindowSession);this.fullscreen!==k&&((this.fullscreen=k)&&_.zR(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.vo().dispatch(_.o9d(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.qe(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.I.setFullscreenLoggingForShorts=function(k){var E,S,R;return _.c(function(V){if(V.nextAddress==1)return V.yield((E=_.s3())==null?void 0:E.getPlayerPromise(),2);S=V.yieldResult;(R=S)==null||R.setAppFullscreen(k);_.KR(V)})};
_.I.updateMastheadCssHeight=function(){var k=this.mastheadHeight;this.fullscreen&&(k=0);_.VO(this.hostElement,{"--ytd-masthead-height":k+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.I.updateNetworkStatusBannerDisplayStatus=function(){var k="unset";this.fullscreen&&(k="none");_.VO(this.hostElement,{"--ytd-network-status-banner-display":k})};
_.I.updateNetworkStatusBannerCssHeight=function(){var k="unset";this.fullscreen&&(k="0px");_.VO(this.hostElement,{"--ytd-network-status-banner-max-height":k})};
_.I.updateScrollAndMasthead=function(k,E,S,R){this.iMaxTheaterMode||(R=!1);var V=_.en().resolve(_.ZD).getCurrentPage();k||E||R?(document.body.classList.add("no-scroll"),V.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Ic(this,this.onScroll)),V.setScrollTop(0),_.VO(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.JW()+"px"})):S?_.Me(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Me(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
V.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Ic(this,this.onScroll)));this.mastheadHidden=k||E||S;this.updateMastheadCssHeight();_.Y("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.I.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.I.onYtNavigateAction=function(k){k=this.get("navigateAction.endpoint",k);_.Me(this.hostElement,"yt-navigate",{endpoint:k})};
_.I.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var k=document.createElement("yt-create-family-dialog");_.Cc(this.hostElement).appendChild(k);this.hasCreateFamilyDialog=!0}};
_.I.onSetPushNotificationsEnabledCommand=function(k){var E=this,S=_.W(k,Nut);S&&typeof S.enabled==="boolean"&&(Notification.permission!=="granted"?gXI().then(function(){Notification.permission==="granted"?(cVU(!S.enabled).then(a0A),S.successAction&&_.Qw(E.hostElement,[S.successAction])):S.failureAction&&_.Qw(E.hostElement,[S.failureAction])}):(cVU(!S.enabled).then(a0A),S.successAction&&_.Qw(this.hostElement,[S.successAction])))};
_.I.onYtSignalActionEnableChromeNotifications=function(){UiA(!0)};
_.I.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.W(this.topbarData.hotkeyDialog,hkW)}}})};
_.I.onYtSignalActionShowKeyboardShortcutDialog=function(){_.qe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.I.onYtEndpointChangeHandler=function(k,E){var S=_.$z(_.rj);S.pendingPrefetchJob_&&(E=!(!E||E.autonav!="1"),S.pendingPrefetchJob_.resolve(k&&_.ise(k)?_.hkb(k,E):""),S.pendingPrefetchJob_=null);_.qe(this.hostElement,"yt-pause-active-page-context");_.qe(this.hostElement,"ytd-log-youthere-nav");_.qe(this.hostElement,"yt-prepare-page-dispose")};
_.I.handleCommandWithCommandHandler=function(k,E){_.V_.instance.resolveCommand(k,{form:{element:E}})};
_.I.onYtTimedCommand=function(k){var E=this;k=_.W(k,qV0);var S=k.command;S&&_.kq(_.ZJ,function(){var R=_.W(S,_.kmd);R?(_.V_.instance.resolveCommand(S),E.maybeLogGetAnswerRequestTick(R)):_.Ot(E.hostElement,[S],E.hostElement)},k.timeoutMs||0)};
_.I.maybeLogGetAnswerRequestTick=function(k){k&&k.isFirstRequest&&(_.yi("search_overview_answer"),_.o_("so_rq",void 0,"search_overview_answer"))};
_.I.onYtSignalActionSkipNavigation=function(){var k=_.en().resolve(_.ZD).getCurrentPage();_.Nd(k)};
_.I.onYtSignalActionCopyDebugData=function(){vXP()};
_.I.handleEntityUpdateCommand=function(k){_.I7(_.W(k,_.k31).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.I.logFlowLoggingEventCommand=function(k){if(k=_.W(k,_.Qib))if(k.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var E=k.flowEventNamespace,S=k.flowEventType,R=k.flowType;R&&E&&S&&_.kQj(_.Ex(E,S,k.flowEventMetadata),R)}else{E=_.Sk();S=k.flowEventNamespace;R=k.flowEventType;var V=k.flowType;V&&S&&R&&E.logFlowEvent(_.Ex(S,R,k.flowEventMetadata),V,k.flowNonce)}};
_.I.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.I.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.I.onTouchStart=function(){var k=_.LM();_.Fe()&&_.Ab(k.JSC$13402_screenManager,{visualElement:k.ve})};
_.I.handleSelectLanguageCommand=function(k){if(k=_.W(k,ShI).hl){var E=_.nz();E.set("hl",k);E.save();_.en().resolve(_.uO).reload()}};
_.I.handleConfirmDialogEndpoint=function(k){(k=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(k))&&this.ytOpenPopupBehavior.openPopup(k)};
_.I.handleOpenPopupNavigationEndpoints=function(k,E){_.Y("web_button_rework")&&(k=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(k))&&this.ytOpenPopupBehavior.openPopup(k,E)};
_.I.handleSaveCommandToSessionStorage=function(k){if(k=_.W(k,_.nt2)){var E=k.key;E&&k.command&&window.sessionStorage.setItem(E,JSON.stringify(k.command))}};
_.I.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(k){k&&k.active&&k.active.postMessage({type:"refresh_shell"})}).catch(function(k){k.name!=="SecurityError"&&_.bM(k)})};
_.I.onDeviceThemeChanged=function(){var k=_.ek();_.iD(_.nz(),185,k);_.nz().save()};
_.I.handleYtRegisterPromoCommand=function(k){if(_.W(k,VYa)){var E=_.en().resolve(_.ZD).getCurrentPage()||this.hostElement;kO2().registerPromoCommand(_.W(k,VYa),E)}};
_.I.onYtNavigateHomeAction=function(){if(!_.Y("kevlar_miniplayer_navigate_home_from_app_killswitch")){var k,E,S,R,V=(R=(k=this.topbarData)==null?void 0:(E=k.logo)==null?void 0:(S=E.topbarLogoRenderer)==null?void 0:S.endpoint)!=null?R:_.U7;this.ytComponentBehavior.resolveCommand(V)}};
_.I.onYtLocationCollectionCommand=function(k){R7I(_.W(k,wWP))};
_.I.onYtGetLocationCommand=function(k){Nyx(_.W(k,Tux),this)};
_.I.updateRenderGuideFromBinding=function(k){this.renderGuide=k.detail.value};
_.I.updateGuidePersistentAndVisibleFromBinding=function(k){this.guidePersistentAndVisible=k.detail.value};
_.I.updateMiniGuideVisibleFromBinding=function(k){this.miniGuideVisible=k.detail.value};
_.I.onThemeSelected=function(k,E){var S=_.nz(),R=k||E?k:_.ek(),V=(R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!R&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.PiR(_.Xu(window.location.href));_.iD(0,165,k);_.iD(0,174,E);S.save();V&&_.qe(this.hostElement,"yt-dark-mode-toggled-action",[R]);_.qe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.I.getCurrentTheme=function(){return _.tg()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.aR()};
_.I.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.I.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.I.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.I.handleShowConsentPrimitive=function(k){var E=this,S,R;return _.c(function(V){if(V.nextAddress==1){try{S=(R=_.s3())==null?void 0:R.getPlayerPromise()}catch(N){}return V.yield(WZY(k,S),2)}_.qe(E.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.KR(V)})};
_.I.handleSelectActiveIdentityEndpointInternal=function(k){_.rV();k=_.W(k,_.Yzp);if(k!=null&&k.supportedTokens){k=_.n(k.supportedTokens);for(var E=k.next();!E.done;E=k.next())E=E.value,E.accountSigninToken&&_.xl(E.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.I.handleUpdatePermissionRoleCommand=function(k){if(k=_.W(k,_.w5d)){var E;this.hasDelegation=!((E=_.W(k.renderer,_.TAC))==null||!E.status)}};
_.I.registerWithViewTransitionManager=function(){var k=_.en().resolve(_.mz(_.Au));if(k){var E,S=(E=this.guide)==null?void 0:E.querySelector("#scrim"),R;E=(R=this.guide)==null?void 0:R.querySelector("#contentContainer");S&&E&&k.isAnyTransitionEnabled&&(R={},k.viewTransitionCoordinator.registerElement(S,(R.slide="app-drawer-scrim-page-transition",R["lockup-to-watch"]="app-drawer-scrim-page-transition",R["learning-journey"]="app-drawer-scrim-page-transition",R)),S={},k.viewTransitionCoordinator.registerElement(E,
(S.slide="app-drawer-container-page-transition",S["lockup-to-watch"]="app-drawer-container-page-transition",S["learning-journey"]="app-drawer-container-page-transition",S)))}};
_.mt.Object.defineProperties(bF.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.Y("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.mt.Object.defineProperties(bF,{template:{configurable:!0,enumerable:!0,get:function(){if(YqP===void 0){var k=document.createElement("template");_.X(k,'\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');
k.content.insertBefore(_.Q().content.cloneNode(!0),k.content.firstChild);YqP=k}k=YqP;return k}}});
bF.prototype.onOpenHotkeyDialog=bF.prototype.onOpenHotkeyDialog;bF.prototype.setFullscreen=bF.prototype.setFullscreen;bF.prototype.onAddElementToApp=bF.prototype.onAddElementToApp;bF.prototype.onDrawerIronSelect=bF.prototype.onDrawerIronSelect;bF.prototype.onGuideOpenButtonHover=bF.prototype.onGuideOpenButtonHover;bF.prototype.onRequestPanelModeChange=bF.prototype.onRequestPanelModeChange;bF.prototype.onPageDataUpdated=bF.prototype.onPageDataUpdated;bF.prototype.onPageChanged=bF.prototype.onPageChanged;
bF.prototype.onSetTheaterModeEnabled=bF.prototype.onSetTheaterModeEnabled;bF.prototype.updateMastheadData=bF.prototype.updateMastheadData;bF.prototype.onYtPageManagerAttached=bF.prototype.onYtPageManagerAttached;bF.prototype.observePersistentPanelVisibility=bF.prototype.observePersistentPanelVisibility;bF.prototype.observeGuideVisibility=bF.prototype.observeGuideVisibility;bF.prototype.guideIsVisibleButNotPersistentSelectorChanged=bF.prototype.guideIsVisibleButNotPersistentSelectorChanged;
bF.prototype.isInlinePreviewEnabledChanged=bF.prototype.isInlinePreviewEnabledChanged;bF.prototype.isWatchPageChanged=bF.prototype.isWatchPageChanged;bF.prototype.dispatchFrostedGlassMode=bF.prototype.dispatchFrostedGlassMode;_.Z([_.g(_.zm),_.l("design:type",Object)],bF.prototype,"ytdReduxBehavior",void 0);_.Z([_.g(_.x8.YtEventForwardingBehavior),_.l("design:type",Object)],bF.prototype,"ytEventForwardingBehavior",void 0);
_.Z([_.g(_.gA.YtOpenPopupBehavior),_.l("design:type",Object)],bF.prototype,"ytOpenPopupBehavior",void 0);_.Z([_.g(_.H5.YtActionHandlerBehavior),_.l("design:type",Object)],bF.prototype,"ytActionHandlerBehavior",void 0);
_.Z([_.g({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.GU.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.Y("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var k;((k=this.actionRouterNode.hostElement)!=null?k:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var k;((k=this.actionRouterNode.hostElement)!=null?k:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(k){this.actionRouter_.handleAction(k.detail)}}),
_.l("design:type",Object)],bF.prototype,"ytActionRouterBehavior",void 0);_.Z([_.g(n9A.YtdAppBehavior),_.l("design:type",Object)],bF.prototype,"ytdAppBehavior",void 0);_.Z([_.g(_.UN.YtEndpointBehavior),_.l("design:type",Object)],bF.prototype,"ytEndpointBehavior",void 0);_.Z([_.g(X6Y.YtEndpointHandlerWithYpcBehavior),_.l("design:type",Object)],bF.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.Z([_.g(WaA.YtLogYpcFlowCommandsBehavior),_.l("design:type",Object)],bF.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.Z([_.g(_.O.YtRendererBehavior),_.l("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.Z([_.g(_.OE.YtComponentBehavior),_.l("design:type",Object)],bF.prototype,"ytComponentBehavior",void 0);_.Z([_.H({selector:_.E6R}),_.l("design:type",Object)],bF.prototype,"tabGesturesIsActive",void 0);_.Z([_.H(),_.l("design:type",Boolean)],bF.prototype,"renderGuide",void 0);
_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"guidePersistentAndVisible",void 0);_.Z([_.H({selector:_.k2A}),_.l("design:type",Boolean)],bF.prototype,"guideIsVisibleButNotPersistent",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"standalone",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"miniGuideVisible",void 0);
_.Z([_.H(),_.l("design:type",Object)],bF.prototype,"persistentPanelEnabled",void 0);_.Z([_.H({selector:dSP,reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"persistentPanelVisible",void 0);_.Z([_.H({selector:_.uAl}),_.l("design:type",Number)],bF.prototype,"miniplayerPlaybackState",void 0);_.Z([_.H({selector:_.Ff,reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"miniplayerIsActive",void 0);
_.Z([_.H({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.l("design:type",Boolean)],bF.prototype,"isInlinePreviewEnabled",void 0);_.Z([_.H(),_.l("design:type",Boolean)],bF.prototype,"isInlinePreviewDisabled",void 0);_.Z([_.H({reflectToAttribute:!0,value:function(){return _.qg("START_IN_FULL_WINDOW_MODE")}}),
_.l("design:type",Boolean)],bF.prototype,"mastheadHidden",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"playerFullscreen",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"fullscreen",void 0);_.Z([_.H({value:!1,reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"hideHeaderShadow",void 0);
_.Z([_.H({value:{GUIDE_ALT_LABEL:_.Vi("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.l("design:type",Object)],bF.prototype,"menuStrings",void 0);_.Z([_.H({computed:"computeTopbarData(data)"}),_.l("design:type",Object)],bF.prototype,"topbarData",void 0);_.Z([_.H({selector:_.Ky1,reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"isWatchPage",void 0);_.Z([_.H({selector:_.p5j,reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"isShortsPage",void 0);
_.Z([_.H({selector:function(k){return _.yV(k)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.l("design:type",Boolean)],bF.prototype,"isMiniAppPage",void 0);_.Z([_.H({selector:function(k){return _.yV(k)==="WEB_PAGE_TYPE_BROWSE"}}),
_.l("design:type",Boolean)],bF.prototype,"isBrowsePage",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Boolean)],bF.prototype,"scrolling",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bF.prototype,"hasDelegation",void 0);_.Z([_.H({reflectToAttribute:!0,value:!1}),_.l("design:type",Boolean)],bF.prototype,"guideScrolledByTouch",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bF.prototype,"darkerDarkTheme",void 0);
_.Z([_.H(),_.l("design:type",Object)],bF.prototype,"isFrostedGlassInitialized",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bF.prototype,"frostedGlassExp",void 0);_.Z([_.H({selector:function(k){return k.ui.chipBarIsSticky}}),
_.l("design:type",Boolean)],bF.prototype,"chipBarIsSticky",void 0);_.Z([_.H({computed:"computeIsHomePage(isBrowsePage, data)"}),_.l("design:type",Boolean)],bF.prototype,"isHomePage",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bF.prototype,"hasPendingWatchNavigation",void 0);_.Z([_.H({reflectToAttribute:!0}),_.l("design:type",Object)],bF.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.Z([_.H(),_.l("design:type",Object)],bF.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.Z([_.ue("guide"),_.l("design:type",Object)],bF.prototype,"guide",void 0);_.Z([_.ue("guide-service"),_.l("design:type",zJG)],bF.prototype,"guideService",void 0);_.Z([_.ue("guide-inner-content"),_.l("design:type",HTMLDivElement)],bF.prototype,"guideInnerContent",void 0);_.Z([_.JO("#persistent-panel-container"),_.l("design:type",HTMLElement)],bF.prototype,"persistentPanelContainer",void 0);
_.Z([_.H({selector:_.xqh}),_.l("design:type",String)],bF.prototype,"frostedGlassMode",void 0);_.Z([_.il("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"dispatchFrostedGlassMode",null);_.Z([_.H({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.l("design:type",Object)],bF.prototype,"isFrostedGlassDisabled",void 0);
_.Z([_.il("isWatchPage"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"isWatchPageChanged",null);_.Z([_.U("isHomePage","chipBarIsSticky"),_.l("design:type",Boolean),_.l("design:paramtypes",[])],bF.prototype,"applyFrostedGlassToChipBar",null);_.Z([_.H(),_.l("design:type",Object)],bF.prototype,"isChannelOrPlaylistPage",void 0);
_.Z([_.ac("isInlinePreviewEnabled"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"isInlinePreviewEnabledChanged",null);_.Z([_.il("guideIsVisibleButNotPersistent"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.Z([_.il("guidePersistentAndVisible","miniGuideVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"observeGuideVisibility",null);_.Z([_.il("persistentPanelVisible"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"observePersistentPanelVisibility",null);
_.Z([_.nv("attached"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],bF.prototype,"onYtPageManagerAttached",null);_.Z([_.il("data"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype",Promise)],bF.prototype,"updateMastheadData",null);_.Z([_.nv("yt-set-theater-mode-enabled"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent,Object]),_.l("design:returntype")],bF.prototype,"onSetTheaterModeEnabled",null);
_.Z([_.nv("yt-page-type-changed"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],bF.prototype,"onPageChanged",null);_.Z([_.nv("yt-page-data-updated"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"onPageDataUpdated",null);_.Z([_.nv("yt-request-panel-mode-change"),_.l("design:type",Function),_.l("design:paramtypes",[Event,Object]),_.l("design:returntype")],bF.prototype,"onRequestPanelModeChange",null);
_.Z([_.nv("yt-guide-hover"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"onGuideOpenButtonHover",null);_.Z([_.nv("app-drawer-transitioned"),_.l("design:type",Function),_.l("design:paramtypes",[Event]),_.l("design:returntype")],bF.prototype,"onDrawerIronSelect",null);_.Z([_.nv("yt-add-element-to-app"),_.l("design:type",Function),_.l("design:paramtypes",[CustomEvent]),_.l("design:returntype")],bF.prototype,"onAddElementToApp",null);
_.Z([_.nv("yt-set-fullerscreen-styles"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"setFullscreen",null);_.Z([_.nv("yt-open-hotkey-dialog"),_.l("design:type",Function),_.l("design:paramtypes",[]),_.l("design:returntype")],bF.prototype,"onOpenHotkeyDialog",null);_.Z([_.D({is:"ytd-app"})],bF);_.O7().processSignal("eor");
_.bk();
}catch(e){_._DumpException(e)}
try{
_.vy("NSzT5");
var DyR;_.fA=function(k){var E=document.createElement("link");_.JE(E,k,"stylesheet");document.head.appendChild(E)};
_.vK=function(k,E){var S,R;return _.c(function(V){S=document.createElement("div");S.id=k.id;k.className&&(S.className=k.className);R=k.element;if(!R)throw Error("ck");if(k.location==="prepend")R.prepend(S);else if(k.location==="appendChild")R.appendChild(S);else if(k.location==="after")R.after(S);else throw Error("dk");return V.return(_.fV(S,E,"Oi"))})};
_.be=function(k){var E;return _.c(function(S){(E=document.getElementById(k))&&E.remove();_.KR(S)})};
_.ZL=function(k,E){var S=document.querySelector(k);S?E(S):setTimeout(function(){_.ZL(k,E)},1E3)};
_.$yT=function(k,E,S){var R;_.c(function(V){if(V.nextAddress==1)return(R=document.getElementById(k))?V.jumpTo(2):V.yield(DyR(k,E,S),2);if(R=document.getElementById(k))R.style.display="block";_.KR(V)})};
DyR=function(k,E,S){return _.c(function(R){return R.return(new Promise(function(V){_.ZL("div #panels",function(N){_.vK({element:N,location:"appendChild",id:k,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+S},E);V()})}))})};
_.ZcU=function(k){k=k===void 0?"":k;_.be("creator_chatbots-entry-point");_.be("creator_chatbots-panel");_.fA(fWY);_.ZL("ytd-watch-metadata #top-level-buttons-computed",function(E){document.getElementById("creator_chatbots-entry-point")||(_.vK({element:E,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.e(vlU,{creatorChannelId:k})}),_.$yT("creator_chatbots-panel",function(){return _.e(bcT,{usePlayerHeight:!0,
creatorChannelId:k})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.dx=_.f(function(k){var E=k.text;var S=k.onClick;var R=k.color;var V=k.backgroundColor;var N=k.buttonSize;var h=k.disabled;var J=k.iconName;var m=k.iconSize;k=k.className;var a=_.RZ(function(w){S(w)}),T={};
return _.e("button",{class:_.SQ("ytpStandardButtonsHost",(T.ytpStandardButtonsLarge=function(){return(N==null?void 0:N())==="large"},T),k),
"on:click":a,style:_.nU({color:R,"background-color":V}),disabled:h}," ",_.e(_.t,{cond:J,then:function(){return _.e(_.i_,{className:"ytpStandardButtonsIconContainer",icon:J,size:m})}}),E)},"Ni");_.dy2=_.f(function(k){var E;return _.e("div",{class:_.SQ("ytprototypesEngagementPanelComponentHost",k.className),id:k.id},_.e("div",{class:_.SQ("ytprototypesEngagementPanelComponentEngagementPanelHeader",k.headerClassName)},_.e("div",null,k.header()),_.e("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.e("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(E=k.HeaderButton)==null?void 0:E.call(k)),_.e(_.dx,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var S;(S=k.onHide)==null||S.call(k);S=k.id();if(S=document.getElementById(S))S.style.display="none"}}))),_.e("div",{class:_.SQ("ytprototypesEngagementPanelComponentEngagementPanelContent",k.contentClassName),
style:function(){var S;return"height: "+(((S=k.height)==null?void 0:S.call(k))||"800px")+";"}},k.content()))},"Pi");var sRI=_.ry(["https://portraits.google.com"]),lWP=_.ry(["https://labs-characters.teams.x20web.corp.google.com"]),MkY=_.ry(["https://portraits.google.com/gallery?ytChannelId=",""]),qx3=_.BH(sRI),s$=_.BH(lWP),bcT=_.f(function(k){function E(P){var B;if(P=(B=P.detail)==null?void 0:B.endpoint){B=_.W(P,_.Ny);var F;B&&((F=B.browseId)==null?0:F.startsWith("UC"))&&B.browseId!==V()&&(_.be("creator_chatbots-panel-persistent"),T.removeEventListener("yt-navigate-start",E))}}
var S=k.usePlayerHeight;var R=k.isPersistentPanel;var V=k.creatorChannelId;var N=_.Y("enable_creator_chatbots_extension_dev_server"),h=document.createElement("iframe"),J=N?s$:qx3;_.vC(function(){var P=V();P=N?s$:_.BH(MkY,P);_.aem(h,1,P)});
h.className="ytprotoCreatorChatbotsAppLabsIframe";h.allow="microphone; clipboard-read; clipboard-write self "+J;var m=function(){var P;return _.c(function(B){if(B.nextAddress==1)return B.yield(_.en().resolve(_.QQ),2);(P=B.yieldResult)&&P.pauseVideo();_.KR(B)})},a=function(){var P,B,F;
return _.c(function(K){return K.nextAddress==1?K.yield(_.en().resolve(_.QQ),2):(P=K.yieldResult)?K.return({video_id:(F=(B=P.getVideoData())==null?void 0:B.video_id)!=null?F:"",timestamp_sec:P.getCurrentTime().toString()}):K.return({})})};
window.addEventListener("message",function(P){var B,F,K,r,x,L;return _.c(function(q){if(q.nextAddress==1){B=N?s$.toString():qx3.toString();if(P.origin!==B)return console.warn("Received message from untrusted origin:",P.origin),q.return();F=P.data;if(typeof F!=="object"||F===null||!F.action)return q.return();if(F.action==="pause")return q.yield(m(),0);if(F.action!=="getYouTubeContext"||!P.source)return q.jumpTo(0);K=P.source;r=K.postMessage;x=JSON;L=x.stringify;return q.yield(a(),7)}r.call(K,L.call(x,
{youTubeContext:q.yieldResult}),{targetOrigin:P.origin});return q.jumpTo(0)})});
_.cn("yt-page-type-changed",function(){if(R==null?0:R()){var P;((P=_.en().resolve(_.ZD).getCurrentPage())==null?void 0:P.pageSubtype)!=="channels"&&(P=document.getElementById("creator_chatbots-panel-persistent"))&&(P.style.display="none")}});
var T=_.en().resolve(_.uO),w;(w=T)==null||w.addEventListener("yt-navigate-start",E);_.bI(function(){var P;(P=T)==null||P.removeEventListener("yt-navigate-start",E)});
return _.e("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(S==null?0:S())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.e(_.dy2,{id:function(){return(R==null?0:R())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var P=N?s$.toString():qx3.toString(),B;(B=h.contentWindow)==null||B.postMessage("ep_closed",P)},
header:function(){return _.e("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.e("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.e(_.QD,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.e(_.dx,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.Cg(window,_.fg(N?s$.toString():J.toString()+"/gallery?ytChannelId="+V()),"_blank")}})},
content:function(){return h}}))},"Ri");var zWx,fWY,vlU;zWx=_.ry(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);fWY=_.BH(zWx);vlU=_.f(function(k){var E=k.creatorChannelId;var S=function(){_.$yT("creator_chatbots-panel",function(){return _.e(bcT,{usePlayerHeight:!0,creatorChannelId:E})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.e("div",{class:"ytd-menu-renderer"},_.e(_.FA,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:S}},
icon:function(){return _.e(_.i_,{icon:"SPARK"})}}))},"Si");
_.Int=function(k){k=k===void 0?"":k;var E;return _.c(function(S){return(E=document.getElementById("creator_chatbots-panel-persistent"))?(E.style.display==="none"&&(E.style.display="block"),S.jumpTo(0)):S.yield(new Promise(function(R){_.ZL("ytd-app",function(V){_.vK({element:V,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.e(bcT,{isPersistentPanel:!0,
creatorChannelId:k})});
R()})}),0)})};
_.bk();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
